hldesigner 0.0.253 → 0.0.255
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/{_pdf-3f09b7ba.js → _pdf-186aa265.js} +1 -1
- package/{_share_image-1ae50544.js → _share_image-e84e1ab5.js} +1 -1
- package/{_txt-e4d987b3.js → _txt-d7ef7e2b.js} +1 -1
- package/{affix-widget-dbd37947.js → affix-widget-619790d7.js} +11 -11
- package/{alert-widget-1e537d22.js → alert-widget-83ff5463.js} +11 -11
- package/{anchor-widget-66c2321e.js → anchor-widget-8ace3d09.js} +8 -8
- package/{auto-complete-widget-b9d76d55.js → auto-complete-widget-1e84043b.js} +10 -10
- package/{avatar-widget-895bd399.js → avatar-widget-26197904.js} +11 -11
- package/{backtop-widget-9464cd75.js → backtop-widget-bc4ad6cd.js} +11 -11
- package/badge-widget-794a437d.js +63 -0
- package/{barcode-widget-27b1445c.js → barcode-widget-aed0a3a3.js} +8 -8
- package/{baseImp-c36e2b1d.js → baseImp-0126cc6a.js} +187 -187
- package/{breadcrumb-widget-a59324b9.js → breadcrumb-widget-44051b3b.js} +8 -8
- package/{button-widget-5a944935.js → button-widget-02c15b1c.js} +11 -11
- package/{cache-widget-2743309f.js → cache-widget-6a7cfcde.js} +9 -9
- package/{card-widget-d56a2b60.js → card-widget-0867e83c.js} +9 -9
- package/{carousel-widget-5edabc1e.js → carousel-widget-d127f4a1.js} +9 -9
- package/{cascader-widget-8ce3164e.js → cascader-widget-f8fb1f72.js} +9 -9
- package/{chart-widget-2c970ceb.js → chart-widget-4fcec49a.js} +8 -8
- package/{checkbox-widget-afc573cc.js → checkbox-widget-3f6f2466.js} +9 -9
- package/{collapse-widget-1b250377.js → collapse-widget-a5f4c34d.js} +9 -9
- package/{color-picker-widget-ad845793.js → color-picker-widget-c1ed90c3.js} +9 -9
- package/{common-editor-9888657b.js → common-editor-df0f71b7.js} +8 -8
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-67ef735c.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-937fe92c.js} +2 -2
- package/{configItem-bf595a7c.js → configItem-e64c0b0c.js} +26 -26
- package/{cont-cell-widget-16ecb373.js → cont-cell-widget-0c1dee8f.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-eae94d59.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-4e9278e4.js} +4 -4
- package/{cont-widget-cd7eb7b2.js → cont-widget-ba92a4ec.js} +4 -4
- package/{content-wrapper-590659bd.js → content-wrapper-abda98a2.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-a61c5ed2.js → content-wrapper.vue_vue_type_script_setup_true_lang-30920126.js} +1 -1
- package/{countdown-widget-ee98e94b.js → countdown-widget-c85d71ef.js} +11 -11
- package/{css-editor-1d0c1fa3.js → css-editor-c6ac49fd.js} +8 -8
- package/{customClass-editor-f1fe49e3.js → customClass-editor-0a715bba.js} +8 -8
- package/{date-picker-range-widget-e0ec0c47.js → date-picker-range-widget-4c700676.js} +9 -9
- package/{date-picker-widget-4b8cbf82.js → date-picker-widget-d0a9721f.js} +9 -9
- package/{default-slot-widget-b30b482d.js → default-slot-widget-ab2b5016.js} +9 -9
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-9f6f1946.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-1b0152d2.js} +4 -4
- package/{descriptions-widget-27d6d098.js → descriptions-widget-1e5b0ce0.js} +9 -9
- package/designer.es.js +24 -24
- package/designer.style.css +1 -1
- package/designer.umd.js +318 -318
- package/{dialog-widget-1719c509.js → dialog-widget-f8caf865.js} +10 -10
- package/{divider-widget-ac2d99a9.js → divider-widget-6294d993.js} +11 -11
- package/{drag-wrapper-573bd843.js → drag-wrapper-679b61c6.js} +4 -4
- package/{drawer-widget-1abef50b.js → drawer-widget-28bfe311.js} +10 -10
- package/{dropdown-widget-c9847cf0.js → dropdown-widget-87995933.js} +9 -9
- package/{editor-wrapper-6375ecbf.js → editor-wrapper-99e85ec7.js} +6 -6
- package/{empty-widget-4444ddd7.js → empty-widget-e720c95b.js} +11 -11
- package/{feedback-widget-368826de.js → feedback-widget-54d688f4.js} +10 -10
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-ac77c231.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f1e1a416.js} +4 -4
- package/{field-editor-78ffc8eb.js → field-editor-d550e0e3.js} +7 -7
- package/{file-upload-widget-4dcd5cf5.js → file-upload-widget-7654f65b.js} +13 -13
- package/{form-item-wrapper-86d5c2c4.js → form-item-wrapper-82b18025.js} +5 -5
- package/form-widget-633d6c53.js +245 -0
- package/{grid-col-widget-610dd403.js → grid-col-widget-ef187b53.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-95231063.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-383bf6af.js} +4 -4
- package/{grid-widget-7c159b07.js → grid-widget-4fd4cbbf.js} +4 -4
- package/{hcard-widget-dccde317.js → hcard-widget-e6cf883e.js} +9 -9
- package/{html-text-widget-c10c83bb.js → html-text-widget-197763dc.js} +9 -9
- package/{icon-widget-212892ba.js → icon-widget-b492b90c.js} +8 -8
- package/iframe-widget-6600e70a.js +117 -0
- package/{image-editor-45d2d649.js → image-editor-1e132162.js} +8 -8
- package/{image-widget-7b55f7b2.js → image-widget-5f4bb6f4.js} +8 -8
- package/{index-a157b1f0.js → index-052963d5.js} +3 -3
- package/{index-a5503188.js → index-2093e417.js} +3 -3
- package/{index-1f75dd10.js → index-20cf9fc9.js} +3 -3
- package/{index-d6943de4.js → index-23f141a1.js} +1 -1
- package/{index-eea9252c.js → index-2656acca.js} +3 -3
- package/{index-a5446e33.js → index-4e614e71.js} +1 -1
- package/{index-4522a56c.js → index-4e7cd3e7.js} +2 -2
- package/{index-f4d00f8f.js → index-505ab07a.js} +4 -4
- package/{index-73b0d3ef.js → index-686af01f.js} +12 -12
- package/{index-9b7db8fd.js → index-720e2385.js} +3 -3
- package/{index-1e6b3b6b.js → index-744ba0ca.js} +5 -5
- package/{index-73ebdc77.js → index-8153214d.js} +8 -8
- package/{index-620b82b5.js → index-83e0aadd.js} +1 -1
- package/{index-bad82d80.js → index-88b64c32.js} +4 -4
- package/{index-56a75c5a.js → index-9173e0dd.js} +3 -3
- package/{index-3ed40b72.js → index-b17b5e61.js} +1 -1
- package/{index-f626b544.js → index-b33ad852.js} +8 -8
- package/{index-e9f2b8f4.js → index-b6bef5c6.js} +1 -1
- package/{index-03f03032.js → index-dd81da86.js} +28 -28
- package/{index-c6654e90.js → index-e6f4156d.js} +27 -27
- package/{index-79db6db9.js → index-ed50d4f1.js} +11 -11
- package/{index-e36c45c3.js → index-fc614e3c.js} +27 -27
- package/{input-number-widget-b09a6f09.js → input-number-widget-32b72d7a.js} +9 -9
- package/{input-tag-widget-724a7f15.js → input-tag-widget-73d969a2.js} +10 -10
- package/{input-widget-3c9543b8.js → input-widget-39ae579a.js} +10 -10
- package/{install-designer-b3e2fb16.js → install-designer-5a9d5b3b.js} +20 -20
- package/{link-widget-cea6bbc5.js → link-widget-7275340e.js} +11 -11
- package/{ltable-col-widget-25e6f2a2.js → ltable-col-widget-ec61a95b.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-10406176.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7d7ecc4f.js} +6 -6
- package/{ltable-widget-acc75798.js → ltable-widget-cbb42126.js} +4 -4
- package/{mention-widget-f5b44bef.js → mention-widget-898866cd.js} +10 -10
- package/{menu-widget-f2a164f5.js → menu-widget-296b72c2.js} +9 -9
- package/{model-widget-5d1a6fc0.js → model-widget-5b3017d2.js} +8 -8
- package/{multirow-15956d83.js → multirow-ca76c99a.js} +3 -3
- package/{multirow-widget-8dd64c0d.js → multirow-widget-e3f1f670.js} +9 -9
- package/{name-editor-e193482c.js → name-editor-26709ae1.js} +7 -7
- package/{optionItem-80f3e3df.js → optionItem-a4ee6887.js} +1 -1
- package/package.json +1 -1
- package/{pagination-widget-88d2e188.js → pagination-widget-25bd4465.js} +8 -8
- package/{picture-upload-widget-83cfdddb.js → picture-upload-widget-dfdcff9d.js} +10 -10
- package/progress-widget-e66f80a8.js +122 -0
- package/{property-base-d7a888b9.js → property-base-101c50eb.js} +1 -1
- package/{qrcode-widget-cf17d994.js → qrcode-widget-ec0b0a20.js} +8 -8
- package/{radio-widget-86657128.js → radio-widget-80d271d0.js} +9 -9
- package/{range-widget-51736c88.js → range-widget-c677d6ae.js} +10 -10
- package/{rate-widget-cddbb7a8.js → rate-widget-5f1717d9.js} +9 -9
- package/{reg-editor.vue_vue_type_script_setup_true_lang-89e38cb5.js → reg-editor.vue_vue_type_script_setup_true_lang-583fa911.js} +1 -1
- package/{result-widget-dbdf88bf.js → result-widget-604dc0ad.js} +9 -9
- package/{rich-editor-widget-7b7ee6e0.js → rich-editor-widget-220b5cca.js} +9 -9
- package/{router-widget-1071acab.js → router-widget-1e459e7a.js} +8 -8
- package/{schemaData-ee79b25f.js → schemaData-7f642877.js} +2 -2
- package/{segmented-widget-10c0bffc.js → segmented-widget-2d1c4542.js} +8 -8
- package/{select-widget-b6fdc490.js → select-widget-950c80b5.js} +163 -160
- package/{sfc-08a4af87.js → sfc-7e46e3df.js} +5 -5
- package/{sfcview-9f1cb41e.js → sfcview-174d7f4a.js} +4 -4
- package/{share-editor-9b861542.js → share-editor-11cf68bd.js} +1 -1
- package/share-field-73511e57.js +842 -0
- package/{share-file-d6743ae7.js → share-file-202187bf.js} +2 -2
- package/{size-editor-6314a424.js → size-editor-19714417.js} +7 -7
- package/{skeleton-widget-bbb07c50.js → skeleton-widget-28148163.js} +11 -11
- package/{skeletonItem-widget-46735914.js → skeletonItem-widget-75b32132.js} +8 -8
- package/slider-widget-0d7c46a1.js +66 -0
- package/{slot-bc0e200f.js → slot-7fd9dcdd.js} +1 -1
- package/{space-widget-c19444ed.js → space-widget-f52d17c3.js} +9 -9
- package/{splitter-widget-c7347c68.js → splitter-widget-fc94a11a.js} +9 -9
- package/{static-text-widget-c2d21cdb.js → static-text-widget-ee315e8b.js} +9 -9
- package/{statistic-widget-9860a510.js → statistic-widget-53e4e42a.js} +11 -11
- package/{steps-widget-dcc2a10d.js → steps-widget-c0a66f62.js} +8 -8
- package/{subMenu-widget-de89d0e1.js → subMenu-widget-956606c0.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-f41da07b.js → subMenu-widget.vue_vue_type_script_setup_true_lang-782672ba.js} +1 -1
- package/{switch-widget-e9d487ed.js → switch-widget-005d8251.js} +9 -9
- package/{tab-pane-widget-7c760349.js → tab-pane-widget-5ae4b065.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-150278f1.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-554adbde.js} +4 -4
- package/{table-col-widget-f56e22fa.js → table-col-widget-5acf67b2.js} +8 -8
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-812919b2.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-8ceb1a7f.js} +4 -4
- package/{table-widget-2ee5c9b9.js → table-widget-6a270d33.js} +10 -10
- package/{tabs-widget-17aa3f7c.js → tabs-widget-49654beb.js} +5 -5
- package/{tag-widget-78140543.js → tag-widget-ae89ac90.js} +11 -11
- package/{target-code-53cc4456.js → target-code-d91b3112.js} +3 -3
- package/{target-datasource-35a58b18.js → target-datasource-a1fbe91c.js} +28 -28
- package/{target-link-b667cc55.js → target-link-bf2b9646.js} +27 -27
- package/{target-saveForm-340f57ef.js → target-saveForm-95fcd051.js} +27 -27
- package/{target-window-28bddb9c.js → target-window-5d433aa9.js} +4 -4
- package/{text-widget-6658162b.js → text-widget-138aaa7e.js} +11 -11
- package/{textarea-widget-0eed797e.js → textarea-widget-b2396e51.js} +9 -9
- package/{time-picker-range-widget-3c178089.js → time-picker-range-widget-07b2c9f4.js} +9 -9
- package/{time-picker-widget-fe162577.js → time-picker-widget-cd29c5bc.js} +9 -9
- package/{time-select-widget-1a919673.js → time-select-widget-2103d702.js} +9 -9
- package/{timeline-widget-0a98737e.js → timeline-widget-64b4852b.js} +9 -9
- package/{tmpl-widget-6b97ac60.js → tmpl-widget-1d7204d6.js} +9 -9
- package/{tooltip-widget-0587c680.js → tooltip-widget-08b096a0.js} +9 -9
- package/{tour-widget-30cd8acb.js → tour-widget-8bc75bae.js} +8 -8
- package/{transfer-widget-96ad5e57.js → transfer-widget-7d8954b0.js} +10 -10
- package/{tree-select-widget-0f1f7e99.js → tree-select-widget-dfaa77c0.js} +9 -9
- package/{tree-widget-7c048add.js → tree-widget-d1f06048.js} +8 -8
- package/{value-editor-03c9bb9c.js → value-editor-cd876b2b.js} +7 -7
- package/{verifycode-widget-f6b4627a.js → verifycode-widget-4708cd75.js} +8 -8
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-7fe08f81.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-81fa1cd2.js} +2 -2
- package/{wrapper-widget-e0016683.js → wrapper-widget-59ce9121.js} +4 -4
- package/badge-widget-fcc6c760.js +0 -58
- package/form-widget-71c3e0e2.js +0 -238
- package/iframe-widget-0c541b5e.js +0 -118
- package/progress-widget-c8c3b31b.js +0 -126
- package/share-field-9563faff.js +0 -837
- package/slider-widget-88fe7b6a.js +0 -66
package/share-field-9563faff.js
DELETED
|
@@ -1,837 +0,0 @@
|
|
|
1
|
-
var Nn = Object.defineProperty;
|
|
2
|
-
var Bn = (n, u, p) => u in n ? Nn(n, u, { enumerable: !0, configurable: !0, writable: !0, value: p }) : n[u] = p;
|
|
3
|
-
var nt = (n, u, p) => (Bn(n, typeof u != "symbol" ? u + "" : u, p), p);
|
|
4
|
-
import { onMounted as ct, nextTick as it, onActivated as Dn, onErrorCaptured as jn, isRef as ft, watch as ne, reactive as Ln, computed as ge, ref as he, onBeforeUnmount as $n, inject as An, toRefs as kn } from "vue";
|
|
5
|
-
import { a as Fe, i as lt, o as Y, j as oe, r as Hn, b as Gn, h as pe, m as Kn, e as te, d as Oe } from "./obj-fe2f7356.js";
|
|
6
|
-
import { u as qn } from "./emitter-8d426aaf.js";
|
|
7
|
-
import { u as mt } from "./icon-aff7bde2.js";
|
|
8
|
-
import { f as L, j as ye, k as Un, l as Jn, b as P, m as ot, a as zn, d as Qn } from "./expression-0c9dacc8.js";
|
|
9
|
-
import { l as ce, c as Be, t as dt, j as Xn, d as vt, f as gt, h as rt, w as Ve } from "./enum-type-5382518b.js";
|
|
10
|
-
import { b as ht, c as Ne, B as J, P as pt, d as Ot, e as Yn, a as st } from "./baseImp-c36e2b1d.js";
|
|
11
|
-
import { F as Zn, d as wn, b as eo } from "./slot-bc0e200f.js";
|
|
12
|
-
import { f as to, b as no, h as Ie, d as oo } from "./index-a5503188.js";
|
|
13
|
-
import { W as $, e as z, f as ro } from "./enum-type-2374c955.js";
|
|
14
|
-
import { p as ut, a as Vt, g as so, f as Ce } from "./multirow-15956d83.js";
|
|
15
|
-
import { m as uo } from "./uuid-97f565a9.js";
|
|
16
|
-
function ao() {
|
|
17
|
-
return {
|
|
18
|
-
onMountedOrActivated: (p) => {
|
|
19
|
-
let _ = !1;
|
|
20
|
-
ct(() => {
|
|
21
|
-
p(), it(() => {
|
|
22
|
-
_ = !0;
|
|
23
|
-
});
|
|
24
|
-
}), Dn(() => {
|
|
25
|
-
_ && p();
|
|
26
|
-
});
|
|
27
|
-
},
|
|
28
|
-
onCompErrorCaptured: () => {
|
|
29
|
-
jn((p) => (ce.error("onCompErrorCaptured", p), !1));
|
|
30
|
-
}
|
|
31
|
-
};
|
|
32
|
-
}
|
|
33
|
-
function co(n, u) {
|
|
34
|
-
const { getWidgetOption: p, getWidgetOptionByPropValue: _ } = ht(n, u), F = (a) => p(a);
|
|
35
|
-
return {
|
|
36
|
-
existFunc: F,
|
|
37
|
-
handleFunc: (a, T) => {
|
|
38
|
-
if (Fe(a)) {
|
|
39
|
-
var B = F(String(a));
|
|
40
|
-
return Ne(B, T);
|
|
41
|
-
} else {
|
|
42
|
-
var B = _(Be(a));
|
|
43
|
-
return Ne(B, T);
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
};
|
|
47
|
-
}
|
|
48
|
-
class De {
|
|
49
|
-
constructor(u) {
|
|
50
|
-
nt(this, "refList", {});
|
|
51
|
-
u && (this.refList = u);
|
|
52
|
-
}
|
|
53
|
-
initRefList() {
|
|
54
|
-
this.refList || (this.refList = {});
|
|
55
|
-
}
|
|
56
|
-
getWidgetRef(u) {
|
|
57
|
-
if (u)
|
|
58
|
-
return this.initRefList(), this.refList[u];
|
|
59
|
-
}
|
|
60
|
-
setWidgetRef(u, p) {
|
|
61
|
-
u && (this.initRefList(), this.refList[u] = p);
|
|
62
|
-
}
|
|
63
|
-
removeWidgetRef(u) {
|
|
64
|
-
u && this.refList && delete this.refList[u.toString()];
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
function be(n) {
|
|
68
|
-
n || (n = {});
|
|
69
|
-
const u = new De(n), { instance: p } = mt(), _ = (l) => u.getWidgetRef(l == null ? void 0 : l.toString()), F = (l, y, R) => {
|
|
70
|
-
var V = [], b = [];
|
|
71
|
-
let r = _(l);
|
|
72
|
-
return r && V.push(r), V == null || V.forEach((c) => {
|
|
73
|
-
var s = a(c, y, R);
|
|
74
|
-
s && b.push(s);
|
|
75
|
-
}), b;
|
|
76
|
-
}, I = (l, y) => {
|
|
77
|
-
var R;
|
|
78
|
-
return (R = l == null ? void 0 : l.exposed) == null ? void 0 : R[y.toString()];
|
|
79
|
-
}, a = (l, y, R) => {
|
|
80
|
-
var V = I(l, y);
|
|
81
|
-
if (V) {
|
|
82
|
-
var b = [];
|
|
83
|
-
return R && (b = Object.values(R)), V(...b);
|
|
84
|
-
}
|
|
85
|
-
}, T = (l, y, R) => {
|
|
86
|
-
var V = [];
|
|
87
|
-
if (l) {
|
|
88
|
-
var b = Be(dt(l, !0));
|
|
89
|
-
b == null || b.forEach((r) => {
|
|
90
|
-
var c = F(r, y, R);
|
|
91
|
-
lt(c) || V.push(c);
|
|
92
|
-
});
|
|
93
|
-
}
|
|
94
|
-
return Array.isArray(l) ? V : V == null ? void 0 : V[0];
|
|
95
|
-
}, B = (l, y) => {
|
|
96
|
-
let R = Y(n);
|
|
97
|
-
T(R, l, y);
|
|
98
|
-
}, G = (l, y) => {
|
|
99
|
-
var s, v, i, f;
|
|
100
|
-
const R = (i = (v = (s = y || p) == null ? void 0 : s.exposed) == null ? void 0 : v.getField) == null ? void 0 : i.call(v);
|
|
101
|
-
var V = ut(R == null ? void 0 : R.id);
|
|
102
|
-
const b = (m) => (m == null ? void 0 : m.id) === l, r = (m) => {
|
|
103
|
-
var N;
|
|
104
|
-
var O = ut(m == null ? void 0 : m.id);
|
|
105
|
-
return (V == null ? void 0 : V.groupName) === (O == null ? void 0 : O.groupName) && ((O == null ? void 0 : O.id) === l || ((N = m == null ? void 0 : m._source) == null ? void 0 : N.id) === l);
|
|
106
|
-
}, c = (f = Y(u.refList)) == null ? void 0 : f.find((m) => {
|
|
107
|
-
var N, W, K;
|
|
108
|
-
try {
|
|
109
|
-
const A = (K = (W = (N = u.refList[m]) == null ? void 0 : N.exposed) == null ? void 0 : W.getField) == null ? void 0 : K.call(W);
|
|
110
|
-
var O = b(A);
|
|
111
|
-
return !O && (V != null && V.groupName) && (O = r(A)), O;
|
|
112
|
-
} catch {
|
|
113
|
-
return !1;
|
|
114
|
-
}
|
|
115
|
-
});
|
|
116
|
-
if (c)
|
|
117
|
-
return _(c);
|
|
118
|
-
}, g = (l) => {
|
|
119
|
-
if (l) {
|
|
120
|
-
let y = l;
|
|
121
|
-
u == null || u.setWidgetRef(y, p);
|
|
122
|
-
}
|
|
123
|
-
}, h = (l) => {
|
|
124
|
-
if (l) {
|
|
125
|
-
let y = l;
|
|
126
|
-
u == null || u.removeWidgetRef(y);
|
|
127
|
-
}
|
|
128
|
-
};
|
|
129
|
-
return {
|
|
130
|
-
findWidgetAndCall: F,
|
|
131
|
-
getWidgetRef: _,
|
|
132
|
-
callWidgetsExposed: T,
|
|
133
|
-
callRefFunc: a,
|
|
134
|
-
existRefFunc: I,
|
|
135
|
-
setAllRefList: B,
|
|
136
|
-
findRefById: G,
|
|
137
|
-
findRefByName: _,
|
|
138
|
-
changeRegisterToRefList: (l, y) => {
|
|
139
|
-
l && (g(l), h(y));
|
|
140
|
-
},
|
|
141
|
-
registerToRefList: g,
|
|
142
|
-
unregisterFromRefList: h
|
|
143
|
-
};
|
|
144
|
-
}
|
|
145
|
-
const io = (n, u, p, _) => {
|
|
146
|
-
const F = new De(n), { callRefFunc: I } = be(n), { parseGroupId: a } = Vt();
|
|
147
|
-
if (!n || n.length <= 0 || !u)
|
|
148
|
-
return;
|
|
149
|
-
const T = () => {
|
|
150
|
-
var r, c;
|
|
151
|
-
return (c = (r = Y(n)) == null ? void 0 : r.map((s) => I(n == null ? void 0 : n[s], $.getField))) == null ? void 0 : c.filter((s) => !!s);
|
|
152
|
-
}, B = (r) => {
|
|
153
|
-
var i;
|
|
154
|
-
const c = (i = T()) == null ? void 0 : i.find((f) => (f == null ? void 0 : f.id) === r);
|
|
155
|
-
if (!c)
|
|
156
|
-
return;
|
|
157
|
-
const s = J.getName(c), v = F.getWidgetRef(s);
|
|
158
|
-
if (v)
|
|
159
|
-
return { ref: v, name: s, id: c == null ? void 0 : c.id };
|
|
160
|
-
}, G = (r, c) => {
|
|
161
|
-
if (!oe(c))
|
|
162
|
-
return;
|
|
163
|
-
const s = J.getName(r), v = F.getWidgetRef(s);
|
|
164
|
-
if (v) {
|
|
165
|
-
const i = J.getOptions(r, L.defaultValue, !1, !(p != null && p.designState), { ...p, formData: c });
|
|
166
|
-
if (oe(i))
|
|
167
|
-
if (ft(i)) {
|
|
168
|
-
let f = ne(() => i.value, (m) => {
|
|
169
|
-
f == null || f(), I(v, $.setValue, { newValue: m });
|
|
170
|
-
});
|
|
171
|
-
} else
|
|
172
|
-
I(v, $.setValue, { newValue: i });
|
|
173
|
-
}
|
|
174
|
-
}, g = (r, c) => {
|
|
175
|
-
const s = B(r);
|
|
176
|
-
if (!s)
|
|
177
|
-
return;
|
|
178
|
-
const v = s.name, i = I(s.ref, $.getValue), f = I(s.ref, $.getCheckedItems), m = {};
|
|
179
|
-
return m[v] = i, i !== void 0 && !Gn(f) && !c && (m[`${v}${ye.checkedOptions}`] = f), m;
|
|
180
|
-
}, h = (r, c) => {
|
|
181
|
-
var v;
|
|
182
|
-
var s = [];
|
|
183
|
-
if ((v = T()) == null || v.forEach((i) => {
|
|
184
|
-
if (!i)
|
|
185
|
-
return;
|
|
186
|
-
const f = i == null ? void 0 : i.id;
|
|
187
|
-
var m = f === r;
|
|
188
|
-
const O = a(f), N = (O == null ? void 0 : O.id) === r, W = (O == null ? void 0 : O.groupName) === c;
|
|
189
|
-
return m || N && (W || !c) ? (s.push(i), !0) : !1;
|
|
190
|
-
}), !(!s || s.length <= 0))
|
|
191
|
-
return s == null ? void 0 : s.map((i) => {
|
|
192
|
-
var f;
|
|
193
|
-
return {
|
|
194
|
-
id: i == null ? void 0 : i.id,
|
|
195
|
-
name: (f = i == null ? void 0 : i._source) == null ? void 0 : f.name,
|
|
196
|
-
source: i == null ? void 0 : i._source
|
|
197
|
-
};
|
|
198
|
-
});
|
|
199
|
-
}, S = (r, c) => {
|
|
200
|
-
var s = [];
|
|
201
|
-
if (!r || (r == null ? void 0 : r.length) <= 0)
|
|
202
|
-
return s;
|
|
203
|
-
const v = a(u), i = v == null ? void 0 : v.groupName;
|
|
204
|
-
return c === Ce.Inner2Outer ? r == null || r.forEach((f) => {
|
|
205
|
-
var m = h(f);
|
|
206
|
-
m && (m == null ? void 0 : m.length) > 0 && s.push(...m);
|
|
207
|
-
}) : r == null || r.forEach((f) => {
|
|
208
|
-
var m = h(f, i);
|
|
209
|
-
m && (m == null ? void 0 : m.length) > 0 && s.push(...m);
|
|
210
|
-
}), s;
|
|
211
|
-
}, l = (r, c) => {
|
|
212
|
-
let s = {};
|
|
213
|
-
if (!r || r.length <= 0)
|
|
214
|
-
return s;
|
|
215
|
-
if (c === Ce.Inner2Outer) {
|
|
216
|
-
var v = Hn(r, (i) => {
|
|
217
|
-
var f;
|
|
218
|
-
return (f = i.source) == null ? void 0 : f.id;
|
|
219
|
-
});
|
|
220
|
-
v == null || v.forEach((i) => {
|
|
221
|
-
var O;
|
|
222
|
-
const f = i.group[0], m = [];
|
|
223
|
-
(O = i == null ? void 0 : i.children) == null || O.forEach((N) => {
|
|
224
|
-
const W = g(N == null ? void 0 : N.id, !0);
|
|
225
|
-
if (oe(W)) {
|
|
226
|
-
var K = Object.values(Be(W));
|
|
227
|
-
m.push(...K);
|
|
228
|
-
}
|
|
229
|
-
}), f && (s = Object.assign(s, { [f]: m }));
|
|
230
|
-
});
|
|
231
|
-
} else
|
|
232
|
-
r.forEach((i) => {
|
|
233
|
-
const f = g(i == null ? void 0 : i.id);
|
|
234
|
-
oe(f) && (s = Object.assign(s, f));
|
|
235
|
-
});
|
|
236
|
-
return s;
|
|
237
|
-
}, y = (r) => {
|
|
238
|
-
var c = {};
|
|
239
|
-
return r == null || r.forEach((s) => {
|
|
240
|
-
var v;
|
|
241
|
-
s != null && s.source && (s != null && s.id) && (c[(v = s == null ? void 0 : s.source) == null ? void 0 : v.id] = s == null ? void 0 : s.id);
|
|
242
|
-
}), c;
|
|
243
|
-
}, R = (r, c, s) => {
|
|
244
|
-
if (s === Ce.Inner2Inner) {
|
|
245
|
-
const m = Xn(c), { updateFomula: O } = Ot(), { buildVariable: N } = Yn();
|
|
246
|
-
var v = y(r);
|
|
247
|
-
if (oe(v)) {
|
|
248
|
-
var i = J.getOrgOption(c, L.defaultValue), f = O(vt(i), v, (W, K) => {
|
|
249
|
-
var A = v[W];
|
|
250
|
-
return lt(A) ? N(W) : N(A);
|
|
251
|
-
});
|
|
252
|
-
return J.setOrgOption(m, L.defaultValue, gt(f)), m;
|
|
253
|
-
}
|
|
254
|
-
}
|
|
255
|
-
return c;
|
|
256
|
-
}, V = (r) => {
|
|
257
|
-
const c = r == null ? void 0 : r.id;
|
|
258
|
-
var s = J.getOrgOption(r, L.defaultValue);
|
|
259
|
-
if (s == null)
|
|
260
|
-
return;
|
|
261
|
-
const v = so(u, c);
|
|
262
|
-
if (v === Ce.DiffInner)
|
|
263
|
-
return;
|
|
264
|
-
var i = pt.getFormulaRelatedField(s);
|
|
265
|
-
if (!i || i.length <= 0)
|
|
266
|
-
return;
|
|
267
|
-
var f = S(i, v);
|
|
268
|
-
if (!(f != null && f.some((O) => O.id === u)))
|
|
269
|
-
return;
|
|
270
|
-
const m = l(f, v);
|
|
271
|
-
G(R(f, r, v), m);
|
|
272
|
-
};
|
|
273
|
-
(() => {
|
|
274
|
-
var r;
|
|
275
|
-
(r = T()) == null || r.forEach((c) => {
|
|
276
|
-
V(c);
|
|
277
|
-
});
|
|
278
|
-
})();
|
|
279
|
-
}, fo = (n, u, p, _, F) => {
|
|
280
|
-
var S;
|
|
281
|
-
if (F || !oe(p))
|
|
282
|
-
return;
|
|
283
|
-
const { parseGroupId: I } = Vt();
|
|
284
|
-
var a = I(u), T = a == null ? void 0 : a.groupName;
|
|
285
|
-
const { callRefFunc: B } = be(n), G = (l, y) => {
|
|
286
|
-
var s, v, i;
|
|
287
|
-
const R = (v = (s = Y(n)) == null ? void 0 : s.map((f) => B(n == null ? void 0 : n[f], $.getField))) == null ? void 0 : v.filter((f) => !!f), V = (i = to(R, (f) => {
|
|
288
|
-
var m = I(f == null ? void 0 : f.id);
|
|
289
|
-
return (!T || (m == null ? void 0 : m.groupName) === T) && (m == null ? void 0 : m.id) === l;
|
|
290
|
-
})) == null ? void 0 : i[0];
|
|
291
|
-
if (!V)
|
|
292
|
-
return;
|
|
293
|
-
const b = J.getName(V), c = new De(n).getWidgetRef(b);
|
|
294
|
-
c && (y == null || y(c));
|
|
295
|
-
}, g = dt(_ == null ? void 0 : _.newValue, !0), h = (S = Y(p)) == null ? void 0 : S.filter((l) => g == null ? void 0 : g.includes(l));
|
|
296
|
-
!h || h.length <= 0 || h == null || h.forEach((l) => {
|
|
297
|
-
var R, V;
|
|
298
|
-
const y = (R = p == null ? void 0 : p[l]) == null ? void 0 : R.result;
|
|
299
|
-
(V = Y(y)) == null || V.forEach((b) => {
|
|
300
|
-
var c;
|
|
301
|
-
const r = y == null ? void 0 : y[b];
|
|
302
|
-
(c = r == null ? void 0 : r.ids) == null || c.forEach((s) => {
|
|
303
|
-
G(s, (v) => {
|
|
304
|
-
B(v, r == null ? void 0 : r.event, r == null ? void 0 : r.args);
|
|
305
|
-
});
|
|
306
|
-
});
|
|
307
|
-
});
|
|
308
|
-
});
|
|
309
|
-
};
|
|
310
|
-
function Ct(n, u) {
|
|
311
|
-
var p;
|
|
312
|
-
return (p = n == null ? void 0 : n.classList) != null && p.contains(u) ? n : n != null && n.parentElement ? Ct(n == null ? void 0 : n.parentElement, u) : null;
|
|
313
|
-
}
|
|
314
|
-
function lo() {
|
|
315
|
-
const n = (g) => {
|
|
316
|
-
if (g)
|
|
317
|
-
return g != null && g.ref ? g == null ? void 0 : g.ref : g;
|
|
318
|
-
}, u = (g) => {
|
|
319
|
-
var h, S;
|
|
320
|
-
try {
|
|
321
|
-
(S = (h = n(g)) == null ? void 0 : h.focus) == null || S.call(h);
|
|
322
|
-
} catch (l) {
|
|
323
|
-
ce.error("focus", l, g);
|
|
324
|
-
}
|
|
325
|
-
}, p = (g) => {
|
|
326
|
-
var h, S;
|
|
327
|
-
try {
|
|
328
|
-
(S = (h = n(g)) == null ? void 0 : h.blur) == null || S.call(h);
|
|
329
|
-
} catch (l) {
|
|
330
|
-
ce.error("blur", l, g);
|
|
331
|
-
}
|
|
332
|
-
}, _ = (g) => {
|
|
333
|
-
var h;
|
|
334
|
-
return (h = n(g)) == null ? void 0 : h.selectionStart;
|
|
335
|
-
}, F = (g) => {
|
|
336
|
-
var h;
|
|
337
|
-
return (h = n(g)) == null ? void 0 : h.selectionEnd;
|
|
338
|
-
}, I = (g, h) => {
|
|
339
|
-
var S;
|
|
340
|
-
return (S = n(g)) == null ? void 0 : S.setSelectionRange(h, h);
|
|
341
|
-
}, a = (g, h) => {
|
|
342
|
-
u(g), I(g, h);
|
|
343
|
-
};
|
|
344
|
-
return {
|
|
345
|
-
getSelectionStart: _,
|
|
346
|
-
getSelectionEnd: F,
|
|
347
|
-
setSelectionStart: I,
|
|
348
|
-
blur: p,
|
|
349
|
-
focus: u,
|
|
350
|
-
setMousePos: a,
|
|
351
|
-
getMousePos: (g) => _(g),
|
|
352
|
-
insertOnMousePos: (g, h, S) => {
|
|
353
|
-
const l = _(g), y = F(g), R = Un(S, h, l, y);
|
|
354
|
-
return it(() => {
|
|
355
|
-
a(g, l + (h == null ? void 0 : h.length));
|
|
356
|
-
}), R;
|
|
357
|
-
},
|
|
358
|
-
deleteOnMousePos: (g, h) => Jn(h, g)
|
|
359
|
-
};
|
|
360
|
-
}
|
|
361
|
-
const at = (n) => {
|
|
362
|
-
var p;
|
|
363
|
-
const { getFormulaFields: u } = Ot();
|
|
364
|
-
return ((p = u(vt(n))) == null ? void 0 : p.length) > 0;
|
|
365
|
-
}, X = (n) => {
|
|
366
|
-
const u = n.type;
|
|
367
|
-
//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
|
|
368
|
-
return n.formItemFlag || [z.form, z.dialog].includes(u);
|
|
369
|
-
}, Te = (n) => {
|
|
370
|
-
const u = n.type;
|
|
371
|
-
return [z.treeSelect, z.cascader, z.select, z.checkbox, z.radio].includes(u);
|
|
372
|
-
};
|
|
373
|
-
function xo(n) {
|
|
374
|
-
const u = n == null ? void 0 : n.designState, p = (n == null ? void 0 : n.created) != !1, _ = n == null ? void 0 : n.exResetField, F = n == null ? void 0 : n.extInitFieldModel, I = n == null ? void 0 : n.exposedWholeInstance, a = n == null ? void 0 : n.widget, T = n == null ? void 0 : n.designer, B = T == null ? void 0 : T.pageConfig, { globalFormOptions: G, formRefList: g, globalRefList: h, globalConfig: S, globalFormName: l, globalDataModel: y, rowScope: R } = Zn.globalInject();
|
|
375
|
-
let V = Ln(y || {});
|
|
376
|
-
const b = be(h), r = be(g), { instance: c } = mt(), s = () => te(V), v = () => R, i = () => a, f = {
|
|
377
|
-
designState: u,
|
|
378
|
-
pageConfig: B,
|
|
379
|
-
formData: !u && at(a) ? V : {},
|
|
380
|
-
globalConfig: S
|
|
381
|
-
}, m = {
|
|
382
|
-
instance: c,
|
|
383
|
-
...f
|
|
384
|
-
}, O = st(m), N = {
|
|
385
|
-
exposed: {
|
|
386
|
-
getFormData: !u && at(a) ? s : null,
|
|
387
|
-
findRefByName: b.getWidgetRef,
|
|
388
|
-
fieldEditor: () => q.value,
|
|
389
|
-
getField: i,
|
|
390
|
-
getRowScope: v,
|
|
391
|
-
/**
|
|
392
|
-
* 此处暴露schemadata方法
|
|
393
|
-
* 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
|
|
394
|
-
*/
|
|
395
|
-
getOneSchemaData: O == null ? void 0 : O.getOneSchemaData,
|
|
396
|
-
getSchemaDataObject: O == null ? void 0 : O.getSchemaDataObject,
|
|
397
|
-
getSchemaDatas: O == null ? void 0 : O.getSchemaDatas,
|
|
398
|
-
getGlobalParams: O == null ? void 0 : O.getGlobalParams
|
|
399
|
-
}
|
|
400
|
-
}, W = {
|
|
401
|
-
instance: I ? c : N,
|
|
402
|
-
...f
|
|
403
|
-
}, { on$: K, dispatch: A, emit$: je } = qn(), { onCompErrorCaptured: yt } = ao(), { existFunc: bt } = co({ options: a == null ? void 0 : a.options }, W), { isIdClass: Et, getIdByIdClass: Rt } = no(a), { getOneSchemaData: Mt, getSchemaDataObject: xt, getSchemaDatas: _t, getGlobalParams: Pt } = st(W), Z = lo(), St = (n == null ? void 0 : n.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: w, extendAttrs: Ee, events: k, slots: Le, rules: $e, fieldName: M, buildRules: Wt, clearRules: It, disableChangeValidate: Tt, enableChangeValidate: Ft, optionItems: ie, refreshOptionItems: Nt, filterOptionItems: Bt, getCheckedOptionText: Dt, getCheckedOptionValues: jt, getCheckedOptionLabels: Lt, getCheckedOptionItems: $t, activeOptionItems: At, activeOptionItem: kt, activeOptionItemIndex: Ht, setOptionItems: Ae, isOptionWidget: Gt, setWidgetOption: re, getWidgetOption: fe, getWidgetOptionByPropValue: Kt, setFieldEnable: qt, hasFieldOptions: Ut, getFieldOptions: se, setFieldOptions: Jt, computedDefaultValue: le, hasDefaultValue: me, singleOption: zt, watchOption: ke, addCssClass: Qt, removeCssClass: Xt } = ht(a, W, St, c), He = ge(() => {
|
|
404
|
-
var C;
|
|
405
|
-
if (![z.wrapper].includes(a.type) && a.category == ro.container)
|
|
406
|
-
return w.value;
|
|
407
|
-
var e = Ge(P.disabled, w.value), t = Ge(P.readonly, w.value);
|
|
408
|
-
if (!a.formItemFlag) {
|
|
409
|
-
var o = (e == null ? void 0 : e.disabled) === !0;
|
|
410
|
-
if (pe(w.value, P.disabled) && !o && !pe(w.value, P.readonly)) {
|
|
411
|
-
var d = (C = rt(G)) == null ? void 0 : C[P.readonly], E = d === !0;
|
|
412
|
-
e[P.disabled] = E;
|
|
413
|
-
}
|
|
414
|
-
}
|
|
415
|
-
return {
|
|
416
|
-
...w.value,
|
|
417
|
-
...e,
|
|
418
|
-
...t
|
|
419
|
-
};
|
|
420
|
-
}), Ge = (e, t) => {
|
|
421
|
-
var o;
|
|
422
|
-
return pe(t, e) ? {
|
|
423
|
-
[e]: ((o = rt(G)) == null ? void 0 : o[e]) || (t == null ? void 0 : t[e])
|
|
424
|
-
} : {};
|
|
425
|
-
};
|
|
426
|
-
let Re = null, x = he();
|
|
427
|
-
const q = he(), Yt = () => M.value, Ke = () => `${a == null ? void 0 : a.id}-${uo()}`, Me = he(Ke()), qe = () => {
|
|
428
|
-
Me.value = Ke();
|
|
429
|
-
}, Zt = ge({
|
|
430
|
-
get: () => {
|
|
431
|
-
if (Fe(x.value)) {
|
|
432
|
-
var e = Number(x.value);
|
|
433
|
-
return isNaN(e) ? void 0 : (x.value = e, e);
|
|
434
|
-
}
|
|
435
|
-
return x.value;
|
|
436
|
-
},
|
|
437
|
-
set: (e) => {
|
|
438
|
-
x.value = e;
|
|
439
|
-
}
|
|
440
|
-
}), wt = ge({
|
|
441
|
-
get: () => {
|
|
442
|
-
if (Fe(x.value)) {
|
|
443
|
-
var e = gt(x.value);
|
|
444
|
-
Kn(e) && (x.value = e);
|
|
445
|
-
}
|
|
446
|
-
return x.value;
|
|
447
|
-
},
|
|
448
|
-
set: (e) => {
|
|
449
|
-
x.value = e;
|
|
450
|
-
}
|
|
451
|
-
}), en = (e) => {
|
|
452
|
-
var o, d;
|
|
453
|
-
var t = (d = (o = b.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : d.loadOptionItems;
|
|
454
|
-
if (t !== void 0) {
|
|
455
|
-
t == null || t(e);
|
|
456
|
-
return;
|
|
457
|
-
}
|
|
458
|
-
Ae(e);
|
|
459
|
-
}, xe = (e) => {
|
|
460
|
-
var t, o, d;
|
|
461
|
-
return (d = (o = (t = b.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedItems) == null ? void 0 : d.call(o, e);
|
|
462
|
-
}, Ue = (e) => {
|
|
463
|
-
var t, o, d;
|
|
464
|
-
return (d = (o = (t = b.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedLabels) == null ? void 0 : d.call(o, e);
|
|
465
|
-
}, tn = (e) => {
|
|
466
|
-
var t, o, d;
|
|
467
|
-
return (d = (o = (t = b.getWidgetRef(M.value)) == null ? void 0 : t.exposed) == null ? void 0 : o.getCheckedText) == null ? void 0 : d.call(o, e);
|
|
468
|
-
}, ee = (e) => {
|
|
469
|
-
var C;
|
|
470
|
-
if (!Gt())
|
|
471
|
-
return;
|
|
472
|
-
const t = (C = Ee.value) == null ? void 0 : C.withAttachData;
|
|
473
|
-
if (!Te(a) || t === !1)
|
|
474
|
-
return;
|
|
475
|
-
const o = Ue(e), d = tn(e);
|
|
476
|
-
var E = te(xe(e));
|
|
477
|
-
Je(o, E, d);
|
|
478
|
-
}, Je = (e, t, o) => {
|
|
479
|
-
var d = {};
|
|
480
|
-
if (e != null) {
|
|
481
|
-
let E = se("textName", !1);
|
|
482
|
-
[`${M.value}${ye.optionText}`, E].forEach((C) => {
|
|
483
|
-
C && d[C] === void 0 && (d[C] = e);
|
|
484
|
-
});
|
|
485
|
-
}
|
|
486
|
-
if (t != null) {
|
|
487
|
-
let E = se("optionName", !1);
|
|
488
|
-
[`${M.value}${ye.checkedOptions}`, E].forEach((C) => {
|
|
489
|
-
C && d[C] === void 0 && (d[C] = t);
|
|
490
|
-
});
|
|
491
|
-
}
|
|
492
|
-
if (o != null) {
|
|
493
|
-
let E = se("labelName", !1);
|
|
494
|
-
e !== o && [`${M.value}${ye.optionLabelName}`].forEach((C) => {
|
|
495
|
-
C && d[C] === void 0 && (d[C] = o);
|
|
496
|
-
}), E && [E].forEach((C) => {
|
|
497
|
-
C && d[C] === void 0 && (d[C] = o);
|
|
498
|
-
});
|
|
499
|
-
}
|
|
500
|
-
ze(te(d));
|
|
501
|
-
}, Q = (e) => {
|
|
502
|
-
if (X(a)) {
|
|
503
|
-
ee(e);
|
|
504
|
-
var t = { [M.value]: e };
|
|
505
|
-
ze(t);
|
|
506
|
-
}
|
|
507
|
-
}, ze = (e) => {
|
|
508
|
-
Oe(V, e);
|
|
509
|
-
}, ue = (e) => {
|
|
510
|
-
u || Q(e);
|
|
511
|
-
}, Qe = (e) => se(e, !1), Xe = () => {
|
|
512
|
-
var e = kn(V);
|
|
513
|
-
x = pt.get(e, M.value);
|
|
514
|
-
}, Ye = (e) => {
|
|
515
|
-
Re = te(e);
|
|
516
|
-
}, nn = (e) => {
|
|
517
|
-
u || F && F(e);
|
|
518
|
-
}, on = () => {
|
|
519
|
-
me() && Ve(le()).then((e) => {
|
|
520
|
-
Q(e), Xe();
|
|
521
|
-
});
|
|
522
|
-
}, de = (e, t) => {
|
|
523
|
-
if (!X(a))
|
|
524
|
-
return;
|
|
525
|
-
je(L.fieldValueChanged, { newValue: e, oldValue: t });
|
|
526
|
-
const o = { fieldId: a.id, fieldName: M.value, newValue: e, oldValue: t };
|
|
527
|
-
A(l, L.fieldChange, o, c);
|
|
528
|
-
}, rn = (e) => bt(e), _e = (e, t) => Ne(fe(e), t), sn = (e) => {
|
|
529
|
-
ue(e), Ze(), _e(L.onInput, { value: e });
|
|
530
|
-
}, un = (e, t) => {
|
|
531
|
-
var o, d, E;
|
|
532
|
-
return (E = (d = (o = b.getWidgetRef(M.value)) == null ? void 0 : o.exposed) == null ? void 0 : d.handleBeforeChange) == null ? void 0 : E.call(d, e, t);
|
|
533
|
-
}, an = (...e) => {
|
|
534
|
-
var E, C, D;
|
|
535
|
-
let o = ((E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) != null ? (D = (C = e == null ? void 0 : e[0]) == null ? void 0 : C.target) == null ? void 0 : D.value : e == null ? void 0 : e[0];
|
|
536
|
-
o = te(o);
|
|
537
|
-
var d = un(o, Re);
|
|
538
|
-
d != null ? ue(d) : ue(o), de(o, Re), Ze(), Ye(o);
|
|
539
|
-
}, cn = (e = !0) => {
|
|
540
|
-
re(P.readonly, e);
|
|
541
|
-
}, fn = (e = !0) => {
|
|
542
|
-
re(P.disabled, e);
|
|
543
|
-
}, ln = (e = !0) => {
|
|
544
|
-
re(P.hidden, e), e ? et() : ve();
|
|
545
|
-
}, mn = (e = !0) => {
|
|
546
|
-
qt(P.required, e), ve();
|
|
547
|
-
}, dn = (e) => {
|
|
548
|
-
re(P.label, e);
|
|
549
|
-
}, U = () => x == null ? void 0 : x.value, Pe = (e) => {
|
|
550
|
-
x.value = e, ee(e);
|
|
551
|
-
}, ae = (e) => {
|
|
552
|
-
let t = te(U());
|
|
553
|
-
if (Pe(e), !X(a))
|
|
554
|
-
return;
|
|
555
|
-
const o = U();
|
|
556
|
-
t !== o && (ue(o), de(e, t));
|
|
557
|
-
}, vn = () => {
|
|
558
|
-
me() ? Ve(le()).then((e) => {
|
|
559
|
-
Q(e);
|
|
560
|
-
}) : Q(null), _ == null || _();
|
|
561
|
-
}, gn = (e) => {
|
|
562
|
-
const t = U(), o = Z.insertOnMousePos(q.value, e, t);
|
|
563
|
-
ae(o);
|
|
564
|
-
}, hn = (e) => {
|
|
565
|
-
const t = U(), o = Z.deleteOnMousePos(e, t);
|
|
566
|
-
ae(o);
|
|
567
|
-
}, pn = (e, t) => {
|
|
568
|
-
ne(() => x == null ? void 0 : x.value, (o, d) => {
|
|
569
|
-
e == null || e({ id: a.id, name: M.value, newValue: o, oldValue: d });
|
|
570
|
-
}, t);
|
|
571
|
-
}, On = (e) => {
|
|
572
|
-
var C;
|
|
573
|
-
e.preventDefault();
|
|
574
|
-
const t = (D) => {
|
|
575
|
-
var H;
|
|
576
|
-
const j = (H = Array.from(D.classList)) == null ? void 0 : H.find((Se) => Et(Se));
|
|
577
|
-
return j ? Rt(j) : "";
|
|
578
|
-
}, o = document.activeElement;
|
|
579
|
-
if (!o)
|
|
580
|
-
return;
|
|
581
|
-
const d = document.getElementsByClassName(ot.formItemTarget);
|
|
582
|
-
for (var E = 0; E < d.length; E++) {
|
|
583
|
-
const D = d[E], j = Ct(o, ot.formItemTarget);
|
|
584
|
-
if (!j)
|
|
585
|
-
continue;
|
|
586
|
-
const H = t(D), Se = t(j);
|
|
587
|
-
if (H === Se) {
|
|
588
|
-
if (E === d.length - 1)
|
|
589
|
-
return;
|
|
590
|
-
const In = d[E + 1], Tn = t(In), We = b.findRefById(Tn, c);
|
|
591
|
-
try {
|
|
592
|
-
(C = We == null ? void 0 : We.exposed) == null || C.focus();
|
|
593
|
-
} catch (Fn) {
|
|
594
|
-
ce.error("handleEnter", Fn);
|
|
595
|
-
}
|
|
596
|
-
}
|
|
597
|
-
}
|
|
598
|
-
};
|
|
599
|
-
let Vn = () => {
|
|
600
|
-
var D;
|
|
601
|
-
let e = {
|
|
602
|
-
componentName: M.value,
|
|
603
|
-
//用于组件事件emitter发射与接收处理
|
|
604
|
-
refList: g,
|
|
605
|
-
allRefList: h,
|
|
606
|
-
fieldEditor: () => q.value,
|
|
607
|
-
changeRegisterToRefList: (j, H) => {
|
|
608
|
-
b.changeRegisterToRefList(j, H), r.changeRegisterToRefList(j, H);
|
|
609
|
-
},
|
|
610
|
-
getField: i,
|
|
611
|
-
getFormData: s,
|
|
612
|
-
getValue: U,
|
|
613
|
-
setValue: Pe,
|
|
614
|
-
emit$: je,
|
|
615
|
-
findRefByName: b.getWidgetRef,
|
|
616
|
-
findRefById: b.findRefById,
|
|
617
|
-
callRefFunc: b.callRefFunc,
|
|
618
|
-
getWidgetOption: fe,
|
|
619
|
-
setWidgetOption: re,
|
|
620
|
-
refreshKey: qe,
|
|
621
|
-
getRowScope: v,
|
|
622
|
-
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
623
|
-
getOneSchemaData: Mt,
|
|
624
|
-
getSchemaDatas: _t,
|
|
625
|
-
getSchemaDataObject: xt,
|
|
626
|
-
getGlobalParams: Pt,
|
|
627
|
-
addCssClass: Qt,
|
|
628
|
-
removeCssClass: Xt
|
|
629
|
-
}, t = {
|
|
630
|
-
resetField: vn,
|
|
631
|
-
getValue: U,
|
|
632
|
-
setValue: ae,
|
|
633
|
-
refreshDefaultValue: on,
|
|
634
|
-
insertOnMousePos: gn,
|
|
635
|
-
deleteOnMousePos: hn,
|
|
636
|
-
disableChangeValidate: Tt,
|
|
637
|
-
enableChangeValidate: Ft,
|
|
638
|
-
focus: () => {
|
|
639
|
-
Z.focus(q.value);
|
|
640
|
-
},
|
|
641
|
-
blur: () => {
|
|
642
|
-
Z.blur(q.value);
|
|
643
|
-
},
|
|
644
|
-
getMousePos: () => {
|
|
645
|
-
Z.getMousePos(q.value);
|
|
646
|
-
},
|
|
647
|
-
setMousePos: (j) => {
|
|
648
|
-
Z.setMousePos(q.value, j);
|
|
649
|
-
}
|
|
650
|
-
}, o = {
|
|
651
|
-
loadOptionItems: en,
|
|
652
|
-
getCheckedItems: xe,
|
|
653
|
-
getCheckedLabels: Ue
|
|
654
|
-
}, d = {
|
|
655
|
-
[P.required]: { name: $.setRequired, fn: mn },
|
|
656
|
-
[P.label]: { name: $.setLabel, fn: dn },
|
|
657
|
-
[P.hidden]: { name: $.setHidden, fn: ln },
|
|
658
|
-
[P.disabled]: { name: $.setDisabled, fn },
|
|
659
|
-
[P.readonly]: { name: $.setReadonly, fn: cn }
|
|
660
|
-
}, E = {};
|
|
661
|
-
(D = Y(d)) == null || D.forEach((j) => {
|
|
662
|
-
if (Ie(a, j)) {
|
|
663
|
-
const H = d[j];
|
|
664
|
-
E[H.name] = H.fn;
|
|
665
|
-
}
|
|
666
|
-
});
|
|
667
|
-
var C = Oe(e, E);
|
|
668
|
-
return X(a) && (C = Oe(C, t)), Te(a) && (C = Oe(C, o)), C;
|
|
669
|
-
};
|
|
670
|
-
const Cn = ge(() => ({
|
|
671
|
-
attrs: He.value,
|
|
672
|
-
extendAttrs: Ee.value,
|
|
673
|
-
events: k.value,
|
|
674
|
-
slots: Le.value,
|
|
675
|
-
fieldKey: Me.value,
|
|
676
|
-
fieldEditor: q.value,
|
|
677
|
-
fieldName: M.value
|
|
678
|
-
})), yn = (e) => {
|
|
679
|
-
n.designState && n.designer && ne(() => {
|
|
680
|
-
var t;
|
|
681
|
-
return (t = n == null ? void 0 : n.widget) == null ? void 0 : t[e];
|
|
682
|
-
}, (t, o) => {
|
|
683
|
-
const { emitHistoryChange: d } = oo(n.designer);
|
|
684
|
-
d(`edit ${M.value}.${e},newValue:${t},oldValue:${o}`);
|
|
685
|
-
}, {
|
|
686
|
-
deep: !0
|
|
687
|
-
});
|
|
688
|
-
}, bn = (e, t, o) => {
|
|
689
|
-
const d = he(), E = Qe(e), C = (D) => {
|
|
690
|
-
t && (d.value = t(D || E));
|
|
691
|
-
};
|
|
692
|
-
return ft(E) ? ne(E, (D) => {
|
|
693
|
-
C(D), o && o(D);
|
|
694
|
-
}) : C(E), d;
|
|
695
|
-
}, En = () => {
|
|
696
|
-
!X(a) || u || pn((e) => {
|
|
697
|
-
const t = a == null ? void 0 : a.id;
|
|
698
|
-
io(h, t, W), fo(h, t, J.getOptions(a, P.relate), e), ee(e.newValue), setTimeout(() => {
|
|
699
|
-
ee(e.newValue), nn(e == null ? void 0 : e.newValue);
|
|
700
|
-
}, 1e3), de(e.newValue, e.oldValue);
|
|
701
|
-
}, { immediate: !0 });
|
|
702
|
-
}, Ze = () => {
|
|
703
|
-
const e = { propName: M.value };
|
|
704
|
-
A(l, L.fieldValidation, e, c);
|
|
705
|
-
}, we = () => {
|
|
706
|
-
const e = { fieldId: a.id, fieldName: M.value, rules: $e };
|
|
707
|
-
A(l, L.fieldRuleChange, e, c);
|
|
708
|
-
}, ve = () => {
|
|
709
|
-
if (!X(a))
|
|
710
|
-
return;
|
|
711
|
-
const e = Wt();
|
|
712
|
-
return we(), e;
|
|
713
|
-
}, et = () => {
|
|
714
|
-
It(), we();
|
|
715
|
-
}, Rn = () => {
|
|
716
|
-
Ie(a, "change") && (k.value.change = an), Ie(a, "input") && (k.value.input = sn), K(zn.setFormData, (e) => {
|
|
717
|
-
ae(e[M.value]);
|
|
718
|
-
}), K(L.fieldValueChanged, (e) => {
|
|
719
|
-
_e(L.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
720
|
-
});
|
|
721
|
-
}, Mn = () => {
|
|
722
|
-
let e = M.value;
|
|
723
|
-
X(a) ? ((!pe(V, e) || V[e] === void 0) && (Q(null), me() && Ve(le()).then((t) => {
|
|
724
|
-
t == null ? Q(null) : Q(t);
|
|
725
|
-
})), Xe()) : me() && Ve(le()).then((t) => {
|
|
726
|
-
ae(t);
|
|
727
|
-
}), Ye(U());
|
|
728
|
-
}, xn = () => {
|
|
729
|
-
Te(a) && ne(() => ie == null ? void 0 : ie.value, (e, t) => {
|
|
730
|
-
ee(x.value);
|
|
731
|
-
}, { immediate: !0 });
|
|
732
|
-
}, _n = () => {
|
|
733
|
-
ke(!0, P.css, void 0, (e) => {
|
|
734
|
-
tt();
|
|
735
|
-
});
|
|
736
|
-
}, Pn = () => {
|
|
737
|
-
const e = An(Qn.isRenderComplete), t = () => {
|
|
738
|
-
setTimeout(() => {
|
|
739
|
-
xn(), En();
|
|
740
|
-
}, 10);
|
|
741
|
-
};
|
|
742
|
-
if (e != null && e.value) {
|
|
743
|
-
t();
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
|
-
e != null && ne(() => e == null ? void 0 : e.value, (o) => {
|
|
747
|
-
o && t();
|
|
748
|
-
}, { immediate: !0 });
|
|
749
|
-
}, Sn = () => {
|
|
750
|
-
var e, t;
|
|
751
|
-
if (p)
|
|
752
|
-
try {
|
|
753
|
-
Mn(), ve(), Rn(), b.registerToRefList(M.value), r.registerToRefList(M.value), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.created) == null || t.call(e), yt();
|
|
754
|
-
} catch (o) {
|
|
755
|
-
ce.error("create", o);
|
|
756
|
-
}
|
|
757
|
-
}, Wn = () => {
|
|
758
|
-
p && (ct(() => {
|
|
759
|
-
var e, t;
|
|
760
|
-
try {
|
|
761
|
-
tt(), _n(), Pn(), (t = (e = k == null ? void 0 : k.value) == null ? void 0 : e.mounted) == null || t.call(e);
|
|
762
|
-
} catch (o) {
|
|
763
|
-
console.log("mounted", a, o);
|
|
764
|
-
}
|
|
765
|
-
}), $n(() => {
|
|
766
|
-
b.unregisterFromRefList(M.value), r.unregisterFromRefList(M.value);
|
|
767
|
-
}));
|
|
768
|
-
}, tt = () => {
|
|
769
|
-
const e = a == null ? void 0 : a.id, t = fe(P.css);
|
|
770
|
-
t && e && wn(t).then((o) => {
|
|
771
|
-
eo(o, e);
|
|
772
|
-
});
|
|
773
|
-
};
|
|
774
|
-
return Sn(), Wn(), {
|
|
775
|
-
exposed: Vn(),
|
|
776
|
-
fieldModel: x,
|
|
777
|
-
objFieldModel: wt,
|
|
778
|
-
numFieldModel: Zt,
|
|
779
|
-
fieldEditor: q,
|
|
780
|
-
fieldKey: Me,
|
|
781
|
-
field: a,
|
|
782
|
-
instance: c,
|
|
783
|
-
attrs: He,
|
|
784
|
-
extendAttrs: Ee,
|
|
785
|
-
slots: Le,
|
|
786
|
-
events: k,
|
|
787
|
-
rules: $e,
|
|
788
|
-
fieldObj: Cn,
|
|
789
|
-
getValue: U,
|
|
790
|
-
setValue: Pe,
|
|
791
|
-
pageConfig: B,
|
|
792
|
-
formModel: V,
|
|
793
|
-
fieldName: M,
|
|
794
|
-
propResultOpt: W,
|
|
795
|
-
optionItems: ie,
|
|
796
|
-
activeOptionItems: At,
|
|
797
|
-
activeOptionItem: kt,
|
|
798
|
-
activeOptionItemIndex: Ht,
|
|
799
|
-
refreshOptionItems: Nt,
|
|
800
|
-
refreshOptionField: ee,
|
|
801
|
-
filterOptionItems: Bt,
|
|
802
|
-
setOptionItems: Ae,
|
|
803
|
-
getCheckedItems: xe,
|
|
804
|
-
getCheckedOptionItems: (e, t) => $t(e || x.value, t),
|
|
805
|
-
getCheckedOptionLabels: (e, t) => Lt(e || x.value, t),
|
|
806
|
-
getCheckedOptionValues: (e, t) => jt(e || x.value, t),
|
|
807
|
-
getCheckedOptionText: (e, t) => Dt(e || x.value, t),
|
|
808
|
-
refreshKey: qe,
|
|
809
|
-
watchKeyValue: bn,
|
|
810
|
-
watchPropAndSaveHistoryStep: yn,
|
|
811
|
-
existEvent: rn,
|
|
812
|
-
handleEvent: _e,
|
|
813
|
-
handleEnter: On,
|
|
814
|
-
getPropName: Yt,
|
|
815
|
-
emitFieldDataChange: de,
|
|
816
|
-
syncUpdateFormModel: ue,
|
|
817
|
-
getWidgetRef: b.getWidgetRef,
|
|
818
|
-
clearRules: et,
|
|
819
|
-
buildRules: ve,
|
|
820
|
-
getFieldOptionModel: Qe,
|
|
821
|
-
getFieldOptions: se,
|
|
822
|
-
hasFieldOptions: Ut,
|
|
823
|
-
setFieldOptions: Jt,
|
|
824
|
-
getWidgetOption: fe,
|
|
825
|
-
getWidgetOptionByPropValue: Kt,
|
|
826
|
-
singleOption: zt,
|
|
827
|
-
watchOption: ke,
|
|
828
|
-
mergeOptionToFormModel: Je
|
|
829
|
-
};
|
|
830
|
-
}
|
|
831
|
-
export {
|
|
832
|
-
De as R,
|
|
833
|
-
be as a,
|
|
834
|
-
ao as b,
|
|
835
|
-
xo as c,
|
|
836
|
-
co as u
|
|
837
|
-
};
|