@apexcura/core 0.0.17-Beta67 → 0.0.17-Beta69
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.
- package/dist/index.d.mts +165 -178
- package/dist/index.d.ts +165 -178
- package/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1,191 +1,178 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { UploadFile } from 'antd';
|
|
2
3
|
|
|
3
4
|
type styling = {
|
|
4
5
|
horizontalGutter?: number;
|
|
5
6
|
verticalGutter?: number;
|
|
6
7
|
};
|
|
8
|
+
type pagenationType = {
|
|
9
|
+
page?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
};
|
|
12
|
+
type SchemaField = {
|
|
13
|
+
name?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
source?: string;
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
element?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
action?: string;
|
|
20
|
+
order?: number;
|
|
21
|
+
colCount?: number;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
activeClassName?: string;
|
|
24
|
+
listClassName?: string;
|
|
25
|
+
listItemClassName?: string;
|
|
26
|
+
buttonClassName?: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
placement?: string;
|
|
29
|
+
firstPlaceholder?: string;
|
|
30
|
+
secondPlaceholder?: string;
|
|
31
|
+
enabled_dates?: string;
|
|
32
|
+
profileImageClassName?: string;
|
|
33
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | pagenationType;
|
|
34
|
+
message?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
notificationType?: 'error' | 'warning' | 'success' | 'info' | undefined;
|
|
37
|
+
showProgress?: boolean;
|
|
38
|
+
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
39
|
+
weekrange?: boolean;
|
|
40
|
+
img?: string;
|
|
41
|
+
primaryText?: string;
|
|
42
|
+
secondaryText?: string;
|
|
43
|
+
count?: number;
|
|
44
|
+
profileImage?: string;
|
|
45
|
+
profileSubClassName?: string;
|
|
46
|
+
containerClassName?: string;
|
|
47
|
+
subContainerClassName?: string;
|
|
48
|
+
secondTextClassName?: string;
|
|
49
|
+
iconsClassName?: string;
|
|
50
|
+
labelClassName?: string;
|
|
51
|
+
view?: boolean;
|
|
52
|
+
isSVGStylesOverride?: boolean;
|
|
53
|
+
rowSelection?: string;
|
|
54
|
+
length?: number;
|
|
55
|
+
loading?: boolean;
|
|
56
|
+
fillText1?: string;
|
|
57
|
+
fillText2?: string;
|
|
58
|
+
pagination?: boolean;
|
|
59
|
+
is_detail?: boolean;
|
|
60
|
+
dateTime?: string;
|
|
61
|
+
minRows?: number;
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
mode?: 'multiple' | 'tags' | undefined;
|
|
64
|
+
items?: {
|
|
65
|
+
icon?: React.JSX.Element | string;
|
|
66
|
+
label?: string;
|
|
67
|
+
active?: boolean;
|
|
68
|
+
text?: string;
|
|
69
|
+
time?: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
y?: number;
|
|
72
|
+
color?: string;
|
|
73
|
+
}[];
|
|
74
|
+
options?: {
|
|
75
|
+
key?: string;
|
|
76
|
+
label?: string;
|
|
77
|
+
value?: string;
|
|
78
|
+
}[];
|
|
79
|
+
firstOptions?: {
|
|
80
|
+
key?: string;
|
|
81
|
+
label?: string;
|
|
82
|
+
value?: string;
|
|
83
|
+
}[];
|
|
84
|
+
secondOptions?: {
|
|
85
|
+
key?: string;
|
|
86
|
+
label?: string;
|
|
87
|
+
value?: string | string[];
|
|
88
|
+
}[];
|
|
89
|
+
selectBefore?: {
|
|
90
|
+
label?: string;
|
|
91
|
+
value?: string;
|
|
92
|
+
}[];
|
|
93
|
+
selectAfter?: {
|
|
94
|
+
label?: string;
|
|
95
|
+
value?: string;
|
|
96
|
+
}[];
|
|
97
|
+
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
98
|
+
required?: boolean;
|
|
99
|
+
prefix?: React.ReactNode;
|
|
100
|
+
suffix?: React.ReactNode;
|
|
101
|
+
addonBefore?: React.ReactNode;
|
|
102
|
+
defaultValue?: string;
|
|
103
|
+
status?: 'error' | 'warning';
|
|
104
|
+
styles?: React.CSSProperties;
|
|
105
|
+
fieldClassName?: string;
|
|
106
|
+
elementClassName?: string;
|
|
107
|
+
variant?: 'outlined' | 'borderless' | 'filled' | undefined;
|
|
108
|
+
thead?: {
|
|
109
|
+
id?: number;
|
|
110
|
+
name?: string;
|
|
111
|
+
label?: string;
|
|
112
|
+
visible?: boolean;
|
|
113
|
+
required?: boolean;
|
|
114
|
+
key?: string;
|
|
115
|
+
render?: () => void;
|
|
116
|
+
ellipsis: boolean;
|
|
117
|
+
}[];
|
|
118
|
+
tbody?: {
|
|
119
|
+
id?: number;
|
|
120
|
+
name?: string;
|
|
121
|
+
label?: string;
|
|
122
|
+
element?: string;
|
|
123
|
+
type?: string;
|
|
124
|
+
variable_data?: {
|
|
125
|
+
id: {
|
|
126
|
+
id?: number;
|
|
127
|
+
};
|
|
128
|
+
Route?: {
|
|
129
|
+
label: string;
|
|
130
|
+
element: string;
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
Dose?: {
|
|
134
|
+
label: string;
|
|
135
|
+
element: string;
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
Frequency?: {
|
|
139
|
+
label: string;
|
|
140
|
+
element: string;
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
When?: {
|
|
144
|
+
label: string;
|
|
145
|
+
element: string;
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
Duration?: {
|
|
149
|
+
label: string;
|
|
150
|
+
element: string;
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
Instructions?: {
|
|
154
|
+
label: string;
|
|
155
|
+
element: string;
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
SubRows?: {
|
|
159
|
+
label: string;
|
|
160
|
+
};
|
|
161
|
+
}[];
|
|
162
|
+
}[];
|
|
163
|
+
payload_keys?: string[];
|
|
164
|
+
api_endpoint?: string;
|
|
165
|
+
next_id?: string;
|
|
166
|
+
fields?: SchemaField[];
|
|
167
|
+
};
|
|
168
|
+
type Schema = SchemaField[];
|
|
7
169
|
type FormExecutorProps = {
|
|
8
170
|
data: {
|
|
9
171
|
className: string;
|
|
10
|
-
schema
|
|
11
|
-
name?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
source?: string;
|
|
14
|
-
visible?: boolean;
|
|
15
|
-
element?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
action?: string;
|
|
18
|
-
order?: number;
|
|
19
|
-
size?: string;
|
|
20
|
-
colCount?: number;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
activeClassName?: string;
|
|
23
|
-
listClassName?: string;
|
|
24
|
-
listItemClassName?: string;
|
|
25
|
-
buttonClassName?: string;
|
|
26
|
-
icon?: string;
|
|
27
|
-
placement?: string;
|
|
28
|
-
firstValue?: string;
|
|
29
|
-
secondValue?: string;
|
|
30
|
-
firstPlaceholder?: string;
|
|
31
|
-
secondPlaceholder?: string;
|
|
32
|
-
enabled_dates?: string;
|
|
33
|
-
profileImageClassName?: string;
|
|
34
|
-
value?: string | number | boolean | any[] | null | object;
|
|
35
|
-
message?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
notificationType?: string;
|
|
38
|
-
showProgress?: boolean;
|
|
39
|
-
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
40
|
-
weekrange?: boolean;
|
|
41
|
-
img?: string;
|
|
42
|
-
primaryText?: string;
|
|
43
|
-
secondaryText?: string;
|
|
44
|
-
count?: number;
|
|
45
|
-
profileImage?: string;
|
|
46
|
-
profileSubClassName?: string;
|
|
47
|
-
containerClassName?: string;
|
|
48
|
-
subContainerClassName?: string;
|
|
49
|
-
secondTextClassName?: string;
|
|
50
|
-
iconsClassName?: string;
|
|
51
|
-
labelClassName?: string;
|
|
52
|
-
view?: boolean;
|
|
53
|
-
isSVGStylesOverride?: boolean;
|
|
54
|
-
rowSelection?: boolean;
|
|
55
|
-
length?: number;
|
|
56
|
-
loading?: boolean;
|
|
57
|
-
fillText1?: string;
|
|
58
|
-
fillText2?: string;
|
|
59
|
-
labels?: any[];
|
|
60
|
-
data?: any[];
|
|
61
|
-
pagination?: boolean;
|
|
62
|
-
is_detail?: boolean;
|
|
63
|
-
dateTime?: string;
|
|
64
|
-
minRows?: number;
|
|
65
|
-
maxRows?: number;
|
|
66
|
-
mode?: "multiple" | "tags" | undefined;
|
|
67
|
-
modalContent?: {
|
|
68
|
-
name?: string;
|
|
69
|
-
className?: string;
|
|
70
|
-
fields?: any[];
|
|
71
|
-
};
|
|
72
|
-
items?: {
|
|
73
|
-
icon?: React.JSX.Element | string;
|
|
74
|
-
label?: string;
|
|
75
|
-
active?: boolean;
|
|
76
|
-
text?: string;
|
|
77
|
-
time?: string;
|
|
78
|
-
name?: string;
|
|
79
|
-
y?: number;
|
|
80
|
-
color?: string;
|
|
81
|
-
}[];
|
|
82
|
-
fields?: {
|
|
83
|
-
name?: string;
|
|
84
|
-
label?: string;
|
|
85
|
-
placeholder?: string;
|
|
86
|
-
element?: string;
|
|
87
|
-
type?: string;
|
|
88
|
-
value?: string | number | boolean | any[] | null | object;
|
|
89
|
-
options?: {
|
|
90
|
-
key?: number;
|
|
91
|
-
label: string;
|
|
92
|
-
value: string;
|
|
93
|
-
}[];
|
|
94
|
-
firstOptions?: {
|
|
95
|
-
key?: number;
|
|
96
|
-
label: string;
|
|
97
|
-
value: string;
|
|
98
|
-
}[];
|
|
99
|
-
secondOptions?: {
|
|
100
|
-
key?: number;
|
|
101
|
-
label: string;
|
|
102
|
-
value: string;
|
|
103
|
-
}[];
|
|
104
|
-
selectBefore?: {
|
|
105
|
-
label: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}[];
|
|
108
|
-
selectAfter?: {
|
|
109
|
-
label: string;
|
|
110
|
-
value: string;
|
|
111
|
-
}[];
|
|
112
|
-
dropDownOptions?: any[];
|
|
113
|
-
visible?: boolean;
|
|
114
|
-
disabled?: boolean;
|
|
115
|
-
required?: boolean;
|
|
116
|
-
prefix?: React.ReactNode;
|
|
117
|
-
suffix?: React.ReactNode;
|
|
118
|
-
addonBefore?: React.ReactNode;
|
|
119
|
-
defaultValue?: string;
|
|
120
|
-
status?: "error" | "warning";
|
|
121
|
-
styles?: React.CSSProperties;
|
|
122
|
-
fieldClassName?: string;
|
|
123
|
-
elementClassName?: string;
|
|
124
|
-
variant?: string;
|
|
125
|
-
thead?: {
|
|
126
|
-
id: number;
|
|
127
|
-
name?: string;
|
|
128
|
-
label?: string;
|
|
129
|
-
visible?: boolean;
|
|
130
|
-
required?: boolean;
|
|
131
|
-
key?: string;
|
|
132
|
-
render?: () => void;
|
|
133
|
-
ellipsis: boolean;
|
|
134
|
-
}[];
|
|
135
|
-
tbody?: {
|
|
136
|
-
id?: number;
|
|
137
|
-
name?: string;
|
|
138
|
-
label?: string;
|
|
139
|
-
element?: string;
|
|
140
|
-
type?: string;
|
|
141
|
-
variable_data?: {
|
|
142
|
-
id: {
|
|
143
|
-
id?: number;
|
|
144
|
-
};
|
|
145
|
-
Route?: {
|
|
146
|
-
label: string;
|
|
147
|
-
element: string;
|
|
148
|
-
type: string;
|
|
149
|
-
};
|
|
150
|
-
Dose?: {
|
|
151
|
-
label: string;
|
|
152
|
-
element: string;
|
|
153
|
-
type: string;
|
|
154
|
-
};
|
|
155
|
-
Frequency?: {
|
|
156
|
-
label: string;
|
|
157
|
-
element: string;
|
|
158
|
-
type: string;
|
|
159
|
-
};
|
|
160
|
-
When?: {
|
|
161
|
-
label: string;
|
|
162
|
-
element: string;
|
|
163
|
-
type: string;
|
|
164
|
-
};
|
|
165
|
-
Duration?: {
|
|
166
|
-
label: string;
|
|
167
|
-
element: string;
|
|
168
|
-
type: string;
|
|
169
|
-
};
|
|
170
|
-
Instructions?: {
|
|
171
|
-
label: string;
|
|
172
|
-
element: string;
|
|
173
|
-
type: string;
|
|
174
|
-
};
|
|
175
|
-
SubRows?: {
|
|
176
|
-
label: string;
|
|
177
|
-
};
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
180
|
-
payload_keys?: string[];
|
|
181
|
-
api_endpoint?: string;
|
|
182
|
-
next_id?: string;
|
|
183
|
-
action?: string;
|
|
184
|
-
}[];
|
|
185
|
-
}[];
|
|
172
|
+
schema: Schema;
|
|
186
173
|
};
|
|
187
|
-
setData?:
|
|
188
|
-
selectedRecord?:
|
|
174
|
+
setData?: (schema: Schema) => void;
|
|
175
|
+
selectedRecord?: (field: Schema) => void;
|
|
189
176
|
};
|
|
190
177
|
type ElementExecutorProps = FormExecutorProps & styling;
|
|
191
178
|
declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,191 +1,178 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
+
import { UploadFile } from 'antd';
|
|
2
3
|
|
|
3
4
|
type styling = {
|
|
4
5
|
horizontalGutter?: number;
|
|
5
6
|
verticalGutter?: number;
|
|
6
7
|
};
|
|
8
|
+
type pagenationType = {
|
|
9
|
+
page?: number;
|
|
10
|
+
pageSize?: number;
|
|
11
|
+
};
|
|
12
|
+
type SchemaField = {
|
|
13
|
+
name?: string;
|
|
14
|
+
label?: string;
|
|
15
|
+
source?: string;
|
|
16
|
+
visible?: boolean;
|
|
17
|
+
element?: string;
|
|
18
|
+
className?: string;
|
|
19
|
+
action?: string;
|
|
20
|
+
order?: number;
|
|
21
|
+
colCount?: number;
|
|
22
|
+
disabled?: boolean;
|
|
23
|
+
activeClassName?: string;
|
|
24
|
+
listClassName?: string;
|
|
25
|
+
listItemClassName?: string;
|
|
26
|
+
buttonClassName?: string;
|
|
27
|
+
icon?: string;
|
|
28
|
+
placement?: string;
|
|
29
|
+
firstPlaceholder?: string;
|
|
30
|
+
secondPlaceholder?: string;
|
|
31
|
+
enabled_dates?: string;
|
|
32
|
+
profileImageClassName?: string;
|
|
33
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[] | pagenationType;
|
|
34
|
+
message?: string;
|
|
35
|
+
description?: string;
|
|
36
|
+
notificationType?: 'error' | 'warning' | 'success' | 'info' | undefined;
|
|
37
|
+
showProgress?: boolean;
|
|
38
|
+
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
39
|
+
weekrange?: boolean;
|
|
40
|
+
img?: string;
|
|
41
|
+
primaryText?: string;
|
|
42
|
+
secondaryText?: string;
|
|
43
|
+
count?: number;
|
|
44
|
+
profileImage?: string;
|
|
45
|
+
profileSubClassName?: string;
|
|
46
|
+
containerClassName?: string;
|
|
47
|
+
subContainerClassName?: string;
|
|
48
|
+
secondTextClassName?: string;
|
|
49
|
+
iconsClassName?: string;
|
|
50
|
+
labelClassName?: string;
|
|
51
|
+
view?: boolean;
|
|
52
|
+
isSVGStylesOverride?: boolean;
|
|
53
|
+
rowSelection?: string;
|
|
54
|
+
length?: number;
|
|
55
|
+
loading?: boolean;
|
|
56
|
+
fillText1?: string;
|
|
57
|
+
fillText2?: string;
|
|
58
|
+
pagination?: boolean;
|
|
59
|
+
is_detail?: boolean;
|
|
60
|
+
dateTime?: string;
|
|
61
|
+
minRows?: number;
|
|
62
|
+
maxRows?: number;
|
|
63
|
+
mode?: 'multiple' | 'tags' | undefined;
|
|
64
|
+
items?: {
|
|
65
|
+
icon?: React.JSX.Element | string;
|
|
66
|
+
label?: string;
|
|
67
|
+
active?: boolean;
|
|
68
|
+
text?: string;
|
|
69
|
+
time?: string;
|
|
70
|
+
name?: string;
|
|
71
|
+
y?: number;
|
|
72
|
+
color?: string;
|
|
73
|
+
}[];
|
|
74
|
+
options?: {
|
|
75
|
+
key?: string;
|
|
76
|
+
label?: string;
|
|
77
|
+
value?: string;
|
|
78
|
+
}[];
|
|
79
|
+
firstOptions?: {
|
|
80
|
+
key?: string;
|
|
81
|
+
label?: string;
|
|
82
|
+
value?: string;
|
|
83
|
+
}[];
|
|
84
|
+
secondOptions?: {
|
|
85
|
+
key?: string;
|
|
86
|
+
label?: string;
|
|
87
|
+
value?: string | string[];
|
|
88
|
+
}[];
|
|
89
|
+
selectBefore?: {
|
|
90
|
+
label?: string;
|
|
91
|
+
value?: string;
|
|
92
|
+
}[];
|
|
93
|
+
selectAfter?: {
|
|
94
|
+
label?: string;
|
|
95
|
+
value?: string;
|
|
96
|
+
}[];
|
|
97
|
+
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
98
|
+
required?: boolean;
|
|
99
|
+
prefix?: React.ReactNode;
|
|
100
|
+
suffix?: React.ReactNode;
|
|
101
|
+
addonBefore?: React.ReactNode;
|
|
102
|
+
defaultValue?: string;
|
|
103
|
+
status?: 'error' | 'warning';
|
|
104
|
+
styles?: React.CSSProperties;
|
|
105
|
+
fieldClassName?: string;
|
|
106
|
+
elementClassName?: string;
|
|
107
|
+
variant?: 'outlined' | 'borderless' | 'filled' | undefined;
|
|
108
|
+
thead?: {
|
|
109
|
+
id?: number;
|
|
110
|
+
name?: string;
|
|
111
|
+
label?: string;
|
|
112
|
+
visible?: boolean;
|
|
113
|
+
required?: boolean;
|
|
114
|
+
key?: string;
|
|
115
|
+
render?: () => void;
|
|
116
|
+
ellipsis: boolean;
|
|
117
|
+
}[];
|
|
118
|
+
tbody?: {
|
|
119
|
+
id?: number;
|
|
120
|
+
name?: string;
|
|
121
|
+
label?: string;
|
|
122
|
+
element?: string;
|
|
123
|
+
type?: string;
|
|
124
|
+
variable_data?: {
|
|
125
|
+
id: {
|
|
126
|
+
id?: number;
|
|
127
|
+
};
|
|
128
|
+
Route?: {
|
|
129
|
+
label: string;
|
|
130
|
+
element: string;
|
|
131
|
+
type: string;
|
|
132
|
+
};
|
|
133
|
+
Dose?: {
|
|
134
|
+
label: string;
|
|
135
|
+
element: string;
|
|
136
|
+
type: string;
|
|
137
|
+
};
|
|
138
|
+
Frequency?: {
|
|
139
|
+
label: string;
|
|
140
|
+
element: string;
|
|
141
|
+
type: string;
|
|
142
|
+
};
|
|
143
|
+
When?: {
|
|
144
|
+
label: string;
|
|
145
|
+
element: string;
|
|
146
|
+
type: string;
|
|
147
|
+
};
|
|
148
|
+
Duration?: {
|
|
149
|
+
label: string;
|
|
150
|
+
element: string;
|
|
151
|
+
type: string;
|
|
152
|
+
};
|
|
153
|
+
Instructions?: {
|
|
154
|
+
label: string;
|
|
155
|
+
element: string;
|
|
156
|
+
type: string;
|
|
157
|
+
};
|
|
158
|
+
SubRows?: {
|
|
159
|
+
label: string;
|
|
160
|
+
};
|
|
161
|
+
}[];
|
|
162
|
+
}[];
|
|
163
|
+
payload_keys?: string[];
|
|
164
|
+
api_endpoint?: string;
|
|
165
|
+
next_id?: string;
|
|
166
|
+
fields?: SchemaField[];
|
|
167
|
+
};
|
|
168
|
+
type Schema = SchemaField[];
|
|
7
169
|
type FormExecutorProps = {
|
|
8
170
|
data: {
|
|
9
171
|
className: string;
|
|
10
|
-
schema
|
|
11
|
-
name?: string;
|
|
12
|
-
label?: string;
|
|
13
|
-
source?: string;
|
|
14
|
-
visible?: boolean;
|
|
15
|
-
element?: string;
|
|
16
|
-
className?: string;
|
|
17
|
-
action?: string;
|
|
18
|
-
order?: number;
|
|
19
|
-
size?: string;
|
|
20
|
-
colCount?: number;
|
|
21
|
-
disabled?: boolean;
|
|
22
|
-
activeClassName?: string;
|
|
23
|
-
listClassName?: string;
|
|
24
|
-
listItemClassName?: string;
|
|
25
|
-
buttonClassName?: string;
|
|
26
|
-
icon?: string;
|
|
27
|
-
placement?: string;
|
|
28
|
-
firstValue?: string;
|
|
29
|
-
secondValue?: string;
|
|
30
|
-
firstPlaceholder?: string;
|
|
31
|
-
secondPlaceholder?: string;
|
|
32
|
-
enabled_dates?: string;
|
|
33
|
-
profileImageClassName?: string;
|
|
34
|
-
value?: string | number | boolean | any[] | null | object;
|
|
35
|
-
message?: string;
|
|
36
|
-
description?: string;
|
|
37
|
-
notificationType?: string;
|
|
38
|
-
showProgress?: boolean;
|
|
39
|
-
picker?: "date" | "week" | "month" | "quarter" | "year";
|
|
40
|
-
weekrange?: boolean;
|
|
41
|
-
img?: string;
|
|
42
|
-
primaryText?: string;
|
|
43
|
-
secondaryText?: string;
|
|
44
|
-
count?: number;
|
|
45
|
-
profileImage?: string;
|
|
46
|
-
profileSubClassName?: string;
|
|
47
|
-
containerClassName?: string;
|
|
48
|
-
subContainerClassName?: string;
|
|
49
|
-
secondTextClassName?: string;
|
|
50
|
-
iconsClassName?: string;
|
|
51
|
-
labelClassName?: string;
|
|
52
|
-
view?: boolean;
|
|
53
|
-
isSVGStylesOverride?: boolean;
|
|
54
|
-
rowSelection?: boolean;
|
|
55
|
-
length?: number;
|
|
56
|
-
loading?: boolean;
|
|
57
|
-
fillText1?: string;
|
|
58
|
-
fillText2?: string;
|
|
59
|
-
labels?: any[];
|
|
60
|
-
data?: any[];
|
|
61
|
-
pagination?: boolean;
|
|
62
|
-
is_detail?: boolean;
|
|
63
|
-
dateTime?: string;
|
|
64
|
-
minRows?: number;
|
|
65
|
-
maxRows?: number;
|
|
66
|
-
mode?: "multiple" | "tags" | undefined;
|
|
67
|
-
modalContent?: {
|
|
68
|
-
name?: string;
|
|
69
|
-
className?: string;
|
|
70
|
-
fields?: any[];
|
|
71
|
-
};
|
|
72
|
-
items?: {
|
|
73
|
-
icon?: React.JSX.Element | string;
|
|
74
|
-
label?: string;
|
|
75
|
-
active?: boolean;
|
|
76
|
-
text?: string;
|
|
77
|
-
time?: string;
|
|
78
|
-
name?: string;
|
|
79
|
-
y?: number;
|
|
80
|
-
color?: string;
|
|
81
|
-
}[];
|
|
82
|
-
fields?: {
|
|
83
|
-
name?: string;
|
|
84
|
-
label?: string;
|
|
85
|
-
placeholder?: string;
|
|
86
|
-
element?: string;
|
|
87
|
-
type?: string;
|
|
88
|
-
value?: string | number | boolean | any[] | null | object;
|
|
89
|
-
options?: {
|
|
90
|
-
key?: number;
|
|
91
|
-
label: string;
|
|
92
|
-
value: string;
|
|
93
|
-
}[];
|
|
94
|
-
firstOptions?: {
|
|
95
|
-
key?: number;
|
|
96
|
-
label: string;
|
|
97
|
-
value: string;
|
|
98
|
-
}[];
|
|
99
|
-
secondOptions?: {
|
|
100
|
-
key?: number;
|
|
101
|
-
label: string;
|
|
102
|
-
value: string;
|
|
103
|
-
}[];
|
|
104
|
-
selectBefore?: {
|
|
105
|
-
label: string;
|
|
106
|
-
value: string;
|
|
107
|
-
}[];
|
|
108
|
-
selectAfter?: {
|
|
109
|
-
label: string;
|
|
110
|
-
value: string;
|
|
111
|
-
}[];
|
|
112
|
-
dropDownOptions?: any[];
|
|
113
|
-
visible?: boolean;
|
|
114
|
-
disabled?: boolean;
|
|
115
|
-
required?: boolean;
|
|
116
|
-
prefix?: React.ReactNode;
|
|
117
|
-
suffix?: React.ReactNode;
|
|
118
|
-
addonBefore?: React.ReactNode;
|
|
119
|
-
defaultValue?: string;
|
|
120
|
-
status?: "error" | "warning";
|
|
121
|
-
styles?: React.CSSProperties;
|
|
122
|
-
fieldClassName?: string;
|
|
123
|
-
elementClassName?: string;
|
|
124
|
-
variant?: string;
|
|
125
|
-
thead?: {
|
|
126
|
-
id: number;
|
|
127
|
-
name?: string;
|
|
128
|
-
label?: string;
|
|
129
|
-
visible?: boolean;
|
|
130
|
-
required?: boolean;
|
|
131
|
-
key?: string;
|
|
132
|
-
render?: () => void;
|
|
133
|
-
ellipsis: boolean;
|
|
134
|
-
}[];
|
|
135
|
-
tbody?: {
|
|
136
|
-
id?: number;
|
|
137
|
-
name?: string;
|
|
138
|
-
label?: string;
|
|
139
|
-
element?: string;
|
|
140
|
-
type?: string;
|
|
141
|
-
variable_data?: {
|
|
142
|
-
id: {
|
|
143
|
-
id?: number;
|
|
144
|
-
};
|
|
145
|
-
Route?: {
|
|
146
|
-
label: string;
|
|
147
|
-
element: string;
|
|
148
|
-
type: string;
|
|
149
|
-
};
|
|
150
|
-
Dose?: {
|
|
151
|
-
label: string;
|
|
152
|
-
element: string;
|
|
153
|
-
type: string;
|
|
154
|
-
};
|
|
155
|
-
Frequency?: {
|
|
156
|
-
label: string;
|
|
157
|
-
element: string;
|
|
158
|
-
type: string;
|
|
159
|
-
};
|
|
160
|
-
When?: {
|
|
161
|
-
label: string;
|
|
162
|
-
element: string;
|
|
163
|
-
type: string;
|
|
164
|
-
};
|
|
165
|
-
Duration?: {
|
|
166
|
-
label: string;
|
|
167
|
-
element: string;
|
|
168
|
-
type: string;
|
|
169
|
-
};
|
|
170
|
-
Instructions?: {
|
|
171
|
-
label: string;
|
|
172
|
-
element: string;
|
|
173
|
-
type: string;
|
|
174
|
-
};
|
|
175
|
-
SubRows?: {
|
|
176
|
-
label: string;
|
|
177
|
-
};
|
|
178
|
-
}[];
|
|
179
|
-
}[];
|
|
180
|
-
payload_keys?: string[];
|
|
181
|
-
api_endpoint?: string;
|
|
182
|
-
next_id?: string;
|
|
183
|
-
action?: string;
|
|
184
|
-
}[];
|
|
185
|
-
}[];
|
|
172
|
+
schema: Schema;
|
|
186
173
|
};
|
|
187
|
-
setData?:
|
|
188
|
-
selectedRecord?:
|
|
174
|
+
setData?: (schema: Schema) => void;
|
|
175
|
+
selectedRecord?: (field: Schema) => void;
|
|
189
176
|
};
|
|
190
177
|
type ElementExecutorProps = FormExecutorProps & styling;
|
|
191
178
|
declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
|
package/dist/index.js
CHANGED
|
@@ -115,7 +115,7 @@ var ElementExecutor = (props) => {
|
|
|
115
115
|
};
|
|
116
116
|
const updatedSchema = updateSchema(schema);
|
|
117
117
|
setSchema(updatedSchema);
|
|
118
|
-
props.setData && props.setData(
|
|
118
|
+
props.setData && props.setData(updatedSchema);
|
|
119
119
|
};
|
|
120
120
|
(0, import_react.useEffect)(() => {
|
|
121
121
|
if (props?.data?.schema) {
|
package/dist/index.mjs
CHANGED
|
@@ -113,7 +113,7 @@ var ElementExecutor = (props) => {
|
|
|
113
113
|
};
|
|
114
114
|
const updatedSchema = updateSchema(schema);
|
|
115
115
|
setSchema(updatedSchema);
|
|
116
|
-
props.setData && props.setData(
|
|
116
|
+
props.setData && props.setData(updatedSchema);
|
|
117
117
|
};
|
|
118
118
|
useEffect(() => {
|
|
119
119
|
if (props?.data?.schema) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@apexcura/core",
|
|
3
|
-
"version": "0.0.17-
|
|
3
|
+
"version": "0.0.17-Beta69",
|
|
4
4
|
"description": "Apex cura React components library",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"apex cura",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"build": "tsup"
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@apexcura/ui-components": "^0.0.15-
|
|
31
|
+
"@apexcura/ui-components": "^0.0.15-Beta59",
|
|
32
32
|
"@testing-library/jest-dom": "^6.4.2",
|
|
33
33
|
"@testing-library/react": "^15.0.6",
|
|
34
34
|
"@types/react-global-configuration": "^1.3.3",
|