@apexcura/core 0.0.17-Beta162 → 0.0.17-Beta1621

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