eco-vue-js 0.8.14 → 0.8.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. package/dist/components/Button/WButtonGroup.vue.d.ts +3 -3
  2. package/dist/components/Button/WButtonGroup.vue.d.ts.map +1 -1
  3. package/dist/components/Button/WButtonGroup.vue.js +9 -4
  4. package/dist/components/Button/types.d.ts +1 -1
  5. package/dist/components/FormAsync/WFormAsyncButtonGroup.vue.js +1 -1
  6. package/dist/components/FormAsync/WFormAsyncSelect.vue.js +0 -1
  7. package/dist/components/FormAsync/WFormAsyncSelectInfiniteSingle.vue.js +0 -2
  8. package/dist/components/FormAsync/WFormAsyncSelectSingle.vue.js +0 -1
  9. package/dist/components/FormAsync/WFormAsyncSelectStringified.vue.js +0 -1
  10. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts +0 -1
  11. package/dist/components/InfiniteList/WInfiniteList.vue.d.ts.map +1 -1
  12. package/dist/components/InfiniteList/WInfiniteList.vue.js +1 -3
  13. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts +0 -1
  14. package/dist/components/InfiniteList/WInfiniteListPages.vue.d.ts.map +1 -1
  15. package/dist/components/InfiniteList/WInfiniteListPages.vue.js +1 -3
  16. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts +0 -1
  17. package/dist/components/InfiniteList/components/InfiniteListPage.vue.d.ts.map +1 -1
  18. package/dist/components/InfiniteList/components/InfiniteListPage.vue.js +14 -3
  19. package/dist/components/Input/WInput.vue.js +9 -9
  20. package/dist/components/List/WList.vue.d.ts +0 -1
  21. package/dist/components/List/WList.vue.d.ts.map +1 -1
  22. package/dist/components/List/WList.vue.js +1 -3
  23. package/dist/components/Select/WSelect.vue.d.ts +3 -1
  24. package/dist/components/Select/WSelect.vue.d.ts.map +1 -1
  25. package/dist/components/Select/WSelect.vue.js +34 -19
  26. package/dist/components/Select/WSelectAsync.vue.d.ts +3 -1
  27. package/dist/components/Select/WSelectAsync.vue.d.ts.map +1 -1
  28. package/dist/components/Select/WSelectAsync.vue.js +13 -9
  29. package/dist/components/Select/WSelectAsyncList.vue.d.ts +1 -2
  30. package/dist/components/Select/WSelectAsyncList.vue.d.ts.map +1 -1
  31. package/dist/components/Select/WSelectAsyncList.vue.js +1 -3
  32. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts +6 -2
  33. package/dist/components/Select/WSelectAsyncSingle.vue.d.ts.map +1 -1
  34. package/dist/components/Select/WSelectAsyncSingle.vue.js +3 -4
  35. package/dist/components/Select/WSelectSingle.vue.d.ts +3 -1
  36. package/dist/components/Select/WSelectSingle.vue.d.ts.map +1 -1
  37. package/dist/components/Select/WSelectSingle.vue.js +3 -3
  38. package/dist/components/Select/WSelectStringified.vue.d.ts +3 -1
  39. package/dist/components/Select/WSelectStringified.vue.d.ts.map +1 -1
  40. package/dist/components/Select/WSelectStringified.vue.js +4 -5
  41. package/dist/components/Select/components/SelectAsyncList.vue.d.ts +0 -1
  42. package/dist/components/Select/components/SelectAsyncList.vue.d.ts.map +1 -1
  43. package/dist/components/Select/components/SelectAsyncList.vue.js +1 -3
  44. package/dist/components/Select/types.d.ts +0 -4
  45. package/dist/components/Select/types.d.ts.map +1 -1
  46. package/package.json +1 -1
  47. package/tailwind-base/theme/sizes.cjs +3 -0
@@ -3,8 +3,8 @@ declare const _default: <Model extends number | string | null | boolean, Entity
3
3
  fn(value: Entity): Model;
4
4
  }["fn"] | undefined = undefined>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
5
5
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
6
- readonly "onUpdate:modelValue"?: ((value: Model) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & ButtonGroupProps<Model, Entity, ValueGetter>> & import('vue').PublicProps;
6
+ readonly "onUpdate:model-value"?: ((value: Model) => any) | undefined;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value"> & ButtonGroupProps<Model, Entity, ValueGetter>> & import('vue').PublicProps;
8
8
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
9
9
  attrs: any;
10
10
  slots: {
@@ -15,7 +15,7 @@ declare const _default: <Model extends number | string | null | boolean, Entity
15
15
  }): any;
16
16
  right?(_: {}): any;
17
17
  };
18
- emit: (e: "update:modelValue", value: Model) => void;
18
+ emit: (e: "update:model-value", value: Model) => void;
19
19
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
20
20
  [key: string]: any;
21
21
  }> & {
@@ -1 +1 @@
1
- {"version":3,"file":"WButtonGroup.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Button/WButtonGroup.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAC,gBAAgB,EAAC,MAAM,SAAS,CAAA;yBAG5B,KAAK,SAAS,MAAM,GAAG,MAAM,GAAG,IAAI,GAAG,OAAO,EAAE,MAAM,SAAS,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAAE,WAAW,SAAS;IAAC,EAAE,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,CAAA;CAAC,CAAC,IAAI,CAAC,GAAG,SAAS,2BAC3J,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA+JxD,mBAAmB,CAAC;;0LAAyD,CAAC,4BAA2B;oBAChG,OAAO,K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AC;;AA/KvE,wBA+K4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -17,7 +17,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
17
17
  col: { type: Boolean },
18
18
  semanticType: {},
19
19
  stretch: { type: Boolean },
20
- alwaysEmit: { type: Boolean },
20
+ allowClear: { type: Boolean },
21
21
  title: {},
22
22
  description: {},
23
23
  errorMessage: {},
@@ -31,9 +31,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
31
31
  noMargin: { type: Boolean },
32
32
  allowCopy: { type: Boolean }
33
33
  },
34
- emits: ["update:modelValue"],
35
- setup(__props) {
34
+ emits: ["update:model-value"],
35
+ setup(__props, { emit: __emit }) {
36
36
  const props = __props;
37
+ const emit = __emit;
37
38
  const getValue = (item) => {
38
39
  if (props.valueGetter && typeof item === "object") {
39
40
  return props.valueGetter(item);
@@ -41,6 +42,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
41
42
  return item;
42
43
  }
43
44
  };
45
+ const updateModelValue = (value) => {
46
+ if (value !== props.modelValue) emit("update:model-value", value);
47
+ else if (props.allowClear) emit("update:model-value", null);
48
+ };
44
49
  return (_ctx, _cache) => {
45
50
  return openBlock(), createBlock(_sfc_main$1, mergeProps(props, {
46
51
  class: _ctx.$attrs.class
@@ -64,7 +69,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
69
  class: normalizeClass({
65
70
  "flex-1": _ctx.stretch
66
71
  }),
67
- onClick: ($event) => (_ctx.alwaysEmit || getValue(item) !== _ctx.modelValue) && _ctx.$emit("update:modelValue", getValue(item))
72
+ onClick: ($event) => updateModelValue(getValue(item))
68
73
  }, {
69
74
  default: withCtx(() => [
70
75
  renderSlot(_ctx.$slots, "option", {
@@ -15,7 +15,7 @@ interface ButtonGroupPropsBase<Model extends number | string | null | boolean> e
15
15
  col?: boolean;
16
16
  semanticType?: SemanticType;
17
17
  stretch?: boolean;
18
- alwaysEmit?: boolean;
18
+ allowClear?: boolean;
19
19
  }
20
20
  interface ButtonGroupPropsForModel<Model extends number | string | null | boolean, Entity extends Record<string, unknown>, ValueGetter extends {
21
21
  fn(value: Entity): Model;
@@ -23,7 +23,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
23
23
  col: { type: Boolean },
24
24
  semanticType: {},
25
25
  stretch: { type: Boolean },
26
- alwaysEmit: { type: Boolean },
26
+ allowClear: { type: Boolean },
27
27
  title: {},
28
28
  description: {},
29
29
  errorMessage: {},
@@ -64,7 +64,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
64
64
  optionComponentProps: {},
65
65
  useQueryFnOptions: {},
66
66
  queryParamsOptions: {},
67
- noParamsOptions: { type: Boolean },
68
67
  options: {}
69
68
  },
70
69
  emits: ["success"],
@@ -21,7 +21,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
21
21
  createdData: {},
22
22
  useQueryFnOptions: {},
23
23
  useQueryFnPrefix: {},
24
- isInvalidPage: { type: Function },
25
24
  queryParamsOptions: {},
26
25
  searchField: {},
27
26
  valueQueryKey: {},
@@ -67,7 +66,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
67
66
  maxHeight: {},
68
67
  maxWidth: {},
69
68
  horizontalAlign: {},
70
- noParamsOptions: { type: Boolean },
71
69
  optionComponent: {},
72
70
  optionComponentProps: {}
73
71
  },
@@ -65,7 +65,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  optionComponentProps: {},
66
66
  useQueryFnOptions: {},
67
67
  queryParamsOptions: {},
68
- noParamsOptions: { type: Boolean },
69
68
  options: {}
70
69
  },
71
70
  emits: ["success"],
@@ -65,7 +65,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  optionComponentProps: {},
66
66
  useQueryFnOptions: {},
67
67
  queryParamsOptions: {},
68
- noParamsOptions: { type: Boolean },
69
68
  options: {}
70
69
  },
71
70
  emits: ["success"],
@@ -8,7 +8,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
8
8
  readonly "onSelect-range"?: ((value: SelectedRange<Model>) => any) | undefined;
9
9
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:page" | "onUpdate:header-padding" | "onSelect-reverse" | "onSelect-range"> & {
10
10
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
11
- isInvalidPage: (error: unknown) => boolean;
12
11
  queryParams: QueryParams;
13
12
  skeletonLength?: number;
14
13
  hidePageTitle?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/InfiniteList/WInfiniteList.vue"],"names":[],"mappings":"yBAoQiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAkZxD,mBAAmB,CAAC;;;;;;;;oBA9Yd,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;uBACjC,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;qBAC7B,WAAW;yBACP,MAAM;wBACP,OAAO;uBACR,MAAM;2BACF,OAAO;eACnB,OAAO;gBACN,OAAO;qBACF,OAAO;2BACD,OAAO,GAAG,IAAI;0BACf,OAAO;oBACb,OAAO;oBACP,OAAO;wBACH,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,MAAM;oBACN,MAAM;mBACP,MAAM;0BACC,MAAM,GAAG,KA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A,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;iBACD,CAAC,KAAK,EAAE;YACf,IAAI,SAhFY,MAAM,cAAc,MAAM,UAgFzB;YACjB,cAAc,iBAA6B;SAC5C,KAAK,IAAI;;;YAjGN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,uBAAuB,SAAS,MAAM,GAAG,IAAI;YAC7C,cAAc,SAAS,MAAM,GAAG,IAAI;YAEpC,QAAQ,UAAU,KAAK,EAAE,GAAG,IAAI;YAChC,gBAAgB,UAAU,KAAK,EAAE,GAAG,IAAI;YACxC,cAAc,SAAS,aAAa,CAAC,KAAK,CAAC,GAAG,IAAI;;;;;YAoVZ,OAAO,CAAC,OAAO,WAAW,CAAC;;AA3ZvE,wBA2Z4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -10,7 +10,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "WInfiniteList",
11
11
  props: {
12
12
  useQueryFn: {},
13
- isInvalidPage: {},
14
13
  queryParams: {},
15
14
  skeletonLength: { default: void 0 },
16
15
  hidePageTitle: { type: Boolean },
@@ -124,7 +123,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
123
  ref: infiniteListPages,
125
124
  "query-params": _ctx.queryParams,
126
125
  "use-query-fn": _ctx.useQueryFn,
127
- "is-invalid-page": _ctx.isInvalidPage,
128
126
  "scrolling-element": _ctx.scrollingElement,
129
127
  "skip-scroll-target": _ctx.skipScrollTarget,
130
128
  "skeleton-length": _ctx.skeletonLength,
@@ -183,7 +181,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
183
181
  }, 1064, ["selected", "selected-between", "onUpdate:selected", "onUpdate:selectedRange", "onUpdate:selectedRangeHover"]))
184
182
  ]),
185
183
  _: 3
186
- }, 8, ["query-params", "use-query-fn", "is-invalid-page", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
184
+ }, 8, ["query-params", "use-query-fn", "scrolling-element", "skip-scroll-target", "skeleton-length", "hide-page-title", "wrap", "no-gap", "transition", "page-length", "header-top", "header-height", "min-height", "last-child", "exclude-params", "empty-stub", "page-class", "max-pages", "refetch-interval", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection"])
187
185
  ], 64);
188
186
  };
189
187
  }
@@ -5,7 +5,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
5
5
  readonly "onUpdate:page"?: ((value: number | undefined) => any) | undefined;
6
6
  } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:count" | "onUpdate:selected" | "onUpdate:page"> & {
7
7
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
8
- isInvalidPage: (error: unknown) => boolean;
9
8
  queryParams: QueryParams;
10
9
  skeletonLength?: number;
11
10
  hidePageTitle?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"WInfiniteListPages.vue.d.ts","sourceRoot":"","sources":["../../../src/components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ACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;kBAZA,CAAC,KAAK,EAAE;YAChB,IAAI,EAAE,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,SAAS,EAAE,OAAO,CAAA;YAClB,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YA5KN,aAAa,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC/C,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;;;;;YAgiBH,OAAO,CAAC,OAAO,WAAW,CAAC;;AAxlBvE,wBAwlB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -10,7 +10,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  __name: "WInfiniteListPages",
11
11
  props: {
12
12
  useQueryFn: {},
13
- isInvalidPage: {},
14
13
  queryParams: {},
15
14
  skeletonLength: { default: void 0 },
16
15
  hidePageTitle: { type: Boolean },
@@ -163,7 +162,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
163
162
  key: page,
164
163
  "query-params": { ..._ctx.queryParams, page },
165
164
  "use-query-fn": _ctx.useQueryFn,
166
- "is-invalid-page": _ctx.isInvalidPage,
167
165
  "skeleton-length": getSkeletonLength(page - 1),
168
166
  "first-page": index === 0,
169
167
  "last-page": index === pages.value.length - 1,
@@ -212,7 +210,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
212
210
  })
213
211
  ]),
214
212
  _: 2
215
- }, 1032, ["query-params", "use-query-fn", "is-invalid-page", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
213
+ }, 1032, ["query-params", "use-query-fn", "skeleton-length", "first-page", "last-page", "hide-page-title", "wrap", "no-gap", "transition", "resetting", "empty-stub", "min-height", "last-child", "page-class", "refetch-interval", "scrolling-element", "query-options", "selected", "value-getter", "select-only", "unselect-only", "reverse-selection", "allow-page-selection", "onRefetch"]);
216
214
  }), 128)),
217
215
  count.value !== 0 && nextPage.value ? (openBlock(), createBlock(_sfc_main$2, {
218
216
  key: 1,
@@ -2,7 +2,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
2
2
  props: __VLS_PrettifyLocal<any & {
3
3
  queryParams: QueryParams;
4
4
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
5
- isInvalidPage: (error: unknown) => boolean;
6
5
  skeletonLength: number;
7
6
  firstPage: boolean;
8
7
  lastPage: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"InfiniteListPage.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/InfiniteList/components/InfiniteListPage.vue"],"names":[],"mappings":"yBA0WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WA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E,IAAI,CAAA;YACV,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YA7LN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;YA6ZsB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAtdvE,wBAsd4E;AAC5E,KAAK,mBAAmB,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":"yBA2WiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CA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AAC,OAAO,CAAC,EAAE,IAAI,GAAG,SAAS,KAAK,IAAI,CAAA;YAC5C,QAAQ,EAAE,OAAO,CAAA;YACjB,OAAO,EAAE,MAAM,IAAI,CAAA;YACnB,QAAQ,CAAC,EAAE,IAAI,CAAA;YACf,IAAI,CAAC,EAAE,IAAI,CAAA;YACX,KAAK,EAAE,OAAO,CAAA;YACd,IAAI,EAAE,OAAO,CAAA;YACb,IAAI,EAAE,MAAM,CAAA;YACZ,KAAK,EAAE,MAAM,CAAA;SACd,KAAK,IAAI;;;YA7LN,cAAc,SAAS,MAAM,GAAG,IAAI;YACpC,oBAAoB,SAAS,MAAM,GAAG,IAAI;YAC1C,kBAAkB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YAC/C,sBAAsB,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI;YACnD,eAAe,SAAS,MAAM,GAAG,IAAI;YACrC,aAAa,SAAS,MAAM,GAAG,IAAI;YACnC,SAAS,GAAG,IAAI;YAChB,2BAA2B,GAAG,IAAI;YAClC,iBAAiB,UAAU,KAAK,EAAE,GAAG,IAAI;YACzC,SAAS,GAAG,IAAI;;;;;YA6ZsB,OAAO,CAAC,OAAO,WAAW,CAAC;;AArdvE,wBAqd4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -2,14 +2,25 @@ import { defineComponent, ref, toRef, computed, watch, onMounted, nextTick, onBe
2
2
  import _sfc_main$2 from './InfiniteListPageTitle.vue.js';
3
3
  import _sfc_main$1 from './InfiniteListPageSelection.vue.js';
4
4
  import _sfc_main$3 from './EmptyComponent.vue.js';
5
+ import '../../Button/WButtonAction.vue.js';
6
+ import '../../Button/WButton.vue.js';
7
+ import '../../Button/WButtonDropdown.vue.js';
8
+ import '../../../utils/supportsPassive.js';
9
+ import '../../Dropdown/utils/DropdownStyle.js';
10
+ import 'vue-router';
11
+ import '../../../utils/Modal.js';
12
+ import { ApiError } from '../../../utils/api.js';
13
+ import '../../Input/WInputSuggest.vue.js';
14
+ import '../../Input/WInputDate.vue.js';
15
+ import '../../Link/WLink.vue.js';
16
+ import '@tanstack/vue-query';
5
17
 
6
- const _hoisted_1 = { class: "select-none cursor-default w-select-field sm-not:px-3" };
18
+ const _hoisted_1 = { class: "select-none cursor-default py-1.25 sm-not:px-3" };
7
19
  const _sfc_main = /* @__PURE__ */ defineComponent({
8
20
  __name: "InfiniteListPage",
9
21
  props: {
10
22
  queryParams: {},
11
23
  useQueryFn: {},
12
- isInvalidPage: {},
13
24
  skeletonLength: {},
14
25
  firstPage: { type: Boolean },
15
26
  lastPage: { type: Boolean },
@@ -102,7 +113,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
102
113
  }
103
114
  }, { immediate: true });
104
115
  watch(error, (error2) => {
105
- if (props.isInvalidPage(error2) && page.value !== null) emit("remove:page", page.value);
116
+ if (error2 instanceof ApiError && error2.response?.status === 404 && page.value !== null) emit("remove:page", page.value);
106
117
  }, { immediate: true });
107
118
  watch(isFetching, (value) => {
108
119
  if (value) return;
@@ -8,7 +8,7 @@ const _hoisted_1 = {
8
8
  key: 0,
9
9
  class: "flex items-center w-11 h-full justify-center text-description select-none"
10
10
  };
11
- const _hoisted_2 = { class: "col-start-2 grid grid-cols-1 group/input" };
11
+ const _hoisted_2 = { class: "flex flex-wrap gap-1" };
12
12
  const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  ...{ inheritAttrs: false },
14
14
  __name: "WInput",
@@ -189,12 +189,12 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
189
189
  _ctx.icon ? (openBlock(), createElementBlock("div", _hoisted_1, [
190
190
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), { class: "square-5" }))
191
191
  ])) : createCommentVNode("", true),
192
- createElementVNode("div", _hoisted_2, [
193
- createElementVNode("div", {
194
- class: normalizeClass(["flex flex-wrap", {
195
- "py-1 gap-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
196
- }])
197
- }, [
192
+ createElementVNode("div", {
193
+ class: normalizeClass(["col-start-2 grid grid-cols-1 group/input", {
194
+ "py-1 first:pl-1 last:pr-1": _ctx.$slots.prefix
195
+ }])
196
+ }, [
197
+ createElementVNode("div", _hoisted_2, [
198
198
  renderSlot(_ctx.$slots, "prefix"),
199
199
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.textarea ? "textarea" : "input"), {
200
200
  id,
@@ -245,8 +245,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
245
245
  onMousedown: _cache[5] || (_cache[5] = withModifiers(($event) => _ctx.$emit("mousedown", $event), ["stop"])),
246
246
  onSelect: _cache[6] || (_cache[6] = withModifiers(($event) => _ctx.$emit("select:input", $event), ["stop"]))
247
247
  }, null, 40, ["id", "class", "value", "placeholder", "type", "name", "disabled", "readonly", "autocomplete", "size", "spellcheck", "onFocus", "onBlur"]))
248
- ], 2)
249
- ]),
248
+ ])
249
+ ], 2),
250
250
  createVNode(_sfc_main$2, {
251
251
  "model-value": _ctx.modelValue,
252
252
  loading: _ctx.loading,
@@ -13,7 +13,6 @@ declare const _default: <Data extends DefaultData, QueryParams>(__VLS_props: Non
13
13
  menu: MenuComponent<Data>[];
14
14
  readonlyGetter?: (item: Data) => boolean;
15
15
  cardClass?: string;
16
- isInvalidPage: (error: unknown) => boolean;
17
16
  selectAllTextGetter: (isUnselect: boolean, count: number) => string;
18
17
  }> & import('vue').PublicProps;
19
18
  expose(exposed: import('vue').ShallowUnwrapRef<{}>): void;
@@ -1 +1 @@
1
- {"version":3,"file":"WList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/List/WList.vue"],"names":[],"mappings":"AA8MA,OAAO,KAAK,EAAC,aAAa,EAAE,SAAS,EAAE,aAAa,EAAC,MAAM,SAAS,CAAA;yBAOnD,IAAI,SAAS,WAAW,EAAE,WAAW,eACxC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,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O,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAkaxD,mBAAmB,CAAC;;;gBA1ZpB,MAAM;gBACN,SAAS,CAAC,IAAI,EAAE,WAAW,CAAC,EAAE;oBAC1B,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;6BACH,MAAM;wBACX,MAAM;eACf,aAAa,CAAC,WAAW,CAAC,EAAE;cAC7B,aAAa,CAAC,IAAI,CAAC,EAAE;yBACV,CAAC,IAAI,EAAE,IAAI,KAAK,OAAO;oBAC5B,MAAM;6BACG,CAAC,UAAU,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,KAAK,MAAM;KAgZkB,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB,CAAC,EAAE,CAAC,GAAG,IAAI;WAClD,GAAG;;cA7YP,uBAAuB,SAAS,MAAM,KAAG,IAAI;;;;YAkZP,OAAO,CAAC,OAAO,WAAW,CAAC;;AA5avE,wBA4a4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -22,7 +22,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
22
22
  menu: {},
23
23
  readonlyGetter: { type: Function },
24
24
  cardClass: {},
25
- isInvalidPage: { type: Function },
26
25
  selectAllTextGetter: { type: Function }
27
26
  },
28
27
  emits: ["update:header-padding"],
@@ -78,7 +77,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
77
  "query-params": _ctx.queryParams,
79
78
  "skeleton-length": _ctx.count ?? listCount.value,
80
79
  "header-margin": unref(isMobile) ? 0 : 24,
81
- "is-invalid-page": _ctx.isInvalidPage,
82
80
  "hide-page-title": "",
83
81
  transition: "",
84
82
  "page-class": "grid sm:gap-4",
@@ -181,7 +179,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
181
179
  }, 1032, ["disabled", "mobile", "class"])
182
180
  ]),
183
181
  _: 1
184
- }, 8, ["use-query-fn", "query-params", "skeleton-length", "header-margin", "is-invalid-page", "allow-select", "selected", "reverse", "selected-range", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
182
+ }, 8, ["use-query-fn", "query-params", "skeleton-length", "header-margin", "allow-select", "selected", "reverse", "selected-range", "count", "onSelect", "onSelectReverse", "onSelectRange"]);
185
183
  };
186
184
  }
187
185
  });
@@ -5,8 +5,9 @@ declare const _default: <Model extends number | string, Data extends DefaultData
5
5
  readonly onBlur?: ((value: FocusEvent) => any) | undefined;
6
6
  readonly onFocus?: ((value: FocusEvent) => any) | undefined;
7
7
  readonly onUnselect?: ((item: Model) => any) | undefined;
8
+ readonly "onInit-model"?: (() => any) | undefined;
8
9
  readonly "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
9
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onUpdate:query-options-error"> & SelectProps<Model, Data, QueryParamsOptions, OptionComponent>> & import('vue').PublicProps;
10
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onFocus" | "onBlur" | "onSelect" | "onUnselect" | "onInit-model" | "onUpdate:query-options-error"> & SelectProps<Model, Data, QueryParamsOptions, OptionComponent>> & import('vue').PublicProps;
10
11
  expose(exposed: import('vue').ShallowUnwrapRef<{
11
12
  focus: () => void;
12
13
  blur: () => void;
@@ -42,6 +43,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
42
43
  (e: "focus", value: FocusEvent): void;
43
44
  (e: "blur", value: FocusEvent): void;
44
45
  (e: "update:query-options-error", value: string | undefined): void;
46
+ (e: "init-model"): void;
45
47
  };
46
48
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
47
49
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelect.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelect.vue"],"names":[],"mappings":"AA4XA,OAAO,KAAK,EAAC,WAAW,EAAE,qBAAqB,EAA6B,MAAM,SAAS,CAAA;yBAI1E,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eACnI,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAqoBxD,mBAAmB,CAAC;;;;;;uQAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;;2BA3dvB,MAAM,KAAG,IAAI;MA2dgC,GAAG,IAAI;WACpE,GAAG;;gBAtbH,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;gBATV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,C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;;gBAxbH,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;gBATV,MAAM,IAAI;mBACP,MAAM,IAAI;iBACZ,CAAC,KAAK,EAAE;YACf,MAAM,EAAE,IAAI,GAAG,IAAI,CAAA;YACnB,KAAK,CAAC,EAAE,MAAM,CAAA;YACd,QAAQ,EAAE,OAAO,CAAA;YACjB,KAAK,EAAE,OAAO,CAAA;YACd,MAAM,CAAC,EAAE,MAAM,CAAA;SAChB,KAAK,IAAI;gBACF,MAAM,IAAI;;;YA1Od,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,OAAO,SAAS,UAAU,GAAG,IAAI;YACjC,MAAM,SAAS,UAAU,GAAG,IAAI;YAChC,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YAypBmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1qBvE,wBA0qB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -65,34 +65,38 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
65
65
  optionComponentProps: {},
66
66
  useQueryFnOptions: {},
67
67
  queryParamsOptions: {},
68
- noParamsOptions: { type: Boolean },
69
68
  options: {}
70
69
  },
71
- emits: ["select", "unselect", "focus", "blur", "update:query-options-error"],
70
+ emits: ["select", "unselect", "focus", "blur", "update:query-options-error", "init-model"],
72
71
  setup(__props, { expose: __expose, emit: __emit }) {
73
72
  const props = __props;
74
73
  const emit = __emit;
75
74
  const isOpen = ref(false);
76
75
  const input = ref();
77
- const cursor = ref(-1);
76
+ const cursor = ref(0);
78
77
  const isCursorLocked = ref(false);
79
78
  const search = ref("");
80
79
  const searchPrepared = computed(() => search.value.trim().toLocaleLowerCase());
81
80
  const enabled = computed(() => !props.disabled);
82
- const { data, isLoading, error: queryError } = props.useQueryFnOptions ? props.noParamsOptions ? props.useQueryFnOptions({ enabled }) : props.useQueryFnOptions(toRef(props, "queryParamsOptions"), { enabled }) : {
81
+ const { data, isLoading, error: queryError } = props.useQueryFnOptions ? !props.queryParamsOptions ? props.useQueryFnOptions({ enabled }) : props.useQueryFnOptions(toRef(props, "queryParamsOptions"), { enabled }) : {
83
82
  data: toRef(props, "options"),
84
83
  isLoading: ref(false),
85
84
  error: ref(void 0)
86
85
  };
86
+ const createdOptions = ref([]);
87
87
  const optionsPrepared = computed(() => !data.value ? [] : props.filterOptions ? data.value.filter((option) => props.filterOptions?.(option) ?? true) : data.value);
88
- const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsPrepared.value : optionsPrepared.value.filter((option) => props.searchFn(option, searchPrepared.value)));
88
+ const optionsWithCreated = computed(() => [
89
+ ...optionsPrepared.value,
90
+ ...createdOptions.value.filter((option) => !optionsPrepared.value.some((item) => props.valueGetter(item) === props.valueGetter(option)))
91
+ ]);
92
+ const optionsFiltered = computed(() => searchPrepared.value === "" ? optionsWithCreated.value : optionsWithCreated.value.filter((option) => props.searchFn(option, searchPrepared.value)));
89
93
  const lastIndex = computed(() => props.createOption ? optionsFiltered.value.length : optionsFiltered.value.length - 1);
90
94
  const isMobile = getIsMobile();
91
95
  const focused = ref(false);
92
96
  const loadingOptionIndex = ref(null);
93
97
  const loadingCreate = ref(false);
94
98
  const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
95
- const prefixList = computed(() => props.modelValue.map((value) => data.value?.find((item) => props.valueGetter(item) === value)).filter((item) => item !== void 0));
99
+ const prefixList = computed(() => props.modelValue.map((value) => optionsWithCreated.value?.find((item) => props.valueGetter(item) === value)).filter((item) => item !== void 0));
96
100
  const close = () => {
97
101
  isOpen.value = false;
98
102
  focused.value = false;
@@ -124,14 +128,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
124
128
  };
125
129
  const selectCursor = () => {
126
130
  if (isDisabled.value) return;
127
- const value = cursor.value !== -1 ? props.valueGetter(optionsFiltered.value[cursor.value]) : void 0;
128
- if (value) {
129
- setLoadingOptionIndex(cursor.value);
130
- if (props.modelValue.includes(value)) unselect(value);
131
- else select(value);
132
- } else {
133
- if (search.value) createOption(search.value);
131
+ if (cursor.value === optionsFiltered.value.length) {
132
+ if (search.value && props.createOption) create(search.value);
133
+ return;
134
134
  }
135
+ const option = cursor.value !== -1 ? optionsFiltered.value[cursor.value] : void 0;
136
+ const value = option ? props.valueGetter(option) : void 0;
137
+ if (!value) return;
138
+ setLoadingOptionIndex(cursor.value);
139
+ if (props.modelValue.includes(value)) unselect(value);
140
+ else select(value);
135
141
  };
136
142
  let deletePressTimeout = null;
137
143
  const captureDoubleDelete = () => {
@@ -155,13 +161,16 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
155
161
  if (isDisabled.value) return;
156
162
  emit("unselect", item);
157
163
  search.value = "";
164
+ const index = createdOptions.value.findIndex((option) => props.valueGetter(option) === item);
165
+ if (index !== -1) createdOptions.value.splice(index, 1);
158
166
  };
159
- const createOption = async (value) => {
167
+ const create = async (value) => {
160
168
  if (isDisabled.value) return;
161
169
  if (!props.createOption) return;
162
170
  loadingCreate.value = true;
163
171
  const option = await props.createOption(value);
164
172
  if (option) {
173
+ createdOptions.value.push(option);
165
174
  setLoadingOptionIndex(optionsFiltered.value.length);
166
175
  select(props.valueGetter(option));
167
176
  search.value = "";
@@ -180,10 +189,13 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
180
189
  if (props.useQueryFnDefault) {
181
190
  const { data: defaultData } = props.useQueryFnDefault({ enabled });
182
191
  watch(defaultData, (value) => {
183
- if (value && props.modelValue.length === 0) select(props.valueGetter(value));
192
+ if (value && props.modelValue.length === 0) {
193
+ select(props.valueGetter(value));
194
+ emit("init-model");
195
+ }
184
196
  }, { immediate: true });
185
197
  }
186
- watch(toRef(props, "modelValue"), async () => {
198
+ watch(() => props.modelValue, async () => {
187
199
  await nextTick();
188
200
  input.value?.updateDropdown();
189
201
  });
@@ -194,6 +206,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
194
206
  emit("update:query-options-error", void 0);
195
207
  }
196
208
  }, { immediate: true });
209
+ watch(() => optionsFiltered.value.length, (length) => {
210
+ if (length < cursor.value) cursor.value = length;
211
+ });
197
212
  __expose({
198
213
  focus,
199
214
  blur,
@@ -256,7 +271,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
256
271
  ]),
257
272
  content: withCtx(() => [
258
273
  !optionsFiltered.value.length ? (openBlock(), createElementBlock("div", _hoisted_1, [
259
- createElementVNode("div", _hoisted_2, toDisplayString(_ctx.emptyStub ?? "No match"), 1)
274
+ createElementVNode("div", _hoisted_2, toDisplayString(!search.value && _ctx.emptyStub ? _ctx.emptyStub : "No match"), 1)
260
275
  ])) : createCommentVNode("", true),
261
276
  (openBlock(true), createElementBlock(Fragment, null, renderList(optionsFiltered.value, (option, index) => {
262
277
  return openBlock(), createBlock(_sfc_main$3, {
@@ -293,7 +308,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
293
308
  _: 2
294
309
  }, 1032, ["is-selected", "is-cursor", "loading", "scroll", "hide-option-icon", "onSelect", "onUnselect", "onMouseenter"]);
295
310
  }), 128)),
296
- createOption && search.value !== "" ? (openBlock(), createBlock(_sfc_main$3, {
311
+ _ctx.createOption && search.value !== "" && !optionsFiltered.value.some((option) => _ctx.valueGetter(option) === search.value) ? (openBlock(), createBlock(_sfc_main$3, {
297
312
  key: 1,
298
313
  "is-selected": false,
299
314
  "is-cursor": cursor.value === optionsFiltered.value.length,
@@ -301,7 +316,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
301
316
  scroll: isCursorLocked.value,
302
317
  "hide-option-icon": _ctx.hideOptionIcon,
303
318
  class: "first:pt-4 last:pb-4",
304
- onSelect: _cache[0] || (_cache[0] = ($event) => createOption(search.value)),
319
+ onSelect: _cache[0] || (_cache[0] = ($event) => create(search.value)),
305
320
  onMouseenter: _cache[1] || (_cache[1] = ($event) => setCursor(optionsFiltered.value.length))
306
321
  }, {
307
322
  prefix: withCtx(() => _cache[7] || (_cache[7] = [
@@ -4,7 +4,8 @@ declare const _default: <Model extends number | string, Data extends DefaultData
4
4
  readonly onSelect?: ((item: Model) => any) | undefined;
5
5
  readonly "onUpdate:modelValue"?: ((value: Model[]) => any) | undefined;
6
6
  readonly onUnselect?: ((item: Model) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
7
+ readonly "onInit-model"?: (() => any) | undefined;
8
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:modelValue" | "onUnselect" | "onInit-model"> & SelectAsyncProps<Model, Data, QueryParams, OptionComponent>> & import('vue').PublicProps;
8
9
  expose(exposed: import('vue').ShallowUnwrapRef<{
9
10
  focus: () => void;
10
11
  blur: () => void;
@@ -39,6 +40,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
39
40
  (e: "select", item: Model): void;
40
41
  (e: "unselect", item: Model): void;
41
42
  (e: "update:modelValue", value: Model[]): void;
43
+ (e: "init-model"): void;
42
44
  };
43
45
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
44
46
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsync.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsync.vue"],"names":[],"mappings":"AAoQA,O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GAAG,IAAI,CAAC;YAAC,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;gBAH9H,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,KAAK,CAAC,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAC;YAAC,MAAM,CAAC,EAAE,MAAM,CAAA;SAAC,KAAK,IAAI;;;YA7HlI,QAAQ,QAAQ,KAAK,GAAG,IAAI;YAC5B,UAAU,QAAQ,KAAK,GAAG,IAAI;YAC9B,mBAAmB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC1C,YAAY,GAAG,IAAI;;;;;YAihBmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AAviBvE,wBAuiB4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -10,7 +10,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
10
10
  props: {
11
11
  useQueryFnOptions: {},
12
12
  useQueryFnPrefix: {},
13
- isInvalidPage: {},
14
13
  queryParamsOptions: {},
15
14
  searchField: {},
16
15
  previewData: {},
@@ -60,11 +59,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
60
59
  maxHeight: {},
61
60
  maxWidth: {},
62
61
  horizontalAlign: {},
63
- noParamsOptions: { type: Boolean },
64
62
  optionComponent: {},
65
63
  optionComponentProps: {}
66
64
  },
67
- emits: ["select", "unselect", "update:modelValue"],
65
+ emits: ["select", "unselect", "update:modelValue", "init-model"],
68
66
  setup(__props, { expose: __expose, emit: __emit }) {
69
67
  const props = __props;
70
68
  const emit = __emit;
@@ -78,6 +76,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
78
76
  const loadingCreate = ref(false);
79
77
  const isDisabled = computed(() => props.loading || props.readonly || props.disabled);
80
78
  const enabled = computed(() => !props.disabled);
79
+ const queryParams = computed(() => ({ ...props.queryParamsOptions, [props.searchField ?? "search"]: search.value }));
80
+ const queryParamsFirstPage = computed(() => ({ ...queryParams.value, page: 1 }));
81
+ const { data: firstPageData } = props.useQueryFnOptions(queryParamsFirstPage, { enabled: false });
82
+ const hasSearchOption = computed(() => firstPageData.value?.results.some((option) => props.valueGetter(option) === search.value));
81
83
  const close = () => {
82
84
  isOpen.value = false;
83
85
  focused.value = false;
@@ -134,7 +136,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
134
136
  if (props.useQueryFnDefault) {
135
137
  const { data: defaultData } = props.useQueryFnDefault({ enabled });
136
138
  watch(defaultData, (value) => {
137
- if (value && props.modelValue.length === 0) select(props.valueGetter(value));
139
+ if (value && props.modelValue.length === 0) {
140
+ select(props.valueGetter(value));
141
+ emit("init-model");
142
+ }
138
143
  }, { immediate: true });
139
144
  }
140
145
  __expose({
@@ -204,12 +209,11 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
204
209
  ref: list,
205
210
  "model-value": _ctx.modelValue,
206
211
  "use-query-fn": _ctx.useQueryFnOptions,
207
- "query-params": { ..._ctx.queryParamsOptions, [_ctx.searchField ?? "search"]: search.value },
208
- "is-invalid-page": _ctx.isInvalidPage,
212
+ "query-params": queryParams.value,
209
213
  loading: _ctx.loading || isFetchingPrefix.value,
210
214
  disabled: isDisabled.value,
211
- "empty-stub": _ctx.emptyStub,
212
- "allow-create": _ctx.createOption && search.value !== "",
215
+ "empty-stub": !search.value && _ctx.emptyStub ? _ctx.emptyStub : void 0,
216
+ "allow-create": _ctx.createOption && search.value !== "" && !hasSearchOption.value,
213
217
  "hide-option-icon": _ctx.hideOptionIcon,
214
218
  "value-getter": _ctx.valueGetter,
215
219
  "loading-create": loadingCreate.value,
@@ -236,7 +240,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
236
240
  ])
237
241
  ]),
238
242
  _: 3
239
- }, 8, ["model-value", "use-query-fn", "query-params", "is-invalid-page", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter", "loading-create"])
243
+ }, 8, ["model-value", "use-query-fn", "query-params", "loading", "disabled", "empty-stub", "allow-create", "hide-option-icon", "value-getter", "loading-create"])
240
244
  ]),
241
245
  _: 2
242
246
  }, [
@@ -4,12 +4,11 @@ declare const _default: <Model extends number | string, Data extends DefaultData
4
4
  readonly "onUpdate:count"?: ((value: number) => any) | undefined;
5
5
  readonly "onUpdate:model-value"?: ((value: Model[]) => any) | undefined;
6
6
  readonly onUnselect?: ((value: Model) => any) | undefined;
7
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUnselect" | "onUpdate:model-value"> & {
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onSelect" | "onUpdate:count" | "onUpdate:model-value" | "onUnselect"> & {
8
8
  title?: string;
9
9
  emptyStub?: string;
10
10
  modelValue: Model[];
11
11
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
12
- isInvalidPage: (error: unknown) => boolean;
13
12
  queryParams: QueryParams;
14
13
  skeleton?: boolean;
15
14
  excludeParams?: (keyof QueryParams)[];
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncList.vue"],"names":[],"mappings":"yBA2GiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAA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Q,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;kBAA5F,CAAC,KAAK,EAAE;YAAC,MAAM,EAAE,IAAI,GAAG,IAAI,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,QAAQ,EAAE,OAAO,CAAC;YAAC,KAAK,EAAE,OAAO,CAAA;SAAC,KAAK,IAAI;;;YATlG,QAAQ,SAAS,KAAK,GAAG,IAAI;YAC7B,UAAU,SAAS,KAAK,GAAG,IAAI;YAC/B,oBAAoB,SAAS,KAAK,EAAE,GAAG,IAAI;YAC3C,cAAc,SAAS,MAAM,GAAG,IAAI;;;;;YA8ME,OAAO,CAAC,OAAO,WAAW,CAAC;;AAjPvE,wBAiP4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -13,7 +13,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
13
13
  emptyStub: { default: void 0 },
14
14
  modelValue: {},
15
15
  useQueryFn: {},
16
- isInvalidPage: {},
17
16
  queryParams: {},
18
17
  skeleton: { type: Boolean },
19
18
  excludeParams: { default: void 0 },
@@ -45,7 +44,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
45
44
  createVNode(_sfc_main$1, {
46
45
  "model-value": _ctx.modelValue,
47
46
  "use-query-fn": _ctx.useQueryFn,
48
- "is-invalid-page": _ctx.isInvalidPage,
49
47
  "query-params": _ctx.queryParams,
50
48
  "scrolling-element": list.value,
51
49
  "exclude-params": _ctx.excludeParams,
@@ -72,7 +70,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
72
70
  })
73
71
  ]),
74
72
  _: 3
75
- }, 8, ["model-value", "use-query-fn", "is-invalid-page", "query-params", "scrolling-element", "exclude-params", "empty-stub", "select-only", "unselect-only", "hide-option-icon", "value-getter", "query-options"])
73
+ }, 8, ["model-value", "use-query-fn", "query-params", "scrolling-element", "exclude-params", "empty-stub", "select-only", "unselect-only", "hide-option-icon", "value-getter", "query-options"])
76
74
  ], 512))
77
75
  ]);
78
76
  };
@@ -2,7 +2,8 @@ import { SelectAsyncSingleProps, SelectOptionComponent } from './types';
2
2
  declare const _default: <Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:modelValue"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
5
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue"> & SelectAsyncSingleProps<Model, Data, QueryParams, OptionComponent, AllowClear>> & import('vue').PublicProps;
5
+ readonly "onInit-model"?: (() => any) | undefined;
6
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:modelValue" | "onInit-model"> & SelectAsyncSingleProps<Model, Data, QueryParams, OptionComponent, AllowClear>> & import('vue').PublicProps;
6
7
  expose(exposed: import('vue').ShallowUnwrapRef<{
7
8
  blur: () => void;
8
9
  }>): void;
@@ -18,7 +19,10 @@ declare const _default: <Model extends number | string, Data extends DefaultData
18
19
  }): any;
19
20
  right?(_: {}): any;
20
21
  };
21
- emit: (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model) => void;
22
+ emit: {
23
+ (e: "update:modelValue", value: AllowClear extends true ? Model | null : Model): void;
24
+ (e: "init-model"): void;
25
+ };
22
26
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
23
27
  [key: string]: any;
24
28
  }> & {
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectAsyncSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectAsyncSingle.vue"],"names":[],"mappings":"AAsFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsLxD,mBAAmB,CAAC;;2NAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAlCc,GAAG;0BACC,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;cA9IzB,mBAAmB,4DAAoB,IAAI;;;;YAkLL,OAAO,CAAC,OAAO,WAAW,CAAC;;AAhMvE,wBAgM4E;AAC5E,KAAK,mBAAmB,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":"AAwFA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBACxJ,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA2MxD,mBAAmB,CAAC;;;4OAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YAlKzB,mBAAmB,0DAAoB,IAAI;YAC3C,YAAY,GAAG,IAAI;;;;;YAsMmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AArNvE,wBAqN4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -12,7 +12,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
12
12
  createdData: {},
13
13
  useQueryFnOptions: {},
14
14
  useQueryFnPrefix: {},
15
- isInvalidPage: { type: Function },
16
15
  queryParamsOptions: {},
17
16
  searchField: {},
18
17
  valueQueryKey: {},
@@ -58,11 +57,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
58
57
  maxHeight: {},
59
58
  maxWidth: {},
60
59
  horizontalAlign: {},
61
- noParamsOptions: { type: Boolean },
62
60
  optionComponent: {},
63
61
  optionComponentProps: {}
64
62
  },
65
- emits: ["update:modelValue"],
63
+ emits: ["update:modelValue", "init-model"],
66
64
  setup(__props, { expose: __expose, emit: __emit }) {
67
65
  const props = __props;
68
66
  const emit = __emit;
@@ -92,7 +90,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
92
90
  }, {
93
91
  class: _ctx.$attrs.class,
94
92
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
95
- onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null))
93
+ onUnselect: _cache[1] || (_cache[1] = ($event) => _ctx.allowClear && updateModelValue(null)),
94
+ onInitModel: _cache[2] || (_cache[2] = ($event) => _ctx.$emit("init-model"))
96
95
  }), createSlots({
97
96
  option: withCtx(({ option, selected, model, search }) => [
98
97
  renderSlot(_ctx.$slots, "option", {
@@ -2,8 +2,9 @@ import { SelectSingleProps, SelectOptionComponent } from './types';
2
2
  declare const _default: <Model extends number | string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>, AllowClear extends boolean = false>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:model-value"?: ((value: AllowClear extends true ? Model | null : Model) => any) | undefined;
5
+ readonly "onInit-model"?: (() => any) | undefined;
5
6
  readonly "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:query-options-error" | "onUpdate:model-value"> & SelectSingleProps<Model, Data, QueryParamsOptions, OptionComponent, AllowClear>> & import('vue').PublicProps;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onInit-model" | "onUpdate:query-options-error"> & SelectSingleProps<Model, Data, QueryParamsOptions, OptionComponent, AllowClear>> & import('vue').PublicProps;
7
8
  expose(exposed: import('vue').ShallowUnwrapRef<{
8
9
  blur: () => void;
9
10
  }>): void;
@@ -22,6 +23,7 @@ declare const _default: <Model extends number | string, Data extends DefaultData
22
23
  emit: {
23
24
  (e: "update:model-value", value: AllowClear extends true ? Model | null : Model): void;
24
25
  (e: "update:query-options-error", value: string | undefined): void;
26
+ (e: "init-model"): void;
25
27
  };
26
28
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
27
29
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectSingle.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectSingle.vue"],"names":[],"mappings":"AAyFA,OAAO,KAAK,EAAC,iBAAiB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGpD,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,uBAC/J,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WAsNxD,mBAAmB,CAAC;;;+PAAyD,CAAC,4BAA2B;oBAChG,OAAO,KAAK,EAAE,gBAAgB;;MAAsB,GAAG,IAAI;WACpE,GAAG;;uBAnCe,GAAG;0BACA,GAAG;;;;;;YACL,GAAG;uBACJ,GAAG;;;YA7KzB,oBAAoB,0DAAoB,IAAI;YAC5C,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;;;;;Y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,CAAC"}
@@ -56,10 +56,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  optionComponentProps: {},
57
57
  useQueryFnOptions: {},
58
58
  queryParamsOptions: {},
59
- noParamsOptions: { type: Boolean },
60
59
  options: {}
61
60
  },
62
- emits: ["update:model-value", "update:query-options-error"],
61
+ emits: ["update:model-value", "update:query-options-error", "init-model"],
63
62
  setup(__props, { expose: __expose, emit: __emit }) {
64
63
  const props = __props;
65
64
  const emit = __emit;
@@ -90,7 +89,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
90
89
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event)),
91
90
  onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue(_ctx.allowClear ? null : $event)),
92
91
  onFocus: _cache[2] || (_cache[2] = ($event) => _ctx.searchModel && typeof _ctx.modelValue === "string" ? selectComponent.value?.setSearch(_ctx.modelValue) : void 0),
93
- "onUpdate:queryOptionsError": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:query-options-error", $event))
92
+ "onUpdate:queryOptionsError": _cache[3] || (_cache[3] = ($event) => _ctx.$emit("update:query-options-error", $event)),
93
+ onInitModel: _cache[4] || (_cache[4] = ($event) => _ctx.$emit("init-model"))
94
94
  }), createSlots({
95
95
  option: withCtx(({ option, selected, model, search }) => [
96
96
  renderSlot(_ctx.$slots, "option", {
@@ -2,8 +2,9 @@ import { SelectStringifiedProps, SelectOptionComponent } from './types';
2
2
  declare const _default: <Model extends string, Data extends DefaultData, QueryParamsOptions, OptionComponent extends SelectOptionComponent<Data>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: __VLS_PrettifyLocal<Pick<Partial<{}> & Omit<{
4
4
  readonly "onUpdate:model-value"?: ((value: Model | null) => any) | undefined;
5
+ readonly "onInit-model"?: (() => any) | undefined;
5
6
  readonly "onUpdate:query-options-error"?: ((value: string | undefined) => any) | undefined;
6
- } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:query-options-error" | "onUpdate:model-value"> & SelectStringifiedProps<Model, Data, QueryParamsOptions, OptionComponent>> & import('vue').PublicProps;
7
+ } & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, never>, "onUpdate:model-value" | "onInit-model" | "onUpdate:query-options-error"> & SelectStringifiedProps<Model, Data, QueryParamsOptions, OptionComponent>> & import('vue').PublicProps;
7
8
  expose(exposed: import('vue').ShallowUnwrapRef<{
8
9
  blur: () => void;
9
10
  }>): void;
@@ -22,6 +23,7 @@ declare const _default: <Model extends string, Data extends DefaultData, QueryPa
22
23
  emit: {
23
24
  (e: "update:model-value", value: Model | null): void;
24
25
  (e: "update:query-options-error", value: string | undefined): void;
26
+ (e: "init-model"): void;
25
27
  };
26
28
  }>) => import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
27
29
  [key: string]: any;
@@ -1 +1 @@
1
- {"version":3,"file":"WSelectStringified.vue.d.ts","sourceRoot":"","sources":["../../../src/components/Select/WSelectStringified.vue"],"names":[],"mappings":"AA8FA,OAAO,KAAK,EAAC,sBAAsB,EAAE,qBAAqB,EAAC,MAAM,SAAS,CAAA;yBAGzD,KAAK,SAAS,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,kBAAkB,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,eAC1H,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,O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;;YAxLzB,oBAAoB,SAAS,KAAK,GAAG,IAAI,GAAG,IAAI;YAChD,4BAA4B,SAAS,MAAM,GAAG,SAAS,GAAG,IAAI;YAC9D,YAAY,GAAG,IAAI;;;;;YA4NmB,OAAO,CAAC,OAAO,WAAW,CAAC;;AA1OvE,wBA0O4E;AAC5E,KAAK,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { defineComponent, ref, computed, watch, toRef, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot } from 'vue';
1
+ import { defineComponent, ref, computed, openBlock, createBlock, mergeProps, createSlots, withCtx, renderSlot } from 'vue';
2
2
  import _sfc_main$1 from './WSelect.vue.js';
3
3
 
4
4
  const _sfc_main = /* @__PURE__ */ defineComponent({
@@ -56,10 +56,9 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
56
56
  optionComponentProps: {},
57
57
  useQueryFnOptions: {},
58
58
  queryParamsOptions: {},
59
- noParamsOptions: { type: Boolean },
60
59
  options: {}
61
60
  },
62
- emits: ["update:model-value", "update:query-options-error"],
61
+ emits: ["update:model-value", "update:query-options-error", "init-model"],
63
62
  setup(__props, { expose: __expose, emit: __emit }) {
64
63
  const props = __props;
65
64
  const emit = __emit;
@@ -79,7 +78,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
79
78
  const blur = () => {
80
79
  selectComponent.value?.blur();
81
80
  };
82
- watch(toRef(props, "modelValue"), blur);
83
81
  __expose({
84
82
  blur
85
83
  });
@@ -94,7 +92,8 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
94
92
  class: _ctx.$attrs.class,
95
93
  onSelect: _cache[0] || (_cache[0] = ($event) => updateModelValue($event, true)),
96
94
  onUnselect: _cache[1] || (_cache[1] = ($event) => updateModelValue($event, false)),
97
- "onUpdate:queryOptionsError": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:query-options-error", $event))
95
+ "onUpdate:queryOptionsError": _cache[2] || (_cache[2] = ($event) => _ctx.$emit("update:query-options-error", $event)),
96
+ onInitModel: _cache[3] || (_cache[3] = ($event) => _ctx.$emit("init-model"))
98
97
  }), createSlots({
99
98
  option: withCtx(({ option, selected, model, search }) => [
100
99
  renderSlot(_ctx.$slots, "option", {
@@ -9,7 +9,6 @@ declare const _default: <Model extends number | string, Data extends DefaultData
9
9
  modelValue: Model[];
10
10
  useQueryFn: UseQueryPaginated<Data, QueryParams>;
11
11
  queryParams: QueryParams;
12
- isInvalidPage: (error: unknown) => boolean;
13
12
  scrollingElement?: Element | null;
14
13
  loading?: boolean;
15
14
  disabled?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"SelectAsyncList.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/Select/components/SelectAsyncList.vue"],"names":[],"mappings":"yBAyNiB,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,eACvE,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,OAAO,CAAC,cAClD,mBAAmB,CAAC,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,EAAE,OAAO,GAAG,MAAM,GAAG,OAAO,CAAC,CAAC,iBAC5F,WAAW,CAAC,OAAO,CAAC,OAAO,WAAW,CAAC,CAAC,CAAC,QAAQ,CAAC;WA8fxD,mBAAmB,CAAC;;;;;;;oBA1fhB,KAAK,EAAE;oBACP,iBAAiB,CAAC,IAAI,EAAE,WAAW,CAAC;qBACnC,WAAW;uBACT,CAAC,KAAK,EAAE,OAAO,KAAK,OAAO;2BACvB,OAAO,GAAG,IAAI;kBACvB,OAAO;mBACN,OAAO;qBACL,OAAO;wBACJ,CAAC,MAAM,WAAW,CAAC,EAAE;oBACzB,OAAO;oBACP,MAAM;qBACL,OAAO;uBACL,OAAO;sBACR,OAAO;yBACJ,OAAO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,mBAAmB,CAAC,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;CAAG,GAAG,EAAE,CAAC"}
@@ -9,7 +9,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
9
9
  modelValue: {},
10
10
  useQueryFn: {},
11
11
  queryParams: {},
12
- isInvalidPage: { type: Function },
13
12
  scrollingElement: {},
14
13
  loading: { type: Boolean },
15
14
  disabled: { type: Boolean },
@@ -87,7 +86,6 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
87
86
  createVNode(_sfc_main$1, {
88
87
  "use-query-fn": _ctx.useQueryFn,
89
88
  "query-params": _ctx.queryParams,
90
- "is-invalid-page": _ctx.isInvalidPage,
91
89
  "scrolling-element": _ctx.scrollingElement,
92
90
  transition: _ctx.transition,
93
91
  "exclude-params": _ctx.excludeParams,
@@ -154,7 +152,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
154
152
  }, 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"])
155
153
  ]),
156
154
  _: 3
157
- }, 8, ["use-query-fn", "query-params", "is-invalid-page", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
155
+ }, 8, ["use-query-fn", "query-params", "scrolling-element", "transition", "exclude-params", "selected", "empty-stub", "select-only", "unselect-only", "value-getter", "query-options", "skeleton-length", "last-child"]),
158
156
  _ctx.allowCreate ? (openBlock(), createBlock(_sfc_main$2, {
159
157
  key: 0,
160
158
  "is-selected": false,
@@ -14,20 +14,17 @@ export interface SelectOptionComponentProps<Option, OptionComponent extends Sele
14
14
  interface SelectPropsNoParams<Data extends DefaultData> {
15
15
  useQueryFnOptions: UseQueryEmpty<Data[]>;
16
16
  queryParamsOptions?: never;
17
- noParamsOptions: true;
18
17
  options?: never;
19
18
  }
20
19
  interface SelectPropsWithParams<Data extends DefaultData, QueryParams> {
21
20
  useQueryFnOptions: UseQueryWithParams<Data[], QueryParams>;
22
21
  queryParamsOptions: QueryParams;
23
- noParamsOptions?: never;
24
22
  options?: never;
25
23
  }
26
24
  interface SelectPropsWithOptions<Data extends DefaultData> {
27
25
  options: Data[];
28
26
  useQueryFnOptions?: never;
29
27
  queryParamsOptions?: never;
30
- noParamsOptions?: never;
31
28
  }
32
29
  type SelectPropsOptions<Data extends DefaultData, QueryParams> = SelectPropsNoParams<Data> | SelectPropsWithParams<Data, QueryParams> | SelectPropsWithOptions<Data>;
33
30
  export interface SelectProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<InputSuggestProps<'text'>, 'modelValue' | 'allowClear' | 'hideInput'>, SelectOptionComponentProps<Data, OptionComponent>, Omit<SelectPropsOptions<Data, QueryParams>, 'modelValue'> {
@@ -61,7 +58,6 @@ export interface SelectStringifiedProps<Model extends string, Data extends Defau
61
58
  export interface SelectAsyncProps<Model extends number | string, Data extends DefaultData, QueryParams, OptionComponent extends SelectOptionComponent<Data>> extends Omit<SelectProps<Model, Data, QueryParams, Component>, 'options' | 'optionComponent' | 'optionComponentProps' | 'searchFn' | 'useQueryFnOptions' | 'queryParamsOptions' | 'options' | 'filterOptions'>, SelectOptionComponentProps<Data, OptionComponent> {
62
59
  useQueryFnOptions: UseQueryPaginated<Data, QueryParams>;
63
60
  useQueryFnPrefix?: UseQueryPaginated<Data, QueryParams>;
64
- isInvalidPage: (error: unknown) => boolean;
65
61
  queryParamsOptions: QueryParams;
66
62
  searchField?: keyof QueryParams;
67
63
  previewData?: Data[];
@@ -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/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AAA;IACtB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAA;IACpB,WAAW,CAAC,EAAE,IAAI,EAAE,CAAA;IACpB,WAAW,EAAE,CAAC,KAAK,EAAE,IAAI,KAAK,KAAK,CAAA;CACpC;AAED,MAAM,WAAW,sBAAsB,CAAC,KAAK,SAAS,MAAM,GAAG,MAAM,EAAE,IAAI,SAAS,WAAW,EAAE,WAAW,EAAE,eAAe,SAAS,qBAAqB,CAAC,IAAI,CAAC,EAAE,UAAU,SAAS,OAAO,CAC3L,SAAQ,IAAI,CAAC,gBAAgB,CAAC,KAAK,EAAE,IAAI,EAAE,WAAW,EAAE,eAAe,CAAC,EAAE,YAAY,GAAG,cAAc,GAAG,aAAa,GAAG,aAAa,CAAC;IACxI,UAAU,EAAE,KAAK,GAAG,IAAI,CAAA;IACxB,UAAU,CAAC,EAAE,OAAO,GAAG,UAAU,CAAA;IACjC,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,WAAW,CAAC,EAAE,IAAI,CAAA;IAClB,WAAW,CAAC,EAAE,IAAI,CAAA;CACnB"}
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "type": "git",
5
5
  "url": "https://github.com/rsmple/eco-vue-js.git"
6
6
  },
7
- "version": "0.8.14",
7
+ "version": "0.8.16",
8
8
  "scripts": {
9
9
  "dev": "vite",
10
10
  "build": "run-p type-check build-only",
@@ -1,5 +1,6 @@
1
1
 
2
2
  const extend = {
3
+ '1.25': '0.3125rem',
3
4
  6: '1.5rem',
4
5
  10: '2.5rem',
5
6
  11: '2.75rem',
@@ -22,4 +23,6 @@ module.exports = {
22
23
  },
23
24
  maxWidth: extend,
24
25
  minWidth: extend,
26
+ padding: extend,
27
+ margin: extend,
25
28
  }