@apexcura/core 0.0.17-Beta31 → 0.0.17-Beta310
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/common/not-found.d.ts +0 -0
- package/dist/common/unauthorized.d.ts +0 -0
- package/dist/common/under-development.d.ts +0 -0
- package/dist/constants/age-manipulation.d.ts +0 -0
- package/dist/constants/bmi-calculator.d.ts +0 -0
- package/dist/constants/gender-manipulation.d.ts +0 -0
- package/dist/constants/master-config.d.ts +0 -0
- package/dist/constants/network-list.d.ts +4 -0
- package/dist/constants/op-payment-type-badge.d.ts +0 -0
- package/dist/index.d.ts +1 -188
- package/dist/index.js +3 -425
- package/dist/index.js.LICENSE.txt +123 -0
- package/dist/index.js.map +1 -0
- package/dist/libraries/create-op-patient.d.ts +0 -0
- package/dist/libraries/element-executor.d.ts +207 -0
- package/dist/libraries/forgot-password.d.ts +0 -0
- package/dist/libraries/login.d.ts +0 -0
- package/dist/libraries/logout.d.ts +0 -0
- package/dist/libraries/op-slots-list.d.ts +0 -0
- package/dist/libraries/policy-documents.d.ts +0 -0
- package/dist/redux/common-store.d.ts +0 -0
- package/dist/report.html +39 -0
- package/dist/services/http-service.d.ts +8 -0
- package/dist/services/local-storage.d.ts +13 -0
- package/package.json +47 -44
- package/dist/index.d.mts +0 -188
- package/dist/index.mjs +0 -422
- package/jest.config.js +0 -9
|
File without changes
|
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
import React 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
|
+
colCount?: number;
|
|
14
|
+
disabled?: boolean;
|
|
15
|
+
activeClassName?: string;
|
|
16
|
+
listClassName?: string;
|
|
17
|
+
listItemClassName?: string;
|
|
18
|
+
buttonClassName?: string;
|
|
19
|
+
icon?: string;
|
|
20
|
+
placement?: TooltipPlacement;
|
|
21
|
+
firstPlaceholder?: string;
|
|
22
|
+
secondPlaceholder?: string;
|
|
23
|
+
enabled_dates?: string;
|
|
24
|
+
profileImageClassName?: string;
|
|
25
|
+
tooltip_title?: string;
|
|
26
|
+
child_element?: string;
|
|
27
|
+
isLoading?: boolean;
|
|
28
|
+
value?: string | number | boolean | null | object | undefined | string[] | UploadFile[];
|
|
29
|
+
message?: string;
|
|
30
|
+
description?: string;
|
|
31
|
+
notificationType?: 'error' | 'warning' | 'success' | 'info' | undefined;
|
|
32
|
+
showProgress?: boolean;
|
|
33
|
+
picker?: 'date' | 'week' | 'month' | 'quarter' | 'year';
|
|
34
|
+
weekrange?: boolean;
|
|
35
|
+
img?: string;
|
|
36
|
+
imgClassName: string;
|
|
37
|
+
primaryText?: string;
|
|
38
|
+
secondaryText?: string;
|
|
39
|
+
count?: number;
|
|
40
|
+
profileImage?: string;
|
|
41
|
+
profileSubClassName?: string;
|
|
42
|
+
containerClassName?: string;
|
|
43
|
+
subContainerClassName?: string;
|
|
44
|
+
secondTextClassName?: string;
|
|
45
|
+
iconsClassName?: string;
|
|
46
|
+
labelClassName?: string;
|
|
47
|
+
view?: boolean;
|
|
48
|
+
isSearch?: boolean;
|
|
49
|
+
isStatus?: boolean;
|
|
50
|
+
isSVGStylesOverride?: boolean;
|
|
51
|
+
isDelete?: boolean;
|
|
52
|
+
errorText?: string;
|
|
53
|
+
errorClassName?: string;
|
|
54
|
+
rowSelection?: string;
|
|
55
|
+
length?: number;
|
|
56
|
+
loading?: boolean;
|
|
57
|
+
fillText1?: string;
|
|
58
|
+
fillText2?: string;
|
|
59
|
+
pagination?: boolean;
|
|
60
|
+
is_detail?: boolean;
|
|
61
|
+
dateTime?: string;
|
|
62
|
+
isDateTime?: boolean;
|
|
63
|
+
minRows?: number;
|
|
64
|
+
maxRows?: number;
|
|
65
|
+
isNotChatbot?: boolean;
|
|
66
|
+
mode?: 'multiple' | 'tags' | undefined;
|
|
67
|
+
items?: {
|
|
68
|
+
id?: number;
|
|
69
|
+
key?: number | string;
|
|
70
|
+
element?: string;
|
|
71
|
+
icon?: string;
|
|
72
|
+
label?: string;
|
|
73
|
+
active?: number;
|
|
74
|
+
text?: string;
|
|
75
|
+
time?: string;
|
|
76
|
+
name?: string;
|
|
77
|
+
y?: number;
|
|
78
|
+
color?: string;
|
|
79
|
+
}[];
|
|
80
|
+
options?: {
|
|
81
|
+
key?: string;
|
|
82
|
+
label: string;
|
|
83
|
+
value?: string;
|
|
84
|
+
icon?: string;
|
|
85
|
+
}[];
|
|
86
|
+
firstOptions?: {
|
|
87
|
+
key?: string;
|
|
88
|
+
label: string;
|
|
89
|
+
value: string;
|
|
90
|
+
}[];
|
|
91
|
+
secondOptions?: {
|
|
92
|
+
key?: string;
|
|
93
|
+
label?: string;
|
|
94
|
+
value?: string;
|
|
95
|
+
}[];
|
|
96
|
+
selectBefore?: {
|
|
97
|
+
label?: string;
|
|
98
|
+
value?: string;
|
|
99
|
+
}[];
|
|
100
|
+
selectAfter?: {
|
|
101
|
+
label?: string;
|
|
102
|
+
value?: string;
|
|
103
|
+
}[];
|
|
104
|
+
dropDownOptions?: (number | string | boolean | object | null | undefined | (() => void))[];
|
|
105
|
+
required?: boolean;
|
|
106
|
+
prefix?: React.ReactNode;
|
|
107
|
+
suffix?: React.ReactNode;
|
|
108
|
+
addonBefore?: React.ReactNode;
|
|
109
|
+
defaultValue?: string;
|
|
110
|
+
status?: 'error' | 'warning';
|
|
111
|
+
styles?: React.CSSProperties;
|
|
112
|
+
fieldClassName?: string;
|
|
113
|
+
elementClassName?: string;
|
|
114
|
+
variant?: 'outlined' | 'borderless' | 'filled' | undefined;
|
|
115
|
+
thead?: {
|
|
116
|
+
_id: string;
|
|
117
|
+
name?: string;
|
|
118
|
+
label?: string;
|
|
119
|
+
visible?: boolean;
|
|
120
|
+
required?: boolean;
|
|
121
|
+
key?: string;
|
|
122
|
+
render?: (text: string) => React.JSX.Element;
|
|
123
|
+
ellipsis: boolean;
|
|
124
|
+
}[];
|
|
125
|
+
tbody?: {
|
|
126
|
+
_id?: string;
|
|
127
|
+
name?: string;
|
|
128
|
+
label?: string;
|
|
129
|
+
element?: string;
|
|
130
|
+
type?: string;
|
|
131
|
+
variable_data?: {
|
|
132
|
+
id: {
|
|
133
|
+
id?: number;
|
|
134
|
+
};
|
|
135
|
+
Route?: {
|
|
136
|
+
label: string;
|
|
137
|
+
element: string;
|
|
138
|
+
type: string;
|
|
139
|
+
};
|
|
140
|
+
Dose?: {
|
|
141
|
+
label: string;
|
|
142
|
+
element: string;
|
|
143
|
+
type: string;
|
|
144
|
+
};
|
|
145
|
+
Frequency?: {
|
|
146
|
+
label: string;
|
|
147
|
+
element: string;
|
|
148
|
+
type: string;
|
|
149
|
+
};
|
|
150
|
+
When?: {
|
|
151
|
+
label: string;
|
|
152
|
+
element: string;
|
|
153
|
+
type: string;
|
|
154
|
+
};
|
|
155
|
+
Duration?: {
|
|
156
|
+
label: string;
|
|
157
|
+
element: string;
|
|
158
|
+
type: string;
|
|
159
|
+
};
|
|
160
|
+
Instructions?: {
|
|
161
|
+
label: string;
|
|
162
|
+
element: string;
|
|
163
|
+
type: string;
|
|
164
|
+
};
|
|
165
|
+
SubRows?: {
|
|
166
|
+
label: string;
|
|
167
|
+
};
|
|
168
|
+
}[];
|
|
169
|
+
}[];
|
|
170
|
+
legendTitleClassName?: string;
|
|
171
|
+
centerLabel1?: string;
|
|
172
|
+
centerLabel2?: string;
|
|
173
|
+
legendTitle?: string;
|
|
174
|
+
legendAlign?: 'left' | 'center' | 'right';
|
|
175
|
+
legendVerticalAlign?: 'top' | 'middle' | 'bottom';
|
|
176
|
+
height?: number;
|
|
177
|
+
width?: number;
|
|
178
|
+
yAxixMinValue?: number;
|
|
179
|
+
yAxixMaxValue?: number;
|
|
180
|
+
data?: {
|
|
181
|
+
label?: string;
|
|
182
|
+
value?: number | number[];
|
|
183
|
+
color?: string;
|
|
184
|
+
name?: string;
|
|
185
|
+
y?: number;
|
|
186
|
+
}[];
|
|
187
|
+
ratio?: {
|
|
188
|
+
male?: number;
|
|
189
|
+
female?: number;
|
|
190
|
+
}[];
|
|
191
|
+
payload_keys?: string[];
|
|
192
|
+
api_endpoint?: string;
|
|
193
|
+
next_id?: string;
|
|
194
|
+
fields?: SchemaField[];
|
|
195
|
+
};
|
|
196
|
+
type Schema = {
|
|
197
|
+
className?: string;
|
|
198
|
+
schema: SchemaField[];
|
|
199
|
+
};
|
|
200
|
+
type FormExecutorProps = {
|
|
201
|
+
data: Schema;
|
|
202
|
+
setData?: (schema: Schema) => void;
|
|
203
|
+
selectedRecord?: (field: SchemaField) => void;
|
|
204
|
+
};
|
|
205
|
+
type ElementExecutorProps = FormExecutorProps;
|
|
206
|
+
export declare const ElementExecutor: (props: ElementExecutorProps) => React.JSX.Element;
|
|
207
|
+
export {};
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|