@apexcura/core 0.0.17-Beta152 → 0.0.17-Beta1521

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