eco-vue-js 0.8.7 → 0.8.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (26) hide show
  1. package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts +2 -2
  2. package/dist/components/FormAsync/WFormAsyncSelect.vue.d.ts.map +1 -1
  3. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +4 -2
  4. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts +26 -0
  5. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.d.ts.map +1 -0
  6. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +147 -0
  7. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue2.js +5 -0
  8. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts +2 -2
  9. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.d.ts.map +1 -1
  10. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +4 -2
  11. package/dist/components/FormAsync/types.d.ts +29 -9
  12. package/dist/components/FormAsync/types.d.ts.map +1 -1
  13. package/dist/components/Select/WSelect.vue.d.ts +5 -2
  14. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  15. package/dist/components/Select/WSelect.vue.js +15 -5
  16. package/dist/components/Select/WSelectAsync.vue.js +1 -0
  17. package/dist/components/Select/WSelectAsyncSingle.vue.js +1 -0
  18. package/dist/components/Select/WSelectSingle.vue.d.ts +8 -3
  19. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  20. package/dist/components/Select/WSelectSingle.vue.js +7 -4
  21. package/dist/components/Select/types.d.ts +15 -4
  22. package/dist/components/Select/types.d.ts.map +1 -1
  23. package/dist/imports/componentsPlugin.d.ts +2 -1
  24. package/dist/imports/componentsPlugin.d.ts.map +1 -1
  25. package/dist/main.js +1 -0
  26. package/package.json +4 -1
@@ -1,11 +1,11 @@
1
1
  import { FormAsyncSelectProps } from './types';
2
2
  import { SelectOptionComponent } from '../Select/types';
3
- declare const _default: <Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>>(__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<{
3
+ declare const _default: <Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>>(__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
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onSuccess?: ((value: Model) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
7
  onSuccess?: ((value: Model) => any) | undefined;
8
- }>, never>, "onSuccess"> & FormAsyncSelectProps<Model, FieldType, QueryParams, Data, OptionComponent>> & import('vue').PublicProps;
8
+ }>, never>, "onSuccess"> & FormAsyncSelectProps<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent>> & import('vue').PublicProps;
9
9
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
10
  attrs: any;
11
11
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"WFormAsyncSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncSelect.vue"],"names":[],"mappings":"AA+GA,OAAO,KAAK,EAAC,oBAAoB,EAAC,MAAM,SAAS,CAAA;AACjD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAQnD,KAAK,EAAE,SAAS,SA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I,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA0MxD,mBAAmB,CAAC;;;;6HAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlCc,GAAG;0BACA,GAAG;uBACL,GAAG;;cAnKzB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YAwMQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AApNvE,wBAoN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -15,7 +15,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  field: {},
16
16
  apiMethod: { type: Function },
17
17
  confimGetter: { type: Function },
18
- useQueryFnOptions: {},
19
18
  valueGetter: { type: Function },
20
19
  searchFn: { type: Function },
21
20
  useQueryFnDefault: {},
@@ -62,7 +61,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
61
  maxWidth: {},
63
62
  horizontalAlign: {},
64
63
  optionComponent: {},
65
- optionComponentProps: {}
64
+ optionComponentProps: {},
65
+ useQueryFnOptions: {},
66
+ queryParamsOptions: {},
67
+ noParamsOptions: { type: Boolean }
66
68
  },
67
69
  emits: ["success"],
68
70
  setup(__props, { emit: __emit }) {
@@ -0,0 +1,26 @@
1
+ import { FormAsyncSelectInfiniteSingleProps } from './types';
2
+ import { SelectOptionComponent } from '../Select/types';
3
+ declare const _default: <Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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 onSuccess?: ((value: Model) => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
+ onSuccess?: ((value: Model) => any) | undefined;
8
+ }>, never>, "onSuccess"> & FormAsyncSelectInfiniteSingleProps<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
9
+ expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
+ attrs: any;
11
+ slots: {
12
+ title?(_: {}): any;
13
+ subtitle?(_: {}): any;
14
+ right?(_: {}): any;
15
+ };
16
+ emit: (e: "success", value: Model) => void;
17
+ }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
18
+ [key: string]: any;
19
+ }> & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ export default _default;
23
+ type __VLS_PrettifyLocal<T> = {
24
+ [K in keyof T]: T[K];
25
+ } & {};
26
+ //# sourceMappingURL=WFormAsyncSelectInfiniteSingle.vue.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WFormAsyncSelectInfiniteSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAC,kCAAkC,EAAC,MAAM,SAAS,CAAA;AAC/D,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAQnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACvL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8LxD,mBAAmB,CAAC;;;;uJAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlCc,GAAG;0BACA,GAAG;uBACN,GAAG;;cAvJxB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA4LQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxMvE,wBAwM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -0,0 +1,147 @@
1
+ import { defineComponent, toRef, ref, computed, onBeforeUnmount, openBlock, createBlock, mergeProps, unref, createSlots, withCtx, renderSlot } from 'vue';
2
+ import _sfc_main$1 from '../Select/WSelectAsyncSingle.vue.js';
3
+ import { get, set } from '../../utils/utils.js';
4
+ import { Notify } from '../../utils/Notify.js';
5
+ import { handleApiError } from '../../utils/api.js';
6
+ import { Modal } from '../../utils/Modal.js';
7
+
8
+ const _sfc_main = /* @__PURE__ */ defineComponent({
9
+ __name: "WFormAsyncSelectInfiniteSingle",
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
+ allowClear: { type: Boolean },
19
+ searchModel: { type: Boolean },
20
+ previewData: {},
21
+ createdData: {},
22
+ useQueryFnOptions: {},
23
+ useQueryFnPrefix: {},
24
+ isInvalidPage: { type: Function },
25
+ queryParamsOptions: {},
26
+ searchField: {},
27
+ valueQueryKey: {},
28
+ valueGetter: { type: Function },
29
+ useQueryFnDefault: {},
30
+ emptyStub: {},
31
+ hidePrefix: { type: Boolean },
32
+ createOption: { type: Function },
33
+ hideOptionIcon: { type: Boolean },
34
+ mobileTitle: {},
35
+ persist: { type: Boolean },
36
+ type: {},
37
+ textarea: { type: Boolean },
38
+ resize: { type: Boolean },
39
+ placeholder: {},
40
+ icon: {},
41
+ size: {},
42
+ maxLength: {},
43
+ name: {},
44
+ autocomplete: {},
45
+ autofocus: { type: Boolean },
46
+ readonly: { type: Boolean },
47
+ disabledActions: { type: Boolean },
48
+ loading: { type: Boolean },
49
+ spellcheck: { type: Boolean },
50
+ customBackspaceHandle: { type: Boolean },
51
+ textSecure: { type: Boolean },
52
+ placeholderSecure: { type: Boolean },
53
+ allowPaste: { type: Boolean },
54
+ title: {},
55
+ description: {},
56
+ errorMessage: {},
57
+ tooltipText: {},
58
+ mono: { type: Boolean },
59
+ hasChanges: { type: Boolean },
60
+ skeleton: { type: Boolean },
61
+ disabled: { type: Boolean },
62
+ required: { type: Boolean },
63
+ noMargin: { type: Boolean },
64
+ allowCopy: { type: Boolean },
65
+ teleport: { type: Boolean },
66
+ noZIndex: { type: Boolean },
67
+ maxHeight: {},
68
+ maxWidth: {},
69
+ horizontalAlign: {},
70
+ noParamsOptions: { type: Boolean },
71
+ optionComponent: {},
72
+ optionComponentProps: {}
73
+ },
74
+ emits: ["success"],
75
+ setup(__props, { emit: __emit }) {
76
+ const props = __props;
77
+ const emit = __emit;
78
+ const { data, setData, isLoadingError } = props.noParams === true ? props.useQueryFn({ enabled: toRef(props, "queryEnabled") }) : props.useQueryFn(toRef(props, "queryParams"), { enabled: toRef(props, "queryEnabled") });
79
+ const submitting = ref(false);
80
+ const modelValue = computed(() => get(data.value ?? {}, props.field) ?? null);
81
+ const save = (value) => {
82
+ if (submitting.value) return;
83
+ submitting.value = true;
84
+ return props.apiMethod(set({}, props.field, value)).then((response) => {
85
+ setData(response.data);
86
+ Notify.success({ title: "Saved" });
87
+ emit("success", response.data);
88
+ }).catch((error) => handleApiError(error, void 0, props.field)).finally(() => {
89
+ submitting.value = false;
90
+ });
91
+ };
92
+ let closeModal = null;
93
+ const showModal = (value) => {
94
+ closeModal?.();
95
+ const confirmProps = props.confimGetter?.(value);
96
+ if (!confirmProps) {
97
+ save(value);
98
+ return;
99
+ }
100
+ closeModal = Modal.addConfirm({
101
+ ...confirmProps,
102
+ onAccept: () => {
103
+ return save(value);
104
+ }
105
+ }, () => closeModal = null);
106
+ };
107
+ onBeforeUnmount(() => {
108
+ closeModal?.();
109
+ closeModal = null;
110
+ });
111
+ return (_ctx, _cache) => {
112
+ return openBlock(), createBlock(_sfc_main$1, mergeProps({
113
+ ...props,
114
+ modelValue: modelValue.value,
115
+ skeleton: _ctx.skeleton || !unref(data),
116
+ disabled: _ctx.disabled || unref(isLoadingError),
117
+ loading: _ctx.loading || submitting.value
118
+ }, {
119
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => showModal($event ?? null))
120
+ }), createSlots({ _: 2 }, [
121
+ _ctx.$slots.title ? {
122
+ name: "title",
123
+ fn: withCtx(() => [
124
+ renderSlot(_ctx.$slots, "title")
125
+ ]),
126
+ key: "0"
127
+ } : void 0,
128
+ _ctx.$slots.subtitle ? {
129
+ name: "subtitle",
130
+ fn: withCtx(() => [
131
+ renderSlot(_ctx.$slots, "subtitle")
132
+ ]),
133
+ key: "1"
134
+ } : void 0,
135
+ _ctx.$slots.right ? {
136
+ name: "right",
137
+ fn: withCtx(() => [
138
+ renderSlot(_ctx.$slots, "right")
139
+ ]),
140
+ key: "2"
141
+ } : void 0
142
+ ]), 1040);
143
+ };
144
+ }
145
+ });
146
+
147
+ export { _sfc_main as default };
@@ -0,0 +1,5 @@
1
+ import _sfc_main from './WFormAsyncSelectInfiniteSingle.vue.js';
2
+
3
+
4
+
5
+ export { _sfc_main as default };
@@ -1,11 +1,11 @@
1
1
  import { FormAsyncSelectSingleProps } from './types';
2
2
  import { SelectOptionComponent } from '../Select/types';
3
- declare const _default: <Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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<{
3
+ declare const _default: <Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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
4
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
5
5
  readonly onSuccess?: ((value: Model) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
7
7
  onSuccess?: ((value: Model) => any) | undefined;
8
- }>, never>, "onSuccess"> & FormAsyncSelectSingleProps<Model, FieldType, QueryParams, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
8
+ }>, never>, "onSuccess"> & FormAsyncSelectSingleProps<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
9
9
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
10
10
  attrs: any;
11
11
  slots: {
@@ -1 +1 @@
1
- {"version":3,"file":"WFormAsyncSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncSelectSingle.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAQnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACnK,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8LxD,mBAAmB,CAAC;;;;2HAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlCc,GAAG;0BACA,GAAG;uBACN,GAAG;;cAvJxB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA4LQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxMvE,wBAwM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WFormAsyncSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/WFormAsyncSelectSingle.vue"],"names":[],"mappings":"AA0GA,OAAO,KAAK,EAAC,0BAA0B,EAAC,MAAM,SAAS,CAAA;AACvD,OAAO,KAAK,EAAC,qBAAqB,EAAC,MAAM,2BAA2B,CAAA;yBAQnD,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,kBAAkB,EAAE,WAAW,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACvL,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8LxD,mBAAmB,CAAC;;;;+IAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;uBAlCc,GAAG;0BACA,GAAG;uBACN,GAAG;;cAvJxB,SAAS,SAAS,KAAK,KAAG,IAAI;;;;YA4LQ,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxMvE,wBAwM4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -17,7 +17,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  confimGetter: { type: Function },
18
18
  allowClear: { type: Boolean },
19
19
  searchModel: { type: Boolean },
20
- useQueryFnOptions: {},
21
20
  valueGetter: { type: Function },
22
21
  searchFn: { type: Function },
23
22
  useQueryFnDefault: {},
@@ -63,7 +62,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
63
62
  maxWidth: {},
64
63
  horizontalAlign: {},
65
64
  optionComponent: {},
66
- optionComponentProps: {}
65
+ optionComponentProps: {},
66
+ useQueryFnOptions: {},
67
+ queryParamsOptions: {},
68
+ noParamsOptions: { type: Boolean }
67
69
  },
68
70
  emits: ["success"],
69
71
  setup(__props, { emit: __emit }) {
@@ -1,6 +1,6 @@
1
1
  import { InputAsyncProps } from '../Input/types';
2
2
  import { ToggleProps } from '../Toggle/types';
3
- import { SelectOptionComponent, SelectProps, SelectSingleProps } from '../Select/types';
3
+ import { SelectAsyncSingleProps, SelectOptionComponent, SelectProps, SelectSingleProps } from '../Select/types';
4
4
  import { ButtonGroupProps } from '../Button/types';
5
5
  /**
6
6
  * Input
@@ -47,43 +47,63 @@ export type FormAsyncToggleProps<Model, FieldType extends boolean | null, QueryP
47
47
  /**
48
48
  * Select
49
49
  */
50
- interface FormAsyncSelectBaseProps<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<FieldType, Data, OptionComponent>, 'modelValue'> {
50
+ interface FormAsyncSelectBaseProps<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<FieldType, Data, QueryParamsOptions, OptionComponent>, 'modelValue'> {
51
51
  queryEnabled?: boolean;
52
52
  field: keyof ObjectPaths<Model, FieldType[], true>;
53
53
  apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
54
54
  confimGetter?: (value: FieldType, isSelect: boolean) => ConfirmProps | undefined;
55
55
  }
56
- interface FormAsyncSelectPropsWithParams<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends FormAsyncSelectBaseProps<Model, FieldType, Data, OptionComponent> {
56
+ interface FormAsyncSelectPropsWithParams<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends FormAsyncSelectBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent> {
57
57
  useQueryFn: UseQueryWithParams<Model, QueryParams>;
58
58
  noParams?: never;
59
59
  queryParams: QueryParams;
60
60
  }
61
- interface FormAsyncSelectPropsWithoutParams<Model, FieldType extends string | number, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends FormAsyncSelectBaseProps<Model, FieldType, Data, OptionComponent> {
61
+ interface FormAsyncSelectPropsWithoutParams<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends FormAsyncSelectBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent> {
62
62
  useQueryFn: UseQueryEmpty<Model>;
63
63
  noParams: true;
64
64
  queryParams?: never;
65
65
  }
66
- export type FormAsyncSelectProps<Model, FieldType extends string | number, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> = FormAsyncSelectPropsWithParams<Model, FieldType, QueryParams, Data, OptionComponent> | FormAsyncSelectPropsWithoutParams<Model, FieldType, Data, OptionComponent>;
66
+ export type FormAsyncSelectProps<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> = FormAsyncSelectPropsWithParams<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent> | FormAsyncSelectPropsWithoutParams<Model, FieldType, QueryParamsOptions, Data, OptionComponent>;
67
67
  /**
68
68
  * SelectSingle
69
69
  */
70
- 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'> {
70
+ interface FormAsyncSelectSingleBaseProps<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends Omit<SelectSingleProps<FieldType, Data, QueryParamsOptions, OptionComponent, AllowClear>, 'modelValue'> {
71
71
  queryEnabled?: boolean;
72
72
  field: keyof ObjectPaths<Model, FieldType, true>;
73
73
  apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
74
74
  confimGetter?: (value: FieldType) => ConfirmProps | undefined;
75
75
  }
76
- 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> {
76
+ interface FormAsyncSelectSinglePropsWithParams<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear> {
77
77
  useQueryFn: UseQueryWithParams<Model, QueryParams>;
78
78
  noParams?: never;
79
79
  queryParams: QueryParams;
80
80
  }
81
- 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> {
81
+ interface FormAsyncSelectSinglePropsWithoutParams<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectSingleBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear> {
82
82
  useQueryFn: UseQueryEmpty<Model>;
83
83
  noParams: true;
84
84
  queryParams?: never;
85
85
  }
86
- export type FormAsyncSelectSingleProps<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>;
86
+ export type FormAsyncSelectSingleProps<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> = FormAsyncSelectSinglePropsWithParams<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent, AllowClear> | FormAsyncSelectSinglePropsWithoutParams<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear>;
87
+ /**
88
+ * SelectInfiniteSingle
89
+ */
90
+ interface FormAsyncSelectInfiniteSingleBaseProps<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends Omit<SelectAsyncSingleProps<FieldType, Data, QueryParamsOptions, OptionComponent, AllowClear>, 'modelValue'> {
91
+ queryEnabled?: boolean;
92
+ field: keyof ObjectPaths<Model, FieldType, true>;
93
+ apiMethod: (payload: PartialNested<Model>) => Promise<RequestResponse<Model>>;
94
+ confimGetter?: (value: FieldType) => ConfirmProps | undefined;
95
+ }
96
+ interface FormAsyncSelectInfiniteSinglePropsWithParams<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectInfiniteSingleBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear> {
97
+ useQueryFn: UseQueryWithParams<Model, QueryParams>;
98
+ noParams?: never;
99
+ queryParams: QueryParams;
100
+ }
101
+ interface FormAsyncSelectInfiniteSinglePropsWithoutParams<Model, FieldType extends string | number, QueryParamsOptions, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> extends FormAsyncSelectInfiniteSingleBaseProps<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear> {
102
+ useQueryFn: UseQueryEmpty<Model>;
103
+ noParams: true;
104
+ queryParams?: never;
105
+ }
106
+ export type FormAsyncSelectInfiniteSingleProps<Model, FieldType extends string | number, QueryParamsOptions, QueryParams, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false> = FormAsyncSelectInfiniteSinglePropsWithParams<Model, FieldType, QueryParamsOptions, QueryParams, Data, OptionComponent, AllowClear> | FormAsyncSelectInfiniteSinglePropsWithoutParams<Model, FieldType, QueryParamsOptions, Data, OptionComponent, AllowClear>;
87
107
  /**
88
108
  * ButtonGroup
89
109
  */
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/FormAsync/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,eAAe,EAAC,MAAM,0BAA0B,CAAA;AAC7D,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,2BAA2B,CAAA;AAC1D,OAAO,KAAK,EAAC,qBAAqB,EAAE,WAAW,EAAE,iBAAiB,EAAC,MAAM,2BAA2B,CAAA;AACpG,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,iBAAiB,CAAA;AAErD;;GAEG;AAEH,UAAU,uBAAuB,CAAC,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAAC,eAAe,CAAC,SAAS,SAAS,MAAM,GAAG,QAAQ,GAAG,OAAO,CAAC,SAAS,EAAE,QAAQ,CAAC,CAAC,EAAE,YAAY,GAAG,mBAAmB,CAAC;IAC/M,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,KAAK,EAAE,MAAM,WAAW,CAAC,KAAK,EAAE,SAAS,EAAE,IAAI,CAAC,CAAA;IAChD,SAAS,EAAE,CAAC,OAAO,EAAE,aAAa,CAAC,KAAK,CAAC,KAAK,OAAO,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC,CAAA;IAC7E,YAAY,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,KAAK,YAAY,GAAG,SAAS,CAAA;CAC9D;AAED,UAAU,6BAA6B,CAAC,KAAK,EAAE,SAAS,SAAS,MAAM,GAAG,MAAM,EAAE,WAAW,CAAE,SAAQ,uBAAuB,CAAC,KAAK,EAAE,SAAS,CAAC;IAC9I,UAAU,EAAE,kBAAkB,CAAC,KAAK,EAAE,WAAW,C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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,16 +1,18 @@
1
1
  import { SelectProps, SelectOptionComponent } from './types';
2
- 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_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const _default: <Model extends number | string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>>(__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<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly onSelect?: ((item: Model) => any) | undefined;
5
5
  readonly onBlur?: ((value: FocusEvent) => any) | undefined;
6
6
  readonly onFocus?: ((value: FocusEvent) => any) | undefined;
7
7
  readonly onUnselect?: ((item: Model) => any) | undefined;
8
+ readonly "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
8
9
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
9
10
  onSelect?: ((item: Model) => any) | undefined;
10
11
  onBlur?: ((value: FocusEvent) => any) | undefined;
11
12
  onFocus?: ((value: FocusEvent) => any) | undefined;
12
13
  onUnselect?: ((item: Model) => any) | undefined;
13
- }>, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect"> & SelectProps<Model, Data, OptionComponent>> & import('vue').PublicProps;
14
+ "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
15
+ }>, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onUpdate:query-options-error"> & SelectProps<Model, Data, QueryParamsOptions, OptionComponent>> & import('vue').PublicProps;
14
16
  expose(exposed: import('vue').ShallowUnwrapRef<{
15
17
  focus: () => void;
16
18
  blur: () => void;
@@ -43,6 +45,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
43
45
  (e: "unselect", item: Model): void;
44
46
  (e: "focus", value: FocusEvent): void;
45
47
  (e: "blur", value: FocusEvent): void;
48
+ (e: "update:query-options-error", value: string | undefined): void;
46
49
  };
47
50
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
48
51
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AAuWA,OAAO,KAAK,EAAC,WAAW,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAG1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC/G,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OA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,IAAI;;;;;YAwnBxB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxoBvE,wBAwoB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,9 +1,10 @@
1
- import { defineComponent, ref, computed, watch, toRef, nextTick, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, createElementVNode, toDisplayString, resolveDynamicComponent } from 'vue';
1
+ import { defineComponent, ref, computed, toRef, watch, nextTick, openBlock, createBlock, mergeProps, unref, withModifiers, createSlots, withCtx, createElementBlock, Fragment, renderList, renderSlot, createCommentVNode, createElementVNode, toDisplayString, resolveDynamicComponent } from 'vue';
2
2
  import _sfc_main$3 from './components/SelectOption.vue.js';
3
3
  import _sfc_main$2 from './components/SelectOptionPrefix.vue.js';
4
4
  import { getIsMobile } from '../../utils/mobile.js';
5
5
  import { debounce } from '../../utils/utils.js';
6
6
  import _sfc_main$1 from '../Input/WInputSuggest.vue.js';
7
+ import { ApiError } from '../../utils/api.js';
7
8
 
8
9
  const _hoisted_1 = {
9
10
  key: 0,
@@ -15,7 +16,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
16
  __name: "WSelect",
16
17
  props: {
17
18
  modelValue: {},
18
- useQueryFnOptions: {},
19
19
  valueGetter: { type: Function },
20
20
  searchFn: { type: Function },
21
21
  useQueryFnDefault: {},
@@ -62,9 +62,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
62
62
  maxWidth: {},
63
63
  horizontalAlign: {},
64
64
  optionComponent: {},
65
- optionComponentProps: {}
65
+ optionComponentProps: {},
66
+ useQueryFnOptions: {},
67
+ queryParamsOptions: {},
68
+ noParamsOptions: { type: Boolean }
66
69
  },
67
- emits: ["select", "unselect", "focus", "blur"],
70
+ emits: ["select", "unselect", "focus", "blur", "update:query-options-error"],
68
71
  setup(__props, { expose: __expose, emit: __emit }) {
69
72
  const props = __props;
70
73
  const emit = __emit;
@@ -75,7 +78,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
78
  const search = ref("");
76
79
  const searchPrepared = computed(() => search.value.trim().toLocaleLowerCase());
77
80
  const enabled = computed(() => !props.disabled);
78
- const { data, isLoading } = props.useQueryFnOptions({ enabled });
81
+ const { data, isLoading, error: queryError } = props.noParamsOptions ? props.useQueryFnOptions({ enabled }) : props.useQueryFnOptions(toRef(props, "queryParamsOptions"), { enabled });
79
82
  const optionsPrepared = computed(() => !data.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
80
83
  const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsPrepared.value : optionsPrepared.value.filter((option) => props.searchFn(option, searchPrepared.value)));
81
84
  const lastIndex = computed(() => props.createOption ? optionsFiltered.value.length : optionsFiltered.value.length - 1);
@@ -179,6 +182,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
182
  await nextTick();
180
183
  input.value?.updateDropdown();
181
184
  });
185
+ watch(queryError, (error) => {
186
+ if (error instanceof ApiError && error.response?.data?.detail) {
187
+ emit("update:query-options-error", error.response.data.detail);
188
+ } else {
189
+ emit("update:query-options-error", void 0);
190
+ }
191
+ }, { immediate: true });
182
192
  __expose({
183
193
  focus,
184
194
  blur,
@@ -60,6 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
60
  maxHeight: {},
61
61
  maxWidth: {},
62
62
  horizontalAlign: {},
63
+ noParamsOptions: { type: Boolean },
63
64
  optionComponent: {},
64
65
  optionComponentProps: {}
65
66
  },
@@ -58,6 +58,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
58
  maxHeight: {},
59
59
  maxWidth: {},
60
60
  horizontalAlign: {},
61
+ noParamsOptions: { type: Boolean },
61
62
  optionComponent: {},
62
63
  optionComponentProps: {}
63
64
  },
@@ -1,10 +1,12 @@
1
1
  import { SelectSingleProps, SelectOptionComponent } from './types';
2
- declare const _default: <Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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<{
2
+ declare const _default: <Model extends number | string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
5
+ readonly "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
5
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<{}> & Readonly<{
6
7
  "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
7
- }>, never>, "onUpdate:modelValue"> & SelectSingleProps<Model, Data, OptionComponent, AllowClear>> & import('vue').PublicProps;
8
+ "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
9
+ }>, never>, "onUpdate:modelValue" | "onUpdate:query-options-error"> & SelectSingleProps<Model, Data, QueryParamsOptions, OptionComponent, AllowClear>> & import('vue').PublicProps;
8
10
  expose(exposed: import('vue').ShallowUnwrapRef<{
9
11
  blur: () => void;
10
12
  }>): void;
@@ -19,7 +21,10 @@ declare const _default: <Model extends number | string, Data extends DefaultData
19
21
  }): any;
20
22
  right?(_: {}): any;
21
23
  };
22
- emit: (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model) => void;
24
+ emit: {
25
+ (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
26
+ (e: "update:query-options-error", value: string | undefined): void;
27
+ };
23
28
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
24
29
  [key: string]: any;
25
30
  }> & {
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAC3I,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAiMxD,mBAAmB,CAAC;;;;oGAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCe,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;;cAzJzB,mBAAmB,4DAAoB,IAAI;;;;YA6LL,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3MvE,wBA2M4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAwFA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAC/J,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsNxD,mBAAmB,CAAC;;;;;;yJAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;;;YA7KzB,mBAAmB,0DAAoB,IAAI;YAC3C,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;;;;;YAiNxB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhOvE,wBAgO4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -8,7 +8,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
8
8
  modelValue: {},
9
9
  allowClear: { type: Boolean },
10
10
  searchModel: { type: Boolean },
11
- useQueryFnOptions: {},
12
11
  valueGetter: { type: Function },
13
12
  searchFn: { type: Function },
14
13
  useQueryFnDefault: {},
@@ -54,9 +53,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
54
53
  maxWidth: {},
55
54
  horizontalAlign: {},
56
55
  optionComponent: {},
57
- optionComponentProps: {}
56
+ optionComponentProps: {},
57
+ useQueryFnOptions: {},
58
+ queryParamsOptions: {},
59
+ noParamsOptions: { type: Boolean }
58
60
  },
59
- emits: ["update:modelValue"],
61
+ emits: ["update:modelValue", "update:query-options-error"],
60
62
  setup(__props, { expose: __expose, emit: __emit }) {
61
63
  const props = __props;
62
64
  const emit = __emit;
@@ -86,7 +88,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
88
  class: _ctx.$attrs.class,
87
89
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
88
90
  onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue(_ctx.allowClear ? null : $event)),
89
- onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? selectComponent.value?.setSearch(_ctx.modelValue) : void 0)
91
+ onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? selectComponent.value?.setSearch(_ctx.modelValue) : void 0),
92
+ "onUpdate:queryOptionsError": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:query-options-error", $event))
90
93
  }), createSlots({
91
94
  option: withCtx(({ option, selected, model }) => [
92
95
  renderSlot(_ctx.$slots, "option", {
@@ -11,9 +11,19 @@ export interface SelectOptionComponentProps<Option, OptionComponent extends Sele
11
11
  optionComponent?: OptionComponent;
12
12
  optionComponentProps?: OptionComponent extends Component<infer Props> ? Partial<Omit<Props, keyof SelectOptionProps<Option>>> : never;
13
13
  }
14
- export interface SelectProps<Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'>, SelectOptionComponentProps<Data, OptionComponent> {
15
- modelValue: Model[];
14
+ interface SelectPropsNoParams<Data extends DefaultData> {
16
15
  useQueryFnOptions: UseQueryEmpty<Data[]>;
16
+ queryParamsOptions?: never;
17
+ noParamsOptions: true;
18
+ }
19
+ interface SelectPropsWithParams<Data extends DefaultData, QueryParams> {
20
+ useQueryFnOptions: UseQueryWithParams<Data[], QueryParams>;
21
+ queryParamsOptions: QueryParams;
22
+ noParamsOptions?: never;
23
+ }
24
+ type SelectPropsOptions<Data extends DefaultData, QueryParams> = SelectPropsNoParams<Data> | SelectPropsWithParams<Data, QueryParams>;
25
+ export interface SelectProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'>, SelectOptionComponentProps<Data, OptionComponent>, Omit<SelectPropsOptions<Data, QueryParams>, 'modelValue'> {
26
+ modelValue: Model[];
17
27
  valueGetter: (value: Data) => Model;
18
28
  searchFn: (option: Data, search: string) => boolean;
19
29
  useQueryFnDefault?: UseQueryEmpty<Data>;
@@ -31,12 +41,12 @@ export interface SelectPrefixProps<Data extends DefaultData, OptionComponent ext
31
41
  loading?: boolean;
32
42
  disableClear?: boolean;
33
43
  }
34
- export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, OptionComponent>, 'modelValue' | 'disableClear'> {
44
+ export interface SelectSingleProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectProps<Model, Data, QueryParams, OptionComponent>, 'modelValue' | 'disableClear'> {
35
45
  modelValue: Model | null;
36
46
  allowClear?: boolean & AllowClear;
37
47
  searchModel?: boolean;
38
48
  }
39
- export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions' | 'filterOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
49
+ export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, QueryParams, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions' | 'queryParamsOptions' | 'filterOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
40
50
  useQueryFnOptions: UseQueryPaginated<Data, QueryParams>;
41
51
  useQueryFnPrefix?: UseQueryPaginated<Data, QueryParams>;
42
52
  isInvalidPage: (error: unknown) => boolean;
@@ -74,4 +84,5 @@ export interface SelectAsyncSingleProps<Model extends number | string, Data exte
74
84
  previewData?: Data;
75
85
  createdData?: Data;
76
86
  }
87
+ export {};
77
88
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/components/Select/types.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,0BAA0B,CAAA;AAC/D,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;AAElC,MAAM,MAAM,iBAAiB,CAAC,MAAM,IAAI;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAC,CAAA;AAE7G,MAAM,MAAM,qBAAqB,CAAC,MAAM,IAAI,SAAS,CAAC,iBAAiB,CAAC,MAAM,CAAC,CAAC,CAAA;AAEhF,MAAM,WAAW,0BAA0B,CAAC,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC;IACvG,eAAe,CAAC,EAAE,eAAe,CAAA;IACjC,oBAAoB,CAAC,EAAE,eAAe,SAAS,SAAS,CAAC,MAAM,KAAK,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,KAAK,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C;IACzD,UAAU,EAAE,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC,CAAA;IAChD,WAAW,EAAE,WAAW,CAAA;IACxB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAA;IACpB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAA;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,CAC3L,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;IACxI,UAAU,EAAE,KAAK,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,IAAI,CAAA;CACnB"}
@@ -28,6 +28,7 @@ import { default as WFormValidator } from '../components/Form/WFormValidator.vue
28
28
  import { default as WFormAsyncButtonGroup } from '../components/FormAsync/WFormAsyncButtonGroup.vue';
29
29
  import { default as WFormAsyncInput } from '../components/FormAsync/WFormAsyncInput.vue';
30
30
  import { default as WFormAsyncSelect } from '../components/FormAsync/WFormAsyncSelect.vue';
31
+ import { default as WFormAsyncSelectInfiniteSingle } from '../components/FormAsync/WFormAsyncSelectInfiniteSingle.vue';
31
32
  import { default as WFormAsyncSelectSingle } from '../components/FormAsync/WFormAsyncSelectSingle.vue';
32
33
  import { default as WFormAsyncToggle } from '../components/FormAsync/WFormAsyncToggle.vue';
33
34
  import { default as WHeaderBar } from '../components/HeaderBar/WHeaderBar.vue';
@@ -73,5 +74,5 @@ declare const _default: {
73
74
  install: (app: App | any) => void;
74
75
  };
75
76
  export default _default;
76
- export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectSingle, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
77
+ export { WActionsBar, WBottomSheet, WButton, WButtonAction, WButtonCopy, WButtonDropdown, WButtonGroup, WButtonMore, WButtonMoreItem, WButtonSelection, WButtonSelectionAction, WCheckbox, WChip, WClickOutside, WCounter, WDatePicker, WDatePickerSingle, WDropdown, WDropdownMenu, WExpansion, WExpansionItem, WFieldWrapper, WFilePicker, WFilterWrapper, WForm, WFormValidator, WFormAsyncButtonGroup, WFormAsyncInput, WFormAsyncSelect, WFormAsyncSelectInfiniteSingle, WFormAsyncSelectSingle, WFormAsyncToggle, WHeaderBar, WImageViewer, WInfiniteList, WInfiniteListPages, WInfoCard, WInfoCardNegative, WInput, WInputAsync, WInputDate, WInputOptions, WInputSuggest, WLink, WLinkArrow, WList, WListCard, WListCardField, WListHeader, WListHeaderItem, WMenuItem, WModal, WModalStepper, WModalWrapper, WNavBar, WNavItem, WNavItemExpand, WNavItemTransition, WNotify, WSelect, WSelectAsync, WSelectAsyncList, WSelectAsyncSingle, WSelectSingle, WSkeleton, WSpinner, WTabs, WTabsColumns, WToggle, WTooltip, WTooltipContainer, };
77
78
  //# sourceMappingURL=componentsPlugin.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,KAAK,MAAM,6BAA6B,CAAA;AAC/C,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,QAAQ,MAAM,mCAAmC,CAAA;AACxD,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,iBAAiB,MAAM,+CAA+C,CAAA;AAC7E,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,UAAU,MAAM,uCAAuC,CAAA;AAC9D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jB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
1
+ {"version":3,"file":"componentsPlugin.d.ts","sourceRoot":"","sources":["../../src/imports/componentsPlugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAC,GAAG,EAAC,MAAM,KAAK,CAAA;AAE5B,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,YAAY,MAAM,2CAA2C,CAAA;AACpE,OAAO,OAAO,MAAM,iCAAiC,CAAA;AACrD,OAAO,aAAa,MAAM,uCAAuC,CAAA;AACjE,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,YAAY,MAAM,sCAAsC,CAAA;AAC/D,OAAO,WAAW,MAAM,qCAAqC,CAAA;AAC7D,OAAO,eAAe,MAAM,yCAAyC,CAAA;AACrE,OAAO,gBAAgB,MAAM,0CAA0C,CAAA;AACvE,OAAO,sBAAsB,MAAM,gDAAgD,CAAA;AACnF,OAAO,SAAS,MAAM,qCAAqC,CAAA;AAC3D,OAAO,KAAK,MAAM,6BAA6B,CAAA;AAC/C,OAAO,aAAa,MAAM,6CAA6C,CAAA;AACvE,OAAO,QAAQ,MAAM,mCAAmC,CAAA;AACxD,OAAO,WAAW,MAAM,yCAAyC,CAAA;AACjE,OAAO,iBAAiB,MAAM,+CAA+C,CAAA;AAC7E,OAAO,SAAS,MAAM,qCAAqC,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,EACrB,eAAe,EACf,gBAAgB,EAChB,8BAA8B,EAC9B,sBAAsB,EACtB,gBAAgB,EAChB,UAAU,EACV,YAAY,EACZ,aAAa,EACb,kBAAkB,EAClB,SAAS,EACT,iBAAiB,EACjB,MAAM,EACN,WAAW,EACX,UAAU,EACV,aAAa,EACb,aAAa,EACb,KAAK,EACL,UAAU,EACV,KAAK,EACL,SAAS,EACT,cAAc,EACd,WAAW,EACX,eAAe,EACf,SAAS,EACT,MAAM,EACN,aAAa,EACb,aAAa,EACb,OAAO,EACP,QAAQ,EACR,cAAc,EACd,kBAAkB,EAClB,OAAO,EACP,OAAO,EACP,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,SAAS,EACT,QAAQ,EACR,KAAK,EACL,YAAY,EACZ,OAAO,EACP,QAAQ,EACR,iBAAiB,GAClB,CAAA"}
package/dist/main.js CHANGED
@@ -31,6 +31,7 @@ export { default as WFormValidator } from './components/Form/WFormValidator.vue.
31
31
  export { default as WFormAsyncButtonGroup } from './components/FormAsync/WFormAsyncButtonGroup.vue.js';
32
32
  export { default as WFormAsyncInput } from './components/FormAsync/WFormAsyncInput.vue.js';
33
33
  export { default as WFormAsyncSelect } from './components/FormAsync/WFormAsyncSelect.vue.js';
34
+ export { default as WFormAsyncSelectInfiniteSingle } from './components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js';
34
35
  export { default as WFormAsyncSelectSingle } from './components/FormAsync/WFormAsyncSelectSingle.vue.js';
35
36
  export { default as WFormAsyncToggle } from './components/FormAsync/WFormAsyncToggle.vue.js';
36
37
  export { default as WHeaderBar } from './components/HeaderBar/WHeaderBar.vue.js';
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.8.7",
7
+ "version": "0.8.9",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -222,6 +222,9 @@
222
222
  "./dist/components/FormAsync/WFormAsyncSelect.vue": {
223
223
  "import": "./dist/components/FormAsync/WFormAsyncSelect.vue.js"
224
224
  },
225
+ "./dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue": {
226
+ "import": "./dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js"
227
+ },
225
228
  "./dist/components/FormAsync/WFormAsyncSelectSingle.vue": {
226
229
  "import": "./dist/components/FormAsync/WFormAsyncSelectSingle.vue.js"
227
230
  },