@chelone/vue 0.4.0 → 0.6.0

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 (58) hide show
  1. package/README.md +1 -0
  2. package/dist/admin/admin-shell.vue.js +1 -1
  3. package/dist/components/admin/auth/auth-callback.vue.js +1 -1
  4. package/dist/components/admin/auth/login-form.vue.js +1 -1
  5. package/dist/components/admin/auth/login-with-email.vue.js +1 -1
  6. package/dist/components/admin/feedback/loading-indicator.vue.js +1 -1
  7. package/dist/components/admin/feedback/spinner.vue.js +1 -1
  8. package/dist/components/admin/fields/api-key-field.vue.d.ts +1 -1
  9. package/dist/components/admin/fields/api-key-field.vue.js +2 -12
  10. package/dist/components/admin/fields/select-field.vue.d.ts +17 -6
  11. package/dist/components/admin/fields/select-field.vue.js +1 -1
  12. package/dist/components/admin/inputs/checkbox-group-input.vue.d.ts +14 -7
  13. package/dist/components/admin/inputs/checkbox-group-input.vue.js +2 -2
  14. package/dist/components/admin/inputs/datagrid-input.vue.d.ts +20 -5
  15. package/dist/components/admin/inputs/datagrid-input.vue.js +7 -3
  16. package/dist/components/admin/inputs/radio-button-group-input.vue.d.ts +14 -7
  17. package/dist/components/admin/inputs/radio-button-group-input.vue.js +2 -2
  18. package/dist/components/admin/list/count-spinner.vue.js +1 -1
  19. package/dist/components/admin/supabase/forgot-password-form.vue.js +1 -1
  20. package/dist/components/admin/supabase/set-password-form.vue.js +1 -1
  21. package/dist/components/index.d.ts +0 -2
  22. package/dist/components/kanban/kanban-board.vue.js +260 -0
  23. package/dist/components/kanban/kanban-draggable-card.vue.d.ts +18 -0
  24. package/dist/components/kanban/kanban-draggable-card.vue.js +32 -0
  25. package/dist/components/kanban/kanban-draggable-card2.vue.js +4 -0
  26. package/dist/components/kanban/kanban-drop-area.vue.d.ts +15 -0
  27. package/dist/components/kanban/kanban-drop-area.vue.js +29 -0
  28. package/dist/components/kanban/kanban-drop-area2.vue.js +4 -0
  29. package/dist/components/maps-osm/osm-feature-operator.vue.js +1 -1
  30. package/dist/components/ui/chart/chart-container.vue.d.ts +18 -0
  31. package/dist/components/ui/chart/chart-container.vue.js +40 -0
  32. package/dist/components/ui/chart/chart-container2.vue.js +4 -0
  33. package/dist/components/ui/chart/chart-legend-content.vue.d.ts +9 -0
  34. package/dist/components/ui/chart/chart-legend-content.vue.js +56 -0
  35. package/dist/components/ui/chart/chart-legend-content2.vue.js +4 -0
  36. package/dist/components/ui/chart/chart-style.vue.d.ts +7 -0
  37. package/dist/components/ui/chart/chart-style.vue.js +43 -0
  38. package/dist/components/ui/chart/chart-style2.vue.js +4 -0
  39. package/dist/components/ui/chart/chart-tooltip-content.vue.d.ts +7 -0
  40. package/dist/components/ui/chart/chart-tooltip-content.vue.js +122 -0
  41. package/dist/components/ui/chart/chart-tooltip-content2.vue.js +4 -0
  42. package/dist/components/ui/chart/index.d.ts +11 -0
  43. package/dist/components/ui/chart/utils.d.ts +81 -0
  44. package/dist/components/ui/chart/utils.js +52 -0
  45. package/dist/components/ui/index.d.ts +1 -0
  46. package/dist/components/ui/spinner.vue.js +1 -29
  47. package/dist/components/ui/spinner2.vue.js +29 -1
  48. package/dist/create-resource-components.d.ts +142 -18
  49. package/dist/data/create-chelone-hooks.d.ts +2 -1
  50. package/dist/data/queries.d.ts +6 -3
  51. package/dist/data/queries.js +8 -4
  52. package/dist/index.js +398 -387
  53. package/dist/kanban.d.ts +1 -0
  54. package/dist/kanban.js +4 -0
  55. package/package.json +18 -4
  56. package/dist/components/admin/list/kanban-board.vue.js +0 -275
  57. /package/dist/components/{admin/list → kanban}/kanban-board.vue.d.ts +0 -0
  58. /package/dist/components/{admin/list → kanban}/kanban-board2.vue.js +0 -0
@@ -27,7 +27,8 @@
27
27
  * directly; their `source` keeps the registered union, or a plain string when
28
28
  * nothing is registered.
29
29
  */
30
- import type { RecordOf, RegisteredResourceName, RegisteredResources, ResourceMap, SourceProp } from "@chelone/core";
30
+ import type { RecordOf, RegisteredResourceName, RegisteredResources, ResourceMap, SourceProp, SourceValue } from "@chelone/core";
31
+ import { type VNode } from "vue";
31
32
  import Create from "./components/admin/view/create.vue.js";
32
33
  import Edit from "./components/admin/view/edit.vue.js";
33
34
  import List from "./components/admin/view/list.vue.js";
@@ -259,7 +260,29 @@ declare const sourceMembers: {
259
260
  }) => any;
260
261
  };
261
262
  });
262
- SelectField: import("vue").DefineComponent<import("./index.js").SelectFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").SelectFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
263
+ SelectField: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
264
+ attrs: any;
265
+ emit: {};
266
+ slots: {};
267
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
268
+ props: {
269
+ source: SourceProp;
270
+ record?: import("@chelone/core").LooseRecord | undefined;
271
+ defaultValue?: unknown;
272
+ empty?: string | undefined;
273
+ choices?: readonly TChoice[] | undefined;
274
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
275
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
276
+ translateChoice?: boolean | undefined;
277
+ class?: string | undefined;
278
+ } & import("vue").PublicProps;
279
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
280
+ attrs: any;
281
+ slots: {};
282
+ emit: {};
283
+ }>) => import("vue").VNode & {
284
+ __ctx?: Awaited<typeof __VLS_setup>;
285
+ };
263
286
  SubscriptionPlanField: import("vue").DefineComponent<import("./index.js").SubscriptionPlanFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").SubscriptionPlanFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
264
287
  TextArrayField: import("vue").DefineComponent<import("./index.js").TextArrayFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
265
288
  TextField: import("vue").DefineComponent<import("./index.js").TextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -438,12 +461,34 @@ declare const sourceMembers: {
438
461
  BooleanInput: import("vue").DefineComponent<import("./index.js").BooleanInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").BooleanInputProps> & Readonly<{}>, {
439
462
  label: string | false;
440
463
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
441
- CheckboxGroupInput: import("vue").DefineComponent<import("./index.js").CheckboxGroupInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").CheckboxGroupInputProps> & Readonly<{}>, {
442
- label: string | false;
443
- optionValue: string;
444
- row: boolean;
445
- disableValue: string;
446
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
464
+ CheckboxGroupInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
465
+ attrs: any;
466
+ emit: {};
467
+ slots: {};
468
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
469
+ props: {
470
+ row?: boolean | undefined;
471
+ source?: string | undefined;
472
+ choices?: readonly (string | TChoice)[] | undefined;
473
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
474
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
475
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
476
+ translateChoice?: boolean | undefined;
477
+ label?: string | false | undefined;
478
+ helperText?: string | undefined;
479
+ defaultValue?: unknown;
480
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
481
+ disabled?: boolean | undefined;
482
+ readonly?: boolean | undefined;
483
+ class?: string | undefined;
484
+ } & import("vue").PublicProps;
485
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
486
+ attrs: any;
487
+ slots: {};
488
+ emit: {};
489
+ }>) => import("vue").VNode & {
490
+ __ctx?: Awaited<typeof __VLS_setup>;
491
+ };
447
492
  ColorInput: import("vue").DefineComponent<import("./index.js").ColorInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ColorInputProps> & Readonly<{}>, {
448
493
  label: string | false;
449
494
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -454,9 +499,34 @@ declare const sourceMembers: {
454
499
  label: string | false;
455
500
  storeAsMinorUnits: boolean;
456
501
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
457
- DatagridInput: import("vue").DefineComponent<import("./index.js").DatagridInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DatagridInputProps> & Readonly<{}>, {
458
- optionValue: string;
459
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
502
+ DatagridInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
503
+ attrs: any;
504
+ emit: {};
505
+ slots: {};
506
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
507
+ props: {
508
+ optionLabel?: string | undefined;
509
+ source?: string | undefined;
510
+ choices?: readonly (string | TChoice)[] | undefined;
511
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
512
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
513
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
514
+ translateChoice?: boolean | undefined;
515
+ label?: string | false | undefined;
516
+ helperText?: string | undefined;
517
+ defaultValue?: unknown;
518
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
519
+ disabled?: boolean | undefined;
520
+ readonly?: boolean | undefined;
521
+ class?: string | undefined;
522
+ } & import("vue").PublicProps;
523
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
524
+ attrs: any;
525
+ slots: {};
526
+ emit: {};
527
+ }>) => import("vue").VNode & {
528
+ __ctx?: Awaited<typeof __VLS_setup>;
529
+ };
460
530
  DateInput: import("vue").DefineComponent<import("./index.js").DateInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DateInputProps> & Readonly<{}>, {
461
531
  label: string | false;
462
532
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -577,12 +647,34 @@ declare const sourceMembers: {
577
647
  label: string | false;
578
648
  defaultCountry: import("libphonenumber-js").CountryCode;
579
649
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
580
- RadioButtonGroupInput: import("vue").DefineComponent<import("./index.js").RadioButtonGroupInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").RadioButtonGroupInputProps> & Readonly<{}>, {
581
- label: string | false;
582
- optionValue: string;
583
- row: boolean;
584
- disableValue: string;
585
- }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
650
+ RadioButtonGroupInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
651
+ attrs: any;
652
+ emit: {};
653
+ slots: {};
654
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
655
+ props: {
656
+ row?: boolean | undefined;
657
+ source?: string | undefined;
658
+ choices?: readonly (string | TChoice)[] | undefined;
659
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
660
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
661
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
662
+ translateChoice?: boolean | undefined;
663
+ label?: string | false | undefined;
664
+ helperText?: string | undefined;
665
+ defaultValue?: unknown;
666
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
667
+ disabled?: boolean | undefined;
668
+ readonly?: boolean | undefined;
669
+ class?: string | undefined;
670
+ } & import("vue").PublicProps;
671
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
672
+ attrs: any;
673
+ slots: {};
674
+ emit: {};
675
+ }>) => import("vue").VNode & {
676
+ __ctx?: Awaited<typeof __VLS_setup>;
677
+ };
586
678
  RatingInput: import("vue").DefineComponent<import("./index.js").RatingInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").RatingInputProps> & Readonly<{}>, {
587
679
  label: string | false;
588
680
  }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
@@ -707,6 +799,38 @@ type WithSource<P, TSource> = "source" extends keyof P ? Omit<P, "source"> & (Pa
707
799
  type Retyped<TComponent extends Ctor, TSource> = Pick<TComponent, keyof TComponent> & (new (...args: ConstructorParameters<TComponent>) => Omit<InstanceType<TComponent>, "$props"> & {
708
800
  $props: WithSource<InstanceType<TComponent>["$props"], TSource>;
709
801
  });
802
+ /** The return type of an optional callback prop. */
803
+ type CallbackResult<TCallback> = NonNullable<TCallback> extends (...args: never[]) => infer TResult ? TResult : never;
804
+ /** The first parameter of an optional callback prop. */
805
+ type CallbackParam<TCallback> = NonNullable<TCallback> extends (value: infer TValue, ...args: never[]) => unknown ? TValue : never;
806
+ /**
807
+ * The `format`, `parse` and `transform` entries of `P` with `TValue` in place
808
+ * of the value they took or returned. Each stays optional and keeps the rest
809
+ * of its signature, and one `P` lacks is not added.
810
+ */
811
+ type ValueEntries<P, TValue> = {
812
+ [K in Extract<keyof P, "format" | "transform">]?: (value: TValue) => CallbackResult<P[K]>;
813
+ } & {
814
+ [K in Extract<keyof P, "parse">]?: (value: CallbackParam<P[K]>) => TValue;
815
+ };
816
+ /**
817
+ * A member whose props have a `format`, `parse` or `transform`: a generic
818
+ * function component over the literal `source`, so those callbacks take the
819
+ * value at it. Volar reads a function component's props off its first
820
+ * parameter and its slots off the second. `NoInfer` keeps `TPath` from being inferred back through
821
+ * `SourceValue` out of a callback's parameter, which overflows the type depth.
822
+ */
823
+ type ValueMember<TComponent extends Ctor, TRecord> = <TPath extends SourceProp<TRecord>>(props: Omit<InstanceType<TComponent>["$props"], "source" | "format" | "parse" | "transform"> & (Partial<Pick<InstanceType<TComponent>["$props"], "source">> extends Pick<InstanceType<TComponent>["$props"], "source"> ? {
824
+ source?: TPath;
825
+ } : {
826
+ source: TPath;
827
+ }) & ValueEntries<InstanceType<TComponent>["$props"], NoInfer<SourceValue<TRecord, TPath>>>, ctx?: {
828
+ slots?: InstanceType<TComponent>["$slots"];
829
+ }) => VNode;
830
+ /** The member type: {@link ValueMember} when the props have a value callback, else {@link Retyped}. */
831
+ type ResourceMember<TComponent extends Ctor, TRecord> = [
832
+ keyof InstanceType<TComponent>["$props"] & ("format" | "parse" | "transform")
833
+ ] extends [never] ? Retyped<TComponent, SourceProp<TRecord>> : ValueMember<TComponent, TRecord>;
710
834
  /**
711
835
  * A view with its `resource` prop removed. Templates are not strict about
712
836
  * undeclared attributes, so the prop stays as `never` to make
@@ -722,7 +846,7 @@ type BoundView<TComponent extends Ctor> = Pick<TComponent, keyof TComponent> & (
722
846
  * `TName`, and every field and input with `source` typed by `TName`'s record.
723
847
  */
724
848
  export type ResourceComponents<TResources extends ResourceMap, TName extends keyof TResources & string> = {
725
- [K in keyof SourceMembers as SourceMembers[K] extends Ctor ? K : never]: Retyped<Extract<SourceMembers[K], Ctor>, SourceProp<RecordOf<TResources, TName>>>;
849
+ [K in keyof SourceMembers as SourceMembers[K] extends Ctor ? K : never]: ResourceMember<Extract<SourceMembers[K], Ctor>, RecordOf<TResources, TName>>;
726
850
  } & {
727
851
  Edit: BoundView<typeof Edit>;
728
852
  Create: BoundView<typeof Create>;
@@ -7,6 +7,7 @@
7
7
  */
8
8
  import type { GetListParams, GetManyParams, GetManyReferenceParams, GetOneParams, MutationModeOptions, ResourceMap } from "@chelone/core";
9
9
  import type { MaybeRefOrGetter } from "vue";
10
+ import { type ListQueryOptions } from "./queries.js";
10
11
  type QueryOptions = {
11
12
  enabled?: MaybeRefOrGetter<boolean>;
12
13
  };
@@ -16,7 +17,7 @@ type QueryOptions = {
16
17
  * hooks.useGetList('posts') // data: Post[]; 'nope' rejects
17
18
  */
18
19
  export declare function createCheloneHooks<TResources extends ResourceMap>(): {
19
- useGetList: <TName extends keyof TResources & string>(resource: TName, params?: MaybeRefOrGetter<GetListParams>, options?: QueryOptions) => import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").GetListResult<import("@chelone/core").RecordOf<TResources, TName>>, Error>;
20
+ useGetList: <TName extends keyof TResources & string>(resource: TName, params?: MaybeRefOrGetter<GetListParams>, options?: ListQueryOptions) => import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").GetListResult<import("@chelone/core").RecordOf<TResources, TName>>, Error>;
20
21
  useGetOne: <TName extends keyof TResources & string>(resource: TName, params: MaybeRefOrGetter<GetOneParams>, options?: QueryOptions) => import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").RecordOf<TResources, TName>, Error>;
21
22
  useGetMany: <TName extends keyof TResources & string>(resource: TName, params: MaybeRefOrGetter<GetManyParams>, options?: QueryOptions) => import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").RecordOf<TResources, TName>[], Error>;
22
23
  useGetManyAggregate: <TName extends keyof TResources & string>(resource: TName, params: MaybeRefOrGetter<GetManyParams>, options?: QueryOptions) => import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").RecordOf<TResources, TName>[], Error>;
@@ -36,13 +36,16 @@ export declare function useGetMany<TResources extends ResourceMap = ResourceMap,
36
36
  export declare function useGetManyAggregate<TResources extends ResourceMap = ResourceMap, TName extends keyof TResources & string = keyof TResources & string>(resource: TName, params: MaybeRefOrGetter<GetManyParams>, options?: {
37
37
  enabled?: MaybeRefOrGetter<boolean>;
38
38
  }): import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").RecordOf<TResources, TName>[], Error>;
39
+ /** `refetchInterval` is in ms; `0`, a negative number or `false` turns polling off. */
40
+ export type ListQueryOptions = {
41
+ enabled?: MaybeRefOrGetter<boolean>;
42
+ refetchInterval?: MaybeRefOrGetter<number | false>;
43
+ };
39
44
  /**
40
45
  * Fetch a page of records, reactively. `resource` may be a ref or getter, so a
41
46
  * changing resource re-keys the query.
42
47
  */
43
- export declare function useGetList<TResources extends ResourceMap = ResourceMap, TName extends keyof TResources & string = keyof TResources & string>(resource: MaybeRefOrGetter<TName>, params?: MaybeRefOrGetter<GetListParams>, options?: {
44
- enabled?: MaybeRefOrGetter<boolean>;
45
- }): import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").GetListResult<import("@chelone/core").RecordOf<TResources, TName>>, Error>;
48
+ export declare function useGetList<TResources extends ResourceMap = ResourceMap, TName extends keyof TResources & string = keyof TResources & string>(resource: MaybeRefOrGetter<TName>, params?: MaybeRefOrGetter<GetListParams>, options?: ListQueryOptions): import("@tanstack/vue-query").UseQueryReturnType<import("@chelone/core").GetListResult<import("@chelone/core").RecordOf<TResources, TName>>, Error>;
46
49
  /** Fetch the records whose `target` field equals `id`, reactively. */
47
50
  export declare function useGetManyReference<TResources extends ResourceMap = ResourceMap, TName extends keyof TResources & string = keyof TResources & string>(resource: TName, params: MaybeRefOrGetter<GetManyReferenceParams>, options?: {
48
51
  enabled?: MaybeRefOrGetter<boolean>;
@@ -32,10 +32,14 @@ function useGetManyAggregate(resource, params, options = {}) {
32
32
  function useGetList(resource, params = {}, options = {}) {
33
33
  const ctx = useCheloneContext();
34
34
  return useQuery(
35
- computed(() => ({
36
- ...getListOptions(ctx, toValue(resource), toValue(params)),
37
- enabled: options.enabled === void 0 ? true : toValue(options.enabled)
38
- }))
35
+ computed(() => {
36
+ const interval = toValue(options.refetchInterval);
37
+ return {
38
+ ...getListOptions(ctx, toValue(resource), toValue(params)),
39
+ enabled: options.enabled === void 0 ? true : toValue(options.enabled),
40
+ refetchInterval: typeof interval === "number" && interval > 0 ? interval : false
41
+ };
42
+ })
39
43
  );
40
44
  }
41
45
  function useGetManyReference(resource, params, options = {}) {