amis-editor 3.3.12-beta.1 → 4.0.1-beta.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (81) hide show
  1. package/dist/150a58f3318ca7541ed9.png +0 -0
  2. package/dist/471adb97c322b226e589.png +0 -0
  3. package/dist/4de5f42360bc5946c3c2.png +0 -0
  4. package/dist/4e9968bba3855f088fed.png +0 -0
  5. package/dist/7f09c38ebc687fea847a.png +0 -0
  6. package/dist/c94073576487510314ea.png +0 -0
  7. package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
  8. package/dist/component/Breadcrumb.d.ts +1 -1
  9. package/dist/component/Control/APIControl.d.ts +540 -0
  10. package/dist/component/Control/OptionControl.d.ts +163 -0
  11. package/dist/component/Control/PopoverEdit.d.ts +57 -0
  12. package/dist/component/Control/ValidationControl.d.ts +30 -0
  13. package/dist/component/Panel/AMisCodeEditor.d.ts +37 -0
  14. package/dist/component/Panel/AvailableRenderersPanel.d.ts +20 -0
  15. package/dist/component/Panel/CodeEditorPanel.d.ts +6 -0
  16. package/dist/component/Panel/ContextMenuPanel.d.ts +8 -0
  17. package/dist/component/Panel/DrawerPanel.d.ts +15 -0
  18. package/dist/component/Panel/InsertSubRendererPanel.d.ts +11 -0
  19. package/dist/component/Panel/LeftPanels.d.ts +20 -0
  20. package/dist/component/Panel/Outline.d.ts +18 -0
  21. package/dist/component/Panel/RightPanels.d.ts +21 -0
  22. package/dist/component/Panel/TargetNamePanel.d.ts +7 -0
  23. package/dist/component/Preview.d.ts +2 -0
  24. package/dist/component/RegionHLBox.d.ts +1 -8
  25. package/dist/component/ScaffoldModal.d.ts +1 -1
  26. package/dist/component/base/BackTop.d.ts +26 -0
  27. package/dist/component/base/ErrorRenderer.d.ts +4 -0
  28. package/dist/component/base/InputComponentName.d.ts +8 -0
  29. package/dist/component/base/SearchRendererPanel.d.ts +51 -0
  30. package/dist/component/base/WidthDraggableBtn.d.ts +16 -0
  31. package/dist/component/base/WidthDraggableContainer.d.ts +2 -0
  32. package/dist/component/remarkTpl.d.ts +150 -0
  33. package/dist/dnd/default.d.ts +1 -1
  34. package/dist/dnd/index.d.ts +1 -1
  35. package/dist/index.d.ts +12 -10
  36. package/dist/index.min.js +1 -1
  37. package/dist/manager.d.ts +16 -9
  38. package/dist/plugin/BasicToolbar.d.ts +1 -1
  39. package/dist/plugin/Card.d.ts +0 -1
  40. package/dist/plugin/Date.d.ts +1 -0
  41. package/dist/plugin/Datetime.d.ts +3 -0
  42. package/dist/plugin/Flex.d.ts +0 -1
  43. package/dist/plugin/Form/CodeEditor.d.ts +39 -0
  44. package/dist/plugin/Form/FieldSet.d.ts +1 -0
  45. package/dist/plugin/Form/Group.d.ts +1 -0
  46. package/dist/plugin/Form/InputGroup.d.ts +0 -2
  47. package/dist/plugin/Form/InputTable.d.ts +0 -1
  48. package/dist/plugin/Form/Item.d.ts +1 -1
  49. package/dist/plugin/Form/Static.d.ts +0 -1
  50. package/dist/plugin/Grid.d.ts +17 -20
  51. package/dist/plugin/HBox.d.ts +1 -1
  52. package/dist/plugin/ListItem.d.ts +0 -1
  53. package/dist/plugin/Log.d.ts +1 -0
  54. package/dist/plugin/Panel/AvailableRenderers.d.ts +8 -0
  55. package/dist/plugin/Panel/Code.d.ts +9 -0
  56. package/dist/plugin/Panel/Name.d.ts +8 -0
  57. package/dist/plugin/Panel.d.ts +15 -3
  58. package/dist/plugin/Plain.d.ts +1 -0
  59. package/dist/plugin/Reset.d.ts +1 -0
  60. package/dist/plugin/Steps.d.ts +1 -7
  61. package/dist/plugin/Submit.d.ts +1 -0
  62. package/dist/plugin/TableCell.d.ts +0 -1
  63. package/dist/plugin/Time.d.ts +3 -0
  64. package/dist/plugin/Wrapper.d.ts +1 -0
  65. package/dist/plugin.d.ts +22 -3
  66. package/dist/store/editor.d.ts +17 -3
  67. package/dist/style.css +1 -1
  68. package/dist/util.d.ts +2 -2
  69. package/package.json +24 -15
  70. package/static/Code-hover.png +0 -0
  71. package/static/Code.png +0 -0
  72. package/static/Outline-hover.png +0 -0
  73. package/static/Outline.png +0 -0
  74. package/static/Renderers-hover.png +0 -0
  75. package/static/Renderers.png +0 -0
  76. package/static/side_hide_left.svg +10 -0
  77. package/.editorconfig +0 -12
  78. package/.fecsrc +0 -8
  79. package/.prettierrc +0 -20
  80. package/dist/plugin/Form/Color.d.ts +0 -39
  81. package/rollup.config.js +0 -24
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
@@ -0,0 +1,10 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <svg width="6px" height="8px" viewBox="0 0 6 8" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
3
+ <g id="折叠icon" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
4
+ <g id="折叠icon svg" transform="translate(-305.000000, -566.000000)" fill="#A1A6B3" fill-rule="nonzero">
5
+ <g id="折叠icon svg g" transform="translate(60.000000, 60.000000)">
6
+ <path d="M245.77735,506.518233 L250.375962,509.583975 C250.605727,509.737151 250.667814,510.047586 250.514637,510.27735 C250.47802,510.332276 250.430888,510.379408 250.375962,510.416025 L245.77735,513.481767 C245.547586,513.634943 245.237151,513.572856 245.083975,513.343092 C245.029219,513.260958 245,513.164454 245,513.065741 L245,506.934259 C245,506.658116 245.223858,506.434259 245.5,506.434259 C245.598712,506.434259 245.695216,506.463478 245.77735,506.518233 Z" id="矩形" transform="translate(248.000000, 510.000000) scale(-1, 1) translate(-248.000000, -510.000000) "></path>
7
+ </g>
8
+ </g>
9
+ </g>
10
+ </svg>
@@ -8,5 +8,5 @@ export interface BreadcrumbProps {
8
8
  export default class Breadcrumb extends React.Component<BreadcrumbProps> {
9
9
  handleClick(e: React.MouseEvent<HTMLAnchorElement>): void;
10
10
  handleMouseEnter(e: React.MouseEvent<HTMLAnchorElement>): void;
11
- render(): JSX.Element;
11
+ render(): JSX.Element | null;
12
12
  }
@@ -0,0 +1,540 @@
1
+ import React from 'react';
2
+ import { SchemaApi } from 'amis';
3
+ import type { FormControlProps } from 'amis/lib/renderers/Form/Item';
4
+ export interface APIControlProps extends FormControlProps {
5
+ name?: string;
6
+ label?: string;
7
+ value?: any;
8
+ /**
9
+ * 接口消息设置描述信息
10
+ */
11
+ messageDesc?: string;
12
+ }
13
+ export interface APIControlState {
14
+ apiStr: string;
15
+ }
16
+ export declare class APIControl extends React.Component<APIControlProps, APIControlState> {
17
+ constructor(props: APIControlProps);
18
+ componentDidUpdate(prevProps: APIControlProps): void;
19
+ transformApi2Str(value: any): string;
20
+ handleSubmit(values: SchemaApi, action: any): void;
21
+ buildActionsSchema(): {
22
+ type: string;
23
+ justify: string;
24
+ alignItems: string;
25
+ className: string;
26
+ items: ({
27
+ label: string;
28
+ type: string;
29
+ acitonType: string;
30
+ level: string;
31
+ size: string;
32
+ disabled: boolean;
33
+ actionType?: undefined;
34
+ dialog?: undefined;
35
+ } | {
36
+ label: string;
37
+ type: string;
38
+ acitonType: string;
39
+ level: string;
40
+ size: string;
41
+ actionType: string;
42
+ dialog: {
43
+ title: string;
44
+ size: string;
45
+ className: string;
46
+ headerClassName: string;
47
+ bodyClassName: string;
48
+ closeOnEsc: boolean;
49
+ closeOnOutside: boolean;
50
+ showCloseButton: boolean;
51
+ body: {
52
+ type: string;
53
+ mode: string;
54
+ onSubmit: (values: SchemaApi, action: any) => void;
55
+ body: {
56
+ type: string;
57
+ tabs: ({
58
+ title: string;
59
+ tab: {
60
+ type: string;
61
+ gap: string;
62
+ align: string;
63
+ valign: string;
64
+ columns: ({
65
+ md: number;
66
+ body: ({
67
+ label: string;
68
+ name: string;
69
+ value: string;
70
+ type: string;
71
+ mode: string;
72
+ options: {
73
+ value: string;
74
+ label: string;
75
+ }[];
76
+ placeholder?: undefined;
77
+ required?: undefined;
78
+ description?: undefined;
79
+ size?: undefined;
80
+ disabled?: undefined;
81
+ } | {
82
+ label: string;
83
+ type: string;
84
+ name: string;
85
+ placeholder: string;
86
+ required: boolean;
87
+ value?: undefined;
88
+ mode?: undefined;
89
+ options?: undefined;
90
+ description?: undefined;
91
+ size?: undefined;
92
+ disabled?: undefined;
93
+ } | {
94
+ label: string;
95
+ type: string;
96
+ name: string;
97
+ placeholder: string;
98
+ description: string;
99
+ value?: undefined;
100
+ mode?: undefined;
101
+ options?: undefined;
102
+ required?: undefined;
103
+ size?: undefined;
104
+ disabled?: undefined;
105
+ } | {
106
+ label: string;
107
+ type: string;
108
+ name: string;
109
+ description: string;
110
+ size: string;
111
+ mode: string;
112
+ options: {
113
+ label: string;
114
+ value: string;
115
+ }[];
116
+ disabled: boolean;
117
+ value?: undefined;
118
+ placeholder?: undefined;
119
+ required?: undefined;
120
+ })[];
121
+ } | {
122
+ md: number;
123
+ body: ({
124
+ label: string;
125
+ type: string;
126
+ name: string;
127
+ mode: string;
128
+ inputClassName: string;
129
+ pipeIn: (value: any) => boolean;
130
+ pipeOut: (value: any) => 3000 | undefined;
131
+ min?: undefined;
132
+ step?: undefined;
133
+ visibleOn?: undefined;
134
+ description?: undefined;
135
+ className?: undefined;
136
+ direction?: undefined;
137
+ labelRemark?: undefined;
138
+ body?: undefined;
139
+ placeholder?: undefined;
140
+ } | {
141
+ label: string;
142
+ type: string;
143
+ name: string;
144
+ mode: string;
145
+ min: number;
146
+ step: number;
147
+ visibleOn: string;
148
+ description: string;
149
+ className: string;
150
+ pipeIn: (value: any) => number;
151
+ inputClassName?: undefined;
152
+ pipeOut?: undefined;
153
+ direction?: undefined;
154
+ labelRemark?: undefined;
155
+ body?: undefined;
156
+ placeholder?: undefined;
157
+ } | {
158
+ label: string;
159
+ type: string;
160
+ name: string;
161
+ mode: string;
162
+ description: string;
163
+ inputClassName: string;
164
+ pipeIn: (value: any) => boolean;
165
+ pipeOut: (value: any) => "blob" | undefined;
166
+ min?: undefined;
167
+ step?: undefined;
168
+ visibleOn?: undefined;
169
+ className?: undefined;
170
+ direction?: undefined;
171
+ labelRemark?: undefined;
172
+ body?: undefined;
173
+ placeholder?: undefined;
174
+ } | {
175
+ type: string;
176
+ label: string;
177
+ name: string;
178
+ mode: string;
179
+ description: string;
180
+ inputClassName: string;
181
+ pipeIn?: undefined;
182
+ pipeOut?: undefined;
183
+ min?: undefined;
184
+ step?: undefined;
185
+ visibleOn?: undefined;
186
+ className?: undefined;
187
+ direction?: undefined;
188
+ labelRemark?: undefined;
189
+ body?: undefined;
190
+ placeholder?: undefined;
191
+ } | {
192
+ label: string;
193
+ type: string;
194
+ visibleOn: string;
195
+ direction: string;
196
+ labelRemark: {
197
+ trigger: string;
198
+ rootClose: boolean;
199
+ content: string;
200
+ placement: string;
201
+ };
202
+ body: ({
203
+ name: string;
204
+ type: string;
205
+ inline: boolean;
206
+ onChange: () => void;
207
+ options: ({
208
+ label: string;
209
+ value: boolean;
210
+ } | {
211
+ label: string;
212
+ value: string;
213
+ })[];
214
+ autoComplete?: undefined;
215
+ visibleOn?: undefined;
216
+ placeholder?: undefined;
217
+ className?: undefined;
218
+ } | {
219
+ name: string;
220
+ autoComplete: boolean;
221
+ visibleOn: string;
222
+ type: string;
223
+ placeholder: string;
224
+ className: string;
225
+ inline?: undefined;
226
+ onChange?: undefined;
227
+ options?: undefined;
228
+ })[];
229
+ name?: undefined;
230
+ mode?: undefined;
231
+ inputClassName?: undefined;
232
+ pipeIn?: undefined;
233
+ pipeOut?: undefined;
234
+ min?: undefined;
235
+ step?: undefined;
236
+ description?: undefined;
237
+ className?: undefined;
238
+ placeholder?: undefined;
239
+ } | {
240
+ label: string;
241
+ type: string;
242
+ name: string;
243
+ mode: string;
244
+ visibleOn: string;
245
+ inputClassName: string;
246
+ pipeIn: (value: any) => boolean;
247
+ pipeOut: (value: any) => 3000 | undefined;
248
+ min?: undefined;
249
+ step?: undefined;
250
+ description?: undefined;
251
+ className?: undefined;
252
+ direction?: undefined;
253
+ labelRemark?: undefined;
254
+ body?: undefined;
255
+ placeholder?: undefined;
256
+ } | {
257
+ label: string;
258
+ name: string;
259
+ type: string;
260
+ mode: string;
261
+ visibleOn: string;
262
+ step: number;
263
+ className: string;
264
+ description: string;
265
+ inputClassName?: undefined;
266
+ pipeIn?: undefined;
267
+ pipeOut?: undefined;
268
+ min?: undefined;
269
+ direction?: undefined;
270
+ labelRemark?: undefined;
271
+ body?: undefined;
272
+ placeholder?: undefined;
273
+ } | {
274
+ label: string;
275
+ name: string;
276
+ type: string;
277
+ mode: string;
278
+ visibleOn: string;
279
+ description: string;
280
+ inputClassName: string;
281
+ pipeIn?: undefined;
282
+ pipeOut?: undefined;
283
+ min?: undefined;
284
+ step?: undefined;
285
+ className?: undefined;
286
+ direction?: undefined;
287
+ labelRemark?: undefined;
288
+ body?: undefined;
289
+ placeholder?: undefined;
290
+ } | {
291
+ label: string;
292
+ name: string;
293
+ type: string;
294
+ mode: string;
295
+ visibleOn: string;
296
+ placeholder: string;
297
+ labelRemark: {
298
+ trigger: string;
299
+ rootClose: boolean;
300
+ content: string;
301
+ placement: string;
302
+ };
303
+ inputClassName?: undefined;
304
+ pipeIn?: undefined;
305
+ pipeOut?: undefined;
306
+ min?: undefined;
307
+ step?: undefined;
308
+ description?: undefined;
309
+ className?: undefined;
310
+ direction?: undefined;
311
+ body?: undefined;
312
+ })[];
313
+ })[];
314
+ }[];
315
+ } | {
316
+ title: string;
317
+ tab: ({
318
+ type: string;
319
+ title: string;
320
+ body: {
321
+ type: string;
322
+ gap: string;
323
+ align: string;
324
+ valign: string;
325
+ columns: ({
326
+ md: number;
327
+ body: ({
328
+ type: string;
329
+ label: string;
330
+ name: string;
331
+ mode: string;
332
+ className: string;
333
+ inputClassName: string;
334
+ labelRemark: {
335
+ trigger: string;
336
+ rootClose: boolean;
337
+ content: string;
338
+ placement: string;
339
+ };
340
+ pipeIn: (value: any) => boolean;
341
+ pipeOut: (value: any) => {
342
+ '&': string;
343
+ } | null;
344
+ syncDefaultValue?: undefined;
345
+ visibleOn?: undefined;
346
+ descriptionClassName?: undefined;
347
+ description?: undefined;
348
+ multiple?: undefined;
349
+ items?: undefined;
350
+ } | {
351
+ type: string;
352
+ syncDefaultValue: boolean;
353
+ name: string;
354
+ visibleOn: string;
355
+ descriptionClassName: string;
356
+ description: string;
357
+ multiple: boolean;
358
+ pipeIn: (value: any) => any;
359
+ pipeOut: (value: any) => any;
360
+ items: ({
361
+ placeholder: string;
362
+ type: string;
363
+ unique: boolean;
364
+ name: string;
365
+ required: boolean;
366
+ columnClassName: string;
367
+ } | {
368
+ placeholder: string;
369
+ type: string;
370
+ name: string;
371
+ unique?: undefined;
372
+ required?: undefined;
373
+ columnClassName?: undefined;
374
+ })[];
375
+ label?: undefined;
376
+ mode?: undefined;
377
+ className?: undefined;
378
+ inputClassName?: undefined;
379
+ labelRemark?: undefined;
380
+ })[];
381
+ } | {
382
+ md: number;
383
+ body: ({
384
+ type: string;
385
+ label: string;
386
+ name: string;
387
+ mode: string;
388
+ className: string;
389
+ inputClassName: string;
390
+ labelRemark: {
391
+ trigger: string;
392
+ rootClose: boolean;
393
+ content: string;
394
+ placement: string;
395
+ };
396
+ pipeIn: (value: any) => boolean;
397
+ pipeOut: (value: any) => {
398
+ '&': string;
399
+ } | null;
400
+ syncDefaultValue?: undefined;
401
+ visibleOn?: undefined;
402
+ descriptionClassName?: undefined;
403
+ multiple?: undefined;
404
+ items?: undefined;
405
+ } | {
406
+ type: string;
407
+ syncDefaultValue: boolean;
408
+ name: string;
409
+ visibleOn: string;
410
+ descriptionClassName: string;
411
+ multiple: boolean;
412
+ pipeIn: (value: any) => any;
413
+ pipeOut: (value: any) => any;
414
+ items: ({
415
+ placeholder: string;
416
+ type: string;
417
+ unique: boolean;
418
+ name: string;
419
+ required: boolean;
420
+ columnClassName: string;
421
+ } | {
422
+ placeholder: string;
423
+ type: string;
424
+ name: string;
425
+ unique?: undefined;
426
+ required?: undefined;
427
+ columnClassName?: undefined;
428
+ })[];
429
+ label?: undefined;
430
+ mode?: undefined;
431
+ className?: undefined;
432
+ inputClassName?: undefined;
433
+ labelRemark?: undefined;
434
+ })[];
435
+ })[];
436
+ }[];
437
+ collapsable?: undefined;
438
+ collapsed?: undefined;
439
+ } | {
440
+ type: string;
441
+ title: string;
442
+ body: ({
443
+ type: string;
444
+ label: string;
445
+ name: string;
446
+ mode: string;
447
+ className: string;
448
+ inputClassName: string;
449
+ labelRemark: {
450
+ trigger: string;
451
+ rootClose: boolean;
452
+ content: string;
453
+ placement: string;
454
+ };
455
+ pipeIn: (value: any) => boolean;
456
+ pipeOut: (value: any) => {} | null;
457
+ syncDefaultValue?: undefined;
458
+ multiple?: undefined;
459
+ visibleOn?: undefined;
460
+ items?: undefined;
461
+ } | {
462
+ type: string;
463
+ name: string;
464
+ mode: string;
465
+ syncDefaultValue: boolean;
466
+ multiple: boolean;
467
+ visibleOn: string;
468
+ items: ({
469
+ type: string;
470
+ name: string;
471
+ placeholder: string;
472
+ unique: boolean;
473
+ required: boolean;
474
+ options: {
475
+ label: string;
476
+ value: string;
477
+ }[];
478
+ disabled?: undefined;
479
+ } | {
480
+ type: string;
481
+ name: string;
482
+ placeholder: string;
483
+ disabled: boolean;
484
+ unique?: undefined;
485
+ required?: undefined;
486
+ options?: undefined;
487
+ })[];
488
+ pipeIn: (value: any) => any;
489
+ pipeOut: (value: any) => any;
490
+ label?: undefined;
491
+ className?: undefined;
492
+ inputClassName?: undefined;
493
+ labelRemark?: undefined;
494
+ })[];
495
+ collapsable?: undefined;
496
+ collapsed?: undefined;
497
+ } | {
498
+ title: string;
499
+ type: string;
500
+ collapsable: boolean;
501
+ collapsed: boolean;
502
+ body: {
503
+ type: string;
504
+ columns: {
505
+ body: {
506
+ label: string;
507
+ name: string;
508
+ type: string;
509
+ allowFullscreen: boolean;
510
+ description: string;
511
+ }[];
512
+ md: number;
513
+ }[];
514
+ }[];
515
+ })[];
516
+ } | {
517
+ title: string;
518
+ tab: {
519
+ label: string;
520
+ type: string;
521
+ name: string;
522
+ multiLine: boolean;
523
+ description: string;
524
+ items: {
525
+ label: string;
526
+ type: string;
527
+ name: string;
528
+ }[];
529
+ }[];
530
+ })[];
531
+ }[];
532
+ }[];
533
+ };
534
+ disabled?: undefined;
535
+ })[];
536
+ };
537
+ render(): JSX.Element;
538
+ }
539
+ export declare class APIControlRenderer extends APIControl {
540
+ }