@farris/ui-vue 1.3.4 → 1.3.6
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/components/accordion/index.esm.js +16 -16
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +65 -65
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +13 -13
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +504 -490
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +247 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +356 -344
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +159 -145
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +127 -128
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +15 -15
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/component/index.esm.js +101 -87
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +9 -7
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +181 -167
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +746 -730
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +9 -7
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +789 -777
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3096 -3069
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +257 -243
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +322 -306
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +177 -163
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/event-parameter/index.esm.js +78 -82
- package/components/event-parameter/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +501 -487
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +37 -37
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +487 -472
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +440 -433
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +594 -587
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.esm.js +2766 -2739
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +402 -388
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +201 -202
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +264 -245
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +157 -143
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +314 -298
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +862 -843
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1031 -1015
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +169 -155
- package/components/nav/index.umd.cjs +2 -2
- package/components/number-range/index.esm.js +150 -137
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +207 -194
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +427 -414
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +22 -22
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +510 -492
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +192 -178
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +234 -220
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +288 -277
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +62 -61
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +776 -770
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +296 -283
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +222 -208
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +187 -173
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +554 -542
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +483 -469
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +634 -619
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +228 -214
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +419 -406
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +162 -148
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +308 -284
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +279 -265
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +183 -170
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +307 -294
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +320 -306
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +245 -231
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +260 -247
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +409 -396
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +424 -410
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +383 -376
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +595 -575
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +325 -311
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +304 -290
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +99 -85
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +947 -933
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +5492 -5470
- package/farris.all.umd.cjs +13 -13
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/entity-binding-selector/composition/use-entity-tree.d.ts +3 -0
- package/types/entity-binding-selector/composition/use-field-tree.d.ts +1 -0
|
@@ -1,121 +1,135 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as B, ref as b, computed as
|
|
5
|
-
import { isPlainObject as
|
|
6
|
-
const _ = {},
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title:
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
|
|
1
|
+
var J = Object.defineProperty;
|
|
2
|
+
var Q = (t, e, l) => e in t ? J(t, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : t[e] = l;
|
|
3
|
+
var H = (t, e, l) => Q(t, typeof e != "symbol" ? e + "" : e, l);
|
|
4
|
+
import { defineComponent as B, ref as b, computed as P, createVNode as r, onBeforeMount as q, createApp as X, onUnmounted as Y, inject as Z, onMounted as K } from "vue";
|
|
5
|
+
import { isPlainObject as R, cloneDeep as F } from "lodash-es";
|
|
6
|
+
const _ = {}, C = {};
|
|
7
|
+
function $(t) {
|
|
8
|
+
const { properties: e, title: l, ignore: s } = t, a = s && Array.isArray(s), c = Object.keys(e).reduce((y, p) => ((!a || !s.find((T) => T === p)) && (y[p] = e[p].type === "object" && e[p].properties ? $(e[p]) : F(e[p].default)), y), {});
|
|
9
|
+
if (l && (!a || !s.find((y) => y === "id"))) {
|
|
10
|
+
const y = l.toLowerCase().replace(/-/g, "_");
|
|
11
|
+
c.id = `${y}_${Math.random().toString().slice(2, 6)}`;
|
|
12
12
|
}
|
|
13
|
-
return
|
|
13
|
+
return c;
|
|
14
14
|
}
|
|
15
|
-
function
|
|
16
|
-
const s =
|
|
15
|
+
function x(t) {
|
|
16
|
+
const { properties: e, title: l, required: s } = t;
|
|
17
|
+
if (s && Array.isArray(s)) {
|
|
18
|
+
const a = s.reduce((c, y) => (c[y] = e[y].type === "object" && e[y].properties ? $(e[y]) : F(e[y].default), c), {});
|
|
19
|
+
if (l && s.find((c) => c === "id")) {
|
|
20
|
+
const c = l.toLowerCase().replace(/-/g, "_");
|
|
21
|
+
a.id = `${c}_${Math.random().toString().slice(2, 6)}`;
|
|
22
|
+
}
|
|
23
|
+
return a;
|
|
24
|
+
}
|
|
25
|
+
return {
|
|
26
|
+
type: l
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
function W(t, e = {}, l) {
|
|
30
|
+
const s = _[t];
|
|
17
31
|
if (s) {
|
|
18
|
-
let
|
|
19
|
-
const
|
|
20
|
-
return
|
|
32
|
+
let a = x(s);
|
|
33
|
+
const c = C[t];
|
|
34
|
+
return a = c ? c({ getSchemaByType: W }, a, e, l) : a, a;
|
|
21
35
|
}
|
|
22
36
|
return null;
|
|
23
37
|
}
|
|
24
|
-
function
|
|
25
|
-
const
|
|
26
|
-
return Object.keys(
|
|
38
|
+
function I(t, e) {
|
|
39
|
+
const l = $(e);
|
|
40
|
+
return Object.keys(l).reduce((s, a) => (Object.prototype.hasOwnProperty.call(t, a) && (s[a] && R(s[a]) && R(t[a] || !t[a]) ? Object.assign(s[a], t[a] || {}) : s[a] = t[a]), s), l), l;
|
|
27
41
|
}
|
|
28
|
-
function
|
|
29
|
-
return Object.keys(
|
|
30
|
-
if (e.has(
|
|
31
|
-
const
|
|
32
|
-
if (typeof
|
|
33
|
-
s[
|
|
42
|
+
function ee(t, e) {
|
|
43
|
+
return Object.keys(t).filter((s) => t[s] != null).reduce((s, a) => {
|
|
44
|
+
if (e.has(a)) {
|
|
45
|
+
const c = e.get(a);
|
|
46
|
+
if (typeof c == "string")
|
|
47
|
+
s[c] = t[a];
|
|
34
48
|
else {
|
|
35
|
-
const
|
|
36
|
-
Object.assign(s,
|
|
49
|
+
const y = c(a, t[a], t);
|
|
50
|
+
Object.assign(s, y);
|
|
37
51
|
}
|
|
38
52
|
} else
|
|
39
|
-
s[
|
|
53
|
+
s[a] = t[a];
|
|
40
54
|
return s;
|
|
41
55
|
}, {});
|
|
42
56
|
}
|
|
43
|
-
function
|
|
44
|
-
const s =
|
|
45
|
-
return
|
|
57
|
+
function te(t, e, l = /* @__PURE__ */ new Map()) {
|
|
58
|
+
const s = I(t, e);
|
|
59
|
+
return ee(s, l);
|
|
46
60
|
}
|
|
47
|
-
function
|
|
48
|
-
function e(
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
if (typeof
|
|
52
|
-
const g = Object.keys(
|
|
61
|
+
function ne(t = {}) {
|
|
62
|
+
function e(o, u, v, d) {
|
|
63
|
+
if (typeof v == "number")
|
|
64
|
+
return d[o].length === v;
|
|
65
|
+
if (typeof v == "object") {
|
|
66
|
+
const g = Object.keys(v)[0], w = v[g];
|
|
53
67
|
if (g === "not")
|
|
54
|
-
return Number(
|
|
68
|
+
return Number(d[o].length) !== Number(w);
|
|
55
69
|
if (g === "moreThan")
|
|
56
|
-
return Number(
|
|
70
|
+
return Number(d[o].length) >= Number(w);
|
|
57
71
|
if (g === "lessThan")
|
|
58
|
-
return Number(
|
|
72
|
+
return Number(d[o].length) <= Number(w);
|
|
59
73
|
}
|
|
60
74
|
return !1;
|
|
61
75
|
}
|
|
62
|
-
function
|
|
63
|
-
return
|
|
76
|
+
function l(o, u, v, d) {
|
|
77
|
+
return d[o] && d[o].propertyValue && String(d[o].propertyValue.value) === String(v);
|
|
64
78
|
}
|
|
65
79
|
const s = /* @__PURE__ */ new Map([
|
|
66
80
|
["length", e],
|
|
67
|
-
["getProperty",
|
|
81
|
+
["getProperty", l]
|
|
68
82
|
]);
|
|
69
|
-
Object.keys(
|
|
70
|
-
function o
|
|
71
|
-
const
|
|
72
|
-
return typeof
|
|
73
|
-
if (
|
|
74
|
-
return { target:
|
|
75
|
-
const g =
|
|
76
|
-
return { target:
|
|
83
|
+
Object.keys(t).reduce((o, u) => (o.set(u, t[u]), o), s);
|
|
84
|
+
function a(o, u) {
|
|
85
|
+
const v = o;
|
|
86
|
+
return typeof u == "number" ? [{ target: v, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: v, operator: "getProperty", param: o, value: !!u }] : typeof u == "object" ? Object.keys(u).map((d) => {
|
|
87
|
+
if (d === "length")
|
|
88
|
+
return { target: v, operator: "length", param: null, value: u[d] };
|
|
89
|
+
const g = d, w = u[d];
|
|
90
|
+
return { target: v, operator: "getProperty", param: g, value: w };
|
|
77
91
|
}) : [];
|
|
78
92
|
}
|
|
79
|
-
function
|
|
80
|
-
return Object.keys(
|
|
81
|
-
const g =
|
|
82
|
-
return
|
|
93
|
+
function c(o) {
|
|
94
|
+
return Object.keys(o).reduce((v, d) => {
|
|
95
|
+
const g = a(d, o[d]);
|
|
96
|
+
return v.push(...g), v;
|
|
83
97
|
}, []);
|
|
84
98
|
}
|
|
85
|
-
function
|
|
86
|
-
if (s.has(
|
|
87
|
-
const
|
|
88
|
-
return
|
|
99
|
+
function y(o, u) {
|
|
100
|
+
if (s.has(o.operator)) {
|
|
101
|
+
const v = s.get(o.operator);
|
|
102
|
+
return v && v(o.target, o.param, o.value, u) || !1;
|
|
89
103
|
}
|
|
90
104
|
return !1;
|
|
91
105
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
106
|
+
function p(o, u) {
|
|
107
|
+
return c(o).reduce((g, w) => g && y(w, u), !0);
|
|
94
108
|
}
|
|
95
|
-
function T(
|
|
96
|
-
const
|
|
97
|
-
return
|
|
109
|
+
function T(o, u) {
|
|
110
|
+
const v = Object.keys(o), d = v.includes("allOf"), g = v.includes("anyOf"), w = d || g, L = (w ? o[w ? d ? "allOf" : "anyOf" : "allOf"] : [o]).map((k) => p(k, u));
|
|
111
|
+
return d ? !L.includes(!1) : L.includes(!0);
|
|
98
112
|
}
|
|
99
113
|
return { parseValueSchema: T };
|
|
100
114
|
}
|
|
101
|
-
const
|
|
102
|
-
|
|
103
|
-
function
|
|
104
|
-
return _[e.title] = e,
|
|
105
|
-
const
|
|
106
|
-
return Object.assign(T,
|
|
115
|
+
const ie = {}, se = {};
|
|
116
|
+
ne();
|
|
117
|
+
function re(t, e, l = /* @__PURE__ */ new Map(), s = (y, p, T, o) => p, a = {}, c = (y) => y) {
|
|
118
|
+
return _[e.title] = e, C[e.title] = s, ie[e.title] = a, se[e.title] = c, (y = {}) => {
|
|
119
|
+
const p = te(y, e, l), T = Object.keys(t).reduce((o, u) => (o[u] = t[u].default, o), {});
|
|
120
|
+
return Object.assign(T, p);
|
|
107
121
|
};
|
|
108
122
|
}
|
|
109
|
-
function le(
|
|
123
|
+
function le(t, e) {
|
|
110
124
|
return { customClass: e.class, customStyle: e.style };
|
|
111
125
|
}
|
|
112
|
-
const
|
|
126
|
+
const ae = /* @__PURE__ */ new Map([
|
|
113
127
|
["appearance", le]
|
|
114
128
|
]);
|
|
115
|
-
function
|
|
129
|
+
function oe(t, e, l) {
|
|
116
130
|
return e;
|
|
117
131
|
}
|
|
118
|
-
const
|
|
132
|
+
const ce = "https://json-schema.org/draft/2020-12/schema", ue = "https://farris-design.gitee.io/verify-detail.schema.json", fe = "verify-detail", pe = "A Farris Component", ve = "object", ye = {
|
|
119
133
|
id: {
|
|
120
134
|
description: "The unique identifier for verify-detail",
|
|
121
135
|
type: "string"
|
|
@@ -177,18 +191,18 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
177
191
|
type: "boolean",
|
|
178
192
|
default: !0
|
|
179
193
|
}
|
|
180
|
-
},
|
|
194
|
+
}, de = [
|
|
181
195
|
"id",
|
|
182
196
|
"type"
|
|
183
197
|
], he = {
|
|
184
|
-
$schema:
|
|
185
|
-
$id:
|
|
186
|
-
title:
|
|
187
|
-
description:
|
|
188
|
-
type:
|
|
189
|
-
properties:
|
|
190
|
-
required:
|
|
191
|
-
},
|
|
198
|
+
$schema: ce,
|
|
199
|
+
$id: ue,
|
|
200
|
+
title: fe,
|
|
201
|
+
description: pe,
|
|
202
|
+
type: ve,
|
|
203
|
+
properties: ye,
|
|
204
|
+
required: de
|
|
205
|
+
}, me = "verify-detail", ge = "A Farris Component", we = "object", be = {
|
|
192
206
|
basic: {
|
|
193
207
|
description: "Basic Infomation",
|
|
194
208
|
title: "基本信息",
|
|
@@ -210,12 +224,12 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
210
224
|
}
|
|
211
225
|
}
|
|
212
226
|
}
|
|
213
|
-
},
|
|
214
|
-
title:
|
|
215
|
-
description:
|
|
216
|
-
type:
|
|
217
|
-
categories:
|
|
218
|
-
},
|
|
227
|
+
}, Te = {
|
|
228
|
+
title: me,
|
|
229
|
+
description: ge,
|
|
230
|
+
type: we,
|
|
231
|
+
categories: be
|
|
232
|
+
}, A = {
|
|
219
233
|
/** 表单验证默认显示的分组信息 */
|
|
220
234
|
showType: { type: String, default: "" },
|
|
221
235
|
/** 是否默认显示验证信息列表 */
|
|
@@ -255,392 +269,392 @@ const oe = "https://json-schema.org/draft/2020-12/schema", ce = "https://farris-
|
|
|
255
269
|
},
|
|
256
270
|
customClass: { type: String, default: "" },
|
|
257
271
|
maxHeight: { type: Number, default: 200 }
|
|
258
|
-
},
|
|
272
|
+
}, V = re(A, he, ae, oe, Te), N = /* @__PURE__ */ B({
|
|
259
273
|
name: "FVerifyDetail",
|
|
260
|
-
props:
|
|
274
|
+
props: A,
|
|
261
275
|
emits: ["validatorClick", "listshow"],
|
|
262
|
-
setup(
|
|
263
|
-
let
|
|
264
|
-
const s = b(
|
|
265
|
-
function
|
|
276
|
+
setup(t, e) {
|
|
277
|
+
let l = [];
|
|
278
|
+
const s = b(t.showList), a = b(t.maxHeight), c = b(t.verifyList), y = b(t.showType), p = b(t.verifyType), T = b(t.customClass);
|
|
279
|
+
function o() {
|
|
266
280
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
267
281
|
}
|
|
268
|
-
function
|
|
269
|
-
var
|
|
270
|
-
!
|
|
271
|
-
i.active = i.type ===
|
|
282
|
+
function u(n) {
|
|
283
|
+
var f;
|
|
284
|
+
!n && p.value && p.value.length > 0 && (n = p.value[0].type), (f = p.value) == null || f.forEach((i) => {
|
|
285
|
+
i.active = i.type === n;
|
|
272
286
|
});
|
|
273
287
|
}
|
|
274
|
-
function
|
|
275
|
-
|
|
276
|
-
|
|
288
|
+
function v(n) {
|
|
289
|
+
n = n || l[0].type, l.forEach((f) => {
|
|
290
|
+
f.show = f.type === n;
|
|
277
291
|
});
|
|
278
292
|
}
|
|
279
|
-
function
|
|
280
|
-
|
|
293
|
+
function d(n) {
|
|
294
|
+
n.length <= 0 || (u(n.type), v(n.type));
|
|
281
295
|
}
|
|
282
296
|
function g() {
|
|
283
297
|
s.value = !1, e.emit("listshow", !1);
|
|
284
298
|
}
|
|
285
|
-
function w(
|
|
286
|
-
e.emit("validatorClick",
|
|
299
|
+
function w(n) {
|
|
300
|
+
e.emit("validatorClick", n);
|
|
287
301
|
}
|
|
288
|
-
function
|
|
289
|
-
return
|
|
302
|
+
function O(n) {
|
|
303
|
+
return r("li", {
|
|
290
304
|
class: "f-verify-list",
|
|
291
|
-
onClick: () => w(
|
|
292
|
-
}, [
|
|
305
|
+
onClick: () => w(n)
|
|
306
|
+
}, [r("span", {
|
|
293
307
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
294
|
-
"list-warning":
|
|
308
|
+
"list-warning": n.type === "warn"
|
|
295
309
|
}]
|
|
296
|
-
}, null),
|
|
310
|
+
}, null), r("div", {
|
|
297
311
|
class: "list-con"
|
|
298
|
-
}, [
|
|
312
|
+
}, [r("p", {
|
|
299
313
|
class: "list-title",
|
|
300
|
-
title:
|
|
301
|
-
}, [
|
|
314
|
+
title: n.title
|
|
315
|
+
}, [n.title]), r("p", {
|
|
302
316
|
class: "list-msg",
|
|
303
|
-
title:
|
|
304
|
-
}, [
|
|
317
|
+
title: n.msg
|
|
318
|
+
}, [n.msg])])]);
|
|
305
319
|
}
|
|
306
320
|
function M() {
|
|
307
|
-
return
|
|
321
|
+
return l.map((n) => r("ul", {
|
|
308
322
|
class: ["f-verify-list-content", {
|
|
309
|
-
active:
|
|
323
|
+
active: n.show
|
|
310
324
|
}]
|
|
311
|
-
}, [
|
|
325
|
+
}, [n.list && n.list.map((f) => O(f))]));
|
|
312
326
|
}
|
|
313
|
-
const L =
|
|
314
|
-
var
|
|
315
|
-
return ((
|
|
327
|
+
const L = P(() => {
|
|
328
|
+
var n;
|
|
329
|
+
return ((n = c.value) == null ? void 0 : n.length) > 0;
|
|
316
330
|
});
|
|
317
|
-
function
|
|
331
|
+
function S(n) {
|
|
318
332
|
return {
|
|
319
333
|
btn: !0,
|
|
320
334
|
"verify-title-btn": !0,
|
|
321
|
-
"f-state-selected":
|
|
322
|
-
disabled:
|
|
335
|
+
"f-state-selected": n.active,
|
|
336
|
+
disabled: n.length <= 0
|
|
323
337
|
};
|
|
324
338
|
}
|
|
325
|
-
const
|
|
326
|
-
var
|
|
327
|
-
return (
|
|
328
|
-
class:
|
|
329
|
-
onClick: () =>
|
|
330
|
-
}, [
|
|
331
|
-
}),
|
|
332
|
-
var
|
|
333
|
-
return
|
|
339
|
+
const k = P(() => {
|
|
340
|
+
var n;
|
|
341
|
+
return (n = p.value) == null ? void 0 : n.map((f) => r("button", {
|
|
342
|
+
class: S(f),
|
|
343
|
+
onClick: () => d(f)
|
|
344
|
+
}, [f.title, r("span", null, [f.length])]));
|
|
345
|
+
}), E = P(() => {
|
|
346
|
+
var n;
|
|
347
|
+
return r("div", {
|
|
334
348
|
class: "f-verify-nums",
|
|
335
|
-
onClick:
|
|
336
|
-
}, [
|
|
349
|
+
onClick: o
|
|
350
|
+
}, [r("span", {
|
|
337
351
|
class: "nums-icon f-icon f-icon-warning"
|
|
338
|
-
}, null),
|
|
352
|
+
}, null), r("span", {
|
|
339
353
|
class: "nums-count"
|
|
340
|
-
}, [(
|
|
354
|
+
}, [(n = c.value) == null ? void 0 : n.length])]);
|
|
341
355
|
});
|
|
342
356
|
function h() {
|
|
343
|
-
var
|
|
344
|
-
const
|
|
345
|
-
|
|
346
|
-
const
|
|
347
|
-
list: i.type === "all" ?
|
|
357
|
+
var f;
|
|
358
|
+
const n = [];
|
|
359
|
+
p.value && ((f = p.value) != null && f.length) && (p.value.map((i) => {
|
|
360
|
+
const m = {
|
|
361
|
+
list: i.type === "all" ? c.value : [],
|
|
348
362
|
show: !1,
|
|
349
363
|
type: i.type
|
|
350
364
|
};
|
|
351
|
-
|
|
352
|
-
}),
|
|
353
|
-
const D =
|
|
354
|
-
|
|
355
|
-
}),
|
|
356
|
-
i.length =
|
|
357
|
-
})),
|
|
365
|
+
n.push(m);
|
|
366
|
+
}), n.map((i, m) => {
|
|
367
|
+
const D = c.value.filter((j) => j.type === i.type);
|
|
368
|
+
n[m].list = m !== 0 ? D : n[m].list;
|
|
369
|
+
}), p.value.map((i, m) => {
|
|
370
|
+
i.length = n[m].list.length;
|
|
371
|
+
})), l = n;
|
|
358
372
|
}
|
|
359
|
-
return
|
|
360
|
-
h(),
|
|
361
|
-
}), () =>
|
|
373
|
+
return q(() => {
|
|
374
|
+
h(), v(y.value), u(y.value);
|
|
375
|
+
}), () => r("div", {
|
|
362
376
|
class: L.value ? `f-verify-detail ${T.value}` : ""
|
|
363
|
-
}, [L.value ?
|
|
377
|
+
}, [L.value ? r("div", {
|
|
364
378
|
class: "f-verify-detail-content"
|
|
365
|
-
}, [
|
|
379
|
+
}, [E.value, r("div", {
|
|
366
380
|
class: "f-verify-form-main",
|
|
367
381
|
hidden: !s.value
|
|
368
|
-
}, [
|
|
382
|
+
}, [r("div", {
|
|
369
383
|
class: "f-verify-form-content"
|
|
370
|
-
}, [
|
|
384
|
+
}, [r("div", {
|
|
371
385
|
class: "f-verify-form-content-arrow"
|
|
372
|
-
}, null),
|
|
386
|
+
}, null), r("div", {
|
|
373
387
|
class: "f-verify-form-content-list"
|
|
374
|
-
}, [
|
|
388
|
+
}, [r("div", {
|
|
375
389
|
class: "f-verify-forms-title"
|
|
376
|
-
}, [
|
|
390
|
+
}, [r("div", {
|
|
377
391
|
class: "btn-group"
|
|
378
|
-
}, [
|
|
392
|
+
}, [k.value]), r("div", {
|
|
379
393
|
class: "f-verify-close",
|
|
380
394
|
onClick: g
|
|
381
|
-
}, [
|
|
395
|
+
}, [r("span", {
|
|
382
396
|
class: "f-icon f-icon-close"
|
|
383
|
-
}, null)])]),
|
|
397
|
+
}, null)])]), r("div", {
|
|
384
398
|
class: "f-verify-forms-list",
|
|
385
399
|
style: {
|
|
386
|
-
maxHeight:
|
|
400
|
+
maxHeight: a.value + "px"
|
|
387
401
|
}
|
|
388
402
|
}, [M()])])])])]) : null]);
|
|
389
403
|
}
|
|
390
404
|
});
|
|
391
|
-
function
|
|
392
|
-
|
|
405
|
+
function De(t, e, l) {
|
|
406
|
+
X({
|
|
393
407
|
setup() {
|
|
394
|
-
return
|
|
408
|
+
return Y(() => {
|
|
395
409
|
e && e();
|
|
396
|
-
}), () =>
|
|
410
|
+
}), () => r(N, t, null);
|
|
397
411
|
}
|
|
398
|
-
}).mount(
|
|
412
|
+
}).mount(l);
|
|
399
413
|
}
|
|
400
|
-
class
|
|
401
|
-
static show(e,
|
|
414
|
+
class U {
|
|
415
|
+
static show(e, l) {
|
|
402
416
|
this.clear();
|
|
403
417
|
let s = 0;
|
|
404
|
-
this.verifyContainer = document.createElement("div"),
|
|
418
|
+
this.verifyContainer = document.createElement("div"), l ? (s = l.offsetHeight - 110, l.appendChild(this.verifyContainer)) : (s = document.documentElement.clientHeight - 110, document.body.appendChild(this.verifyContainer)), e.maxHeight = e.maxHeight ? e.maxHeight : s, De(e, this.clear, this.verifyContainer);
|
|
405
419
|
}
|
|
406
420
|
static clear() {
|
|
407
421
|
let e = this.verifyContainer;
|
|
408
422
|
e && (e.parentNode && e.parentNode.removeChild(e), e = null);
|
|
409
423
|
}
|
|
410
424
|
}
|
|
411
|
-
|
|
412
|
-
function
|
|
413
|
-
var
|
|
414
|
-
const s = "",
|
|
415
|
-
function
|
|
425
|
+
H(U, "verifyContainer", null);
|
|
426
|
+
function Le(t, e, l) {
|
|
427
|
+
var E;
|
|
428
|
+
const s = "", a = "", c = b();
|
|
429
|
+
function y() {
|
|
416
430
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
417
431
|
}
|
|
418
|
-
function
|
|
432
|
+
function p() {
|
|
419
433
|
return !1;
|
|
420
434
|
}
|
|
421
435
|
function T() {
|
|
422
436
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
423
437
|
}
|
|
424
|
-
function
|
|
438
|
+
function o() {
|
|
425
439
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
426
440
|
}
|
|
427
|
-
function
|
|
441
|
+
function u(h) {
|
|
428
442
|
if (!h || !h.value)
|
|
429
443
|
return null;
|
|
430
444
|
if (h.value.schema && h.value.schema.type === "component")
|
|
431
445
|
return h.value;
|
|
432
|
-
const
|
|
433
|
-
return
|
|
446
|
+
const n = b(h == null ? void 0 : h.value.parent), f = u(n);
|
|
447
|
+
return f || null;
|
|
434
448
|
}
|
|
435
|
-
function
|
|
436
|
-
const { componentInstance:
|
|
437
|
-
return !
|
|
449
|
+
function v(h = e) {
|
|
450
|
+
const { componentInstance: n, designerItemElementRef: f } = h;
|
|
451
|
+
return !n || !n.value ? null : n.value.canMove ? f : v(h.parent);
|
|
438
452
|
}
|
|
439
|
-
function
|
|
440
|
-
return !!
|
|
453
|
+
function d(h) {
|
|
454
|
+
return !!l;
|
|
441
455
|
}
|
|
442
456
|
function g() {
|
|
443
457
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
444
458
|
}
|
|
445
459
|
function w() {
|
|
446
460
|
}
|
|
447
|
-
function
|
|
461
|
+
function O(h, n) {
|
|
448
462
|
}
|
|
449
|
-
function M(h,
|
|
450
|
-
const { componentType:
|
|
451
|
-
let i =
|
|
452
|
-
const
|
|
453
|
-
return i && !i.id && i.type ===
|
|
463
|
+
function M(h, n) {
|
|
464
|
+
const { componentType: f } = h;
|
|
465
|
+
let i = W(f, h, n);
|
|
466
|
+
const m = f.toLowerCase().replace(/-/g, "_");
|
|
467
|
+
return i && !i.id && i.type === f && (i.id = `${m}_${Math.random().toString().slice(2, 6)}`), i;
|
|
454
468
|
}
|
|
455
469
|
function L(h) {
|
|
456
470
|
}
|
|
457
|
-
function
|
|
471
|
+
function S(...h) {
|
|
458
472
|
}
|
|
459
|
-
function
|
|
473
|
+
function k() {
|
|
460
474
|
e != null && e.schema.contents && e.schema.contents.map((h) => {
|
|
461
475
|
var i;
|
|
462
|
-
let
|
|
463
|
-
h.type === "component-ref" && (
|
|
464
|
-
const
|
|
465
|
-
(i =
|
|
476
|
+
let n = h.id;
|
|
477
|
+
h.type === "component-ref" && (n = h.component);
|
|
478
|
+
const f = t.value.querySelector(`#${n}-design-item`);
|
|
479
|
+
(i = f == null ? void 0 : f.componentInstance) != null && i.value.onRemoveComponent && f.componentInstance.value.onRemoveComponent();
|
|
466
480
|
});
|
|
467
481
|
}
|
|
468
|
-
return
|
|
469
|
-
canMove:
|
|
470
|
-
canSelectParent:
|
|
482
|
+
return c.value = {
|
|
483
|
+
canMove: y(),
|
|
484
|
+
canSelectParent: p(),
|
|
471
485
|
canDelete: T(),
|
|
472
|
-
canNested: !
|
|
486
|
+
canNested: !o(),
|
|
473
487
|
contents: e == null ? void 0 : e.schema.contents,
|
|
474
|
-
elementRef:
|
|
475
|
-
parent: (
|
|
488
|
+
elementRef: t,
|
|
489
|
+
parent: (E = e == null ? void 0 : e.parent) == null ? void 0 : E.componentInstance,
|
|
476
490
|
schema: e == null ? void 0 : e.schema,
|
|
477
491
|
styles: s,
|
|
478
|
-
designerClass:
|
|
479
|
-
canAccepts:
|
|
480
|
-
getBelongedComponentInstance:
|
|
481
|
-
getDraggableDesignItemElement:
|
|
492
|
+
designerClass: a,
|
|
493
|
+
canAccepts: d,
|
|
494
|
+
getBelongedComponentInstance: u,
|
|
495
|
+
getDraggableDesignItemElement: v,
|
|
482
496
|
getDraggingDisplayText: g,
|
|
483
|
-
getPropConfig:
|
|
497
|
+
getPropConfig: S,
|
|
484
498
|
getDragScopeElement: w,
|
|
485
|
-
onAcceptMovedChildElement:
|
|
499
|
+
onAcceptMovedChildElement: O,
|
|
486
500
|
onChildElementMovedOut: L,
|
|
487
501
|
addNewChildComponentSchema: M,
|
|
488
502
|
triggerBelongedComponentToMoveWhenMoved: b(!1),
|
|
489
503
|
triggerBelongedComponentToDeleteWhenDeleted: b(!1),
|
|
490
|
-
onRemoveComponent:
|
|
491
|
-
},
|
|
504
|
+
onRemoveComponent: k
|
|
505
|
+
}, c;
|
|
492
506
|
}
|
|
493
|
-
const
|
|
507
|
+
const je = /* @__PURE__ */ B({
|
|
494
508
|
name: "FVerifyDetailDesign",
|
|
495
|
-
props:
|
|
509
|
+
props: A,
|
|
496
510
|
emits: ["validatorClick", "listshow"],
|
|
497
|
-
setup(
|
|
498
|
-
let
|
|
499
|
-
const s = b(
|
|
500
|
-
|
|
501
|
-
T.value.componentInstance =
|
|
502
|
-
}), e.expose(
|
|
503
|
-
function
|
|
511
|
+
setup(t, e) {
|
|
512
|
+
let l = [];
|
|
513
|
+
const s = b(t.showList), a = b(t.maxHeight), c = b(t.verifyList), y = b(t.showType), p = b(t.verifyType), T = b(), o = Z("design-item-context"), u = Le(T, o);
|
|
514
|
+
K(() => {
|
|
515
|
+
T.value.componentInstance = u;
|
|
516
|
+
}), e.expose(u.value);
|
|
517
|
+
function v() {
|
|
504
518
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
505
519
|
}
|
|
506
|
-
function
|
|
507
|
-
var
|
|
508
|
-
(
|
|
520
|
+
function d(i) {
|
|
521
|
+
var m;
|
|
522
|
+
(m = p.value) == null || m.forEach((D) => {
|
|
509
523
|
D.active = D.type === i;
|
|
510
524
|
});
|
|
511
525
|
}
|
|
512
526
|
function g(i) {
|
|
513
|
-
|
|
514
|
-
|
|
527
|
+
l.forEach((m) => {
|
|
528
|
+
m.show = m.type === i;
|
|
515
529
|
});
|
|
516
530
|
}
|
|
517
531
|
function w(i) {
|
|
518
|
-
i.length <= 0 || (
|
|
532
|
+
i.length <= 0 || (d(i.type), g(i.type));
|
|
519
533
|
}
|
|
520
|
-
function
|
|
534
|
+
function O() {
|
|
521
535
|
s.value = !1, e.emit("listshow", !1);
|
|
522
536
|
}
|
|
523
537
|
function M(i) {
|
|
524
538
|
e.emit("validatorClick", i);
|
|
525
539
|
}
|
|
526
540
|
function L(i) {
|
|
527
|
-
return
|
|
541
|
+
return r("li", {
|
|
528
542
|
class: "f-verify-list",
|
|
529
543
|
onClick: () => M(i)
|
|
530
|
-
}, [
|
|
544
|
+
}, [r("span", {
|
|
531
545
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
532
546
|
"list-warning": i.type === "warn"
|
|
533
547
|
}]
|
|
534
|
-
}, null),
|
|
548
|
+
}, null), r("div", {
|
|
535
549
|
class: "list-con"
|
|
536
|
-
}, [
|
|
550
|
+
}, [r("p", {
|
|
537
551
|
class: "list-title",
|
|
538
552
|
title: i.title
|
|
539
|
-
}, [i.title]),
|
|
553
|
+
}, [i.title]), r("p", {
|
|
540
554
|
class: "list-msg",
|
|
541
555
|
title: i.msg
|
|
542
556
|
}, [i.msg])])]);
|
|
543
557
|
}
|
|
544
|
-
function
|
|
545
|
-
return
|
|
558
|
+
function S() {
|
|
559
|
+
return l.map((i) => r("ul", {
|
|
546
560
|
class: ["f-verify-list-content", {
|
|
547
561
|
active: i.show
|
|
548
562
|
}]
|
|
549
|
-
}, [i.list && i.list.map((
|
|
563
|
+
}, [i.list && i.list.map((m) => L(m))]));
|
|
550
564
|
}
|
|
551
|
-
const
|
|
565
|
+
const k = P(() => {
|
|
552
566
|
var i;
|
|
553
|
-
return ((i =
|
|
567
|
+
return ((i = c.value) == null ? void 0 : i.length) > 0;
|
|
554
568
|
});
|
|
555
|
-
function
|
|
569
|
+
function E(i) {
|
|
556
570
|
return {
|
|
557
571
|
"btn btn-secondary": !0,
|
|
558
572
|
active: i.active,
|
|
559
573
|
disabled: i.length <= 0
|
|
560
574
|
};
|
|
561
575
|
}
|
|
562
|
-
const h =
|
|
576
|
+
const h = P(() => {
|
|
563
577
|
var i;
|
|
564
|
-
return (i =
|
|
565
|
-
class:
|
|
566
|
-
onClick: () => w(
|
|
567
|
-
}, [
|
|
568
|
-
}),
|
|
578
|
+
return (i = p.value) == null ? void 0 : i.map((m) => r("button", {
|
|
579
|
+
class: E(m),
|
|
580
|
+
onClick: () => w(m)
|
|
581
|
+
}, [m.title, r("span", null, [m.length])]));
|
|
582
|
+
}), n = P(() => {
|
|
569
583
|
var i;
|
|
570
|
-
return
|
|
584
|
+
return r("div", {
|
|
571
585
|
class: "f-verify-nums",
|
|
572
|
-
onClick:
|
|
573
|
-
}, [
|
|
586
|
+
onClick: v
|
|
587
|
+
}, [r("span", {
|
|
574
588
|
class: "nums-icon f-icon f-icon-warning"
|
|
575
|
-
}, null),
|
|
589
|
+
}, null), r("span", {
|
|
576
590
|
class: "nums-count"
|
|
577
|
-
}, [(i =
|
|
591
|
+
}, [(i = c.value) == null ? void 0 : i.length])]);
|
|
578
592
|
});
|
|
579
|
-
function
|
|
580
|
-
var
|
|
593
|
+
function f() {
|
|
594
|
+
var m;
|
|
581
595
|
const i = [];
|
|
582
|
-
|
|
596
|
+
p.value && ((m = p.value) != null && m.length) && (p.value.map((D) => {
|
|
583
597
|
const j = {
|
|
584
|
-
list: D.type === "all" ?
|
|
598
|
+
list: D.type === "all" ? c.value : [],
|
|
585
599
|
show: !1,
|
|
586
600
|
type: D.type
|
|
587
601
|
};
|
|
588
602
|
i.push(j);
|
|
589
603
|
}), i.map((D, j) => {
|
|
590
|
-
const
|
|
591
|
-
i[j].list = j !== 0 ?
|
|
592
|
-
}),
|
|
604
|
+
const z = c.value.filter((G) => G.type === D.type);
|
|
605
|
+
i[j].list = j !== 0 ? z : i[j].list;
|
|
606
|
+
}), p.value.map((D, j) => {
|
|
593
607
|
D.length = i[j].list.length;
|
|
594
|
-
})),
|
|
608
|
+
})), l = i;
|
|
595
609
|
}
|
|
596
|
-
return
|
|
597
|
-
|
|
598
|
-
}), () =>
|
|
610
|
+
return q(() => {
|
|
611
|
+
f(), g(y.value), d(y.value);
|
|
612
|
+
}), () => r("div", {
|
|
599
613
|
ref: T
|
|
600
|
-
}, [
|
|
614
|
+
}, [k.value ? r("div", {
|
|
601
615
|
class: "f-verify-detail"
|
|
602
|
-
}, [
|
|
616
|
+
}, [r("div", {
|
|
603
617
|
class: "f-verify-detail-content"
|
|
604
|
-
}, [
|
|
618
|
+
}, [n.value, r("div", {
|
|
605
619
|
class: "f-verify-form-main",
|
|
606
620
|
hidden: !s.value
|
|
607
|
-
}, [
|
|
621
|
+
}, [r("div", {
|
|
608
622
|
class: "f-verify-form-content"
|
|
609
|
-
}, [
|
|
623
|
+
}, [r("div", {
|
|
610
624
|
class: "f-verify-form-content-arrow"
|
|
611
|
-
}, null),
|
|
625
|
+
}, null), r("div", {
|
|
612
626
|
class: "f-verify-form-content-list"
|
|
613
|
-
}, [
|
|
627
|
+
}, [r("div", {
|
|
614
628
|
class: "f-verify-forms-title"
|
|
615
|
-
}, [
|
|
629
|
+
}, [r("div", {
|
|
616
630
|
class: "btn-group"
|
|
617
|
-
}, [h.value]),
|
|
631
|
+
}, [h.value]), r("div", {
|
|
618
632
|
class: "f-verify-close",
|
|
619
|
-
onClick:
|
|
620
|
-
}, [
|
|
633
|
+
onClick: O
|
|
634
|
+
}, [r("span", {
|
|
621
635
|
class: "f-icon f-icon-close"
|
|
622
|
-
}, null)])]),
|
|
636
|
+
}, null)])]), r("div", {
|
|
623
637
|
class: "f-verify-forms-list",
|
|
624
638
|
style: {
|
|
625
|
-
maxHeight:
|
|
639
|
+
maxHeight: a.value + "px"
|
|
626
640
|
}
|
|
627
|
-
}, [
|
|
641
|
+
}, [S()])])])])])]) : null]);
|
|
628
642
|
}
|
|
629
|
-
}),
|
|
630
|
-
install(
|
|
631
|
-
|
|
643
|
+
}), Se = {
|
|
644
|
+
install(t) {
|
|
645
|
+
t.component(N.name, N), t.provide("FVerifyDetailService", U);
|
|
632
646
|
},
|
|
633
|
-
register(
|
|
634
|
-
|
|
647
|
+
register(t, e, l, s) {
|
|
648
|
+
t["verify-detail"] = N, e["verify-detail"] = V;
|
|
635
649
|
},
|
|
636
|
-
registerDesigner(
|
|
637
|
-
|
|
650
|
+
registerDesigner(t, e, l) {
|
|
651
|
+
t["verify-detail"] = je, e["verify-detail"] = V;
|
|
638
652
|
}
|
|
639
653
|
};
|
|
640
654
|
export {
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
655
|
+
N as FVerifyDetail,
|
|
656
|
+
U as FVerifyDetailService,
|
|
657
|
+
Se as default,
|
|
658
|
+
V as propsResolver,
|
|
659
|
+
A as verifyDetailProps
|
|
646
660
|
};
|