@farris/ui-vue 1.2.6 → 1.2.8
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 +150 -142
- package/components/avatar/index.esm.js +393 -457
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +491 -554
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +479 -513
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +857 -743
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4883 -5182
- package/components/data-view/index.esm.js +3072 -2949
- package/components/date-picker/index.esm.js +2626 -2689
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +940 -998
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +307 -293
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1747 -1627
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5877 -6176
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1454 -1524
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +659 -722
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1643 -1524
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6502 -6770
- package/components/mapping-editor/index.esm.js +5639 -5939
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +1098 -1130
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1317
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1479 -1513
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +706 -778
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +453 -516
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +555 -526
- package/components/response-toolbar/index.esm.js +1009 -1247
- package/components/schema-selector/index.esm.js +3261 -3373
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +441 -504
- package/components/tabs/index.esm.js +1849 -2039
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +445 -493
- package/components/time-picker/index.esm.js +1350 -1414
- package/components/transfer/index.esm.js +146 -144
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5948 -6237
- package/components/tree-view/index.esm.js +2381 -2255
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +27221 -26804
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +0 -4
- package/types/lookup/src/property-config/lookup.property-config.d.ts +4 -3
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -28
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -5
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,114 +1,114 @@
|
|
|
1
1
|
var U = Object.defineProperty;
|
|
2
|
-
var z = (
|
|
3
|
-
var H = (
|
|
4
|
-
import { defineComponent as B, ref as w, computed as
|
|
2
|
+
var z = (i, e, l) => e in i ? U(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
|
|
3
|
+
var H = (i, e, l) => z(i, typeof e != "symbol" ? e + "" : e, l);
|
|
4
|
+
import { defineComponent as B, ref as w, computed as C, createVNode as r, onBeforeMount as F, createApp as G, onUnmounted as Q, inject as X, onMounted as Y } from "vue";
|
|
5
5
|
import { cloneDeep as Z } from "lodash-es";
|
|
6
6
|
const _ = {}, q = {};
|
|
7
|
-
function
|
|
8
|
-
const { properties: e, title: l } =
|
|
9
|
-
return
|
|
7
|
+
function V(i) {
|
|
8
|
+
const { properties: e, title: l } = i, s = Object.keys(e).reduce((o, v) => (o[v] = e[v].type === "object" && e[v].properties ? V(e[v]) : Z(e[v].default), o), {});
|
|
9
|
+
return s.id = `${l}-${Date.now()}`, s;
|
|
10
10
|
}
|
|
11
|
-
function
|
|
12
|
-
const l = _[
|
|
11
|
+
function P(i, e = {}) {
|
|
12
|
+
const l = _[i];
|
|
13
13
|
if (l) {
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
14
|
+
let s = V(l);
|
|
15
|
+
const o = q[i];
|
|
16
|
+
return s = o ? o({ getSchemaByType: P }, s, e) : s, s;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
20
|
-
function K(
|
|
21
|
-
const l =
|
|
22
|
-
return Object.keys(
|
|
20
|
+
function K(i, e) {
|
|
21
|
+
const l = V(e);
|
|
22
|
+
return Object.keys(i).reduce((s, o) => (s[o] && typeof s[o] == "object" ? Object.assign(s[o], i[o]) : s[o] = i[o], s), l), l;
|
|
23
23
|
}
|
|
24
|
-
function x(
|
|
25
|
-
return Object.keys(
|
|
26
|
-
if (e.has(
|
|
27
|
-
const v = e.get(
|
|
24
|
+
function x(i, e) {
|
|
25
|
+
return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
|
|
26
|
+
if (e.has(o)) {
|
|
27
|
+
const v = e.get(o);
|
|
28
28
|
if (typeof v == "string")
|
|
29
|
-
|
|
29
|
+
s[v] = i[o];
|
|
30
30
|
else {
|
|
31
|
-
const m = v(
|
|
32
|
-
Object.assign(
|
|
31
|
+
const m = v(o, i[o], i);
|
|
32
|
+
Object.assign(s, m);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
|
-
|
|
36
|
-
return
|
|
35
|
+
s[o] = i[o];
|
|
36
|
+
return s;
|
|
37
37
|
}, {});
|
|
38
38
|
}
|
|
39
|
-
function I(
|
|
40
|
-
const
|
|
41
|
-
return x(
|
|
39
|
+
function I(i, e, l = /* @__PURE__ */ new Map()) {
|
|
40
|
+
const s = K(i, e);
|
|
41
|
+
return x(s, l);
|
|
42
42
|
}
|
|
43
|
-
function ee(
|
|
44
|
-
function e(a,
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
43
|
+
function ee(i = {}) {
|
|
44
|
+
function e(a, c, f, p) {
|
|
45
|
+
if (typeof f == "number")
|
|
46
|
+
return p[a].length === f;
|
|
47
|
+
if (typeof f == "object") {
|
|
48
|
+
const h = Object.keys(f)[0], g = f[h];
|
|
49
|
+
if (h === "not")
|
|
50
|
+
return Number(p[a].length) !== Number(g);
|
|
51
|
+
if (h === "moreThan")
|
|
52
|
+
return Number(p[a].length) >= Number(g);
|
|
53
|
+
if (h === "lessThan")
|
|
54
|
+
return Number(p[a].length) <= Number(g);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function l(a,
|
|
59
|
-
return
|
|
58
|
+
function l(a, c, f, p) {
|
|
59
|
+
return p[a] && p[a].propertyValue && String(p[a].propertyValue.value) === String(f);
|
|
60
60
|
}
|
|
61
|
-
const
|
|
61
|
+
const s = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", l]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
65
|
+
Object.keys(i).reduce((a, c) => (a.set(c, i[c]), a), s);
|
|
66
|
+
function o(a, c) {
|
|
67
|
+
const f = a;
|
|
68
|
+
return typeof c == "number" ? [{ target: f, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: f, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((p) => {
|
|
69
|
+
if (p === "length")
|
|
70
|
+
return { target: f, operator: "length", param: null, value: c[p] };
|
|
71
|
+
const h = p, g = c[p];
|
|
72
|
+
return { target: f, operator: "getProperty", param: h, value: g };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
75
|
function v(a) {
|
|
76
|
-
return Object.keys(a).reduce((
|
|
77
|
-
const
|
|
78
|
-
return
|
|
76
|
+
return Object.keys(a).reduce((f, p) => {
|
|
77
|
+
const h = o(p, a[p]);
|
|
78
|
+
return f.push(...h), f;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function m(a,
|
|
82
|
-
if (
|
|
83
|
-
const
|
|
84
|
-
return
|
|
81
|
+
function m(a, c) {
|
|
82
|
+
if (s.has(a.operator)) {
|
|
83
|
+
const f = s.get(a.operator);
|
|
84
|
+
return f && f(a.target, a.param, a.value, c) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return v(a).reduce((
|
|
88
|
+
function d(a, c) {
|
|
89
|
+
return v(a).reduce((h, g) => h && m(g, c), !0);
|
|
90
90
|
}
|
|
91
|
-
function D(a,
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
function D(a, c) {
|
|
92
|
+
const f = Object.keys(a), p = f.includes("allOf"), h = f.includes("anyOf"), g = p || h, L = (g ? a[g ? p ? "allOf" : "anyOf" : "allOf"] : [a]).map((k) => d(k, c));
|
|
93
|
+
return p ? !L.includes(!1) : L.includes(!0);
|
|
94
94
|
}
|
|
95
95
|
return { parseValueSchema: D };
|
|
96
96
|
}
|
|
97
97
|
const te = {}, ne = {};
|
|
98
98
|
ee();
|
|
99
|
-
function
|
|
100
|
-
return _[e.title] = e, q[e.title] =
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(D,
|
|
99
|
+
function ie(i, e, l = /* @__PURE__ */ new Map(), s = (m, d, D) => d, o = {}, v = (m) => m) {
|
|
100
|
+
return _[e.title] = e, q[e.title] = s, te[e.title] = o, ne[e.title] = v, (m = {}) => {
|
|
101
|
+
const d = I(m, e, l), D = Object.keys(i).reduce((a, c) => (a[c] = i[c].default, a), {});
|
|
102
|
+
return Object.assign(D, d);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
|
-
function se(
|
|
105
|
+
function se(i, e) {
|
|
106
106
|
return { customClass: e.class, customStyle: e.style };
|
|
107
107
|
}
|
|
108
|
-
const
|
|
108
|
+
const re = /* @__PURE__ */ new Map([
|
|
109
109
|
["appearance", se]
|
|
110
110
|
]);
|
|
111
|
-
function le(
|
|
111
|
+
function le(i, e, l) {
|
|
112
112
|
return e;
|
|
113
113
|
}
|
|
114
114
|
const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-design.gitee.io/verify-detail.schema.json", ce = "verify-detail", ue = "A Farris Component", fe = "object", pe = {
|
|
@@ -184,7 +184,7 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
184
184
|
type: fe,
|
|
185
185
|
properties: pe,
|
|
186
186
|
required: ye
|
|
187
|
-
},
|
|
187
|
+
}, de = "verify-detail", he = "A Farris Component", me = "object", ge = {
|
|
188
188
|
basic: {
|
|
189
189
|
description: "Basic Infomation",
|
|
190
190
|
title: "基本信息",
|
|
@@ -207,8 +207,8 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
207
207
|
}
|
|
208
208
|
}
|
|
209
209
|
}, we = {
|
|
210
|
-
title:
|
|
211
|
-
description:
|
|
210
|
+
title: de,
|
|
211
|
+
description: he,
|
|
212
212
|
type: me,
|
|
213
213
|
categories: ge
|
|
214
214
|
}, $ = {
|
|
@@ -251,66 +251,66 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
251
251
|
},
|
|
252
252
|
customClass: { type: String, default: "" },
|
|
253
253
|
maxHeight: { type: Number, default: 200 }
|
|
254
|
-
}, R =
|
|
254
|
+
}, R = ie($, ve, re, le, we), N = /* @__PURE__ */ B({
|
|
255
255
|
name: "FVerifyDetail",
|
|
256
256
|
props: $,
|
|
257
257
|
emits: ["validatorClick", "listshow"],
|
|
258
|
-
setup(
|
|
258
|
+
setup(i, e) {
|
|
259
259
|
let l = [];
|
|
260
|
-
const
|
|
260
|
+
const s = w(i.showList), o = w(i.maxHeight), v = w(i.verifyList), m = w(i.showType), d = w(i.verifyType), D = w(i.customClass);
|
|
261
261
|
function a() {
|
|
262
|
-
|
|
262
|
+
s.value = !s.value, e.emit("listshow", s.value);
|
|
263
263
|
}
|
|
264
|
-
function
|
|
265
|
-
var
|
|
266
|
-
!t &&
|
|
264
|
+
function c(t) {
|
|
265
|
+
var u;
|
|
266
|
+
!t && d.value && d.value.length > 0 && (t = d.value[0].type), (u = d.value) == null || u.forEach((n) => {
|
|
267
267
|
n.active = n.type === t;
|
|
268
268
|
});
|
|
269
269
|
}
|
|
270
|
-
function
|
|
271
|
-
t = t || l[0].type, l.forEach((
|
|
272
|
-
|
|
270
|
+
function f(t) {
|
|
271
|
+
t = t || l[0].type, l.forEach((u) => {
|
|
272
|
+
u.show = u.type === t;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
t.length <= 0 || (
|
|
275
|
+
function p(t) {
|
|
276
|
+
t.length <= 0 || (c(t.type), f(t.type));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
279
|
-
|
|
278
|
+
function h() {
|
|
279
|
+
s.value = !1, e.emit("listshow", !1);
|
|
280
280
|
}
|
|
281
281
|
function g(t) {
|
|
282
282
|
e.emit("validatorClick", t);
|
|
283
283
|
}
|
|
284
|
-
function
|
|
285
|
-
return
|
|
284
|
+
function j(t) {
|
|
285
|
+
return r("li", {
|
|
286
286
|
class: "f-verify-list",
|
|
287
287
|
onClick: () => g(t)
|
|
288
|
-
}, [
|
|
288
|
+
}, [r("span", {
|
|
289
289
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
290
290
|
"list-warning": t.type === "warn"
|
|
291
291
|
}]
|
|
292
|
-
}, null),
|
|
292
|
+
}, null), r("div", {
|
|
293
293
|
class: "list-con"
|
|
294
|
-
}, [
|
|
294
|
+
}, [r("p", {
|
|
295
295
|
class: "list-title",
|
|
296
296
|
title: t.title
|
|
297
|
-
}, [t.title]),
|
|
297
|
+
}, [t.title]), r("p", {
|
|
298
298
|
class: "list-msg",
|
|
299
299
|
title: t.msg
|
|
300
300
|
}, [t.msg])])]);
|
|
301
301
|
}
|
|
302
302
|
function E() {
|
|
303
|
-
return l.map((t) =>
|
|
303
|
+
return l.map((t) => r("ul", {
|
|
304
304
|
class: ["f-verify-list-content", {
|
|
305
305
|
active: t.show
|
|
306
306
|
}]
|
|
307
|
-
}, [t.list && t.list.map((
|
|
307
|
+
}, [t.list && t.list.map((u) => j(u))]));
|
|
308
308
|
}
|
|
309
|
-
const L =
|
|
309
|
+
const L = C(() => {
|
|
310
310
|
var t;
|
|
311
311
|
return ((t = v.value) == null ? void 0 : t.length) > 0;
|
|
312
312
|
});
|
|
313
|
-
function
|
|
313
|
+
function O(t) {
|
|
314
314
|
return {
|
|
315
315
|
btn: !0,
|
|
316
316
|
"verify-title-btn": !0,
|
|
@@ -318,86 +318,86 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
318
318
|
disabled: t.length <= 0
|
|
319
319
|
};
|
|
320
320
|
}
|
|
321
|
-
const k =
|
|
321
|
+
const k = C(() => {
|
|
322
322
|
var t;
|
|
323
|
-
return (t =
|
|
324
|
-
class:
|
|
325
|
-
onClick: () =>
|
|
326
|
-
}, [
|
|
327
|
-
}),
|
|
323
|
+
return (t = d.value) == null ? void 0 : t.map((u) => r("button", {
|
|
324
|
+
class: O(u),
|
|
325
|
+
onClick: () => p(u)
|
|
326
|
+
}, [u.title, r("span", null, [u.length])]));
|
|
327
|
+
}), S = C(() => {
|
|
328
328
|
var t;
|
|
329
|
-
return
|
|
329
|
+
return r("div", {
|
|
330
330
|
class: "f-verify-nums",
|
|
331
331
|
onClick: a
|
|
332
|
-
}, [
|
|
332
|
+
}, [r("span", {
|
|
333
333
|
class: "nums-icon f-icon f-icon-warning"
|
|
334
|
-
}, null),
|
|
334
|
+
}, null), r("span", {
|
|
335
335
|
class: "nums-count"
|
|
336
336
|
}, [(t = v.value) == null ? void 0 : t.length])]);
|
|
337
337
|
});
|
|
338
|
-
function
|
|
339
|
-
var
|
|
338
|
+
function M() {
|
|
339
|
+
var u;
|
|
340
340
|
const t = [];
|
|
341
|
-
|
|
342
|
-
const
|
|
341
|
+
d.value && ((u = d.value) != null && u.length) && (d.value.map((n) => {
|
|
342
|
+
const y = {
|
|
343
343
|
list: n.type === "all" ? v.value : [],
|
|
344
344
|
show: !1,
|
|
345
345
|
type: n.type
|
|
346
346
|
};
|
|
347
|
-
t.push(
|
|
348
|
-
}), t.map((n,
|
|
347
|
+
t.push(y);
|
|
348
|
+
}), t.map((n, y) => {
|
|
349
349
|
const T = v.value.filter((b) => b.type === n.type);
|
|
350
|
-
t[
|
|
351
|
-
}),
|
|
352
|
-
n.length = t[
|
|
350
|
+
t[y].list = y !== 0 ? T : t[y].list;
|
|
351
|
+
}), d.value.map((n, y) => {
|
|
352
|
+
n.length = t[y].list.length;
|
|
353
353
|
})), l = t;
|
|
354
354
|
}
|
|
355
355
|
return F(() => {
|
|
356
|
-
|
|
357
|
-
}), () =>
|
|
356
|
+
M(), f(m.value), c(m.value);
|
|
357
|
+
}), () => r("div", {
|
|
358
358
|
class: L ? `f-verify-detail ${D.value}` : ""
|
|
359
|
-
}, [L.value ?
|
|
359
|
+
}, [L.value ? r("div", {
|
|
360
360
|
class: "f-verify-detail-content"
|
|
361
|
-
}, [
|
|
361
|
+
}, [S.value, r("div", {
|
|
362
362
|
class: "f-verify-form-main",
|
|
363
|
-
hidden: !
|
|
364
|
-
}, [
|
|
363
|
+
hidden: !s.value
|
|
364
|
+
}, [r("div", {
|
|
365
365
|
class: "f-verify-form-content"
|
|
366
|
-
}, [
|
|
366
|
+
}, [r("div", {
|
|
367
367
|
class: "f-verify-form-content-arrow"
|
|
368
|
-
}, null),
|
|
368
|
+
}, null), r("div", {
|
|
369
369
|
class: "f-verify-form-content-list"
|
|
370
|
-
}, [
|
|
370
|
+
}, [r("div", {
|
|
371
371
|
class: "f-verify-forms-title"
|
|
372
|
-
}, [
|
|
372
|
+
}, [r("div", {
|
|
373
373
|
class: "btn-group"
|
|
374
|
-
}, [k.value]),
|
|
374
|
+
}, [k.value]), r("div", {
|
|
375
375
|
class: "f-verify-close",
|
|
376
|
-
onClick:
|
|
377
|
-
}, [
|
|
376
|
+
onClick: h
|
|
377
|
+
}, [r("span", {
|
|
378
378
|
class: "f-icon f-icon-close"
|
|
379
|
-
}, null)])]),
|
|
379
|
+
}, null)])]), r("div", {
|
|
380
380
|
class: "f-verify-forms-list",
|
|
381
381
|
style: {
|
|
382
|
-
maxHeight:
|
|
382
|
+
maxHeight: o.value + "px"
|
|
383
383
|
}
|
|
384
384
|
}, [E()])])])])]) : null]);
|
|
385
385
|
}
|
|
386
386
|
});
|
|
387
|
-
function be(
|
|
387
|
+
function be(i, e, l) {
|
|
388
388
|
G({
|
|
389
389
|
setup() {
|
|
390
390
|
return Q(() => {
|
|
391
391
|
e && e();
|
|
392
|
-
}), () =>
|
|
392
|
+
}), () => r(N, i, null);
|
|
393
393
|
}
|
|
394
394
|
}).mount(l);
|
|
395
395
|
}
|
|
396
396
|
class W {
|
|
397
397
|
static show(e, l) {
|
|
398
398
|
this.clear();
|
|
399
|
-
let
|
|
400
|
-
this.verifyContainer = document.createElement("div"), l ? (
|
|
399
|
+
let s = 0;
|
|
400
|
+
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, be(e, this.clear, this.verifyContainer);
|
|
401
401
|
}
|
|
402
402
|
static clear() {
|
|
403
403
|
let e = this.verifyContainer;
|
|
@@ -405,12 +405,12 @@ class W {
|
|
|
405
405
|
}
|
|
406
406
|
}
|
|
407
407
|
H(W, "verifyContainer", null);
|
|
408
|
-
function Te(
|
|
409
|
-
var
|
|
410
|
-
function
|
|
408
|
+
function Te(i, e, l) {
|
|
409
|
+
var M;
|
|
410
|
+
function s() {
|
|
411
411
|
}
|
|
412
|
-
const
|
|
413
|
-
function
|
|
412
|
+
const o = "", v = "", m = w();
|
|
413
|
+
function d() {
|
|
414
414
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
415
415
|
}
|
|
416
416
|
function D() {
|
|
@@ -419,70 +419,70 @@ function Te(r, e, l) {
|
|
|
419
419
|
function a() {
|
|
420
420
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function c() {
|
|
423
423
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function f(t) {
|
|
426
426
|
if (!t || !t.value)
|
|
427
427
|
return null;
|
|
428
428
|
if (t.value.schema && t.value.schema.type === "component")
|
|
429
429
|
return t.value;
|
|
430
|
-
const
|
|
430
|
+
const u = w(t == null ? void 0 : t.value.parent), n = f(u);
|
|
431
431
|
return n || null;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const { componentInstance:
|
|
435
|
-
return !
|
|
433
|
+
function p(t = e) {
|
|
434
|
+
const { componentInstance: u, designerItemElementRef: n } = t;
|
|
435
|
+
return !u || !u.value ? null : u.value.canMove ? n : p(t.parent);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function h(t) {
|
|
438
438
|
return !!l;
|
|
439
439
|
}
|
|
440
440
|
function g() {
|
|
441
441
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
442
442
|
}
|
|
443
|
-
function
|
|
443
|
+
function j() {
|
|
444
444
|
}
|
|
445
|
-
function E(t,
|
|
445
|
+
function E(t, u) {
|
|
446
446
|
}
|
|
447
447
|
function L(t) {
|
|
448
|
-
const { componentType:
|
|
449
|
-
let n =
|
|
450
|
-
const
|
|
451
|
-
return n && !n.id && n.type ===
|
|
448
|
+
const { componentType: u } = t;
|
|
449
|
+
let n = P(u, t);
|
|
450
|
+
const y = u.toLowerCase().replace("-", "_");
|
|
451
|
+
return n && !n.id && n.type === u && (n.id = `${y}_${Math.random().toString().slice(2, 6)}`), n;
|
|
452
452
|
}
|
|
453
|
-
function
|
|
454
|
-
const n = String(t.getAttribute("data-controltype")),
|
|
453
|
+
function O(t, u) {
|
|
454
|
+
const n = String(t.getAttribute("data-controltype")), y = t.getAttribute("data-feature"), T = y ? JSON.parse(y) : {};
|
|
455
455
|
T.parentComponentInstance = m.value;
|
|
456
|
-
let b =
|
|
457
|
-
const
|
|
458
|
-
return b && !b.id && b.type === n && (b.id = `${
|
|
456
|
+
let b = P(n, T);
|
|
457
|
+
const A = n.toLowerCase().replace("-", "_");
|
|
458
|
+
return b && !b.id && b.type === n && (b.id = `${A}_${Math.random().toString().slice(2, 6)}`), b;
|
|
459
459
|
}
|
|
460
460
|
function k(t) {
|
|
461
461
|
}
|
|
462
|
-
function
|
|
462
|
+
function S(...t) {
|
|
463
463
|
}
|
|
464
464
|
return m.value = {
|
|
465
|
-
canMove:
|
|
465
|
+
canMove: d(),
|
|
466
466
|
canSelectParent: D(),
|
|
467
467
|
canDelete: a(),
|
|
468
|
-
canNested: !
|
|
468
|
+
canNested: !c(),
|
|
469
469
|
contents: e == null ? void 0 : e.schema.contents,
|
|
470
|
-
elementRef:
|
|
471
|
-
parent: (
|
|
470
|
+
elementRef: i,
|
|
471
|
+
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
472
472
|
schema: e == null ? void 0 : e.schema,
|
|
473
|
-
styles:
|
|
473
|
+
styles: o,
|
|
474
474
|
designerClass: v,
|
|
475
|
-
canAccepts:
|
|
476
|
-
getBelongedComponentInstance:
|
|
477
|
-
getDraggableDesignItemElement:
|
|
475
|
+
canAccepts: h,
|
|
476
|
+
getBelongedComponentInstance: f,
|
|
477
|
+
getDraggableDesignItemElement: p,
|
|
478
478
|
getDraggingDisplayText: g,
|
|
479
|
-
getPropConfig:
|
|
480
|
-
getDragScopeElement:
|
|
479
|
+
getPropConfig: S,
|
|
480
|
+
getDragScopeElement: j,
|
|
481
481
|
onAcceptMovedChildElement: E,
|
|
482
|
-
onAcceptNewChildElement:
|
|
482
|
+
onAcceptNewChildElement: O,
|
|
483
483
|
onChildElementMovedOut: k,
|
|
484
484
|
addNewChildComponentSchema: L,
|
|
485
|
-
updateDragAndDropRules:
|
|
485
|
+
updateDragAndDropRules: s,
|
|
486
486
|
triggerBelongedComponentToMoveWhenMoved: w(!1),
|
|
487
487
|
triggerBelongedComponentToDeleteWhenDeleted: w(!1)
|
|
488
488
|
}, m;
|
|
@@ -491,92 +491,92 @@ const De = /* @__PURE__ */ B({
|
|
|
491
491
|
name: "FVerifyDetailDesign",
|
|
492
492
|
props: $,
|
|
493
493
|
emits: ["validatorClick", "listshow"],
|
|
494
|
-
setup(
|
|
494
|
+
setup(i, e) {
|
|
495
495
|
let l = [];
|
|
496
|
-
const
|
|
496
|
+
const s = w(i.showList), o = w(i.maxHeight), v = w(i.verifyList), m = w(i.showType), d = w(i.verifyType), D = w(), a = X("design-item-context"), c = Te(D, a);
|
|
497
497
|
Y(() => {
|
|
498
|
-
D.value.componentInstance =
|
|
499
|
-
}), e.expose(
|
|
500
|
-
function
|
|
501
|
-
|
|
498
|
+
D.value.componentInstance = c;
|
|
499
|
+
}), e.expose(c.value);
|
|
500
|
+
function f() {
|
|
501
|
+
s.value = !s.value, e.emit("listshow", s.value);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
var
|
|
505
|
-
(
|
|
503
|
+
function p(n) {
|
|
504
|
+
var y;
|
|
505
|
+
(y = d.value) == null || y.forEach((T) => {
|
|
506
506
|
T.active = T.type === n;
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
l.forEach((
|
|
511
|
-
|
|
509
|
+
function h(n) {
|
|
510
|
+
l.forEach((y) => {
|
|
511
|
+
y.show = y.type === n;
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
function g(n) {
|
|
515
|
-
n.length <= 0 || (
|
|
515
|
+
n.length <= 0 || (p(n.type), h(n.type));
|
|
516
516
|
}
|
|
517
|
-
function
|
|
518
|
-
|
|
517
|
+
function j() {
|
|
518
|
+
s.value = !1, e.emit("listshow", !1);
|
|
519
519
|
}
|
|
520
520
|
function E(n) {
|
|
521
521
|
e.emit("validatorClick", n);
|
|
522
522
|
}
|
|
523
523
|
function L(n) {
|
|
524
|
-
return
|
|
524
|
+
return r("li", {
|
|
525
525
|
class: "f-verify-list",
|
|
526
526
|
onClick: () => E(n)
|
|
527
|
-
}, [
|
|
527
|
+
}, [r("span", {
|
|
528
528
|
class: ["f-icon f-icon-close-outline list-icon list-error", {
|
|
529
529
|
"list-warning": n.type === "warn"
|
|
530
530
|
}]
|
|
531
|
-
}, null),
|
|
531
|
+
}, null), r("div", {
|
|
532
532
|
class: "list-con"
|
|
533
|
-
}, [
|
|
533
|
+
}, [r("p", {
|
|
534
534
|
class: "list-title",
|
|
535
535
|
title: n.title
|
|
536
|
-
}, [n.title]),
|
|
536
|
+
}, [n.title]), r("p", {
|
|
537
537
|
class: "list-msg",
|
|
538
538
|
title: n.msg
|
|
539
539
|
}, [n.msg])])]);
|
|
540
540
|
}
|
|
541
|
-
function
|
|
542
|
-
return l.map((n) =>
|
|
541
|
+
function O() {
|
|
542
|
+
return l.map((n) => r("ul", {
|
|
543
543
|
class: ["f-verify-list-content", {
|
|
544
544
|
active: n.show
|
|
545
545
|
}]
|
|
546
|
-
}, [n.list && n.list.map((
|
|
546
|
+
}, [n.list && n.list.map((y) => L(y))]));
|
|
547
547
|
}
|
|
548
|
-
const k =
|
|
548
|
+
const k = C(() => {
|
|
549
549
|
var n;
|
|
550
550
|
return ((n = v.value) == null ? void 0 : n.length) > 0;
|
|
551
551
|
});
|
|
552
|
-
function
|
|
552
|
+
function S(n) {
|
|
553
553
|
return {
|
|
554
554
|
"btn btn-secondary": !0,
|
|
555
555
|
active: n.active,
|
|
556
556
|
disabled: n.length <= 0
|
|
557
557
|
};
|
|
558
558
|
}
|
|
559
|
-
const
|
|
559
|
+
const M = C(() => {
|
|
560
560
|
var n;
|
|
561
|
-
return (n =
|
|
562
|
-
class:
|
|
563
|
-
onClick: () => g(
|
|
564
|
-
}, [
|
|
565
|
-
}), t =
|
|
561
|
+
return (n = d.value) == null ? void 0 : n.map((y) => r("button", {
|
|
562
|
+
class: S(y),
|
|
563
|
+
onClick: () => g(y)
|
|
564
|
+
}, [y.title, r("span", null, [y.length])]));
|
|
565
|
+
}), t = C(() => {
|
|
566
566
|
var n;
|
|
567
|
-
return
|
|
567
|
+
return r("div", {
|
|
568
568
|
class: "f-verify-nums",
|
|
569
|
-
onClick:
|
|
570
|
-
}, [
|
|
569
|
+
onClick: f
|
|
570
|
+
}, [r("span", {
|
|
571
571
|
class: "nums-icon f-icon f-icon-warning"
|
|
572
|
-
}, null),
|
|
572
|
+
}, null), r("span", {
|
|
573
573
|
class: "nums-count"
|
|
574
574
|
}, [(n = v.value) == null ? void 0 : n.length])]);
|
|
575
575
|
});
|
|
576
|
-
function
|
|
577
|
-
var
|
|
576
|
+
function u() {
|
|
577
|
+
var y;
|
|
578
578
|
const n = [];
|
|
579
|
-
|
|
579
|
+
d.value && ((y = d.value) != null && y.length) && (d.value.map((T) => {
|
|
580
580
|
const b = {
|
|
581
581
|
list: T.type === "all" ? v.value : [],
|
|
582
582
|
show: !1,
|
|
@@ -584,54 +584,54 @@ const De = /* @__PURE__ */ B({
|
|
|
584
584
|
};
|
|
585
585
|
n.push(b);
|
|
586
586
|
}), n.map((T, b) => {
|
|
587
|
-
const
|
|
588
|
-
n[b].list = b !== 0 ?
|
|
589
|
-
}),
|
|
587
|
+
const A = v.value.filter((J) => J.type === T.type);
|
|
588
|
+
n[b].list = b !== 0 ? A : n[b].list;
|
|
589
|
+
}), d.value.map((T, b) => {
|
|
590
590
|
T.length = n[b].list.length;
|
|
591
591
|
})), l = n;
|
|
592
592
|
}
|
|
593
593
|
return F(() => {
|
|
594
|
-
|
|
595
|
-
}), () =>
|
|
594
|
+
u(), h(m.value), p(m.value);
|
|
595
|
+
}), () => r("div", {
|
|
596
596
|
ref: D
|
|
597
|
-
}, [k.value ?
|
|
597
|
+
}, [k.value ? r("div", {
|
|
598
598
|
class: "f-verify-detail"
|
|
599
|
-
}, [
|
|
599
|
+
}, [r("div", {
|
|
600
600
|
class: "f-verify-detail-content"
|
|
601
|
-
}, [t.value,
|
|
601
|
+
}, [t.value, r("div", {
|
|
602
602
|
class: "f-verify-form-main",
|
|
603
|
-
hidden: !
|
|
604
|
-
}, [
|
|
603
|
+
hidden: !s.value
|
|
604
|
+
}, [r("div", {
|
|
605
605
|
class: "f-verify-form-content"
|
|
606
|
-
}, [
|
|
606
|
+
}, [r("div", {
|
|
607
607
|
class: "f-verify-form-content-arrow"
|
|
608
|
-
}, null),
|
|
608
|
+
}, null), r("div", {
|
|
609
609
|
class: "f-verify-form-content-list"
|
|
610
|
-
}, [
|
|
610
|
+
}, [r("div", {
|
|
611
611
|
class: "f-verify-forms-title"
|
|
612
|
-
}, [
|
|
612
|
+
}, [r("div", {
|
|
613
613
|
class: "btn-group"
|
|
614
|
-
}, [
|
|
614
|
+
}, [M.value]), r("div", {
|
|
615
615
|
class: "f-verify-close",
|
|
616
|
-
onClick:
|
|
617
|
-
}, [
|
|
616
|
+
onClick: j
|
|
617
|
+
}, [r("span", {
|
|
618
618
|
class: "f-icon f-icon-close"
|
|
619
|
-
}, null)])]),
|
|
619
|
+
}, null)])]), r("div", {
|
|
620
620
|
class: "f-verify-forms-list",
|
|
621
621
|
style: {
|
|
622
|
-
maxHeight:
|
|
622
|
+
maxHeight: o.value + "px"
|
|
623
623
|
}
|
|
624
|
-
}, [
|
|
624
|
+
}, [O()])])])])])]) : null]);
|
|
625
625
|
}
|
|
626
626
|
}), Ee = {
|
|
627
|
-
install(
|
|
628
|
-
|
|
627
|
+
install(i) {
|
|
628
|
+
i.component(N.name, N), i.provide("FVerifyDetailService", W);
|
|
629
629
|
},
|
|
630
|
-
register(
|
|
631
|
-
|
|
630
|
+
register(i, e, l, s) {
|
|
631
|
+
i["verify-detail"] = N, e["verify-detail"] = R;
|
|
632
632
|
},
|
|
633
|
-
registerDesigner(
|
|
634
|
-
|
|
633
|
+
registerDesigner(i, e, l) {
|
|
634
|
+
i["verify-detail"] = De, e["verify-detail"] = R;
|
|
635
635
|
}
|
|
636
636
|
};
|
|
637
637
|
export {
|