@@ -5,7 +5,12 @@ import {ReadAsMethod, SpecTypes} from '../constants';
55
66import { ArrayValue , ObjectValue } from './' ;
77
8- export interface ArraySpec < LinkType = any > {
8+ //TODO: Need to move on InputComponentProps extends Record<string, any> | undefined = undefined;
9+ export interface ArraySpec <
10+ LinkType = any ,
11+ InputComponentProps extends Record < string , any > = { } ,
12+ LayoutComponentProps extends Record < string , any > = { } ,
13+ > {
914 defaultValue ?: ArrayValue ;
1015 type : SpecTypes . Array ;
1116 required ?: boolean ;
@@ -36,10 +41,16 @@ export interface ArraySpec<LinkType = any> {
3641 filterPlaceholder ?: string ;
3742 meta ?: Record < string , string > ;
3843 } ;
44+ inputProps ?: InputComponentProps ;
45+ layoutProps ?: LayoutComponentProps ;
3946 } ;
4047}
4148
42- export interface BooleanSpec < LinkType = any > {
49+ export interface BooleanSpec <
50+ LinkType = any ,
51+ InputComponentProps extends Record < string , any > = { } ,
52+ LayoutComponentProps extends Record < string , any > = { } ,
53+ > {
4354 defaultValue ?: boolean ;
4455 type : SpecTypes . Boolean ;
4556 required ?: boolean ;
@@ -53,10 +64,16 @@ export interface BooleanSpec<LinkType = any> {
5364 layoutOpen ?: boolean ;
5465 link ?: LinkType ;
5566 hidden ?: boolean ;
67+ inputProps ?: InputComponentProps ;
68+ layoutProps ?: LayoutComponentProps ;
5669 } ;
5770}
5871
59- export interface NumberSpec < LinkType = any > {
72+ export interface NumberSpec <
73+ LinkType = any ,
74+ InputComponentProps extends Record < string , any > = { } ,
75+ LayoutComponentProps extends Record < string , any > = { } ,
76+ > {
6077 defaultValue ?: number ;
6178 type : SpecTypes . Number ;
6279 required ?: boolean ;
@@ -75,10 +92,16 @@ export interface NumberSpec<LinkType = any> {
7592 placeholder ?: string ;
7693 copy ?: boolean ;
7794 hidden ?: boolean ;
95+ inputProps ?: InputComponentProps ;
96+ layoutProps ?: LayoutComponentProps ;
7897 } ;
7998}
8099
81- export interface ObjectSpec < LinkType = any > {
100+ export interface ObjectSpec <
101+ LinkType = any ,
102+ InputComponentProps extends Record < string , any > = { } ,
103+ LayoutComponentProps extends Record < string , any > = { } ,
104+ > {
82105 defaultValue ?: ObjectValue ;
83106 type : SpecTypes . Object ;
84107 required ?: boolean ;
@@ -99,10 +122,16 @@ export interface ObjectSpec<LinkType = any> {
99122 } ;
100123 placeholder ?: string ;
101124 hidden ?: boolean ;
125+ inputProps ?: InputComponentProps ;
126+ layoutProps ?: LayoutComponentProps ;
102127 } ;
103128}
104129
105- export interface StringSpec < LinkType = any > {
130+ export interface StringSpec <
131+ LinkType = any ,
132+ InputComponentProps extends Record < string , any > = { } ,
133+ LayoutComponentProps extends Record < string , any > = { } ,
134+ > {
106135 defaultValue ?: string ;
107136 type : SpecTypes . String ;
108137 required ?: boolean ;
@@ -149,6 +178,8 @@ export interface StringSpec<LinkType = any> {
149178 filterPlaceholder ?: string ;
150179 meta ?: Record < string , string > ;
151180 } ;
181+ inputProps ?: InputComponentProps ;
182+ layoutProps ?: LayoutComponentProps ;
152183 generateRandomValueButton ?: boolean ;
153184 } ;
154185}
0 commit comments