v-nuxt-ui 0.1.16 → 0.1.17

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (75) hide show
  1. package/dist/module.json +1 -1
  2. package/dist/runtime/components/DeleteModal.d.vue.ts +22 -10
  3. package/dist/runtime/components/DeleteModal.vue.d.ts +22 -10
  4. package/dist/runtime/components/Empty.d.vue.ts +1 -1
  5. package/dist/runtime/components/Empty.vue.d.ts +1 -1
  6. package/dist/runtime/components/simple-table/index.d.vue.ts +1 -1
  7. package/dist/runtime/components/simple-table/index.vue.d.ts +1 -1
  8. package/dist/runtime/components/table/ExcelExportModal.d.vue.ts +22 -26
  9. package/dist/runtime/components/table/ExcelExportModal.vue.d.ts +22 -26
  10. package/dist/runtime/components/table/Page.d.vue.ts +1 -1
  11. package/dist/runtime/components/table/Page.vue.d.ts +1 -1
  12. package/dist/runtime/components/table/Pagination.d.vue.ts +1 -1
  13. package/dist/runtime/components/table/Pagination.vue.d.ts +1 -1
  14. package/dist/runtime/components/table/header/index.d.vue.ts +1 -1
  15. package/dist/runtime/components/table/header/index.vue +9 -4
  16. package/dist/runtime/components/table/header/index.vue.d.ts +1 -1
  17. package/dist/runtime/components/table/header/settings/columns/DndList.d.vue.ts +1 -1
  18. package/dist/runtime/components/table/header/settings/columns/DndList.vue.d.ts +1 -1
  19. package/dist/runtime/components/table/header/settings/columns/Item.d.vue.ts +23 -13
  20. package/dist/runtime/components/table/header/settings/columns/Item.vue.d.ts +23 -13
  21. package/dist/runtime/components/table/header/settings/columns/index.d.vue.ts +6 -19
  22. package/dist/runtime/components/table/header/settings/columns/index.vue.d.ts +6 -19
  23. package/dist/runtime/components/table/header/settings/index.d.vue.ts +10 -21
  24. package/dist/runtime/components/table/header/settings/index.vue.d.ts +10 -21
  25. package/dist/runtime/components/table/index.d.vue.ts +1 -1
  26. package/dist/runtime/components/table/index.vue.d.ts +1 -1
  27. package/dist/runtime/components/table/query/order/Item.d.vue.ts +28 -0
  28. package/dist/runtime/components/table/query/order/Item.vue.d.ts +28 -0
  29. package/dist/runtime/components/table/query/order/Newer.d.vue.ts +25 -0
  30. package/dist/runtime/components/table/query/order/Newer.vue.d.ts +25 -0
  31. package/dist/runtime/components/table/query/order/index.d.vue.ts +1 -1
  32. package/dist/runtime/components/table/query/order/index.vue.d.ts +1 -1
  33. package/dist/runtime/components/table/query/where/Newer.d.vue.ts +22 -10
  34. package/dist/runtime/components/table/query/where/Newer.vue.d.ts +22 -10
  35. package/dist/runtime/components/table/query/where/index.d.vue.ts +1 -1
  36. package/dist/runtime/components/table/query/where/index.vue.d.ts +1 -1
  37. package/dist/runtime/components/table/query/where/simple/index.d.vue.ts +18 -4
  38. package/dist/runtime/components/table/query/where/simple/index.vue +6 -1
  39. package/dist/runtime/components/table/query/where/simple/index.vue.d.ts +18 -4
  40. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.d.vue.ts +1 -1
  41. package/dist/runtime/components/table/query/where/simple/item/ColumnPicker.vue.d.ts +1 -1
  42. package/dist/runtime/components/table/query/where/simple/item/OprPicker.d.vue.ts +1 -1
  43. package/dist/runtime/components/table/query/where/simple/item/OprPicker.vue.d.ts +1 -1
  44. package/dist/runtime/components/table/query/where/simple/item/index.d.vue.ts +26 -16
  45. package/dist/runtime/components/table/query/where/simple/item/index.vue.d.ts +26 -16
  46. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.d.vue.ts +1 -1
  47. package/dist/runtime/components/table/query/where/simple/item/opr/DatePicker.vue.d.ts +1 -1
  48. package/dist/runtime/components/table/query/where/simple/item/opr/Input.d.vue.ts +1 -1
  49. package/dist/runtime/components/table/query/where/simple/item/opr/Input.vue.d.ts +1 -1
  50. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.d.vue.ts +1 -1
  51. package/dist/runtime/components/table/query/where/simple/item/opr/InputNumber.vue.d.ts +1 -1
  52. package/dist/runtime/components/table/query/where/simple/item/opr/Select.d.vue.ts +1 -1
  53. package/dist/runtime/components/table/query/where/simple/item/opr/Select.vue.d.ts +1 -1
  54. package/dist/runtime/components/table/query/where/simple/item/opr/index.d.vue.ts +25 -15
  55. package/dist/runtime/components/table/query/where/simple/item/opr/index.vue.d.ts +25 -15
  56. package/dist/runtime/composables/table/useTableColumns.d.ts +3 -3
  57. package/dist/runtime/composables/table/useTableColumns.js +17 -11
  58. package/dist/runtime/composables/table/useTablePagination.d.ts +1 -1
  59. package/dist/runtime/composables/useTheme.d.ts +1 -1
  60. package/dist/runtime/types/components/form/field.d.ts +7 -4
  61. package/dist/runtime/types/components/table/column.d.ts +31 -6
  62. package/dist/runtime/types/components/table/query/order.d.ts +1 -1
  63. package/dist/runtime/types/components/table/query/where.d.ts +1 -1
  64. package/dist/runtime/types/query.d.ts +3 -3
  65. package/dist/runtime/utils/excel.d.ts +1 -1
  66. package/dist/runtime/utils/request.d.ts +1 -1
  67. package/dist/runtime/utils/type.d.ts +14 -0
  68. package/dist/runtime/utils/type.js +3 -0
  69. package/package.json +1 -1
  70. package/dist/runtime/components/table/query/order/item.d.vue.ts +0 -0
  71. package/dist/runtime/components/table/query/order/item.vue.d.ts +0 -0
  72. package/dist/runtime/components/table/query/order/newer.d.vue.ts +0 -0
  73. package/dist/runtime/components/table/query/order/newer.vue.d.ts +0 -0
  74. /package/dist/runtime/components/table/query/order/{item.vue → Item.vue} +0 -0
  75. /package/dist/runtime/components/table/query/order/{newer.vue → Newer.vue} +0 -0
@@ -0,0 +1,28 @@
1
+ import type { OrderQueryOpr, OrderQueryOption, VColumn } from '#v/types';
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ field: string;
5
+ bizColumns: VColumn<T>[];
6
+ opr: OrderQueryOpr;
7
+ orderOptions: OrderQueryOption<T>[];
8
+ unselectedFields: string[];
9
+ } & {
10
+ onChange?: ((args_0: string, args_1: OrderQueryOpr) => any) | undefined;
11
+ onRemove?: (() => any) | undefined;
12
+ }> & (typeof globalThis extends {
13
+ __VLS_PROPS_FALLBACK: infer P;
14
+ } ? P : {});
15
+ expose: (exposed: {}) => void;
16
+ attrs: any;
17
+ slots: {};
18
+ emit: ((evt: "change", args_0: string, args_1: OrderQueryOpr) => void) & ((evt: "remove") => void);
19
+ }>) => import("vue").VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
25
+ [K in keyof T]: T[K];
26
+ } : {
27
+ [K in keyof T as K]: T[K];
28
+ }) & {};
@@ -0,0 +1,28 @@
1
+ import type { OrderQueryOpr, OrderQueryOption, VColumn } from '#v/types';
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ field: string;
5
+ bizColumns: VColumn<T>[];
6
+ opr: OrderQueryOpr;
7
+ orderOptions: OrderQueryOption<T>[];
8
+ unselectedFields: string[];
9
+ } & {
10
+ onChange?: ((args_0: string, args_1: OrderQueryOpr) => any) | undefined;
11
+ onRemove?: (() => any) | undefined;
12
+ }> & (typeof globalThis extends {
13
+ __VLS_PROPS_FALLBACK: infer P;
14
+ } ? P : {});
15
+ expose: (exposed: {}) => void;
16
+ attrs: any;
17
+ slots: {};
18
+ emit: ((evt: "change", args_0: string, args_1: OrderQueryOpr) => void) & ((evt: "remove") => void);
19
+ }>) => import("vue").VNode & {
20
+ __ctx?: Awaited<typeof __VLS_setup>;
21
+ };
22
+ declare const _default: typeof __VLS_export;
23
+ export default _default;
24
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
25
+ [K in keyof T]: T[K];
26
+ } : {
27
+ [K in keyof T as K]: T[K];
28
+ }) & {};
@@ -0,0 +1,25 @@
1
+ import type { OrderQueryOption, VColumn } from '#v/types';
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ options: OrderQueryOption<T>[];
5
+ unselectedFields: string[];
6
+ bizColumns: VColumn<T>[];
7
+ } & {
8
+ onNew?: ((args_0: string) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: {}) => void;
13
+ attrs: any;
14
+ slots: {};
15
+ emit: (evt: "new", args_0: string) => void;
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
22
+ [K in keyof T]: T[K];
23
+ } : {
24
+ [K in keyof T as K]: T[K];
25
+ }) & {};
@@ -0,0 +1,25 @@
1
+ import type { OrderQueryOption, VColumn } from '#v/types';
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ options: OrderQueryOption<T>[];
5
+ unselectedFields: string[];
6
+ bizColumns: VColumn<T>[];
7
+ } & {
8
+ onNew?: ((args_0: string) => any) | undefined;
9
+ }> & (typeof globalThis extends {
10
+ __VLS_PROPS_FALLBACK: infer P;
11
+ } ? P : {});
12
+ expose: (exposed: {}) => void;
13
+ attrs: any;
14
+ slots: {};
15
+ emit: (evt: "new", args_0: string) => void;
16
+ }>) => import("vue").VNode & {
17
+ __ctx?: Awaited<typeof __VLS_setup>;
18
+ };
19
+ declare const _default: typeof __VLS_export;
20
+ export default _default;
21
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
22
+ [K in keyof T]: T[K];
23
+ } : {
24
+ [K in keyof T as K]: T[K];
25
+ }) & {};
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<OrderQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { OrderQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<OrderQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,14 +1,26 @@
1
1
  import type { WhereQueryOption, VColumn, Size } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- unselectedFields: string[];
5
- bizColumns: VColumn<any>[];
6
- size?: Size;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ options: WhereQueryOption<T>[];
5
+ unselectedFields: string[];
6
+ bizColumns: VColumn<T>[];
7
+ size?: Size;
8
+ } & {
9
+ onNew?: ((args_0: string) => any) | undefined;
10
+ }> & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
13
+ expose: (exposed: {}) => void;
14
+ attrs: any;
15
+ slots: {};
16
+ emit: (evt: "new", args_0: string) => void;
17
+ }>) => import("vue").VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
7
19
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- new: (args_0: string) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onNew?: ((args_0: string) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
20
  declare const _default: typeof __VLS_export;
14
21
  export default _default;
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
25
+ [K in keyof T as K]: T[K];
26
+ }) & {};
@@ -1,14 +1,26 @@
1
1
  import type { WhereQueryOption, VColumn, Size } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- unselectedFields: string[];
5
- bizColumns: VColumn<any>[];
6
- size?: Size;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<{
4
+ options: WhereQueryOption<T>[];
5
+ unselectedFields: string[];
6
+ bizColumns: VColumn<T>[];
7
+ size?: Size;
8
+ } & {
9
+ onNew?: ((args_0: string) => any) | undefined;
10
+ }> & (typeof globalThis extends {
11
+ __VLS_PROPS_FALLBACK: infer P;
12
+ } ? P : {});
13
+ expose: (exposed: {}) => void;
14
+ attrs: any;
15
+ slots: {};
16
+ emit: (evt: "new", args_0: string) => void;
17
+ }>) => import("vue").VNode & {
18
+ __ctx?: Awaited<typeof __VLS_setup>;
7
19
  };
8
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
9
- new: (args_0: string) => any;
10
- }, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{
11
- onNew?: ((args_0: string) => any) | undefined;
12
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
13
20
  declare const _default: typeof __VLS_export;
14
21
  export default _default;
22
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
23
+ [K in keyof T]: T[K];
24
+ } : {
25
+ [K in keyof T as K]: T[K];
26
+ }) & {};
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryProps } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereQueryProps<T>> & (typeof globalThis extends {
4
4
  __VLS_PROPS_FALLBACK: infer P;
5
5
  } ? P : {});
@@ -1,7 +1,21 @@
1
1
  import type { WhereSimpleQueryProps } from '#v/types';
2
- type __VLS_Props = WhereSimpleQueryProps<any>;
3
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
4
- focusItem: (field: string) => boolean;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
7
+ focusItem: (field: string) => boolean;
8
+ }>) => void;
9
+ attrs: any;
10
+ slots: {};
11
+ emit: {};
12
+ }>) => import("vue").VNode & {
13
+ __ctx?: Awaited<typeof __VLS_setup>;
14
+ };
6
15
  declare const _default: typeof __VLS_export;
7
16
  export default _default;
17
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
18
+ [K in keyof T]: T[K];
19
+ } : {
20
+ [K in keyof T as K]: T[K];
21
+ }) & {};
@@ -13,6 +13,11 @@ const onRemoveFilter = (field) => {
13
13
  props.onUpdateItems(props.items?.filter((query) => query.field !== field) ?? []);
14
14
  };
15
15
  const itemRefMap = ref(/* @__PURE__ */ new Map());
16
+ function setItemRef(field, el) {
17
+ if (el && "focus" in el && typeof el.focus === "function") {
18
+ itemRefMap.value.set(field, el);
19
+ }
20
+ }
16
21
  defineExpose({
17
22
  focusItem: (field) => {
18
23
  const item = itemRefMap.value.get(field);
@@ -30,7 +35,7 @@ defineExpose({
30
35
  <!-- key如果是field,那么field修改后,不能聚焦后面的组件,所以这里的key用idx代替 -->
31
36
  <TableQueryWhereSimpleItem
32
37
  v-for="(item, idx) in items"
33
- :ref="(el) => itemRefMap.set(item.field, el)"
38
+ :ref="(el) => setItemRef(item.field, el)"
34
39
  :key="idx"
35
40
  :where-query-item="item"
36
41
  :options="whereOptions"
@@ -1,7 +1,21 @@
1
1
  import type { WhereSimpleQueryProps } from '#v/types';
2
- type __VLS_Props = WhereSimpleQueryProps<any>;
3
- declare const __VLS_export: import("vue").DefineComponent<__VLS_Props, {
4
- focusItem: (field: string) => boolean;
5
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<__VLS_Props> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<WhereSimpleQueryProps<T>> & (typeof globalThis extends {
4
+ __VLS_PROPS_FALLBACK: infer P;
5
+ } ? P : {});
6
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
7
+ focusItem: (field: string) => boolean;
8
+ }>) => void;
9
+ attrs: any;
10
+ slots: {};
11
+ emit: {};
12
+ }>) => import("vue").VNode & {
13
+ __ctx?: Awaited<typeof __VLS_setup>;
14
+ };
6
15
  declare const _default: typeof __VLS_export;
7
16
  export default _default;
17
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
18
+ [K in keyof T]: T[K];
19
+ } : {
20
+ [K in keyof T as K]: T[K];
21
+ }) & {};
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem, WhereQueryOption } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  options: WhereQueryOption<T>[];
5
5
  disabled?: boolean;
@@ -1,20 +1,30 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- fetching?: boolean;
5
- triggerFetching?: () => Promise<void>;
6
- onRemove: (field: string) => void;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
+ options: WhereQueryOption<T>[];
5
+ fetching?: boolean;
6
+ triggerFetching?: () => Promise<void>;
7
+ onRemove: (field: string) => void;
8
+ } & {
9
+ whereQueryItem: WhereQueryItem<T>;
10
+ }) & {
11
+ "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<T>) => any) | undefined;
12
+ }> & (typeof globalThis extends {
13
+ __VLS_PROPS_FALLBACK: infer P;
14
+ } ? P : {});
15
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
16
+ focus: () => void | undefined;
17
+ }>) => void;
18
+ attrs: any;
19
+ slots: {};
20
+ emit: (event: "update:whereQueryItem", value: WhereQueryItem<T>) => void;
21
+ }>) => import("vue").VNode & {
22
+ __ctx?: Awaited<typeof __VLS_setup>;
7
23
  };
8
- type __VLS_ModelProps = {
9
- 'whereQueryItem': WhereQueryItem<any>;
10
- };
11
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
- focus: () => void | undefined;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- "update:whereQueryItem": (value: WhereQueryItem<any>) => any;
16
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
- "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<any>) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
24
  declare const _default: typeof __VLS_export;
20
25
  export default _default;
26
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
27
+ [K in keyof T]: T[K];
28
+ } : {
29
+ [K in keyof T as K]: T[K];
30
+ }) & {};
@@ -1,20 +1,30 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- fetching?: boolean;
5
- triggerFetching?: () => Promise<void>;
6
- onRemove: (field: string) => void;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
+ options: WhereQueryOption<T>[];
5
+ fetching?: boolean;
6
+ triggerFetching?: () => Promise<void>;
7
+ onRemove: (field: string) => void;
8
+ } & {
9
+ whereQueryItem: WhereQueryItem<T>;
10
+ }) & {
11
+ "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<T>) => any) | undefined;
12
+ }> & (typeof globalThis extends {
13
+ __VLS_PROPS_FALLBACK: infer P;
14
+ } ? P : {});
15
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
16
+ focus: () => void | undefined;
17
+ }>) => void;
18
+ attrs: any;
19
+ slots: {};
20
+ emit: (event: "update:whereQueryItem", value: WhereQueryItem<T>) => void;
21
+ }>) => import("vue").VNode & {
22
+ __ctx?: Awaited<typeof __VLS_setup>;
7
23
  };
8
- type __VLS_ModelProps = {
9
- 'whereQueryItem': WhereQueryItem<any>;
10
- };
11
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
12
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
13
- focus: () => void | undefined;
14
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
15
- "update:whereQueryItem": (value: WhereQueryItem<any>) => any;
16
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
17
- "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<any>) => any) | undefined;
18
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
19
24
  declare const _default: typeof __VLS_export;
20
25
  export default _default;
26
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
27
+ [K in keyof T]: T[K];
28
+ } : {
29
+ [K in keyof T as K]: T[K];
30
+ }) & {};
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  disabled?: boolean;
5
5
  } & {
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  disabled?: boolean;
5
5
  } & {
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import { type WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  label: string | keyof T;
5
5
  disabled?: boolean;
@@ -1,5 +1,5 @@
1
1
  import type { SelectOption, WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  disabled?: boolean;
5
5
  items: SelectOption[];
@@ -1,5 +1,5 @@
1
1
  import type { SelectOption, WhereQueryItem } from '#v/types';
2
- declare const __VLS_export: <T>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
3
  props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
4
  disabled?: boolean;
5
5
  items: SelectOption[];
@@ -1,19 +1,29 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- fetching?: boolean;
5
- triggerFetching?: () => Promise<void>;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
+ options: WhereQueryOption<T>[];
5
+ fetching?: boolean;
6
+ triggerFetching?: () => Promise<void>;
7
+ } & {
8
+ whereQueryItem: WhereQueryItem<T>;
9
+ }) & {
10
+ "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<T>) => any) | undefined;
11
+ }> & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
14
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
15
+ focus: () => void | undefined;
16
+ }>) => void;
17
+ attrs: any;
18
+ slots: {};
19
+ emit: (event: "update:whereQueryItem", value: WhereQueryItem<T>) => void;
20
+ }>) => import("vue").VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
6
22
  };
7
- type __VLS_ModelProps = {
8
- 'whereQueryItem': WhereQueryItem<any>;
9
- };
10
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
12
- focus: () => void | undefined;
13
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:whereQueryItem": (value: WhereQueryItem<any>) => any;
15
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
- "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<any>) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
23
  declare const _default: typeof __VLS_export;
19
24
  export default _default;
25
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
26
+ [K in keyof T]: T[K];
27
+ } : {
28
+ [K in keyof T as K]: T[K];
29
+ }) & {};
@@ -1,19 +1,29 @@
1
1
  import type { WhereQueryOption, WhereQueryItem } from '#v/types';
2
- type __VLS_Props = {
3
- options: WhereQueryOption<any>[];
4
- fetching?: boolean;
5
- triggerFetching?: () => Promise<void>;
2
+ declare const __VLS_export: <T extends Record<string, any>>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: __VLS_PrettifyLocal<Pick<NonNullable<Awaited<typeof __VLS_setup>>, "attrs" | "emit" | "slots">>, __VLS_exposed?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
3
+ props: import("vue").PublicProps & __VLS_PrettifyLocal<({
4
+ options: WhereQueryOption<T>[];
5
+ fetching?: boolean;
6
+ triggerFetching?: () => Promise<void>;
7
+ } & {
8
+ whereQueryItem: WhereQueryItem<T>;
9
+ }) & {
10
+ "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<T>) => any) | undefined;
11
+ }> & (typeof globalThis extends {
12
+ __VLS_PROPS_FALLBACK: infer P;
13
+ } ? P : {});
14
+ expose: (exposed: import("vue").ShallowUnwrapRef<{
15
+ focus: () => void | undefined;
16
+ }>) => void;
17
+ attrs: any;
18
+ slots: {};
19
+ emit: (event: "update:whereQueryItem", value: WhereQueryItem<T>) => void;
20
+ }>) => import("vue").VNode & {
21
+ __ctx?: Awaited<typeof __VLS_setup>;
6
22
  };
7
- type __VLS_ModelProps = {
8
- 'whereQueryItem': WhereQueryItem<any>;
9
- };
10
- type __VLS_PublicProps = __VLS_Props & __VLS_ModelProps;
11
- declare const __VLS_export: import("vue").DefineComponent<__VLS_PublicProps, {
12
- focus: () => void | undefined;
13
- }, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
- "update:whereQueryItem": (value: WhereQueryItem<any>) => any;
15
- }, string, import("vue").PublicProps, Readonly<__VLS_PublicProps> & Readonly<{
16
- "onUpdate:whereQueryItem"?: ((value: WhereQueryItem<any>) => any) | undefined;
17
- }>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
18
23
  declare const _default: typeof __VLS_export;
19
24
  export default _default;
25
+ type __VLS_PrettifyLocal<T> = (T extends any ? {
26
+ [K in keyof T]: T[K];
27
+ } : {
28
+ [K in keyof T as K]: T[K];
29
+ }) & {};
@@ -1,11 +1,11 @@
1
- import { type Ref, type ComputedRef } from 'vue';
1
+ import { type Ref, type ShallowRef, type ComputedRef } from 'vue';
2
2
  import type { ColumnPinningState } from '@tanstack/table-core';
3
3
  import type { VColumn, OrderQuery, TableSettings, Column } from '#v/types';
4
4
  interface UseTableColumnsReturn<T> {
5
5
  selectionColumn: VColumn<T>;
6
6
  expandColumn: VColumn<T>;
7
- clonedBizColumns: Ref<VColumn<T>[]>;
8
- columnsWithCommonProps: Ref<VColumn<T>[]>;
7
+ clonedBizColumns: ShallowRef<VColumn<T>[]>;
8
+ columnsWithCommonProps: ShallowRef<VColumn<T>[]>;
9
9
  sortedColumns: ComputedRef<VColumn<T>[]>;
10
10
  columnsWithFilterOptions: ComputedRef<VColumn<T>[]>;
11
11
  columnsWithSortableHeader: ComputedRef<VColumn<T>[]>;