amis-editor 3.3.6-beta.15 → 3.3.6-beta.18

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. package/dist/Animation.d.ts +22 -0
  2. package/dist/BasicContainerEditor.d.ts +46 -0
  3. package/dist/BasicEditor.d.ts +214 -0
  4. package/dist/Breadcrumb.d.ts +19 -0
  5. package/dist/ClassNameControl.d.ts +31 -0
  6. package/dist/CodeEditor.d.ts +34 -0
  7. package/dist/Editor.d.ts +251 -0
  8. package/dist/HighlightBox.d.ts +17 -0
  9. package/dist/MiniEditor.d.ts +9 -0
  10. package/dist/Outline.d.ts +38 -0
  11. package/dist/PositionRegion.d.ts +7 -0
  12. package/dist/Preview.d.ts +76 -0
  13. package/dist/Region.d.ts +61 -0
  14. package/dist/RendererThumb.d.ts +23 -0
  15. package/dist/Renderers.d.ts +39 -0
  16. package/dist/RenderersPicker.d.ts +28 -0
  17. package/dist/SettingForm.d.ts +20 -0
  18. package/dist/Settings.d.ts +58 -0
  19. package/dist/dom-helper.d.ts +2 -0
  20. package/dist/editors/Action.d.ts +14 -0
  21. package/dist/editors/Alert.d.ts +11 -0
  22. package/dist/editors/Audio.d.ts +9 -0
  23. package/dist/editors/ButtonGroup.d.ts +15 -0
  24. package/dist/editors/ButtonToolbar.d.ts +7 -0
  25. package/dist/editors/CRUD.d.ts +27 -0
  26. package/dist/editors/Card.d.ts +47 -0
  27. package/dist/editors/Cards.d.ts +20 -0
  28. package/dist/editors/Carousel.d.ts +9 -0
  29. package/dist/editors/Chart.d.ts +13 -0
  30. package/dist/editors/Collapse.d.ts +13 -0
  31. package/dist/editors/Container.d.ts +13 -0
  32. package/dist/editors/Date.d.ts +18 -0
  33. package/dist/editors/Dialog.d.ts +27 -0
  34. package/dist/editors/DiffEditor.d.ts +8 -0
  35. package/dist/editors/Divdier.d.ts +8 -0
  36. package/dist/editors/Drawer.d.ts +26 -0
  37. package/dist/editors/DropDownButton.d.ts +16 -0
  38. package/dist/editors/Each.d.ts +16 -0
  39. package/dist/editors/Form/Array.d.ts +12 -0
  40. package/dist/editors/Form/Button.d.ts +13 -0
  41. package/dist/editors/Form/ButtonGroup.d.ts +17 -0
  42. package/dist/editors/Form/ButtonToolbar.d.ts +15 -0
  43. package/dist/editors/Form/ChainedSelect.d.ts +8 -0
  44. package/dist/editors/Form/Checkbox.d.ts +8 -0
  45. package/dist/editors/Form/Checkboxes.d.ts +8 -0
  46. package/dist/editors/Form/City.d.ts +8 -0
  47. package/dist/editors/Form/Color.d.ts +8 -0
  48. package/dist/editors/Form/Combo.d.ts +19 -0
  49. package/dist/editors/Form/Container.d.ts +22 -0
  50. package/dist/editors/Form/Control.d.ts +15 -0
  51. package/dist/editors/Form/Date.d.ts +9 -0
  52. package/dist/editors/Form/DateRange.d.ts +9 -0
  53. package/dist/editors/Form/Datetime.d.ts +9 -0
  54. package/dist/editors/Form/DiffEditor.d.ts +8 -0
  55. package/dist/editors/Form/Editor.d.ts +12 -0
  56. package/dist/editors/Form/Email.d.ts +8 -0
  57. package/dist/editors/Form/FieldSet.d.ts +22 -0
  58. package/dist/editors/Form/File.d.ts +8 -0
  59. package/dist/editors/Form/Form.d.ts +26 -0
  60. package/dist/editors/Form/Formula.d.ts +11 -0
  61. package/dist/editors/Form/Grid.d.ts +21 -0
  62. package/dist/editors/Form/Group.d.ts +21 -0
  63. package/dist/editors/Form/HBox.d.ts +20 -0
  64. package/dist/editors/Form/Hidden.d.ts +21 -0
  65. package/dist/editors/Form/Image.d.ts +8 -0
  66. package/dist/editors/Form/InputGroup.d.ts +12 -0
  67. package/dist/editors/Form/Item.d.ts +8 -0
  68. package/dist/editors/Form/List.d.ts +16 -0
  69. package/dist/editors/Form/Matrix.d.ts +8 -0
  70. package/dist/editors/Form/NestedSelect.d.ts +50 -0
  71. package/dist/editors/Form/Number.d.ts +8 -0
  72. package/dist/editors/Form/Panel.d.ts +22 -0
  73. package/dist/editors/Form/Password.d.ts +10 -0
  74. package/dist/editors/Form/Picker.d.ts +17 -0
  75. package/dist/editors/Form/QRCode.d.ts +8 -0
  76. package/dist/editors/Form/Radios.d.ts +8 -0
  77. package/dist/editors/Form/Range.d.ts +8 -0
  78. package/dist/editors/Form/Rating.d.ts +8 -0
  79. package/dist/editors/Form/Repeat.d.ts +8 -0
  80. package/dist/editors/Form/Reset.d.ts +8 -0
  81. package/dist/editors/Form/RichText.d.ts +8 -0
  82. package/dist/editors/Form/Select.d.ts +8 -0
  83. package/dist/editors/Form/Service.d.ts +25 -0
  84. package/dist/editors/Form/Static.d.ts +18 -0
  85. package/dist/editors/Form/SubForm.d.ts +12 -0
  86. package/dist/editors/Form/Submit.d.ts +9 -0
  87. package/dist/editors/Form/Switch.d.ts +8 -0
  88. package/dist/editors/Form/Tab.d.ts +12 -0
  89. package/dist/editors/Form/Table.d.ts +25 -0
  90. package/dist/editors/Form/Tabs.d.ts +6 -0
  91. package/dist/editors/Form/Tag.d.ts +10 -0
  92. package/dist/editors/Form/Text.d.ts +10 -0
  93. package/dist/editors/Form/Textarea.d.ts +8 -0
  94. package/dist/editors/Form/Time.d.ts +9 -0
  95. package/dist/editors/Form/Tree.d.ts +50 -0
  96. package/dist/editors/Form/TreeSelect.d.ts +50 -0
  97. package/dist/editors/Form/Url.d.ts +8 -0
  98. package/dist/editors/Grid.d.ts +16 -0
  99. package/dist/editors/HBox.d.ts +13 -0
  100. package/dist/editors/IFrame.d.ts +11 -0
  101. package/dist/editors/Image.d.ts +9 -0
  102. package/dist/editors/Json.d.ts +9 -0
  103. package/dist/editors/Link.d.ts +8 -0
  104. package/dist/editors/List.d.ts +70 -0
  105. package/dist/editors/Mapping.d.ts +9 -0
  106. package/dist/editors/Nav.d.ts +142 -0
  107. package/dist/editors/Operation.d.ts +17 -0
  108. package/dist/editors/Page.d.ts +15 -0
  109. package/dist/editors/Panel.d.ts +13 -0
  110. package/dist/editors/Plain.d.ts +9 -0
  111. package/dist/editors/Progress.d.ts +9 -0
  112. package/dist/editors/QRCode.d.ts +8 -0
  113. package/dist/editors/Service.d.ts +5 -0
  114. package/dist/editors/Status.d.ts +9 -0
  115. package/dist/editors/Switch.d.ts +9 -0
  116. package/dist/editors/Tab.d.ts +13 -0
  117. package/dist/editors/Table.d.ts +27 -0
  118. package/dist/editors/TableCell.d.ts +29 -0
  119. package/dist/editors/TableColumnsRegion.d.ts +6 -0
  120. package/dist/editors/Tabs.d.ts +15 -0
  121. package/dist/editors/Tasks.d.ts +8 -0
  122. package/dist/editors/Tpl.d.ts +8 -0
  123. package/dist/editors/Video.d.ts +8 -0
  124. package/dist/editors/Wizard.d.ts +15 -0
  125. package/dist/editors/WizardStep.d.ts +19 -0
  126. package/dist/editors/Wrapper.d.ts +11 -0
  127. package/dist/editors/index.d.ts +101 -0
  128. package/dist/editors/templates.d.ts +3 -0
  129. package/dist/index.d.ts +2 -1
  130. package/dist/index.min.js +1 -1
  131. package/dist/json-ast/index.d.ts +53 -0
  132. package/dist/plugin/DataDebug.d.ts +1 -0
  133. package/dist/plugin/DiffEditor.d.ts +19 -0
  134. package/dist/plugin/Form/AnchorNav.d.ts +17 -0
  135. package/dist/plugin/Form/Array.d.ts +27 -0
  136. package/dist/plugin/Form/Button.d.ts +11 -0
  137. package/dist/plugin/Form/ButtonGroup.d.ts +22 -0
  138. package/dist/plugin/Form/City.d.ts +19 -0
  139. package/dist/plugin/Form/Container.d.ts +37 -0
  140. package/dist/plugin/Form/Date.d.ts +20 -0
  141. package/dist/plugin/Form/DateRange.d.ts +20 -0
  142. package/dist/plugin/Form/DateTime.d.ts +19 -0
  143. package/dist/plugin/Form/Email.d.ts +25 -0
  144. package/dist/plugin/Form/File.d.ts +19 -0
  145. package/dist/plugin/Form/Grid.d.ts +32 -0
  146. package/dist/plugin/Form/HBox.d.ts +73 -0
  147. package/dist/plugin/Form/Image.d.ts +20 -0
  148. package/dist/plugin/Form/InputSubForm.d.ts +1 -0
  149. package/dist/plugin/Form/List.d.ts +24 -0
  150. package/dist/plugin/Form/Location.d.ts +48 -0
  151. package/dist/plugin/Form/Matrix.d.ts +26 -0
  152. package/dist/plugin/Form/Month.d.ts +16 -0
  153. package/dist/plugin/Form/MonthRange.d.ts +20 -0
  154. package/dist/plugin/Form/Number.d.ts +20 -0
  155. package/dist/plugin/Form/Panel.d.ts +24 -0
  156. package/dist/plugin/Form/Password.d.ts +25 -0
  157. package/dist/plugin/Form/QRCode.d.ts +20 -0
  158. package/dist/plugin/Form/Range.d.ts +19 -0
  159. package/dist/plugin/Form/Rating.d.ts +19 -0
  160. package/dist/plugin/Form/Repeat.d.ts +19 -0
  161. package/dist/plugin/Form/RichText.d.ts +19 -0
  162. package/dist/plugin/Form/Service.d.ts +24 -0
  163. package/dist/plugin/Form/SubForm.d.ts +64 -0
  164. package/dist/plugin/Form/Table.d.ts +34 -0
  165. package/dist/plugin/Form/Tabs.d.ts +17 -0
  166. package/dist/plugin/Form/Tag.d.ts +21 -0
  167. package/dist/plugin/Form/Text.d.ts +20 -0
  168. package/dist/plugin/Form/Time.d.ts +19 -0
  169. package/dist/plugin/Form/Tree.d.ts +73 -0
  170. package/dist/plugin/Form/Url.d.ts +25 -0
  171. package/dist/plugin/Form/Year.d.ts +16 -0
  172. package/dist/plugin/Switch.d.ts +21 -0
  173. package/dist/store/editor.d.ts +1 -0
  174. package/dist/types.d.ts +40 -0
  175. package/dist/util.d.ts +1 -1
  176. package/package.json +14 -38
@@ -0,0 +1,9 @@
1
+ import BasicEditor from '../BasicEditor';
2
+ export declare class StatusFieldEditor extends BasicEditor {
3
+ tipName: string;
4
+ isUnderField: boolean;
5
+ settingsSchema: {
6
+ title: string;
7
+ controls: any;
8
+ };
9
+ }
@@ -0,0 +1,9 @@
1
+ import BasicEditor from '../BasicEditor';
2
+ export declare class SwitchFieldEditor extends BasicEditor {
3
+ tipName: string;
4
+ isUnderField: boolean;
5
+ settingsSchema: {
6
+ title: string;
7
+ controls: any;
8
+ };
9
+ }
@@ -0,0 +1,13 @@
1
+ /// <reference types="react" />
2
+ import BasicContainerEditor from '../BasicContainerEditor';
3
+ export declare class TabEditor extends BasicContainerEditor {
4
+ tipName: string;
5
+ containers: string[];
6
+ containerLabels: string[];
7
+ settingsSchema: {
8
+ title: string;
9
+ controls: any;
10
+ };
11
+ renderRenderer(props: any): JSX.Element;
12
+ openEditForm(): void;
13
+ }
@@ -0,0 +1,27 @@
1
+ /// <reference types="react" />
2
+ import { Schema } from '../types';
3
+ import BasicContainerEditor from '../BasicContainerEditor';
4
+ export declare class TableEditor extends BasicContainerEditor {
5
+ tipName: string;
6
+ isCRUDBody: boolean;
7
+ dropable: boolean;
8
+ containers: string[];
9
+ containerLabels: string[];
10
+ childrenSortList: {
11
+ columns: string[];
12
+ };
13
+ handleAdd: () => void;
14
+ settingsSchema: {
15
+ title: string;
16
+ controls: any;
17
+ };
18
+ handleColumnsQuickEdit(): void;
19
+ handleHover(e: MouseEvent): void;
20
+ handleClick(e: MouseEvent): any;
21
+ renderChild(region: string, node: Schema, props: any): JSX.Element;
22
+ renderRenderer(props: any): JSX.Element;
23
+ getContextMenus(): any[];
24
+ emptyChild(key: string): void;
25
+ onAddNode(key: string, child: any): any;
26
+ }
27
+ export declare function mockValue(value: any, type: string): any;
@@ -0,0 +1,29 @@
1
+ import React = require('react');
2
+ import { RendererProps } from '../types';
3
+ import BasicContainerEditor from '../BasicContainerEditor';
4
+ export declare class TableCellEditor extends BasicContainerEditor {
5
+ tipName: string;
6
+ replaceable: boolean;
7
+ codeEditable: boolean;
8
+ draggable: boolean;
9
+ settingsSchema: {
10
+ title: string;
11
+ controls: any[];
12
+ };
13
+ childrenOrder: string[];
14
+ state: any;
15
+ constructor(props: RendererProps, context: any);
16
+ getContextMenus(): any[];
17
+ acceptChild(type: string, region?: string, rendererId?: string): boolean | null;
18
+ getSettingsValue(): any;
19
+ onChildSettingsGet(type: string, value: any): any;
20
+ onChildSettingsSet(type: string, value: any, origin: any, replaceMode?: boolean): any;
21
+ setSettingsValue(value: any): void;
22
+ handleToolbarAction(id: string): void;
23
+ handleQuickEditSetting(): void;
24
+ handlePopOverSetting(): void;
25
+ handleEditDetail(): void;
26
+ renderRenderer(props: any): React.FunctionComponentElement<{
27
+ 'data-editor-id': any;
28
+ }>;
29
+ }
@@ -0,0 +1,6 @@
1
+ /// <reference types="react" />
2
+ import PositionRegion from '../PositionRegion';
3
+ export default class TableColumnsRegion extends PositionRegion {
4
+ getContextMenus(): any[];
5
+ handleDragOver(e: React.DragEvent, ghost: HTMLElement): void;
6
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import BasicEditor from '../BasicEditor';
3
+ export declare class TabsEditor extends BasicEditor {
4
+ tipName: string;
5
+ containers: string[];
6
+ settingsSchema: {
7
+ title: string;
8
+ controls: any;
9
+ };
10
+ handleClick(e: Event): void;
11
+ renderRenderer(props: any): JSX.Element;
12
+ switchTo(index: number): void;
13
+ getContextMenus(): any[];
14
+ handleAdd(): void;
15
+ }
@@ -0,0 +1,8 @@
1
+ import BasicEditor from '../BasicEditor';
2
+ export declare class TaskEditor extends BasicEditor {
3
+ tipName: string;
4
+ settingsSchema: {
5
+ title: string;
6
+ controls: any;
7
+ };
8
+ }
@@ -0,0 +1,8 @@
1
+ import BasicEditor from '../BasicEditor';
2
+ export declare class TplEditor extends BasicEditor {
3
+ tipName: string;
4
+ settingsSchema: {
5
+ title: string;
6
+ controls: any;
7
+ };
8
+ }
@@ -0,0 +1,8 @@
1
+ import BasicEditor from '../BasicEditor';
2
+ export declare class VideoEditor extends BasicEditor {
3
+ tipName: string;
4
+ settingsSchema: {
5
+ title: string;
6
+ controls: any;
7
+ };
8
+ }
@@ -0,0 +1,15 @@
1
+ /// <reference types="react" />
2
+ import BasicEditor from '../BasicEditor';
3
+ import { RendererProps } from '../types';
4
+ export declare class WizardEditor extends BasicEditor {
5
+ tipName: string;
6
+ settingsSchema: {
7
+ title: string;
8
+ controls: any[];
9
+ };
10
+ constructor(props: RendererProps, context: any);
11
+ handleJumpPrev(): void;
12
+ handleJumpNext(): void;
13
+ switchTo(index: number): void;
14
+ renderSecondaryToolbars(): JSX.Element;
15
+ }
@@ -0,0 +1,19 @@
1
+ /// <reference types="react" />
2
+ import BasicContainerEditor from '../BasicContainerEditor';
3
+ export declare class WizardStepEditor extends BasicContainerEditor {
4
+ tipName: string;
5
+ containers: string[];
6
+ containerLabels: string[];
7
+ settingsSchema: {
8
+ title: string;
9
+ controls: any;
10
+ };
11
+ regions2path: {
12
+ controls: string;
13
+ };
14
+ renderRenderer(props: any): JSX.Element;
15
+ renderFakeBody(): JSX.Element;
16
+ openEditForm(): void;
17
+ acceptChild(type: string, region?: string, rendererId?: string): boolean | null;
18
+ pickChild(region: 'actions' | 'controls', ...args: Array<any>): void;
19
+ }
@@ -0,0 +1,11 @@
1
+ import BasicContainerEditor from '../BasicContainerEditor';
2
+ export declare class WrapperEditor extends BasicContainerEditor {
3
+ tipName: string;
4
+ dropable: boolean;
5
+ containers: string[];
6
+ containerLabels: string[];
7
+ settingsSchema: {
8
+ title: string;
9
+ controls: any;
10
+ };
11
+ }
@@ -0,0 +1,101 @@
1
+ import './Form/Form';
2
+ import './Form/Static';
3
+ import './Form/Text';
4
+ import './Form/Password';
5
+ import './Form/Email';
6
+ import './Form/Url';
7
+ import './Form/Number';
8
+ import './Form/Tag';
9
+ import './Form/Select';
10
+ import './Form/Checkbox';
11
+ import './Form/Switch';
12
+ import './Form/Checkboxes';
13
+ import './Form/Radios';
14
+ import './Form/List';
15
+ import './Form/ChainedSelect';
16
+ import './Form/Date';
17
+ import './Form/Datetime';
18
+ import './Form/Time';
19
+ import './Form/DateRange';
20
+ import './Form/Color';
21
+ import './Form/Textarea';
22
+ import './Form/RichText';
23
+ import './Form/Image';
24
+ import './Form/Range';
25
+ import './Form/File';
26
+ import './Form/Tree';
27
+ import './Form/TreeSelect';
28
+ import './Form/Hidden';
29
+ import './Form/Formula';
30
+ import './Form/Array';
31
+ import './Form/Combo';
32
+ import './Form/Picker';
33
+ import './Form/Editor';
34
+ import './Form/DiffEditor';
35
+ import './Form/Table';
36
+ import './Form/SubForm';
37
+ import './Form/Matrix';
38
+ import './Form/Repeat';
39
+ import './Form/Submit';
40
+ import './Form/Reset';
41
+ import './Form/Button';
42
+ import './Form/ButtonGroup';
43
+ import './Form/ButtonToolbar';
44
+ import './Form/Container';
45
+ import './Form/Control';
46
+ import './Form/FieldSet';
47
+ import './Form/Tabs';
48
+ import './Form/Group';
49
+ import './Form/Panel';
50
+ import './Form/Service';
51
+ import './Form/HBox';
52
+ import './Form/Grid';
53
+ import './Form/QRCode';
54
+ import './Form/NestedSelect';
55
+ import './Form/Rating';
56
+ import './Form/City';
57
+ import './Form/InputGroup';
58
+ import './Action';
59
+ import './Alert';
60
+ import './Audio';
61
+ import './ButtonGroup';
62
+ import './ButtonToolbar';
63
+ import './Card';
64
+ import './Cards';
65
+ import './Carousel';
66
+ import './Chart';
67
+ import './Collapse';
68
+ import './Container';
69
+ import './CRUD';
70
+ import './Date';
71
+ import './Dialog';
72
+ import './DiffEditor';
73
+ import './Divdier';
74
+ import './Drawer';
75
+ import './DropDownButton';
76
+ import './Each';
77
+ import './Grid';
78
+ import './HBox';
79
+ import './IFrame';
80
+ import './Image';
81
+ import './Json';
82
+ import './Link';
83
+ import './List';
84
+ import './Mapping';
85
+ import './Nav';
86
+ import './Operation';
87
+ import './Page';
88
+ import './Panel';
89
+ import './Plain';
90
+ import './Progress';
91
+ import './QRCode';
92
+ import './Service';
93
+ import './Status';
94
+ import './Switch';
95
+ import './Table';
96
+ import './Tabs';
97
+ import './Tasks';
98
+ import './Tpl';
99
+ import './Video';
100
+ import './Wizard';
101
+ import './Wrapper';
@@ -0,0 +1,3 @@
1
+ export declare function getSchemaTplByName(name: string, patch?: object): any;
2
+ export declare function valuePipeOut(value: any): any;
3
+ export declare function defaultValue(defaultValue: any, strictMode?: boolean): (value: any) => any;
package/dist/index.d.ts CHANGED
@@ -148,4 +148,5 @@ import { BasicToolbarPlugin } from './plugin/BasicToolbar';
148
148
  import { VRenderer } from './component/VRenderer';
149
149
  import { RegionWrapper } from './component/RegionWrapper';
150
150
  import { GridPlugin } from './plugin/Grid';
151
- export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };
151
+ import { mapReactElement } from './component/factory';
152
+ export { Editor, MiniEditor, utils, BasePlugin, getSchemaTpl, setSchemaTpl, defaultValue, registerEditorPlugin, mapReactElement, RendererEditor, BasicEditor, CodeEditor, VRenderer, RegionWrapper, mountInIframe, IFramePreview as IFrameEditor, AvailableRenderersPlugin, BasicToolbarPlugin, GridPlugin };