@fecp/designer 5.6.17 → 5.6.19
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/es/designer/package.json.mjs +1 -1
- package/es/designer/src/layout/aside/index.vue.mjs +6 -6
- package/es/designer/src/layout/header/index.vue.mjs +2 -2
- package/es/designer/src/layout/index.vue.mjs +38 -45
- package/es/designer/src/layout/property/index.vue.mjs +2 -2
- package/es/designer/src/packages/dialog/useDialogDialog.mjs +1 -1
- package/es/designer/src/packages/dialogGlobal/useDialogGlobalDialog.mjs +1 -1
- package/es/designer/src/packages/form/property/widgets.vue.mjs +2 -2
- package/es/designer/src/packages/utils/common.mjs +17 -17
- package/es/designer/src/store/index.mjs +2 -2
- package/es/designer.css +140 -62
- package/es/node_modules/@vant/use/dist/index.esm.mjs +1 -1
- package/es/node_modules/d3-sankey/node_modules/d3-path/src/path.mjs +73 -0
- package/es/node_modules/d3-sankey/node_modules/d3-shape/src/array.mjs +4 -0
- package/es/node_modules/d3-sankey/node_modules/d3-shape/src/constant.mjs +8 -0
- package/es/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.mjs +45 -0
- package/es/node_modules/d3-sankey/node_modules/d3-shape/src/point.mjs +10 -0
- package/es/node_modules/d3-sankey/src/sankeyLinkHorizontal.mjs +1 -1
- package/es/node_modules/vant/es/toast/function-call.mjs +1 -1
- package/es/packages/mobile/src/assets/images/ai2.png.mjs +4 -0
- package/es/packages/mobile/src/components/ai/AiChat/AiChat.vue.mjs +145 -22
- package/es/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.mjs +4 -6
- package/es/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.mjs +71 -11
- package/es/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.mjs +37 -3
- package/es/packages/mobile/src/components/base/card/Card.vue.mjs +2 -2
- package/es/packages/mobile/src/components/form/uploader/Uploader.vue.mjs +1 -2
- package/es/packages/mobile/src/composables/useAI/adapters/h5.mjs +255 -0
- package/es/packages/mobile/src/composables/useAI/adapters/index.mjs +3 -3
- package/es/packages/mobile/src/composables/useAI/useChat.mjs +10 -3
- package/es/packages/mobile/src/composables/usePageEvents.mjs +1 -1
- package/es/packages/mobile/src/index.vue.mjs +20 -8
- package/es/packages/mobile/src/utils/datasource.mjs +1 -1
- package/es/packages/vue/src/components/dialog/DialogRenderer.vue2.mjs +0 -1
- package/es/packages/vue/src/components/forms/number/Number.vue.mjs +0 -1
- package/es/packages/vue/src/components/forms/text/Text.vue.mjs +0 -1
- package/es/packages/vue/src/components/table/TableColumn.vue.mjs +0 -1
- package/es/packages/vue/src/composables/usePageEvents.mjs +0 -1
- package/es/packages/vue/src/utils/datasource.mjs +0 -20
- package/lib/designer/package.json.js +1 -1
- package/lib/designer/src/layout/index.vue.js +55 -62
- package/lib/designer/src/packages/dialog/useDialogDialog.js +1 -1
- package/lib/designer/src/packages/dialogGlobal/useDialogGlobalDialog.js +1 -1
- package/lib/designer/src/packages/form/property/widgets.vue.js +2 -2
- package/lib/designer/src/store/index.js +2 -2
- package/lib/designer.css +140 -62
- package/lib/node_modules/d3-sankey/node_modules/d3-path/src/path.js +73 -0
- package/lib/node_modules/d3-sankey/node_modules/d3-shape/src/array.js +4 -0
- package/lib/node_modules/d3-sankey/node_modules/d3-shape/src/constant.js +8 -0
- package/lib/node_modules/d3-sankey/node_modules/d3-shape/src/link/index.js +45 -0
- package/lib/node_modules/d3-sankey/node_modules/d3-shape/src/point.js +10 -0
- package/lib/node_modules/d3-sankey/src/sankeyLinkHorizontal.js +1 -1
- package/lib/packages/mobile/src/assets/images/ai2.png.js +4 -0
- package/lib/packages/mobile/src/components/ai/AiChat/AiChat.vue.js +144 -21
- package/lib/packages/mobile/src/components/ai/ChatInput/ChatInput.vue.js +4 -6
- package/lib/packages/mobile/src/components/ai/ChatPanel/ChatPanel.vue.js +73 -13
- package/lib/packages/mobile/src/components/ai/MarkdownRenderer/MarkdownRenderer.vue.js +37 -3
- package/lib/packages/mobile/src/components/base/card/Card.vue.js +2 -2
- package/lib/packages/mobile/src/components/form/uploader/Uploader.vue.js +1 -2
- package/lib/packages/mobile/src/composables/useAI/adapters/h5.js +255 -0
- package/lib/packages/mobile/src/composables/useAI/adapters/index.js +3 -3
- package/lib/packages/mobile/src/composables/useAI/useChat.js +10 -3
- package/lib/packages/mobile/src/composables/usePageEvents.js +1 -1
- package/lib/packages/mobile/src/index.vue.js +19 -7
- package/lib/packages/mobile/src/utils/datasource.js +1 -1
- package/lib/packages/vue/src/components/dialog/DialogRenderer.vue2.js +0 -1
- package/lib/packages/vue/src/components/forms/number/Number.vue.js +0 -1
- package/lib/packages/vue/src/components/forms/text/Text.vue.js +0 -1
- package/lib/packages/vue/src/components/table/TableColumn.vue.js +0 -1
- package/lib/packages/vue/src/composables/usePageEvents.js +0 -1
- package/lib/packages/vue/src/utils/datasource.js +2 -22
- package/package.json +1 -1
|
@@ -9,7 +9,6 @@ import { calculate } from "../../utils/formulajs/calculate.mjs";
|
|
|
9
9
|
import { useEventFlow, executeEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
|
-
/* empty css */
|
|
13
12
|
import { loadComponentByPath } from "../../utils/common.mjs";
|
|
14
13
|
/* empty css */
|
|
15
14
|
import _export_sfc from "../../../../../_virtual/_plugin-vue_export-helper.mjs";
|
|
@@ -6,7 +6,6 @@ import { getCurrentInstance, inject, computed, ref, watch, onMounted, createElem
|
|
|
6
6
|
import { Decimal } from "../../../../../../node_modules/decimal.js/decimal.mjs";
|
|
7
7
|
/* empty css */
|
|
8
8
|
/* empty css */
|
|
9
|
-
/* empty css */
|
|
10
9
|
import { openDialog } from "../../dialog/index.mjs";
|
|
11
10
|
/* empty css */
|
|
12
11
|
/* empty css */
|
|
@@ -5,7 +5,6 @@ import "../../../../../../node_modules/element-plus/es/index.mjs";
|
|
|
5
5
|
import { computed, getCurrentInstance, inject, createElementBlock, openBlock, Fragment, createVNode, createCommentVNode, mergeProps, toHandlers, createSlots, withCtx, createElementVNode, toDisplayString, createBlock, createTextVNode, unref } from "vue";
|
|
6
6
|
/* empty css */
|
|
7
7
|
/* empty css */
|
|
8
|
-
/* empty css */
|
|
9
8
|
import { openDialog } from "../../dialog/index.mjs";
|
|
10
9
|
/* empty css */
|
|
11
10
|
/* empty css */
|
|
@@ -10,7 +10,6 @@ import { removeEmptyValues } from "../../utils/common.mjs";
|
|
|
10
10
|
/* empty css */
|
|
11
11
|
/* empty css */
|
|
12
12
|
/* empty css */
|
|
13
|
-
/* empty css */
|
|
14
13
|
/* empty css */
|
|
15
14
|
import "../../utils/formulajs/functionCore.mjs";
|
|
16
15
|
import { useEventFlow } from "../../utils/eventFlow/eventFlowHandler.mjs";
|
|
@@ -4,8 +4,6 @@ import "../../../../node_modules/element-plus/es/index.mjs";
|
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
/* empty css */
|
|
8
|
-
import { ElLoading } from "../../../../node_modules/element-plus/es/components/loading/index.mjs";
|
|
9
7
|
import { ElMessage } from "../../../../node_modules/element-plus/es/components/message/index.mjs";
|
|
10
8
|
class DataSourceManager {
|
|
11
9
|
constructor(options = {}) {
|
|
@@ -133,17 +131,6 @@ class DataSourceManager {
|
|
|
133
131
|
}
|
|
134
132
|
this.loading = true;
|
|
135
133
|
this.error = null;
|
|
136
|
-
this.LoadingInstance.count++;
|
|
137
|
-
if (this.LoadingInstance.count === 1) {
|
|
138
|
-
this.LoadingInstance.target = ElLoading.service({
|
|
139
|
-
fullscreen: true,
|
|
140
|
-
lock: true,
|
|
141
|
-
text: "拼命加载中",
|
|
142
|
-
// spinner: loadingSvg,
|
|
143
|
-
background: "rgba(0, 0, 0, 0)",
|
|
144
|
-
customClass: "h-loading"
|
|
145
|
-
});
|
|
146
|
-
}
|
|
147
134
|
try {
|
|
148
135
|
const params = this.buildRequestParams(extraParams);
|
|
149
136
|
const requestConfig = this.getRequestConfig();
|
|
@@ -311,13 +298,6 @@ class DataSourceManager {
|
|
|
311
298
|
return this.loading;
|
|
312
299
|
}
|
|
313
300
|
closeLoading() {
|
|
314
|
-
if (this.LoadingInstance.count > 0) {
|
|
315
|
-
this.LoadingInstance.count--;
|
|
316
|
-
}
|
|
317
|
-
if (this.LoadingInstance.count === 0 && this.LoadingInstance.target) {
|
|
318
|
-
this.LoadingInstance.target.close();
|
|
319
|
-
this.LoadingInstance.target = null;
|
|
320
|
-
}
|
|
321
301
|
}
|
|
322
302
|
/**
|
|
323
303
|
* 获取错误信息
|
|
@@ -11,22 +11,21 @@ require("../../../node_modules/element-plus/es/index.js");
|
|
|
11
11
|
require("../../../node_modules/element-plus/theme-chalk/el-config-provider.css.js");
|
|
12
12
|
const Vue = require("vue");
|
|
13
13
|
const zhCn = require("../../../node_modules/element-plus/es/locale/lang/zh-cn.js");
|
|
14
|
-
const index$
|
|
15
|
-
const index$
|
|
16
|
-
const index$
|
|
17
|
-
const index$
|
|
18
|
-
const index = ;/* empty css */
|
|
19
|
-
const index$
|
|
14
|
+
const index$7 = ;/* empty css */
|
|
15
|
+
const index$6 = ;/* empty css */
|
|
16
|
+
const index$8 = ;/* empty css */
|
|
17
|
+
const index$3 = ;/* empty css */
|
|
18
|
+
const index$2 = ;/* empty css */
|
|
19
|
+
const index$1 = require("../store/index.js");
|
|
20
20
|
const common = require("../packages/utils/common.js");
|
|
21
|
-
const index
|
|
21
|
+
const index = require("../api/index.js");
|
|
22
22
|
const _default = require("../packages/table/default.js");
|
|
23
23
|
const _default$1 = require("../packages/form/default.js");
|
|
24
|
-
const vuex_esmBundler = require("../../../node_modules/vuex/dist/vuex.esm-bundler.js");
|
|
25
24
|
;/* empty css */
|
|
26
25
|
const _pluginVue_exportHelper = require("../../../_virtual/_plugin-vue_export-helper.js");
|
|
27
|
-
const index$
|
|
28
|
-
const index$
|
|
29
|
-
const index$
|
|
26
|
+
const index$4 = require("../../../node_modules/element-plus/es/components/config-provider/index.js");
|
|
27
|
+
const index$5 = require("../../../node_modules/element-plus/es/components/container/index.js");
|
|
28
|
+
const index$9 = require("../../../node_modules/element-plus/es/components/result/index.js");
|
|
30
29
|
const _hoisted_1 = {
|
|
31
30
|
key: 1,
|
|
32
31
|
class: "init-error-container"
|
|
@@ -34,55 +33,52 @@ const _hoisted_1 = {
|
|
|
34
33
|
const _sfc_main = {
|
|
35
34
|
__name: "index",
|
|
36
35
|
setup(__props) {
|
|
37
|
-
const store = vuex_esmBundler.useStore();
|
|
38
36
|
const currentInstance = Vue.getCurrentInstance();
|
|
39
37
|
const ctx = currentInstance.proxy;
|
|
40
38
|
const pkId = getUrlParam("pkId");
|
|
41
39
|
const isInitd = Vue.ref(0);
|
|
42
40
|
const compRef = Vue.ref(null);
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
})
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
index$9.default.commit("set_editing_type", data.type);
|
|
78
|
-
}
|
|
41
|
+
if (!pkId) {
|
|
42
|
+
isInitd.value = -1;
|
|
43
|
+
} else {
|
|
44
|
+
index.default.login4dev(ctx.$http).then((data) => {
|
|
45
|
+
index$1.default.commit("set_token", data.token);
|
|
46
|
+
index$1.default.commit("set_refreshToken", data.refreshToken);
|
|
47
|
+
index.default.getById(ctx.$http, pkId).then((data2) => {
|
|
48
|
+
const templateName = data2.templateName;
|
|
49
|
+
const templateKey = data2.templateKey;
|
|
50
|
+
document.title = templateName || "表单设计器";
|
|
51
|
+
if (data2.type == "table") {
|
|
52
|
+
const tableOptions = Vue.ref({
|
|
53
|
+
pkId,
|
|
54
|
+
templateName,
|
|
55
|
+
templateKey,
|
|
56
|
+
..._default.defaultTableConfig,
|
|
57
|
+
...JSON.parse(data2.context)
|
|
58
|
+
});
|
|
59
|
+
common.setEditConfigData(tableOptions.value);
|
|
60
|
+
isInitd.value = 1;
|
|
61
|
+
} else if (data2.type == "form") {
|
|
62
|
+
const formOptions = Vue.ref({
|
|
63
|
+
pkId,
|
|
64
|
+
templateName,
|
|
65
|
+
templateKey,
|
|
66
|
+
..._default$1.defaultFormConfig,
|
|
67
|
+
...JSON.parse(data2.context)
|
|
68
|
+
});
|
|
69
|
+
common.setEditConfigData(formOptions.value);
|
|
70
|
+
isInitd.value = 1;
|
|
71
|
+
}
|
|
72
|
+
index$1.default.commit("set_editing_type", data2.type);
|
|
73
|
+
});
|
|
74
|
+
});
|
|
79
75
|
}
|
|
80
76
|
const editingArea = Vue.computed(() => {
|
|
81
|
-
switch (
|
|
77
|
+
switch (index$1.default.getters.editingType) {
|
|
82
78
|
case "table":
|
|
83
|
-
return index$
|
|
79
|
+
return index$3.default;
|
|
84
80
|
case "form":
|
|
85
|
-
return index.default;
|
|
81
|
+
return index$2.default;
|
|
86
82
|
}
|
|
87
83
|
return null;
|
|
88
84
|
});
|
|
@@ -101,14 +97,11 @@ const _sfc_main = {
|
|
|
101
97
|
if (values.length === 0) return null;
|
|
102
98
|
return values.length === 1 ? values[0] : values;
|
|
103
99
|
}
|
|
104
|
-
Vue.onMounted(() => {
|
|
105
|
-
init();
|
|
106
|
-
});
|
|
107
100
|
return (_ctx, _cache) => {
|
|
108
|
-
const _component_el_config_provider = index$
|
|
109
|
-
const _component_el_main = index$
|
|
110
|
-
const _component_el_container = index$
|
|
111
|
-
const _component_el_result = index$
|
|
101
|
+
const _component_el_config_provider = index$4.ElConfigProvider;
|
|
102
|
+
const _component_el_main = index$5.ElMain;
|
|
103
|
+
const _component_el_container = index$5.ElContainer;
|
|
104
|
+
const _component_el_result = index$9.ElResult;
|
|
112
105
|
return Vue.openBlock(), Vue.createBlock(_component_el_config_provider, { locale: Vue.unref(zhCn.default) }, {
|
|
113
106
|
default: Vue.withCtx(() => [
|
|
114
107
|
isInitd.value == 1 ? (Vue.openBlock(), Vue.createBlock(_component_el_container, {
|
|
@@ -116,10 +109,10 @@ const _sfc_main = {
|
|
|
116
109
|
class: "fec-designer-container"
|
|
117
110
|
}, {
|
|
118
111
|
default: Vue.withCtx(() => [
|
|
119
|
-
Vue.createVNode(Vue.unref(index$
|
|
112
|
+
Vue.createVNode(Vue.unref(index$6.default)),
|
|
120
113
|
Vue.createVNode(_component_el_container, { class: "inner-container" }, {
|
|
121
114
|
default: Vue.withCtx(() => [
|
|
122
|
-
Vue.createVNode(Vue.unref(index$
|
|
115
|
+
Vue.createVNode(Vue.unref(index$7.default), { onOnFormDragMove: onFormDragMove }),
|
|
123
116
|
Vue.createVNode(_component_el_main, { class: "root-main" }, {
|
|
124
117
|
default: Vue.withCtx(() => [
|
|
125
118
|
Vue.createVNode(_component_el_config_provider, { locale: Vue.unref(zhCn.default) }, {
|
|
@@ -134,7 +127,7 @@ const _sfc_main = {
|
|
|
134
127
|
]),
|
|
135
128
|
_: 1
|
|
136
129
|
}),
|
|
137
|
-
Vue.createVNode(Vue.unref(index$
|
|
130
|
+
Vue.createVNode(Vue.unref(index$8.default))
|
|
138
131
|
]),
|
|
139
132
|
_: 1
|
|
140
133
|
})
|
|
@@ -153,5 +146,5 @@ const _sfc_main = {
|
|
|
153
146
|
};
|
|
154
147
|
}
|
|
155
148
|
};
|
|
156
|
-
const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-
|
|
149
|
+
const layout = /* @__PURE__ */ _pluginVue_exportHelper.default(_sfc_main, [["__scopeId", "data-v-ae1b4337"]]);
|
|
157
150
|
exports.default = layout;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogDialog() {
|
|
6
6
|
const dialogDialogVisible = Vue.ref(false);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
3
|
-
const index = require("./index.
|
|
3
|
+
const index = require("./index.vue.js");
|
|
4
4
|
const Vue = require("vue");
|
|
5
5
|
function useDialogGlobalDialog() {
|
|
6
6
|
const dialogGlobalDialogVisible = Vue.ref(false);
|
|
@@ -54,8 +54,8 @@ const _pluginVue_exportHelper = require("../../../../../_virtual/_plugin-vue_exp
|
|
|
54
54
|
require("../../../components/TemplateSelector.vue.js");
|
|
55
55
|
require("../../table/default.js");
|
|
56
56
|
;/* empty css */
|
|
57
|
-
;/* empty css
|
|
58
|
-
;/* empty css
|
|
57
|
+
;/* empty css */
|
|
58
|
+
;/* empty css */
|
|
59
59
|
require("../../../store/index.js");
|
|
60
60
|
;/* empty css */
|
|
61
61
|
const index$2 = require("../../../../../node_modules/element-plus/es/components/collapse/index.js");
|
|
@@ -3,7 +3,7 @@ Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toString
|
|
|
3
3
|
const vuexPersistedstate_es = require("../../../node_modules/vuex-persistedstate/dist/vuex-persistedstate.es.js");
|
|
4
4
|
const vuex_esmBundler = require("../../../node_modules/vuex/dist/vuex.esm-bundler.js");
|
|
5
5
|
const designer = require("./designer.js");
|
|
6
|
-
const
|
|
6
|
+
const store = vuex_esmBundler.default.createStore({
|
|
7
7
|
plugins: [
|
|
8
8
|
vuexPersistedstate_es.default({
|
|
9
9
|
key: "fec-dev-designer",
|
|
@@ -16,4 +16,4 @@ const storeDev = vuex_esmBundler.default.createStore({
|
|
|
16
16
|
actions: {},
|
|
17
17
|
modules: {}
|
|
18
18
|
});
|
|
19
|
-
exports.default =
|
|
19
|
+
exports.default = store;
|