hldesigner 0.0.302 → 0.0.303
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-3e0cf833.js} +11 -11
- package/{alert-widget-e34ec4ec.js → alert-widget-ae4f5c9f.js} +11 -11
- package/{anchor-widget-3f1d09a6.js → anchor-widget-5df90649.js} +8 -8
- package/{auto-complete-widget-ca861478.js → auto-complete-widget-b47321dd.js} +10 -10
- package/{avatar-widget-5e109b6e.js → avatar-widget-244fbc15.js} +11 -11
- package/{backtop-widget-5a358f2b.js → backtop-widget-21c67516.js} +11 -11
- package/{badge-widget-942844b3.js → badge-widget-6ecebeb5.js} +11 -11
- package/{barcode-widget-893cce97.js → barcode-widget-f847b66b.js} +8 -8
- package/{baseCommonField-bc463e95.js → baseCommonField-e8a33156.js} +87 -87
- package/{breadcrumb-widget-31044351.js → breadcrumb-widget-11f4c697.js} +8 -8
- package/{button-widget-54372647.js → button-widget-b2c9be5a.js} +11 -11
- package/{cache-widget-a4f8cfc9.js → cache-widget-124843fb.js} +9 -9
- package/{card-widget-3dba7958.js → card-widget-fb61d9be.js} +9 -9
- package/{carousel-widget-6ae1c439.js → carousel-widget-04c5f8a0.js} +9 -9
- package/{cascader-widget-37bc89ab.js → cascader-widget-a570ab60.js} +9 -9
- package/{chart-widget-0001a1f4.js → chart-widget-d3d26f7b.js} +8 -8
- package/{checkbox-widget-3cd1325c.js → checkbox-widget-0b33c789.js} +9 -9
- package/{collapse-widget-b3f5a3d4.js → collapse-widget-fc055643.js} +9 -9
- package/{color-picker-widget-d0beb753.js → color-picker-widget-4bd54417.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-cc606dce.js} +27 -27
- package/{cont-cell-widget-dbf21b93.js → cont-cell-widget-b8b9161c.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-4bf66264.js} +4 -4
- package/{cont-widget-bdc4315b.js → cont-widget-c263ef10.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-16d18d54.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-a63781fb.js} +9 -9
- package/{date-picker-widget-42468854.js → date-picker-widget-0085dafb.js} +9 -9
- package/{default-slot-widget-c02d5693.js → default-slot-widget-5a04616c.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-bb3996f8.js} +4 -4
- package/{descriptions-widget-b0b3a01f.js → descriptions-widget-33f4f8c3.js} +9 -9
- package/designer.es.js +25 -25
- package/designer.umd.js +210 -210
- package/{dialog-widget-0b618f22.js → dialog-widget-25edb019.js} +10 -10
- package/{divider-widget-16bc0f03.js → divider-widget-8d029146.js} +11 -11
- package/{drag-wrapper-4b351579.js → drag-wrapper-e697efac.js} +4 -4
- package/{drawer-widget-70248894.js → drawer-widget-2907bcda.js} +10 -10
- package/{dropdown-widget-c2f228a5.js → dropdown-widget-1bbeaf1a.js} +9 -9
- package/{editor-wrapper-6f41e0d5.js → editor-wrapper-53cb2c9c.js} +6 -6
- package/{empty-widget-8472ead5.js → empty-widget-ae262b04.js} +11 -11
- package/{feedback-widget-5fdf7f6c.js → feedback-widget-dd11a5f3.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-fec52613.js} +4 -4
- package/{field-editor-bf654f43.js → field-editor-e2cdf783.js} +7 -7
- package/{file-upload-widget-68b0a066.js → file-upload-widget-7a471ef1.js} +13 -13
- package/{form-item-wrapper-f6e226c6.js → form-item-wrapper-fa48611a.js} +5 -5
- package/{form-widget-499f3936.js → form-widget-38c3d547.js} +6 -6
- package/{grid-col-widget-3127039e.js → grid-col-widget-96a40d2e.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-b57ac7c8.js} +4 -4
- package/{grid-widget-35f23b26.js → grid-widget-2ffb9041.js} +4 -4
- package/{hcard-widget-05f51d4e.js → hcard-widget-1e758f29.js} +9 -9
- package/{html-text-widget-0bae8a9d.js → html-text-widget-4e3a83c9.js} +9 -9
- package/{icon-widget-08ea8543.js → icon-widget-809d1e6c.js} +8 -8
- package/{iframe-widget-da61af5c.js → iframe-widget-c84b9d38.js} +8 -8
- package/{image-editor-0ac74900.js → image-editor-683a7fc8.js} +8 -8
- package/{image-widget-0f571db5.js → image-widget-6c8c67ea.js} +8 -8
- package/{index-cf180032.js → index-042f80e3.js} +27 -27
- package/{index-30639d5a.js → index-073d1e8b.js} +1 -1
- package/{index-110950bb.js → index-0a9f60bc.js} +1 -1
- package/{index-47a1af07.js → index-0d86547b.js} +3 -3
- package/{index-70bbe64b.js → index-131fd80e.js} +11 -11
- package/{index-fd23cb59.js → index-228951e8.js} +1 -1
- package/{index-8c6d1f99.js → index-28547754.js} +28 -28
- package/{index-77b0741c.js → index-462ab6dd.js} +8 -8
- package/{index-e70f7517.js → index-496fff71.js} +3 -3
- package/{index-cf00dc95.js → index-4f49bd08.js} +28 -28
- package/{index-882a5112.js → index-5255aa5e.js} +28 -28
- package/{index-11943fb4.js → index-581452c2.js} +29 -29
- package/{index-7d433850.js → index-9c6489e1.js} +2 -2
- package/{index-662e54b9.js → index-aecc8225.js} +8 -8
- 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-b0b5f3dd.js → index-ec970dae.js} +12 -12
- package/{index-54fb31d8.js → index-f719fc09.js} +1 -1
- package/{index-a9655fc7.js → index-f802b7c5.js} +3 -3
- package/{index-55fec8ee.js → index-fc385010.js} +28 -28
- package/{input-number-widget-768ea8d4.js → input-number-widget-54bac4c7.js} +9 -9
- package/{input-tag-widget-74a41430.js → input-tag-widget-58cd5b3c.js} +10 -10
- package/{input-widget-99dce3fc.js → input-widget-967de859.js} +10 -10
- package/{install-designer-a1986398.js → install-designer-73e3d3e7.js} +20 -20
- package/{link-widget-e8dbd6f1.js → link-widget-65797f43.js} +11 -11
- package/{ltable-col-widget-4054c5fc.js → ltable-col-widget-38f0ef43.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-33c04282.js} +6 -6
- package/{ltable-widget-e2270b2d.js → ltable-widget-d05c6e84.js} +4 -4
- package/{mention-widget-704ff57b.js → mention-widget-4c54fcf6.js} +10 -10
- package/{menu-widget-a1e01022.js → menu-widget-8b90dc11.js} +9 -9
- package/{model-widget-66515fa2.js → model-widget-649e85f3.js} +8 -8
- package/{multirow-81bd98b0.js → multirow-cc29bc28.js} +57 -57
- package/{multirow-widget-9c2d1af0.js → multirow-widget-90094d7e.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-bd4b7a67.js} +8 -8
- package/{picture-upload-widget-18ebc86f.js → picture-upload-widget-f7528887.js} +10 -10
- package/{progress-widget-8062fd93.js → progress-widget-07189a36.js} +9 -9
- package/{property-base-62062ad3.js → property-base-07e2d455.js} +1 -1
- package/{qrcode-widget-f324cfeb.js → qrcode-widget-da1b4ddf.js} +8 -8
- package/{radio-widget-d8c975f6.js → radio-widget-eca2c2e1.js} +9 -9
- package/{range-widget-b9a410e5.js → range-widget-3d07ca51.js} +10 -10
- package/{rate-widget-d0e447c7.js → rate-widget-d9be18b5.js} +9 -9
- package/{reg-editor.vue_vue_type_script_setup_true_lang-01b54b43.js → reg-editor.vue_vue_type_script_setup_true_lang-da1421e4.js} +1 -1
- package/{result-widget-2cff3f54.js → result-widget-ca4e1c56.js} +9 -9
- package/{rich-editor-widget-5a337929.js → rich-editor-widget-9ae97c7b.js} +9 -9
- package/{router-widget-4c2c35f4.js → router-widget-d65a5d0c.js} +8 -8
- package/{schemaData-f430eb1d.js → schemaData-0a553abc.js} +3 -3
- package/{segmented-widget-d6c1ad2a.js → segmented-widget-b9aa0f54.js} +8 -8
- package/{select-widget-64b92665.js → select-widget-80be57a4.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-bea1e59c.js +850 -0
- package/{share-file-038a6e35.js → share-file-142b7983.js} +2 -2
- package/{size-editor-b3c89eb9.js → size-editor-6f4a8242.js} +9 -9
- package/{skeleton-widget-917ca2ec.js → skeleton-widget-b902f58e.js} +11 -11
- package/{skeletonItem-widget-7ce9424a.js → skeletonItem-widget-43d48ed3.js} +8 -8
- package/{slider-widget-a21767c7.js → slider-widget-11c5d49a.js} +9 -9
- package/{slot-c13ca692.js → slot-ae2cd44d.js} +1 -1
- package/{space-widget-f50afb65.js → space-widget-0d10d238.js} +9 -9
- package/{splitter-widget-576cf48a.js → splitter-widget-d64f648e.js} +9 -9
- package/{static-text-widget-dc9874b2.js → static-text-widget-c39be46f.js} +9 -9
- package/{statistic-widget-c3dcfda5.js → statistic-widget-06b816f1.js} +11 -11
- package/{steps-widget-0f5dec71.js → steps-widget-e1b3c46c.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-578023ce.js} +9 -9
- package/{tab-pane-widget-d070a8ea.js → tab-pane-widget-33698f9e.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-0a42d613.js} +4 -4
- package/{table-col-widget-d362fda1.js → table-col-widget-54467a62.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-56c92d81.js} +29 -29
- package/{table-widget-9274f470.js → table-widget-dfe54d4e.js} +76 -72
- package/{tabs-widget-eda846d1.js → tabs-widget-8f34a720.js} +5 -5
- package/{tag-widget-e3e48a0e.js → tag-widget-ac1fce7f.js} +11 -11
- package/{target-code-688b58cc.js → target-code-28166974.js} +3 -3
- package/{target-datasource-cf553e0e.js → target-datasource-5afe6279.js} +29 -29
- package/{target-link-25cd2ae5.js → target-link-bcce23fc.js} +28 -28
- package/{target-saveForm-b7538b3f.js → target-saveForm-c3cc1eaf.js} +28 -28
- package/{target-window-bdb48b26.js → target-window-0396843b.js} +4 -4
- package/{text-widget-51f80407.js → text-widget-1d44f82f.js} +11 -11
- package/{textarea-widget-81c7ec19.js → textarea-widget-56eb02ae.js} +9 -9
- package/{time-picker-range-widget-545c1773.js → time-picker-range-widget-4acaffb7.js} +9 -9
- package/{time-picker-widget-f188ab8c.js → time-picker-widget-7df4fd1d.js} +9 -9
- package/{time-select-widget-6aae15b2.js → time-select-widget-6548428d.js} +9 -9
- package/{timeline-widget-edf3d212.js → timeline-widget-230bebd1.js} +9 -9
- package/{tmpl-widget-a958f29d.js → tmpl-widget-c29b1a39.js} +9 -9
- package/{tooltip-widget-fcf52060.js → tooltip-widget-0a302710.js} +9 -9
- package/{tour-widget-f5e19fa6.js → tour-widget-16c1f4e4.js} +8 -8
- package/{transfer-widget-11358889.js → transfer-widget-6d1ec006.js} +10 -10
- package/{tree-select-widget-43bbc22a.js → tree-select-widget-d9560a17.js} +9 -9
- package/{tree-widget-71794768.js → tree-widget-3db629d3.js} +8 -8
- package/{value-editor-3bbb0ca6.js → value-editor-42c7cd07.js} +7 -7
- package/{verifycode-widget-817a68b4.js → verifycode-widget-deb93b73.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-526eac19.js} +4 -4
- package/share-field-42f9a242.js +0 -857
package/share-field-42f9a242.js
DELETED
|
@@ -1,857 +0,0 @@
|
|
|
1
|
-
var An = Object.defineProperty;
|
|
2
|
-
var kn = (r, i, g) => i in r ? An(r, i, { enumerable: !0, configurable: !0, writable: !0, value: g }) : r[i] = g;
|
|
3
|
-
var ft = (r, i, g) => (kn(r, typeof i != "symbol" ? i + "" : i, g), g);
|
|
4
|
-
import { onMounted as ht, nextTick as gt, onActivated as $n, onErrorCaptured as Gn, toRaw as Ot, isRef as Ct, watch as oe, reactive as Oe, inject as Ae, computed as Ce, ref as Ve, onBeforeUnmount as Kn, toRefs as qn } from "vue";
|
|
5
|
-
import { i as Vt, o as se, j as Q, b as Hn, h as ye, a as lt, d as Un } from "./object-17739dda.js";
|
|
6
|
-
import { u as Jn } from "./emitter-01bda185.js";
|
|
7
|
-
import { u as yt } from "./icon-8b8b9744.js";
|
|
8
|
-
import { a as q, q as Me, v as zn, x as Qn, g as D, d as ke, y as mt, w as Xn, f as dt } from "./expression-7fabf70c.js";
|
|
9
|
-
import { l as re, c as bt, t as Et, m as xe, o as Yn, g as Ge, f as Rt, h as U, v as Zn, d as ee, u as vt, w as be } from "./index-a09de843.js";
|
|
10
|
-
import { P as We, e as wn, B as Se, f as Ke, h as eo, W as X, a as pt, c as to, C as no, i as oo, d as ro } from "./baseCommonField-bc463e95.js";
|
|
11
|
-
import { F as so } from "./globalProvideInject-497780eb.js";
|
|
12
|
-
import { b as ao, h as $e } from "./index-9bbb5803.js";
|
|
13
|
-
import { W as J, C as uo } from "./enum-98f9eea5.js";
|
|
14
|
-
import "./index-110950bb.js";
|
|
15
|
-
import { p as Pe, g as io, f as Ee, a as co } from "./multirow-81bd98b0.js";
|
|
16
|
-
import { d as fo, b as lo } from "./slot-c13ca692.js";
|
|
17
|
-
function mo() {
|
|
18
|
-
return {
|
|
19
|
-
onMountedOrActivated: (g) => {
|
|
20
|
-
let y = !1;
|
|
21
|
-
ht(() => {
|
|
22
|
-
g(), gt(() => {
|
|
23
|
-
y = !0;
|
|
24
|
-
});
|
|
25
|
-
}), $n(() => {
|
|
26
|
-
y && g();
|
|
27
|
-
});
|
|
28
|
-
},
|
|
29
|
-
onCompErrorCaptured: () => {
|
|
30
|
-
Gn((g) => (re.error("onCompErrorCaptured", g), !1));
|
|
31
|
-
}
|
|
32
|
-
};
|
|
33
|
-
}
|
|
34
|
-
class qe {
|
|
35
|
-
constructor(i) {
|
|
36
|
-
ft(this, "refList", {});
|
|
37
|
-
i && (this.refList = i);
|
|
38
|
-
}
|
|
39
|
-
initRefList() {
|
|
40
|
-
this.refList || (this.refList = {});
|
|
41
|
-
}
|
|
42
|
-
getWidgetRef(i) {
|
|
43
|
-
if (i)
|
|
44
|
-
return this.initRefList(), this.refList[i];
|
|
45
|
-
}
|
|
46
|
-
setWidgetRef(i, g) {
|
|
47
|
-
i && (this.initRefList(), this.refList[i] = g);
|
|
48
|
-
}
|
|
49
|
-
removeWidgetRef(i) {
|
|
50
|
-
i && this.refList && delete this.refList[i.toString()];
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
function _e(r) {
|
|
54
|
-
r || (r = {});
|
|
55
|
-
const i = new qe(r), { instance: g } = yt(), y = (d) => i.getWidgetRef(d == null ? void 0 : d.toString()), N = (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 p = x(s, W, O);
|
|
60
|
-
p && V.push(p);
|
|
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
|
-
}, x = (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 = bt(Et(d, !0));
|
|
75
|
-
V == null || V.forEach((F) => {
|
|
76
|
-
var s = N(F, W, O);
|
|
77
|
-
Vt(s) || C.push(s);
|
|
78
|
-
});
|
|
79
|
-
}
|
|
80
|
-
return Array.isArray(d) ? C : C == null ? void 0 : C[0];
|
|
81
|
-
}, M = (d, W) => {
|
|
82
|
-
let O = se(r);
|
|
83
|
-
B(O, d, W);
|
|
84
|
-
}, A = (d, W) => {
|
|
85
|
-
var p, o, a, f;
|
|
86
|
-
const O = (a = (o = (p = W || g) == null ? void 0 : p.exposed) == null ? void 0 : o.getField) == null ? void 0 : a.call(o);
|
|
87
|
-
var C = Pe(O == null ? void 0 : O.id);
|
|
88
|
-
const V = (l) => (l == null ? void 0 : l.id) === d, F = (l) => {
|
|
89
|
-
var L;
|
|
90
|
-
var m = Pe(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 || ((L = l == null ? void 0 : l._source) == null ? void 0 : L.id) === d);
|
|
92
|
-
}, s = (f = se(i.refList)) == null ? void 0 : f.find((l) => {
|
|
93
|
-
var L, b, G;
|
|
94
|
-
try {
|
|
95
|
-
const $ = (G = (b = (L = i.refList[l]) == null ? void 0 : L.exposed) == null ? void 0 : b.getField) == null ? void 0 : G.call(b);
|
|
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
|
-
i == null || i.setWidgetRef(W, g);
|
|
108
|
-
}
|
|
109
|
-
}, h = (d) => {
|
|
110
|
-
if (d) {
|
|
111
|
-
let W = d;
|
|
112
|
-
i == null || i.removeWidgetRef(W);
|
|
113
|
-
}
|
|
114
|
-
};
|
|
115
|
-
return {
|
|
116
|
-
findWidgetAndCall: N,
|
|
117
|
-
getWidgetRef: y,
|
|
118
|
-
callWidgetsExposed: B,
|
|
119
|
-
callRefFunc: x,
|
|
120
|
-
existRefFunc: u,
|
|
121
|
-
setAllRefList: M,
|
|
122
|
-
findRefById: A,
|
|
123
|
-
findRefByName: y,
|
|
124
|
-
changeRegisterToRefList: (d, W) => {
|
|
125
|
-
d && (v(d), h(W));
|
|
126
|
-
},
|
|
127
|
-
registerToRefList: v,
|
|
128
|
-
unregisterFromRefList: h
|
|
129
|
-
};
|
|
130
|
-
}
|
|
131
|
-
const vo = (r, i, g, y, N) => {
|
|
132
|
-
const u = new qe(r), { callRefFunc: x } = _e(r), { parseGroupId: B } = co();
|
|
133
|
-
if (!r || r.length <= 0 || !g)
|
|
134
|
-
return;
|
|
135
|
-
const M = i, A = (s) => {
|
|
136
|
-
const p = M == null ? void 0 : M.find((f) => (f == null ? void 0 : f.id) === s);
|
|
137
|
-
if (!p)
|
|
138
|
-
return;
|
|
139
|
-
const o = p == null ? void 0 : p.name, a = u.getWidgetRef(o);
|
|
140
|
-
if (a)
|
|
141
|
-
return { ref: a, name: o, id: p == null ? void 0 : p.id };
|
|
142
|
-
}, v = (s, p) => {
|
|
143
|
-
var f;
|
|
144
|
-
if (!Q(p))
|
|
145
|
-
return;
|
|
146
|
-
const o = s == null ? void 0 : s.name, a = u.getWidgetRef(o);
|
|
147
|
-
if (a) {
|
|
148
|
-
const l = We.getValue((f = s == null ? void 0 : s.options) == null ? void 0 : f.defaultValue, !1, !xe(y == null ? void 0 : y.designState), { ...y, formData: p });
|
|
149
|
-
if (Q(l))
|
|
150
|
-
if (Ct(l)) {
|
|
151
|
-
let m = oe(() => l.value, (L) => {
|
|
152
|
-
m == null || m(), x(a, J.setValue, { newValue: L });
|
|
153
|
-
});
|
|
154
|
-
} else
|
|
155
|
-
x(a, J.setValue, { newValue: l });
|
|
156
|
-
}
|
|
157
|
-
}, h = (s, p) => {
|
|
158
|
-
const o = A(s);
|
|
159
|
-
if (!o)
|
|
160
|
-
return;
|
|
161
|
-
const a = o.name, f = x(o.ref, J.getValue), l = x(o.ref, J.getCheckedItems), m = {};
|
|
162
|
-
return m[a] = f, f !== void 0 && !Hn(l) && !p && (m[`${a}${Me.checkedOptions}`] = l), m;
|
|
163
|
-
}, T = (s, p) => {
|
|
164
|
-
var o = [];
|
|
165
|
-
if (M == null || M.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), L = (m == null ? void 0 : m.id) === s, b = (m == null ? void 0 : m.groupName) === p;
|
|
171
|
-
return l || L && (b || !p) ? (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, p) => {
|
|
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 p === Ee.Inner2Outer ? s == null || s.forEach((l) => {
|
|
187
|
-
var m = T(l);
|
|
188
|
-
m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
|
|
189
|
-
}) : s == null || s.forEach((l) => {
|
|
190
|
-
var m = T(l, f);
|
|
191
|
-
m && (m == null ? void 0 : m.length) > 0 && o.push(...m);
|
|
192
|
-
}), o;
|
|
193
|
-
}, W = (s, p) => {
|
|
194
|
-
let o = {};
|
|
195
|
-
if (!s || s.length <= 0)
|
|
196
|
-
return o;
|
|
197
|
-
if (p === 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 L;
|
|
204
|
-
const l = f.group[0], m = [];
|
|
205
|
-
(L = f == null ? void 0 : f.children) == null || L.forEach((b) => {
|
|
206
|
-
const G = h(b == null ? void 0 : b.id, !0);
|
|
207
|
-
if (Q(G)) {
|
|
208
|
-
var $ = Object.values(bt(G));
|
|
209
|
-
m.push(...$);
|
|
210
|
-
}
|
|
211
|
-
}), l && (o = Object.assign(o, { [l]: m }));
|
|
212
|
-
});
|
|
213
|
-
} else
|
|
214
|
-
s.forEach((f) => {
|
|
215
|
-
const l = h(f == null ? void 0 : f.id);
|
|
216
|
-
Q(l) && (o = Object.assign(o, l));
|
|
217
|
-
});
|
|
218
|
-
return o;
|
|
219
|
-
}, O = (s) => {
|
|
220
|
-
var p = {};
|
|
221
|
-
return s == null || s.forEach((o) => {
|
|
222
|
-
var a;
|
|
223
|
-
o != null && o.source && (o != null && o.id) && (p[(a = o == null ? void 0 : o.source) == null ? void 0 : a.id] = o == null ? void 0 : o.id);
|
|
224
|
-
}), p;
|
|
225
|
-
}, C = (s, p, o) => {
|
|
226
|
-
if (o === Ee.Inner2Inner) {
|
|
227
|
-
const m = Yn(p), { updateFomula: L } = Ke(), { buildVariable: b } = eo();
|
|
228
|
-
var a = O(s);
|
|
229
|
-
if (Q(a)) {
|
|
230
|
-
var f = Se.getOrgOption(p, q.defaultValue), l = L(Ge(f), a, (G, $) => {
|
|
231
|
-
var ae = a[G];
|
|
232
|
-
return Vt(ae) ? b(G) : b(ae);
|
|
233
|
-
});
|
|
234
|
-
return Se.setOrgOption(m, q.defaultValue, Rt(l)), m;
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
return p;
|
|
238
|
-
}, V = (s) => {
|
|
239
|
-
var L;
|
|
240
|
-
const p = s == null ? void 0 : s.id;
|
|
241
|
-
var o = (L = s == null ? void 0 : s.options) == null ? void 0 : L.defaultValue;
|
|
242
|
-
if (o == null)
|
|
243
|
-
return;
|
|
244
|
-
const a = io(g, p);
|
|
245
|
-
if (a === Ee.DiffInner)
|
|
246
|
-
return;
|
|
247
|
-
var f = We.getFormulaRelatedField(o);
|
|
248
|
-
if (!f || f.length <= 0)
|
|
249
|
-
return;
|
|
250
|
-
var l = d(f, a);
|
|
251
|
-
if (!(l != null && l.some((b) => b.id === g)))
|
|
252
|
-
return;
|
|
253
|
-
const m = W(l, a);
|
|
254
|
-
v(C(l, s, a), m);
|
|
255
|
-
};
|
|
256
|
-
(() => {
|
|
257
|
-
M == null || M.forEach((s) => {
|
|
258
|
-
V(s);
|
|
259
|
-
});
|
|
260
|
-
})();
|
|
261
|
-
}, po = (r, i, g, y, N, u) => {
|
|
262
|
-
var O;
|
|
263
|
-
if (xe(u))
|
|
264
|
-
return;
|
|
265
|
-
const x = Ot(y);
|
|
266
|
-
if (!Q(x))
|
|
267
|
-
return;
|
|
268
|
-
const B = Et(N == null ? void 0 : N.newValue, !0), M = new Set(B), A = (O = se(x)) == null ? void 0 : O.filter((C) => M == null ? void 0 : M.has(C));
|
|
269
|
-
if (!A || A.length <= 0)
|
|
270
|
-
return;
|
|
271
|
-
const { callRefFunc: v } = _e(r);
|
|
272
|
-
var h = Pe(g), T = h == null ? void 0 : h.groupName;
|
|
273
|
-
const d = i, 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 = Pe(a == null ? void 0 : a.id);
|
|
278
|
-
return (!T || (f == null ? void 0 : f.groupName) === T) && (f == null ? void 0 : f.id) === C;
|
|
279
|
-
});
|
|
280
|
-
if (!F)
|
|
281
|
-
return;
|
|
282
|
-
const s = F == null ? void 0 : F.name, o = new qe(r).getWidgetRef(s);
|
|
283
|
-
o && (V == null || V(o));
|
|
284
|
-
};
|
|
285
|
-
A == null || A.forEach((C) => {
|
|
286
|
-
var F, s;
|
|
287
|
-
const V = (F = x == null ? void 0 : x[C]) == null ? void 0 : F.result;
|
|
288
|
-
(s = se(V)) == null || s.forEach((p) => {
|
|
289
|
-
var a;
|
|
290
|
-
const o = V == null ? void 0 : V[p];
|
|
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, i) {
|
|
300
|
-
var g;
|
|
301
|
-
return (g = r == null ? void 0 : r.classList) != null && g.contains(i) ? r : r != null && r.parentElement ? Mt(r == null ? void 0 : r.parentElement, i) : 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
|
-
}, i = (v) => {
|
|
308
|
-
var h, T;
|
|
309
|
-
try {
|
|
310
|
-
(T = (h = r(v)) == null ? void 0 : h.focus) == null || T.call(h);
|
|
311
|
-
} catch (d) {
|
|
312
|
-
re.error("focus", d, v);
|
|
313
|
-
}
|
|
314
|
-
}, g = (v) => {
|
|
315
|
-
var h, T;
|
|
316
|
-
try {
|
|
317
|
-
(T = (h = r(v)) == null ? void 0 : h.blur) == null || T.call(h);
|
|
318
|
-
} catch (d) {
|
|
319
|
-
re.error("blur", d, v);
|
|
320
|
-
}
|
|
321
|
-
}, y = (v) => {
|
|
322
|
-
var h;
|
|
323
|
-
return (h = r(v)) == null ? void 0 : h.selectionStart;
|
|
324
|
-
}, N = (v) => {
|
|
325
|
-
var h;
|
|
326
|
-
return (h = r(v)) == null ? void 0 : h.selectionEnd;
|
|
327
|
-
}, u = (v, h) => {
|
|
328
|
-
var T;
|
|
329
|
-
return (T = r(v)) == null ? void 0 : T.setSelectionRange(h, h);
|
|
330
|
-
}, x = (v, h) => {
|
|
331
|
-
i(v), u(v, h);
|
|
332
|
-
};
|
|
333
|
-
return {
|
|
334
|
-
getSelectionStart: y,
|
|
335
|
-
getSelectionEnd: N,
|
|
336
|
-
setSelectionStart: u,
|
|
337
|
-
blur: g,
|
|
338
|
-
focus: i,
|
|
339
|
-
setMousePos: x,
|
|
340
|
-
getMousePos: (v) => y(v),
|
|
341
|
-
insertOnMousePos: (v, h, T) => {
|
|
342
|
-
const d = y(v), W = N(v), O = zn(T, h, d, W);
|
|
343
|
-
return gt(() => {
|
|
344
|
-
x(v, d + (h == null ? void 0 : h.length));
|
|
345
|
-
}), O;
|
|
346
|
-
},
|
|
347
|
-
deleteOnMousePos: (v, h) => Qn(h, v)
|
|
348
|
-
};
|
|
349
|
-
}
|
|
350
|
-
const go = (r) => {
|
|
351
|
-
var g;
|
|
352
|
-
const { getFormulaFields: i } = Ke();
|
|
353
|
-
return ((g = i(Ge(r))) == null ? void 0 : g.length) > 0;
|
|
354
|
-
}, w = (r) => {
|
|
355
|
-
const i = r.type;
|
|
356
|
-
//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
|
|
357
|
-
return r.formItemFlag || [X.form, X.dialog].includes(i);
|
|
358
|
-
}, Re = (r) => {
|
|
359
|
-
const i = r.type;
|
|
360
|
-
return [X.treeSelect, X.cascader, X.select, X.checkbox, X.radio].includes(i);
|
|
361
|
-
};
|
|
362
|
-
function Oo(r) {
|
|
363
|
-
const { getFormulaFields: i } = Ke(), g = U(r == null ? void 0 : r.options), y = Zn(g, (u, x) => We.isComplexType(x, uo.slot) || u === D.widgetList);
|
|
364
|
-
var N = i(Ge(y));
|
|
365
|
-
return N;
|
|
366
|
-
}
|
|
367
|
-
function Co(r, i, g) {
|
|
368
|
-
var x;
|
|
369
|
-
const y = {};
|
|
370
|
-
let N = [];
|
|
371
|
-
if (!r || r.length <= 0)
|
|
372
|
-
return y;
|
|
373
|
-
Object.entries(g).forEach(([B, M]) => {
|
|
374
|
-
r.some((A) => A === (M == null ? void 0 : M.id)) && N.push(M == null ? void 0 : M.name);
|
|
375
|
-
});
|
|
376
|
-
const u = U(i);
|
|
377
|
-
return (x = se(u)) == null || x.forEach((B) => {
|
|
378
|
-
N.includes(B) && ee(y, { [B]: u[B] });
|
|
379
|
-
}), Q(y) ? y : {};
|
|
380
|
-
}
|
|
381
|
-
function Fo(r) {
|
|
382
|
-
const {
|
|
383
|
-
designState: i,
|
|
384
|
-
created: g = !0,
|
|
385
|
-
exResetField: y,
|
|
386
|
-
extInitFieldModel: N
|
|
387
|
-
} = r, u = r == null ? void 0 : r.widget, x = r == null ? void 0 : r.designer, B = x == null ? void 0 : x.pageConfig, { globalWrapperOptions: M, formRefList: A, globalRefList: v, globalConfig: h, globalFormName: T, globalDataModel: d, rowScope: W } = so.globalInject(), O = _e(v), C = _e(A);
|
|
388
|
-
let V = Oe(d || {}), F = Oe(Ae(ke.linerModel, {})), s = Oe(Ae(ke.linerWidgetMap, []));
|
|
389
|
-
const p = Oe({}), { instance: o } = yt(), a = () => Ot(V), f = () => W, l = () => u, m = () => !i && go(u);
|
|
390
|
-
if (m()) {
|
|
391
|
-
const e = Oo(u);
|
|
392
|
-
Q(e) && oe(F, (t) => {
|
|
393
|
-
const n = Co(e, t, s);
|
|
394
|
-
vt(U(n), U(p)) || ee(p, n);
|
|
395
|
-
}, { immediate: !0 });
|
|
396
|
-
}
|
|
397
|
-
const b = pt({
|
|
398
|
-
instance: o,
|
|
399
|
-
designState: i,
|
|
400
|
-
pageConfig: B,
|
|
401
|
-
globalConfig: h
|
|
402
|
-
}), $ = {
|
|
403
|
-
instance: {
|
|
404
|
-
exposed: {
|
|
405
|
-
findRefByName: O.getWidgetRef,
|
|
406
|
-
fieldEditor: () => H.value,
|
|
407
|
-
getField: l,
|
|
408
|
-
getRowScope: f,
|
|
409
|
-
getFormData: a,
|
|
410
|
-
/**
|
|
411
|
-
* 此处暴露schemadata方法
|
|
412
|
-
* 为实现全局变量中能访问到全局数据源ctx.instance.exposed.getOneSchemaData等数据源求值方法
|
|
413
|
-
*/
|
|
414
|
-
getOneSchemaData: b == null ? void 0 : b.getOneSchemaData,
|
|
415
|
-
getSchemaDataObject: b == null ? void 0 : b.getSchemaDataObject,
|
|
416
|
-
getSchemaDatas: b == null ? void 0 : b.getSchemaDatas,
|
|
417
|
-
getGlobalParams: b == null ? void 0 : b.getGlobalParams
|
|
418
|
-
}
|
|
419
|
-
},
|
|
420
|
-
designState: i,
|
|
421
|
-
pageConfig: B,
|
|
422
|
-
formData: m() ? p : {},
|
|
423
|
-
globalConfig: h
|
|
424
|
-
}, { on$: ae, dispatch: Te, emit$: He, broadcast: xt } = Jn(), { onCompErrorCaptured: Wt } = mo(), { isIdClass: St, getIdByIdClass: Pt } = ao(u), { getOneSchemaData: _t, getSchemaDataObject: Tt, getSchemaDatas: Dt, getGlobalParams: Nt } = pt($), te = ho(), Ft = (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: De, events: K, slots: Ue, rules: Je, fieldName: E, buildRules: Lt, clearRules: Bt, disableChangeValidate: It, enableChangeValidate: jt, optionItems: de, refreshOptionItems: At, filterOptionItems: kt, getCheckedOptionText: $t, getCheckedOptionValues: Gt, getCheckedOptionLabels: Kt, getCheckedOptionItems: qt, activeOptionItems: Ht, activeOptionItem: Ut, activeOptionItemIndex: Jt, setOptionItems: ze, isOptionWidget: zt, setWidgetOption: ue, getWidgetOption: ie, getWidgetOptionByPropValue: Qt, setFieldEnable: Xt, hasFieldOptions: Yt, getFieldOptions: ce, setFieldOptions: Zt, computedDefaultValue: ve, hasDefaultValue: pe, watchOption: Qe, addCssClass: wt, removeCssClass: en } = to(u, $, Ft, o), Xe = Ce(() => {
|
|
425
|
-
var _;
|
|
426
|
-
if (![X.wrapper].includes(u.type) && u.category == no.container)
|
|
427
|
-
return ne.value;
|
|
428
|
-
var e = Ye(D.disabled, ne.value), t = Ye(D.readonly, ne.value);
|
|
429
|
-
if (ye(ne.value, D.disabled) && !ye(ne.value, D.readonly)) {
|
|
430
|
-
var n = (e == null ? void 0 : e.disabled) === !0;
|
|
431
|
-
if (!n) {
|
|
432
|
-
var c = (_ = xe(M)) == null ? void 0 : _[D.readonly], S = c === !0;
|
|
433
|
-
e[D.disabled] = S;
|
|
434
|
-
}
|
|
435
|
-
}
|
|
436
|
-
return {
|
|
437
|
-
...ne.value,
|
|
438
|
-
...e,
|
|
439
|
-
...t
|
|
440
|
-
};
|
|
441
|
-
}), Ye = (e, t) => {
|
|
442
|
-
var n;
|
|
443
|
-
return ye(t, e) ? {
|
|
444
|
-
[e]: ((n = xe(M)) == null ? void 0 : n[e]) || (t == null ? void 0 : t[e])
|
|
445
|
-
} : {};
|
|
446
|
-
};
|
|
447
|
-
let Ne = null, P = Ve();
|
|
448
|
-
const H = Ve(), tn = () => E.value, nn = () => H.value, Ze = () => `${u == null ? void 0 : u.id}-${oo()}`, Fe = Ve(Ze()), we = () => {
|
|
449
|
-
Fe.value = Ze();
|
|
450
|
-
}, on = Ce({
|
|
451
|
-
get: () => {
|
|
452
|
-
if (lt(P.value)) {
|
|
453
|
-
var e = Number(P.value);
|
|
454
|
-
return isNaN(e) ? void 0 : (P.value = e, e);
|
|
455
|
-
}
|
|
456
|
-
return P.value;
|
|
457
|
-
},
|
|
458
|
-
set: (e) => {
|
|
459
|
-
P.value = e;
|
|
460
|
-
}
|
|
461
|
-
}), rn = Ce({
|
|
462
|
-
get: () => {
|
|
463
|
-
if (lt(P.value)) {
|
|
464
|
-
var e = Rt(P.value);
|
|
465
|
-
Un(e) && (P.value = e);
|
|
466
|
-
}
|
|
467
|
-
return P.value;
|
|
468
|
-
},
|
|
469
|
-
set: (e) => {
|
|
470
|
-
P.value = e;
|
|
471
|
-
}
|
|
472
|
-
}), sn = (e) => {
|
|
473
|
-
var n, c;
|
|
474
|
-
var t = (c = (n = O.getWidgetRef(E.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.loadOptionItems;
|
|
475
|
-
if (t !== void 0) {
|
|
476
|
-
t == null || t(e);
|
|
477
|
-
return;
|
|
478
|
-
}
|
|
479
|
-
ze(e);
|
|
480
|
-
}, Le = (e) => {
|
|
481
|
-
var t, n, c;
|
|
482
|
-
return (c = (n = (t = O.getWidgetRef(E.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedItems) == null ? void 0 : c.call(n, e);
|
|
483
|
-
}, et = (e) => {
|
|
484
|
-
var t, n, c;
|
|
485
|
-
return (c = (n = (t = O.getWidgetRef(E.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedLabels) == null ? void 0 : c.call(n, e);
|
|
486
|
-
}, an = (e) => {
|
|
487
|
-
var t, n, c;
|
|
488
|
-
return (c = (n = (t = O.getWidgetRef(E.value)) == null ? void 0 : t.exposed) == null ? void 0 : n.getCheckedText) == null ? void 0 : c.call(n, e);
|
|
489
|
-
}, fe = (e) => {
|
|
490
|
-
var _;
|
|
491
|
-
if (!zt())
|
|
492
|
-
return;
|
|
493
|
-
const t = (_ = De.value) == null ? void 0 : _.withAttachData;
|
|
494
|
-
if (!Re(u) || t === !1)
|
|
495
|
-
return;
|
|
496
|
-
const n = et(e), c = an(e);
|
|
497
|
-
var S = U(Le(e));
|
|
498
|
-
tt(n, S, c);
|
|
499
|
-
}, tt = (e, t, n) => {
|
|
500
|
-
var j, k;
|
|
501
|
-
var c = {};
|
|
502
|
-
let S = ce("textName");
|
|
503
|
-
(j = [`${E.value}${Me.optionText}`, S].filter((R) => !!R)) == null || j.forEach((R) => {
|
|
504
|
-
R && (e !== void 0 ? c[R] === void 0 && (c[R] = e || null) : delete V[R]);
|
|
505
|
-
});
|
|
506
|
-
let _ = ce("optionName");
|
|
507
|
-
(k = [`${E.value}${Me.checkedOptions}`, _].filter((R) => !!R)) == null || k.forEach((R) => {
|
|
508
|
-
R && (t !== void 0 ? c[R] === void 0 && (c[R] = t || []) : delete V[R]);
|
|
509
|
-
});
|
|
510
|
-
let I = ce("labelName");
|
|
511
|
-
e !== n && [`${E.value}${Me.optionLabelName}`].forEach((R) => {
|
|
512
|
-
R && (n !== void 0 ? c[R] === void 0 && (c[R] = n) : delete V[R]);
|
|
513
|
-
}), I && [I].forEach((R) => {
|
|
514
|
-
R && (n !== void 0 ? c[R] === void 0 && (c[R] = n) : delete V[R]);
|
|
515
|
-
}), nt(U(c));
|
|
516
|
-
}, Y = (e) => {
|
|
517
|
-
if (w(u)) {
|
|
518
|
-
fe(e);
|
|
519
|
-
var t = { [E.value]: e };
|
|
520
|
-
nt(t);
|
|
521
|
-
}
|
|
522
|
-
}, nt = (e) => {
|
|
523
|
-
ee(V, e);
|
|
524
|
-
}, le = (e) => {
|
|
525
|
-
i || Y(e);
|
|
526
|
-
}, ot = (e) => ce(e), rt = () => {
|
|
527
|
-
var e = qn(V);
|
|
528
|
-
P = We.get(e, E.value);
|
|
529
|
-
}, st = (e) => {
|
|
530
|
-
Ne = U(e);
|
|
531
|
-
}, un = (e) => {
|
|
532
|
-
i || N && N(e);
|
|
533
|
-
}, cn = () => {
|
|
534
|
-
pe(!0) && be(ve()).then((e) => {
|
|
535
|
-
Y(e), rt();
|
|
536
|
-
});
|
|
537
|
-
};
|
|
538
|
-
let at = {};
|
|
539
|
-
const he = (e, t) => {
|
|
540
|
-
if (!w(u))
|
|
541
|
-
return;
|
|
542
|
-
var n = { newValue: e, oldValue: t };
|
|
543
|
-
if (vt(n, at))
|
|
544
|
-
return;
|
|
545
|
-
ee(F, { [E.value]: e }), Object.assign(at, n), He(q.fieldValueChanged, n);
|
|
546
|
-
const c = { fieldId: u.id, fieldName: E.value, newValue: e, oldValue: t };
|
|
547
|
-
Te(T, q.fieldChange, c, o);
|
|
548
|
-
}, fn = (e) => !!ie(e), Be = (e, t) => ro(ie(e), t), ln = (e) => {
|
|
549
|
-
le(e), ut(), Be(q.onInput, { value: e });
|
|
550
|
-
}, mn = (e, t) => {
|
|
551
|
-
var n, c, S;
|
|
552
|
-
return (S = (c = (n = O.getWidgetRef(E.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.handleBeforeChange) == null ? void 0 : S.call(c, e, t);
|
|
553
|
-
}, dn = (...e) => {
|
|
554
|
-
var S, _, I;
|
|
555
|
-
let n = ((S = e == null ? void 0 : e[0]) == null ? void 0 : S.target) != null ? (I = (_ = e == null ? void 0 : e[0]) == null ? void 0 : _.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
|
|
556
|
-
n = U(n);
|
|
557
|
-
var c = mn(n, Ne);
|
|
558
|
-
c != null ? le(c) : le(n), he(n, Ne), ut(), st(n);
|
|
559
|
-
}, vn = (e = !0) => {
|
|
560
|
-
ue(D.readonly, e);
|
|
561
|
-
}, pn = (e = !0) => {
|
|
562
|
-
ue(D.disabled, e);
|
|
563
|
-
}, hn = (e = !0) => {
|
|
564
|
-
ue(D.hidden, e), e ? ct() : ge();
|
|
565
|
-
}, gn = (e = !0) => {
|
|
566
|
-
Xt(D.required, e), ge();
|
|
567
|
-
}, On = (e) => {
|
|
568
|
-
ue(D.label, e);
|
|
569
|
-
}, z = () => P == null ? void 0 : P.value, Ie = (e) => {
|
|
570
|
-
P.value = e, fe(e);
|
|
571
|
-
}, me = (e) => {
|
|
572
|
-
let t = U(z());
|
|
573
|
-
if (Ie(e), !w(u))
|
|
574
|
-
return;
|
|
575
|
-
const n = z();
|
|
576
|
-
t !== n && (le(n), he(e, t));
|
|
577
|
-
}, Cn = () => {
|
|
578
|
-
pe() ? be(ve()).then((e) => {
|
|
579
|
-
Y(e);
|
|
580
|
-
}) : Y(null), y == null || y();
|
|
581
|
-
}, Vn = (e) => {
|
|
582
|
-
const t = z(), n = te.insertOnMousePos(H.value, e, t);
|
|
583
|
-
me(n);
|
|
584
|
-
}, yn = (e) => {
|
|
585
|
-
const t = z(), n = te.deleteOnMousePos(e, t);
|
|
586
|
-
me(n);
|
|
587
|
-
}, bn = (e, t) => {
|
|
588
|
-
oe(() => P == null ? void 0 : P.value, (n, c) => {
|
|
589
|
-
e == null || e({ id: u.id, name: E.value, newValue: n, oldValue: c });
|
|
590
|
-
}, t);
|
|
591
|
-
}, En = (e) => {
|
|
592
|
-
var _;
|
|
593
|
-
e.preventDefault();
|
|
594
|
-
const t = (I) => {
|
|
595
|
-
var k;
|
|
596
|
-
const j = (k = Array.from(I.classList)) == null ? void 0 : k.find((R) => St(R));
|
|
597
|
-
return j ? Pt(j) : "";
|
|
598
|
-
}, n = document.activeElement;
|
|
599
|
-
if (!n)
|
|
600
|
-
return;
|
|
601
|
-
const c = document.getElementsByClassName(mt.formItemTarget);
|
|
602
|
-
for (var S = 0; S < c.length; S++) {
|
|
603
|
-
const I = c[S], j = Mt(n, mt.formItemTarget);
|
|
604
|
-
if (!j)
|
|
605
|
-
continue;
|
|
606
|
-
const k = t(I), R = t(j);
|
|
607
|
-
if (k === R) {
|
|
608
|
-
if (S === c.length - 1)
|
|
609
|
-
return;
|
|
610
|
-
const Bn = c[S + 1], In = t(Bn), je = O.findRefById(In, o);
|
|
611
|
-
try {
|
|
612
|
-
(_ = je == null ? void 0 : je.exposed) == null || _.focus();
|
|
613
|
-
} catch (jn) {
|
|
614
|
-
re.error("handleEnter", jn);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
}
|
|
618
|
-
};
|
|
619
|
-
let Rn = () => {
|
|
620
|
-
var I;
|
|
621
|
-
let e = {
|
|
622
|
-
componentName: E.value,
|
|
623
|
-
//用于组件事件emitter发射与接收处理
|
|
624
|
-
refList: A,
|
|
625
|
-
allRefList: v,
|
|
626
|
-
fieldEditor: nn,
|
|
627
|
-
changeRegisterToRefList: (j, k) => {
|
|
628
|
-
O.changeRegisterToRefList(j, k), C.changeRegisterToRefList(j, k);
|
|
629
|
-
},
|
|
630
|
-
getField: l,
|
|
631
|
-
getFormData: a,
|
|
632
|
-
getValue: z,
|
|
633
|
-
setValue: Ie,
|
|
634
|
-
emit$: He,
|
|
635
|
-
findRefByName: O.getWidgetRef,
|
|
636
|
-
findRefById: O.findRefById,
|
|
637
|
-
callRefFunc: O.callRefFunc,
|
|
638
|
-
getWidgetOption: ie,
|
|
639
|
-
setWidgetOption: ue,
|
|
640
|
-
refreshKey: we,
|
|
641
|
-
getRowScope: f,
|
|
642
|
-
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
643
|
-
getOneSchemaData: _t,
|
|
644
|
-
getSchemaDatas: Dt,
|
|
645
|
-
getSchemaDataObject: Tt,
|
|
646
|
-
getGlobalParams: Nt,
|
|
647
|
-
addCssClass: wt,
|
|
648
|
-
removeCssClass: en
|
|
649
|
-
}, t = {
|
|
650
|
-
resetField: Cn,
|
|
651
|
-
getValue: z,
|
|
652
|
-
setValue: me,
|
|
653
|
-
refreshDefaultValue: cn,
|
|
654
|
-
insertOnMousePos: Vn,
|
|
655
|
-
deleteOnMousePos: yn,
|
|
656
|
-
disableChangeValidate: It,
|
|
657
|
-
enableChangeValidate: jt,
|
|
658
|
-
focus: () => {
|
|
659
|
-
te.focus(H.value);
|
|
660
|
-
},
|
|
661
|
-
blur: () => {
|
|
662
|
-
te.blur(H.value);
|
|
663
|
-
},
|
|
664
|
-
getMousePos: () => {
|
|
665
|
-
te.getMousePos(H.value);
|
|
666
|
-
},
|
|
667
|
-
setMousePos: (j) => {
|
|
668
|
-
te.setMousePos(H.value, j);
|
|
669
|
-
}
|
|
670
|
-
}, n = {
|
|
671
|
-
loadOptionItems: sn,
|
|
672
|
-
getCheckedItems: Le,
|
|
673
|
-
getCheckedLabels: et
|
|
674
|
-
}, c = {
|
|
675
|
-
[D.required]: { name: J.setRequired, fn: gn },
|
|
676
|
-
[D.label]: { name: J.setLabel, fn: On },
|
|
677
|
-
[D.hidden]: { name: J.setHidden, fn: hn },
|
|
678
|
-
[D.disabled]: { name: J.setDisabled, fn: pn },
|
|
679
|
-
[D.readonly]: { name: J.setReadonly, fn: vn }
|
|
680
|
-
}, S = {};
|
|
681
|
-
(I = se(c)) == null || I.forEach((j) => {
|
|
682
|
-
if ($e(u, j)) {
|
|
683
|
-
const k = c[j];
|
|
684
|
-
S[k.name] = k.fn;
|
|
685
|
-
}
|
|
686
|
-
});
|
|
687
|
-
var _ = ee(e, S);
|
|
688
|
-
return w(u) && (_ = ee(_, t)), Re(u) && (_ = ee(_, n)), _;
|
|
689
|
-
};
|
|
690
|
-
const Mn = Ce(() => ({
|
|
691
|
-
attrs: Xe.value,
|
|
692
|
-
extendAttrs: De.value,
|
|
693
|
-
events: K.value,
|
|
694
|
-
slots: Ue.value,
|
|
695
|
-
fieldKey: Fe.value,
|
|
696
|
-
fieldEditor: H.value,
|
|
697
|
-
fieldName: E.value
|
|
698
|
-
})), xn = (e, t, n) => {
|
|
699
|
-
const c = Ve(), S = ot(e), _ = (I) => {
|
|
700
|
-
t && (c.value = t(I || S));
|
|
701
|
-
};
|
|
702
|
-
return Ct(S) ? oe(S, (I) => {
|
|
703
|
-
_(I), n && n(I);
|
|
704
|
-
}) : _(S), c;
|
|
705
|
-
}, Wn = () => {
|
|
706
|
-
!w(u) || i || bn((e) => {
|
|
707
|
-
const t = u == null ? void 0 : u.id;
|
|
708
|
-
vo(v, s, t, $);
|
|
709
|
-
const n = Se.getOptions(u, D.relate);
|
|
710
|
-
po(v, s, t, n, e), (Re(u) || N) && setTimeout(() => {
|
|
711
|
-
fe(e.newValue), un(e == null ? void 0 : e.newValue);
|
|
712
|
-
}, 1e3), he(e.newValue, e.oldValue);
|
|
713
|
-
}, { immediate: !0 });
|
|
714
|
-
}, ut = () => {
|
|
715
|
-
const e = { propName: E.value };
|
|
716
|
-
Te(T, q.fieldValidation, e, o);
|
|
717
|
-
}, it = () => {
|
|
718
|
-
const e = { fieldId: u.id, fieldName: E.value, rules: Je };
|
|
719
|
-
Te(T, q.fieldRuleChange, e, o);
|
|
720
|
-
}, ge = () => {
|
|
721
|
-
if (!w(u))
|
|
722
|
-
return;
|
|
723
|
-
const e = Lt();
|
|
724
|
-
return it(), e;
|
|
725
|
-
}, ct = () => {
|
|
726
|
-
Bt(), it();
|
|
727
|
-
}, Sn = () => {
|
|
728
|
-
$e(u, "change") && (K.value.change = dn), $e(u, "input") && (K.value.input = ln), ae(dt.setFormData, (e) => {
|
|
729
|
-
me(e[E.value]);
|
|
730
|
-
}), ae(q.fieldValueChanged, (e) => {
|
|
731
|
-
Be(q.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
732
|
-
});
|
|
733
|
-
}, Pn = () => {
|
|
734
|
-
let e = E.value;
|
|
735
|
-
w(u) ? ((!ye(V, e) || V[e] === void 0) && (Y(null), pe() && be(ve()).then((t) => {
|
|
736
|
-
t == null ? Y(null) : Y(t);
|
|
737
|
-
})), rt()) : pe() && be(ve()).then((t) => {
|
|
738
|
-
me(t);
|
|
739
|
-
}), st(z());
|
|
740
|
-
}, _n = () => {
|
|
741
|
-
Re(u) && oe(() => de == null ? void 0 : de.value, (e, t) => {
|
|
742
|
-
fe(P.value);
|
|
743
|
-
}, { immediate: !0 });
|
|
744
|
-
}, Tn = () => {
|
|
745
|
-
Qe(D.css, void 0, (e) => {
|
|
746
|
-
Ln();
|
|
747
|
-
});
|
|
748
|
-
}, Z = Ae(ke.isRenderComplete), Dn = () => {
|
|
749
|
-
const e = () => 100, t = () => {
|
|
750
|
-
setTimeout(() => {
|
|
751
|
-
_n(), Wn(), ge();
|
|
752
|
-
}, e());
|
|
753
|
-
};
|
|
754
|
-
if (Z != null && Z.value) {
|
|
755
|
-
t();
|
|
756
|
-
return;
|
|
757
|
-
}
|
|
758
|
-
if (Z != null) {
|
|
759
|
-
const n = oe(() => Z == null ? void 0 : Z.value, (c) => {
|
|
760
|
-
c && (t(), n());
|
|
761
|
-
}, { immediate: !0 });
|
|
762
|
-
}
|
|
763
|
-
}, Nn = () => {
|
|
764
|
-
var e, t;
|
|
765
|
-
if (g)
|
|
766
|
-
try {
|
|
767
|
-
O.registerToRefList(E.value), C.registerToRefList(E.value), s.push({
|
|
768
|
-
id: u.id,
|
|
769
|
-
name: E.value,
|
|
770
|
-
_source: u == null ? void 0 : u._source,
|
|
771
|
-
options: {
|
|
772
|
-
defaultValue: Se.getOrgOption(u, q.defaultValue)
|
|
773
|
-
}
|
|
774
|
-
}), Pn(), Sn(), (t = (e = K == null ? void 0 : K.value) == null ? void 0 : e.created) == null || t.call(e), Wt();
|
|
775
|
-
} catch (n) {
|
|
776
|
-
re.error("create", n);
|
|
777
|
-
}
|
|
778
|
-
}, Fn = () => {
|
|
779
|
-
g && (ht(() => {
|
|
780
|
-
var e, t;
|
|
781
|
-
try {
|
|
782
|
-
Tn(), Dn(), (t = (e = K == null ? void 0 : K.value) == null ? void 0 : e.mounted) == null || t.call(e), xt(Xn.VFormRender, dt.registerRef, { fieldName: E.value, fieldId: u == null ? void 0 : u.id }, [v]);
|
|
783
|
-
} catch (n) {
|
|
784
|
-
re.error("mounted", n, u);
|
|
785
|
-
}
|
|
786
|
-
}), Kn(() => {
|
|
787
|
-
O.unregisterFromRefList(E.value), C.unregisterFromRefList(E.value);
|
|
788
|
-
}));
|
|
789
|
-
}, Ln = (e) => {
|
|
790
|
-
const t = u == null ? void 0 : u.id, n = ie(D.css);
|
|
791
|
-
n && t && fo(n).then((c) => {
|
|
792
|
-
lo(c, t);
|
|
793
|
-
});
|
|
794
|
-
};
|
|
795
|
-
return Nn(), Fn(), {
|
|
796
|
-
exposed: Rn(),
|
|
797
|
-
fieldModel: P,
|
|
798
|
-
objFieldModel: rn,
|
|
799
|
-
numFieldModel: on,
|
|
800
|
-
fieldEditor: H,
|
|
801
|
-
fieldKey: Fe,
|
|
802
|
-
field: u,
|
|
803
|
-
instance: o,
|
|
804
|
-
attrs: Xe,
|
|
805
|
-
extendAttrs: De,
|
|
806
|
-
slots: Ue,
|
|
807
|
-
events: K,
|
|
808
|
-
rules: Je,
|
|
809
|
-
fieldObj: Mn,
|
|
810
|
-
getValue: z,
|
|
811
|
-
setValue: Ie,
|
|
812
|
-
pageConfig: B,
|
|
813
|
-
formModel: V,
|
|
814
|
-
fieldName: E,
|
|
815
|
-
propResultOpt: $,
|
|
816
|
-
optionItems: de,
|
|
817
|
-
activeOptionItems: Ht,
|
|
818
|
-
activeOptionItem: Ut,
|
|
819
|
-
activeOptionItemIndex: Jt,
|
|
820
|
-
refreshOptionItems: At,
|
|
821
|
-
refreshOptionField: fe,
|
|
822
|
-
filterOptionItems: kt,
|
|
823
|
-
setOptionItems: ze,
|
|
824
|
-
getCheckedItems: Le,
|
|
825
|
-
getCheckedOptionItems: (e, t) => qt(e || P.value, t),
|
|
826
|
-
getCheckedOptionLabels: (e, t) => Kt(e || P.value, t),
|
|
827
|
-
getCheckedOptionValues: (e, t) => Gt(e || P.value, t),
|
|
828
|
-
getCheckedOptionText: (e, t) => $t(e || P.value, t),
|
|
829
|
-
refreshKey: we,
|
|
830
|
-
watchKeyValue: xn,
|
|
831
|
-
// watchPropAndSaveHistoryStep,
|
|
832
|
-
existEvent: fn,
|
|
833
|
-
handleEvent: Be,
|
|
834
|
-
handleEnter: En,
|
|
835
|
-
getPropName: tn,
|
|
836
|
-
emitFieldDataChange: he,
|
|
837
|
-
syncUpdateFormModel: le,
|
|
838
|
-
getWidgetRef: O.getWidgetRef,
|
|
839
|
-
clearRules: ct,
|
|
840
|
-
buildRules: ge,
|
|
841
|
-
getFieldOptionModel: ot,
|
|
842
|
-
getFieldOptions: ce,
|
|
843
|
-
hasFieldOptions: Yt,
|
|
844
|
-
setFieldOptions: Zt,
|
|
845
|
-
getWidgetOption: ie,
|
|
846
|
-
getWidgetOptionByPropValue: Qt,
|
|
847
|
-
// singleOption,
|
|
848
|
-
watchOption: Qe,
|
|
849
|
-
mergeOptionToFormModel: tt
|
|
850
|
-
};
|
|
851
|
-
}
|
|
852
|
-
export {
|
|
853
|
-
qe as R,
|
|
854
|
-
mo as a,
|
|
855
|
-
Fo as b,
|
|
856
|
-
_e as u
|
|
857
|
-
};
|