@questpie/admin 1.0.3 → 1.0.5

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.
@@ -1,7 +1,7 @@
1
- import { t as adminModule$1 } from "./index-CV4ppE7U.mjs";
1
+ import { t as adminModule$1 } from "./index-CSdBA36M.mjs";
2
2
  import { i as ViewConfiguration } from "./saved-views.types-BMsz5mCy.mjs";
3
3
  import * as questpie_shared0 from "questpie/shared";
4
- import { SetProperty, TypeMerge, UnsetProperty } from "questpie/shared";
4
+ import { Prettify, SetProperty, TypeMerge, UnsetProperty } from "questpie/shared";
5
5
  import * as React$2 from "react";
6
6
  import React$1, { ReactElement, ReactNode } from "react";
7
7
  import * as zod169 from "zod";
@@ -13,7 +13,7 @@ import "class-variance-authority";
13
13
  import { Select } from "@base-ui/react/select";
14
14
  import { useRender } from "@base-ui/react/use-render";
15
15
  import { useShallow } from "zustand/shallow";
16
- import * as _tanstack_react_query3 from "@tanstack/react-query";
16
+ import * as _tanstack_react_query4 from "@tanstack/react-query";
17
17
  import { QueryClient, UseMutationOptions, UseQueryOptions } from "@tanstack/react-query";
18
18
  import * as zustand0 from "zustand";
19
19
  import { Checkbox } from "@base-ui/react/checkbox";
@@ -33,7 +33,7 @@ import "@tanstack/react-table";
33
33
  import "@base-ui/react/avatar";
34
34
  import "@base-ui/react";
35
35
  import "@base-ui/react/scroll-area";
36
- import * as questpie163 from "questpie";
36
+ import * as questpie134 from "questpie";
37
37
  import { CollectionInfer, Questpie } from "questpie";
38
38
  import * as drizzle_orm_pg_core116 from "drizzle-orm/pg-core";
39
39
  import * as drizzle_orm57 from "drizzle-orm";
@@ -4746,15 +4746,15 @@ declare function useAdminStore<T$1>(selector: (state: AdminState) => T$1): T$1;
4746
4746
  /** Select admin instance */
4747
4747
  declare const selectAdmin: (s: AdminState) => Admin<AdminBuilderState<any, FieldDefinitionMap, ListViewDefinitionMap, EditViewDefinitionMap, PageDefinitionMap, WidgetDefinitionMap, CollectionConfigMap, GlobalConfigMap, BlockDefinitionMap>>;
4748
4748
  /** Select client instance */
4749
- declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questpie<{
4750
- locale: questpie163.LocaleConfig | undefined;
4749
+ declare const selectClient: (s: AdminState) => QuestpieClient<questpie134.Questpie<{
4750
+ locale: questpie134.LocaleConfig | undefined;
4751
4751
  email: {
4752
- templates: questpie163.TypeMerge<questpie163.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
4753
- adapter: questpie163.MailAdapter;
4752
+ templates: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherEmailTemplates>, {}>;
4753
+ adapter: questpie134.MailAdapter;
4754
4754
  };
4755
- search: questpie163.SearchAdapter | undefined;
4755
+ search: questpie134.SearchAdapter | undefined;
4756
4756
  collections: {
4757
- user: questpie163.CollectionBuilder<{
4757
+ user: questpie134.CollectionBuilder<{
4758
4758
  options: {
4759
4759
  timestamps: true;
4760
4760
  };
@@ -4771,21 +4771,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4771
4771
  };
4772
4772
  localized: [];
4773
4773
  virtuals: undefined;
4774
- relations: Record<string, questpie163.RelationConfig>;
4774
+ relations: Record<string, questpie134.RelationConfig>;
4775
4775
  indexes: Record<string, any>;
4776
4776
  title: "name";
4777
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4778
- access: questpie163.CollectionAccess<any, any>;
4777
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4778
+ access: questpie134.CollectionAccess<any, any>;
4779
4779
  functions: {
4780
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4780
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4781
4781
  };
4782
4782
  searchable: undefined;
4783
4783
  validation: undefined;
4784
4784
  output: undefined;
4785
4785
  upload: undefined;
4786
4786
  }>;
4787
- session: questpie163.CollectionBuilder<{
4788
- options: questpie163.CollectionOptions;
4787
+ session: questpie134.CollectionBuilder<{
4788
+ options: questpie134.CollectionOptions;
4789
4789
  name: "session";
4790
4790
  fields: {
4791
4791
  userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
@@ -4797,21 +4797,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4797
4797
  };
4798
4798
  localized: [];
4799
4799
  virtuals: undefined;
4800
- relations: Record<string, questpie163.RelationConfig>;
4800
+ relations: Record<string, questpie134.RelationConfig>;
4801
4801
  indexes: Record<string, any>;
4802
4802
  title: "token";
4803
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4804
- access: questpie163.CollectionAccess<any, any>;
4803
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4804
+ access: questpie134.CollectionAccess<any, any>;
4805
4805
  functions: {
4806
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4806
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4807
4807
  };
4808
4808
  searchable: undefined;
4809
4809
  validation: undefined;
4810
4810
  output: undefined;
4811
4811
  upload: undefined;
4812
4812
  }>;
4813
- account: questpie163.CollectionBuilder<{
4814
- options: questpie163.CollectionOptions;
4813
+ account: questpie134.CollectionBuilder<{
4814
+ options: questpie134.CollectionOptions;
4815
4815
  name: "account";
4816
4816
  fields: {
4817
4817
  userId: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
@@ -4827,21 +4827,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4827
4827
  };
4828
4828
  localized: [];
4829
4829
  virtuals: undefined;
4830
- relations: Record<string, questpie163.RelationConfig>;
4830
+ relations: Record<string, questpie134.RelationConfig>;
4831
4831
  indexes: Record<string, any>;
4832
4832
  title: "providerId";
4833
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4834
- access: questpie163.CollectionAccess<any, any>;
4833
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4834
+ access: questpie134.CollectionAccess<any, any>;
4835
4835
  functions: {
4836
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4836
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4837
4837
  };
4838
4838
  searchable: undefined;
4839
4839
  validation: undefined;
4840
4840
  output: undefined;
4841
4841
  upload: undefined;
4842
4842
  }>;
4843
- verification: questpie163.CollectionBuilder<{
4844
- options: questpie163.CollectionOptions;
4843
+ verification: questpie134.CollectionBuilder<{
4844
+ options: questpie134.CollectionOptions;
4845
4845
  name: "verification";
4846
4846
  fields: {
4847
4847
  identifier: drizzle_orm57.NotNull<drizzle_orm_pg_core116.PgVarcharBuilder<[string, ...string[]]>>;
@@ -4850,20 +4850,20 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4850
4850
  };
4851
4851
  localized: [];
4852
4852
  virtuals: undefined;
4853
- relations: Record<string, questpie163.RelationConfig>;
4853
+ relations: Record<string, questpie134.RelationConfig>;
4854
4854
  indexes: Record<string, any>;
4855
4855
  title: "identifier";
4856
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4857
- access: questpie163.CollectionAccess<any, any>;
4856
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4857
+ access: questpie134.CollectionAccess<any, any>;
4858
4858
  functions: {
4859
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4859
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4860
4860
  };
4861
4861
  searchable: undefined;
4862
4862
  validation: undefined;
4863
4863
  output: undefined;
4864
4864
  upload: undefined;
4865
4865
  }>;
4866
- assets: questpie163.CollectionBuilder<{
4866
+ assets: questpie134.CollectionBuilder<{
4867
4867
  options: {
4868
4868
  timestamps: true;
4869
4869
  };
@@ -4882,14 +4882,14 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4882
4882
  };
4883
4883
  localized: [];
4884
4884
  virtuals: undefined;
4885
- relations: Record<string, questpie163.RelationConfig>;
4885
+ relations: Record<string, questpie134.RelationConfig>;
4886
4886
  indexes: Record<string, any>;
4887
4887
  title: "filename";
4888
4888
  hooks: {
4889
4889
  afterDelete: ({
4890
4890
  data,
4891
4891
  app
4892
- }: questpie163.HookContext<{
4892
+ }: questpie134.HookContext<{
4893
4893
  width: number | null;
4894
4894
  height: number | null;
4895
4895
  alt: string | null;
@@ -4906,18 +4906,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4906
4906
  url: string;
4907
4907
  }, never, "delete", any>) => Promise<void>;
4908
4908
  };
4909
- access: questpie163.CollectionAccess<any, any>;
4909
+ access: questpie134.CollectionAccess<any, any>;
4910
4910
  functions: {
4911
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4911
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4912
4912
  };
4913
4913
  searchable: undefined;
4914
4914
  validation: undefined;
4915
- output: questpie163.TypeMerge<{}, {
4915
+ output: questpie134.TypeMerge<{}, {
4916
4916
  url: string;
4917
4917
  }>;
4918
- upload: questpie163.UploadOptions;
4918
+ upload: questpie134.UploadOptions;
4919
4919
  }>;
4920
- apikey: questpie163.CollectionBuilder<{
4920
+ apikey: questpie134.CollectionBuilder<{
4921
4921
  options: {
4922
4922
  timestamps: true;
4923
4923
  };
@@ -4944,20 +4944,20 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4944
4944
  };
4945
4945
  localized: [];
4946
4946
  virtuals: undefined;
4947
- relations: Record<string, questpie163.RelationConfig>;
4947
+ relations: Record<string, questpie134.RelationConfig>;
4948
4948
  indexes: Record<string, any>;
4949
4949
  title: "key";
4950
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4951
- access: questpie163.CollectionAccess<any, any>;
4950
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4951
+ access: questpie134.CollectionAccess<any, any>;
4952
4952
  functions: {
4953
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4953
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4954
4954
  };
4955
4955
  searchable: undefined;
4956
4956
  validation: undefined;
4957
4957
  output: undefined;
4958
4958
  upload: undefined;
4959
4959
  }>;
4960
- admin_saved_views: questpie163.CollectionBuilder<{
4960
+ admin_saved_views: questpie134.CollectionBuilder<{
4961
4961
  name: "admin_saved_views";
4962
4962
  localized: [];
4963
4963
  output: undefined;
@@ -4974,17 +4974,17 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4974
4974
  };
4975
4975
  upload: undefined;
4976
4976
  functions: {
4977
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
4977
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
4978
4978
  };
4979
- hooks: questpie163.CollectionHooks<any, any, any, any>;
4979
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
4980
4980
  indexes: Record<string, any>;
4981
4981
  searchable: undefined;
4982
4982
  virtuals: undefined;
4983
- relations: Record<string, questpie163.RelationConfig>;
4984
- access: questpie163.CollectionAccess<any, any>;
4983
+ relations: Record<string, questpie134.RelationConfig>;
4984
+ access: questpie134.CollectionAccess<any, any>;
4985
4985
  validation: undefined;
4986
4986
  }>;
4987
- admin_preferences: questpie163.CollectionBuilder<{
4987
+ admin_preferences: questpie134.CollectionBuilder<{
4988
4988
  name: "admin_preferences";
4989
4989
  localized: [];
4990
4990
  output: undefined;
@@ -4999,21 +4999,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
4999
4999
  };
5000
5000
  upload: undefined;
5001
5001
  functions: {
5002
- [x: string]: questpie163.FunctionDefinition<any, any, any>;
5002
+ [x: string]: questpie134.FunctionDefinition<any, any, any>;
5003
5003
  };
5004
- hooks: questpie163.CollectionHooks<any, any, any, any>;
5004
+ hooks: questpie134.CollectionHooks<any, any, any, any>;
5005
5005
  indexes: drizzle_orm_pg_core116.IndexBuilder[];
5006
5006
  searchable: undefined;
5007
5007
  virtuals: undefined;
5008
- relations: Record<string, questpie163.RelationConfig>;
5009
- access: questpie163.CollectionAccess<any, any>;
5008
+ relations: Record<string, questpie134.RelationConfig>;
5009
+ access: questpie134.CollectionAccess<any, any>;
5010
5010
  validation: undefined;
5011
5011
  }>;
5012
5012
  };
5013
- globals: questpie163.TypeMerge<questpie163.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
5014
- translations: questpie163.TranslationsConfig | undefined;
5013
+ globals: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherGlobals>, {}>;
5014
+ translations: questpie134.TranslationsConfig | undefined;
5015
5015
  "~messageKeys": unknown;
5016
- auth: questpie163.MergeAuthOptions<{}, questpie163.MergeAuthOptions<{}, {
5016
+ auth: questpie134.MergeAuthOptions<{}, questpie134.MergeAuthOptions<{}, {
5017
5017
  baseURL: string | undefined;
5018
5018
  secret: string | undefined;
5019
5019
  advanced: {
@@ -6863,21 +6863,21 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
6863
6863
  url: string;
6864
6864
  };
6865
6865
  functions: {
6866
- mintPreviewToken: questpie163.JsonFunctionDefinition<{
6866
+ mintPreviewToken: questpie134.JsonFunctionDefinition<{
6867
6867
  path: string;
6868
6868
  ttlMs?: number | undefined;
6869
6869
  }, {
6870
6870
  token: string;
6871
6871
  expiresAt: number;
6872
6872
  }, any>;
6873
- verifyPreviewToken: questpie163.JsonFunctionDefinition<{
6873
+ verifyPreviewToken: questpie134.JsonFunctionDefinition<{
6874
6874
  token: string;
6875
6875
  }, {
6876
6876
  valid: boolean;
6877
6877
  path?: string | undefined;
6878
6878
  error?: string | undefined;
6879
6879
  }, any>;
6880
- getContentLocales: questpie163.JsonFunctionDefinition<Record<string, never> | undefined, {
6880
+ getContentLocales: questpie134.JsonFunctionDefinition<Record<string, never> | undefined, {
6881
6881
  locales: {
6882
6882
  code: string;
6883
6883
  label?: string | undefined;
@@ -6887,10 +6887,10 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
6887
6887
  defaultLocale: string;
6888
6888
  fallbacks?: Record<string, string> | undefined;
6889
6889
  }, any>;
6890
- isSetupRequired: questpie163.JsonFunctionDefinition<Record<string, never>, {
6890
+ isSetupRequired: questpie134.JsonFunctionDefinition<Record<string, never>, {
6891
6891
  required: boolean;
6892
6892
  }, any>;
6893
- createFirstAdmin: questpie163.JsonFunctionDefinition<{
6893
+ createFirstAdmin: questpie134.JsonFunctionDefinition<{
6894
6894
  email: string;
6895
6895
  password: string;
6896
6896
  name: string;
@@ -6905,18 +6905,18 @@ declare const selectClient: (s: AdminState) => QuestpieClient<questpie163.Questp
6905
6905
  }, any>;
6906
6906
  };
6907
6907
  secret: string | undefined;
6908
- storage: questpie163.StorageConfig | undefined;
6908
+ storage: questpie134.StorageConfig | undefined;
6909
6909
  queue: {
6910
- jobs: questpie163.TypeMerge<questpie163.UnsetProperty<{}, keyof TOtherJobs>, {}>;
6911
- adapter: questpie163.QueueAdapter;
6910
+ jobs: questpie134.TypeMerge<questpie134.UnsetProperty<{}, keyof TOtherJobs>, {}>;
6911
+ adapter: questpie134.QueueAdapter;
6912
6912
  };
6913
- searchConfig: questpie163.SearchConfig | undefined;
6914
- realtime: questpie163.RealtimeConfig | undefined;
6913
+ searchConfig: questpie134.SearchConfig | undefined;
6914
+ realtime: questpie134.RealtimeConfig | undefined;
6915
6915
  logger: questpie_shared0.LoggerConfig | undefined;
6916
6916
  kv: questpie_shared0.KVConfig | undefined;
6917
6917
  migrations: {
6918
6918
  directory?: string;
6919
- migrations?: questpie163.Migration[];
6919
+ migrations?: questpie134.Migration[];
6920
6920
  } | undefined;
6921
6921
  }>>;
6922
6922
  /** Select auth client instance */
@@ -9142,22 +9142,22 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9142
9142
  /**
9143
9143
  * Register field definitions
9144
9144
  */
9145
- fields<TNewFields extends Record<string, any>>(fields: TNewFields): AdminBuilder<SetProperty<TState$1, "fields", TypeMerge<TState$1["fields"], TNewFields>>>;
9145
+ fields<TNewFields extends Record<string, any>>(fields: TNewFields): AdminBuilder<SetProperty<TState$1, "fields", Prettify<TypeMerge<TState$1["fields"], TNewFields>>>>;
9146
9146
  /**
9147
9147
  * Register view definitions (auto-sorted by kind)
9148
9148
  */
9149
- views<TNewViews extends Record<string, any>>(views: TNewViews): AdminBuilder<TypeMerge<UnsetProperty<TState$1, "listViews" | "editViews">, {
9150
- listViews: TypeMerge<TState$1["listViews"], FilterListViews<TNewViews>>;
9151
- editViews: TypeMerge<TState$1["editViews"], FilterEditViews<TNewViews>>;
9152
- }>>;
9149
+ views<TNewViews extends Record<string, any>>(views: TNewViews): AdminBuilder<Prettify<TypeMerge<UnsetProperty<TState$1, "listViews" | "editViews">, {
9150
+ listViews: Prettify<TypeMerge<TState$1["listViews"], FilterListViews<TNewViews>>>;
9151
+ editViews: Prettify<TypeMerge<TState$1["editViews"], FilterEditViews<TNewViews>>>;
9152
+ }>>>;
9153
9153
  /**
9154
9154
  * Register widget definitions
9155
9155
  */
9156
- widgets<TNewWidgets extends Record<string, any>>(widgets: TNewWidgets): AdminBuilder<SetProperty<TState$1, "widgets", TypeMerge<TState$1["widgets"], TNewWidgets>>>;
9156
+ widgets<TNewWidgets extends Record<string, any>>(widgets: TNewWidgets): AdminBuilder<SetProperty<TState$1, "widgets", Prettify<TypeMerge<TState$1["widgets"], TNewWidgets>>>>;
9157
9157
  /**
9158
9158
  * Register page definitions
9159
9159
  */
9160
- pages<TNewPages extends Record<string, any>>(pages: TNewPages): AdminBuilder<SetProperty<TState$1, "pages", TypeMerge<TState$1["pages"], TNewPages>>>;
9160
+ pages<TNewPages extends Record<string, any>>(pages: TNewPages): AdminBuilder<SetProperty<TState$1, "pages", Prettify<TypeMerge<TState$1["pages"], TNewPages>>>>;
9161
9161
  /**
9162
9162
  * Register block definitions for the visual page builder.
9163
9163
  *
@@ -9182,7 +9182,7 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9182
9182
  * .sidebar({ ... });
9183
9183
  * ```
9184
9184
  */
9185
- blocks<TNewBlocks extends Record<string, any>>(blocks: TNewBlocks): AdminBuilder<SetProperty<TState$1, "blocks", TypeMerge<TState$1["blocks"], TNewBlocks>>>;
9185
+ blocks<TNewBlocks extends Record<string, any>>(blocks: TNewBlocks): AdminBuilder<SetProperty<TState$1, "blocks", Prettify<TypeMerge<TState$1["blocks"], TNewBlocks>>>>;
9186
9186
  /**
9187
9187
  * Register translations for i18n
9188
9188
  *
@@ -9197,7 +9197,7 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9197
9197
  * })
9198
9198
  * ```
9199
9199
  */
9200
- translations<TNewTranslations extends TranslationsMap>(translations: TNewTranslations): AdminBuilder<SetProperty<TState$1, "translations", TypeMerge<TState$1["translations"], TNewTranslations>>>;
9200
+ translations<TNewTranslations extends TranslationsMap>(translations: TNewTranslations): AdminBuilder<SetProperty<TState$1, "translations", Prettify<TypeMerge<TState$1["translations"], TNewTranslations>>>>;
9201
9201
  /**
9202
9202
  * Add translated messages for admin UI (simple API)
9203
9203
  *
@@ -9228,19 +9228,19 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9228
9228
  * // In components, t() has full autocomplete
9229
9229
  * ```
9230
9230
  */
9231
- messages<TNewMessages extends TranslationsMap>(messages: TNewMessages): AdminBuilder<SetProperty<TState$1, "translations", TypeMerge<TState$1["translations"], TNewMessages>>>;
9231
+ messages<TNewMessages extends TranslationsMap>(messages: TNewMessages): AdminBuilder<SetProperty<TState$1, "translations", Prettify<TypeMerge<TState$1["translations"], TNewMessages>>>>;
9232
9232
  /**
9233
9233
  * Compose another builder (merge modules)
9234
9234
  */
9235
- use<TOther extends AdminBuilder<any>>(other: TOther): AdminBuilder<TypeMerge<UnsetProperty<TState$1, "fields" | "listViews" | "editViews" | "widgets" | "pages" | "blocks" | "collections" | "globals" | "sidebar" | "translations">, {
9236
- fields: TypeMerge<TState$1["fields"], TOther["state"]["fields"]>;
9237
- listViews: TypeMerge<TState$1["listViews"], TOther["state"]["listViews"]>;
9238
- editViews: TypeMerge<TState$1["editViews"], TOther["state"]["editViews"]>;
9239
- widgets: TypeMerge<TState$1["widgets"], TOther["state"]["widgets"]>;
9240
- pages: TypeMerge<TState$1["pages"], TOther["state"]["pages"]>;
9241
- blocks: TypeMerge<TState$1["blocks"], TOther["state"]["blocks"]>;
9242
- collections: TypeMerge<TState$1["collections"], TOther["state"]["collections"]>;
9243
- globals: TypeMerge<TState$1["globals"], TOther["state"]["globals"]>;
9235
+ use<TOther extends AdminBuilder<any>>(other: TOther): AdminBuilder<Prettify<TypeMerge<UnsetProperty<TState$1, "fields" | "listViews" | "editViews" | "widgets" | "pages" | "blocks" | "collections" | "globals" | "sidebar" | "translations">, {
9236
+ fields: Prettify<TypeMerge<TState$1["fields"], TOther["state"]["fields"]>>;
9237
+ listViews: Prettify<TypeMerge<TState$1["listViews"], TOther["state"]["listViews"]>>;
9238
+ editViews: Prettify<TypeMerge<TState$1["editViews"], TOther["state"]["editViews"]>>;
9239
+ widgets: Prettify<TypeMerge<TState$1["widgets"], TOther["state"]["widgets"]>>;
9240
+ pages: Prettify<TypeMerge<TState$1["pages"], TOther["state"]["pages"]>>;
9241
+ blocks: Prettify<TypeMerge<TState$1["blocks"], TOther["state"]["blocks"]>>;
9242
+ collections: Prettify<TypeMerge<TState$1["collections"], TOther["state"]["collections"]>>;
9243
+ globals: Prettify<TypeMerge<TState$1["globals"], TOther["state"]["globals"]>>;
9244
9244
  sidebar: TOther["state"]["sidebar"] extends {
9245
9245
  sections: any[];
9246
9246
  } ? {
@@ -9250,16 +9250,16 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9250
9250
  sections: infer S;
9251
9251
  } ? S extends any[] ? S : [] : [])];
9252
9252
  } : TState$1["sidebar"];
9253
- translations: TypeMerge<TState$1["translations"], TOther["state"]["translations"]>;
9254
- }>>;
9253
+ translations: Prettify<TypeMerge<TState$1["translations"], TOther["state"]["translations"]>>;
9254
+ }>>>;
9255
9255
  /**
9256
9256
  * Register collection configs
9257
9257
  */
9258
- collections<TNewCollections extends Record<string, any>>(collections: TNewCollections): AdminBuilder<SetProperty<TState$1, "collections", TypeMerge<TState$1["collections"], TNewCollections>>>;
9258
+ collections<TNewCollections extends Record<string, any>>(collections: TNewCollections): AdminBuilder<SetProperty<TState$1, "collections", Prettify<TypeMerge<TState$1["collections"], TNewCollections>>>>;
9259
9259
  /**
9260
9260
  * Register global configs
9261
9261
  */
9262
- globals<TNewGlobals extends Record<string, any>>(globals: TNewGlobals): AdminBuilder<SetProperty<TState$1, "globals", TypeMerge<TState$1["globals"], TNewGlobals>>>;
9262
+ globals<TNewGlobals extends Record<string, any>>(globals: TNewGlobals): AdminBuilder<SetProperty<TState$1, "globals", Prettify<TypeMerge<TState$1["globals"], TNewGlobals>>>>;
9263
9263
  /**
9264
9264
  * Set dashboard config
9265
9265
  */
@@ -9324,7 +9324,7 @@ declare class AdminBuilder<TState$1 extends AdminBuilderState> {
9324
9324
  /**
9325
9325
  * Set default views config
9326
9326
  */
9327
- defaultViews<TDefaultViews extends DefaultViewsConfig>(config: TDefaultViews): AdminBuilder<SetProperty<TState$1, "defaultViews", TypeMerge<TState$1["defaultViews"], TDefaultViews>>>;
9327
+ defaultViews<TDefaultViews extends DefaultViewsConfig>(config: TDefaultViews): AdminBuilder<SetProperty<TState$1, "defaultViews", Prettify<TypeMerge<TState$1["defaultViews"], TDefaultViews>>>>;
9328
9328
  /**
9329
9329
  * Create a collection builder bound to this admin
9330
9330
  *
@@ -9829,278 +9829,263 @@ type GlobalNames$2<TApp extends Questpie<any>> = TApp extends Questpie<infer TCo
9829
9829
  * const builder = qa<AppCMS>().use(coreAdminModule);
9830
9830
  * ```
9831
9831
  */
9832
- declare const coreAdminModule: AdminBuilder<questpie163.SetProperty<questpie163.TypeMerge<questpie163.UnsetProperty<questpie163.SetProperty<{
9833
- "~app": any;
9834
- fields: {};
9835
- listViews: {};
9836
- editViews: {};
9837
- pages: {};
9838
- widgets: {};
9839
- blocks: {};
9840
- collections: {};
9841
- globals: {};
9842
- dashboard: {
9843
- layout: "grid";
9844
- widgets: [];
9845
- };
9846
- sidebar: {
9847
- sections: [];
9848
- };
9849
- branding: {};
9832
+ declare const coreAdminModule: AdminBuilder<questpie134.SetProperty<{
9850
9833
  locale: {
9851
9834
  default: string;
9852
9835
  supported: string[];
9853
9836
  };
9854
- defaultViews: {};
9855
- translations: {};
9856
- }, "fields", questpie163.TypeMerge<{}, {
9857
- readonly text: FieldBuilder<{
9858
- name: "text";
9859
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9860
- component: typeof TextField;
9861
- cellComponent: typeof TextCell;
9862
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9863
- }>;
9864
- readonly number: FieldBuilder<{
9865
- name: "number";
9866
- "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9867
- component: typeof NumberField;
9868
- cellComponent: typeof NumberCell;
9869
- createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9870
- }>;
9871
- readonly email: FieldBuilder<{
9872
- name: "email";
9873
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9874
- component: typeof EmailField;
9875
- cellComponent: typeof EmailCell;
9876
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9877
- }>;
9878
- readonly password: FieldBuilder<{
9879
- name: "password";
9880
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9881
- component: typeof PasswordField;
9882
- cellComponent: typeof TextCell;
9883
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9884
- }>;
9885
- readonly textarea: FieldBuilder<{
9886
- name: "textarea";
9887
- "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9888
- component: typeof TextareaField;
9889
- cellComponent: typeof TextCell;
9890
- createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9891
- }>;
9892
- readonly checkbox: FieldBuilder<{
9893
- name: "checkbox";
9894
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9895
- component: typeof CheckboxField;
9896
- cellComponent: typeof BooleanCell;
9897
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9898
- }>;
9899
- readonly switch: FieldBuilder<{
9900
- name: "switch";
9901
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9902
- component: typeof SwitchField;
9903
- cellComponent: typeof BooleanCell;
9904
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9905
- }>;
9906
- readonly select: FieldBuilder<{
9907
- name: "select";
9908
- "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9909
- component: typeof SelectField;
9910
- cellComponent: typeof SelectCell;
9911
- createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9912
- }>;
9913
- readonly date: FieldBuilder<{
9914
- name: "date";
9915
- "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9916
- component: typeof DateField;
9917
- cellComponent: typeof DateCell;
9918
- createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9919
- }>;
9920
- readonly datetime: FieldBuilder<{
9921
- name: "datetime";
9922
- "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9923
- component: typeof DatetimeField;
9924
- cellComponent: typeof DateTimeCell;
9925
- createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9926
- }>;
9927
- readonly time: FieldBuilder<{
9928
- name: "time";
9929
- "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9930
- component: typeof TimeField;
9931
- cellComponent: typeof TimeCell;
9932
- createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9933
- }>;
9934
- readonly relation: FieldBuilder<{
9935
- name: "relation";
9936
- "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9937
- component: typeof RelationField;
9938
- cellComponent: typeof RelationCell;
9939
- createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9940
- }>;
9941
- readonly reverseRelation: FieldBuilder<{
9942
- name: "reverseRelation";
9943
- "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9944
- component: typeof ReverseRelationField;
9945
- cellComponent: typeof ReverseRelationCell;
9946
- createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9947
- }>;
9948
- readonly json: FieldBuilder<{
9949
- name: "json";
9950
- "~options": Omit<BaseFieldProps & {
9951
- readOnly?: boolean;
9952
- defaultMode?: JsonFieldMode;
9953
- allowModeSwitch?: boolean;
9954
- minHeight?: number;
9955
- maxHeight?: number;
9956
- renderForm?: (props: {
9957
- value: any;
9958
- onChange: (value: any) => void;
9959
- disabled?: boolean;
9837
+ fields: {
9838
+ number: FieldBuilder<{
9839
+ name: "number";
9840
+ "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9841
+ component: typeof NumberField;
9842
+ cellComponent: typeof NumberCell;
9843
+ createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9844
+ }>;
9845
+ object: FieldBuilder<{
9846
+ name: "object";
9847
+ "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9848
+ component: typeof ObjectField;
9849
+ cellComponent: typeof ObjectCell;
9850
+ createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9851
+ }>;
9852
+ text: FieldBuilder<{
9853
+ name: "text";
9854
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9855
+ component: typeof TextField;
9856
+ cellComponent: typeof TextCell;
9857
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9858
+ }>;
9859
+ email: FieldBuilder<{
9860
+ name: "email";
9861
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9862
+ component: typeof EmailField;
9863
+ cellComponent: typeof EmailCell;
9864
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9865
+ }>;
9866
+ password: FieldBuilder<{
9867
+ name: "password";
9868
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9869
+ component: typeof PasswordField;
9870
+ cellComponent: typeof TextCell;
9871
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9872
+ }>;
9873
+ date: FieldBuilder<{
9874
+ name: "date";
9875
+ "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9876
+ component: typeof DateField;
9877
+ cellComponent: typeof DateCell;
9878
+ createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9879
+ }>;
9880
+ array: FieldBuilder<{
9881
+ name: "array";
9882
+ "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9883
+ component: typeof ArrayField;
9884
+ cellComponent: typeof JsonCell;
9885
+ createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9886
+ }>;
9887
+ textarea: FieldBuilder<{
9888
+ name: "textarea";
9889
+ "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9890
+ component: typeof TextareaField;
9891
+ cellComponent: typeof TextCell;
9892
+ createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9893
+ }>;
9894
+ checkbox: FieldBuilder<{
9895
+ name: "checkbox";
9896
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9897
+ component: typeof CheckboxField;
9898
+ cellComponent: typeof BooleanCell;
9899
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9900
+ }>;
9901
+ switch: FieldBuilder<{
9902
+ name: "switch";
9903
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9904
+ component: typeof SwitchField;
9905
+ cellComponent: typeof BooleanCell;
9906
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9907
+ }>;
9908
+ select: FieldBuilder<{
9909
+ name: "select";
9910
+ "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9911
+ component: typeof SelectField;
9912
+ cellComponent: typeof SelectCell;
9913
+ createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9914
+ }>;
9915
+ datetime: FieldBuilder<{
9916
+ name: "datetime";
9917
+ "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9918
+ component: typeof DatetimeField;
9919
+ cellComponent: typeof DateTimeCell;
9920
+ createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9921
+ }>;
9922
+ time: FieldBuilder<{
9923
+ name: "time";
9924
+ "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9925
+ component: typeof TimeField;
9926
+ cellComponent: typeof TimeCell;
9927
+ createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9928
+ }>;
9929
+ relation: FieldBuilder<{
9930
+ name: "relation";
9931
+ "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9932
+ component: typeof RelationField;
9933
+ cellComponent: typeof RelationCell;
9934
+ createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9935
+ }>;
9936
+ reverseRelation: FieldBuilder<{
9937
+ name: "reverseRelation";
9938
+ "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9939
+ component: typeof ReverseRelationField;
9940
+ cellComponent: typeof ReverseRelationCell;
9941
+ createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9942
+ }>;
9943
+ json: FieldBuilder<{
9944
+ name: "json";
9945
+ "~options": Omit<BaseFieldProps & {
9960
9946
  readOnly?: boolean;
9961
- }) => React.ReactNode;
9962
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9963
- component: typeof JsonField;
9964
- cellComponent: typeof JsonCell;
9965
- createZod: CreateZodFn<Omit<BaseFieldProps & {
9966
- readOnly?: boolean;
9967
- defaultMode?: JsonFieldMode;
9968
- allowModeSwitch?: boolean;
9969
- minHeight?: number;
9970
- maxHeight?: number;
9971
- renderForm?: (props: {
9972
- value: any;
9973
- onChange: (value: any) => void;
9974
- disabled?: boolean;
9947
+ defaultMode?: JsonFieldMode;
9948
+ allowModeSwitch?: boolean;
9949
+ minHeight?: number;
9950
+ maxHeight?: number;
9951
+ renderForm?: (props: {
9952
+ value: any;
9953
+ onChange: (value: any) => void;
9954
+ disabled?: boolean;
9955
+ readOnly?: boolean;
9956
+ }) => React.ReactNode;
9957
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9958
+ component: typeof JsonField;
9959
+ cellComponent: typeof JsonCell;
9960
+ createZod: CreateZodFn<Omit<BaseFieldProps & {
9975
9961
  readOnly?: boolean;
9976
- }) => React.ReactNode;
9977
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9978
- }>;
9979
- readonly object: FieldBuilder<{
9980
- name: "object";
9981
- "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9982
- component: typeof ObjectField;
9983
- cellComponent: typeof ObjectCell;
9984
- createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9985
- }>;
9986
- readonly array: FieldBuilder<{
9987
- name: "array";
9988
- "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9989
- component: typeof ArrayField;
9990
- cellComponent: typeof JsonCell;
9991
- createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9992
- }>;
9993
- readonly upload: FieldBuilder<{
9994
- name: "upload";
9995
- "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9996
- component: typeof UploadField;
9997
- cellComponent: typeof UploadCell;
9998
- createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9999
- }>;
10000
- readonly uploadMany: FieldBuilder<{
10001
- name: "uploadMany";
10002
- "~options": UploadFieldConfig & {
10003
- maxItems?: number;
10004
- orderable?: boolean;
10005
- layout?: "grid" | "list";
10006
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10007
- component: typeof UploadManyField;
10008
- cellComponent: typeof UploadManyCell;
10009
- createZod: CreateZodFn<UploadFieldConfig & {
10010
- maxItems?: number;
10011
- orderable?: boolean;
10012
- layout?: "grid" | "list";
10013
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10014
- }>;
10015
- readonly assetPreview: FieldBuilder<{
10016
- name: "assetPreview";
10017
- "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10018
- component: typeof AssetPreviewField;
10019
- cellComponent: ({
10020
- row
10021
- }: {
10022
- value: unknown;
10023
- row?: any;
10024
- }) => react_jsx_runtime11.JSX.Element;
10025
- createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10026
- }>;
10027
- readonly richText: FieldBuilder<{
10028
- name: "richText";
10029
- "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10030
- component: typeof RichTextField;
10031
- cellComponent: typeof RichTextCell;
10032
- createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10033
- }>;
10034
- readonly embedded: FieldBuilder<{
10035
- name: "embedded";
10036
- "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10037
- component: typeof EmbeddedCollectionField;
10038
- cellComponent: typeof JsonCell;
10039
- createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10040
- }>;
10041
- readonly blocks: FieldBuilder<{
10042
- name: "blocks";
10043
- "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10044
- component: typeof BlocksField;
10045
- cellComponent: typeof BlocksCell;
10046
- createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10047
- }>;
10048
- }>>, "listViews" | "editViews">, {
10049
- listViews: questpie163.TypeMerge<{}, FilterListViews<{
10050
- readonly table: ListViewBuilder<{
10051
- name: "table";
10052
- kind: "list";
10053
- "~config": TableViewConfig;
10054
- component: typeof TableView;
9962
+ defaultMode?: JsonFieldMode;
9963
+ allowModeSwitch?: boolean;
9964
+ minHeight?: number;
9965
+ maxHeight?: number;
9966
+ renderForm?: (props: {
9967
+ value: any;
9968
+ onChange: (value: any) => void;
9969
+ disabled?: boolean;
9970
+ readOnly?: boolean;
9971
+ }) => React.ReactNode;
9972
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10055
9973
  }>;
10056
- readonly form: EditViewBuilder<{
10057
- name: "form";
10058
- kind: "edit";
10059
- "~config": FormViewConfig;
10060
- component: typeof FormView;
9974
+ upload: FieldBuilder<{
9975
+ name: "upload";
9976
+ "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9977
+ component: typeof UploadField;
9978
+ cellComponent: typeof UploadCell;
9979
+ createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10061
9980
  }>;
10062
- }>>;
10063
- editViews: questpie163.TypeMerge<{}, FilterEditViews<{
10064
- readonly table: ListViewBuilder<{
9981
+ uploadMany: FieldBuilder<{
9982
+ name: "uploadMany";
9983
+ "~options": UploadFieldConfig & {
9984
+ maxItems?: number;
9985
+ orderable?: boolean;
9986
+ layout?: "grid" | "list";
9987
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9988
+ component: typeof UploadManyField;
9989
+ cellComponent: typeof UploadManyCell;
9990
+ createZod: CreateZodFn<UploadFieldConfig & {
9991
+ maxItems?: number;
9992
+ orderable?: boolean;
9993
+ layout?: "grid" | "list";
9994
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
9995
+ }>;
9996
+ assetPreview: FieldBuilder<{
9997
+ name: "assetPreview";
9998
+ "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
9999
+ component: typeof AssetPreviewField;
10000
+ cellComponent: ({
10001
+ row
10002
+ }: {
10003
+ value: unknown;
10004
+ row?: any;
10005
+ }) => react_jsx_runtime11.JSX.Element;
10006
+ createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10007
+ }>;
10008
+ richText: FieldBuilder<{
10009
+ name: "richText";
10010
+ "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10011
+ component: typeof RichTextField;
10012
+ cellComponent: typeof RichTextCell;
10013
+ createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10014
+ }>;
10015
+ embedded: FieldBuilder<{
10016
+ name: "embedded";
10017
+ "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10018
+ component: typeof EmbeddedCollectionField;
10019
+ cellComponent: typeof JsonCell;
10020
+ createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10021
+ }>;
10022
+ blocks: FieldBuilder<{
10023
+ name: "blocks";
10024
+ "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10025
+ component: typeof BlocksField;
10026
+ cellComponent: typeof BlocksCell;
10027
+ createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10028
+ }>;
10029
+ };
10030
+ blocks: {};
10031
+ "~app": any;
10032
+ listViews: {
10033
+ table: ListViewBuilder<{
10065
10034
  name: "table";
10066
10035
  kind: "list";
10067
10036
  "~config": TableViewConfig;
10068
10037
  component: typeof TableView;
10069
10038
  }>;
10070
- readonly form: EditViewBuilder<{
10039
+ };
10040
+ editViews: {
10041
+ form: EditViewBuilder<{
10071
10042
  name: "form";
10072
10043
  kind: "edit";
10073
10044
  "~config": FormViewConfig;
10074
10045
  component: typeof FormView;
10075
10046
  }>;
10076
- }>>;
10077
- }>, "pages", questpie163.TypeMerge<{}, {
10078
- readonly login: PageBuilder<questpie163.SetProperty<{
10047
+ };
10048
+ pages: {};
10049
+ widgets: {};
10050
+ collections: {};
10051
+ globals: {};
10052
+ dashboard: {
10053
+ layout: "grid";
10054
+ widgets: [];
10055
+ };
10056
+ sidebar: {
10057
+ sections: [];
10058
+ };
10059
+ branding: {};
10060
+ defaultViews: {};
10061
+ translations: {};
10062
+ }, "pages", {
10063
+ dashboard: PageBuilder<questpie134.SetProperty<{
10064
+ name: "dashboard";
10065
+ component: () => Promise<typeof dashboard_page_d_exports>;
10066
+ path: undefined;
10067
+ }, "path", string>>;
10068
+ login: PageBuilder<questpie134.SetProperty<{
10079
10069
  name: "login";
10080
10070
  component: () => Promise<typeof login_page_d_exports>;
10081
10071
  path: undefined;
10082
10072
  }, "path", string>>;
10083
- readonly forgotPassword: PageBuilder<questpie163.SetProperty<{
10073
+ setup: PageBuilder<questpie134.SetProperty<{
10074
+ name: "setup";
10075
+ component: () => Promise<typeof setup_page_d_exports>;
10076
+ path: undefined;
10077
+ }, "path", string>>;
10078
+ forgotPassword: PageBuilder<questpie134.SetProperty<{
10084
10079
  name: "forgot-password";
10085
10080
  component: () => Promise<typeof forgot_password_page_d_exports>;
10086
10081
  path: undefined;
10087
10082
  }, "path", string>>;
10088
- readonly resetPassword: PageBuilder<questpie163.SetProperty<{
10083
+ resetPassword: PageBuilder<questpie134.SetProperty<{
10089
10084
  name: "reset-password";
10090
10085
  component: () => Promise<typeof reset_password_page_d_exports>;
10091
10086
  path: undefined;
10092
10087
  }, "path", string>>;
10093
- readonly setup: PageBuilder<questpie163.SetProperty<{
10094
- name: "setup";
10095
- component: () => Promise<typeof setup_page_d_exports>;
10096
- path: undefined;
10097
- }, "path", string>>;
10098
- readonly dashboard: PageBuilder<questpie163.SetProperty<{
10099
- name: "dashboard";
10100
- component: () => Promise<typeof dashboard_page_d_exports>;
10101
- path: undefined;
10102
- }, "path", string>>;
10103
- }>>>;
10088
+ }>>;
10104
10089
  /**
10105
10090
  * Type of core admin module state
10106
10091
  */
@@ -10148,552 +10133,522 @@ type CoreAdminModule = typeof coreAdminModule;
10148
10133
  * });
10149
10134
  * ```
10150
10135
  */
10151
- declare const adminModule: AdminBuilder<questpie163.SetProperty<questpie163.SetProperty<questpie163.SetProperty<questpie163.TypeMerge<questpie163.UnsetProperty<questpie163.SetProperty<{
10152
- "~app": any;
10153
- fields: {};
10154
- listViews: {};
10155
- editViews: {};
10156
- pages: {};
10157
- widgets: {};
10158
- blocks: {};
10159
- collections: {};
10160
- globals: {};
10161
- dashboard: {
10162
- layout: "grid";
10163
- widgets: [];
10164
- };
10165
- sidebar: {
10166
- sections: [];
10167
- };
10168
- branding: {};
10136
+ declare const adminModule: AdminBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
10169
10137
  locale: {
10170
10138
  default: string;
10171
10139
  supported: string[];
10172
10140
  };
10173
- defaultViews: {};
10174
- translations: {};
10175
- }, "fields", questpie163.TypeMerge<{}, {
10176
- readonly text: FieldBuilder<{
10177
- name: "text";
10178
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10179
- component: typeof TextField;
10180
- cellComponent: typeof TextCell;
10181
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10182
- }>;
10183
- readonly number: FieldBuilder<{
10184
- name: "number";
10185
- "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10186
- component: typeof NumberField;
10187
- cellComponent: typeof NumberCell;
10188
- createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10189
- }>;
10190
- readonly email: FieldBuilder<{
10191
- name: "email";
10192
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10193
- component: typeof EmailField;
10194
- cellComponent: typeof EmailCell;
10195
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10196
- }>;
10197
- readonly password: FieldBuilder<{
10198
- name: "password";
10199
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10200
- component: typeof PasswordField;
10201
- cellComponent: typeof TextCell;
10202
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10203
- }>;
10204
- readonly textarea: FieldBuilder<{
10205
- name: "textarea";
10206
- "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10207
- component: typeof TextareaField;
10208
- cellComponent: typeof TextCell;
10209
- createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10210
- }>;
10211
- readonly checkbox: FieldBuilder<{
10212
- name: "checkbox";
10213
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10214
- component: typeof CheckboxField;
10215
- cellComponent: typeof BooleanCell;
10216
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10217
- }>;
10218
- readonly switch: FieldBuilder<{
10219
- name: "switch";
10220
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10221
- component: typeof SwitchField;
10222
- cellComponent: typeof BooleanCell;
10223
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10224
- }>;
10225
- readonly select: FieldBuilder<{
10226
- name: "select";
10227
- "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10228
- component: typeof SelectField;
10229
- cellComponent: typeof SelectCell;
10230
- createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10231
- }>;
10232
- readonly date: FieldBuilder<{
10233
- name: "date";
10234
- "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10235
- component: typeof DateField;
10236
- cellComponent: typeof DateCell;
10237
- createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10238
- }>;
10239
- readonly datetime: FieldBuilder<{
10240
- name: "datetime";
10241
- "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10242
- component: typeof DatetimeField;
10243
- cellComponent: typeof DateTimeCell;
10244
- createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10245
- }>;
10246
- readonly time: FieldBuilder<{
10247
- name: "time";
10248
- "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10249
- component: typeof TimeField;
10250
- cellComponent: typeof TimeCell;
10251
- createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10252
- }>;
10253
- readonly relation: FieldBuilder<{
10254
- name: "relation";
10255
- "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10256
- component: typeof RelationField;
10257
- cellComponent: typeof RelationCell;
10258
- createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10259
- }>;
10260
- readonly reverseRelation: FieldBuilder<{
10261
- name: "reverseRelation";
10262
- "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10263
- component: typeof ReverseRelationField;
10264
- cellComponent: typeof ReverseRelationCell;
10265
- createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10266
- }>;
10267
- readonly json: FieldBuilder<{
10268
- name: "json";
10269
- "~options": Omit<BaseFieldProps & {
10270
- readOnly?: boolean;
10271
- defaultMode?: JsonFieldMode;
10272
- allowModeSwitch?: boolean;
10273
- minHeight?: number;
10274
- maxHeight?: number;
10275
- renderForm?: (props: {
10276
- value: any;
10277
- onChange: (value: any) => void;
10278
- disabled?: boolean;
10141
+ fields: {
10142
+ number: FieldBuilder<{
10143
+ name: "number";
10144
+ "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10145
+ component: typeof NumberField;
10146
+ cellComponent: typeof NumberCell;
10147
+ createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10148
+ }>;
10149
+ object: FieldBuilder<{
10150
+ name: "object";
10151
+ "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10152
+ component: typeof ObjectField;
10153
+ cellComponent: typeof ObjectCell;
10154
+ createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10155
+ }>;
10156
+ text: FieldBuilder<{
10157
+ name: "text";
10158
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10159
+ component: typeof TextField;
10160
+ cellComponent: typeof TextCell;
10161
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10162
+ }>;
10163
+ email: FieldBuilder<{
10164
+ name: "email";
10165
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10166
+ component: typeof EmailField;
10167
+ cellComponent: typeof EmailCell;
10168
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10169
+ }>;
10170
+ password: FieldBuilder<{
10171
+ name: "password";
10172
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10173
+ component: typeof PasswordField;
10174
+ cellComponent: typeof TextCell;
10175
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10176
+ }>;
10177
+ date: FieldBuilder<{
10178
+ name: "date";
10179
+ "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10180
+ component: typeof DateField;
10181
+ cellComponent: typeof DateCell;
10182
+ createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10183
+ }>;
10184
+ array: FieldBuilder<{
10185
+ name: "array";
10186
+ "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10187
+ component: typeof ArrayField;
10188
+ cellComponent: typeof JsonCell;
10189
+ createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10190
+ }>;
10191
+ textarea: FieldBuilder<{
10192
+ name: "textarea";
10193
+ "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10194
+ component: typeof TextareaField;
10195
+ cellComponent: typeof TextCell;
10196
+ createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10197
+ }>;
10198
+ checkbox: FieldBuilder<{
10199
+ name: "checkbox";
10200
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10201
+ component: typeof CheckboxField;
10202
+ cellComponent: typeof BooleanCell;
10203
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10204
+ }>;
10205
+ switch: FieldBuilder<{
10206
+ name: "switch";
10207
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10208
+ component: typeof SwitchField;
10209
+ cellComponent: typeof BooleanCell;
10210
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10211
+ }>;
10212
+ select: FieldBuilder<{
10213
+ name: "select";
10214
+ "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10215
+ component: typeof SelectField;
10216
+ cellComponent: typeof SelectCell;
10217
+ createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10218
+ }>;
10219
+ datetime: FieldBuilder<{
10220
+ name: "datetime";
10221
+ "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10222
+ component: typeof DatetimeField;
10223
+ cellComponent: typeof DateTimeCell;
10224
+ createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10225
+ }>;
10226
+ time: FieldBuilder<{
10227
+ name: "time";
10228
+ "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10229
+ component: typeof TimeField;
10230
+ cellComponent: typeof TimeCell;
10231
+ createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10232
+ }>;
10233
+ relation: FieldBuilder<{
10234
+ name: "relation";
10235
+ "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10236
+ component: typeof RelationField;
10237
+ cellComponent: typeof RelationCell;
10238
+ createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10239
+ }>;
10240
+ reverseRelation: FieldBuilder<{
10241
+ name: "reverseRelation";
10242
+ "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10243
+ component: typeof ReverseRelationField;
10244
+ cellComponent: typeof ReverseRelationCell;
10245
+ createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10246
+ }>;
10247
+ json: FieldBuilder<{
10248
+ name: "json";
10249
+ "~options": Omit<BaseFieldProps & {
10279
10250
  readOnly?: boolean;
10280
- }) => React.ReactNode;
10281
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10282
- component: typeof JsonField;
10283
- cellComponent: typeof JsonCell;
10284
- createZod: CreateZodFn<Omit<BaseFieldProps & {
10285
- readOnly?: boolean;
10286
- defaultMode?: JsonFieldMode;
10287
- allowModeSwitch?: boolean;
10288
- minHeight?: number;
10289
- maxHeight?: number;
10290
- renderForm?: (props: {
10291
- value: any;
10292
- onChange: (value: any) => void;
10293
- disabled?: boolean;
10251
+ defaultMode?: JsonFieldMode;
10252
+ allowModeSwitch?: boolean;
10253
+ minHeight?: number;
10254
+ maxHeight?: number;
10255
+ renderForm?: (props: {
10256
+ value: any;
10257
+ onChange: (value: any) => void;
10258
+ disabled?: boolean;
10259
+ readOnly?: boolean;
10260
+ }) => React.ReactNode;
10261
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10262
+ component: typeof JsonField;
10263
+ cellComponent: typeof JsonCell;
10264
+ createZod: CreateZodFn<Omit<BaseFieldProps & {
10294
10265
  readOnly?: boolean;
10295
- }) => React.ReactNode;
10296
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10297
- }>;
10298
- readonly object: FieldBuilder<{
10299
- name: "object";
10300
- "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10301
- component: typeof ObjectField;
10302
- cellComponent: typeof ObjectCell;
10303
- createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10304
- }>;
10305
- readonly array: FieldBuilder<{
10306
- name: "array";
10307
- "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10308
- component: typeof ArrayField;
10309
- cellComponent: typeof JsonCell;
10310
- createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10311
- }>;
10312
- readonly upload: FieldBuilder<{
10313
- name: "upload";
10314
- "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10315
- component: typeof UploadField;
10316
- cellComponent: typeof UploadCell;
10317
- createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10318
- }>;
10319
- readonly uploadMany: FieldBuilder<{
10320
- name: "uploadMany";
10321
- "~options": UploadFieldConfig & {
10322
- maxItems?: number;
10323
- orderable?: boolean;
10324
- layout?: "grid" | "list";
10325
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10326
- component: typeof UploadManyField;
10327
- cellComponent: typeof UploadManyCell;
10328
- createZod: CreateZodFn<UploadFieldConfig & {
10329
- maxItems?: number;
10330
- orderable?: boolean;
10331
- layout?: "grid" | "list";
10332
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10333
- }>;
10334
- readonly assetPreview: FieldBuilder<{
10335
- name: "assetPreview";
10336
- "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10337
- component: typeof AssetPreviewField;
10338
- cellComponent: ({
10339
- row
10340
- }: {
10341
- value: unknown;
10342
- row?: any;
10343
- }) => react_jsx_runtime11.JSX.Element;
10344
- createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10345
- }>;
10346
- readonly richText: FieldBuilder<{
10347
- name: "richText";
10348
- "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10349
- component: typeof RichTextField;
10350
- cellComponent: typeof RichTextCell;
10351
- createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10352
- }>;
10353
- readonly embedded: FieldBuilder<{
10354
- name: "embedded";
10355
- "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10356
- component: typeof EmbeddedCollectionField;
10357
- cellComponent: typeof JsonCell;
10358
- createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10359
- }>;
10360
- readonly blocks: FieldBuilder<{
10361
- name: "blocks";
10362
- "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10363
- component: typeof BlocksField;
10364
- cellComponent: typeof BlocksCell;
10365
- createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10366
- }>;
10367
- }>>, "listViews" | "editViews">, {
10368
- listViews: questpie163.TypeMerge<{}, FilterListViews<{
10369
- readonly table: ListViewBuilder<{
10370
- name: "table";
10371
- kind: "list";
10372
- "~config": TableViewConfig;
10373
- component: typeof TableView;
10266
+ defaultMode?: JsonFieldMode;
10267
+ allowModeSwitch?: boolean;
10268
+ minHeight?: number;
10269
+ maxHeight?: number;
10270
+ renderForm?: (props: {
10271
+ value: any;
10272
+ onChange: (value: any) => void;
10273
+ disabled?: boolean;
10274
+ readOnly?: boolean;
10275
+ }) => React.ReactNode;
10276
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10374
10277
  }>;
10375
- readonly form: EditViewBuilder<{
10376
- name: "form";
10377
- kind: "edit";
10378
- "~config": FormViewConfig;
10379
- component: typeof FormView;
10278
+ upload: FieldBuilder<{
10279
+ name: "upload";
10280
+ "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10281
+ component: typeof UploadField;
10282
+ cellComponent: typeof UploadCell;
10283
+ createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10380
10284
  }>;
10381
- }>>;
10382
- editViews: questpie163.TypeMerge<{}, FilterEditViews<{
10383
- readonly table: ListViewBuilder<{
10285
+ uploadMany: FieldBuilder<{
10286
+ name: "uploadMany";
10287
+ "~options": UploadFieldConfig & {
10288
+ maxItems?: number;
10289
+ orderable?: boolean;
10290
+ layout?: "grid" | "list";
10291
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10292
+ component: typeof UploadManyField;
10293
+ cellComponent: typeof UploadManyCell;
10294
+ createZod: CreateZodFn<UploadFieldConfig & {
10295
+ maxItems?: number;
10296
+ orderable?: boolean;
10297
+ layout?: "grid" | "list";
10298
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10299
+ }>;
10300
+ assetPreview: FieldBuilder<{
10301
+ name: "assetPreview";
10302
+ "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10303
+ component: typeof AssetPreviewField;
10304
+ cellComponent: ({
10305
+ row
10306
+ }: {
10307
+ value: unknown;
10308
+ row?: any;
10309
+ }) => react_jsx_runtime11.JSX.Element;
10310
+ createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10311
+ }>;
10312
+ richText: FieldBuilder<{
10313
+ name: "richText";
10314
+ "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10315
+ component: typeof RichTextField;
10316
+ cellComponent: typeof RichTextCell;
10317
+ createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10318
+ }>;
10319
+ embedded: FieldBuilder<{
10320
+ name: "embedded";
10321
+ "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10322
+ component: typeof EmbeddedCollectionField;
10323
+ cellComponent: typeof JsonCell;
10324
+ createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10325
+ }>;
10326
+ blocks: FieldBuilder<{
10327
+ name: "blocks";
10328
+ "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10329
+ component: typeof BlocksField;
10330
+ cellComponent: typeof BlocksCell;
10331
+ createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10332
+ }>;
10333
+ };
10334
+ blocks: {};
10335
+ "~app": any;
10336
+ listViews: {
10337
+ table: ListViewBuilder<{
10384
10338
  name: "table";
10385
10339
  kind: "list";
10386
10340
  "~config": TableViewConfig;
10387
10341
  component: typeof TableView;
10388
10342
  }>;
10389
- readonly form: EditViewBuilder<{
10343
+ };
10344
+ editViews: {
10345
+ form: EditViewBuilder<{
10390
10346
  name: "form";
10391
10347
  kind: "edit";
10392
10348
  "~config": FormViewConfig;
10393
10349
  component: typeof FormView;
10394
10350
  }>;
10395
- }>>;
10396
- }>, "pages", questpie163.TypeMerge<{}, {
10397
- readonly login: PageBuilder<questpie163.SetProperty<{
10351
+ };
10352
+ pages: {};
10353
+ widgets: {};
10354
+ collections: {};
10355
+ globals: {};
10356
+ dashboard: {
10357
+ layout: "grid";
10358
+ widgets: [];
10359
+ };
10360
+ sidebar: {
10361
+ sections: [];
10362
+ };
10363
+ branding: {};
10364
+ defaultViews: {};
10365
+ translations: {};
10366
+ }, "pages", {
10367
+ dashboard: PageBuilder<questpie134.SetProperty<{
10368
+ name: "dashboard";
10369
+ component: () => Promise<typeof dashboard_page_d_exports>;
10370
+ path: undefined;
10371
+ }, "path", string>>;
10372
+ login: PageBuilder<questpie134.SetProperty<{
10398
10373
  name: "login";
10399
10374
  component: () => Promise<typeof login_page_d_exports>;
10400
10375
  path: undefined;
10401
10376
  }, "path", string>>;
10402
- readonly forgotPassword: PageBuilder<questpie163.SetProperty<{
10377
+ setup: PageBuilder<questpie134.SetProperty<{
10378
+ name: "setup";
10379
+ component: () => Promise<typeof setup_page_d_exports>;
10380
+ path: undefined;
10381
+ }, "path", string>>;
10382
+ forgotPassword: PageBuilder<questpie134.SetProperty<{
10403
10383
  name: "forgot-password";
10404
10384
  component: () => Promise<typeof forgot_password_page_d_exports>;
10405
10385
  path: undefined;
10406
10386
  }, "path", string>>;
10407
- readonly resetPassword: PageBuilder<questpie163.SetProperty<{
10387
+ resetPassword: PageBuilder<questpie134.SetProperty<{
10408
10388
  name: "reset-password";
10409
10389
  component: () => Promise<typeof reset_password_page_d_exports>;
10410
10390
  path: undefined;
10411
10391
  }, "path", string>>;
10412
- readonly setup: PageBuilder<questpie163.SetProperty<{
10413
- name: "setup";
10414
- component: () => Promise<typeof setup_page_d_exports>;
10415
- path: undefined;
10416
- }, "path", string>>;
10417
- readonly dashboard: PageBuilder<questpie163.SetProperty<{
10418
- name: "dashboard";
10419
- component: () => Promise<typeof dashboard_page_d_exports>;
10420
- path: undefined;
10421
- }, "path", string>>;
10422
- }>>, "collections", questpie163.TypeMerge<{}, {
10423
- user: CollectionBuilder<questpie163.SetProperty<questpie163.SetProperty<questpie163.SetProperty<{
10392
+ }>, "collections", {
10393
+ user: CollectionBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
10424
10394
  name: "user";
10425
- "~adminApp": AdminBuilder<questpie163.SetProperty<questpie163.TypeMerge<questpie163.UnsetProperty<questpie163.SetProperty<{
10426
- "~app": any;
10427
- fields: {};
10428
- listViews: {};
10429
- editViews: {};
10430
- pages: {};
10431
- widgets: {};
10432
- blocks: {};
10433
- collections: {};
10434
- globals: {};
10435
- dashboard: {
10436
- layout: "grid";
10437
- widgets: [];
10438
- };
10439
- sidebar: {
10440
- sections: [];
10441
- };
10442
- branding: {};
10395
+ "~adminApp": AdminBuilder<questpie134.SetProperty<{
10443
10396
  locale: {
10444
10397
  default: string;
10445
10398
  supported: string[];
10446
10399
  };
10447
- defaultViews: {};
10448
- translations: {};
10449
- }, "fields", questpie163.TypeMerge<{}, {
10450
- readonly text: FieldBuilder<{
10451
- name: "text";
10452
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10453
- component: typeof TextField;
10454
- cellComponent: typeof TextCell;
10455
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10456
- }>;
10457
- readonly number: FieldBuilder<{
10458
- name: "number";
10459
- "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10460
- component: typeof NumberField;
10461
- cellComponent: typeof NumberCell;
10462
- createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10463
- }>;
10464
- readonly email: FieldBuilder<{
10465
- name: "email";
10466
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10467
- component: typeof EmailField;
10468
- cellComponent: typeof EmailCell;
10469
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10470
- }>;
10471
- readonly password: FieldBuilder<{
10472
- name: "password";
10473
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10474
- component: typeof PasswordField;
10475
- cellComponent: typeof TextCell;
10476
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10477
- }>;
10478
- readonly textarea: FieldBuilder<{
10479
- name: "textarea";
10480
- "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10481
- component: typeof TextareaField;
10482
- cellComponent: typeof TextCell;
10483
- createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10484
- }>;
10485
- readonly checkbox: FieldBuilder<{
10486
- name: "checkbox";
10487
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10488
- component: typeof CheckboxField;
10489
- cellComponent: typeof BooleanCell;
10490
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10491
- }>;
10492
- readonly switch: FieldBuilder<{
10493
- name: "switch";
10494
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10495
- component: typeof SwitchField;
10496
- cellComponent: typeof BooleanCell;
10497
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10498
- }>;
10499
- readonly select: FieldBuilder<{
10500
- name: "select";
10501
- "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10502
- component: typeof SelectField;
10503
- cellComponent: typeof SelectCell;
10504
- createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10505
- }>;
10506
- readonly date: FieldBuilder<{
10507
- name: "date";
10508
- "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10509
- component: typeof DateField;
10510
- cellComponent: typeof DateCell;
10511
- createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10512
- }>;
10513
- readonly datetime: FieldBuilder<{
10514
- name: "datetime";
10515
- "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10516
- component: typeof DatetimeField;
10517
- cellComponent: typeof DateTimeCell;
10518
- createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10519
- }>;
10520
- readonly time: FieldBuilder<{
10521
- name: "time";
10522
- "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10523
- component: typeof TimeField;
10524
- cellComponent: typeof TimeCell;
10525
- createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10526
- }>;
10527
- readonly relation: FieldBuilder<{
10528
- name: "relation";
10529
- "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10530
- component: typeof RelationField;
10531
- cellComponent: typeof RelationCell;
10532
- createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10533
- }>;
10534
- readonly reverseRelation: FieldBuilder<{
10535
- name: "reverseRelation";
10536
- "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10537
- component: typeof ReverseRelationField;
10538
- cellComponent: typeof ReverseRelationCell;
10539
- createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10540
- }>;
10541
- readonly json: FieldBuilder<{
10542
- name: "json";
10543
- "~options": Omit<BaseFieldProps & {
10544
- readOnly?: boolean;
10545
- defaultMode?: JsonFieldMode;
10546
- allowModeSwitch?: boolean;
10547
- minHeight?: number;
10548
- maxHeight?: number;
10549
- renderForm?: (props: {
10550
- value: any;
10551
- onChange: (value: any) => void;
10552
- disabled?: boolean;
10400
+ fields: {
10401
+ number: FieldBuilder<{
10402
+ name: "number";
10403
+ "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10404
+ component: typeof NumberField;
10405
+ cellComponent: typeof NumberCell;
10406
+ createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10407
+ }>;
10408
+ object: FieldBuilder<{
10409
+ name: "object";
10410
+ "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10411
+ component: typeof ObjectField;
10412
+ cellComponent: typeof ObjectCell;
10413
+ createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10414
+ }>;
10415
+ text: FieldBuilder<{
10416
+ name: "text";
10417
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10418
+ component: typeof TextField;
10419
+ cellComponent: typeof TextCell;
10420
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10421
+ }>;
10422
+ email: FieldBuilder<{
10423
+ name: "email";
10424
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10425
+ component: typeof EmailField;
10426
+ cellComponent: typeof EmailCell;
10427
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10428
+ }>;
10429
+ password: FieldBuilder<{
10430
+ name: "password";
10431
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10432
+ component: typeof PasswordField;
10433
+ cellComponent: typeof TextCell;
10434
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10435
+ }>;
10436
+ date: FieldBuilder<{
10437
+ name: "date";
10438
+ "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10439
+ component: typeof DateField;
10440
+ cellComponent: typeof DateCell;
10441
+ createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10442
+ }>;
10443
+ array: FieldBuilder<{
10444
+ name: "array";
10445
+ "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10446
+ component: typeof ArrayField;
10447
+ cellComponent: typeof JsonCell;
10448
+ createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10449
+ }>;
10450
+ textarea: FieldBuilder<{
10451
+ name: "textarea";
10452
+ "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10453
+ component: typeof TextareaField;
10454
+ cellComponent: typeof TextCell;
10455
+ createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10456
+ }>;
10457
+ checkbox: FieldBuilder<{
10458
+ name: "checkbox";
10459
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10460
+ component: typeof CheckboxField;
10461
+ cellComponent: typeof BooleanCell;
10462
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10463
+ }>;
10464
+ switch: FieldBuilder<{
10465
+ name: "switch";
10466
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10467
+ component: typeof SwitchField;
10468
+ cellComponent: typeof BooleanCell;
10469
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10470
+ }>;
10471
+ select: FieldBuilder<{
10472
+ name: "select";
10473
+ "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10474
+ component: typeof SelectField;
10475
+ cellComponent: typeof SelectCell;
10476
+ createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10477
+ }>;
10478
+ datetime: FieldBuilder<{
10479
+ name: "datetime";
10480
+ "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10481
+ component: typeof DatetimeField;
10482
+ cellComponent: typeof DateTimeCell;
10483
+ createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10484
+ }>;
10485
+ time: FieldBuilder<{
10486
+ name: "time";
10487
+ "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10488
+ component: typeof TimeField;
10489
+ cellComponent: typeof TimeCell;
10490
+ createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10491
+ }>;
10492
+ relation: FieldBuilder<{
10493
+ name: "relation";
10494
+ "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10495
+ component: typeof RelationField;
10496
+ cellComponent: typeof RelationCell;
10497
+ createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10498
+ }>;
10499
+ reverseRelation: FieldBuilder<{
10500
+ name: "reverseRelation";
10501
+ "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10502
+ component: typeof ReverseRelationField;
10503
+ cellComponent: typeof ReverseRelationCell;
10504
+ createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10505
+ }>;
10506
+ json: FieldBuilder<{
10507
+ name: "json";
10508
+ "~options": Omit<BaseFieldProps & {
10553
10509
  readOnly?: boolean;
10554
- }) => React.ReactNode;
10555
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10556
- component: typeof JsonField;
10557
- cellComponent: typeof JsonCell;
10558
- createZod: CreateZodFn<Omit<BaseFieldProps & {
10559
- readOnly?: boolean;
10560
- defaultMode?: JsonFieldMode;
10561
- allowModeSwitch?: boolean;
10562
- minHeight?: number;
10563
- maxHeight?: number;
10564
- renderForm?: (props: {
10565
- value: any;
10566
- onChange: (value: any) => void;
10567
- disabled?: boolean;
10510
+ defaultMode?: JsonFieldMode;
10511
+ allowModeSwitch?: boolean;
10512
+ minHeight?: number;
10513
+ maxHeight?: number;
10514
+ renderForm?: (props: {
10515
+ value: any;
10516
+ onChange: (value: any) => void;
10517
+ disabled?: boolean;
10518
+ readOnly?: boolean;
10519
+ }) => React.ReactNode;
10520
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10521
+ component: typeof JsonField;
10522
+ cellComponent: typeof JsonCell;
10523
+ createZod: CreateZodFn<Omit<BaseFieldProps & {
10568
10524
  readOnly?: boolean;
10569
- }) => React.ReactNode;
10570
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10571
- }>;
10572
- readonly object: FieldBuilder<{
10573
- name: "object";
10574
- "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10575
- component: typeof ObjectField;
10576
- cellComponent: typeof ObjectCell;
10577
- createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10578
- }>;
10579
- readonly array: FieldBuilder<{
10580
- name: "array";
10581
- "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10582
- component: typeof ArrayField;
10583
- cellComponent: typeof JsonCell;
10584
- createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10585
- }>;
10586
- readonly upload: FieldBuilder<{
10587
- name: "upload";
10588
- "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10589
- component: typeof UploadField;
10590
- cellComponent: typeof UploadCell;
10591
- createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10592
- }>;
10593
- readonly uploadMany: FieldBuilder<{
10594
- name: "uploadMany";
10595
- "~options": UploadFieldConfig & {
10596
- maxItems?: number;
10597
- orderable?: boolean;
10598
- layout?: "grid" | "list";
10599
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10600
- component: typeof UploadManyField;
10601
- cellComponent: typeof UploadManyCell;
10602
- createZod: CreateZodFn<UploadFieldConfig & {
10603
- maxItems?: number;
10604
- orderable?: boolean;
10605
- layout?: "grid" | "list";
10606
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10607
- }>;
10608
- readonly assetPreview: FieldBuilder<{
10609
- name: "assetPreview";
10610
- "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10611
- component: typeof AssetPreviewField;
10612
- cellComponent: ({
10613
- row
10614
- }: {
10615
- value: unknown;
10616
- row?: any;
10617
- }) => react_jsx_runtime11.JSX.Element;
10618
- createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10619
- }>;
10620
- readonly richText: FieldBuilder<{
10621
- name: "richText";
10622
- "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10623
- component: typeof RichTextField;
10624
- cellComponent: typeof RichTextCell;
10625
- createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10626
- }>;
10627
- readonly embedded: FieldBuilder<{
10628
- name: "embedded";
10629
- "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10630
- component: typeof EmbeddedCollectionField;
10631
- cellComponent: typeof JsonCell;
10632
- createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10633
- }>;
10634
- readonly blocks: FieldBuilder<{
10635
- name: "blocks";
10636
- "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10637
- component: typeof BlocksField;
10638
- cellComponent: typeof BlocksCell;
10639
- createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10640
- }>;
10641
- }>>, "listViews" | "editViews">, {
10642
- listViews: questpie163.TypeMerge<{}, FilterListViews<{
10643
- readonly table: ListViewBuilder<{
10644
- name: "table";
10645
- kind: "list";
10646
- "~config": TableViewConfig;
10647
- component: typeof TableView;
10525
+ defaultMode?: JsonFieldMode;
10526
+ allowModeSwitch?: boolean;
10527
+ minHeight?: number;
10528
+ maxHeight?: number;
10529
+ renderForm?: (props: {
10530
+ value: any;
10531
+ onChange: (value: any) => void;
10532
+ disabled?: boolean;
10533
+ readOnly?: boolean;
10534
+ }) => React.ReactNode;
10535
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10648
10536
  }>;
10649
- readonly form: EditViewBuilder<{
10650
- name: "form";
10651
- kind: "edit";
10652
- "~config": FormViewConfig;
10653
- component: typeof FormView;
10537
+ upload: FieldBuilder<{
10538
+ name: "upload";
10539
+ "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10540
+ component: typeof UploadField;
10541
+ cellComponent: typeof UploadCell;
10542
+ createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10543
+ }>;
10544
+ uploadMany: FieldBuilder<{
10545
+ name: "uploadMany";
10546
+ "~options": UploadFieldConfig & {
10547
+ maxItems?: number;
10548
+ orderable?: boolean;
10549
+ layout?: "grid" | "list";
10550
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10551
+ component: typeof UploadManyField;
10552
+ cellComponent: typeof UploadManyCell;
10553
+ createZod: CreateZodFn<UploadFieldConfig & {
10554
+ maxItems?: number;
10555
+ orderable?: boolean;
10556
+ layout?: "grid" | "list";
10557
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10558
+ }>;
10559
+ assetPreview: FieldBuilder<{
10560
+ name: "assetPreview";
10561
+ "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10562
+ component: typeof AssetPreviewField;
10563
+ cellComponent: ({
10564
+ row
10565
+ }: {
10566
+ value: unknown;
10567
+ row?: any;
10568
+ }) => react_jsx_runtime11.JSX.Element;
10569
+ createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10570
+ }>;
10571
+ richText: FieldBuilder<{
10572
+ name: "richText";
10573
+ "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10574
+ component: typeof RichTextField;
10575
+ cellComponent: typeof RichTextCell;
10576
+ createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10577
+ }>;
10578
+ embedded: FieldBuilder<{
10579
+ name: "embedded";
10580
+ "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10581
+ component: typeof EmbeddedCollectionField;
10582
+ cellComponent: typeof JsonCell;
10583
+ createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10584
+ }>;
10585
+ blocks: FieldBuilder<{
10586
+ name: "blocks";
10587
+ "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10588
+ component: typeof BlocksField;
10589
+ cellComponent: typeof BlocksCell;
10590
+ createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10654
10591
  }>;
10655
- }>>;
10656
- editViews: questpie163.TypeMerge<{}, FilterEditViews<{
10657
- readonly table: ListViewBuilder<{
10592
+ };
10593
+ blocks: {};
10594
+ "~app": any;
10595
+ listViews: {
10596
+ table: ListViewBuilder<{
10658
10597
  name: "table";
10659
10598
  kind: "list";
10660
10599
  "~config": TableViewConfig;
10661
10600
  component: typeof TableView;
10662
10601
  }>;
10663
- readonly form: EditViewBuilder<{
10602
+ };
10603
+ editViews: {
10604
+ form: EditViewBuilder<{
10664
10605
  name: "form";
10665
10606
  kind: "edit";
10666
10607
  "~config": FormViewConfig;
10667
10608
  component: typeof FormView;
10668
10609
  }>;
10669
- }>>;
10670
- }>, "pages", questpie163.TypeMerge<{}, {
10671
- readonly login: PageBuilder<questpie163.SetProperty<{
10610
+ };
10611
+ pages: {};
10612
+ widgets: {};
10613
+ collections: {};
10614
+ globals: {};
10615
+ dashboard: {
10616
+ layout: "grid";
10617
+ widgets: [];
10618
+ };
10619
+ sidebar: {
10620
+ sections: [];
10621
+ };
10622
+ branding: {};
10623
+ defaultViews: {};
10624
+ translations: {};
10625
+ }, "pages", {
10626
+ dashboard: PageBuilder<questpie134.SetProperty<{
10627
+ name: "dashboard";
10628
+ component: () => Promise<typeof dashboard_page_d_exports>;
10629
+ path: undefined;
10630
+ }, "path", string>>;
10631
+ login: PageBuilder<questpie134.SetProperty<{
10672
10632
  name: "login";
10673
10633
  component: () => Promise<typeof login_page_d_exports>;
10674
10634
  path: undefined;
10675
10635
  }, "path", string>>;
10676
- readonly forgotPassword: PageBuilder<questpie163.SetProperty<{
10636
+ setup: PageBuilder<questpie134.SetProperty<{
10637
+ name: "setup";
10638
+ component: () => Promise<typeof setup_page_d_exports>;
10639
+ path: undefined;
10640
+ }, "path", string>>;
10641
+ forgotPassword: PageBuilder<questpie134.SetProperty<{
10677
10642
  name: "forgot-password";
10678
10643
  component: () => Promise<typeof forgot_password_page_d_exports>;
10679
10644
  path: undefined;
10680
10645
  }, "path", string>>;
10681
- readonly resetPassword: PageBuilder<questpie163.SetProperty<{
10646
+ resetPassword: PageBuilder<questpie134.SetProperty<{
10682
10647
  name: "reset-password";
10683
10648
  component: () => Promise<typeof reset_password_page_d_exports>;
10684
10649
  path: undefined;
10685
10650
  }, "path", string>>;
10686
- readonly setup: PageBuilder<questpie163.SetProperty<{
10687
- name: "setup";
10688
- component: () => Promise<typeof setup_page_d_exports>;
10689
- path: undefined;
10690
- }, "path", string>>;
10691
- readonly dashboard: PageBuilder<questpie163.SetProperty<{
10692
- name: "dashboard";
10693
- component: () => Promise<typeof dashboard_page_d_exports>;
10694
- path: undefined;
10695
- }, "path", string>>;
10696
- }>>>;
10651
+ }>>;
10697
10652
  }, "fields", {
10698
10653
  name: FieldDefinition<"text", TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions>;
10699
10654
  email: FieldDefinition<"email", TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions>;
@@ -10712,280 +10667,265 @@ declare const adminModule: AdminBuilder<questpie163.SetProperty<questpie163.SetP
10712
10667
  "~config": FormViewConfig;
10713
10668
  component: typeof FormView;
10714
10669
  }>>>;
10715
- assets: CollectionBuilder<questpie163.SetProperty<questpie163.SetProperty<questpie163.SetProperty<{
10670
+ assets: CollectionBuilder<questpie134.SetProperty<questpie134.SetProperty<questpie134.SetProperty<{
10716
10671
  name: "assets";
10717
- "~adminApp": AdminBuilder<questpie163.SetProperty<questpie163.TypeMerge<questpie163.UnsetProperty<questpie163.SetProperty<{
10718
- "~app": any;
10719
- fields: {};
10720
- listViews: {};
10721
- editViews: {};
10722
- pages: {};
10723
- widgets: {};
10724
- blocks: {};
10725
- collections: {};
10726
- globals: {};
10727
- dashboard: {
10728
- layout: "grid";
10729
- widgets: [];
10730
- };
10731
- sidebar: {
10732
- sections: [];
10733
- };
10734
- branding: {};
10672
+ "~adminApp": AdminBuilder<questpie134.SetProperty<{
10735
10673
  locale: {
10736
10674
  default: string;
10737
10675
  supported: string[];
10738
10676
  };
10739
- defaultViews: {};
10740
- translations: {};
10741
- }, "fields", questpie163.TypeMerge<{}, {
10742
- readonly text: FieldBuilder<{
10743
- name: "text";
10744
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10745
- component: typeof TextField;
10746
- cellComponent: typeof TextCell;
10747
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10748
- }>;
10749
- readonly number: FieldBuilder<{
10750
- name: "number";
10751
- "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10752
- component: typeof NumberField;
10753
- cellComponent: typeof NumberCell;
10754
- createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10755
- }>;
10756
- readonly email: FieldBuilder<{
10757
- name: "email";
10758
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10759
- component: typeof EmailField;
10760
- cellComponent: typeof EmailCell;
10761
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10762
- }>;
10763
- readonly password: FieldBuilder<{
10764
- name: "password";
10765
- "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10766
- component: typeof PasswordField;
10767
- cellComponent: typeof TextCell;
10768
- createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10769
- }>;
10770
- readonly textarea: FieldBuilder<{
10771
- name: "textarea";
10772
- "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10773
- component: typeof TextareaField;
10774
- cellComponent: typeof TextCell;
10775
- createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10776
- }>;
10777
- readonly checkbox: FieldBuilder<{
10778
- name: "checkbox";
10779
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10780
- component: typeof CheckboxField;
10781
- cellComponent: typeof BooleanCell;
10782
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10783
- }>;
10784
- readonly switch: FieldBuilder<{
10785
- name: "switch";
10786
- "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10787
- component: typeof SwitchField;
10788
- cellComponent: typeof BooleanCell;
10789
- createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10790
- }>;
10791
- readonly select: FieldBuilder<{
10792
- name: "select";
10793
- "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10794
- component: typeof SelectField;
10795
- cellComponent: typeof SelectCell;
10796
- createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10797
- }>;
10798
- readonly date: FieldBuilder<{
10799
- name: "date";
10800
- "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10801
- component: typeof DateField;
10802
- cellComponent: typeof DateCell;
10803
- createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10804
- }>;
10805
- readonly datetime: FieldBuilder<{
10806
- name: "datetime";
10807
- "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10808
- component: typeof DatetimeField;
10809
- cellComponent: typeof DateTimeCell;
10810
- createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10811
- }>;
10812
- readonly time: FieldBuilder<{
10813
- name: "time";
10814
- "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10815
- component: typeof TimeField;
10816
- cellComponent: typeof TimeCell;
10817
- createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10818
- }>;
10819
- readonly relation: FieldBuilder<{
10820
- name: "relation";
10821
- "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10822
- component: typeof RelationField;
10823
- cellComponent: typeof RelationCell;
10824
- createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10825
- }>;
10826
- readonly reverseRelation: FieldBuilder<{
10827
- name: "reverseRelation";
10828
- "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10829
- component: typeof ReverseRelationField;
10830
- cellComponent: typeof ReverseRelationCell;
10831
- createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10832
- }>;
10833
- readonly json: FieldBuilder<{
10834
- name: "json";
10835
- "~options": Omit<BaseFieldProps & {
10836
- readOnly?: boolean;
10837
- defaultMode?: JsonFieldMode;
10838
- allowModeSwitch?: boolean;
10839
- minHeight?: number;
10840
- maxHeight?: number;
10841
- renderForm?: (props: {
10842
- value: any;
10843
- onChange: (value: any) => void;
10844
- disabled?: boolean;
10677
+ fields: {
10678
+ number: FieldBuilder<{
10679
+ name: "number";
10680
+ "~options": NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10681
+ component: typeof NumberField;
10682
+ cellComponent: typeof NumberCell;
10683
+ createZod: CreateZodFn<NumberFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10684
+ }>;
10685
+ object: FieldBuilder<{
10686
+ name: "object";
10687
+ "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10688
+ component: typeof ObjectField;
10689
+ cellComponent: typeof ObjectCell;
10690
+ createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10691
+ }>;
10692
+ text: FieldBuilder<{
10693
+ name: "text";
10694
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10695
+ component: typeof TextField;
10696
+ cellComponent: typeof TextCell;
10697
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10698
+ }>;
10699
+ email: FieldBuilder<{
10700
+ name: "email";
10701
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10702
+ component: typeof EmailField;
10703
+ cellComponent: typeof EmailCell;
10704
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10705
+ }>;
10706
+ password: FieldBuilder<{
10707
+ name: "password";
10708
+ "~options": TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10709
+ component: typeof PasswordField;
10710
+ cellComponent: typeof TextCell;
10711
+ createZod: CreateZodFn<TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10712
+ }>;
10713
+ date: FieldBuilder<{
10714
+ name: "date";
10715
+ "~options": DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10716
+ component: typeof DateField;
10717
+ cellComponent: typeof DateCell;
10718
+ createZod: CreateZodFn<DateFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10719
+ }>;
10720
+ array: FieldBuilder<{
10721
+ name: "array";
10722
+ "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10723
+ component: typeof ArrayField;
10724
+ cellComponent: typeof JsonCell;
10725
+ createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10726
+ }>;
10727
+ textarea: FieldBuilder<{
10728
+ name: "textarea";
10729
+ "~options": TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10730
+ component: typeof TextareaField;
10731
+ cellComponent: typeof TextCell;
10732
+ createZod: CreateZodFn<TextareaFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10733
+ }>;
10734
+ checkbox: FieldBuilder<{
10735
+ name: "checkbox";
10736
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10737
+ component: typeof CheckboxField;
10738
+ cellComponent: typeof BooleanCell;
10739
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10740
+ }>;
10741
+ switch: FieldBuilder<{
10742
+ name: "switch";
10743
+ "~options": Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10744
+ component: typeof SwitchField;
10745
+ cellComponent: typeof BooleanCell;
10746
+ createZod: CreateZodFn<Omit<BaseFieldProps, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10747
+ }>;
10748
+ select: FieldBuilder<{
10749
+ name: "select";
10750
+ "~options": SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10751
+ component: typeof SelectField;
10752
+ cellComponent: typeof SelectCell;
10753
+ createZod: CreateZodFn<SelectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10754
+ }>;
10755
+ datetime: FieldBuilder<{
10756
+ name: "datetime";
10757
+ "~options": DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10758
+ component: typeof DatetimeField;
10759
+ cellComponent: typeof DateTimeCell;
10760
+ createZod: CreateZodFn<DateTimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10761
+ }>;
10762
+ time: FieldBuilder<{
10763
+ name: "time";
10764
+ "~options": TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10765
+ component: typeof TimeField;
10766
+ cellComponent: typeof TimeCell;
10767
+ createZod: CreateZodFn<TimeFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10768
+ }>;
10769
+ relation: FieldBuilder<{
10770
+ name: "relation";
10771
+ "~options": RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10772
+ component: typeof RelationField;
10773
+ cellComponent: typeof RelationCell;
10774
+ createZod: CreateZodFn<RelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10775
+ }>;
10776
+ reverseRelation: FieldBuilder<{
10777
+ name: "reverseRelation";
10778
+ "~options": ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10779
+ component: typeof ReverseRelationField;
10780
+ cellComponent: typeof ReverseRelationCell;
10781
+ createZod: CreateZodFn<ReverseRelationFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10782
+ }>;
10783
+ json: FieldBuilder<{
10784
+ name: "json";
10785
+ "~options": Omit<BaseFieldProps & {
10845
10786
  readOnly?: boolean;
10846
- }) => React.ReactNode;
10847
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10848
- component: typeof JsonField;
10849
- cellComponent: typeof JsonCell;
10850
- createZod: CreateZodFn<Omit<BaseFieldProps & {
10851
- readOnly?: boolean;
10852
- defaultMode?: JsonFieldMode;
10853
- allowModeSwitch?: boolean;
10854
- minHeight?: number;
10855
- maxHeight?: number;
10856
- renderForm?: (props: {
10857
- value: any;
10858
- onChange: (value: any) => void;
10859
- disabled?: boolean;
10787
+ defaultMode?: JsonFieldMode;
10788
+ allowModeSwitch?: boolean;
10789
+ minHeight?: number;
10790
+ maxHeight?: number;
10791
+ renderForm?: (props: {
10792
+ value: any;
10793
+ onChange: (value: any) => void;
10794
+ disabled?: boolean;
10795
+ readOnly?: boolean;
10796
+ }) => React.ReactNode;
10797
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10798
+ component: typeof JsonField;
10799
+ cellComponent: typeof JsonCell;
10800
+ createZod: CreateZodFn<Omit<BaseFieldProps & {
10860
10801
  readOnly?: boolean;
10861
- }) => React.ReactNode;
10862
- }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10863
- }>;
10864
- readonly object: FieldBuilder<{
10865
- name: "object";
10866
- "~options": ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10867
- component: typeof ObjectField;
10868
- cellComponent: typeof ObjectCell;
10869
- createZod: CreateZodFn<ObjectFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10870
- }>;
10871
- readonly array: FieldBuilder<{
10872
- name: "array";
10873
- "~options": ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10874
- component: typeof ArrayField;
10875
- cellComponent: typeof JsonCell;
10876
- createZod: CreateZodFn<ArrayFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10877
- }>;
10878
- readonly upload: FieldBuilder<{
10879
- name: "upload";
10880
- "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10881
- component: typeof UploadField;
10882
- cellComponent: typeof UploadCell;
10883
- createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10884
- }>;
10885
- readonly uploadMany: FieldBuilder<{
10886
- name: "uploadMany";
10887
- "~options": UploadFieldConfig & {
10888
- maxItems?: number;
10889
- orderable?: boolean;
10890
- layout?: "grid" | "list";
10891
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10892
- component: typeof UploadManyField;
10893
- cellComponent: typeof UploadManyCell;
10894
- createZod: CreateZodFn<UploadFieldConfig & {
10895
- maxItems?: number;
10896
- orderable?: boolean;
10897
- layout?: "grid" | "list";
10898
- } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10899
- }>;
10900
- readonly assetPreview: FieldBuilder<{
10901
- name: "assetPreview";
10902
- "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10903
- component: typeof AssetPreviewField;
10904
- cellComponent: ({
10905
- row
10906
- }: {
10907
- value: unknown;
10908
- row?: any;
10909
- }) => react_jsx_runtime11.JSX.Element;
10910
- createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10911
- }>;
10912
- readonly richText: FieldBuilder<{
10913
- name: "richText";
10914
- "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10915
- component: typeof RichTextField;
10916
- cellComponent: typeof RichTextCell;
10917
- createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10918
- }>;
10919
- readonly embedded: FieldBuilder<{
10920
- name: "embedded";
10921
- "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10922
- component: typeof EmbeddedCollectionField;
10923
- cellComponent: typeof JsonCell;
10924
- createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10925
- }>;
10926
- readonly blocks: FieldBuilder<{
10927
- name: "blocks";
10928
- "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10929
- component: typeof BlocksField;
10930
- cellComponent: typeof BlocksCell;
10931
- createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10932
- }>;
10933
- }>>, "listViews" | "editViews">, {
10934
- listViews: questpie163.TypeMerge<{}, FilterListViews<{
10935
- readonly table: ListViewBuilder<{
10936
- name: "table";
10937
- kind: "list";
10938
- "~config": TableViewConfig;
10939
- component: typeof TableView;
10802
+ defaultMode?: JsonFieldMode;
10803
+ allowModeSwitch?: boolean;
10804
+ minHeight?: number;
10805
+ maxHeight?: number;
10806
+ renderForm?: (props: {
10807
+ value: any;
10808
+ onChange: (value: any) => void;
10809
+ disabled?: boolean;
10810
+ readOnly?: boolean;
10811
+ }) => React.ReactNode;
10812
+ }, keyof BaseFieldProps$1> & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10940
10813
  }>;
10941
- readonly form: EditViewBuilder<{
10942
- name: "form";
10943
- kind: "edit";
10944
- "~config": FormViewConfig;
10945
- component: typeof FormView;
10814
+ upload: FieldBuilder<{
10815
+ name: "upload";
10816
+ "~options": UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10817
+ component: typeof UploadField;
10818
+ cellComponent: typeof UploadCell;
10819
+ createZod: CreateZodFn<UploadFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10820
+ }>;
10821
+ uploadMany: FieldBuilder<{
10822
+ name: "uploadMany";
10823
+ "~options": UploadFieldConfig & {
10824
+ maxItems?: number;
10825
+ orderable?: boolean;
10826
+ layout?: "grid" | "list";
10827
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10828
+ component: typeof UploadManyField;
10829
+ cellComponent: typeof UploadManyCell;
10830
+ createZod: CreateZodFn<UploadFieldConfig & {
10831
+ maxItems?: number;
10832
+ orderable?: boolean;
10833
+ layout?: "grid" | "list";
10834
+ } & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10946
10835
  }>;
10947
- }>>;
10948
- editViews: questpie163.TypeMerge<{}, FilterEditViews<{
10949
- readonly table: ListViewBuilder<{
10836
+ assetPreview: FieldBuilder<{
10837
+ name: "assetPreview";
10838
+ "~options": AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10839
+ component: typeof AssetPreviewField;
10840
+ cellComponent: ({
10841
+ row
10842
+ }: {
10843
+ value: unknown;
10844
+ row?: any;
10845
+ }) => react_jsx_runtime11.JSX.Element;
10846
+ createZod: CreateZodFn<AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10847
+ }>;
10848
+ richText: FieldBuilder<{
10849
+ name: "richText";
10850
+ "~options": RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10851
+ component: typeof RichTextField;
10852
+ cellComponent: typeof RichTextCell;
10853
+ createZod: CreateZodFn<RichTextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10854
+ }>;
10855
+ embedded: FieldBuilder<{
10856
+ name: "embedded";
10857
+ "~options": EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10858
+ component: typeof EmbeddedCollectionField;
10859
+ cellComponent: typeof JsonCell;
10860
+ createZod: CreateZodFn<EmbeddedFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10861
+ }>;
10862
+ blocks: FieldBuilder<{
10863
+ name: "blocks";
10864
+ "~options": BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions;
10865
+ component: typeof BlocksField;
10866
+ cellComponent: typeof BlocksCell;
10867
+ createZod: CreateZodFn<BlocksFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions> | undefined;
10868
+ }>;
10869
+ };
10870
+ blocks: {};
10871
+ "~app": any;
10872
+ listViews: {
10873
+ table: ListViewBuilder<{
10950
10874
  name: "table";
10951
10875
  kind: "list";
10952
10876
  "~config": TableViewConfig;
10953
10877
  component: typeof TableView;
10954
10878
  }>;
10955
- readonly form: EditViewBuilder<{
10879
+ };
10880
+ editViews: {
10881
+ form: EditViewBuilder<{
10956
10882
  name: "form";
10957
10883
  kind: "edit";
10958
10884
  "~config": FormViewConfig;
10959
10885
  component: typeof FormView;
10960
10886
  }>;
10961
- }>>;
10962
- }>, "pages", questpie163.TypeMerge<{}, {
10963
- readonly login: PageBuilder<questpie163.SetProperty<{
10887
+ };
10888
+ pages: {};
10889
+ widgets: {};
10890
+ collections: {};
10891
+ globals: {};
10892
+ dashboard: {
10893
+ layout: "grid";
10894
+ widgets: [];
10895
+ };
10896
+ sidebar: {
10897
+ sections: [];
10898
+ };
10899
+ branding: {};
10900
+ defaultViews: {};
10901
+ translations: {};
10902
+ }, "pages", {
10903
+ dashboard: PageBuilder<questpie134.SetProperty<{
10904
+ name: "dashboard";
10905
+ component: () => Promise<typeof dashboard_page_d_exports>;
10906
+ path: undefined;
10907
+ }, "path", string>>;
10908
+ login: PageBuilder<questpie134.SetProperty<{
10964
10909
  name: "login";
10965
10910
  component: () => Promise<typeof login_page_d_exports>;
10966
10911
  path: undefined;
10967
10912
  }, "path", string>>;
10968
- readonly forgotPassword: PageBuilder<questpie163.SetProperty<{
10913
+ setup: PageBuilder<questpie134.SetProperty<{
10914
+ name: "setup";
10915
+ component: () => Promise<typeof setup_page_d_exports>;
10916
+ path: undefined;
10917
+ }, "path", string>>;
10918
+ forgotPassword: PageBuilder<questpie134.SetProperty<{
10969
10919
  name: "forgot-password";
10970
10920
  component: () => Promise<typeof forgot_password_page_d_exports>;
10971
10921
  path: undefined;
10972
10922
  }, "path", string>>;
10973
- readonly resetPassword: PageBuilder<questpie163.SetProperty<{
10923
+ resetPassword: PageBuilder<questpie134.SetProperty<{
10974
10924
  name: "reset-password";
10975
10925
  component: () => Promise<typeof reset_password_page_d_exports>;
10976
10926
  path: undefined;
10977
10927
  }, "path", string>>;
10978
- readonly setup: PageBuilder<questpie163.SetProperty<{
10979
- name: "setup";
10980
- component: () => Promise<typeof setup_page_d_exports>;
10981
- path: undefined;
10982
- }, "path", string>>;
10983
- readonly dashboard: PageBuilder<questpie163.SetProperty<{
10984
- name: "dashboard";
10985
- component: () => Promise<typeof dashboard_page_d_exports>;
10986
- path: undefined;
10987
- }, "path", string>>;
10988
- }>>>;
10928
+ }>>;
10989
10929
  }, "fields", {
10990
10930
  preview: FieldDefinition<"assetPreview", AssetPreviewFieldProps & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions>;
10991
10931
  filename: FieldDefinition<"text", TextFieldConfig & Partial<Pick<BaseFieldConfigProps, "label" | "description" | "placeholder" | "required"> & Pick<BaseFieldProps$1, "localized">> & FieldStateOptions & FieldHookOptions>;
@@ -11005,7 +10945,7 @@ declare const adminModule: AdminBuilder<questpie163.SetProperty<questpie163.SetP
11005
10945
  "~config": FormViewConfig;
11006
10946
  component: typeof FormView;
11007
10947
  }>>>;
11008
- }>>, "sidebar", SidebarConfig<string>>>;
10948
+ }>, "sidebar", SidebarConfig<string>>>;
11009
10949
  /**
11010
10950
  * Type of admin module state
11011
10951
  */
@@ -12259,7 +12199,7 @@ declare function useGlobalUpdate<K$1 extends ResolvedGlobalNames>(globalName: K$
12259
12199
  * Note: This hook requires the adminModule to be used in your CMS setup.
12260
12200
  * If admin_saved_views collection is not available, returns empty array.
12261
12201
  */
12262
- declare function useSavedViews(collectionName: string): _tanstack_react_query3.UseQueryResult<{
12202
+ declare function useSavedViews(collectionName: string): _tanstack_react_query4.UseQueryResult<{
12263
12203
  docs: SavedView[];
12264
12204
  }, Error>;
12265
12205
  //#endregion
@@ -12295,7 +12235,7 @@ interface SetupStatus {
12295
12235
  * }
12296
12236
  * ```
12297
12237
  */
12298
- declare function useSetupStatus(): _tanstack_react_query3.UseQueryResult<SetupStatus, Error>;
12238
+ declare function useSetupStatus(): _tanstack_react_query4.UseQueryResult<SetupStatus, Error>;
12299
12239
  //#endregion
12300
12240
  //#region src/client/hooks/use-media-query.d.ts
12301
12241
  /**
@@ -13459,4 +13399,4 @@ type CollectionFieldKeys<TApp extends Questpie<any>, TCollectionName extends str
13459
13399
  } ? keyof TSelect : never : never : never;
13460
13400
  //#endregion
13461
13401
  export { BlockRenderer as $, LoginForm as $n, BlockDefinition as $r, SectionBuilderState as $t, BlockScopeContextValue as A, BaseFieldProps$1 as Ai, selectAuthClient as An, DashboardWidgetConfig as Ar, useShallow as At, StandalonePreviewField as B, AdminLayout as Bn, PageBuilder as Br, global$1 as Bt, PreviewReadyMessage as C, RelationFieldConfig$1 as Ci, AdminRouter as Cn, SidebarLinkItem as Cr, useCollectionItem as Ct, SelectBlockMessage as D, TabConfig as Di, AdminState as Dn, BaseWidgetConfig as Dr, useAuthClient as Dt, RefreshCompleteMessage as E, SelectOption$1 as Ei, AdminProviderProps as En, AnyWidgetConfig as Er, createAdminAuthClient as Et, PreviewBanner as F, selectNavigate as Fn, StatsWidgetConfig as Fr, CoreAdminModule as Ft, PreviewToggleButton as G, FormView as Gn, GlobalConfig as Gr, AdminTypeRegistry as Gt, PreviewPane as H, TableView as Hn, PageDefinition as Hr, Admin as Ht, PreviewBannerProps as I, selectNavigation as In, WidgetAction as Ir, coreAdminModule as It, BlockPrefetchError as J, SetupForm as Jn, CollectionConfig as Jr, RegisteredCMS as Jt, PreviewToggleButtonProps as K, FormViewProps as Kn, AutoSaveConfig as Kr, IsRegistered as Kt, PreviewField as L, selectSetContentLocale as Ln, WidgetComponentProps as Lr, qa as Lt, BlockScopeProviderProps as M, MaybeLazyComponent as Mi, selectBrandName as Mn, KnownWidgetType as Mr, adminMessagesEN as Mt, useBlockScope as N, I18nContext as Ni, selectClient as Nn, QuickActionsWidgetConfig as Nr, AdminModule as Nt, isAdminToPreviewMessage as O, TabsLayout as Oi, AdminStore as On, ChartWidgetConfig as Or, TypedHooks as Ot, useResolveFieldPath as P, I18nText as Pi, selectContentLocale as Pn, RecentItemsWidgetConfig as Pr, adminModule as Pt, prefetchBlockData as Q, ForgotPasswordForm as Qn, BlockBuilderState as Qr, SectionBuilder as Qt, PreviewFieldProps as R, useAdminStore as Rn, WidgetConfig as Rr, AdminHelpers as Rt, PreviewConfig as S, LayoutMode$1 as Si, DashboardPage as Sn, SidebarItem as Sr, useCollectionDelete as St, PreviewToAdminMessage as T, SectionLayout as Ti, AdminProvider as Tn, SidebarSection as Tr, useCollectionUpdate as Tt, PreviewPaneProps as U, TableViewConfig as Un, page as Ur, AppAdmin as Ut, usePreviewContext as V, AdminSidebar as Vn, PageBuilderState as Vr, collection$1 as Vt, PreviewPaneRef as W, TableViewProps as Wn, GlobalBuilderState as Wr, InferAdminCMS as Wt, BlockPrefetchResult as X, AcceptInviteForm as Xn, ColumnConfigObject as Xr, RegisteredGlobalNames as Xt, BlockPrefetchParams as Y, SetupFormValues as Yn, ColumnConfig as Yr, RegisteredCollectionNames as Yt, TypedBlockPrefetch as Z, ResetPasswordForm as Zn, ListViewConfig as Zr, AdminBuilder as Zt, useCollectionPreview as _, FieldComponentProps as _i, AcceptInvitePage as _n, LocaleConfig as _r, useSavedViews as _t, FocusContextValue as a, BlockRendererProps$1 as ai, TypedSidebarItem as an, widget as ar, AdminTopbar as at, FieldClickedMessage as b, FormSidebarConfig as bi, ForgotPasswordPage as bn, SidebarDividerItem as br, useCurrentUser as bt, FocusState as c, isBlockContent as ci, GlobalBuilder as cn, EditViewDefinition as cr, DashboardGrid as ct, useFocus as d, FieldDefinition as di, block as dn, ListViewDefinition as dr, TipTapDoc as dt, InferBlockValues as ei, SidebarBuilder as en, AuthLayout as er, BlockRendererProps as et, useFocusOptional as f, field$1 as fi, AuthLoading as fn, editView as fr, TipTapNode as ft, UseCollectionPreviewResult as g, EmbeddedFieldConfig$1 as gi, SetupPageProps as gn, DashboardConfig as gr, useSetupStatus as gt, UseCollectionPreviewOptions as h, EmbeddedCollectionProps as hi, SetupPage as hn, BrandingConfig as hr, useMediaQuery as ht, GlobalNames as i, BlockPrefetch as ii, TypedSidebarGlobalItem as in, WidgetDefinition as ir, getFlagUrl as it, BlockScopeProvider as j, IconComponent as ji, selectBasePath as jn, GenericWidgetConfig as jr, adminMessagesSK as jt, isPreviewToAdminMessage as k, WrapperMode as ki, selectAdmin as kn, CustomWidgetConfig as kr, createTypedHooks as kt, parsePreviewFieldPath as l, FieldBuilder as li, CollectionBuilder as ln, ListViewBuilder as lr, RichTextRenderer as lt, useIsFieldFocused as m, ComponentRegistry as mi, AdminLink as mn, DefaultViewsConfig as mr, useIsMobile as mt, CollectionItem as n, BlockContent as ni, SidebarItemForApp as nn, WidgetBuilder as nr, getCountryCode as nt, FocusProvider as o, EMPTY_BLOCK_CONTENT as oi, section as on, EditViewBuilder as or, GlobalForm as ot, useIsBlockFocused as p, ArrayFieldConfig$1 as pi, AuthGuard as pn, listView as pr, useIsDesktop as pt, BlockPrefetchContext as q, FormViewRegistryConfig as qn, CollectionBuilderState as qr, RegisteredAdmin as qt, CollectionNames as r, BlockNode as ri, TypedSidebarCollectionItem as rn, WidgetBuilderState as rr, getFlagConfig as rt, FocusProviderProps as s, createBlockNode as si, sidebar$1 as sn, EditViewBuilderState as sr, DashboardWidget as st, CollectionFieldKeys as t, BlockCategory as ti, SidebarBuilderState as tn, AdminBuilderState as tr, FlagConfig as tt, scrollFieldIntoView as u, FieldBuilderState as ui, BlockBuilder as un, ListViewBuilderState as ur, RichTextStyles as ut, AdminToPreviewMessage as v, FieldLayoutItem as vi, InvitePage as vn, SidebarCollectionItem as vr, useGlobal as vt, PreviewRefreshMessage as w, RichTextConfig as wi, AdminRouterProps as wn, SidebarPageItem as wr, useCollectionList as wt, FocusFieldMessage as x, FormViewConfig as xi, LoginPage as xn, SidebarGlobalItem as xr, useCollectionCreate as xt, BlockClickedMessage as y, FieldUIConfig as yi, ResetPasswordPage as yn, SidebarConfig as yr, useGlobalUpdate as yt, PreviewProvider as z, AdminLayoutProvider as zn, WidgetDataSource as zr, createAdminHelpers as zt };
13462
- //# sourceMappingURL=client-BCuGyTy0.d.mts.map
13402
+ //# sourceMappingURL=client-BcHj40mZ.d.mts.map