@farris/ui-vue 1.6.5-beta.7 → 1.6.5
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 +65 -65
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +360 -361
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +524 -520
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +134 -134
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +192 -192
- package/components/capsule/index.umd.cjs +1 -1
- package/components/code-editor/index.esm.js +8 -8
- package/components/code-editor/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +72 -72
- package/components/collection-property-editor/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +291 -289
- package/components/color-picker/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +190 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +113 -112
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +3 -1
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +309 -309
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +1125 -1124
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +472 -472
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +99 -99
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3387 -3321
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +1604 -1601
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +1082 -1079
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/discussion-editor/index.esm.js +973 -1040
- package/components/discussion-editor/index.umd.cjs +6 -6
- package/components/dropdown/index.esm.js +335 -330
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +177 -177
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +6 -6
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +344 -344
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +644 -644
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +1773 -1760
- package/components/expression-editor/index.umd.cjs +4 -4
- package/components/fieldset/index.esm.js +55 -55
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +879 -869
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-condition-editor/index.esm.js +1091 -1077
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +215 -215
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/html-template/index.esm.js +164 -164
- package/components/html-template/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +198 -198
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/json-editor/index.esm.js +64 -64
- package/components/json-editor/index.umd.cjs +1 -1
- package/components/language-textbox/index.esm.js +140 -140
- package/components/language-textbox/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +111 -111
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +90 -90
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +139 -141
- package/components/list-view/index.umd.cjs +3 -3
- package/components/locale/index.esm.js +833 -901
- package/components/locale/index.umd.cjs +6 -6
- package/components/lookup/index.esm.js +1352 -1351
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +1387 -1383
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/menu-lookup/index.esm.js +1059 -1127
- package/components/menu-lookup/index.umd.cjs +6 -6
- package/components/message-box/index.esm.js +217 -217
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.esm.js +283 -283
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +106 -106
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +194 -194
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +463 -462
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +883 -876
- package/components/order/index.umd.cjs +4 -4
- package/components/page-footer/index.esm.js +94 -94
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +942 -939
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +82 -82
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +59 -57
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +113 -113
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.esm.js +151 -150
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +739 -739
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.esm.js +4142 -4190
- package/components/query-solution/index.umd.cjs +6 -6
- package/components/radio-button/index.esm.js +182 -182
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +106 -106
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +535 -535
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +1456 -1443
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +779 -776
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1875 -1866
- package/components/schema-selector/index.umd.cjs +7 -7
- package/components/search-box/index.esm.js +151 -147
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +1236 -1233
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +163 -163
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/sort-condition-editor/index.esm.js +1097 -1083
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/splitter/index.esm.js +3 -3
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +133 -133
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +103 -98
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +1596 -1593
- package/components/tabs/index.umd.cjs +2 -2
- package/components/tags/index.esm.js +93 -93
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +138 -138
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +684 -684
- package/components/textarea/index.umd.cjs +2 -2
- package/components/time-picker/index.esm.js +935 -929
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tooltip/index.esm.js +173 -171
- package/components/tooltip/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +190 -192
- package/components/transfer/index.umd.cjs +4 -4
- package/components/tree-grid/index.esm.js +124 -124
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2363 -2278
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +170 -170
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +196 -196
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +227 -227
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +9 -9
- package/components/weather/index.umd.cjs +2 -2
- package/designer/button-edit/index.esm.js +353 -353
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/checkbox/index.esm.js +7 -3
- package/designer/checkbox/index.umd.cjs +1 -1
- package/designer/checkbox-group/index.esm.js +38 -33
- package/designer/checkbox-group/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +3562 -3536
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +3 -3
- package/designer/data-view/index.umd.cjs +3 -3
- package/designer/farris-designer.all.esm.js +4203 -4193
- package/designer/farris-designer.all.umd.cjs +9 -9
- package/designer/input-group/index.esm.js +97 -97
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/list-view/index.esm.js +1868 -1854
- package/designer/list-view/index.umd.cjs +8 -8
- package/designer/radio-group/index.esm.js +954 -949
- package/designer/radio-group/index.umd.cjs +1 -1
- package/farris.all.esm.js +16195 -16126
- package/farris.all.umd.cjs +30 -30
- package/locales/data-grid/ui/en.json +2 -2
- package/locales/designer/en.json +7 -6
- package/locales/designer/zh-CHS.json +2 -1
- package/locales/designer/zh-CHT.json +2 -1
- package/locales/ui/en.json +7 -6
- package/locales/ui/zh-CHS.json +2 -1
- package/locales/ui/zh-CHT.json +2 -1
- package/package.json +1 -1
- package/types/combo-list/src/property-config/combo-list.property-config.d.ts +0 -6
- package/types/data-view/composition/types.d.ts +10 -4
- package/types/lookup/src/composition/use-dialog.d.ts +2 -0
- package/types/lookup/src/composition/use-input-change.d.ts +1 -0
|
@@ -2,12 +2,12 @@ var me = Object.defineProperty;
|
|
|
2
2
|
var de = (e, t, n) => t in e ? me(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
3
|
var G = (e, t, n) => de(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as R, computed as _, defineComponent as Z, watch as J, createVNode as v, onBeforeMount as x, createApp as ye, onUnmounted as ge, inject as be, onMounted as he } from "vue";
|
|
5
|
-
import {
|
|
6
|
-
import { getSchemaByTypeForDesigner as
|
|
5
|
+
import { cloneDeep as Q, isPlainObject as X } from "lodash-es";
|
|
6
|
+
import { getSchemaByTypeForDesigner as Te } from "../dynamic-resolver/index.esm.js";
|
|
7
7
|
function K(e, t) {
|
|
8
8
|
let n;
|
|
9
9
|
function o(s) {
|
|
10
|
-
const { properties:
|
|
10
|
+
const { properties: l, title: d, ignore: i } = s, a = i && Array.isArray(i), f = Object.keys(l).reduce((g, r) => ((!a || !i.find((b) => b === r)) && (g[r] = l[r].type === "object" && l[r].properties ? o(l[r]) : Q(l[r].default)), g), {});
|
|
11
11
|
if (d && (!a || !i.find((g) => g === "id"))) {
|
|
12
12
|
const g = d.toLowerCase().replace(/-/g, "_");
|
|
13
13
|
f.id = `${g}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -15,9 +15,9 @@ function K(e, t) {
|
|
|
15
15
|
return f;
|
|
16
16
|
}
|
|
17
17
|
function h(s) {
|
|
18
|
-
const { properties:
|
|
18
|
+
const { properties: l, title: d, required: i } = s;
|
|
19
19
|
if (i && Array.isArray(i)) {
|
|
20
|
-
const a = i.reduce((f, g) => (f[g] =
|
|
20
|
+
const a = i.reduce((f, g) => (f[g] = l[g].type === "object" && l[g].properties ? o(l[g]) : Q(l[g].default), f), {});
|
|
21
21
|
if (d && i.find((f) => f === "id")) {
|
|
22
22
|
const f = d.toLowerCase().replace(/-/g, "_");
|
|
23
23
|
a.id = `${f}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -28,23 +28,23 @@ function K(e, t) {
|
|
|
28
28
|
type: d
|
|
29
29
|
};
|
|
30
30
|
}
|
|
31
|
-
function j(s,
|
|
31
|
+
function j(s, l = {}, d) {
|
|
32
32
|
const i = e[s];
|
|
33
33
|
if (i) {
|
|
34
34
|
let a = h(i);
|
|
35
35
|
const f = t[s];
|
|
36
|
-
return a = f ? f({ getSchemaByType: j }, a,
|
|
36
|
+
return a = f ? f({ getSchemaByType: j }, a, l, d) : a, n != null && n.appendIdentifyForNewControl && n.appendIdentifyForNewControl(a), a;
|
|
37
37
|
}
|
|
38
38
|
return null;
|
|
39
39
|
}
|
|
40
|
-
function
|
|
41
|
-
const d = o(
|
|
42
|
-
return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(s, a) && (i[a] &&
|
|
40
|
+
function w(s, l) {
|
|
41
|
+
const d = o(l);
|
|
42
|
+
return Object.keys(d).reduce((i, a) => (Object.prototype.hasOwnProperty.call(s, a) && (i[a] && X(i[a]) && X(s[a] || !s[a]) ? Object.assign(i[a], s[a] || {}) : i[a] = s[a]), i), d), d;
|
|
43
43
|
}
|
|
44
|
-
function E(s,
|
|
44
|
+
function E(s, l) {
|
|
45
45
|
return Object.keys(s).filter((i) => s[i] != null).reduce((i, a) => {
|
|
46
|
-
if (
|
|
47
|
-
const f =
|
|
46
|
+
if (l.has(a)) {
|
|
47
|
+
const f = l.get(a);
|
|
48
48
|
if (typeof f == "string")
|
|
49
49
|
i[f] = s[a];
|
|
50
50
|
else {
|
|
@@ -56,20 +56,20 @@ function K(e, t) {
|
|
|
56
56
|
return i;
|
|
57
57
|
}, {});
|
|
58
58
|
}
|
|
59
|
-
function N(s,
|
|
60
|
-
const i =
|
|
59
|
+
function N(s, l, d = /* @__PURE__ */ new Map()) {
|
|
60
|
+
const i = w(s, l);
|
|
61
61
|
return E(i, d);
|
|
62
62
|
}
|
|
63
63
|
function m(s) {
|
|
64
64
|
var d;
|
|
65
|
-
const
|
|
66
|
-
if (
|
|
67
|
-
const i = e[
|
|
65
|
+
const l = s.type;
|
|
66
|
+
if (l) {
|
|
67
|
+
const i = e[l];
|
|
68
68
|
if (!i)
|
|
69
69
|
return s;
|
|
70
|
-
const a =
|
|
70
|
+
const a = w(s, i), f = ((d = s.editor) == null ? void 0 : d.type) || "";
|
|
71
71
|
if (f) {
|
|
72
|
-
const g = e[f], r =
|
|
72
|
+
const g = e[f], r = w(s.editor, g);
|
|
73
73
|
a.editor = r;
|
|
74
74
|
}
|
|
75
75
|
return a;
|
|
@@ -81,24 +81,24 @@ function K(e, t) {
|
|
|
81
81
|
}
|
|
82
82
|
return { getSchemaByType: j, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: N, mappingSchemaToProps: E, setDesignerContext: y };
|
|
83
83
|
}
|
|
84
|
-
const I = {}, ee = {}, { resolveSchemaWithDefaultValue:
|
|
84
|
+
const I = {}, ee = {}, { getSchemaByType: gt, resolveSchemaWithDefaultValue: Se, resolveSchemaToProps: we, mappingSchemaToProps: Fe, setDesignerContext: bt } = K(I, ee);
|
|
85
85
|
function De(e = {}) {
|
|
86
|
-
function t(m, y, s,
|
|
86
|
+
function t(m, y, s, l) {
|
|
87
87
|
if (typeof s == "number")
|
|
88
|
-
return
|
|
88
|
+
return l[m].length === s;
|
|
89
89
|
if (typeof s == "object") {
|
|
90
90
|
const d = Object.keys(s)[0], i = s[d];
|
|
91
91
|
if (d === "not")
|
|
92
|
-
return Number(
|
|
92
|
+
return Number(l[m].length) !== Number(i);
|
|
93
93
|
if (d === "moreThan")
|
|
94
|
-
return Number(
|
|
94
|
+
return Number(l[m].length) >= Number(i);
|
|
95
95
|
if (d === "lessThan")
|
|
96
|
-
return Number(
|
|
96
|
+
return Number(l[m].length) <= Number(i);
|
|
97
97
|
}
|
|
98
98
|
return !1;
|
|
99
99
|
}
|
|
100
|
-
function n(m, y, s,
|
|
101
|
-
return
|
|
100
|
+
function n(m, y, s, l) {
|
|
101
|
+
return l[m] && l[m].propertyValue && String(l[m].propertyValue.value) === String(s);
|
|
102
102
|
}
|
|
103
103
|
const o = /* @__PURE__ */ new Map([
|
|
104
104
|
["length", t],
|
|
@@ -107,20 +107,20 @@ function De(e = {}) {
|
|
|
107
107
|
Object.keys(e).reduce((m, y) => (m.set(y, e[y]), m), o);
|
|
108
108
|
function h(m, y) {
|
|
109
109
|
const s = m;
|
|
110
|
-
return typeof y == "number" ? [{ target: s, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!y }] : typeof y == "object" ? Object.keys(y).map((
|
|
111
|
-
if (
|
|
112
|
-
return { target: s, operator: "length", param: null, value: y[
|
|
113
|
-
const d =
|
|
110
|
+
return typeof y == "number" ? [{ target: s, operator: "length", param: null, value: Number(y) }] : typeof y == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!y }] : typeof y == "object" ? Object.keys(y).map((l) => {
|
|
111
|
+
if (l === "length")
|
|
112
|
+
return { target: s, operator: "length", param: null, value: y[l] };
|
|
113
|
+
const d = l, i = y[l];
|
|
114
114
|
return { target: s, operator: "getProperty", param: d, value: i };
|
|
115
115
|
}) : [];
|
|
116
116
|
}
|
|
117
117
|
function j(m) {
|
|
118
|
-
return Object.keys(m).reduce((s,
|
|
119
|
-
const d = h(
|
|
118
|
+
return Object.keys(m).reduce((s, l) => {
|
|
119
|
+
const d = h(l, m[l]);
|
|
120
120
|
return s.push(...d), s;
|
|
121
121
|
}, []);
|
|
122
122
|
}
|
|
123
|
-
function
|
|
123
|
+
function w(m, y) {
|
|
124
124
|
if (o.has(m.operator)) {
|
|
125
125
|
const s = o.get(m.operator);
|
|
126
126
|
return s && s(m.target, m.param, m.value, y) || !1;
|
|
@@ -128,20 +128,20 @@ function De(e = {}) {
|
|
|
128
128
|
return !1;
|
|
129
129
|
}
|
|
130
130
|
function E(m, y) {
|
|
131
|
-
return j(m).reduce((d, i) => d &&
|
|
131
|
+
return j(m).reduce((d, i) => d && w(i, y), !0);
|
|
132
132
|
}
|
|
133
133
|
function N(m, y) {
|
|
134
|
-
const s = Object.keys(m),
|
|
135
|
-
return
|
|
134
|
+
const s = Object.keys(m), l = s.includes("allOf"), d = s.includes("anyOf"), i = l || d, g = (i ? m[i ? l ? "allOf" : "anyOf" : "allOf"] : [m]).map((b) => E(b, y));
|
|
135
|
+
return l ? !g.includes(!1) : g.includes(!0);
|
|
136
136
|
}
|
|
137
137
|
return { parseValueSchema: N };
|
|
138
138
|
}
|
|
139
|
-
const
|
|
139
|
+
const Pe = {
|
|
140
140
|
convertTo: (e, t, n, o) => {
|
|
141
141
|
e.appearance || (e.appearance = {}), e.appearance[t] = n;
|
|
142
142
|
},
|
|
143
143
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
144
|
-
},
|
|
144
|
+
}, Oe = {
|
|
145
145
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
146
146
|
}, ke = {
|
|
147
147
|
convertTo: (e, t, n, o) => {
|
|
@@ -255,7 +255,7 @@ const Oe = {
|
|
|
255
255
|
]));
|
|
256
256
|
},
|
|
257
257
|
convertFrom: (e, t, n) => e.command && t === "enable" ? e.command.enable : ""
|
|
258
|
-
},
|
|
258
|
+
}, Ce = {
|
|
259
259
|
convertTo: (e, t, n, o) => {
|
|
260
260
|
e.column ? e.column[t] = n : e.column = {
|
|
261
261
|
[t]: n
|
|
@@ -270,7 +270,7 @@ const Oe = {
|
|
|
270
270
|
}
|
|
271
271
|
return "";
|
|
272
272
|
}
|
|
273
|
-
},
|
|
273
|
+
}, Le = {
|
|
274
274
|
convertTo: (e, t, n, o) => {
|
|
275
275
|
e.summary ? e.summary[t] = n : e.summary = {
|
|
276
276
|
[t]: n
|
|
@@ -280,7 +280,7 @@ const Oe = {
|
|
|
280
280
|
});
|
|
281
281
|
},
|
|
282
282
|
convertFrom: (e, t, n) => e.summary && t === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : ""
|
|
283
|
-
},
|
|
283
|
+
}, $e = {
|
|
284
284
|
convertTo: (e, t, n, o) => {
|
|
285
285
|
e.group ? e.group[t] = n : e.group = {
|
|
286
286
|
[t]: n
|
|
@@ -298,7 +298,7 @@ const Oe = {
|
|
|
298
298
|
return e.group.showSummary;
|
|
299
299
|
}
|
|
300
300
|
}
|
|
301
|
-
},
|
|
301
|
+
}, Be = {
|
|
302
302
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
303
303
|
convertTo: (e, t, n) => {
|
|
304
304
|
if (n && n.length > 0) {
|
|
@@ -379,19 +379,19 @@ const Oe = {
|
|
|
379
379
|
};
|
|
380
380
|
function ne(e, t, n) {
|
|
381
381
|
const o = /* @__PURE__ */ new Map([
|
|
382
|
-
["/converter/appearance.converter",
|
|
383
|
-
["/converter/buttons.converter",
|
|
382
|
+
["/converter/appearance.converter", Pe],
|
|
383
|
+
["/converter/buttons.converter", Oe],
|
|
384
384
|
["/converter/property-editor.converter", ke],
|
|
385
385
|
["/converter/items-count.converter", He],
|
|
386
386
|
["/converter/type.converter", Ee],
|
|
387
387
|
["/converter/change-editor.converter", Me],
|
|
388
388
|
["/converter/change-formatter.converter", je],
|
|
389
389
|
["/converter/column-command.converter", Ne],
|
|
390
|
-
["/converter/column-option.converter",
|
|
391
|
-
["/converter/summary.converter",
|
|
392
|
-
["/converter/group.converter",
|
|
390
|
+
["/converter/column-option.converter", Ce],
|
|
391
|
+
["/converter/summary.converter", Le],
|
|
392
|
+
["/converter/group.converter", $e],
|
|
393
393
|
["/converter/form-group-label.converter", _e],
|
|
394
|
-
["/converter/field-selector.converter",
|
|
394
|
+
["/converter/field-selector.converter", Be],
|
|
395
395
|
["/converter/pagination.converter", Re],
|
|
396
396
|
["/converter/row-number.converter", Ae],
|
|
397
397
|
["/converter/grid-selection.converter", qe],
|
|
@@ -425,75 +425,75 @@ function ne(e, t, n) {
|
|
|
425
425
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
426
426
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
427
427
|
]), j = De();
|
|
428
|
-
function
|
|
428
|
+
function w(i, a) {
|
|
429
429
|
return () => j.parseValueSchema(i, a);
|
|
430
430
|
}
|
|
431
431
|
function E(i, a, f) {
|
|
432
|
-
return i.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 :
|
|
432
|
+
return i.includes("visible") && a.visible !== void 0 ? typeof a.visible == "boolean" ? () => !!a.visible : a.visible === void 0 ? !0 : w(a.visible, f) : () => !0;
|
|
433
433
|
}
|
|
434
434
|
function N(i, a, f) {
|
|
435
|
-
return i.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly :
|
|
435
|
+
return i.includes("readonly") && a.readonly !== void 0 ? typeof a.readonly == "boolean" ? () => !!a.readonly : w(a.readonly, f) : () => !1;
|
|
436
436
|
}
|
|
437
437
|
function m(i, a) {
|
|
438
438
|
const f = i.$converter || a;
|
|
439
439
|
return typeof f == "string" && f && o.has(f) ? o.get(f) || null : f || null;
|
|
440
440
|
}
|
|
441
|
-
function y(i, a, f, g, r, b = "",
|
|
441
|
+
function y(i, a, f, g, r, b = "", O = "") {
|
|
442
442
|
return Object.keys(i).map((F) => {
|
|
443
|
-
const
|
|
444
|
-
|
|
445
|
-
const
|
|
446
|
-
let
|
|
443
|
+
const C = R(1), u = F, c = i[F], P = Object.keys(c), L = c.title, p = c.type, T = h.get(p) || { type: "input-group", enableClear: !1 }, S = c.editor ? Object.assign({}, T, c.editor) : Object.assign({}, T), D = E(P, c, a), M = N(P, c, a);
|
|
444
|
+
S.readonly = S.readonly === void 0 ? M() : S.readonly;
|
|
445
|
+
const B = c.type === "cascade" ? y(c.properties, a, f, g, r, b, O) : [], H = !0;
|
|
446
|
+
let $ = m(c, O);
|
|
447
447
|
const A = _({
|
|
448
448
|
get() {
|
|
449
|
-
if (
|
|
450
|
-
if (["class", "style"].find((ve) => ve === u) &&
|
|
451
|
-
return
|
|
449
|
+
if (C.value) {
|
|
450
|
+
if (["class", "style"].find((ve) => ve === u) && !$ && ($ = o.get("/converter/appearance.converter") || null), $ && $.convertFrom)
|
|
451
|
+
return $.convertFrom(f, F, r, b);
|
|
452
452
|
const q = f[F];
|
|
453
|
-
return Object.prototype.hasOwnProperty.call(
|
|
453
|
+
return Object.prototype.hasOwnProperty.call(c, "defaultValue") && (q === void 0 || typeof q == "string" && q === "") ? c.type === "boolean" ? c.defaultValue : c.defaultValue || "" : q;
|
|
454
454
|
}
|
|
455
455
|
return null;
|
|
456
456
|
},
|
|
457
457
|
set(q) {
|
|
458
|
-
|
|
458
|
+
C.value += 1, $ && $.convertTo ? ($.convertTo(g, F, q, r, b), $.convertTo(f, F, q, r, b)) : (g[F] = q, f[F] = q);
|
|
459
459
|
}
|
|
460
|
-
}), { refreshPanelAfterChanged: z, description: ue, isExpand: fe, parentPropertyID: pe } =
|
|
460
|
+
}), { refreshPanelAfterChanged: z, description: ue, isExpand: fe, parentPropertyID: pe } = c, U = { propertyID: u, propertyName: L, propertyType: p, propertyValue: A, editor: S, visible: D, readonly: M, cascadeConfig: B, hideCascadeTitle: H, refreshPanelAfterChanged: z, description: ue, isExpand: fe, parentPropertyID: pe };
|
|
461
461
|
return a[u] = U, U;
|
|
462
462
|
});
|
|
463
463
|
}
|
|
464
464
|
function s(i, a, f = {}) {
|
|
465
465
|
const g = {}, r = e[i];
|
|
466
|
-
return r && r.categories ? Object.keys(r.categories).map((
|
|
467
|
-
const k = r.categories[
|
|
468
|
-
return { categoryId:
|
|
466
|
+
return r && r.categories ? Object.keys(r.categories).map((O) => {
|
|
467
|
+
const k = r.categories[O], F = k == null ? void 0 : k.title, C = y(k.properties || {}, g, {}, f, a);
|
|
468
|
+
return { categoryId: O, categoryName: F, properties: C };
|
|
469
469
|
}) : [];
|
|
470
470
|
}
|
|
471
|
-
function
|
|
472
|
-
const b = a.$ref.schema,
|
|
473
|
-
if (
|
|
474
|
-
const
|
|
475
|
-
|
|
476
|
-
|
|
471
|
+
function l(i, a, f, g, r = "") {
|
|
472
|
+
const b = a.$ref.schema, O = a.$ref.converter, k = f[b], F = k.type, C = n(k), u = {}, c = e[F];
|
|
473
|
+
if (c && c.categories) {
|
|
474
|
+
const P = c.categories[i], L = P == null ? void 0 : P.title;
|
|
475
|
+
O && Object.keys(P.properties).forEach((S) => {
|
|
476
|
+
P.properties[S].$converter = O;
|
|
477
477
|
});
|
|
478
|
-
const p = (
|
|
479
|
-
return { categoryId: i, categoryName:
|
|
478
|
+
const p = (P == null ? void 0 : P.properties) || {}, T = y(p, u, C, k, g, r);
|
|
479
|
+
return { categoryId: i, categoryName: L, properties: T };
|
|
480
480
|
}
|
|
481
481
|
return { categoryId: i, categoryName: "", properties: [] };
|
|
482
482
|
}
|
|
483
483
|
function d(i, a, f, g, r) {
|
|
484
|
-
const b = i.type,
|
|
484
|
+
const b = i.type, O = n(i), k = {};
|
|
485
485
|
let F = r || e[b];
|
|
486
486
|
if (F && Object.keys(F).length === 0 && f && f.getPropConfig && (F = f.getPropConfig(g)), F && F.categories) {
|
|
487
|
-
const
|
|
487
|
+
const C = [];
|
|
488
488
|
return Object.keys(F.categories).map((u) => {
|
|
489
|
-
const
|
|
490
|
-
if (
|
|
491
|
-
|
|
489
|
+
const c = F.categories[u];
|
|
490
|
+
if (c.$ref) {
|
|
491
|
+
C.push(l(u, c, i, a, g));
|
|
492
492
|
return;
|
|
493
493
|
}
|
|
494
|
-
const
|
|
495
|
-
|
|
496
|
-
}),
|
|
494
|
+
const P = c == null ? void 0 : c.title, L = c == null ? void 0 : c.tabId, p = c == null ? void 0 : c.tabName, T = c == null ? void 0 : c.hide, S = c == null ? void 0 : c.hideTitle, D = y(c.properties || {}, k, O, i, a, g, c.$converter), { setPropertyRelates: M } = c, B = c == null ? void 0 : c.parentPropertyID;
|
|
495
|
+
C.push({ categoryId: u, categoryName: P, tabId: L, tabName: p, hide: T, properties: D, hideTitle: S, setPropertyRelates: M, parentPropertyID: B });
|
|
496
|
+
}), C;
|
|
497
497
|
}
|
|
498
498
|
return [];
|
|
499
499
|
}
|
|
@@ -504,14 +504,14 @@ function ne(e, t, n) {
|
|
|
504
504
|
};
|
|
505
505
|
}
|
|
506
506
|
const re = {}, oe = {};
|
|
507
|
-
ne(re, oe,
|
|
508
|
-
const ie = {}, ae = {}, { resolveSchemaWithDefaultValue: Je } = K(ie, ae), se = {},
|
|
509
|
-
ne(se,
|
|
510
|
-
function Qe(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
511
|
-
return I[t.title] = t, ee[t.title] = o, re[t.title] = h, oe[t.title] = j, ie[t.title] = t, ae[t.title] = o, se[t.title] = h,
|
|
507
|
+
ne(re, oe, Se);
|
|
508
|
+
const ie = {}, ae = {}, { getSchemaByType: ht, resolveSchemaWithDefaultValue: Je, resolveSchemaToProps: Tt, mappingSchemaToProps: St, setDesignerContext: wt } = K(ie, ae), se = {}, ce = {};
|
|
509
|
+
ne(se, ce, Je);
|
|
510
|
+
function Qe(e, t, n = /* @__PURE__ */ new Map(), o = (w, E, N, m) => E, h = {}, j = (w) => w) {
|
|
511
|
+
return I[t.title] = t, ee[t.title] = o, re[t.title] = h, oe[t.title] = j, ie[t.title] = t, ae[t.title] = o, se[t.title] = h, ce[t.title] = j, (w = {}, E = !0) => {
|
|
512
512
|
if (!E)
|
|
513
|
-
return Fe(
|
|
514
|
-
const N =
|
|
513
|
+
return Fe(w, n);
|
|
514
|
+
const N = we(w, t, n), m = Object.keys(e).reduce((y, s) => (y[s] = e[s].default, y), {});
|
|
515
515
|
return Object.assign(m, N);
|
|
516
516
|
};
|
|
517
517
|
}
|
|
@@ -597,7 +597,7 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
597
597
|
type: tt,
|
|
598
598
|
properties: nt,
|
|
599
599
|
required: rt
|
|
600
|
-
}, it = "verify-detail", at = "A Farris Component", st = "object",
|
|
600
|
+
}, it = "verify-detail", at = "A Farris Component", st = "object", ct = {
|
|
601
601
|
basic: {
|
|
602
602
|
description: "Basic Infomation",
|
|
603
603
|
title: "基本信息",
|
|
@@ -619,11 +619,11 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
619
619
|
}
|
|
620
620
|
}
|
|
621
621
|
}
|
|
622
|
-
},
|
|
622
|
+
}, lt = {
|
|
623
623
|
title: it,
|
|
624
624
|
description: at,
|
|
625
625
|
type: st,
|
|
626
|
-
categories:
|
|
626
|
+
categories: ct
|
|
627
627
|
}, W = {
|
|
628
628
|
/** 表单验证默认显示的分组信息 */
|
|
629
629
|
showType: { type: String, default: "" },
|
|
@@ -638,7 +638,7 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
638
638
|
maxHeight: { type: Number, default: 200 },
|
|
639
639
|
/** 验证信息条目点击事件回调 */
|
|
640
640
|
onValidatorClick: { type: Function }
|
|
641
|
-
}, Y = Qe(W, ot, Ye, Ze,
|
|
641
|
+
}, Y = Qe(W, ot, Ye, Ze, lt), V = /* @__PURE__ */ Z({
|
|
642
642
|
name: "FVerifyDetail",
|
|
643
643
|
props: W,
|
|
644
644
|
emits: ["validatorClick", "listshow"],
|
|
@@ -655,10 +655,10 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
655
655
|
function j() {
|
|
656
656
|
o.value = !o.value, t.emit("listshow", o.value);
|
|
657
657
|
}
|
|
658
|
-
function
|
|
658
|
+
function w(r) {
|
|
659
659
|
var b;
|
|
660
|
-
!r && h.value && h.value.length > 0 && (r = h.value[0].type), (b = h.value) == null || b.forEach((
|
|
661
|
-
|
|
660
|
+
!r && h.value && h.value.length > 0 && (r = h.value[0].type), (b = h.value) == null || b.forEach((O) => {
|
|
661
|
+
O.active = O.type === r;
|
|
662
662
|
});
|
|
663
663
|
}
|
|
664
664
|
function E(r) {
|
|
@@ -667,7 +667,7 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
667
667
|
});
|
|
668
668
|
}
|
|
669
669
|
function N(r) {
|
|
670
|
-
r.length <= 0 || (
|
|
670
|
+
r.length <= 0 || (w(r.type), E(r.type));
|
|
671
671
|
}
|
|
672
672
|
function m() {
|
|
673
673
|
o.value = !1, t.emit("listshow", !1);
|
|
@@ -694,7 +694,7 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
694
694
|
title: r.msg
|
|
695
695
|
}, [r.msg])])]);
|
|
696
696
|
}
|
|
697
|
-
function
|
|
697
|
+
function l() {
|
|
698
698
|
return n.map((r) => v("ul", {
|
|
699
699
|
class: ["f-verify-list-content", {
|
|
700
700
|
active: r.show
|
|
@@ -733,22 +733,22 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
733
733
|
function g() {
|
|
734
734
|
var b;
|
|
735
735
|
const r = [];
|
|
736
|
-
h.value && ((b = h.value) != null && b.length) && (h.value.map((
|
|
736
|
+
h.value && ((b = h.value) != null && b.length) && (h.value.map((O) => {
|
|
737
737
|
const k = {
|
|
738
|
-
list:
|
|
738
|
+
list: O.type === "all" ? e.verifyList : [],
|
|
739
739
|
show: !1,
|
|
740
|
-
type:
|
|
740
|
+
type: O.type
|
|
741
741
|
};
|
|
742
742
|
r.push(k);
|
|
743
|
-
}), r.map((
|
|
744
|
-
const F = e.verifyList.filter((
|
|
743
|
+
}), r.map((O, k) => {
|
|
744
|
+
const F = e.verifyList.filter((C) => C.type === O.type);
|
|
745
745
|
r[k].list = k !== 0 ? F : r[k].list;
|
|
746
|
-
}), h.value.map((
|
|
747
|
-
|
|
746
|
+
}), h.value.map((O, k) => {
|
|
747
|
+
O.length = r[k].list.length;
|
|
748
748
|
})), n = r;
|
|
749
749
|
}
|
|
750
750
|
return x(() => {
|
|
751
|
-
g(), E(e.showType),
|
|
751
|
+
g(), E(e.showType), w(e.showType);
|
|
752
752
|
}), () => v("div", {
|
|
753
753
|
class: d.value ? `f-verify-detail ${e.customClass}` : ""
|
|
754
754
|
}, [d.value ? v("div", {
|
|
@@ -776,7 +776,7 @@ const xe = "https://json-schema.org/draft/2020-12/schema", Ke = "https://farris-
|
|
|
776
776
|
style: {
|
|
777
777
|
maxHeight: e.maxHeight + "px"
|
|
778
778
|
}
|
|
779
|
-
}, [
|
|
779
|
+
}, [l()])])])])]) : null]);
|
|
780
780
|
}
|
|
781
781
|
});
|
|
782
782
|
function ut(e, t, n) {
|
|
@@ -788,7 +788,7 @@ function ut(e, t, n) {
|
|
|
788
788
|
}
|
|
789
789
|
}).mount(n);
|
|
790
790
|
}
|
|
791
|
-
class
|
|
791
|
+
class le {
|
|
792
792
|
static show(t, n) {
|
|
793
793
|
this.clear();
|
|
794
794
|
let o = 0;
|
|
@@ -799,11 +799,11 @@ class ce {
|
|
|
799
799
|
t && (t.parentNode && t.parentNode.removeChild(t), t = null);
|
|
800
800
|
}
|
|
801
801
|
}
|
|
802
|
-
G(
|
|
802
|
+
G(le, "verifyContainer", null);
|
|
803
803
|
function ft(e, t, n) {
|
|
804
|
-
var
|
|
804
|
+
var L;
|
|
805
805
|
const o = "", h = "", j = R();
|
|
806
|
-
let
|
|
806
|
+
let w;
|
|
807
807
|
function E() {
|
|
808
808
|
return (t == null ? void 0 : t.schema.componentType) !== "frame";
|
|
809
809
|
}
|
|
@@ -821,98 +821,98 @@ function ft(e, t, n) {
|
|
|
821
821
|
return null;
|
|
822
822
|
if (p.value.schema && p.value.schema.type === "component")
|
|
823
823
|
return p.value;
|
|
824
|
-
const
|
|
825
|
-
return
|
|
824
|
+
const T = R(p == null ? void 0 : p.value.parent), S = s(T);
|
|
825
|
+
return S || null;
|
|
826
826
|
}
|
|
827
|
-
function
|
|
827
|
+
function l(p = t) {
|
|
828
828
|
var M;
|
|
829
|
-
const { componentInstance:
|
|
830
|
-
if (!
|
|
829
|
+
const { componentInstance: T, designerItemElementRef: S } = p;
|
|
830
|
+
if (!T || !T.value)
|
|
831
831
|
return null;
|
|
832
|
-
const { getCustomButtons: D } =
|
|
833
|
-
return
|
|
832
|
+
const { getCustomButtons: D } = T.value;
|
|
833
|
+
return T.value.canMove || D && ((M = D()) != null && M.length) ? S : l(p.parent);
|
|
834
834
|
}
|
|
835
835
|
function d(p) {
|
|
836
|
-
return
|
|
836
|
+
return !!n;
|
|
837
837
|
}
|
|
838
838
|
function i() {
|
|
839
839
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
840
840
|
}
|
|
841
841
|
function a() {
|
|
842
842
|
}
|
|
843
|
-
function f(p,
|
|
844
|
-
var
|
|
845
|
-
!p || !
|
|
843
|
+
function f(p, T) {
|
|
844
|
+
var S;
|
|
845
|
+
!p || !T || (S = t == null ? void 0 : t.setupContext) == null || S.emit("dragEnd");
|
|
846
846
|
}
|
|
847
|
-
function g(p,
|
|
848
|
-
const { componentType:
|
|
849
|
-
let D =
|
|
850
|
-
const M =
|
|
851
|
-
return D && !D.id && D.type ===
|
|
847
|
+
function g(p, T) {
|
|
848
|
+
const { componentType: S } = p;
|
|
849
|
+
let D = Te(S, p, T);
|
|
850
|
+
const M = S.toLowerCase().replace(/-/g, "_");
|
|
851
|
+
return D && !D.id && D.type === S && (D.id = `${M}_${Math.random().toString().slice(2, 6)}`), D;
|
|
852
852
|
}
|
|
853
853
|
function r(p) {
|
|
854
854
|
}
|
|
855
855
|
function b(...p) {
|
|
856
856
|
}
|
|
857
|
-
function
|
|
857
|
+
function O(p) {
|
|
858
858
|
if (!p)
|
|
859
859
|
return;
|
|
860
|
-
const
|
|
861
|
-
if (
|
|
862
|
-
const D =
|
|
863
|
-
D > -1 &&
|
|
860
|
+
const T = t == null ? void 0 : t.schema, { formSchemaUtils: S } = p;
|
|
861
|
+
if (T && S.getExpressions().length) {
|
|
862
|
+
const D = S.getExpressions().findIndex((M) => M.target === T.id);
|
|
863
|
+
D > -1 && S.getExpressions().splice(D, 1);
|
|
864
864
|
}
|
|
865
865
|
}
|
|
866
866
|
function k(p) {
|
|
867
867
|
if (!p || !(t != null && t.schema))
|
|
868
868
|
return;
|
|
869
|
-
const
|
|
870
|
-
|
|
869
|
+
const T = t.schema, { formSchemaUtils: S } = p;
|
|
870
|
+
S.removeCommunicationInComponent(T);
|
|
871
871
|
}
|
|
872
872
|
function F(p) {
|
|
873
|
-
|
|
874
|
-
let
|
|
875
|
-
|
|
876
|
-
const D = e.value.querySelectorAll(`#${
|
|
873
|
+
O(p), k(p), t != null && t.schema.contents && t.schema.contents.map((T) => {
|
|
874
|
+
let S = T.id;
|
|
875
|
+
T.type === "component-ref" && (S = T.component);
|
|
876
|
+
const D = e.value.querySelectorAll(`#${S}-design-item`);
|
|
877
877
|
D != null && D.length && Array.from(D).map((M) => {
|
|
878
|
-
var
|
|
879
|
-
(
|
|
878
|
+
var B;
|
|
879
|
+
(B = M == null ? void 0 : M.componentInstance) != null && B.value.onRemoveComponent && M.componentInstance.value.onRemoveComponent(p);
|
|
880
880
|
});
|
|
881
881
|
});
|
|
882
882
|
}
|
|
883
|
-
function
|
|
883
|
+
function C() {
|
|
884
884
|
}
|
|
885
885
|
function u(p) {
|
|
886
|
-
var
|
|
887
|
-
if (!((
|
|
886
|
+
var S, D;
|
|
887
|
+
if (!((S = t == null ? void 0 : t.schema) != null && S.id))
|
|
888
888
|
return;
|
|
889
|
-
!
|
|
890
|
-
let
|
|
889
|
+
!w && p && (w = p.formSchemaUtils);
|
|
890
|
+
let T = "";
|
|
891
891
|
{
|
|
892
|
-
const { text: M, title:
|
|
893
|
-
|
|
892
|
+
const { text: M, title: B, label: H, mainTitle: $, name: A, type: z } = t.schema;
|
|
893
|
+
T = M || B || H || $ || A || ((D = te[z]) == null ? void 0 : D.name);
|
|
894
894
|
}
|
|
895
|
-
|
|
896
|
-
componentTitle:
|
|
897
|
-
parentPathName:
|
|
895
|
+
T && w.getControlBasicInfoMap().set(t.schema.id, {
|
|
896
|
+
componentTitle: T,
|
|
897
|
+
parentPathName: T
|
|
898
898
|
});
|
|
899
899
|
}
|
|
900
|
-
function
|
|
900
|
+
function c(p) {
|
|
901
901
|
var M;
|
|
902
|
-
const { changeObject:
|
|
903
|
-
if (["text", "title", "label", "name", "mainTitle"].includes((M = p == null ? void 0 : p.changeObject) == null ? void 0 : M.propertyID) &&
|
|
904
|
-
const
|
|
902
|
+
const { changeObject: T } = p, { propertyID: S, propertyValue: D } = T;
|
|
903
|
+
if (["text", "title", "label", "name", "mainTitle"].includes((M = p == null ? void 0 : p.changeObject) == null ? void 0 : M.propertyID) && S && D && (u(), w)) {
|
|
904
|
+
const B = w.getControlBasicInfoMap(), H = B.keys().toArray().filter(($) => {
|
|
905
905
|
var A, z;
|
|
906
|
-
return ((A =
|
|
906
|
+
return ((A = B.get($)) == null ? void 0 : A.reliedComponentId) === ((z = t == null ? void 0 : t.schema) == null ? void 0 : z.id);
|
|
907
907
|
});
|
|
908
|
-
H != null && H.length && H.forEach((
|
|
909
|
-
const A =
|
|
910
|
-
A[0] = D,
|
|
908
|
+
H != null && H.length && H.forEach(($) => {
|
|
909
|
+
const A = B.get($).parentPathName.split(" > ");
|
|
910
|
+
A[0] = D, B.get($).parentPathName = A.join(" > ");
|
|
911
911
|
});
|
|
912
912
|
}
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
|
|
914
|
+
function P(p) {
|
|
915
|
+
c(p);
|
|
916
916
|
}
|
|
917
917
|
return j.value = {
|
|
918
918
|
canMove: E(),
|
|
@@ -921,13 +921,13 @@ function ft(e, t, n) {
|
|
|
921
921
|
canNested: !y(),
|
|
922
922
|
contents: t == null ? void 0 : t.schema.contents,
|
|
923
923
|
elementRef: e,
|
|
924
|
-
parent: (
|
|
924
|
+
parent: (L = t == null ? void 0 : t.parent) == null ? void 0 : L.componentInstance,
|
|
925
925
|
schema: t == null ? void 0 : t.schema,
|
|
926
926
|
styles: o,
|
|
927
927
|
designerClass: h,
|
|
928
928
|
canAccepts: d,
|
|
929
929
|
getBelongedComponentInstance: s,
|
|
930
|
-
getDraggableDesignItemElement:
|
|
930
|
+
getDraggableDesignItemElement: l,
|
|
931
931
|
getDraggingDisplayText: i,
|
|
932
932
|
getPropConfig: b,
|
|
933
933
|
getDragScopeElement: a,
|
|
@@ -937,8 +937,8 @@ function ft(e, t, n) {
|
|
|
937
937
|
triggerBelongedComponentToMoveWhenMoved: R(!1),
|
|
938
938
|
triggerBelongedComponentToDeleteWhenDeleted: R(!1),
|
|
939
939
|
onRemoveComponent: F,
|
|
940
|
-
getCustomButtons:
|
|
941
|
-
onPropertyChanged:
|
|
940
|
+
getCustomButtons: C,
|
|
941
|
+
onPropertyChanged: P,
|
|
942
942
|
setComponentBasicInfoMap: u,
|
|
943
943
|
updateContextSchema: t == null ? void 0 : t.updateContextSchema
|
|
944
944
|
}, j;
|
|
@@ -949,26 +949,26 @@ const pt = /* @__PURE__ */ Z({
|
|
|
949
949
|
emits: ["validatorClick", "listshow"],
|
|
950
950
|
setup(e, t) {
|
|
951
951
|
let n = [];
|
|
952
|
-
const o = R(e.showList), h = R(e.maxHeight), j = R(e.verifyList),
|
|
952
|
+
const o = R(e.showList), h = R(e.maxHeight), j = R(e.verifyList), w = R(e.showType), E = R(e.verifyType), N = R(), m = be("design-item-context"), y = ft(N, m);
|
|
953
953
|
he(() => {
|
|
954
954
|
N.value.componentInstance = y;
|
|
955
955
|
}), t.expose(y.value);
|
|
956
956
|
function s() {
|
|
957
957
|
o.value = !o.value, t.emit("listshow", o.value);
|
|
958
958
|
}
|
|
959
|
-
function
|
|
960
|
-
var
|
|
961
|
-
(
|
|
962
|
-
|
|
959
|
+
function l(u) {
|
|
960
|
+
var c;
|
|
961
|
+
(c = E.value) == null || c.forEach((P) => {
|
|
962
|
+
P.active = P.type === u;
|
|
963
963
|
});
|
|
964
964
|
}
|
|
965
965
|
function d(u) {
|
|
966
|
-
n.forEach((
|
|
967
|
-
|
|
966
|
+
n.forEach((c) => {
|
|
967
|
+
c.show = c.type === u;
|
|
968
968
|
});
|
|
969
969
|
}
|
|
970
970
|
function i(u) {
|
|
971
|
-
u.length <= 0 || (
|
|
971
|
+
u.length <= 0 || (l(u.type), d(u.type));
|
|
972
972
|
}
|
|
973
973
|
function a() {
|
|
974
974
|
o.value = !1, t.emit("listshow", !1);
|
|
@@ -999,13 +999,13 @@ const pt = /* @__PURE__ */ Z({
|
|
|
999
999
|
class: ["f-verify-list-content", {
|
|
1000
1000
|
active: u.show
|
|
1001
1001
|
}]
|
|
1002
|
-
}, [u.list && u.list.map((
|
|
1002
|
+
}, [u.list && u.list.map((c) => g(c))]));
|
|
1003
1003
|
}
|
|
1004
1004
|
const b = _(() => {
|
|
1005
1005
|
var u;
|
|
1006
1006
|
return ((u = j.value) == null ? void 0 : u.length) > 0;
|
|
1007
1007
|
});
|
|
1008
|
-
function
|
|
1008
|
+
function O(u) {
|
|
1009
1009
|
return {
|
|
1010
1010
|
"btn btn-secondary": !0,
|
|
1011
1011
|
active: u.active,
|
|
@@ -1014,10 +1014,10 @@ const pt = /* @__PURE__ */ Z({
|
|
|
1014
1014
|
}
|
|
1015
1015
|
const k = _(() => {
|
|
1016
1016
|
var u;
|
|
1017
|
-
return (u = E.value) == null ? void 0 : u.map((
|
|
1018
|
-
class:
|
|
1019
|
-
onClick: () => i(
|
|
1020
|
-
}, [
|
|
1017
|
+
return (u = E.value) == null ? void 0 : u.map((c) => v("button", {
|
|
1018
|
+
class: O(c),
|
|
1019
|
+
onClick: () => i(c)
|
|
1020
|
+
}, [c.title, v("span", null, [c.length])]));
|
|
1021
1021
|
}), F = _(() => {
|
|
1022
1022
|
var u;
|
|
1023
1023
|
return v("div", {
|
|
@@ -1029,25 +1029,25 @@ const pt = /* @__PURE__ */ Z({
|
|
|
1029
1029
|
class: "nums-count"
|
|
1030
1030
|
}, [(u = j.value) == null ? void 0 : u.length])]);
|
|
1031
1031
|
});
|
|
1032
|
-
function
|
|
1033
|
-
var
|
|
1032
|
+
function C() {
|
|
1033
|
+
var c;
|
|
1034
1034
|
const u = [];
|
|
1035
|
-
E.value && ((
|
|
1036
|
-
const
|
|
1037
|
-
list:
|
|
1035
|
+
E.value && ((c = E.value) != null && c.length) && (E.value.map((P) => {
|
|
1036
|
+
const L = {
|
|
1037
|
+
list: P.type === "all" ? j.value : [],
|
|
1038
1038
|
show: !1,
|
|
1039
|
-
type:
|
|
1039
|
+
type: P.type
|
|
1040
1040
|
};
|
|
1041
|
-
u.push(
|
|
1042
|
-
}), u.map((
|
|
1043
|
-
const p = j.value.filter((
|
|
1044
|
-
u[
|
|
1045
|
-
}), E.value.map((
|
|
1046
|
-
|
|
1041
|
+
u.push(L);
|
|
1042
|
+
}), u.map((P, L) => {
|
|
1043
|
+
const p = j.value.filter((T) => T.type === P.type);
|
|
1044
|
+
u[L].list = L !== 0 ? p : u[L].list;
|
|
1045
|
+
}), E.value.map((P, L) => {
|
|
1046
|
+
P.length = u[L].list.length;
|
|
1047
1047
|
})), n = u;
|
|
1048
1048
|
}
|
|
1049
1049
|
return x(() => {
|
|
1050
|
-
|
|
1050
|
+
C(), d(w.value), l(w.value);
|
|
1051
1051
|
}), () => v("div", {
|
|
1052
1052
|
ref: N
|
|
1053
1053
|
}, [b.value ? v("div", {
|
|
@@ -1079,9 +1079,9 @@ const pt = /* @__PURE__ */ Z({
|
|
|
1079
1079
|
}
|
|
1080
1080
|
}, [r()])])])])])]) : null]);
|
|
1081
1081
|
}
|
|
1082
|
-
}),
|
|
1082
|
+
}), Ft = {
|
|
1083
1083
|
install(e) {
|
|
1084
|
-
e.component(V.name, V), e.provide("FVerifyDetailService",
|
|
1084
|
+
e.component(V.name, V), e.provide("FVerifyDetailService", le);
|
|
1085
1085
|
},
|
|
1086
1086
|
register(e, t, n, o) {
|
|
1087
1087
|
e["verify-detail"] = V, t["verify-detail"] = Y;
|
|
@@ -1092,8 +1092,8 @@ const pt = /* @__PURE__ */ Z({
|
|
|
1092
1092
|
};
|
|
1093
1093
|
export {
|
|
1094
1094
|
V as FVerifyDetail,
|
|
1095
|
-
|
|
1096
|
-
|
|
1095
|
+
le as FVerifyDetailService,
|
|
1096
|
+
Ft as default,
|
|
1097
1097
|
Y as propsResolver,
|
|
1098
1098
|
W as verifyDetailProps
|
|
1099
1099
|
};
|