@farris/ui-vue 1.2.8 → 1.2.9
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 +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
var U = Object.defineProperty;
|
|
2
2
|
var z = (i, e, l) => e in i ? U(i, e, { enumerable: !0, configurable: !0, writable: !0, value: l }) : i[e] = l;
|
|
3
3
|
var H = (i, e, l) => z(i, typeof e != "symbol" ? e + "" : e, l);
|
|
4
|
-
import { defineComponent as B, ref as
|
|
4
|
+
import { defineComponent as B, ref as b, 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
7
|
function V(i) {
|
|
8
|
-
const { properties: e, title: l } = i, s = Object.keys(e).reduce((
|
|
9
|
-
return s.id = `${l}-${Date.now()}
|
|
8
|
+
const { properties: e, title: l, ignore: s } = i, o = s && Array.isArray(s), d = Object.keys(e).reduce((h, u) => ((!o || !s.find((D) => D == u)) && (h[u] = e[u].type === "object" && e[u].properties ? V(e[u]) : Z(e[u].default)), h), {});
|
|
9
|
+
return (!o || !s.find((h) => h == "id")) && (d.id = `${l}-${Date.now()}`), d;
|
|
10
10
|
}
|
|
11
|
-
function P(i, e = {}) {
|
|
12
|
-
const
|
|
13
|
-
if (
|
|
14
|
-
let
|
|
15
|
-
const
|
|
16
|
-
return
|
|
11
|
+
function P(i, e = {}, l) {
|
|
12
|
+
const s = _[i];
|
|
13
|
+
if (s) {
|
|
14
|
+
let o = V(s);
|
|
15
|
+
const d = q[i];
|
|
16
|
+
return o = d ? d({ getSchemaByType: P }, o, e, l) : o, o;
|
|
17
17
|
}
|
|
18
18
|
return null;
|
|
19
19
|
}
|
|
@@ -24,12 +24,12 @@ function K(i, e) {
|
|
|
24
24
|
function x(i, e) {
|
|
25
25
|
return Object.keys(i).filter((s) => i[s] != null).reduce((s, o) => {
|
|
26
26
|
if (e.has(o)) {
|
|
27
|
-
const
|
|
28
|
-
if (typeof
|
|
29
|
-
s[
|
|
27
|
+
const d = e.get(o);
|
|
28
|
+
if (typeof d == "string")
|
|
29
|
+
s[d] = i[o];
|
|
30
30
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(s,
|
|
31
|
+
const h = d(o, i[o], i);
|
|
32
|
+
Object.assign(s, h);
|
|
33
33
|
}
|
|
34
34
|
} else
|
|
35
35
|
s[o] = i[o];
|
|
@@ -41,65 +41,65 @@ function I(i, e, l = /* @__PURE__ */ new Map()) {
|
|
|
41
41
|
return x(s, l);
|
|
42
42
|
}
|
|
43
43
|
function ee(i = {}) {
|
|
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(
|
|
44
|
+
function e(a, f, p, y) {
|
|
45
|
+
if (typeof p == "number")
|
|
46
|
+
return y[a].length === p;
|
|
47
|
+
if (typeof p == "object") {
|
|
48
|
+
const m = Object.keys(p)[0], g = p[m];
|
|
49
|
+
if (m === "not")
|
|
50
|
+
return Number(y[a].length) !== Number(g);
|
|
51
|
+
if (m === "moreThan")
|
|
52
|
+
return Number(y[a].length) >= Number(g);
|
|
53
|
+
if (m === "lessThan")
|
|
54
|
+
return Number(y[a].length) <= Number(g);
|
|
55
55
|
}
|
|
56
56
|
return !1;
|
|
57
57
|
}
|
|
58
|
-
function l(a,
|
|
59
|
-
return
|
|
58
|
+
function l(a, f, p, y) {
|
|
59
|
+
return y[a] && y[a].propertyValue && String(y[a].propertyValue.value) === String(p);
|
|
60
60
|
}
|
|
61
61
|
const s = /* @__PURE__ */ new Map([
|
|
62
62
|
["length", e],
|
|
63
63
|
["getProperty", l]
|
|
64
64
|
]);
|
|
65
|
-
Object.keys(i).reduce((a,
|
|
66
|
-
function o(a,
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
65
|
+
Object.keys(i).reduce((a, f) => (a.set(f, i[f]), a), s);
|
|
66
|
+
function o(a, f) {
|
|
67
|
+
const p = a;
|
|
68
|
+
return typeof f == "number" ? [{ target: p, operator: "length", param: null, value: Number(f) }] : typeof f == "boolean" ? [{ target: p, operator: "getProperty", param: a, value: !!f }] : typeof f == "object" ? Object.keys(f).map((y) => {
|
|
69
|
+
if (y === "length")
|
|
70
|
+
return { target: p, operator: "length", param: null, value: f[y] };
|
|
71
|
+
const m = y, g = f[y];
|
|
72
|
+
return { target: p, operator: "getProperty", param: m, value: g };
|
|
73
73
|
}) : [];
|
|
74
74
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.keys(a).reduce((
|
|
77
|
-
const
|
|
78
|
-
return
|
|
75
|
+
function d(a) {
|
|
76
|
+
return Object.keys(a).reduce((p, y) => {
|
|
77
|
+
const m = o(y, a[y]);
|
|
78
|
+
return p.push(...m), p;
|
|
79
79
|
}, []);
|
|
80
80
|
}
|
|
81
|
-
function
|
|
81
|
+
function h(a, f) {
|
|
82
82
|
if (s.has(a.operator)) {
|
|
83
|
-
const
|
|
84
|
-
return
|
|
83
|
+
const p = s.get(a.operator);
|
|
84
|
+
return p && p(a.target, a.param, a.value, f) || !1;
|
|
85
85
|
}
|
|
86
86
|
return !1;
|
|
87
87
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
88
|
+
function u(a, f) {
|
|
89
|
+
return d(a).reduce((m, g) => m && h(g, f), !0);
|
|
90
90
|
}
|
|
91
|
-
function D(a,
|
|
92
|
-
const
|
|
93
|
-
return
|
|
91
|
+
function D(a, f) {
|
|
92
|
+
const p = Object.keys(a), y = p.includes("allOf"), m = p.includes("anyOf"), g = y || m, L = (g ? a[g ? y ? "allOf" : "anyOf" : "allOf"] : [a]).map((k) => u(k, f));
|
|
93
|
+
return y ? !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 ie(i, e, l = /* @__PURE__ */ new Map(), s = (
|
|
100
|
-
return _[e.title] = e, q[e.title] = s, te[e.title] = o, ne[e.title] =
|
|
101
|
-
const
|
|
102
|
-
return Object.assign(D,
|
|
99
|
+
function ie(i, e, l = /* @__PURE__ */ new Map(), s = (h, u, D) => u, o = {}, d = (h) => h) {
|
|
100
|
+
return _[e.title] = e, q[e.title] = s, te[e.title] = o, ne[e.title] = d, (h = {}) => {
|
|
101
|
+
const u = I(h, e, l), D = Object.keys(i).reduce((a, f) => (a[f] = i[f].default, a), {});
|
|
102
|
+
return Object.assign(D, u);
|
|
103
103
|
};
|
|
104
104
|
}
|
|
105
105
|
function se(i, e) {
|
|
@@ -257,25 +257,25 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
257
257
|
emits: ["validatorClick", "listshow"],
|
|
258
258
|
setup(i, e) {
|
|
259
259
|
let l = [];
|
|
260
|
-
const s =
|
|
260
|
+
const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(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 f(t) {
|
|
265
|
+
var v;
|
|
266
|
+
!t && u.value && u.value.length > 0 && (t = u.value[0].type), (v = u.value) == null || v.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 p(t) {
|
|
271
|
+
t = t || l[0].type, l.forEach((v) => {
|
|
272
|
+
v.show = v.type === t;
|
|
273
273
|
});
|
|
274
274
|
}
|
|
275
|
-
function
|
|
276
|
-
t.length <= 0 || (
|
|
275
|
+
function y(t) {
|
|
276
|
+
t.length <= 0 || (f(t.type), p(t.type));
|
|
277
277
|
}
|
|
278
|
-
function
|
|
278
|
+
function m() {
|
|
279
279
|
s.value = !1, e.emit("listshow", !1);
|
|
280
280
|
}
|
|
281
281
|
function g(t) {
|
|
@@ -304,11 +304,11 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
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((v) => j(v))]));
|
|
308
308
|
}
|
|
309
309
|
const L = C(() => {
|
|
310
310
|
var t;
|
|
311
|
-
return ((t =
|
|
311
|
+
return ((t = d.value) == null ? void 0 : t.length) > 0;
|
|
312
312
|
});
|
|
313
313
|
function O(t) {
|
|
314
314
|
return {
|
|
@@ -320,10 +320,10 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
320
320
|
}
|
|
321
321
|
const k = C(() => {
|
|
322
322
|
var t;
|
|
323
|
-
return (t =
|
|
324
|
-
class: O(
|
|
325
|
-
onClick: () =>
|
|
326
|
-
}, [
|
|
323
|
+
return (t = u.value) == null ? void 0 : t.map((v) => r("button", {
|
|
324
|
+
class: O(v),
|
|
325
|
+
onClick: () => y(v)
|
|
326
|
+
}, [v.title, r("span", null, [v.length])]));
|
|
327
327
|
}), S = C(() => {
|
|
328
328
|
var t;
|
|
329
329
|
return r("div", {
|
|
@@ -333,27 +333,27 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
333
333
|
class: "nums-icon f-icon f-icon-warning"
|
|
334
334
|
}, null), r("span", {
|
|
335
335
|
class: "nums-count"
|
|
336
|
-
}, [(t =
|
|
336
|
+
}, [(t = d.value) == null ? void 0 : t.length])]);
|
|
337
337
|
});
|
|
338
338
|
function M() {
|
|
339
|
-
var
|
|
339
|
+
var v;
|
|
340
340
|
const t = [];
|
|
341
|
-
|
|
342
|
-
const
|
|
343
|
-
list: n.type === "all" ?
|
|
341
|
+
u.value && ((v = u.value) != null && v.length) && (u.value.map((n) => {
|
|
342
|
+
const c = {
|
|
343
|
+
list: n.type === "all" ? d.value : [],
|
|
344
344
|
show: !1,
|
|
345
345
|
type: n.type
|
|
346
346
|
};
|
|
347
|
-
t.push(
|
|
348
|
-
}), t.map((n,
|
|
349
|
-
const
|
|
350
|
-
t[
|
|
351
|
-
}),
|
|
352
|
-
n.length = t[
|
|
347
|
+
t.push(c);
|
|
348
|
+
}), t.map((n, c) => {
|
|
349
|
+
const w = d.value.filter((T) => T.type === n.type);
|
|
350
|
+
t[c].list = c !== 0 ? w : t[c].list;
|
|
351
|
+
}), u.value.map((n, c) => {
|
|
352
|
+
n.length = t[c].list.length;
|
|
353
353
|
})), l = t;
|
|
354
354
|
}
|
|
355
355
|
return F(() => {
|
|
356
|
-
M(),
|
|
356
|
+
M(), p(h.value), f(h.value);
|
|
357
357
|
}), () => r("div", {
|
|
358
358
|
class: L ? `f-verify-detail ${D.value}` : ""
|
|
359
359
|
}, [L.value ? r("div", {
|
|
@@ -373,7 +373,7 @@ const ae = "https://json-schema.org/draft/2020-12/schema", oe = "https://farris-
|
|
|
373
373
|
class: "btn-group"
|
|
374
374
|
}, [k.value]), r("div", {
|
|
375
375
|
class: "f-verify-close",
|
|
376
|
-
onClick:
|
|
376
|
+
onClick: m
|
|
377
377
|
}, [r("span", {
|
|
378
378
|
class: "f-icon f-icon-close"
|
|
379
379
|
}, null)])]), r("div", {
|
|
@@ -409,8 +409,8 @@ function Te(i, e, l) {
|
|
|
409
409
|
var M;
|
|
410
410
|
function s() {
|
|
411
411
|
}
|
|
412
|
-
const o = "",
|
|
413
|
-
function
|
|
412
|
+
const o = "", d = "", h = b();
|
|
413
|
+
function u() {
|
|
414
414
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
415
415
|
}
|
|
416
416
|
function D() {
|
|
@@ -419,22 +419,22 @@ function Te(i, e, l) {
|
|
|
419
419
|
function a() {
|
|
420
420
|
return (e == null ? void 0 : e.schema.componentType) !== "frame";
|
|
421
421
|
}
|
|
422
|
-
function
|
|
422
|
+
function f() {
|
|
423
423
|
return (e == null ? void 0 : e.schema.componentType) === "frame";
|
|
424
424
|
}
|
|
425
|
-
function
|
|
425
|
+
function p(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 v = b(t == null ? void 0 : t.value.parent), n = p(v);
|
|
431
431
|
return n || null;
|
|
432
432
|
}
|
|
433
|
-
function
|
|
434
|
-
const { componentInstance:
|
|
435
|
-
return !
|
|
433
|
+
function y(t = e) {
|
|
434
|
+
const { componentInstance: v, designerItemElementRef: n } = t;
|
|
435
|
+
return !v || !v.value ? null : v.value.canMove ? n : y(t.parent);
|
|
436
436
|
}
|
|
437
|
-
function
|
|
437
|
+
function m(t) {
|
|
438
438
|
return !!l;
|
|
439
439
|
}
|
|
440
440
|
function g() {
|
|
@@ -442,39 +442,39 @@ function Te(i, e, l) {
|
|
|
442
442
|
}
|
|
443
443
|
function j() {
|
|
444
444
|
}
|
|
445
|
-
function E(t,
|
|
445
|
+
function E(t, v) {
|
|
446
446
|
}
|
|
447
|
-
function L(t) {
|
|
448
|
-
const { componentType:
|
|
449
|
-
let
|
|
450
|
-
const
|
|
451
|
-
return
|
|
447
|
+
function L(t, v) {
|
|
448
|
+
const { componentType: n } = t;
|
|
449
|
+
let c = P(n, t, v);
|
|
450
|
+
const w = n.toLowerCase().replace("-", "_");
|
|
451
|
+
return c && !c.id && c.type === n && (c.id = `${w}_${Math.random().toString().slice(2, 6)}`), c;
|
|
452
452
|
}
|
|
453
|
-
function O(t,
|
|
454
|
-
const n = String(t.getAttribute("data-controltype")),
|
|
455
|
-
|
|
456
|
-
let
|
|
453
|
+
function O(t, v) {
|
|
454
|
+
const n = String(t.getAttribute("data-controltype")), c = t.getAttribute("data-feature"), w = c ? JSON.parse(c) : {};
|
|
455
|
+
w.parentComponentInstance = h.value;
|
|
456
|
+
let T = P(n, w);
|
|
457
457
|
const A = n.toLowerCase().replace("-", "_");
|
|
458
|
-
return
|
|
458
|
+
return T && !T.id && T.type === n && (T.id = `${A}_${Math.random().toString().slice(2, 6)}`), T;
|
|
459
459
|
}
|
|
460
460
|
function k(t) {
|
|
461
461
|
}
|
|
462
462
|
function S(...t) {
|
|
463
463
|
}
|
|
464
|
-
return
|
|
465
|
-
canMove:
|
|
464
|
+
return h.value = {
|
|
465
|
+
canMove: u(),
|
|
466
466
|
canSelectParent: D(),
|
|
467
467
|
canDelete: a(),
|
|
468
|
-
canNested: !
|
|
468
|
+
canNested: !f(),
|
|
469
469
|
contents: e == null ? void 0 : e.schema.contents,
|
|
470
470
|
elementRef: i,
|
|
471
471
|
parent: (M = e == null ? void 0 : e.parent) == null ? void 0 : M.componentInstance,
|
|
472
472
|
schema: e == null ? void 0 : e.schema,
|
|
473
473
|
styles: o,
|
|
474
|
-
designerClass:
|
|
475
|
-
canAccepts:
|
|
476
|
-
getBelongedComponentInstance:
|
|
477
|
-
getDraggableDesignItemElement:
|
|
474
|
+
designerClass: d,
|
|
475
|
+
canAccepts: m,
|
|
476
|
+
getBelongedComponentInstance: p,
|
|
477
|
+
getDraggableDesignItemElement: y,
|
|
478
478
|
getDraggingDisplayText: g,
|
|
479
479
|
getPropConfig: S,
|
|
480
480
|
getDragScopeElement: j,
|
|
@@ -483,9 +483,9 @@ function Te(i, e, l) {
|
|
|
483
483
|
onChildElementMovedOut: k,
|
|
484
484
|
addNewChildComponentSchema: L,
|
|
485
485
|
updateDragAndDropRules: s,
|
|
486
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
487
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
488
|
-
},
|
|
486
|
+
triggerBelongedComponentToMoveWhenMoved: b(!1),
|
|
487
|
+
triggerBelongedComponentToDeleteWhenDeleted: b(!1)
|
|
488
|
+
}, h;
|
|
489
489
|
}
|
|
490
490
|
const De = /* @__PURE__ */ B({
|
|
491
491
|
name: "FVerifyDetailDesign",
|
|
@@ -493,26 +493,26 @@ const De = /* @__PURE__ */ B({
|
|
|
493
493
|
emits: ["validatorClick", "listshow"],
|
|
494
494
|
setup(i, e) {
|
|
495
495
|
let l = [];
|
|
496
|
-
const s =
|
|
496
|
+
const s = b(i.showList), o = b(i.maxHeight), d = b(i.verifyList), h = b(i.showType), u = b(i.verifyType), D = b(), a = X("design-item-context"), f = Te(D, a);
|
|
497
497
|
Y(() => {
|
|
498
|
-
D.value.componentInstance =
|
|
499
|
-
}), e.expose(
|
|
500
|
-
function
|
|
498
|
+
D.value.componentInstance = f;
|
|
499
|
+
}), e.expose(f.value);
|
|
500
|
+
function p() {
|
|
501
501
|
s.value = !s.value, e.emit("listshow", s.value);
|
|
502
502
|
}
|
|
503
|
-
function
|
|
504
|
-
var
|
|
505
|
-
(
|
|
506
|
-
|
|
503
|
+
function y(n) {
|
|
504
|
+
var c;
|
|
505
|
+
(c = u.value) == null || c.forEach((w) => {
|
|
506
|
+
w.active = w.type === n;
|
|
507
507
|
});
|
|
508
508
|
}
|
|
509
|
-
function
|
|
510
|
-
l.forEach((
|
|
511
|
-
|
|
509
|
+
function m(n) {
|
|
510
|
+
l.forEach((c) => {
|
|
511
|
+
c.show = c.type === n;
|
|
512
512
|
});
|
|
513
513
|
}
|
|
514
514
|
function g(n) {
|
|
515
|
-
n.length <= 0 || (
|
|
515
|
+
n.length <= 0 || (y(n.type), m(n.type));
|
|
516
516
|
}
|
|
517
517
|
function j() {
|
|
518
518
|
s.value = !1, e.emit("listshow", !1);
|
|
@@ -543,11 +543,11 @@ const De = /* @__PURE__ */ B({
|
|
|
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((c) => L(c))]));
|
|
547
547
|
}
|
|
548
548
|
const k = C(() => {
|
|
549
549
|
var n;
|
|
550
|
-
return ((n =
|
|
550
|
+
return ((n = d.value) == null ? void 0 : n.length) > 0;
|
|
551
551
|
});
|
|
552
552
|
function S(n) {
|
|
553
553
|
return {
|
|
@@ -558,40 +558,40 @@ const De = /* @__PURE__ */ B({
|
|
|
558
558
|
}
|
|
559
559
|
const M = C(() => {
|
|
560
560
|
var n;
|
|
561
|
-
return (n =
|
|
562
|
-
class: S(
|
|
563
|
-
onClick: () => g(
|
|
564
|
-
}, [
|
|
561
|
+
return (n = u.value) == null ? void 0 : n.map((c) => r("button", {
|
|
562
|
+
class: S(c),
|
|
563
|
+
onClick: () => g(c)
|
|
564
|
+
}, [c.title, r("span", null, [c.length])]));
|
|
565
565
|
}), t = C(() => {
|
|
566
566
|
var n;
|
|
567
567
|
return r("div", {
|
|
568
568
|
class: "f-verify-nums",
|
|
569
|
-
onClick:
|
|
569
|
+
onClick: p
|
|
570
570
|
}, [r("span", {
|
|
571
571
|
class: "nums-icon f-icon f-icon-warning"
|
|
572
572
|
}, null), r("span", {
|
|
573
573
|
class: "nums-count"
|
|
574
|
-
}, [(n =
|
|
574
|
+
}, [(n = d.value) == null ? void 0 : n.length])]);
|
|
575
575
|
});
|
|
576
|
-
function
|
|
577
|
-
var
|
|
576
|
+
function v() {
|
|
577
|
+
var c;
|
|
578
578
|
const n = [];
|
|
579
|
-
|
|
580
|
-
const
|
|
581
|
-
list:
|
|
579
|
+
u.value && ((c = u.value) != null && c.length) && (u.value.map((w) => {
|
|
580
|
+
const T = {
|
|
581
|
+
list: w.type === "all" ? d.value : [],
|
|
582
582
|
show: !1,
|
|
583
|
-
type:
|
|
583
|
+
type: w.type
|
|
584
584
|
};
|
|
585
|
-
n.push(
|
|
586
|
-
}), n.map((
|
|
587
|
-
const A =
|
|
588
|
-
n[
|
|
589
|
-
}),
|
|
590
|
-
|
|
585
|
+
n.push(T);
|
|
586
|
+
}), n.map((w, T) => {
|
|
587
|
+
const A = d.value.filter((J) => J.type === w.type);
|
|
588
|
+
n[T].list = T !== 0 ? A : n[T].list;
|
|
589
|
+
}), u.value.map((w, T) => {
|
|
590
|
+
w.length = n[T].list.length;
|
|
591
591
|
})), l = n;
|
|
592
592
|
}
|
|
593
593
|
return F(() => {
|
|
594
|
-
|
|
594
|
+
v(), m(h.value), y(h.value);
|
|
595
595
|
}), () => r("div", {
|
|
596
596
|
ref: D
|
|
597
597
|
}, [k.value ? r("div", {
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(g,e){typeof exports=="object"&&typeof module<"u"?e(exports,require("vue"),require("lodash-es")):typeof define=="function"&&define.amd?define(["exports","vue","lodash-es"],e):(g=typeof globalThis<"u"?globalThis:g||self,e(g["verify-detail"]={},g.Vue,g.LodashES))})(this,function(g,e,j){"use strict";var ie=Object.defineProperty;var se=(g,e,j)=>e in g?ie(g,e,{enumerable:!0,configurable:!0,writable:!0,value:j}):g[e]=j;var _=(g,e,j)=>se(g,typeof e!="symbol"?e+"":e,j);const B={},F={};function $(i){const{properties:t,title:o,ignore:s}=i,l=s&&Array.isArray(s),h=Object.keys(t).reduce((m,f)=>((!l||!s.find(w=>w==f))&&(m[f]=t[f].type==="object"&&t[f].properties?$(t[f]):j.cloneDeep(t[f].default)),m),{});return(!l||!s.find(m=>m=="id"))&&(h.id=`${o}-${Date.now()}`),h}function P(i,t={},o){const s=B[i];if(s){let l=$(s);const h=F[i];return l=h?h({getSchemaByType:P},l,t,o):l,l}return null}function q(i,t){const o=$(t);return Object.keys(i).reduce((s,l)=>(s[l]&&typeof s[l]=="object"?Object.assign(s[l],i[l]):s[l]=i[l],s),o),o}function W(i,t){return Object.keys(i).filter(s=>i[s]!=null).reduce((s,l)=>{if(t.has(l)){const h=t.get(l);if(typeof h=="string")s[h]=i[l];else{const m=h(l,i[l],i);Object.assign(s,m)}}else s[l]=i[l];return s},{})}function J(i,t,o=new Map){const s=q(i,t);return W(s,o)}function U(i={}){function t(a,u,p,d){if(typeof p=="number")return d[a].length===p;if(typeof p=="object"){const v=Object.keys(p)[0],N=p[v];if(v==="not")return Number(d[a].length)!==Number(N);if(v==="moreThan")return Number(d[a].length)>=Number(N);if(v==="lessThan")return Number(d[a].length)<=Number(N)}return!1}function o(a,u,p,d){return d[a]&&d[a].propertyValue&&String(d[a].propertyValue.value)===String(p)}const s=new Map([["length",t],["getProperty",o]]);Object.keys(i).reduce((a,u)=>(a.set(u,i[u]),a),s);function l(a,u){const p=a;return typeof u=="number"?[{target:p,operator:"length",param:null,value:Number(u)}]:typeof u=="boolean"?[{target:p,operator:"getProperty",param:a,value:!!u}]:typeof u=="object"?Object.keys(u).map(d=>{if(d==="length")return{target:p,operator:"length",param:null,value:u[d]};const v=d,N=u[d];return{target:p,operator:"getProperty",param:v,value:N}}):[]}function h(a){return Object.keys(a).reduce((p,d)=>{const v=l(d,a[d]);return p.push(...v),p},[])}function m(a,u){if(s.has(a.operator)){const p=s.get(a.operator);return p&&p(a.target,a.param,a.value,u)||!1}return!1}function f(a,u){return h(a).reduce((v,N)=>v&&m(N,u),!0)}function w(a,u){const p=Object.keys(a),d=p.includes("allOf"),v=p.includes("anyOf"),N=d||v,T=(N?a[N?d?"allOf":"anyOf":"allOf"]:[a]).map(L=>f(L,u));return d?!T.includes(!1):T.includes(!0)}return{parseValueSchema:w}}const z={},G={};U();function Q(i,t,o=new Map,s=(m,f,w)=>f,l={},h=m=>m){return B[t.title]=t,F[t.title]=s,z[t.title]=l,G[t.title]=h,(m={})=>{const f=J(m,t,o),w=Object.keys(i).reduce((a,u)=>(a[u]=i[u].default,a),{});return Object.assign(w,f)}}function X(i,t){return{customClass:t.class,customStyle:t.style}}const Y=new Map([["appearance",X]]);function Z(i,t,o){return t}const K={$schema:"https://json-schema.org/draft/2020-12/schema",$id:"https://farris-design.gitee.io/verify-detail.schema.json",title:"verify-detail",description:"A Farris Component",type:"object",properties:{id:{description:"The unique identifier for verify-detail",type:"string"},type:{description:"The type string of verify-detail",type:"string",default:"verify-detail"},appearance:{description:"",type:"object",properties:{class:{type:"string"},style:{type:"string"}},default:{}},binding:{description:"",type:"object",default:{}},disable:{type:"string",default:!1},editable:{description:"",type:"boolean",default:!0},placeholder:{description:"",type:"string",default:""},readonly:{description:"",type:"boolean",default:!1},require:{description:"",type:"boolean",default:!1},tabindex:{description:"",type:"number",default:-1},visible:{description:"",type:"boolean",default:!0}},required:["id","type"]},x={title:"verify-detail",description:"A Farris Component",type:"object",categories:{basic:{description:"Basic Infomation",title:"基本信息",properties:{id:{description:"组件标识",title:"标识",type:"string",readonly:!0},type:{description:"组件类型",title:"控件类型",type:"select",editor:{type:"waiting for modification",enum:[]}}}}}},C={showType:{type:String,default:""},showList:{type:Boolean,default:!1},verifyList:{type:Array,default:[{id:"111",title:"单据信息[销售组织]",msg:"字段值不能为空",type:"empty"},{id:"222",title:"单据信息[销售组织]",msg:"字段值不能为空",type:"empty"}]},verifyType:{type:Array,default:[{id:"vertifyType1",type:"all",title:"全部"},{id:"vertifyType3",type:"empty",title:"值为空"}]},customClass:{type:String,default:""},maxHeight:{type:Number,default:200}},A=Q(C,K,Y,Z,x),S=e.defineComponent({name:"FVerifyDetail",props:C,emits:["validatorClick","listshow"],setup(i,t){let o=[];const s=e.ref(i.showList),l=e.ref(i.maxHeight),h=e.ref(i.verifyList),m=e.ref(i.showType),f=e.ref(i.verifyType),w=e.ref(i.customClass);function a(){s.value=!s.value,t.emit("listshow",s.value)}function u(n){var y;!n&&f.value&&f.value.length>0&&(n=f.value[0].type),(y=f.value)==null||y.forEach(r=>{r.active=r.type===n})}function p(n){n=n||o[0].type,o.forEach(y=>{y.show=y.type===n})}function d(n){n.length<=0||(u(n.type),p(n.type))}function v(){s.value=!1,t.emit("listshow",!1)}function N(n){t.emit("validatorClick",n)}function D(n){return e.createVNode("li",{class:"f-verify-list",onClick:()=>N(n)},[e.createVNode("span",{class:["f-icon f-icon-close-outline list-icon list-error",{"list-warning":n.type==="warn"}]},null),e.createVNode("div",{class:"list-con"},[e.createVNode("p",{class:"list-title",title:n.title},[n.title]),e.createVNode("p",{class:"list-msg",title:n.msg},[n.msg])])])}function M(){return o.map(n=>e.createVNode("ul",{class:["f-verify-list-content",{active:n.show}]},[n.list&&n.list.map(y=>D(y))]))}const T=e.computed(()=>{var n;return((n=h.value)==null?void 0:n.length)>0});function E(n){return{btn:!0,"verify-title-btn":!0,"f-state-selected":n.active,disabled:n.length<=0}}const L=e.computed(()=>{var n;return(n=f.value)==null?void 0:n.map(y=>e.createVNode("button",{class:E(y),onClick:()=>d(y)},[y.title,e.createVNode("span",null,[y.length])]))}),k=e.computed(()=>{var n;return e.createVNode("div",{class:"f-verify-nums",onClick:a},[e.createVNode("span",{class:"nums-icon f-icon f-icon-warning"},null),e.createVNode("span",{class:"nums-count"},[(n=h.value)==null?void 0:n.length])])});function O(){var y;const n=[];f.value&&((y=f.value)!=null&&y.length)&&(f.value.map(r=>{const c={list:r.type==="all"?h.value:[],show:!1,type:r.type};n.push(c)}),n.map((r,c)=>{const V=h.value.filter(b=>b.type===r.type);n[c].list=c!==0?V:n[c].list}),f.value.map((r,c)=>{r.length=n[c].list.length})),o=n}return e.onBeforeMount(()=>{O(),p(m.value),u(m.value)}),()=>e.createVNode("div",{class:T?`f-verify-detail ${w.value}`:""},[T.value?e.createVNode("div",{class:"f-verify-detail-content"},[k.value,e.createVNode("div",{class:"f-verify-form-main",hidden:!s.value},[e.createVNode("div",{class:"f-verify-form-content"},[e.createVNode("div",{class:"f-verify-form-content-arrow"},null),e.createVNode("div",{class:"f-verify-form-content-list"},[e.createVNode("div",{class:"f-verify-forms-title"},[e.createVNode("div",{class:"btn-group"},[L.value]),e.createVNode("div",{class:"f-verify-close",onClick:v},[e.createVNode("span",{class:"f-icon f-icon-close"},null)])]),e.createVNode("div",{class:"f-verify-forms-list",style:{maxHeight:l.value+"px"}},[M()])])])])]):null])}});function I(i,t,o){e.createApp({setup(){return e.onUnmounted(()=>{t&&t()}),()=>e.createVNode(S,i,null)}}).mount(o)}class H{static show(t,o){this.clear();let s=0;this.verifyContainer=document.createElement("div"),o?(s=o.offsetHeight-110,o.appendChild(this.verifyContainer)):(s=document.documentElement.clientHeight-110,document.body.appendChild(this.verifyContainer)),t.maxHeight=t.maxHeight?t.maxHeight:s,I(t,this.clear,this.verifyContainer)}static clear(){let t=this.verifyContainer;t&&(t.parentNode&&t.parentNode.removeChild(t),t=null)}}_(H,"verifyContainer",null);function ee(i,t,o){var O;function s(){}const l="",h="",m=e.ref();function f(){return(t==null?void 0:t.schema.componentType)!=="frame"}function w(){return!1}function a(){return(t==null?void 0:t.schema.componentType)!=="frame"}function u(){return(t==null?void 0:t.schema.componentType)==="frame"}function p(n){if(!n||!n.value)return null;if(n.value.schema&&n.value.schema.type==="component")return n.value;const y=e.ref(n==null?void 0:n.value.parent),r=p(y);return r||null}function d(n=t){const{componentInstance:y,designerItemElementRef:r}=n;return!y||!y.value?null:y.value.canMove?r:d(n.parent)}function v(n){return!!o}function N(){return(t==null?void 0:t.schema.label)||(t==null?void 0:t.schema.title)||(t==null?void 0:t.schema.name)}function D(){}function M(n,y){}function T(n,y){const{componentType:r}=n;let c=P(r,n,y);const V=r.toLowerCase().replace("-","_");return c&&!c.id&&c.type===r&&(c.id=`${V}_${Math.random().toString().slice(2,6)}`),c}function E(n,y){const r=String(n.getAttribute("data-controltype")),c=n.getAttribute("data-feature"),V=c?JSON.parse(c):{};V.parentComponentInstance=m.value;let b=P(r,V);const R=r.toLowerCase().replace("-","_");return b&&!b.id&&b.type===r&&(b.id=`${R}_${Math.random().toString().slice(2,6)}`),b}function L(n){}function k(...n){}return m.value={canMove:f(),canSelectParent:w(),canDelete:a(),canNested:!u(),contents:t==null?void 0:t.schema.contents,elementRef:i,parent:(O=t==null?void 0:t.parent)==null?void 0:O.componentInstance,schema:t==null?void 0:t.schema,styles:l,designerClass:h,canAccepts:v,getBelongedComponentInstance:p,getDraggableDesignItemElement:d,getDraggingDisplayText:N,getPropConfig:k,getDragScopeElement:D,onAcceptMovedChildElement:M,onAcceptNewChildElement:E,onChildElementMovedOut:L,addNewChildComponentSchema:T,updateDragAndDropRules:s,triggerBelongedComponentToMoveWhenMoved:e.ref(!1),triggerBelongedComponentToDeleteWhenDeleted:e.ref(!1)},m}const te=e.defineComponent({name:"FVerifyDetailDesign",props:C,emits:["validatorClick","listshow"],setup(i,t){let o=[];const s=e.ref(i.showList),l=e.ref(i.maxHeight),h=e.ref(i.verifyList),m=e.ref(i.showType),f=e.ref(i.verifyType),w=e.ref(),a=e.inject("design-item-context"),u=ee(w,a);e.onMounted(()=>{w.value.componentInstance=u}),t.expose(u.value);function p(){s.value=!s.value,t.emit("listshow",s.value)}function d(r){var c;(c=f.value)==null||c.forEach(V=>{V.active=V.type===r})}function v(r){o.forEach(c=>{c.show=c.type===r})}function N(r){r.length<=0||(d(r.type),v(r.type))}function D(){s.value=!1,t.emit("listshow",!1)}function M(r){t.emit("validatorClick",r)}function T(r){return e.createVNode("li",{class:"f-verify-list",onClick:()=>M(r)},[e.createVNode("span",{class:["f-icon f-icon-close-outline list-icon list-error",{"list-warning":r.type==="warn"}]},null),e.createVNode("div",{class:"list-con"},[e.createVNode("p",{class:"list-title",title:r.title},[r.title]),e.createVNode("p",{class:"list-msg",title:r.msg},[r.msg])])])}function E(){return o.map(r=>e.createVNode("ul",{class:["f-verify-list-content",{active:r.show}]},[r.list&&r.list.map(c=>T(c))]))}const L=e.computed(()=>{var r;return((r=h.value)==null?void 0:r.length)>0});function k(r){return{"btn btn-secondary":!0,active:r.active,disabled:r.length<=0}}const O=e.computed(()=>{var r;return(r=f.value)==null?void 0:r.map(c=>e.createVNode("button",{class:k(c),onClick:()=>N(c)},[c.title,e.createVNode("span",null,[c.length])]))}),n=e.computed(()=>{var r;return e.createVNode("div",{class:"f-verify-nums",onClick:p},[e.createVNode("span",{class:"nums-icon f-icon f-icon-warning"},null),e.createVNode("span",{class:"nums-count"},[(r=h.value)==null?void 0:r.length])])});function y(){var c;const r=[];f.value&&((c=f.value)!=null&&c.length)&&(f.value.map(V=>{const b={list:V.type==="all"?h.value:[],show:!1,type:V.type};r.push(b)}),r.map((V,b)=>{const R=h.value.filter(re=>re.type===V.type);r[b].list=b!==0?R:r[b].list}),f.value.map((V,b)=>{V.length=r[b].list.length})),o=r}return e.onBeforeMount(()=>{y(),v(m.value),d(m.value)}),()=>e.createVNode("div",{ref:w},[L.value?e.createVNode("div",{class:"f-verify-detail"},[e.createVNode("div",{class:"f-verify-detail-content"},[n.value,e.createVNode("div",{class:"f-verify-form-main",hidden:!s.value},[e.createVNode("div",{class:"f-verify-form-content"},[e.createVNode("div",{class:"f-verify-form-content-arrow"},null),e.createVNode("div",{class:"f-verify-form-content-list"},[e.createVNode("div",{class:"f-verify-forms-title"},[e.createVNode("div",{class:"btn-group"},[O.value]),e.createVNode("div",{class:"f-verify-close",onClick:D},[e.createVNode("span",{class:"f-icon f-icon-close"},null)])]),e.createVNode("div",{class:"f-verify-forms-list",style:{maxHeight:l.value+"px"}},[E()])])])])])]):null])}}),ne={install(i){i.component(S.name,S),i.provide("FVerifyDetailService",H)},register(i,t,o,s){i["verify-detail"]=S,t["verify-detail"]=A},registerDesigner(i,t,o){i["verify-detail"]=te,t["verify-detail"]=A}};g.FVerifyDetail=S,g.FVerifyDetailService=H,g.default=ne,g.propsResolver=A,g.verifyDetailProps=C,Object.defineProperties(g,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
|