hlrender 0.0.80 → 0.0.82
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-4319d255.js → affix-widget-dd4b2fe0.js} +16 -16
- package/{alert-widget-f4ddf14b.js → alert-widget-519279c5.js} +16 -16
- package/{anchor-widget-d2b6495a.js → anchor-widget-812dfd92.js} +13 -13
- package/{auto-complete-widget-dc6c859c.js → auto-complete-widget-d8ad3276.js} +16 -16
- package/{avatar-widget-66a33eb7.js → avatar-widget-649a3f6a.js} +16 -16
- package/{backtop-widget-3a6935a3.js → backtop-widget-af0cee46.js} +16 -16
- package/{badge-widget-58c8396c.js → badge-widget-42e1966f.js} +16 -16
- package/{baseImp-6b6bb628.js → baseImp-d834ac3d.js} +1886 -1888
- package/{breadcrumb-widget-da27c276.js → breadcrumb-widget-7e515c01.js} +13 -13
- package/{button-widget-16b70cdb.js → button-widget-dcf76766.js} +16 -16
- package/{cache-widget-9158963c.js → cache-widget-49687693.js} +15 -15
- package/{card-widget-d167cd73.js → card-widget-ad2d38e5.js} +14 -14
- package/{carousel-widget-4b74b2e7.js → carousel-widget-a658ab29.js} +14 -14
- package/{cascader-widget-d2580c56.js → cascader-widget-c86385b4.js} +15 -15
- package/{chart-widget-ee7a2a5f.js → chart-widget-c9119ec6.js} +14 -14
- package/{checkbox-widget-cc683e36.js → checkbox-widget-1c4eff60.js} +15 -15
- package/{collapse-widget-58e07431.js → collapse-widget-773ea243.js} +14 -14
- package/{color-picker-widget-a9f0aea8.js → color-picker-widget-a1b2b628.js} +15 -15
- package/{cont-cell-widget-6a2bd5f6.js → cont-cell-widget-1fbeaf8a.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-96ee153f.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-c231ddc4.js} +5 -5
- package/{cont-widget-8a9022e3.js → cont-widget-fd0a123a.js} +5 -5
- package/{content-wrapper-29b6708f.js → content-wrapper-86ff072e.js} +7 -7
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-bc00b03b.js → content-wrapper.vue_vue_type_script_setup_true_lang-bbbfbe22.js} +3 -3
- package/{date-picker-range-widget-9475f06a.js → date-picker-range-widget-c5b7ae5d.js} +15 -15
- package/{date-picker-widget-0289d311.js → date-picker-widget-ed693baa.js} +15 -15
- package/default-slot-widget-d061ea2c.js +26 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-33ddf6c0.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-ccb059d2.js} +7 -7
- package/{descriptions-widget-d7811cea.js → descriptions-widget-63c339d2.js} +14 -14
- package/{dialog-1557bf9c.js → dialog-bb7f0558.js} +2 -2
- package/{dialog-widget-7bd7ed81.js → dialog-widget-9c05f51f.js} +15 -15
- package/{divider-widget-9ec4b952.js → divider-widget-903929e5.js} +16 -16
- package/{drag-wrapper-ed38fea0.js → drag-wrapper-f146ea8e.js} +13 -13
- package/{drawer-widget-f7eb6ee9.js → drawer-widget-fc0c6933.js} +15 -15
- package/{dropdown-widget-0ae1fb3a.js → dropdown-widget-bfe3e8b6.js} +14 -14
- package/{empty-widget-511362d2.js → empty-widget-d343b3e1.js} +16 -16
- package/{enum-type-191bd46c.js → enum-type-97a76214.js} +347 -340
- package/{enum-type-b23cb43d.js → enum-type-e4be3593.js} +1 -1
- package/{expression-d5b80f77.js → expression-07e9797f.js} +414 -410
- package/feedback-widget-d45d9597.js +26 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-b0f01143.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-e1397752.js} +5 -5
- package/{fieldobj-838392f7.js → fieldobj-aef757c4.js} +1 -1
- package/{file-upload-widget-66b5232a.js → file-upload-widget-0693c3f1.js} +16 -16
- package/{form-item-wrapper-e4ea8b5c.js → form-item-wrapper-6ae91f61.js} +11 -11
- package/{form-widget-befcb101.js → form-widget-99a8eaa7.js} +52 -52
- package/{grid-col-widget-0a529247.js → grid-col-widget-f7902096.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-096cae43.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-e56c45d2.js} +5 -5
- package/{grid-widget-1f2e47f3.js → grid-widget-d933885e.js} +5 -5
- package/{html-text-widget-86235fb5.js → html-text-widget-07cf54b1.js} +17 -17
- package/iframe-widget-ee7d1b0a.js +80 -0
- package/{image-widget-a5010fff.js → image-widget-aeb54c17.js} +13 -13
- package/{index-521c2d0f.js → index-2fb3647d.js} +1 -1
- package/{index-b2b4d140.js → index-44dc89d4.js} +9 -5
- package/{index-9909b136.js → index-4998be2e.js} +4 -4
- package/{input-number-widget-47908457.js → input-number-widget-aaf5e3b3.js} +15 -15
- package/{input-widget-002c5f7f.js → input-widget-6da313c2.js} +16 -16
- package/{label-wrapper-d487a555.js → label-wrapper-31c02faa.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-a42cc698.js → label-wrapper.vue_vue_type_style_index_0_lang-939ad369.js} +3 -3
- package/{link-widget-0d54300a.js → link-widget-5ebccd60.js} +16 -16
- package/{ltable-col-widget-b4a3cb0d.js → ltable-col-widget-d10158b4.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-89097b12.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-ee80850c.js} +10 -10
- package/{ltable-widget-48a55242.js → ltable-widget-60068113.js} +5 -5
- package/{menu-widget-784f8dff.js → menu-widget-7838a4d5.js} +14 -14
- package/{model-widget-b55d8baf.js → model-widget-4d495b31.js} +13 -13
- package/{multirow-e1813996.js → multirow-9e97464f.js} +29 -29
- package/{multirow-widget-c78632c7.js → multirow-widget-43e57f7b.js} +23 -23
- package/package.json +1 -1
- package/{pagination-widget-ebc93144.js → pagination-widget-ba1b2def.js} +13 -13
- package/{picture-upload-widget-c5dc84a1.js → picture-upload-widget-e6003330.js} +16 -16
- package/{progress-widget-6b32f8a8.js → progress-widget-d995b063.js} +14 -14
- package/{propresult-55603c2b.js → propresult-9ec82c15.js} +1 -1
- package/{radio-widget-9cf28fa1.js → radio-widget-124a704e.js} +15 -15
- package/{range-widget-71e3a233.js → range-widget-ca5f56d7.js} +16 -16
- package/{rate-widget-1c1a16e5.js → rate-widget-57b26843.js} +15 -15
- package/render.es.js +31 -31
- package/render.umd.js +162 -162
- package/{result-widget-a4962a66.js → result-widget-dbcbe47c.js} +14 -14
- package/{rich-editor-widget-d9f4c1d8.js → rich-editor-widget-618b3691.js} +22 -22
- package/{router-widget-9ed1e869.js → router-widget-840d5974.js} +13 -13
- package/{select-widget-17298165.js → select-widget-cccbce49.js} +17 -16
- package/{sfc-36a55424.js → sfc-677e36dd.js} +8 -8
- package/share-field-35b4e271.js +763 -0
- package/{share-file-6a52d0a0.js → share-file-75c25997.js} +16 -16
- package/{slider-widget-94ccdbe2.js → slider-widget-52b49e53.js} +15 -15
- package/{slot-c8d71200.js → slot-55f5b1ee.js} +3 -3
- package/{static-text-widget-0516e763.js → static-text-widget-161303bd.js} +14 -14
- package/{steps-widget-898e0afc.js → steps-widget-aa543027.js} +13 -13
- package/{subMenu-widget-710b6ac4.js → subMenu-widget-46b4ca58.js} +8 -8
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-cb2717a8.js → subMenu-widget.vue_vue_type_script_setup_true_lang-c3ad326a.js} +3 -3
- package/{switch-widget-ab9898a6.js → switch-widget-1a18ff09.js} +15 -15
- package/{tab-pane-widget-b6c54a7e.js → tab-pane-widget-db4922e3.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-51053813.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-8467ebfd.js} +5 -5
- package/table-col-widget-ab6561e5.js +22 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-df28bc98.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-948eddf4.js} +6 -6
- package/{table-widget-e7717cb7.js → table-widget-73f99c30.js} +15 -15
- package/{tabs-widget-e4b7f212.js → tabs-widget-c97d1804.js} +8 -8
- package/{tag-widget-bc34c1d2.js → tag-widget-b75bb274.js} +16 -16
- package/{text-widget-7415d16b.js → text-widget-79cf7e4d.js} +16 -16
- package/{textarea-widget-197396f2.js → textarea-widget-10104e6f.js} +15 -15
- package/{time-picker-range-widget-12912d46.js → time-picker-range-widget-1d281025.js} +15 -15
- package/{time-picker-widget-710cdc20.js → time-picker-widget-4f5f5c29.js} +15 -15
- package/{time-select-widget-b182bca8.js → time-select-widget-2e4427f4.js} +15 -15
- package/{tmpl-widget-21dd1c11.js → tmpl-widget-5ac91def.js} +14 -14
- package/{tree-select-widget-56542628.js → tree-select-widget-acedfac8.js} +15 -15
- package/{tree-widget-21c99793.js → tree-widget-af8f6a8c.js} +13 -13
- package/{uuid-ed2f919d.js → uuid-7ce48eb1.js} +1 -1
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7a5e211c.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-8d10af8d.js} +21 -21
- package/{wrapper-widget-1bfb1148.js → wrapper-widget-0a8f2274.js} +6 -6
- package/default-slot-widget-fe92c1fb.js +0 -26
- package/feedback-widget-7b8c732b.js +0 -26
- package/iframe-widget-5f99f245.js +0 -80
- package/share-field-64192ba9.js +0 -763
- package/table-col-widget-8c7b4ba0.js +0 -22
package/share-field-64192ba9.js
DELETED
|
@@ -1,763 +0,0 @@
|
|
|
1
|
-
var dn = Object.defineProperty;
|
|
2
|
-
var gn = (t, u, g) => u in t ? dn(t, u, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[u] = g;
|
|
3
|
-
var Je = (t, u, g) => (gn(t, typeof u != "symbol" ? u + "" : u, g), g);
|
|
4
|
-
import { onMounted as Ze, nextTick as we, onActivated as hn, onErrorCaptured as pn, isRef as et, watch as w, reactive as On, ref as le, computed as xe, onBeforeUnmount as Vn, inject as Cn, toRefs as yn } from "vue";
|
|
5
|
-
import { b as Se, e as tt, o as Q, c as ee, r as En, F as bn, t as ge, f as nt, j as Rn, l as Mn, z as Z, d as se, w as xn, L as me } from "./enum-type-191bd46c.js";
|
|
6
|
-
import { p as ze, b as ot, g as _n, f as ve, a as Sn } from "./multirow-e1813996.js";
|
|
7
|
-
import { u as rt } from "./icon-e9532b43.js";
|
|
8
|
-
import { f as j, l as de, m as Dn, n as Qe, g as $, b as Pn, d as Wn } from "./expression-d5b80f77.js";
|
|
9
|
-
import { b as st, d as De, B as U, P as ut, c as at, e as Ln, a as Nn } from "./baseImp-6b6bb628.js";
|
|
10
|
-
import { F as Bn } from "./slot-c8d71200.js";
|
|
11
|
-
import { c as Pe, t as ct, l as Tn } from "./uuid-ed2f919d.js";
|
|
12
|
-
import { f as Fn, d as In, h as _e, e as $n } from "./index-b2b4d140.js";
|
|
13
|
-
import { W as A, c as K } from "./enum-type-b23cb43d.js";
|
|
14
|
-
function jn() {
|
|
15
|
-
return {
|
|
16
|
-
onMountedOrActivated: (g) => {
|
|
17
|
-
let _ = !1;
|
|
18
|
-
Ze(() => {
|
|
19
|
-
g(), we(() => {
|
|
20
|
-
_ = !0;
|
|
21
|
-
});
|
|
22
|
-
}), hn(() => {
|
|
23
|
-
_ && g();
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
onCompErrorCaptured: () => {
|
|
27
|
-
pn((g) => (console.log(g), !1));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function An(t, u) {
|
|
32
|
-
const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = st(t, u), P = (S) => g(S);
|
|
33
|
-
return {
|
|
34
|
-
existFunc: P,
|
|
35
|
-
handleFunc: (S, W) => {
|
|
36
|
-
if (Se(S)) {
|
|
37
|
-
var L = P(String(S));
|
|
38
|
-
return De(L, W);
|
|
39
|
-
} else {
|
|
40
|
-
var L = _(Pe(S));
|
|
41
|
-
return De(L, W);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
class We {
|
|
47
|
-
constructor(u) {
|
|
48
|
-
Je(this, "refList", {});
|
|
49
|
-
u && (this.refList = u);
|
|
50
|
-
}
|
|
51
|
-
initRefList() {
|
|
52
|
-
this.refList || (this.refList = {});
|
|
53
|
-
}
|
|
54
|
-
getWidgetRef(u) {
|
|
55
|
-
if (u)
|
|
56
|
-
return this.initRefList(), this.refList[u];
|
|
57
|
-
}
|
|
58
|
-
setWidgetRef(u, g) {
|
|
59
|
-
u && (this.initRefList(), this.refList[u] = g);
|
|
60
|
-
}
|
|
61
|
-
removeWidgetRef(u) {
|
|
62
|
-
u && this.refList && delete this.refList[u.toString()];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function he(t) {
|
|
66
|
-
t || (t = {});
|
|
67
|
-
const u = new We(t), { instance: g } = rt(), _ = (v) => u.getWidgetRef(v == null ? void 0 : v.toString()), P = (v, h, V) => {
|
|
68
|
-
var C = [], D = [];
|
|
69
|
-
let r = _(v);
|
|
70
|
-
return r && C.push(r), C == null || C.forEach((f) => {
|
|
71
|
-
var n = S(f, h, V);
|
|
72
|
-
n && D.push(n);
|
|
73
|
-
}), D;
|
|
74
|
-
}, i = (v, h) => {
|
|
75
|
-
var V;
|
|
76
|
-
return (V = v == null ? void 0 : v.exposed) == null ? void 0 : V[h.toString()];
|
|
77
|
-
}, S = (v, h, V) => {
|
|
78
|
-
var C = i(v, h);
|
|
79
|
-
if (C) {
|
|
80
|
-
var D = [];
|
|
81
|
-
return V && (D = Object.values(V)), C(...D);
|
|
82
|
-
}
|
|
83
|
-
}, W = (v, h, V) => {
|
|
84
|
-
var C = [];
|
|
85
|
-
if (v) {
|
|
86
|
-
var D = Pe(ct(v, !0));
|
|
87
|
-
D == null || D.forEach((r) => {
|
|
88
|
-
var f = P(r, h, V);
|
|
89
|
-
tt(f) || C.push(f);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return Array.isArray(v) ? C : C == null ? void 0 : C[0];
|
|
93
|
-
}, L = (v, h) => {
|
|
94
|
-
let V = Q(t);
|
|
95
|
-
W(V, v, h);
|
|
96
|
-
}, p = (v, h) => {
|
|
97
|
-
var n, d, c;
|
|
98
|
-
const V = (d = (n = h || g) == null ? void 0 : n.exposed) == null ? void 0 : d.getField();
|
|
99
|
-
var C = ze(V == null ? void 0 : V.id);
|
|
100
|
-
const D = (s) => (s == null ? void 0 : s.id) === v, r = (s) => {
|
|
101
|
-
var R;
|
|
102
|
-
var l = ze(s == null ? void 0 : s.id);
|
|
103
|
-
return (C == null ? void 0 : C.groupName) === (l == null ? void 0 : l.groupName) && ((l == null ? void 0 : l.id) === v || ((R = s == null ? void 0 : s._source) == null ? void 0 : R.id) === v);
|
|
104
|
-
}, f = (c = Q(u.refList)) == null ? void 0 : c.find((s) => {
|
|
105
|
-
var R, T;
|
|
106
|
-
try {
|
|
107
|
-
const F = (T = (R = u.refList[s]) == null ? void 0 : R.exposed) == null ? void 0 : T.getField();
|
|
108
|
-
var l = D(F);
|
|
109
|
-
return !l && (C != null && C.groupName) && (l = r(F)), l;
|
|
110
|
-
} catch {
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
if (f)
|
|
115
|
-
return _(f);
|
|
116
|
-
}, O = (v) => {
|
|
117
|
-
if (v) {
|
|
118
|
-
let h = v;
|
|
119
|
-
u == null || u.setWidgetRef(h, g);
|
|
120
|
-
}
|
|
121
|
-
}, b = (v) => {
|
|
122
|
-
if (v) {
|
|
123
|
-
let h = v;
|
|
124
|
-
u == null || u.removeWidgetRef(h);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
return {
|
|
128
|
-
findWidgetAndCall: P,
|
|
129
|
-
getWidgetRef: _,
|
|
130
|
-
callWidgetsExposed: W,
|
|
131
|
-
callRefFunc: S,
|
|
132
|
-
existRefFunc: i,
|
|
133
|
-
setAllRefList: L,
|
|
134
|
-
findRefById: p,
|
|
135
|
-
findRefByName: _,
|
|
136
|
-
changeRegisterToRefList: (v, h) => {
|
|
137
|
-
v && (O(v), b(h));
|
|
138
|
-
},
|
|
139
|
-
registerToRefList: O,
|
|
140
|
-
unregisterFromRefList: b
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
const kn = (t, u, g, _) => {
|
|
144
|
-
const P = new We(t), { callRefFunc: i } = he(t), { parseGroupId: S } = ot();
|
|
145
|
-
if (!t || t.length <= 0 || !u)
|
|
146
|
-
return;
|
|
147
|
-
const W = () => {
|
|
148
|
-
var r, f;
|
|
149
|
-
return (f = (r = Q(t)) == null ? void 0 : r.map((n) => i(t == null ? void 0 : t[n], A.getField))) == null ? void 0 : f.filter((n) => !!n);
|
|
150
|
-
}, L = (r) => {
|
|
151
|
-
var c;
|
|
152
|
-
const f = (c = W()) == null ? void 0 : c.find((s) => (s == null ? void 0 : s.id) === r);
|
|
153
|
-
if (!f)
|
|
154
|
-
return;
|
|
155
|
-
const n = U.getName(f), d = P.getWidgetRef(n);
|
|
156
|
-
if (d)
|
|
157
|
-
return { ref: d, name: n, id: f == null ? void 0 : f.id };
|
|
158
|
-
}, p = (r, f) => {
|
|
159
|
-
if (!ee(f))
|
|
160
|
-
return;
|
|
161
|
-
const n = U.getName(r), d = P.getWidgetRef(n);
|
|
162
|
-
if (d) {
|
|
163
|
-
const c = U.getOptions(r, j.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
|
|
164
|
-
if (ee(c))
|
|
165
|
-
if (et(c)) {
|
|
166
|
-
let s = w(() => c.value, (l) => {
|
|
167
|
-
s == null || s(), i(d, A.setValue, { newValue: l });
|
|
168
|
-
});
|
|
169
|
-
} else
|
|
170
|
-
i(d, A.setValue, { newValue: c });
|
|
171
|
-
}
|
|
172
|
-
}, O = (r, f) => {
|
|
173
|
-
const n = L(r);
|
|
174
|
-
if (!n)
|
|
175
|
-
return;
|
|
176
|
-
const d = n.name, c = i(n.ref, A.getValue), s = i(n.ref, A.getCheckedItems), l = {};
|
|
177
|
-
return l[d] = c, c !== void 0 && !Rn(s) && !f && (l[`${d}${de.checkedOptions}`] = s), l;
|
|
178
|
-
}, b = (r, f) => {
|
|
179
|
-
var d;
|
|
180
|
-
var n = [];
|
|
181
|
-
if ((d = W()) == null || d.forEach((c) => {
|
|
182
|
-
if (!c)
|
|
183
|
-
return;
|
|
184
|
-
const s = c == null ? void 0 : c.id;
|
|
185
|
-
var l = s === r;
|
|
186
|
-
const R = S(s), T = (R == null ? void 0 : R.id) === r, F = (R == null ? void 0 : R.groupName) === f;
|
|
187
|
-
return l || T && (F || !f) ? (n.push(c), !0) : !1;
|
|
188
|
-
}), !(!n || n.length <= 0))
|
|
189
|
-
return n == null ? void 0 : n.map((c) => {
|
|
190
|
-
var s;
|
|
191
|
-
return {
|
|
192
|
-
id: c == null ? void 0 : c.id,
|
|
193
|
-
name: (s = c == null ? void 0 : c._source) == null ? void 0 : s.name,
|
|
194
|
-
source: c == null ? void 0 : c._source
|
|
195
|
-
};
|
|
196
|
-
});
|
|
197
|
-
}, N = (r, f) => {
|
|
198
|
-
var n = [];
|
|
199
|
-
if (!r || (r == null ? void 0 : r.length) <= 0)
|
|
200
|
-
return n;
|
|
201
|
-
const d = S(u), c = d == null ? void 0 : d.groupName;
|
|
202
|
-
return f === ve.Inner2Outer ? r == null || r.forEach((s) => {
|
|
203
|
-
var l = b(s);
|
|
204
|
-
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
205
|
-
}) : r == null || r.forEach((s) => {
|
|
206
|
-
var l = b(s, c);
|
|
207
|
-
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
208
|
-
}), n;
|
|
209
|
-
}, v = (r, f) => {
|
|
210
|
-
let n = {};
|
|
211
|
-
if (!r || r.length <= 0)
|
|
212
|
-
return n;
|
|
213
|
-
if (f === ve.Inner2Outer) {
|
|
214
|
-
var d = En(r, (c) => {
|
|
215
|
-
var s;
|
|
216
|
-
return (s = c.source) == null ? void 0 : s.id;
|
|
217
|
-
});
|
|
218
|
-
d == null || d.forEach((c) => {
|
|
219
|
-
var R;
|
|
220
|
-
const s = c.group[0], l = [];
|
|
221
|
-
(R = c == null ? void 0 : c.children) == null || R.forEach((T) => {
|
|
222
|
-
const F = O(T == null ? void 0 : T.id, !0);
|
|
223
|
-
if (ee(F)) {
|
|
224
|
-
var X = Object.values(Pe(F));
|
|
225
|
-
l.push(...X);
|
|
226
|
-
}
|
|
227
|
-
}), s && (n = Object.assign(n, { [s]: l }));
|
|
228
|
-
});
|
|
229
|
-
} else
|
|
230
|
-
r.forEach((c) => {
|
|
231
|
-
const s = O(c == null ? void 0 : c.id);
|
|
232
|
-
ee(s) && (n = Object.assign(n, s));
|
|
233
|
-
});
|
|
234
|
-
return n;
|
|
235
|
-
}, h = (r) => {
|
|
236
|
-
var f = {};
|
|
237
|
-
return r == null || r.forEach((n) => {
|
|
238
|
-
var d;
|
|
239
|
-
n != null && n.source && (n != null && n.id) && (f[(d = n == null ? void 0 : n.source) == null ? void 0 : d.id] = n == null ? void 0 : n.id);
|
|
240
|
-
}), f;
|
|
241
|
-
}, V = (r, f, n) => {
|
|
242
|
-
if (n === ve.Inner2Inner) {
|
|
243
|
-
const l = bn(f), { updateFomula: R } = at(), { buildVariable: T } = Ln();
|
|
244
|
-
var d = h(r);
|
|
245
|
-
if (ee(d)) {
|
|
246
|
-
var c = U.getOrgOption(f, j.defaultValue), s = R(ge(c), d, (F, X) => {
|
|
247
|
-
var Y = d[F];
|
|
248
|
-
return tt(Y) ? T(F) : T(Y);
|
|
249
|
-
});
|
|
250
|
-
return U.setOrgOption(l, j.defaultValue, nt(s)), l;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
return f;
|
|
254
|
-
}, C = (r) => {
|
|
255
|
-
const f = r == null ? void 0 : r.id;
|
|
256
|
-
var n = U.getOrgOption(r, j.defaultValue);
|
|
257
|
-
if (n == null)
|
|
258
|
-
return;
|
|
259
|
-
const d = _n(u, f);
|
|
260
|
-
if (d === ve.DiffInner)
|
|
261
|
-
return;
|
|
262
|
-
var c = ut.getFormulaRelatedField(n);
|
|
263
|
-
if (!c || c.length <= 0)
|
|
264
|
-
return;
|
|
265
|
-
var s = N(c, d);
|
|
266
|
-
if (!(s != null && s.some((R) => R.id === u)))
|
|
267
|
-
return;
|
|
268
|
-
const l = v(s, d);
|
|
269
|
-
p(V(s, r, d), l);
|
|
270
|
-
};
|
|
271
|
-
(() => {
|
|
272
|
-
var r;
|
|
273
|
-
(r = W()) == null || r.forEach((f) => {
|
|
274
|
-
C(f);
|
|
275
|
-
});
|
|
276
|
-
})();
|
|
277
|
-
}, Hn = (t, u, g, _, P) => {
|
|
278
|
-
var N;
|
|
279
|
-
if (P || !ee(g))
|
|
280
|
-
return;
|
|
281
|
-
const { parseGroupId: i } = ot();
|
|
282
|
-
var S = i(u), W = S == null ? void 0 : S.groupName;
|
|
283
|
-
const { callRefFunc: L } = he(t), p = (v, h) => {
|
|
284
|
-
var n, d, c;
|
|
285
|
-
const V = (d = (n = Q(t)) == null ? void 0 : n.map((s) => L(t == null ? void 0 : t[s], A.getField))) == null ? void 0 : d.filter((s) => !!s), C = (c = Fn(V, (s) => {
|
|
286
|
-
var l = i(s == null ? void 0 : s.id);
|
|
287
|
-
return (!W || (l == null ? void 0 : l.groupName) === W) && (l == null ? void 0 : l.id) === v;
|
|
288
|
-
})) == null ? void 0 : c[0];
|
|
289
|
-
if (!C)
|
|
290
|
-
return;
|
|
291
|
-
const D = U.getName(C), f = new We(t).getWidgetRef(D);
|
|
292
|
-
f && (h == null || h(f));
|
|
293
|
-
}, O = ct(_ == null ? void 0 : _.newValue, !0), b = (N = Q(g)) == null ? void 0 : N.filter((v) => O == null ? void 0 : O.includes(v));
|
|
294
|
-
!b || b.length <= 0 || b == null || b.forEach((v) => {
|
|
295
|
-
var V, C;
|
|
296
|
-
const h = (V = g == null ? void 0 : g[v]) == null ? void 0 : V.result;
|
|
297
|
-
(C = Q(h)) == null || C.forEach((D) => {
|
|
298
|
-
var f;
|
|
299
|
-
const r = h == null ? void 0 : h[D];
|
|
300
|
-
(f = r == null ? void 0 : r.ids) == null || f.forEach((n) => {
|
|
301
|
-
p(n, (d) => {
|
|
302
|
-
L(d, r == null ? void 0 : r.event, r == null ? void 0 : r.args);
|
|
303
|
-
});
|
|
304
|
-
});
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
};
|
|
308
|
-
function it(t, u) {
|
|
309
|
-
var g;
|
|
310
|
-
return (g = t == null ? void 0 : t.classList) != null && g.contains(u) ? t : t != null && t.parentElement ? it(t == null ? void 0 : t.parentElement, u) : null;
|
|
311
|
-
}
|
|
312
|
-
function Kn() {
|
|
313
|
-
const t = (p) => {
|
|
314
|
-
if (p)
|
|
315
|
-
return p != null && p.ref ? p == null ? void 0 : p.ref : p;
|
|
316
|
-
}, u = (p) => {
|
|
317
|
-
var O, b;
|
|
318
|
-
try {
|
|
319
|
-
(b = (O = t(p)) == null ? void 0 : O.focus) == null || b.call(O);
|
|
320
|
-
} catch (N) {
|
|
321
|
-
console.log(N);
|
|
322
|
-
}
|
|
323
|
-
}, g = (p) => {
|
|
324
|
-
var O, b;
|
|
325
|
-
try {
|
|
326
|
-
(b = (O = t(p)) == null ? void 0 : O.blur) == null || b.call(O);
|
|
327
|
-
} catch (N) {
|
|
328
|
-
console.log(N);
|
|
329
|
-
}
|
|
330
|
-
}, _ = (p) => {
|
|
331
|
-
var O;
|
|
332
|
-
return (O = t(p)) == null ? void 0 : O.selectionStart;
|
|
333
|
-
}, P = (p) => {
|
|
334
|
-
var O;
|
|
335
|
-
return (O = t(p)) == null ? void 0 : O.selectionEnd;
|
|
336
|
-
}, i = (p, O) => {
|
|
337
|
-
var b;
|
|
338
|
-
return (b = t(p)) == null ? void 0 : b.setSelectionRange(O, O);
|
|
339
|
-
}, S = (p, O) => {
|
|
340
|
-
u(p), i(p, O);
|
|
341
|
-
};
|
|
342
|
-
return {
|
|
343
|
-
getSelectionStart: _,
|
|
344
|
-
getSelectionEnd: P,
|
|
345
|
-
setSelectionStart: i,
|
|
346
|
-
blur: g,
|
|
347
|
-
focus: u,
|
|
348
|
-
setMousePos: S,
|
|
349
|
-
getMousePos: (p) => _(p),
|
|
350
|
-
insertOnMousePos: (p, O, b) => {
|
|
351
|
-
const N = _(p), v = P(p), h = Dn(b, O, N, v);
|
|
352
|
-
return we(() => {
|
|
353
|
-
S(p, N + (O == null ? void 0 : O.length));
|
|
354
|
-
}), h;
|
|
355
|
-
}
|
|
356
|
-
};
|
|
357
|
-
}
|
|
358
|
-
const Xe = (t) => {
|
|
359
|
-
var g;
|
|
360
|
-
const { getFormulaFields: u } = at();
|
|
361
|
-
return ((g = u(ge(t))) == null ? void 0 : g.length) > 0;
|
|
362
|
-
}, z = (t) => {
|
|
363
|
-
const u = t.type;
|
|
364
|
-
return ![K.fileUpload, K.pictureUpload].includes(u) && t.formItemFlag || [K.form, K.dialog].includes(u);
|
|
365
|
-
}, Ye = (t) => {
|
|
366
|
-
const u = t.type;
|
|
367
|
-
return [K.treeSelect, K.cascader, K.select, K.checkbox, K.radio].includes(u);
|
|
368
|
-
};
|
|
369
|
-
function to(t) {
|
|
370
|
-
const u = 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, S = t == null ? void 0 : t.designer, W = S == null ? void 0 : S.pageConfig, { formRefList: L, globalRefList: p, globalConfig: O, globalFormName: b, globalDataModel: N, rowScope: v } = Bn.globalInject();
|
|
371
|
-
let h = On(N || {});
|
|
372
|
-
const V = he(p), C = he(L), D = () => Z(h), r = () => v, f = () => i, n = {
|
|
373
|
-
instance: {
|
|
374
|
-
exposed: {
|
|
375
|
-
getFormData: !u && Xe(i) ? D : null,
|
|
376
|
-
findRefByName: V.getWidgetRef,
|
|
377
|
-
getField: f,
|
|
378
|
-
getRowScope: r
|
|
379
|
-
}
|
|
380
|
-
},
|
|
381
|
-
designState: u,
|
|
382
|
-
pageConfig: W,
|
|
383
|
-
formData: !u && Xe(i) ? h : {},
|
|
384
|
-
globalConfig: O
|
|
385
|
-
}, d = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { on$: c, dispatch: s, emit$: l } = Sn(), { instance: R } = rt(), { onCompErrorCaptured: T } = jn(), { existFunc: F } = An({ options: i == null ? void 0 : i.options }, n), { attrs: X, extendAttrs: Y, events: k, slots: Le, rules: Ne, fieldName: M, buildRules: ft, clearRules: lt, disableChangeValidate: mt, enableChangeValidate: vt, optionItems: ue, filterOptionItems: dt, getCheckedOptionText: gt, getCheckedOptionValues: ht, getCheckedOptionLabels: pt, getCheckedOptionItems: Ot, activeOptionItems: Vt, activeOptionItem: Ct, activeOptionItemIndex: yt, setOptionItems: Be, setWidgetOption: te, getWidgetOption: pe, setFieldEnable: Et, hasFieldOptions: bt, getFieldOptions: ne, setFieldOptions: Rt, computedDefaultValue: ae, hasDefaultValue: ce, singleOption: Mt, watchOption: xt, addCssClass: _t, removeCssClass: St } = st(i, n, d, R), { isIdClass: Dt, getIdByIdClass: Pt } = In(i), { getOneSchemaData: Wt, getSchemaDataObject: Lt, getSchemaDatas: Nt } = Nn(n), oe = Kn();
|
|
386
|
-
let Oe = null, x = le();
|
|
387
|
-
const q = le(), Bt = () => M.value, Te = () => `${i == null ? void 0 : i.id}-${Tn()}`, Ve = le(Te()), Fe = () => {
|
|
388
|
-
Ve.value = Te();
|
|
389
|
-
}, Tt = xe({
|
|
390
|
-
get: () => {
|
|
391
|
-
if (Se(x.value)) {
|
|
392
|
-
var e = Number(x.value);
|
|
393
|
-
return isNaN(e) ? void 0 : (x.value = e, e);
|
|
394
|
-
}
|
|
395
|
-
return x.value;
|
|
396
|
-
},
|
|
397
|
-
set: (e) => {
|
|
398
|
-
x.value = e;
|
|
399
|
-
}
|
|
400
|
-
}), Ft = xe({
|
|
401
|
-
get: () => {
|
|
402
|
-
if (Se(x.value)) {
|
|
403
|
-
var e = nt(x.value);
|
|
404
|
-
Mn(e) && (x.value = e);
|
|
405
|
-
}
|
|
406
|
-
return x.value;
|
|
407
|
-
},
|
|
408
|
-
set: (e) => {
|
|
409
|
-
x.value = e;
|
|
410
|
-
}
|
|
411
|
-
}), It = (e) => {
|
|
412
|
-
var a, m;
|
|
413
|
-
var o = (m = (a = V.getWidgetRef(M.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.loadOptionItems;
|
|
414
|
-
if (o !== void 0) {
|
|
415
|
-
o == null || o(e);
|
|
416
|
-
return;
|
|
417
|
-
}
|
|
418
|
-
Be(e);
|
|
419
|
-
}, Ce = (e) => {
|
|
420
|
-
var o, a, m;
|
|
421
|
-
return (m = (a = (o = V.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : a.getCheckedItems) == null ? void 0 : m.call(a, e);
|
|
422
|
-
}, Ie = (e) => {
|
|
423
|
-
var o, a, m;
|
|
424
|
-
return (m = (a = (o = V.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : a.getCheckedLabels) == null ? void 0 : m.call(a, e);
|
|
425
|
-
}, $t = (e) => {
|
|
426
|
-
var o, a, m;
|
|
427
|
-
return (m = (a = (o = V.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : a.getCheckedText) == null ? void 0 : m.call(a, e);
|
|
428
|
-
}, ye = () => {
|
|
429
|
-
var y;
|
|
430
|
-
const e = (y = Y.value) == null ? void 0 : y.withAttachData;
|
|
431
|
-
if (!Ye(i) || e === !1)
|
|
432
|
-
return;
|
|
433
|
-
const o = x.value, a = Ie(o), m = $t(o);
|
|
434
|
-
var E = Z(Ce(o));
|
|
435
|
-
$e(a, E, m);
|
|
436
|
-
}, $e = (e, o, a) => {
|
|
437
|
-
var m = {};
|
|
438
|
-
if (e != null) {
|
|
439
|
-
let E = ne("textName", !1);
|
|
440
|
-
[`${M.value}${de.optionText}`, E].forEach((y) => {
|
|
441
|
-
y && m[y] === void 0 && (m[y] = e);
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
if (o != null && ge(o) !== ge(x.value)) {
|
|
445
|
-
let E = ne("optionName", !1);
|
|
446
|
-
[`${M.value}${de.checkedOptions}`, E].forEach((y) => {
|
|
447
|
-
y && m[y] === void 0 && (m[y] = o);
|
|
448
|
-
});
|
|
449
|
-
}
|
|
450
|
-
if (a != null) {
|
|
451
|
-
let E = ne("labelName", !1);
|
|
452
|
-
e != a && [`${M.value}${de.optionLabelName}`, E].forEach((y) => {
|
|
453
|
-
y && m[y] === void 0 && (m[y] = a);
|
|
454
|
-
});
|
|
455
|
-
}
|
|
456
|
-
se(h, Z(m));
|
|
457
|
-
}, G = (e) => {
|
|
458
|
-
if (z(i)) {
|
|
459
|
-
ye();
|
|
460
|
-
var o = { [M.value]: e };
|
|
461
|
-
se(h, o);
|
|
462
|
-
}
|
|
463
|
-
}, re = (e) => {
|
|
464
|
-
u || G(e);
|
|
465
|
-
}, je = (e) => ne(e, !1), Ae = () => {
|
|
466
|
-
var e = yn(h);
|
|
467
|
-
x = ut.get(e, M.value);
|
|
468
|
-
}, ke = (e) => {
|
|
469
|
-
Oe = Z(e);
|
|
470
|
-
}, jt = () => {
|
|
471
|
-
u || P && P(J());
|
|
472
|
-
}, At = () => {
|
|
473
|
-
ce() && me(ae()).then((e) => {
|
|
474
|
-
G(e), Ae();
|
|
475
|
-
});
|
|
476
|
-
}, Ee = (e, o) => {
|
|
477
|
-
if (!z(i))
|
|
478
|
-
return;
|
|
479
|
-
l(j.fieldValueChanged, { newValue: e, oldValue: o });
|
|
480
|
-
const a = { fieldId: i.id, fieldName: M.value, newValue: e, oldValue: o };
|
|
481
|
-
s(b, j.fieldChange, a, R);
|
|
482
|
-
}, kt = (e) => F(e), be = (e, o) => De(pe(e), o), Ht = (e) => {
|
|
483
|
-
re(e), Ue(), be(j.onInput, { value: e });
|
|
484
|
-
}, Kt = (e, o) => {
|
|
485
|
-
var a, m, E;
|
|
486
|
-
return (E = (m = (a = V.getWidgetRef(M.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null ? void 0 : E.call(m, e, o);
|
|
487
|
-
}, Ut = (...e) => {
|
|
488
|
-
var E, y, B;
|
|
489
|
-
let a = ((E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) != null ? (B = (y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) == null ? void 0 : B.value : e == null ? void 0 : e[0];
|
|
490
|
-
a = Z(a);
|
|
491
|
-
var m = Kt(a, Oe);
|
|
492
|
-
m != null ? re(m) : re(a), Ee(a, Oe), Ue(), ke(a);
|
|
493
|
-
}, qt = (e = !0) => {
|
|
494
|
-
te($.readonly, e);
|
|
495
|
-
}, Gt = (e = !0) => {
|
|
496
|
-
te($.disabled, e);
|
|
497
|
-
}, Jt = (e = !0) => {
|
|
498
|
-
te($.hidden, e), e ? Ge() : fe();
|
|
499
|
-
}, zt = (e = !0) => {
|
|
500
|
-
Et($.required, e), fe();
|
|
501
|
-
}, Qt = (e) => {
|
|
502
|
-
te($.label, e);
|
|
503
|
-
}, J = () => x == null ? void 0 : x.value, He = (e) => {
|
|
504
|
-
x.value = e;
|
|
505
|
-
}, ie = (e) => {
|
|
506
|
-
let o = Z(J());
|
|
507
|
-
if (He(e), !z(i))
|
|
508
|
-
return;
|
|
509
|
-
const a = J();
|
|
510
|
-
o !== a && (re(a), Ee(e, o));
|
|
511
|
-
}, Xt = () => {
|
|
512
|
-
ce() ? me(ae()).then((e) => {
|
|
513
|
-
G(e);
|
|
514
|
-
}) : G(null), _ == null || _();
|
|
515
|
-
}, Yt = (e) => {
|
|
516
|
-
const o = J(), a = oe.insertOnMousePos(q.value, e, o);
|
|
517
|
-
ie(a);
|
|
518
|
-
}, Zt = (e, o) => {
|
|
519
|
-
w(() => x == null ? void 0 : x.value, (a, m) => {
|
|
520
|
-
e == null || e({ id: i.id, name: M.value, newValue: a, oldValue: m });
|
|
521
|
-
}, o);
|
|
522
|
-
}, wt = (e) => {
|
|
523
|
-
var y;
|
|
524
|
-
e.preventDefault();
|
|
525
|
-
const o = (B) => {
|
|
526
|
-
var H;
|
|
527
|
-
const I = (H = Array.from(B.classList)) == null ? void 0 : H.find((Re) => Dt(Re));
|
|
528
|
-
return I ? Pt(I) : "";
|
|
529
|
-
}, a = document.activeElement;
|
|
530
|
-
if (!a)
|
|
531
|
-
return;
|
|
532
|
-
const m = document.getElementsByClassName(Qe.formItemTarget);
|
|
533
|
-
for (var E = 0; E < m.length; E++) {
|
|
534
|
-
const B = m[E], I = it(a, Qe.formItemTarget);
|
|
535
|
-
if (!I)
|
|
536
|
-
continue;
|
|
537
|
-
const H = o(B), Re = o(I);
|
|
538
|
-
if (H === Re) {
|
|
539
|
-
if (E === m.length - 1)
|
|
540
|
-
return;
|
|
541
|
-
const ln = m[E + 1], mn = o(ln), Me = V.findRefById(mn, R);
|
|
542
|
-
try {
|
|
543
|
-
(y = Me == null ? void 0 : Me.exposed) == null || y.focus();
|
|
544
|
-
} catch (vn) {
|
|
545
|
-
console.log(vn);
|
|
546
|
-
}
|
|
547
|
-
}
|
|
548
|
-
}
|
|
549
|
-
};
|
|
550
|
-
let en = () => {
|
|
551
|
-
var B;
|
|
552
|
-
let e = {
|
|
553
|
-
componentName: M.value,
|
|
554
|
-
//用于组件事件emitter发射与接收处理
|
|
555
|
-
refList: L,
|
|
556
|
-
allRefList: p,
|
|
557
|
-
changeRegisterToRefList: (I, H) => {
|
|
558
|
-
V.changeRegisterToRefList(I, H), C.changeRegisterToRefList(I, H);
|
|
559
|
-
},
|
|
560
|
-
getField: f,
|
|
561
|
-
getFormData: D,
|
|
562
|
-
getValue: J,
|
|
563
|
-
setValue: He,
|
|
564
|
-
emit$: l,
|
|
565
|
-
findRefByName: V.getWidgetRef,
|
|
566
|
-
findRefById: V.findRefById,
|
|
567
|
-
callRefFunc: V.callRefFunc,
|
|
568
|
-
getWidgetOption: pe,
|
|
569
|
-
setWidgetOption: te,
|
|
570
|
-
refreshKey: Fe,
|
|
571
|
-
getRowScope: r,
|
|
572
|
-
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
573
|
-
getOneSchemaData: Wt,
|
|
574
|
-
getSchemaDatas: Nt,
|
|
575
|
-
getSchemaDataObject: Lt,
|
|
576
|
-
addCssClass: _t,
|
|
577
|
-
removeCssClass: St
|
|
578
|
-
}, o = {
|
|
579
|
-
resetField: Xt,
|
|
580
|
-
getValue: J,
|
|
581
|
-
setValue: ie,
|
|
582
|
-
refreshDefaultValue: At,
|
|
583
|
-
insertOnMousePos: Yt,
|
|
584
|
-
disableChangeValidate: mt,
|
|
585
|
-
enableChangeValidate: vt,
|
|
586
|
-
focus: () => {
|
|
587
|
-
oe.focus(q.value);
|
|
588
|
-
},
|
|
589
|
-
blur: () => {
|
|
590
|
-
oe.blur(q.value);
|
|
591
|
-
},
|
|
592
|
-
getMousePos: () => {
|
|
593
|
-
oe.getMousePos(q.value);
|
|
594
|
-
},
|
|
595
|
-
setMousePos: (I) => {
|
|
596
|
-
oe.setMousePos(q.value, I);
|
|
597
|
-
}
|
|
598
|
-
}, a = {
|
|
599
|
-
loadOptionItems: It,
|
|
600
|
-
getCheckedItems: Ce,
|
|
601
|
-
getCheckedLabels: Ie
|
|
602
|
-
}, m = {
|
|
603
|
-
[$.required]: { name: A.setRequired, fn: zt },
|
|
604
|
-
[$.label]: { name: A.setLabel, fn: Qt },
|
|
605
|
-
[$.hidden]: { name: A.setHidden, fn: Jt },
|
|
606
|
-
[$.disabled]: { name: A.setDisabled, fn: Gt },
|
|
607
|
-
[$.readonly]: { name: A.setReadonly, fn: qt }
|
|
608
|
-
}, E = {};
|
|
609
|
-
(B = Q(m)) == null || B.forEach((I) => {
|
|
610
|
-
if (_e(i, I)) {
|
|
611
|
-
const H = m[I];
|
|
612
|
-
E[H.name] = H.fn;
|
|
613
|
-
}
|
|
614
|
-
});
|
|
615
|
-
var y = se(e, E);
|
|
616
|
-
return z(i) && (y = se(y, o)), Ye(i) && (y = se(y, a)), y;
|
|
617
|
-
};
|
|
618
|
-
const tn = xe(() => ({
|
|
619
|
-
attrs: X.value,
|
|
620
|
-
extendAttrs: Y.value,
|
|
621
|
-
events: k.value,
|
|
622
|
-
slots: Le.value,
|
|
623
|
-
fieldKey: Ve.value,
|
|
624
|
-
fieldEditor: q.value,
|
|
625
|
-
fieldName: M.value
|
|
626
|
-
})), nn = (e) => {
|
|
627
|
-
t.designState && t.designer && w(() => {
|
|
628
|
-
var o;
|
|
629
|
-
return (o = t == null ? void 0 : t.widget) == null ? void 0 : o[e];
|
|
630
|
-
}, (o, a) => {
|
|
631
|
-
const { emitHistoryChange: m } = $n(t.designer);
|
|
632
|
-
m(`edit ${M.value}.${e},newValue:${o},oldValue:${a}`);
|
|
633
|
-
}, {
|
|
634
|
-
deep: !0
|
|
635
|
-
});
|
|
636
|
-
}, on = (e, o, a) => {
|
|
637
|
-
const m = le(), E = je(e), y = (B) => {
|
|
638
|
-
o && (m.value = o(B || E));
|
|
639
|
-
};
|
|
640
|
-
return et(E) ? w(E, (B) => {
|
|
641
|
-
y(B), a && a(B);
|
|
642
|
-
}) : y(E), m;
|
|
643
|
-
}, Ke = () => {
|
|
644
|
-
!z(i) || u || Zt((e) => {
|
|
645
|
-
kn(p, i == null ? void 0 : i.id, n), Hn(p, i == null ? void 0 : i.id, U.getOptions(i, $.relate), e), ye();
|
|
646
|
-
}, { immediate: !0 });
|
|
647
|
-
}, Ue = () => {
|
|
648
|
-
const e = { propName: M.value };
|
|
649
|
-
s(b, j.fieldValidation, e, R);
|
|
650
|
-
}, qe = () => {
|
|
651
|
-
const e = { fieldId: i.id, fieldName: M.value, rules: Ne };
|
|
652
|
-
s(b, j.fieldRuleChange, e, R);
|
|
653
|
-
}, fe = () => {
|
|
654
|
-
if (!z(i))
|
|
655
|
-
return;
|
|
656
|
-
const e = ft();
|
|
657
|
-
return qe(), e;
|
|
658
|
-
}, Ge = () => {
|
|
659
|
-
lt(), qe();
|
|
660
|
-
}, rn = () => {
|
|
661
|
-
_e(i, "change") && (k.value.change = Ut), _e(i, "input") && (k.value.input = Ht), c(Pn.setFormData, (e) => {
|
|
662
|
-
ie(e[M.value]);
|
|
663
|
-
}), c(j.fieldValueChanged, (e) => {
|
|
664
|
-
be(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
665
|
-
});
|
|
666
|
-
}, sn = () => {
|
|
667
|
-
let e = M.value;
|
|
668
|
-
z(i) ? ((!xn(h, e) || h[e] === void 0) && (G(null), ce() && me(ae()).then((o) => {
|
|
669
|
-
o == null ? G(null) : G(o);
|
|
670
|
-
})), Ae()) : ce() && me(ae()).then((o) => {
|
|
671
|
-
ie(o);
|
|
672
|
-
}), ke(J()), jt();
|
|
673
|
-
}, un = () => {
|
|
674
|
-
w(() => ue == null ? void 0 : ue.value, (e, o) => {
|
|
675
|
-
ye();
|
|
676
|
-
});
|
|
677
|
-
}, an = () => {
|
|
678
|
-
const e = Cn(Wn.isRenderComplete);
|
|
679
|
-
if (e != null && e.value) {
|
|
680
|
-
Ke();
|
|
681
|
-
return;
|
|
682
|
-
}
|
|
683
|
-
e != null && w(() => e == null ? void 0 : e.value, (o) => {
|
|
684
|
-
o && Ke();
|
|
685
|
-
}, { immediate: !0 });
|
|
686
|
-
}, cn = () => {
|
|
687
|
-
var e, o;
|
|
688
|
-
if (g)
|
|
689
|
-
try {
|
|
690
|
-
sn(), fe(), rn(), V.registerToRefList(M.value), C.registerToRefList(M.value), (o = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || o.call(e), T();
|
|
691
|
-
} catch (a) {
|
|
692
|
-
console.log("create", i, a);
|
|
693
|
-
}
|
|
694
|
-
}, fn = () => {
|
|
695
|
-
g && (Ze(() => {
|
|
696
|
-
var e, o;
|
|
697
|
-
try {
|
|
698
|
-
an(), un(), (o = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || o.call(e);
|
|
699
|
-
} catch (a) {
|
|
700
|
-
console.log("mounted", i, a);
|
|
701
|
-
}
|
|
702
|
-
}), Vn(() => {
|
|
703
|
-
V.unregisterFromRefList(M.value), C.unregisterFromRefList(M.value);
|
|
704
|
-
}));
|
|
705
|
-
};
|
|
706
|
-
return cn(), fn(), {
|
|
707
|
-
exposed: en(),
|
|
708
|
-
fieldModel: x,
|
|
709
|
-
objFieldModel: Ft,
|
|
710
|
-
numFieldModel: Tt,
|
|
711
|
-
fieldEditor: q,
|
|
712
|
-
fieldKey: Ve,
|
|
713
|
-
field: i,
|
|
714
|
-
instance: R,
|
|
715
|
-
attrs: X,
|
|
716
|
-
extendAttrs: Y,
|
|
717
|
-
slots: Le,
|
|
718
|
-
events: k,
|
|
719
|
-
rules: Ne,
|
|
720
|
-
fieldObj: tn,
|
|
721
|
-
pageConfig: W,
|
|
722
|
-
formModel: h,
|
|
723
|
-
fieldName: M,
|
|
724
|
-
propResultOpt: n,
|
|
725
|
-
optionItems: ue,
|
|
726
|
-
activeOptionItems: Vt,
|
|
727
|
-
activeOptionItem: Ct,
|
|
728
|
-
activeOptionItemIndex: yt,
|
|
729
|
-
filterOptionItems: dt,
|
|
730
|
-
setOptionItems: Be,
|
|
731
|
-
getCheckedItems: Ce,
|
|
732
|
-
getCheckedOptionItems: (e) => Ot(e || x.value),
|
|
733
|
-
getCheckedOptionLabels: (e) => pt(e || x.value),
|
|
734
|
-
getCheckedOptionValues: (e) => ht(e || x.value),
|
|
735
|
-
getCheckedOptionText: (e) => gt(e || x.value),
|
|
736
|
-
refreshKey: Fe,
|
|
737
|
-
watchKeyValue: on,
|
|
738
|
-
watchPropAndSaveHistoryStep: nn,
|
|
739
|
-
existEvent: kt,
|
|
740
|
-
handleEvent: be,
|
|
741
|
-
handleEnter: wt,
|
|
742
|
-
getPropName: Bt,
|
|
743
|
-
emitFieldDataChange: Ee,
|
|
744
|
-
syncUpdateFormModel: re,
|
|
745
|
-
getWidgetRef: V.getWidgetRef,
|
|
746
|
-
clearRules: Ge,
|
|
747
|
-
buildRules: fe,
|
|
748
|
-
getFieldOptionModel: je,
|
|
749
|
-
getFieldOptions: ne,
|
|
750
|
-
hasFieldOptions: bt,
|
|
751
|
-
setFieldOptions: Rt,
|
|
752
|
-
getWidgetOption: pe,
|
|
753
|
-
singleOption: Mt,
|
|
754
|
-
watchOption: xt,
|
|
755
|
-
mergeOptionToFormModel: $e
|
|
756
|
-
};
|
|
757
|
-
}
|
|
758
|
-
export {
|
|
759
|
-
We as R,
|
|
760
|
-
he as a,
|
|
761
|
-
to as b,
|
|
762
|
-
An as u
|
|
763
|
-
};
|