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 +1 @@
1
- {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAuCA;AAGA,OAAO,EAAC,YAAY,EAAC,MAAM,sBAAsB,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAoM1C,GAAG;;uBA1BkB,GAAG;;;YACD,GAAG;;cAnI3B,mBAAmB,mBAAiB,IAAI;yCA2J9B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAAzC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,I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;eAClD,GAAG;;2BA1BkB,GAAG;;;gBACD,GAAG;;kBAnI3B,mBAAmB,SAAS,KAAK,KAAG,IAAI;;;AArC9C,wBAsM2E"}
@@ -123,7 +123,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
123
123
  newValue.splice(index, 1);
124
124
  validateOnUpdate(newValue);
125
125
  };
126
- const validate = (silent) => {
126
+ const doValidate = (silent) => {
127
127
  const message = _validate(modelValue.value);
128
128
  if (!silent) {
129
129
  errorMessage.value = message;
@@ -165,12 +165,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
165
165
  }, { immediate: true });
166
166
  watch(required, () => {
167
167
  if (hasBeenValidated.value)
168
- validate();
168
+ doValidate();
169
169
  });
170
170
  onBeforeMount(() => {
171
171
  if (props.name) {
172
172
  initModel();
173
- validateUpdater?.(props.name, validate);
173
+ validateUpdater?.(props.name, doValidate);
174
174
  invalidateUpdater?.(props.name, invalidate);
175
175
  initModelUpdater?.(props.name, initModel);
176
176
  }
@@ -1 +1 @@
1
- {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/models/utils.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,sDAAuD,MAAM,MAMlF,CAAA;AAKD,eAAO,MAAM,cAAc,UAAW,MAAM,WAAW,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAQpF,CAAA"}
1
+ {"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../../../../src/components/Form/models/utils.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,SAAS,8CAA+C,CAAC,OAAO,MAAM,KAAG,CAMrF,CAAA;AAKD,eAAO,MAAM,cAAc,UAAW,MAAM,WAAW,MAAM,GAAG,SAAS,KAAG,MAAM,GAAG,SAQpF,CAAA"}
@@ -21,8 +21,8 @@ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__
21
21
  }>>> & {
22
22
  "onUpdate:search"?: ((value: string | undefined) => any) | undefined;
23
23
  }, {
24
- title: string;
25
24
  search: string;
25
+ title: string;
26
26
  headerPadding: number;
27
27
  }, {}>, {
28
28
  title?(_: {}): any;
@@ -1,10 +1,11 @@
1
- declare const _default: <Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
2
  transition?: boolean | undefined;
3
+ valueGetter?: ((data: Data) => Model) | undefined;
3
4
  wrap?: boolean | undefined;
4
5
  scrollingElement?: Element | null | undefined;
5
6
  queryParams: QueryParams;
6
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
7
- selected?: number[] | undefined;
7
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
8
+ selected?: Model[] | undefined;
8
9
  selectOnly?: boolean | undefined;
9
10
  unselectOnly?: boolean | undefined;
10
11
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -60,18 +61,19 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
60
61
  (e: 'update:page', value: number | undefined): void;
61
62
  (e: 'update:header-padding', value: number): void;
62
63
  (e: 'update:count', value: number): void;
63
- (e: 'update:selected', values: number[]): void;
64
+ (e: 'update:selected', values: Model[]): void;
64
65
  };
65
66
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
66
67
  resetPage(): void;
67
68
  }>) => void) | undefined, __VLS_setup?: Promise<{
68
69
  props: {
69
70
  transition?: boolean | undefined;
71
+ valueGetter?: ((data: Data) => Model) | undefined;
70
72
  wrap?: boolean | undefined;
71
73
  scrollingElement?: Element | null | undefined;
72
74
  queryParams: QueryParams;
73
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
74
- selected?: number[] | undefined;
75
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
76
+ selected?: Model[] | undefined;
75
77
  selectOnly?: boolean | undefined;
76
78
  unselectOnly?: boolean | undefined;
77
79
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -130,7 +132,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
130
132
  (e: 'update:page', value: number | undefined): void;
131
133
  (e: 'update:header-padding', value: number): void;
132
134
  (e: 'update:count', value: number): void;
133
- (e: 'update:selected', values: number[]): void;
135
+ (e: 'update:selected', values: Model[]): void;
134
136
  };
135
137
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
136
138
  [key: string]: any;
@@ -138,11 +140,12 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
138
140
  __ctx?: {
139
141
  props: {
140
142
  transition?: boolean | undefined;
143
+ valueGetter?: ((data: Data) => Model) | undefined;
141
144
  wrap?: boolean | undefined;
142
145
  scrollingElement?: Element | null | undefined;
143
146
  queryParams: QueryParams;
144
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
145
- selected?: number[] | undefined;
147
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
148
+ selected?: Model[] | undefined;
146
149
  selectOnly?: boolean | undefined;
147
150
  unselectOnly?: boolean | undefined;
148
151
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -201,7 +204,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
201
204
  (e: 'update:page', value: number | undefined): void;
202
205
  (e: 'update:header-padding', value: number): void;
203
206
  (e: 'update:count', value: number): void;
204
- (e: 'update:selected', values: number[]): void;
207
+ (e: 'update:selected', values: Model[]): void;
205
208
  };
206
209
  } | undefined;
207
210
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"AA4DA;;;;;iBAwQiB,WAAW;;;;;;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;WA8BvC,GAAG;;;;oDAhMkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;0BACO,OAAO,MAAM,EAAE,KAAK,CAAC,KAAK,IAAI;;;;oDATL,IAAI;sBAClC,OAAO;qBACR,MAA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AAG,IAAI;gBAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;gBAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AArD/C,wBAuS2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -28,7 +28,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
28
28
  allowPageSelection: { type: Boolean },
29
29
  pageClass: { default: void 0 },
30
30
  maxPages: { default: void 0 },
31
- refetchInterval: { type: [Number, Boolean], default: void 0 }
31
+ refetchInterval: { type: [Number, Boolean], default: void 0 },
32
+ valueGetter: { type: Function, default: (item) => item.id }
32
33
  },
33
34
  emits: ["update:page", "update:header-padding", "update:count", "update:selected"],
34
35
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -100,6 +101,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
100
101
  "page-class": _ctx.pageClass,
101
102
  "max-pages": _ctx.maxPages,
102
103
  "refetch-interval": _ctx.refetchInterval,
104
+ "value-getter": _ctx.valueGetter,
103
105
  "onUpdate:count": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:count", $event)),
104
106
  "onUpdate:selected": _cache[1] || (_cache[1] = ($event) => _ctx.$emit("update:selected", $event)),
105
107
  "onUpdate:page": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:page", $event))
@@ -118,7 +120,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
118
120
  })
119
121
  ]),
120
122
  _: 3
121
- }, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval"])
123
+ }, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "selected", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "exclude-params", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "page-class", "max-pages", "refetch-interval", "value-getter"])
122
124
  ], 64);
123
125
  };
124
126
  }
@@ -1,10 +1,11 @@
1
- declare const _default: <Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
2
  transition?: boolean | undefined;
3
+ valueGetter: (data: Data) => Model;
3
4
  wrap?: boolean | undefined;
4
5
  scrollingElement?: Element | null | undefined;
5
6
  queryParams: QueryParams;
6
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
7
- selected?: number[] | undefined;
7
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
8
+ selected?: Model[] | undefined;
8
9
  selectOnly?: boolean | undefined;
9
10
  unselectOnly?: boolean | undefined;
10
11
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -56,18 +57,19 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
56
57
  emit: {
57
58
  (e: 'update:page', value: number | undefined): void;
58
59
  (e: 'update:count', value: number): void;
59
- (e: 'update:selected', values: number[]): void;
60
+ (e: 'update:selected', values: Model[]): void;
60
61
  };
61
62
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
62
63
  resetPage: () => void;
63
64
  }>) => void) | undefined, __VLS_setup?: Promise<{
64
65
  props: {
65
66
  transition?: boolean | undefined;
67
+ valueGetter: (data: Data) => Model;
66
68
  wrap?: boolean | undefined;
67
69
  scrollingElement?: Element | null | undefined;
68
70
  queryParams: QueryParams;
69
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
70
- selected?: number[] | undefined;
71
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
72
+ selected?: Model[] | undefined;
71
73
  selectOnly?: boolean | undefined;
72
74
  unselectOnly?: boolean | undefined;
73
75
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -122,7 +124,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
122
124
  emit: {
123
125
  (e: 'update:page', value: number | undefined): void;
124
126
  (e: 'update:count', value: number): void;
125
- (e: 'update:selected', values: number[]): void;
127
+ (e: 'update:selected', values: Model[]): void;
126
128
  };
127
129
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
128
130
  [key: string]: any;
@@ -130,11 +132,12 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
130
132
  __ctx?: {
131
133
  props: {
132
134
  transition?: boolean | undefined;
135
+ valueGetter: (data: Data) => Model;
133
136
  wrap?: boolean | undefined;
134
137
  scrollingElement?: Element | null | undefined;
135
138
  queryParams: QueryParams;
136
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
137
- selected?: number[] | undefined;
139
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
140
+ selected?: Model[] | undefined;
138
141
  selectOnly?: boolean | undefined;
139
142
  unselectOnly?: boolean | undefined;
140
143
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -189,7 +192,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
189
192
  emit: {
190
193
  (e: 'update:page', value: number | undefined): void;
191
194
  (e: 'update:count', value: number): void;
192
- (e: 'update:selected', values: number[]): void;
195
+ (e: 'update:selected', values: Model[]): void;
193
196
  };
194
197
  } | undefined;
195
198
  };
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA2EA;;;;;iBA0biB,WAAW;;;;;;;2BADD,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA8BvC,GAAG;;;;oDAtRkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IA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AG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteListPages.vue"],"names":[],"mappings":"AA4EA;;;wBAidwB,IAAI,KAAK,KAAK;;;iBAtBrB,WAAW;;;;;;gBAFZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;WA+BvC,GAAG;;;kBAxRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;OAyZwB,IAAI;;;4BAPnD,IAAI,KAAK,KAAK;;;qBAtBrB,WAAW;;;;;;oBAFZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;SA8ByB,IAAI;WACpE,GAAG;;;kBAxRA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;kBATF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;uBACF,OAAO;cACd,IAAI;;;YA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;;;;gCAkZvB,IAAI,KAAK,KAAK;;;yBAtBrB,WAAW;;;;;;wBAFZ,kBAAkB,IAAI,CAAC;mCACZ,OAAO,KAAK,OAAO;;;;;;;;;;;;;;;;;;;;aA8ByB,IAAI;eACpE,GAAG;;;sBAxRA,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;sBATF,IAAI;mCACS,IAAI,GAAG,SAAS,KAAK,IAAI;0BAClC,OAAO;yBACR,MAAM,IAAI;;;uBAGZ,OAAO;sBACR,OAAO;2BACF,OAAO;kBACd,IAAI;;;gBA7IN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;gBAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;gBACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;AApD/C,wBAmd2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -32,7 +32,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
32
32
  allowPageSelection: { type: Boolean },
33
33
  pageClass: { default: void 0 },
34
34
  maxPages: { default: 5 },
35
- refetchInterval: { type: [Number, Boolean], default: void 0 }
35
+ refetchInterval: { type: [Number, Boolean], default: void 0 },
36
+ valueGetter: {}
36
37
  },
37
38
  emits: ["update:page", "update:count", "update:selected"],
38
39
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -180,6 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
181
  "page-class": _ctx.pageClass,
181
182
  "refetch-interval": _ctx.refetchInterval,
182
183
  "scrolling-element": _ctx.scrollingElement,
184
+ "value-getter": _ctx.valueGetter,
183
185
  class: normalizeClass({
184
186
  "last:min-h-[calc(100vh-var(--header-height)-var(--infinite-list-header-height))] last:pb-16": !_ctx.minHeight
185
187
  }),
@@ -217,7 +219,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
217
219
  })
218
220
  ]),
219
221
  _: 2
220
- }, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "selected", "wrap", "no-gap", "transition", "resetting", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "min-height", "page-class", "refetch-interval", "scrolling-element", "class", "onRefetch"]);
222
+ }, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "selected", "wrap", "no-gap", "transition", "resetting", "empty-stub", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "min-height", "page-class", "refetch-interval", "scrolling-element", "value-getter", "class", "onRefetch"]);
221
223
  }), 128)),
222
224
  count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
223
225
  key: 1,
@@ -1,10 +1,11 @@
1
- declare const _default: <Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
2
  transition?: boolean | undefined;
3
+ valueGetter: (data: Data) => Model;
3
4
  wrap?: boolean | undefined;
4
5
  scrollingElement?: Element | null | undefined;
5
6
  queryParams: QueryParams;
6
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
7
- selected?: number[] | undefined;
7
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
8
+ selected?: Model[] | undefined;
8
9
  selectOnly?: boolean | undefined;
9
10
  unselectOnly?: boolean | undefined;
10
11
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -64,7 +65,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
64
65
  (e: 'error:invalidPage', value: number): void;
65
66
  (e: 'refetch'): void;
66
67
  (e: 'update-from-header:scroll'): void;
67
- (e: 'update:selected', values: number[]): void;
68
+ (e: 'update:selected', values: Model[]): void;
68
69
  (e: 'fetched'): void;
69
70
  };
70
71
  } | undefined, __VLS_expose?: ((exposed: import("vue").ShallowUnwrapRef<{
@@ -74,11 +75,12 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
74
75
  }>) => void) | undefined, __VLS_setup?: Promise<{
75
76
  props: {
76
77
  transition?: boolean | undefined;
78
+ valueGetter: (data: Data) => Model;
77
79
  wrap?: boolean | undefined;
78
80
  scrollingElement?: Element | null | undefined;
79
81
  queryParams: QueryParams;
80
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
81
- selected?: number[] | undefined;
82
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
83
+ selected?: Model[] | undefined;
82
84
  selectOnly?: boolean | undefined;
83
85
  unselectOnly?: boolean | undefined;
84
86
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -143,7 +145,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
143
145
  (e: 'error:invalidPage', value: number): void;
144
146
  (e: 'refetch'): void;
145
147
  (e: 'update-from-header:scroll'): void;
146
- (e: 'update:selected', values: number[]): void;
148
+ (e: 'update:selected', values: Model[]): void;
147
149
  (e: 'fetched'): void;
148
150
  };
149
151
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
@@ -152,11 +154,12 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
152
154
  __ctx?: {
153
155
  props: {
154
156
  transition?: boolean | undefined;
157
+ valueGetter: (data: Data) => Model;
155
158
  wrap?: boolean | undefined;
156
159
  scrollingElement?: Element | null | undefined;
157
160
  queryParams: QueryParams;
158
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
159
- selected?: number[] | undefined;
161
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
162
+ selected?: Model[] | undefined;
160
163
  selectOnly?: boolean | undefined;
161
164
  unselectOnly?: boolean | undefined;
162
165
  "onUpdate:count"?: ((value: number) => any) | undefined;
@@ -221,7 +224,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
221
224
  (e: 'error:invalidPage', value: number): void;
222
225
  (e: 'refetch'): void;
223
226
  (e: 'update-from-header:scroll'): void;
224
- (e: 'update:selected', values: number[]): void;
227
+ (e: 'update:selected', values: Model[]): void;
225
228
  (e: 'fetched'): void;
226
229
  };
227
230
  } | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAsHA;;;;;iBAwdiB,WAAW;;;;;;;;;;;;;;;2BAED,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;;WAuBd,GAAG;;;;oDApSkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;;oDAPgC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YAtKN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,MAAM,EAAE,GAAG,IAAI;YAC1C,SAAS,GAAG,IAAI;;;;;;OAybiD,IAAI;;;;;qBA3B1D,WAAW;;;;;;;;;;;;;;;+BAED,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;;;;;;SAsBkD,IAAI;WACpE,GAAG;;;;oDApSkC,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,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AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
1
+ {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"AAuHA;;;wBA8ewB,IAAI,KAAK,KAAK;;;iBArBrB,WAAW;;;;;;;;;;;;;;gBACZ,kBAAkB,IAAI,CAAC;2BACZ,OAAO,KAAK,OAAO;oBAC1B,MAAM;eACX,OAAO;cACR,OAAO;;;;;;;;;;;WAwBd,GAAG;;;kBAtSA,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;kBARF,IAAI;+BACS,IAAI,GAAG,SAAS,KAAK,IAAI;sBAClC,OAAO;qBACR,MAAM,IAAI;;;mBAGZ,OAAO;kBACR,OAAO;cACT,IAAI;;;YAtKN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,iBAAiB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC9C,qBAAqB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAClD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;;OA0biD,IAAI;;;4BAPnD,IAAI,KAAK,KAAK;;;qBArBrB,WAAW;;;;;;;;;;;;;;oBACZ,kBAAkB,IAAI,CAAC;+BACZ,OAAO,KAAK,OAAO;wBAC1B,MAAM;mBACX,OAAO;kBACR,OAAO;;;;;;;;;;;;;;;SAuBkD,IAA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,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;gBAClD,eAAe,SAAS,MAAM,GAAG,IAAI;gBACrC,mBAAmB,SAAS,MAAM,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;gBAChB,2BAA2B,GAAG,IAAI;gBAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;gBACzC,SAAS,GAAG,IAAI;;;;AApDtB,wBAof2E;AAQ3E,KAAK,cAAc,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -27,7 +27,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
27
27
  minHeight: { type: Boolean },
28
28
  pageClass: { default: void 0 },
29
29
  refetchInterval: { type: [Number, Boolean], default: void 0 },
30
- scrollingElement: { default: void 0 }
30
+ scrollingElement: { default: void 0 },
31
+ valueGetter: {}
31
32
  },
32
33
  emits: ["update:count", "update:pagesCount", "update:nextPage", "update:previousPage", "update:scroll", "error:invalidPage", "refetch", "update-from-header:scroll", "update:selected", "fetched"],
33
34
  setup(__props, { expose: __expose, emit: __emit }) {
@@ -179,9 +180,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
179
180
  "select-only": _ctx.selectOnly,
180
181
  "unselect-only": _ctx.unselectOnly,
181
182
  reverse: _ctx.reverseSelection,
183
+ "value-getter": _ctx.valueGetter,
182
184
  class: "sm:w-list-row-item sm-not:px-[calc(var(--inner-margin)-2px)] pb-4 pt-6",
183
185
  "onUpdate:selected": _cache[0] || (_cache[0] = ($event) => _ctx.$emit("update:selected", $event))
184
- }, null, 8, ["selected", "items", "disabled", "tooltip-text-persisted", "select-only", "unselect-only", "reverse"])) : createCommentVNode("", true),
186
+ }, null, 8, ["selected", "items", "disabled", "tooltip-text-persisted", "select-only", "unselect-only", "reverse", "value-getter"])) : createCommentVNode("", true),
185
187
  !_ctx.hidePageTitle ? (openBlock(), createBlock(_sfc_main$2, {
186
188
  key: 1,
187
189
  "query-params": _ctx.queryParams,
@@ -205,7 +207,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
205
207
  default: withCtx(() => [
206
208
  (openBlock(true), createElementBlock(Fragment, null, renderList(unref(data).results, (item, index) => {
207
209
  return openBlock(), createElementBlock("div", {
208
- key: item.id,
210
+ key: _ctx.valueGetter(item),
209
211
  class: "w-full group"
210
212
  }, [
211
213
  createElementVNode("div", _hoisted_1, [
@@ -226,7 +228,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
226
228
  _: 3
227
229
  }, 8, ["css"])) : (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList(unref(data).results, (item, index) => {
228
230
  return renderSlot(_ctx.$slots, "default", {
229
- key: item.id,
231
+ key: _ctx.valueGetter(item),
230
232
  item,
231
233
  setter: (newItem) => setItem(index, newItem),
232
234
  refetch: emitRefetch,
@@ -1,8 +1,9 @@
1
- declare const _default: <Data extends DefaultData>(__VLS_props: {
1
+ declare const _default: <Model extends string | number, Data extends DefaultData>(__VLS_props: {
2
2
  reverse?: boolean | undefined;
3
3
  disabled?: boolean | undefined;
4
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
5
- selected: number[];
4
+ valueGetter: (data: Data) => Model;
5
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
6
+ selected: Model[];
6
7
  items: Data[];
7
8
  tooltipTextPersisted?: boolean | undefined;
8
9
  selectOnly?: boolean | undefined;
@@ -10,13 +11,14 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
10
11
  } & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, __VLS_ctx?: {
11
12
  attrs: any;
12
13
  slots: {};
13
- emit: (e: 'update:selected', values: number[]) => void;
14
+ emit: (e: 'update:selected', values: Model[]) => void;
14
15
  } | undefined, __VLS_expose?: ((exposed: import('vue').ShallowUnwrapRef<{}>) => void) | undefined, __VLS_setup?: Promise<{
15
16
  props: {
16
17
  reverse?: boolean | undefined;
17
18
  disabled?: boolean | undefined;
18
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
19
- selected: number[];
19
+ valueGetter: (data: Data) => Model;
20
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
21
+ selected: Model[];
20
22
  items: Data[];
21
23
  tooltipTextPersisted?: boolean | undefined;
22
24
  selectOnly?: boolean | undefined;
@@ -25,7 +27,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
25
27
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
26
28
  attrs: any;
27
29
  slots: {};
28
- emit: (e: 'update:selected', values: number[]) => void;
30
+ emit: (e: 'update:selected', values: Model[]) => void;
29
31
  }>) => import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
30
32
  [key: string]: any;
31
33
  }> & {
@@ -33,8 +35,9 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
33
35
  props: {
34
36
  reverse?: boolean | undefined;
35
37
  disabled?: boolean | undefined;
36
- "onUpdate:selected"?: ((values: number[]) => any) | undefined;
37
- selected: number[];
38
+ valueGetter: (data: Data) => Model;
39
+ "onUpdate:selected"?: ((values: Model[]) => any) | undefined;
40
+ selected: Model[];
38
41
  items: Data[];
39
42
  tooltipTextPersisted?: boolean | undefined;
40
43
  selectOnly?: boolean | undefined;
@@ -43,7 +46,7 @@ declare const _default: <Data extends DefaultData>(__VLS_props: {
43
46
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
44
47
  attrs: any;
45
48
  slots: {};
46
- emit: (e: 'update:selected', values: number[]) => void;
49
+ emit: (e: 'update:selected', values: Model[]) => void;
47
50
  } | undefined;
48
51
  };
49
52
  export default _default;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"AAqBA;;;;;cAmIY,MAAM,EAAE;;;;;;WAcb,GAAG;;cA1HJ,iBAAiB,UAAU,MAAM,EAAE,KAAG,IAAI;yCAyHhC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;;kBAb7C,MAAM,EAAE;;;;;;oBAaJ,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA1HJ,iBAAiB,UAAU,MAAM,EAAE,KAAG,IAAI;;;;;;;;;sBA4GpC,MAAM,EAAE;;;;;;wBAaJ,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;kBA1HJ,iBAAiB,UAAU,MAAM,EAAE,KAAG,IAAI;;;AAjBhD,wBAgJ2E"}
1
+ {"version":3,"file":"InfiniteListPageSelection.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPageSelection.vue"],"names":[],"mappings":"AAqBA;;;;wBA2IsB,IAAI,KAAK,KAAK;;cAPxB,KAAK,EAAE;WACV,IAAI,EAAE;;;;;WAcR,GAAG;;cA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;yCA0H/B,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,KAAG,IAAI;;;;4BAPnC,IAAI,KAAK,KAAK;;kBAPxB,KAAK,EAAE;eACV,IAAI,EAAE;;;;;oBAaC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;;;;;;;;gCAmHzB,IAAI,KAAK,KAAK;;sBAPxB,KAAK,EAAE;mBACV,IAAI,EAAE;;;;;wBAaC,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;eAClD,GAAG;;kBA3HJ,iBAAiB,UAAU,KAAK,EAAE,KAAG,IAAI;;;AAlB/C,wBAkJ2E"}
@@ -10,14 +10,15 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  tooltipTextPersisted: { type: Boolean },
11
11
  selectOnly: { type: Boolean },
12
12
  unselectOnly: { type: Boolean },
13
- reverse: { type: Boolean }
13
+ reverse: { type: Boolean },
14
+ valueGetter: { type: Function }
14
15
  },
15
16
  emits: ["update:selected"],
16
17
  setup(__props, { emit: __emit }) {
17
18
  const props = __props;
18
19
  const emit = __emit;
19
- const ids = computed(() => props.items.map((item) => item.id));
20
- const selectedItems = computed(() => ids.value.filter((id) => props.selected.includes(id)));
20
+ const models = computed(() => props.items.map((item) => props.valueGetter(item)));
21
+ const selectedItems = computed(() => models.value.filter((item) => props.selected.includes(item)));
21
22
  const hasSelected = computed(() => selectedItems.value.length !== 0);
22
23
  const chekboxValue = computed(() => {
23
24
  if (props.selectOnly)
@@ -34,9 +35,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
34
35
  const tooltipText = computed(() => `${chekboxValueReversed.value === true ? "Unselect" : "Select"} page (${props.items.length} item${props.items.length === 1 ? "" : "s"})`);
35
36
  const selectOrUnselect = (isSelect) => {
36
37
  if (props.reverse ? !isSelect : isSelect) {
37
- emit("update:selected", [...props.selected, ...ids.value].filter((id, index, arr) => arr.indexOf(id) === index));
38
+ emit("update:selected", [...props.selected, ...models.value].filter((item, index, arr) => arr.indexOf(item) === index));
38
39
  } else {
39
- emit("update:selected", props.selected.filter((id) => !ids.value.includes(id)));
40
+ emit("update:selected", props.selected.filter((item) => !models.value.includes(item)));
40
41
  }
41
42
  };
42
43
  return (_ctx, _cache) => {
@@ -1 +1 @@
1
- {"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AAiFA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;QAMmB,MAAM;;QAA+B,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAsYhI,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;OAkWmB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAAJ,IAAI;WACpE,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;aAkWmB,IAAI;eACpE,GAAG;;2BA/DkB,GAAG;;;;;gBACF,GAAG;;kBArS1B,oBAAoB,qDAAsB,IAAI;;;AAnCpD,wBA2Y2E"}
1
+ {"version":3,"file":"WInputOptions.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Input/WInputOptions.vue"],"names":[],"mappings":"AAiFA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;QAMmB,MAAM;;QAA+B,MAAM;;WA4W9H,IAAI,GAAG,SAAS;;;;;;0BAFD,MAAM;;;;;;;;;;;;;aADnB,MAAM,EAAE;;;gBASoB,MAAM;;;;;;;WAoBtC,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;OAkWmB,IAAI;;eAzBlE,IAAI,GAAG,SAAS;;;;;;8BAFD,MAAM;;;;;;;;;;;;;iBADnB,MAAM,EAAE;;;oBASoB,MAAM;;;;;;;;;;SAmB0B,IAAI;WACpE,GAAG;;uBA/DkB,GAAG;;;;;YACF,GAAG;;cArS1B,oBAAoB,qDAAsB,IAAI;;;;;;mBAyU3C,IAAI,GAAG,SAAS;;;;;;kCAFD,MAAM;;;;;;;;;;;;;qBADnB,MAAM,EAAE;;;wBASoB,MAAM;;;;;;;;;;aAmB0B,IAAI;eACpE,GAAG;;2BA/DkB,GAAG;;;;;gBACF,GAAG;;kBArS1B,oBAAoB,qDAAsB,IAAI;;;AAnCpD,wBA2Y2E"}
@@ -1,11 +1,11 @@
1
1
  import { type Component } from 'vue';
2
2
  declare const _default: <Item extends string | number = string>(__VLS_props: {
3
3
  required?: boolean | undefined;
4
+ search: string;
4
5
  title?: string | undefined;
5
6
  onSelect?: ((item: string | number) => any) | undefined;
6
7
  disabled?: boolean | undefined;
7
8
  loading?: boolean | undefined;
8
- search: string;
9
9
  modelValue: Item[];
10
10
  icon?: SVGComponent | undefined;
11
11
  readonly?: boolean | undefined;
@@ -55,11 +55,11 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
55
55
  }>) => void) | undefined, __VLS_setup?: Promise<{
56
56
  props: {
57
57
  required?: boolean | undefined;
58
+ search: string;
58
59
  title?: string | undefined;
59
60
  onSelect?: ((item: string | number) => any) | undefined;
60
61
  disabled?: boolean | undefined;
61
62
  loading?: boolean | undefined;
62
- search: string;
63
63
  modelValue: Item[];
64
64
  icon?: SVGComponent | undefined;
65
65
  readonly?: boolean | undefined;
@@ -113,11 +113,11 @@ declare const _default: <Item extends string | number = string>(__VLS_props: {
113
113
  __ctx?: {
114
114
  props: {
115
115
  required?: boolean | undefined;
116
+ search: string;
116
117
  title?: string | undefined;
117
118
  onSelect?: ((item: string | number) => any) | undefined;
118
119
  disabled?: boolean | undefined;
119
120
  loading?: boolean | undefined;
120
- search: string;
121
121
  modelValue: Item[];
122
122
  icon?: SVGComponent | undefined;
123
123
  readonly?: boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA0KA;AAEA,OAAO,EAAwC,KAAK,SAAS,EAAC,MAAM,KAAK,CAAA;;;;;;;YAwnB/D,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WA+BT,GAAG;;;;;;YArEoB,GAAG;uBACL,GAAG;;;YAxiBzB,QAAQ,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACtC,UAAU,QAAQ,MAAM,GAAG,MAAM,GAAG,IAAI;YACxC,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,eAAe,SAAS,MAAM,GAAG,IAAI;;;;;OAwmB4B,IAAI;;;;;;;gBA9BjE,MAAM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