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,23 @@
|
|
|
1
|
+
import { f as p } from "./baseImp-8c4be88e.js";
|
|
2
|
+
import "./enum-type-287a50b6.js";
|
|
3
|
+
import "./uuid-39f0308a.js";
|
|
4
|
+
import "./enum-type-255ade69.js";
|
|
5
|
+
import "./icon-2bb9fa65.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import "./template-c30585f4.js";
|
|
8
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
9
|
+
import "./dialog-5e196819.js";
|
|
10
|
+
import "element-plus";
|
|
11
|
+
const h = function(i, t, e, s) {
|
|
12
|
+
import("./clipboard-fc4d858d.js").then((r) => r.c).then((r) => {
|
|
13
|
+
const m = r.default, o = new m(t.target, { text: () => i });
|
|
14
|
+
o.on("success", () => {
|
|
15
|
+
p.success(e), o.destroy();
|
|
16
|
+
}), o.on("error", () => {
|
|
17
|
+
p.error(s), o.destroy();
|
|
18
|
+
}), o.on("click", t);
|
|
19
|
+
});
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
h as copyToClipboard
|
|
23
|
+
};
|
|
@@ -0,0 +1,227 @@
|
|
|
1
|
+
import { defineComponent as $, useCssVars as J, unref as a, ref as i, watch as H, resolveComponent as x, openBlock as A, createElementBlock as K, createElementVNode as l, createVNode as r, withCtx as d, toDisplayString as f, mergeProps as I, createBlock as Q } from "vue";
|
|
2
|
+
import { a as h, P as X } from "./enum-type-287a50b6.js";
|
|
3
|
+
import Y from "./index-7c2a8e33.js";
|
|
4
|
+
import { c as M } from "./uuid-39f0308a.js";
|
|
5
|
+
import { A as Z, C as ee } from "./template-c30585f4.js";
|
|
6
|
+
import { e as te, W as le, P as oe } from "./baseImp-8c4be88e.js";
|
|
7
|
+
import { ElTree as R } from "element-plus";
|
|
8
|
+
import { Search as N } from "./index-ddd23411.js";
|
|
9
|
+
import { u as se } from "./setView-de8aaf40.js";
|
|
10
|
+
import { _ as ae } from "./_plugin-vue_export-helper-dad06003.js";
|
|
11
|
+
import { I as ne } from "./property-base-e63e2f28.js";
|
|
12
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
13
|
+
import "./enum-type-255ade69.js";
|
|
14
|
+
import "./icon-2bb9fa65.js";
|
|
15
|
+
import "./dialog-5e196819.js";
|
|
16
|
+
const re = { id: "formulaPage" }, ie = { class: "page" }, de = { class: "card" }, ce = { class: "card_header" }, ue = { class: "card_body" }, fe = { class: "card" }, _e = { class: "card_header" }, pe = { class: "card_body" }, me = { class: "card-search" }, he = { class: "var-item" }, ve = { class: "var-title" }, be = { class: "var-capsule" }, ge = { class: "card" }, Ve = { class: "card_header" }, Fe = { class: "card_body" }, ye = { class: "card-search" }, Le = ["onMouseover"], Ce = { class: "card" }, xe = { class: "card_header" }, ke = { class: "card_body" }, we = { class: "text" }, Pe = ["innerHTML"], Ee = /* @__PURE__ */ $({
|
|
17
|
+
__name: "formula",
|
|
18
|
+
props: {
|
|
19
|
+
currentField: null,
|
|
20
|
+
allFields: null,
|
|
21
|
+
modelValue: null
|
|
22
|
+
},
|
|
23
|
+
emits: ["update:modelValue"],
|
|
24
|
+
setup(b, { emit: L }) {
|
|
25
|
+
const c = b;
|
|
26
|
+
J((e) => ({
|
|
27
|
+
"1ccc4cd3": a(z)
|
|
28
|
+
}));
|
|
29
|
+
const g = {
|
|
30
|
+
children: "children",
|
|
31
|
+
label: "label",
|
|
32
|
+
comment: "comment",
|
|
33
|
+
caller: "caller"
|
|
34
|
+
}, u = i(c.modelValue), V = i(), _ = i();
|
|
35
|
+
_.value = {
|
|
36
|
+
filterNodeMethod: (e, t) => {
|
|
37
|
+
var o;
|
|
38
|
+
return e ? (o = t.label) == null ? void 0 : o.toLocaleLowerCase().includes(e == null ? void 0 : e.toLocaleLowerCase()) : !0;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
const p = i(""), v = i();
|
|
42
|
+
H(p, (e) => {
|
|
43
|
+
v.value.filter(e);
|
|
44
|
+
});
|
|
45
|
+
const m = i(""), F = i();
|
|
46
|
+
H(m, (e) => {
|
|
47
|
+
F.value.filter(e);
|
|
48
|
+
});
|
|
49
|
+
const C = i(), B = (e, t) => {
|
|
50
|
+
if (!t.isLeaf)
|
|
51
|
+
return;
|
|
52
|
+
const { buildVariable: o } = te(), y = o(e.id);
|
|
53
|
+
V.value.insertContent(y, "variable");
|
|
54
|
+
}, T = (e, t) => {
|
|
55
|
+
k(e.label, e.comment, t.isLeaf);
|
|
56
|
+
}, k = (e, t, o) => {
|
|
57
|
+
o || (t = h.i18nt("designer.expression.formulaFunction")), t = t == null ? void 0 : t.replaceAll(`${e}`, `<span class="cm-func">${e}</span>`), C.value = { title: e, comment: Z(t) };
|
|
58
|
+
}, U = (e, t) => {
|
|
59
|
+
k(e.label, e.comment, t.isLeaf), t.isLeaf && V.value.insertContent(e.caller, "function");
|
|
60
|
+
}, S = M(ee), w = M(c == null ? void 0 : c.allFields), W = () => {
|
|
61
|
+
L("update:modelValue", u.value);
|
|
62
|
+
}, P = () => {
|
|
63
|
+
let e = {};
|
|
64
|
+
const t = X(w, "children");
|
|
65
|
+
return t == null || t.forEach((o) => e[o.id] = o.label), e;
|
|
66
|
+
}, { buildVariableWithLabel: D, removeVariableWithLabel: O } = le(), j = (e) => D(e || "", P()), q = (e) => O(e || "", P()), { pageHeight: z, getComputedHeight: G } = se();
|
|
67
|
+
return G("#formulaPage"), (e, t) => {
|
|
68
|
+
const o = x("el-col"), y = x("el-row"), E = x("el-input");
|
|
69
|
+
return A(), K("div", re, [
|
|
70
|
+
l("div", ie, [
|
|
71
|
+
r(y, { class: "header" }, {
|
|
72
|
+
default: d(() => [
|
|
73
|
+
r(o, { span: 24 }, {
|
|
74
|
+
default: d(() => {
|
|
75
|
+
var s;
|
|
76
|
+
return [
|
|
77
|
+
l("div", de, [
|
|
78
|
+
l("div", ce, [
|
|
79
|
+
l("span", null, f((s = b.currentField) == null ? void 0 : s.label), 1)
|
|
80
|
+
]),
|
|
81
|
+
l("div", ue, [
|
|
82
|
+
r(Y, {
|
|
83
|
+
modelValue: u.value,
|
|
84
|
+
"onUpdate:modelValue": [
|
|
85
|
+
t[0] || (t[0] = (n) => u.value = n),
|
|
86
|
+
W
|
|
87
|
+
],
|
|
88
|
+
ref_key: "FormulaEditorRef",
|
|
89
|
+
ref: V,
|
|
90
|
+
height: "100%",
|
|
91
|
+
gutters: !1,
|
|
92
|
+
"beatify-fn": j,
|
|
93
|
+
"un-beatify-fn": q
|
|
94
|
+
}, null, 8, ["modelValue"])
|
|
95
|
+
])
|
|
96
|
+
])
|
|
97
|
+
];
|
|
98
|
+
}),
|
|
99
|
+
_: 1
|
|
100
|
+
})
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}),
|
|
104
|
+
r(y, {
|
|
105
|
+
class: "main",
|
|
106
|
+
gutter: 10
|
|
107
|
+
}, {
|
|
108
|
+
default: d(() => [
|
|
109
|
+
r(o, { span: 7 }, {
|
|
110
|
+
default: d(() => [
|
|
111
|
+
l("div", fe, [
|
|
112
|
+
l("div", _e, [
|
|
113
|
+
l("span", null, f(a(h).i18nt("designer.expression.allFields")), 1)
|
|
114
|
+
]),
|
|
115
|
+
l("div", pe, [
|
|
116
|
+
l("div", me, [
|
|
117
|
+
r(E, {
|
|
118
|
+
modelValue: m.value,
|
|
119
|
+
"onUpdate:modelValue": t[1] || (t[1] = (s) => m.value = s),
|
|
120
|
+
placeholder: a(h).i18nt("designer.hint.filterInput"),
|
|
121
|
+
"suffix-icon": a(N)
|
|
122
|
+
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])
|
|
123
|
+
]),
|
|
124
|
+
r(a(R), I({
|
|
125
|
+
ref_key: "formulaRef",
|
|
126
|
+
ref: F,
|
|
127
|
+
data: a(w),
|
|
128
|
+
props: g
|
|
129
|
+
}, _.value, { onNodeClick: B }), {
|
|
130
|
+
default: d(({ node: s, data: n }) => [
|
|
131
|
+
l("span", he, [
|
|
132
|
+
l("span", ve, f(n.label), 1),
|
|
133
|
+
l("span", be, f(a(h).i18nt(`designer.widgetLabel.${n.type}`, n.type)), 1)
|
|
134
|
+
])
|
|
135
|
+
]),
|
|
136
|
+
_: 1
|
|
137
|
+
}, 16, ["data"])
|
|
138
|
+
])
|
|
139
|
+
])
|
|
140
|
+
]),
|
|
141
|
+
_: 1
|
|
142
|
+
}),
|
|
143
|
+
r(o, { span: 7 }, {
|
|
144
|
+
default: d(() => [
|
|
145
|
+
l("div", ge, [
|
|
146
|
+
l("div", Ve, [
|
|
147
|
+
l("span", null, f(a(h).i18nt("designer.expression.allFormulas")), 1)
|
|
148
|
+
]),
|
|
149
|
+
l("div", Fe, [
|
|
150
|
+
l("div", ye, [
|
|
151
|
+
r(E, {
|
|
152
|
+
modelValue: p.value,
|
|
153
|
+
"onUpdate:modelValue": t[2] || (t[2] = (s) => p.value = s),
|
|
154
|
+
placeholder: a(h).i18nt("designer.hint.filterInput"),
|
|
155
|
+
"suffix-icon": a(N)
|
|
156
|
+
}, null, 8, ["modelValue", "placeholder", "suffix-icon"])
|
|
157
|
+
]),
|
|
158
|
+
r(a(R), I({
|
|
159
|
+
ref_key: "functionRef",
|
|
160
|
+
ref: v,
|
|
161
|
+
data: a(S),
|
|
162
|
+
props: g
|
|
163
|
+
}, _.value, { onNodeClick: U }), {
|
|
164
|
+
default: d(({ node: s, data: n }) => [
|
|
165
|
+
l("div", {
|
|
166
|
+
onMouseover: (Ie) => T(n, s),
|
|
167
|
+
class: "full-width"
|
|
168
|
+
}, f(n.label), 41, Le)
|
|
169
|
+
]),
|
|
170
|
+
_: 1
|
|
171
|
+
}, 16, ["data"])
|
|
172
|
+
])
|
|
173
|
+
])
|
|
174
|
+
]),
|
|
175
|
+
_: 1
|
|
176
|
+
}),
|
|
177
|
+
r(o, { span: 10 }, {
|
|
178
|
+
default: d(() => {
|
|
179
|
+
var s, n;
|
|
180
|
+
return [
|
|
181
|
+
l("div", Ce, [
|
|
182
|
+
l("div", xe, [
|
|
183
|
+
l("span", null, f((s = C.value) == null ? void 0 : s.title), 1)
|
|
184
|
+
]),
|
|
185
|
+
l("div", ke, [
|
|
186
|
+
l("div", we, [
|
|
187
|
+
l("div", {
|
|
188
|
+
innerHTML: (n = C.value) == null ? void 0 : n.comment
|
|
189
|
+
}, null, 8, Pe)
|
|
190
|
+
])
|
|
191
|
+
])
|
|
192
|
+
])
|
|
193
|
+
];
|
|
194
|
+
}),
|
|
195
|
+
_: 1
|
|
196
|
+
})
|
|
197
|
+
]),
|
|
198
|
+
_: 1
|
|
199
|
+
})
|
|
200
|
+
])
|
|
201
|
+
]);
|
|
202
|
+
};
|
|
203
|
+
}
|
|
204
|
+
});
|
|
205
|
+
const He = /* @__PURE__ */ ae(Ee, [["__scopeId", "data-v-728dab76"]]), Ge = /* @__PURE__ */ $({
|
|
206
|
+
__name: "index",
|
|
207
|
+
props: {
|
|
208
|
+
...ne,
|
|
209
|
+
widgetList: { type: Array },
|
|
210
|
+
currentField: { type: Object }
|
|
211
|
+
},
|
|
212
|
+
setup(b, { expose: L }) {
|
|
213
|
+
var _, p;
|
|
214
|
+
const c = b, g = oe.getFormula((p = c.optionModel) == null ? void 0 : p[(_ = c.propConfig) == null ? void 0 : _.name]) || "", u = i(g);
|
|
215
|
+
return L({
|
|
216
|
+
save: () => u.value
|
|
217
|
+
}), (v, m) => (A(), Q(He, {
|
|
218
|
+
"all-fields": v.widgetList,
|
|
219
|
+
"current-field": v.currentField,
|
|
220
|
+
modelValue: u.value,
|
|
221
|
+
"onUpdate:modelValue": m[0] || (m[0] = (F) => u.value = F)
|
|
222
|
+
}, null, 8, ["all-fields", "current-field", "modelValue"]));
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
export {
|
|
226
|
+
Ge as default
|
|
227
|
+
};
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
import { defineComponent as A, ref as a, computed as V, defineAsyncComponent as l, onMounted as M, nextTick as W, resolveComponent as k, openBlock as u, createBlock as f, withCtx as c, resolveDynamicComponent as j, unref as n, mergeProps as q, createElementVNode as g, createTextVNode as y, toDisplayString as v, createCommentVNode as J, createVNode as C } from "vue";
|
|
2
|
+
import { a as h } from "./enum-type-287a50b6.js";
|
|
3
|
+
import { bh as r } from "./enum-type-255ade69.js";
|
|
4
|
+
import { Delete as O } from "./index-ddd23411.js";
|
|
5
|
+
import { P as x } from "./baseImp-8c4be88e.js";
|
|
6
|
+
import { c as U } from "./uuid-39f0308a.js";
|
|
7
|
+
import "./icon-2bb9fa65.js";
|
|
8
|
+
import "./template-c30585f4.js";
|
|
9
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
10
|
+
import "./dialog-5e196819.js";
|
|
11
|
+
import "element-plus";
|
|
12
|
+
const $ = { class: "flexJustify" }, te = /* @__PURE__ */ A({
|
|
13
|
+
__name: "index",
|
|
14
|
+
props: {
|
|
15
|
+
props: { type: Object },
|
|
16
|
+
dialogType: { type: String },
|
|
17
|
+
title: { type: String },
|
|
18
|
+
visible: { type: Boolean },
|
|
19
|
+
maximize: { type: Boolean },
|
|
20
|
+
height: { type: String },
|
|
21
|
+
width: { type: String }
|
|
22
|
+
},
|
|
23
|
+
emits: ["confirm", "cancel"],
|
|
24
|
+
setup(s, { emit: d }) {
|
|
25
|
+
const e = s, _ = a(e.visible), w = a(e.props), m = a(), B = V(() => E(e.dialogType)), p = a(), S = () => {
|
|
26
|
+
var o;
|
|
27
|
+
var t = (o = m.value) == null ? void 0 : o.save();
|
|
28
|
+
p.value = !0, d("confirm", t);
|
|
29
|
+
}, T = () => {
|
|
30
|
+
p.value = !0, d("cancel");
|
|
31
|
+
}, b = () => {
|
|
32
|
+
p.value || d("cancel");
|
|
33
|
+
}, E = (t) => {
|
|
34
|
+
if (e.visible)
|
|
35
|
+
switch (t) {
|
|
36
|
+
case r.var:
|
|
37
|
+
return l(() => import("./index-d6fa09d6.js"));
|
|
38
|
+
case r.formula:
|
|
39
|
+
return l(() => import("./index-50c3e002.js"));
|
|
40
|
+
case r.targetEvent:
|
|
41
|
+
return l(() => import("./index-28f32a55.js"));
|
|
42
|
+
case r.schema:
|
|
43
|
+
return l(() => import("./index-12505eec.js"));
|
|
44
|
+
case r.relateWithWidget:
|
|
45
|
+
return l(() => import("./index-0a2f2997.js"));
|
|
46
|
+
case r.code:
|
|
47
|
+
default:
|
|
48
|
+
return l(() => import("./index-e795786b.js"));
|
|
49
|
+
}
|
|
50
|
+
}, N = () => {
|
|
51
|
+
m.value.clear(), b();
|
|
52
|
+
}, P = V(() => {
|
|
53
|
+
var t, o, i;
|
|
54
|
+
return x.getVariable(x.get((t = e == null ? void 0 : e.props) == null ? void 0 : t.optionModel, (i = U((o = e == null ? void 0 : e.props) == null ? void 0 : o.propConfig)) == null ? void 0 : i.name));
|
|
55
|
+
}), R = a();
|
|
56
|
+
return M(() => {
|
|
57
|
+
e.height && W(() => {
|
|
58
|
+
var t = document.querySelectorAll(".dialog-class");
|
|
59
|
+
t == null || t.forEach((o) => {
|
|
60
|
+
o.style.height = e.height;
|
|
61
|
+
});
|
|
62
|
+
});
|
|
63
|
+
}), (t, o) => {
|
|
64
|
+
const i = k("el-button"), D = k("el-dialog");
|
|
65
|
+
return u(), f(D, {
|
|
66
|
+
title: s.title,
|
|
67
|
+
modelValue: _.value,
|
|
68
|
+
"onUpdate:modelValue": o[0] || (o[0] = (z) => _.value = z),
|
|
69
|
+
"show-close": !0,
|
|
70
|
+
"append-to-body": !0,
|
|
71
|
+
"close-on-click-modal": !1,
|
|
72
|
+
"close-on-press-escape": !1,
|
|
73
|
+
"align-center": !0,
|
|
74
|
+
"destroy-on-close": !0,
|
|
75
|
+
onClosed: b,
|
|
76
|
+
"lock-scroll": "",
|
|
77
|
+
draggable: "",
|
|
78
|
+
fullscreen: s.maximize,
|
|
79
|
+
width: s.width,
|
|
80
|
+
class: "dialog-class",
|
|
81
|
+
ref_key: "dialogRef",
|
|
82
|
+
ref: R
|
|
83
|
+
}, {
|
|
84
|
+
default: c(() => [
|
|
85
|
+
(u(), f(j(n(B)), q(w.value, {
|
|
86
|
+
ref_key: "editorRef",
|
|
87
|
+
ref: m
|
|
88
|
+
}), null, 16))
|
|
89
|
+
]),
|
|
90
|
+
footer: c(() => [
|
|
91
|
+
g("div", $, [
|
|
92
|
+
g("span", null, [
|
|
93
|
+
n(r).var === t.$props.dialogType && n(P) ? (u(), f(i, {
|
|
94
|
+
key: 0,
|
|
95
|
+
type: "danger",
|
|
96
|
+
icon: n(O),
|
|
97
|
+
onClick: N
|
|
98
|
+
}, {
|
|
99
|
+
default: c(() => [
|
|
100
|
+
y(v(n(h).i18nt("designer.hint.removeVariableBind")), 1)
|
|
101
|
+
]),
|
|
102
|
+
_: 1
|
|
103
|
+
}, 8, ["icon"])) : J("", !0)
|
|
104
|
+
]),
|
|
105
|
+
g("span", null, [
|
|
106
|
+
C(i, { onClick: T }, {
|
|
107
|
+
default: c(() => [
|
|
108
|
+
y(v(n(h).i18nt("designer.hint.cancel")), 1)
|
|
109
|
+
]),
|
|
110
|
+
_: 1
|
|
111
|
+
}),
|
|
112
|
+
C(i, {
|
|
113
|
+
type: "primary",
|
|
114
|
+
onClick: S
|
|
115
|
+
}, {
|
|
116
|
+
default: c(() => [
|
|
117
|
+
y(v(n(h).i18nt("designer.hint.confirm")), 1)
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
})
|
|
121
|
+
])
|
|
122
|
+
])
|
|
123
|
+
]),
|
|
124
|
+
_: 1
|
|
125
|
+
}, 8, ["title", "modelValue", "fullscreen", "width"]);
|
|
126
|
+
};
|
|
127
|
+
}
|
|
128
|
+
});
|
|
129
|
+
export {
|
|
130
|
+
te as default
|
|
131
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
import { M as o } from "./baseImp-8c4be88e.js";
|
|
2
|
+
import "./enum-type-287a50b6.js";
|
|
3
|
+
import "./uuid-39f0308a.js";
|
|
4
|
+
import "./enum-type-255ade69.js";
|
|
5
|
+
import "./icon-2bb9fa65.js";
|
|
6
|
+
import "vue";
|
|
7
|
+
import "./template-c30585f4.js";
|
|
8
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
9
|
+
import "./dialog-5e196819.js";
|
|
10
|
+
import "element-plus";
|
|
11
|
+
const {
|
|
12
|
+
Axios: x,
|
|
13
|
+
AxiosError: C,
|
|
14
|
+
CanceledError: c,
|
|
15
|
+
isCancel: d,
|
|
16
|
+
CancelToken: f,
|
|
17
|
+
VERSION: A,
|
|
18
|
+
all: E,
|
|
19
|
+
Cancel: S,
|
|
20
|
+
isAxiosError: g,
|
|
21
|
+
spread: u,
|
|
22
|
+
toFormData: H,
|
|
23
|
+
AxiosHeaders: N,
|
|
24
|
+
HttpStatusCode: O,
|
|
25
|
+
formToJSON: T,
|
|
26
|
+
mergeConfig: k
|
|
27
|
+
} = o;
|
|
28
|
+
export {
|
|
29
|
+
x as Axios,
|
|
30
|
+
C as AxiosError,
|
|
31
|
+
N as AxiosHeaders,
|
|
32
|
+
S as Cancel,
|
|
33
|
+
f as CancelToken,
|
|
34
|
+
c as CanceledError,
|
|
35
|
+
O as HttpStatusCode,
|
|
36
|
+
A as VERSION,
|
|
37
|
+
E as all,
|
|
38
|
+
o as default,
|
|
39
|
+
T as formToJSON,
|
|
40
|
+
g as isAxiosError,
|
|
41
|
+
d as isCancel,
|
|
42
|
+
k as mergeConfig,
|
|
43
|
+
u as spread,
|
|
44
|
+
H as toFormData
|
|
45
|
+
};
|