amis-editor 4.0.1-beta.9 → 4.0.2-beta.4
Sign up to get free protection for your applications and to get access to all the features.
- package/dist/cebfe0bc5a1dbde02da1.svg +10 -0
- package/dist/component/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Control/APIControl.d.ts +504 -0
- package/dist/component/Control/OptionControl.d.ts +163 -0
- package/dist/component/Control/PopoverEdit.d.ts +57 -0
- package/dist/component/Control/ValidationControl.d.ts +30 -0
- package/dist/component/Editor.d.ts +1 -0
- package/dist/component/Panel/AMisCodeEditor.d.ts +37 -0
- package/dist/component/Panel/AvailableRenderersPanel.d.ts +10 -0
- package/dist/component/Panel/CodeEditorPanel.d.ts +6 -0
- package/dist/component/Panel/ContextMenuPanel.d.ts +8 -0
- package/dist/component/Panel/DrawerPanel.d.ts +15 -0
- package/dist/component/Panel/DrawerRendererPanel.d.ts +15 -0
- package/dist/component/Panel/InsertSubRendererPanel.d.ts +11 -0
- package/dist/component/Panel/LeftPanels.d.ts +20 -0
- package/dist/component/Panel/Outline.d.ts +18 -0
- package/dist/component/Panel/RenderersPanel.d.ts +32 -0
- package/dist/component/Panel/RightPanels.d.ts +21 -0
- package/dist/component/Panel/TargetNamePanel.d.ts +7 -0
- package/dist/component/Preview.d.ts +1 -0
- package/dist/component/ScaffoldModal.d.ts +1 -1
- package/dist/component/base/BackTop.d.ts +26 -0
- package/dist/component/base/ErrorRenderer.d.ts +4 -0
- package/dist/component/base/InputComponentName.d.ts +8 -0
- package/dist/component/base/SearchRendererPanel.d.ts +59 -0
- package/dist/component/base/WidthDraggableBtn.d.ts +16 -0
- package/dist/component/base/WidthDraggableContainer.d.ts +2 -0
- package/dist/component/remarkTpl.d.ts +150 -0
- package/dist/exports.d.ts +8 -0
- package/dist/exports.min.js +1 -0
- package/dist/index.d.ts +18 -14
- package/dist/index.min.js +1 -1
- package/dist/manager.d.ts +7 -5
- package/dist/plugin/Alert.d.ts +2 -1
- package/dist/plugin/AnchorNav.d.ts +1 -0
- package/dist/plugin/Audio.d.ts +1 -0
- package/dist/plugin/Avatar.d.ts +1 -0
- package/dist/plugin/Breadcrumb.d.ts +2 -0
- package/dist/plugin/Button.d.ts +1 -0
- package/dist/plugin/ButtonGroup.d.ts +1 -0
- package/dist/plugin/ButtonToolbar.d.ts +1 -0
- package/dist/plugin/CRUD.d.ts +1 -0
- package/dist/plugin/Card.d.ts +1 -1
- package/dist/plugin/Cards.d.ts +1 -0
- package/dist/plugin/Carousel.d.ts +1 -0
- package/dist/plugin/Chart.d.ts +1 -0
- package/dist/plugin/CodeView.d.ts +1 -0
- package/dist/plugin/Collapse.d.ts +1 -0
- package/dist/plugin/Container.d.ts +1 -0
- package/dist/plugin/Custom.d.ts +1 -0
- package/dist/plugin/Date.d.ts +1 -0
- package/dist/plugin/Datetime.d.ts +1 -0
- package/dist/plugin/Dialog.d.ts +1 -0
- package/dist/plugin/Divider.d.ts +1 -0
- package/dist/plugin/Drawer.d.ts +1 -0
- package/dist/plugin/DropDownButton.d.ts +1 -0
- package/dist/plugin/Each.d.ts +1 -0
- package/dist/plugin/ErrorRenderer.d.ts +1 -0
- package/dist/plugin/Flex.d.ts +2 -1
- package/dist/plugin/Form/ButtonGroupSelect.d.ts +1 -0
- package/dist/plugin/Form/ButtonToolbar.d.ts +1 -0
- package/dist/plugin/Form/ChainedSelect.d.ts +1 -0
- package/dist/plugin/Form/Checkbox.d.ts +1 -0
- package/dist/plugin/Form/Checkboxes.d.ts +1 -0
- package/dist/plugin/Form/CodeEditor.d.ts +40 -0
- package/dist/plugin/Form/Combo.d.ts +1 -0
- package/dist/plugin/Form/ConditionBuilder.d.ts +1 -0
- package/dist/plugin/Form/Control.d.ts +1 -0
- package/dist/plugin/Form/DiffEditor.d.ts +1 -0
- package/dist/plugin/Form/FieldSet.d.ts +1 -0
- package/dist/plugin/Form/Form.d.ts +1 -0
- package/dist/plugin/Form/Formula.d.ts +1 -0
- package/dist/plugin/Form/Group.d.ts +1 -0
- package/dist/plugin/Form/Hidden.d.ts +1 -0
- package/dist/plugin/Form/InputArray.d.ts +2 -0
- package/dist/plugin/Form/InputCity.d.ts +1 -0
- package/dist/plugin/Form/InputColor.d.ts +1 -0
- package/dist/plugin/Form/InputDate.d.ts +1 -0
- package/dist/plugin/Form/InputDateRange.d.ts +1 -0
- package/dist/plugin/Form/InputDateTime.d.ts +1 -0
- package/dist/plugin/Form/InputDateTimeRange.d.ts +1 -0
- package/dist/plugin/Form/InputEmail.d.ts +1 -0
- package/dist/plugin/Form/InputExcel.d.ts +1 -0
- package/dist/plugin/Form/InputFile.d.ts +1 -0
- package/dist/plugin/Form/InputGroup.d.ts +1 -2
- package/dist/plugin/Form/InputImage.d.ts +1 -0
- package/dist/plugin/Form/InputKV.d.ts +1 -0
- package/dist/plugin/Form/InputMonth.d.ts +1 -0
- package/dist/plugin/Form/InputMonthRange.d.ts +1 -0
- package/dist/plugin/Form/InputNumber.d.ts +1 -0
- package/dist/plugin/Form/InputPassword.d.ts +1 -0
- package/dist/plugin/Form/InputQuarter.d.ts +1 -0
- package/dist/plugin/Form/InputQuarterRange.d.ts +1 -0
- package/dist/plugin/Form/InputRange.d.ts +1 -0
- package/dist/plugin/Form/InputRating.d.ts +2 -1
- package/dist/plugin/Form/InputRepeat.d.ts +1 -0
- package/dist/plugin/Form/InputRichText.d.ts +1 -0
- package/dist/plugin/Form/InputSubForm.d.ts +1 -0
- package/dist/plugin/Form/InputTable.d.ts +1 -1
- package/dist/plugin/Form/InputTag.d.ts +1 -0
- package/dist/plugin/Form/InputText.d.ts +1 -0
- package/dist/plugin/Form/InputTime.d.ts +1 -0
- package/dist/plugin/Form/InputTree.d.ts +1 -0
- package/dist/plugin/Form/InputURL.d.ts +1 -0
- package/dist/plugin/Form/InputYear.d.ts +1 -0
- package/dist/plugin/Form/ListSelect.d.ts +1 -0
- package/dist/plugin/Form/LocationPicker.d.ts +1 -0
- package/dist/plugin/Form/MatrixCheckboxes.d.ts +1 -0
- package/dist/plugin/Form/NestedSelect.d.ts +1 -0
- package/dist/plugin/Form/Picker.d.ts +1 -0
- package/dist/plugin/Form/Radios.d.ts +1 -0
- package/dist/plugin/Form/Select.d.ts +1 -0
- package/dist/plugin/Form/Static.d.ts +1 -1
- package/dist/plugin/Form/Switch.d.ts +1 -0
- package/dist/plugin/Form/TabsTransfer.d.ts +1 -0
- package/dist/plugin/Form/Textarea.d.ts +1 -0
- package/dist/plugin/Form/Transfer.d.ts +1 -0
- package/dist/plugin/Form/TreeSelect.d.ts +1 -0
- package/dist/plugin/Form/UUID.d.ts +1 -0
- package/dist/plugin/Grid.d.ts +1 -0
- package/dist/plugin/HBox.d.ts +1 -1
- package/dist/plugin/IFrame.d.ts +1 -0
- package/dist/plugin/Image.d.ts +1 -0
- package/dist/plugin/Images.d.ts +1 -0
- package/dist/plugin/Json.d.ts +1 -0
- package/dist/plugin/Link.d.ts +1 -0
- package/dist/plugin/List.d.ts +1 -0
- package/dist/plugin/ListItem.d.ts +1 -1
- package/dist/plugin/Log.d.ts +1 -0
- package/dist/plugin/Mapping.d.ts +1 -0
- package/dist/plugin/Markdown.d.ts +1 -0
- package/dist/plugin/Nav.d.ts +1 -0
- package/dist/plugin/Operation.d.ts +1 -0
- package/dist/plugin/Others/Action.d.ts +8 -0
- package/dist/plugin/Others/BasicToolbar.d.ts +11 -0
- package/dist/plugin/Others/DataDebug.d.ts +19 -0
- package/dist/plugin/Others/TableCell.d.ts +8 -0
- package/dist/plugin/Others/Unknown.d.ts +5 -0
- package/dist/plugin/Page.d.ts +1 -0
- package/dist/plugin/Panel/AvailableRenderers.d.ts +8 -0
- package/dist/plugin/Panel/Code.d.ts +9 -0
- package/dist/plugin/Panel/Name.d.ts +8 -0
- package/dist/plugin/Panel.d.ts +16 -3
- package/dist/plugin/Plain.d.ts +1 -0
- package/dist/plugin/Progress.d.ts +1 -0
- package/dist/plugin/Property.d.ts +1 -0
- package/dist/plugin/QRCode.d.ts +1 -0
- package/dist/plugin/Reset.d.ts +1 -0
- package/dist/plugin/Service.d.ts +1 -0
- package/dist/plugin/Sparkline.d.ts +1 -0
- package/dist/plugin/Status.d.ts +1 -0
- package/dist/plugin/Steps.d.ts +1 -0
- package/dist/plugin/Submit.d.ts +1 -0
- package/dist/plugin/Table.d.ts +1 -0
- package/dist/plugin/TableCell.d.ts +0 -1
- package/dist/plugin/TableView.d.ts +1 -0
- package/dist/plugin/Tabs.d.ts +1 -0
- package/dist/plugin/Tasks.d.ts +1 -0
- package/dist/plugin/Time.d.ts +1 -0
- package/dist/plugin/Tpl.d.ts +1 -0
- package/dist/plugin/Video.d.ts +1 -0
- package/dist/plugin/WebComponent.d.ts +3 -26
- package/dist/plugin/Wizard.d.ts +1 -0
- package/dist/plugin/Wrapper.d.ts +1 -0
- package/dist/plugin.d.ts +17 -4
- package/dist/store/editor.d.ts +54 -4
- package/dist/style.css +1 -1
- package/dist/util.d.ts +2 -2
- package/package.json +21 -13
- package/static/side_hide_left.svg +10 -0
- package/.editorconfig +0 -12
- package/.fecsrc +0 -8
- package/.prettierrc +0 -20
- package/publish-local.sh +0 -37
- package/rollup.config.js +0 -24
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "amis-editor",
|
3
|
-
"version": "4.0.
|
3
|
+
"version": "4.0.2-beta.4",
|
4
4
|
"description": "amis 可视化编辑器",
|
5
5
|
"main": "dist/index.min.js",
|
6
6
|
"types": "dist/index.d.ts",
|
@@ -10,7 +10,7 @@
|
|
10
10
|
"serve": "fis3 server start --www ./public --port 9999 --no-daemon --no-browse",
|
11
11
|
"stop": "fis3 server stop",
|
12
12
|
"dev": "fis3 release -cwd ./public",
|
13
|
-
"prettier": "prettier --write '{src,examples}
|
13
|
+
"prettier": "prettier --write '{src,scss,examples}/**/**/*.{js,jsx,ts,tsx,scss,json}'",
|
14
14
|
"build": "webpack",
|
15
15
|
"publish-to-internal": "git pull && sh publish.sh",
|
16
16
|
"publish2local": "sh publish-local.sh"
|
@@ -21,21 +21,31 @@
|
|
21
21
|
],
|
22
22
|
"author": "@fex",
|
23
23
|
"license": "ISC",
|
24
|
+
"files": [
|
25
|
+
"dist/*",
|
26
|
+
"static/*"
|
27
|
+
],
|
28
|
+
"lint-staged": {
|
29
|
+
"{src,scss,examples}/**/**/*.{js,jsx,ts,tsx,scss,json}": [
|
30
|
+
"prettier --write"
|
31
|
+
]
|
32
|
+
},
|
24
33
|
"dependencies": {
|
25
|
-
"@types/deep-diff": "^1.0.0",
|
26
34
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
27
35
|
"deep-diff": "1.0.2",
|
28
|
-
"json-ast-comments": "^1.0
|
36
|
+
"json-ast-comments": "^1.1.0",
|
29
37
|
"mobx": "^4.5.0",
|
30
38
|
"mobx-react": "^6.1.4",
|
31
39
|
"mobx-state-tree": "^3.17.3",
|
32
|
-
"react-json-view": "^1.21.3"
|
40
|
+
"react-json-view": "^1.21.3",
|
41
|
+
"sortablejs": "^1.14.0"
|
33
42
|
},
|
34
43
|
"devDependencies": {
|
35
44
|
"@fortawesome/fontawesome-free": "^5.15.3",
|
36
45
|
"@svgr/webpack": "^5.5.0",
|
37
46
|
"@types/async": "^2.0.45",
|
38
47
|
"@types/classnames": "^2.2.3",
|
48
|
+
"@types/deep-diff": "^1.0.0",
|
39
49
|
"@types/history": "^4.6.0",
|
40
50
|
"@types/hoist-non-react-statics": "^3.0.1",
|
41
51
|
"@types/lodash": "^4.14.76",
|
@@ -45,7 +55,9 @@
|
|
45
55
|
"@types/react-dom": "^16.9.4",
|
46
56
|
"@types/react-overlays": "^0.6.9",
|
47
57
|
"@types/react-router": "^4.0.16",
|
48
|
-
"
|
58
|
+
"@types/sortablejs": "^1.10.7",
|
59
|
+
"ajv": "^8.8.2",
|
60
|
+
"amis": "^1.6.3",
|
49
61
|
"axios": "0.21.1",
|
50
62
|
"concurrently": "^6.2.0",
|
51
63
|
"css-loader": "^6.2.0",
|
@@ -60,10 +72,10 @@
|
|
60
72
|
"fis3-prepackager-stand-alone-pack": "^1.0.1",
|
61
73
|
"fis3-preprocessor-js-require-css": "^0.1.3",
|
62
74
|
"fis3-preprocessor-js-require-file": "^0.1.3",
|
63
|
-
"husky": "^
|
75
|
+
"husky": "^7.0.0",
|
76
|
+
"lint-staged": "^12.1.2",
|
64
77
|
"mini-css-extract-plugin": "^2.3.0",
|
65
78
|
"prettier": "^2.2.1",
|
66
|
-
"pretty-quick": "^3.1.0",
|
67
79
|
"react": "^16.14.0",
|
68
80
|
"react-dom": "^16.14.0",
|
69
81
|
"react-router": "3.2.0",
|
@@ -74,15 +86,11 @@
|
|
74
86
|
"tslib": "^2.3.1",
|
75
87
|
"typescript": "^4.4.2",
|
76
88
|
"webpack": "^5.52.1",
|
89
|
+
"webpack-bundle-analyzer": "^4.5.0",
|
77
90
|
"webpack-cli": "^4.8.0",
|
78
91
|
"webpack-node-externals": "^3.0.0"
|
79
92
|
},
|
80
93
|
"peerDependencies": {
|
81
94
|
"amis": "*"
|
82
|
-
},
|
83
|
-
"husky": {
|
84
|
-
"hooks": {
|
85
|
-
"pre-commit": "pretty-quick --staged"
|
86
|
-
}
|
87
95
|
}
|
88
96
|
}
|
@@ -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>
|
package/.editorconfig
DELETED
package/.fecsrc
DELETED
package/.prettierrc
DELETED
@@ -1,20 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"printWidth": 80,
|
3
|
-
"tabWidth": 2,
|
4
|
-
"useTabs": false,
|
5
|
-
"singleQuote": true,
|
6
|
-
"semi": true,
|
7
|
-
"trailingComma": "none",
|
8
|
-
"bracketSpacing": false,
|
9
|
-
"quoteProps": "consistent",
|
10
|
-
"arrowParens": "avoid",
|
11
|
-
"jsxBracketSameLine": false,
|
12
|
-
"overrides": [
|
13
|
-
{
|
14
|
-
"files": ["fis-conf.js"],
|
15
|
-
"options": {
|
16
|
-
"tabWidth": 4
|
17
|
-
}
|
18
|
-
}
|
19
|
-
]
|
20
|
-
}
|
package/publish-local.sh
DELETED
@@ -1,37 +0,0 @@
|
|
1
|
-
#!/bin/bash
|
2
|
-
set -e
|
3
|
-
|
4
|
-
rm -rf npm
|
5
|
-
mkdir npm
|
6
|
-
|
7
|
-
cp package.json npm
|
8
|
-
cp -rf node_modules npm
|
9
|
-
cp -rf src npm
|
10
|
-
cp -rf scss npm
|
11
|
-
cp -rf static npm
|
12
|
-
cp webpack.config.js npm
|
13
|
-
cp tsconfig.json npm
|
14
|
-
|
15
|
-
cd npm
|
16
|
-
|
17
|
-
sed -i '' -e 's/\"name\": \"amis-editor\"/\"name\": \"@fex\/amis-editor\"/g' ./package.json
|
18
|
-
sed -i '' -e 's/\"amis\":/\"@fex\/amis\":/g' ./package.json
|
19
|
-
|
20
|
-
for f in $(find ./src -name "*.ts"); do
|
21
|
-
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
22
|
-
done
|
23
|
-
|
24
|
-
for f in $(find ./src -name "*.tsx"); do
|
25
|
-
sed -i '' -e "s/from \'amis/from \'@fex\/amis/g" $f
|
26
|
-
done
|
27
|
-
|
28
|
-
mkdir -p node_modules/@fex
|
29
|
-
cp -rf node_modules/amis node_modules/@fex
|
30
|
-
|
31
|
-
npm run build
|
32
|
-
rm -rf src
|
33
|
-
rm -rf node_modules
|
34
|
-
npm publish --registry=http://registry.npm.baidu-int.com
|
35
|
-
|
36
|
-
cd ..
|
37
|
-
# rm -rf npm
|
package/rollup.config.js
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
/* eslint-disable */
|
2
|
-
import commonjs from '@rollup/plugin-commonjs';
|
3
|
-
import typescript from '@rollup/plugin-typescript';
|
4
|
-
|
5
|
-
export default {
|
6
|
-
input: 'src/index.ts',
|
7
|
-
output: {
|
8
|
-
dir: './dist',
|
9
|
-
entryFileNames: 'index.min.js',
|
10
|
-
format: 'umd',
|
11
|
-
name: 'amis-editor'
|
12
|
-
},
|
13
|
-
plugins: [
|
14
|
-
typescript({
|
15
|
-
exclude: 'node_modules/**',
|
16
|
-
declaration: true,
|
17
|
-
declarationDir: './dist',
|
18
|
-
rootDir: './src',
|
19
|
-
sourceMap: false,
|
20
|
-
allowJs: false
|
21
|
-
}),
|
22
|
-
commonjs({extensions: ['.js', '.ts'], transformMixedEsModules: true}) // the ".ts" extension is required
|
23
|
-
]
|
24
|
-
};
|