eco-vue-js 0.3.85 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  2. package/dist/components/Form/WFormValidator.vue.js +3 -3
  3. package/dist/components/Form/models/utils.d.ts.map +1 -1
  4. package/dist/components/HeaderBar/WHeaderBar.vue.d.ts +1 -1
  5. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +13 -10
  6. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  7. package/dist/components/InfiniteList/WInfiniteList.vue.js +4 -2
  8. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +13 -10
  9. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  10. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +4 -2
  11. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +13 -10
  12. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  13. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +6 -4
  14. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts +13 -10
  15. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.d.ts.map +1 -1
  16. package/dist/components/InfiniteList/components/InfiniteListPageSelection.vue.js +6 -5
  17. package/dist/components/Input/WInputOptions.vue.d.ts.map +1 -1
  18. package/dist/components/Select/WSelect.vue.d.ts +3 -3
  19. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  20. package/dist/components/Select/WSelectAsync.vue.d.ts +34 -25
  21. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  22. package/dist/components/Select/WSelectAsync.vue.js +20 -15
  23. package/dist/components/Select/WSelectAsyncList.vue.d.ts +28 -22
  24. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  25. package/dist/components/Select/WSelectAsyncList.vue.js +8 -6
  26. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +22 -16
  27. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  28. package/dist/components/Select/WSelectAsyncSingle.vue.js +7 -3
  29. package/dist/components/Select/WSelectSingle.vue.d.ts +3 -3
  30. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  31. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +25 -22
  32. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  33. package/dist/components/Select/components/SelectAsyncList.vue.js +34 -32
  34. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts +22 -16
  35. package/dist/components/Select/components/SelectAsyncPrefix.vue.d.ts.map +1 -1
  36. package/dist/components/Select/components/SelectAsyncPrefix.vue.js +8 -5
  37. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts +10 -7
  38. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.d.ts.map +1 -1
  39. package/dist/components/Select/components/SelectAsyncPrefixPage.vue.js +5 -4
  40. package/dist/components/Select/components/SelectOption.vue.d.ts +149 -62
  41. package/dist/components/Select/components/SelectOption.vue.d.ts.map +1 -1
  42. package/dist/components/Tabs/WTabs.vue.js +2 -2
  43. package/dist/components/Toggle/WToggle.vue.d.ts.map +1 -1
  44. package/dist/types/global.d.ts +5 -0
  45. package/package.json +14 -14
@@ -1,11 +1,12 @@
1
- declare const _default: <Data extends DefaultData>(__VLS_props: {
2
- onSelect?: ((value: number) => any) | undefined;
1
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
+ onSelect?: ((value: Model) => any) | undefined;
3
3
  transition?: boolean | undefined;
4
4
  disabled?: boolean | undefined;
5
5
  loading?: boolean | undefined;
6
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
7
- modelValue: number[];
8
- onUnselect?: ((value: number) => any) | undefined;
6
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
7
+ modelValue: Model[];
8
+ valueGetter: (data: Data) => Model;
9
+ onUnselect?: ((value: Model) => any) | undefined;
9
10
  scrollingElement?: Element | null | undefined;
10
11
  queryParams: QueryParams;
11
12
  selectOnly?: boolean | undefined;
@@ -35,10 +36,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
35
36
  }) => void) | undefined;
36
37
  };
37
38
  emit: {
38
- (e: 'select', value: number): void;
39
- (e: 'unselect', value: number): void;
39
+ (e: 'select', value: Model): void;
40
+ (e: 'unselect', value: Model): void;
40
41
  (e: 'update:count', value: number): void;
41
- (e: 'update:modelValue', value: number[]): void;
42
+ (e: 'update:modelValue', value: Model[]): void;
42
43
  (e: 'create:option'): void;
43
44
  };
44
45
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
@@ -47,13 +48,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
47
48
  selectCursor: () => void;
48
49
  }>) => void) | undefined, __VLS_setup?: Promise<{
49
50
  props: {
50
- onSelect?: ((value: number) => any) | undefined;
51
+ onSelect?: ((value: Model) => any) | undefined;
51
52
  transition?: boolean | undefined;
52
53
  disabled?: boolean | undefined;
53
54
  loading?: boolean | undefined;
54
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
55
- modelValue: number[];
56
- onUnselect?: ((value: number) => any) | undefined;
55
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
56
+ modelValue: Model[];
57
+ valueGetter: (data: Data) => Model;
58
+ onUnselect?: ((value: Model) => any) | undefined;
57
59
  scrollingElement?: Element | null | undefined;
58
60
  queryParams: QueryParams;
59
61
  selectOnly?: boolean | undefined;
@@ -88,10 +90,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
88
90
  }) => void) | undefined;
89
91
  };
90
92
  emit: {
91
- (e: 'select', value: number): void;
92
- (e: 'unselect', value: number): void;
93
+ (e: 'select', value: Model): void;
94
+ (e: 'unselect', value: Model): void;
93
95
  (e: 'update:count', value: number): void;
94
- (e: 'update:modelValue', value: number[]): void;
96
+ (e: 'update:modelValue', value: Model[]): void;
95
97
  (e: 'create:option'): void;
96
98
  };
97
99
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -99,13 +101,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
99
101
  }> & {
100
102
  __ctx?: {
101
103
  props: {
102
- onSelect?: ((value: number) => any) | undefined;
104
+ onSelect?: ((value: Model) => any) | undefined;
103
105
  transition?: boolean | undefined;
104
106
  disabled?: boolean | undefined;
105
107
  loading?: boolean | undefined;
106
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
107
- modelValue: number[];
108
- onUnselect?: ((value: number) => any) | undefined;
108
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
109
+ modelValue: Model[];
110
+ valueGetter: (data: Data) => Model;
111
+ onUnselect?: ((value: Model) => any) | undefined;
109
112
  scrollingElement?: Element | null | undefined;
110
113
  queryParams: QueryParams;
111
114
  selectOnly?: boolean | undefined;
@@ -140,10 +143,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
140
143
  }) => void) | undefined;
141
144
  };
142
145
  emit: {
143
- (e: 'select', value: number): void;
144
- (e: 'unselect', value: number): void;
146
+ (e: 'select', value: Model): void;
147
+ (e: 'unselect', value: Model): void;
145
148
  (e: 'update:count', value: number): void;
146
- (e: 'update:modelValue', value: number[]): void;
149
+ (e: 'update:modelValue', value: Model[]): void;
147
150
  (e: 'create:option'): void;
148
151
  };
149
152
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"AA0FA;;;;;;;gBAoac,MAAM,EAAE;;;iBAEP,WAAW;;;;;2BACD,OAAO,KAAK,OAAO;;;;;;;;WAmBrC,GAAG;;;;sBApU0C,OAAO;sBAAY,OAAO;cAAM,IAAI;;;;sBAApC,OAAO;sBAAY,OAAO;cAAM,IAAI;;;YArFlF,QAAQ,SAAS,MAAM,GAAG,IAAI;YAC9B,UAAU,SAAS,MA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BA1TU;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAApE;gBAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBArFlF,QAAQ,SAAS,KAAK,GAAG,IAAI;gBAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;gBAC1C,eAAe,GAAG,IAAI;;;;AA9B5B,wBA8a2E"}
@@ -22,7 +22,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  selectOnly: { type: Boolean },
23
23
  unselectOnly: { type: Boolean },
24
24
  allowCreate: { type: Boolean },
25
- hideOptionIcon: { type: Boolean }
25
+ hideOptionIcon: { type: Boolean },
26
+ valueGetter: { type: Function }
26
27
  },
27
28
  emits: ["select", "unselect", "update:count", "update:modelValue", "create:option"],
28
29
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -32,12 +33,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
33
  const cursorPrevious = ref(void 0);
33
34
  const cursorNext = ref(void 0);
34
35
  const isCursorLocked = ref(false);
35
- const loadingOptionId = ref(void 0);
36
+ const loadingOption = ref(void 0);
36
37
  const firstItem = ref();
37
38
  const lastItem = ref();
38
39
  const count = ref(0);
39
- const setLoadingOptionId = (value) => {
40
- loadingOptionId.value = value;
40
+ const setLoadingOption = (value) => {
41
+ loadingOption.value = value;
41
42
  };
42
43
  const unlockCursor = debounce(() => {
43
44
  isCursorLocked.value = false;
@@ -51,9 +52,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
52
  return;
52
53
  cursor.value = value;
53
54
  };
54
- const updateCursors = (previous, next) => {
55
- cursorPrevious.value = previous;
56
- cursorNext.value = next;
55
+ const updateCursors = (event) => {
56
+ cursorPrevious.value = event.previous;
57
+ cursorNext.value = event.next;
57
58
  };
58
59
  const cursorUp = () => {
59
60
  if (props.disabled || cursorPrevious.value === void 0)
@@ -75,8 +76,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
75
76
  emit("create:option");
76
77
  return;
77
78
  }
78
- if (cursor.value > 0) {
79
- setLoadingOptionId(cursor.value);
79
+ if (cursor.value) {
80
+ setLoadingOption(cursor.value);
80
81
  if (props.modelValue.includes(cursor.value))
81
82
  emit("unselect", cursor.value);
82
83
  else
@@ -101,6 +102,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
101
102
  "empty-stub": _ctx.emptyStub,
102
103
  "select-only": _ctx.selectOnly,
103
104
  "unselect-only": _ctx.unselectOnly,
105
+ "value-getter": _ctx.valueGetter,
104
106
  "hide-page-title": "",
105
107
  "header-top-ignore": "",
106
108
  "min-height": "",
@@ -112,15 +114,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
112
114
  }, {
113
115
  default: withCtx(({ item, skeleton, previous, next, first, last, resetting }) => [
114
116
  createVNode(_sfc_main$2, {
115
- "is-selected": !skeleton && _ctx.modelValue.includes(item.id),
116
- "is-cursor": !skeleton && item.id === cursor.value,
117
- loading: _ctx.loading && loadingOptionId.value === item.id,
117
+ "is-selected": !skeleton && _ctx.modelValue.includes(_ctx.valueGetter(item)),
118
+ "is-cursor": !skeleton && _ctx.valueGetter(item) === cursor.value,
119
+ loading: _ctx.loading && loadingOption.value === _ctx.valueGetter(item),
118
120
  skeleton,
119
121
  scroll: isCursorLocked.value,
120
122
  first,
121
123
  last,
122
- previous: first && props.allowCreate ? null : previous?.id,
123
- next: last && props.allowCreate ? null : next?.id,
124
+ previous: first && props.allowCreate ? null : previous ? _ctx.valueGetter(previous) : void 0,
125
+ next: last && props.allowCreate ? null : next ? _ctx.valueGetter(next) : void 0,
124
126
  "is-no-cursor": cursor.value === void 0,
125
127
  "hide-option-icon": _ctx.hideOptionIcon,
126
128
  class: normalizeClass({
@@ -128,21 +130,21 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
128
130
  "pb-4": !_ctx.noPadding && last && !_ctx.allowCreate
129
131
  }),
130
132
  onSelect: ($event) => {
131
- _ctx.$emit("select", item.id);
132
- setLoadingOptionId(item.id);
133
+ _ctx.$emit("select", _ctx.valueGetter(item));
134
+ setLoadingOption(_ctx.valueGetter(item));
133
135
  },
134
136
  onUnselect: ($event) => {
135
- _ctx.$emit("unselect", item.id);
136
- setLoadingOptionId(item.id);
137
+ _ctx.$emit("unselect", _ctx.valueGetter(item));
138
+ setLoadingOption(_ctx.valueGetter(item));
137
139
  },
138
- onMouseenter: ($event) => !skeleton && setCursor(item.id),
139
- "onUpdate:cursor": ($event) => setCursor(item.id),
140
- "onUpdate:isCursor": ($event) => updateCursors($event.previous, $event.next),
140
+ onMouseenter: ($event) => !skeleton && setCursor(_ctx.valueGetter(item)),
141
+ "onUpdate:cursor": ($event) => setCursor(_ctx.valueGetter(item)),
142
+ "onUpdate:isCursor": updateCursors,
141
143
  "onUpdate:previous": _cache[0] || (_cache[0] = ($event) => cursorPrevious.value = $event),
142
144
  "onUpdate:next": _cache[1] || (_cache[1] = ($event) => cursorNext.value = $event),
143
- onUnmounted: ($event) => resetting ? cursor.value = void 0 : cursor.value = next?.id,
144
- "onUpdate:first": ($event) => firstItem.value = item.id,
145
- "onUpdate:last": ($event) => lastItem.value = item.id
145
+ onUnmounted: ($event) => resetting ? cursor.value = void 0 : cursor.value = next ? _ctx.valueGetter(next) : void 0,
146
+ "onUpdate:first": ($event) => firstItem.value = _ctx.valueGetter(item),
147
+ "onUpdate:last": ($event) => lastItem.value = _ctx.valueGetter(item)
146
148
  }, {
147
149
  default: withCtx(({ selected }) => [
148
150
  renderSlot(_ctx.$slots, "default", {
@@ -152,15 +154,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
152
154
  })
153
155
  ]),
154
156
  _: 2
155
- }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUpdate:isCursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
157
+ }, 1032, ["is-selected", "is-cursor", "loading", "skeleton", "scroll", "first", "last", "previous", "next", "is-no-cursor", "hide-option-icon", "class", "onSelect", "onUnselect", "onMouseenter", "onUpdate:cursor", "onUnmounted", "onUpdate:first", "onUpdate:last"])
156
158
  ]),
157
159
  _: 3
158
- }, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only"]),
160
+ }, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter"]),
159
161
  _ctx.allowCreate ? (openBlock(), createBlock(_sfc_main$2, {
160
162
  key: 0,
161
163
  "is-selected": false,
162
164
  "is-cursor": cursor.value === null,
163
- loading: _ctx.loading && loadingOptionId.value === null,
165
+ loading: _ctx.loading && loadingOption.value === null,
164
166
  scroll: isCursorLocked.value,
165
167
  previous: lastItem.value,
166
168
  next: firstItem.value,
@@ -172,12 +174,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
172
174
  "onUpdate:cursor": _cache[5] || (_cache[5] = ($event) => setCursor(null)),
173
175
  onSelect: _cache[6] || (_cache[6] = ($event) => {
174
176
  _ctx.$emit("create:option");
175
- setLoadingOptionId(null);
177
+ setLoadingOption(null);
176
178
  }),
177
- "onUpdate:isCursor": _cache[7] || (_cache[7] = ($event) => updateCursors($event.previous, $event.next)),
178
- "onUpdate:previous": _cache[8] || (_cache[8] = ($event) => cursorPrevious.value = $event),
179
- "onUpdate:next": _cache[9] || (_cache[9] = ($event) => cursorNext.value = $event),
180
- onUnmounted: _cache[10] || (_cache[10] = ($event) => cursor.value = void 0)
179
+ "onUpdate:isCursor": updateCursors,
180
+ "onUpdate:previous": _cache[7] || (_cache[7] = ($event) => cursorPrevious.value = $event),
181
+ "onUpdate:next": _cache[8] || (_cache[8] = ($event) => cursorNext.value = $event),
182
+ onUnmounted: _cache[9] || (_cache[9] = ($event) => cursor.value = void 0)
181
183
  }, {
182
184
  default: withCtx(() => [
183
185
  _hoisted_2,
@@ -1,10 +1,11 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
3
3
  disabled?: boolean | undefined;
4
4
  loading?: boolean | undefined;
5
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
6
- modelValue: number[];
7
- onUnselect?: ((value: number) => any) | undefined;
5
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
6
+ modelValue: Model[];
7
+ valueGetter: (value: Data) => Model;
8
+ onUnselect?: ((value: Model) => any) | undefined;
8
9
  useQueryFn: UsePaginatedQuery<Data>;
9
10
  optionComponent?: Component<{
10
11
  option: Data;
@@ -14,6 +15,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
14
15
  disableClear?: boolean | undefined;
15
16
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
16
17
  previewData?: Data[] | undefined;
18
+ valueQueryKey: string;
17
19
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
18
20
  attrs: any;
19
21
  slots: Readonly<{
@@ -28,17 +30,18 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
28
30
  }) => void) | undefined;
29
31
  };
30
32
  emit: {
31
- (e: 'unselect', value: number): void;
33
+ (e: 'unselect', value: Model): void;
32
34
  (e: 'update:fetching', value: boolean): void;
33
- (e: 'update:modelValue', value: number[]): void;
35
+ (e: 'update:modelValue', value: Model[]): void;
34
36
  };
35
37
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
36
38
  props: {
37
39
  disabled?: boolean | undefined;
38
40
  loading?: boolean | undefined;
39
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
40
- modelValue: number[];
41
- onUnselect?: ((value: number) => any) | undefined;
41
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
42
+ modelValue: Model[];
43
+ valueGetter: (value: Data) => Model;
44
+ onUnselect?: ((value: Model) => any) | undefined;
42
45
  useQueryFn: UsePaginatedQuery<Data>;
43
46
  optionComponent?: Component<{
44
47
  option: Data;
@@ -48,6 +51,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
48
51
  disableClear?: boolean | undefined;
49
52
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
50
53
  previewData?: Data[] | undefined;
54
+ valueQueryKey: string;
51
55
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
52
56
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
53
57
  attrs: any;
@@ -63,9 +67,9 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
63
67
  }) => void) | undefined;
64
68
  };
65
69
  emit: {
66
- (e: 'unselect', value: number): void;
70
+ (e: 'unselect', value: Model): void;
67
71
  (e: 'update:fetching', value: boolean): void;
68
- (e: 'update:modelValue', value: number[]): void;
72
+ (e: 'update:modelValue', value: Model[]): void;
69
73
  };
70
74
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
71
75
  [key: string]: any;
@@ -74,9 +78,10 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
74
78
  props: {
75
79
  disabled?: boolean | undefined;
76
80
  loading?: boolean | undefined;
77
- "onUpdate:modelValue"?: ((value: number[]) => any) | undefined;
78
- modelValue: number[];
79
- onUnselect?: ((value: number) => any) | undefined;
81
+ "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
82
+ modelValue: Model[];
83
+ valueGetter: (value: Data) => Model;
84
+ onUnselect?: ((value: Model) => any) | undefined;
80
85
  useQueryFn: UsePaginatedQuery<Data>;
81
86
  optionComponent?: Component<{
82
87
  option: Data;
@@ -86,6 +91,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
86
91
  disableClear?: boolean | undefined;
87
92
  "onUpdate:fetching"?: ((value: boolean) => any) | undefined;
88
93
  previewData?: Data[] | undefined;
94
+ valueQueryKey: string;
89
95
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps;
90
96
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
91
97
  attrs: any;
@@ -101,9 +107,9 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
101
107
  }) => void) | undefined;
102
108
  };
103
109
  emit: {
104
- (e: 'unselect', value: number): void;
110
+ (e: 'unselect', value: Model): void;
105
111
  (e: 'update:fetching', value: boolean): void;
106
- (e: 'update:modelValue', value: number[]): void;
112
+ (e: 'update:modelValue', value: Model[]): void;
107
113
  };
108
114
  } | undefined;
109
115
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefix.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefix.vue"],"names":[],"mappings":"AA0CA;AAEA,OAAO,EAAuB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;;gBAkN3D,MAAM,EAAE;;;;;;;;;;;;WAaf,GAAG;;;;sBAxLmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAdxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,MAAM,EAAE,GAAG,IAAI;;yCAmMjC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;oBAZ3C,MAAM,EAAE;;;;;;;;;;;;oBAYN,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;sBA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BAPvB,kBAAkB,IAAI,CAAC;;oBAIE,IAAI;;;;;;;uBAI1B,MAAM;;oBAOP,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;2BA1LU;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;2BAA1C;YAAC,MAAM,EAAE,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YAdxD,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;YACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;;;;;;;wBAuLlC,KAAK,EAAE;iCAME,IAAI,KAAK,KAAK;;wBAPvB,kBAAkB,IAAI,CAAC;;wBAIE,IAAI;;;;;;;2BAI1B,MAAM;;wBAOP,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA1LU;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAA1C;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAdxD,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,iBAAiB,SAAS,OAAO,GAAG,IAAI;gBACxC,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;;;;AAvBhD,wBAkO2E"}
@@ -17,14 +17,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  loading: { type: Boolean },
18
18
  optionComponent: {},
19
19
  disableClear: { type: Boolean },
20
- previewData: {}
20
+ previewData: {},
21
+ valueGetter: { type: Function },
22
+ valueQueryKey: {}
21
23
  },
22
24
  emits: ["unselect", "update:fetching", "update:modelValue"],
23
25
  setup(__props, { emit: __emit }) {
24
26
  const props = __props;
25
27
  const emit = __emit;
26
28
  const hasFetching = ref(false);
27
- const idInString = computed(() => props.modelValue.slice(0, PAGE_LENGTH).join(","));
29
+ const valueInString = computed(() => props.modelValue.slice(0, PAGE_LENGTH).join(","));
28
30
  watch(hasFetching, (value) => {
29
31
  emit("update:fetching", value);
30
32
  }, { immediate: true });
@@ -32,15 +34,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
34
  emit("update:fetching", false);
33
35
  });
34
36
  return (_ctx, _cache) => {
35
- return idInString.value.length !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
37
+ return valueInString.value.length !== 0 ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
36
38
  createVNode(_sfc_main$1, {
37
39
  "use-query-fn": _ctx.useQueryFn,
38
- "query-params": { page: 1, id__in: idInString.value },
40
+ "query-params": { page: 1, [_ctx.valueQueryKey]: valueInString.value },
39
41
  "option-component": _ctx.optionComponent,
40
42
  "disable-clear": _ctx.disableClear,
41
43
  loading: _ctx.loading,
42
44
  disabled: _ctx.disabled,
43
45
  "preview-data": _ctx.previewData,
46
+ "value-getter": _ctx.valueGetter,
44
47
  onUnselect: _cache[0] || (_cache[0] = ($event) => _ctx.$emit("unselect", $event)),
45
48
  "onUpdate:fetching": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:fetching", $event))
46
49
  }, {
@@ -51,7 +54,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
51
54
  })
52
55
  ]),
53
56
  _: 3
54
- }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data"]),
57
+ }, 8, ["use-query-fn", "query-params", "option-component", "disable-clear", "loading", "disabled", "preview-data", "value-getter"]),
55
58
  _ctx.modelValue.length > PAGE_LENGTH ? (openBlock(), createElementBlock("div", _hoisted_1, [
56
59
  createElementVNode("div", null, "... " + toDisplayString(unref(numberFormatter).format(_ctx.modelValue.length)) + " items", 1),
57
60
  !_ctx.disableClear && !_ctx.disabled ? (openBlock(), createElementBlock("button", {
@@ -1,8 +1,9 @@
1
1
  import { type Component } from 'vue';
2
- declare const _default: <Data extends DefaultData>(__VLS_props: {
2
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
3
3
  disabled?: boolean | undefined;
4
4
  loading?: boolean | undefined;
5
- onUnselect?: ((value: number) => any) | undefined;
5
+ valueGetter: (value: Data) => Model;
6
+ onUnselect?: ((value: Model) => any) | undefined;
6
7
  queryParams: QueryParams;
7
8
  useQueryFn: UsePaginatedQuery<Data>;
8
9
  optionComponent?: Component<{
@@ -28,7 +29,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
28
29
  }) => void) | undefined;
29
30
  };
30
31
  emit: {
31
- (e: 'unselect', value: number): void;
32
+ (e: 'unselect', value: Model): void;
32
33
  (e: 'update:pages-count', value: number): void;
33
34
  (e: 'update:fetching', value: boolean): void;
34
35
  };
@@ -36,7 +37,8 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
36
37
  props: {
37
38
  disabled?: boolean | undefined;
38
39
  loading?: boolean | undefined;
39
- onUnselect?: ((value: number) => any) | undefined;
40
+ valueGetter: (value: Data) => Model;
41
+ onUnselect?: ((value: Model) => any) | undefined;
40
42
  queryParams: QueryParams;
41
43
  useQueryFn: UsePaginatedQuery<Data>;
42
44
  optionComponent?: Component<{
@@ -63,7 +65,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
63
65
  }) => void) | undefined;
64
66
  };
65
67
  emit: {
66
- (e: 'unselect', value: number): void;
68
+ (e: 'unselect', value: Model): void;
67
69
  (e: 'update:pages-count', value: number): void;
68
70
  (e: 'update:fetching', value: boolean): void;
69
71
  };
@@ -74,7 +76,8 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
74
76
  props: {
75
77
  disabled?: boolean | undefined;
76
78
  loading?: boolean | undefined;
77
- onUnselect?: ((value: number) => any) | undefined;
79
+ valueGetter: (value: Data) => Model;
80
+ onUnselect?: ((value: Model) => any) | undefined;
78
81
  queryParams: QueryParams;
79
82
  useQueryFn: UsePaginatedQuery<Data>;
80
83
  optionComponent?: Component<{
@@ -101,7 +104,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
101
104
  }) => void) | undefined;
102
105
  };
103
106
  emit: {
104
- (e: 'unselect', value: number): void;
107
+ (e: 'unselect', value: Model): void;
105
108
  (e: 'update:pages-count', value: number): void;
106
109
  (e: 'update:fetching', value: boolean): void;
107
110
  };
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncPrefixPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncPrefixPage.vue"],"names":[],"mappings":"AAwDA;AAEA,OAAO,EAAyB,KAAK,SAAS,EAAkB,MAAM,KAAK,CAAA;;;;;iBAqO5D,WAAW;;;;;;;;;;;;WAanB,GAAG;;;;sBA5LmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAjCxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;yCA0N9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;qBAZ1C,WAAW;;;;;;;;;;;;oBAYV,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;;;sBA5LmC,OAAO;cAAM,IAAI;;;;sBAAjB,OAAO;cAAM,IAAI;;;YAjCxD,UAAU,SAAS,MAAM,GAAG,IAAI;YAChC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;;;;;;;yBA8M/B,WAAW;;;;;;;;;;;;wBAYV,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;;;0BA5LmC,OAAO;kBAAM,IAAI;;;;0BAAjB,OAAO;kBAAM,IAAI;;;gB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BAAiB,SAAS,OAAO,GAAG,IAAI;;;;;;;;;iCAoNvB,IAAI,KAAK,KAAK;;yBANtB,WAAW;wBADZ,kBAAkB,IAAI,CAAC;;wBAIE,IAAI;;;;;;;;;wBAU3B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;+BA7LU;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;+BAA1C;gBAAC,MAAM,EAAE,IAAI,CAAC;gBAAC,QAAQ,EAAE,OAAO,CAAA;aAAC,KAAK,IAAI;;;gBAjCxD,UAAU,SAAS,KAAK,GAAG,IAAI;gBAC/B,oBAAoB,SAAS,MAAM,GAAG,IAAI;gBAC1C,iBAAiB,SAAS,OAAO,GAAG,IAAI;;;;AApB9C,wBAqP2E"}
@@ -12,7 +12,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  loading: { type: Boolean },
13
13
  optionComponent: {},
14
14
  disableClear: { type: Boolean },
15
- previewData: {}
15
+ previewData: {},
16
+ valueGetter: { type: Function }
16
17
  },
17
18
  emits: ["unselect", "update:pages-count", "update:fetching"],
18
19
  setup(__props, { emit: __emit }) {
@@ -42,7 +43,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
42
43
  return (_ctx, _cache) => {
43
44
  return openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.previewData ?? unref(data)?.results, (option) => {
44
45
  return openBlock(), createElementBlock("div", {
45
- key: option.id,
46
+ key: _ctx.valueGetter(option),
46
47
  class: normalizeClass(["relative flex overflow-hidden items-center text-description", {
47
48
  "cursor-pointer": !_ctx.disabled,
48
49
  "cursor-not-allowed": _ctx.disabled
@@ -69,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
69
70
  }]),
70
71
  onMousedown: _cache[0] || (_cache[0] = withModifiers(() => {
71
72
  }, ["stop", "prevent"])),
72
- onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", option.id), ["stop", "prevent"])
73
+ onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
73
74
  }, [
74
75
  createVNode(unref(IconCancel), { class: "square-3" })
75
76
  ], 42, _hoisted_1)
@@ -86,7 +87,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
86
87
  }]),
87
88
  onMousedown: _cache[1] || (_cache[1] = withModifiers(() => {
88
89
  }, ["stop", "prevent"])),
89
- onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", option.id), ["stop", "prevent"])
90
+ onClick: withModifiers(($event) => !_ctx.loading && _ctx.$emit("unselect", _ctx.valueGetter(option)), ["stop", "prevent"])
90
91
  }, [
91
92
  createVNode(unref(IconCancel), { class: "square-3" })
92
93
  ], 42, _hoisted_2)) : createCommentVNode("", true)