@apexcura/core 0.0.17-Beta52 → 0.0.17-Beta521

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.
File without changes
@@ -0,0 +1,221 @@
1
+ import React, { ReactNode } from 'react';
2
+ import { UploadFile } from 'antd';
3
+ import { TooltipPlacement } from 'antd/es/tooltip';
4
+ type SchemaField = {
5
+ name?: string;
6
+ label?: string;
7
+ source?: string;
8
+ visible?: boolean;
9
+ element?: string;
10
+ className?: string;
11
+ action?: string;
12
+ order?: number;
13
+ isNewMenuItem?: boolean;
14
+ colCount?: number;
15
+ disabled?: boolean;
16
+ activeClassName?: string;
17
+ listClassName?: string;
18
+ listItemClassName?: string;
19
+ buttonClassName?: string;
20
+ icon?: string;
21
+ placement?: TooltipPlacement;
22
+ firstPlaceholder?: string;
23
+ secondPlaceholder?: string;
24
+ enabled_dates?: string;
25
+ profileImageClassName?: string;
26
+ tooltip_title?: string;
27
+ child_element?: string;
28
+ isLoading?: boolean;
29
+ value?: string | number | boolean | null | object | undefined | string[] | UploadFile[];
30
+ message?: string;
31
+ description?: string;
32
+ notificationType?: 'error' | 'warning' | 'success' | 'info' | undefined;
33
+ showProgress?: boolean;
34
+ picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
35
+ weekrange?: boolean;
36
+ img?: string;
37
+ imgClassName: string;
38
+ primaryText?: string;
39
+ secondaryText?: string;
40
+ count?: number;
41
+ profileImage?: string;
42
+ profileSubClassName?: string;
43
+ containerClassName?: string;
44
+ subContainerClassName?: string;
45
+ secondTextClassName?: string;
46
+ iconsClassName?: string;
47
+ labelClassName?: string;
48
+ view?: boolean;
49
+ isSearch?: boolean;
50
+ isStatus?: boolean;
51
+ isSVGStylesOverride?: boolean;
52
+ isDelete?: boolean;
53
+ errorText?: string;
54
+ errorClassName?: string;
55
+ cardClassname?: string;
56
+ rowSelection?: string;
57
+ length?: number;
58
+ loading?: boolean;
59
+ fillText1?: string;
60
+ fillText2?: string;
61
+ pagination?: boolean;
62
+ is_detail?: boolean;
63
+ dateTime?: string;
64
+ isDateTime?: boolean;
65
+ minRows?: number;
66
+ maxRows?: number;
67
+ isNotChatbot?: boolean;
68
+ mode?: 'multiple' | 'tags' | undefined;
69
+ items?: {
70
+ id?: number;
71
+ key?: number | string;
72
+ element?: string;
73
+ icon?: string;
74
+ label?: string;
75
+ active?: number;
76
+ text?: string;
77
+ time?: string;
78
+ name?: string;
79
+ y?: number;
80
+ color?: string;
81
+ isCount?: boolean;
82
+ count?: number;
83
+ }[];
84
+ options?: {
85
+ key?: string;
86
+ label: string;
87
+ value?: string;
88
+ icon?: string;
89
+ }[];
90
+ firstOptions?: {
91
+ key?: string;
92
+ label: string;
93
+ value: string;
94
+ }[];
95
+ secondOptions?: {
96
+ key?: string;
97
+ label?: string;
98
+ value?: string;
99
+ }[];
100
+ selectBefore?: {
101
+ label?: string;
102
+ value?: string;
103
+ }[];
104
+ selectAfter?: {
105
+ label?: string;
106
+ value?: string;
107
+ }[];
108
+ dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
109
+ required?: boolean;
110
+ prefix?: React.ReactNode;
111
+ suffix?: React.ReactNode;
112
+ addonBefore?: React.ReactNode;
113
+ defaultValue?: string;
114
+ status?: 'error' | 'warning';
115
+ styles?: React.CSSProperties;
116
+ fieldClassName?: string;
117
+ elementClassName?: string;
118
+ variant?: 'outlined' | 'borderless' | 'filled' | undefined;
119
+ thead?: {
120
+ _id: string;
121
+ name?: string;
122
+ label?: string;
123
+ visible?: boolean;
124
+ required?: boolean;
125
+ key?: string;
126
+ render?: (text: string) => React.JSX.Element;
127
+ ellipsis: boolean;
128
+ }[];
129
+ tbody?: {
130
+ _id?: string;
131
+ name?: string;
132
+ label?: string;
133
+ element?: string;
134
+ type?: string;
135
+ variable_data?: {
136
+ id: {
137
+ id?: number;
138
+ };
139
+ Route?: {
140
+ label: string;
141
+ element: string;
142
+ type: string;
143
+ };
144
+ Dose?: {
145
+ label: string;
146
+ element: string;
147
+ type: string;
148
+ };
149
+ Frequency?: {
150
+ label: string;
151
+ element: string;
152
+ type: string;
153
+ };
154
+ When?: {
155
+ label: string;
156
+ element: string;
157
+ type: string;
158
+ };
159
+ Duration?: {
160
+ label: string;
161
+ element: string;
162
+ type: string;
163
+ };
164
+ Instructions?: {
165
+ label: string;
166
+ element: string;
167
+ type: string;
168
+ };
169
+ SubRows?: {
170
+ label: string;
171
+ };
172
+ }[];
173
+ }[];
174
+ legendTitleClassName?: string;
175
+ centerLabel1?: string;
176
+ centerLabel2?: string;
177
+ legendTitle?: string;
178
+ legendAlign?: 'left' | 'center' | 'right';
179
+ legendVerticalAlign?: 'top' | 'middle' | 'bottom';
180
+ height?: number;
181
+ width?: number;
182
+ yAxixMinValue?: number;
183
+ yAxixMaxValue?: number;
184
+ isStack?: boolean;
185
+ axisLabelClassName?: string;
186
+ yAxisTitle?: string;
187
+ xAxisTitle?: string;
188
+ isLegend?: boolean;
189
+ div?: boolean;
190
+ showCount?: boolean;
191
+ content?: ReactNode;
192
+ segmentedOptions?: string[];
193
+ layout?: 'horizontal" | "vertical" | "proximate' | undefined;
194
+ data?: {
195
+ label?: string;
196
+ value?: number | number[];
197
+ color?: string;
198
+ name?: string;
199
+ y?: number;
200
+ }[];
201
+ ratio?: {
202
+ male?: number;
203
+ female?: number;
204
+ }[];
205
+ payload_keys?: string[];
206
+ api_endpoint?: string;
207
+ next_id?: string;
208
+ fields?: SchemaField[];
209
+ };
210
+ type Schema = {
211
+ className?: string;
212
+ schema: SchemaField[];
213
+ };
214
+ type FormExecutorProps = {
215
+ data: Schema;
216
+ setData?: (schema: Schema) => void;
217
+ selectedRecord?: (field: SchemaField) => void;
218
+ };
219
+ type ElementExecutorProps = FormExecutorProps;
220
+ export declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
221
+ export {};
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes