hlrender 0.0.262 → 0.0.263
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/{affix-widget-5d943017.js → affix-widget-eb7534b3.js} +2 -2
- package/{alert-widget-17d8a51a.js → alert-widget-b073dd1d.js} +2 -2
- package/{auto-complete-widget-13f432d9.js → auto-complete-widget-6253f933.js} +1 -1
- package/{avatar-widget-19c27430.js → avatar-widget-6b3fdead.js} +2 -2
- package/{backtop-widget-42710e81.js → backtop-widget-725bc577.js} +2 -2
- package/{badge-widget-a445ddd4.js → badge-widget-55c629fc.js} +2 -2
- package/{button-widget-f04ce774.js → button-widget-38484686.js} +2 -2
- package/{card-widget-34ec8145.js → card-widget-dc9a8246.js} +1 -1
- package/{carousel-widget-051fd13a.js → carousel-widget-298ccbb4.js} +1 -1
- package/{collapse-widget-86f8a736.js → collapse-widget-fc47ff63.js} +1 -1
- package/{cont-cell-widget-5a692c37.js → cont-cell-widget-c576e3c2.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-a6714ee5.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-539faf08.js} +1 -1
- package/{cont-widget-fe819ce3.js → cont-widget-6412acc4.js} +1 -1
- package/{countdown-widget-b2fb118c.js → countdown-widget-cd0abb5e.js} +2 -2
- package/{default-slot-widget-a4574e0d.js → default-slot-widget-4b4b03c5.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-40f1ccb0.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-400090ef.js} +1 -1
- package/{descriptions-widget-5cfc8ec1.js → descriptions-widget-5d4431a2.js} +1 -1
- package/{dialog-widget-69f081af.js → dialog-widget-053773ff.js} +2 -2
- package/{divider-widget-609dbf52.js → divider-widget-26c96868.js} +2 -2
- package/{drag-wrapper-c9ca3f79.js → drag-wrapper-d09f7ca4.js} +1 -1
- package/{drawer-widget-3b842c8e.js → drawer-widget-d4045c97.js} +2 -2
- package/{dropdown-widget-015cd2b8.js → dropdown-widget-960e19ab.js} +1 -1
- package/{empty-widget-e81872c9.js → empty-widget-293b6005.js} +2 -2
- package/{feedback-widget-0e921d49.js → feedback-widget-79ae9a9d.js} +2 -2
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-177aff4b.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ded0279f.js} +1 -1
- package/{file-upload-widget-98aab6d1.js → file-upload-widget-966baf33.js} +1 -1
- package/form-widget-f57df182.js +245 -0
- package/{grid-col-widget-a551b061.js → grid-col-widget-f2b3a919.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5fa18cdf.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0c2c6634.js} +1 -1
- package/{grid-widget-405bb40a.js → grid-widget-201c1df3.js} +1 -1
- package/{hcard-widget-0a434530.js → hcard-widget-bd564cf4.js} +1 -1
- package/iframe-widget-1be091a4.js +112 -0
- package/{input-tag-widget-1ae72cbb.js → input-tag-widget-1e04a1c2.js} +1 -1
- package/{input-widget-89e3d8d9.js → input-widget-fddf49de.js} +1 -1
- package/{link-widget-f249c573.js → link-widget-00bdedb7.js} +2 -2
- package/{ltable-col-widget-89d1e4ce.js → ltable-col-widget-b3130bec.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-b40b1062.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3969dcee.js} +1 -1
- package/{ltable-widget-dcbad0ec.js → ltable-widget-de6a6c06.js} +1 -1
- package/{mention-widget-89f7f9e9.js → mention-widget-2e3d94c0.js} +1 -1
- package/{multirow-widget-7bedb333.js → multirow-widget-9f45cacf.js} +1 -1
- package/package.json +1 -1
- package/{progress-widget-01f16ab1.js → progress-widget-b8483c65.js} +1 -1
- package/{range-widget-7f3ee5b2.js → range-widget-ed68d87a.js} +1 -1
- package/render.es.js +15 -15
- package/render.style.css +1 -1
- package/render.umd.js +138 -138
- package/{result-widget-da975c05.js → result-widget-e0b30874.js} +1 -1
- package/{skeleton-widget-462ee79d.js → skeleton-widget-03a662e3.js} +2 -2
- package/{space-widget-9e602281.js → space-widget-3d92f125.js} +1 -1
- package/{splitter-widget-18b99298.js → splitter-widget-6b006a64.js} +1 -1
- package/{statistic-widget-4e20c9a8.js → statistic-widget-a6518c56.js} +2 -2
- package/{tab-pane-widget-5db034a7.js → tab-pane-widget-daff47b9.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-5e51ab2b.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-408c10d6.js} +1 -1
- package/{table-col-widget-b85c5381.js → table-col-widget-81de5eff.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8cf955e5.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-95ce762e.js} +1 -1
- package/{table-widget-3f93e504.js → table-widget-ce89bad0.js} +2 -2
- package/{tabs-widget-9d690baf.js → tabs-widget-e7f5f8fe.js} +1 -1
- package/{tag-widget-4e631ffd.js → tag-widget-7dcb7862.js} +2 -2
- package/{text-widget-269dbdf6.js → text-widget-93a0ec37.js} +2 -2
- package/{timeline-widget-542fdec4.js → timeline-widget-de78fb6b.js} +1 -1
- package/{tmpl-widget-41fa26e3.js → tmpl-widget-199d4484.js} +1 -1
- package/{tooltip-widget-e980e0b0.js → tooltip-widget-17b4b724.js} +1 -1
- package/{transfer-widget-cd905740.js → transfer-widget-2953c4c2.js} +1 -1
- package/{wrapper-widget-b0e50893.js → wrapper-widget-e6b057f2.js} +1 -1
- package/form-widget-c0eddf6d.js +0 -254
- package/iframe-widget-38ec65d8.js +0 -112
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { ref as I, reactive as J, onMounted as me, nextTick as Ne, defineComponent as ve, computed as le, resolveComponent as je, resolveDirective as ye, openBlock as ie, createBlock as de, mergeProps as Q, unref as h, withCtx as re, withDirectives as Me, toHandlers as Re, withModifiers as Ae, createVNode as Pe } from "vue";
|
|
2
|
+
import { I as $e } from "./widget-base-8eece820.js";
|
|
3
|
+
import { D as ke } from "./drag-wrapper-d09f7ca4.js";
|
|
4
|
+
import { _ as Ie } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
5
|
+
import { w as Y, a as se, b as k, f as V, i as Be } from "./expression-d3cb34e4.js";
|
|
6
|
+
import { u as qe } from "./icon-1fc5d00d.js";
|
|
7
|
+
import { u as He, a as Te } from "./multirow-1a787997.js";
|
|
8
|
+
import { b as ze, G as X, M as fe, e as Ge, d as ce, N as ue, O as Ke, A as Ue, g as Je } from "./enum-type-3a8fb8c6.js";
|
|
9
|
+
import { $ as Qe, B as Xe } from "./baseImp-955d59e1.js";
|
|
10
|
+
import { f as Ye } from "./index-e4735294.js";
|
|
11
|
+
import { b as Ze, a as et, u as tt } from "./share-field-2da1362d.js";
|
|
12
|
+
import { W as ot } from "./enum-type-73ded6bf.js";
|
|
13
|
+
import { F as at } from "./slot-b7b38779.js";
|
|
14
|
+
import { _ as nt } from "./_plugin-vue_export-helper-dad06003.js";
|
|
15
|
+
function lt(s) {
|
|
16
|
+
const x = s.widget, v = s.designer, F = v == null ? void 0 : v.pageConfig, w = s == null ? void 0 : s.widgetList, E = I({}), N = {}, { fieldModel: B, fieldName: q, fieldEditor: f, attrs: j, events: _, hasFieldOptions: y, exposed: D, fieldObj: H, watchOption: L, propResultOpt: S, extendAttrs: C } = Ze(s), { off$: n, on$: c, emit$: T, broadcast: M } = Te();
|
|
17
|
+
var { instance: W } = qe();
|
|
18
|
+
const { setAllRefList: R } = et(E.value), O = { designState: s == null ? void 0 : s.designState, pageConfig: F, globalConfig: S == null ? void 0 : S.globalConfig }, { formModel: A, setData: pe, getData: P, clearData: Z } = He(w, { ...O }), { handleFunc: z } = tt({ options: F }, O), G = J({}), ge = () => {
|
|
19
|
+
n(V.fieldChange), c(V.fieldChange, (e) => {
|
|
20
|
+
De(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue), D == null || D.setValue(A), Fe(e == null ? void 0 : e.fieldName, e == null ? void 0 : e.newValue, e == null ? void 0 : e.oldValue);
|
|
21
|
+
});
|
|
22
|
+
}, he = () => {
|
|
23
|
+
n(V.fieldValidation), c(V.fieldValidation, (e) => {
|
|
24
|
+
var t;
|
|
25
|
+
(t = f.value) == null || t.validateField(e == null ? void 0 : e.propName);
|
|
26
|
+
});
|
|
27
|
+
}, _e = () => {
|
|
28
|
+
n(V.fieldRuleChange), c(V.fieldRuleChange, (e) => {
|
|
29
|
+
var o;
|
|
30
|
+
var t = (o = e == null ? void 0 : e.rules) == null ? void 0 : o.map((a) => ({
|
|
31
|
+
required: a.required,
|
|
32
|
+
message: a.message,
|
|
33
|
+
trigger: a.trigger,
|
|
34
|
+
validator: a.validator
|
|
35
|
+
}));
|
|
36
|
+
Object.assign(G, { [e == null ? void 0 : e.fieldName]: t }), j.value.rules = G;
|
|
37
|
+
});
|
|
38
|
+
}, Ce = I(!0), K = I(!1), U = J({}), $ = J({}), ee = (e) => {
|
|
39
|
+
fe($), ce($, e);
|
|
40
|
+
}, be = () => ({
|
|
41
|
+
change_info: X(U),
|
|
42
|
+
before_info: X($),
|
|
43
|
+
after_info: X(A),
|
|
44
|
+
flag: K.value
|
|
45
|
+
}), Fe = (e, t, o) => {
|
|
46
|
+
var a = $[e];
|
|
47
|
+
ue(t, o) || ue(t, a) || (K.value = !0, e && ce(U, { [e]: { oldValue: a, newValue: t, beforeValue: o } }));
|
|
48
|
+
}, we = () => {
|
|
49
|
+
K.value = !1, fe(U), ee(P());
|
|
50
|
+
}, De = (e, t, o) => {
|
|
51
|
+
z(_.value.formDataChange, { field: { fieldName: e, newValue: t, oldValue: o }, formModel: A });
|
|
52
|
+
}, Le = () => {
|
|
53
|
+
z(_.value.formCreated);
|
|
54
|
+
}, Ve = () => {
|
|
55
|
+
z(_.value.formMounted);
|
|
56
|
+
}, Se = () => {
|
|
57
|
+
_e(), ge(), he(), Le();
|
|
58
|
+
}, We = (e) => {
|
|
59
|
+
var t;
|
|
60
|
+
(t = f.value) == null || t.clearValidate(e);
|
|
61
|
+
}, Oe = () => {
|
|
62
|
+
R(ot.resetField), Ne(() => {
|
|
63
|
+
We();
|
|
64
|
+
});
|
|
65
|
+
}, te = (e, t) => {
|
|
66
|
+
let o = [];
|
|
67
|
+
for (let u in e) {
|
|
68
|
+
var a = e[u], d = a == null ? void 0 : a.filter((r) => (r == null ? void 0 : r.force) === t);
|
|
69
|
+
d == null || d.forEach((r) => {
|
|
70
|
+
var l;
|
|
71
|
+
const m = (l = r == null ? void 0 : r.rule) == null ? void 0 : l.label;
|
|
72
|
+
r.message && o.push(Be(m ? "【" + m + "】" : "", r.message, ":"));
|
|
73
|
+
});
|
|
74
|
+
}
|
|
75
|
+
return Ke(o);
|
|
76
|
+
}, xe = (e, t) => {
|
|
77
|
+
var o = {};
|
|
78
|
+
return Ye(t, (a) => {
|
|
79
|
+
var d = Xe.getName(a), u = Ue(e, d);
|
|
80
|
+
return u && (o[d] = e[d]), u;
|
|
81
|
+
}, !1), o;
|
|
82
|
+
}, Ee = (e = !0) => {
|
|
83
|
+
var d, u, r;
|
|
84
|
+
let t = P(), o = function() {
|
|
85
|
+
}, a = new Promise(function(m, l) {
|
|
86
|
+
o = function(p, i) {
|
|
87
|
+
(i ? l : m)({ data: p, isSuccess: !i, message: i });
|
|
88
|
+
};
|
|
89
|
+
});
|
|
90
|
+
return !((d = f.value) != null && d.validate) || !e ? (o(t), a) : ((r = (u = f.value) == null ? void 0 : u.validate) == null || r.call(u, (m, l) => {
|
|
91
|
+
if (m)
|
|
92
|
+
o(t);
|
|
93
|
+
else {
|
|
94
|
+
var p = te(l, !0);
|
|
95
|
+
if (p && p.length > 0) {
|
|
96
|
+
o(t, p);
|
|
97
|
+
return;
|
|
98
|
+
}
|
|
99
|
+
var i = te(l, !1);
|
|
100
|
+
if (i && i.length > 0) {
|
|
101
|
+
i.push(Ge.i18nt("designer.hint.continue")), Qe.multiple(i).then((g) => {
|
|
102
|
+
o(t);
|
|
103
|
+
});
|
|
104
|
+
return;
|
|
105
|
+
}
|
|
106
|
+
}
|
|
107
|
+
}), a);
|
|
108
|
+
}, oe = (e, t = !0) => {
|
|
109
|
+
if (!x)
|
|
110
|
+
return;
|
|
111
|
+
var o = xe(e, [x]);
|
|
112
|
+
pe(o, t);
|
|
113
|
+
const a = ["refList", "widgetRefList"];
|
|
114
|
+
M(Y.ContainerWidget, se.setFormData, e, W, a), M(Y.FieldWidget, se.setFormData, e, W, a);
|
|
115
|
+
}, ae = (e) => new Promise((t, o) => {
|
|
116
|
+
const a = (l, p) => {
|
|
117
|
+
var g, b, ne;
|
|
118
|
+
let i = (g = C.value) != null && g.formDataLoaded ? (ne = (b = C.value) == null ? void 0 : b.formDataLoaded) == null ? void 0 : ne.call(b, P(), l) : l;
|
|
119
|
+
Je(i) ? oe(i, !p) : i = {}, ee(i), Ce.value = !1, t(i);
|
|
120
|
+
}, d = () => {
|
|
121
|
+
L(e, k.newDataSource, void 0, (l, p) => {
|
|
122
|
+
a(l, !0);
|
|
123
|
+
});
|
|
124
|
+
}, u = () => {
|
|
125
|
+
L(e, k.editDataSource, void 0, (l, p) => {
|
|
126
|
+
var g, b;
|
|
127
|
+
if (((b = (g = C.value) == null ? void 0 : g.needFormAdd) == null ? void 0 : b.call(g, l)) && m) {
|
|
128
|
+
d();
|
|
129
|
+
return;
|
|
130
|
+
}
|
|
131
|
+
a(l, !1);
|
|
132
|
+
});
|
|
133
|
+
}, r = y(k.editDataSource), m = y(k.newDataSource);
|
|
134
|
+
r ? u() : m && d();
|
|
135
|
+
});
|
|
136
|
+
return Se(), me(() => {
|
|
137
|
+
ze(), Ve();
|
|
138
|
+
}), {
|
|
139
|
+
widgetRefList: E,
|
|
140
|
+
allWidgetRefList: N,
|
|
141
|
+
fieldEditor: f,
|
|
142
|
+
formModel: A,
|
|
143
|
+
pageConfig: F,
|
|
144
|
+
widgetList: w,
|
|
145
|
+
fieldModel: B,
|
|
146
|
+
fieldName: q,
|
|
147
|
+
attrs: j,
|
|
148
|
+
extendAttrs: C,
|
|
149
|
+
events: _,
|
|
150
|
+
rules: G,
|
|
151
|
+
loadData: ae,
|
|
152
|
+
clearData: Z,
|
|
153
|
+
exposed: {
|
|
154
|
+
...D,
|
|
155
|
+
setValue: oe,
|
|
156
|
+
getValue: Ee,
|
|
157
|
+
resetField: Oe,
|
|
158
|
+
clearData: Z,
|
|
159
|
+
loadData: ae,
|
|
160
|
+
getData: P,
|
|
161
|
+
//修改痕迹
|
|
162
|
+
clearChangeRecord: we,
|
|
163
|
+
getChangeRecord: be,
|
|
164
|
+
emit$: T
|
|
165
|
+
},
|
|
166
|
+
fieldObj: H
|
|
167
|
+
};
|
|
168
|
+
}
|
|
169
|
+
const it = ve({ componentName: Y.ContainerWidget }), dt = /* @__PURE__ */ ve({
|
|
170
|
+
...it,
|
|
171
|
+
__name: "form-widget",
|
|
172
|
+
props: { ...$e },
|
|
173
|
+
setup(s, { expose: x }) {
|
|
174
|
+
var C;
|
|
175
|
+
const v = s, { exposed: F, formModel: w, fieldEditor: E, attrs: N, events: B, widgetRefList: q, extendAttrs: f, fieldName: j, fieldObj: _, loadData: y } = lt({ ...v, widgetList: (C = v == null ? void 0 : v.widget) == null ? void 0 : C.widgetList }), D = j.value, H = le(() => {
|
|
176
|
+
var n, c;
|
|
177
|
+
return {
|
|
178
|
+
disabled: (n = N.value) == null ? void 0 : n.disabled,
|
|
179
|
+
readonly: (c = f.value) == null ? void 0 : c.readonly
|
|
180
|
+
};
|
|
181
|
+
}), L = I(!1), S = le(() => {
|
|
182
|
+
var n;
|
|
183
|
+
return L.value || ((n = f.value) == null ? void 0 : n.showLoading);
|
|
184
|
+
});
|
|
185
|
+
return at.globalProvide({
|
|
186
|
+
globalFormName: D,
|
|
187
|
+
globalDataModel: w,
|
|
188
|
+
globalFormOptions: H
|
|
189
|
+
}), me(() => {
|
|
190
|
+
var n;
|
|
191
|
+
(n = f.value) != null && n.loadDataWhenInit && !v.designState && (L.value = !0, y(!0).then((c) => {
|
|
192
|
+
}).catch((c) => {
|
|
193
|
+
}).finally(() => {
|
|
194
|
+
L.value = !1, F.clearChangeRecord();
|
|
195
|
+
}));
|
|
196
|
+
}), x({ ...F }), (n, c) => {
|
|
197
|
+
const T = je("el-form"), M = ye("loading");
|
|
198
|
+
return ie(), de(Ie, Q(n.$props, {
|
|
199
|
+
"prop-options": { fieldObj: h(_) }
|
|
200
|
+
}), {
|
|
201
|
+
default: re(({ data: W }) => {
|
|
202
|
+
var R;
|
|
203
|
+
return [
|
|
204
|
+
Me((ie(), de(T, Q({
|
|
205
|
+
ref_key: "fieldEditor",
|
|
206
|
+
ref: E,
|
|
207
|
+
model: h(w)
|
|
208
|
+
}, h(N), Re(h(B)), {
|
|
209
|
+
class: W.injectClass,
|
|
210
|
+
key: (R = h(_)) == null ? void 0 : R.fieldKey,
|
|
211
|
+
"element-loading-text": h(f).loadingText,
|
|
212
|
+
onSubmit: c[0] || (c[0] = Ae(() => {
|
|
213
|
+
}, ["prevent"]))
|
|
214
|
+
}), {
|
|
215
|
+
default: re(() => {
|
|
216
|
+
var O;
|
|
217
|
+
return [
|
|
218
|
+
Pe(ke, Q(n.$props, {
|
|
219
|
+
dragClass: "formDrag padSize",
|
|
220
|
+
model: h(w),
|
|
221
|
+
provideModel: !0,
|
|
222
|
+
"component-class": W.componentWrapperClass,
|
|
223
|
+
refList: h(q),
|
|
224
|
+
"show-suspense": (O = h(f)) == null ? void 0 : O.showSuspense
|
|
225
|
+
}), null, 16, ["model", "component-class", "refList", "show-suspense"])
|
|
226
|
+
];
|
|
227
|
+
}),
|
|
228
|
+
_: 2
|
|
229
|
+
}, 1040, ["model", "class", "element-loading-text"])), [
|
|
230
|
+
[M, S.value]
|
|
231
|
+
])
|
|
232
|
+
];
|
|
233
|
+
}),
|
|
234
|
+
_: 1
|
|
235
|
+
}, 16, ["prop-options"]);
|
|
236
|
+
};
|
|
237
|
+
}
|
|
238
|
+
});
|
|
239
|
+
const rt = /* @__PURE__ */ nt(dt, [["__scopeId", "data-v-2ed0a44d"]]), Dt = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
240
|
+
__proto__: null,
|
|
241
|
+
default: rt
|
|
242
|
+
}, Symbol.toStringTag, { value: "Module" }));
|
|
243
|
+
export {
|
|
244
|
+
Dt as _
|
|
245
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
1
|
+
import { _ as e } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0c2c6634.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as m, computed as l, reactive as C, openBlock as y, createBlock as O, mergeProps as c, unref as r, withCtx as W, createVNode as x } from "vue";
|
|
2
2
|
import { w as b } from "./expression-d3cb34e4.js";
|
|
3
3
|
import { I as k } from "./widget-base-8eece820.js";
|
|
4
|
-
import { D as A } from "./drag-wrapper-
|
|
4
|
+
import { D as A } from "./drag-wrapper-d09f7ca4.js";
|
|
5
5
|
import { _ as j } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
6
6
|
import { b as H } from "./share-field-2da1362d.js";
|
|
7
7
|
import { c as $ } from "./slot-b7b38779.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as p, openBlock as t, createBlock as s, mergeProps as f, unref as o, withCtx as u, createElementBlock as w, Fragment as b, renderList as h } from "vue";
|
|
2
2
|
import { b as k, w as y } from "./expression-d3cb34e4.js";
|
|
3
3
|
import { I as C } from "./widget-base-8eece820.js";
|
|
4
|
-
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
4
|
+
import { _ as O } from "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0c2c6634.js";
|
|
5
5
|
import { _ as S } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
6
6
|
import { b as j } from "./share-field-2da1362d.js";
|
|
7
7
|
import { c as P } from "./slot-b7b38779.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as C, useCssVars as j, computed as t, openBlock as l, createBlock as f, mergeProps as p, unref as r, withCtx as D, createElementBlock as _, normalizeClass as E, createElementVNode as g, Fragment as F, createTextVNode as I, toDisplayString as P, normalizeStyle as H, createVNode as O } from "vue";
|
|
2
2
|
import { _ as K } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
3
3
|
import { b as T } from "./share-field-2da1362d.js";
|
|
4
|
-
import { D as v } from "./drag-wrapper-
|
|
4
|
+
import { D as v } from "./drag-wrapper-d09f7ca4.js";
|
|
5
5
|
import { w as q } from "./expression-d3cb34e4.js";
|
|
6
6
|
import { d as h } from "./slot-b7b38779.js";
|
|
7
7
|
import { I as A } from "./widget-base-8eece820.js";
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
import { defineComponent as Q, computed as b, ref as h, onMounted as R, watch as T, resolveComponent as L, openBlock as d, createBlock as y, mergeProps as U, unref as l, withCtx as V, createCommentVNode as j, createElementBlock as q, toHandlers as H } from "vue";
|
|
2
|
+
import { J as w } from "./baseImp-955d59e1.js";
|
|
3
|
+
import { w as J } from "./expression-d3cb34e4.js";
|
|
4
|
+
import { b as K } from "./share-field-2da1362d.js";
|
|
5
|
+
import { _ as M } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
6
|
+
import { I as z } from "./field-base-1acf3ada.js";
|
|
7
|
+
import { g as D } from "./uuid-1df422c5.js";
|
|
8
|
+
import { m as B } from "./enum-type-3a8fb8c6.js";
|
|
9
|
+
import { _ as G } from "./_plugin-vue_export-helper-dad06003.js";
|
|
10
|
+
import "./enum-type-73ded6bf.js";
|
|
11
|
+
import "./icon-1fc5d00d.js";
|
|
12
|
+
import "./dialog-29f50f22.js";
|
|
13
|
+
import "./_commonjsHelpers-e7ea1525.js";
|
|
14
|
+
import "element-plus";
|
|
15
|
+
import "./source-map-b04aec4a.js";
|
|
16
|
+
import "./esprima-e8d15055.js";
|
|
17
|
+
import "./multirow-1a787997.js";
|
|
18
|
+
import "./index-e4735294.js";
|
|
19
|
+
import "./slot-b7b38779.js";
|
|
20
|
+
import "./widget-base-8eece820.js";
|
|
21
|
+
import "./index-c6e4d97d.js";
|
|
22
|
+
import "./fieldobj-bd74f957.js";
|
|
23
|
+
function X(s, f) {
|
|
24
|
+
var m;
|
|
25
|
+
if (!s) {
|
|
26
|
+
B.error("iframe is empty");
|
|
27
|
+
return;
|
|
28
|
+
}
|
|
29
|
+
const o = (m = s.contentWindow) == null ? void 0 : m.document;
|
|
30
|
+
if (!o) {
|
|
31
|
+
B.error("iframe doc is empty");
|
|
32
|
+
return;
|
|
33
|
+
}
|
|
34
|
+
o.open(), o.write(f), o.close();
|
|
35
|
+
}
|
|
36
|
+
const Y = ["src", "id"], Z = Q({ componentName: J.FieldWidget }), A = /* @__PURE__ */ Q({
|
|
37
|
+
...Z,
|
|
38
|
+
__name: "iframe-widget",
|
|
39
|
+
props: { ...z },
|
|
40
|
+
setup(s, { expose: f }) {
|
|
41
|
+
const o = s, { exposed: m, fieldEditor: k, events: u, attrs: C, extendAttrs: r, fieldObj: W, fieldKey: $, fieldName: x } = K(o), E = b(() => t.value && !i.value ? "full-width full-height" : "mini-wrapper"), i = h(!1), _ = h(), F = (e) => {
|
|
42
|
+
var n, a;
|
|
43
|
+
const v = ((n = r == null ? void 0 : r.value) == null ? void 0 : n.withQuery) ? w.getLocationQueryParams() : {}, g = w.buildUrl(e, v), c = (a = r == null ? void 0 : r.value) == null ? void 0 : a.hashRouter;
|
|
44
|
+
return w.resolveByCurrentUrl(g, c ? D() + "" : "");
|
|
45
|
+
}, I = h(), t = b(() => {
|
|
46
|
+
if (_.value)
|
|
47
|
+
return _.value;
|
|
48
|
+
const e = I.value || C.value.src;
|
|
49
|
+
return e == "" || e == "#" ? "" : F(e);
|
|
50
|
+
}), N = () => {
|
|
51
|
+
var e, p;
|
|
52
|
+
i.value = !1, (p = (e = u == null ? void 0 : u.value) == null ? void 0 : e.onLoaded) == null || p.call(e);
|
|
53
|
+
}, P = (e) => {
|
|
54
|
+
I.value = e;
|
|
55
|
+
}, S = (e) => {
|
|
56
|
+
_.value = e;
|
|
57
|
+
}, O = (e) => {
|
|
58
|
+
X(k.value, e);
|
|
59
|
+
};
|
|
60
|
+
return R(() => {
|
|
61
|
+
t.value && (i.value = !0);
|
|
62
|
+
}), T(() => t.value, (e) => {
|
|
63
|
+
e && (i.value = !0);
|
|
64
|
+
}), f({
|
|
65
|
+
...m,
|
|
66
|
+
loadSrc: P,
|
|
67
|
+
loadUrl: S,
|
|
68
|
+
loadContent: O
|
|
69
|
+
}), (e, p) => {
|
|
70
|
+
var c;
|
|
71
|
+
const v = L("el-empty"), g = L("el-skeleton");
|
|
72
|
+
return d(), y(M, U(e.$props, {
|
|
73
|
+
"prop-options": { fieldObj: l(W) },
|
|
74
|
+
key: (c = e.widget) == null ? void 0 : c.id
|
|
75
|
+
}), {
|
|
76
|
+
default: V(({ data: n }) => {
|
|
77
|
+
var a;
|
|
78
|
+
return [
|
|
79
|
+
t.value ? j("", !0) : (d(), y(v, {
|
|
80
|
+
key: 0,
|
|
81
|
+
description: (a = l(C)) == null ? void 0 : a.emptyText,
|
|
82
|
+
class: "full-width full-height nopadding nomargin"
|
|
83
|
+
}, null, 8, ["description"])),
|
|
84
|
+
i.value ? (d(), y(g, {
|
|
85
|
+
key: 1,
|
|
86
|
+
rows: 5,
|
|
87
|
+
animated: "",
|
|
88
|
+
class: "full-width full-height nopadding nomargin"
|
|
89
|
+
})) : j("", !0),
|
|
90
|
+
(d(), q("iframe", U({
|
|
91
|
+
ref_key: "fieldEditor",
|
|
92
|
+
ref: k,
|
|
93
|
+
key: `${l($)}_${t.value}`
|
|
94
|
+
}, H(l(u), !0), {
|
|
95
|
+
onLoad: N,
|
|
96
|
+
src: t.value,
|
|
97
|
+
class: [[...n.injectClass, E.value], "nopadding nomargin hlIframe"],
|
|
98
|
+
frameborder: 0,
|
|
99
|
+
style: n.injectStyle,
|
|
100
|
+
id: l(x)
|
|
101
|
+
}), null, 16, Y))
|
|
102
|
+
];
|
|
103
|
+
}),
|
|
104
|
+
_: 1
|
|
105
|
+
}, 16, ["prop-options"]);
|
|
106
|
+
};
|
|
107
|
+
}
|
|
108
|
+
});
|
|
109
|
+
const Ce = /* @__PURE__ */ G(A, [["__scopeId", "data-v-2270dda4"]]);
|
|
110
|
+
export {
|
|
111
|
+
Ce as default
|
|
112
|
+
};
|
|
@@ -5,7 +5,7 @@ import { b as B } from "./share-field-2da1362d.js";
|
|
|
5
5
|
import { g as E } from "./slot-b7b38779.js";
|
|
6
6
|
import L from "./form-item-wrapper-78a5a475.js";
|
|
7
7
|
import { w as P } from "./expression-d3cb34e4.js";
|
|
8
|
-
import { D as T } from "./drag-wrapper-
|
|
8
|
+
import { D as T } from "./drag-wrapper-d09f7ca4.js";
|
|
9
9
|
import "./widget-base-8eece820.js";
|
|
10
10
|
import "./multirow-1a787997.js";
|
|
11
11
|
import "./baseImp-955d59e1.js";
|
|
@@ -5,7 +5,7 @@ import { b as A } from "./share-field-2da1362d.js";
|
|
|
5
5
|
import { g as B } from "./slot-b7b38779.js";
|
|
6
6
|
import E from "./form-item-wrapper-78a5a475.js";
|
|
7
7
|
import { w as L } from "./expression-d3cb34e4.js";
|
|
8
|
-
import { D as P } from "./drag-wrapper-
|
|
8
|
+
import { D as P } from "./drag-wrapper-d09f7ca4.js";
|
|
9
9
|
import "./widget-base-8eece820.js";
|
|
10
10
|
import "./multirow-1a787997.js";
|
|
11
11
|
import "./baseImp-955d59e1.js";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { defineComponent as d, openBlock as r, createBlock as i, mergeProps as w, unref as o, withCtx as E, createCommentVNode as f, createVNode as F } from "vue";
|
|
2
2
|
import { I as N } from "./field-base-1acf3ada.js";
|
|
3
|
-
import { _ as O } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-
|
|
3
|
+
import { _ as O } from "./default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-400090ef.js";
|
|
4
4
|
import { w as P } from "./expression-d3cb34e4.js";
|
|
5
5
|
import { _ as b } from "./content-wrapper.vue_vue_type_script_setup_true_lang-18c00212.js";
|
|
6
6
|
import { S as c } from "./index-c6e4d97d.js";
|
|
@@ -18,7 +18,7 @@ import "./_commonjsHelpers-e7ea1525.js";
|
|
|
18
18
|
import "element-plus";
|
|
19
19
|
import "./fieldobj-bd74f957.js";
|
|
20
20
|
import "./slot-b7b38779.js";
|
|
21
|
-
import "./drag-wrapper-
|
|
21
|
+
import "./drag-wrapper-d09f7ca4.js";
|
|
22
22
|
import "./_plugin-vue_export-helper-dad06003.js";
|
|
23
23
|
import "./source-map-b04aec4a.js";
|
|
24
24
|
import "./esprima-e8d15055.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
1
|
+
import { _ as e } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3969dcee.js";
|
|
2
2
|
const o = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
3
3
|
__proto__: null,
|
|
4
4
|
default: e
|
|
@@ -7,7 +7,7 @@ import { b as ye } from "./share-field-2da1362d.js";
|
|
|
7
7
|
import { c as De } from "./slot-b7b38779.js";
|
|
8
8
|
import { B as k } from "./baseImp-955d59e1.js";
|
|
9
9
|
import { S as Oe } from "./index-c6e4d97d.js";
|
|
10
|
-
import { D as _e } from "./drag-wrapper-
|
|
10
|
+
import { D as _e } from "./drag-wrapper-d09f7ca4.js";
|
|
11
11
|
import { _ as Be } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
12
12
|
const Le = ["title"], xe = _({ componentName: ke.ContainerWidget }), qe = /* @__PURE__ */ _({
|
|
13
13
|
...xe,
|
|
@@ -2,7 +2,7 @@ import { defineComponent as f, resolveDirective as I, openBlock as t, createBloc
|
|
|
2
2
|
import { w as P } from "./expression-d3cb34e4.js";
|
|
3
3
|
import { I as S } from "./widget-base-8eece820.js";
|
|
4
4
|
import { _ as V } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
5
|
-
import { _ as W } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
5
|
+
import { _ as W } from "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3969dcee.js";
|
|
6
6
|
import { c as $ } from "./slot-b7b38779.js";
|
|
7
7
|
import { b as z } from "./share-field-2da1362d.js";
|
|
8
8
|
import { _ as D } from "./_plugin-vue_export-helper-dad06003.js";
|
|
@@ -5,7 +5,7 @@ import { b as P } from "./share-field-2da1362d.js";
|
|
|
5
5
|
import { g as T } from "./slot-b7b38779.js";
|
|
6
6
|
import $ from "./form-item-wrapper-78a5a475.js";
|
|
7
7
|
import { w as h } from "./expression-d3cb34e4.js";
|
|
8
|
-
import { D as H } from "./drag-wrapper-
|
|
8
|
+
import { D as H } from "./drag-wrapper-d09f7ca4.js";
|
|
9
9
|
import "./widget-base-8eece820.js";
|
|
10
10
|
import "./multirow-1a787997.js";
|
|
11
11
|
import "./baseImp-955d59e1.js";
|
|
@@ -4,7 +4,7 @@ import { B as ie, f as G } from "./baseImp-955d59e1.js";
|
|
|
4
4
|
import { I as ut } from "./widget-base-8eece820.js";
|
|
5
5
|
import { b as ct, a as pt } from "./share-field-2da1362d.js";
|
|
6
6
|
import { _ as mt } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
7
|
-
import { D as x } from "./drag-wrapper-
|
|
7
|
+
import { D as x } from "./drag-wrapper-d09f7ca4.js";
|
|
8
8
|
import { ag as Fe, W as ft } from "./enum-type-73ded6bf.js";
|
|
9
9
|
import { _ as vt } from "./label-wrapper.vue_vue_type_style_index_0_lang-36370611.js";
|
|
10
10
|
import { i as wt, d as V } from "./slot-b7b38779.js";
|
package/package.json
CHANGED
|
@@ -5,7 +5,7 @@ import { _ as R } from "./widget-wrapper.vue_vue_type_script_setup_true_name_for
|
|
|
5
5
|
import { b as U } from "./share-field-2da1362d.js";
|
|
6
6
|
import { w as X } from "./expression-d3cb34e4.js";
|
|
7
7
|
import { g as T } from "./slot-b7b38779.js";
|
|
8
|
-
import { D as V } from "./drag-wrapper-
|
|
8
|
+
import { D as V } from "./drag-wrapper-d09f7ca4.js";
|
|
9
9
|
import Y from "./vertical-progress-widget-c44812e6.js";
|
|
10
10
|
import { h as Z, p as _ } from "./enum-type-73ded6bf.js";
|
|
11
11
|
import "./widget-base-8eece820.js";
|
|
@@ -2,7 +2,7 @@ import { defineComponent as y, openBlock as o, createBlock as F, mergeProps as i
|
|
|
2
2
|
import { b as N } from "./share-field-2da1362d.js";
|
|
3
3
|
import { I as S } from "./field-base-1acf3ada.js";
|
|
4
4
|
import T from "./form-item-wrapper-78a5a475.js";
|
|
5
|
-
import { D as f } from "./drag-wrapper-
|
|
5
|
+
import { D as f } from "./drag-wrapper-d09f7ca4.js";
|
|
6
6
|
import { w as V } from "./expression-d3cb34e4.js";
|
|
7
7
|
import { d as u } from "./slot-b7b38779.js";
|
|
8
8
|
import { _ as b } from "./_plugin-vue_export-helper-dad06003.js";
|
package/render.es.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
import { _ as sr } from "./cont-cell-widget-
|
|
2
|
-
import { _ as lr } from "./cont-widget-
|
|
3
|
-
import { _ as fr } from "./form-widget-
|
|
4
|
-
import { _ as ur } from "./grid-col-widget-
|
|
5
|
-
import { _ as cr } from "./grid-widget-
|
|
6
|
-
import { _ as dr } from "./ltable-col-widget-
|
|
7
|
-
import { _ as vr } from "./ltable-widget-
|
|
8
|
-
import { _ as hr } from "./tab-pane-widget-
|
|
9
|
-
import { _ as gr } from "./tabs-widget-
|
|
10
|
-
import { _ as pr } from "./wrapper-widget-
|
|
1
|
+
import { _ as sr } from "./cont-cell-widget-c576e3c2.js";
|
|
2
|
+
import { _ as lr } from "./cont-widget-6412acc4.js";
|
|
3
|
+
import { _ as fr } from "./form-widget-f57df182.js";
|
|
4
|
+
import { _ as ur } from "./grid-col-widget-f2b3a919.js";
|
|
5
|
+
import { _ as cr } from "./grid-widget-201c1df3.js";
|
|
6
|
+
import { _ as dr } from "./ltable-col-widget-b3130bec.js";
|
|
7
|
+
import { _ as vr } from "./ltable-widget-de6a6c06.js";
|
|
8
|
+
import { _ as hr } from "./tab-pane-widget-daff47b9.js";
|
|
9
|
+
import { _ as gr } from "./tabs-widget-e7f5f8fe.js";
|
|
10
|
+
import { _ as pr } from "./wrapper-widget-e6b057f2.js";
|
|
11
11
|
import { _ as mr } from "./index-9ca8290d.js";
|
|
12
12
|
import { D as yr, o as Sr } from "./dialog-29f50f22.js";
|
|
13
13
|
import br, { computed as Ie, ref as Te, watch as Er, onMounted as xr, onUnmounted as Or, nextTick as Ir, defineComponent as Hn, provide as Tn, resolveDirective as Tr, withDirectives as Pr, openBlock as Pn, createElementBlock as Cr, unref as nn, normalizeClass as Dr, withKeys as Cn, renderSlot as rn, createBlock as Ar, Suspense as Rr, withCtx as Mr, createVNode as Nr } from "vue";
|
|
@@ -24,17 +24,17 @@ import { W as Le } from "./enum-type-73ded6bf.js";
|
|
|
24
24
|
import { u as _r, a as Rn, R as Mn } from "./share-field-2da1362d.js";
|
|
25
25
|
import { g as to } from "./color-bae04003.js";
|
|
26
26
|
import { ElMessage as eo, ElMessageBox as no, ElNotification as ro } from "element-plus";
|
|
27
|
-
import { D as oo } from "./drag-wrapper-
|
|
27
|
+
import { D as oo } from "./drag-wrapper-d09f7ca4.js";
|
|
28
28
|
import { _ as ao } from "./_plugin-vue_export-helper-dad06003.js";
|
|
29
29
|
import { g as io, c as so, a as lo } from "./_commonjsHelpers-e7ea1525.js";
|
|
30
|
-
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-
|
|
30
|
+
import "./cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-539faf08.js";
|
|
31
31
|
import "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-69f8bf9b.js";
|
|
32
32
|
import "./index-e4735294.js";
|
|
33
33
|
import "./index-c6e4d97d.js";
|
|
34
34
|
import "./fieldobj-bd74f957.js";
|
|
35
|
-
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-
|
|
36
|
-
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-
|
|
37
|
-
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-
|
|
35
|
+
import "./grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0c2c6634.js";
|
|
36
|
+
import "./ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-3969dcee.js";
|
|
37
|
+
import "./tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-408c10d6.js";
|
|
38
38
|
import "./source-map-b04aec4a.js";
|
|
39
39
|
import "./esprima-e8d15055.js";
|
|
40
40
|
function Yn(a) {
|