hlrender 0.0.37 → 0.0.38
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-3cd650b4.js → affix-widget-6637beba.js} +16 -16
- package/{alert-widget-3eb91ad7.js → alert-widget-30af6403.js} +16 -16
- package/{anchor-widget-08f48f60.js → anchor-widget-158a5453.js} +13 -13
- package/{auto-complete-widget-d1e96304.js → auto-complete-widget-c8043dfd.js} +16 -16
- package/{avatar-widget-f3e13f3b.js → avatar-widget-3ce52e2f.js} +16 -16
- package/{backtop-widget-3bd6c01c.js → backtop-widget-ab56bd4f.js} +16 -16
- package/{badge-widget-45ed292c.js → badge-widget-77fd9f1a.js} +16 -16
- package/{baseImp-af083a1d.js → baseImp-e9b67b51.js} +801 -801
- package/{breadcrumb-widget-c08af22d.js → breadcrumb-widget-ccf7ffde.js} +13 -13
- package/{button-widget-8a524173.js → button-widget-7b1fcd70.js} +16 -16
- package/{cache-widget-7585e1bc.js → cache-widget-cb979398.js} +15 -15
- package/{card-widget-cdbe4279.js → card-widget-20ed9334.js} +14 -14
- package/{carousel-widget-68aab10c.js → carousel-widget-a56d2cc0.js} +14 -14
- package/{cascader-widget-30d51765.js → cascader-widget-812e6530.js} +15 -15
- package/{chart-widget-ba833ebc.js → chart-widget-e9e252ec.js} +13 -13
- package/{checkbox-widget-9137e1b4.js → checkbox-widget-dcd85e63.js} +15 -15
- package/{collapse-widget-c8eafb16.js → collapse-widget-051a0e6c.js} +14 -14
- package/{color-picker-widget-cb98fd3f.js → color-picker-widget-a1740fa1.js} +15 -15
- package/{cont-cell-widget-62215f8b.js → cont-cell-widget-7ddf98e3.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-61a23445.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4f9d9e7a.js} +5 -5
- package/{cont-widget-9e3b1ddc.js → cont-widget-e91d9f97.js} +5 -5
- package/content-wrapper-5ac728a5.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-4e795b1e.js → content-wrapper.vue_vue_type_script_setup_true_lang-81afbf8e.js} +3 -3
- package/{date-picker-range-widget-42613da5.js → date-picker-range-widget-9d39c1dd.js} +15 -15
- package/{date-picker-widget-0be62e9c.js → date-picker-widget-1c27cd57.js} +15 -15
- package/default-slot-widget-3e727fe6.js +24 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5b25e47b.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-68eb0983.js} +7 -7
- package/{descriptions-widget-342b9185.js → descriptions-widget-c58076ed.js} +14 -14
- package/{dialog-11494e92.js → dialog-8c3e543c.js} +2 -2
- package/{dialog-widget-2a7da654.js → dialog-widget-655446b5.js} +15 -15
- package/{divider-widget-0b779622.js → divider-widget-461720f5.js} +16 -16
- package/{drag-wrapper-ddca8568.js → drag-wrapper-db8c8dde.js} +10 -10
- package/{drawer-widget-ce84e797.js → drawer-widget-014da11b.js} +15 -15
- package/{dropdown-widget-cc08ba15.js → dropdown-widget-5b2adec5.js} +14 -14
- package/{empty-widget-f7e5c67d.js → empty-widget-f5eaeba6.js} +16 -16
- package/{enum-type-d80cc49d.js → enum-type-3590213d.js} +105 -85
- package/{enum-type-82d56b56.js → enum-type-3b3d7fab.js} +1 -1
- package/{expression-2f978ed4.js → expression-8376e661.js} +46 -36
- package/feedback-widget-a390496a.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b091c034.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-a20bd032.js} +5 -5
- package/{fieldobj-b6884283.js → fieldobj-d383824f.js} +1 -1
- package/{file-upload-widget-19b4b9ed.js → file-upload-widget-2b44ab39.js} +16 -16
- package/{form-item-wrapper-3a8678e4.js → form-item-wrapper-a7a18c90.js} +11 -11
- package/form-widget-a2aa1436.js +221 -0
- package/{grid-col-widget-fb499cc7.js → grid-col-widget-7906c452.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-6896445b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-f1e5b044.js} +5 -5
- package/{grid-widget-277c40f5.js → grid-widget-c2100478.js} +5 -5
- package/{html-text-widget-6a17eeb5.js → html-text-widget-7597b536.js} +17 -17
- package/{iframe-widget-68f5f165.js → iframe-widget-6bd50504.js} +13 -13
- package/{image-widget-aae45012.js → image-widget-bfd5550f.js} +13 -13
- package/{index-27ae0140.js → index-02a6b3f8.js} +5 -5
- package/{index-311f10d7.js → index-dbea5b81.js} +4 -4
- package/{index-620ccab1.js → index-e070c3e0.js} +1 -1
- package/{input-number-widget-d775aa52.js → input-number-widget-9e01dce1.js} +15 -15
- package/{input-widget-06f96107.js → input-widget-1c836206.js} +16 -16
- package/{label-wrapper-1b8c7fab.js → label-wrapper-af2bc180.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-f8101ea8.js → label-wrapper.vue_vue_type_style_index_0_lang-962b6cf9.js} +3 -3
- package/{link-widget-7eade8f3.js → link-widget-89bde9dc.js} +16 -16
- package/{ltable-col-widget-92329260.js → ltable-col-widget-c2842a11.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8deb2289.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-a47bf445.js} +10 -10
- package/{ltable-widget-6fda3d1c.js → ltable-widget-f9d43727.js} +5 -5
- package/{menu-widget-7e16579b.js → menu-widget-0beabff6.js} +14 -14
- package/{model-widget-c6562600.js → model-widget-a45c1fe6.js} +13 -13
- package/{multirow-aa8fdfda.js → multirow-3e98cf40.js} +82 -82
- package/{multirow-widget-0b33e78b.js → multirow-widget-b7eb0bbb.js} +20 -20
- package/package.json +1 -1
- package/{pagination-widget-8fb6ed1a.js → pagination-widget-0f1cca11.js} +13 -13
- package/{picture-upload-widget-ce5a551e.js → picture-upload-widget-e3ff2f79.js} +16 -16
- package/{progress-widget-70034092.js → progress-widget-ea0fd738.js} +14 -14
- package/{propresult-45e5ddbd.js → propresult-5dee4bf6.js} +1 -1
- package/{radio-widget-8b94a1d3.js → radio-widget-3687712c.js} +15 -15
- package/{range-widget-f5762923.js → range-widget-96d4a27c.js} +16 -16
- package/{rate-widget-b1048b77.js → rate-widget-61c7cab1.js} +15 -15
- package/render.es.js +30 -30
- package/render.style.css +1 -1
- package/render.umd.js +284 -284
- package/{result-widget-60fcddd3.js → result-widget-ca86eb01.js} +14 -14
- package/{rich-editor-widget-0cadbc8b.js → rich-editor-widget-51b3d5cb.js} +15 -15
- package/{router-widget-dcbcf5de.js → router-widget-341364d4.js} +13 -13
- package/{select-widget-2102473e.js → select-widget-98900130.js} +15 -15
- package/{sfc-790abf87.js → sfc-907692c0.js} +8 -8
- package/{share-field-4e6d483b.js → share-field-9be77fbc.js} +238 -237
- package/{share-file-ec03de06.js → share-file-61ff17b3.js} +5 -5
- package/{slider-widget-5c83af7c.js → slider-widget-ca72b3c0.js} +15 -15
- package/{slot-76b38210.js → slot-5cdf874c.js} +3 -3
- package/{static-text-widget-8db852fb.js → static-text-widget-45fe23b1.js} +14 -14
- package/{steps-widget-3b73e8ee.js → steps-widget-b5129cc6.js} +13 -13
- package/subMenu-widget-3981f720.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-31167135.js → subMenu-widget.vue_vue_type_script_setup_true_lang-63a46eee.js} +3 -3
- package/{switch-widget-d09f9c87.js → switch-widget-a7f5b22c.js} +15 -15
- package/{tab-pane-widget-7d6864d6.js → tab-pane-widget-f8a3c31f.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-d0a1d524.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c6e3eb7a.js} +5 -5
- package/table-col-widget-e76e3322.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-04879642.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d05112e1.js} +6 -6
- package/{table-widget-7aa2d418.js → table-widget-54f99663.js} +15 -15
- package/{tabs-widget-8186811b.js → tabs-widget-c2f78ce4.js} +8 -8
- package/{tag-widget-41b1ef2e.js → tag-widget-ec940bbe.js} +16 -16
- package/{text-widget-6b810021.js → text-widget-07b2f59a.js} +16 -16
- package/{textarea-widget-ba5a49e2.js → textarea-widget-5785678a.js} +15 -15
- package/{time-picker-range-widget-2e5ef7a6.js → time-picker-range-widget-2c1bbd6a.js} +15 -15
- package/{time-picker-widget-cff25898.js → time-picker-widget-3f474921.js} +15 -15
- package/{time-select-widget-78ae8c68.js → time-select-widget-ff7e8687.js} +15 -15
- package/tmpl-widget-3cb38bfd.js +90 -0
- package/{tree-select-widget-f11dd126.js → tree-select-widget-b94b2aca.js} +15 -15
- package/{tree-widget-c518acc0.js → tree-widget-d8c9c191.js} +13 -13
- package/{uuid-c0c0f8a8.js → uuid-9b826be5.js} +1 -1
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-038d5f0b.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-11129bda.js} +14 -14
- package/{wrapper-widget-f8ea87f2.js → wrapper-widget-14e20876.js} +6 -6
- package/content-wrapper-53fabef4.js +0 -14
- package/default-slot-widget-a72c7add.js +0 -24
- package/feedback-widget-18be09a5.js +0 -24
- package/form-widget-ca77e318.js +0 -221
- package/subMenu-widget-ed65e791.js +0 -16
- package/table-col-widget-c2fac751.js +0 -20
- package/tmpl-widget-98ef5242.js +0 -91
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var Ge = (t, s, g) => (
|
|
4
|
-
import { onMounted as Ye, nextTick as Ze, onActivated as
|
|
5
|
-
import { b as
|
|
6
|
-
import { p as Je, b as tt, g as
|
|
1
|
+
var vn = Object.defineProperty;
|
|
2
|
+
var dn = (t, s, g) => s in t ? vn(t, s, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[s] = g;
|
|
3
|
+
var Ge = (t, s, g) => (dn(t, typeof s != "symbol" ? s + "" : s, g), g);
|
|
4
|
+
import { onMounted as Ye, nextTick as Ze, onActivated as gn, onErrorCaptured as hn, isRef as we, watch as z, reactive as pn, ref as fe, computed as Me, onBeforeUnmount as Vn, inject as On, toRefs as Cn } from "vue";
|
|
5
|
+
import { b as _e, e as De, o as X, c as ee, r as yn, d as Q, I as En, t as ve, f as et, j as bn, l as Rn, x as re, w as Mn } from "./enum-type-3590213d.js";
|
|
6
|
+
import { p as Je, b as tt, g as xn, f as le, a as _n } from "./multirow-3e98cf40.js";
|
|
7
7
|
import { u as nt } from "./icon-e9532b43.js";
|
|
8
|
-
import { f as
|
|
9
|
-
import { b as ot, d as Se, B as q, P as rt, c as st, e as
|
|
10
|
-
import { F as
|
|
11
|
-
import { c as Pe, t as ut, l as
|
|
12
|
-
import { f as
|
|
13
|
-
import { W as A, d as
|
|
8
|
+
import { f as j, l as me, m as Dn, n as ze, g as $, b as Sn, d as Pn } from "./expression-8376e661.js";
|
|
9
|
+
import { b as ot, d as Se, B as q, P as rt, c as st, e as Wn, a as Nn } from "./baseImp-e9b67b51.js";
|
|
10
|
+
import { F as Bn } from "./slot-5cdf874c.js";
|
|
11
|
+
import { c as Pe, t as ut, l as Ln } from "./uuid-9b826be5.js";
|
|
12
|
+
import { f as Fn, d as Tn, h as xe, e as In } from "./index-02a6b3f8.js";
|
|
13
|
+
import { W as A, d as K } from "./enum-type-3b3d7fab.js";
|
|
14
14
|
function $n() {
|
|
15
15
|
return {
|
|
16
16
|
onMountedOrActivated: (g) => {
|
|
@@ -19,25 +19,25 @@ function $n() {
|
|
|
19
19
|
g(), Ze(() => {
|
|
20
20
|
_ = !0;
|
|
21
21
|
});
|
|
22
|
-
}),
|
|
22
|
+
}), gn(() => {
|
|
23
23
|
_ && g();
|
|
24
24
|
});
|
|
25
25
|
},
|
|
26
26
|
onCompErrorCaptured: () => {
|
|
27
|
-
|
|
27
|
+
hn((g) => (console.log(g), !1));
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
31
|
function jn(t, s) {
|
|
32
|
-
const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (
|
|
32
|
+
const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (D) => g(D);
|
|
33
33
|
return {
|
|
34
34
|
existFunc: P,
|
|
35
|
-
handleFunc: (
|
|
36
|
-
if (
|
|
37
|
-
var N = P(String(
|
|
35
|
+
handleFunc: (D, W) => {
|
|
36
|
+
if (_e(D)) {
|
|
37
|
+
var N = P(String(D));
|
|
38
38
|
return Se(N, W);
|
|
39
39
|
} else {
|
|
40
|
-
var N = _(Pe(
|
|
40
|
+
var N = _(Pe(D));
|
|
41
41
|
return Se(N, W);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
@@ -65,48 +65,48 @@ class We {
|
|
|
65
65
|
function de(t) {
|
|
66
66
|
t || (t = {});
|
|
67
67
|
const s = new We(t), { instance: g } = nt(), _ = (v) => s.getWidgetRef(v == null ? void 0 : v.toString()), P = (v, h, O) => {
|
|
68
|
-
var
|
|
68
|
+
var C = [], S = [];
|
|
69
69
|
let o = _(v);
|
|
70
|
-
return o &&
|
|
71
|
-
var n =
|
|
70
|
+
return o && C.push(o), C == null || C.forEach((f) => {
|
|
71
|
+
var n = D(f, h, O);
|
|
72
72
|
n && S.push(n);
|
|
73
73
|
}), S;
|
|
74
74
|
}, i = (v, h) => {
|
|
75
75
|
var O;
|
|
76
76
|
return (O = v == null ? void 0 : v.exposed) == null ? void 0 : O[h.toString()];
|
|
77
|
-
},
|
|
78
|
-
var
|
|
79
|
-
if (
|
|
77
|
+
}, D = (v, h, O) => {
|
|
78
|
+
var C = i(v, h);
|
|
79
|
+
if (C) {
|
|
80
80
|
var S = [];
|
|
81
|
-
return O && (S = Object.values(O)),
|
|
81
|
+
return O && (S = Object.values(O)), C(...S);
|
|
82
82
|
}
|
|
83
83
|
}, W = (v, h, O) => {
|
|
84
|
-
var
|
|
84
|
+
var C = [];
|
|
85
85
|
if (v) {
|
|
86
86
|
var S = Pe(ut(v, !0));
|
|
87
87
|
S == null || S.forEach((o) => {
|
|
88
88
|
var f = P(o, h, O);
|
|
89
|
-
De(f) ||
|
|
89
|
+
De(f) || C.push(f);
|
|
90
90
|
});
|
|
91
91
|
}
|
|
92
|
-
return Array.isArray(v) ?
|
|
92
|
+
return Array.isArray(v) ? C : C == null ? void 0 : C[0];
|
|
93
93
|
}, N = (v, h) => {
|
|
94
94
|
let O = X(t);
|
|
95
95
|
W(O, v, h);
|
|
96
96
|
}, p = (v, h) => {
|
|
97
97
|
var n, d, c;
|
|
98
98
|
const O = (d = (n = h || g) == null ? void 0 : n.exposed) == null ? void 0 : d.getField();
|
|
99
|
-
var
|
|
99
|
+
var C = Je(O == null ? void 0 : O.id);
|
|
100
100
|
const S = (u) => (u == null ? void 0 : u.id) === v, o = (u) => {
|
|
101
101
|
var R;
|
|
102
102
|
var l = Je(u == null ? void 0 : u.id);
|
|
103
|
-
return (
|
|
103
|
+
return (C == null ? void 0 : C.groupName) === (l == null ? void 0 : l.groupName) && ((l == null ? void 0 : l.id) === v || ((R = u == null ? void 0 : u._source) == null ? void 0 : R.id) === v);
|
|
104
104
|
}, f = (c = X(s.refList)) == null ? void 0 : c.find((u) => {
|
|
105
105
|
var R, L;
|
|
106
106
|
try {
|
|
107
107
|
const F = (L = (R = s.refList[u]) == null ? void 0 : R.exposed) == null ? void 0 : L.getField();
|
|
108
108
|
var l = S(F);
|
|
109
|
-
return !l && (
|
|
109
|
+
return !l && (C != null && C.groupName) && (l = o(F)), l;
|
|
110
110
|
} catch {
|
|
111
111
|
return !1;
|
|
112
112
|
}
|
|
@@ -128,7 +128,7 @@ function de(t) {
|
|
|
128
128
|
findWidgetAndCall: P,
|
|
129
129
|
getWidgetRef: _,
|
|
130
130
|
callWidgetsExposed: W,
|
|
131
|
-
callRefFunc:
|
|
131
|
+
callRefFunc: D,
|
|
132
132
|
existRefFunc: i,
|
|
133
133
|
setAllRefList: N,
|
|
134
134
|
findRefById: p,
|
|
@@ -140,8 +140,8 @@ function de(t) {
|
|
|
140
140
|
unregisterFromRefList: b
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
|
-
const
|
|
144
|
-
const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId:
|
|
143
|
+
const An = (t, s, g, _) => {
|
|
144
|
+
const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId: D } = tt();
|
|
145
145
|
if (!t || t.length <= 0 || !s)
|
|
146
146
|
return;
|
|
147
147
|
const W = () => {
|
|
@@ -160,7 +160,7 @@ const In = (t, s, g, _) => {
|
|
|
160
160
|
return;
|
|
161
161
|
const n = q.getName(o), d = P.getWidgetRef(n);
|
|
162
162
|
if (d) {
|
|
163
|
-
const c = q.getOptions(o,
|
|
163
|
+
const c = q.getOptions(o, j.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
|
|
164
164
|
ee(c) && (we(c) ? z(c, (u) => {
|
|
165
165
|
i(d, A.setValue, { newValue: u });
|
|
166
166
|
}) : i(d, A.setValue, { newValue: c }));
|
|
@@ -170,7 +170,7 @@ const In = (t, s, g, _) => {
|
|
|
170
170
|
if (!n)
|
|
171
171
|
return;
|
|
172
172
|
const d = n.name, c = i(n.ref, A.getValue), u = i(n.ref, A.getCheckedItems), l = {};
|
|
173
|
-
return De(c) || (l[d] = c, !
|
|
173
|
+
return De(c) || (l[d] = c, !bn(u) && !f && (l[`${d}${me.checkedOptions}`] = u)), l;
|
|
174
174
|
}, b = (o, f) => {
|
|
175
175
|
var d;
|
|
176
176
|
var n = [];
|
|
@@ -179,7 +179,7 @@ const In = (t, s, g, _) => {
|
|
|
179
179
|
return;
|
|
180
180
|
const u = c == null ? void 0 : c.id;
|
|
181
181
|
var l = u === o;
|
|
182
|
-
const R =
|
|
182
|
+
const R = D(u), L = (R == null ? void 0 : R.id) === o, F = (R == null ? void 0 : R.groupName) === f;
|
|
183
183
|
return l || L && (F || !f) ? (n.push(c), !0) : !1;
|
|
184
184
|
}), !(!n || n.length <= 0))
|
|
185
185
|
return n == null ? void 0 : n.map((c) => {
|
|
@@ -194,7 +194,7 @@ const In = (t, s, g, _) => {
|
|
|
194
194
|
var n = [];
|
|
195
195
|
if (!o || (o == null ? void 0 : o.length) <= 0)
|
|
196
196
|
return n;
|
|
197
|
-
const d =
|
|
197
|
+
const d = D(s), c = d == null ? void 0 : d.groupName;
|
|
198
198
|
return f === le.Inner2Outer ? o == null || o.forEach((u) => {
|
|
199
199
|
var l = b(u);
|
|
200
200
|
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
@@ -236,23 +236,23 @@ const In = (t, s, g, _) => {
|
|
|
236
236
|
}), f;
|
|
237
237
|
}, O = (o, f, n) => {
|
|
238
238
|
if (n === le.Inner2Inner) {
|
|
239
|
-
const l =
|
|
239
|
+
const l = En(f), { updateFomula: R } = st(), { buildVariable: L } = Wn();
|
|
240
240
|
var d = h(o);
|
|
241
241
|
if (ee(d)) {
|
|
242
|
-
var c = q.getOrgOption(f,
|
|
242
|
+
var c = q.getOrgOption(f, j.defaultValue), u = R(ve(c), d, (F, Y) => {
|
|
243
243
|
var Z = d[F];
|
|
244
244
|
return De(Z) ? L(F) : L(Z);
|
|
245
245
|
});
|
|
246
|
-
return q.setOrgOption(l,
|
|
246
|
+
return q.setOrgOption(l, j.defaultValue, et(u)), l;
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
249
|
return f;
|
|
250
|
-
},
|
|
250
|
+
}, C = (o) => {
|
|
251
251
|
const f = o == null ? void 0 : o.id;
|
|
252
|
-
var n = q.getOrgOption(o,
|
|
252
|
+
var n = q.getOrgOption(o, j.defaultValue);
|
|
253
253
|
if (n == null)
|
|
254
254
|
return;
|
|
255
|
-
const d =
|
|
255
|
+
const d = xn(s, f);
|
|
256
256
|
if (d === le.DiffInner)
|
|
257
257
|
return;
|
|
258
258
|
var c = rt.getFormulaRelatedField(n);
|
|
@@ -267,30 +267,30 @@ const In = (t, s, g, _) => {
|
|
|
267
267
|
(() => {
|
|
268
268
|
var o;
|
|
269
269
|
(o = W()) == null || o.forEach((f) => {
|
|
270
|
-
|
|
270
|
+
C(f);
|
|
271
271
|
});
|
|
272
272
|
})();
|
|
273
|
-
},
|
|
273
|
+
}, kn = (t, s, g, _, P) => {
|
|
274
274
|
var B;
|
|
275
275
|
if (P || !ee(g))
|
|
276
276
|
return;
|
|
277
277
|
const { parseGroupId: i } = tt();
|
|
278
|
-
var
|
|
278
|
+
var D = i(s), W = D == null ? void 0 : D.groupName;
|
|
279
279
|
const { callRefFunc: N } = de(t), p = (v, h) => {
|
|
280
280
|
var n, d, c;
|
|
281
|
-
const O = (d = (n = X(t)) == null ? void 0 : n.map((u) => N(t == null ? void 0 : t[u], A.getField))) == null ? void 0 : d.filter((u) => !!u),
|
|
281
|
+
const O = (d = (n = X(t)) == null ? void 0 : n.map((u) => N(t == null ? void 0 : t[u], A.getField))) == null ? void 0 : d.filter((u) => !!u), C = (c = Fn(O, (u) => {
|
|
282
282
|
var l = i(u == null ? void 0 : u.id);
|
|
283
283
|
return (!W || (l == null ? void 0 : l.groupName) === W) && (l == null ? void 0 : l.id) === v;
|
|
284
284
|
})) == null ? void 0 : c[0];
|
|
285
|
-
if (!
|
|
285
|
+
if (!C)
|
|
286
286
|
return;
|
|
287
|
-
const S = q.getName(
|
|
287
|
+
const S = q.getName(C), f = new We(t).getWidgetRef(S);
|
|
288
288
|
f && (h == null || h(f));
|
|
289
289
|
}, V = ut(_ == null ? void 0 : _.newValue, !0), b = (B = X(g)) == null ? void 0 : B.filter((v) => V == null ? void 0 : V.includes(v));
|
|
290
290
|
!b || b.length <= 0 || b == null || b.forEach((v) => {
|
|
291
|
-
var O,
|
|
291
|
+
var O, C;
|
|
292
292
|
const h = (O = g == null ? void 0 : g[v]) == null ? void 0 : O.result;
|
|
293
|
-
(
|
|
293
|
+
(C = X(h)) == null || C.forEach((S) => {
|
|
294
294
|
var f;
|
|
295
295
|
const o = h == null ? void 0 : h[S];
|
|
296
296
|
(f = o == null ? void 0 : o.ids) == null || f.forEach((n) => {
|
|
@@ -332,7 +332,7 @@ function Hn() {
|
|
|
332
332
|
}, i = (p, V) => {
|
|
333
333
|
var b;
|
|
334
334
|
return (b = t(p)) == null ? void 0 : b.setSelectionRange(V, V);
|
|
335
|
-
},
|
|
335
|
+
}, D = (p, V) => {
|
|
336
336
|
s(p), i(p, V);
|
|
337
337
|
};
|
|
338
338
|
return {
|
|
@@ -341,12 +341,12 @@ function Hn() {
|
|
|
341
341
|
setSelectionStart: i,
|
|
342
342
|
blur: g,
|
|
343
343
|
focus: s,
|
|
344
|
-
setMousePos:
|
|
344
|
+
setMousePos: D,
|
|
345
345
|
getMousePos: (p) => _(p),
|
|
346
346
|
insertOnMousePos: (p, V, b) => {
|
|
347
|
-
const B = _(p), v = P(p), h =
|
|
347
|
+
const B = _(p), v = P(p), h = Dn(b, V, B, v);
|
|
348
348
|
return Ze(() => {
|
|
349
|
-
|
|
349
|
+
D(p, B + (V == null ? void 0 : V.length));
|
|
350
350
|
}), h;
|
|
351
351
|
}
|
|
352
352
|
};
|
|
@@ -355,17 +355,17 @@ const Qe = (t) => {
|
|
|
355
355
|
var g;
|
|
356
356
|
const { getFormulaFields: s } = st();
|
|
357
357
|
return ((g = s(ve(t))) == null ? void 0 : g.length) > 0;
|
|
358
|
-
},
|
|
358
|
+
}, U = (t) => {
|
|
359
359
|
const s = t.type;
|
|
360
|
-
return ![
|
|
360
|
+
return ![K.fileUpload, K.pictureUpload].includes(s) && t.formItemFlag || [K.form, K.dialog].includes(s);
|
|
361
361
|
}, Xe = (t) => {
|
|
362
362
|
const s = t.type;
|
|
363
|
-
return [
|
|
363
|
+
return [K.treeSelect, K.cascader, K.select, K.checkbox, K.radio].includes(s);
|
|
364
364
|
};
|
|
365
|
-
function
|
|
366
|
-
const s = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, _ = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, i = t == null ? void 0 : t.widget,
|
|
367
|
-
let h =
|
|
368
|
-
const O = de(p),
|
|
365
|
+
function eo(t) {
|
|
366
|
+
const s = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, _ = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, i = t == null ? void 0 : t.widget, D = t == null ? void 0 : t.designer, W = D == null ? void 0 : D.pageConfig, { formRefList: N, globalRefList: p, globalConfig: V, globalFormName: b, globalDataModel: B, rowScope: v } = Bn.globalInject();
|
|
367
|
+
let h = pn(B || {});
|
|
368
|
+
const O = de(p), C = de(N), S = () => re(h), o = () => v, f = () => i, n = {
|
|
369
369
|
instance: {
|
|
370
370
|
exposed: {
|
|
371
371
|
getFormData: !s && Qe(i) ? S : null,
|
|
@@ -378,177 +378,177 @@ function wn(t) {
|
|
|
378
378
|
pageConfig: W,
|
|
379
379
|
formData: !s && Qe(i) ? h : {},
|
|
380
380
|
globalConfig: V
|
|
381
|
-
}, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_defaultValue: !0, s_optionItems: !0 }, { on$: c, dispatch: u, emit$: l } = _n(), { instance: R } = nt(), { onCompErrorCaptured: L } = $n(), { existFunc: F } = jn({ options: i == null ? void 0 : i.options }, n), { attrs: Y, extendAttrs: Z, events:
|
|
382
|
-
let pe = null,
|
|
383
|
-
const G = fe(),
|
|
381
|
+
}, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_defaultValue: !0, s_optionItems: !0 }, { on$: c, dispatch: u, emit$: l } = _n(), { instance: R } = nt(), { onCompErrorCaptured: L } = $n(), { existFunc: F } = jn({ options: i == null ? void 0 : i.options }, n), { attrs: Y, extendAttrs: Z, events: k, slots: Ne, rules: Be, fieldName: x, buildRules: ct, clearRules: it, disableChangeValidate: ft, enableChangeValidate: lt, optionItems: se, filterOptionItems: mt, getCheckedOptionText: vt, getCheckedOptionValues: dt, getCheckedOptionLabels: gt, getCheckedOptionItems: ht, activeOptionItems: pt, activeOptionItem: Vt, activeOptionItemIndex: Ot, setOptionItems: Ct, setWidgetOption: te, getWidgetOption: ge, setFieldEnable: yt, hasFieldOptions: Et, getFieldOptions: ne, setFieldOptions: bt, computedDefaultValue: Rt, hasDefaultValue: he, singleOption: Mt, watchOption: xt, addCssClass: _t, removeCssClass: Dt } = ot(i, n, d, R), { isIdClass: St, getIdByIdClass: Pt } = Tn(i), { getOneSchemaData: Wt, getSchemaDataObject: Nt, getSchemaDatas: Bt } = Nn(n), oe = Hn();
|
|
382
|
+
let pe = null, M = fe();
|
|
383
|
+
const G = fe(), Lt = () => x.value, Le = () => `${i == null ? void 0 : i.id}-${Ln()}`, Ve = fe(Le()), Fe = () => {
|
|
384
384
|
Ve.value = Le();
|
|
385
|
-
},
|
|
385
|
+
}, Ft = Me({
|
|
386
386
|
get: () => {
|
|
387
|
-
if (
|
|
388
|
-
var e = Number(
|
|
389
|
-
return isNaN(e) ? void 0 : (
|
|
387
|
+
if (_e(M.value)) {
|
|
388
|
+
var e = Number(M.value);
|
|
389
|
+
return isNaN(e) ? void 0 : (M.value = e, e);
|
|
390
390
|
}
|
|
391
|
-
return
|
|
391
|
+
return M.value;
|
|
392
392
|
},
|
|
393
393
|
set: (e) => {
|
|
394
|
-
|
|
394
|
+
M.value = e;
|
|
395
395
|
}
|
|
396
|
-
}),
|
|
396
|
+
}), Tt = Me({
|
|
397
397
|
get: () => {
|
|
398
|
-
if (
|
|
399
|
-
var e = et(
|
|
400
|
-
|
|
398
|
+
if (_e(M.value)) {
|
|
399
|
+
var e = et(M.value);
|
|
400
|
+
Rn(e) && (M.value = e);
|
|
401
401
|
}
|
|
402
|
-
return
|
|
402
|
+
return M.value;
|
|
403
403
|
},
|
|
404
404
|
set: (e) => {
|
|
405
|
-
|
|
405
|
+
M.value = e;
|
|
406
406
|
}
|
|
407
407
|
}), Oe = (e) => {
|
|
408
408
|
var r, a, m;
|
|
409
|
-
return (m = (a = (r = O.getWidgetRef(
|
|
409
|
+
return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedItems) == null ? void 0 : m.call(a, e);
|
|
410
410
|
}, Te = (e) => {
|
|
411
411
|
var r, a, m;
|
|
412
|
-
return (m = (a = (r = O.getWidgetRef(
|
|
413
|
-
},
|
|
412
|
+
return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedLabels) == null ? void 0 : m.call(a, e);
|
|
413
|
+
}, It = (e) => {
|
|
414
414
|
var r, a, m;
|
|
415
|
-
return (m = (a = (r = O.getWidgetRef(
|
|
416
|
-
},
|
|
417
|
-
var
|
|
418
|
-
const e = (
|
|
415
|
+
return (m = (a = (r = O.getWidgetRef(x.value)) == null ? void 0 : r.exposed) == null ? void 0 : a.getCheckedText) == null ? void 0 : m.call(a, e);
|
|
416
|
+
}, Ce = () => {
|
|
417
|
+
var y;
|
|
418
|
+
const e = (y = Z.value) == null ? void 0 : y.withAttachData;
|
|
419
419
|
if (!Xe(i) || e === !1)
|
|
420
420
|
return;
|
|
421
|
-
const r =
|
|
421
|
+
const r = M.value, a = Te(r), m = It(r);
|
|
422
422
|
var E = re(Oe(r));
|
|
423
|
-
|
|
424
|
-
},
|
|
423
|
+
Ie(a, E, m);
|
|
424
|
+
}, Ie = (e, r, a) => {
|
|
425
425
|
var m = {};
|
|
426
426
|
if (e != null) {
|
|
427
427
|
let E = ne("textName", !1);
|
|
428
|
-
[`${
|
|
429
|
-
|
|
428
|
+
[`${x.value}${me.optionText}`, E].forEach((y) => {
|
|
429
|
+
y && m[y] === void 0 && (m[y] = e);
|
|
430
430
|
});
|
|
431
431
|
}
|
|
432
|
-
if (r != null && ve(r) !== ve(
|
|
432
|
+
if (r != null && ve(r) !== ve(M.value)) {
|
|
433
433
|
let E = ne("optionName", !1);
|
|
434
|
-
[`${
|
|
435
|
-
|
|
434
|
+
[`${x.value}${me.checkedOptions}`, E].forEach((y) => {
|
|
435
|
+
y && m[y] === void 0 && (m[y] = r);
|
|
436
436
|
});
|
|
437
437
|
}
|
|
438
438
|
if (a != null) {
|
|
439
439
|
let E = ne("labelName", !1);
|
|
440
|
-
e != a && [`${
|
|
441
|
-
|
|
440
|
+
e != a && [`${x.value}${me.optionLabelName}`, E].forEach((y) => {
|
|
441
|
+
y && m[y] === void 0 && (m[y] = a);
|
|
442
442
|
});
|
|
443
443
|
}
|
|
444
444
|
Q(h, re(m));
|
|
445
445
|
}, w = (e) => {
|
|
446
|
-
if (
|
|
447
|
-
|
|
448
|
-
var r = { [
|
|
446
|
+
if (U(i)) {
|
|
447
|
+
Ce();
|
|
448
|
+
var r = { [x.value]: e };
|
|
449
449
|
Q(h, r);
|
|
450
450
|
}
|
|
451
451
|
}, ue = (e) => {
|
|
452
452
|
s || w(e);
|
|
453
|
-
},
|
|
454
|
-
var e =
|
|
455
|
-
|
|
453
|
+
}, $e = (e) => ne(e, !1), je = () => {
|
|
454
|
+
var e = Cn(h);
|
|
455
|
+
M = rt.get(e, x.value);
|
|
456
456
|
}, Ae = (e) => {
|
|
457
457
|
pe = re(e);
|
|
458
458
|
}, $t = () => {
|
|
459
459
|
s || P && P(J());
|
|
460
460
|
}, jt = () => {
|
|
461
461
|
var e;
|
|
462
|
-
!s || !
|
|
462
|
+
!s || !U(i) || ((e = ie()) == null || e.then((r) => {
|
|
463
463
|
w(r);
|
|
464
|
-
}),
|
|
465
|
-
},
|
|
466
|
-
if (!
|
|
464
|
+
}), je());
|
|
465
|
+
}, ye = (e, r) => {
|
|
466
|
+
if (!U(i))
|
|
467
467
|
return;
|
|
468
|
-
l(
|
|
469
|
-
const a = { fieldId: i.id, fieldName:
|
|
470
|
-
u(b,
|
|
471
|
-
},
|
|
472
|
-
ue(e),
|
|
468
|
+
l(j.fieldValueChanged, { newValue: e, oldValue: r });
|
|
469
|
+
const a = { fieldId: i.id, fieldName: x.value, newValue: e, oldValue: r };
|
|
470
|
+
u(b, j.fieldChange, a, R);
|
|
471
|
+
}, At = (e) => F(e), Ee = (e, r) => Se(ge(e), r), kt = (e) => {
|
|
472
|
+
ue(e), Ke(), Ee(j.onInput, { value: e });
|
|
473
473
|
}, Ht = (e, r) => {
|
|
474
474
|
var a, m, E;
|
|
475
|
-
(E = (m = (a = O.getWidgetRef(
|
|
475
|
+
(E = (m = (a = O.getWidgetRef(x.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null || E.call(m, e, r);
|
|
476
476
|
}, Kt = (...e) => {
|
|
477
|
-
var m, E,
|
|
478
|
-
const a = ((m = e == null ? void 0 : e[0]) == null ? void 0 : m.target) != null ? (
|
|
479
|
-
Ht(a, pe), ue(a),
|
|
477
|
+
var m, E, y;
|
|
478
|
+
const a = ((m = e == null ? void 0 : e[0]) == null ? void 0 : m.target) != null ? (y = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : y.value : e == null ? void 0 : e[0];
|
|
479
|
+
Ht(a, pe), ue(a), ye(a, pe), Ke(), Ae(a);
|
|
480
480
|
}, Ut = (e = !0) => {
|
|
481
|
-
te(
|
|
482
|
-
}, kt = (e = !0) => {
|
|
483
|
-
te(j.disabled, e);
|
|
481
|
+
te($.readonly, e);
|
|
484
482
|
}, qt = (e = !0) => {
|
|
485
|
-
te(
|
|
483
|
+
te($.disabled, e);
|
|
486
484
|
}, Gt = (e = !0) => {
|
|
487
|
-
|
|
488
|
-
}, Jt = (e) => {
|
|
489
|
-
|
|
490
|
-
},
|
|
491
|
-
|
|
485
|
+
te($.hidden, e), e ? qe() : ce();
|
|
486
|
+
}, Jt = (e = !0) => {
|
|
487
|
+
yt($.required, e), ce();
|
|
488
|
+
}, zt = (e) => {
|
|
489
|
+
te($.label, e);
|
|
490
|
+
}, J = () => M == null ? void 0 : M.value, ke = (e) => {
|
|
491
|
+
M.value = e;
|
|
492
492
|
}, ae = (e) => {
|
|
493
493
|
let r = re(J());
|
|
494
|
-
if (
|
|
494
|
+
if (ke(e), !U(i))
|
|
495
495
|
return;
|
|
496
496
|
const a = J();
|
|
497
|
-
r !== a && (ue(a),
|
|
498
|
-
},
|
|
497
|
+
r !== a && (ue(a), ye(e, r));
|
|
498
|
+
}, Qt = () => {
|
|
499
499
|
var e;
|
|
500
500
|
he() ? (e = ie()) == null || e.then((r) => {
|
|
501
501
|
w(r);
|
|
502
502
|
}) : w(null), _ == null || _();
|
|
503
|
-
},
|
|
503
|
+
}, Xt = (e) => {
|
|
504
504
|
const r = J(), a = oe.insertOnMousePos(G.value, e, r);
|
|
505
505
|
ae(a);
|
|
506
|
-
},
|
|
507
|
-
z(() =>
|
|
508
|
-
e == null || e({ id: i.id, name:
|
|
506
|
+
}, Yt = (e, r) => {
|
|
507
|
+
z(() => M == null ? void 0 : M.value, (a, m) => {
|
|
508
|
+
e == null || e({ id: i.id, name: x.value, newValue: a, oldValue: m });
|
|
509
509
|
}, r);
|
|
510
|
-
},
|
|
511
|
-
var
|
|
510
|
+
}, Zt = (e) => {
|
|
511
|
+
var y;
|
|
512
512
|
e.preventDefault();
|
|
513
|
-
const r = (
|
|
514
|
-
var
|
|
515
|
-
const T = (
|
|
516
|
-
return T ?
|
|
513
|
+
const r = (I) => {
|
|
514
|
+
var H;
|
|
515
|
+
const T = (H = Array.from(I.classList)) == null ? void 0 : H.find((be) => St(be));
|
|
516
|
+
return T ? Pt(T) : "";
|
|
517
517
|
}, a = document.activeElement;
|
|
518
518
|
if (!a)
|
|
519
519
|
return;
|
|
520
520
|
const m = document.getElementsByClassName(ze.formItemTarget);
|
|
521
521
|
for (var E = 0; E < m.length; E++) {
|
|
522
|
-
const
|
|
522
|
+
const I = m[E], T = at(a, ze.formItemTarget);
|
|
523
523
|
if (!T)
|
|
524
524
|
continue;
|
|
525
|
-
const
|
|
526
|
-
if (
|
|
525
|
+
const H = r(I), be = r(T);
|
|
526
|
+
if (H === be) {
|
|
527
527
|
if (E === m.length - 1)
|
|
528
528
|
return;
|
|
529
|
-
const
|
|
529
|
+
const fn = m[E + 1], ln = r(fn), Re = O.findRefById(ln, R);
|
|
530
530
|
try {
|
|
531
|
-
(
|
|
532
|
-
} catch (
|
|
533
|
-
console.log(
|
|
531
|
+
(y = Re == null ? void 0 : Re.exposed) == null || y.focus();
|
|
532
|
+
} catch (mn) {
|
|
533
|
+
console.log(mn);
|
|
534
534
|
}
|
|
535
535
|
}
|
|
536
536
|
}
|
|
537
537
|
};
|
|
538
|
-
let
|
|
539
|
-
var
|
|
538
|
+
let wt = () => {
|
|
539
|
+
var I;
|
|
540
540
|
let e = {
|
|
541
|
-
componentName:
|
|
541
|
+
componentName: x.value,
|
|
542
542
|
//用于组件事件emitter发射与接收处理
|
|
543
543
|
refList: N,
|
|
544
544
|
allRefList: p,
|
|
545
|
-
changeRegisterToRefList: (T,
|
|
546
|
-
O.changeRegisterToRefList(T,
|
|
545
|
+
changeRegisterToRefList: (T, H) => {
|
|
546
|
+
O.changeRegisterToRefList(T, H), C.changeRegisterToRefList(T, H);
|
|
547
547
|
},
|
|
548
548
|
getField: f,
|
|
549
549
|
getFormData: S,
|
|
550
550
|
getValue: J,
|
|
551
|
-
setValue:
|
|
551
|
+
setValue: ke,
|
|
552
552
|
emit$: l,
|
|
553
553
|
findRefByName: O.getWidgetRef,
|
|
554
554
|
findRefById: O.findRefById,
|
|
@@ -558,17 +558,17 @@ function wn(t) {
|
|
|
558
558
|
refreshKey: Fe,
|
|
559
559
|
getRowScope: o,
|
|
560
560
|
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
561
|
-
getOneSchemaData:
|
|
562
|
-
getSchemaDatas:
|
|
563
|
-
getSchemaDataObject:
|
|
561
|
+
getOneSchemaData: Wt,
|
|
562
|
+
getSchemaDatas: Bt,
|
|
563
|
+
getSchemaDataObject: Nt,
|
|
564
564
|
addCssClass: _t,
|
|
565
|
-
removeCssClass:
|
|
565
|
+
removeCssClass: Dt
|
|
566
566
|
}, r = {
|
|
567
|
-
resetField:
|
|
567
|
+
resetField: Qt,
|
|
568
568
|
getValue: J,
|
|
569
569
|
setValue: ae,
|
|
570
570
|
refreshDefaultValue: jt,
|
|
571
|
-
insertOnMousePos:
|
|
571
|
+
insertOnMousePos: Xt,
|
|
572
572
|
disableChangeValidate: ft,
|
|
573
573
|
enableChangeValidate: lt,
|
|
574
574
|
focus: () => {
|
|
@@ -587,124 +587,124 @@ function wn(t) {
|
|
|
587
587
|
getCheckedItems: Oe,
|
|
588
588
|
getCheckedLabels: Te
|
|
589
589
|
}, m = {
|
|
590
|
-
[
|
|
591
|
-
[
|
|
592
|
-
[
|
|
593
|
-
[
|
|
594
|
-
[
|
|
590
|
+
[$.required]: { name: A.setRequired, fn: Jt },
|
|
591
|
+
[$.label]: { name: A.setLabel, fn: zt },
|
|
592
|
+
[$.hidden]: { name: A.setHidden, fn: Gt },
|
|
593
|
+
[$.disabled]: { name: A.setDisabled, fn: qt },
|
|
594
|
+
[$.readonly]: { name: A.setReadonly, fn: Ut }
|
|
595
595
|
}, E = {};
|
|
596
|
-
(
|
|
597
|
-
if (
|
|
598
|
-
const
|
|
599
|
-
E[
|
|
596
|
+
(I = X(m)) == null || I.forEach((T) => {
|
|
597
|
+
if (xe(i, T)) {
|
|
598
|
+
const H = m[T];
|
|
599
|
+
E[H.name] = H.fn;
|
|
600
600
|
}
|
|
601
601
|
});
|
|
602
|
-
var
|
|
603
|
-
return
|
|
602
|
+
var y = Q(e, E);
|
|
603
|
+
return U(i) && (y = Q(y, r)), Xe(i) && (y = Q(y, a)), y;
|
|
604
604
|
};
|
|
605
|
-
const
|
|
605
|
+
const en = Me(() => ({
|
|
606
606
|
attrs: Y.value,
|
|
607
607
|
extendAttrs: Z.value,
|
|
608
|
-
events:
|
|
608
|
+
events: k.value,
|
|
609
609
|
slots: Ne.value,
|
|
610
610
|
fieldKey: Ve.value,
|
|
611
611
|
fieldEditor: G.value,
|
|
612
|
-
fieldName:
|
|
613
|
-
})),
|
|
612
|
+
fieldName: x.value
|
|
613
|
+
})), tn = (e) => {
|
|
614
614
|
t.designState && t.designer && z(() => {
|
|
615
615
|
var r;
|
|
616
616
|
return (r = t == null ? void 0 : t.widget) == null ? void 0 : r[e];
|
|
617
617
|
}, (r, a) => {
|
|
618
|
-
const { emitHistoryChange: m } =
|
|
619
|
-
m(`edit ${
|
|
618
|
+
const { emitHistoryChange: m } = In(t.designer);
|
|
619
|
+
m(`edit ${x.value}.${e},newValue:${r},oldValue:${a}`);
|
|
620
620
|
}, {
|
|
621
621
|
deep: !0
|
|
622
622
|
});
|
|
623
|
-
},
|
|
624
|
-
const m = fe(), E =
|
|
625
|
-
r && (m.value = r(
|
|
623
|
+
}, nn = (e, r, a) => {
|
|
624
|
+
const m = fe(), E = $e(e), y = (I) => {
|
|
625
|
+
r && (m.value = r(I || E));
|
|
626
626
|
};
|
|
627
|
-
return we(E) ? z(E, (
|
|
628
|
-
|
|
629
|
-
}) :
|
|
630
|
-
},
|
|
631
|
-
!
|
|
632
|
-
|
|
627
|
+
return we(E) ? z(E, (I) => {
|
|
628
|
+
y(I), a && a(I);
|
|
629
|
+
}) : y(E), m;
|
|
630
|
+
}, He = () => {
|
|
631
|
+
!U(i) || s || Yt((e) => {
|
|
632
|
+
An(p, i == null ? void 0 : i.id, n), kn(p, i == null ? void 0 : i.id, q.getOptions(i, $.relate), e), Ce();
|
|
633
633
|
}, { immediate: !0 });
|
|
634
|
+
}, Ke = () => {
|
|
635
|
+
const e = { propName: x.value };
|
|
636
|
+
u(b, j.fieldValidation, e, R);
|
|
634
637
|
}, Ue = () => {
|
|
635
|
-
const e = {
|
|
636
|
-
u(b,
|
|
637
|
-
}, ke = () => {
|
|
638
|
-
const e = { fieldId: i.id, fieldName: M.value, rules: Be };
|
|
639
|
-
u(b, I.fieldRuleChange, e, R);
|
|
638
|
+
const e = { fieldId: i.id, fieldName: x.value, rules: Be };
|
|
639
|
+
u(b, j.fieldRuleChange, e, R);
|
|
640
640
|
}, ce = () => {
|
|
641
|
-
if (!
|
|
641
|
+
if (!U(i))
|
|
642
642
|
return;
|
|
643
643
|
const e = ct();
|
|
644
|
-
return
|
|
644
|
+
return Ue(), e;
|
|
645
645
|
}, qe = () => {
|
|
646
|
-
it(),
|
|
647
|
-
},
|
|
648
|
-
|
|
649
|
-
ae(e[
|
|
650
|
-
}), c(
|
|
651
|
-
Ee(
|
|
646
|
+
it(), Ue();
|
|
647
|
+
}, on = () => {
|
|
648
|
+
xe(i, "change") && (k.value.change = Kt), xe(i, "input") && (k.value.input = kt), c(Sn.setFormData, (e) => {
|
|
649
|
+
ae(e[x.value]);
|
|
650
|
+
}), c(j.fieldValueChanged, (e) => {
|
|
651
|
+
Ee(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
652
652
|
});
|
|
653
653
|
};
|
|
654
654
|
function ie() {
|
|
655
655
|
if (he())
|
|
656
656
|
return new Promise((e, r) => {
|
|
657
|
-
z(() =>
|
|
657
|
+
z(() => Rt.value, (a, m) => {
|
|
658
658
|
e(a);
|
|
659
659
|
}, { immediate: !0 });
|
|
660
660
|
});
|
|
661
661
|
}
|
|
662
|
-
const
|
|
662
|
+
const rn = () => {
|
|
663
663
|
var r, a;
|
|
664
|
-
let e =
|
|
665
|
-
|
|
664
|
+
let e = x.value;
|
|
665
|
+
U(i) ? ((!Mn(h, e) || h[e] === void 0) && (w(null), (r = ie()) == null || r.then((m) => {
|
|
666
666
|
w(m);
|
|
667
|
-
})),
|
|
667
|
+
})), je()) : he() && ((a = ie()) == null || a.then((m) => {
|
|
668
668
|
ae(m);
|
|
669
669
|
})), Ae(J()), $t();
|
|
670
|
-
},
|
|
670
|
+
}, sn = () => {
|
|
671
671
|
z(() => se == null ? void 0 : se.value, (e, r) => {
|
|
672
|
-
|
|
672
|
+
Ce();
|
|
673
673
|
});
|
|
674
|
-
},
|
|
675
|
-
const e =
|
|
674
|
+
}, un = () => {
|
|
675
|
+
const e = On(Pn.isRenderComplete);
|
|
676
676
|
if (e != null && e.value) {
|
|
677
|
-
|
|
677
|
+
He();
|
|
678
678
|
return;
|
|
679
679
|
}
|
|
680
680
|
e != null && z(() => e == null ? void 0 : e.value, (r) => {
|
|
681
|
-
r &&
|
|
681
|
+
r && He();
|
|
682
682
|
}, { immediate: !0 });
|
|
683
|
-
},
|
|
683
|
+
}, an = () => {
|
|
684
684
|
var e, r;
|
|
685
685
|
if (g)
|
|
686
686
|
try {
|
|
687
|
-
|
|
687
|
+
rn(), ce(), on(), O.registerToRefList(x.value), C.registerToRefList(x.value), (r = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || r.call(e), L();
|
|
688
688
|
} catch (a) {
|
|
689
689
|
console.log("create", i, a);
|
|
690
690
|
}
|
|
691
|
-
},
|
|
691
|
+
}, cn = () => {
|
|
692
692
|
g && (Ye(() => {
|
|
693
693
|
var e, r;
|
|
694
694
|
try {
|
|
695
|
-
|
|
695
|
+
un(), sn(), (r = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || r.call(e);
|
|
696
696
|
} catch (a) {
|
|
697
697
|
console.log("mounted", i, a);
|
|
698
698
|
}
|
|
699
|
-
}),
|
|
700
|
-
O.unregisterFromRefList(
|
|
699
|
+
}), Vn(() => {
|
|
700
|
+
O.unregisterFromRefList(x.value), C.unregisterFromRefList(x.value);
|
|
701
701
|
}));
|
|
702
702
|
};
|
|
703
|
-
return
|
|
704
|
-
exposed:
|
|
705
|
-
fieldModel:
|
|
706
|
-
objFieldModel:
|
|
707
|
-
numFieldModel:
|
|
703
|
+
return an(), cn(), {
|
|
704
|
+
exposed: wt(),
|
|
705
|
+
fieldModel: M,
|
|
706
|
+
objFieldModel: Tt,
|
|
707
|
+
numFieldModel: Ft,
|
|
708
708
|
fieldEditor: G,
|
|
709
709
|
fieldKey: Ve,
|
|
710
710
|
field: i,
|
|
@@ -712,48 +712,49 @@ function wn(t) {
|
|
|
712
712
|
attrs: Y,
|
|
713
713
|
extendAttrs: Z,
|
|
714
714
|
slots: Ne,
|
|
715
|
-
events:
|
|
715
|
+
events: k,
|
|
716
716
|
rules: Be,
|
|
717
|
-
fieldObj:
|
|
717
|
+
fieldObj: en,
|
|
718
718
|
pageConfig: W,
|
|
719
719
|
formModel: h,
|
|
720
|
-
fieldName:
|
|
720
|
+
fieldName: x,
|
|
721
721
|
propResultOpt: n,
|
|
722
722
|
optionItems: se,
|
|
723
723
|
activeOptionItems: pt,
|
|
724
724
|
activeOptionItem: Vt,
|
|
725
725
|
activeOptionItemIndex: Ot,
|
|
726
726
|
filterOptionItems: mt,
|
|
727
|
-
setOptionItems:
|
|
727
|
+
setOptionItems: Ct,
|
|
728
728
|
getCheckedItems: Oe,
|
|
729
|
-
getCheckedOptionItems: ht,
|
|
730
|
-
getCheckedOptionLabels: gt,
|
|
731
|
-
getCheckedOptionValues: dt,
|
|
732
|
-
getCheckedOptionText: vt,
|
|
729
|
+
getCheckedOptionItems: () => ht(M.value),
|
|
730
|
+
getCheckedOptionLabels: () => gt(M.value),
|
|
731
|
+
getCheckedOptionValues: () => dt(M.value),
|
|
732
|
+
getCheckedOptionText: () => vt(M.value),
|
|
733
733
|
refreshKey: Fe,
|
|
734
|
-
watchKeyValue:
|
|
735
|
-
watchPropAndSaveHistoryStep:
|
|
736
|
-
existEvent:
|
|
734
|
+
watchKeyValue: nn,
|
|
735
|
+
watchPropAndSaveHistoryStep: tn,
|
|
736
|
+
existEvent: At,
|
|
737
737
|
handleEvent: Ee,
|
|
738
|
-
handleEnter:
|
|
739
|
-
getPropName:
|
|
740
|
-
emitFieldDataChange:
|
|
738
|
+
handleEnter: Zt,
|
|
739
|
+
getPropName: Lt,
|
|
740
|
+
emitFieldDataChange: ye,
|
|
741
741
|
syncUpdateFormModel: ue,
|
|
742
742
|
getWidgetRef: O.getWidgetRef,
|
|
743
743
|
clearRules: qe,
|
|
744
744
|
buildRules: ce,
|
|
745
|
-
getFieldOptionModel:
|
|
745
|
+
getFieldOptionModel: $e,
|
|
746
746
|
getFieldOptions: ne,
|
|
747
|
-
|
|
747
|
+
hasFieldOptions: Et,
|
|
748
|
+
setFieldOptions: bt,
|
|
748
749
|
getWidgetOption: ge,
|
|
749
|
-
singleOption:
|
|
750
|
-
watchOption:
|
|
751
|
-
mergeOptionToFormModel:
|
|
750
|
+
singleOption: Mt,
|
|
751
|
+
watchOption: xt,
|
|
752
|
+
mergeOptionToFormModel: Ie
|
|
752
753
|
};
|
|
753
754
|
}
|
|
754
755
|
export {
|
|
755
756
|
We as R,
|
|
756
757
|
de as a,
|
|
757
|
-
|
|
758
|
+
eo as b,
|
|
758
759
|
jn as u
|
|
759
760
|
};
|