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