hlrender 0.0.47 → 0.0.49
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-698de43e.js → affix-widget-92c710d8.js} +16 -16
- package/{alert-widget-3b66dc0b.js → alert-widget-9a9592f7.js} +16 -16
- package/{anchor-widget-1f880509.js → anchor-widget-171b381e.js} +13 -13
- package/{auto-complete-widget-c669bc27.js → auto-complete-widget-e5246097.js} +16 -16
- package/{avatar-widget-d6a157d9.js → avatar-widget-ba7a7a52.js} +16 -16
- package/{backtop-widget-ae83d349.js → backtop-widget-b2c511fc.js} +16 -16
- package/{badge-widget-0a9e13fc.js → badge-widget-05daab5d.js} +16 -16
- package/{baseImp-77c70e0f.js → baseImp-03bf2d24.js} +1739 -1724
- package/{breadcrumb-widget-e80fc052.js → breadcrumb-widget-42fa52ee.js} +13 -13
- package/{button-widget-d1beede0.js → button-widget-1c807c50.js} +16 -16
- package/{cache-widget-0e5905d3.js → cache-widget-0baf1256.js} +15 -15
- package/{card-widget-83f2130a.js → card-widget-389e6c1f.js} +14 -14
- package/{carousel-widget-2156dc2e.js → carousel-widget-49ca8339.js} +14 -14
- package/{cascader-widget-49bc65f5.js → cascader-widget-06f91db2.js} +15 -15
- package/{chart-widget-677077da.js → chart-widget-e0d37f19.js} +33 -32
- package/{checkbox-widget-9a235a37.js → checkbox-widget-0755a5a2.js} +15 -15
- package/{collapse-widget-87a7f4c1.js → collapse-widget-6d878164.js} +14 -14
- package/{color-picker-widget-aa436e6a.js → color-picker-widget-8c5b69ff.js} +15 -15
- package/{cont-cell-widget-23c4fc4d.js → cont-cell-widget-cffb006d.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-8d0b5014.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-500cc29f.js} +5 -5
- package/{cont-widget-8272e602.js → cont-widget-21e6a933.js} +5 -5
- package/content-wrapper-b27ad0bc.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-00718700.js → content-wrapper.vue_vue_type_script_setup_true_lang-f4da29c0.js} +3 -3
- package/{date-picker-range-widget-d760c9d8.js → date-picker-range-widget-c057dce0.js} +15 -15
- package/{date-picker-widget-ec3e9b20.js → date-picker-widget-94042096.js} +15 -15
- package/default-slot-widget-0c63b023.js +24 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-5bd1e780.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-6bc210a2.js} +7 -7
- package/{descriptions-widget-6bae4bc6.js → descriptions-widget-8e0e29dd.js} +14 -14
- package/{dialog-8c3e543c.js → dialog-90dff606.js} +2 -2
- package/{dialog-widget-c2c3986a.js → dialog-widget-c0274e9c.js} +15 -15
- package/{divider-widget-fb66c436.js → divider-widget-addafbe1.js} +16 -16
- package/{drag-wrapper-f68a7613.js → drag-wrapper-a307d925.js} +21 -21
- package/{drawer-widget-2ee472af.js → drawer-widget-5b4ad0aa.js} +15 -15
- package/{dropdown-widget-31a7f858.js → dropdown-widget-92ad8e92.js} +14 -14
- package/{empty-widget-2fc532e4.js → empty-widget-7e7d33fd.js} +16 -16
- package/{enum-type-3590213d.js → enum-type-22cb09ce.js} +719 -173
- package/{enum-type-3b3d7fab.js → enum-type-6ff9ea07.js} +1 -1
- package/{expression-8376e661.js → expression-8b5cf5cd.js} +347 -346
- package/feedback-widget-938686ee.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-34de85ba.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-db37b9f3.js} +5 -5
- package/{fieldobj-d383824f.js → fieldobj-3869eac1.js} +1 -1
- package/{file-upload-widget-41af6f89.js → file-upload-widget-5a58f46e.js} +16 -16
- package/{form-item-wrapper-84eb593a.js → form-item-wrapper-7da1dc63.js} +11 -11
- package/{form-widget-fde19b8c.js → form-widget-e4976251.js} +27 -27
- package/{grid-col-widget-ba26537a.js → grid-col-widget-a7bd4232.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-88aaeb4f.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-af60ffe1.js} +5 -5
- package/{grid-widget-5cc715c8.js → grid-widget-83f0a13c.js} +5 -5
- package/{html-text-widget-55c8d0d7.js → html-text-widget-86632ff9.js} +14 -14
- package/{iframe-widget-228edda6.js → iframe-widget-d637009a.js} +22 -22
- package/{image-widget-e2f77836.js → image-widget-f56a3ef1.js} +13 -13
- package/{index-817aea44.js → index-04ba4f48.js} +5 -5
- package/{index-e070c3e0.js → index-8b9ef71e.js} +1 -1
- package/{index-dbea5b81.js → index-a5cda776.js} +4 -4
- package/{input-number-widget-e2eb2fa7.js → input-number-widget-b1a80e57.js} +15 -15
- package/{input-widget-d5e8f684.js → input-widget-af0309bb.js} +16 -16
- package/{label-wrapper-af2bc180.js → label-wrapper-825ad3be.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-962b6cf9.js → label-wrapper.vue_vue_type_style_index_0_lang-69a959a4.js} +3 -3
- package/{link-widget-f68868c2.js → link-widget-7511c93a.js} +16 -16
- package/{ltable-col-widget-45f4c1db.js → ltable-col-widget-0631f7bb.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-8d0bd975.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-e751b43c.js} +10 -10
- package/{ltable-widget-7b7f9937.js → ltable-widget-01075f65.js} +5 -5
- package/{menu-widget-28da2760.js → menu-widget-e3d05ec4.js} +14 -14
- package/{model-widget-42682ffa.js → model-widget-738ec56b.js} +13 -13
- package/{multirow-ad5db8fc.js → multirow-242a705e.js} +79 -77
- package/{multirow-widget-f21cc82e.js → multirow-widget-bd360529.js} +28 -28
- package/package.json +1 -1
- package/{pagination-widget-c5760e87.js → pagination-widget-4df0caeb.js} +13 -13
- package/{picture-upload-widget-2a97610a.js → picture-upload-widget-23e65a3c.js} +16 -16
- package/{progress-widget-f66a3344.js → progress-widget-c3591337.js} +14 -14
- package/{propresult-5dee4bf6.js → propresult-ede45228.js} +1 -1
- package/{radio-widget-675aa5c2.js → radio-widget-2fa17e5a.js} +15 -15
- package/{range-widget-3b277877.js → range-widget-310f7899.js} +16 -16
- package/{rate-widget-28d450cf.js → rate-widget-44b23099.js} +15 -15
- package/render.es.js +30 -30
- package/render.umd.js +273 -273
- package/{result-widget-8399d20d.js → result-widget-9619f2fa.js} +14 -14
- package/{rich-editor-widget-1cc74723.js → rich-editor-widget-cf57dc6d.js} +15 -15
- package/{router-widget-e1af282b.js → router-widget-947f6a5a.js} +13 -13
- package/select-widget-d0951e1c.js +334 -0
- package/{sfc-66bae711.js → sfc-7f21f307.js} +8 -8
- package/share-field-5e26b2ea.js +754 -0
- package/{share-file-607d5157.js → share-file-c6178ecf.js} +12 -12
- package/{slider-widget-3d110d37.js → slider-widget-b881f1b8.js} +15 -15
- package/{slot-2b4a9de9.js → slot-d6ed614c.js} +3 -3
- package/{static-text-widget-f10e3385.js → static-text-widget-3649e3a2.js} +14 -14
- package/{steps-widget-dd07c5b0.js → steps-widget-451e8a05.js} +13 -13
- package/subMenu-widget-0124929f.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-0a788825.js → subMenu-widget.vue_vue_type_script_setup_true_lang-2da64feb.js} +3 -3
- package/{switch-widget-39d07433.js → switch-widget-3b34838f.js} +15 -15
- package/{tab-pane-widget-838bee44.js → tab-pane-widget-1e68c47b.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-4dcba076.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-a6d7ac15.js} +5 -5
- package/table-col-widget-e5dc49a1.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5840ac30.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-0d22a965.js} +6 -6
- package/{table-widget-64df6635.js → table-widget-9b72dd6b.js} +57 -57
- package/{tabs-widget-96743166.js → tabs-widget-d54487bb.js} +8 -8
- package/{tag-widget-602b5880.js → tag-widget-0373f695.js} +16 -16
- package/{text-widget-cec12618.js → text-widget-9a958ad5.js} +16 -16
- package/{textarea-widget-73b89818.js → textarea-widget-28a71377.js} +15 -15
- package/{time-picker-range-widget-8532f0fa.js → time-picker-range-widget-4d9d2c39.js} +15 -15
- package/{time-picker-widget-a8b3e527.js → time-picker-widget-23409fc0.js} +15 -15
- package/{time-select-widget-429610e5.js → time-select-widget-b3edc9cf.js} +15 -15
- package/{tmpl-widget-b53dbce3.js → tmpl-widget-1d309be8.js} +14 -14
- package/{tree-select-widget-092c63ae.js → tree-select-widget-25e21372.js} +15 -15
- package/{tree-widget-29f9c602.js → tree-widget-801996c0.js} +13 -13
- package/{uuid-9b826be5.js → uuid-13176256.js} +1 -1
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-fa9bd9e5.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-f55b8020.js} +7 -7
- package/{wrapper-widget-7a43bf2c.js → wrapper-widget-f56247e0.js} +6 -6
- package/content-wrapper-3aed65b6.js +0 -14
- package/default-slot-widget-0a723c37.js +0 -24
- package/feedback-widget-f73a7543.js +0 -24
- package/select-widget-2b2f2561.js +0 -334
- package/share-field-f19ed920.js +0 -761
- package/subMenu-widget-e2b56f11.js +0 -16
- package/table-col-widget-1c4fc71e.js +0 -20
package/share-field-f19ed920.js
DELETED
|
@@ -1,761 +0,0 @@
|
|
|
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 se, 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-ad5db8fc.js";
|
|
7
|
-
import { u as nt } from "./icon-e9532b43.js";
|
|
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-77c70e0f.js";
|
|
10
|
-
import { F as Bn } from "./slot-2b4a9de9.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-817aea44.js";
|
|
13
|
-
import { W as A, d as K } from "./enum-type-3b3d7fab.js";
|
|
14
|
-
function $n() {
|
|
15
|
-
return {
|
|
16
|
-
onMountedOrActivated: (g) => {
|
|
17
|
-
let _ = !1;
|
|
18
|
-
Ye(() => {
|
|
19
|
-
g(), Ze(() => {
|
|
20
|
-
_ = !0;
|
|
21
|
-
});
|
|
22
|
-
}), gn(() => {
|
|
23
|
-
_ && g();
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
onCompErrorCaptured: () => {
|
|
27
|
-
hn((g) => (console.log(g), !1));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function jn(t, s) {
|
|
32
|
-
const { getWidgetOption: g, getWidgetOptionByPropValue: _ } = ot(t, s), P = (D) => g(D);
|
|
33
|
-
return {
|
|
34
|
-
existFunc: P,
|
|
35
|
-
handleFunc: (D, W) => {
|
|
36
|
-
if (_e(D)) {
|
|
37
|
-
var N = P(String(D));
|
|
38
|
-
return Se(N, W);
|
|
39
|
-
} else {
|
|
40
|
-
var N = _(Pe(D));
|
|
41
|
-
return Se(N, W);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
class We {
|
|
47
|
-
constructor(s) {
|
|
48
|
-
Ge(this, "refList", {});
|
|
49
|
-
s && (this.refList = s);
|
|
50
|
-
}
|
|
51
|
-
initRefList() {
|
|
52
|
-
this.refList || (this.refList = {});
|
|
53
|
-
}
|
|
54
|
-
getWidgetRef(s) {
|
|
55
|
-
if (s)
|
|
56
|
-
return this.initRefList(), this.refList[s];
|
|
57
|
-
}
|
|
58
|
-
setWidgetRef(s, g) {
|
|
59
|
-
s && (this.initRefList(), this.refList[s] = g);
|
|
60
|
-
}
|
|
61
|
-
removeWidgetRef(s) {
|
|
62
|
-
s && this.refList && delete this.refList[s.toString()];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function de(t) {
|
|
66
|
-
t || (t = {});
|
|
67
|
-
const s = new We(t), { instance: g } = nt(), _ = (v) => s.getWidgetRef(v == null ? void 0 : v.toString()), P = (v, h, O) => {
|
|
68
|
-
var C = [], S = [];
|
|
69
|
-
let o = _(v);
|
|
70
|
-
return o && C.push(o), C == null || C.forEach((f) => {
|
|
71
|
-
var n = D(f, h, O);
|
|
72
|
-
n && S.push(n);
|
|
73
|
-
}), S;
|
|
74
|
-
}, i = (v, h) => {
|
|
75
|
-
var O;
|
|
76
|
-
return (O = v == null ? void 0 : v.exposed) == null ? void 0 : O[h.toString()];
|
|
77
|
-
}, D = (v, h, O) => {
|
|
78
|
-
var C = i(v, h);
|
|
79
|
-
if (C) {
|
|
80
|
-
var S = [];
|
|
81
|
-
return O && (S = Object.values(O)), C(...S);
|
|
82
|
-
}
|
|
83
|
-
}, W = (v, h, O) => {
|
|
84
|
-
var C = [];
|
|
85
|
-
if (v) {
|
|
86
|
-
var S = Pe(ut(v, !0));
|
|
87
|
-
S == null || S.forEach((o) => {
|
|
88
|
-
var f = P(o, h, O);
|
|
89
|
-
De(f) || C.push(f);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return Array.isArray(v) ? C : C == null ? void 0 : C[0];
|
|
93
|
-
}, N = (v, h) => {
|
|
94
|
-
let O = X(t);
|
|
95
|
-
W(O, v, h);
|
|
96
|
-
}, p = (v, h) => {
|
|
97
|
-
var n, d, c;
|
|
98
|
-
const O = (d = (n = h || g) == null ? void 0 : n.exposed) == null ? void 0 : d.getField();
|
|
99
|
-
var C = Je(O == null ? void 0 : O.id);
|
|
100
|
-
const S = (u) => (u == null ? void 0 : u.id) === v, o = (u) => {
|
|
101
|
-
var R;
|
|
102
|
-
var l = Je(u == null ? void 0 : u.id);
|
|
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
|
-
}, f = (c = X(s.refList)) == null ? void 0 : c.find((u) => {
|
|
105
|
-
var R, F;
|
|
106
|
-
try {
|
|
107
|
-
const T = (F = (R = s.refList[u]) == null ? void 0 : R.exposed) == null ? void 0 : F.getField();
|
|
108
|
-
var l = S(T);
|
|
109
|
-
return !l && (C != null && C.groupName) && (l = o(T)), l;
|
|
110
|
-
} catch {
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
if (f)
|
|
115
|
-
return _(f);
|
|
116
|
-
}, V = (v) => {
|
|
117
|
-
if (v) {
|
|
118
|
-
let h = v;
|
|
119
|
-
s == null || s.setWidgetRef(h, g);
|
|
120
|
-
}
|
|
121
|
-
}, b = (v) => {
|
|
122
|
-
if (v) {
|
|
123
|
-
let h = v;
|
|
124
|
-
s == null || s.removeWidgetRef(h);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
return {
|
|
128
|
-
findWidgetAndCall: P,
|
|
129
|
-
getWidgetRef: _,
|
|
130
|
-
callWidgetsExposed: W,
|
|
131
|
-
callRefFunc: D,
|
|
132
|
-
existRefFunc: i,
|
|
133
|
-
setAllRefList: N,
|
|
134
|
-
findRefById: p,
|
|
135
|
-
findRefByName: _,
|
|
136
|
-
changeRegisterToRefList: (v, h) => {
|
|
137
|
-
v && (V(v), b(h));
|
|
138
|
-
},
|
|
139
|
-
registerToRefList: V,
|
|
140
|
-
unregisterFromRefList: b
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
const An = (t, s, g, _) => {
|
|
144
|
-
const P = new We(t), { callRefFunc: i } = de(t), { parseGroupId: D } = tt();
|
|
145
|
-
if (!t || t.length <= 0 || !s)
|
|
146
|
-
return;
|
|
147
|
-
const W = () => {
|
|
148
|
-
var o, f;
|
|
149
|
-
return (f = (o = X(t)) == null ? void 0 : o.map((n) => i(t == null ? void 0 : t[n], A.getField))) == null ? void 0 : f.filter((n) => !!n);
|
|
150
|
-
}, N = (o) => {
|
|
151
|
-
var c;
|
|
152
|
-
const f = (c = W()) == null ? void 0 : c.find((u) => (u == null ? void 0 : u.id) === o);
|
|
153
|
-
if (!f)
|
|
154
|
-
return;
|
|
155
|
-
const n = q.getName(f), d = P.getWidgetRef(n);
|
|
156
|
-
if (d)
|
|
157
|
-
return { ref: d, name: n, id: f == null ? void 0 : f.id };
|
|
158
|
-
}, p = (o, f) => {
|
|
159
|
-
if (!ee(f))
|
|
160
|
-
return;
|
|
161
|
-
const n = q.getName(o), d = P.getWidgetRef(n);
|
|
162
|
-
if (d) {
|
|
163
|
-
const c = q.getOptions(o, j.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
|
|
164
|
-
ee(c) && (we(c) ? z(c, (u) => {
|
|
165
|
-
i(d, A.setValue, { newValue: u });
|
|
166
|
-
}) : i(d, A.setValue, { newValue: c }));
|
|
167
|
-
}
|
|
168
|
-
}, V = (o, f) => {
|
|
169
|
-
const n = N(o);
|
|
170
|
-
if (!n)
|
|
171
|
-
return;
|
|
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, !bn(u) && !f && (l[`${d}${me.checkedOptions}`] = u)), l;
|
|
174
|
-
}, b = (o, f) => {
|
|
175
|
-
var d;
|
|
176
|
-
var n = [];
|
|
177
|
-
if ((d = W()) == null || d.forEach((c) => {
|
|
178
|
-
if (!c)
|
|
179
|
-
return;
|
|
180
|
-
const u = c == null ? void 0 : c.id;
|
|
181
|
-
var l = u === o;
|
|
182
|
-
const R = D(u), F = (R == null ? void 0 : R.id) === o, T = (R == null ? void 0 : R.groupName) === f;
|
|
183
|
-
return l || F && (T || !f) ? (n.push(c), !0) : !1;
|
|
184
|
-
}), !(!n || n.length <= 0))
|
|
185
|
-
return n == null ? void 0 : n.map((c) => {
|
|
186
|
-
var u;
|
|
187
|
-
return {
|
|
188
|
-
id: c == null ? void 0 : c.id,
|
|
189
|
-
name: (u = c == null ? void 0 : c._source) == null ? void 0 : u.name,
|
|
190
|
-
source: c == null ? void 0 : c._source
|
|
191
|
-
};
|
|
192
|
-
});
|
|
193
|
-
}, B = (o, f) => {
|
|
194
|
-
var n = [];
|
|
195
|
-
if (!o || (o == null ? void 0 : o.length) <= 0)
|
|
196
|
-
return n;
|
|
197
|
-
const d = D(s), c = d == null ? void 0 : d.groupName;
|
|
198
|
-
return f === le.Inner2Outer ? o == null || o.forEach((u) => {
|
|
199
|
-
var l = b(u);
|
|
200
|
-
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
201
|
-
}) : o == null || o.forEach((u) => {
|
|
202
|
-
var l = b(u, c);
|
|
203
|
-
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
204
|
-
}), n;
|
|
205
|
-
}, v = (o, f) => {
|
|
206
|
-
const n = {};
|
|
207
|
-
if (!o || o.length <= 0)
|
|
208
|
-
return n;
|
|
209
|
-
if (f === le.Inner2Outer) {
|
|
210
|
-
var d = yn(o, (c) => {
|
|
211
|
-
var u;
|
|
212
|
-
return (u = c.source) == null ? void 0 : u.id;
|
|
213
|
-
});
|
|
214
|
-
d == null || d.forEach((c) => {
|
|
215
|
-
var R;
|
|
216
|
-
const u = c.group[0], l = [];
|
|
217
|
-
(R = c == null ? void 0 : c.children) == null || R.forEach((F) => {
|
|
218
|
-
const T = V(F == null ? void 0 : F.id, !0);
|
|
219
|
-
if (ee(T)) {
|
|
220
|
-
var Y = Object.values(Pe(T));
|
|
221
|
-
l.push(...Y);
|
|
222
|
-
}
|
|
223
|
-
}), u && Q(n, { [u]: l });
|
|
224
|
-
});
|
|
225
|
-
} else
|
|
226
|
-
o.forEach((c) => {
|
|
227
|
-
const u = V(c == null ? void 0 : c.id);
|
|
228
|
-
ee(u) && Q(n, u);
|
|
229
|
-
});
|
|
230
|
-
return n;
|
|
231
|
-
}, h = (o) => {
|
|
232
|
-
var f = {};
|
|
233
|
-
return o == null || o.forEach((n) => {
|
|
234
|
-
var d;
|
|
235
|
-
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);
|
|
236
|
-
}), f;
|
|
237
|
-
}, O = (o, f, n) => {
|
|
238
|
-
if (n === le.Inner2Inner) {
|
|
239
|
-
const l = En(f), { updateFomula: R } = st(), { buildVariable: F } = Wn();
|
|
240
|
-
var d = h(o);
|
|
241
|
-
if (ee(d)) {
|
|
242
|
-
var c = q.getOrgOption(f, j.defaultValue), u = R(ve(c), d, (T, Y) => {
|
|
243
|
-
var Z = d[T];
|
|
244
|
-
return De(Z) ? F(T) : F(Z);
|
|
245
|
-
});
|
|
246
|
-
return q.setOrgOption(l, j.defaultValue, et(u)), l;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return f;
|
|
250
|
-
}, C = (o) => {
|
|
251
|
-
const f = o == null ? void 0 : o.id;
|
|
252
|
-
var n = q.getOrgOption(o, j.defaultValue);
|
|
253
|
-
if (n == null)
|
|
254
|
-
return;
|
|
255
|
-
const d = xn(s, f);
|
|
256
|
-
if (d === le.DiffInner)
|
|
257
|
-
return;
|
|
258
|
-
var c = rt.getFormulaRelatedField(n);
|
|
259
|
-
if (!c || c.length <= 0)
|
|
260
|
-
return;
|
|
261
|
-
var u = B(c, d);
|
|
262
|
-
if (!(u != null && u.some((R) => R.id === s)))
|
|
263
|
-
return;
|
|
264
|
-
const l = v(u, d);
|
|
265
|
-
p(O(u, o, d), l);
|
|
266
|
-
};
|
|
267
|
-
(() => {
|
|
268
|
-
var o;
|
|
269
|
-
(o = W()) == null || o.forEach((f) => {
|
|
270
|
-
C(f);
|
|
271
|
-
});
|
|
272
|
-
})();
|
|
273
|
-
}, kn = (t, s, g, _, P) => {
|
|
274
|
-
var B;
|
|
275
|
-
if (P || !ee(g))
|
|
276
|
-
return;
|
|
277
|
-
const { parseGroupId: i } = tt();
|
|
278
|
-
var D = i(s), W = D == null ? void 0 : D.groupName;
|
|
279
|
-
const { callRefFunc: N } = de(t), p = (v, h) => {
|
|
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), C = (c = Fn(O, (u) => {
|
|
282
|
-
var l = i(u == null ? void 0 : u.id);
|
|
283
|
-
return (!W || (l == null ? void 0 : l.groupName) === W) && (l == null ? void 0 : l.id) === v;
|
|
284
|
-
})) == null ? void 0 : c[0];
|
|
285
|
-
if (!C)
|
|
286
|
-
return;
|
|
287
|
-
const S = q.getName(C), f = new We(t).getWidgetRef(S);
|
|
288
|
-
f && (h == null || h(f));
|
|
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
|
-
!b || b.length <= 0 || b == null || b.forEach((v) => {
|
|
291
|
-
var O, C;
|
|
292
|
-
const h = (O = g == null ? void 0 : g[v]) == null ? void 0 : O.result;
|
|
293
|
-
(C = X(h)) == null || C.forEach((S) => {
|
|
294
|
-
var f;
|
|
295
|
-
const o = h == null ? void 0 : h[S];
|
|
296
|
-
(f = o == null ? void 0 : o.ids) == null || f.forEach((n) => {
|
|
297
|
-
p(n, (d) => {
|
|
298
|
-
N(d, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
};
|
|
304
|
-
function at(t, s) {
|
|
305
|
-
var g;
|
|
306
|
-
return (g = t == null ? void 0 : t.classList) != null && g.contains(s) ? t : t != null && t.parentElement ? at(t == null ? void 0 : t.parentElement, s) : null;
|
|
307
|
-
}
|
|
308
|
-
function Hn() {
|
|
309
|
-
const t = (p) => {
|
|
310
|
-
if (p)
|
|
311
|
-
return p != null && p.ref ? p == null ? void 0 : p.ref : p;
|
|
312
|
-
}, s = (p) => {
|
|
313
|
-
var V, b;
|
|
314
|
-
try {
|
|
315
|
-
(b = (V = t(p)) == null ? void 0 : V.focus) == null || b.call(V);
|
|
316
|
-
} catch (B) {
|
|
317
|
-
console.log(B);
|
|
318
|
-
}
|
|
319
|
-
}, g = (p) => {
|
|
320
|
-
var V, b;
|
|
321
|
-
try {
|
|
322
|
-
(b = (V = t(p)) == null ? void 0 : V.blur) == null || b.call(V);
|
|
323
|
-
} catch (B) {
|
|
324
|
-
console.log(B);
|
|
325
|
-
}
|
|
326
|
-
}, _ = (p) => {
|
|
327
|
-
var V;
|
|
328
|
-
return (V = t(p)) == null ? void 0 : V.selectionStart;
|
|
329
|
-
}, P = (p) => {
|
|
330
|
-
var V;
|
|
331
|
-
return (V = t(p)) == null ? void 0 : V.selectionEnd;
|
|
332
|
-
}, i = (p, V) => {
|
|
333
|
-
var b;
|
|
334
|
-
return (b = t(p)) == null ? void 0 : b.setSelectionRange(V, V);
|
|
335
|
-
}, D = (p, V) => {
|
|
336
|
-
s(p), i(p, V);
|
|
337
|
-
};
|
|
338
|
-
return {
|
|
339
|
-
getSelectionStart: _,
|
|
340
|
-
getSelectionEnd: P,
|
|
341
|
-
setSelectionStart: i,
|
|
342
|
-
blur: g,
|
|
343
|
-
focus: s,
|
|
344
|
-
setMousePos: D,
|
|
345
|
-
getMousePos: (p) => _(p),
|
|
346
|
-
insertOnMousePos: (p, V, b) => {
|
|
347
|
-
const B = _(p), v = P(p), h = Dn(b, V, B, v);
|
|
348
|
-
return Ze(() => {
|
|
349
|
-
D(p, B + (V == null ? void 0 : V.length));
|
|
350
|
-
}), h;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
const Qe = (t) => {
|
|
355
|
-
var g;
|
|
356
|
-
const { getFormulaFields: s } = st();
|
|
357
|
-
return ((g = s(ve(t))) == null ? void 0 : g.length) > 0;
|
|
358
|
-
}, U = (t) => {
|
|
359
|
-
const s = t.type;
|
|
360
|
-
return ![K.fileUpload, K.pictureUpload].includes(s) && t.formItemFlag || [K.form, K.dialog].includes(s);
|
|
361
|
-
}, Xe = (t) => {
|
|
362
|
-
const s = t.type;
|
|
363
|
-
return [K.treeSelect, K.cascader, K.select, K.checkbox, K.radio].includes(s);
|
|
364
|
-
};
|
|
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 = () => se(h), o = () => v, f = () => i, n = {
|
|
369
|
-
instance: {
|
|
370
|
-
exposed: {
|
|
371
|
-
getFormData: !s && Qe(i) ? S : null,
|
|
372
|
-
findRefByName: O.getWidgetRef,
|
|
373
|
-
getField: f,
|
|
374
|
-
getRowScope: o
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
designState: s,
|
|
378
|
-
pageConfig: W,
|
|
379
|
-
formData: !s && Qe(i) ? h : {},
|
|
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: F } = $n(), { existFunc: T } = 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: ue, 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
|
-
Ve.value = Le();
|
|
385
|
-
}, Ft = Me({
|
|
386
|
-
get: () => {
|
|
387
|
-
if (_e(M.value)) {
|
|
388
|
-
var e = Number(M.value);
|
|
389
|
-
return isNaN(e) ? void 0 : (M.value = e, e);
|
|
390
|
-
}
|
|
391
|
-
return M.value;
|
|
392
|
-
},
|
|
393
|
-
set: (e) => {
|
|
394
|
-
M.value = e;
|
|
395
|
-
}
|
|
396
|
-
}), Tt = Me({
|
|
397
|
-
get: () => {
|
|
398
|
-
if (_e(M.value)) {
|
|
399
|
-
var e = et(M.value);
|
|
400
|
-
Rn(e) && (M.value = e);
|
|
401
|
-
}
|
|
402
|
-
return M.value;
|
|
403
|
-
},
|
|
404
|
-
set: (e) => {
|
|
405
|
-
M.value = e;
|
|
406
|
-
}
|
|
407
|
-
}), Oe = (e) => {
|
|
408
|
-
var r, a, m;
|
|
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
|
-
}, Te = (e) => {
|
|
411
|
-
var r, a, m;
|
|
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
|
-
var r, a, m;
|
|
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
|
-
if (!Xe(i) || e === !1)
|
|
420
|
-
return;
|
|
421
|
-
const r = M.value, a = Te(r), m = It(r);
|
|
422
|
-
var E = se(Oe(r));
|
|
423
|
-
Ie(a, E, m);
|
|
424
|
-
}, Ie = (e, r, a) => {
|
|
425
|
-
var m = {};
|
|
426
|
-
if (e != null) {
|
|
427
|
-
let E = ne("textName", !1);
|
|
428
|
-
[`${x.value}${me.optionText}`, E].forEach((y) => {
|
|
429
|
-
y && m[y] === void 0 && (m[y] = e);
|
|
430
|
-
});
|
|
431
|
-
}
|
|
432
|
-
if (r != null && ve(r) !== ve(M.value)) {
|
|
433
|
-
let E = ne("optionName", !1);
|
|
434
|
-
[`${x.value}${me.checkedOptions}`, E].forEach((y) => {
|
|
435
|
-
y && m[y] === void 0 && (m[y] = r);
|
|
436
|
-
});
|
|
437
|
-
}
|
|
438
|
-
if (a != null) {
|
|
439
|
-
let E = ne("labelName", !1);
|
|
440
|
-
e != a && [`${x.value}${me.optionLabelName}`, E].forEach((y) => {
|
|
441
|
-
y && m[y] === void 0 && (m[y] = a);
|
|
442
|
-
});
|
|
443
|
-
}
|
|
444
|
-
Q(h, se(m));
|
|
445
|
-
}, w = (e) => {
|
|
446
|
-
if (U(i)) {
|
|
447
|
-
Ce();
|
|
448
|
-
var r = { [x.value]: e };
|
|
449
|
-
Q(h, r);
|
|
450
|
-
}
|
|
451
|
-
}, re = (e) => {
|
|
452
|
-
s || w(e);
|
|
453
|
-
}, $e = (e) => ne(e, !1), je = () => {
|
|
454
|
-
var e = Cn(h);
|
|
455
|
-
M = rt.get(e, x.value);
|
|
456
|
-
}, Ae = (e) => {
|
|
457
|
-
pe = se(e);
|
|
458
|
-
}, $t = () => {
|
|
459
|
-
s || P && P(J());
|
|
460
|
-
}, jt = () => {
|
|
461
|
-
var e;
|
|
462
|
-
!s || !U(i) || ((e = ie()) == null || e.then((r) => {
|
|
463
|
-
w(r);
|
|
464
|
-
}), je());
|
|
465
|
-
}, ye = (e, r) => {
|
|
466
|
-
if (!U(i))
|
|
467
|
-
return;
|
|
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) => T(e), Ee = (e, r) => Se(ge(e), r), kt = (e) => {
|
|
472
|
-
re(e), Ke(), Ee(j.onInput, { value: e });
|
|
473
|
-
}, Ht = (e, r) => {
|
|
474
|
-
var a, m, E;
|
|
475
|
-
return (E = (m = (a = O.getWidgetRef(x.value)) == null ? void 0 : a.exposed) == null ? void 0 : m.handleBeforeChange) == null ? void 0 : E.call(m, e, r);
|
|
476
|
-
}, Kt = (...e) => {
|
|
477
|
-
var E, y, L;
|
|
478
|
-
const a = ((E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) != null ? (L = (y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) == null ? void 0 : L.value : e == null ? void 0 : e[0];
|
|
479
|
-
var m = Ht(a, pe);
|
|
480
|
-
m != null ? re(m) : re(a), ye(a, pe), Ke(), Ae(a);
|
|
481
|
-
}, Ut = (e = !0) => {
|
|
482
|
-
te($.readonly, e);
|
|
483
|
-
}, qt = (e = !0) => {
|
|
484
|
-
te($.disabled, e);
|
|
485
|
-
}, Gt = (e = !0) => {
|
|
486
|
-
te($.hidden, e), e ? qe() : ce();
|
|
487
|
-
}, Jt = (e = !0) => {
|
|
488
|
-
yt($.required, e), ce();
|
|
489
|
-
}, zt = (e) => {
|
|
490
|
-
te($.label, e);
|
|
491
|
-
}, J = () => M == null ? void 0 : M.value, ke = (e) => {
|
|
492
|
-
M.value = e;
|
|
493
|
-
}, ae = (e) => {
|
|
494
|
-
let r = se(J());
|
|
495
|
-
if (ke(e), !U(i))
|
|
496
|
-
return;
|
|
497
|
-
const a = J();
|
|
498
|
-
r !== a && (re(a), ye(e, r));
|
|
499
|
-
}, Qt = () => {
|
|
500
|
-
var e;
|
|
501
|
-
he() ? (e = ie()) == null || e.then((r) => {
|
|
502
|
-
w(r);
|
|
503
|
-
}) : w(null), _ == null || _();
|
|
504
|
-
}, Xt = (e) => {
|
|
505
|
-
const r = J(), a = oe.insertOnMousePos(G.value, e, r);
|
|
506
|
-
ae(a);
|
|
507
|
-
}, Yt = (e, r) => {
|
|
508
|
-
z(() => M == null ? void 0 : M.value, (a, m) => {
|
|
509
|
-
e == null || e({ id: i.id, name: x.value, newValue: a, oldValue: m });
|
|
510
|
-
}, r);
|
|
511
|
-
}, Zt = (e) => {
|
|
512
|
-
var y;
|
|
513
|
-
e.preventDefault();
|
|
514
|
-
const r = (L) => {
|
|
515
|
-
var H;
|
|
516
|
-
const I = (H = Array.from(L.classList)) == null ? void 0 : H.find((be) => St(be));
|
|
517
|
-
return I ? Pt(I) : "";
|
|
518
|
-
}, a = document.activeElement;
|
|
519
|
-
if (!a)
|
|
520
|
-
return;
|
|
521
|
-
const m = document.getElementsByClassName(ze.formItemTarget);
|
|
522
|
-
for (var E = 0; E < m.length; E++) {
|
|
523
|
-
const L = m[E], I = at(a, ze.formItemTarget);
|
|
524
|
-
if (!I)
|
|
525
|
-
continue;
|
|
526
|
-
const H = r(L), be = r(I);
|
|
527
|
-
if (H === be) {
|
|
528
|
-
if (E === m.length - 1)
|
|
529
|
-
return;
|
|
530
|
-
const fn = m[E + 1], ln = r(fn), Re = O.findRefById(ln, R);
|
|
531
|
-
try {
|
|
532
|
-
(y = Re == null ? void 0 : Re.exposed) == null || y.focus();
|
|
533
|
-
} catch (mn) {
|
|
534
|
-
console.log(mn);
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
}
|
|
538
|
-
};
|
|
539
|
-
let wt = () => {
|
|
540
|
-
var L;
|
|
541
|
-
let e = {
|
|
542
|
-
componentName: x.value,
|
|
543
|
-
//用于组件事件emitter发射与接收处理
|
|
544
|
-
refList: N,
|
|
545
|
-
allRefList: p,
|
|
546
|
-
changeRegisterToRefList: (I, H) => {
|
|
547
|
-
O.changeRegisterToRefList(I, H), C.changeRegisterToRefList(I, H);
|
|
548
|
-
},
|
|
549
|
-
getField: f,
|
|
550
|
-
getFormData: S,
|
|
551
|
-
getValue: J,
|
|
552
|
-
setValue: ke,
|
|
553
|
-
emit$: l,
|
|
554
|
-
findRefByName: O.getWidgetRef,
|
|
555
|
-
findRefById: O.findRefById,
|
|
556
|
-
callRefFunc: O.callRefFunc,
|
|
557
|
-
getWidgetOption: ge,
|
|
558
|
-
setWidgetOption: te,
|
|
559
|
-
refreshKey: Fe,
|
|
560
|
-
getRowScope: o,
|
|
561
|
-
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
562
|
-
getOneSchemaData: Wt,
|
|
563
|
-
getSchemaDatas: Bt,
|
|
564
|
-
getSchemaDataObject: Nt,
|
|
565
|
-
addCssClass: _t,
|
|
566
|
-
removeCssClass: Dt
|
|
567
|
-
}, r = {
|
|
568
|
-
resetField: Qt,
|
|
569
|
-
getValue: J,
|
|
570
|
-
setValue: ae,
|
|
571
|
-
refreshDefaultValue: jt,
|
|
572
|
-
insertOnMousePos: Xt,
|
|
573
|
-
disableChangeValidate: ft,
|
|
574
|
-
enableChangeValidate: lt,
|
|
575
|
-
focus: () => {
|
|
576
|
-
oe.focus(G.value);
|
|
577
|
-
},
|
|
578
|
-
blur: () => {
|
|
579
|
-
oe.blur(G.value);
|
|
580
|
-
},
|
|
581
|
-
getMousePos: () => {
|
|
582
|
-
oe.getMousePos(G.value);
|
|
583
|
-
},
|
|
584
|
-
setMousePos: (I) => {
|
|
585
|
-
oe.setMousePos(G.value, I);
|
|
586
|
-
}
|
|
587
|
-
}, a = {
|
|
588
|
-
getCheckedItems: Oe,
|
|
589
|
-
getCheckedLabels: Te
|
|
590
|
-
}, m = {
|
|
591
|
-
[$.required]: { name: A.setRequired, fn: Jt },
|
|
592
|
-
[$.label]: { name: A.setLabel, fn: zt },
|
|
593
|
-
[$.hidden]: { name: A.setHidden, fn: Gt },
|
|
594
|
-
[$.disabled]: { name: A.setDisabled, fn: qt },
|
|
595
|
-
[$.readonly]: { name: A.setReadonly, fn: Ut }
|
|
596
|
-
}, E = {};
|
|
597
|
-
(L = X(m)) == null || L.forEach((I) => {
|
|
598
|
-
if (xe(i, I)) {
|
|
599
|
-
const H = m[I];
|
|
600
|
-
E[H.name] = H.fn;
|
|
601
|
-
}
|
|
602
|
-
});
|
|
603
|
-
var y = Q(e, E);
|
|
604
|
-
return U(i) && (y = Q(y, r)), Xe(i) && (y = Q(y, a)), y;
|
|
605
|
-
};
|
|
606
|
-
const en = Me(() => ({
|
|
607
|
-
attrs: Y.value,
|
|
608
|
-
extendAttrs: Z.value,
|
|
609
|
-
events: k.value,
|
|
610
|
-
slots: Ne.value,
|
|
611
|
-
fieldKey: Ve.value,
|
|
612
|
-
fieldEditor: G.value,
|
|
613
|
-
fieldName: x.value
|
|
614
|
-
})), tn = (e) => {
|
|
615
|
-
t.designState && t.designer && z(() => {
|
|
616
|
-
var r;
|
|
617
|
-
return (r = t == null ? void 0 : t.widget) == null ? void 0 : r[e];
|
|
618
|
-
}, (r, a) => {
|
|
619
|
-
const { emitHistoryChange: m } = In(t.designer);
|
|
620
|
-
m(`edit ${x.value}.${e},newValue:${r},oldValue:${a}`);
|
|
621
|
-
}, {
|
|
622
|
-
deep: !0
|
|
623
|
-
});
|
|
624
|
-
}, nn = (e, r, a) => {
|
|
625
|
-
const m = fe(), E = $e(e), y = (L) => {
|
|
626
|
-
r && (m.value = r(L || E));
|
|
627
|
-
};
|
|
628
|
-
return we(E) ? z(E, (L) => {
|
|
629
|
-
y(L), a && a(L);
|
|
630
|
-
}) : y(E), m;
|
|
631
|
-
}, He = () => {
|
|
632
|
-
!U(i) || s || Yt((e) => {
|
|
633
|
-
An(p, i == null ? void 0 : i.id, n), kn(p, i == null ? void 0 : i.id, q.getOptions(i, $.relate), e), Ce();
|
|
634
|
-
}, { immediate: !0 });
|
|
635
|
-
}, Ke = () => {
|
|
636
|
-
const e = { propName: x.value };
|
|
637
|
-
u(b, j.fieldValidation, e, R);
|
|
638
|
-
}, Ue = () => {
|
|
639
|
-
const e = { fieldId: i.id, fieldName: x.value, rules: Be };
|
|
640
|
-
u(b, j.fieldRuleChange, e, R);
|
|
641
|
-
}, ce = () => {
|
|
642
|
-
if (!U(i))
|
|
643
|
-
return;
|
|
644
|
-
const e = ct();
|
|
645
|
-
return Ue(), e;
|
|
646
|
-
}, qe = () => {
|
|
647
|
-
it(), Ue();
|
|
648
|
-
}, on = () => {
|
|
649
|
-
xe(i, "change") && (k.value.change = Kt), xe(i, "input") && (k.value.input = kt), c(Sn.setFormData, (e) => {
|
|
650
|
-
ae(e[x.value]);
|
|
651
|
-
}), c(j.fieldValueChanged, (e) => {
|
|
652
|
-
Ee(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
653
|
-
});
|
|
654
|
-
};
|
|
655
|
-
function ie() {
|
|
656
|
-
if (he())
|
|
657
|
-
return new Promise((e, r) => {
|
|
658
|
-
z(() => Rt.value, (a, m) => {
|
|
659
|
-
e(a);
|
|
660
|
-
}, { immediate: !0 });
|
|
661
|
-
});
|
|
662
|
-
}
|
|
663
|
-
const rn = () => {
|
|
664
|
-
var r, a;
|
|
665
|
-
let e = x.value;
|
|
666
|
-
U(i) ? ((!Mn(h, e) || h[e] === void 0) && (w(null), (r = ie()) == null || r.then((m) => {
|
|
667
|
-
w(m);
|
|
668
|
-
})), je()) : he() && ((a = ie()) == null || a.then((m) => {
|
|
669
|
-
ae(m);
|
|
670
|
-
})), Ae(J()), $t();
|
|
671
|
-
}, sn = () => {
|
|
672
|
-
z(() => ue == null ? void 0 : ue.value, (e, r) => {
|
|
673
|
-
Ce();
|
|
674
|
-
});
|
|
675
|
-
}, un = () => {
|
|
676
|
-
const e = On(Pn.isRenderComplete);
|
|
677
|
-
if (e != null && e.value) {
|
|
678
|
-
He();
|
|
679
|
-
return;
|
|
680
|
-
}
|
|
681
|
-
e != null && z(() => e == null ? void 0 : e.value, (r) => {
|
|
682
|
-
r && He();
|
|
683
|
-
}, { immediate: !0 });
|
|
684
|
-
}, an = () => {
|
|
685
|
-
var e, r;
|
|
686
|
-
if (g)
|
|
687
|
-
try {
|
|
688
|
-
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), F();
|
|
689
|
-
} catch (a) {
|
|
690
|
-
console.log("create", i, a);
|
|
691
|
-
}
|
|
692
|
-
}, cn = () => {
|
|
693
|
-
g && (Ye(() => {
|
|
694
|
-
var e, r;
|
|
695
|
-
try {
|
|
696
|
-
un(), sn(), (r = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || r.call(e);
|
|
697
|
-
} catch (a) {
|
|
698
|
-
console.log("mounted", i, a);
|
|
699
|
-
}
|
|
700
|
-
}), Vn(() => {
|
|
701
|
-
O.unregisterFromRefList(x.value), C.unregisterFromRefList(x.value);
|
|
702
|
-
}));
|
|
703
|
-
};
|
|
704
|
-
return an(), cn(), {
|
|
705
|
-
exposed: wt(),
|
|
706
|
-
fieldModel: M,
|
|
707
|
-
objFieldModel: Tt,
|
|
708
|
-
numFieldModel: Ft,
|
|
709
|
-
fieldEditor: G,
|
|
710
|
-
fieldKey: Ve,
|
|
711
|
-
field: i,
|
|
712
|
-
instance: R,
|
|
713
|
-
attrs: Y,
|
|
714
|
-
extendAttrs: Z,
|
|
715
|
-
slots: Ne,
|
|
716
|
-
events: k,
|
|
717
|
-
rules: Be,
|
|
718
|
-
fieldObj: en,
|
|
719
|
-
pageConfig: W,
|
|
720
|
-
formModel: h,
|
|
721
|
-
fieldName: x,
|
|
722
|
-
propResultOpt: n,
|
|
723
|
-
optionItems: ue,
|
|
724
|
-
activeOptionItems: pt,
|
|
725
|
-
activeOptionItem: Vt,
|
|
726
|
-
activeOptionItemIndex: Ot,
|
|
727
|
-
filterOptionItems: mt,
|
|
728
|
-
setOptionItems: Ct,
|
|
729
|
-
getCheckedItems: Oe,
|
|
730
|
-
getCheckedOptionItems: (e) => ht(e || M.value),
|
|
731
|
-
getCheckedOptionLabels: (e) => gt(e || M.value),
|
|
732
|
-
getCheckedOptionValues: (e) => dt(e || M.value),
|
|
733
|
-
getCheckedOptionText: (e) => vt(e || M.value),
|
|
734
|
-
refreshKey: Fe,
|
|
735
|
-
watchKeyValue: nn,
|
|
736
|
-
watchPropAndSaveHistoryStep: tn,
|
|
737
|
-
existEvent: At,
|
|
738
|
-
handleEvent: Ee,
|
|
739
|
-
handleEnter: Zt,
|
|
740
|
-
getPropName: Lt,
|
|
741
|
-
emitFieldDataChange: ye,
|
|
742
|
-
syncUpdateFormModel: re,
|
|
743
|
-
getWidgetRef: O.getWidgetRef,
|
|
744
|
-
clearRules: qe,
|
|
745
|
-
buildRules: ce,
|
|
746
|
-
getFieldOptionModel: $e,
|
|
747
|
-
getFieldOptions: ne,
|
|
748
|
-
hasFieldOptions: Et,
|
|
749
|
-
setFieldOptions: bt,
|
|
750
|
-
getWidgetOption: ge,
|
|
751
|
-
singleOption: Mt,
|
|
752
|
-
watchOption: xt,
|
|
753
|
-
mergeOptionToFormModel: Ie
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
export {
|
|
757
|
-
We as R,
|
|
758
|
-
de as a,
|
|
759
|
-
eo as b,
|
|
760
|
-
jn as u
|
|
761
|
-
};
|