hlrender 0.0.5 → 0.0.6
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-21229208.js → affix-widget-87f571a2.js} +16 -16
- package/{alert-widget-1cb6bb3e.js → alert-widget-6a08264c.js} +16 -16
- package/{anchor-widget-467e8ee4.js → anchor-widget-3af9f1f8.js} +13 -13
- package/auto-complete-widget-863befe4.js +72 -0
- package/{avatar-widget-dfd9713b.js → avatar-widget-f46eda28.js} +16 -16
- package/{backtop-widget-697513d6.js → backtop-widget-72db194f.js} +16 -16
- package/{badge-widget-64250b41.js → badge-widget-5b18304c.js} +16 -16
- package/{baseImp-a5afc9d4.js → baseImp-55a31c78.js} +3155 -3007
- package/{breadcrumb-widget-1fda3fd7.js → breadcrumb-widget-aa83ee8f.js} +13 -13
- package/{button-widget-a4a41575.js → button-widget-50016859.js} +16 -16
- package/{cache-widget-95b15a75.js → cache-widget-39816985.js} +15 -15
- package/{card-widget-42898045.js → card-widget-53b290e6.js} +24 -24
- package/{carousel-widget-7d5a3260.js → carousel-widget-147d17eb.js} +17 -17
- package/{cascader-widget-9d5a5c5d.js → cascader-widget-96259add.js} +38 -38
- package/{chart-widget-c068d9b8.js → chart-widget-5be8c83d.js} +13 -13
- package/checkbox-widget-9449d643.js +77 -0
- package/{collapse-widget-5a1ae269.js → collapse-widget-dcdc2356.js} +17 -17
- package/color-picker-widget-bfe0eec3.js +54 -0
- package/{cont-cell-widget-8c8647b3.js → cont-cell-widget-a49846a7.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-ecff677b.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4d1b8bcb.js} +5 -5
- package/{cont-widget-beff1973.js → cont-widget-f3836343.js} +4 -4
- package/content-wrapper-d1b17003.js +14 -0
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-a330c325.js → content-wrapper.vue_vue_type_script_setup_true_lang-75cf4b25.js} +8 -8
- package/date-picker-range-widget-229520ea.js +70 -0
- package/date-picker-widget-188eaac5.js +76 -0
- package/default-slot-widget-eb3b4aff.js +24 -0
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-e3542f4e.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-52cd0b7f.js} +7 -7
- package/{descriptions-widget-5d24783a.js → descriptions-widget-2a479788.js} +14 -14
- package/{dialog-50ad7970.js → dialog-d87ab558.js} +2 -2
- package/{dialog-widget-186e74c4.js → dialog-widget-33009ce9.js} +15 -15
- package/{divider-widget-4c4c4086.js → divider-widget-39dd6a1b.js} +16 -16
- package/{drag-wrapper-f721ce98.js → drag-wrapper-207a28e8.js} +16 -16
- package/{drawer-widget-8cbaa9bd.js → drawer-widget-adbb75db.js} +15 -15
- package/{dropdown-widget-bf769c6d.js → dropdown-widget-ea5629f2.js} +14 -14
- package/{empty-widget-19b5b9a5.js → empty-widget-6763a79c.js} +16 -16
- package/{enum-type-4f7f8848.js → enum-type-64b61a45.js} +87 -70
- package/{enum-type-7d30197c.js → enum-type-ebccb1d4.js} +38 -38
- package/{expression-75bf8097.js → expression-0623ba51.js} +964 -957
- package/feedback-widget-06cb1f22.js +24 -0
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-78836184.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-fdccc54b.js} +5 -5
- package/{fieldobj-b3bb7e94.js → fieldobj-d3e96d51.js} +1 -1
- package/file-upload-widget-6c5914c8.js +96 -0
- package/form-item-wrapper-2d82bad7.js +86 -0
- package/form-widget-0f8a1a0d.js +212 -0
- package/{grid-col-widget-02d86dc9.js → grid-col-widget-43710db5.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-2d6457c7.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-5bc5bdb6.js} +5 -5
- package/{grid-widget-383ec17e.js → grid-widget-89e86247.js} +5 -5
- package/{html-text-widget-2e4c3a53.js → html-text-widget-d98a3cfc.js} +17 -17
- package/{iframe-widget-3ac8dc6b.js → iframe-widget-a66f109c.js} +22 -22
- package/{image-widget-0c93b01d.js → image-widget-4ccf8a08.js} +13 -13
- package/{index-d63b7e5f.js → index-9a0ea20e.js} +196 -198
- package/{index-72739fed.js → index-c7185b92.js} +4 -4
- package/{index-93c9bbb8.js → index-f6f4c499.js} +1 -1
- package/input-number-widget-70cbdcaa.js +64 -0
- package/input-widget-3205407a.js +69 -0
- package/{label-wrapper-11b0324f.js → label-wrapper-bf5bb22b.js} +5 -5
- package/{label-wrapper.vue_vue_type_style_index_0_lang-a26e9dd9.js → label-wrapper.vue_vue_type_style_index_0_lang-5f3ac18a.js} +3 -3
- package/{link-widget-ac2edb75.js → link-widget-0cbccee4.js} +16 -16
- package/{ltable-col-widget-2755e978.js → ltable-col-widget-fbdb0bcc.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-94b30f47.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-6fdd4861.js} +10 -10
- package/{ltable-widget-f373cddd.js → ltable-widget-4591c2d1.js} +5 -5
- package/{menu-widget-24261d4f.js → menu-widget-bf3c83b8.js} +14 -14
- package/{model-widget-f41811fc.js → model-widget-461a906b.js} +13 -13
- package/multirow-49d1711a.js +226 -0
- package/{multirow-widget-d9cfe4de.js → multirow-widget-4ef17834.js} +34 -34
- package/package.json +1 -1
- package/{pagination-widget-e6187e94.js → pagination-widget-b47189e7.js} +13 -13
- package/picture-upload-widget-28058ff6.js +100 -0
- package/{progress-widget-1d22f227.js → progress-widget-4260b2b1.js} +14 -14
- package/{propresult-5bc45f96.js → propresult-15711ec7.js} +1 -1
- package/radio-widget-d9fb0abe.js +77 -0
- package/{range-widget-4dba2d13.js → range-widget-9dac1e43.js} +16 -16
- package/rate-widget-82f5e770.js +54 -0
- package/render.es.js +30 -30
- package/render.style.css +1 -1
- package/render.umd.js +526 -526
- package/{result-widget-412cbb44.js → result-widget-4eb3b43d.js} +14 -14
- package/rich-editor-widget-1baaee5d.js +75 -0
- package/{router-widget-b0061479.js → router-widget-778e07b4.js} +13 -13
- package/{select-widget-de2520cb.js → select-widget-4ac628f5.js} +84 -84
- package/{sfc-0aebdf49.js → sfc-061cfc5d.js} +84 -84
- package/share-field-5ab4a421.js +686 -0
- package/{share-file-fdedeed7.js → share-file-df8cf883.js} +15 -15
- package/slider-widget-4c710047.js +60 -0
- package/{slot-53d3c887.js → slot-f5b09143.js} +6 -6
- package/{static-text-widget-834af7a4.js → static-text-widget-b5d505ba.js} +14 -14
- package/{steps-widget-546c6031.js → steps-widget-b4814b03.js} +13 -13
- package/subMenu-widget-bd425443.js +16 -0
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-36500905.js → subMenu-widget.vue_vue_type_script_setup_true_lang-a1cef8dd.js} +7 -7
- package/switch-widget-a497d6dd.js +54 -0
- package/{tab-pane-widget-336a1b55.js → tab-pane-widget-7284c298.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-172a1039.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-8f54ee57.js} +5 -5
- package/table-col-widget-b0cc4dbf.js +20 -0
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-a7e01679.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-cb167eb4.js} +17 -17
- package/{table-widget-92661b99.js → table-widget-d4a39355.js} +22 -22
- package/{tabs-widget-9d0e6fb1.js → tabs-widget-e7d303a6.js} +9 -9
- package/{tag-widget-2a6300c5.js → tag-widget-966dfdb0.js} +16 -16
- package/{text-widget-3c68b327.js → text-widget-1bb1ac49.js} +16 -16
- package/textarea-widget-74c6bdaa.js +54 -0
- package/time-picker-range-widget-49785c91.js +56 -0
- package/time-picker-widget-2d632c0a.js +55 -0
- package/time-select-widget-d1aac015.js +55 -0
- package/{tmpl-widget-085a4b38.js → tmpl-widget-3c125136.js} +14 -14
- package/{tree-select-widget-fbfbcf97.js → tree-select-widget-abfb90a7.js} +15 -15
- package/{tree-widget-c9f3d308.js → tree-widget-3ec1dbae.js} +13 -13
- package/{uuid-13f918d6.js → uuid-63cb6ed5.js} +12 -12
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-5c072980.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-11e82ba1.js} +25 -25
- package/{wrapper-widget-004436b3.js → wrapper-widget-aaf5aebe.js} +6 -6
- package/auto-complete-widget-a34a7978.js +0 -72
- package/checkbox-widget-fea3777f.js +0 -77
- package/color-picker-widget-5a128992.js +0 -54
- package/content-wrapper-d16e1925.js +0 -14
- package/date-picker-range-widget-aa390ac5.js +0 -70
- package/date-picker-widget-7b5e849e.js +0 -76
- package/default-slot-widget-a71ea3ec.js +0 -24
- package/feedback-widget-14e6fe79.js +0 -24
- package/file-upload-widget-0ef9af80.js +0 -96
- package/form-item-wrapper-2794e39b.js +0 -97
- package/form-widget-9fd60fcd.js +0 -191
- package/input-number-widget-0db4f563.js +0 -64
- package/input-widget-0b2d6bc5.js +0 -69
- package/multirow-157d0dca.js +0 -230
- package/picture-upload-widget-1ae3d40c.js +0 -100
- package/radio-widget-d23f912d.js +0 -77
- package/rate-widget-27336bb7.js +0 -54
- package/rich-editor-widget-438a2b82.js +0 -75
- package/share-field-7ba5ba17.js +0 -693
- package/slider-widget-d598ba55.js +0 -60
- package/subMenu-widget-19378708.js +0 -16
- package/switch-widget-dd9c74a9.js +0 -54
- package/table-col-widget-51085971.js +0 -20
- package/textarea-widget-732756de.js +0 -54
- package/time-picker-range-widget-d56922c1.js +0 -56
- package/time-picker-widget-4f4f130a.js +0 -55
- package/time-select-widget-9f72137e.js +0 -55
|
@@ -0,0 +1,686 @@
|
|
|
1
|
+
var zt = Object.defineProperty;
|
|
2
|
+
var Qt = (t, o, g) => o in t ? zt(t, o, { enumerable: !0, configurable: !0, writable: !0, value: g }) : t[o] = g;
|
|
3
|
+
var Ae = (t, o, g) => (Qt(t, typeof o != "symbol" ? o + "" : o, g), g);
|
|
4
|
+
import { onMounted as ze, nextTick as Qe, onActivated as Xt, onErrorCaptured as Yt, watch as ne, isRef as be, reactive as He, ref as ie, computed as Zt, onBeforeUnmount as wt, toRefs as en } from "vue";
|
|
5
|
+
import { p as tn, k as Oe, o as Y, q as Z, y as nn, d as X, H as on, t as Xe, f as rn, e as sn, m as Ve, n as un } from "./enum-type-64b61a45.js";
|
|
6
|
+
import { p as Ue, b as Ye, g as an, f as fe, a as cn } from "./multirow-49d1711a.js";
|
|
7
|
+
import { u as Ze } from "./icon-e9532b43.js";
|
|
8
|
+
import { f as I, l as Ee, m as fn, n as qe, c as A, b as ln } from "./expression-0623ba51.js";
|
|
9
|
+
import { b as we, d as Re, B as k, P as Ce, c as et, e as mn, a as vn, g as Ge } from "./baseImp-55a31c78.js";
|
|
10
|
+
import { F as gn } from "./slot-f5b09143.js";
|
|
11
|
+
import { c as Me, k as Se, l as dn } from "./uuid-63cb6ed5.js";
|
|
12
|
+
import { c as pn, d as hn, h as ye, e as Vn } from "./index-9a0ea20e.js";
|
|
13
|
+
import { W as H, d as $ } from "./enum-type-ebccb1d4.js";
|
|
14
|
+
function yn() {
|
|
15
|
+
return {
|
|
16
|
+
onMountedOrActivated: (g) => {
|
|
17
|
+
let R = !1;
|
|
18
|
+
ze(() => {
|
|
19
|
+
g(), Qe(() => {
|
|
20
|
+
R = !0;
|
|
21
|
+
});
|
|
22
|
+
}), Xt(() => {
|
|
23
|
+
R && g();
|
|
24
|
+
});
|
|
25
|
+
},
|
|
26
|
+
onCompErrorCaptured: () => {
|
|
27
|
+
Yt((g) => (console.log(g), !1));
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
}
|
|
31
|
+
function bn(t, o) {
|
|
32
|
+
const { getWidgetOption: g, getWidgetOptionByPropValue: R } = we(t, o), D = (S) => g(S);
|
|
33
|
+
return {
|
|
34
|
+
existFunc: D,
|
|
35
|
+
handleFunc: (S, N) => {
|
|
36
|
+
if (tn(S)) {
|
|
37
|
+
var T = D(String(S));
|
|
38
|
+
return Re(T, N);
|
|
39
|
+
} else {
|
|
40
|
+
var T = R(Me(S));
|
|
41
|
+
return Re(T, N);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
}
|
|
46
|
+
class _e {
|
|
47
|
+
constructor(o) {
|
|
48
|
+
Ae(this, "refList", {});
|
|
49
|
+
o && (this.refList = o);
|
|
50
|
+
}
|
|
51
|
+
initRefList() {
|
|
52
|
+
this.refList || (this.refList = {});
|
|
53
|
+
}
|
|
54
|
+
getWidgetRef(o) {
|
|
55
|
+
if (o)
|
|
56
|
+
return this.initRefList(), this.refList[o];
|
|
57
|
+
}
|
|
58
|
+
setWidgetRef(o, g) {
|
|
59
|
+
o && (this.initRefList(), this.refList[o] = g);
|
|
60
|
+
}
|
|
61
|
+
removeWidgetRef(o) {
|
|
62
|
+
o && this.refList && delete this.refList[o.toString()];
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
function le(t) {
|
|
66
|
+
t || (t = {});
|
|
67
|
+
const o = new _e(t), { instance: g } = Ze(), R = (v) => o.getWidgetRef(v == null ? void 0 : v.toString()), D = (v, d, E) => {
|
|
68
|
+
var O = [], r = [];
|
|
69
|
+
let f = R(v);
|
|
70
|
+
return f && O.push(f), O == null || O.forEach((n) => {
|
|
71
|
+
var s = S(n, d, E);
|
|
72
|
+
s && r.push(s);
|
|
73
|
+
}), r;
|
|
74
|
+
}, a = (v, d) => {
|
|
75
|
+
var E;
|
|
76
|
+
return (E = v == null ? void 0 : v.exposed) == null ? void 0 : E[d.toString()];
|
|
77
|
+
}, S = (v, d, E) => {
|
|
78
|
+
var O = a(v, d);
|
|
79
|
+
if (O) {
|
|
80
|
+
var r = [];
|
|
81
|
+
return E && (r = Object.values(E)), O(...r);
|
|
82
|
+
}
|
|
83
|
+
}, N = (v, d, E) => {
|
|
84
|
+
var O = [];
|
|
85
|
+
if (v) {
|
|
86
|
+
var r = Me(Se(v, !0));
|
|
87
|
+
r == null || r.forEach((f) => {
|
|
88
|
+
var n = D(f, d, E);
|
|
89
|
+
Oe(n) || O.push(n);
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
return Array.isArray(v) ? O : O == null ? void 0 : O[0];
|
|
93
|
+
}, T = (v, d) => {
|
|
94
|
+
let E = Y(t);
|
|
95
|
+
N(E, v, d);
|
|
96
|
+
}, m = (v, d) => {
|
|
97
|
+
var s, u, c;
|
|
98
|
+
const E = (u = (s = d || g) == null ? void 0 : s.exposed) == null ? void 0 : u.getField();
|
|
99
|
+
var O = Ue(E == null ? void 0 : E.id);
|
|
100
|
+
const r = (l) => (l == null ? void 0 : l.id) === v, f = (l) => {
|
|
101
|
+
var P;
|
|
102
|
+
var V = Ue(l == null ? void 0 : l.id);
|
|
103
|
+
return (O == null ? void 0 : O.groupName) === (V == null ? void 0 : V.groupName) && ((V == null ? void 0 : V.id) === v || ((P = l == null ? void 0 : l._source) == null ? void 0 : P.id) === v);
|
|
104
|
+
}, n = (c = Y(o.refList)) == null ? void 0 : c.find((l) => {
|
|
105
|
+
var P, F;
|
|
106
|
+
try {
|
|
107
|
+
const _ = (F = (P = o.refList[l]) == null ? void 0 : P.exposed) == null ? void 0 : F.getField();
|
|
108
|
+
var V = r(_);
|
|
109
|
+
return !V && (O != null && O.groupName) && (V = f(_)), V;
|
|
110
|
+
} catch {
|
|
111
|
+
return !1;
|
|
112
|
+
}
|
|
113
|
+
});
|
|
114
|
+
if (n)
|
|
115
|
+
return R(n);
|
|
116
|
+
}, p = (v) => {
|
|
117
|
+
if (v) {
|
|
118
|
+
let d = v;
|
|
119
|
+
o == null || o.setWidgetRef(d, g);
|
|
120
|
+
}
|
|
121
|
+
}, b = (v) => {
|
|
122
|
+
if (v) {
|
|
123
|
+
let d = v;
|
|
124
|
+
o == null || o.removeWidgetRef(d);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
return {
|
|
128
|
+
findWidgetAndCall: D,
|
|
129
|
+
getWidgetRef: R,
|
|
130
|
+
callWidgetsExposed: N,
|
|
131
|
+
callRefFunc: S,
|
|
132
|
+
existRefFunc: a,
|
|
133
|
+
setAllRefList: T,
|
|
134
|
+
findRefById: m,
|
|
135
|
+
findRefByName: R,
|
|
136
|
+
changeRegisterToRefList: (v, d) => {
|
|
137
|
+
v && (p(v), b(d));
|
|
138
|
+
},
|
|
139
|
+
registerToRefList: p,
|
|
140
|
+
unregisterFromRefList: b
|
|
141
|
+
};
|
|
142
|
+
}
|
|
143
|
+
const On = (t, o, g) => {
|
|
144
|
+
const R = new _e(t), { callRefFunc: D } = le(t), { parseGroupId: a } = Ye();
|
|
145
|
+
if (!t || t.length <= 0 || !o)
|
|
146
|
+
return;
|
|
147
|
+
const S = () => {
|
|
148
|
+
var r, f;
|
|
149
|
+
return (f = (r = Y(t)) == null ? void 0 : r.map((n) => D(t == null ? void 0 : t[n], H.getField))) == null ? void 0 : f.filter((n) => !!n);
|
|
150
|
+
}, N = (r) => {
|
|
151
|
+
var u;
|
|
152
|
+
const f = (u = S()) == null ? void 0 : u.find((c) => (c == null ? void 0 : c.id) === r);
|
|
153
|
+
if (!f)
|
|
154
|
+
return;
|
|
155
|
+
const n = k.getName(f), s = R.getWidgetRef(n);
|
|
156
|
+
if (s)
|
|
157
|
+
return { ref: s, name: n, id: f == null ? void 0 : f.id };
|
|
158
|
+
}, T = (r, f) => {
|
|
159
|
+
if (!Z(f))
|
|
160
|
+
return;
|
|
161
|
+
const n = k.getName(r), s = R.getWidgetRef(n);
|
|
162
|
+
if (s) {
|
|
163
|
+
const u = k.getOptions(r, I.defaultValue, !1, !(g != null && g.designState), { ...g, formData: f });
|
|
164
|
+
Z(u) && (be(u) ? ne(u, (c) => {
|
|
165
|
+
D(s, H.setValue, { newValue: c });
|
|
166
|
+
}) : D(s, H.setValue, { newValue: u }));
|
|
167
|
+
}
|
|
168
|
+
}, m = (r, f) => {
|
|
169
|
+
const n = N(r);
|
|
170
|
+
if (!n)
|
|
171
|
+
return;
|
|
172
|
+
const s = n.name, u = D(n.ref, H.getValue), c = D(n.ref, H.getCheckedItems), l = {};
|
|
173
|
+
return Oe(u) || (l[s] = u), !sn(c) && !f && (l[`${s}${Ee.checkedOptions}`] = c), l;
|
|
174
|
+
}, p = (r, f) => {
|
|
175
|
+
var s;
|
|
176
|
+
var n = [];
|
|
177
|
+
if ((s = S()) == null || s.forEach((u) => {
|
|
178
|
+
if (!u)
|
|
179
|
+
return;
|
|
180
|
+
const c = u == null ? void 0 : u.id;
|
|
181
|
+
var l = c === r;
|
|
182
|
+
const V = a(c), P = (V == null ? void 0 : V.id) === r, F = (V == null ? void 0 : V.groupName) === f;
|
|
183
|
+
return l || P && (F || !f) ? (n.push(u), !0) : !1;
|
|
184
|
+
}), !(!n || n.length <= 0))
|
|
185
|
+
return n == null ? void 0 : n.map((u) => {
|
|
186
|
+
var c;
|
|
187
|
+
return {
|
|
188
|
+
id: u == null ? void 0 : u.id,
|
|
189
|
+
name: (c = u == null ? void 0 : u._source) == null ? void 0 : c.name,
|
|
190
|
+
source: u == null ? void 0 : u._source
|
|
191
|
+
};
|
|
192
|
+
});
|
|
193
|
+
}, b = (r, f) => {
|
|
194
|
+
var n = [];
|
|
195
|
+
if (!r || (r == null ? void 0 : r.length) <= 0)
|
|
196
|
+
return n;
|
|
197
|
+
const s = a(o), u = s == null ? void 0 : s.groupName;
|
|
198
|
+
return f === fe.Inner2Outer ? r == null || r.forEach((c) => {
|
|
199
|
+
var l = p(c);
|
|
200
|
+
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
201
|
+
}) : r == null || r.forEach((c) => {
|
|
202
|
+
var l = p(c, u);
|
|
203
|
+
l && (l == null ? void 0 : l.length) > 0 && n.push(...l);
|
|
204
|
+
}), n;
|
|
205
|
+
}, L = (r, f) => {
|
|
206
|
+
const n = {};
|
|
207
|
+
if (!r || r.length <= 0)
|
|
208
|
+
return n;
|
|
209
|
+
if (f === fe.Inner2Outer) {
|
|
210
|
+
var s = nn(r, (u) => {
|
|
211
|
+
var c;
|
|
212
|
+
return (c = u.source) == null ? void 0 : c.id;
|
|
213
|
+
});
|
|
214
|
+
s == null || s.forEach((u) => {
|
|
215
|
+
var V;
|
|
216
|
+
const c = u.group[0], l = [];
|
|
217
|
+
(V = u == null ? void 0 : u.children) == null || V.forEach((P) => {
|
|
218
|
+
const F = m(P == null ? void 0 : P.id, !0);
|
|
219
|
+
if (Z(F)) {
|
|
220
|
+
var _ = Object.values(Me(F));
|
|
221
|
+
l.push(..._);
|
|
222
|
+
}
|
|
223
|
+
}), c && X(n, { [c]: l });
|
|
224
|
+
});
|
|
225
|
+
} else
|
|
226
|
+
r.forEach((u) => {
|
|
227
|
+
const c = m(u == null ? void 0 : u.id);
|
|
228
|
+
Z(c) && X(n, c);
|
|
229
|
+
});
|
|
230
|
+
return n;
|
|
231
|
+
}, v = (r) => {
|
|
232
|
+
var f = {};
|
|
233
|
+
return r == null || r.forEach((n) => {
|
|
234
|
+
var s;
|
|
235
|
+
n != null && n.source && (n != null && n.id) && (f[(s = n == null ? void 0 : n.source) == null ? void 0 : s.id] = n == null ? void 0 : n.id);
|
|
236
|
+
}), f;
|
|
237
|
+
}, d = (r, f, n) => {
|
|
238
|
+
if (n === fe.Inner2Inner) {
|
|
239
|
+
const l = on(f), { updateFomula: V } = et(), { buildVariable: P } = mn();
|
|
240
|
+
var s = v(r);
|
|
241
|
+
if (Z(s)) {
|
|
242
|
+
var u = k.getOrgOption(f, I.defaultValue), c = V(Xe(u), s, (F, _) => {
|
|
243
|
+
var K = s[F];
|
|
244
|
+
return Oe(K) ? P(F) : P(K);
|
|
245
|
+
});
|
|
246
|
+
return k.setOrgOption(l, I.defaultValue, rn(c)), l;
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
return f;
|
|
250
|
+
}, E = (r) => {
|
|
251
|
+
const f = r == null ? void 0 : r.id;
|
|
252
|
+
var n = k.getOrgOption(r, I.defaultValue);
|
|
253
|
+
if (n === void 0)
|
|
254
|
+
return;
|
|
255
|
+
const s = an(o, f);
|
|
256
|
+
if (s === fe.DiffInner)
|
|
257
|
+
return;
|
|
258
|
+
var u = Ce.getFormulaRelatedField(n);
|
|
259
|
+
if (!u || u.length <= 0)
|
|
260
|
+
return;
|
|
261
|
+
var c = b(u, s);
|
|
262
|
+
if (!(c != null && c.some((V) => V.id === o)))
|
|
263
|
+
return;
|
|
264
|
+
const l = L(c, s);
|
|
265
|
+
T(d(c, r, s), l);
|
|
266
|
+
};
|
|
267
|
+
(() => {
|
|
268
|
+
var r;
|
|
269
|
+
(r = S()) == null || r.forEach((f) => {
|
|
270
|
+
E(f);
|
|
271
|
+
});
|
|
272
|
+
})();
|
|
273
|
+
}, En = (t, o, g, R, D) => {
|
|
274
|
+
var b, L, v;
|
|
275
|
+
if (D || !Z(g))
|
|
276
|
+
return;
|
|
277
|
+
const { callRefFunc: a } = le(t), S = (L = (b = Y(t)) == null ? void 0 : b.map((d) => a(t == null ? void 0 : t[d], H.getField))) == null ? void 0 : L.filter((d) => !!d), { parseGroupId: N } = Ye(), T = new _e(t);
|
|
278
|
+
var m = N(o), p = m == null ? void 0 : m.groupName;
|
|
279
|
+
(v = Y(g)) == null || v.forEach((d) => {
|
|
280
|
+
var O, r, f;
|
|
281
|
+
if (!((O = Se(R == null ? void 0 : R.newValue, !0)) != null && O.includes(d)))
|
|
282
|
+
return;
|
|
283
|
+
const E = (r = g == null ? void 0 : g[d]) == null ? void 0 : r.result;
|
|
284
|
+
(f = Y(E)) == null || f.forEach((n) => {
|
|
285
|
+
var u;
|
|
286
|
+
const s = E == null ? void 0 : E[n];
|
|
287
|
+
(u = s == null ? void 0 : s.ids) == null || u.forEach((c) => {
|
|
288
|
+
var F;
|
|
289
|
+
const l = (F = pn(S, (_) => {
|
|
290
|
+
var K, j;
|
|
291
|
+
return ((_ == null ? void 0 : _.id) === c || ((K = _ == null ? void 0 : _._source) == null ? void 0 : K.id) === c) && (!p || ((j = _ == null ? void 0 : _.id) == null ? void 0 : j.indexOf(p)) != -1);
|
|
292
|
+
})) == null ? void 0 : F[0];
|
|
293
|
+
if (!l)
|
|
294
|
+
return;
|
|
295
|
+
const V = k.getName(l), P = T.getWidgetRef(V);
|
|
296
|
+
P ? a(P, s == null ? void 0 : s.event, s == null ? void 0 : s.args) : ne(() => t, (_) => {
|
|
297
|
+
const K = T.getWidgetRef(V);
|
|
298
|
+
K && a(K, s == null ? void 0 : s.event, s == null ? void 0 : s.args);
|
|
299
|
+
});
|
|
300
|
+
});
|
|
301
|
+
});
|
|
302
|
+
});
|
|
303
|
+
};
|
|
304
|
+
function tt(t, o) {
|
|
305
|
+
var g;
|
|
306
|
+
return (g = t == null ? void 0 : t.classList) != null && g.contains(o) ? t : t != null && t.parentElement ? tt(t == null ? void 0 : t.parentElement, o) : null;
|
|
307
|
+
}
|
|
308
|
+
function Rn() {
|
|
309
|
+
const t = (m) => {
|
|
310
|
+
if (m)
|
|
311
|
+
return m != null && m.ref ? m == null ? void 0 : m.ref : m;
|
|
312
|
+
}, o = (m) => {
|
|
313
|
+
var p, b;
|
|
314
|
+
try {
|
|
315
|
+
(b = (p = t(m)) == null ? void 0 : p.focus) == null || b.call(p);
|
|
316
|
+
} catch (L) {
|
|
317
|
+
console.log(L);
|
|
318
|
+
}
|
|
319
|
+
}, g = (m) => {
|
|
320
|
+
var p, b;
|
|
321
|
+
try {
|
|
322
|
+
(b = (p = t(m)) == null ? void 0 : p.blur) == null || b.call(p);
|
|
323
|
+
} catch (L) {
|
|
324
|
+
console.log(L);
|
|
325
|
+
}
|
|
326
|
+
}, R = (m) => {
|
|
327
|
+
var p;
|
|
328
|
+
return (p = t(m)) == null ? void 0 : p.selectionStart;
|
|
329
|
+
}, D = (m) => {
|
|
330
|
+
var p;
|
|
331
|
+
return (p = t(m)) == null ? void 0 : p.selectionEnd;
|
|
332
|
+
}, a = (m, p) => {
|
|
333
|
+
var b;
|
|
334
|
+
return (b = t(m)) == null ? void 0 : b.setSelectionRange(p, p);
|
|
335
|
+
}, S = (m, p) => {
|
|
336
|
+
o(m), a(m, p);
|
|
337
|
+
};
|
|
338
|
+
return {
|
|
339
|
+
getSelectionStart: R,
|
|
340
|
+
getSelectionEnd: D,
|
|
341
|
+
setSelectionStart: a,
|
|
342
|
+
blur: g,
|
|
343
|
+
focus: o,
|
|
344
|
+
setMousePos: S,
|
|
345
|
+
getMousePos: (m) => R(m),
|
|
346
|
+
insertOnMousePos: (m, p, b) => {
|
|
347
|
+
const L = R(m), v = D(m), d = fn(b, p, L, v);
|
|
348
|
+
return Qe(() => {
|
|
349
|
+
S(m, L + (p == null ? void 0 : p.length));
|
|
350
|
+
}), d;
|
|
351
|
+
}
|
|
352
|
+
};
|
|
353
|
+
}
|
|
354
|
+
const ke = (t) => {
|
|
355
|
+
var g;
|
|
356
|
+
const { getFormulaFields: o } = et();
|
|
357
|
+
return ((g = o(Xe(t))) == null ? void 0 : g.length) > 0;
|
|
358
|
+
}, Q = (t) => {
|
|
359
|
+
const o = t.type;
|
|
360
|
+
return ![$.fileUpload, $.pictureUpload].includes(o) && t.formItemFlag || [$.form, $.dialog].includes(o);
|
|
361
|
+
}, Je = (t) => {
|
|
362
|
+
const o = t.type;
|
|
363
|
+
return [$.treeSelect, $.cascader, $.select, $.checkbox, $.radio].includes(o);
|
|
364
|
+
};
|
|
365
|
+
function Fn(t) {
|
|
366
|
+
const o = t == null ? void 0 : t.designState, g = (t == null ? void 0 : t.created) != !1, R = t == null ? void 0 : t.exResetField, D = t == null ? void 0 : t.extInitFieldModel, a = t == null ? void 0 : t.widget, S = t == null ? void 0 : t.designer, N = S == null ? void 0 : S.pageConfig;
|
|
367
|
+
let T = {}, m = {}, p = {}, b = He({});
|
|
368
|
+
var L = "", v = {};
|
|
369
|
+
if (g) {
|
|
370
|
+
const e = gn.globalInject();
|
|
371
|
+
e && (T = e.formRefList, m = e.globalRefList, v = e.globalConfig, L = e.globalFormName || "", b = He(e.globalDataModel || {}), p = e.rowScope);
|
|
372
|
+
}
|
|
373
|
+
const d = le(m), E = le(T), O = () => Ve(b), r = () => p, f = () => a, n = {
|
|
374
|
+
instance: {
|
|
375
|
+
exposed: {
|
|
376
|
+
getFormData: !o && ke(a) ? O : null,
|
|
377
|
+
findRefByName: d.getWidgetRef,
|
|
378
|
+
getField: f,
|
|
379
|
+
getRowScope: r
|
|
380
|
+
}
|
|
381
|
+
},
|
|
382
|
+
designState: o,
|
|
383
|
+
pageConfig: N,
|
|
384
|
+
formData: !o && ke(a) ? b : {},
|
|
385
|
+
globalConfig: v
|
|
386
|
+
}, s = (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$: u, dispatch: c, emit$: l } = cn(), { instance: V } = Ze(), { onCompErrorCaptured: P } = yn(), { existFunc: F } = bn({ options: a == null ? void 0 : a.options }, n), { attrs: _, extendAttrs: K, events: j, slots: De, rules: Pe, fieldName: x, buildRules: nt, clearRules: ot, disableChangeValidate: rt, enableChangeValidate: st, optionItems: ut, filterOptionItems: xe, activeOptionItems: at, activeOptionItem: ct, activeOptionItemIndex: it, setOptionItems: ft, setWidgetOption: w, getWidgetOption: We, setFieldEnable: lt, getFieldOptions: J, setFieldOptions: mt, computedDefaultValue: oe, hasDefaultValue: me, singleOption: vt, watchOption: gt } = we(a, n, s, V), { isIdClass: dt, getIdByIdClass: pt } = hn(a), { getOneSchemaData: ht, getSchemaDataObject: Vt, getSchemaDatas: yt } = vn(n), ee = Rn();
|
|
387
|
+
let ve = null, G = ie();
|
|
388
|
+
const q = ie(), bt = () => x.value, re = (e) => xe((i) => {
|
|
389
|
+
var h = Se(e || G.value, !0);
|
|
390
|
+
return h == null ? void 0 : h.includes(i == null ? void 0 : i.value);
|
|
391
|
+
}), Ot = (e) => {
|
|
392
|
+
var M, W;
|
|
393
|
+
const i = a.type, h = J(I.multiple, !1);
|
|
394
|
+
Ge(J(I.valueKey, !1));
|
|
395
|
+
const C = Ge(J(I.labelKey, !1));
|
|
396
|
+
switch (i) {
|
|
397
|
+
case $.cascader: {
|
|
398
|
+
if (q.value) {
|
|
399
|
+
const y = q.value.getCheckedNodes();
|
|
400
|
+
return h ? y == null ? void 0 : y.map((B) => B.pathLabels) : (M = y == null ? void 0 : y[0]) == null ? void 0 : M.pathLabels;
|
|
401
|
+
}
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
case $.treeSelect:
|
|
405
|
+
case $.select:
|
|
406
|
+
case $.checkbox:
|
|
407
|
+
case $.radio: {
|
|
408
|
+
const y = (W = re(e)) == null ? void 0 : W.map((B) => B == null ? void 0 : B[C]);
|
|
409
|
+
return h ? y : y == null ? void 0 : y[0];
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
}, Et = (e) => {
|
|
413
|
+
if (!Je(a))
|
|
414
|
+
return;
|
|
415
|
+
var i = {};
|
|
416
|
+
const h = Ot(e);
|
|
417
|
+
let C = J("textName", !1);
|
|
418
|
+
[`${x.value}${Ee.optionText}`, C].forEach((y) => {
|
|
419
|
+
y && i[y] === void 0 && (i[y] = h);
|
|
420
|
+
});
|
|
421
|
+
var M = re(e);
|
|
422
|
+
let W = J("optionName", !1);
|
|
423
|
+
[`${x.value}${Ee.checkedOptions}`, W].forEach((y) => {
|
|
424
|
+
y && i[y] === void 0 && (i[y] = M);
|
|
425
|
+
}), X(b, i, !0);
|
|
426
|
+
}, se = (e) => {
|
|
427
|
+
if (Q(a)) {
|
|
428
|
+
var i = { [x.value]: e };
|
|
429
|
+
X(b, i, !0);
|
|
430
|
+
}
|
|
431
|
+
}, ue = (e) => {
|
|
432
|
+
o || se(e);
|
|
433
|
+
}, Be = (e) => J(e, !1), Le = () => {
|
|
434
|
+
var e = null, i = en(b);
|
|
435
|
+
e = Ce.getValue(Ce.get(i, x.value), !1, !o), be(e) ? G = e : G.value = e;
|
|
436
|
+
}, Te = (e) => {
|
|
437
|
+
ve = Ve(e);
|
|
438
|
+
}, Rt = () => {
|
|
439
|
+
o || D && D(z());
|
|
440
|
+
}, Ct = () => {
|
|
441
|
+
!o || !Q(a) || (se(oe.value), Le());
|
|
442
|
+
}, ge = (e, i) => {
|
|
443
|
+
if (!Q(a))
|
|
444
|
+
return;
|
|
445
|
+
l(I.fieldValueChanged, { newValue: e, oldValue: i });
|
|
446
|
+
const h = { fieldId: a.id, fieldName: x.value, newValue: e, oldValue: i };
|
|
447
|
+
c(L, I.fieldChange, h, V);
|
|
448
|
+
}, Mt = (e) => F(e), ae = (e, i) => Re(We(e), i), St = (e) => {
|
|
449
|
+
ue(e), Ne(), ae(I.onInput, { value: e });
|
|
450
|
+
}, _t = (...e) => {
|
|
451
|
+
var C, M, W;
|
|
452
|
+
const h = ((C = e == null ? void 0 : e[0]) == null ? void 0 : C.target) != null ? (W = (M = e == null ? void 0 : e[0]) == null ? void 0 : M.target) == null ? void 0 : W.value : e == null ? void 0 : e[0];
|
|
453
|
+
ue(h), ge(h, ve), Ne(), ae(I.onChange, { value: h, oldValue: ve }), Te(h);
|
|
454
|
+
}, Dt = () => {
|
|
455
|
+
u(ln.setFormData, (e) => {
|
|
456
|
+
te(e[x.value]);
|
|
457
|
+
}), u(I.fieldValueChanged, (e) => {
|
|
458
|
+
ae(I.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
459
|
+
});
|
|
460
|
+
}, Pt = () => {
|
|
461
|
+
let e = x.value;
|
|
462
|
+
Q(a) ? ((!un(b, e) || b[e] === void 0) && (me() ? se(oe.value) : se(null)), Le()) : me() && te(oe.value), Te(z()), Rt();
|
|
463
|
+
}, xt = () => {
|
|
464
|
+
var e, i;
|
|
465
|
+
g && (ze(() => {
|
|
466
|
+
var h, C;
|
|
467
|
+
try {
|
|
468
|
+
(C = (h = j == null ? void 0 : j.value) == null ? void 0 : h.mounted) == null || C.call(h), qt();
|
|
469
|
+
} catch (M) {
|
|
470
|
+
console.log(M);
|
|
471
|
+
}
|
|
472
|
+
}), wt(() => {
|
|
473
|
+
d.unregisterFromRefList(x.value), E.unregisterFromRefList(x.value);
|
|
474
|
+
}), d.registerToRefList(x.value), E.registerToRefList(x.value), Pt(), ce(), Dt(), ye(a, "change") && (j.value.change = _t), ye(a, "input") && (j.value.input = St), (i = (e = j == null ? void 0 : j.value) == null ? void 0 : e.created) == null || i.call(e), P());
|
|
475
|
+
}, Wt = (e = !0) => {
|
|
476
|
+
w(A.readonly, e);
|
|
477
|
+
}, Bt = (e = !0) => {
|
|
478
|
+
w(A.disabled, e);
|
|
479
|
+
}, Lt = (e = !0) => {
|
|
480
|
+
w(A.hidden, e), e ? Ke() : ce();
|
|
481
|
+
}, Tt = (e = !0) => {
|
|
482
|
+
lt(A.required, e), ce();
|
|
483
|
+
}, Ft = (e) => {
|
|
484
|
+
w(A.label, e);
|
|
485
|
+
}, z = () => G.value, Fe = (e) => {
|
|
486
|
+
G.value = e;
|
|
487
|
+
}, te = (e) => {
|
|
488
|
+
let i = Ve(z());
|
|
489
|
+
if (Fe(e), !Q(a))
|
|
490
|
+
return;
|
|
491
|
+
const h = z();
|
|
492
|
+
i !== h && (ue(h), ge(e, i));
|
|
493
|
+
}, It = () => {
|
|
494
|
+
me() && te(oe.value), R == null || R();
|
|
495
|
+
}, $t = (e) => {
|
|
496
|
+
const i = z(), h = ee.insertOnMousePos(q.value, e, i);
|
|
497
|
+
te(h);
|
|
498
|
+
}, Nt = (e, i) => {
|
|
499
|
+
ne(() => G.value, (h, C) => {
|
|
500
|
+
e == null || e({ id: a.id, name: x.value, newValue: h, oldValue: C });
|
|
501
|
+
}, i);
|
|
502
|
+
}, jt = (e) => {
|
|
503
|
+
var W;
|
|
504
|
+
e.preventDefault();
|
|
505
|
+
const i = (y) => {
|
|
506
|
+
var U;
|
|
507
|
+
const B = (U = Array.from(y.classList)) == null ? void 0 : U.find((pe) => dt(pe));
|
|
508
|
+
return B ? pt(B) : "";
|
|
509
|
+
}, h = document.activeElement;
|
|
510
|
+
if (!h)
|
|
511
|
+
return;
|
|
512
|
+
const C = document.getElementsByClassName(qe.formItemTarget);
|
|
513
|
+
for (var M = 0; M < C.length; M++) {
|
|
514
|
+
const y = C[M], B = tt(h, qe.formItemTarget);
|
|
515
|
+
if (!B)
|
|
516
|
+
continue;
|
|
517
|
+
const U = i(y), pe = i(B);
|
|
518
|
+
if (U === pe) {
|
|
519
|
+
if (M === C.length - 1)
|
|
520
|
+
return;
|
|
521
|
+
const Gt = C[M + 1], kt = i(Gt), he = d.findRefById(kt, V);
|
|
522
|
+
try {
|
|
523
|
+
(W = he == null ? void 0 : he.exposed) == null || W.focus();
|
|
524
|
+
} catch (Jt) {
|
|
525
|
+
console.log(Jt);
|
|
526
|
+
}
|
|
527
|
+
}
|
|
528
|
+
}
|
|
529
|
+
};
|
|
530
|
+
let Kt = () => {
|
|
531
|
+
var y;
|
|
532
|
+
let e = {
|
|
533
|
+
componentName: x.value,
|
|
534
|
+
//用于组件事件emitter发射与接收处理
|
|
535
|
+
refList: T,
|
|
536
|
+
allRefList: m,
|
|
537
|
+
getField: f,
|
|
538
|
+
getFormData: O,
|
|
539
|
+
getValue: z,
|
|
540
|
+
setValue: Fe,
|
|
541
|
+
emit$: l,
|
|
542
|
+
changeRegisterToRefList: (B, U) => {
|
|
543
|
+
d.changeRegisterToRefList(B, U), E.changeRegisterToRefList(B, U);
|
|
544
|
+
},
|
|
545
|
+
findRefByName: d.getWidgetRef,
|
|
546
|
+
findRefById: d.findRefById,
|
|
547
|
+
callRefFunc: d.callRefFunc,
|
|
548
|
+
setWidgetOption: w,
|
|
549
|
+
refreshKey: $e,
|
|
550
|
+
getRowScope: r,
|
|
551
|
+
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
552
|
+
getOneSchemaData: ht,
|
|
553
|
+
getSchemaDatas: yt,
|
|
554
|
+
getSchemaDataObject: Vt
|
|
555
|
+
}, i = {
|
|
556
|
+
resetField: It,
|
|
557
|
+
getValue: z,
|
|
558
|
+
setValue: te,
|
|
559
|
+
refreshDefaultValue: Ct,
|
|
560
|
+
insertOnMousePos: $t,
|
|
561
|
+
disableChangeValidate: rt,
|
|
562
|
+
enableChangeValidate: st,
|
|
563
|
+
focus: () => {
|
|
564
|
+
ee.focus(q.value);
|
|
565
|
+
},
|
|
566
|
+
blur: () => {
|
|
567
|
+
ee.blur(q.value);
|
|
568
|
+
},
|
|
569
|
+
getMousePos: () => {
|
|
570
|
+
ee.getMousePos(q.value);
|
|
571
|
+
},
|
|
572
|
+
setMousePos: (B) => {
|
|
573
|
+
ee.setMousePos(q.value, B);
|
|
574
|
+
}
|
|
575
|
+
}, h = {
|
|
576
|
+
getCheckedItems: re
|
|
577
|
+
}, C = {
|
|
578
|
+
[A.required]: { name: H.setRequired, fn: Tt },
|
|
579
|
+
[A.label]: { name: H.setLabel, fn: Ft },
|
|
580
|
+
[A.hidden]: { name: H.setHidden, fn: Lt },
|
|
581
|
+
[A.disabled]: { name: H.setDisabled, fn: Bt },
|
|
582
|
+
[A.readonly]: { name: H.setReadonly, fn: Wt }
|
|
583
|
+
}, M = {};
|
|
584
|
+
(y = Y(C)) == null || y.forEach((B) => {
|
|
585
|
+
if (ye(a, B)) {
|
|
586
|
+
const U = C[B];
|
|
587
|
+
M[U.name] = U.fn;
|
|
588
|
+
}
|
|
589
|
+
});
|
|
590
|
+
var W = X(e, M);
|
|
591
|
+
return Q(a) && (W = X(W, i)), Je(a) && (W = X(W, h)), W;
|
|
592
|
+
};
|
|
593
|
+
const At = Zt(() => ({
|
|
594
|
+
attrs: _.value,
|
|
595
|
+
extendAttrs: K.value,
|
|
596
|
+
events: j.value,
|
|
597
|
+
slots: De.value,
|
|
598
|
+
fieldKey: de.value,
|
|
599
|
+
fieldEditor: q.value,
|
|
600
|
+
fieldName: x.value
|
|
601
|
+
})), Ie = () => `${a == null ? void 0 : a.id}-${dn()}`, de = ie(Ie()), $e = () => {
|
|
602
|
+
de.value = Ie();
|
|
603
|
+
}, Ht = (e) => {
|
|
604
|
+
t.designState && t.designer && ne(() => {
|
|
605
|
+
var i;
|
|
606
|
+
return (i = t == null ? void 0 : t.widget) == null ? void 0 : i[e];
|
|
607
|
+
}, (i, h) => {
|
|
608
|
+
const { emitHistoryChange: C } = Vn(t.designer);
|
|
609
|
+
C(`edit ${x.value}.${e},newValue:${i},oldValue:${h}`);
|
|
610
|
+
}, {
|
|
611
|
+
deep: !0
|
|
612
|
+
});
|
|
613
|
+
}, Ut = (e, i, h) => {
|
|
614
|
+
const C = ie(), M = Be(e), W = (y) => {
|
|
615
|
+
i && (C.value = i(y || M));
|
|
616
|
+
};
|
|
617
|
+
return be(M) ? ne(M, (y) => {
|
|
618
|
+
W(y), h && h(y);
|
|
619
|
+
}) : W(M), C;
|
|
620
|
+
}, qt = () => {
|
|
621
|
+
!Q(a) || o || Nt((e) => {
|
|
622
|
+
On(m, a == null ? void 0 : a.id, n), En(m, a == null ? void 0 : a.id, k.getOptions(a, A.relate), e), Et(G.value);
|
|
623
|
+
}, { immediate: !0 });
|
|
624
|
+
}, Ne = () => {
|
|
625
|
+
const e = { propName: x.value };
|
|
626
|
+
c(L, I.fieldValidation, e, V);
|
|
627
|
+
}, je = () => {
|
|
628
|
+
const e = { fieldId: a.id, fieldName: x.value, rules: Pe };
|
|
629
|
+
c(L, I.fieldRuleChange, e, V);
|
|
630
|
+
}, ce = () => {
|
|
631
|
+
nt(), je();
|
|
632
|
+
}, Ke = () => {
|
|
633
|
+
ot(), je();
|
|
634
|
+
};
|
|
635
|
+
return xt(), {
|
|
636
|
+
exposed: Kt(),
|
|
637
|
+
fieldModel: G,
|
|
638
|
+
fieldEditor: q,
|
|
639
|
+
fieldKey: de,
|
|
640
|
+
field: a,
|
|
641
|
+
instance: V,
|
|
642
|
+
attrs: _,
|
|
643
|
+
extendAttrs: K,
|
|
644
|
+
slots: De,
|
|
645
|
+
events: j,
|
|
646
|
+
rules: Pe,
|
|
647
|
+
fieldObj: At,
|
|
648
|
+
// isError,
|
|
649
|
+
// errorMsg,
|
|
650
|
+
pageConfig: N,
|
|
651
|
+
formModel: b,
|
|
652
|
+
fieldName: x,
|
|
653
|
+
propResultOpt: n,
|
|
654
|
+
optionItems: ut,
|
|
655
|
+
activeOptionItems: at,
|
|
656
|
+
activeOptionItem: ct,
|
|
657
|
+
activeOptionItemIndex: it,
|
|
658
|
+
filterOptionItems: xe,
|
|
659
|
+
setOptionItems: ft,
|
|
660
|
+
getCheckedItems: re,
|
|
661
|
+
refreshKey: $e,
|
|
662
|
+
watchKeyValue: Ut,
|
|
663
|
+
watchPropAndSaveHistoryStep: Ht,
|
|
664
|
+
existEvent: Mt,
|
|
665
|
+
handleEvent: ae,
|
|
666
|
+
handleEnter: jt,
|
|
667
|
+
getPropName: bt,
|
|
668
|
+
emitFieldDataChange: ge,
|
|
669
|
+
syncUpdateFormModel: ue,
|
|
670
|
+
getWidgetRef: d.getWidgetRef,
|
|
671
|
+
clearRules: Ke,
|
|
672
|
+
buildRules: ce,
|
|
673
|
+
getFieldOptionModel: Be,
|
|
674
|
+
getFieldOptions: J,
|
|
675
|
+
setFieldOptions: mt,
|
|
676
|
+
getWidgetOption: We,
|
|
677
|
+
singleOption: vt,
|
|
678
|
+
watchOption: gt
|
|
679
|
+
};
|
|
680
|
+
}
|
|
681
|
+
export {
|
|
682
|
+
_e as R,
|
|
683
|
+
le as a,
|
|
684
|
+
Fn as b,
|
|
685
|
+
bn as u
|
|
686
|
+
};
|