hldesigner 0.0.1
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/FileSaver.min-b57403e6.js +103 -0
- package/_commonjsHelpers-e7ea1525.js +36 -0
- package/_plugin-vue_export-helper-dad06003.js +9 -0
- package/affix-widget-94198099.js +38 -0
- package/anchor-link-widget-919ac0ee.js +5 -0
- package/anchor-link-widget.vue_vue_type_script_setup_true_name_anchor-link-widget_lang-7df7e7c1.js +35 -0
- package/anchor-widget-77003871.js +57 -0
- package/auto-complete-widget-8d76ea70.js +74 -0
- package/avatar-widget-3cd63f01.js +38 -0
- package/backtop-widget-6fc3db98.js +38 -0
- package/badge-widget-f36a769c.js +44 -0
- package/baseImp-8c4be88e.js +11050 -0
- package/breadcrumb-widget-422a9d28.js +79 -0
- package/button-widget-918dde3f.js +48 -0
- package/cache-widget-a1637f5f.js +53 -0
- package/card-widget-2db8e9d4.js +112 -0
- package/carousel-widget-838cc8c9.js +75 -0
- package/cascader-widget-42482528.js +97 -0
- package/chart-widget-ac07a466.js +44285 -0
- package/checkbox-widget-ee1fcb0c.js +79 -0
- package/clipboard-fc4d858d.js +497 -0
- package/code-cf4fbc89.js +82 -0
- package/collapse-widget-1a93bdb5.js +89 -0
- package/color-picker-widget-e893711a.js +56 -0
- package/common-editor-76ac2e32.js +24 -0
- package/common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-634a504e.js +25 -0
- package/configItem-6bfa74e0.js +113 -0
- package/cont-cell-widget-42f96421.js +8 -0
- package/cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js +59 -0
- package/cont-widget-9dda9135.js +42 -0
- package/content-wrapper-20c559ac.js +14 -0
- package/content-wrapper.vue_vue_type_script_setup_true_lang-4a97c453.js +37 -0
- package/customClass-editor-9088a8cf.js +43 -0
- package/date-picker-range-widget-b9287f93.js +72 -0
- package/date-picker-widget-21595fd5.js +78 -0
- package/default-slot-widget-fc87ed0a.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0fb8e1cc.js +59 -0
- package/descriptions-widget-33a02f1a.js +83 -0
- package/designer.es.js +42 -0
- package/designer.style.css +11 -0
- package/designer.umd.js +161882 -0
- package/dialog-5e196819.js +124 -0
- package/dialog-widget-22714c34.js +33 -0
- package/divider-widget-adf656f2.js +38 -0
- package/drag-wrapper-f9fb1533.js +259 -0
- package/drawer-widget-404cb6db.js +33 -0
- package/dropdown-widget-a4a1e2f7.js +92 -0
- package/editor-wrapper-e6b30023.js +779 -0
- package/emitter-2b9b9409.js +53 -0
- package/empty-widget-c53b07dd.js +64 -0
- package/enum-type-255ade69.js +543 -0
- package/enum-type-287a50b6.js +2054 -0
- package/expression-ea95606e.js +2181 -0
- package/feedback-widget-c041b474.js +26 -0
- package/feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-efe168a5.js +82 -0
- package/field-base-5547436d.js +7 -0
- package/field-editor-3e1ce4f3.js +69 -0
- package/file-upload-widget-941b9493.js +98 -0
- package/form-item-wrapper-8039c512.js +113 -0
- package/form-widget-98a02c28.js +184 -0
- package/grid-col-widget-3ea371ea.js +8 -0
- package/grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js +41 -0
- package/grid-widget-f0635d43.js +43 -0
- package/html-text-widget-c440e86d.js +50 -0
- package/icon-2bb9fa65.js +129 -0
- package/iframe-widget-37ef665f.js +77 -0
- package/image-widget-871d5987.js +64 -0
- package/import-config-1eb9a66b.js +13156 -0
- package/index-0a2f2997.js +225 -0
- package/index-12505eec.js +42 -0
- package/index-18720c06.js +138 -0
- package/index-188b745d.js +132 -0
- package/index-28f32a55.js +216 -0
- package/index-2936e7cf.js +3265 -0
- package/index-2d29f8d3.js +7233 -0
- package/index-3d5d5fac.js +23 -0
- package/index-50c3e002.js +227 -0
- package/index-6a276ef7.js +131 -0
- package/index-6d56f058.js +45 -0
- package/index-7b38fd82.js +330 -0
- package/index-7c2a8e33.js +17993 -0
- package/index-7fa591e3.js +4817 -0
- package/index-82f2c56a.js +135 -0
- package/index-8713c192.js +344 -0
- package/index-8d537d38.js +2393 -0
- package/index-9fd4a537.js +99 -0
- package/index-ad538d7e.js +832 -0
- package/index-c1b1f59f.js +88 -0
- package/index-d6fa09d6.js +39 -0
- package/index-db2305dc.js +117 -0
- package/index-ddd23411.js +4884 -0
- package/index-e795786b.js +119 -0
- package/index-f146282d.js +1356 -0
- package/index-f849ef29.js +216 -0
- package/index-ffbcbc43.js +65 -0
- package/input-number-widget-64f89b9d.js +66 -0
- package/input-widget-0fe7c3d7.js +71 -0
- package/install-designer-bed2e18a.js +4752 -0
- package/item-4be3cb5b.js +34 -0
- package/item-ddbdee11.js +24 -0
- package/itemDetail-b31192a5.js +43 -0
- package/label-wrapper-91b95fb0.js +12 -0
- package/label-wrapper.vue_vue_type_style_index_0_lang-0a7f6bdd.js +80 -0
- package/link-widget-0f2bb61c.js +56 -0
- package/ltable-col-widget-9f26b93d.js +8 -0
- package/ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js +256 -0
- package/ltable-widget-b78a72ee.js +69 -0
- package/menu-widget-15fdd710.js +96 -0
- package/model-widget-3f2b1368.js +122 -0
- package/multirow-e1e1205c.js +292 -0
- package/multirow-widget copy-671ebd9c.js +858 -0
- package/multirow-widget-d256cac6.js +694 -0
- package/name-editor-05685151.js +104 -0
- package/optionItem-0ac4a3ae.js +4667 -0
- package/package.json +13 -0
- package/pagination-widget-31a7301d.js +81 -0
- package/picture-upload-widget-46ea42a0.js +102 -0
- package/postcss-2c4d92ea.js +2285 -0
- package/progress-widget-fc1f9557.js +52 -0
- package/property-base-e63e2f28.js +78 -0
- package/propresult-8fdf23e2.js +22 -0
- package/radio-widget-fbc63c11.js +79 -0
- package/range-widget-b0882319.js +74 -0
- package/rate-widget-9719ca7d.js +56 -0
- package/reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js +61 -0
- package/result-widget-925a5426.js +67 -0
- package/rich-editor-widget-426f0b19.js +77 -0
- package/router-widget-209f0eb1.js +54 -0
- package/schemaData-ab87bd49.js +333 -0
- package/select-widget-0b560a2f.js +288 -0
- package/setView-de8aaf40.js +84 -0
- package/sfc-10e3d29c.js +2570 -0
- package/share-editor-27d43940.js +448 -0
- package/share-event-dd8ff2ba.js +26 -0
- package/share-field-451430de.js +690 -0
- package/share-file-124a4d83.js +121 -0
- package/size-editor-ea05760c.js +92 -0
- package/slider-widget-fb4efa96.js +62 -0
- package/slot-04a83a27.js +17 -0
- package/static-text-widget-2efdd909.js +51 -0
- package/steps-widget-6f283f21.js +91 -0
- package/subMenu-widget-77e295cb.js +16 -0
- package/subMenu-widget.vue_vue_type_script_setup_true_lang-b051a10e.js +69 -0
- package/switch-widget-f1120b6c.js +56 -0
- package/tab-pane-widget-99c21615.js +8 -0
- package/tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js +35 -0
- package/table-col-widget-d6d5d21f.js +23 -0
- package/table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-2efa4d60.js +80 -0
- package/table-widget-9b8d9798.js +163 -0
- package/tabs-widget-88393072.js +68 -0
- package/tag-widget-33c17c06.js +38 -0
- package/target-code-48e9d055.js +33 -0
- package/target-datasource-35dfcb1d.js +221 -0
- package/target-link-3ffd0149.js +126 -0
- package/target-saveForm-012b7de1.js +136 -0
- package/target-widget-3d7f6104.js +59 -0
- package/target-window-7556d301.js +54 -0
- package/template-c30585f4.js +251740 -0
- package/text-widget-8b5ece83.js +38 -0
- package/textarea-widget-e7c1d9ed.js +56 -0
- package/time-picker-range-widget-b8dfcc3b.js +58 -0
- package/time-picker-widget-73bde0a3.js +57 -0
- package/time-select-widget-08008b76.js +57 -0
- package/tmpl-widget-7d245d41.js +92 -0
- package/tooltip-wrapper-2922e49e.js +31 -0
- package/tree-select-widget-67231123.js +94 -0
- package/tree-widget-ab91165f.js +90 -0
- package/uuid-39f0308a.js +196 -0
- package/value-editor-27783d6c.js +89 -0
- package/vue3-sfc-loader-b70bdce4.js +34688 -0
- package/widget-base-4c2d6265.js +27 -0
- package/widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js +277 -0
- package/wrapper-widget-5702502d.js +78 -0
|
@@ -0,0 +1,225 @@
|
|
|
1
|
+
import { defineComponent as $, ref as z, resolveComponent as v, openBlock as k, createElementBlock as y, Fragment as E, createVNode as p, withCtx as r, createTextVNode as I, toDisplayString as b, unref as w, createElementVNode as W, renderList as N, createBlock as S, createCommentVNode as A } from "vue";
|
|
2
|
+
import { a as i, o as j, k as G, d as L } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { I as Q } from "./property-base-e63e2f28.js";
|
|
4
|
+
import { u as X } from "./share-editor-27d43940.js";
|
|
5
|
+
import { W as x } from "./enum-type-255ade69.js";
|
|
6
|
+
import { c as U } from "./uuid-39f0308a.js";
|
|
7
|
+
import { _ as Y } from "./_plugin-vue_export-helper-dad06003.js";
|
|
8
|
+
import "./baseImp-8c4be88e.js";
|
|
9
|
+
import "./icon-2bb9fa65.js";
|
|
10
|
+
import "./template-c30585f4.js";
|
|
11
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
+
import "./dialog-5e196819.js";
|
|
13
|
+
import "element-plus";
|
|
14
|
+
const Z = { class: "bold" }, V = {
|
|
15
|
+
key: 0,
|
|
16
|
+
style: { margin: "10px" }
|
|
17
|
+
}, O = { class: "var-item" }, ee = { class: "var-title" }, te = { class: "var-capsule" }, se = /* @__PURE__ */ $({
|
|
18
|
+
__name: "index",
|
|
19
|
+
props: {
|
|
20
|
+
...Q,
|
|
21
|
+
optionItems: { type: Object },
|
|
22
|
+
widgetList: { type: Object }
|
|
23
|
+
},
|
|
24
|
+
setup(D, { expose: B }) {
|
|
25
|
+
const C = D, F = {
|
|
26
|
+
setShow: "setHidden",
|
|
27
|
+
setHidden: "setShow",
|
|
28
|
+
setEnable: "setDisabled",
|
|
29
|
+
setDisabled: "setEnable",
|
|
30
|
+
setRequired: "setNoRequired",
|
|
31
|
+
setNoRequired: "setRequired"
|
|
32
|
+
/* setRequired */
|
|
33
|
+
}, R = [
|
|
34
|
+
{ eventId: "setShow", label: i.i18nt("designer.setting.actionShowWidget"), event: x.setHidden, args: { flag: !1 } },
|
|
35
|
+
{ eventId: "setHidden", label: i.i18nt("designer.setting.actionHideWidget"), event: x.setHidden, args: { flag: !0 } },
|
|
36
|
+
{ eventId: "setEnable", label: i.i18nt("designer.setting.actionEnableWidget"), event: x.setDisabled, args: { flag: !1 } },
|
|
37
|
+
{ eventId: "setDisabled", label: i.i18nt("designer.setting.actionDisableWidget"), event: x.setDisabled, args: { flag: !0 } },
|
|
38
|
+
{ eventId: "setRequired", label: i.i18nt("designer.setting.actionRequiredWidget"), event: x.setRequired, args: { flag: !0 } },
|
|
39
|
+
{ eventId: "setNoRequired", label: i.i18nt("designer.setting.actionNoRequiredWidget"), event: x.setRequired, args: { flag: !1 } },
|
|
40
|
+
{ eventId: "resetField", label: i.i18nt("designer.setting.actionResetWidget"), event: x.resetField }
|
|
41
|
+
], P = (c, m) => {
|
|
42
|
+
const o = {};
|
|
43
|
+
return c == null || c.map((a) => {
|
|
44
|
+
var s;
|
|
45
|
+
const l = U(a.value), t = m == null ? void 0 : m[l], n = t == null ? void 0 : t.result, h = t == null ? void 0 : t.checked, d = {};
|
|
46
|
+
(s = j(n)) == null || s.map((e) => {
|
|
47
|
+
var _;
|
|
48
|
+
d[e] = (_ = n == null ? void 0 : n[e]) == null ? void 0 : _.ids;
|
|
49
|
+
}), o[l] = {
|
|
50
|
+
checked: h || [],
|
|
51
|
+
result: d || {}
|
|
52
|
+
};
|
|
53
|
+
}), o;
|
|
54
|
+
}, T = (c) => {
|
|
55
|
+
var o, a;
|
|
56
|
+
const m = {};
|
|
57
|
+
return (a = (o = j(c)) == null ? void 0 : o.filter((l) => {
|
|
58
|
+
var t, n;
|
|
59
|
+
return ((n = (t = c[l]) == null ? void 0 : t.checked) == null ? void 0 : n.length) > 0;
|
|
60
|
+
})) == null || a.map((l) => {
|
|
61
|
+
var h, d, s;
|
|
62
|
+
const t = (h = c[l]) == null ? void 0 : h.result, n = {};
|
|
63
|
+
(d = j(t)) == null || d.map((e) => {
|
|
64
|
+
var _, f;
|
|
65
|
+
if ((f = (_ = c[l]) == null ? void 0 : _.checked) != null && f.includes(e)) {
|
|
66
|
+
const g = R == null ? void 0 : R.find((q) => q.eventId === e);
|
|
67
|
+
n[e] = { args: g == null ? void 0 : g.args, event: g == null ? void 0 : g.event, ids: t[e] };
|
|
68
|
+
}
|
|
69
|
+
}), m[l] = {
|
|
70
|
+
checked: (s = c[l]) == null ? void 0 : s.checked,
|
|
71
|
+
result: n
|
|
72
|
+
};
|
|
73
|
+
}), m;
|
|
74
|
+
}, { propValue: H } = X(C), J = U(H == null ? void 0 : H.value), u = z(P(C.optionItems, J)), K = () => {
|
|
75
|
+
var m;
|
|
76
|
+
const c = G(u.value);
|
|
77
|
+
(m = Object.entries(u.value)) == null || m.forEach(([o, a]) => {
|
|
78
|
+
var n;
|
|
79
|
+
const l = {}, t = [];
|
|
80
|
+
(n = Object.entries(u.value)) == null || n.forEach(([h, d]) => {
|
|
81
|
+
var s;
|
|
82
|
+
o === h || !(d != null && d.result) || (s = Object.entries(d == null ? void 0 : d.result)) == null || s.forEach(([e, _]) => {
|
|
83
|
+
const f = F[e];
|
|
84
|
+
if (!f || !_)
|
|
85
|
+
return;
|
|
86
|
+
const g = { [f]: _ };
|
|
87
|
+
L(l, g), t.push(f);
|
|
88
|
+
});
|
|
89
|
+
}), c[o] = { checked: L(t, a == null ? void 0 : a.checked), result: L(l, a == null ? void 0 : a.result) };
|
|
90
|
+
}), u.value = c;
|
|
91
|
+
}, M = () => {
|
|
92
|
+
u.value = P(C.optionItems, {});
|
|
93
|
+
};
|
|
94
|
+
return B({
|
|
95
|
+
save: () => T(u.value)
|
|
96
|
+
}), (c, m) => {
|
|
97
|
+
const o = v("el-col"), a = v("el-button"), l = v("el-row"), t = v("el-checkbox"), n = v("el-checkbox-group"), h = v("el-tag"), d = v("el-tree-select");
|
|
98
|
+
return k(), y(E, null, [
|
|
99
|
+
p(l, { class: "row" }, {
|
|
100
|
+
default: r(() => [
|
|
101
|
+
p(o, {
|
|
102
|
+
span: 4,
|
|
103
|
+
class: "col bold"
|
|
104
|
+
}, {
|
|
105
|
+
default: r(() => [
|
|
106
|
+
I(b(w(i).i18nt("designer.hint.option")), 1)
|
|
107
|
+
]),
|
|
108
|
+
_: 1
|
|
109
|
+
}),
|
|
110
|
+
p(o, {
|
|
111
|
+
span: 20,
|
|
112
|
+
class: "col flexJustify"
|
|
113
|
+
}, {
|
|
114
|
+
default: r(() => [
|
|
115
|
+
W("span", Z, b(w(i).i18nt("designer.hint.relateWidget")), 1),
|
|
116
|
+
W("span", null, [
|
|
117
|
+
I(b(w(i).i18nt("designer.hint.autoRelateTip")) + " ", 1),
|
|
118
|
+
p(a, {
|
|
119
|
+
onClick: K,
|
|
120
|
+
type: "primary",
|
|
121
|
+
plain: ""
|
|
122
|
+
}, {
|
|
123
|
+
default: r(() => [
|
|
124
|
+
I(b(w(i).i18nt("designer.hint.autoRelate")), 1)
|
|
125
|
+
]),
|
|
126
|
+
_: 1
|
|
127
|
+
}),
|
|
128
|
+
p(a, {
|
|
129
|
+
onClick: M,
|
|
130
|
+
type: "danger",
|
|
131
|
+
plain: ""
|
|
132
|
+
}, {
|
|
133
|
+
default: r(() => [
|
|
134
|
+
I(b(w(i).i18nt("designer.hint.removeRelate")), 1)
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
})
|
|
138
|
+
])
|
|
139
|
+
]),
|
|
140
|
+
_: 1
|
|
141
|
+
})
|
|
142
|
+
]),
|
|
143
|
+
_: 1
|
|
144
|
+
}),
|
|
145
|
+
(k(!0), y(E, null, N(D.optionItems, (s) => (k(), S(l, { class: "row" }, {
|
|
146
|
+
default: r(() => [
|
|
147
|
+
p(o, {
|
|
148
|
+
class: "col",
|
|
149
|
+
span: 4
|
|
150
|
+
}, {
|
|
151
|
+
default: r(() => [
|
|
152
|
+
I(b(s.label), 1)
|
|
153
|
+
]),
|
|
154
|
+
_: 2
|
|
155
|
+
}, 1024),
|
|
156
|
+
p(o, {
|
|
157
|
+
class: "col",
|
|
158
|
+
span: 20
|
|
159
|
+
}, {
|
|
160
|
+
default: r(() => [
|
|
161
|
+
(k(), S(n, {
|
|
162
|
+
modelValue: u.value[s.value].checked,
|
|
163
|
+
"onUpdate:modelValue": (e) => u.value[s.value].checked = e,
|
|
164
|
+
key: s.value
|
|
165
|
+
}, {
|
|
166
|
+
default: r(() => [
|
|
167
|
+
(k(), y(E, null, N(R, (e) => p(t, {
|
|
168
|
+
label: e == null ? void 0 : e.label,
|
|
169
|
+
value: e == null ? void 0 : e.eventId
|
|
170
|
+
}, null, 8, ["label", "value"])), 64))
|
|
171
|
+
]),
|
|
172
|
+
_: 2
|
|
173
|
+
}, 1032, ["modelValue", "onUpdate:modelValue"])),
|
|
174
|
+
(k(), y(E, null, N(R, (e) => {
|
|
175
|
+
var _, f;
|
|
176
|
+
return k(), y(E, null, [
|
|
177
|
+
(f = (_ = u.value[s.value]) == null ? void 0 : _.checked) != null && f.includes(e == null ? void 0 : e.eventId) ? (k(), y("div", V, [
|
|
178
|
+
p(d, {
|
|
179
|
+
"default-expand-all": "",
|
|
180
|
+
"highlight-current": "",
|
|
181
|
+
modelValue: u.value[s.value].result[e.eventId],
|
|
182
|
+
"onUpdate:modelValue": (g) => u.value[s.value].result[e.eventId] = g,
|
|
183
|
+
data: D.widgetList,
|
|
184
|
+
"node-key": "id",
|
|
185
|
+
label: "label",
|
|
186
|
+
"render-after-expand": !1,
|
|
187
|
+
"check-strictly": !0,
|
|
188
|
+
"expand-on-click-node": !1,
|
|
189
|
+
"value-key": "id",
|
|
190
|
+
multiple: !0,
|
|
191
|
+
"show-checkbox": !0
|
|
192
|
+
}, {
|
|
193
|
+
prefix: r(() => [
|
|
194
|
+
p(h, null, {
|
|
195
|
+
default: r(() => [
|
|
196
|
+
I(b(e == null ? void 0 : e.label), 1)
|
|
197
|
+
]),
|
|
198
|
+
_: 2
|
|
199
|
+
}, 1024)
|
|
200
|
+
]),
|
|
201
|
+
default: r(({ node: g, data: q }) => [
|
|
202
|
+
W("span", O, [
|
|
203
|
+
W("span", ee, b(q.label), 1),
|
|
204
|
+
W("span", te, b(w(i).i18nt(`designer.widgetLabel.${q.type}`, q.type)), 1)
|
|
205
|
+
])
|
|
206
|
+
]),
|
|
207
|
+
_: 2
|
|
208
|
+
}, 1032, ["modelValue", "onUpdate:modelValue", "data"])
|
|
209
|
+
])) : A("", !0)
|
|
210
|
+
], 64);
|
|
211
|
+
}), 64))
|
|
212
|
+
]),
|
|
213
|
+
_: 2
|
|
214
|
+
}, 1024)
|
|
215
|
+
]),
|
|
216
|
+
_: 2
|
|
217
|
+
}, 1024))), 256))
|
|
218
|
+
], 64);
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
});
|
|
222
|
+
const be = /* @__PURE__ */ Y(se, [["__scopeId", "data-v-acfb3c22"]]);
|
|
223
|
+
export {
|
|
224
|
+
be as default
|
|
225
|
+
};
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { defineComponent as u, ref as f, openBlock as _, createBlock as g, unref as v } from "vue";
|
|
2
|
+
import { I as x } from "./property-base-e63e2f28.js";
|
|
3
|
+
import { u as C } from "./share-editor-27d43940.js";
|
|
4
|
+
import { a as P, P as r } from "./baseImp-8c4be88e.js";
|
|
5
|
+
import { s as V } from "./schemaData-ab87bd49.js";
|
|
6
|
+
import { _ as h } from "./_plugin-vue_export-helper-dad06003.js";
|
|
7
|
+
import "./enum-type-255ade69.js";
|
|
8
|
+
import "./enum-type-287a50b6.js";
|
|
9
|
+
import "./uuid-39f0308a.js";
|
|
10
|
+
import "./template-c30585f4.js";
|
|
11
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
12
|
+
import "./icon-2bb9fa65.js";
|
|
13
|
+
import "./dialog-5e196819.js";
|
|
14
|
+
import "element-plus";
|
|
15
|
+
import "./index-ddd23411.js";
|
|
16
|
+
import "./setView-de8aaf40.js";
|
|
17
|
+
const y = /* @__PURE__ */ u({
|
|
18
|
+
__name: "index",
|
|
19
|
+
props: {
|
|
20
|
+
...x,
|
|
21
|
+
widgetList: { type: Array }
|
|
22
|
+
},
|
|
23
|
+
setup(s, { expose: p }) {
|
|
24
|
+
var t;
|
|
25
|
+
const e = s, { propClearVariable: i } = C(e), { loadSchemaData: m } = P({ pageConfig: e.pageConfig }), l = r.getSchemaData(r.get(e.optionModel, (t = e.propConfig) == null ? void 0 : t.name)), o = f(l), n = m();
|
|
26
|
+
return p({
|
|
27
|
+
save: () => o.value,
|
|
28
|
+
clear: () => {
|
|
29
|
+
i();
|
|
30
|
+
}
|
|
31
|
+
}), (c, a) => (_(), g(V, {
|
|
32
|
+
"schema-list": v(n),
|
|
33
|
+
"all-fields": c.widgetList,
|
|
34
|
+
modelValue: o.value,
|
|
35
|
+
"onUpdate:modelValue": a[0] || (a[0] = (d) => o.value = d)
|
|
36
|
+
}, null, 8, ["schema-list", "all-fields", "modelValue"]));
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
const J = /* @__PURE__ */ h(y, [["__scopeId", "data-v-3be8c897"]]);
|
|
40
|
+
export {
|
|
41
|
+
J as default
|
|
42
|
+
};
|
|
@@ -0,0 +1,138 @@
|
|
|
1
|
+
import { defineComponent as T, computed as r, ref as f, resolveComponent as g, openBlock as n, createElementBlock as u, createVNode as p, withCtx as m, withDirectives as j, createElementVNode as y, createBlock as B, unref as o, createCommentVNode as E, createTextVNode as v, toDisplayString as _ } from "vue";
|
|
2
|
+
import { a as k } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { _ as N } from "./reg-editor.vue_vue_type_script_setup_true_lang-56504fb0.js";
|
|
4
|
+
import { ClickOutside as S } from "element-plus";
|
|
5
|
+
import "./enum-type-255ade69.js";
|
|
6
|
+
import "./index-2936e7cf.js";
|
|
7
|
+
import "./emitter-2b9b9409.js";
|
|
8
|
+
import "./index-f146282d.js";
|
|
9
|
+
import "./uuid-39f0308a.js";
|
|
10
|
+
import "./optionItem-0ac4a3ae.js";
|
|
11
|
+
import "./baseImp-8c4be88e.js";
|
|
12
|
+
import "./icon-2bb9fa65.js";
|
|
13
|
+
import "./template-c30585f4.js";
|
|
14
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
15
|
+
import "./dialog-5e196819.js";
|
|
16
|
+
import "./index-7fa591e3.js";
|
|
17
|
+
import "./drag-wrapper-f9fb1533.js";
|
|
18
|
+
import "./widget-base-4c2d6265.js";
|
|
19
|
+
import "./multirow-e1e1205c.js";
|
|
20
|
+
import "./slot-04a83a27.js";
|
|
21
|
+
import "./_plugin-vue_export-helper-dad06003.js";
|
|
22
|
+
import "./property-base-e63e2f28.js";
|
|
23
|
+
import "./install-designer-bed2e18a.js";
|
|
24
|
+
import "./cont-cell-widget-42f96421.js";
|
|
25
|
+
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d3be593a.js";
|
|
26
|
+
import "./share-field-451430de.js";
|
|
27
|
+
import "./cont-widget-9dda9135.js";
|
|
28
|
+
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-bbe0cabe.js";
|
|
29
|
+
import "./index-ffbcbc43.js";
|
|
30
|
+
import "./form-widget-98a02c28.js";
|
|
31
|
+
import "./grid-col-widget-3ea371ea.js";
|
|
32
|
+
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f40c8e16.js";
|
|
33
|
+
import "./grid-widget-f0635d43.js";
|
|
34
|
+
import "./ltable-col-widget-9f26b93d.js";
|
|
35
|
+
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-639ee976.js";
|
|
36
|
+
import "./ltable-widget-b78a72ee.js";
|
|
37
|
+
import "./tab-pane-widget-99c21615.js";
|
|
38
|
+
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bc962788.js";
|
|
39
|
+
import "./tabs-widget-88393072.js";
|
|
40
|
+
import "./wrapper-widget-5702502d.js";
|
|
41
|
+
import "./index-9fd4a537.js";
|
|
42
|
+
import "./setView-de8aaf40.js";
|
|
43
|
+
const V = { class: "popover-body" }, W = { class: "popover-footer" }, we = /* @__PURE__ */ T({
|
|
44
|
+
__name: "index",
|
|
45
|
+
props: {
|
|
46
|
+
props: { type: Object },
|
|
47
|
+
triggerRef: { type: Object },
|
|
48
|
+
title: { type: String },
|
|
49
|
+
visible: { type: Boolean },
|
|
50
|
+
keys: { type: Object },
|
|
51
|
+
widgetType: { type: String },
|
|
52
|
+
data: { type: Object },
|
|
53
|
+
path: { type: String }
|
|
54
|
+
},
|
|
55
|
+
emits: ["confirm", "cancel"],
|
|
56
|
+
setup(i, { emit: c }) {
|
|
57
|
+
const t = i, b = r(() => {
|
|
58
|
+
var e;
|
|
59
|
+
return (e = t == null ? void 0 : t.props) == null ? void 0 : e.designer;
|
|
60
|
+
}), C = r(() => {
|
|
61
|
+
var e;
|
|
62
|
+
return (e = t == null ? void 0 : t.props) == null ? void 0 : e.pageConfig;
|
|
63
|
+
}), h = r(() => {
|
|
64
|
+
var e;
|
|
65
|
+
return (e = t == null ? void 0 : t.props) == null ? void 0 : e.selectedWidget;
|
|
66
|
+
}), a = f(), w = f(), x = () => {
|
|
67
|
+
c("cancel");
|
|
68
|
+
}, l = () => {
|
|
69
|
+
var e;
|
|
70
|
+
(e = a.value) == null || e.submit((s) => {
|
|
71
|
+
s && c("confirm", t.data);
|
|
72
|
+
});
|
|
73
|
+
}, O = (e) => {
|
|
74
|
+
t.visible && setTimeout(() => {
|
|
75
|
+
l();
|
|
76
|
+
}, 1e3);
|
|
77
|
+
};
|
|
78
|
+
return (e, s) => {
|
|
79
|
+
const d = g("el-button"), R = g("el-popover");
|
|
80
|
+
return n(), u("div", null, [
|
|
81
|
+
p(R, {
|
|
82
|
+
ref_key: "popoverRef",
|
|
83
|
+
ref: w,
|
|
84
|
+
visible: i.visible,
|
|
85
|
+
"virtual-ref": i.triggerRef,
|
|
86
|
+
trigger: "click",
|
|
87
|
+
"virtual-triggering": "",
|
|
88
|
+
placement: "left",
|
|
89
|
+
"popper-class": "popOverClass",
|
|
90
|
+
"popper-style": { width: "fit-content" },
|
|
91
|
+
"append-to-body": !0
|
|
92
|
+
}, {
|
|
93
|
+
default: m(() => [
|
|
94
|
+
j((n(), u("div", null, [
|
|
95
|
+
y("div", V, [
|
|
96
|
+
i.data ? (n(), B(N, {
|
|
97
|
+
key: 0,
|
|
98
|
+
ref_key: "regEditorRef",
|
|
99
|
+
ref: a,
|
|
100
|
+
keys: i.keys,
|
|
101
|
+
widgetType: i.widgetType,
|
|
102
|
+
data: i.data,
|
|
103
|
+
path: i.path,
|
|
104
|
+
designer: o(b),
|
|
105
|
+
pageConfig: o(C),
|
|
106
|
+
selectedWidget: o(h)
|
|
107
|
+
}, null, 8, ["keys", "widgetType", "data", "path", "designer", "pageConfig", "selectedWidget"])) : E("", !0)
|
|
108
|
+
]),
|
|
109
|
+
y("div", W, [
|
|
110
|
+
p(d, { onClick: x }, {
|
|
111
|
+
default: m(() => [
|
|
112
|
+
v(_(o(k).i18nt("designer.hint.cancel")), 1)
|
|
113
|
+
]),
|
|
114
|
+
_: 1
|
|
115
|
+
}),
|
|
116
|
+
p(d, {
|
|
117
|
+
type: "primary",
|
|
118
|
+
onClick: l
|
|
119
|
+
}, {
|
|
120
|
+
default: m(() => [
|
|
121
|
+
v(_(o(k).i18nt("designer.hint.confirm")), 1)
|
|
122
|
+
]),
|
|
123
|
+
_: 1
|
|
124
|
+
})
|
|
125
|
+
])
|
|
126
|
+
])), [
|
|
127
|
+
[o(S), O]
|
|
128
|
+
])
|
|
129
|
+
]),
|
|
130
|
+
_: 1
|
|
131
|
+
}, 8, ["visible", "virtual-ref"])
|
|
132
|
+
]);
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
export {
|
|
137
|
+
we as default
|
|
138
|
+
};
|
|
@@ -0,0 +1,132 @@
|
|
|
1
|
+
var x = Object.defineProperty;
|
|
2
|
+
var z = (a, s, l) => s in a ? x(a, s, { enumerable: !0, configurable: !0, writable: !0, value: l }) : a[s] = l;
|
|
3
|
+
var r = (a, s, l) => (z(a, typeof s != "symbol" ? s + "" : s, l), l);
|
|
4
|
+
import { defineComponent as R, useCssVars as W, ref as k, computed as F, onMounted as q, openBlock as w, createElementBlock as C, createElementVNode as D } from "vue";
|
|
5
|
+
import { _ as I } from "./_plugin-vue_export-helper-dad06003.js";
|
|
6
|
+
class d {
|
|
7
|
+
constructor(s, l, o, m) {
|
|
8
|
+
/**
|
|
9
|
+
* 来源
|
|
10
|
+
*/
|
|
11
|
+
r(this, "meta");
|
|
12
|
+
/**
|
|
13
|
+
* 标题
|
|
14
|
+
*/
|
|
15
|
+
r(this, "caption");
|
|
16
|
+
/**
|
|
17
|
+
* 代码块
|
|
18
|
+
*/
|
|
19
|
+
r(this, "value");
|
|
20
|
+
/**
|
|
21
|
+
* 优先级
|
|
22
|
+
*/
|
|
23
|
+
r(this, "score");
|
|
24
|
+
this.meta = s, this.caption = l, this.value = o, this.score = m;
|
|
25
|
+
}
|
|
26
|
+
static getSystemBind() {
|
|
27
|
+
return [
|
|
28
|
+
new d("VForm API", "getWidgetRef", "getWidgetRef()", 1),
|
|
29
|
+
new d("VForm API", "getFormRef", "getFormRef()", 1)
|
|
30
|
+
];
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
const M = { class: "ace-container" }, O = /* @__PURE__ */ R({
|
|
34
|
+
__name: "index",
|
|
35
|
+
props: {
|
|
36
|
+
modelValue: { default: "" },
|
|
37
|
+
readonly: { type: Boolean, default: !1 },
|
|
38
|
+
mode: { default: "javascript" },
|
|
39
|
+
theme: { default: "sqlserver" },
|
|
40
|
+
userWorker: { type: Boolean, default: !0 },
|
|
41
|
+
rows: null,
|
|
42
|
+
maxLines: { default: 20 },
|
|
43
|
+
minLines: { default: 7 },
|
|
44
|
+
fontSize: { default: 12 },
|
|
45
|
+
tabSize: { default: 2 },
|
|
46
|
+
highlightActiveLine: { type: Boolean, default: !0 },
|
|
47
|
+
acData: null
|
|
48
|
+
},
|
|
49
|
+
emits: ["update:modelValue"],
|
|
50
|
+
setup(a, { expose: s, emit: l }) {
|
|
51
|
+
const o = a;
|
|
52
|
+
W((e) => ({
|
|
53
|
+
f25a68c8: a.minLines
|
|
54
|
+
}));
|
|
55
|
+
const m = k();
|
|
56
|
+
let t = null, i = null;
|
|
57
|
+
const _ = (e) => {
|
|
58
|
+
import("./import-config-1eb9a66b.js").then((n) => {
|
|
59
|
+
var c;
|
|
60
|
+
e && e((c = n == null ? void 0 : n.default) == null ? void 0 : c.ace);
|
|
61
|
+
});
|
|
62
|
+
}, y = (e) => {
|
|
63
|
+
var n;
|
|
64
|
+
i = e, t == null || t.destroy(), t = i == null ? void 0 : i.edit(m.value, {
|
|
65
|
+
maxLines: o.maxLines,
|
|
66
|
+
minLines: o.minLines,
|
|
67
|
+
fontSize: o.fontSize,
|
|
68
|
+
tabSize: o.tabSize,
|
|
69
|
+
readOnly: o.readonly,
|
|
70
|
+
highlightActiveLine: o.highlightActiveLine,
|
|
71
|
+
value: o.modelValue
|
|
72
|
+
}), (n = t == null ? void 0 : t.session) == null || n.setMode(`ace/mode/${o.mode}`), t == null || t.setTheme(`ace/theme/${o.theme}`), o.readonly ? p(!1) : (p(o.userWorker), L(i), setTimeout(h, 1e3), b());
|
|
73
|
+
}, V = () => {
|
|
74
|
+
_((e) => {
|
|
75
|
+
y(e);
|
|
76
|
+
});
|
|
77
|
+
}, p = (e) => {
|
|
78
|
+
var n;
|
|
79
|
+
(n = u.value) == null || n.setUseWorker(e);
|
|
80
|
+
};
|
|
81
|
+
let g;
|
|
82
|
+
const L = (e) => {
|
|
83
|
+
g = o.acData || d.getSystemBind(), t == null || t.setOptions({
|
|
84
|
+
enableBasicAutocompletion: !0,
|
|
85
|
+
//设置基础自动完成
|
|
86
|
+
enableSnippets: !0,
|
|
87
|
+
//设置代码片段提示
|
|
88
|
+
enableLiveAutocompletion: !0
|
|
89
|
+
//设置自动提示
|
|
90
|
+
});
|
|
91
|
+
var n = e == null ? void 0 : e.require("ace/ext/language_tools");
|
|
92
|
+
n == null || n.addCompleter({
|
|
93
|
+
getCompletions: function(c, P, T, f, v) {
|
|
94
|
+
return (f == null ? void 0 : f.length) === 0 ? v(null, []) : v(null, g);
|
|
95
|
+
}
|
|
96
|
+
});
|
|
97
|
+
}, b = () => {
|
|
98
|
+
var e;
|
|
99
|
+
(e = u.value) == null || e.on("change", (n) => {
|
|
100
|
+
l("update:modelValue", A());
|
|
101
|
+
});
|
|
102
|
+
}, A = () => t == null ? void 0 : t.getValue(), S = (e) => {
|
|
103
|
+
var n;
|
|
104
|
+
(n = u.value) == null || n.setValue(e);
|
|
105
|
+
}, u = F(() => t == null ? void 0 : t.getSession()), h = () => {
|
|
106
|
+
if (o.modelValue) {
|
|
107
|
+
var e = i == null ? void 0 : i.require("ace/ext/beautify");
|
|
108
|
+
e == null || e.beautify(u.value);
|
|
109
|
+
}
|
|
110
|
+
}, B = () => {
|
|
111
|
+
var e;
|
|
112
|
+
return (e = u.value) == null ? void 0 : e.getAnnotations();
|
|
113
|
+
};
|
|
114
|
+
return q(() => {
|
|
115
|
+
V();
|
|
116
|
+
}), s({
|
|
117
|
+
setValue: S,
|
|
118
|
+
formatCode: h,
|
|
119
|
+
getEditorAnnotations: B
|
|
120
|
+
}), (e, n) => (w(), C("div", M, [
|
|
121
|
+
D("div", {
|
|
122
|
+
class: "ace-editor",
|
|
123
|
+
ref_key: "aceRef",
|
|
124
|
+
ref: m
|
|
125
|
+
}, null, 512)
|
|
126
|
+
]));
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
const N = /* @__PURE__ */ I(O, [["__scopeId", "data-v-bb8be620"]]);
|
|
130
|
+
export {
|
|
131
|
+
N as default
|
|
132
|
+
};
|