hlrender 0.0.26 → 0.0.28
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-686c14a2.js → affix-widget-cc24ed1f.js} +16 -16
- package/{alert-widget-5933254b.js → alert-widget-fe45c3c9.js} +16 -16
- package/{anchor-widget-b4846ac3.js → anchor-widget-124304de.js} +13 -13
- package/{auto-complete-widget-1e620151.js → auto-complete-widget-91c9c73b.js} +16 -16
- package/{avatar-widget-8c11def9.js → avatar-widget-ba165190.js} +16 -16
- package/{backtop-widget-092982e7.js → backtop-widget-9d9dd142.js} +16 -16
- package/{badge-widget-32a13300.js → badge-widget-da251cd5.js} +16 -16
- package/{baseImp-2fb467c1.js → baseImp-9dc35637.js} +576 -581
- package/{breadcrumb-widget-9d835d46.js → breadcrumb-widget-54888507.js} +13 -13
- package/{button-widget-41d37ab0.js → button-widget-7f6d4076.js} +16 -16
- package/{cache-widget-0a71f241.js → cache-widget-f7eadcc3.js} +15 -15
- package/{card-widget-721a09f0.js → card-widget-cfef1ad4.js} +14 -14
- package/{carousel-widget-49f3e3f6.js → carousel-widget-d130c093.js} +14 -14
- package/{cascader-widget-78d749d7.js → cascader-widget-71ce801e.js} +15 -15
- package/{chart-widget-8227db5b.js → chart-widget-b94fd490.js} +13 -13
- package/checkbox-widget-fbf2b4bc.js +88 -0
- package/{collapse-widget-8fe278db.js → collapse-widget-412b62b1.js} +14 -14
- package/{color-picker-widget-795ebfff.js → color-picker-widget-e33acfda.js} +15 -15
- package/{cont-cell-widget-6f21a13a.js → cont-cell-widget-14d4ea35.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-935300dd.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-2666e7b7.js} +5 -5
- package/{cont-widget-dd07aec5.js → cont-widget-1f47d2fb.js} +5 -5
- package/content-wrapper-ac73895d.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-1f204c5d.js → content-wrapper.vue_vue_type_script_setup_true_lang-8b6e8053.js} +3 -3
- package/{date-picker-range-widget-a9f0da5e.js → date-picker-range-widget-8e0fe57b.js} +15 -15
- package/{date-picker-widget-3ce5c236.js → date-picker-widget-f5b38050.js} +15 -15
- package/default-slot-widget-c4c8ac22.js +24 -0
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-aa9b2689.js +76 -0
- package/{descriptions-widget-0b1bc3c4.js → descriptions-widget-0881490d.js} +14 -14
- package/{dialog-5430bfd8.js → dialog-f934cab6.js} +2 -2
- package/{dialog-widget-9d91c984.js → dialog-widget-7dba89fd.js} +15 -15
- package/{divider-widget-0ab0e8ff.js → divider-widget-7ca6a6d2.js} +16 -16
- package/{drag-wrapper-6e8e6535.js → drag-wrapper-2daee999.js} +6 -6
- package/{drawer-widget-d96ff42b.js → drawer-widget-38a9a3c9.js} +15 -15
- package/{dropdown-widget-e6ae9f4e.js → dropdown-widget-9602280d.js} +14 -14
- package/{empty-widget-a75cb64b.js → empty-widget-55500dc6.js} +16 -16
- package/{enum-type-8ef23706.js → enum-type-3ddfb3c0.js} +102 -95
- package/{enum-type-b66b08e2.js → enum-type-a8dcfe1b.js} +1 -1
- package/{expression-cce40b94.js → expression-fca39f89.js} +3 -3
- package/feedback-widget-530e6fc4.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-8cdd069a.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-4307da03.js} +5 -5
- package/{fieldobj-7fac2cd4.js → fieldobj-4a037177.js} +1 -1
- package/{file-upload-widget-9b503a59.js → file-upload-widget-0cdf45bc.js} +16 -16
- package/form-item-wrapper-553d43e5.js +84 -0
- package/form-widget-b7b16e21.js +221 -0
- package/{grid-col-widget-bee1b799.js → grid-col-widget-70203b75.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-61338400.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-acfaf1b4.js} +5 -5
- package/{grid-widget-6b5b55ba.js → grid-widget-a776302a.js} +5 -5
- package/{html-text-widget-56396d7a.js → html-text-widget-b37702ed.js} +14 -14
- package/{iframe-widget-2d11c30e.js → iframe-widget-1f330014.js} +13 -13
- package/{image-widget-b4a6ba3f.js → image-widget-a89ff7ac.js} +13 -13
- package/{index-df28500f.js → index-297620ce.js} +4 -4
- package/{index-90ff698b.js → index-6ea9df19.js} +1 -1
- package/{index-4346f0e4.js → index-8fc40e72.js} +1361 -1363
- package/{input-number-widget-8fe0c25c.js → input-number-widget-48bbad1e.js} +19 -19
- package/{input-widget-fa356d3e.js → input-widget-c5c60f69.js} +16 -16
- package/{label-wrapper-e1454300.js → label-wrapper-6797d3c9.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-5f476a3b.js → label-wrapper.vue_vue_type_style_index_0_lang-f0b84b56.js} +3 -3
- package/{link-widget-82c06d1e.js → link-widget-c70425f6.js} +16 -16
- package/{ltable-col-widget-a2143757.js → ltable-col-widget-97b00592.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-677174d5.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-1358cd37.js} +10 -10
- package/{ltable-widget-399275df.js → ltable-widget-480f6162.js} +5 -5
- package/{menu-widget-4edb602d.js → menu-widget-3febe9be.js} +14 -14
- package/{model-widget-685c8d80.js → model-widget-a77e4478.js} +13 -13
- package/{multirow-c75e5d8b.js → multirow-bb2e2620.js} +33 -33
- package/{multirow-widget-9b64f02e.js → multirow-widget-0731ac02.js} +202 -198
- package/package.json +1 -1
- package/{pagination-widget-c15845ed.js → pagination-widget-95cd48b3.js} +13 -13
- package/picture-upload-widget-ffa590ce.js +100 -0
- package/{progress-widget-02c6103e.js → progress-widget-8f82ded5.js} +14 -14
- package/{propresult-774641ae.js → propresult-0e9f8eac.js} +1 -1
- package/{radio-widget-c836fb13.js → radio-widget-14da21ad.js} +15 -15
- package/{range-widget-12200ebb.js → range-widget-bb3574e5.js} +16 -16
- package/{rate-widget-5d731ae0.js → rate-widget-10180772.js} +15 -15
- package/render.es.js +856 -844
- package/render.style.css +1 -1
- package/render.umd.js +336 -336
- package/{result-widget-4a203665.js → result-widget-df7bab6c.js} +14 -14
- package/{rich-editor-widget-075706e7.js → rich-editor-widget-8d0d7564.js} +15 -15
- package/{router-widget-836493f8.js → router-widget-8d90bea7.js} +13 -13
- package/{select-widget-340d506f.js → select-widget-058aea56.js} +32 -34
- package/{sfc-6dff7e31.js → sfc-f3c94efa.js} +8 -8
- package/share-field-3c11613d.js +735 -0
- package/{share-file-b0fa279f.js → share-file-302ad348.js} +40 -42
- package/{slider-widget-c7d628c1.js → slider-widget-9d36d882.js} +15 -15
- package/slot-04ed2c7f.js +126 -0
- package/{static-text-widget-43eec36e.js → static-text-widget-07ff4e99.js} +14 -14
- package/{steps-widget-2ac5a9fb.js → steps-widget-1d7da31a.js} +13 -13
- package/subMenu-widget-b3e859bb.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-3f9f9693.js → subMenu-widget.vue_vue_type_script_setup_true_lang-24c94a78.js} +3 -3
- package/{switch-widget-13cc0d36.js → switch-widget-3947e730.js} +15 -15
- package/{tab-pane-widget-a00a07ed.js → tab-pane-widget-268242a1.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-671cd303.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-a5ca28f8.js} +5 -5
- package/table-col-widget-95c98e99.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-fecbcf5c.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-70720ead.js} +6 -6
- package/{table-widget-69afa370.js → table-widget-5412b3bd.js} +15 -15
- package/{tabs-widget-4666af9a.js → tabs-widget-51f3586b.js} +8 -8
- package/{tag-widget-4f307f8a.js → tag-widget-38912f1d.js} +16 -16
- package/{text-widget-e6060cf2.js → text-widget-aa225e3e.js} +16 -16
- package/{textarea-widget-67d467bc.js → textarea-widget-74a60ad6.js} +15 -15
- package/{time-picker-range-widget-116e95e0.js → time-picker-range-widget-3d168afe.js} +15 -15
- package/{time-picker-widget-b525fcd6.js → time-picker-widget-9e00ead5.js} +15 -15
- package/{time-select-widget-b8038ee7.js → time-select-widget-eb8aeadc.js} +15 -15
- package/{tmpl-widget-03a6d6f6.js → tmpl-widget-f2989a8d.js} +14 -14
- package/{tree-select-widget-210aba6b.js → tree-select-widget-49a6fc7b.js} +15 -15
- package/{tree-widget-bb67e56d.js → tree-widget-3e380f2c.js} +13 -13
- package/{uuid-758326c8.js → uuid-9d29d969.js} +1 -1
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7763be82.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-6de179d0.js} +47 -49
- package/wrapper-widget-6928b962.js +71 -0
- package/checkbox-widget-1dfb4a33.js +0 -83
- package/content-wrapper-d2b0a0a7.js +0 -14
- package/default-slot-widget-b6b39f66.js +0 -24
- package/default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-f37b50ff.js +0 -76
- package/feedback-widget-299c6433.js +0 -24
- package/form-item-wrapper-f604ffdd.js +0 -86
- package/form-widget-570f285b.js +0 -227
- package/picture-upload-widget-4dfa94e2.js +0 -100
- package/share-field-6eef45af.js +0 -709
- package/slot-b68d57be.js +0 -127
- package/subMenu-widget-03da48c6.js +0 -16
- package/table-col-widget-cec3b8bd.js +0 -20
- package/wrapper-widget-e8bf4b03.js +0 -78
package/share-field-6eef45af.js
DELETED
|
@@ -1,709 +0,0 @@
|
|
|
1
|
-
var an = Object.defineProperty;
|
|
2
|
-
var cn = (t, r, h) => r in t ? an(t, r, { enumerable: !0, configurable: !0, writable: !0, value: h }) : t[r] = h;
|
|
3
|
-
var Ue = (t, r, h) => (cn(t, typeof r != "symbol" ? r + "" : r, h), h);
|
|
4
|
-
import { onMounted as Qe, nextTick as Xe, onActivated as fn, onErrorCaptured as ln, watch as Z, isRef as Ye, reactive as mn, ref as fe, computed as Ce, onBeforeUnmount as vn, toRefs as dn } from "vue";
|
|
5
|
-
import { b as Me, e as Se, o as X, c as Y, r as gn, d as Q, H as hn, t as Ze, f as we, j as pn, l as Vn, x as Ee, w as On } from "./enum-type-8ef23706.js";
|
|
6
|
-
import { p as qe, b as et, g as bn, f as le, a as yn } from "./multirow-c75e5d8b.js";
|
|
7
|
-
import { u as tt } from "./icon-e9532b43.js";
|
|
8
|
-
import { f as I, l as me, m as Cn, n as Ge, g as k, b as En } from "./expression-cce40b94.js";
|
|
9
|
-
import { b as nt, d as _e, B as q, P as ot, c as rt, e as Rn, a as Mn } from "./baseImp-2fb467c1.js";
|
|
10
|
-
import { F as Sn } from "./slot-b68d57be.js";
|
|
11
|
-
import { c as De, t as st, l as _n } from "./uuid-758326c8.js";
|
|
12
|
-
import { f as Dn, d as xn, h as Re, e as Pn } from "./index-4346f0e4.js";
|
|
13
|
-
import { W as A, d as U } from "./enum-type-b66b08e2.js";
|
|
14
|
-
function Wn() {
|
|
15
|
-
return {
|
|
16
|
-
onMountedOrActivated: (h) => {
|
|
17
|
-
let E = !1;
|
|
18
|
-
Qe(() => {
|
|
19
|
-
h(), Xe(() => {
|
|
20
|
-
E = !0;
|
|
21
|
-
});
|
|
22
|
-
}), fn(() => {
|
|
23
|
-
E && h();
|
|
24
|
-
});
|
|
25
|
-
},
|
|
26
|
-
onCompErrorCaptured: () => {
|
|
27
|
-
ln((h) => (console.log(h), !1));
|
|
28
|
-
}
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
function Nn(t, r) {
|
|
32
|
-
const { getWidgetOption: h, getWidgetOptionByPropValue: E } = nt(t, r), P = (_) => h(_);
|
|
33
|
-
return {
|
|
34
|
-
existFunc: P,
|
|
35
|
-
handleFunc: (_, F) => {
|
|
36
|
-
if (Me(_)) {
|
|
37
|
-
var T = P(String(_));
|
|
38
|
-
return _e(T, F);
|
|
39
|
-
} else {
|
|
40
|
-
var T = E(De(_));
|
|
41
|
-
return _e(T, F);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
};
|
|
45
|
-
}
|
|
46
|
-
class xe {
|
|
47
|
-
constructor(r) {
|
|
48
|
-
Ue(this, "refList", {});
|
|
49
|
-
r && (this.refList = r);
|
|
50
|
-
}
|
|
51
|
-
initRefList() {
|
|
52
|
-
this.refList || (this.refList = {});
|
|
53
|
-
}
|
|
54
|
-
getWidgetRef(r) {
|
|
55
|
-
if (r)
|
|
56
|
-
return this.initRefList(), this.refList[r];
|
|
57
|
-
}
|
|
58
|
-
setWidgetRef(r, h) {
|
|
59
|
-
r && (this.initRefList(), this.refList[r] = h);
|
|
60
|
-
}
|
|
61
|
-
removeWidgetRef(r) {
|
|
62
|
-
r && this.refList && delete this.refList[r.toString()];
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
function ve(t) {
|
|
66
|
-
t || (t = {});
|
|
67
|
-
const r = new xe(t), { instance: h } = tt(), E = (d) => r.getWidgetRef(d == null ? void 0 : d.toString()), P = (d, p, O) => {
|
|
68
|
-
var y = [], n = [];
|
|
69
|
-
let l = E(d);
|
|
70
|
-
return l && y.push(l), y == null || y.forEach((o) => {
|
|
71
|
-
var s = _(o, p, O);
|
|
72
|
-
s && n.push(s);
|
|
73
|
-
}), n;
|
|
74
|
-
}, a = (d, p) => {
|
|
75
|
-
var O;
|
|
76
|
-
return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[p.toString()];
|
|
77
|
-
}, _ = (d, p, O) => {
|
|
78
|
-
var y = a(d, p);
|
|
79
|
-
if (y) {
|
|
80
|
-
var n = [];
|
|
81
|
-
return O && (n = Object.values(O)), y(...n);
|
|
82
|
-
}
|
|
83
|
-
}, F = (d, p, O) => {
|
|
84
|
-
var y = [];
|
|
85
|
-
if (d) {
|
|
86
|
-
var n = De(st(d, !0));
|
|
87
|
-
n == null || n.forEach((l) => {
|
|
88
|
-
var o = P(l, p, O);
|
|
89
|
-
Se(o) || y.push(o);
|
|
90
|
-
});
|
|
91
|
-
}
|
|
92
|
-
return Array.isArray(d) ? y : y == null ? void 0 : y[0];
|
|
93
|
-
}, T = (d, p) => {
|
|
94
|
-
let O = X(t);
|
|
95
|
-
F(O, d, p);
|
|
96
|
-
}, v = (d, p) => {
|
|
97
|
-
var s, u, m;
|
|
98
|
-
const O = (u = (s = p || h) == null ? void 0 : s.exposed) == null ? void 0 : u.getField();
|
|
99
|
-
var y = qe(O == null ? void 0 : O.id);
|
|
100
|
-
const n = (i) => (i == null ? void 0 : i.id) === d, l = (i) => {
|
|
101
|
-
var R;
|
|
102
|
-
var b = qe(i == null ? void 0 : i.id);
|
|
103
|
-
return (y == null ? void 0 : y.groupName) === (b == null ? void 0 : b.groupName) && ((b == null ? void 0 : b.id) === d || ((R = i == null ? void 0 : i._source) == null ? void 0 : R.id) === d);
|
|
104
|
-
}, o = (m = X(r.refList)) == null ? void 0 : m.find((i) => {
|
|
105
|
-
var R, L;
|
|
106
|
-
try {
|
|
107
|
-
const D = (L = (R = r.refList[i]) == null ? void 0 : R.exposed) == null ? void 0 : L.getField();
|
|
108
|
-
var b = n(D);
|
|
109
|
-
return !b && (y != null && y.groupName) && (b = l(D)), b;
|
|
110
|
-
} catch {
|
|
111
|
-
return !1;
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
if (o)
|
|
115
|
-
return E(o);
|
|
116
|
-
}, V = (d) => {
|
|
117
|
-
if (d) {
|
|
118
|
-
let p = d;
|
|
119
|
-
r == null || r.setWidgetRef(p, h);
|
|
120
|
-
}
|
|
121
|
-
}, S = (d) => {
|
|
122
|
-
if (d) {
|
|
123
|
-
let p = d;
|
|
124
|
-
r == null || r.removeWidgetRef(p);
|
|
125
|
-
}
|
|
126
|
-
};
|
|
127
|
-
return {
|
|
128
|
-
findWidgetAndCall: P,
|
|
129
|
-
getWidgetRef: E,
|
|
130
|
-
callWidgetsExposed: F,
|
|
131
|
-
callRefFunc: _,
|
|
132
|
-
existRefFunc: a,
|
|
133
|
-
setAllRefList: T,
|
|
134
|
-
findRefById: v,
|
|
135
|
-
findRefByName: E,
|
|
136
|
-
changeRegisterToRefList: (d, p) => {
|
|
137
|
-
d && (V(d), S(p));
|
|
138
|
-
},
|
|
139
|
-
registerToRefList: V,
|
|
140
|
-
unregisterFromRefList: S
|
|
141
|
-
};
|
|
142
|
-
}
|
|
143
|
-
const Ln = (t, r, h) => {
|
|
144
|
-
const E = new xe(t), { callRefFunc: P } = ve(t), { parseGroupId: a } = et();
|
|
145
|
-
if (!t || t.length <= 0 || !r)
|
|
146
|
-
return;
|
|
147
|
-
const _ = () => {
|
|
148
|
-
var n, l;
|
|
149
|
-
return (l = (n = X(t)) == null ? void 0 : n.map((o) => P(t == null ? void 0 : t[o], A.getField))) == null ? void 0 : l.filter((o) => !!o);
|
|
150
|
-
}, F = (n) => {
|
|
151
|
-
var u;
|
|
152
|
-
const l = (u = _()) == null ? void 0 : u.find((m) => (m == null ? void 0 : m.id) === n);
|
|
153
|
-
if (!l)
|
|
154
|
-
return;
|
|
155
|
-
const o = q.getName(l), s = E.getWidgetRef(o);
|
|
156
|
-
if (s)
|
|
157
|
-
return { ref: s, name: o, id: l == null ? void 0 : l.id };
|
|
158
|
-
}, T = (n, l) => {
|
|
159
|
-
if (!Y(l))
|
|
160
|
-
return;
|
|
161
|
-
const o = q.getName(n), s = E.getWidgetRef(o);
|
|
162
|
-
if (s) {
|
|
163
|
-
const u = q.getOptions(n, I.defaultValue, !1, !(h != null && h.designState), { ...h, formData: l });
|
|
164
|
-
Y(u) && (Ye(u) ? Z(u, (m) => {
|
|
165
|
-
P(s, A.setValue, { newValue: m });
|
|
166
|
-
}) : P(s, A.setValue, { newValue: u }));
|
|
167
|
-
}
|
|
168
|
-
}, v = (n, l) => {
|
|
169
|
-
const o = F(n);
|
|
170
|
-
if (!o)
|
|
171
|
-
return;
|
|
172
|
-
const s = o.name, u = P(o.ref, A.getValue), m = P(o.ref, A.getCheckedItems), i = {};
|
|
173
|
-
return Se(u) || (i[s] = u), !pn(m) && !l && (i[`${s}${me.checkedOptions}`] = m), i;
|
|
174
|
-
}, V = (n, l) => {
|
|
175
|
-
var s;
|
|
176
|
-
var o = [];
|
|
177
|
-
if ((s = _()) == null || s.forEach((u) => {
|
|
178
|
-
if (!u)
|
|
179
|
-
return;
|
|
180
|
-
const m = u == null ? void 0 : u.id;
|
|
181
|
-
var i = m === n;
|
|
182
|
-
const b = a(m), R = (b == null ? void 0 : b.id) === n, L = (b == null ? void 0 : b.groupName) === l;
|
|
183
|
-
return i || R && (L || !l) ? (o.push(u), !0) : !1;
|
|
184
|
-
}), !(!o || o.length <= 0))
|
|
185
|
-
return o == null ? void 0 : o.map((u) => {
|
|
186
|
-
var m;
|
|
187
|
-
return {
|
|
188
|
-
id: u == null ? void 0 : u.id,
|
|
189
|
-
name: (m = u == null ? void 0 : u._source) == null ? void 0 : m.name,
|
|
190
|
-
source: u == null ? void 0 : u._source
|
|
191
|
-
};
|
|
192
|
-
});
|
|
193
|
-
}, S = (n, l) => {
|
|
194
|
-
var o = [];
|
|
195
|
-
if (!n || (n == null ? void 0 : n.length) <= 0)
|
|
196
|
-
return o;
|
|
197
|
-
const s = a(r), u = s == null ? void 0 : s.groupName;
|
|
198
|
-
return l === le.Inner2Outer ? n == null || n.forEach((m) => {
|
|
199
|
-
var i = V(m);
|
|
200
|
-
i && (i == null ? void 0 : i.length) > 0 && o.push(...i);
|
|
201
|
-
}) : n == null || n.forEach((m) => {
|
|
202
|
-
var i = V(m, u);
|
|
203
|
-
i && (i == null ? void 0 : i.length) > 0 && o.push(...i);
|
|
204
|
-
}), o;
|
|
205
|
-
}, B = (n, l) => {
|
|
206
|
-
const o = {};
|
|
207
|
-
if (!n || n.length <= 0)
|
|
208
|
-
return o;
|
|
209
|
-
if (l === le.Inner2Outer) {
|
|
210
|
-
var s = gn(n, (u) => {
|
|
211
|
-
var m;
|
|
212
|
-
return (m = u.source) == null ? void 0 : m.id;
|
|
213
|
-
});
|
|
214
|
-
s == null || s.forEach((u) => {
|
|
215
|
-
var b;
|
|
216
|
-
const m = u.group[0], i = [];
|
|
217
|
-
(b = u == null ? void 0 : u.children) == null || b.forEach((R) => {
|
|
218
|
-
const L = v(R == null ? void 0 : R.id, !0);
|
|
219
|
-
if (Y(L)) {
|
|
220
|
-
var D = Object.values(De(L));
|
|
221
|
-
i.push(...D);
|
|
222
|
-
}
|
|
223
|
-
}), m && Q(o, { [m]: i });
|
|
224
|
-
});
|
|
225
|
-
} else
|
|
226
|
-
n.forEach((u) => {
|
|
227
|
-
const m = v(u == null ? void 0 : u.id);
|
|
228
|
-
Y(m) && Q(o, m);
|
|
229
|
-
});
|
|
230
|
-
return o;
|
|
231
|
-
}, d = (n) => {
|
|
232
|
-
var l = {};
|
|
233
|
-
return n == null || n.forEach((o) => {
|
|
234
|
-
var s;
|
|
235
|
-
o != null && o.source && (o != null && o.id) && (l[(s = o == null ? void 0 : o.source) == null ? void 0 : s.id] = o == null ? void 0 : o.id);
|
|
236
|
-
}), l;
|
|
237
|
-
}, p = (n, l, o) => {
|
|
238
|
-
if (o === le.Inner2Inner) {
|
|
239
|
-
const i = hn(l), { updateFomula: b } = rt(), { buildVariable: R } = Rn();
|
|
240
|
-
var s = d(n);
|
|
241
|
-
if (Y(s)) {
|
|
242
|
-
var u = q.getOrgOption(l, I.defaultValue), m = b(Ze(u), s, (L, D) => {
|
|
243
|
-
var j = s[L];
|
|
244
|
-
return Se(j) ? R(L) : R(j);
|
|
245
|
-
});
|
|
246
|
-
return q.setOrgOption(i, I.defaultValue, we(m)), i;
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
return l;
|
|
250
|
-
}, O = (n) => {
|
|
251
|
-
const l = n == null ? void 0 : n.id;
|
|
252
|
-
var o = q.getOrgOption(n, I.defaultValue);
|
|
253
|
-
if (o === void 0)
|
|
254
|
-
return;
|
|
255
|
-
const s = bn(r, l);
|
|
256
|
-
if (s === le.DiffInner)
|
|
257
|
-
return;
|
|
258
|
-
var u = ot.getFormulaRelatedField(o);
|
|
259
|
-
if (!u || u.length <= 0)
|
|
260
|
-
return;
|
|
261
|
-
var m = S(u, s);
|
|
262
|
-
if (!(m != null && m.some((b) => b.id === r)))
|
|
263
|
-
return;
|
|
264
|
-
const i = B(m, s);
|
|
265
|
-
T(p(m, n, s), i);
|
|
266
|
-
};
|
|
267
|
-
(() => {
|
|
268
|
-
var n;
|
|
269
|
-
(n = _()) == null || n.forEach((l) => {
|
|
270
|
-
O(l);
|
|
271
|
-
});
|
|
272
|
-
})();
|
|
273
|
-
}, Tn = (t, r, h, E, P) => {
|
|
274
|
-
var S, B, d;
|
|
275
|
-
if (P || !Y(h))
|
|
276
|
-
return;
|
|
277
|
-
const { callRefFunc: a } = ve(t), _ = (B = (S = X(t)) == null ? void 0 : S.map((p) => a(t == null ? void 0 : t[p], A.getField))) == null ? void 0 : B.filter((p) => !!p), { parseGroupId: F } = et(), T = new xe(t);
|
|
278
|
-
var v = F(r), V = v == null ? void 0 : v.groupName;
|
|
279
|
-
(d = X(h)) == null || d.forEach((p) => {
|
|
280
|
-
var y, n, l;
|
|
281
|
-
if (!((y = st(E == null ? void 0 : E.newValue, !0)) != null && y.includes(p)))
|
|
282
|
-
return;
|
|
283
|
-
const O = (n = h == null ? void 0 : h[p]) == null ? void 0 : n.result;
|
|
284
|
-
(l = X(O)) == null || l.forEach((o) => {
|
|
285
|
-
var u;
|
|
286
|
-
const s = O == null ? void 0 : O[o];
|
|
287
|
-
(u = s == null ? void 0 : s.ids) == null || u.forEach((m) => {
|
|
288
|
-
var L;
|
|
289
|
-
const i = (L = Dn(_, (D) => {
|
|
290
|
-
var j, w;
|
|
291
|
-
return ((D == null ? void 0 : D.id) === m || ((j = D == null ? void 0 : D._source) == null ? void 0 : j.id) === m) && (!V || ((w = D == null ? void 0 : D.id) == null ? void 0 : w.indexOf(V)) != -1);
|
|
292
|
-
})) == null ? void 0 : L[0];
|
|
293
|
-
if (!i)
|
|
294
|
-
return;
|
|
295
|
-
const b = q.getName(i), R = T.getWidgetRef(b);
|
|
296
|
-
R ? a(R, s == null ? void 0 : s.event, s == null ? void 0 : s.args) : Z(() => t, (D) => {
|
|
297
|
-
const j = T.getWidgetRef(b);
|
|
298
|
-
j && a(j, s == null ? void 0 : s.event, s == null ? void 0 : s.args);
|
|
299
|
-
});
|
|
300
|
-
});
|
|
301
|
-
});
|
|
302
|
-
});
|
|
303
|
-
};
|
|
304
|
-
function ut(t, r) {
|
|
305
|
-
var h;
|
|
306
|
-
return (h = t == null ? void 0 : t.classList) != null && h.contains(r) ? t : t != null && t.parentElement ? ut(t == null ? void 0 : t.parentElement, r) : null;
|
|
307
|
-
}
|
|
308
|
-
function Bn() {
|
|
309
|
-
const t = (v) => {
|
|
310
|
-
if (v)
|
|
311
|
-
return v != null && v.ref ? v == null ? void 0 : v.ref : v;
|
|
312
|
-
}, r = (v) => {
|
|
313
|
-
var V, S;
|
|
314
|
-
try {
|
|
315
|
-
(S = (V = t(v)) == null ? void 0 : V.focus) == null || S.call(V);
|
|
316
|
-
} catch (B) {
|
|
317
|
-
console.log(B);
|
|
318
|
-
}
|
|
319
|
-
}, h = (v) => {
|
|
320
|
-
var V, S;
|
|
321
|
-
try {
|
|
322
|
-
(S = (V = t(v)) == null ? void 0 : V.blur) == null || S.call(V);
|
|
323
|
-
} catch (B) {
|
|
324
|
-
console.log(B);
|
|
325
|
-
}
|
|
326
|
-
}, E = (v) => {
|
|
327
|
-
var V;
|
|
328
|
-
return (V = t(v)) == null ? void 0 : V.selectionStart;
|
|
329
|
-
}, P = (v) => {
|
|
330
|
-
var V;
|
|
331
|
-
return (V = t(v)) == null ? void 0 : V.selectionEnd;
|
|
332
|
-
}, a = (v, V) => {
|
|
333
|
-
var S;
|
|
334
|
-
return (S = t(v)) == null ? void 0 : S.setSelectionRange(V, V);
|
|
335
|
-
}, _ = (v, V) => {
|
|
336
|
-
r(v), a(v, V);
|
|
337
|
-
};
|
|
338
|
-
return {
|
|
339
|
-
getSelectionStart: E,
|
|
340
|
-
getSelectionEnd: P,
|
|
341
|
-
setSelectionStart: a,
|
|
342
|
-
blur: h,
|
|
343
|
-
focus: r,
|
|
344
|
-
setMousePos: _,
|
|
345
|
-
getMousePos: (v) => E(v),
|
|
346
|
-
insertOnMousePos: (v, V, S) => {
|
|
347
|
-
const B = E(v), d = P(v), p = Cn(S, V, B, d);
|
|
348
|
-
return Xe(() => {
|
|
349
|
-
_(v, B + (V == null ? void 0 : V.length));
|
|
350
|
-
}), p;
|
|
351
|
-
}
|
|
352
|
-
};
|
|
353
|
-
}
|
|
354
|
-
const Je = (t) => {
|
|
355
|
-
var h;
|
|
356
|
-
const { getFormulaFields: r } = rt();
|
|
357
|
-
return ((h = r(Ze(t))) == null ? void 0 : h.length) > 0;
|
|
358
|
-
}, z = (t) => {
|
|
359
|
-
const r = t.type;
|
|
360
|
-
return ![U.fileUpload, U.pictureUpload].includes(r) && t.formItemFlag || [U.form, U.dialog].includes(r);
|
|
361
|
-
}, ze = (t) => {
|
|
362
|
-
const r = t.type;
|
|
363
|
-
return [U.treeSelect, U.cascader, U.select, U.checkbox, U.radio].includes(r);
|
|
364
|
-
};
|
|
365
|
-
function Jn(t) {
|
|
366
|
-
const r = t == null ? void 0 : t.designState, h = (t == null ? void 0 : t.created) != !1, E = t == null ? void 0 : t.exResetField, P = t == null ? void 0 : t.extInitFieldModel, a = t == null ? void 0 : t.widget, _ = t == null ? void 0 : t.designer, F = _ == null ? void 0 : _.pageConfig, { formRefList: T, globalRefList: v, globalConfig: V, globalFormName: S, globalDataModel: B, rowScope: d } = Sn.globalInject();
|
|
367
|
-
let p = mn(B || {});
|
|
368
|
-
const O = ve(v), y = ve(T), n = () => Ee(p), l = () => d, o = () => a, s = {
|
|
369
|
-
instance: {
|
|
370
|
-
exposed: {
|
|
371
|
-
getFormData: !r && Je(a) ? n : null,
|
|
372
|
-
findRefByName: O.getWidgetRef,
|
|
373
|
-
getField: o,
|
|
374
|
-
getRowScope: l
|
|
375
|
-
}
|
|
376
|
-
},
|
|
377
|
-
designState: r,
|
|
378
|
-
pageConfig: F,
|
|
379
|
-
formData: !r && Je(a) ? p : {},
|
|
380
|
-
globalConfig: V
|
|
381
|
-
}, u = (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$: m, dispatch: i, emit$: b } = yn(), { instance: R } = tt(), { onCompErrorCaptured: L } = Wn(), { existFunc: D } = Nn({ options: a == null ? void 0 : a.options }, s), { attrs: j, extendAttrs: w, events: H, slots: Pe, rules: We, fieldName: M, buildRules: at, clearRules: ct, disableChangeValidate: it, enableChangeValidate: ft, optionItems: re, filterOptionItems: lt, getCheckedOptionText: mt, getCheckedOptionValues: vt, getCheckedOptionLabels: dt, getCheckedOptionItems: gt, activeOptionItems: ht, activeOptionItem: pt, activeOptionItemIndex: Vt, setOptionItems: Ot, setWidgetOption: ee, getWidgetOption: de, setFieldEnable: bt, getFieldOptions: te, setFieldOptions: yt, computedDefaultValue: se, hasDefaultValue: ge, singleOption: Ct, watchOption: Et, addCssClass: Rt, removeCssClass: Mt } = nt(a, s, u, R), { isIdClass: St, getIdByIdClass: _t } = xn(a), { getOneSchemaData: Dt, getSchemaDataObject: xt, getSchemaDatas: Pt } = Mn(s), ne = Bn();
|
|
382
|
-
let he = null, W = fe();
|
|
383
|
-
const G = fe(), Wt = () => M.value, Nt = Ce({
|
|
384
|
-
get: () => {
|
|
385
|
-
if (Me(W.value)) {
|
|
386
|
-
var e = Number(W.value);
|
|
387
|
-
return isNaN(e) ? void 0 : (W.value = e, e);
|
|
388
|
-
}
|
|
389
|
-
return W.value;
|
|
390
|
-
},
|
|
391
|
-
set: (e) => {
|
|
392
|
-
W.value = e;
|
|
393
|
-
}
|
|
394
|
-
}), Lt = Ce({
|
|
395
|
-
get: () => {
|
|
396
|
-
if (Me(W.value)) {
|
|
397
|
-
var e = we(W.value);
|
|
398
|
-
Vn(e) && (W.value = e);
|
|
399
|
-
}
|
|
400
|
-
return W.value;
|
|
401
|
-
},
|
|
402
|
-
set: (e) => {
|
|
403
|
-
W.value = e;
|
|
404
|
-
}
|
|
405
|
-
}), pe = (e) => {
|
|
406
|
-
var f, c, g;
|
|
407
|
-
return (g = (c = (f = O.getWidgetRef(M.value)) == null ? void 0 : f.exposed) == null ? void 0 : c.getCheckedItems) == null ? void 0 : g.call(c, e);
|
|
408
|
-
}, Ne = (e) => {
|
|
409
|
-
var f, c, g;
|
|
410
|
-
return (g = (c = (f = O.getWidgetRef(M.value)) == null ? void 0 : f.exposed) == null ? void 0 : c.getCheckedLabels) == null ? void 0 : g.call(c, e);
|
|
411
|
-
}, Tt = (e) => {
|
|
412
|
-
var f, c, g;
|
|
413
|
-
return (g = (c = (f = O.getWidgetRef(M.value)) == null ? void 0 : f.exposed) == null ? void 0 : c.getCheckedText) == null ? void 0 : g.call(c, e);
|
|
414
|
-
}, Le = () => {
|
|
415
|
-
if (!ze(a))
|
|
416
|
-
return;
|
|
417
|
-
const e = W.value, f = Ne(e), c = Tt(e);
|
|
418
|
-
var g = pe(e);
|
|
419
|
-
Te(f, g, c);
|
|
420
|
-
}, Te = (e, f, c) => {
|
|
421
|
-
var g = {};
|
|
422
|
-
let x = te("textName", !1);
|
|
423
|
-
[`${M.value}${me.optionText}`, x].forEach((C) => {
|
|
424
|
-
C && g[C] === void 0 && (g[C] = e);
|
|
425
|
-
});
|
|
426
|
-
let N = te("optionName", !1);
|
|
427
|
-
[`${M.value}${me.checkedOptions}`, N].forEach((C) => {
|
|
428
|
-
C && g[C] === void 0 && (g[C] = f);
|
|
429
|
-
});
|
|
430
|
-
let $ = te("labelName", !1);
|
|
431
|
-
e != c && [`${M.value}${me.optionLabelName}`, $].forEach((C) => {
|
|
432
|
-
C && g[C] === void 0 && (g[C] = c);
|
|
433
|
-
}), Q(p, g);
|
|
434
|
-
}, ue = (e) => {
|
|
435
|
-
if (z(a)) {
|
|
436
|
-
var f = { [M.value]: e };
|
|
437
|
-
Q(p, f);
|
|
438
|
-
}
|
|
439
|
-
}, ae = (e) => {
|
|
440
|
-
r || ue(e);
|
|
441
|
-
}, Be = (e) => te(e, !1), Fe = () => {
|
|
442
|
-
var e = dn(p);
|
|
443
|
-
W = ot.get(e, M.value);
|
|
444
|
-
}, $e = (e) => {
|
|
445
|
-
he = Ee(e);
|
|
446
|
-
}, Bt = () => {
|
|
447
|
-
r || P && P(J());
|
|
448
|
-
}, Ft = () => {
|
|
449
|
-
!r || !z(a) || (ue(se.value), Fe());
|
|
450
|
-
}, Ve = (e, f) => {
|
|
451
|
-
if (!z(a))
|
|
452
|
-
return;
|
|
453
|
-
b(I.fieldValueChanged, { newValue: e, oldValue: f });
|
|
454
|
-
const c = { fieldId: a.id, fieldName: M.value, newValue: e, oldValue: f };
|
|
455
|
-
i(S, I.fieldChange, c, R);
|
|
456
|
-
}, $t = (e) => D(e), ce = (e, f) => _e(de(e), f), It = (e) => {
|
|
457
|
-
ae(e), Ae(), ce(I.onInput, { value: e });
|
|
458
|
-
}, jt = (...e) => {
|
|
459
|
-
var g, x, N;
|
|
460
|
-
const c = ((g = e == null ? void 0 : e[0]) == null ? void 0 : g.target) != null ? (N = (x = e == null ? void 0 : e[0]) == null ? void 0 : x.target) == null ? void 0 : N.value : e == null ? void 0 : e[0];
|
|
461
|
-
ae(c), Ve(c, he), Ae(), ce(I.onChange, { value: c, oldValue: he }), $e(c);
|
|
462
|
-
}, kt = () => {
|
|
463
|
-
m(En.setFormData, (e) => {
|
|
464
|
-
oe(e[M.value]);
|
|
465
|
-
}), m(I.fieldValueChanged, (e) => {
|
|
466
|
-
ce(I.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
467
|
-
});
|
|
468
|
-
}, At = () => {
|
|
469
|
-
let e = M.value;
|
|
470
|
-
z(a) ? ((!On(p, e) || p[e] === void 0) && (ge() ? ue(se.value) : ue(null)), Fe()) : ge() && oe(se.value), $e(J()), Bt();
|
|
471
|
-
}, Ht = () => {
|
|
472
|
-
Z(() => re == null ? void 0 : re.value, (e, f) => {
|
|
473
|
-
Le();
|
|
474
|
-
});
|
|
475
|
-
}, Kt = () => {
|
|
476
|
-
var e, f;
|
|
477
|
-
h && (Qe(() => {
|
|
478
|
-
var c, g;
|
|
479
|
-
try {
|
|
480
|
-
(g = (c = H == null ? void 0 : H.value) == null ? void 0 : c.mounted) == null || g.call(c), on(), Ht();
|
|
481
|
-
} catch (x) {
|
|
482
|
-
console.log(x);
|
|
483
|
-
}
|
|
484
|
-
}), vn(() => {
|
|
485
|
-
O.unregisterFromRefList(M.value), y.unregisterFromRefList(M.value);
|
|
486
|
-
}), O.registerToRefList(M.value), y.registerToRefList(M.value), At(), ie(), kt(), Re(a, "change") && (H.value.change = jt), Re(a, "input") && (H.value.input = It), (f = (e = H == null ? void 0 : H.value) == null ? void 0 : e.created) == null || f.call(e), L());
|
|
487
|
-
}, Ut = (e = !0) => {
|
|
488
|
-
ee(k.readonly, e);
|
|
489
|
-
}, qt = (e = !0) => {
|
|
490
|
-
ee(k.disabled, e);
|
|
491
|
-
}, Gt = (e = !0) => {
|
|
492
|
-
ee(k.hidden, e), e ? Ke() : ie();
|
|
493
|
-
}, Jt = (e = !0) => {
|
|
494
|
-
bt(k.required, e), ie();
|
|
495
|
-
}, zt = (e) => {
|
|
496
|
-
ee(k.label, e);
|
|
497
|
-
}, J = () => W.value, Ie = (e) => {
|
|
498
|
-
W.value = e;
|
|
499
|
-
}, oe = (e) => {
|
|
500
|
-
let f = Ee(J());
|
|
501
|
-
if (Ie(e), !z(a))
|
|
502
|
-
return;
|
|
503
|
-
const c = J();
|
|
504
|
-
f !== c && (ae(c), Ve(e, f));
|
|
505
|
-
}, Qt = () => {
|
|
506
|
-
ge() && oe(se.value), E == null || E();
|
|
507
|
-
}, Xt = (e) => {
|
|
508
|
-
const f = J(), c = ne.insertOnMousePos(G.value, e, f);
|
|
509
|
-
oe(c);
|
|
510
|
-
}, Yt = (e, f) => {
|
|
511
|
-
Z(() => W.value, (c, g) => {
|
|
512
|
-
e == null || e({ id: a.id, name: M.value, newValue: c, oldValue: g });
|
|
513
|
-
}, f);
|
|
514
|
-
}, Zt = (e) => {
|
|
515
|
-
var N;
|
|
516
|
-
e.preventDefault();
|
|
517
|
-
const f = ($) => {
|
|
518
|
-
var K;
|
|
519
|
-
const C = (K = Array.from($.classList)) == null ? void 0 : K.find((be) => St(be));
|
|
520
|
-
return C ? _t(C) : "";
|
|
521
|
-
}, c = document.activeElement;
|
|
522
|
-
if (!c)
|
|
523
|
-
return;
|
|
524
|
-
const g = document.getElementsByClassName(Ge.formItemTarget);
|
|
525
|
-
for (var x = 0; x < g.length; x++) {
|
|
526
|
-
const $ = g[x], C = ut(c, Ge.formItemTarget);
|
|
527
|
-
if (!C)
|
|
528
|
-
continue;
|
|
529
|
-
const K = f($), be = f(C);
|
|
530
|
-
if (K === be) {
|
|
531
|
-
if (x === g.length - 1)
|
|
532
|
-
return;
|
|
533
|
-
const rn = g[x + 1], sn = f(rn), ye = O.findRefById(sn, R);
|
|
534
|
-
try {
|
|
535
|
-
(N = ye == null ? void 0 : ye.exposed) == null || N.focus();
|
|
536
|
-
} catch (un) {
|
|
537
|
-
console.log(un);
|
|
538
|
-
}
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
let wt = () => {
|
|
543
|
-
var $;
|
|
544
|
-
let e = {
|
|
545
|
-
componentName: M.value,
|
|
546
|
-
//用于组件事件emitter发射与接收处理
|
|
547
|
-
refList: T,
|
|
548
|
-
allRefList: v,
|
|
549
|
-
changeRegisterToRefList: (C, K) => {
|
|
550
|
-
O.changeRegisterToRefList(C, K), y.changeRegisterToRefList(C, K);
|
|
551
|
-
},
|
|
552
|
-
getField: o,
|
|
553
|
-
getFormData: n,
|
|
554
|
-
getValue: J,
|
|
555
|
-
setValue: Ie,
|
|
556
|
-
emit$: b,
|
|
557
|
-
findRefByName: O.getWidgetRef,
|
|
558
|
-
findRefById: O.findRefById,
|
|
559
|
-
callRefFunc: O.callRefFunc,
|
|
560
|
-
getWidgetOption: de,
|
|
561
|
-
setWidgetOption: ee,
|
|
562
|
-
refreshKey: ke,
|
|
563
|
-
getRowScope: l,
|
|
564
|
-
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
565
|
-
getOneSchemaData: Dt,
|
|
566
|
-
getSchemaDatas: Pt,
|
|
567
|
-
getSchemaDataObject: xt,
|
|
568
|
-
addCssClass: Rt,
|
|
569
|
-
removeCssClass: Mt
|
|
570
|
-
}, f = {
|
|
571
|
-
resetField: Qt,
|
|
572
|
-
getValue: J,
|
|
573
|
-
setValue: oe,
|
|
574
|
-
refreshDefaultValue: Ft,
|
|
575
|
-
insertOnMousePos: Xt,
|
|
576
|
-
disableChangeValidate: it,
|
|
577
|
-
enableChangeValidate: ft,
|
|
578
|
-
focus: () => {
|
|
579
|
-
ne.focus(G.value);
|
|
580
|
-
},
|
|
581
|
-
blur: () => {
|
|
582
|
-
ne.blur(G.value);
|
|
583
|
-
},
|
|
584
|
-
getMousePos: () => {
|
|
585
|
-
ne.getMousePos(G.value);
|
|
586
|
-
},
|
|
587
|
-
setMousePos: (C) => {
|
|
588
|
-
ne.setMousePos(G.value, C);
|
|
589
|
-
}
|
|
590
|
-
}, c = {
|
|
591
|
-
getCheckedItems: pe,
|
|
592
|
-
getCheckedLabels: Ne
|
|
593
|
-
}, g = {
|
|
594
|
-
[k.required]: { name: A.setRequired, fn: Jt },
|
|
595
|
-
[k.label]: { name: A.setLabel, fn: zt },
|
|
596
|
-
[k.hidden]: { name: A.setHidden, fn: Gt },
|
|
597
|
-
[k.disabled]: { name: A.setDisabled, fn: qt },
|
|
598
|
-
[k.readonly]: { name: A.setReadonly, fn: Ut }
|
|
599
|
-
}, x = {};
|
|
600
|
-
($ = X(g)) == null || $.forEach((C) => {
|
|
601
|
-
if (Re(a, C)) {
|
|
602
|
-
const K = g[C];
|
|
603
|
-
x[K.name] = K.fn;
|
|
604
|
-
}
|
|
605
|
-
});
|
|
606
|
-
var N = Q(e, x);
|
|
607
|
-
return z(a) && (N = Q(N, f)), ze(a) && (N = Q(N, c)), N;
|
|
608
|
-
};
|
|
609
|
-
const en = Ce(() => ({
|
|
610
|
-
attrs: j.value,
|
|
611
|
-
extendAttrs: w.value,
|
|
612
|
-
events: H.value,
|
|
613
|
-
slots: Pe.value,
|
|
614
|
-
fieldKey: Oe.value,
|
|
615
|
-
fieldEditor: G.value,
|
|
616
|
-
fieldName: M.value
|
|
617
|
-
})), je = () => `${a == null ? void 0 : a.id}-${_n()}`, Oe = fe(je()), ke = () => {
|
|
618
|
-
Oe.value = je();
|
|
619
|
-
}, tn = (e) => {
|
|
620
|
-
t.designState && t.designer && Z(() => {
|
|
621
|
-
var f;
|
|
622
|
-
return (f = t == null ? void 0 : t.widget) == null ? void 0 : f[e];
|
|
623
|
-
}, (f, c) => {
|
|
624
|
-
const { emitHistoryChange: g } = Pn(t.designer);
|
|
625
|
-
g(`edit ${M.value}.${e},newValue:${f},oldValue:${c}`);
|
|
626
|
-
}, {
|
|
627
|
-
deep: !0
|
|
628
|
-
});
|
|
629
|
-
}, nn = (e, f, c) => {
|
|
630
|
-
const g = fe(), x = Be(e), N = ($) => {
|
|
631
|
-
f && (g.value = f($ || x));
|
|
632
|
-
};
|
|
633
|
-
return Ye(x) ? Z(x, ($) => {
|
|
634
|
-
N($), c && c($);
|
|
635
|
-
}) : N(x), g;
|
|
636
|
-
}, on = () => {
|
|
637
|
-
!z(a) || r || Yt((e) => {
|
|
638
|
-
Ln(v, a == null ? void 0 : a.id, s), Tn(v, a == null ? void 0 : a.id, q.getOptions(a, k.relate), e), Le();
|
|
639
|
-
}, { immediate: !0 });
|
|
640
|
-
}, Ae = () => {
|
|
641
|
-
const e = { propName: M.value };
|
|
642
|
-
i(S, I.fieldValidation, e, R);
|
|
643
|
-
}, He = () => {
|
|
644
|
-
const e = { fieldId: a.id, fieldName: M.value, rules: We };
|
|
645
|
-
i(S, I.fieldRuleChange, e, R);
|
|
646
|
-
}, ie = () => {
|
|
647
|
-
at(), He();
|
|
648
|
-
}, Ke = () => {
|
|
649
|
-
ct(), He();
|
|
650
|
-
};
|
|
651
|
-
return Kt(), {
|
|
652
|
-
exposed: wt(),
|
|
653
|
-
fieldModel: W,
|
|
654
|
-
objFieldModel: Lt,
|
|
655
|
-
numFieldModel: Nt,
|
|
656
|
-
fieldEditor: G,
|
|
657
|
-
fieldKey: Oe,
|
|
658
|
-
field: a,
|
|
659
|
-
instance: R,
|
|
660
|
-
attrs: j,
|
|
661
|
-
extendAttrs: w,
|
|
662
|
-
slots: Pe,
|
|
663
|
-
events: H,
|
|
664
|
-
rules: We,
|
|
665
|
-
fieldObj: en,
|
|
666
|
-
// isError,
|
|
667
|
-
// errorMsg,
|
|
668
|
-
pageConfig: F,
|
|
669
|
-
formModel: p,
|
|
670
|
-
fieldName: M,
|
|
671
|
-
propResultOpt: s,
|
|
672
|
-
optionItems: re,
|
|
673
|
-
activeOptionItems: ht,
|
|
674
|
-
activeOptionItem: pt,
|
|
675
|
-
activeOptionItemIndex: Vt,
|
|
676
|
-
filterOptionItems: lt,
|
|
677
|
-
setOptionItems: Ot,
|
|
678
|
-
getCheckedItems: pe,
|
|
679
|
-
getCheckedOptionItems: gt,
|
|
680
|
-
getCheckedOptionLabels: dt,
|
|
681
|
-
getCheckedOptionValues: vt,
|
|
682
|
-
getCheckedOptionText: mt,
|
|
683
|
-
refreshKey: ke,
|
|
684
|
-
watchKeyValue: nn,
|
|
685
|
-
watchPropAndSaveHistoryStep: tn,
|
|
686
|
-
existEvent: $t,
|
|
687
|
-
handleEvent: ce,
|
|
688
|
-
handleEnter: Zt,
|
|
689
|
-
getPropName: Wt,
|
|
690
|
-
emitFieldDataChange: Ve,
|
|
691
|
-
syncUpdateFormModel: ae,
|
|
692
|
-
getWidgetRef: O.getWidgetRef,
|
|
693
|
-
clearRules: Ke,
|
|
694
|
-
buildRules: ie,
|
|
695
|
-
getFieldOptionModel: Be,
|
|
696
|
-
getFieldOptions: te,
|
|
697
|
-
setFieldOptions: yt,
|
|
698
|
-
getWidgetOption: de,
|
|
699
|
-
singleOption: Ct,
|
|
700
|
-
watchOption: Et,
|
|
701
|
-
mergeOptionToFormModel: Te
|
|
702
|
-
};
|
|
703
|
-
}
|
|
704
|
-
export {
|
|
705
|
-
xe as R,
|
|
706
|
-
ve as a,
|
|
707
|
-
Jn as b,
|
|
708
|
-
Nn as u
|
|
709
|
-
};
|