@cicctencent/low-code-editor 1.1.9-beta.5 → 1.1.10
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/ActivityBar/index.vue.d.ts +7 -7
- package/dist/ComponentTree/components/List.vue.d.ts +6 -6
- package/dist/ComponentTree/index.vue.d.ts +6 -6
- package/dist/DataSource/index.vue.d.ts +6 -6
- package/dist/HeaderBar/components/BarTooltip.vue.d.ts +5 -5
- package/dist/HeaderBar/index.vue.d.ts +6 -6
- package/dist/NavTree/index.vue.d.ts +6 -6
- package/dist/SchemaConfig/index.vue.d.ts +7 -7
- package/dist/SidebarPane/index.vue.d.ts +6 -6
- package/dist/components/ComponentTreeFavorites/components/List.vue.d.ts +6 -6
- package/dist/components/ComponentTreeFavorites/components/Tips.vue.d.ts +5 -5
- package/dist/components/ComponentTreeFavorites/index.vue.d.ts +6 -6
- package/dist/components/ImageGuide/index.vue.d.ts +6 -6
- package/dist/components.d.ts +3 -3
- package/dist/composables/useComponentTree.d.ts +2 -2
- package/dist/domain/EditorDomain.d.ts +3 -3
- package/dist/editor.d.ts +197 -17
- package/dist/editor.vue.d.ts +6 -6
- package/dist/formily/DataBinding/index.vue.d.ts +7 -7
- package/dist/formily/MenuTable/PageList.vue.d.ts +6 -6
- package/dist/formily/MenuTable/index.vue.d.ts +6 -6
- package/dist/formily/MenuTable/useMenuTable.d.ts +9 -195
- package/dist/index.css +534 -534
- package/dist/index.d.ts +15 -15
- package/dist/index.js +11010 -2493
- package/package.json +15 -11
- package/src/ActivityBar/index.vue +2 -2
- package/src/ComponentTree/components/List.vue +2 -2
- package/src/ComponentTree/index.vue +2 -2
- package/src/DataSource/index.vue +3 -3
- package/src/HeaderBar/components/BarDialog.vue +2 -2
- package/src/HeaderBar/index.vue +2 -2
- package/src/NavTree/index.vue +5 -5
- package/src/SchemaConfig/index.vue +3 -3
- package/src/SidebarPane/index.vue +1 -1
- package/src/components/ComponentTreeFavorites/components/List.vue +2 -2
- package/src/components/ComponentTreeFavorites/index.vue +3 -3
- package/src/domain/EditorDomain.ts +3 -3
- package/src/editor.ts +5 -5
- package/src/editor.vue +3 -3
- package/src/formily/ActivityBar/index.ts +1 -1
- package/src/formily/ComponentTree/index.ts +1 -1
- package/src/formily/DataBinding/index.ts +1 -1
- package/src/formily/DataBinding/index.vue +3 -3
- package/src/formily/DataSource/index.ts +1 -1
- package/src/formily/MenuTable/PageList.vue +1 -1
- package/src/formily/MenuTable/index.ts +1 -1
- package/src/formily/MenuTable/index.vue +1 -1
- package/src/formily/MenuTable/useMenuTable.ts +2 -2
- package/src/formily/NavTree/index.ts +1 -1
- package/src/formily/SidebarPane/index.ts +1 -1
- package/src/formily/SidebarPane/index.vue +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cicctencent/low-code-editor",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.10",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -8,26 +8,26 @@
|
|
|
8
8
|
"build": "rollup --config && rollup --config ../../scripts/rollup.dts.config.js --bundleConfigAsCjs && node ../../scripts/replace.js"
|
|
9
9
|
},
|
|
10
10
|
"peerDependencies": {
|
|
11
|
-
"@
|
|
11
|
+
"@cicctencent/formily": ">= 0.0.78",
|
|
12
12
|
"v-contextmenu": ">= 3.0.0",
|
|
13
13
|
"vue": ">= 3.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@
|
|
17
|
-
"@
|
|
18
|
-
"@
|
|
19
|
-
"@cicctencent/low-code-core": "
|
|
20
|
-
"@cicctencent/low-code-validate": "
|
|
21
|
-
"@
|
|
22
|
-
"jm-jsruntime": "^1.0.
|
|
16
|
+
"@cicctencent/ark-util": "^0.0.30",
|
|
17
|
+
"@cicctencent/formily": "^0.0.1",
|
|
18
|
+
"@cicctencent/jtui": "^2.2.13",
|
|
19
|
+
"@cicctencent/low-code-core": "latest",
|
|
20
|
+
"@cicctencent/low-code-validate": "latest",
|
|
21
|
+
"@cicctencent/postmessage-channel": "^1.0.0",
|
|
22
|
+
"jm-jsruntime": "^1.0.7",
|
|
23
23
|
"pinyin-match": "1.2.4",
|
|
24
24
|
"v-contextmenu": ">= 3.0.0",
|
|
25
25
|
"vue": ">= 3.0.0",
|
|
26
26
|
"vuedraggable": "^4.1.0"
|
|
27
27
|
},
|
|
28
28
|
"devDependencies": {
|
|
29
|
+
"@cicctencent/icons-vue": "^0.2.8",
|
|
29
30
|
"@formily/grid": "^2.2.29",
|
|
30
|
-
"@jt/icons-vue": "^0.2.8",
|
|
31
31
|
"@rollup/plugin-commonjs": "^17.0.0",
|
|
32
32
|
"@rollup/plugin-image": "^2.1.1",
|
|
33
33
|
"@rollup/plugin-node-resolve": "^15.1.0",
|
|
@@ -56,5 +56,9 @@
|
|
|
56
56
|
},
|
|
57
57
|
"keywords": [],
|
|
58
58
|
"author": "",
|
|
59
|
-
"license": "ISC"
|
|
59
|
+
"license": "ISC",
|
|
60
|
+
"publishConfig": {
|
|
61
|
+
"access": "public",
|
|
62
|
+
"registry": "https://registry.npmjs.org/"
|
|
63
|
+
}
|
|
60
64
|
}
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
<script lang="ts" setup>
|
|
21
21
|
//@ts-nocheck
|
|
22
22
|
import { PropType } from 'vue';
|
|
23
|
-
import * as ElIcons from '@
|
|
24
|
-
import { ActivityBarType } from '@
|
|
23
|
+
import * as ElIcons from '@cicctencent/icons-vue';
|
|
24
|
+
import { ActivityBarType } from '@cicctencent/low-code-core';
|
|
25
25
|
import { defineProps, defineEmits } from 'vue';
|
|
26
26
|
const props = defineProps({
|
|
27
27
|
modelValue: {
|
|
@@ -84,8 +84,8 @@ import {
|
|
|
84
84
|
inject,
|
|
85
85
|
Ref,
|
|
86
86
|
} from 'vue';
|
|
87
|
-
import { ComponentTreeItem, ComponentTree } from '@
|
|
88
|
-
import { CaretBottom, CaretRight } from '@
|
|
87
|
+
import { ComponentTreeItem, ComponentTree } from '@cicctencent/low-code-core';
|
|
88
|
+
import { CaretBottom, CaretRight } from '@cicctencent/icons-vue';
|
|
89
89
|
const props = withDefaults(
|
|
90
90
|
defineProps<{
|
|
91
91
|
componentTree?: ComponentTree[];
|
|
@@ -18,9 +18,9 @@
|
|
|
18
18
|
|
|
19
19
|
<script lang="ts" setup>
|
|
20
20
|
import { defineProps, withDefaults, defineEmits, computed } from 'vue';
|
|
21
|
-
import { Search } from '@
|
|
21
|
+
import { Search } from '@cicctencent/icons-vue';
|
|
22
22
|
import List from './components/List.vue';
|
|
23
|
-
import { ComponentTreeData, LowCodeKey } from '@
|
|
23
|
+
import { ComponentTreeData, LowCodeKey } from '@cicctencent/low-code-core';
|
|
24
24
|
import useComponentTree from '../composables/useComponentTree';
|
|
25
25
|
// 如果直接传对象,会频繁更新DOM,这里传JSON会好很多。在vue内部判断是否需要更新是用:
|
|
26
26
|
// nextProps[key] !== prevProps[key] && !isEmitListener(emits, key)
|
package/src/DataSource/index.vue
CHANGED
|
@@ -275,12 +275,12 @@
|
|
|
275
275
|
<script lang="ts" setup>
|
|
276
276
|
//@ts-nocheck
|
|
277
277
|
import { watch, ref, reactive, withDefaults, defineProps, defineEmits } from 'vue';
|
|
278
|
-
import { Search, Warning } from '@
|
|
278
|
+
import { Search, Warning } from '@cicctencent/icons-vue';
|
|
279
279
|
import Draggable from 'vuedraggable';
|
|
280
280
|
import '../config/ace.config';
|
|
281
281
|
import { VAceEditor } from 'vue3-ace-editor';
|
|
282
|
-
import { DataSource, DataSourceType } from '@
|
|
283
|
-
import { FormInstance } from '@
|
|
282
|
+
import { DataSource, DataSourceType } from '@cicctencent/low-code-core';
|
|
283
|
+
import { FormInstance } from '@cicctencent/jtui';
|
|
284
284
|
enum DataPoolWidth {
|
|
285
285
|
FOLD = 300,
|
|
286
286
|
EXPAND = 710,
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
<script lang="ts" setup>
|
|
19
19
|
// @ts-nocheck
|
|
20
20
|
import { ref, withDefaults, defineProps, computed } from 'vue';
|
|
21
|
-
import { VueForm } from '@
|
|
22
|
-
import { Schema } from '@
|
|
21
|
+
import { VueForm } from '@cicctencent/formily';
|
|
22
|
+
import { Schema } from '@cicctencent/low-code-core';
|
|
23
23
|
|
|
24
24
|
const props = withDefaults(
|
|
25
25
|
defineProps<{
|
package/src/HeaderBar/index.vue
CHANGED
|
@@ -144,10 +144,10 @@ import {
|
|
|
144
144
|
computed,
|
|
145
145
|
} from 'vue';
|
|
146
146
|
|
|
147
|
-
import { FunctionData, Simulator } from '@
|
|
147
|
+
import { FunctionData, Simulator } from '@cicctencent/low-code-core';
|
|
148
148
|
import { changeEnum2Array } from '../utils';
|
|
149
149
|
import BarTooltip from './components/BarTooltip.vue';
|
|
150
|
-
import { debounce } from '@
|
|
150
|
+
import { debounce } from '@cicctencent/ark-util';
|
|
151
151
|
|
|
152
152
|
const props = withDefaults(
|
|
153
153
|
defineProps<{
|
package/src/NavTree/index.vue
CHANGED
|
@@ -78,10 +78,10 @@
|
|
|
78
78
|
|
|
79
79
|
<script lang="ts" setup>
|
|
80
80
|
import { ref, nextTick, computed, ComputedRef, watch } from 'vue';
|
|
81
|
-
import type { ElTree, ElInput } from '@
|
|
82
|
-
import * as IconMap from '@
|
|
83
|
-
import type Node from '@
|
|
84
|
-
import type { DropType } from '@
|
|
81
|
+
import type { ElTree, ElInput } from '@cicctencent/jtui';
|
|
82
|
+
import * as IconMap from '@cicctencent/icons-vue';
|
|
83
|
+
import type Node from '@cicctencent/jtui/es/components/tree/src/model/node';
|
|
84
|
+
import type { DropType } from '@cicctencent/jtui/es/components/tree/src/tree.type';
|
|
85
85
|
import {
|
|
86
86
|
directive as vContextmenu,
|
|
87
87
|
Contextmenu,
|
|
@@ -94,7 +94,7 @@ import {
|
|
|
94
94
|
NavTreeData,
|
|
95
95
|
LowCodeKey,
|
|
96
96
|
ComponentType,
|
|
97
|
-
} from '@
|
|
97
|
+
} from '@cicctencent/low-code-core';
|
|
98
98
|
|
|
99
99
|
interface NavTree extends NavTreeData {
|
|
100
100
|
navKey: string;
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<script lang="ts" setup>
|
|
29
29
|
// @ts-nocheck
|
|
30
|
-
import { VueForm } from '@
|
|
30
|
+
import { VueForm } from '@cicctencent/formily';
|
|
31
31
|
|
|
32
32
|
import {
|
|
33
33
|
ref,
|
|
@@ -38,8 +38,8 @@ import {
|
|
|
38
38
|
watch,
|
|
39
39
|
nextTick,
|
|
40
40
|
} from 'vue';
|
|
41
|
-
import { SchemaData } from '@
|
|
42
|
-
import { cloneDeep, isEqual } from '@
|
|
41
|
+
import { SchemaData } from '@cicctencent/low-code-core';
|
|
42
|
+
import { cloneDeep, isEqual } from '@cicctencent/ark-util';
|
|
43
43
|
|
|
44
44
|
const props = withDefaults(
|
|
45
45
|
defineProps<{
|
|
@@ -70,7 +70,7 @@
|
|
|
70
70
|
|
|
71
71
|
<script lang="ts" setup>
|
|
72
72
|
// @ts-nocheck
|
|
73
|
-
import { Close } from '@
|
|
73
|
+
import { Close } from '@cicctencent/icons-vue';
|
|
74
74
|
import { ref, watch, onMounted, defineEmits, withDefaults, defineProps } from 'vue';
|
|
75
75
|
const props = withDefaults(
|
|
76
76
|
defineProps<{
|
|
@@ -113,12 +113,12 @@
|
|
|
113
113
|
|
|
114
114
|
<script lang="ts" setup>
|
|
115
115
|
import { ref, watch, reactive, inject, Ref, computed, onMounted } from 'vue';
|
|
116
|
-
import { ComponentTreeItem, ComponentTree } from '@
|
|
116
|
+
import { ComponentTreeItem, ComponentTree } from '@cicctencent/low-code-core';
|
|
117
117
|
import Tips from './Tips.vue';
|
|
118
118
|
import CollectSelectIcon from '../../../assets/img/tool/collect.svg';
|
|
119
119
|
import CollectIcon from '../../../assets/img/tool/union.svg';
|
|
120
120
|
import InfoIcon from '../../../assets/img/tool/info.svg';
|
|
121
|
-
import { CaretBottom, CaretRight } from '@
|
|
121
|
+
import { CaretBottom, CaretRight } from '@cicctencent/icons-vue';
|
|
122
122
|
const props = withDefaults(
|
|
123
123
|
defineProps<{
|
|
124
124
|
componentTree?: ComponentTree[];
|
|
@@ -7,15 +7,15 @@ import {
|
|
|
7
7
|
computed,
|
|
8
8
|
watch,
|
|
9
9
|
} from 'vue';
|
|
10
|
-
import { Search } from '@
|
|
10
|
+
import { Search } from '@cicctencent/icons-vue';
|
|
11
11
|
import List from './components/List.vue';
|
|
12
|
-
import { ComponentTreeData, LowCodeKey } from '@
|
|
12
|
+
import { ComponentTreeData, LowCodeKey } from '@cicctencent/low-code-core';
|
|
13
13
|
import AllIcon from '../../assets/img/tool/all.svg';
|
|
14
14
|
import AllSelectIcon from '../../assets/img/tool/all-select.svg';
|
|
15
15
|
import collectionIcon from '../../assets/img/tool/collection-tag.svg';
|
|
16
16
|
import collectionSelectIcon from '../../assets/img/tool/collection-select.svg';
|
|
17
17
|
import { favoriteRebuild } from '../../utils';
|
|
18
|
-
import { cloneDeep } from '@
|
|
18
|
+
import { cloneDeep } from '@cicctencent/ark-util';
|
|
19
19
|
|
|
20
20
|
import useComponentTree from '../../composables/useComponentTree';
|
|
21
21
|
|
|
@@ -5,10 +5,10 @@ import {
|
|
|
5
5
|
toPlainObject,
|
|
6
6
|
isEqual,
|
|
7
7
|
isPlainObject,
|
|
8
|
-
} from '@
|
|
9
|
-
import { Communicator } from '@
|
|
8
|
+
} from '@cicctencent/ark-util';
|
|
9
|
+
import { Communicator } from '@cicctencent/postmessage-channel';
|
|
10
10
|
|
|
11
|
-
import { CheckResponseItem, EditorConfig, LowCodeKey } from '@
|
|
11
|
+
import { CheckResponseItem, EditorConfig, LowCodeKey } from '@cicctencent/low-code-core';
|
|
12
12
|
|
|
13
13
|
const logTag = '[low-code-editor EditorDomain]';
|
|
14
14
|
const logInfo = log(logTag);
|
package/src/editor.ts
CHANGED
|
@@ -10,8 +10,8 @@ import {
|
|
|
10
10
|
provide,
|
|
11
11
|
readonly,
|
|
12
12
|
} from 'vue';
|
|
13
|
-
import PostMessage from '@
|
|
14
|
-
import { ElMessage, ElMessageBox } from '@
|
|
13
|
+
import PostMessage from '@cicctencent/postmessage-channel';
|
|
14
|
+
import { ElMessage, ElMessageBox } from '@cicctencent/jtui';
|
|
15
15
|
import EditorDomain, { EditorDomainState } from './domain/EditorDomain';
|
|
16
16
|
import {
|
|
17
17
|
CheckResponseItem,
|
|
@@ -19,9 +19,9 @@ import {
|
|
|
19
19
|
ConfirmMessageBoxData,
|
|
20
20
|
EditDialogRenderData,
|
|
21
21
|
SendReq,
|
|
22
|
-
} from '@
|
|
23
|
-
import { VueForm } from '@
|
|
24
|
-
import { isEqual, toPlainObject } from '@
|
|
22
|
+
} from '@cicctencent/low-code-core';
|
|
23
|
+
import { VueForm } from '@cicctencent/formily';
|
|
24
|
+
import { isEqual, toPlainObject } from '@cicctencent/ark-util';
|
|
25
25
|
|
|
26
26
|
export default function (props, emits) {
|
|
27
27
|
const state = reactive<EditorDomainState>({
|
package/src/editor.vue
CHANGED
|
@@ -158,7 +158,7 @@ import {
|
|
|
158
158
|
onMounted,
|
|
159
159
|
watch,
|
|
160
160
|
} from 'vue';
|
|
161
|
-
import { PostMessageOption } from '@
|
|
161
|
+
import { PostMessageOption } from '@cicctencent/postmessage-channel';
|
|
162
162
|
import HeaderBar from './HeaderBar/index.vue';
|
|
163
163
|
import NavTree from './NavTree/index.vue';
|
|
164
164
|
import ComponentTree from './ComponentTree/index.vue';
|
|
@@ -166,10 +166,10 @@ import SchemaConfig from './SchemaConfig/index.vue';
|
|
|
166
166
|
import ImageGuide from './components/ImageGuide/index.vue';
|
|
167
167
|
import ActivityBar from './ActivityBar/index.vue';
|
|
168
168
|
import SidebarPane from './SidebarPane/index.vue';
|
|
169
|
-
import { Project } from '@
|
|
169
|
+
import { Project } from '@cicctencent/low-code-core';
|
|
170
170
|
import useEditor from './editor';
|
|
171
171
|
import { editorComponents } from './components';
|
|
172
|
-
import { VueForm } from '@
|
|
172
|
+
import { VueForm } from '@cicctencent/formily';
|
|
173
173
|
import EditorDomain from './domain/EditorDomain';
|
|
174
174
|
|
|
175
175
|
interface MessageReq {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { connect, mapProps } from '@formily/vue';
|
|
2
|
-
import { transformComponent } from '@
|
|
2
|
+
import { transformComponent } from '@cicctencent/formily';
|
|
3
3
|
import JtComponentTree from '../../ComponentTree/index.vue';
|
|
4
4
|
|
|
5
5
|
export type JtComponentTreeProps = typeof JtComponentTree;
|
|
@@ -82,9 +82,9 @@
|
|
|
82
82
|
import { PropType, computed, reactive, ref, watch, defineProps, defineEmits } from 'vue';
|
|
83
83
|
import '../../config/ace.config';
|
|
84
84
|
import { VAceEditor } from 'vue3-ace-editor';
|
|
85
|
-
import { VueForm } from '@
|
|
86
|
-
import { Search } from '@
|
|
87
|
-
import { DataSource } from '@
|
|
85
|
+
import { VueForm } from '@cicctencent/formily';
|
|
86
|
+
import { Search } from '@cicctencent/icons-vue';
|
|
87
|
+
import { DataSource } from '@cicctencent/low-code-core';
|
|
88
88
|
const props = defineProps({
|
|
89
89
|
schema: Object,
|
|
90
90
|
modelValue: String,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { connect, mapProps } from '@formily/vue';
|
|
2
|
-
import { transformComponent } from '@
|
|
2
|
+
import { transformComponent } from '@cicctencent/formily';
|
|
3
3
|
import JtDataSource from '../../dataSource/index.vue';
|
|
4
4
|
|
|
5
5
|
export type JtDataSourceProps = typeof JtDataSource;
|
|
@@ -169,7 +169,7 @@
|
|
|
169
169
|
<script lang="ts" setup>
|
|
170
170
|
// @ts-nocheck
|
|
171
171
|
import { defineProps, defineEmits } from 'vue';
|
|
172
|
-
import * as ElIcons from '@
|
|
172
|
+
import * as ElIcons from '@cicctencent/icons-vue';
|
|
173
173
|
import PageList from './PageList.vue';
|
|
174
174
|
import useMenuTable from './useMenuTable';
|
|
175
175
|
const props = defineProps({
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { reactive, nextTick, ref, computed, watch } from 'vue';
|
|
2
|
-
import type { FormInstance } from '@
|
|
3
|
-
import { ProjectMetaNavMenu } from '@
|
|
2
|
+
import type { FormInstance } from '@cicctencent/jtui';
|
|
3
|
+
import { ProjectMetaNavMenu } from '@cicctencent/low-code-core';
|
|
4
4
|
interface IMenuForm extends Omit<ProjectMetaNavMenu, 'children'> {
|
|
5
5
|
content: 'pageId' | 'url';
|
|
6
6
|
}
|