hldesigner 0.0.302 → 0.0.304
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-cb63e0d3.js → _pdf-626e915e.js} +1 -1
- package/{_share_image-fff8050c.js → _share_image-fedad0aa.js} +1 -1
- package/{_share_size.vue_vue_type_script_setup_true_lang-aef5fb46.js → _share_size.vue_vue_type_script_setup_true_lang-5f4a5908.js} +2 -2
- package/{_txt-a1934e64.js → _txt-eea70f7a.js} +1 -1
- package/{affix-widget-0418ae2c.js → affix-widget-1b1466ee.js} +11 -11
- package/{alert-widget-e34ec4ec.js → alert-widget-5022f8c0.js} +11 -11
- package/{anchor-widget-3f1d09a6.js → anchor-widget-9e71c7f6.js} +8 -8
- package/{auto-complete-widget-ca861478.js → auto-complete-widget-1140e40e.js} +10 -10
- package/{avatar-widget-5e109b6e.js → avatar-widget-6452a0ee.js} +11 -11
- package/{backtop-widget-5a358f2b.js → backtop-widget-5e29197d.js} +11 -11
- package/{badge-widget-942844b3.js → badge-widget-e3b699ac.js} +11 -11
- package/{barcode-widget-893cce97.js → barcode-widget-a2b31129.js} +8 -8
- package/{baseCommonField-bc463e95.js → baseCommonField-e8a33156.js} +87 -87
- package/{breadcrumb-widget-31044351.js → breadcrumb-widget-89d0ed03.js} +8 -8
- package/{button-widget-54372647.js → button-widget-8e6e0d02.js} +11 -11
- package/{cache-widget-a4f8cfc9.js → cache-widget-41bae66f.js} +9 -9
- package/{card-widget-3dba7958.js → card-widget-61408234.js} +9 -9
- package/{carousel-widget-6ae1c439.js → carousel-widget-4dbd6eb5.js} +9 -9
- package/{cascader-widget-37bc89ab.js → cascader-widget-138cfeb3.js} +9 -9
- package/{chart-widget-0001a1f4.js → chart-widget-566ad07f.js} +8 -8
- package/{checkbox-widget-3cd1325c.js → checkbox-widget-80e8831a.js} +9 -9
- package/{collapse-widget-b3f5a3d4.js → collapse-widget-04b64dfa.js} +9 -9
- package/{color-picker-widget-d0beb753.js → color-picker-widget-af307efa.js} +9 -9
- package/{common-editor-6bf9ec24.js → common-editor-4f4f1d4d.js} +8 -8
- package/{common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-729dc4f9.js → common-editor.vue_vue_type_script_setup_true_name_common-editor_lang-4ca35c2d.js} +2 -2
- package/{configItem-5bfe4438.js → configItem-77746f5e.js} +27 -27
- package/{cont-cell-widget-dbf21b93.js → cont-cell-widget-ba282e65.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-7f6378c4.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-d6d5191e.js} +4 -4
- package/{cont-widget-bdc4315b.js → cont-widget-f9519802.js} +4 -4
- package/{content-wrapper-c912fa2c.js → content-wrapper-6c814450.js} +2 -2
- package/{content-wrapper.vue_vue_type_script_setup_true_lang-b1b933c9.js → content-wrapper.vue_vue_type_script_setup_true_lang-cc7c65fb.js} +1 -1
- package/{countdown-widget-4b3b4838.js → countdown-widget-e3374d74.js} +11 -11
- package/{css-editor-84531b4b.js → css-editor-cfee61f0.js} +10 -10
- package/{cssClass-feca86ba.js → cssClass-5bdc1e3b.js} +1 -1
- package/{cssIndex-c8ec8012.js → cssIndex-52fc5393.js} +1 -1
- package/{customClass-editor-ea521f17.js → customClass-editor-afe27073.js} +8 -8
- package/{date-picker-range-widget-d8325e17.js → date-picker-range-widget-656e5550.js} +9 -9
- package/{date-picker-widget-42468854.js → date-picker-widget-8dd85fed.js} +9 -9
- package/{default-slot-widget-c02d5693.js → default-slot-widget-61cda74d.js} +9 -9
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-0ddde13e.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-b17146d0.js} +4 -4
- package/{descriptions-widget-b0b3a01f.js → descriptions-widget-cd7568f5.js} +9 -9
- package/designer.es.js +25 -25
- package/designer.umd.js +210 -210
- package/{dialog-widget-0b618f22.js → dialog-widget-5f9ea0d5.js} +10 -10
- package/{divider-widget-16bc0f03.js → divider-widget-6a5c1bd9.js} +11 -11
- package/{drag-wrapper-4b351579.js → drag-wrapper-eb744225.js} +4 -4
- package/{drawer-widget-70248894.js → drawer-widget-19afe342.js} +10 -10
- package/{dropdown-widget-c2f228a5.js → dropdown-widget-dab33627.js} +9 -9
- package/{editor-wrapper-6f41e0d5.js → editor-wrapper-53cb2c9c.js} +6 -6
- package/{empty-widget-8472ead5.js → empty-widget-5218648d.js} +11 -11
- package/{feedback-widget-5fdf7f6c.js → feedback-widget-17dbcaec.js} +10 -10
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-57db6487.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-41095f46.js} +4 -4
- package/{field-editor-bf654f43.js → field-editor-e2cdf783.js} +7 -7
- package/{file-upload-widget-68b0a066.js → file-upload-widget-02b89247.js} +13 -13
- package/{form-item-wrapper-f6e226c6.js → form-item-wrapper-fa48611a.js} +5 -5
- package/{form-widget-499f3936.js → form-widget-a4b3965c.js} +6 -6
- package/{grid-col-widget-3127039e.js → grid-col-widget-060c461a.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-15f88002.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-0a152035.js} +4 -4
- package/{grid-widget-35f23b26.js → grid-widget-64f729ff.js} +4 -4
- package/{hcard-widget-05f51d4e.js → hcard-widget-e7ed5b30.js} +9 -9
- package/{html-text-widget-0bae8a9d.js → html-text-widget-e6415d53.js} +9 -9
- package/{icon-widget-08ea8543.js → icon-widget-022c1758.js} +8 -8
- package/{iframe-widget-da61af5c.js → iframe-widget-e87322cf.js} +8 -8
- package/{image-editor-0ac74900.js → image-editor-683a7fc8.js} +8 -8
- package/{image-widget-0f571db5.js → image-widget-d049888c.js} +8 -8
- package/{index-30639d5a.js → index-073d1e8b.js} +1 -1
- package/{index-77b0741c.js → index-08103efb.js} +8 -8
- package/{index-110950bb.js → index-0a9f60bc.js} +1 -1
- package/{index-47a1af07.js → index-0d86547b.js} +3 -3
- package/{index-cf00dc95.js → index-1ec174b6.js} +28 -28
- package/{index-fd23cb59.js → index-228951e8.js} +1 -1
- package/{index-cf180032.js → index-253cc8af.js} +27 -27
- package/{index-e70f7517.js → index-496fff71.js} +3 -3
- package/{index-11943fb4.js → index-4bc9ef4f.js} +29 -29
- package/{index-70bbe64b.js → index-5665b6aa.js} +11 -11
- package/{index-662e54b9.js → index-68a0c2f5.js} +8 -8
- package/{index-b0b5f3dd.js → index-697430db.js} +12 -12
- package/{index-882a5112.js → index-9a9db11d.js} +28 -28
- package/{index-7d433850.js → index-9c6489e1.js} +2 -2
- package/{index-8c6d1f99.js → index-b4bb2e0d.js} +28 -28
- package/{index-55fec8ee.js → index-bbb91a09.js} +28 -28
- package/{index-9bbb5803.js → index-bd824807.js} +3 -3
- package/{index-6c008c19.js → index-d033eea5.js} +4 -4
- package/{index-05856cfd.js → index-daf97e81.js} +3 -3
- package/{index-54fb31d8.js → index-f719fc09.js} +1 -1
- package/{index-a9655fc7.js → index-f802b7c5.js} +3 -3
- package/{input-number-widget-768ea8d4.js → input-number-widget-40eb662c.js} +9 -9
- package/{input-tag-widget-74a41430.js → input-tag-widget-fcda2a1e.js} +10 -10
- package/{input-widget-99dce3fc.js → input-widget-e81e0fe4.js} +10 -10
- package/{install-designer-a1986398.js → install-designer-a1a1bf53.js} +20 -20
- package/{link-widget-e8dbd6f1.js → link-widget-48af0497.js} +11 -11
- package/{ltable-col-widget-4054c5fc.js → ltable-col-widget-d9d45c58.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-2bad96a4.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-80fa8ad5.js} +6 -6
- package/{ltable-widget-e2270b2d.js → ltable-widget-d56d1d0c.js} +4 -4
- package/{mention-widget-704ff57b.js → mention-widget-5140774b.js} +10 -10
- package/{menu-widget-a1e01022.js → menu-widget-a62156d1.js} +9 -9
- package/{model-widget-66515fa2.js → model-widget-e2340f77.js} +8 -8
- package/{multirow-81bd98b0.js → multirow-cc29bc28.js} +57 -57
- package/{multirow-widget-9c2d1af0.js → multirow-widget-d12bbd5c.js} +9 -9
- package/{name-editor-7d247ad1.js → name-editor-7ee724ab.js} +8 -8
- package/{optionItem-93fffa00.js → optionItem-46823eb2.js} +1 -1
- package/package.json +1 -1
- package/{pagination-widget-ba395e1a.js → pagination-widget-84f5b5fd.js} +8 -8
- package/{picture-upload-widget-18ebc86f.js → picture-upload-widget-a31473ad.js} +10 -10
- package/{progress-widget-8062fd93.js → progress-widget-62296852.js} +9 -9
- package/{property-base-62062ad3.js → property-base-07e2d455.js} +1 -1
- package/{qrcode-widget-f324cfeb.js → qrcode-widget-b7d0e43a.js} +8 -8
- package/{radio-widget-d8c975f6.js → radio-widget-d74a3377.js} +9 -9
- package/{range-widget-b9a410e5.js → range-widget-d4dd8d36.js} +10 -10
- package/{rate-widget-d0e447c7.js → rate-widget-de421a03.js} +9 -9
- package/{reg-editor.vue_vue_type_script_setup_true_lang-01b54b43.js → reg-editor.vue_vue_type_script_setup_true_lang-e87304c0.js} +1 -1
- package/{result-widget-2cff3f54.js → result-widget-585b9e6b.js} +9 -9
- package/{rich-editor-widget-5a337929.js → rich-editor-widget-b28fcd4f.js} +9 -9
- package/{router-widget-4c2c35f4.js → router-widget-06f92497.js} +8 -8
- package/{schemaData-f430eb1d.js → schemaData-76c02833.js} +3 -3
- package/{segmented-widget-d6c1ad2a.js → segmented-widget-105b1450.js} +8 -8
- package/{select-widget-64b92665.js → select-widget-f36d5a82.js} +9 -9
- package/{sfc-b7c50945.js → sfc-3d1ca4c9.js} +5 -5
- package/{sfcview-69a1ef10.js → sfcview-6f1728f1.js} +4 -4
- package/{share-editor-0abc1925.js → share-editor-1a3a2080.js} +1 -1
- package/share-field-a9097de5.js +850 -0
- package/{share-file-038a6e35.js → share-file-c90c1b78.js} +2 -2
- package/{size-editor-b3c89eb9.js → size-editor-6f4a8242.js} +9 -9
- package/{skeleton-widget-917ca2ec.js → skeleton-widget-ddb1c441.js} +11 -11
- package/{skeletonItem-widget-7ce9424a.js → skeletonItem-widget-b2aa74f0.js} +8 -8
- package/{slider-widget-a21767c7.js → slider-widget-81026c9a.js} +9 -9
- package/{slot-c13ca692.js → slot-ae2cd44d.js} +1 -1
- package/{space-widget-f50afb65.js → space-widget-018203aa.js} +9 -9
- package/{splitter-widget-576cf48a.js → splitter-widget-db217383.js} +9 -9
- package/{static-text-widget-dc9874b2.js → static-text-widget-c79f30e0.js} +9 -9
- package/{statistic-widget-c3dcfda5.js → statistic-widget-31972cb4.js} +11 -11
- package/{steps-widget-0f5dec71.js → steps-widget-57643728.js} +8 -8
- package/{subMenu-widget-d52f4578.js → subMenu-widget-0c210b74.js} +2 -2
- package/{subMenu-widget.vue_vue_type_script_setup_true_lang-d42bbce9.js → subMenu-widget.vue_vue_type_script_setup_true_lang-ddaecbab.js} +1 -1
- package/{switch-widget-77358acf.js → switch-widget-409852ca.js} +9 -9
- package/{tab-pane-widget-d070a8ea.js → tab-pane-widget-a5e49ee2.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-e3626b87.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-825d472f.js} +4 -4
- package/{table-col-widget-d362fda1.js → table-col-widget-89bc6736.js} +8 -8
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-42f87a5e.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-5f4fb1a7.js} +29 -29
- package/{table-widget-9274f470.js → table-widget-7fe67f4d.js} +76 -72
- package/{tabs-widget-eda846d1.js → tabs-widget-f3477c40.js} +5 -5
- package/{tag-widget-e3e48a0e.js → tag-widget-4b15fe01.js} +11 -11
- package/{target-code-688b58cc.js → target-code-28166974.js} +3 -3
- package/{target-datasource-cf553e0e.js → target-datasource-057a8030.js} +29 -29
- package/{target-link-25cd2ae5.js → target-link-96e2e06f.js} +28 -28
- package/{target-saveForm-b7538b3f.js → target-saveForm-aa9dff46.js} +28 -28
- package/{target-window-bdb48b26.js → target-window-0396843b.js} +4 -4
- package/{text-widget-51f80407.js → text-widget-b240b56e.js} +11 -11
- package/{textarea-widget-81c7ec19.js → textarea-widget-c58a8abe.js} +9 -9
- package/{time-picker-range-widget-545c1773.js → time-picker-range-widget-4c15dd66.js} +9 -9
- package/{time-picker-widget-f188ab8c.js → time-picker-widget-202fbd11.js} +9 -9
- package/{time-select-widget-6aae15b2.js → time-select-widget-0838ae79.js} +9 -9
- package/{timeline-widget-edf3d212.js → timeline-widget-0b6ca561.js} +9 -9
- package/{tmpl-widget-a958f29d.js → tmpl-widget-0efa52dd.js} +9 -9
- package/{tooltip-widget-fcf52060.js → tooltip-widget-00bdc304.js} +9 -9
- package/{tour-widget-f5e19fa6.js → tour-widget-f22280a3.js} +8 -8
- package/{transfer-widget-11358889.js → transfer-widget-a12bc387.js} +10 -10
- package/{tree-select-widget-43bbc22a.js → tree-select-widget-f7b9a4b8.js} +9 -9
- package/{tree-widget-71794768.js → tree-widget-1e5b5353.js} +8 -8
- package/{value-editor-3bbb0ca6.js → value-editor-42c7cd07.js} +7 -7
- package/{verifycode-widget-817a68b4.js → verifycode-widget-135be5bf.js} +8 -8
- package/{widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-e9705670.js → widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-ea0ac15d.js} +3 -3
- package/{wrapper-widget-7b0840c0.js → wrapper-widget-d2b9c3c4.js} +4 -4
- package/share-field-42f9a242.js +0 -857
|
@@ -0,0 +1,850 @@
|
|
|
1
|
+
var An = Object.defineProperty;
|
|
2
|
+
var kn = (r, c, g) => c in r ? An(r, c, { enumerable: !0, configurable: !0, writable: !0, value: g }) : r[c] = g;
|
|
3
|
+
var ft = (r, c, g) => (kn(r, typeof c != "symbol" ? c + "" : c, g), g);
|
|
4
|
+
import { onMounted as pt, nextTick as gt, onActivated as $n, onErrorCaptured as Kn, toRaw as Ot, isRef as Vt, watch as oe, reactive as Oe, inject as Ie, computed as Ve, unref as je, ref as Ce, onBeforeUnmount as qn, toRefs as Hn } from "vue";
|
|
5
|
+
import { i as Ke, o as se, j as J, b as Gn, h as Ae, a as lt, d as Un } from "./object-17739dda.js";
|
|
6
|
+
import { u as Jn } from "./emitter-01bda185.js";
|
|
7
|
+
import { u as Ct } from "./icon-8b8b9744.js";
|
|
8
|
+
import { a as H, q as be, v as zn, x as Qn, g as L, d as ke, y as mt, w as Xn, f as dt } from "./expression-7fabf70c.js";
|
|
9
|
+
import { l as re, c as yt, t as Et, m as Rt, o as Yn, g as qe, f as bt, h as U, v as Zn, d as w, u as vt, w as ye } from "./index-a09de843.js";
|
|
10
|
+
import { P as Me, e as wn, B as xe, f as He, h as eo, W as ee, a as ht, c as to, i as no, d as oo } from "./baseCommonField-e8a33156.js";
|
|
11
|
+
import { F as ro } from "./globalProvideInject-497780eb.js";
|
|
12
|
+
import { b as so, h as $e } from "./index-bd824807.js";
|
|
13
|
+
import { W as z, C as ao } from "./enum-98f9eea5.js";
|
|
14
|
+
import "./index-0a9f60bc.js";
|
|
15
|
+
import { p as We, g as uo, f as Ee, a as co } from "./multirow-cc29bc28.js";
|
|
16
|
+
import { d as io, b as fo } from "./slot-ae2cd44d.js";
|
|
17
|
+
function lo() {
|
|
18
|
+
return {
|
|
19
|
+
onMountedOrActivated: (g) => {
|
|
20
|
+
let y = !1;
|
|
21
|
+
pt(() => {
|
|
22
|
+
g(), gt(() => {
|
|
23
|
+
y = !0;
|
|
24
|
+
});
|
|
25
|
+
}), $n(() => {
|
|
26
|
+
y && g();
|
|
27
|
+
});
|
|
28
|
+
},
|
|
29
|
+
onCompErrorCaptured: () => {
|
|
30
|
+
Kn((g) => (re.error("onCompErrorCaptured", g), !1));
|
|
31
|
+
}
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
class Ge {
|
|
35
|
+
constructor(c) {
|
|
36
|
+
ft(this, "refList", {});
|
|
37
|
+
c && (this.refList = c);
|
|
38
|
+
}
|
|
39
|
+
initRefList() {
|
|
40
|
+
this.refList || (this.refList = {});
|
|
41
|
+
}
|
|
42
|
+
getWidgetRef(c) {
|
|
43
|
+
if (c)
|
|
44
|
+
return this.initRefList(), this.refList[c];
|
|
45
|
+
}
|
|
46
|
+
setWidgetRef(c, g) {
|
|
47
|
+
c && (this.initRefList(), this.refList[c] = g);
|
|
48
|
+
}
|
|
49
|
+
removeWidgetRef(c) {
|
|
50
|
+
c && this.refList && delete this.refList[c.toString()];
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
function Se(r) {
|
|
54
|
+
r || (r = {});
|
|
55
|
+
const c = new Ge(r), { instance: g } = Ct(), y = (d) => c.getWidgetRef(d == null ? void 0 : d.toString()), D = (d, W, O) => {
|
|
56
|
+
var C = [], V = [];
|
|
57
|
+
let F = y(d);
|
|
58
|
+
return F && C.push(F), C == null || C.forEach((s) => {
|
|
59
|
+
var h = M(s, W, O);
|
|
60
|
+
h && V.push(h);
|
|
61
|
+
}), V;
|
|
62
|
+
}, u = (d, W) => {
|
|
63
|
+
var O;
|
|
64
|
+
return (O = d == null ? void 0 : d.exposed) == null ? void 0 : O[W.toString()];
|
|
65
|
+
}, M = (d, W, O) => {
|
|
66
|
+
var C = u(d, W);
|
|
67
|
+
if (C) {
|
|
68
|
+
var V = [];
|
|
69
|
+
return O && (V = Object.values(O)), C(...V);
|
|
70
|
+
}
|
|
71
|
+
}, B = (d, W, O) => {
|
|
72
|
+
var C = [];
|
|
73
|
+
if (d) {
|
|
74
|
+
var V = yt(Et(d, !0));
|
|
75
|
+
V == null || V.forEach((F) => {
|
|
76
|
+
var s = D(F, W, O);
|
|
77
|
+
Ke(s) || C.push(s);
|
|
78
|
+
});
|
|
79
|
+
}
|
|
80
|
+
return Array.isArray(d) ? C : C == null ? void 0 : C[0];
|
|
81
|
+
}, x = (d, W) => {
|
|
82
|
+
let O = se(r);
|
|
83
|
+
B(O, d, W);
|
|
84
|
+
}, A = (d, W) => {
|
|
85
|
+
var h, o, a, f;
|
|
86
|
+
const O = (a = (o = (h = W || g) == null ? void 0 : h.exposed) == null ? void 0 : o.getField) == null ? void 0 : a.call(o);
|
|
87
|
+
var C = We(O == null ? void 0 : O.id);
|
|
88
|
+
const V = (l) => (l == null ? void 0 : l.id) === d, F = (l) => {
|
|
89
|
+
var N;
|
|
90
|
+
var m = We(l == null ? void 0 : l.id);
|
|
91
|
+
return (C == null ? void 0 : C.groupName) === (m == null ? void 0 : m.groupName) && ((m == null ? void 0 : m.id) === d || ((N = l == null ? void 0 : l._source) == null ? void 0 : N.id) === d);
|
|
92
|
+
}, s = (f = se(c.refList)) == null ? void 0 : f.find((l) => {
|
|
93
|
+
var N, E, K;
|
|
94
|
+
try {
|
|
95
|
+
const $ = (K = (E = (N = c.refList[l]) == null ? void 0 : N.exposed) == null ? void 0 : E.getField) == null ? void 0 : K.call(E);
|
|
96
|
+
var m = V($);
|
|
97
|
+
return !m && (C != null && C.groupName) && (m = F($)), m;
|
|
98
|
+
} catch {
|
|
99
|
+
return !1;
|
|
100
|
+
}
|
|
101
|
+
});
|
|
102
|
+
if (s)
|
|
103
|
+
return y(s);
|
|
104
|
+
}, v = (d) => {
|
|
105
|
+
if (d) {
|
|
106
|
+
let W = d;
|
|
107
|
+
c == null || c.setWidgetRef(W, g);
|
|
108
|
+
}
|
|
109
|
+
}, p = (d) => {
|
|
110
|
+
if (d) {
|
|
111
|
+
let W = d;
|
|
112
|
+
c == null || c.removeWidgetRef(W);
|
|
113
|
+
}
|
|
114
|
+
};
|
|
115
|
+
return {
|
|
116
|
+
findWidgetAndCall: D,
|
|
117
|
+
getWidgetRef: y,
|
|
118
|
+
callWidgetsExposed: B,
|
|
119
|
+
callRefFunc: M,
|
|
120
|
+
existRefFunc: u,
|
|
121
|
+
setAllRefList: x,
|
|
122
|
+
findRefById: A,
|
|
123
|
+
findRefByName: y,
|
|
124
|
+
changeRegisterToRefList: (d, W) => {
|
|
125
|
+
d && (v(d), p(W));
|
|
126
|
+
},
|
|
127
|
+
registerToRefList: v,
|
|
128
|
+
unregisterFromRefList: p
|
|
129
|
+
};
|
|
130
|
+
}
|
|
131
|
+
const mo = (r, c, g, y, D) => {
|
|
132
|
+
const u = new Ge(r), { callRefFunc: M } = Se(r), { parseGroupId: B } = co();
|
|
133
|
+
if (!r || r.length <= 0 || !g)
|
|
134
|
+
return;
|
|
135
|
+
const x = c, A = (s) => {
|
|
136
|
+
const h = x == null ? void 0 : x.find((f) => (f == null ? void 0 : f.id) === s);
|
|
137
|
+
if (!h)
|
|
138
|
+
return;
|
|
139
|
+
const o = h == null ? void 0 : h.name, a = u.getWidgetRef(o);
|
|
140
|
+
if (a)
|
|
141
|
+
return { ref: a, name: o, id: h == null ? void 0 : h.id };
|
|
142
|
+
}, v = (s, h) => {
|
|
143
|
+
var f;
|
|
144
|
+
if (!J(h))
|
|
145
|
+
return;
|
|
146
|
+
const o = s == null ? void 0 : s.name, a = u.getWidgetRef(o);
|
|
147
|
+
if (a) {
|
|
148
|
+
const l = Me.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !Rt(y == null ? void 0 : y.designState), { ...y, formData: h });
|
|
149
|
+
if (J(l))
|
|
150
|
+
if (Vt(l)) {
|
|
151
|
+
let m = oe(() => l.value, (N) => {
|
|
152
|
+
m == null || m(), M(a, z.setValue, { newValue: N });
|
|
153
|
+
});
|
|
154
|
+
} else
|
|
155
|
+
M(a, z.setValue, { newValue: l });
|
|
156
|
+
}
|
|
157
|
+
}, p = (s, h) => {
|
|
158
|
+
const o = A(s);
|
|
159
|
+
if (!o)
|
|
160
|
+
return;
|
|
161
|
+
const a = o.name, f = M(o.ref, z.getValue), l = M(o.ref, z.getCheckedItems), m = {};
|
|
162
|
+
return m[a] = f, f !== void 0 && !Gn(l) && !h && (m[`${a}${be.checkedOptions}`] = l), m;
|
|
163
|
+
}, P = (s, h) => {
|
|
164
|
+
var o = [];
|
|
165
|
+
if (x == null || x.forEach((a) => {
|
|
166
|
+
if (!a)
|
|
167
|
+
return;
|
|
168
|
+
const f = a == null ? void 0 : a.id;
|
|
169
|
+
var l = f === s;
|
|
170
|
+
const m = B(f), N = (m == null ? void 0 : m.id) === s, E = (m == null ? void 0 : m.groupName) === h;
|
|
171
|
+
return l || N && (E || !h) ? (o.push(a), !0) : !1;
|
|
172
|
+
}), !(!o || o.length <= 0))
|
|
173
|
+
return o == null ? void 0 : o.map((a) => {
|
|
174
|
+
var f;
|
|
175
|
+
return {
|
|
176
|
+
id: a == null ? void 0 : a.id,
|
|
177
|
+
name: (f = a == null ? void 0 : a._source) == null ? void 0 : f.name,
|
|
178
|
+
source: a == null ? void 0 : a._source
|
|
179
|
+
};
|
|
180
|
+
});
|
|
181
|
+
}, d = (s, h) => {
|
|
182
|
+
var o = [];
|
|
183
|
+
if (!s || (s == null ? void 0 : s.length) <= 0)
|
|
184
|
+
return o;
|
|
185
|
+
const a = B(g), f = a == null ? void 0 : a.groupName;
|
|
186
|
+
return h === Ee.Inner2Outer ? s == null || s.forEach((l) => {
|
|
187
|
+
var m = P(l);
|
|
188
|
+
m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
|
|
189
|
+
}) : s == null || s.forEach((l) => {
|
|
190
|
+
var m = P(l, f);
|
|
191
|
+
m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
|
|
192
|
+
}), o;
|
|
193
|
+
}, W = (s, h) => {
|
|
194
|
+
let o = {};
|
|
195
|
+
if (!s || s.length <= 0)
|
|
196
|
+
return o;
|
|
197
|
+
if (h === Ee.Inner2Outer) {
|
|
198
|
+
var a = wn(s, (f) => {
|
|
199
|
+
var l;
|
|
200
|
+
return (l = f.source) == null ? void 0 : l.id;
|
|
201
|
+
});
|
|
202
|
+
a == null || a.forEach((f) => {
|
|
203
|
+
var N;
|
|
204
|
+
const l = f.group[0], m = [];
|
|
205
|
+
(N = f == null ? void 0 : f.children) == null || N.forEach((E) => {
|
|
206
|
+
const K = p(E == null ? void 0 : E.id, !0);
|
|
207
|
+
if (J(K)) {
|
|
208
|
+
var $ = Object.values(yt(K));
|
|
209
|
+
m.push(...$);
|
|
210
|
+
}
|
|
211
|
+
}), l && (o = Object.assign(o, { [l]: m }));
|
|
212
|
+
});
|
|
213
|
+
} else
|
|
214
|
+
s.forEach((f) => {
|
|
215
|
+
const l = p(f == null ? void 0 : f.id);
|
|
216
|
+
J(l) && (o = Object.assign(o, l));
|
|
217
|
+
});
|
|
218
|
+
return o;
|
|
219
|
+
}, O = (s) => {
|
|
220
|
+
var h = {};
|
|
221
|
+
return s == null || s.forEach((o) => {
|
|
222
|
+
var a;
|
|
223
|
+
o != null && o.source && (o != null && o.id) && (h[(a = o == null ? void 0 : o.source) == null ? void 0 : a.id] = o == null ? void 0 : o.id);
|
|
224
|
+
}), h;
|
|
225
|
+
}, C = (s, h, o) => {
|
|
226
|
+
if (o === Ee.Inner2Inner) {
|
|
227
|
+
const m = Yn(h), { updateFomula: N } = He(), { buildVariable: E } = eo();
|
|
228
|
+
var a = O(s);
|
|
229
|
+
if (J(a)) {
|
|
230
|
+
var f = xe.getOrgOption(h, H.defaultValue), l = N(qe(f), a, (K, $) => {
|
|
231
|
+
var ae = a[K];
|
|
232
|
+
return Ke(ae) ? E(K) : E(ae);
|
|
233
|
+
});
|
|
234
|
+
return xe.setOrgOption(m, H.defaultValue, bt(l)), m;
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
return h;
|
|
238
|
+
}, V = (s) => {
|
|
239
|
+
var N;
|
|
240
|
+
const h = s == null ? void 0 : s.id;
|
|
241
|
+
var o = (N = s == null ? void 0 : s.options) == null ? void 0 : N.defaultValue;
|
|
242
|
+
if (o == null)
|
|
243
|
+
return;
|
|
244
|
+
const a = uo(g, h);
|
|
245
|
+
if (a === Ee.DiffInner)
|
|
246
|
+
return;
|
|
247
|
+
var f = Me.getFormulaRelatedField(o);
|
|
248
|
+
if (!f || f.length <= 0)
|
|
249
|
+
return;
|
|
250
|
+
var l = d(f, a);
|
|
251
|
+
if (!(l != null && l.some((E) => E.id === g)))
|
|
252
|
+
return;
|
|
253
|
+
const m = W(l, a);
|
|
254
|
+
v(C(l, s, a), m);
|
|
255
|
+
};
|
|
256
|
+
(() => {
|
|
257
|
+
x == null || x.forEach((s) => {
|
|
258
|
+
V(s);
|
|
259
|
+
});
|
|
260
|
+
})();
|
|
261
|
+
}, vo = (r, c, g, y, D, u) => {
|
|
262
|
+
var O;
|
|
263
|
+
if (Rt(u))
|
|
264
|
+
return;
|
|
265
|
+
const M = Ot(y);
|
|
266
|
+
if (!J(M))
|
|
267
|
+
return;
|
|
268
|
+
const B = Et(D == null ? void 0 : D.newValue, !0), x = new Set(B), A = (O = se(M)) == null ? void 0 : O.filter((C) => x == null ? void 0 : x.has(C));
|
|
269
|
+
if (!A || A.length <= 0)
|
|
270
|
+
return;
|
|
271
|
+
const { callRefFunc: v } = Se(r);
|
|
272
|
+
var p = We(g), P = p == null ? void 0 : p.groupName;
|
|
273
|
+
const d = c, W = (C, V) => {
|
|
274
|
+
const F = d == null ? void 0 : d.find((a) => {
|
|
275
|
+
if ((a == null ? void 0 : a.id) === C)
|
|
276
|
+
return !0;
|
|
277
|
+
var f = We(a == null ? void 0 : a.id);
|
|
278
|
+
return (!P || (f == null ? void 0 : f.groupName) === P) && (f == null ? void 0 : f.id) === C;
|
|
279
|
+
});
|
|
280
|
+
if (!F)
|
|
281
|
+
return;
|
|
282
|
+
const s = F == null ? void 0 : F.name, o = new Ge(r).getWidgetRef(s);
|
|
283
|
+
o && (V == null || V(o));
|
|
284
|
+
};
|
|
285
|
+
A == null || A.forEach((C) => {
|
|
286
|
+
var F, s;
|
|
287
|
+
const V = (F = M == null ? void 0 : M[C]) == null ? void 0 : F.result;
|
|
288
|
+
(s = se(V)) == null || s.forEach((h) => {
|
|
289
|
+
var a;
|
|
290
|
+
const o = V == null ? void 0 : V[h];
|
|
291
|
+
(a = o == null ? void 0 : o.ids) == null || a.forEach((f) => {
|
|
292
|
+
W(f, (l) => {
|
|
293
|
+
v(l, o == null ? void 0 : o.event, o == null ? void 0 : o.args);
|
|
294
|
+
});
|
|
295
|
+
});
|
|
296
|
+
});
|
|
297
|
+
});
|
|
298
|
+
};
|
|
299
|
+
function Mt(r, c) {
|
|
300
|
+
var g;
|
|
301
|
+
return (g = r == null ? void 0 : r.classList) != null && g.contains(c) ? r : r != null && r.parentElement ? Mt(r == null ? void 0 : r.parentElement, c) : null;
|
|
302
|
+
}
|
|
303
|
+
function ho() {
|
|
304
|
+
const r = (v) => {
|
|
305
|
+
if (v)
|
|
306
|
+
return v != null && v.ref ? v == null ? void 0 : v.ref : v;
|
|
307
|
+
}, c = (v) => {
|
|
308
|
+
var p, P;
|
|
309
|
+
try {
|
|
310
|
+
(P = (p = r(v)) == null ? void 0 : p.focus) == null || P.call(p);
|
|
311
|
+
} catch (d) {
|
|
312
|
+
re.error("focus", d, v);
|
|
313
|
+
}
|
|
314
|
+
}, g = (v) => {
|
|
315
|
+
var p, P;
|
|
316
|
+
try {
|
|
317
|
+
(P = (p = r(v)) == null ? void 0 : p.blur) == null || P.call(p);
|
|
318
|
+
} catch (d) {
|
|
319
|
+
re.error("blur", d, v);
|
|
320
|
+
}
|
|
321
|
+
}, y = (v) => {
|
|
322
|
+
var p;
|
|
323
|
+
return (p = r(v)) == null ? void 0 : p.selectionStart;
|
|
324
|
+
}, D = (v) => {
|
|
325
|
+
var p;
|
|
326
|
+
return (p = r(v)) == null ? void 0 : p.selectionEnd;
|
|
327
|
+
}, u = (v, p) => {
|
|
328
|
+
var P;
|
|
329
|
+
return (P = r(v)) == null ? void 0 : P.setSelectionRange(p, p);
|
|
330
|
+
}, M = (v, p) => {
|
|
331
|
+
c(v), u(v, p);
|
|
332
|
+
};
|
|
333
|
+
return {
|
|
334
|
+
getSelectionStart: y,
|
|
335
|
+
getSelectionEnd: D,
|
|
336
|
+
setSelectionStart: u,
|
|
337
|
+
blur: g,
|
|
338
|
+
focus: c,
|
|
339
|
+
setMousePos: M,
|
|
340
|
+
getMousePos: (v) => y(v),
|
|
341
|
+
insertOnMousePos: (v, p, P) => {
|
|
342
|
+
const d = y(v), W = D(v), O = zn(P, p, d, W);
|
|
343
|
+
return gt(() => {
|
|
344
|
+
M(v, d + (p == null ? void 0 : p.length));
|
|
345
|
+
}), O;
|
|
346
|
+
},
|
|
347
|
+
deleteOnMousePos: (v, p) => Qn(p, v)
|
|
348
|
+
};
|
|
349
|
+
}
|
|
350
|
+
const po = (r) => {
|
|
351
|
+
var g;
|
|
352
|
+
const { getFormulaFields: c } = He();
|
|
353
|
+
return ((g = c(qe(r))) == null ? void 0 : g.length) > 0;
|
|
354
|
+
}, Z = (r) => {
|
|
355
|
+
const c = r.type;
|
|
356
|
+
//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
|
|
357
|
+
return r.formItemFlag || [ee.form, ee.dialog].includes(c);
|
|
358
|
+
}, Re = (r) => {
|
|
359
|
+
const c = r.type;
|
|
360
|
+
return [ee.treeSelect, ee.cascader, ee.select, ee.checkbox, ee.radio].includes(c);
|
|
361
|
+
};
|
|
362
|
+
function go(r) {
|
|
363
|
+
const { getFormulaFields: c } = He(), g = U(r == null ? void 0 : r.options), y = Zn(g, (u, M) => Me.isComplexType(M, ao.slot) || u === L.widgetList);
|
|
364
|
+
var D = c(qe(y));
|
|
365
|
+
return D;
|
|
366
|
+
}
|
|
367
|
+
function Oo(r, c, g) {
|
|
368
|
+
var M;
|
|
369
|
+
const y = {};
|
|
370
|
+
let D = [];
|
|
371
|
+
if (!r || r.length <= 0)
|
|
372
|
+
return y;
|
|
373
|
+
Object.entries(g).forEach(([B, x]) => {
|
|
374
|
+
r.some((A) => A === (x == null ? void 0 : x.id)) && D.push(x == null ? void 0 : x.name);
|
|
375
|
+
});
|
|
376
|
+
const u = U(c);
|
|
377
|
+
return (M = se(u)) == null || M.forEach((B) => {
|
|
378
|
+
D.includes(B) && w(y, { [B]: u[B] });
|
|
379
|
+
}), J(y) ? y : {};
|
|
380
|
+
}
|
|
381
|
+
function Fo(r) {
|
|
382
|
+
const {
|
|
383
|
+
designState: c,
|
|
384
|
+
created: g = !0,
|
|
385
|
+
exResetField: y,
|
|
386
|
+
extInitFieldModel: D
|
|
387
|
+
} = r, u = r == null ? void 0 : r.widget, M = r == null ? void 0 : r.designer, B = M == null ? void 0 : M.pageConfig, { globalWrapperOptions: x, formRefList: A, globalRefList: v, globalConfig: p, globalFormName: P, globalDataModel: d, rowScope: W } = ro.globalInject(), O = Se(v), C = Se(A);
|
|
388
|
+
let V = Oe(d || {}), F = Oe(Ie(ke.linerModel, {})), s = Oe(Ie(ke.linerWidgetMap, []));
|
|
389
|
+
const h = Oe({}), { instance: o } = Ct(), a = () => Ot(V), f = () => W, l = () => u, m = () => !c && po(u);
|
|
390
|
+
if (m()) {
|
|
391
|
+
const e = go(u);
|
|
392
|
+
J(e) && oe(F, (t) => {
|
|
393
|
+
const n = Oo(e, t, s);
|
|
394
|
+
vt(U(n), U(h)) || w(h, n);
|
|
395
|
+
}, { immediate: !0 });
|
|
396
|
+
}
|
|
397
|
+
const E = ht({
|
|
398
|
+
instance: o,
|
|
399
|
+
designState: c,
|
|
400
|
+
pageConfig: B,
|
|
401
|
+
globalConfig: p
|
|
402
|
+
}), $ = {
|
|
403
|
+
instance: {
|
|
404
|
+
exposed: {
|
|
405
|
+
findRefByName: O.getWidgetRef,
|
|
406
|
+
fieldEditor: () => G.value,
|
|
407
|
+
getField: l,
|
|
408
|
+
getRowScope: f,
|
|
409
|
+
getFormData: a,
|
|
410
|
+
/**
|
|
411
|
+
* 此处暴露schemadata方法
|
|
412
|
+
* 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
|
|
413
|
+
*/
|
|
414
|
+
getOneSchemaData: E == null ? void 0 : E.getOneSchemaData,
|
|
415
|
+
getSchemaDataObject: E == null ? void 0 : E.getSchemaDataObject,
|
|
416
|
+
getSchemaDatas: E == null ? void 0 : E.getSchemaDatas,
|
|
417
|
+
getGlobalParams: E == null ? void 0 : E.getGlobalParams
|
|
418
|
+
}
|
|
419
|
+
},
|
|
420
|
+
designState: c,
|
|
421
|
+
pageConfig: B,
|
|
422
|
+
formData: m() ? h : {},
|
|
423
|
+
globalConfig: p
|
|
424
|
+
}, { on$: ae, dispatch: _e, emit$: Ue, broadcast: xt } = Jn(), { onCompErrorCaptured: Wt } = lo(), { isIdClass: St, getIdByIdClass: _t } = so(u), { getOneSchemaData: Pt, getSchemaDataObject: Dt, getSchemaDatas: Tt, getGlobalParams: Ft } = ht($), te = ho(), Nt = (r == null ? void 0 : r.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: ne, extendAttrs: Pe, events: q, slots: Je, rules: ze, fieldName: R, buildRules: Lt, clearRules: Bt, disableChangeValidate: It, enableChangeValidate: jt, optionItems: de, refreshOptionItems: At, filterOptionItems: kt, getCheckedOptionText: $t, getCheckedOptionValues: Kt, getCheckedOptionLabels: qt, getCheckedOptionItems: Ht, activeOptionItems: Gt, activeOptionItem: Ut, activeOptionItemIndex: Jt, setOptionItems: Qe, isOptionWidget: zt, setWidgetOption: ue, getWidgetOption: ce, getWidgetOptionByPropValue: Qt, setFieldEnable: Xt, hasFieldOptions: Yt, getFieldOptions: ie, setFieldOptions: Zt, computedDefaultValue: ve, hasDefaultValue: he, watchOption: Xe, addCssClass: wt, removeCssClass: en } = to(u, $, Nt, o), Ye = Ve(() => {
|
|
425
|
+
var n, i;
|
|
426
|
+
const e = je(x);
|
|
427
|
+
if (!J(e))
|
|
428
|
+
return ne.value;
|
|
429
|
+
const t = {};
|
|
430
|
+
return Ae(ne.value, L.disabled) && (t[L.disabled] = je(e == null ? void 0 : e.disabled) || ((n = ne.value) == null ? void 0 : n.disabled)), Ae(ne.value, L.readonly) && (t[L.readonly] = je(e == null ? void 0 : e.readonly) || ((i = ne.value) == null ? void 0 : i.readonly)), {
|
|
431
|
+
...ne.value,
|
|
432
|
+
...t
|
|
433
|
+
};
|
|
434
|
+
});
|
|
435
|
+
let De = null, S = Ce();
|
|
436
|
+
const G = Ce(), tn = () => R.value, nn = () => G.value, Ze = () => `${u == null ? void 0 : u.id}-${no()}`, Te = Ce(Ze()), we = () => {
|
|
437
|
+
Te.value = Ze();
|
|
438
|
+
}, on = Ve({
|
|
439
|
+
get: () => {
|
|
440
|
+
if (lt(S.value)) {
|
|
441
|
+
var e = Number(S.value);
|
|
442
|
+
return isNaN(e) ? void 0 : (S.value = e, e);
|
|
443
|
+
}
|
|
444
|
+
return S.value;
|
|
445
|
+
},
|
|
446
|
+
set: (e) => {
|
|
447
|
+
S.value = e;
|
|
448
|
+
}
|
|
449
|
+
}), rn = Ve({
|
|
450
|
+
get: () => {
|
|
451
|
+
if (lt(S.value)) {
|
|
452
|
+
var e = bt(S.value);
|
|
453
|
+
Un(e) && (S.value = e);
|
|
454
|
+
}
|
|
455
|
+
return S.value;
|
|
456
|
+
},
|
|
457
|
+
set: (e) => {
|
|
458
|
+
S.value = e;
|
|
459
|
+
}
|
|
460
|
+
}), sn = (e) => {
|
|
461
|
+
var n, i;
|
|
462
|
+
var t = (i = (n = O.getWidgetRef(R.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.loadOptionItems;
|
|
463
|
+
if (t !== void 0) {
|
|
464
|
+
t == null || t(e);
|
|
465
|
+
return;
|
|
466
|
+
}
|
|
467
|
+
Qe(e);
|
|
468
|
+
}, Fe = (e) => {
|
|
469
|
+
var t, n, i;
|
|
470
|
+
return (i = (n = (t = O.getWidgetRef(R.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedItems) == null ? void 0 : i.call(n, e);
|
|
471
|
+
}, et = (e) => {
|
|
472
|
+
var t, n, i;
|
|
473
|
+
return (i = (n = (t = O.getWidgetRef(R.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedLabels) == null ? void 0 : i.call(n, e);
|
|
474
|
+
}, an = (e) => {
|
|
475
|
+
var t, n, i;
|
|
476
|
+
return (i = (n = (t = O.getWidgetRef(R.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedText) == null ? void 0 : i.call(n, e);
|
|
477
|
+
}, fe = (e) => {
|
|
478
|
+
var T;
|
|
479
|
+
if (!zt())
|
|
480
|
+
return;
|
|
481
|
+
const t = (T = Pe.value) == null ? void 0 : T.withAttachData;
|
|
482
|
+
if (!Re(u) || t === !1)
|
|
483
|
+
return;
|
|
484
|
+
const n = et(e), i = an(e);
|
|
485
|
+
var _ = U(Fe(e));
|
|
486
|
+
tt(n, _, i);
|
|
487
|
+
}, tt = (e, t, n) => {
|
|
488
|
+
var j, k;
|
|
489
|
+
var i = {};
|
|
490
|
+
let _ = ie("textName");
|
|
491
|
+
(j = [`${R.value}${be.optionText}`, _].filter((b) => !!b)) == null || j.forEach((b) => {
|
|
492
|
+
b && (e !== void 0 ? i[b] === void 0 && (i[b] = e || null) : delete V[b]);
|
|
493
|
+
});
|
|
494
|
+
let T = ie("optionName");
|
|
495
|
+
(k = [`${R.value}${be.checkedOptions}`, T].filter((b) => !!b)) == null || k.forEach((b) => {
|
|
496
|
+
b && (t !== void 0 ? i[b] === void 0 && (i[b] = t || []) : delete V[b]);
|
|
497
|
+
});
|
|
498
|
+
let I = ie("labelName");
|
|
499
|
+
e !== n && [`${R.value}${be.optionLabelName}`].forEach((b) => {
|
|
500
|
+
b && (n !== void 0 ? i[b] === void 0 && (i[b] = n) : delete V[b]);
|
|
501
|
+
}), I && [I].forEach((b) => {
|
|
502
|
+
b && (n !== void 0 ? i[b] === void 0 && (i[b] = n) : delete V[b]);
|
|
503
|
+
}), nt(U(i));
|
|
504
|
+
}, X = (e) => {
|
|
505
|
+
if (Z(u)) {
|
|
506
|
+
fe(e);
|
|
507
|
+
var t = { [R.value]: e };
|
|
508
|
+
nt(t);
|
|
509
|
+
}
|
|
510
|
+
}, nt = (e) => {
|
|
511
|
+
w(V, e);
|
|
512
|
+
}, le = (e) => {
|
|
513
|
+
c || X(e);
|
|
514
|
+
}, ot = (e) => ie(e), rt = () => {
|
|
515
|
+
var e = Hn(V);
|
|
516
|
+
S = Me.get(e, R.value);
|
|
517
|
+
}, st = (e) => {
|
|
518
|
+
De = U(e);
|
|
519
|
+
}, un = (e) => {
|
|
520
|
+
c || D && D(e);
|
|
521
|
+
}, cn = () => {
|
|
522
|
+
he(!0) && ye(ve()).then((e) => {
|
|
523
|
+
X(e), rt();
|
|
524
|
+
});
|
|
525
|
+
};
|
|
526
|
+
let at = {};
|
|
527
|
+
const pe = (e, t) => {
|
|
528
|
+
if (!Z(u))
|
|
529
|
+
return;
|
|
530
|
+
var n = { newValue: e, oldValue: t };
|
|
531
|
+
if (vt(n, at))
|
|
532
|
+
return;
|
|
533
|
+
w(F, { [R.value]: e }), Object.assign(at, n), Ue(H.fieldValueChanged, n);
|
|
534
|
+
const i = { fieldId: u.id, fieldName: R.value, newValue: e, oldValue: t };
|
|
535
|
+
_e(P, H.fieldChange, i, o);
|
|
536
|
+
}, fn = (e) => !!ce(e), Ne = (e, t) => oo(ce(e), t), ln = (e) => {
|
|
537
|
+
le(e), ut(), Ne(H.onInput, { value: e });
|
|
538
|
+
}, mn = (e, t) => {
|
|
539
|
+
var n, i, _;
|
|
540
|
+
return (_ = (i = (n = O.getWidgetRef(R.value)) == null ? void 0 : n.exposed) == null ? void 0 : i.handleBeforeChange) == null ? void 0 : _.call(i, e, t);
|
|
541
|
+
}, dn = (...e) => {
|
|
542
|
+
var _, T, I;
|
|
543
|
+
let n = ((_ = e == null ? void 0 : e[0]) == null ? void 0 : _.target) != null ? (I = (T = e == null ? void 0 : e[0]) == null ? void 0 : T.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
|
|
544
|
+
n = U(n);
|
|
545
|
+
var i = mn(n, De);
|
|
546
|
+
i != null ? le(i) : le(n), pe(n, De), ut(), st(n);
|
|
547
|
+
}, vn = (e = !0) => {
|
|
548
|
+
ue(L.readonly, e);
|
|
549
|
+
}, hn = (e = !0) => {
|
|
550
|
+
ue(L.disabled, e);
|
|
551
|
+
}, pn = (e = !0) => {
|
|
552
|
+
ue(L.hidden, e), e ? it() : ge();
|
|
553
|
+
}, gn = (e = !0) => {
|
|
554
|
+
Xt(L.required, e), ge();
|
|
555
|
+
}, On = (e) => {
|
|
556
|
+
ue(L.label, e);
|
|
557
|
+
}, Q = () => S == null ? void 0 : S.value, Le = (e) => {
|
|
558
|
+
S.value = e, fe(e);
|
|
559
|
+
}, me = (e) => {
|
|
560
|
+
let t = U(Q());
|
|
561
|
+
if (Le(e), !Z(u))
|
|
562
|
+
return;
|
|
563
|
+
const n = Q();
|
|
564
|
+
t !== n && (le(n), pe(e, t));
|
|
565
|
+
}, Vn = () => {
|
|
566
|
+
he() ? ye(ve()).then((e) => {
|
|
567
|
+
X(e);
|
|
568
|
+
}) : X(null), y == null || y();
|
|
569
|
+
}, Cn = (e) => {
|
|
570
|
+
const t = Q(), n = te.insertOnMousePos(G.value, e, t);
|
|
571
|
+
me(n);
|
|
572
|
+
}, yn = (e) => {
|
|
573
|
+
const t = Q(), n = te.deleteOnMousePos(e, t);
|
|
574
|
+
me(n);
|
|
575
|
+
}, En = (e, t) => {
|
|
576
|
+
oe(() => S == null ? void 0 : S.value, (n, i) => {
|
|
577
|
+
e == null || e({ id: u.id, name: R.value, newValue: n, oldValue: i });
|
|
578
|
+
}, t);
|
|
579
|
+
}, Rn = (e) => {
|
|
580
|
+
var T;
|
|
581
|
+
e.preventDefault();
|
|
582
|
+
const t = (I) => {
|
|
583
|
+
var k;
|
|
584
|
+
const j = (k = Array.from(I.classList)) == null ? void 0 : k.find((b) => St(b));
|
|
585
|
+
return j ? _t(j) : "";
|
|
586
|
+
}, n = document.activeElement;
|
|
587
|
+
if (!n)
|
|
588
|
+
return;
|
|
589
|
+
const i = document.getElementsByClassName(mt.formItemTarget);
|
|
590
|
+
for (var _ = 0; _ < i.length; _++) {
|
|
591
|
+
const I = i[_], j = Mt(n, mt.formItemTarget);
|
|
592
|
+
if (!j)
|
|
593
|
+
continue;
|
|
594
|
+
const k = t(I), b = t(j);
|
|
595
|
+
if (k === b) {
|
|
596
|
+
if (_ === i.length - 1)
|
|
597
|
+
return;
|
|
598
|
+
const Bn = i[_ + 1], In = t(Bn), Be = O.findRefById(In, o);
|
|
599
|
+
try {
|
|
600
|
+
(T = Be == null ? void 0 : Be.exposed) == null || T.focus();
|
|
601
|
+
} catch (jn) {
|
|
602
|
+
re.error("handleEnter", jn);
|
|
603
|
+
}
|
|
604
|
+
}
|
|
605
|
+
}
|
|
606
|
+
};
|
|
607
|
+
let bn = () => {
|
|
608
|
+
var I;
|
|
609
|
+
let e = {
|
|
610
|
+
componentName: R.value,
|
|
611
|
+
//用于组件事件emitter发射与接收处理
|
|
612
|
+
refList: A,
|
|
613
|
+
allRefList: v,
|
|
614
|
+
fieldEditor: nn,
|
|
615
|
+
changeRegisterToRefList: (j, k) => {
|
|
616
|
+
O.changeRegisterToRefList(j, k), C.changeRegisterToRefList(j, k);
|
|
617
|
+
},
|
|
618
|
+
getField: l,
|
|
619
|
+
getFormData: a,
|
|
620
|
+
getValue: Q,
|
|
621
|
+
setValue: Le,
|
|
622
|
+
emit$: Ue,
|
|
623
|
+
findRefByName: O.getWidgetRef,
|
|
624
|
+
findRefById: O.findRefById,
|
|
625
|
+
callRefFunc: O.callRefFunc,
|
|
626
|
+
getWidgetOption: ce,
|
|
627
|
+
setWidgetOption: ue,
|
|
628
|
+
refreshKey: we,
|
|
629
|
+
getRowScope: f,
|
|
630
|
+
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
631
|
+
getOneSchemaData: Pt,
|
|
632
|
+
getSchemaDatas: Tt,
|
|
633
|
+
getSchemaDataObject: Dt,
|
|
634
|
+
getGlobalParams: Ft,
|
|
635
|
+
addCssClass: wt,
|
|
636
|
+
removeCssClass: en
|
|
637
|
+
}, t = {
|
|
638
|
+
resetField: Vn,
|
|
639
|
+
getValue: Q,
|
|
640
|
+
setValue: me,
|
|
641
|
+
refreshDefaultValue: cn,
|
|
642
|
+
insertOnMousePos: Cn,
|
|
643
|
+
deleteOnMousePos: yn,
|
|
644
|
+
disableChangeValidate: It,
|
|
645
|
+
enableChangeValidate: jt,
|
|
646
|
+
focus: () => {
|
|
647
|
+
te.focus(G.value);
|
|
648
|
+
},
|
|
649
|
+
blur: () => {
|
|
650
|
+
te.blur(G.value);
|
|
651
|
+
},
|
|
652
|
+
getMousePos: () => {
|
|
653
|
+
te.getMousePos(G.value);
|
|
654
|
+
},
|
|
655
|
+
setMousePos: (j) => {
|
|
656
|
+
te.setMousePos(G.value, j);
|
|
657
|
+
}
|
|
658
|
+
}, n = {
|
|
659
|
+
loadOptionItems: sn,
|
|
660
|
+
getCheckedItems: Fe,
|
|
661
|
+
getCheckedLabels: et
|
|
662
|
+
}, i = {
|
|
663
|
+
[L.required]: { name: z.setRequired, fn: gn },
|
|
664
|
+
[L.label]: { name: z.setLabel, fn: On },
|
|
665
|
+
[L.hidden]: { name: z.setHidden, fn: pn },
|
|
666
|
+
[L.disabled]: { name: z.setDisabled, fn: hn },
|
|
667
|
+
[L.readonly]: { name: z.setReadonly, fn: vn }
|
|
668
|
+
}, _ = {};
|
|
669
|
+
(I = se(i)) == null || I.forEach((j) => {
|
|
670
|
+
if ($e(u, j)) {
|
|
671
|
+
const k = i[j];
|
|
672
|
+
_[k.name] = k.fn;
|
|
673
|
+
}
|
|
674
|
+
});
|
|
675
|
+
var T = w(e, _);
|
|
676
|
+
return Z(u) && (T = w(T, t)), Re(u) && (T = w(T, n)), T;
|
|
677
|
+
};
|
|
678
|
+
const Mn = Ve(() => ({
|
|
679
|
+
attrs: Ye.value,
|
|
680
|
+
extendAttrs: Pe.value,
|
|
681
|
+
events: q.value,
|
|
682
|
+
slots: Je.value,
|
|
683
|
+
fieldKey: Te.value,
|
|
684
|
+
fieldEditor: G.value,
|
|
685
|
+
fieldName: R.value
|
|
686
|
+
})), xn = (e, t, n) => {
|
|
687
|
+
const i = Ce(), _ = ot(e), T = (I) => {
|
|
688
|
+
t && (i.value = t(I || _));
|
|
689
|
+
};
|
|
690
|
+
return Vt(_) ? oe(_, (I) => {
|
|
691
|
+
T(I), n && n(I);
|
|
692
|
+
}) : T(_), i;
|
|
693
|
+
}, Wn = () => {
|
|
694
|
+
!Z(u) || c || En((e) => {
|
|
695
|
+
const t = u == null ? void 0 : u.id;
|
|
696
|
+
mo(v, s, t, $);
|
|
697
|
+
const n = xe.getOptions(u, L.relate);
|
|
698
|
+
vo(v, s, t, n, e), (Re(u) || D) && setTimeout(() => {
|
|
699
|
+
fe(e.newValue), un(e == null ? void 0 : e.newValue);
|
|
700
|
+
}, 1e3), pe(e.newValue, e.oldValue);
|
|
701
|
+
}, { immediate: !0 });
|
|
702
|
+
}, ut = () => {
|
|
703
|
+
const e = { propName: R.value };
|
|
704
|
+
_e(P, H.fieldValidation, e, o);
|
|
705
|
+
}, ct = () => {
|
|
706
|
+
const e = { fieldId: u.id, fieldName: R.value, rules: ze };
|
|
707
|
+
_e(P, H.fieldRuleChange, e, o);
|
|
708
|
+
}, ge = () => {
|
|
709
|
+
if (!Z(u))
|
|
710
|
+
return;
|
|
711
|
+
const e = Lt();
|
|
712
|
+
return ct(), e;
|
|
713
|
+
}, it = () => {
|
|
714
|
+
Bt(), ct();
|
|
715
|
+
}, Sn = () => {
|
|
716
|
+
$e(u, "change") && (q.value.change = dn), $e(u, "input") && (q.value.input = ln), ae(dt.setFormData, (e) => {
|
|
717
|
+
me(e[R.value]);
|
|
718
|
+
}), ae(H.fieldValueChanged, (e) => {
|
|
719
|
+
Ne(H.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
720
|
+
});
|
|
721
|
+
}, _n = () => {
|
|
722
|
+
let e = R.value;
|
|
723
|
+
if (Z(u)) {
|
|
724
|
+
const t = () => !Ae(V, e) || V[e] === void 0;
|
|
725
|
+
t() && (X(null), he() && ye(ve()).then((n) => {
|
|
726
|
+
(t() || Ke(V[e])) && (n == null ? X(null) : X(n));
|
|
727
|
+
})), rt();
|
|
728
|
+
} else
|
|
729
|
+
he() && ye(ve()).then((t) => {
|
|
730
|
+
me(t);
|
|
731
|
+
});
|
|
732
|
+
st(Q());
|
|
733
|
+
}, Pn = () => {
|
|
734
|
+
Re(u) && oe(() => de == null ? void 0 : de.value, (e, t) => {
|
|
735
|
+
fe(S.value);
|
|
736
|
+
}, { immediate: !0 });
|
|
737
|
+
}, Dn = () => {
|
|
738
|
+
Xe(L.css, void 0, (e) => {
|
|
739
|
+
Ln();
|
|
740
|
+
});
|
|
741
|
+
}, Y = Ie(ke.isRenderComplete), Tn = () => {
|
|
742
|
+
const e = () => 100, t = () => {
|
|
743
|
+
setTimeout(() => {
|
|
744
|
+
Pn(), Wn(), ge();
|
|
745
|
+
}, e());
|
|
746
|
+
};
|
|
747
|
+
if (Y != null && Y.value) {
|
|
748
|
+
t();
|
|
749
|
+
return;
|
|
750
|
+
}
|
|
751
|
+
if (Y != null) {
|
|
752
|
+
const n = oe(() => Y == null ? void 0 : Y.value, (i) => {
|
|
753
|
+
i && (t(), n());
|
|
754
|
+
}, { immediate: !0 });
|
|
755
|
+
}
|
|
756
|
+
}, Fn = () => {
|
|
757
|
+
var e, t;
|
|
758
|
+
if (g)
|
|
759
|
+
try {
|
|
760
|
+
O.registerToRefList(R.value), C.registerToRefList(R.value), s.push({
|
|
761
|
+
id: u.id,
|
|
762
|
+
name: R.value,
|
|
763
|
+
_source: u == null ? void 0 : u._source,
|
|
764
|
+
options: {
|
|
765
|
+
defaultValue: xe.getOrgOption(u, H.defaultValue)
|
|
766
|
+
}
|
|
767
|
+
}), _n(), Sn(), (t = (e = q == null ? void 0 : q.value) == null ? void 0 : e.created) == null || t.call(e), Wt();
|
|
768
|
+
} catch (n) {
|
|
769
|
+
re.error("create", n);
|
|
770
|
+
}
|
|
771
|
+
}, Nn = () => {
|
|
772
|
+
g && (pt(() => {
|
|
773
|
+
var e, t;
|
|
774
|
+
try {
|
|
775
|
+
Dn(), Tn(), (t = (e = q == null ? void 0 : q.value) == null ? void 0 : e.mounted) == null || t.call(e), xt(Xn.VFormRender, dt.registerRef, { fieldName: R.value, fieldId: u == null ? void 0 : u.id }, [v]);
|
|
776
|
+
} catch (n) {
|
|
777
|
+
re.error("mounted", n, u);
|
|
778
|
+
}
|
|
779
|
+
}), qn(() => {
|
|
780
|
+
O.unregisterFromRefList(R.value), C.unregisterFromRefList(R.value);
|
|
781
|
+
}));
|
|
782
|
+
}, Ln = (e) => {
|
|
783
|
+
const t = u == null ? void 0 : u.id, n = ce(L.css);
|
|
784
|
+
n && t && io(n).then((i) => {
|
|
785
|
+
fo(i, t);
|
|
786
|
+
});
|
|
787
|
+
};
|
|
788
|
+
return Fn(), Nn(), {
|
|
789
|
+
exposed: bn(),
|
|
790
|
+
fieldModel: S,
|
|
791
|
+
objFieldModel: rn,
|
|
792
|
+
numFieldModel: on,
|
|
793
|
+
fieldEditor: G,
|
|
794
|
+
fieldKey: Te,
|
|
795
|
+
field: u,
|
|
796
|
+
instance: o,
|
|
797
|
+
attrs: Ye,
|
|
798
|
+
extendAttrs: Pe,
|
|
799
|
+
slots: Je,
|
|
800
|
+
events: q,
|
|
801
|
+
rules: ze,
|
|
802
|
+
fieldObj: Mn,
|
|
803
|
+
getValue: Q,
|
|
804
|
+
setValue: Le,
|
|
805
|
+
pageConfig: B,
|
|
806
|
+
formModel: V,
|
|
807
|
+
fieldName: R,
|
|
808
|
+
propResultOpt: $,
|
|
809
|
+
optionItems: de,
|
|
810
|
+
activeOptionItems: Gt,
|
|
811
|
+
activeOptionItem: Ut,
|
|
812
|
+
activeOptionItemIndex: Jt,
|
|
813
|
+
refreshOptionItems: At,
|
|
814
|
+
refreshOptionField: fe,
|
|
815
|
+
filterOptionItems: kt,
|
|
816
|
+
setOptionItems: Qe,
|
|
817
|
+
getCheckedItems: Fe,
|
|
818
|
+
getCheckedOptionItems: (e, t) => Ht(e || S.value, t),
|
|
819
|
+
getCheckedOptionLabels: (e, t) => qt(e || S.value, t),
|
|
820
|
+
getCheckedOptionValues: (e, t) => Kt(e || S.value, t),
|
|
821
|
+
getCheckedOptionText: (e, t) => $t(e || S.value, t),
|
|
822
|
+
refreshKey: we,
|
|
823
|
+
watchKeyValue: xn,
|
|
824
|
+
// watchPropAndSaveHistoryStep,
|
|
825
|
+
existEvent: fn,
|
|
826
|
+
handleEvent: Ne,
|
|
827
|
+
handleEnter: Rn,
|
|
828
|
+
getPropName: tn,
|
|
829
|
+
emitFieldDataChange: pe,
|
|
830
|
+
syncUpdateFormModel: le,
|
|
831
|
+
getWidgetRef: O.getWidgetRef,
|
|
832
|
+
clearRules: it,
|
|
833
|
+
buildRules: ge,
|
|
834
|
+
getFieldOptionModel: ot,
|
|
835
|
+
getFieldOptions: ie,
|
|
836
|
+
hasFieldOptions: Yt,
|
|
837
|
+
setFieldOptions: Zt,
|
|
838
|
+
getWidgetOption: ce,
|
|
839
|
+
getWidgetOptionByPropValue: Qt,
|
|
840
|
+
// singleOption,
|
|
841
|
+
watchOption: Xe,
|
|
842
|
+
mergeOptionToFormModel: tt
|
|
843
|
+
};
|
|
844
|
+
}
|
|
845
|
+
export {
|
|
846
|
+
Ge as R,
|
|
847
|
+
lo as a,
|
|
848
|
+
Fo as b,
|
|
849
|
+
Se as u
|
|
850
|
+
};
|