@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.
Files changed (52) hide show
  1. package/dist/ActivityBar/index.vue.d.ts +7 -7
  2. package/dist/ComponentTree/components/List.vue.d.ts +6 -6
  3. package/dist/ComponentTree/index.vue.d.ts +6 -6
  4. package/dist/DataSource/index.vue.d.ts +6 -6
  5. package/dist/HeaderBar/components/BarTooltip.vue.d.ts +5 -5
  6. package/dist/HeaderBar/index.vue.d.ts +6 -6
  7. package/dist/NavTree/index.vue.d.ts +6 -6
  8. package/dist/SchemaConfig/index.vue.d.ts +7 -7
  9. package/dist/SidebarPane/index.vue.d.ts +6 -6
  10. package/dist/components/ComponentTreeFavorites/components/List.vue.d.ts +6 -6
  11. package/dist/components/ComponentTreeFavorites/components/Tips.vue.d.ts +5 -5
  12. package/dist/components/ComponentTreeFavorites/index.vue.d.ts +6 -6
  13. package/dist/components/ImageGuide/index.vue.d.ts +6 -6
  14. package/dist/components.d.ts +3 -3
  15. package/dist/composables/useComponentTree.d.ts +2 -2
  16. package/dist/domain/EditorDomain.d.ts +3 -3
  17. package/dist/editor.d.ts +197 -17
  18. package/dist/editor.vue.d.ts +6 -6
  19. package/dist/formily/DataBinding/index.vue.d.ts +7 -7
  20. package/dist/formily/MenuTable/PageList.vue.d.ts +6 -6
  21. package/dist/formily/MenuTable/index.vue.d.ts +6 -6
  22. package/dist/formily/MenuTable/useMenuTable.d.ts +9 -195
  23. package/dist/index.css +534 -534
  24. package/dist/index.d.ts +15 -15
  25. package/dist/index.js +11010 -2493
  26. package/package.json +15 -11
  27. package/src/ActivityBar/index.vue +2 -2
  28. package/src/ComponentTree/components/List.vue +2 -2
  29. package/src/ComponentTree/index.vue +2 -2
  30. package/src/DataSource/index.vue +3 -3
  31. package/src/HeaderBar/components/BarDialog.vue +2 -2
  32. package/src/HeaderBar/index.vue +2 -2
  33. package/src/NavTree/index.vue +5 -5
  34. package/src/SchemaConfig/index.vue +3 -3
  35. package/src/SidebarPane/index.vue +1 -1
  36. package/src/components/ComponentTreeFavorites/components/List.vue +2 -2
  37. package/src/components/ComponentTreeFavorites/index.vue +3 -3
  38. package/src/domain/EditorDomain.ts +3 -3
  39. package/src/editor.ts +5 -5
  40. package/src/editor.vue +3 -3
  41. package/src/formily/ActivityBar/index.ts +1 -1
  42. package/src/formily/ComponentTree/index.ts +1 -1
  43. package/src/formily/DataBinding/index.ts +1 -1
  44. package/src/formily/DataBinding/index.vue +3 -3
  45. package/src/formily/DataSource/index.ts +1 -1
  46. package/src/formily/MenuTable/PageList.vue +1 -1
  47. package/src/formily/MenuTable/index.ts +1 -1
  48. package/src/formily/MenuTable/index.vue +1 -1
  49. package/src/formily/MenuTable/useMenuTable.ts +2 -2
  50. package/src/formily/NavTree/index.ts +1 -1
  51. package/src/formily/SidebarPane/index.ts +1 -1
  52. 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.9-beta.5",
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
- "@jt/formily": ">= 0.0.78",
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
- "@jt/ark-util": ">=0.0.30",
17
- "@jt/formily": ">= 0.0.78",
18
- "@jt/jtui": ">=2.2.11-beta.14",
19
- "@cicctencent/low-code-core": "1.1.9-beta.5",
20
- "@cicctencent/low-code-validate": "1.1.9-beta.5",
21
- "@jt/postmessage-channel": ">=0.1.10",
22
- "jm-jsruntime": "^1.0.3",
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 '@jt/icons-vue';
24
- import { ActivityBarType } from '@jt/low-code-core';
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 '@jt/low-code-core';
88
- import { CaretBottom, CaretRight } from '@jt/icons-vue';
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 '@jt/icons-vue';
21
+ import { Search } from '@cicctencent/icons-vue';
22
22
  import List from './components/List.vue';
23
- import { ComponentTreeData, LowCodeKey } from '@jt/low-code-core';
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)
@@ -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 '@jt/icons-vue';
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 '@jt/low-code-core';
283
- import { FormInstance } from '@jt/jtui';
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 '@jt/formily';
22
- import { Schema } from '@jt/low-code-core';
21
+ import { VueForm } from '@cicctencent/formily';
22
+ import { Schema } from '@cicctencent/low-code-core';
23
23
 
24
24
  const props = withDefaults(
25
25
  defineProps<{
@@ -144,10 +144,10 @@ import {
144
144
  computed,
145
145
  } from 'vue';
146
146
 
147
- import { FunctionData, Simulator } from '@jt/low-code-core';
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 '@jt/ark-util';
150
+ import { debounce } from '@cicctencent/ark-util';
151
151
 
152
152
  const props = withDefaults(
153
153
  defineProps<{
@@ -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 '@jt/jtui';
82
- import * as IconMap from '@jt/icons-vue';
83
- import type Node from '@jt/jtui/es/components/tree/src/model/node';
84
- import type { DropType } from '@jt/jtui/es/components/tree/src/tree.type';
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 '@jt/low-code-core';
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 '@jt/formily';
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 '@jt/low-code-core';
42
- import { cloneDeep, isEqual } from '@jt/ark-util';
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 '@jt/icons-vue';
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 '@jt/low-code-core';
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 '@jt/icons-vue';
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 '@jt/icons-vue';
10
+ import { Search } from '@cicctencent/icons-vue';
11
11
  import List from './components/List.vue';
12
- import { ComponentTreeData, LowCodeKey } from '@jt/low-code-core';
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 '@jt/ark-util';
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 '@jt/ark-util';
9
- import { Communicator } from '@jt/postmessage-channel';
8
+ } from '@cicctencent/ark-util';
9
+ import { Communicator } from '@cicctencent/postmessage-channel';
10
10
 
11
- import { CheckResponseItem, EditorConfig, LowCodeKey } from '@jt/low-code-core';
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 '@jt/postmessage-channel';
14
- import { ElMessage, ElMessageBox } from '@jt/jtui';
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 '@jt/low-code-core';
23
- import { VueForm } from '@jt/formily';
24
- import { isEqual, toPlainObject } from '@jt/ark-util';
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 '@jt/postmessage-channel';
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 '@jt/low-code-core';
169
+ import { Project } from '@cicctencent/low-code-core';
170
170
  import useEditor from './editor';
171
171
  import { editorComponents } from './components';
172
- import { VueForm } from '@jt/formily';
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 '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  // @ts-ignore
4
4
  import JtActivityBar from './index.vue';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { connect, mapProps } from '@formily/vue';
2
- import { transformComponent } from '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  import JtComponentTree from '../../ComponentTree/index.vue';
4
4
 
5
5
  export type JtComponentTreeProps = typeof JtComponentTree;
@@ -1,5 +1,5 @@
1
1
  import { connect, mapProps } from '@formily/vue';
2
- import { transformComponent } from '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  import JtDataBinding from './index.vue';
4
4
 
5
5
  export type JtDataBindingProps = typeof JtDataBinding;
@@ -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 '@jt/formily';
86
- import { Search } from '@jt/icons-vue';
87
- import { DataSource } from '@jt/low-code-core';
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 '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  import JtDataSource from '../../dataSource/index.vue';
4
4
 
5
5
  export type JtDataSourceProps = typeof JtDataSource;
@@ -38,7 +38,7 @@ import {
38
38
  defineProps,
39
39
  defineEmits,
40
40
  } from 'vue';
41
- import { Search, CircleClose } from '@jt/icons-vue';
41
+ import { Search, CircleClose } from '@cicctencent/icons-vue';
42
42
 
43
43
  const props = withDefaults(
44
44
  defineProps<{
@@ -1,5 +1,5 @@
1
1
  import { connect, mapProps } from '@formily/vue';
2
- import { transformComponent } from '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  import JtMenuTable from './index.vue';
4
4
 
5
5
  export type JtMenuTableProps = typeof JtMenuTable;
@@ -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 '@jt/icons-vue';
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 '@jt/jtui';
3
- import { ProjectMetaNavMenu } from '@jt/low-code-core';
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
  }
@@ -1,5 +1,5 @@
1
1
  import { connect, mapProps } from '@formily/vue';
2
- import { transformComponent } from '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  // @ts-ignore
4
4
  import JtNavTree from '../../NavTree/index.vue';
5
5
 
@@ -1,5 +1,5 @@
1
1
  import { connect, mapProps } from '@formily/vue';
2
- import { transformComponent } from '@jt/formily';
2
+ import { transformComponent } from '@cicctencent/formily';
3
3
  // @ts-ignore
4
4
  import JtSidebarPane from './index.vue';
5
5
 
@@ -62,7 +62,7 @@
62
62
 
63
63
  <script lang="ts" setup>
64
64
  // @ts-nocheck
65
- import { Close } from '@jt/icons-vue';
65
+ import { Close } from '@cicctencent/icons-vue';
66
66
  import { ref, watch, withDefaults, defineProps } from 'vue';
67
67
  const props = withDefaults(
68
68
  defineProps<{