amis-editor 4.2.0-beta.2 → 5.1.9-beta.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (220) hide show
  1. package/dist/6dbcbb49b6fd405190a9.png +0 -0
  2. package/dist/component/Editor.d.ts +16 -0
  3. package/dist/component/RegionWrapper.d.ts +10 -0
  4. package/dist/component/VRenderer.d.ts +10 -0
  5. package/dist/component/base/BackTop.d.ts +1 -1
  6. package/dist/component/control/APIControl.d.ts +1158 -0
  7. package/dist/component/control/ActionAPIControl.d.ts +1158 -0
  8. package/dist/component/control/BadgeControl.d.ts +133 -0
  9. package/dist/component/control/BaseControl.d.ts +248 -0
  10. package/dist/component/control/DataBindingControl.d.ts +14 -0
  11. package/dist/component/control/DataPickerControl.d.ts +13 -0
  12. package/dist/component/control/DateShortCutControl.d.ts +83 -0
  13. package/dist/component/control/FormulaControl.d.ts +51 -0
  14. package/dist/component/{Control → control}/OptionControl.d.ts +23 -34
  15. package/dist/component/{Control → control}/PopoverEdit.d.ts +0 -0
  16. package/dist/component/control/StatusControl.d.ts +44 -0
  17. package/dist/component/control/SwitchMoreControl.d.ts +224 -0
  18. package/dist/component/control/ValidationControl.d.ts +65 -0
  19. package/dist/component/control/ValidationItem.d.ts +46 -0
  20. package/dist/component/control/style-control/Background.d.ts +17 -0
  21. package/dist/component/control/style-control/Border.d.ts +18 -0
  22. package/dist/component/control/style-control/BoxModel.d.ts +17 -0
  23. package/dist/component/control/style-control/BoxShadow.d.ts +18 -0
  24. package/dist/component/control/style-control/Display.d.ts +14 -0
  25. package/dist/component/control/style-control/Font.d.ts +16 -0
  26. package/dist/component/control/style-control/font-family.d.ts +11 -0
  27. package/dist/component/control/style-control/transformation.d.ts +29 -0
  28. package/dist/component/control/style-control/types.d.ts +8 -0
  29. package/dist/component/schemaTpl.d.ts +8 -0
  30. package/dist/component/validator.d.ts +62 -0
  31. package/dist/dnd/index.d.ts +1 -1
  32. package/dist/event-action/action-config-panel.d.ts +8 -0
  33. package/dist/event-action/actions.d.ts +3 -0
  34. package/dist/event-action/comp-action-select.d.ts +11 -0
  35. package/dist/event-action/config.d.ts +13 -0
  36. package/dist/event-action/index.d.ts +459 -0
  37. package/dist/event-action/schema.d.ts +32 -0
  38. package/dist/exports.min.js +1 -1
  39. package/dist/index.d.ts +23 -5
  40. package/dist/index.min.js +1 -1
  41. package/dist/manager.d.ts +46 -1
  42. package/dist/plugin/Alert.d.ts +4 -2
  43. package/dist/plugin/Button.d.ts +5 -1
  44. package/dist/plugin/ButtonGroup.d.ts +13 -34
  45. package/dist/plugin/ButtonToolbar.d.ts +4 -10
  46. package/dist/plugin/CRUD.d.ts +2 -0
  47. package/dist/plugin/Chart.d.ts +2 -0
  48. package/dist/plugin/Collapse.d.ts +1 -0
  49. package/dist/plugin/CollapseGroup.d.ts +28 -4
  50. package/dist/plugin/Container.d.ts +2 -1
  51. package/dist/plugin/Dialog.d.ts +12 -2
  52. package/dist/plugin/Drawer.d.ts +12 -2
  53. package/dist/plugin/DropDownButton.d.ts +11 -11
  54. package/dist/plugin/Form/ButtonGroupSelect.d.ts +7 -2
  55. package/dist/plugin/Form/ButtonToolbar.d.ts +8 -7
  56. package/dist/plugin/Form/ChainedSelect.d.ts +3 -0
  57. package/dist/plugin/Form/Checkbox.d.ts +7 -2
  58. package/dist/plugin/Form/Checkboxes.d.ts +8 -2
  59. package/dist/plugin/Form/CodeEditor.d.ts +7 -22
  60. package/dist/plugin/Form/Combo.d.ts +3 -0
  61. package/dist/plugin/Form/Control.d.ts +6 -2
  62. package/dist/plugin/Form/DiffEditor.d.ts +7 -1
  63. package/dist/plugin/Form/Form.d.ts +6 -0
  64. package/dist/plugin/Form/Formula.d.ts +1 -25
  65. package/dist/plugin/Form/InputDate.d.ts +8 -2
  66. package/dist/plugin/Form/InputDateRange.d.ts +8 -2
  67. package/dist/plugin/Form/InputDateTime.d.ts +4 -4
  68. package/dist/plugin/Form/InputDateTimeRange.d.ts +4 -4
  69. package/dist/plugin/Form/InputEmail.d.ts +1 -0
  70. package/dist/plugin/Form/InputExcel.d.ts +6 -41
  71. package/dist/plugin/Form/InputFile.d.ts +7 -3
  72. package/dist/plugin/Form/InputKV.d.ts +6 -0
  73. package/dist/plugin/Form/InputMonth.d.ts +1 -0
  74. package/dist/plugin/Form/InputMonthRange.d.ts +4 -4
  75. package/dist/plugin/Form/InputPassword.d.ts +1 -0
  76. package/dist/plugin/Form/InputQuarter.d.ts +1 -0
  77. package/dist/plugin/Form/InputQuarterRange.d.ts +4 -4
  78. package/dist/plugin/Form/InputRange.d.ts +3 -0
  79. package/dist/plugin/Form/InputRating.d.ts +9 -3
  80. package/dist/plugin/Form/InputText.d.ts +24 -2
  81. package/dist/plugin/Form/InputTime.d.ts +3 -3
  82. package/dist/plugin/Form/InputTimeRange.d.ts +20 -0
  83. package/dist/plugin/Form/InputTree.d.ts +6 -2
  84. package/dist/plugin/Form/InputURL.d.ts +1 -0
  85. package/dist/plugin/Form/InputYear.d.ts +1 -0
  86. package/dist/plugin/Form/InputYearRange.d.ts +20 -0
  87. package/dist/plugin/Form/ListSelect.d.ts +6 -2
  88. package/dist/plugin/Form/LocationPicker.d.ts +1 -31
  89. package/dist/plugin/Form/NestedSelect.d.ts +5 -2
  90. package/dist/plugin/Form/Radios.d.ts +7 -2
  91. package/dist/plugin/Form/Select.d.ts +7 -2
  92. package/dist/plugin/Form/Switch.d.ts +7 -2
  93. package/dist/plugin/Form/TabsTransfer.d.ts +5 -2
  94. package/dist/plugin/Form/Textarea.d.ts +7 -1
  95. package/dist/plugin/Form/Transfer.d.ts +5 -2
  96. package/dist/plugin/Form/TreeSelect.d.ts +6 -2
  97. package/dist/plugin/IFrame.d.ts +2 -2
  98. package/dist/plugin/Nav.d.ts +1 -116
  99. package/dist/plugin/Others/Action.d.ts +5 -1
  100. package/dist/plugin/Page.d.ts +5 -2
  101. package/dist/plugin/Progress.d.ts +5 -1
  102. package/dist/plugin/Table.d.ts +2 -0
  103. package/dist/plugin/Tabs.d.ts +33 -2
  104. package/dist/plugin/TooltipWrapper.d.ts +10 -0
  105. package/dist/plugin/Tpl.d.ts +2 -1
  106. package/dist/plugin/Wizard.d.ts +4 -1
  107. package/dist/plugin.d.ts +37 -1
  108. package/dist/store/editor.d.ts +55 -28
  109. package/dist/store/node.d.ts +16 -0
  110. package/dist/style.css +1 -1
  111. package/dist/util.d.ts +36 -3
  112. package/package.json +14 -8
  113. package/src/component/schemaTpl.tsx +1209 -474
  114. package/src/plugin/Alert.tsx +69 -48
  115. package/src/plugin/AnchorNav.tsx +1 -0
  116. package/src/plugin/Audio.tsx +9 -15
  117. package/src/plugin/Avatar.tsx +2 -1
  118. package/src/plugin/Breadcrumb.tsx +2 -1
  119. package/src/plugin/Button.tsx +257 -188
  120. package/src/plugin/ButtonGroup.tsx +99 -38
  121. package/src/plugin/ButtonToolbar.tsx +7 -13
  122. package/src/plugin/CRUD.tsx +78 -136
  123. package/src/plugin/Card.tsx +1 -0
  124. package/src/plugin/Cards.tsx +8 -14
  125. package/src/plugin/Carousel.tsx +1 -1
  126. package/src/plugin/Chart.tsx +26 -14
  127. package/src/plugin/Collapse.tsx +78 -78
  128. package/src/plugin/CollapseGroup.tsx +165 -83
  129. package/src/plugin/Container.tsx +59 -6
  130. package/src/plugin/Custom.tsx +2 -8
  131. package/src/plugin/CustomRegion.tsx +4 -3
  132. package/src/plugin/Dialog.tsx +55 -24
  133. package/src/plugin/Drawer.tsx +65 -35
  134. package/src/plugin/DropDownButton.tsx +95 -79
  135. package/src/plugin/Flex.tsx +123 -65
  136. package/src/plugin/Form/ButtonGroupSelect.tsx +114 -26
  137. package/src/plugin/Form/ButtonToolbar.tsx +62 -55
  138. package/src/plugin/Form/ChainedSelect.tsx +45 -0
  139. package/src/plugin/Form/Checkbox.tsx +122 -33
  140. package/src/plugin/Form/Checkboxes.tsx +154 -87
  141. package/src/plugin/Form/CodeEditor.tsx +163 -34
  142. package/src/plugin/Form/Combo.tsx +104 -65
  143. package/src/plugin/Form/Control.tsx +16 -70
  144. package/src/plugin/Form/DiffEditor.tsx +158 -54
  145. package/src/plugin/Form/FieldSet.tsx +6 -11
  146. package/src/plugin/Form/Form.tsx +277 -70
  147. package/src/plugin/Form/Formula.tsx +8 -14
  148. package/src/plugin/Form/InputArray.tsx +7 -16
  149. package/src/plugin/Form/InputCity.tsx +1 -1
  150. package/src/plugin/Form/InputDate.tsx +344 -121
  151. package/src/plugin/Form/InputDateRange.tsx +303 -161
  152. package/src/plugin/Form/InputDateTime.tsx +6 -150
  153. package/src/plugin/Form/InputDateTimeRange.tsx +7 -187
  154. package/src/plugin/Form/InputEmail.tsx +1 -0
  155. package/src/plugin/Form/InputExcel.tsx +70 -27
  156. package/src/plugin/Form/InputFile.tsx +326 -152
  157. package/src/plugin/Form/InputImage.tsx +1 -1
  158. package/src/plugin/Form/InputKV.tsx +61 -0
  159. package/src/plugin/Form/InputMonth.tsx +3 -1
  160. package/src/plugin/Form/InputMonthRange.tsx +6 -160
  161. package/src/plugin/Form/InputNumber.tsx +1 -1
  162. package/src/plugin/Form/InputPassword.tsx +2 -0
  163. package/src/plugin/Form/InputQuarter.tsx +3 -1
  164. package/src/plugin/Form/InputQuarterRange.tsx +6 -160
  165. package/src/plugin/Form/InputRange.tsx +74 -4
  166. package/src/plugin/Form/InputRating.tsx +347 -35
  167. package/src/plugin/Form/InputRichText.tsx +2 -3
  168. package/src/plugin/Form/InputTable.tsx +33 -49
  169. package/src/plugin/Form/InputTag.tsx +1 -1
  170. package/src/plugin/Form/InputText.tsx +310 -132
  171. package/src/plugin/Form/InputTime.tsx +4 -53
  172. package/src/plugin/Form/InputTimeRange.tsx +41 -0
  173. package/src/plugin/Form/InputTree.tsx +196 -46
  174. package/src/plugin/Form/InputURL.tsx +2 -0
  175. package/src/plugin/Form/InputYear.tsx +2 -0
  176. package/src/plugin/Form/InputYearRange.tsx +41 -0
  177. package/src/plugin/Form/Item.tsx +17 -18
  178. package/src/plugin/Form/ListSelect.tsx +75 -20
  179. package/src/plugin/Form/LocationPicker.tsx +2 -7
  180. package/src/plugin/Form/MatrixCheckboxes.tsx +1 -1
  181. package/src/plugin/Form/NestedSelect.tsx +110 -43
  182. package/src/plugin/Form/Picker.tsx +2 -5
  183. package/src/plugin/Form/Radios.tsx +122 -52
  184. package/src/plugin/Form/Select.tsx +239 -168
  185. package/src/plugin/Form/Static.tsx +1 -1
  186. package/src/plugin/Form/Switch.tsx +170 -58
  187. package/src/plugin/Form/TabsTransfer.tsx +175 -79
  188. package/src/plugin/Form/Textarea.tsx +146 -36
  189. package/src/plugin/Form/Transfer.tsx +295 -233
  190. package/src/plugin/Form/TreeSelect.tsx +287 -146
  191. package/src/plugin/Grid.tsx +340 -312
  192. package/src/plugin/HBox.tsx +1 -0
  193. package/src/plugin/IFrame.tsx +21 -12
  194. package/src/plugin/Image.tsx +7 -12
  195. package/src/plugin/Images.tsx +7 -12
  196. package/src/plugin/Link.tsx +6 -12
  197. package/src/plugin/List.tsx +6 -10
  198. package/src/plugin/ListItem.tsx +1 -0
  199. package/src/plugin/Nav.tsx +7 -9
  200. package/src/plugin/Others/Action.tsx +16 -10
  201. package/src/plugin/Others/BasicToolbar.tsx +4 -1
  202. package/src/plugin/Others/TableCell.tsx +19 -39
  203. package/src/plugin/Page.tsx +315 -229
  204. package/src/plugin/Panel.tsx +6 -7
  205. package/src/plugin/Plain.tsx +3 -6
  206. package/src/plugin/Progress.tsx +234 -94
  207. package/src/plugin/Service.tsx +10 -6
  208. package/src/plugin/Table.tsx +49 -20
  209. package/src/plugin/TableView.tsx +212 -106
  210. package/src/plugin/Tabs.tsx +306 -146
  211. package/src/plugin/TooltipWrapper.tsx +231 -135
  212. package/src/plugin/Tpl.tsx +68 -52
  213. package/src/plugin/Video.tsx +9 -20
  214. package/src/plugin/Wizard.tsx +537 -336
  215. package/src/plugin/Wrapper.tsx +82 -61
  216. package/src/plugin.ts +66 -4
  217. package/static/empty.png +0 -0
  218. package/dist/component/Control/APIControl.d.ts +0 -504
  219. package/dist/component/Control/ValidationControl.d.ts +0 -30
  220. package/dist/component/remarkTpl.d.ts +0 -150
@@ -0,0 +1,1158 @@
1
+ import React from 'react';
2
+ import type { SchemaObject, SchemaCollection, SchemaApi } from 'amis/lib/Schema';
3
+ import type { FormControlProps } from 'amis-core';
4
+ import type { ActionSchema } from 'amis/lib/renderers/Action';
5
+ export interface APIControlProps extends FormControlProps {
6
+ name?: string;
7
+ label?: string;
8
+ value?: any;
9
+ /**
10
+ * 接口消息设置描述信息
11
+ */
12
+ messageDesc?: string;
13
+ /**
14
+ * 顶部按钮集合
15
+ */
16
+ actions?: Array<ActionSchema>;
17
+ /**
18
+ * 底部集合
19
+ */
20
+ footer?: Array<SchemaObject>;
21
+ /**
22
+ * 是否开启选择模式,开启后actions属性失效
23
+ */
24
+ enablePickerMode?: boolean;
25
+ /**
26
+ * 触发Picker的按钮配置
27
+ */
28
+ pickerBtnSchema?: ActionSchema;
29
+ /**
30
+ * picker标题
31
+ */
32
+ pickerTitle?: string;
33
+ /**
34
+ * Picker绑定的Name
35
+ */
36
+ pickerName?: string;
37
+ /**
38
+ * picker模式的Schema
39
+ */
40
+ pickerSchema?: SchemaCollection;
41
+ /**
42
+ * Picker数据源
43
+ */
44
+ pickerSource?: SchemaApi;
45
+ /**
46
+ * Picker弹窗大小
47
+ */
48
+ pickerSize?: 'xs' | 'sm' | 'md' | 'lg' | 'xl' | 'full';
49
+ /**
50
+ * Picker顶部的CSS类名
51
+ */
52
+ pickerHeaderClassName?: string;
53
+ /**
54
+ * Picker面板确认
55
+ */
56
+ onPickerConfirm: (values: any) => void | any;
57
+ /**
58
+ * Picker面板关闭
59
+ */
60
+ onPickerClose: () => void;
61
+ /**
62
+ * Picker面板选择
63
+ */
64
+ onPickerSelect: (values: any) => void | any;
65
+ onAction: (schema: ActionSchema, e: React.MouseEvent<any> | void | null, action: object, data: any) => void;
66
+ }
67
+ export interface APIControlState {
68
+ apiStr: string;
69
+ selectedItem?: any[];
70
+ schema?: SchemaCollection;
71
+ }
72
+ export default class APIControl extends React.Component<APIControlProps, APIControlState> {
73
+ static defaultProps: Pick<APIControlProps, 'pickerBtnSchema'>;
74
+ constructor(props: APIControlProps);
75
+ componentDidUpdate(prevProps: APIControlProps): void;
76
+ transformApi2Str(value: any): string;
77
+ fetchOptions(): Promise<void>;
78
+ handleSubmit(values: SchemaApi, action: any): void;
79
+ handleAction(schema: ActionSchema, e: React.MouseEvent<any> | void | null, action: object, data: any): void;
80
+ normalizeValue(value: any, callback: (value: any) => any): any;
81
+ handlePickerConfirm(value: any): void;
82
+ handlePickerClose(): void;
83
+ renderHeader(): JSX.Element | null;
84
+ renderPickerSchema(): JSX.Element | null;
85
+ renderApiDialog(): {
86
+ label: string;
87
+ type: string;
88
+ acitonType: string;
89
+ size: string;
90
+ icon: string;
91
+ actionType: string;
92
+ dialog: {
93
+ title: string;
94
+ size: string;
95
+ className: string;
96
+ headerClassName: string;
97
+ bodyClassName: string;
98
+ closeOnEsc: boolean;
99
+ closeOnOutside: boolean;
100
+ showCloseButton: boolean;
101
+ body: {
102
+ type: string;
103
+ className: string;
104
+ mode: string;
105
+ submitOnChange: boolean;
106
+ wrapWithPanel: boolean;
107
+ onSubmit: (values: SchemaApi, action: any) => void;
108
+ body: {
109
+ type: string;
110
+ className: string;
111
+ contentClassName: string;
112
+ tabs: ({
113
+ title: string;
114
+ tab: ({
115
+ label: string;
116
+ name: string;
117
+ value: string;
118
+ type: string;
119
+ mode: string;
120
+ options: {
121
+ value: string;
122
+ label: string;
123
+ }[];
124
+ size?: undefined;
125
+ placeholder?: undefined;
126
+ required?: undefined;
127
+ description?: undefined;
128
+ disabled?: undefined;
129
+ pipeIn?: undefined;
130
+ pipeOut?: undefined;
131
+ min?: undefined;
132
+ step?: undefined;
133
+ visibleOn?: undefined;
134
+ direction?: undefined;
135
+ body?: undefined;
136
+ horizontal?: undefined;
137
+ } | {
138
+ label: string;
139
+ type: string;
140
+ name: string;
141
+ mode: string;
142
+ size: string;
143
+ placeholder: string;
144
+ required: boolean;
145
+ value?: undefined;
146
+ options?: undefined;
147
+ description?: undefined;
148
+ disabled?: undefined;
149
+ pipeIn?: undefined;
150
+ pipeOut?: undefined;
151
+ min?: undefined;
152
+ step?: undefined;
153
+ visibleOn?: undefined;
154
+ direction?: undefined;
155
+ body?: undefined;
156
+ horizontal?: undefined;
157
+ } | {
158
+ label: string;
159
+ type: string;
160
+ name: string;
161
+ mode: string;
162
+ size: string;
163
+ placeholder: string;
164
+ description: string;
165
+ value?: undefined;
166
+ options?: undefined;
167
+ required?: undefined;
168
+ disabled?: undefined;
169
+ pipeIn?: undefined;
170
+ pipeOut?: undefined;
171
+ min?: undefined;
172
+ step?: undefined;
173
+ visibleOn?: undefined;
174
+ direction?: undefined;
175
+ body?: undefined;
176
+ horizontal?: undefined;
177
+ } | {
178
+ label: string;
179
+ type: string;
180
+ name: string;
181
+ size: string;
182
+ mode: string;
183
+ description: string;
184
+ options: {
185
+ label: string;
186
+ value: string;
187
+ }[];
188
+ disabled: boolean;
189
+ value?: undefined;
190
+ placeholder?: undefined;
191
+ required?: undefined;
192
+ pipeIn?: undefined;
193
+ pipeOut?: undefined;
194
+ min?: undefined;
195
+ step?: undefined;
196
+ visibleOn?: undefined;
197
+ direction?: undefined;
198
+ body?: undefined;
199
+ horizontal?: undefined;
200
+ } | {
201
+ type: string;
202
+ label: string;
203
+ name: string;
204
+ mode: string;
205
+ pipeIn: (value: any) => boolean;
206
+ pipeOut: (value: any) => 3000 | undefined;
207
+ value?: undefined;
208
+ options?: undefined;
209
+ size?: undefined;
210
+ placeholder?: undefined;
211
+ required?: undefined;
212
+ description?: undefined;
213
+ disabled?: undefined;
214
+ min?: undefined;
215
+ step?: undefined;
216
+ visibleOn?: undefined;
217
+ direction?: undefined;
218
+ body?: undefined;
219
+ horizontal?: undefined;
220
+ } | {
221
+ label: string;
222
+ type: string;
223
+ name: string;
224
+ mode: string;
225
+ size: string;
226
+ min: number;
227
+ step: number;
228
+ visibleOn: string;
229
+ description: string;
230
+ pipeIn: (value: any) => number;
231
+ value?: undefined;
232
+ options?: undefined;
233
+ placeholder?: undefined;
234
+ required?: undefined;
235
+ disabled?: undefined;
236
+ pipeOut?: undefined;
237
+ direction?: undefined;
238
+ body?: undefined;
239
+ horizontal?: undefined;
240
+ } | {
241
+ label: string;
242
+ name: string;
243
+ type: string;
244
+ mode: string;
245
+ description: string;
246
+ pipeIn: (value: any) => boolean;
247
+ pipeOut: (value: any) => "blob" | undefined;
248
+ value?: undefined;
249
+ options?: undefined;
250
+ size?: undefined;
251
+ placeholder?: undefined;
252
+ required?: undefined;
253
+ disabled?: undefined;
254
+ min?: undefined;
255
+ step?: undefined;
256
+ visibleOn?: undefined;
257
+ direction?: undefined;
258
+ body?: undefined;
259
+ horizontal?: undefined;
260
+ } | {
261
+ label: string;
262
+ name: string;
263
+ type: string;
264
+ mode: string;
265
+ description: string;
266
+ value?: undefined;
267
+ options?: undefined;
268
+ size?: undefined;
269
+ placeholder?: undefined;
270
+ required?: undefined;
271
+ disabled?: undefined;
272
+ pipeIn?: undefined;
273
+ pipeOut?: undefined;
274
+ min?: undefined;
275
+ step?: undefined;
276
+ visibleOn?: undefined;
277
+ direction?: undefined;
278
+ body?: undefined;
279
+ horizontal?: undefined;
280
+ } | {
281
+ label: {
282
+ type: string;
283
+ tooltip: string;
284
+ tooltipTheme: string;
285
+ placement: string;
286
+ tooltipStyle: {
287
+ fontSize: string;
288
+ };
289
+ className: string;
290
+ body: string | SchemaObject[];
291
+ };
292
+ type: string;
293
+ visibleOn: string;
294
+ mode: string;
295
+ direction: string;
296
+ body: ({
297
+ name: string;
298
+ type: string;
299
+ inline: boolean;
300
+ mode: string;
301
+ renderLabel: boolean;
302
+ onChange: () => void;
303
+ options: ({
304
+ label: string;
305
+ value: boolean;
306
+ } | {
307
+ label: string;
308
+ value: string;
309
+ })[];
310
+ autoComplete?: undefined;
311
+ visibleOn?: undefined;
312
+ size?: undefined;
313
+ placeholder?: undefined;
314
+ className?: undefined;
315
+ } | {
316
+ name: string;
317
+ autoComplete: boolean;
318
+ visibleOn: string;
319
+ type: string;
320
+ mode: string;
321
+ size: string;
322
+ renderLabel: boolean;
323
+ placeholder: string;
324
+ className: string;
325
+ inline?: undefined;
326
+ onChange?: undefined;
327
+ options?: undefined;
328
+ })[];
329
+ name?: undefined;
330
+ value?: undefined;
331
+ options?: undefined;
332
+ size?: undefined;
333
+ placeholder?: undefined;
334
+ required?: undefined;
335
+ description?: undefined;
336
+ disabled?: undefined;
337
+ pipeIn?: undefined;
338
+ pipeOut?: undefined;
339
+ min?: undefined;
340
+ step?: undefined;
341
+ horizontal?: undefined;
342
+ } | {
343
+ label: string;
344
+ name: string;
345
+ type: string;
346
+ mode: string;
347
+ visibleOn: string;
348
+ pipeIn: (value: any) => boolean;
349
+ pipeOut: (value: any) => 3000 | undefined;
350
+ value?: undefined;
351
+ options?: undefined;
352
+ size?: undefined;
353
+ placeholder?: undefined;
354
+ required?: undefined;
355
+ description?: undefined;
356
+ disabled?: undefined;
357
+ min?: undefined;
358
+ step?: undefined;
359
+ direction?: undefined;
360
+ body?: undefined;
361
+ horizontal?: undefined;
362
+ } | {
363
+ label: string;
364
+ name: string;
365
+ type: string;
366
+ mode: string;
367
+ size: string;
368
+ visibleOn: string;
369
+ step: number;
370
+ description: string;
371
+ value?: undefined;
372
+ options?: undefined;
373
+ placeholder?: undefined;
374
+ required?: undefined;
375
+ disabled?: undefined;
376
+ pipeIn?: undefined;
377
+ pipeOut?: undefined;
378
+ min?: undefined;
379
+ direction?: undefined;
380
+ body?: undefined;
381
+ horizontal?: undefined;
382
+ } | {
383
+ label: string;
384
+ name: string;
385
+ type: string;
386
+ mode: string;
387
+ visibleOn: string;
388
+ description: string;
389
+ value?: undefined;
390
+ options?: undefined;
391
+ size?: undefined;
392
+ placeholder?: undefined;
393
+ required?: undefined;
394
+ disabled?: undefined;
395
+ pipeIn?: undefined;
396
+ pipeOut?: undefined;
397
+ min?: undefined;
398
+ step?: undefined;
399
+ direction?: undefined;
400
+ body?: undefined;
401
+ horizontal?: undefined;
402
+ } | {
403
+ label: {
404
+ type: string;
405
+ tooltip: string;
406
+ tooltipTheme: string;
407
+ placement: string;
408
+ tooltipStyle: {
409
+ fontSize: string;
410
+ };
411
+ className: string;
412
+ body: string | SchemaObject[];
413
+ };
414
+ name: string;
415
+ type: string;
416
+ mode: string;
417
+ horizontal: {
418
+ leftFixed: string;
419
+ };
420
+ size: string;
421
+ visibleOn: string;
422
+ placeholder: string;
423
+ value?: undefined;
424
+ options?: undefined;
425
+ required?: undefined;
426
+ description?: undefined;
427
+ disabled?: undefined;
428
+ pipeIn?: undefined;
429
+ pipeOut?: undefined;
430
+ min?: undefined;
431
+ step?: undefined;
432
+ direction?: undefined;
433
+ body?: undefined;
434
+ })[];
435
+ } | {
436
+ title: string;
437
+ tab: ({
438
+ type: string;
439
+ title: string;
440
+ headingClassName: string;
441
+ body: ({
442
+ type: string;
443
+ label: {
444
+ type: string;
445
+ tooltip: string;
446
+ tooltipTheme: string;
447
+ placement: string;
448
+ tooltipStyle: {
449
+ fontSize: string;
450
+ };
451
+ className: string;
452
+ body: string | SchemaObject[];
453
+ };
454
+ name: string;
455
+ mode: string;
456
+ pipeIn: (value: any) => boolean;
457
+ pipeOut: (value: any) => {
458
+ '&': string;
459
+ } | null;
460
+ syncDefaultValue?: undefined;
461
+ renderLabel?: undefined;
462
+ visibleOn?: undefined;
463
+ descriptionClassName?: undefined;
464
+ description?: undefined;
465
+ multiple?: undefined;
466
+ items?: undefined;
467
+ horizontal?: undefined;
468
+ clasName?: undefined;
469
+ allowFullscreen?: undefined;
470
+ } | {
471
+ type: string;
472
+ syncDefaultValue: boolean;
473
+ name: string;
474
+ mode: string;
475
+ renderLabel: boolean;
476
+ visibleOn: string;
477
+ descriptionClassName: string;
478
+ description: string;
479
+ multiple: boolean;
480
+ pipeIn: (value: any) => any;
481
+ pipeOut: (value: any) => any;
482
+ items: ({
483
+ placeholder: string;
484
+ type: string;
485
+ unique: boolean;
486
+ name: string;
487
+ required: boolean;
488
+ } | {
489
+ placeholder: string;
490
+ type: string;
491
+ name: string;
492
+ unique?: undefined;
493
+ required?: undefined;
494
+ })[];
495
+ label?: undefined;
496
+ horizontal?: undefined;
497
+ clasName?: undefined;
498
+ allowFullscreen?: undefined;
499
+ } | {
500
+ type: string;
501
+ syncDefaultValue: boolean;
502
+ name: string;
503
+ mode: string;
504
+ renderLabel: boolean;
505
+ visibleOn: string;
506
+ descriptionClassName: string;
507
+ multiple: boolean;
508
+ pipeIn: (value: any) => any;
509
+ pipeOut: (value: any) => any;
510
+ items: ({
511
+ placeholder: string;
512
+ type: string;
513
+ unique: boolean;
514
+ name: string;
515
+ required: boolean;
516
+ } | {
517
+ placeholder: string;
518
+ type: string;
519
+ name: string;
520
+ unique?: undefined;
521
+ required?: undefined;
522
+ })[];
523
+ label?: undefined;
524
+ description?: undefined;
525
+ horizontal?: undefined;
526
+ clasName?: undefined;
527
+ allowFullscreen?: undefined;
528
+ } | {
529
+ label: string;
530
+ name: string;
531
+ type: string;
532
+ mode: string;
533
+ horizontal: {
534
+ justify: boolean;
535
+ };
536
+ clasName: string;
537
+ allowFullscreen: boolean;
538
+ description: string;
539
+ pipeIn?: undefined;
540
+ pipeOut?: undefined;
541
+ syncDefaultValue?: undefined;
542
+ renderLabel?: undefined;
543
+ visibleOn?: undefined;
544
+ descriptionClassName?: undefined;
545
+ multiple?: undefined;
546
+ items?: undefined;
547
+ })[];
548
+ } | {
549
+ type: string;
550
+ title: string;
551
+ headingClassName: string;
552
+ body: ({
553
+ type: string;
554
+ label: {
555
+ type: string;
556
+ tooltip: string;
557
+ tooltipTheme: string;
558
+ placement: string;
559
+ tooltipStyle: {
560
+ fontSize: string;
561
+ };
562
+ className: string;
563
+ body: string | SchemaObject[];
564
+ };
565
+ name: string;
566
+ mode: string;
567
+ className: string;
568
+ pipeIn: (value: any) => boolean;
569
+ pipeOut: (value: any) => {
570
+ '': string;
571
+ } | null;
572
+ syncDefaultValue?: undefined;
573
+ multiple?: undefined;
574
+ visibleOn?: undefined;
575
+ items?: undefined;
576
+ } | {
577
+ type: string;
578
+ name: string;
579
+ mode: string;
580
+ syncDefaultValue: boolean;
581
+ multiple: boolean;
582
+ visibleOn: string;
583
+ items: ({
584
+ type: string;
585
+ name: string;
586
+ placeholder: string;
587
+ unique: boolean;
588
+ required: boolean;
589
+ options: {
590
+ label: string;
591
+ value: string;
592
+ }[];
593
+ disabled?: undefined;
594
+ } | {
595
+ type: string;
596
+ name: string;
597
+ placeholder: string;
598
+ disabled: boolean;
599
+ unique?: undefined;
600
+ required?: undefined;
601
+ options?: undefined;
602
+ })[];
603
+ pipeIn: (value: any) => any;
604
+ pipeOut: (value: any) => any;
605
+ label?: undefined;
606
+ className?: undefined;
607
+ })[];
608
+ })[];
609
+ } | {
610
+ title: string;
611
+ tab: {
612
+ label: string;
613
+ type: string;
614
+ name: string;
615
+ mode: string;
616
+ multiLine: boolean;
617
+ description: string;
618
+ items: {
619
+ label: string;
620
+ type: string;
621
+ name: string;
622
+ }[];
623
+ }[];
624
+ })[];
625
+ }[];
626
+ }[];
627
+ };
628
+ };
629
+ renderApiConfigTabs(messageDesc?: string, submitOnChange?: boolean): {
630
+ type: string;
631
+ className: string;
632
+ mode: string;
633
+ submitOnChange: boolean;
634
+ wrapWithPanel: boolean;
635
+ onSubmit: (values: SchemaApi, action: any) => void;
636
+ body: {
637
+ type: string;
638
+ className: string;
639
+ contentClassName: string;
640
+ tabs: ({
641
+ title: string;
642
+ tab: ({
643
+ label: string;
644
+ name: string;
645
+ value: string;
646
+ type: string;
647
+ mode: string;
648
+ options: {
649
+ value: string;
650
+ label: string;
651
+ }[];
652
+ size?: undefined;
653
+ placeholder?: undefined;
654
+ required?: undefined;
655
+ description?: undefined;
656
+ disabled?: undefined;
657
+ pipeIn?: undefined;
658
+ pipeOut?: undefined;
659
+ min?: undefined;
660
+ step?: undefined;
661
+ visibleOn?: undefined;
662
+ direction?: undefined;
663
+ body?: undefined;
664
+ horizontal?: undefined;
665
+ } | {
666
+ label: string;
667
+ type: string;
668
+ name: string;
669
+ mode: string;
670
+ size: string;
671
+ placeholder: string;
672
+ required: boolean;
673
+ value?: undefined;
674
+ options?: undefined;
675
+ description?: undefined;
676
+ disabled?: undefined;
677
+ pipeIn?: undefined;
678
+ pipeOut?: undefined;
679
+ min?: undefined;
680
+ step?: undefined;
681
+ visibleOn?: undefined;
682
+ direction?: undefined;
683
+ body?: undefined;
684
+ horizontal?: undefined;
685
+ } | {
686
+ label: string;
687
+ type: string;
688
+ name: string;
689
+ mode: string;
690
+ size: string;
691
+ placeholder: string;
692
+ description: string;
693
+ value?: undefined;
694
+ options?: undefined;
695
+ required?: undefined;
696
+ disabled?: undefined;
697
+ pipeIn?: undefined;
698
+ pipeOut?: undefined;
699
+ min?: undefined;
700
+ step?: undefined;
701
+ visibleOn?: undefined;
702
+ direction?: undefined;
703
+ body?: undefined;
704
+ horizontal?: undefined;
705
+ } | {
706
+ label: string;
707
+ type: string;
708
+ name: string;
709
+ size: string;
710
+ mode: string;
711
+ description: string;
712
+ options: {
713
+ label: string;
714
+ value: string;
715
+ }[];
716
+ disabled: boolean;
717
+ value?: undefined;
718
+ placeholder?: undefined;
719
+ required?: undefined;
720
+ pipeIn?: undefined;
721
+ pipeOut?: undefined;
722
+ min?: undefined;
723
+ step?: undefined;
724
+ visibleOn?: undefined;
725
+ direction?: undefined;
726
+ body?: undefined;
727
+ horizontal?: undefined;
728
+ } | {
729
+ type: string;
730
+ label: string;
731
+ name: string;
732
+ mode: string;
733
+ pipeIn: (value: any) => boolean;
734
+ pipeOut: (value: any) => 3000 | undefined;
735
+ value?: undefined;
736
+ options?: undefined;
737
+ size?: undefined;
738
+ placeholder?: undefined;
739
+ required?: undefined;
740
+ description?: undefined;
741
+ disabled?: undefined;
742
+ min?: undefined;
743
+ step?: undefined;
744
+ visibleOn?: undefined;
745
+ direction?: undefined;
746
+ body?: undefined;
747
+ horizontal?: undefined;
748
+ } | {
749
+ label: string;
750
+ type: string;
751
+ name: string;
752
+ mode: string;
753
+ size: string;
754
+ min: number;
755
+ step: number;
756
+ visibleOn: string;
757
+ description: string;
758
+ pipeIn: (value: any) => number;
759
+ value?: undefined;
760
+ options?: undefined;
761
+ placeholder?: undefined;
762
+ required?: undefined;
763
+ disabled?: undefined;
764
+ pipeOut?: undefined;
765
+ direction?: undefined;
766
+ body?: undefined;
767
+ horizontal?: undefined;
768
+ } | {
769
+ label: string;
770
+ name: string;
771
+ type: string;
772
+ mode: string;
773
+ description: string;
774
+ pipeIn: (value: any) => boolean;
775
+ pipeOut: (value: any) => "blob" | undefined;
776
+ value?: undefined;
777
+ options?: undefined;
778
+ size?: undefined;
779
+ placeholder?: undefined;
780
+ required?: undefined;
781
+ disabled?: undefined;
782
+ min?: undefined;
783
+ step?: undefined;
784
+ visibleOn?: undefined;
785
+ direction?: undefined;
786
+ body?: undefined;
787
+ horizontal?: undefined;
788
+ } | {
789
+ label: string;
790
+ name: string;
791
+ type: string;
792
+ mode: string;
793
+ description: string;
794
+ value?: undefined;
795
+ options?: undefined;
796
+ size?: undefined;
797
+ placeholder?: undefined;
798
+ required?: undefined;
799
+ disabled?: undefined;
800
+ pipeIn?: undefined;
801
+ pipeOut?: undefined;
802
+ min?: undefined;
803
+ step?: undefined;
804
+ visibleOn?: undefined;
805
+ direction?: undefined;
806
+ body?: undefined;
807
+ horizontal?: undefined;
808
+ } | {
809
+ label: {
810
+ type: string;
811
+ tooltip: string;
812
+ tooltipTheme: string;
813
+ placement: string;
814
+ tooltipStyle: {
815
+ fontSize: string;
816
+ };
817
+ className: string;
818
+ body: string | SchemaObject[];
819
+ };
820
+ type: string;
821
+ visibleOn: string;
822
+ mode: string;
823
+ direction: string;
824
+ body: ({
825
+ name: string;
826
+ type: string;
827
+ inline: boolean;
828
+ mode: string;
829
+ renderLabel: boolean;
830
+ onChange: () => void;
831
+ options: ({
832
+ label: string;
833
+ value: boolean;
834
+ } | {
835
+ label: string;
836
+ value: string;
837
+ })[];
838
+ autoComplete?: undefined;
839
+ visibleOn?: undefined;
840
+ size?: undefined;
841
+ placeholder?: undefined;
842
+ className?: undefined;
843
+ } | {
844
+ name: string;
845
+ autoComplete: boolean;
846
+ visibleOn: string;
847
+ type: string;
848
+ mode: string;
849
+ size: string;
850
+ renderLabel: boolean;
851
+ placeholder: string;
852
+ className: string;
853
+ inline?: undefined;
854
+ onChange?: undefined;
855
+ options?: undefined;
856
+ })[];
857
+ name?: undefined;
858
+ value?: undefined;
859
+ options?: undefined;
860
+ size?: undefined;
861
+ placeholder?: undefined;
862
+ required?: undefined;
863
+ description?: undefined;
864
+ disabled?: undefined;
865
+ pipeIn?: undefined;
866
+ pipeOut?: undefined;
867
+ min?: undefined;
868
+ step?: undefined;
869
+ horizontal?: undefined;
870
+ } | {
871
+ label: string;
872
+ name: string;
873
+ type: string;
874
+ mode: string;
875
+ visibleOn: string;
876
+ pipeIn: (value: any) => boolean;
877
+ pipeOut: (value: any) => 3000 | undefined;
878
+ value?: undefined;
879
+ options?: undefined;
880
+ size?: undefined;
881
+ placeholder?: undefined;
882
+ required?: undefined;
883
+ description?: undefined;
884
+ disabled?: undefined;
885
+ min?: undefined;
886
+ step?: undefined;
887
+ direction?: undefined;
888
+ body?: undefined;
889
+ horizontal?: undefined;
890
+ } | {
891
+ label: string;
892
+ name: string;
893
+ type: string;
894
+ mode: string;
895
+ size: string;
896
+ visibleOn: string;
897
+ step: number;
898
+ description: string;
899
+ value?: undefined;
900
+ options?: undefined;
901
+ placeholder?: undefined;
902
+ required?: undefined;
903
+ disabled?: undefined;
904
+ pipeIn?: undefined;
905
+ pipeOut?: undefined;
906
+ min?: undefined;
907
+ direction?: undefined;
908
+ body?: undefined;
909
+ horizontal?: undefined;
910
+ } | {
911
+ label: string;
912
+ name: string;
913
+ type: string;
914
+ mode: string;
915
+ visibleOn: string;
916
+ description: string;
917
+ value?: undefined;
918
+ options?: undefined;
919
+ size?: undefined;
920
+ placeholder?: undefined;
921
+ required?: undefined;
922
+ disabled?: undefined;
923
+ pipeIn?: undefined;
924
+ pipeOut?: undefined;
925
+ min?: undefined;
926
+ step?: undefined;
927
+ direction?: undefined;
928
+ body?: undefined;
929
+ horizontal?: undefined;
930
+ } | {
931
+ label: {
932
+ type: string;
933
+ tooltip: string;
934
+ tooltipTheme: string;
935
+ placement: string;
936
+ tooltipStyle: {
937
+ fontSize: string;
938
+ };
939
+ className: string;
940
+ body: string | SchemaObject[];
941
+ };
942
+ name: string;
943
+ type: string;
944
+ mode: string;
945
+ horizontal: {
946
+ leftFixed: string;
947
+ };
948
+ size: string;
949
+ visibleOn: string;
950
+ placeholder: string;
951
+ value?: undefined;
952
+ options?: undefined;
953
+ required?: undefined;
954
+ description?: undefined;
955
+ disabled?: undefined;
956
+ pipeIn?: undefined;
957
+ pipeOut?: undefined;
958
+ min?: undefined;
959
+ step?: undefined;
960
+ direction?: undefined;
961
+ body?: undefined;
962
+ })[];
963
+ } | {
964
+ title: string;
965
+ tab: ({
966
+ type: string;
967
+ title: string;
968
+ headingClassName: string;
969
+ body: ({
970
+ type: string;
971
+ label: {
972
+ type: string;
973
+ tooltip: string;
974
+ tooltipTheme: string;
975
+ placement: string;
976
+ tooltipStyle: {
977
+ fontSize: string;
978
+ };
979
+ className: string;
980
+ body: string | SchemaObject[];
981
+ };
982
+ name: string;
983
+ mode: string;
984
+ pipeIn: (value: any) => boolean;
985
+ pipeOut: (value: any) => {
986
+ '&': string;
987
+ } | null;
988
+ syncDefaultValue?: undefined;
989
+ renderLabel?: undefined;
990
+ visibleOn?: undefined;
991
+ descriptionClassName?: undefined;
992
+ description?: undefined;
993
+ multiple?: undefined;
994
+ items?: undefined;
995
+ horizontal?: undefined;
996
+ clasName?: undefined;
997
+ allowFullscreen?: undefined;
998
+ } | {
999
+ type: string;
1000
+ syncDefaultValue: boolean;
1001
+ name: string;
1002
+ mode: string;
1003
+ renderLabel: boolean;
1004
+ visibleOn: string;
1005
+ descriptionClassName: string;
1006
+ description: string;
1007
+ multiple: boolean;
1008
+ pipeIn: (value: any) => any;
1009
+ pipeOut: (value: any) => any;
1010
+ items: ({
1011
+ placeholder: string;
1012
+ type: string;
1013
+ unique: boolean;
1014
+ name: string;
1015
+ required: boolean;
1016
+ } | {
1017
+ placeholder: string;
1018
+ type: string;
1019
+ name: string;
1020
+ unique?: undefined;
1021
+ required?: undefined;
1022
+ })[];
1023
+ label?: undefined;
1024
+ horizontal?: undefined;
1025
+ clasName?: undefined;
1026
+ allowFullscreen?: undefined;
1027
+ } | {
1028
+ type: string;
1029
+ syncDefaultValue: boolean;
1030
+ name: string;
1031
+ mode: string;
1032
+ renderLabel: boolean;
1033
+ visibleOn: string;
1034
+ descriptionClassName: string;
1035
+ multiple: boolean;
1036
+ pipeIn: (value: any) => any;
1037
+ pipeOut: (value: any) => any;
1038
+ items: ({
1039
+ placeholder: string;
1040
+ type: string;
1041
+ unique: boolean;
1042
+ name: string;
1043
+ required: boolean;
1044
+ } | {
1045
+ placeholder: string;
1046
+ type: string;
1047
+ name: string;
1048
+ unique?: undefined;
1049
+ required?: undefined;
1050
+ })[];
1051
+ label?: undefined;
1052
+ description?: undefined;
1053
+ horizontal?: undefined;
1054
+ clasName?: undefined;
1055
+ allowFullscreen?: undefined;
1056
+ } | {
1057
+ label: string;
1058
+ name: string;
1059
+ type: string;
1060
+ mode: string;
1061
+ horizontal: {
1062
+ justify: boolean;
1063
+ };
1064
+ clasName: string;
1065
+ allowFullscreen: boolean;
1066
+ description: string;
1067
+ pipeIn?: undefined;
1068
+ pipeOut?: undefined;
1069
+ syncDefaultValue?: undefined;
1070
+ renderLabel?: undefined;
1071
+ visibleOn?: undefined;
1072
+ descriptionClassName?: undefined;
1073
+ multiple?: undefined;
1074
+ items?: undefined;
1075
+ })[];
1076
+ } | {
1077
+ type: string;
1078
+ title: string;
1079
+ headingClassName: string;
1080
+ body: ({
1081
+ type: string;
1082
+ label: {
1083
+ type: string;
1084
+ tooltip: string;
1085
+ tooltipTheme: string;
1086
+ placement: string;
1087
+ tooltipStyle: {
1088
+ fontSize: string;
1089
+ };
1090
+ className: string;
1091
+ body: string | SchemaObject[];
1092
+ };
1093
+ name: string;
1094
+ mode: string;
1095
+ className: string;
1096
+ pipeIn: (value: any) => boolean;
1097
+ pipeOut: (value: any) => {
1098
+ '': string;
1099
+ } | null;
1100
+ syncDefaultValue?: undefined;
1101
+ multiple?: undefined;
1102
+ visibleOn?: undefined;
1103
+ items?: undefined;
1104
+ } | {
1105
+ type: string;
1106
+ name: string;
1107
+ mode: string;
1108
+ syncDefaultValue: boolean;
1109
+ multiple: boolean;
1110
+ visibleOn: string;
1111
+ items: ({
1112
+ type: string;
1113
+ name: string;
1114
+ placeholder: string;
1115
+ unique: boolean;
1116
+ required: boolean;
1117
+ options: {
1118
+ label: string;
1119
+ value: string;
1120
+ }[];
1121
+ disabled?: undefined;
1122
+ } | {
1123
+ type: string;
1124
+ name: string;
1125
+ placeholder: string;
1126
+ disabled: boolean;
1127
+ unique?: undefined;
1128
+ required?: undefined;
1129
+ options?: undefined;
1130
+ })[];
1131
+ pipeIn: (value: any) => any;
1132
+ pipeOut: (value: any) => any;
1133
+ label?: undefined;
1134
+ className?: undefined;
1135
+ })[];
1136
+ })[];
1137
+ } | {
1138
+ title: string;
1139
+ tab: {
1140
+ label: string;
1141
+ type: string;
1142
+ name: string;
1143
+ mode: string;
1144
+ multiLine: boolean;
1145
+ description: string;
1146
+ items: {
1147
+ label: string;
1148
+ type: string;
1149
+ name: string;
1150
+ }[];
1151
+ }[];
1152
+ })[];
1153
+ }[];
1154
+ };
1155
+ render(): JSX.Element;
1156
+ }
1157
+ export declare class APIControlRenderer extends APIControl {
1158
+ }