hlrender 0.0.136 → 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-3e3edebc.js +47 -0
- package/_txt-4e2ecc06.js +60 -0
- package/{affix-widget-37a07e00.js → affix-widget-b0bd1a26.js} +3 -3
- package/{alert-widget-8fe947b1.js → alert-widget-e54cb7f4.js} +3 -3
- package/{anchor-widget-58cf155c.js → anchor-widget-5f091d11.js} +1 -1
- package/{auto-complete-widget-5bf525b0.js → auto-complete-widget-57f8c0e7.js} +2 -2
- package/{avatar-widget-1a9f4ce1.js → avatar-widget-c288d63d.js} +3 -3
- package/{backtop-widget-04483047.js → backtop-widget-3d54226e.js} +3 -3
- package/{badge-widget-5c1c43fc.js → badge-widget-8acb0c82.js} +3 -3
- package/{breadcrumb-widget-83eb3f7a.js → breadcrumb-widget-c6755d6b.js} +1 -1
- package/{button-widget-1cb7a4e9.js → button-widget-b05e4690.js} +3 -3
- package/{cache-widget-da03c62b.js → cache-widget-7077a030.js} +1 -1
- package/{card-widget-4b745db5.js → card-widget-fb553cda.js} +2 -2
- package/{carousel-widget-b6a75009.js → carousel-widget-fe11a287.js} +1 -1
- package/{cascader-widget-1f58e855.js → cascader-widget-5a886d49.js} +1 -1
- package/{chart-widget-b9aba393.js → chart-widget-0aa7ea40.js} +1 -1
- package/{checkbox-widget-77f10a9b.js → checkbox-widget-84c09d07.js} +1 -1
- package/{collapse-widget-9cbf2ab7.js → collapse-widget-c087b2df.js} +1 -1
- package/{color-picker-widget-129f2eaf.js → color-picker-widget-8d4b012d.js} +1 -1
- package/{cont-cell-widget-1cbf5153.js → cont-cell-widget-1f5af847.js} +1 -1
- package/{cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-33d60ca0.js → cont-cell-widget.vue_vue_type_script_setup_true_name_cont-cell-widget_lang-9d79d3d3.js} +2 -2
- package/{cont-widget-183b9997.js → cont-widget-a87b7d7c.js} +2 -2
- package/{date-picker-range-widget-b1459881.js → date-picker-range-widget-0e1bf5e9.js} +1 -1
- package/{date-picker-widget-005bc493.js → date-picker-widget-45e11211.js} +1 -1
- package/{default-slot-widget-b0005ee5.js → default-slot-widget-a4037130.js} +2 -2
- package/{default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-41e7b0ae.js → default-slot-widget.vue_vue_type_script_setup_true_name_default-slot-widget_lang-8cc5dc14.js} +1 -1
- package/{descriptions-widget-164add72.js → descriptions-widget-5dda5522.js} +2 -2
- package/{dialog-widget-b298379f.js → dialog-widget-45f2a6a8.js} +3 -3
- package/{divider-widget-bbdfe6c1.js → divider-widget-74895eb7.js} +3 -3
- package/{drag-wrapper-74f4b57f.js → drag-wrapper-f6aa00f6.js} +19 -19
- package/{drawer-widget-d1d59f17.js → drawer-widget-f8f175ab.js} +3 -3
- package/{dropdown-widget-df329997.js → dropdown-widget-c3781e0a.js} +2 -2
- package/{empty-widget-e83581d9.js → empty-widget-4a854aa4.js} +3 -3
- package/{feedback-widget-23a30899.js → feedback-widget-fc966cfd.js} +3 -3
- package/{feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-f6842c0e.js → feedback-widget.vue_vue_type_script_setup_true_name_feedback-widget_lang-060df774.js} +2 -2
- package/file-upload-widget-4acfb0c0.js +352 -0
- package/{form-widget-1a943e76.js → form-widget-4a8adbeb.js} +2 -2
- package/{grid-col-widget-b81a2c7b.js → grid-col-widget-d2ab53a1.js} +1 -1
- package/{grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-ca464ba0.js → grid-col-widget.vue_vue_type_script_setup_true_name_grid-col-widget_lang-76ff5dfa.js} +2 -2
- package/{grid-widget-198a7108.js → grid-widget-b4864397.js} +2 -2
- package/{html-text-widget-a8a5b417.js → html-text-widget-e409615c.js} +1 -1
- package/{icon-widget-b9a59840.js → icon-widget-198c97a3.js} +1 -1
- package/{iframe-widget-17860440.js → iframe-widget-88ef0855.js} +1 -1
- package/{image-widget-451bf7f8.js → image-widget-b4e6fc06.js} +1 -1
- package/{input-number-widget-69c6af4c.js → input-number-widget-3f018315.js} +1 -1
- package/{input-widget-d2a7907d.js → input-widget-33d18b8b.js} +2 -2
- package/{link-widget-62d78e94.js → link-widget-5bd3d4b3.js} +3 -3
- package/{ltable-col-widget-64164744.js → ltable-col-widget-e4a78a11.js} +1 -1
- package/{ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-34ed414d.js → ltable-col-widget.vue_vue_type_script_setup_true_name_ltable-col-widget_lang-7f1adfe3.js} +2 -2
- package/{ltable-widget-9088fb7f.js → ltable-widget-5b59d003.js} +2 -2
- package/{menu-widget-40fd16d6.js → menu-widget-38506dc7.js} +1 -1
- package/{model-widget-33fae8dd.js → model-widget-7f740f10.js} +1 -1
- package/{multirow-widget-5ed8f573.js → multirow-widget-7fb52aeb.js} +2 -2
- package/package.json +1 -1
- package/{pagination-widget-cf6dd900.js → pagination-widget-93b4ff18.js} +1 -1
- package/picture-upload-widget-2b281639.js +172 -0
- package/{progress-widget-c7006307.js → progress-widget-69257fe5.js} +2 -2
- package/{radio-widget-a7f7359b.js → radio-widget-3419a061.js} +1 -1
- package/{range-widget-25b31a35.js → range-widget-bc9eb3bc.js} +2 -2
- package/{rate-widget-1b9c9662.js → rate-widget-51ea66b0.js} +1 -1
- package/render.es.js +16 -16
- package/render.style.css +1 -1
- package/render.umd.js +285 -284
- package/{result-widget-f8048c93.js → result-widget-48bbee71.js} +2 -2
- package/{rich-editor-widget-9162cc06.js → rich-editor-widget-f6a707d6.js} +1 -1
- package/{router-widget-4fd7ce8c.js → router-widget-9d95900e.js} +1 -1
- package/{select-widget-a0e827fd.js → select-widget-9f5875de.js} +1 -1
- package/{share-field-4fbdc88f.js → share-field-70e53805.js} +104 -101
- package/share-file-81d7679e.js +237 -0
- package/{slider-widget-091f83cc.js → slider-widget-c1e7cf1b.js} +1 -1
- package/{static-text-widget-3816d15b.js → static-text-widget-c498c4f8.js} +1 -1
- package/{steps-widget-6a8210e4.js → steps-widget-0794d0f5.js} +1 -1
- package/{switch-widget-d0e20872.js → switch-widget-658399b0.js} +1 -1
- package/{tab-pane-widget-ac9366dc.js → tab-pane-widget-6bb27163.js} +1 -1
- package/{tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-c37ad11f.js → tab-pane-widget.vue_vue_type_script_setup_true_name_tab-pane-widget_lang-bf376251.js} +2 -2
- package/{table-col-widget-c26583f7.js → table-col-widget-c6667f25.js} +2 -2
- package/{table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-9c9c6e07.js → table-col-widget.vue_vue_type_script_setup_true_name_table-col-widget_lang-d683bcb7.js} +1 -1
- package/{table-widget-4e4ab1c5.js → table-widget-81bb288f.js} +3 -3
- package/{tabs-widget-c7725122.js → tabs-widget-7359728f.js} +2 -2
- package/{tag-widget-5e700f23.js → tag-widget-eb60301a.js} +3 -3
- package/{text-widget-00ab10a4.js → text-widget-3de85e13.js} +3 -3
- package/{textarea-widget-63cd69f9.js → textarea-widget-beafa36f.js} +1 -1
- package/{time-picker-range-widget-69776300.js → time-picker-range-widget-c889d4c1.js} +1 -1
- package/{time-picker-widget-13b956d7.js → time-picker-widget-11438a8b.js} +1 -1
- package/{time-select-widget-d33463ec.js → time-select-widget-53ecd39a.js} +1 -1
- package/{tmpl-widget-6c3cbf74.js → tmpl-widget-5036dded.js} +2 -2
- package/{tree-select-widget-87fcea0b.js → tree-select-widget-fcf77445.js} +1 -1
- package/{tree-widget-c0fff9cc.js → tree-widget-8b15bfd7.js} +1 -1
- package/{wrapper-widget-969259a6.js → wrapper-widget-b8e27139.js} +2 -2
- package/_pdf-14593069.js +0 -58
- package/_txt-6126b3b3.js +0 -70
- package/file-upload-widget-07573747.js +0 -400
- package/picture-upload-widget-af4a46e6.js +0 -165
- package/share-file-557fbed9.js +0 -171
|
@@ -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,15 +1,15 @@
|
|
|
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
|
-
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
|
|
9
|
-
import { b as vt, d as
|
|
10
|
-
import { F as
|
|
11
|
-
import { f as Jn, d as zn, h as
|
|
12
|
-
import { W as A, c as
|
|
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 Te, B as G, P as gt, c as ht, e as Gn, a as rt } from "./baseImp-1b9355d2.js";
|
|
10
|
+
import { F as Un } from "./slot-afdbaf6a.js";
|
|
11
|
+
import { f as Jn, d as zn, h as We, e as Qn } from "./index-f6240372.js";
|
|
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() {
|
|
15
15
|
return {
|
|
@@ -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
|
});
|
|
@@ -240,20 +240,20 @@ const wn = (t, a, p, M) => {
|
|
|
240
240
|
}), l;
|
|
241
241
|
}, C = (o, l, r) => {
|
|
242
242
|
if (r === he.Inner2Inner) {
|
|
243
|
-
const i = Fn(l), { updateFomula: _ } = ht(), { buildVariable: P } =
|
|
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) => {
|
|
@@ -359,15 +359,16 @@ const st = (t) => {
|
|
|
359
359
|
var p;
|
|
360
360
|
const { getFormulaFields: a } = ht();
|
|
361
361
|
return ((p = a(Oe(t))) == null ? void 0 : p.length) > 0;
|
|
362
|
-
},
|
|
362
|
+
}, z = (t) => {
|
|
363
363
|
const a = t.type;
|
|
364
|
-
|
|
365
|
-
|
|
364
|
+
//![WidgetType.fileUpload, WidgetType.pictureUpload].includes(wtype) &&
|
|
365
|
+
return t.formItemFlag || [Q.form, Q.dialog].includes(a);
|
|
366
|
+
}, Pe = (t) => {
|
|
366
367
|
const a = t.type;
|
|
367
|
-
return [
|
|
368
|
+
return [Q.treeSelect, Q.cascader, Q.select, Q.checkbox, Q.radio].includes(a);
|
|
368
369
|
};
|
|
369
370
|
function vo(t) {
|
|
370
|
-
const a = t == null ? void 0 : t.designState, p = (t == null ? void 0 : t.created) != !1, M = t == null ? void 0 : t.exResetField, N = t == null ? void 0 : t.extInitFieldModel, D = t == null ? void 0 : t.exposedWholeInstance, u = t == null ? void 0 : t.widget, W = t == null ? void 0 : t.designer, F = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: T, globalDataModel: g, rowScope: V } =
|
|
371
|
+
const a = t == null ? void 0 : t.designState, p = (t == null ? void 0 : t.created) != !1, M = t == null ? void 0 : t.exResetField, N = t == null ? void 0 : t.extInitFieldModel, D = t == null ? void 0 : t.exposedWholeInstance, u = t == null ? void 0 : t.widget, W = t == null ? void 0 : t.designer, F = W == null ? void 0 : W.pageConfig, { formRefList: O, globalRefList: h, globalConfig: x, globalFormName: T, globalDataModel: g, rowScope: V } = Un.globalInject();
|
|
371
372
|
let C = Dn(g || {});
|
|
372
373
|
const d = Ve(h), S = Ve(O), { instance: o } = dt(), l = () => Y(C), r = () => V, v = () => u, f = {
|
|
373
374
|
designState: a,
|
|
@@ -395,13 +396,13 @@ function vo(t) {
|
|
|
395
396
|
}, P = {
|
|
396
397
|
instance: D ? o : _,
|
|
397
398
|
...f
|
|
398
|
-
}, { 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);
|
|
399
400
|
let Ee = null, R = de();
|
|
400
|
-
const K = de(),
|
|
401
|
-
ye.value =
|
|
402
|
-
},
|
|
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({
|
|
403
404
|
get: () => {
|
|
404
|
-
if (
|
|
405
|
+
if (Ne(R.value)) {
|
|
405
406
|
var e = Number(R.value);
|
|
406
407
|
return isNaN(e) ? void 0 : (R.value = e, e);
|
|
407
408
|
}
|
|
@@ -410,9 +411,9 @@ function vo(t) {
|
|
|
410
411
|
set: (e) => {
|
|
411
412
|
R.value = e;
|
|
412
413
|
}
|
|
413
|
-
}), Jt =
|
|
414
|
+
}), Jt = De({
|
|
414
415
|
get: () => {
|
|
415
|
-
if (
|
|
416
|
+
if (Ne(R.value)) {
|
|
416
417
|
var e = lt(R.value);
|
|
417
418
|
In(e) && (R.value = e);
|
|
418
419
|
}
|
|
@@ -428,11 +429,11 @@ function vo(t) {
|
|
|
428
429
|
n == null || n(e);
|
|
429
430
|
return;
|
|
430
431
|
}
|
|
431
|
-
|
|
432
|
+
je(e);
|
|
432
433
|
}, be = (e) => {
|
|
433
434
|
var n, c, m;
|
|
434
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);
|
|
435
|
-
},
|
|
436
|
+
}, Ke = (e) => {
|
|
436
437
|
var n, c, m;
|
|
437
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);
|
|
438
439
|
}, Qt = (e) => {
|
|
@@ -443,12 +444,12 @@ function vo(t) {
|
|
|
443
444
|
if (!$t())
|
|
444
445
|
return;
|
|
445
446
|
const e = (E = Ce.value) == null ? void 0 : E.withAttachData;
|
|
446
|
-
if (!
|
|
447
|
+
if (!Pe(u) || e === !1)
|
|
447
448
|
return;
|
|
448
|
-
const n = R.value, c =
|
|
449
|
+
const n = R.value, c = Ke(n), m = Qt(n);
|
|
449
450
|
var y = Y(be(n));
|
|
450
|
-
|
|
451
|
-
},
|
|
451
|
+
qe(c, y, m);
|
|
452
|
+
}, qe = (e, n, c) => {
|
|
452
453
|
var m = {};
|
|
453
454
|
if (e != null) {
|
|
454
455
|
let y = oe("textName", !1);
|
|
@@ -468,34 +469,34 @@ function vo(t) {
|
|
|
468
469
|
E && m[E] === void 0 && (m[E] = c);
|
|
469
470
|
});
|
|
470
471
|
}
|
|
471
|
-
|
|
472
|
+
Ge(Y(m));
|
|
472
473
|
}, J = (e) => {
|
|
473
|
-
if (
|
|
474
|
+
if (z(u)) {
|
|
474
475
|
var n = { [b.value]: e };
|
|
475
|
-
|
|
476
|
+
Ge(n);
|
|
476
477
|
}
|
|
477
|
-
},
|
|
478
|
+
}, Ge = (e) => {
|
|
478
479
|
ve(C, e);
|
|
479
480
|
}, re = (e) => {
|
|
480
481
|
a || J(e);
|
|
481
|
-
},
|
|
482
|
+
}, Ue = (e) => oe(e, !1), Je = () => {
|
|
482
483
|
var e = Nn(C);
|
|
483
484
|
R = gt.get(e, b.value);
|
|
484
|
-
},
|
|
485
|
+
}, ze = (e) => {
|
|
485
486
|
Ee = Y(e);
|
|
486
487
|
}, Xt = () => {
|
|
487
|
-
a || N && N(
|
|
488
|
+
a || N && N(q());
|
|
488
489
|
}, Yt = () => {
|
|
489
490
|
ie() && ge(ce()).then((e) => {
|
|
490
|
-
J(e),
|
|
491
|
+
J(e), Je();
|
|
491
492
|
});
|
|
492
493
|
}, Re = (e, n) => {
|
|
493
|
-
if (!
|
|
494
|
+
if (!z(u))
|
|
494
495
|
return;
|
|
495
496
|
ee(j.fieldValueChanged, { newValue: e, oldValue: n });
|
|
496
497
|
const c = { fieldId: u.id, fieldName: b.value, newValue: e, oldValue: n };
|
|
497
|
-
|
|
498
|
-
}, 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) => {
|
|
499
500
|
re(e), Xe(), xe(j.onInput, { value: e });
|
|
500
501
|
}, en = (e, n) => {
|
|
501
502
|
var c, m, y;
|
|
@@ -505,7 +506,7 @@ function vo(t) {
|
|
|
505
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];
|
|
506
507
|
c = Y(c);
|
|
507
508
|
var m = en(c, Ee);
|
|
508
|
-
m != null ? re(m) : re(c), Re(c, Ee), Xe(),
|
|
509
|
+
m != null ? re(m) : re(c), Re(c, Ee), Xe(), ze(c);
|
|
509
510
|
}, nn = (e = !0) => {
|
|
510
511
|
ne($.readonly, e);
|
|
511
512
|
}, on = (e = !0) => {
|
|
@@ -516,20 +517,20 @@ function vo(t) {
|
|
|
516
517
|
jt($.required, e), me();
|
|
517
518
|
}, an = (e) => {
|
|
518
519
|
ne($.label, e);
|
|
519
|
-
},
|
|
520
|
+
}, q = () => R == null ? void 0 : R.value, Me = (e) => {
|
|
520
521
|
R.value = e;
|
|
521
522
|
}, le = (e) => {
|
|
522
|
-
let n = Y(
|
|
523
|
-
if (
|
|
523
|
+
let n = Y(q());
|
|
524
|
+
if (Me(e), !z(u))
|
|
524
525
|
return;
|
|
525
|
-
const c =
|
|
526
|
+
const c = q();
|
|
526
527
|
n !== c && (re(c), Re(e, n));
|
|
527
528
|
}, un = () => {
|
|
528
529
|
ie() ? ge(ce()).then((e) => {
|
|
529
530
|
J(e);
|
|
530
531
|
}) : J(null), M == null || M();
|
|
531
532
|
}, cn = (e) => {
|
|
532
|
-
const n =
|
|
533
|
+
const n = q(), c = te.insertOnMousePos(K.value, e, n);
|
|
533
534
|
le(c);
|
|
534
535
|
}, fn = (e, n) => {
|
|
535
536
|
Z(() => R == null ? void 0 : R.value, (c, m) => {
|
|
@@ -540,7 +541,7 @@ function vo(t) {
|
|
|
540
541
|
e.preventDefault();
|
|
541
542
|
const n = (I) => {
|
|
542
543
|
var H;
|
|
543
|
-
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));
|
|
544
545
|
return L ? Et(L) : "";
|
|
545
546
|
}, c = document.activeElement;
|
|
546
547
|
if (!c)
|
|
@@ -550,13 +551,13 @@ function vo(t) {
|
|
|
550
551
|
const I = m[y], L = pt(c, ot.formItemTarget);
|
|
551
552
|
if (!L)
|
|
552
553
|
continue;
|
|
553
|
-
const H = n(I),
|
|
554
|
-
if (H ===
|
|
554
|
+
const H = n(I), _e = n(L);
|
|
555
|
+
if (H === _e) {
|
|
555
556
|
if (y === m.length - 1)
|
|
556
557
|
return;
|
|
557
|
-
const yn = m[y + 1], bn = n(yn),
|
|
558
|
+
const yn = m[y + 1], bn = n(yn), Se = d.findRefById(bn, o);
|
|
558
559
|
try {
|
|
559
|
-
(E =
|
|
560
|
+
(E = Se == null ? void 0 : Se.exposed) == null || E.focus();
|
|
560
561
|
} catch (Rn) {
|
|
561
562
|
se.error("handleEnter", Rn);
|
|
562
563
|
}
|
|
@@ -576,25 +577,25 @@ function vo(t) {
|
|
|
576
577
|
},
|
|
577
578
|
getField: v,
|
|
578
579
|
getFormData: l,
|
|
579
|
-
getValue:
|
|
580
|
-
setValue:
|
|
580
|
+
getValue: q,
|
|
581
|
+
setValue: Me,
|
|
581
582
|
emit$: ee,
|
|
582
583
|
findRefByName: d.getWidgetRef,
|
|
583
584
|
findRefById: d.findRefById,
|
|
584
585
|
callRefFunc: d.callRefFunc,
|
|
585
586
|
getWidgetOption: ue,
|
|
586
587
|
setWidgetOption: ne,
|
|
587
|
-
refreshKey:
|
|
588
|
+
refreshKey: He,
|
|
588
589
|
getRowScope: r,
|
|
589
590
|
//组件的数据绑定:继承的数据,用于计算组件属性变量
|
|
590
591
|
getOneSchemaData: yt,
|
|
591
592
|
getSchemaDatas: Rt,
|
|
592
593
|
getSchemaDataObject: bt,
|
|
593
594
|
addCssClass: Kt,
|
|
594
|
-
removeCssClass:
|
|
595
|
+
removeCssClass: qt
|
|
595
596
|
}, n = {
|
|
596
597
|
resetField: un,
|
|
597
|
-
getValue:
|
|
598
|
+
getValue: q,
|
|
598
599
|
setValue: le,
|
|
599
600
|
refreshDefaultValue: Yt,
|
|
600
601
|
insertOnMousePos: cn,
|
|
@@ -615,7 +616,7 @@ function vo(t) {
|
|
|
615
616
|
}, c = {
|
|
616
617
|
loadOptionItems: zt,
|
|
617
618
|
getCheckedItems: be,
|
|
618
|
-
getCheckedLabels:
|
|
619
|
+
getCheckedLabels: Ke
|
|
619
620
|
}, m = {
|
|
620
621
|
[$.required]: { name: A.setRequired, fn: sn },
|
|
621
622
|
[$.label]: { name: A.setLabel, fn: an },
|
|
@@ -624,19 +625,19 @@ function vo(t) {
|
|
|
624
625
|
[$.readonly]: { name: A.setReadonly, fn: nn }
|
|
625
626
|
}, y = {};
|
|
626
627
|
(I = X(m)) == null || I.forEach((L) => {
|
|
627
|
-
if (
|
|
628
|
+
if (We(u, L)) {
|
|
628
629
|
const H = m[L];
|
|
629
630
|
y[H.name] = H.fn;
|
|
630
631
|
}
|
|
631
632
|
});
|
|
632
633
|
var E = ve(e, y);
|
|
633
|
-
return
|
|
634
|
+
return z(u) && (E = ve(E, n)), Pe(u) && (E = ve(E, c)), E;
|
|
634
635
|
};
|
|
635
|
-
const dn =
|
|
636
|
-
attrs:
|
|
636
|
+
const dn = De(() => ({
|
|
637
|
+
attrs: Ie.value,
|
|
637
638
|
extendAttrs: Ce.value,
|
|
638
639
|
events: k.value,
|
|
639
|
-
slots:
|
|
640
|
+
slots: Le.value,
|
|
640
641
|
fieldKey: ye.value,
|
|
641
642
|
fieldEditor: K.value,
|
|
642
643
|
fieldName: b.value
|
|
@@ -651,54 +652,54 @@ function vo(t) {
|
|
|
651
652
|
deep: !0
|
|
652
653
|
});
|
|
653
654
|
}, gn = (e, n, c) => {
|
|
654
|
-
const m = de(), y =
|
|
655
|
+
const m = de(), y = Ue(e), E = (I) => {
|
|
655
656
|
n && (m.value = n(I || y));
|
|
656
657
|
};
|
|
657
658
|
return ct(y) ? Z(y, (I) => {
|
|
658
659
|
E(I), c && c(I);
|
|
659
660
|
}) : E(y), m;
|
|
660
661
|
}, Qe = () => {
|
|
661
|
-
!
|
|
662
|
-
wn(h, u == null ? void 0 : u.id, P), eo(h, u == null ? void 0 : u.id,
|
|
662
|
+
!z(u) || a || fn((e) => {
|
|
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(() => {
|
|
663
664
|
fe();
|
|
664
665
|
}, 1e3);
|
|
665
666
|
}, { immediate: !0 });
|
|
666
667
|
}, Xe = () => {
|
|
667
668
|
const e = { propName: b.value };
|
|
668
|
-
|
|
669
|
+
U(T, j.fieldValidation, e, o);
|
|
669
670
|
}, Ye = () => {
|
|
670
|
-
const e = { fieldId: u.id, fieldName: b.value, rules:
|
|
671
|
-
|
|
671
|
+
const e = { fieldId: u.id, fieldName: b.value, rules: $e };
|
|
672
|
+
U(T, j.fieldRuleChange, e, o);
|
|
672
673
|
}, me = () => {
|
|
673
|
-
if (!
|
|
674
|
+
if (!z(u))
|
|
674
675
|
return;
|
|
675
676
|
const e = Mt();
|
|
676
677
|
return Ye(), e;
|
|
677
678
|
}, Ze = () => {
|
|
678
679
|
_t(), Ye();
|
|
679
680
|
}, hn = () => {
|
|
680
|
-
|
|
681
|
+
We(u, "change") && (k.value.change = tn), We(u, "input") && (k.value.input = wt), B(Kn.setFormData, (e) => {
|
|
681
682
|
le(e[b.value]);
|
|
682
683
|
}), B(j.fieldValueChanged, (e) => {
|
|
683
684
|
xe(j.onChange, { value: e == null ? void 0 : e.newValue, oldValue: e == null ? void 0 : e.oldValue });
|
|
684
685
|
});
|
|
685
686
|
}, pn = () => {
|
|
686
687
|
let e = b.value;
|
|
687
|
-
|
|
688
|
+
z(u) ? ((!Ln(C, e) || C[e] === void 0) && (J(null), ie() && ge(ce()).then((n) => {
|
|
688
689
|
n == null ? J(null) : J(n);
|
|
689
|
-
})),
|
|
690
|
+
})), Je()) : ie() && ge(ce()).then((n) => {
|
|
690
691
|
le(n);
|
|
691
|
-
}),
|
|
692
|
+
}), ze(q()), Xt();
|
|
692
693
|
}, we = () => {
|
|
693
|
-
|
|
694
|
+
Pe(u) && Z(() => ae == null ? void 0 : ae.value, (e, n) => {
|
|
694
695
|
fe();
|
|
695
696
|
}, { immediate: !0 });
|
|
696
697
|
}, On = () => {
|
|
697
|
-
|
|
698
|
+
Ae(!0, $.css, void 0, (e) => {
|
|
698
699
|
et();
|
|
699
700
|
});
|
|
700
701
|
}, Vn = () => {
|
|
701
|
-
const e = Pn(
|
|
702
|
+
const e = Pn(qn.isRenderComplete);
|
|
702
703
|
if (e != null && e.value) {
|
|
703
704
|
we(), Qe();
|
|
704
705
|
return;
|
|
@@ -736,17 +737,19 @@ function vo(t) {
|
|
|
736
737
|
exposed: mn(),
|
|
737
738
|
fieldModel: R,
|
|
738
739
|
objFieldModel: Jt,
|
|
739
|
-
numFieldModel:
|
|
740
|
+
numFieldModel: Ut,
|
|
740
741
|
fieldEditor: K,
|
|
741
742
|
fieldKey: ye,
|
|
742
743
|
field: u,
|
|
743
744
|
instance: o,
|
|
744
|
-
attrs:
|
|
745
|
+
attrs: Ie,
|
|
745
746
|
extendAttrs: Ce,
|
|
746
|
-
slots:
|
|
747
|
+
slots: Le,
|
|
747
748
|
events: k,
|
|
748
|
-
rules:
|
|
749
|
+
rules: $e,
|
|
749
750
|
fieldObj: dn,
|
|
751
|
+
getValue: q,
|
|
752
|
+
setValue: Me,
|
|
750
753
|
pageConfig: F,
|
|
751
754
|
formModel: C,
|
|
752
755
|
fieldName: b,
|
|
@@ -757,36 +760,36 @@ function vo(t) {
|
|
|
757
760
|
activeOptionItemIndex: Lt,
|
|
758
761
|
refreshOptionField: fe,
|
|
759
762
|
filterOptionItems: Wt,
|
|
760
|
-
setOptionItems:
|
|
763
|
+
setOptionItems: je,
|
|
761
764
|
getCheckedItems: be,
|
|
762
765
|
getCheckedOptionItems: (e, n) => Ft(e || R.value, n),
|
|
763
766
|
getCheckedOptionLabels: (e, n) => Tt(e || R.value, n),
|
|
764
767
|
getCheckedOptionValues: (e, n) => Nt(e || R.value, n),
|
|
765
768
|
getCheckedOptionText: (e, n) => Pt(e || R.value, n),
|
|
766
|
-
refreshKey:
|
|
769
|
+
refreshKey: He,
|
|
767
770
|
watchKeyValue: gn,
|
|
768
771
|
watchPropAndSaveHistoryStep: vn,
|
|
769
772
|
existEvent: Zt,
|
|
770
773
|
handleEvent: xe,
|
|
771
774
|
handleEnter: ln,
|
|
772
|
-
getPropName:
|
|
775
|
+
getPropName: Gt,
|
|
773
776
|
emitFieldDataChange: Re,
|
|
774
777
|
syncUpdateFormModel: re,
|
|
775
778
|
getWidgetRef: d.getWidgetRef,
|
|
776
779
|
clearRules: Ze,
|
|
777
780
|
buildRules: me,
|
|
778
|
-
getFieldOptionModel:
|
|
781
|
+
getFieldOptionModel: Ue,
|
|
779
782
|
getFieldOptions: oe,
|
|
780
783
|
hasFieldOptions: At,
|
|
781
784
|
setFieldOptions: kt,
|
|
782
785
|
getWidgetOption: ue,
|
|
783
786
|
singleOption: Ht,
|
|
784
|
-
watchOption:
|
|
785
|
-
mergeOptionToFormModel:
|
|
787
|
+
watchOption: Ae,
|
|
788
|
+
mergeOptionToFormModel: qe
|
|
786
789
|
};
|
|
787
790
|
}
|
|
788
791
|
export {
|
|
789
|
-
|
|
792
|
+
Be as R,
|
|
790
793
|
Ve as a,
|
|
791
794
|
vo as b,
|
|
792
795
|
Zn as u
|