hlrender 0.0.137 → 0.0.138
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-1b3ce234.js → _pdf-3e3edebc.js} +2 -2
- package/{_txt-c8be11e9.js → _txt-4e2ecc06.js} +2 -2
- package/{affix-widget-bf896d2c.js → affix-widget-b0bd1a26.js} +3 -3
- package/{alert-widget-e558f240.js → alert-widget-e54cb7f4.js} +3 -3
- package/{anchor-widget-3ce0ceb8.js → anchor-widget-5f091d11.js} +1 -1
- package/{auto-complete-widget-edcee1a1.js → auto-complete-widget-57f8c0e7.js} +2 -2
- package/{avatar-widget-a3707ea1.js → avatar-widget-c288d63d.js} +3 -3
- package/{backtop-widget-b15af9a9.js → backtop-widget-3d54226e.js} +3 -3
- package/{badge-widget-b2ca6530.js → badge-widget-8acb0c82.js} +3 -3
- package/{breadcrumb-widget-c65cffbb.js → breadcrumb-widget-c6755d6b.js} +1 -1
- package/{button-widget-4b73aa22.js → button-widget-b05e4690.js} +3 -3
- package/{cache-widget-424a40e2.js → cache-widget-7077a030.js} +1 -1
- package/{card-widget-0587e443.js → card-widget-fb553cda.js} +2 -2
- package/{carousel-widget-68fe4bae.js → carousel-widget-fe11a287.js} +1 -1
- package/{cascader-widget-36a29d45.js → cascader-widget-5a886d49.js} +1 -1
- package/{chart-widget-9fbbedf9.js → chart-widget-0aa7ea40.js} +1 -1
- package/{checkbox-widget-534da4e0.js → checkbox-widget-84c09d07.js} +1 -1
- package/{collapse-widget-605bcbe3.js → collapse-widget-c087b2df.js} +1 -1
- package/{color-picker-widget-ffc75c9f.js → color-picker-widget-8d4b012d.js} +1 -1
- package/{cont-cell-widget-e6745b1e.js → cont-cell-widget-1f5af847.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-aa5ab67f.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9d79d3d3.js} +2 -2
- package/{cont-widget-9c46584c.js → cont-widget-a87b7d7c.js} +2 -2
- package/{date-picker-range-widget-95fe1027.js → date-picker-range-widget-0e1bf5e9.js} +1 -1
- package/{date-picker-widget-ed363cfc.js → date-picker-widget-45e11211.js} +1 -1
- package/{default-slot-widget-fd8675b0.js → default-slot-widget-a4037130.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-67b894df.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8cc5dc14.js} +1 -1
- package/{descriptions-widget-acc9925e.js → descriptions-widget-5dda5522.js} +2 -2
- package/{dialog-widget-a051755d.js → dialog-widget-45f2a6a8.js} +3 -3
- package/{divider-widget-2b29796d.js → divider-widget-74895eb7.js} +3 -3
- package/{drag-wrapper-ddd788db.js → drag-wrapper-f6aa00f6.js} +1 -1
- package/{drawer-widget-25a1400d.js → drawer-widget-f8f175ab.js} +3 -3
- package/{dropdown-widget-3875e58f.js → dropdown-widget-c3781e0a.js} +2 -2
- package/{empty-widget-c02f7189.js → empty-widget-4a854aa4.js} +3 -3
- package/{feedback-widget-289cc5f3.js → feedback-widget-fc966cfd.js} +3 -3
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-4fb99716.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-060df774.js} +2 -2
- package/{file-upload-widget-177ce5dc.js → file-upload-widget-4acfb0c0.js} +5 -5
- package/{form-widget-f00a294a.js → form-widget-4a8adbeb.js} +2 -2
- package/{grid-col-widget-db25799c.js → grid-col-widget-d2ab53a1.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-c405b26b.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-76ff5dfa.js} +2 -2
- package/{grid-widget-b0b89ee4.js → grid-widget-b4864397.js} +2 -2
- package/{html-text-widget-29d6fd91.js → html-text-widget-e409615c.js} +1 -1
- package/{icon-widget-d21ce368.js → icon-widget-198c97a3.js} +1 -1
- package/{iframe-widget-1ccf04b7.js → iframe-widget-88ef0855.js} +1 -1
- package/{image-widget-11d35a55.js → image-widget-b4e6fc06.js} +1 -1
- package/{input-number-widget-edd5d01a.js → input-number-widget-3f018315.js} +1 -1
- package/{input-widget-34b6587f.js → input-widget-33d18b8b.js} +2 -2
- package/{link-widget-8486753f.js → link-widget-5bd3d4b3.js} +3 -3
- package/{ltable-col-widget-8c83cc28.js → ltable-col-widget-e4a78a11.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-5d10129f.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7f1adfe3.js} +2 -2
- package/{ltable-widget-aee29346.js → ltable-widget-5b59d003.js} +2 -2
- package/{menu-widget-86467f21.js → menu-widget-38506dc7.js} +1 -1
- package/{model-widget-ea3ae98c.js → model-widget-7f740f10.js} +1 -1
- package/{multirow-widget-f00de883.js → multirow-widget-7fb52aeb.js} +2 -2
- package/package.json +1 -1
- package/{pagination-widget-d4928942.js → pagination-widget-93b4ff18.js} +1 -1
- package/{picture-upload-widget-2331a7ee.js → picture-upload-widget-2b281639.js} +2 -2
- package/{progress-widget-dedc4687.js → progress-widget-69257fe5.js} +2 -2
- package/{radio-widget-748a9474.js → radio-widget-3419a061.js} +1 -1
- package/{range-widget-ac9ed3ab.js → range-widget-bc9eb3bc.js} +2 -2
- package/{rate-widget-6d3a5587.js → rate-widget-51ea66b0.js} +1 -1
- package/render.es.js +16 -16
- package/render.umd.js +169 -169
- package/{result-widget-3161eae3.js → result-widget-48bbee71.js} +2 -2
- package/{rich-editor-widget-9a48e91b.js → rich-editor-widget-f6a707d6.js} +1 -1
- package/{router-widget-78b5a8e1.js → router-widget-9d95900e.js} +1 -1
- package/{select-widget-6743f3f6.js → select-widget-9f5875de.js} +1 -1
- package/{share-field-f0f2612d.js → share-field-70e53805.js} +92 -90
- package/share-file-81d7679e.js +237 -0
- package/{slider-widget-0866c354.js → slider-widget-c1e7cf1b.js} +1 -1
- package/{static-text-widget-bdde824c.js → static-text-widget-c498c4f8.js} +1 -1
- package/{steps-widget-28e361e1.js → steps-widget-0794d0f5.js} +1 -1
- package/{switch-widget-58b406fb.js → switch-widget-658399b0.js} +1 -1
- package/{tab-pane-widget-58db19f7.js → tab-pane-widget-6bb27163.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-257a0a0d.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bf376251.js} +2 -2
- package/{table-col-widget-24561e8b.js → table-col-widget-c6667f25.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-e70de5c8.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d683bcb7.js} +1 -1
- package/{table-widget-6b526240.js → table-widget-81bb288f.js} +3 -3
- package/{tabs-widget-1f4552bc.js → tabs-widget-7359728f.js} +2 -2
- package/{tag-widget-e985a598.js → tag-widget-eb60301a.js} +3 -3
- package/{text-widget-4ac9329d.js → text-widget-3de85e13.js} +3 -3
- package/{textarea-widget-086c6f37.js → textarea-widget-beafa36f.js} +1 -1
- package/{time-picker-range-widget-d0961060.js → time-picker-range-widget-c889d4c1.js} +1 -1
- package/{time-picker-widget-b9ee4808.js → time-picker-widget-11438a8b.js} +1 -1
- package/{time-select-widget-4b549b73.js → time-select-widget-53ecd39a.js} +1 -1
- package/{tmpl-widget-4f55af42.js → tmpl-widget-5036dded.js} +2 -2
- package/{tree-select-widget-1a25bc8f.js → tree-select-widget-fcf77445.js} +1 -1
- package/{tree-widget-d9c0d860.js → tree-widget-8b15bfd7.js} +1 -1
- package/{wrapper-widget-e88e954a.js → wrapper-widget-b8e27139.js} +2 -2
- package/share-file-cee43523.js +0 -229
|
@@ -2,9 +2,9 @@ import { defineComponent as d, computed as k, resolveComponent as S, openBlock a
|
|
|
2
2
|
import { e as $ } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { I as B } from "./field-base-5547436d.js";
|
|
4
4
|
import { _ as E } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
5
|
-
import { b as I } from "./share-field-
|
|
5
|
+
import { b as I } from "./share-field-70e53805.js";
|
|
6
6
|
import { w as O } from "./expression-490b4335.js";
|
|
7
|
-
import { D as P } from "./drag-wrapper-
|
|
7
|
+
import { D as P } from "./drag-wrapper-f6aa00f6.js";
|
|
8
8
|
import { g as W } from "./slot-afdbaf6a.js";
|
|
9
9
|
import "./widget-base-4c2d6265.js";
|
|
10
10
|
import "./index-f6240372.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as f, computed as d, shallowRef as j, onMounted as k, openBlock as a, createBlock as c, mergeProps as u, unref as e, withCtx as x, createElementVNode as H, normalizeClass as I, normalizeStyle as M, resolveDynamicComponent as W, isRef as q, toHandlers as z } from "vue";
|
|
2
|
-
import { b as B } from "./share-field-
|
|
2
|
+
import { b as B } from "./share-field-70e53805.js";
|
|
3
3
|
import { I as N } from "./field-base-5547436d.js";
|
|
4
4
|
import P from "./form-item-wrapper-14987803.js";
|
|
5
5
|
import { w as R } from "./expression-490b4335.js";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { defineComponent as m, resolveComponent as u, openBlock as e, createBlock as i, mergeProps as g, unref as o, withCtx as p, createElementBlock as k, toDisplayString as w, createCommentVNode as b } from "vue";
|
|
2
|
-
import { b as y } from "./share-field-
|
|
2
|
+
import { b as y } from "./share-field-70e53805.js";
|
|
3
3
|
import { I as v } from "./field-base-5547436d.js";
|
|
4
4
|
import { _ as C } from "./widget-wrapper.vue_vue_type_script_setup_true_name_form-item-wrapper_lang-2eadd5b2.js";
|
|
5
5
|
import { w as F } from "./expression-490b4335.js";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { defineComponent as ve, ref as S, computed as te, shallowRef as ue, watch as Fe, onMounted as we, resolveComponent as R, openBlock as u, createBlock as d, mergeProps as K, unref as e, withCtx as m, isRef as re, toHandlers as ne, createElementBlock as k, createVNode as ze, createTextVNode as Ne, toDisplayString as Se, createCommentVNode as V, Fragment as _, renderList as B, resolveDynamicComponent as j } from "vue";
|
|
2
2
|
import { t as O, c as oe, e as q } from "./enum-type-4a798b1a.js";
|
|
3
3
|
import { d as Be } from "./baseImp-1b9355d2.js";
|
|
4
|
-
import { b as Ee } from "./share-field-
|
|
4
|
+
import { b as Ee } from "./share-field-70e53805.js";
|
|
5
5
|
import { I as Pe } from "./field-base-5547436d.js";
|
|
6
6
|
import De from "./form-item-wrapper-14987803.js";
|
|
7
7
|
import { g as Le, w as Re } from "./expression-490b4335.js";
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
var xn = Object.defineProperty;
|
|
2
2
|
var Mn = (t, a, p) => a in t ? xn(t, a, { enumerable: !0, configurable: !0, writable: !0, value: p }) : t[a] = p;
|
|
3
3
|
var tt = (t, a, p) => (Mn(t, typeof a != "symbol" ? a + "" : a, p), p);
|
|
4
|
-
import { onMounted as at, nextTick as ut, onActivated as _n, onErrorCaptured as Sn, isRef as ct, watch as Z, reactive as Dn, ref as de, computed as
|
|
5
|
-
import { m as se, a as
|
|
4
|
+
import { onMounted as at, nextTick as ut, onActivated as _n, onErrorCaptured as Sn, isRef as ct, watch as Z, reactive as Dn, ref as de, computed as De, onBeforeUnmount as Wn, inject as Pn, toRefs as Nn } from "vue";
|
|
5
|
+
import { m as se, a as Ne, c as Fe, t as it, i as ft, o as X, g as w, w as Tn, K as Fn, h as Oe, f as lt, k as Bn, n as In, E as Y, d as ve, z as Ln, H as ge } from "./enum-type-4a798b1a.js";
|
|
6
6
|
import { p as nt, b as mt, g as $n, f as he, a as jn } from "./multirow-3a97c61a.js";
|
|
7
7
|
import { u as dt } from "./icon-a0e0cdb0.js";
|
|
8
8
|
import { f as j, l as pe, m as An, n as ot, g as $, r as kn, i as Hn, b as Kn, d as qn } from "./expression-490b4335.js";
|
|
9
|
-
import { b as vt, d as
|
|
9
|
+
import { b as vt, d as Te, B as G, P as gt, c as ht, e as Gn, a as rt } from "./baseImp-1b9355d2.js";
|
|
10
10
|
import { F as Un } from "./slot-afdbaf6a.js";
|
|
11
|
-
import { f as Jn, d as zn, h as
|
|
11
|
+
import { f as Jn, d as zn, h as We, e as Qn } from "./index-f6240372.js";
|
|
12
12
|
import { W as A, c as Q } from "./enum-type-bb2bfafa.js";
|
|
13
13
|
import { m as Xn } from "./uuid-4999945f.js";
|
|
14
14
|
function Yn() {
|
|
@@ -33,17 +33,17 @@ function Zn(t, a) {
|
|
|
33
33
|
return {
|
|
34
34
|
existFunc: N,
|
|
35
35
|
handleFunc: (u, W) => {
|
|
36
|
-
if (
|
|
36
|
+
if (Ne(u)) {
|
|
37
37
|
var F = N(String(u));
|
|
38
|
-
return
|
|
38
|
+
return Te(F, W);
|
|
39
39
|
} else {
|
|
40
|
-
var F = M(
|
|
41
|
-
return
|
|
40
|
+
var F = M(Fe(u));
|
|
41
|
+
return Te(F, W);
|
|
42
42
|
}
|
|
43
43
|
}
|
|
44
44
|
};
|
|
45
45
|
}
|
|
46
|
-
class
|
|
46
|
+
class Be {
|
|
47
47
|
constructor(a) {
|
|
48
48
|
tt(this, "refList", {});
|
|
49
49
|
a && (this.refList = a);
|
|
@@ -64,7 +64,7 @@ class Fe {
|
|
|
64
64
|
}
|
|
65
65
|
function Ve(t) {
|
|
66
66
|
t || (t = {});
|
|
67
|
-
const a = new
|
|
67
|
+
const a = new Be(t), { instance: p } = dt(), M = (g) => a.getWidgetRef(g == null ? void 0 : g.toString()), N = (g, V, C) => {
|
|
68
68
|
var d = [], S = [];
|
|
69
69
|
let o = M(g);
|
|
70
70
|
return o && d.push(o), d == null || d.forEach((l) => {
|
|
@@ -83,7 +83,7 @@ function Ve(t) {
|
|
|
83
83
|
}, W = (g, V, C) => {
|
|
84
84
|
var d = [];
|
|
85
85
|
if (g) {
|
|
86
|
-
var S =
|
|
86
|
+
var S = Fe(it(g, !0));
|
|
87
87
|
S == null || S.forEach((o) => {
|
|
88
88
|
var l = N(o, V, C);
|
|
89
89
|
ft(l) || d.push(l);
|
|
@@ -141,7 +141,7 @@ function Ve(t) {
|
|
|
141
141
|
};
|
|
142
142
|
}
|
|
143
143
|
const wn = (t, a, p, M) => {
|
|
144
|
-
const N = new
|
|
144
|
+
const N = new Be(t), { callRefFunc: D } = Ve(t), { parseGroupId: u } = mt();
|
|
145
145
|
if (!t || t.length <= 0 || !a)
|
|
146
146
|
return;
|
|
147
147
|
const W = () => {
|
|
@@ -152,15 +152,15 @@ const wn = (t, a, p, M) => {
|
|
|
152
152
|
const l = (f = W()) == null ? void 0 : f.find((s) => (s == null ? void 0 : s.id) === o);
|
|
153
153
|
if (!l)
|
|
154
154
|
return;
|
|
155
|
-
const r =
|
|
155
|
+
const r = G.getName(l), v = N.getWidgetRef(r);
|
|
156
156
|
if (v)
|
|
157
157
|
return { ref: v, name: r, id: l == null ? void 0 : l.id };
|
|
158
158
|
}, O = (o, l) => {
|
|
159
159
|
if (!w(l))
|
|
160
160
|
return;
|
|
161
|
-
const r =
|
|
161
|
+
const r = G.getName(o), v = N.getWidgetRef(r);
|
|
162
162
|
if (v) {
|
|
163
|
-
const f =
|
|
163
|
+
const f = G.getOptions(o, j.defaultValue, !1, !(p != null && p.designState), { ...p, formData: l });
|
|
164
164
|
if (w(f))
|
|
165
165
|
if (ct(f)) {
|
|
166
166
|
let s = Z(() => f.value, (i) => {
|
|
@@ -221,8 +221,8 @@ const wn = (t, a, p, M) => {
|
|
|
221
221
|
(_ = f == null ? void 0 : f.children) == null || _.forEach((P) => {
|
|
222
222
|
const B = h(P == null ? void 0 : P.id, !0);
|
|
223
223
|
if (w(B)) {
|
|
224
|
-
var
|
|
225
|
-
i.push(...
|
|
224
|
+
var U = Object.values(Fe(B));
|
|
225
|
+
i.push(...U);
|
|
226
226
|
}
|
|
227
227
|
}), s && (r = Object.assign(r, { [s]: i }));
|
|
228
228
|
});
|
|
@@ -243,17 +243,17 @@ const wn = (t, a, p, M) => {
|
|
|
243
243
|
const i = Fn(l), { updateFomula: _ } = ht(), { buildVariable: P } = Gn();
|
|
244
244
|
var v = V(o);
|
|
245
245
|
if (w(v)) {
|
|
246
|
-
var f =
|
|
246
|
+
var f = G.getOrgOption(l, j.defaultValue), s = _(Oe(f), v, (B, U) => {
|
|
247
247
|
var ee = v[B];
|
|
248
248
|
return ft(ee) ? P(B) : P(ee);
|
|
249
249
|
});
|
|
250
|
-
return
|
|
250
|
+
return G.setOrgOption(i, j.defaultValue, lt(s)), i;
|
|
251
251
|
}
|
|
252
252
|
}
|
|
253
253
|
return l;
|
|
254
254
|
}, d = (o) => {
|
|
255
255
|
const l = o == null ? void 0 : o.id;
|
|
256
|
-
var r =
|
|
256
|
+
var r = G.getOrgOption(o, j.defaultValue);
|
|
257
257
|
if (r == null)
|
|
258
258
|
return;
|
|
259
259
|
const v = $n(a, l);
|
|
@@ -288,7 +288,7 @@ const wn = (t, a, p, M) => {
|
|
|
288
288
|
})) == null ? void 0 : f[0];
|
|
289
289
|
if (!d)
|
|
290
290
|
return;
|
|
291
|
-
const S =
|
|
291
|
+
const S = G.getName(d), l = new Be(t).getWidgetRef(S);
|
|
292
292
|
l && (V == null || V(l));
|
|
293
293
|
}, h = it(M == null ? void 0 : M.newValue, !0), x = (T = X(p)) == null ? void 0 : T.filter((g) => h == null ? void 0 : h.includes(g));
|
|
294
294
|
!x || x.length <= 0 || x == null || x.forEach((g) => {
|
|
@@ -363,7 +363,7 @@ const st = (t) => {
|
|
|
363
363
|
const a = t.type;
|
|
364
364
|
//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
|
|
365
365
|
return t.formItemFlag || [Q.form, Q.dialog].includes(a);
|
|
366
|
-
},
|
|
366
|
+
}, Pe = (t) => {
|
|
367
367
|
const a = t.type;
|
|
368
368
|
return [Q.treeSelect, Q.cascader, Q.select, Q.checkbox, Q.radio].includes(a);
|
|
369
369
|
};
|
|
@@ -396,13 +396,13 @@ function vo(t) {
|
|
|
396
396
|
}, P = {
|
|
397
397
|
instance: D ? o : _,
|
|
398
398
|
...f
|
|
399
|
-
}, { on$: B, dispatch:
|
|
399
|
+
}, { on$: B, dispatch: U, emit$: ee } = jn(), { onCompErrorCaptured: Ot } = Yn(), { existFunc: Vt } = Zn({ options: u == null ? void 0 : u.options }, P), { isIdClass: Ct, getIdByIdClass: Et } = zn(u), { getOneSchemaData: yt, getSchemaDataObject: bt, getSchemaDatas: Rt } = rt(P), te = to(), xt = (t == null ? void 0 : t.shareProp) || { s_attr: !0, s_extendAttr: !0, s_events: !0, s_slots: !0, s_fieldName: !0, s_optionItems: !0 }, { attrs: Ie, extendAttrs: Ce, events: k, slots: Le, rules: $e, fieldName: b, buildRules: Mt, clearRules: _t, disableChangeValidate: St, enableChangeValidate: Dt, optionItems: ae, filterOptionItems: Wt, getCheckedOptionText: Pt, getCheckedOptionValues: Nt, getCheckedOptionLabels: Tt, getCheckedOptionItems: Ft, activeOptionItems: Bt, activeOptionItem: It, activeOptionItemIndex: Lt, setOptionItems: je, isOptionWidget: $t, setWidgetOption: ne, getWidgetOption: ue, setFieldEnable: jt, hasFieldOptions: At, getFieldOptions: oe, setFieldOptions: kt, computedDefaultValue: ce, hasDefaultValue: ie, singleOption: Ht, watchOption: Ae, addCssClass: Kt, removeCssClass: qt } = vt(u, P, xt, o);
|
|
400
400
|
let Ee = null, R = de();
|
|
401
|
-
const K = de(), Gt = () => b.value,
|
|
402
|
-
ye.value =
|
|
403
|
-
}, Ut =
|
|
401
|
+
const K = de(), Gt = () => b.value, ke = () => `${u == null ? void 0 : u.id}-${Xn()}`, ye = de(ke()), He = () => {
|
|
402
|
+
ye.value = ke();
|
|
403
|
+
}, Ut = De({
|
|
404
404
|
get: () => {
|
|
405
|
-
if (
|
|
405
|
+
if (Ne(R.value)) {
|
|
406
406
|
var e = Number(R.value);
|
|
407
407
|
return isNaN(e) ? void 0 : (R.value = e, e);
|
|
408
408
|
}
|
|
@@ -411,9 +411,9 @@ function vo(t) {
|
|
|
411
411
|
set: (e) => {
|
|
412
412
|
R.value = e;
|
|
413
413
|
}
|
|
414
|
-
}), Jt =
|
|
414
|
+
}), Jt = De({
|
|
415
415
|
get: () => {
|
|
416
|
-
if (
|
|
416
|
+
if (Ne(R.value)) {
|
|
417
417
|
var e = lt(R.value);
|
|
418
418
|
In(e) && (R.value = e);
|
|
419
419
|
}
|
|
@@ -429,11 +429,11 @@ function vo(t) {
|
|
|
429
429
|
n == null || n(e);
|
|
430
430
|
return;
|
|
431
431
|
}
|
|
432
|
-
|
|
432
|
+
je(e);
|
|
433
433
|
}, be = (e) => {
|
|
434
434
|
var n, c, m;
|
|
435
435
|
return (m = (c = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.getCheckedItems) == null ? void 0 : m.call(c, e);
|
|
436
|
-
},
|
|
436
|
+
}, Ke = (e) => {
|
|
437
437
|
var n, c, m;
|
|
438
438
|
return (m = (c = (n = d.getWidgetRef(b.value)) == null ? void 0 : n.exposed) == null ? void 0 : c.getCheckedLabels) == null ? void 0 : m.call(c, e);
|
|
439
439
|
}, Qt = (e) => {
|
|
@@ -444,12 +444,12 @@ function vo(t) {
|
|
|
444
444
|
if (!$t())
|
|
445
445
|
return;
|
|
446
446
|
const e = (E = Ce.value) == null ? void 0 : E.withAttachData;
|
|
447
|
-
if (!
|
|
447
|
+
if (!Pe(u) || e === !1)
|
|
448
448
|
return;
|
|
449
|
-
const n = R.value, c =
|
|
449
|
+
const n = R.value, c = Ke(n), m = Qt(n);
|
|
450
450
|
var y = Y(be(n));
|
|
451
|
-
|
|
452
|
-
},
|
|
451
|
+
qe(c, y, m);
|
|
452
|
+
}, qe = (e, n, c) => {
|
|
453
453
|
var m = {};
|
|
454
454
|
if (e != null) {
|
|
455
455
|
let y = oe("textName", !1);
|
|
@@ -469,34 +469,34 @@ function vo(t) {
|
|
|
469
469
|
E && m[E] === void 0 && (m[E] = c);
|
|
470
470
|
});
|
|
471
471
|
}
|
|
472
|
-
|
|
473
|
-
},
|
|
472
|
+
Ge(Y(m));
|
|
473
|
+
}, J = (e) => {
|
|
474
474
|
if (z(u)) {
|
|
475
475
|
var n = { [b.value]: e };
|
|
476
|
-
|
|
476
|
+
Ge(n);
|
|
477
477
|
}
|
|
478
|
-
},
|
|
478
|
+
}, Ge = (e) => {
|
|
479
479
|
ve(C, e);
|
|
480
480
|
}, re = (e) => {
|
|
481
|
-
a ||
|
|
482
|
-
},
|
|
481
|
+
a || J(e);
|
|
482
|
+
}, Ue = (e) => oe(e, !1), Je = () => {
|
|
483
483
|
var e = Nn(C);
|
|
484
484
|
R = gt.get(e, b.value);
|
|
485
|
-
},
|
|
485
|
+
}, ze = (e) => {
|
|
486
486
|
Ee = Y(e);
|
|
487
487
|
}, Xt = () => {
|
|
488
|
-
a || N && N(
|
|
488
|
+
a || N && N(q());
|
|
489
489
|
}, Yt = () => {
|
|
490
490
|
ie() && ge(ce()).then((e) => {
|
|
491
|
-
|
|
491
|
+
J(e), Je();
|
|
492
492
|
});
|
|
493
493
|
}, Re = (e, n) => {
|
|
494
494
|
if (!z(u))
|
|
495
495
|
return;
|
|
496
496
|
ee(j.fieldValueChanged, { newValue: e, oldValue: n });
|
|
497
497
|
const c = { fieldId: u.id, fieldName: b.value, newValue: e, oldValue: n };
|
|
498
|
-
|
|
499
|
-
}, Zt = (e) => Vt(e), xe = (e, n) =>
|
|
498
|
+
U(T, j.fieldChange, c, o);
|
|
499
|
+
}, Zt = (e) => Vt(e), xe = (e, n) => Te(ue(e), n), wt = (e) => {
|
|
500
500
|
re(e), Xe(), xe(j.onInput, { value: e });
|
|
501
501
|
}, en = (e, n) => {
|
|
502
502
|
var c, m, y;
|
|
@@ -506,7 +506,7 @@ function vo(t) {
|
|
|
506
506
|
let c = ((y = e == null ? void 0 : e[0]) == null ? void 0 : y.target) != null ? (I = (E = e == null ? void 0 : e[0]) == null ? void 0 : E.target) == null ? void 0 : I.value : e == null ? void 0 : e[0];
|
|
507
507
|
c = Y(c);
|
|
508
508
|
var m = en(c, Ee);
|
|
509
|
-
m != null ? re(m) : re(c), Re(c, Ee), Xe(),
|
|
509
|
+
m != null ? re(m) : re(c), Re(c, Ee), Xe(), ze(c);
|
|
510
510
|
}, nn = (e = !0) => {
|
|
511
511
|
ne($.readonly, e);
|
|
512
512
|
}, on = (e = !0) => {
|
|
@@ -517,20 +517,20 @@ function vo(t) {
|
|
|
517
517
|
jt($.required, e), me();
|
|
518
518
|
}, an = (e) => {
|
|
519
519
|
ne($.label, e);
|
|
520
|
-
},
|
|
520
|
+
}, q = () => R == null ? void 0 : R.value, Me = (e) => {
|
|
521
521
|
R.value = e;
|
|
522
522
|
}, le = (e) => {
|
|
523
|
-
let n = Y(
|
|
524
|
-
if (
|
|
523
|
+
let n = Y(q());
|
|
524
|
+
if (Me(e), !z(u))
|
|
525
525
|
return;
|
|
526
|
-
const c =
|
|
526
|
+
const c = q();
|
|
527
527
|
n !== c && (re(c), Re(e, n));
|
|
528
528
|
}, un = () => {
|
|
529
529
|
ie() ? ge(ce()).then((e) => {
|
|
530
|
-
|
|
531
|
-
}) :
|
|
530
|
+
J(e);
|
|
531
|
+
}) : J(null), M == null || M();
|
|
532
532
|
}, cn = (e) => {
|
|
533
|
-
const n =
|
|
533
|
+
const n = q(), c = te.insertOnMousePos(K.value, e, n);
|
|
534
534
|
le(c);
|
|
535
535
|
}, fn = (e, n) => {
|
|
536
536
|
Z(() => R == null ? void 0 : R.value, (c, m) => {
|
|
@@ -541,7 +541,7 @@ function vo(t) {
|
|
|
541
541
|
e.preventDefault();
|
|
542
542
|
const n = (I) => {
|
|
543
543
|
var H;
|
|
544
|
-
const L = (H = Array.from(I.classList)) == null ? void 0 : H.find((
|
|
544
|
+
const L = (H = Array.from(I.classList)) == null ? void 0 : H.find((_e) => Ct(_e));
|
|
545
545
|
return L ? Et(L) : "";
|
|
546
546
|
}, c = document.activeElement;
|
|
547
547
|
if (!c)
|
|
@@ -551,13 +551,13 @@ function vo(t) {
|
|
|
551
551
|
const I = m[y], L = pt(c, ot.formItemTarget);
|
|
552
552
|
if (!L)
|
|
553
553
|
continue;
|
|
554
|
-
const H = n(I),
|
|
555
|
-
if (H ===
|
|
554
|
+
const H = n(I), _e = n(L);
|
|
555
|
+
if (H === _e) {
|
|
556
556
|
if (y === m.length - 1)
|
|
557
557
|
return;
|
|
558
|
-
const yn = m[y + 1], bn = n(yn),
|
|
558
|
+
const yn = m[y + 1], bn = n(yn), Se = d.findRefById(bn, o);
|
|
559
559
|
try {
|
|
560
|
-
(E =
|
|
560
|
+
(E = Se == null ? void 0 : Se.exposed) == null || E.focus();
|
|
561
561
|
} catch (Rn) {
|
|
562
562
|
se.error("handleEnter", Rn);
|
|
563
563
|
}
|
|
@@ -577,15 +577,15 @@ function vo(t) {
|
|
|
577
577
|
},
|
|
578
578
|
getField: v,
|
|
579
579
|
getFormData: l,
|
|
580
|
-
getValue:
|
|
581
|
-
setValue:
|
|
580
|
+
getValue: q,
|
|
581
|
+
setValue: Me,
|
|
582
582
|
emit$: ee,
|
|
583
583
|
findRefByName: d.getWidgetRef,
|
|
584
584
|
findRefById: d.findRefById,
|
|
585
585
|
callRefFunc: d.callRefFunc,
|
|
586
586
|
getWidgetOption: ue,
|
|
587
587
|
setWidgetOption: ne,
|
|
588
|
-
refreshKey:
|
|
588
|
+
refreshKey: He,
|
|
589
589
|
getRowScope: r,
|
|
590
590
|
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
591
591
|
getOneSchemaData: yt,
|
|
@@ -595,7 +595,7 @@ function vo(t) {
|
|
|
595
595
|
removeCssClass: qt
|
|
596
596
|
}, n = {
|
|
597
597
|
resetField: un,
|
|
598
|
-
getValue:
|
|
598
|
+
getValue: q,
|
|
599
599
|
setValue: le,
|
|
600
600
|
refreshDefaultValue: Yt,
|
|
601
601
|
insertOnMousePos: cn,
|
|
@@ -616,7 +616,7 @@ function vo(t) {
|
|
|
616
616
|
}, c = {
|
|
617
617
|
loadOptionItems: zt,
|
|
618
618
|
getCheckedItems: be,
|
|
619
|
-
getCheckedLabels:
|
|
619
|
+
getCheckedLabels: Ke
|
|
620
620
|
}, m = {
|
|
621
621
|
[$.required]: { name: A.setRequired, fn: sn },
|
|
622
622
|
[$.label]: { name: A.setLabel, fn: an },
|
|
@@ -625,19 +625,19 @@ function vo(t) {
|
|
|
625
625
|
[$.readonly]: { name: A.setReadonly, fn: nn }
|
|
626
626
|
}, y = {};
|
|
627
627
|
(I = X(m)) == null || I.forEach((L) => {
|
|
628
|
-
if (
|
|
628
|
+
if (We(u, L)) {
|
|
629
629
|
const H = m[L];
|
|
630
630
|
y[H.name] = H.fn;
|
|
631
631
|
}
|
|
632
632
|
});
|
|
633
633
|
var E = ve(e, y);
|
|
634
|
-
return z(u) && (E = ve(E, n)),
|
|
634
|
+
return z(u) && (E = ve(E, n)), Pe(u) && (E = ve(E, c)), E;
|
|
635
635
|
};
|
|
636
|
-
const dn =
|
|
637
|
-
attrs:
|
|
636
|
+
const dn = De(() => ({
|
|
637
|
+
attrs: Ie.value,
|
|
638
638
|
extendAttrs: Ce.value,
|
|
639
639
|
events: k.value,
|
|
640
|
-
slots:
|
|
640
|
+
slots: Le.value,
|
|
641
641
|
fieldKey: ye.value,
|
|
642
642
|
fieldEditor: K.value,
|
|
643
643
|
fieldName: b.value
|
|
@@ -652,7 +652,7 @@ function vo(t) {
|
|
|
652
652
|
deep: !0
|
|
653
653
|
});
|
|
654
654
|
}, gn = (e, n, c) => {
|
|
655
|
-
const m = de(), y =
|
|
655
|
+
const m = de(), y = Ue(e), E = (I) => {
|
|
656
656
|
n && (m.value = n(I || y));
|
|
657
657
|
};
|
|
658
658
|
return ct(y) ? Z(y, (I) => {
|
|
@@ -660,16 +660,16 @@ function vo(t) {
|
|
|
660
660
|
}) : E(y), m;
|
|
661
661
|
}, Qe = () => {
|
|
662
662
|
!z(u) || a || fn((e) => {
|
|
663
|
-
wn(h, u == null ? void 0 : u.id, P), eo(h, u == null ? void 0 : u.id,
|
|
663
|
+
wn(h, u == null ? void 0 : u.id, P), eo(h, u == null ? void 0 : u.id, G.getOptions(u, $.relate), e), fe(), setTimeout(() => {
|
|
664
664
|
fe();
|
|
665
665
|
}, 1e3);
|
|
666
666
|
}, { immediate: !0 });
|
|
667
667
|
}, Xe = () => {
|
|
668
668
|
const e = { propName: b.value };
|
|
669
|
-
|
|
669
|
+
U(T, j.fieldValidation, e, o);
|
|
670
670
|
}, Ye = () => {
|
|
671
|
-
const e = { fieldId: u.id, fieldName: b.value, rules:
|
|
672
|
-
|
|
671
|
+
const e = { fieldId: u.id, fieldName: b.value, rules: $e };
|
|
672
|
+
U(T, j.fieldRuleChange, e, o);
|
|
673
673
|
}, me = () => {
|
|
674
674
|
if (!z(u))
|
|
675
675
|
return;
|
|
@@ -678,24 +678,24 @@ function vo(t) {
|
|
|
678
678
|
}, Ze = () => {
|
|
679
679
|
_t(), Ye();
|
|
680
680
|
}, hn = () => {
|
|
681
|
-
|
|
681
|
+
We(u, "change") && (k.value.change = tn), We(u, "input") && (k.value.input = wt), B(Kn.setFormData, (e) => {
|
|
682
682
|
le(e[b.value]);
|
|
683
683
|
}), B(j.fieldValueChanged, (e) => {
|
|
684
684
|
xe(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
685
685
|
});
|
|
686
686
|
}, pn = () => {
|
|
687
687
|
let e = b.value;
|
|
688
|
-
z(u) ? ((!Ln(C, e) || C[e] === void 0) && (
|
|
689
|
-
n == null ?
|
|
690
|
-
})),
|
|
688
|
+
z(u) ? ((!Ln(C, e) || C[e] === void 0) && (J(null), ie() && ge(ce()).then((n) => {
|
|
689
|
+
n == null ? J(null) : J(n);
|
|
690
|
+
})), Je()) : ie() && ge(ce()).then((n) => {
|
|
691
691
|
le(n);
|
|
692
|
-
}),
|
|
692
|
+
}), ze(q()), Xt();
|
|
693
693
|
}, we = () => {
|
|
694
|
-
|
|
694
|
+
Pe(u) && Z(() => ae == null ? void 0 : ae.value, (e, n) => {
|
|
695
695
|
fe();
|
|
696
696
|
}, { immediate: !0 });
|
|
697
697
|
}, On = () => {
|
|
698
|
-
|
|
698
|
+
Ae(!0, $.css, void 0, (e) => {
|
|
699
699
|
et();
|
|
700
700
|
});
|
|
701
701
|
}, Vn = () => {
|
|
@@ -742,12 +742,14 @@ function vo(t) {
|
|
|
742
742
|
fieldKey: ye,
|
|
743
743
|
field: u,
|
|
744
744
|
instance: o,
|
|
745
|
-
attrs:
|
|
745
|
+
attrs: Ie,
|
|
746
746
|
extendAttrs: Ce,
|
|
747
|
-
slots:
|
|
747
|
+
slots: Le,
|
|
748
748
|
events: k,
|
|
749
|
-
rules:
|
|
749
|
+
rules: $e,
|
|
750
750
|
fieldObj: dn,
|
|
751
|
+
getValue: q,
|
|
752
|
+
setValue: Me,
|
|
751
753
|
pageConfig: F,
|
|
752
754
|
formModel: C,
|
|
753
755
|
fieldName: b,
|
|
@@ -758,13 +760,13 @@ function vo(t) {
|
|
|
758
760
|
activeOptionItemIndex: Lt,
|
|
759
761
|
refreshOptionField: fe,
|
|
760
762
|
filterOptionItems: Wt,
|
|
761
|
-
setOptionItems:
|
|
763
|
+
setOptionItems: je,
|
|
762
764
|
getCheckedItems: be,
|
|
763
765
|
getCheckedOptionItems: (e, n) => Ft(e || R.value, n),
|
|
764
766
|
getCheckedOptionLabels: (e, n) => Tt(e || R.value, n),
|
|
765
767
|
getCheckedOptionValues: (e, n) => Nt(e || R.value, n),
|
|
766
768
|
getCheckedOptionText: (e, n) => Pt(e || R.value, n),
|
|
767
|
-
refreshKey:
|
|
769
|
+
refreshKey: He,
|
|
768
770
|
watchKeyValue: gn,
|
|
769
771
|
watchPropAndSaveHistoryStep: vn,
|
|
770
772
|
existEvent: Zt,
|
|
@@ -776,18 +778,18 @@ function vo(t) {
|
|
|
776
778
|
getWidgetRef: d.getWidgetRef,
|
|
777
779
|
clearRules: Ze,
|
|
778
780
|
buildRules: me,
|
|
779
|
-
getFieldOptionModel:
|
|
781
|
+
getFieldOptionModel: Ue,
|
|
780
782
|
getFieldOptions: oe,
|
|
781
783
|
hasFieldOptions: At,
|
|
782
784
|
setFieldOptions: kt,
|
|
783
785
|
getWidgetOption: ue,
|
|
784
786
|
singleOption: Ht,
|
|
785
|
-
watchOption:
|
|
786
|
-
mergeOptionToFormModel:
|
|
787
|
+
watchOption: Ae,
|
|
788
|
+
mergeOptionToFormModel: qe
|
|
787
789
|
};
|
|
788
790
|
}
|
|
789
791
|
export {
|
|
790
|
-
|
|
792
|
+
Be as R,
|
|
791
793
|
Ve as a,
|
|
792
794
|
vo as b,
|
|
793
795
|
Zn as u
|