eco-vue-js 0.6.5 → 0.6.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (24) hide show
  1. package/dist/components/Select/WSelect.vue.d.ts +3 -3
  2. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  3. package/dist/components/Select/WSelect.vue.js +9 -7
  4. package/dist/components/Select/WSelectAsync.vue.d.ts +3 -3
  5. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  6. package/dist/components/Select/WSelectAsync.vue.js +7 -5
  7. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +3 -3
  8. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  9. package/dist/components/Select/WSelectAsyncSingle.vue.js +3 -2
  10. package/dist/components/Select/WSelectSingle.vue.d.ts +3 -3
  11. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  12. package/dist/components/Select/WSelectSingle.vue.js +3 -2
  13. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +3 -19
  14. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  15. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +5 -3
  16. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +3 -18
  17. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  18. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +7 -7
  19. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts +3 -13
  20. package/dist/components/Select/components/SelectOptionPrefix.vue.d.ts.map +1 -1
  21. package/dist/components/Select/components/SelectOptionPrefix.vue.js +7 -7
  22. package/dist/components/Select/types.d.ts +43 -14
  23. package/dist/components/Select/types.d.ts.map +1 -1
  24. package/package.json +1 -1
@@ -1,6 +1,6 @@
1
- import { SelectProps } from './types';
1
+ import { SelectProps, SelectOptionComponent } from './types';
2
2
 
3
- declare const _default: <Option extends string | number = string>(__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: <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<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onFocus?: ((value: FocusEvent) => any) | undefined;
6
6
  onBlur?: ((value: FocusEvent) => any) | undefined;
@@ -15,7 +15,7 @@ declare const _default: <Option extends string | number = string>(__VLS_props: N
15
15
  onUnselect?: ((item: Option) => any) | undefined;
16
16
  "onUpdate:search"?: ((value: string) => any) | undefined;
17
17
  "onCreate:option"?: ((value: string) => any) | undefined;
18
- }, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onUpdate:search" | "onCreate:option"> & SelectProps<Option>> & import('vue').PublicProps;
18
+ }, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onUpdate:search" | "onCreate:option"> & SelectProps<Option, OptionComponent>> & import('vue').PublicProps;
19
19
  expose(exposed: import('vue').ShallowUnwrapRef<{
20
20
  focus: () => void;
21
21
  blur: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA6TA,OAAO,KAAK,EAAC,WAAW,EAAC,MAAM,SAAS,CAAA;yBAGvB,MAAM,SAAS,MAAM,GAAG,MAAM,wBACjC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,cAAc,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,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E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -19,7 +19,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
19
19
  search: {},
20
20
  options: {},
21
21
  emptyStub: {},
22
- optionComponent: {},
23
22
  disableClear: { type: Boolean },
24
23
  hidePrefix: { type: Boolean },
25
24
  allowCreate: { type: Boolean },
@@ -59,7 +58,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
59
58
  noZIndex: { type: Boolean },
60
59
  maxHeight: {},
61
60
  maxWidth: {},
62
- horizontalAlign: {}
61
+ horizontalAlign: {},
62
+ optionComponent: {},
63
+ optionComponentProps: {}
63
64
  },
64
65
  emits: ["select", "unselect", "update:search", "create:option", "focus", "blur"],
65
66
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -190,6 +191,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
190
191
  key: option,
191
192
  option,
192
193
  "option-component": _ctx.optionComponent,
194
+ "option-component-props": _ctx.optionComponentProps,
193
195
  loading: _ctx.loading,
194
196
  disabled: _ctx.disabled,
195
197
  "disable-clear": _ctx.disableClear,
@@ -203,7 +205,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
203
205
  })
204
206
  ]),
205
207
  _: 2
206
- }, 1032, ["option", "option-component", "loading", "disabled", "disable-clear", "onUnselect"]);
208
+ }, 1032, ["option", "option-component", "option-component-props", "loading", "disabled", "disable-clear", "onUnselect"]);
207
209
  }), 128)) : createCommentVNode("", true)
208
210
  ]),
209
211
  content: withCtx(() => [
@@ -235,11 +237,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
235
237
  selected,
236
238
  model: false
237
239
  }, () => [
238
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
240
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
239
241
  option,
240
242
  selected,
241
243
  model: false
242
- }, null, 8, ["option", "selected"]))
244
+ }), null, 16, ["option", "selected"]))
243
245
  ])
244
246
  ]),
245
247
  _: 2
@@ -265,11 +267,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
265
267
  selected: false,
266
268
  model: false
267
269
  }, () => [
268
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
270
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
269
271
  option: _ctx.search,
270
272
  selected: false,
271
273
  model: false
272
- }, null, 8, ["option"]))
274
+ }), null, 16, ["option"]))
273
275
  ])
274
276
  ]),
275
277
  _: 3
@@ -1,6 +1,6 @@
1
- import { SelectAsyncProps } from './types';
1
+ import { SelectAsyncProps, SelectOptionComponent } from './types';
2
2
 
3
- 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<{
3
+ declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams, 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
  onSelect?: ((item: Model) => any) | undefined;
6
6
  "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
@@ -13,7 +13,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
13
13
  onUnselect?: ((item: Model) => any) | undefined;
14
14
  "onUpdate:search"?: ((value: string) => any) | undefined;
15
15
  "onCreate:option"?: ((value: string) => any) | undefined;
16
- }, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onUpdate:search" | "onCreate:option"> & SelectAsyncProps<Model, Data, ApiError, QueryParams>> & import('vue').PublicProps;
16
+ }, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onUpdate:search" | "onCreate:option"> & SelectAsyncProps<Model, Data, ApiError, QueryParams, OptionComponent>> & import('vue').PublicProps;
17
17
  expose(exposed: import('vue').ShallowUnwrapRef<{
18
18
  focus: () => void;
19
19
  blur: () => void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAsOA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;yBAG5B,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;WA+fxD,cAAc,CAAC;;;;;;;;;;;;gKAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;gBA5ZV,MAAM,IAAI;mBACP,MAAM,IAAI;gBACb,CAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;iBACrC,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC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12,7 +12,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  useQueryFnPrefix: {},
13
13
  isInvalidPage: {},
14
14
  queryParams: {},
15
- optionComponent: {},
16
15
  previewData: {},
17
16
  createdData: {},
18
17
  valueGetter: { type: Function, default: (data) => data.id },
@@ -60,7 +59,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
59
  noZIndex: { type: Boolean },
61
60
  maxHeight: {},
62
61
  maxWidth: {},
63
- horizontalAlign: {}
62
+ horizontalAlign: {},
63
+ optionComponent: {},
64
+ optionComponentProps: {}
64
65
  },
65
66
  emits: ["select", "unselect", "update:search", "update:modelValue", "create:option"],
66
67
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -152,6 +153,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
153
  disabled: _ctx.disabled,
153
154
  loading: _ctx.loading || isFetchingPrefix.value,
154
155
  "option-component": _ctx.optionComponent,
156
+ "option-component-props": _ctx.optionComponentProps,
155
157
  "disable-clear": _ctx.disableClear,
156
158
  "preview-data": _ctx.previewData,
157
159
  "created-data": _ctx.createdData,
@@ -173,7 +175,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
173
175
  })
174
176
  ]),
175
177
  _: 3
176
- }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "disable-clear", "preview-data", "created-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
178
+ }, 8, ["use-query-fn", "model-value", "disabled", "loading", "option-component", "option-component-props", "disable-clear", "preview-data", "created-data", "value-getter", "value-query-key"])) : createCommentVNode("", true)
177
179
  ]),
178
180
  content: withCtx(() => [
179
181
  createVNode(_sfc_main$3, {
@@ -202,13 +204,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
202
204
  skeleton: skeletonList,
203
205
  model: false
204
206
  }, () => [
205
- (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
207
+ (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps(_ctx.optionComponentProps, {
206
208
  option,
207
209
  selected,
208
210
  skeleton: skeletonList,
209
211
  model: false,
210
212
  search: _ctx.search
211
- }, null, 8, ["option", "selected", "skeleton", "search"]))
213
+ }), null, 16, ["option", "selected", "skeleton", "search"]))
212
214
  ])
213
215
  ]),
214
216
  _: 3
@@ -1,6 +1,6 @@
1
- import { SelectAsyncSingleProps } from './types';
1
+ import { SelectAsyncSingleProps, SelectOptionComponent } from './types';
2
2
 
3
- declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams, AllowClear extends boolean = false>(__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, ApiError, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__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:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
6
6
  "onUpdate:search"?: ((value: string) => any) | undefined;
@@ -9,7 +9,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
9
9
  "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
10
10
  "onUpdate:search"?: ((value: string) => any) | undefined;
11
11
  "onCreate:option"?: ((value: string) => any) | undefined;
12
- }, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectAsyncSingleProps<Model, Data, ApiError, QueryParams, AllowClear>> & import('vue').PublicProps;
12
+ }, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectAsyncSingleProps<Model, Data, ApiError, QueryParams, OptionComponent, AllowClear>> & import('vue').PublicProps;
13
13
  expose(exposed: import('vue').ShallowUnwrapRef<{
14
14
  blur: () => void;
15
15
  }>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAA;yBAGlC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,UAAU,SAAS,OAAO,uBAC7G,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;WA4NxD,cAAc,CAAC;;;;;;;;sJAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;uBA7BQ,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;MA0BY;UAClC;YArNH,mBAAmB,0DAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;UAmNA;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtOvE,wBAsO4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAClK,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;WA4NxD,cAAc,CAAC;;;;;;;;uKAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;uBA7BQ,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;MA0BY;UAClC;YArNH,mBAAmB,0DAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;UAmNA;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtOvE,wBAsO4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -14,7 +14,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
14
14
  useQueryFnPrefix: {},
15
15
  isInvalidPage: { type: Function },
16
16
  queryParams: {},
17
- optionComponent: {},
18
17
  valueGetter: { type: Function },
19
18
  valueQueryKey: {},
20
19
  queryOptions: {},
@@ -58,7 +57,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
57
  noZIndex: { type: Boolean },
59
58
  maxHeight: {},
60
59
  maxWidth: {},
61
- horizontalAlign: {}
60
+ horizontalAlign: {},
61
+ optionComponent: {},
62
+ optionComponentProps: {}
62
63
  },
63
64
  emits: ["update:modelValue", "update:search", "create:option"],
64
65
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -1,6 +1,6 @@
1
- import { SelectSingleProps } from './types';
1
+ import { SelectSingleProps, SelectOptionComponent } from './types';
2
2
 
3
- declare const _default: <Option extends string | number, AllowClear extends boolean = false>(__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: <Option extends string | number, OptionComponent extends SelectOptionComponent<Option>, AllowClear extends boolean = false>(__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:modelValue"?: ((value: AllowClear extends true ? Option | null : Option) => any) | undefined;
6
6
  "onUpdate:search"?: ((value: string) => any) | undefined;
@@ -9,7 +9,7 @@ declare const _default: <Option extends string | number, AllowClear extends bool
9
9
  "onUpdate:modelValue"?: ((value: AllowClear extends true ? Option | null : Option) => any) | undefined;
10
10
  "onUpdate:search"?: ((value: string) => any) | undefined;
11
11
  "onCreate:option"?: ((value: string) => any) | undefined;
12
- }, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectSingleProps<Option, AllowClear>> & import('vue').PublicProps;
12
+ }, never>, "onUpdate:modelValue" | "onUpdate:search" | "onCreate:option"> & SelectSingleProps<Option, OptionComponent, AllowClear>> & import('vue').PublicProps;
13
13
  expose(exposed: import('vue').ShallowUnwrapRef<{
14
14
  blur: () => void;
15
15
  }>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AA+FA,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAA;yBAG7B,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,UAAU,SAAS,OAAO,uBAC7D,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;WAuOxD,cAAc,CAAC;;;;;;;;qHAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;uBA7BQ,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;MA0BY;UAClC;YAhOH,mBAAmB,4DAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;UA8NA;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;AAM5E,KAAK,cAAc,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":"AA+FA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,eAAe,SAAS,qBAAqB,CAAC,MAAM,CAAC,EAAE,UAAU,SAAS,OAAO,uBACpH,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;WAuOxD,cAAc,CAAC;;;;;;;;sIAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;WACH,UAAU;uBA7BQ,GAAG;0BACA,GAAG;;;;;YACL,GAAG;uBACJ,GAAG;MA0BY;UAClC;YAhOH,mBAAmB,4DAAoB,IAAI;YAC3C,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;UA8NA;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -11,7 +11,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
11
11
  search: {},
12
12
  options: {},
13
13
  emptyStub: {},
14
- optionComponent: {},
15
14
  hidePrefix: { type: Boolean },
16
15
  allowCreate: { type: Boolean },
17
16
  hideOptionIcon: { type: Boolean },
@@ -50,7 +49,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
50
49
  noZIndex: { type: Boolean },
51
50
  maxHeight: {},
52
51
  maxWidth: {},
53
- horizontalAlign: {}
52
+ horizontalAlign: {},
53
+ optionComponent: {},
54
+ optionComponentProps: {}
54
55
  },
55
56
  emits: ["update:modelValue", "update:search", "create:option"],
56
57
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -1,6 +1,6 @@
1
- import { Component } from 'vue';
1
+ import { SelectAsyncPrefixProps, SelectOptionComponent } from '../types';
2
2
 
3
- 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<{
3
+ declare const _default: <Model extends number | string, Data extends DefaultData, ApiError, QueryParams, 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
  "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
6
6
  onUnselect?: ((value: Model) => any) | undefined;
@@ -9,23 +9,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
9
9
  "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
10
10
  onUnselect?: ((value: Model) => any) | undefined;
11
11
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
12
- }, never>, "onUpdate:modelValue" | "onUnselect" | "onUpdate:fetching"> & {
13
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
14
- modelValue: Model[];
15
- disabled?: boolean;
16
- loading?: boolean;
17
- optionComponent?: Component<{
18
- option: Data;
19
- selected?: boolean;
20
- model?: boolean;
21
- }>;
22
- disableClear?: boolean;
23
- previewData?: Data[];
24
- createdData?: Data[];
25
- valueGetter: (value: Data) => Model;
26
- valueQueryKey: string;
27
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
28
- }> & import('vue').PublicProps;
12
+ }, never>, "onUpdate:modelValue" | "onUnselect" | "onUpdate:fetching"> & SelectAsyncPrefixProps<Model, Data, ApiError, QueryParams, OptionComponent>> & import('vue').PublicProps;
29
13
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
30
14
  attrs: any;
31
15
  slots: ReturnType<() => Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AA4FA,OAAO,EAAuB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;yBAMxD,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;WAgMxD,cAAc,CAAC;;;;;;;;;oBA1LX,iBAAiB,CAAC,IAAI,EAAE,QAAQ,EAAE,WAAW,CAAC;oBAC9C,KAAK,EAAE;mBACR,OAAO;kBACR,OAAO;0BACC,SAAS,CAAC;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;YAAC,KAAK,CAAC,EAAE,OAAO,CAAA;SAAC,CAAC;uBACj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AAO,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;WAoLxD,cAAc,CAAC;;;;;;;;wJAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;kBAhKR,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAAlD,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;MAgKnB;UAClC;YA/KH,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;UA6KL;;;;YAGC,OAAO,CAAC,OAAO,WAAW,CAAC;;AA9LvE,wBA8L4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -15,13 +15,14 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
15
15
  modelValue: {},
16
16
  disabled: { type: Boolean },
17
17
  loading: { type: Boolean },
18
- optionComponent: {},
19
18
  disableClear: { type: Boolean },
20
19
  previewData: {},
21
20
  createdData: {},
22
21
  valueGetter: { type: Function },
23
22
  valueQueryKey: {},
24
- queryOptions: {}
23
+ queryOptions: {},
24
+ optionComponent: {},
25
+ optionComponentProps: {}
25
26
  },
26
27
  emits: ["unselect", "update:fetching", "update:modelValue"],
27
28
  setup(__props, { emit: __emit }) {
@@ -41,6 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  "use-query-fn": _ctx.useQueryFn,
42
43
  "query-params": { page: 1, [_ctx.valueQueryKey]: valueInString.value },
43
44
  "option-component": _ctx.optionComponent,
45
+ "option-component-props": _ctx.optionComponentProps,
44
46
  "disable-clear": _ctx.disableClear,
45
47
  loading: _ctx.loading,
46
48
  disabled: _ctx.disabled,
@@ -58,7 +60,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
60
  })
59
61
  ]),
60
62
  _: 3
61
- }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "created-data", "value-getter", "query-options"]),
63
+ }, 8, ["use-query-fn", "query-params", "option-component", "option-component-props", "disable-clear", "loading", "disabled", "preview-data", "created-data", "value-getter", "query-options"]),
62
64
  _ctx.modelValue.length > PAGE_LENGTH ? (openBlock(), createElementBlock("div", _hoisted_1, [
63
65
  createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
64
66
  !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
@@ -1,6 +1,6 @@
1
- import { Component } from 'vue';
1
+ import { SelectAsyncPrefixPageProps, SelectOptionComponent } from '../types';
2
2
 
3
- declare const _default: <Model extends string | number, 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: <Model extends string | number, Data extends DefaultData, ApiError, QueryParams, 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
  onUnselect?: ((value: Model) => any) | undefined;
6
6
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
@@ -9,22 +9,7 @@ declare const _default: <Model extends string | number, Data extends DefaultData
9
9
  onUnselect?: ((value: Model) => any) | undefined;
10
10
  "onUpdate:pages-count"?: ((value: number) => any) | undefined;
11
11
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
12
- }, never>, "onUnselect" | "onUpdate:pages-count" | "onUpdate:fetching"> & {
13
- useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
14
- queryParams: QueryParams;
15
- disabled?: boolean;
16
- loading?: boolean;
17
- optionComponent?: Component<{
18
- option: Data;
19
- selected?: boolean;
20
- model?: boolean;
21
- }>;
22
- disableClear?: boolean;
23
- previewData?: Data[];
24
- createdData?: Data[];
25
- valueGetter: (value: Data) => Model;
26
- queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
27
- }> & import('vue').PublicProps;
12
+ }, never>, "onUnselect" | "onUpdate:pages-count" | "onUpdate:fetching"> & SelectAsyncPrefixPageProps<Model, Data, ApiError, QueryParams, OptionComponent>> & import('vue').PublicProps;
28
13
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
29
14
  attrs: any;
30
15
  slots: ReturnType<() => Readonly<{
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAkHA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;yBAI1D,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,QAAQ,EAAE,WAAW,eACjF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CA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AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, computed, toRef, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, createSlots, withCtx, createElementVNode, withModifiers, createVNode, createCommentVNode } from 'vue';
1
+ import { defineComponent, computed, toRef, watch, onBeforeUnmount, openBlock, createElementBlock, Fragment, renderList, unref, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, mergeProps, createSlots, withCtx, createElementVNode, withModifiers, createVNode, createCommentVNode } from 'vue';
2
2
  import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _hoisted_1 = ["onClick"];
@@ -10,12 +10,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  queryParams: {},
11
11
  disabled: { type: Boolean },
12
12
  loading: { type: Boolean },
13
- optionComponent: {},
14
13
  disableClear: { type: Boolean },
15
14
  previewData: {},
16
15
  createdData: {},
17
16
  valueGetter: { type: Function },
18
- queryOptions: {}
17
+ queryOptions: {},
18
+ optionComponent: {},
19
+ optionComponentProps: {}
19
20
  },
20
21
  emits: ["unselect", "update:pages-count", "update:fetching"],
21
22
  setup(__props, { emit: __emit }) {
@@ -55,13 +56,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
55
56
  option,
56
57
  skeleton: false
57
58
  }, () => [
58
- _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
59
- key: 0,
59
+ _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
60
60
  option,
61
61
  selected: true,
62
62
  model: true,
63
63
  skeleton: false
64
- }, createSlots({ _: 2 }, [
64
+ }), createSlots({ _: 2 }, [
65
65
  !_ctx.disableClear && !_ctx.disabled ? {
66
66
  name: "default",
67
67
  fn: withCtx(() => [
@@ -79,7 +79,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
79
  ]),
80
80
  key: "0"
81
81
  } : void 0
82
- ]), 1032, ["option"])) : createCommentVNode("", true)
82
+ ]), 1040, ["option"])) : createCommentVNode("", true)
83
83
  ]),
84
84
  !_ctx.optionComponent && !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
85
85
  key: 0,
@@ -1,21 +1,11 @@
1
- import { Component } from 'vue';
1
+ import { SelectPrefixProps, SelectOptionComponent } from '../types';
2
2
 
3
- declare const _default: <Item extends string | number = string>(__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: <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<{
4
4
  props: __VLS_Prettify<Pick<Partial<{}> & Omit<{
5
5
  onUnselect?: (() => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{}>> & {
7
7
  onUnselect?: (() => any) | undefined;
8
- }, never>, "onUnselect"> & {
9
- option: Item;
10
- optionComponent?: Component<{
11
- option: Item;
12
- selected?: boolean;
13
- model?: boolean;
14
- }>;
15
- disabled?: boolean;
16
- loading?: boolean;
17
- disableClear?: boolean;
18
- }> & import('vue').PublicProps;
8
+ }, never>, "onUnselect"> & SelectPrefixProps<Option, OptionComponent>> & import('vue').PublicProps;
19
9
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
20
10
  attrs: any;
21
11
  slots: ReturnType<() => {
@@ -1 +1 @@
1
- {"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AAAA,OAmEO,KAAK,EAAC,SAAS,EAAC,MAAM,KAAK,CAAA;yBAIjB,IAAI,SAAS,MAAM,GAAG,MAAM,wBAC/B,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;WA+KxD,cAAc,CAAC;;;;;gBA3Kf,IAAI;0BACM,SAAS,CAAC;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;YAAC,KAAK,CAAC,EAAE,OAAO,CAAA;SAAC,CAAC;mBACrE,OAAO;kBACR,OAAO;uBACF,OAAO;KAuK0D,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;wBArBQ,GAAG;MAqBY;UAClC,KAtKH,UAAU,KAAG,IAAI,MAsK0B;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AAzLvE,wBAyL4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"SelectOptionPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectOptionPrefix.vue"],"names":[],"mappings":"AA+DA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,UAAU,CAAA;yBAGrD,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,iBACvF,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAyKxD,cAAc,CAAC;;;;yEAAyD,CAAC,4BAA2B;oBAC3F,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;WACH,UAAU;wBArBQ,GAAG;MAqBY;UAClC,KAtKH,UAAU,KAAG,IAAI,MAsK0B;;;;YAGL,OAAO,CAAC,OAAO,WAAW,CAAC;;AAnLvE,wBAmL4E;AAM5E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,14 +1,15 @@
1
- import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, withCtx, withModifiers, createVNode, unref, createCommentVNode } from 'vue';
1
+ import { defineComponent, openBlock, createElementBlock, normalizeClass, renderSlot, createBlock, resolveDynamicComponent, mergeProps, withCtx, withModifiers, createVNode, unref, createCommentVNode } from 'vue';
2
2
  import IconCancel from '../../../assets/icons/default/IconCancel.svg.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
5
5
  __name: "SelectOptionPrefix",
6
6
  props: {
7
7
  option: {},
8
- optionComponent: {},
9
8
  disabled: { type: Boolean },
10
9
  loading: { type: Boolean },
11
- disableClear: { type: Boolean }
10
+ disableClear: { type: Boolean },
11
+ optionComponent: {},
12
+ optionComponentProps: {}
12
13
  },
13
14
  emits: ["unselect"],
14
15
  setup(__props) {
@@ -20,12 +21,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
20
21
  }])
21
22
  }, [
22
23
  renderSlot(_ctx.$slots, "option", {}, () => [
23
- _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), {
24
- key: 0,
24
+ _ctx.optionComponent ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.optionComponent), mergeProps({ key: 0 }, _ctx.optionComponentProps, {
25
25
  option: _ctx.option,
26
26
  selected: true,
27
27
  model: true
28
- }, {
28
+ }), {
29
29
  default: withCtx(() => [
30
30
  !_ctx.disableClear ? (openBlock(), createElementBlock("button", {
31
31
  key: 0,
@@ -42,7 +42,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
42
  ], 34)) : createCommentVNode("", true)
43
43
  ]),
44
44
  _: 1
45
- }, 8, ["option"])) : createCommentVNode("", true)
45
+ }, 16, ["option"])) : createCommentVNode("", true)
46
46
  ]),
47
47
  !_ctx.optionComponent && !_ctx.disableClear ? (openBlock(), createElementBlock("button", {
48
48
  key: 0,
@@ -1,43 +1,72 @@
1
1
  import { InputSuggestProps } from '../Input/types';
2
2
  import { Component } from 'vue';
3
3
 
4
- export interface SelectProps<Option extends string | number> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'> {
4
+ export type SelectOptionProps<Option> = {
5
+ option: Option;
6
+ selected?: boolean;
7
+ model?: boolean;
8
+ };
9
+ export type SelectOptionComponent<Option> = Component<SelectOptionProps<Option>>;
10
+ export interface SelectOptionComponentProps<Option, OptionComponent extends SelectOptionComponent<Option>> {
11
+ optionComponent?: OptionComponent;
12
+ optionComponentProps?: OptionComponent extends Component<infer Props> ? Partial<Omit<Props, keyof SelectOptionProps<Option>>> : never;
13
+ }
14
+ export interface SelectProps<Option extends string | number, OptionComponent extends SelectOptionComponent<Option>> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'>, SelectOptionComponentProps<Option, OptionComponent> {
5
15
  modelValue: Option[];
6
16
  search: string;
7
17
  options: Option[];
8
18
  emptyStub?: string;
9
- optionComponent?: Component<{
10
- option: Option;
11
- selected?: boolean;
12
- model?: boolean;
13
- }>;
14
19
  disableClear?: boolean;
15
20
  hidePrefix?: boolean;
16
21
  allowCreate?: boolean;
17
22
  hideOptionIcon?: boolean;
18
23
  }
19
- export interface SelectSingleProps<Option extends string | number, AllowClear extends boolean> extends Omit<SelectProps<Option>, 'modelValue' | 'disableClear'> {
24
+ export interface SelectPrefixProps<Option extends string | number, OptionComponent extends SelectOptionComponent<Option>> extends SelectOptionComponentProps<Option, OptionComponent> {
25
+ option: Option;
26
+ disabled?: boolean;
27
+ loading?: boolean;
28
+ disableClear?: boolean;
29
+ }
30
+ export interface SelectSingleProps<Option extends string | number, OptionComponent extends SelectOptionComponent<Option>, AllowClear extends boolean> extends Omit<SelectProps<Option, OptionComponent>, 'modelValue' | 'disableClear'> {
20
31
  modelValue: Option | null;
21
32
  allowClear?: boolean & AllowClear;
22
33
  searchModel?: boolean;
23
34
  }
24
- export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams> extends Omit<SelectProps<Model>, 'options' | 'optionComponent'> {
35
+ export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Component>, 'options' | 'optionComponent' | 'optionComponentProps'>, SelectOptionComponentProps<Data, OptionComponent> {
25
36
  useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
26
37
  useQueryFnPrefix?: UseQueryPaginated<Data, ApiError, QueryParams>;
27
38
  isInvalidPage: (error: unknown) => boolean;
28
39
  queryParams: QueryParams;
29
- optionComponent?: Component<{
30
- option: Data;
31
- selected?: boolean;
32
- model?: boolean;
33
- }>;
34
40
  previewData?: Data[];
35
41
  createdData?: Data[];
36
42
  valueGetter?: (data: Data) => Model;
37
43
  valueQueryKey?: string;
38
44
  queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
39
45
  }
40
- export interface SelectAsyncSingleProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams, AllowClear extends boolean> extends Omit<SelectAsyncProps<Model, Data, ApiError, QueryParams>, 'modelValue' | 'disableClear' | 'previewData' | 'createdData'> {
46
+ export interface SelectAsyncPrefixProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
47
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
48
+ modelValue: Model[];
49
+ disabled?: boolean;
50
+ loading?: boolean;
51
+ disableClear?: boolean;
52
+ previewData?: Data[];
53
+ createdData?: Data[];
54
+ valueGetter: (value: Data) => Model;
55
+ valueQueryKey: string;
56
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
57
+ }
58
+ export interface SelectAsyncPrefixPageProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends SelectOptionComponentProps<Data, OptionComponent> {
59
+ useQueryFn: UseQueryPaginated<Data, ApiError, QueryParams>;
60
+ queryParams: QueryParams;
61
+ disabled?: boolean;
62
+ loading?: boolean;
63
+ disableClear?: boolean;
64
+ previewData?: Data[];
65
+ createdData?: Data[];
66
+ valueGetter: (value: Data) => Model;
67
+ queryOptions?: Partial<Parameters<UseQueryPaginated<Data, ApiError, QueryParams>>[1]>;
68
+ }
69
+ export interface SelectAsyncSingleProps<Model extends number | string, Data extends DefaultData, ApiError, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean> extends Omit<SelectAsyncProps<Model, Data, ApiError, QueryParams, OptionComponent>, 'modelValue' | 'disableClear' | 'previewData' | 'createdData'> {
41
70
  modelValue: Model | null;
42
71
  allowClear?: boolean & AllowClear;
43
72
  searchModel?: boolean;
@@ -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,WAAW,WAAW,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,CAAE,SAAQ,IAAI,CAAC,iBAAiB,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,GAAG,WAAW,CAAC;IAC7I,UAAU,EAAE,MAAM,EAAE,CAAA;IACpB,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,EAAE,MAAM,EAAE,CAAA;IACjB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,eAAe,CAAC,EAAE,SAAS,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,QAAQ,CAAC,EAAE,OAAO,CAAC;QAAC,KAAK,CAAC,EAAE,OAAO,CAAA;KAAC,CAAC,CAAA;IAClF,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,cAAc,CAAC,EAAE,OAAO,CAAA;CACzB;AAED,MAAM,WAAW,iBAAiB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM,EAAE,UAAU,SAAS,OAAO,CAAE,SAAQ,IAAI,CAAC,WAAW,CAAC,MAAM,CAAC,EAAE,YAAY,GAAG,cAAc,CAAC;IAC7J,UAAU,EAAE,MAAM,GAAG,IAAI,CAAA;IACzB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;CACtB;AAED,MAAM,WAAW,gBAAgB,CAAC,KAAK,S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B,WAAW,CAAC,EAAE,IAAI,CAAA;CACnB"}
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.6.5",
7
+ "version": "0.6.6",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",