@duxweb/dvha-pro 1.0.45 → 1.0.47
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/cjs/component.cjs +1 -1
- package/dist/cjs/components/chart/echart.cjs +1 -1
- package/dist/cjs/components/crop/imageCrop.cjs +1 -1
- package/dist/cjs/components/data/dynamicSelect.cjs +1 -1
- package/dist/cjs/components/data/selectModal.cjs +1 -1
- package/dist/cjs/components/designEditor/components/grid.cjs +1 -1
- package/dist/cjs/components/designEditor/editor/setting.cjs +1 -1
- package/dist/cjs/components/flowEditor/components/jsonEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/nodeCard.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/setting.cjs +1 -0
- package/dist/cjs/components/flowEditor/components/toolbar.cjs +1 -0
- package/dist/cjs/components/flowEditor/flowEditor.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/endNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/index.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/processNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/nodes/startNode.cjs +1 -0
- package/dist/cjs/components/flowEditor/utils/nodeDataUtils.cjs +1 -0
- package/dist/cjs/components/form/drawerForm.cjs +1 -1
- package/dist/cjs/components/form/modalForm.cjs +1 -1
- package/dist/cjs/components/form/pageForm.cjs +1 -1
- package/dist/cjs/components/form/pageTabForm.cjs +1 -1
- package/dist/cjs/components/form/settingForm.cjs +1 -1
- package/dist/cjs/components/formEditor/base/base.cjs +1 -1
- package/dist/cjs/components/formEditor/base/setting.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascader.cjs +1 -1
- package/dist/cjs/components/formEditor/components/cascaderAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/checkbox.cjs +1 -1
- package/dist/cjs/components/formEditor/components/color.cjs +1 -1
- package/dist/cjs/components/formEditor/components/date.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicInput.cjs +1 -1
- package/dist/cjs/components/formEditor/components/dynamicTags.cjs +1 -1
- package/dist/cjs/components/formEditor/components/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/components/fileUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/imageUpload.cjs +1 -1
- package/dist/cjs/components/formEditor/components/input.cjs +1 -1
- package/dist/cjs/components/formEditor/components/inputNumber.cjs +1 -1
- package/dist/cjs/components/formEditor/components/mentionAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/radio.cjs +1 -1
- package/dist/cjs/components/formEditor/components/region.cjs +1 -1
- package/dist/cjs/components/formEditor/components/select.cjs +1 -1
- package/dist/cjs/components/formEditor/components/selectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/sider.cjs +1 -1
- package/dist/cjs/components/formEditor/components/switch.cjs +1 -1
- package/dist/cjs/components/formEditor/components/time.cjs +1 -1
- package/dist/cjs/components/formEditor/components/transferAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelect.cjs +1 -1
- package/dist/cjs/components/formEditor/components/treeSelectAsync.cjs +1 -1
- package/dist/cjs/components/formEditor/editor.cjs +1 -1
- package/dist/cjs/components/formEditor/renderer.cjs +1 -1
- package/dist/cjs/components/icon/icon.cjs +1 -1
- package/dist/cjs/components/layout/list.cjs +1 -1
- package/dist/cjs/components/layout/table.cjs +1 -1
- package/dist/cjs/components/layout/tools.cjs +1 -1
- package/dist/cjs/components/level/level.cjs +1 -1
- package/dist/cjs/components/list/card.cjs +1 -1
- package/dist/cjs/components/list/list.cjs +1 -1
- package/dist/cjs/components/posterEditor/pages/RightPanel.cjs +1 -1
- package/dist/cjs/components/posterEditor/posterEditor.cjs +1 -1
- package/dist/cjs/components/table/table.cjs +1 -1
- package/dist/cjs/components/table/tablePage.cjs +1 -1
- package/dist/cjs/components/upload/file.cjs +1 -1
- package/dist/cjs/components/upload/image.cjs +1 -1
- package/dist/cjs/components/upload/manage/item.cjs +1 -1
- package/dist/cjs/components/upload/manager.cjs +1 -1
- package/dist/cjs/dvha-pro.css +1 -1
- package/dist/cjs/hooks/dialog.cjs +1 -1
- package/dist/cjs/hooks/drawer.cjs +1 -1
- package/dist/cjs/hooks/modal.cjs +1 -1
- package/dist/cjs/hooks/table/image.cjs +1 -1
- package/dist/cjs/hooks/table/media.cjs +1 -1
- package/dist/cjs/hooks/table.cjs +1 -1
- package/dist/cjs/index.cjs +1 -1
- package/dist/cjs/langs/en-US.json.cjs +1 -1
- package/dist/cjs/langs/zh-CN.json.cjs +1 -1
- package/dist/cjs/main.cjs +1 -1
- package/dist/cjs/pages/authLayout.cjs +1 -1
- package/dist/cjs/pages/layout/page.cjs +1 -1
- package/dist/cjs/pages/login.cjs +1 -1
- package/dist/cjs/pages/menu/avatar.cjs +1 -1
- package/dist/cjs/pages/menu/button.cjs +1 -1
- package/dist/cjs/pages/menu/cmd.cjs +1 -1
- package/dist/cjs/pages/menu/main.cjs +1 -1
- package/dist/cjs/pages/menu/mobile.cjs +1 -1
- package/dist/cjs/pages/page404.cjs +1 -1
- package/dist/cjs/pages/pageStatus.cjs +1 -1
- package/dist/cjs/theme/uno.css.cjs +75 -9
- package/dist/esm/component.js +5 -2
- package/dist/esm/components/chart/echart.js +5 -2
- package/dist/esm/components/crop/imageCrop.js +13 -10
- package/dist/esm/components/data/dynamicSelect.js +5 -2
- package/dist/esm/components/data/selectModal.js +5 -2
- package/dist/esm/components/designEditor/components/grid.js +5 -2
- package/dist/esm/components/designEditor/editor/setting.js +7 -4
- package/dist/esm/components/flowEditor/components/jsonEditor.js +53 -0
- package/dist/esm/components/flowEditor/components/nodeCard.js +160 -0
- package/dist/esm/components/flowEditor/components/setting.js +319 -0
- package/dist/esm/components/flowEditor/components/toolbar.js +120 -0
- package/dist/esm/components/flowEditor/flowEditor.js +287 -0
- package/dist/esm/components/flowEditor/nodes/endNode.js +144 -0
- package/dist/esm/components/flowEditor/nodes/index.js +66 -0
- package/dist/esm/components/flowEditor/nodes/processNode.js +142 -0
- package/dist/esm/components/flowEditor/nodes/startNode.js +144 -0
- package/dist/esm/components/flowEditor/utils/nodeDataUtils.js +82 -0
- package/dist/esm/components/form/drawerForm.js +5 -2
- package/dist/esm/components/form/modalForm.js +12 -9
- package/dist/esm/components/form/pageForm.js +21 -18
- package/dist/esm/components/form/pageTabForm.js +5 -2
- package/dist/esm/components/form/settingForm.js +11 -8
- package/dist/esm/components/formEditor/base/base.js +8 -5
- package/dist/esm/components/formEditor/base/setting.js +5 -2
- package/dist/esm/components/formEditor/components/cascader.js +6 -3
- package/dist/esm/components/formEditor/components/cascaderAsync.js +6 -3
- package/dist/esm/components/formEditor/components/checkbox.js +17 -14
- package/dist/esm/components/formEditor/components/color.js +6 -3
- package/dist/esm/components/formEditor/components/date.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicInput.js +6 -3
- package/dist/esm/components/formEditor/components/dynamicTags.js +13 -10
- package/dist/esm/components/formEditor/components/editor.js +6 -3
- package/dist/esm/components/formEditor/components/fileUpload.js +6 -3
- package/dist/esm/components/formEditor/components/imageUpload.js +6 -3
- package/dist/esm/components/formEditor/components/input.js +6 -3
- package/dist/esm/components/formEditor/components/inputNumber.js +29 -26
- package/dist/esm/components/formEditor/components/mentionAsync.js +17 -14
- package/dist/esm/components/formEditor/components/radio.js +17 -14
- package/dist/esm/components/formEditor/components/region.js +19 -16
- package/dist/esm/components/formEditor/components/select.js +6 -3
- package/dist/esm/components/formEditor/components/selectAsync.js +12 -9
- package/dist/esm/components/formEditor/components/sider.js +6 -3
- package/dist/esm/components/formEditor/components/switch.js +22 -19
- package/dist/esm/components/formEditor/components/time.js +6 -3
- package/dist/esm/components/formEditor/components/transferAsync.js +26 -23
- package/dist/esm/components/formEditor/components/treeSelect.js +6 -3
- package/dist/esm/components/formEditor/components/treeSelectAsync.js +26 -23
- package/dist/esm/components/formEditor/editor.js +5 -2
- package/dist/esm/components/formEditor/renderer.js +5 -2
- package/dist/esm/components/icon/icon.js +5 -2
- package/dist/esm/components/layout/list.js +98 -86
- package/dist/esm/components/layout/table.js +125 -117
- package/dist/esm/components/layout/tools.js +109 -32
- package/dist/esm/components/level/level.js +5 -2
- package/dist/esm/components/list/card.js +27 -22
- package/dist/esm/components/list/list.js +16 -11
- package/dist/esm/components/posterEditor/pages/RightPanel.js +5 -2
- package/dist/esm/components/posterEditor/posterEditor.js +5 -2
- package/dist/esm/components/table/table.js +35 -28
- package/dist/esm/components/table/tablePage.js +17 -12
- package/dist/esm/components/upload/file.js +5 -2
- package/dist/esm/components/upload/image.js +18 -15
- package/dist/esm/components/upload/manage/item.js +5 -2
- package/dist/esm/components/upload/manager.js +5 -2
- package/dist/esm/dvha-pro.css +1 -1
- package/dist/esm/hooks/dialog.js +5 -2
- package/dist/esm/hooks/drawer.js +5 -2
- package/dist/esm/hooks/modal.js +5 -2
- package/dist/esm/hooks/table/image.js +5 -2
- package/dist/esm/hooks/table/media.js +5 -2
- package/dist/esm/hooks/table.js +25 -19
- package/dist/esm/index.js +252 -226
- package/dist/esm/langs/en-US.json.js +5 -5
- package/dist/esm/langs/zh-CN.json.js +6 -6
- package/dist/esm/main.js +4 -2
- package/dist/esm/pages/authLayout.js +5 -2
- package/dist/esm/pages/layout/page.js +9 -6
- package/dist/esm/pages/login.js +10 -7
- package/dist/esm/pages/menu/avatar.js +18 -15
- package/dist/esm/pages/menu/button.js +8 -5
- package/dist/esm/pages/menu/cmd.js +13 -10
- package/dist/esm/pages/menu/main.js +29 -26
- package/dist/esm/pages/menu/mobile.js +5 -2
- package/dist/esm/pages/page404.js +3 -0
- package/dist/esm/pages/pageStatus.js +5 -2
- package/dist/esm/theme/uno.css.js +75 -9
- package/dist/types/components/flowEditor/components/index.d.ts +3 -0
- package/dist/types/components/flowEditor/components/jsonEditor.d.ts +22 -0
- package/dist/types/components/flowEditor/components/nodeCard.d.ts +112 -0
- package/dist/types/components/flowEditor/components/setting.d.ts +16 -0
- package/dist/types/components/flowEditor/components/toolbar.d.ts +11 -0
- package/dist/types/components/flowEditor/flowEditor.d.ts +68 -0
- package/dist/types/components/flowEditor/index.d.ts +5 -0
- package/dist/types/components/flowEditor/nodes/endNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/index.d.ts +8 -0
- package/dist/types/components/flowEditor/nodes/processNode.d.ts +19 -0
- package/dist/types/components/flowEditor/nodes/startNode.d.ts +19 -0
- package/dist/types/components/flowEditor/types/index.d.ts +62 -0
- package/dist/types/components/flowEditor/utils/nodeDataUtils.d.ts +59 -0
- package/dist/types/components/index.d.ts +1 -0
- package/dist/types/components/layout/list.d.ts +7 -0
- package/dist/types/components/layout/table.d.ts +7 -0
- package/dist/types/components/layout/tools.d.ts +28 -2
- package/dist/types/components/list/card.d.ts +6 -0
- package/dist/types/components/list/list.d.ts +6 -0
- package/dist/types/components/table/tablePage.d.ts +6 -0
- package/dist/types/main.d.ts +2 -0
- package/package.json +9 -3
|
@@ -22,6 +22,7 @@ import "jinrishici";
|
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
|
+
import "@vue-flow/core";
|
|
25
26
|
import { DuxFormItem as p } from "../../form/formItem.js";
|
|
26
27
|
import "@vee-validate/i18n";
|
|
27
28
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "vee-validate";
|
|
|
50
51
|
import "vue-command-palette";
|
|
51
52
|
import "@duxweb/dvha-naiveui";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as d, DuxFormEditorRule as s } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as c } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,7 +63,6 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const f = /* @__PURE__ */ a({
|
|
64
67
|
name: "FormEditorSwitch",
|
|
65
68
|
props: {
|
|
@@ -76,20 +79,20 @@ const f = /* @__PURE__ */ a({
|
|
|
76
79
|
});
|
|
77
80
|
function v(o) {
|
|
78
81
|
const {
|
|
79
|
-
options:
|
|
80
|
-
model:
|
|
82
|
+
options: r,
|
|
83
|
+
model: e
|
|
81
84
|
} = o || {};
|
|
82
85
|
return {
|
|
83
86
|
tag: "dux-form-item",
|
|
84
87
|
attrs: {
|
|
85
|
-
label:
|
|
86
|
-
description:
|
|
88
|
+
label: r?.label,
|
|
89
|
+
description: r?.desc
|
|
87
90
|
},
|
|
88
91
|
children: [{
|
|
89
92
|
tag: "n-switch",
|
|
90
93
|
attrs: {
|
|
91
|
-
...
|
|
92
|
-
"v-model:value": [
|
|
94
|
+
...r?.attr,
|
|
95
|
+
"v-model:value": [e, r?.name]
|
|
93
96
|
}
|
|
94
97
|
}]
|
|
95
98
|
};
|
|
@@ -103,9 +106,9 @@ const b = /* @__PURE__ */ a({
|
|
|
103
106
|
}
|
|
104
107
|
},
|
|
105
108
|
setup(o, {
|
|
106
|
-
emit:
|
|
109
|
+
emit: r
|
|
107
110
|
}) {
|
|
108
|
-
const
|
|
111
|
+
const e = u(o, "value", r), {
|
|
109
112
|
t: m
|
|
110
113
|
} = n();
|
|
111
114
|
return () => t("div", {
|
|
@@ -123,8 +126,8 @@ const b = /* @__PURE__ */ a({
|
|
|
123
126
|
default: () => [t("div", {
|
|
124
127
|
class: "flex flex-1 justify-end"
|
|
125
128
|
}, [t(l, {
|
|
126
|
-
value:
|
|
127
|
-
"onUpdate:value": (i) =>
|
|
129
|
+
value: e.value.attr.disabled,
|
|
130
|
+
"onUpdate:value": (i) => e.value.attr.disabled = i
|
|
128
131
|
}, null)])]
|
|
129
132
|
}), t(p, {
|
|
130
133
|
label: m("components.formEditor.common.defaultValue"),
|
|
@@ -133,24 +136,24 @@ const b = /* @__PURE__ */ a({
|
|
|
133
136
|
default: () => [t("div", {
|
|
134
137
|
class: "flex flex-1 justify-end"
|
|
135
138
|
}, [t(l, {
|
|
136
|
-
value:
|
|
137
|
-
"onUpdate:value": (i) =>
|
|
139
|
+
value: e.value.attr.defaultValue,
|
|
140
|
+
"onUpdate:value": (i) => e.value.attr.defaultValue = i
|
|
138
141
|
}, null)])]
|
|
139
142
|
})]
|
|
140
143
|
}), t(s, {
|
|
141
|
-
value:
|
|
142
|
-
"onUpdate:value": (i) =>
|
|
144
|
+
value: e.value.rule,
|
|
145
|
+
"onUpdate:value": (i) => e.value.rule = i
|
|
143
146
|
}, null)]);
|
|
144
147
|
}
|
|
145
148
|
});
|
|
146
|
-
function
|
|
149
|
+
function Ut(o) {
|
|
147
150
|
return {
|
|
148
151
|
name: "dux-switch",
|
|
149
152
|
icon: "i-tabler:toggle-left",
|
|
150
153
|
label: o("components.formEditor.switch.label"),
|
|
151
154
|
group: "form",
|
|
152
|
-
component: (
|
|
153
|
-
setting: (
|
|
155
|
+
component: (r) => t(f, r, null),
|
|
156
|
+
setting: (r) => t(b, r, null),
|
|
154
157
|
settingDefault: {
|
|
155
158
|
label: o("components.formEditor.switch.label"),
|
|
156
159
|
name: "switch",
|
|
@@ -163,5 +166,5 @@ function jt(o) {
|
|
|
163
166
|
};
|
|
164
167
|
}
|
|
165
168
|
export {
|
|
166
|
-
|
|
169
|
+
Ut as duxFormEditorSwitch
|
|
167
170
|
};
|
|
@@ -22,6 +22,7 @@ import "jinrishici";
|
|
|
22
22
|
import "lodash-es";
|
|
23
23
|
import "vue-draggable-plus";
|
|
24
24
|
import "aieditor";
|
|
25
|
+
import "@vue-flow/core";
|
|
25
26
|
import { DuxFormItem as l } from "../../form/formItem.js";
|
|
26
27
|
import "@vee-validate/i18n";
|
|
27
28
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "vee-validate";
|
|
|
50
51
|
import "vue-command-palette";
|
|
51
52
|
import "@duxweb/dvha-naiveui";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as c, DuxFormEditorRule as f } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as v } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,7 +63,6 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ p({
|
|
64
67
|
name: "FormEditorTime",
|
|
65
68
|
props: {
|
|
@@ -161,7 +164,7 @@ const E = /* @__PURE__ */ p({
|
|
|
161
164
|
}, null)]);
|
|
162
165
|
}
|
|
163
166
|
});
|
|
164
|
-
function
|
|
167
|
+
function St(o) {
|
|
165
168
|
return {
|
|
166
169
|
name: "dux-time",
|
|
167
170
|
icon: "i-tabler:clock",
|
|
@@ -181,5 +184,5 @@ function It(o) {
|
|
|
181
184
|
};
|
|
182
185
|
}
|
|
183
186
|
export {
|
|
184
|
-
|
|
187
|
+
St as duxFormEditorTime
|
|
185
188
|
};
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as i } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
50
51
|
import "vee-validate";
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as f, DuxFormEditorRule as v } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,25 +63,24 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ u({
|
|
64
67
|
props: {
|
|
65
68
|
options: Object
|
|
66
69
|
},
|
|
67
|
-
setup(
|
|
70
|
+
setup(l) {
|
|
68
71
|
return () => t(i, {
|
|
69
|
-
label:
|
|
70
|
-
description:
|
|
72
|
+
label: l.options?.label,
|
|
73
|
+
description: l.options?.desc
|
|
71
74
|
}, {
|
|
72
|
-
default: () => [t(s,
|
|
75
|
+
default: () => [t(s, l.options?.attr, null)]
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
|
-
function F(
|
|
79
|
+
function F(l) {
|
|
77
80
|
const {
|
|
78
81
|
options: r,
|
|
79
82
|
model: e
|
|
80
|
-
} =
|
|
83
|
+
} = l || {};
|
|
81
84
|
return {
|
|
82
85
|
tag: "dux-form-item",
|
|
83
86
|
attrs: {
|
|
@@ -100,17 +103,17 @@ const E = /* @__PURE__ */ u({
|
|
|
100
103
|
default: {}
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
|
-
setup(
|
|
106
|
+
setup(l, {
|
|
104
107
|
emit: r
|
|
105
108
|
}) {
|
|
106
|
-
const e = c(
|
|
109
|
+
const e = c(l, "value", r), {
|
|
107
110
|
t: a
|
|
108
111
|
} = d();
|
|
109
112
|
return () => t("div", {
|
|
110
113
|
class: ""
|
|
111
114
|
}, [t(f, {
|
|
112
|
-
value:
|
|
113
|
-
"onUpdate:value": (
|
|
115
|
+
value: l.value,
|
|
116
|
+
"onUpdate:value": (o) => l.value = o
|
|
114
117
|
}, null), t(p, {
|
|
115
118
|
title: a("components.formEditor.config")
|
|
116
119
|
}, {
|
|
@@ -122,7 +125,7 @@ const E = /* @__PURE__ */ u({
|
|
|
122
125
|
class: "flex flex-1 justify-end"
|
|
123
126
|
}, [t(n, {
|
|
124
127
|
value: e.value.attr.disabled,
|
|
125
|
-
"onUpdate:value": (
|
|
128
|
+
"onUpdate:value": (o) => e.value.attr.disabled = o
|
|
126
129
|
}, null)])]
|
|
127
130
|
}), t(i, {
|
|
128
131
|
label: a("components.formEditor.tree.disabled"),
|
|
@@ -132,7 +135,7 @@ const E = /* @__PURE__ */ u({
|
|
|
132
135
|
class: "flex flex-1 justify-end"
|
|
133
136
|
}, [t(n, {
|
|
134
137
|
value: e.value.attr.clearable,
|
|
135
|
-
"onUpdate:value": (
|
|
138
|
+
"onUpdate:value": (o) => e.value.attr.clearable = o
|
|
136
139
|
}, null)])]
|
|
137
140
|
})]
|
|
138
141
|
}), t(p, {
|
|
@@ -143,53 +146,53 @@ const E = /* @__PURE__ */ u({
|
|
|
143
146
|
}, {
|
|
144
147
|
default: () => [t(m, {
|
|
145
148
|
value: e.value.attr.path,
|
|
146
|
-
"onUpdate:value": (
|
|
149
|
+
"onUpdate:value": (o) => e.value.attr.path = o
|
|
147
150
|
}, null)]
|
|
148
151
|
}), t(i, {
|
|
149
152
|
label: a("components.formEditor.selectAsync.labelField")
|
|
150
153
|
}, {
|
|
151
154
|
default: () => [t(m, {
|
|
152
155
|
value: e.value.attr.labelField,
|
|
153
|
-
"onUpdate:value": (
|
|
156
|
+
"onUpdate:value": (o) => e.value.attr.labelField = o
|
|
154
157
|
}, null)]
|
|
155
158
|
}), t(i, {
|
|
156
159
|
label: a("components.formEditor.selectAsync.valueField")
|
|
157
160
|
}, {
|
|
158
161
|
default: () => [t(m, {
|
|
159
162
|
value: e.value.attr.valueField,
|
|
160
|
-
"onUpdate:value": (
|
|
163
|
+
"onUpdate:value": (o) => e.value.attr.valueField = o
|
|
161
164
|
}, null)]
|
|
162
165
|
}), t(i, {
|
|
163
166
|
label: a("components.formEditor.selectAsync.imageField")
|
|
164
167
|
}, {
|
|
165
168
|
default: () => [t(m, {
|
|
166
169
|
value: e.value.attr.imageField,
|
|
167
|
-
"onUpdate:value": (
|
|
170
|
+
"onUpdate:value": (o) => e.value.attr.imageField = o
|
|
168
171
|
}, null)]
|
|
169
172
|
}), t(i, {
|
|
170
173
|
label: a("components.formEditor.selectAsync.descField")
|
|
171
174
|
}, {
|
|
172
175
|
default: () => [t(m, {
|
|
173
176
|
value: e.value.attr.descField,
|
|
174
|
-
"onUpdate:value": (
|
|
177
|
+
"onUpdate:value": (o) => e.value.attr.descField = o
|
|
175
178
|
}, null)]
|
|
176
179
|
})]
|
|
177
180
|
}), t(v, {
|
|
178
181
|
value: e.value.rule,
|
|
179
|
-
"onUpdate:value": (
|
|
182
|
+
"onUpdate:value": (o) => e.value.rule = o
|
|
180
183
|
}, null)]);
|
|
181
184
|
}
|
|
182
185
|
});
|
|
183
|
-
function
|
|
186
|
+
function St(l) {
|
|
184
187
|
return {
|
|
185
188
|
name: "transfer-async",
|
|
186
189
|
icon: "i-tabler:transfer",
|
|
187
|
-
label:
|
|
190
|
+
label: l("components.formEditor.transferAsync.name"),
|
|
188
191
|
group: "async",
|
|
189
192
|
component: (r) => t(b, r, null),
|
|
190
193
|
setting: (r) => t(E, r, null),
|
|
191
194
|
settingDefault: {
|
|
192
|
-
label:
|
|
195
|
+
label: l("components.formEditor.transferAsync.name"),
|
|
193
196
|
name: "transferAsync",
|
|
194
197
|
attr: {
|
|
195
198
|
path: "",
|
|
@@ -203,5 +206,5 @@ function It(o) {
|
|
|
203
206
|
};
|
|
204
207
|
}
|
|
205
208
|
export {
|
|
206
|
-
|
|
209
|
+
St as duxFormEditorTransferAsync
|
|
207
210
|
};
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as m } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -51,6 +52,9 @@ import "vee-validate";
|
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "@duxweb/dvha-naiveui";
|
|
53
54
|
import "../../../pages/page404.js";
|
|
55
|
+
import "short-unique-id";
|
|
56
|
+
import "@vue-flow/background";
|
|
57
|
+
/* empty css */
|
|
54
58
|
import { DuxFormEditorItem as x, DuxFormEditorRule as g } from "../base/base.js";
|
|
55
59
|
import { WidgetEditorSettingCard as p } from "../../designEditor/editor/setting.js";
|
|
56
60
|
import "mime";
|
|
@@ -60,7 +64,6 @@ import "fabric";
|
|
|
60
64
|
import "dayjs";
|
|
61
65
|
import "@tanstack/vue-query";
|
|
62
66
|
import "pinia";
|
|
63
|
-
import "short-unique-id";
|
|
64
67
|
function S(e) {
|
|
65
68
|
return typeof e == "function" || Object.prototype.toString.call(e) === "[object Object]" && !d(e);
|
|
66
69
|
}
|
|
@@ -196,7 +199,7 @@ const N = /* @__PURE__ */ u({
|
|
|
196
199
|
};
|
|
197
200
|
}
|
|
198
201
|
});
|
|
199
|
-
function
|
|
202
|
+
function Mt(e) {
|
|
200
203
|
return {
|
|
201
204
|
name: "tree-select",
|
|
202
205
|
icon: "i-tabler:binary-tree",
|
|
@@ -217,5 +220,5 @@ function Vt(e) {
|
|
|
217
220
|
};
|
|
218
221
|
}
|
|
219
222
|
export {
|
|
220
|
-
|
|
223
|
+
Mt as duxFormEditorTreeSelect
|
|
221
224
|
};
|
|
@@ -23,6 +23,7 @@ import "jinrishici";
|
|
|
23
23
|
import "lodash-es";
|
|
24
24
|
import "vue-draggable-plus";
|
|
25
25
|
import "aieditor";
|
|
26
|
+
import "@vue-flow/core";
|
|
26
27
|
import { DuxFormItem as a } from "../../form/formItem.js";
|
|
27
28
|
import "@vee-validate/i18n";
|
|
28
29
|
import "colorizr";
|
|
@@ -50,6 +51,9 @@ import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
|
50
51
|
import "vee-validate";
|
|
51
52
|
import "vue-command-palette";
|
|
52
53
|
import "../../../pages/page404.js";
|
|
54
|
+
import "short-unique-id";
|
|
55
|
+
import "@vue-flow/background";
|
|
56
|
+
/* empty css */
|
|
53
57
|
import { DuxFormEditorItem as f, DuxFormEditorRule as v } from "../base/base.js";
|
|
54
58
|
import { WidgetEditorSettingCard as n } from "../../designEditor/editor/setting.js";
|
|
55
59
|
import "mime";
|
|
@@ -59,36 +63,35 @@ import "fabric";
|
|
|
59
63
|
import "dayjs";
|
|
60
64
|
import "@tanstack/vue-query";
|
|
61
65
|
import "pinia";
|
|
62
|
-
import "short-unique-id";
|
|
63
66
|
const b = /* @__PURE__ */ u({
|
|
64
67
|
props: {
|
|
65
68
|
options: Object
|
|
66
69
|
},
|
|
67
|
-
setup(
|
|
70
|
+
setup(r) {
|
|
68
71
|
return () => t(a, {
|
|
69
|
-
label:
|
|
70
|
-
description:
|
|
72
|
+
label: r.options?.label,
|
|
73
|
+
description: r.options?.desc
|
|
71
74
|
}, {
|
|
72
|
-
default: () => [t(c,
|
|
75
|
+
default: () => [t(c, r.options?.attr, null)]
|
|
73
76
|
});
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
|
-
function y(
|
|
79
|
+
function y(r) {
|
|
77
80
|
const {
|
|
78
|
-
options:
|
|
81
|
+
options: l,
|
|
79
82
|
model: e
|
|
80
|
-
} =
|
|
83
|
+
} = r || {};
|
|
81
84
|
return {
|
|
82
85
|
tag: "dux-form-item",
|
|
83
86
|
attrs: {
|
|
84
|
-
label:
|
|
85
|
-
description:
|
|
87
|
+
label: l?.label,
|
|
88
|
+
description: l?.desc
|
|
86
89
|
},
|
|
87
90
|
children: [{
|
|
88
91
|
tag: "dux-tree-select",
|
|
89
92
|
attrs: {
|
|
90
|
-
...
|
|
91
|
-
"v-model:value": [e,
|
|
93
|
+
...l?.attr,
|
|
94
|
+
"v-model:value": [e, l?.name]
|
|
92
95
|
}
|
|
93
96
|
}]
|
|
94
97
|
};
|
|
@@ -100,17 +103,17 @@ const E = /* @__PURE__ */ u({
|
|
|
100
103
|
default: {}
|
|
101
104
|
}
|
|
102
105
|
},
|
|
103
|
-
setup(
|
|
104
|
-
emit:
|
|
106
|
+
setup(r, {
|
|
107
|
+
emit: l
|
|
105
108
|
}) {
|
|
106
|
-
const e = s(
|
|
109
|
+
const e = s(r, "value", l), {
|
|
107
110
|
t: i
|
|
108
111
|
} = d();
|
|
109
112
|
return () => t("div", {
|
|
110
113
|
class: ""
|
|
111
114
|
}, [t(f, {
|
|
112
|
-
value:
|
|
113
|
-
"onUpdate:value": (o) =>
|
|
115
|
+
value: r.value,
|
|
116
|
+
"onUpdate:value": (o) => r.value = o
|
|
114
117
|
}, null), t(n, {
|
|
115
118
|
title: i("components.formEditor.config")
|
|
116
119
|
}, {
|
|
@@ -166,16 +169,16 @@ const E = /* @__PURE__ */ u({
|
|
|
166
169
|
}, null)]);
|
|
167
170
|
}
|
|
168
171
|
});
|
|
169
|
-
function
|
|
172
|
+
function Ct(r) {
|
|
170
173
|
return {
|
|
171
174
|
name: "tree-select-async",
|
|
172
175
|
icon: "i-tabler:binary-tree",
|
|
173
|
-
label:
|
|
176
|
+
label: r("components.formEditor.treeSelectAsync.name"),
|
|
174
177
|
group: "async",
|
|
175
|
-
component: (
|
|
176
|
-
setting: (
|
|
178
|
+
component: (l) => t(b, l, null),
|
|
179
|
+
setting: (l) => t(E, l, null),
|
|
177
180
|
settingDefault: {
|
|
178
|
-
label:
|
|
181
|
+
label: r("components.formEditor.treeSelectAsync.name"),
|
|
179
182
|
name: "treeSelectAsync",
|
|
180
183
|
attr: {
|
|
181
184
|
path: "",
|
|
@@ -189,5 +192,5 @@ function Dt(l) {
|
|
|
189
192
|
};
|
|
190
193
|
}
|
|
191
194
|
export {
|
|
192
|
-
|
|
195
|
+
Ct as duxFormEditorTreeSelectAsync
|
|
193
196
|
};
|
|
@@ -51,7 +51,10 @@ import "../../pages/page404.js";
|
|
|
51
51
|
import { DuxDesignEditor as l } from "../designEditor/editor.js";
|
|
52
52
|
import "short-unique-id";
|
|
53
53
|
import "aieditor";
|
|
54
|
+
import "@vue-flow/core";
|
|
54
55
|
import { DuxFormLayout as g } from "../form/formLayout.js";
|
|
56
|
+
import "@vue-flow/background";
|
|
57
|
+
/* empty css */
|
|
55
58
|
import { DuxFormEditorSettingPage as v } from "./base/setting.js";
|
|
56
59
|
import { duxFormEditorCascader as y } from "./components/cascader.js";
|
|
57
60
|
import { duxFormEditorCascaderAsync as b } from "./components/cascaderAsync.js";
|
|
@@ -87,7 +90,7 @@ import "pinia";
|
|
|
87
90
|
function p(m) {
|
|
88
91
|
return typeof m == "function" || Object.prototype.toString.call(m) === "[object Object]" && !x(m);
|
|
89
92
|
}
|
|
90
|
-
const
|
|
93
|
+
const kr = /* @__PURE__ */ f({
|
|
91
94
|
name: "DuxFormEditor",
|
|
92
95
|
props: {
|
|
93
96
|
onSave: Function
|
|
@@ -176,5 +179,5 @@ const Dr = /* @__PURE__ */ f({
|
|
|
176
179
|
}
|
|
177
180
|
});
|
|
178
181
|
export {
|
|
179
|
-
|
|
182
|
+
kr as DuxFormEditor
|
|
180
183
|
};
|
|
@@ -29,6 +29,7 @@ import "ace-builds/src-noconflict/mode-snippets";
|
|
|
29
29
|
import "vue-cropper";
|
|
30
30
|
import "jinrishici";
|
|
31
31
|
import "aieditor";
|
|
32
|
+
import "@vue-flow/core";
|
|
32
33
|
import "vee-validate";
|
|
33
34
|
import "@vee-validate/i18n";
|
|
34
35
|
import "colorizr";
|
|
@@ -55,6 +56,8 @@ import "@vee-validate/i18n/dist/locale/en.json";
|
|
|
55
56
|
import "@vee-validate/i18n/dist/locale/zh_CN.json";
|
|
56
57
|
import "vue-command-palette";
|
|
57
58
|
import "../../pages/page404.js";
|
|
59
|
+
import "@vue-flow/background";
|
|
60
|
+
/* empty css */
|
|
58
61
|
import { duxFormEditorCascader as S } from "./components/cascader.js";
|
|
59
62
|
import { duxFormEditorCascaderAsync as v } from "./components/cascaderAsync.js";
|
|
60
63
|
import { duxFormEditorCheckbox as j } from "./components/checkbox.js";
|
|
@@ -81,7 +84,7 @@ import { duxFormEditorTreeSelectAsync as K } from "./components/treeSelectAsync.
|
|
|
81
84
|
import "@iconify-json/tabler/icons.json";
|
|
82
85
|
import "../posterEditor/elements/index.js";
|
|
83
86
|
import "fabric";
|
|
84
|
-
const
|
|
87
|
+
const jo = /* @__PURE__ */ E({
|
|
85
88
|
name: "DuxFormRenderer",
|
|
86
89
|
props: {
|
|
87
90
|
data: {
|
|
@@ -163,5 +166,5 @@ const Ao = /* @__PURE__ */ E({
|
|
|
163
166
|
}
|
|
164
167
|
});
|
|
165
168
|
export {
|
|
166
|
-
|
|
169
|
+
jo as DuxFormRenderer
|
|
167
170
|
};
|
|
@@ -50,6 +50,9 @@ import "@duxweb/dvha-naiveui";
|
|
|
50
50
|
import "../../pages/page404.js";
|
|
51
51
|
import "short-unique-id";
|
|
52
52
|
import "aieditor";
|
|
53
|
+
import "@vue-flow/core";
|
|
54
|
+
import "@vue-flow/background";
|
|
55
|
+
/* empty css */
|
|
53
56
|
import { useModal as c } from "../../hooks/modal.js";
|
|
54
57
|
import "mime";
|
|
55
58
|
import "@iconify-json/tabler/icons.json";
|
|
@@ -58,7 +61,7 @@ import "fabric";
|
|
|
58
61
|
import "dayjs";
|
|
59
62
|
import "@tanstack/vue-query";
|
|
60
63
|
import "pinia";
|
|
61
|
-
const
|
|
64
|
+
const Co = /* @__PURE__ */ n({
|
|
62
65
|
name: "DuxIconPicker",
|
|
63
66
|
props: {
|
|
64
67
|
defaultValue: String,
|
|
@@ -102,5 +105,5 @@ const xo = /* @__PURE__ */ n({
|
|
|
102
105
|
}
|
|
103
106
|
});
|
|
104
107
|
export {
|
|
105
|
-
|
|
108
|
+
Co as DuxIconPicker
|
|
106
109
|
};
|