@chelone/vue 0.3.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (127) hide show
  1. package/dist/choices/use-choices.d.ts +11 -10
  2. package/dist/choices/use-choices.js +5 -4
  3. package/dist/components/admin/auth/auth-error.vue.d.ts +1 -1
  4. package/dist/components/admin/buttons/save-button.vue.d.ts +1 -1
  5. package/dist/components/admin/buttons/update-button.vue.d.ts +3 -3
  6. package/dist/components/admin/feedback/linear-progress.vue.d.ts +1 -1
  7. package/dist/components/admin/fields/api-key-field.vue.d.ts +27 -9
  8. package/dist/components/admin/fields/api-key-field.vue.js +3 -1
  9. package/dist/components/admin/fields/array-field.vue.d.ts +2 -2
  10. package/dist/components/admin/fields/badge-field.vue.d.ts +2 -2
  11. package/dist/components/admin/fields/boolean-field.vue.d.ts +2 -2
  12. package/dist/components/admin/fields/chip-field.vue.d.ts +2 -2
  13. package/dist/components/admin/fields/color-field.vue.d.ts +2 -2
  14. package/dist/components/admin/fields/cron-field.vue.d.ts +2 -2
  15. package/dist/components/admin/fields/currency-field.vue.d.ts +2 -2
  16. package/dist/components/admin/fields/date-field.vue.d.ts +2 -2
  17. package/dist/components/admin/fields/duration-field.vue.d.ts +2 -2
  18. package/dist/components/admin/fields/email-field.vue.d.ts +2 -2
  19. package/dist/components/admin/fields/file-field.vue.d.ts +2 -2
  20. package/dist/components/admin/fields/function-field.vue.d.ts +3 -3
  21. package/dist/components/admin/fields/image-field.vue.d.ts +2 -2
  22. package/dist/components/admin/fields/json-field.vue.d.ts +2 -2
  23. package/dist/components/admin/fields/number-field.vue.d.ts +2 -2
  24. package/dist/components/admin/fields/phone-field.vue.d.ts +2 -2
  25. package/dist/components/admin/fields/rating-field.vue.d.ts +22 -7
  26. package/dist/components/admin/fields/rating-field.vue.js +3 -1
  27. package/dist/components/admin/fields/record-field.vue.d.ts +3 -3
  28. package/dist/components/admin/fields/reference-array-field.vue.d.ts +2 -2
  29. package/dist/components/admin/fields/reference-field.vue.d.ts +2 -1
  30. package/dist/components/admin/fields/reference-many-count.vue.d.ts +2 -2
  31. package/dist/components/admin/fields/reference-many-field.vue.d.ts +2 -2
  32. package/dist/components/admin/fields/reference-one-field.vue.d.ts +2 -2
  33. package/dist/components/admin/fields/select-field.vue.d.ts +18 -7
  34. package/dist/components/admin/fields/select-field.vue.js +1 -1
  35. package/dist/components/admin/fields/subscription-plan-field.vue.d.ts +2 -2
  36. package/dist/components/admin/fields/text-array-field.vue.d.ts +2 -2
  37. package/dist/components/admin/fields/text-field.vue.d.ts +2 -8
  38. package/dist/components/admin/fields/url-field.vue.d.ts +2 -2
  39. package/dist/components/admin/fields/usage-meter-field.vue.d.ts +22 -7
  40. package/dist/components/admin/fields/usage-meter-field.vue.js +3 -1
  41. package/dist/components/admin/fields/webhook-endpoint-field.vue.d.ts +2 -2
  42. package/dist/components/admin/fields/wrapper-field.vue.d.ts +3 -3
  43. package/dist/components/admin/fields/wrapper-field.vue.js +6 -0
  44. package/dist/components/admin/inputs/api-key-input.vue.d.ts +2 -2
  45. package/dist/components/admin/inputs/array-input.vue.d.ts +2 -2
  46. package/dist/components/admin/inputs/autocomplete-array-input.vue.d.ts +14 -6
  47. package/dist/components/admin/inputs/autocomplete-array-input.vue.js +2 -3
  48. package/dist/components/admin/inputs/autocomplete-input.vue.d.ts +14 -6
  49. package/dist/components/admin/inputs/autocomplete-input.vue.js +2 -3
  50. package/dist/components/admin/inputs/boolean-input.vue.d.ts +2 -2
  51. package/dist/components/admin/inputs/checkbox-group-input.vue.d.ts +14 -7
  52. package/dist/components/admin/inputs/checkbox-group-input.vue.js +2 -2
  53. package/dist/components/admin/inputs/choice-input-props.d.ts +6 -6
  54. package/dist/components/admin/inputs/color-input.vue.d.ts +2 -2
  55. package/dist/components/admin/inputs/cron-input.vue.d.ts +2 -2
  56. package/dist/components/admin/inputs/currency-input.vue.d.ts +2 -2
  57. package/dist/components/admin/inputs/datagrid-input.vue.d.ts +20 -5
  58. package/dist/components/admin/inputs/datagrid-input.vue.js +7 -3
  59. package/dist/components/admin/inputs/date-input.vue.d.ts +2 -2
  60. package/dist/components/admin/inputs/date-time-input.vue.d.ts +2 -2
  61. package/dist/components/admin/inputs/duration-input.vue.d.ts +2 -2
  62. package/dist/components/admin/inputs/file-input.vue.d.ts +2 -2
  63. package/dist/components/admin/inputs/nullable-boolean-input.vue.d.ts +2 -2
  64. package/dist/components/admin/inputs/number-input.vue.d.ts +2 -2
  65. package/dist/components/admin/inputs/password-input.vue.d.ts +2 -2
  66. package/dist/components/admin/inputs/phone-input.vue.d.ts +2 -2
  67. package/dist/components/admin/inputs/radio-button-group-input.vue.d.ts +14 -7
  68. package/dist/components/admin/inputs/radio-button-group-input.vue.js +2 -2
  69. package/dist/components/admin/inputs/rating-input.vue.d.ts +2 -2
  70. package/dist/components/admin/inputs/reference-array-input.vue.d.ts +2 -2
  71. package/dist/components/admin/inputs/reference-input.vue.d.ts +2 -2
  72. package/dist/components/admin/inputs/resettable-text-input.vue.d.ts +2 -1
  73. package/dist/components/admin/inputs/search-input.vue.d.ts +3 -3
  74. package/dist/components/admin/inputs/select-array-input.vue.d.ts +14 -5
  75. package/dist/components/admin/inputs/select-array-input.vue.js +1 -1
  76. package/dist/components/admin/inputs/select-input.vue.d.ts +14 -7
  77. package/dist/components/admin/inputs/select-input.vue.js +1 -1
  78. package/dist/components/admin/inputs/subscription-plan-picker.vue.d.ts +2 -2
  79. package/dist/components/admin/inputs/text-array-input.vue.d.ts +2 -2
  80. package/dist/components/admin/inputs/text-input.vue.d.ts +2 -1
  81. package/dist/components/admin/inputs/time-input.vue.d.ts +2 -1
  82. package/dist/components/admin/inputs/use-choice-input.d.ts +12 -19
  83. package/dist/components/admin/inputs/use-choice-input.js +4 -1
  84. package/dist/components/admin/inputs/webhook-endpoint-input.vue.d.ts +2 -2
  85. package/dist/components/admin/list/calendar-list.vue.d.ts +8 -8
  86. package/dist/components/admin/list/filter-live-search.vue.d.ts +1 -1
  87. package/dist/components/admin/list/kanban-board.vue.d.ts +41 -0
  88. package/dist/components/admin/list/kanban-board.vue.js +275 -0
  89. package/dist/components/admin/list/kanban-board2.vue.js +4 -0
  90. package/dist/components/admin/list/list-icons.d.ts +2 -0
  91. package/dist/components/admin/list/list-icons.js +7 -0
  92. package/dist/components/admin/list/tree-list.vue.d.ts +6 -5
  93. package/dist/components/admin/view/labeled.vue.d.ts +6 -5
  94. package/dist/components/admin/view/labeled.vue.js +4 -1
  95. package/dist/components/admin/view/tabbed-show-layout-tab.vue.d.ts +2 -2
  96. package/dist/components/index.d.ts +2 -0
  97. package/dist/components/maps/geo-json-field.vue.d.ts +2 -1
  98. package/dist/components/maps/lat-lng-field.vue.d.ts +3 -3
  99. package/dist/components/maps/lat-lng-input.vue.d.ts +4 -4
  100. package/dist/components/maps-draw/shape-input.vue.d.ts +4 -4
  101. package/dist/components/maps-draw/simplify-input.vue.d.ts +2 -2
  102. package/dist/components/maps-osm/geocoding-input.vue.d.ts +6 -6
  103. package/dist/components/maps-osm/map-with-search.vue.d.ts +4 -4
  104. package/dist/components/maps-osm/osm-feature-operator.vue.d.ts +3 -3
  105. package/dist/components/maps-osm/reverse-geocode-field.vue.d.ts +3 -3
  106. package/dist/components/mdx-editor/mdx-field.vue.d.ts +2 -2
  107. package/dist/components/mdx-editor/mdx-input.vue.d.ts +2 -2
  108. package/dist/components/monaco/monaco-json-field.vue.d.ts +2 -2
  109. package/dist/components/monaco/monaco-json-input.vue.d.ts +2 -2
  110. package/dist/components/ui/alert.d.ts +1 -1
  111. package/dist/components/ui/badge.d.ts +1 -1
  112. package/dist/components/ui/button.vue.d.ts +1 -1
  113. package/dist/components/ui/command/command-dialog.vue.d.ts +1 -1
  114. package/dist/components/ui/dropdown-menu/dropdown-menu-item.vue.js +9 -3
  115. package/dist/components/ui/input.vue.d.ts +2 -2
  116. package/dist/components/ui/sidebar/sidebar-menu-button.vue.d.ts +1 -1
  117. package/dist/components/ui/textarea.vue.d.ts +2 -2
  118. package/dist/create-resource-components.d.ts +867 -0
  119. package/dist/create-resource-components.js +171 -0
  120. package/dist/data/create-chelone-hooks.d.ts +8 -8
  121. package/dist/data/mutations.d.ts +8 -8
  122. package/dist/form/use-input.d.ts +9 -7
  123. package/dist/form/use-input.js +2 -1
  124. package/dist/index.d.ts +2 -0
  125. package/dist/index.js +248 -243
  126. package/dist/record/use-field-value.d.ts +16 -6
  127. package/package.json +4 -4
@@ -0,0 +1,867 @@
1
+ /**
2
+ * `createResourceComponents("posts")` — the views, fields and inputs of one
3
+ * resource, with every `source` prop typed by that resource's record alone.
4
+ * The Vue twin of `@chelone/react`'s `createResourceComponents`.
5
+ *
6
+ * ```vue
7
+ * <script setup lang="ts">
8
+ * const posts = createResourceComponents("posts");
9
+ * </script>
10
+ * <template>
11
+ * <posts.Edit :id="1"><posts.TextInput source="title" /></posts.Edit>
12
+ * </template>
13
+ * ```
14
+ *
15
+ * Fields and inputs are the package's own SFCs, retyped by a cast (so
16
+ * `posts.TextInput === TextInput`). The four views are wrapped so they bind
17
+ * the resource and take no `resource` prop. The add-ons (maps, monaco, mdx,
18
+ * supabase, csv-import) are not members: the import fence keeps them out of
19
+ * this entry, and they take the registered union.
20
+ *
21
+ * Generic fields and inputs (`generic=` SFCs: `RecordField`, `SelectInput`,
22
+ * `ApiKeyField`, ...) are not members of the type. Their type is a function
23
+ * with no constructor signature, so `Retyped` cannot replace their `source`
24
+ * without erasing the generic. The test is the type itself, so an SFC that
25
+ * becomes generic later drops out of `ResourceComponents` on its own, and a
26
+ * template that uses it fails `vue-tsc` instead of the build. Import them
27
+ * directly; their `source` keeps the registered union, or a plain string when
28
+ * nothing is registered.
29
+ */
30
+ import type { RecordOf, RegisteredResourceName, RegisteredResources, ResourceMap, SourceProp, SourceValue } from "@chelone/core";
31
+ import { type VNode } from "vue";
32
+ import Create from "./components/admin/view/create.vue.js";
33
+ import Edit from "./components/admin/view/edit.vue.js";
34
+ import List from "./components/admin/view/list.vue.js";
35
+ import Show from "./components/admin/view/show.vue.js";
36
+ /** The package's own fields and inputs, by export name. */
37
+ declare const sourceMembers: {
38
+ ApiKeyField: <RecordType extends import("@chelone/core").LooseRecord = import("@chelone/core").LooseRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
39
+ attrs: any;
40
+ emit: {};
41
+ slots: {};
42
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
43
+ props: {
44
+ source: SourceProp;
45
+ record?: RecordType | undefined;
46
+ defaultValue?: unknown;
47
+ scopesSource?: import("@chelone/core").SourceKey<RecordType> | undefined;
48
+ lastUsedSource?: import("@chelone/core").SourceKey<RecordType> | undefined;
49
+ maskedFormat?: "last4" | "full" | undefined;
50
+ class?: string | undefined;
51
+ } & import("vue").PublicProps;
52
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
53
+ attrs: any;
54
+ slots: {};
55
+ emit: {};
56
+ }>) => import("vue").VNode & {
57
+ __ctx?: Awaited<typeof __VLS_setup>;
58
+ };
59
+ ArrayField: {
60
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
61
+ P: {};
62
+ B: {};
63
+ D: {};
64
+ C: {};
65
+ M: {};
66
+ Defaults: {};
67
+ }, Readonly<import("./index.js").ArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
68
+ __isFragment?: never;
69
+ __isTeleport?: never;
70
+ __isSuspense?: never;
71
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
72
+ $slots: {
73
+ default?: (props: {}) => any;
74
+ };
75
+ });
76
+ BadgeField: import("vue").DefineComponent<import("./index.js").BadgeFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").BadgeFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
77
+ BooleanField: import("vue").DefineComponent<import("./index.js").BooleanFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").BooleanFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
78
+ ChipField: import("vue").DefineComponent<import("./index.js").ChipFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ChipFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
79
+ ColorField: import("vue").DefineComponent<import("./index.js").ColorFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ColorFieldProps> & Readonly<{}>, {
80
+ showLabel: boolean;
81
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
82
+ CronField: import("vue").DefineComponent<import("./index.js").CronFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").CronFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
83
+ CurrencyField: import("vue").DefineComponent<import("./index.js").CurrencyFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").CurrencyFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
84
+ DateField: import("vue").DefineComponent<import("./index.js").DateFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DateFieldProps> & Readonly<{}>, {
85
+ showTime: boolean;
86
+ showDate: boolean;
87
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
88
+ DurationField: import("vue").DefineComponent<import("./index.js").DurationFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DurationFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
89
+ EmailField: import("vue").DefineComponent<import("./index.js").EmailFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").EmailFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
90
+ FileField: import("vue").DefineComponent<import("./index.js").FileFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").FileFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
91
+ FunctionField: <RecordType extends import("@chelone/core").LooseRecord = import("@chelone/core").LooseRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
92
+ attrs: any;
93
+ emit: {};
94
+ slots: {
95
+ default(props: {
96
+ record: RecordType;
97
+ source?: string;
98
+ }): unknown;
99
+ };
100
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
101
+ props: {
102
+ record?: RecordType | undefined;
103
+ source?: SourceProp<RecordType> | undefined;
104
+ class?: string | undefined;
105
+ } & import("vue").PublicProps;
106
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
107
+ attrs: any;
108
+ slots: {
109
+ default(props: {
110
+ record: RecordType;
111
+ source?: string;
112
+ }): unknown;
113
+ };
114
+ emit: {};
115
+ }>) => import("vue").VNode & {
116
+ __ctx?: Awaited<typeof __VLS_setup>;
117
+ };
118
+ ImageField: import("vue").DefineComponent<import("./index.js").ImageFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ImageFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
119
+ JsonField: import("vue").DefineComponent<import("./index.js").JsonFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").JsonFieldProps> & Readonly<{}>, {
120
+ indent: number;
121
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
122
+ NumberField: import("vue").DefineComponent<import("./index.js").NumberFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").NumberFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
123
+ PhoneField: import("vue").DefineComponent<import("./index.js").PhoneFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").PhoneFieldProps> & Readonly<{}>, {
124
+ link: boolean;
125
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
126
+ RatingField: <RecordType extends import("@chelone/core").LooseRecord = import("@chelone/core").LooseRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
127
+ attrs: any;
128
+ emit: {};
129
+ slots: {};
130
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
131
+ props: {
132
+ source: SourceProp;
133
+ record?: RecordType | undefined;
134
+ defaultValue?: unknown;
135
+ empty?: string | undefined;
136
+ max?: number | undefined;
137
+ allowHalf?: boolean | undefined;
138
+ countSource?: import("@chelone/core").SourceKey<RecordType> | undefined;
139
+ class?: string | undefined;
140
+ } & import("vue").PublicProps;
141
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
142
+ attrs: any;
143
+ slots: {};
144
+ emit: {};
145
+ }>) => import("vue").VNode & {
146
+ __ctx?: Awaited<typeof __VLS_setup>;
147
+ };
148
+ RecordField: <RecordType extends import("@chelone/core").LooseRecord = import("@chelone/core").LooseRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
149
+ attrs: any;
150
+ emit: {};
151
+ slots: {
152
+ default?(props: {
153
+ record: RecordType;
154
+ }): unknown;
155
+ };
156
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
157
+ props: {
158
+ source?: SourceProp<RecordType> | undefined;
159
+ label?: string | false | undefined;
160
+ resource?: string | undefined;
161
+ record?: RecordType | undefined;
162
+ empty?: string | undefined;
163
+ field?: import("vue").Component | undefined;
164
+ variant?: "default" | "inline" | undefined;
165
+ class?: string | undefined;
166
+ } & import("vue").PublicProps;
167
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
168
+ attrs: any;
169
+ slots: {
170
+ default?(props: {
171
+ record: RecordType;
172
+ }): unknown;
173
+ };
174
+ emit: {};
175
+ }>) => import("vue").VNode & {
176
+ __ctx?: Awaited<typeof __VLS_setup>;
177
+ };
178
+ ReferenceArrayField: {
179
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ReferenceArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
180
+ P: {};
181
+ B: {};
182
+ D: {};
183
+ C: {};
184
+ M: {};
185
+ Defaults: {};
186
+ }, Readonly<import("./index.js").ReferenceArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
187
+ __isFragment?: never;
188
+ __isTeleport?: never;
189
+ __isSuspense?: never;
190
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ReferenceArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
191
+ $slots: {
192
+ default?: (props: {}) => any;
193
+ };
194
+ });
195
+ ReferenceField: {
196
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ReferenceFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
197
+ link: import("./index.js").LinkToType;
198
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
199
+ P: {};
200
+ B: {};
201
+ D: {};
202
+ C: {};
203
+ M: {};
204
+ Defaults: {};
205
+ }, Readonly<import("./index.js").ReferenceFieldProps> & Readonly<{}>, {}, {}, {}, {}, {
206
+ link: import("./index.js").LinkToType;
207
+ }>;
208
+ __isFragment?: never;
209
+ __isTeleport?: never;
210
+ __isSuspense?: never;
211
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ReferenceFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
212
+ link: import("./index.js").LinkToType;
213
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
214
+ $slots: {
215
+ default?: (props: {}) => any;
216
+ } & {
217
+ default?: (props: {}) => any;
218
+ };
219
+ });
220
+ ReferenceManyCount: import("vue").DefineComponent<import("./index.js").ReferenceManyCountProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ReferenceManyCountProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
221
+ ReferenceManyField: {
222
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ReferenceManyFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
223
+ storeKey: string | false;
224
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
225
+ P: {};
226
+ B: {};
227
+ D: {};
228
+ C: {};
229
+ M: {};
230
+ Defaults: {};
231
+ }, Readonly<import("./index.js").ReferenceManyFieldProps> & Readonly<{}>, {}, {}, {}, {}, {
232
+ storeKey: string | false;
233
+ }>;
234
+ __isFragment?: never;
235
+ __isTeleport?: never;
236
+ __isSuspense?: never;
237
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ReferenceManyFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
238
+ storeKey: string | false;
239
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
240
+ $slots: {
241
+ default?: (props: {}) => any;
242
+ };
243
+ });
244
+ ReferenceOneField: {
245
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ReferenceOneFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
246
+ P: {};
247
+ B: {};
248
+ D: {};
249
+ C: {};
250
+ M: {};
251
+ Defaults: {};
252
+ }, Readonly<import("./index.js").ReferenceOneFieldProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
253
+ __isFragment?: never;
254
+ __isTeleport?: never;
255
+ __isSuspense?: never;
256
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ReferenceOneFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
257
+ $slots: {
258
+ default?: (props: {
259
+ record: import("@chelone/core").LooseRecord;
260
+ }) => any;
261
+ };
262
+ });
263
+ SelectField: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
264
+ attrs: any;
265
+ emit: {};
266
+ slots: {};
267
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
268
+ props: {
269
+ source: SourceProp;
270
+ record?: import("@chelone/core").LooseRecord | undefined;
271
+ defaultValue?: unknown;
272
+ empty?: string | undefined;
273
+ choices?: readonly TChoice[] | undefined;
274
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
275
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
276
+ translateChoice?: boolean | undefined;
277
+ class?: string | undefined;
278
+ } & import("vue").PublicProps;
279
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
280
+ attrs: any;
281
+ slots: {};
282
+ emit: {};
283
+ }>) => import("vue").VNode & {
284
+ __ctx?: Awaited<typeof __VLS_setup>;
285
+ };
286
+ SubscriptionPlanField: import("vue").DefineComponent<import("./index.js").SubscriptionPlanFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").SubscriptionPlanFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
287
+ TextArrayField: import("vue").DefineComponent<import("./index.js").TextArrayFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextArrayFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
288
+ TextField: import("vue").DefineComponent<import("./index.js").TextFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
289
+ UrlField: import("vue").DefineComponent<import("./index.js").UrlFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").UrlFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
290
+ UsageMeterField: <RecordType extends import("@chelone/core").LooseRecord = import("@chelone/core").LooseRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
291
+ attrs: any;
292
+ emit: {};
293
+ slots: {};
294
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
295
+ props: {
296
+ source: SourceProp;
297
+ record?: RecordType | undefined;
298
+ defaultValue?: unknown;
299
+ limitSource?: import("@chelone/core").SourceKey<RecordType> | undefined;
300
+ unit?: string | undefined;
301
+ thresholds?: import("./index.js").UsageMeterThresholds | undefined;
302
+ class?: string | undefined;
303
+ } & import("vue").PublicProps;
304
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
305
+ attrs: any;
306
+ slots: {};
307
+ emit: {};
308
+ }>) => import("vue").VNode & {
309
+ __ctx?: Awaited<typeof __VLS_setup>;
310
+ };
311
+ WebhookEndpointField: import("vue").DefineComponent<import("./index.js").WebhookEndpointFieldProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").WebhookEndpointFieldProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
312
+ WrapperField: {
313
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").WrapperFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
314
+ P: {};
315
+ B: {};
316
+ D: {};
317
+ C: {};
318
+ M: {};
319
+ Defaults: {};
320
+ }, Readonly<import("./index.js").WrapperFieldProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
321
+ __isFragment?: never;
322
+ __isTeleport?: never;
323
+ __isSuspense?: never;
324
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").WrapperFieldProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
325
+ $slots: {
326
+ default(): unknown;
327
+ };
328
+ });
329
+ ApiKeyInput: import("vue").DefineComponent<import("./index.js").ApiKeyInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ApiKeyInputProps> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
330
+ ArrayInput: {
331
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
332
+ label: string | false;
333
+ defaultValue: readonly unknown[];
334
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
335
+ P: {};
336
+ B: {};
337
+ D: {};
338
+ C: {};
339
+ M: {};
340
+ Defaults: {};
341
+ }, Readonly<import("./index.js").ArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, {
342
+ label: string | false;
343
+ defaultValue: readonly unknown[];
344
+ }>;
345
+ __isFragment?: never;
346
+ __isTeleport?: never;
347
+ __isSuspense?: never;
348
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
349
+ label: string | false;
350
+ defaultValue: readonly unknown[];
351
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
352
+ $slots: {
353
+ default?: (props: {}) => any;
354
+ } & {
355
+ 'remove-button'?: (props: {
356
+ index: number;
357
+ remove: () => void;
358
+ reOrder: (to: number) => void;
359
+ }) => any;
360
+ } & {
361
+ 'reorder-buttons'?: (props: {
362
+ index: number;
363
+ remove: () => void;
364
+ reOrder: (to: number) => void;
365
+ }) => any;
366
+ } & {
367
+ 'add-button'?: (props: {
368
+ add: () => void;
369
+ }) => any;
370
+ };
371
+ });
372
+ ArrayInputRow: {
373
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ArrayInputRowProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
374
+ P: {};
375
+ B: {};
376
+ D: {};
377
+ C: {};
378
+ M: {};
379
+ Defaults: {};
380
+ }, Readonly<import("./index.js").ArrayInputRowProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
381
+ __isFragment?: never;
382
+ __isTeleport?: never;
383
+ __isSuspense?: never;
384
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ArrayInputRowProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
385
+ $slots: {
386
+ default?: (props: {}) => any;
387
+ } & {
388
+ 'reorder-buttons'?: (props: {
389
+ index: number;
390
+ remove: () => void;
391
+ reOrder: (to: number) => void;
392
+ }) => any;
393
+ } & {
394
+ 'remove-button'?: (props: {
395
+ index: number;
396
+ remove: () => void;
397
+ reOrder: (to: number) => void;
398
+ }) => any;
399
+ };
400
+ });
401
+ AutocompleteArrayInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
402
+ attrs: any;
403
+ emit: {};
404
+ slots: {};
405
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
406
+ props: {
407
+ placeholder?: string | undefined;
408
+ filterToQuery?: ((searchText: string) => import("@chelone/core").FilterPayload) | undefined;
409
+ noOptionsText?: string | undefined;
410
+ source?: string | undefined;
411
+ choices?: readonly (string | TChoice)[] | undefined;
412
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
413
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
414
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
415
+ translateChoice?: boolean | undefined;
416
+ label?: string | false | undefined;
417
+ helperText?: string | undefined;
418
+ defaultValue?: unknown;
419
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
420
+ disabled?: boolean | undefined;
421
+ readonly?: boolean | undefined;
422
+ class?: string | undefined;
423
+ } & import("vue").PublicProps;
424
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
425
+ attrs: any;
426
+ slots: {};
427
+ emit: {};
428
+ }>) => import("vue").VNode & {
429
+ __ctx?: Awaited<typeof __VLS_setup>;
430
+ };
431
+ AutocompleteInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
432
+ attrs: any;
433
+ emit: {};
434
+ slots: {};
435
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
436
+ props: {
437
+ placeholder?: string | undefined;
438
+ filterToQuery?: ((searchText: string) => import("@chelone/core").FilterPayload) | undefined;
439
+ noOptionsText?: string | undefined;
440
+ source?: string | undefined;
441
+ choices?: readonly (string | TChoice)[] | undefined;
442
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
443
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
444
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
445
+ translateChoice?: boolean | undefined;
446
+ label?: string | false | undefined;
447
+ helperText?: string | undefined;
448
+ defaultValue?: unknown;
449
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
450
+ disabled?: boolean | undefined;
451
+ readonly?: boolean | undefined;
452
+ class?: string | undefined;
453
+ } & import("vue").PublicProps;
454
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
455
+ attrs: any;
456
+ slots: {};
457
+ emit: {};
458
+ }>) => import("vue").VNode & {
459
+ __ctx?: Awaited<typeof __VLS_setup>;
460
+ };
461
+ BooleanInput: import("vue").DefineComponent<import("./index.js").BooleanInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").BooleanInputProps> & Readonly<{}>, {
462
+ label: string | false;
463
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
464
+ CheckboxGroupInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
465
+ attrs: any;
466
+ emit: {};
467
+ slots: {};
468
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
469
+ props: {
470
+ row?: boolean | undefined;
471
+ source?: string | undefined;
472
+ choices?: readonly (string | TChoice)[] | undefined;
473
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
474
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
475
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
476
+ translateChoice?: boolean | undefined;
477
+ label?: string | false | undefined;
478
+ helperText?: string | undefined;
479
+ defaultValue?: unknown;
480
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
481
+ disabled?: boolean | undefined;
482
+ readonly?: boolean | undefined;
483
+ class?: string | undefined;
484
+ } & import("vue").PublicProps;
485
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
486
+ attrs: any;
487
+ slots: {};
488
+ emit: {};
489
+ }>) => import("vue").VNode & {
490
+ __ctx?: Awaited<typeof __VLS_setup>;
491
+ };
492
+ ColorInput: import("vue").DefineComponent<import("./index.js").ColorInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ColorInputProps> & Readonly<{}>, {
493
+ label: string | false;
494
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
495
+ CronInput: import("vue").DefineComponent<import("./index.js").CronInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").CronInputProps> & Readonly<{}>, {
496
+ label: string | false;
497
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
498
+ CurrencyInput: import("vue").DefineComponent<import("./index.js").CurrencyInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").CurrencyInputProps> & Readonly<{}>, {
499
+ label: string | false;
500
+ storeAsMinorUnits: boolean;
501
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
502
+ DatagridInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
503
+ attrs: any;
504
+ emit: {};
505
+ slots: {};
506
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
507
+ props: {
508
+ optionLabel?: string | undefined;
509
+ source?: string | undefined;
510
+ choices?: readonly (string | TChoice)[] | undefined;
511
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
512
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
513
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
514
+ translateChoice?: boolean | undefined;
515
+ label?: string | false | undefined;
516
+ helperText?: string | undefined;
517
+ defaultValue?: unknown;
518
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
519
+ disabled?: boolean | undefined;
520
+ readonly?: boolean | undefined;
521
+ class?: string | undefined;
522
+ } & import("vue").PublicProps;
523
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
524
+ attrs: any;
525
+ slots: {};
526
+ emit: {};
527
+ }>) => import("vue").VNode & {
528
+ __ctx?: Awaited<typeof __VLS_setup>;
529
+ };
530
+ DateInput: import("vue").DefineComponent<import("./index.js").DateInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DateInputProps> & Readonly<{}>, {
531
+ label: string | false;
532
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
533
+ DateTimeInput: import("vue").DefineComponent<import("./index.js").DateTimeInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DateTimeInputProps> & Readonly<{}>, {
534
+ label: string | false;
535
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
536
+ DurationInput: import("vue").DefineComponent<import("./index.js").DurationInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").DurationInputProps> & Readonly<{}>, {
537
+ label: string | false;
538
+ units: readonly ("s" | "d" | "h" | "m")[];
539
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
540
+ FileInput: {
541
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
542
+ label: string | false;
543
+ multiple: boolean;
544
+ labelMultiple: string;
545
+ labelSingle: string;
546
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
547
+ P: {};
548
+ B: {};
549
+ D: {};
550
+ C: {};
551
+ M: {};
552
+ Defaults: {};
553
+ }, Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, {
554
+ label: string | false;
555
+ multiple: boolean;
556
+ labelMultiple: string;
557
+ labelSingle: string;
558
+ }>;
559
+ __isFragment?: never;
560
+ __isTeleport?: never;
561
+ __isSuspense?: never;
562
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
563
+ label: string | false;
564
+ multiple: boolean;
565
+ labelMultiple: string;
566
+ labelSingle: string;
567
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
568
+ $slots: {
569
+ default?: (props: {
570
+ record: import("@chelone/core").LooseRecord;
571
+ }) => any;
572
+ };
573
+ });
574
+ FileInputPreview: {
575
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").FileInputPreviewProps> & Readonly<{
576
+ onRemove?: (() => any) | undefined;
577
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
578
+ remove: () => any;
579
+ }, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
580
+ P: {};
581
+ B: {};
582
+ D: {};
583
+ C: {};
584
+ M: {};
585
+ Defaults: {};
586
+ }, Readonly<import("./index.js").FileInputPreviewProps> & Readonly<{
587
+ onRemove?: (() => any) | undefined;
588
+ }>, {}, {}, {}, {}, {}>;
589
+ __isFragment?: never;
590
+ __isTeleport?: never;
591
+ __isSuspense?: never;
592
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").FileInputPreviewProps> & Readonly<{
593
+ onRemove?: (() => any) | undefined;
594
+ }>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
595
+ remove: () => any;
596
+ }, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
597
+ $slots: {
598
+ default?: (props: {}) => any;
599
+ };
600
+ });
601
+ ImageInput: {
602
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {
603
+ accept: string;
604
+ labelMultiple: string;
605
+ labelSingle: string;
606
+ }, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
607
+ P: {};
608
+ B: {};
609
+ D: {};
610
+ C: {};
611
+ M: {};
612
+ Defaults: {};
613
+ }, Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, {
614
+ accept: string;
615
+ labelMultiple: string;
616
+ labelSingle: string;
617
+ }>;
618
+ __isFragment?: never;
619
+ __isTeleport?: never;
620
+ __isSuspense?: never;
621
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").FileInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {
622
+ accept: string;
623
+ labelMultiple: string;
624
+ labelSingle: string;
625
+ }, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
626
+ $slots: {
627
+ default?: (props: {
628
+ record: import("@chelone/core").LooseRecord;
629
+ }) => any;
630
+ };
631
+ });
632
+ ImageInputThumbnail: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import("vue").ComponentProvideOptions, true, {}, any>;
633
+ LoadingInput: import("vue").DefineComponent<import("./index.js").LoadingInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").LoadingInputProps> & Readonly<{}>, {
634
+ size: "default" | "sm";
635
+ timeout: number;
636
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
637
+ NullableBooleanInput: import("vue").DefineComponent<import("./index.js").NullableBooleanInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").NullableBooleanInputProps> & Readonly<{}>, {
638
+ label: string | false;
639
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
640
+ NumberInput: import("vue").DefineComponent<import("./index.js").NumberInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").NumberInputProps> & Readonly<{}>, {
641
+ label: string | false;
642
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
643
+ PasswordInput: import("vue").DefineComponent<import("./index.js").PasswordInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").PasswordInputProps> & Readonly<{}>, {
644
+ label: string | false;
645
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
646
+ PhoneInput: import("vue").DefineComponent<import("./index.js").PhoneInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").PhoneInputProps> & Readonly<{}>, {
647
+ label: string | false;
648
+ defaultCountry: import("libphonenumber-js").CountryCode;
649
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
650
+ RadioButtonGroupInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
651
+ attrs: any;
652
+ emit: {};
653
+ slots: {};
654
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
655
+ props: {
656
+ row?: boolean | undefined;
657
+ source?: string | undefined;
658
+ choices?: readonly (string | TChoice)[] | undefined;
659
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
660
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
661
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
662
+ translateChoice?: boolean | undefined;
663
+ label?: string | false | undefined;
664
+ helperText?: string | undefined;
665
+ defaultValue?: unknown;
666
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
667
+ disabled?: boolean | undefined;
668
+ readonly?: boolean | undefined;
669
+ class?: string | undefined;
670
+ } & import("vue").PublicProps;
671
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
672
+ attrs: any;
673
+ slots: {};
674
+ emit: {};
675
+ }>) => import("vue").VNode & {
676
+ __ctx?: Awaited<typeof __VLS_setup>;
677
+ };
678
+ RatingInput: import("vue").DefineComponent<import("./index.js").RatingInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").RatingInputProps> & Readonly<{}>, {
679
+ label: string | false;
680
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
681
+ ReferenceArrayInput: {
682
+ new (...args: any[]): import("vue").CreateComponentPublicInstanceWithMixins<Readonly<import("./index.js").ReferenceArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, import("vue").PublicProps, {}, false, {}, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, {}, any, import("vue").ComponentProvideOptions, {
683
+ P: {};
684
+ B: {};
685
+ D: {};
686
+ C: {};
687
+ M: {};
688
+ Defaults: {};
689
+ }, Readonly<import("./index.js").ReferenceArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, {}>;
690
+ __isFragment?: never;
691
+ __isTeleport?: never;
692
+ __isSuspense?: never;
693
+ } & import("vue").ComponentOptionsBase<Readonly<import("./index.js").ReferenceArrayInputProps> & Readonly<{}>, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}, import("vue").GlobalComponents, import("vue").GlobalDirectives, string, import("vue").ComponentProvideOptions> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
694
+ $slots: {
695
+ default?: (props: {}) => any;
696
+ };
697
+ });
698
+ ReferenceInput: import("vue").DefineComponent<import("./index.js").ReferenceInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ReferenceInputProps> & Readonly<{}>, {
699
+ label: string | false;
700
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
701
+ ResettableTextInput: import("vue").DefineComponent<import("./index.js").ResettableTextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").ResettableTextInputProps> & Readonly<{}>, {
702
+ label: string | false;
703
+ resettable: boolean;
704
+ clearAlwaysVisible: boolean;
705
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
706
+ SearchInput: import("vue").DefineComponent<import("./index.js").SearchInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").SearchInputProps> & Readonly<{}>, {
707
+ source: SourceProp;
708
+ disableClearable: boolean;
709
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
710
+ SelectArrayInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
711
+ attrs: any;
712
+ emit: {};
713
+ slots: {};
714
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
715
+ props: {
716
+ placeholder?: string | undefined;
717
+ source?: string | undefined;
718
+ choices?: readonly (string | TChoice)[] | undefined;
719
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
720
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
721
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
722
+ translateChoice?: boolean | undefined;
723
+ label?: string | false | undefined;
724
+ helperText?: string | undefined;
725
+ defaultValue?: unknown;
726
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
727
+ disabled?: boolean | undefined;
728
+ readonly?: boolean | undefined;
729
+ class?: string | undefined;
730
+ } & import("vue").PublicProps;
731
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
732
+ attrs: any;
733
+ slots: {};
734
+ emit: {};
735
+ }>) => import("vue").VNode & {
736
+ __ctx?: Awaited<typeof __VLS_setup>;
737
+ };
738
+ SelectInput: <TChoice extends import("./index.js").ChoiceRecord = import("./index.js").ChoiceRecord>(__VLS_props: NonNullable<Awaited<typeof __VLS_setup>>["props"], __VLS_ctx?: {
739
+ attrs: any;
740
+ emit: {};
741
+ slots: {};
742
+ }, __VLS_expose?: NonNullable<Awaited<typeof __VLS_setup>>["expose"], __VLS_setup?: Promise<{
743
+ props: {
744
+ emptyText?: string | undefined;
745
+ emptyValue?: string | number | boolean | null | undefined;
746
+ source?: string | undefined;
747
+ choices?: readonly (string | TChoice)[] | undefined;
748
+ optionText?: import("./index.js").OptionText<TChoice> | undefined;
749
+ optionValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
750
+ disableValue?: import("@chelone/core").SourcePath<TChoice> | undefined;
751
+ translateChoice?: boolean | undefined;
752
+ label?: string | false | undefined;
753
+ helperText?: string | undefined;
754
+ defaultValue?: unknown;
755
+ validate?: (import("@chelone/core").Validator | readonly import("@chelone/core").Validator[]) | undefined;
756
+ disabled?: boolean | undefined;
757
+ readonly?: boolean | undefined;
758
+ class?: string | undefined;
759
+ } & import("vue").PublicProps;
760
+ expose(exposed: import("vue").ShallowUnwrapRef<{}>): void;
761
+ attrs: any;
762
+ slots: {};
763
+ emit: {};
764
+ }>) => import("vue").VNode & {
765
+ __ctx?: Awaited<typeof __VLS_setup>;
766
+ };
767
+ SubscriptionPlanPicker: import("vue").DefineComponent<import("./index.js").SubscriptionPlanPickerProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").SubscriptionPlanPickerProps> & Readonly<{}>, {
768
+ label: string | false;
769
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
770
+ TextArrayInput: import("vue").DefineComponent<import("./index.js").TextArrayInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextArrayInputProps> & Readonly<{}>, {
771
+ label: string | false;
772
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
773
+ TextInput: import("vue").DefineComponent<import("./index.js").TextInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TextInputProps> & Readonly<{}>, {
774
+ label: string | false;
775
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
776
+ TimeInput: import("vue").DefineComponent<import("./index.js").TimeInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").TimeInputProps> & Readonly<{}>, {
777
+ label: string | false;
778
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
779
+ WebhookEndpointInput: import("vue").DefineComponent<import("./index.js").WebhookEndpointInputProps, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("./index.js").WebhookEndpointInputProps> & Readonly<{}>, {
780
+ label: string | false;
781
+ }, {}, {}, {}, string, import("vue").ComponentProvideOptions, false, {}, any>;
782
+ };
783
+ type SourceMembers = typeof sourceMembers;
784
+ type Ctor = abstract new (...args: never[]) => {
785
+ $props: object;
786
+ };
787
+ /** `P` with `source` swapped for `TSource`, optional where `P`'s was. */
788
+ type WithSource<P, TSource> = "source" extends keyof P ? Omit<P, "source"> & (Partial<Pick<P, "source">> extends Pick<P, "source"> ? {
789
+ source?: TSource;
790
+ } : {
791
+ source: TSource;
792
+ }) : P;
793
+ /**
794
+ * An SFC's constructor type with `$props["source"]` replaced. Volar reads a
795
+ * template tag's props off the constructor's instance `$props`, so that is the
796
+ * one place the replacement has to land. The static members are kept, the
797
+ * original signatures are not.
798
+ */
799
+ type Retyped<TComponent extends Ctor, TSource> = Pick<TComponent, keyof TComponent> & (new (...args: ConstructorParameters<TComponent>) => Omit<InstanceType<TComponent>, "$props"> & {
800
+ $props: WithSource<InstanceType<TComponent>["$props"], TSource>;
801
+ });
802
+ /** The return type of an optional callback prop. */
803
+ type CallbackResult<TCallback> = NonNullable<TCallback> extends (...args: never[]) => infer TResult ? TResult : never;
804
+ /** The first parameter of an optional callback prop. */
805
+ type CallbackParam<TCallback> = NonNullable<TCallback> extends (value: infer TValue, ...args: never[]) => unknown ? TValue : never;
806
+ /**
807
+ * The `format`, `parse` and `transform` entries of `P` with `TValue` in place
808
+ * of the value they took or returned. Each stays optional and keeps the rest
809
+ * of its signature, and one `P` lacks is not added.
810
+ */
811
+ type ValueEntries<P, TValue> = {
812
+ [K in Extract<keyof P, "format" | "transform">]?: (value: TValue) => CallbackResult<P[K]>;
813
+ } & {
814
+ [K in Extract<keyof P, "parse">]?: (value: CallbackParam<P[K]>) => TValue;
815
+ };
816
+ /**
817
+ * A member whose props have a `format`, `parse` or `transform`: a generic
818
+ * function component over the literal `source`, so those callbacks take the
819
+ * value at it. Volar reads a function component's props off its first
820
+ * parameter and its slots off the second. `NoInfer` keeps `TPath` from being inferred back through
821
+ * `SourceValue` out of a callback's parameter, which overflows the type depth.
822
+ */
823
+ type ValueMember<TComponent extends Ctor, TRecord> = <TPath extends SourceProp<TRecord>>(props: Omit<InstanceType<TComponent>["$props"], "source" | "format" | "parse" | "transform"> & (Partial<Pick<InstanceType<TComponent>["$props"], "source">> extends Pick<InstanceType<TComponent>["$props"], "source"> ? {
824
+ source?: TPath;
825
+ } : {
826
+ source: TPath;
827
+ }) & ValueEntries<InstanceType<TComponent>["$props"], NoInfer<SourceValue<TRecord, TPath>>>, ctx?: {
828
+ slots?: InstanceType<TComponent>["$slots"];
829
+ }) => VNode;
830
+ /** The member type: {@link ValueMember} when the props have a value callback, else {@link Retyped}. */
831
+ type ResourceMember<TComponent extends Ctor, TRecord> = [
832
+ keyof InstanceType<TComponent>["$props"] & ("format" | "parse" | "transform")
833
+ ] extends [never] ? Retyped<TComponent, SourceProp<TRecord>> : ValueMember<TComponent, TRecord>;
834
+ /**
835
+ * A view with its `resource` prop removed. Templates are not strict about
836
+ * undeclared attributes, so the prop stays as `never` to make
837
+ * `<posts.Edit resource="users">` an error.
838
+ */
839
+ type BoundView<TComponent extends Ctor> = Pick<TComponent, keyof TComponent> & (new (...args: ConstructorParameters<TComponent>) => Omit<InstanceType<TComponent>, "$props"> & {
840
+ $props: Omit<InstanceType<TComponent>["$props"], "resource"> & {
841
+ resource?: never;
842
+ };
843
+ });
844
+ /**
845
+ * What `createResourceComponents(name)` returns: the four views bound to
846
+ * `TName`, and every field and input with `source` typed by `TName`'s record.
847
+ */
848
+ export type ResourceComponents<TResources extends ResourceMap, TName extends keyof TResources & string> = {
849
+ [K in keyof SourceMembers as SourceMembers[K] extends Ctor ? K : never]: ResourceMember<Extract<SourceMembers[K], Ctor>, RecordOf<TResources, TName>>;
850
+ } & {
851
+ Edit: BoundView<typeof Edit>;
852
+ Create: BoundView<typeof Create>;
853
+ Show: BoundView<typeof Show>;
854
+ List: BoundView<typeof List>;
855
+ };
856
+ /**
857
+ * The explicit-map form: `TResources` names the resources, so a type test can
858
+ * pass `typeof resources` without augmenting `Register`, which is global to a
859
+ * TypeScript program.
860
+ */
861
+ export declare function createResourceComponentsOf<TResources extends ResourceMap, TName extends keyof TResources & string>(name: TName): ResourceComponents<TResources, TName>;
862
+ /**
863
+ * The components of the registered resource `name`. Any name compiles until
864
+ * `Register` is augmented; then an unknown name does not.
865
+ */
866
+ export declare function createResourceComponents<TName extends RegisteredResourceName>(name: TName): ResourceComponents<RegisteredResources, TName>;
867
+ export {};