-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
76 lines (65 loc) · 2.1 KB
/
index.ts
File metadata and controls
76 lines (65 loc) · 2.1 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
export { configure, SchemaDefinition } from './schema'
export type { SchemaOptions, SchemaFactory, BaseSchemaConfig, EventContext } from './schema'
export { createMockContext, createMockDriver } from './mock'
export {
FieldDefinition,
TextFieldDefinition, Text, text, textarea,
NumberFieldDefinition, number,
DateFieldDefinition, DatetimeFieldDefinition, date, datetime,
TimeFieldDefinition, time,
ToggleFieldDefinition, CheckboxFieldDefinition, toggle, checkbox,
SelectFieldDefinition, select,
MultiSelectFieldDefinition, multiselect,
CurrencyFieldDefinition, currency,
FileFieldDefinition, file, image,
ListFieldDefinition, list,
TreeFieldDefinition, tree,
SlotFieldDefinition, slot,
} from './fields'
export type { TextKind } from './fields'
export { GroupDefinition, group } from './group'
export { ActionDefinition, action } from './action'
export { createFiller, fill, defaultFillers } from './filler'
export type { FillerFn, FillerRegistry } from './filler'
export { createService, extractPersistenceMeta } from './persistence'
export type { PersistenceContract, PersistenceMeta } from './persistence'
export { isScopePermitted, isActionPermitted } from './permission'
export { buildInitialState, isInScope } from './scope'
export { Position, Scope, FetchType } from './types'
export { ptBR } from './locales/pt-BR'
export type {
PositionValue,
ScopeValue,
FieldConfig,
FormConfig,
TableConfig,
ValidationRule,
GroupConfig,
ActionConfig,
FieldProxy,
SchemaProvide,
ServiceContract,
PaginateParams,
PaginatedResult,
ScopeRoute,
NavigatorContract,
DialogContract,
ToastContract,
LoadingContract,
ComponentContract,
FormContract,
TableContract,
TranslateContract,
HandlerContext,
BootstrapHookContext,
BootstrapHookFn,
FetchTypeValue,
FetchHookContext,
FetchHookFn,
SchemaHooks,
} from './types'
import type { SchemaDefinition } from './schema'
import type { FieldDefinition } from './fields/base'
export type InferRecord<S> = S extends SchemaDefinition<infer F>
? { [K in keyof F]: F[K] extends FieldDefinition<infer T> ? T : unknown }
: never