@farris/ui-vue 1.7.2-beta.1 → 1.7.2-beta.2
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/avatar/index.esm.js +155 -148
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +226 -224
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +225 -223
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +76 -71
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +169 -167
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.esm.js +3691 -3043
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +2015 -1352
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +407 -430
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3082 -3196
- package/components/data-view/index.umd.cjs +1 -1
- package/components/designer-canvas/index.esm.js +3364 -2713
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +66 -64
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1176 -524
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +182 -180
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +531 -455
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +2352 -1700
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +8 -3
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/filter-bar/index.esm.js +422 -413
- package/components/filter-bar/index.umd.cjs +2 -2
- package/components/filter-condition-editor/index.esm.js +8 -3
- package/components/filter-condition-editor/index.umd.cjs +1 -1
- package/components/image/index.esm.js +363 -354
- package/components/image/index.umd.cjs +2 -2
- package/components/language-textbox/index.esm.js +189 -187
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-view/index.esm.js +388 -389
- package/components/list-view/index.umd.cjs +5 -5
- package/components/mapping-editor/index.esm.js +1465 -1488
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +180 -173
- package/components/number-range/index.umd.cjs +1 -1
- package/components/order/index.esm.js +815 -811
- package/components/order/index.umd.cjs +5 -5
- package/components/property-panel/index.esm.js +429 -420
- package/components/property-panel/index.umd.cjs +3 -3
- package/components/query-solution/index.esm.js +4746 -4085
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/schema-selector/index.esm.js +1401 -1402
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/section/index.esm.js +102 -100
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +8 -3
- package/components/sort-condition-editor/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +537 -538
- package/components/transfer/index.umd.cjs +5 -5
- package/components/tree-grid/index.esm.js +280 -283
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +200 -202
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +533 -519
- package/components/uploader/index.umd.cjs +2 -2
- package/designer/data-grid/index.esm.js +3806 -3905
- package/designer/data-grid/index.umd.cjs +9 -9
- package/designer/drawer/index.esm.js +188 -186
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +1562 -1073
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +9793 -8613
- package/designer/farris-designer.all.umd.cjs +8 -8
- package/designer/list-view/index.esm.js +564 -564
- package/designer/list-view/index.umd.cjs +6 -6
- package/designer/radio-group/index.esm.js +236 -229
- package/designer/radio-group/index.umd.cjs +1 -1
- package/designer/response-layout-editor/index.esm.js +178 -171
- package/designer/response-layout-editor/index.umd.cjs +1 -1
- package/designer/tabs/index.esm.js +3154 -2508
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +193 -186
- package/designer/time-picker/index.umd.cjs +1 -1
- package/designer/tree-grid/index.esm.js +444 -447
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/farris.all.esm.js +60126 -59649
- package/farris.all.umd.cjs +30 -30
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/components.d.ts +1 -1
- package/types/condition/src/composition/condition-value/dropdown-value.d.ts +4 -0
- package/types/data-grid/index.d.ts +2 -5
- package/types/data-grid/src/data-grid.component.d.ts +1 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/appearance/use-cell-position.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +0 -4
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +2 -2
- package/types/data-view/composition/visualization/use-visual-data-bound.d.ts +2 -3
- package/types/data-view/composition/visualization/use-visual-data-row.d.ts +1 -2
- package/types/designer-canvas/src/composition/dg-control.d.ts +24 -0
- package/types/dynamic-form/designer.d.ts +0 -1
- package/types/dynamic-form/index.d.ts +4 -3
- package/types/dynamic-form/src/designer/dynamic-form.design.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form.design.props.d.ts +14 -0
- package/types/dynamic-form/src/designer/use-dynamic-form-rules.d.ts +2 -0
- package/types/dynamic-form/src/dynamic-form.component.d.ts +8 -0
- package/types/dynamic-form/src/response-form.props.d.ts +13 -1
- package/types/dynamic-form/src/schema/response-form-schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -0
- package/types/dynamic-resolver/src/types.d.ts +1 -0
- package/types/dynamic-view/index.d.ts +43 -3
- package/types/dynamic-view/src/components/maps.d.ts +6 -6
- package/types/dynamic-view/src/composition/index.d.ts +5 -0
- package/types/dynamic-view/src/composition/use-utils.d.ts +12 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +6 -6
- package/types/language-textbox/index.d.ts +3 -3
- package/types/language-textbox/src/components/language-contents.component.d.ts +1 -1
- package/types/language-textbox/src/language-textbox.component.d.ts +1 -1
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +1 -1
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/property-panel/src/property-panel.component.d.ts +3 -3
- package/types/tree-grid/src/components/data/data-area.component.d.ts +2 -2
- package/types/tree-grid/src/tree-grid.props.d.ts +0 -1
- package/types/tree-view/src/components/data/tree-area.component.d.ts +1 -1
- package/types/tree-view/src/tree-view.props.d.ts +0 -1
|
@@ -1,89 +1,89 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var V = (e, n, t) =>
|
|
4
|
-
import { ref as I, computed as
|
|
5
|
-
import { isPlainObject as ye, cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
1
|
+
var Ge = Object.defineProperty;
|
|
2
|
+
var We = (e, n, t) => n in e ? Ge(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var V = (e, n, t) => We(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as I, computed as X, defineComponent as re, watch as Z, createVNode as w, createTextVNode as Ee, mergeProps as ze, reactive as _e, withDirectives as Pe, resolveDirective as Xe, Fragment as xe, inject as ve, onMounted as he, onBeforeMount as He, vModelText as Je, nextTick as Te } from "vue";
|
|
5
|
+
import { isPlainObject as ye, cloneDeep as fe, debounce as Qe } from "lodash-es";
|
|
6
|
+
import Ye from "../accordion/index.esm.js";
|
|
7
|
+
import Ze from "../avatar/index.esm.js";
|
|
8
|
+
import Ke from "../../designer/button-edit/index.esm.js";
|
|
9
|
+
import et from "../button-group/index.esm.js";
|
|
10
|
+
import tt from "../calendar/index.esm.js";
|
|
11
|
+
import nt from "../../designer/capsule/index.esm.js";
|
|
12
12
|
import be from "../../designer/checkbox/index.esm.js";
|
|
13
13
|
import Ce from "../../designer/checkbox-group/index.esm.js";
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
14
|
+
import rt from "../combo-list/index.esm.js";
|
|
15
|
+
import it from "../combo-tree/index.esm.js";
|
|
16
|
+
import ot from "../component/index.esm.js";
|
|
17
|
+
import st from "../color-picker/index.esm.js";
|
|
18
|
+
import at from "../content-container/index.esm.js";
|
|
19
|
+
import lt from "../../designer/date-picker/index.esm.js";
|
|
20
|
+
import dt from "../../designer/data-grid/index.esm.js";
|
|
21
|
+
import ct from "../dropdown/index.esm.js";
|
|
22
|
+
import ut from "../../designer/dynamic-form/index.esm.js";
|
|
23
|
+
import pt from "../events-editor/index.esm.js";
|
|
24
|
+
import mt from "../filter-bar/index.esm.js";
|
|
25
25
|
import ft from "../field-selector/index.esm.js";
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
26
|
+
import gt from "../binding-selector/index.esm.js";
|
|
27
|
+
import vt from "../image-cropper/index.esm.js";
|
|
28
|
+
import ht from "../../designer/input-group/index.esm.js";
|
|
29
|
+
import yt from "../layout/index.esm.js";
|
|
30
|
+
import bt from "../list-nav/index.esm.js";
|
|
31
|
+
import Ct from "../../designer/list-view/index.esm.js";
|
|
32
|
+
import Ft from "../lookup/index.esm.js";
|
|
33
|
+
import wt from "../mapping-editor/index.esm.js";
|
|
34
|
+
import St from "../nav/index.esm.js";
|
|
35
|
+
import Et from "../number-range/index.esm.js";
|
|
36
|
+
import Pt from "../../designer/number-spinner/index.esm.js";
|
|
37
|
+
import xt from "../order/index.esm.js";
|
|
38
|
+
import Tt from "../page-header/index.esm.js";
|
|
39
|
+
import It from "../page-footer/index.esm.js";
|
|
40
|
+
import kt from "../pagination/index.esm.js";
|
|
41
|
+
import Vt from "../progress/index.esm.js";
|
|
42
|
+
import Mt from "../query-solution/index.esm.js";
|
|
43
|
+
import Lt from "../../designer/radio-group/index.esm.js";
|
|
44
44
|
import Bt from "../../designer/rate/index.esm.js";
|
|
45
45
|
import Nt from "../../designer/response-toolbar/index.esm.js";
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
46
|
+
import Ot from "../response-layout/index.esm.js";
|
|
47
|
+
import $t from "../../designer/response-layout-editor/index.esm.js";
|
|
48
|
+
import Rt from "../search-box/index.esm.js";
|
|
49
|
+
import Ut from "../../designer/section/index.esm.js";
|
|
50
|
+
import At from "../smoke-detector/index.esm.js";
|
|
51
|
+
import qt from "../splitter/index.esm.js";
|
|
52
|
+
import jt from "../step/index.esm.js";
|
|
53
53
|
import Dt from "../../designer/switch/index.esm.js";
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
54
|
+
import Gt from "../../designer/tabs/index.esm.js";
|
|
55
|
+
import Wt from "../../designer/tags/index.esm.js";
|
|
56
|
+
import zt from "../text/index.esm.js";
|
|
57
|
+
import _t from "../../designer/time-picker/index.esm.js";
|
|
58
|
+
import Xt from "../transfer/index.esm.js";
|
|
59
59
|
import Ht from "../tree-view/index.esm.js";
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
60
|
+
import Jt from "../uploader/index.esm.js";
|
|
61
|
+
import Qt from "../verify-detail/index.esm.js";
|
|
62
|
+
import Yt from "../video/index.esm.js";
|
|
63
|
+
import Zt from "../../designer/textarea/index.esm.js";
|
|
64
|
+
import Kt from "../schema-selector/index.esm.js";
|
|
65
|
+
import en from "../../designer/tree-grid/index.esm.js";
|
|
66
|
+
import tn from "../event-parameter/index.esm.js";
|
|
67
|
+
import nn from "../filter-condition-editor/index.esm.js";
|
|
68
|
+
import rn from "../fieldset/index.esm.js";
|
|
69
|
+
import on from "../sort-condition-editor/index.esm.js";
|
|
70
|
+
import sn from "../menu-lookup/index.esm.js";
|
|
71
|
+
import an from "../../designer/drawer/index.esm.js";
|
|
72
|
+
import ln from "../json-editor/index.esm.js";
|
|
73
|
+
import dn from "../property-editor/index.esm.js";
|
|
74
|
+
import cn from "../expression-editor/index.esm.js";
|
|
75
|
+
import un from "../code-editor/index.esm.js";
|
|
76
|
+
import pn from "../html-template/index.esm.js";
|
|
77
|
+
import mn from "../collection-property-editor/index.esm.js";
|
|
78
78
|
import fn from "../../designer/modal/index.esm.js";
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import { schemaResolverMap as
|
|
84
|
-
import { useThirdComponent as
|
|
85
|
-
import { DgControl as v, canvasChanged as ce, refreshCanvas as
|
|
86
|
-
const
|
|
79
|
+
import gn from "../external-container/index.esm.js";
|
|
80
|
+
import vn from "../language-textbox/index.esm.js";
|
|
81
|
+
import hn from "../image/index.esm.js";
|
|
82
|
+
import yn from "../comment/index.esm.js";
|
|
83
|
+
import { schemaResolverMap as bn, propertyEffectMap as Cn, propertyConfigSchemaMap as Fn, schemaMap as wn, createPropsResolver as Sn } from "../dynamic-resolver/index.esm.js";
|
|
84
|
+
import { useThirdComponent as En, isMobilePhone as Pn, FormSchemaEntityField$Type as Fe, FormSchemaEntityFieldType$Type as xn } from "../common/index.esm.js";
|
|
85
|
+
import { DgControl as v, canvasChanged as ce, refreshCanvas as Tn } from "../designer-canvas/index.esm.js";
|
|
86
|
+
const In = {
|
|
87
87
|
width: { type: String, default: "300px" },
|
|
88
88
|
height: { type: Number, default: 10 },
|
|
89
89
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -112,68 +112,68 @@ const Tn = {
|
|
|
112
112
|
/** 属性变更后事件 */
|
|
113
113
|
propertyChanged: { type: Function }
|
|
114
114
|
};
|
|
115
|
-
function
|
|
116
|
-
function n(
|
|
115
|
+
function kn(e = {}) {
|
|
116
|
+
function n(m, p, s, c) {
|
|
117
117
|
if (typeof s == "number")
|
|
118
|
-
return c[
|
|
118
|
+
return c[m].length === s;
|
|
119
119
|
if (typeof s == "object") {
|
|
120
120
|
const f = Object.keys(s)[0], l = s[f];
|
|
121
121
|
if (f === "not")
|
|
122
|
-
return Number(c[
|
|
122
|
+
return Number(c[m].length) !== Number(l);
|
|
123
123
|
if (f === "moreThan")
|
|
124
|
-
return Number(c[
|
|
124
|
+
return Number(c[m].length) >= Number(l);
|
|
125
125
|
if (f === "lessThan")
|
|
126
|
-
return Number(c[
|
|
126
|
+
return Number(c[m].length) <= Number(l);
|
|
127
127
|
}
|
|
128
128
|
return !1;
|
|
129
129
|
}
|
|
130
|
-
function t(
|
|
131
|
-
return c[
|
|
130
|
+
function t(m, p, s, c) {
|
|
131
|
+
return c[m] && c[m].propertyValue && String(c[m].propertyValue.value) === String(s);
|
|
132
132
|
}
|
|
133
133
|
const r = /* @__PURE__ */ new Map([
|
|
134
134
|
["length", n],
|
|
135
135
|
["getProperty", t]
|
|
136
136
|
]);
|
|
137
|
-
Object.keys(e).reduce((
|
|
138
|
-
function i(
|
|
139
|
-
const s =
|
|
140
|
-
return typeof
|
|
137
|
+
Object.keys(e).reduce((m, p) => (m.set(p, e[p]), m), r);
|
|
138
|
+
function i(m, p) {
|
|
139
|
+
const s = m;
|
|
140
|
+
return typeof p == "number" ? [{ target: s, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: s, operator: "getProperty", param: m, value: !!p }] : typeof p == "object" ? Object.keys(p).map((c) => {
|
|
141
141
|
if (c === "length")
|
|
142
|
-
return { target: s, operator: "length", param: null, value:
|
|
143
|
-
const f = c, l =
|
|
142
|
+
return { target: s, operator: "length", param: null, value: p[c] };
|
|
143
|
+
const f = c, l = p[c];
|
|
144
144
|
return { target: s, operator: "getProperty", param: f, value: l };
|
|
145
145
|
}) : [];
|
|
146
146
|
}
|
|
147
|
-
function o(
|
|
148
|
-
return Object.keys(
|
|
149
|
-
const f = i(c,
|
|
147
|
+
function o(m) {
|
|
148
|
+
return Object.keys(m).reduce((s, c) => {
|
|
149
|
+
const f = i(c, m[c]);
|
|
150
150
|
return s.push(...f), s;
|
|
151
151
|
}, []);
|
|
152
152
|
}
|
|
153
|
-
function a(
|
|
154
|
-
if (r.has(
|
|
155
|
-
const s = r.get(
|
|
156
|
-
return s && s(
|
|
153
|
+
function a(m, p) {
|
|
154
|
+
if (r.has(m.operator)) {
|
|
155
|
+
const s = r.get(m.operator);
|
|
156
|
+
return s && s(m.target, m.param, m.value, p) || !1;
|
|
157
157
|
}
|
|
158
158
|
return !1;
|
|
159
159
|
}
|
|
160
|
-
function g(
|
|
161
|
-
return o(
|
|
160
|
+
function g(m, p) {
|
|
161
|
+
return o(m).reduce((f, l) => f && a(l, p), !0);
|
|
162
162
|
}
|
|
163
|
-
function d(
|
|
164
|
-
const s = Object.keys(
|
|
163
|
+
function d(m, p) {
|
|
164
|
+
const s = Object.keys(m), c = s.includes("allOf"), f = s.includes("anyOf"), l = c || f, E = (l ? m[l ? c ? "allOf" : "anyOf" : "allOf"] : [m]).map((U) => g(U, p));
|
|
165
165
|
return c ? !E.includes(!1) : E.includes(!0);
|
|
166
166
|
}
|
|
167
167
|
return { parseValueSchema: d };
|
|
168
168
|
}
|
|
169
|
-
const
|
|
169
|
+
const Vn = {
|
|
170
170
|
convertTo: (e, n, t, r) => {
|
|
171
171
|
e.appearance || (e.appearance = {}), e.appearance[n] = t;
|
|
172
172
|
},
|
|
173
173
|
convertFrom: (e, n, t) => e.appearance ? e.appearance[n] : e[n]
|
|
174
|
-
}, Vn = {
|
|
175
|
-
convertFrom: (e, n, t) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
176
174
|
}, Mn = {
|
|
175
|
+
convertFrom: (e, n, t) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
176
|
+
}, Ln = {
|
|
177
177
|
convertTo: (e, n, t, r) => {
|
|
178
178
|
e.editor && (e.editor[n] = t);
|
|
179
179
|
},
|
|
@@ -232,19 +232,24 @@ const kn = {
|
|
|
232
232
|
"discussion-list": { type: "discussion-list", name: "评论列表" },
|
|
233
233
|
comment: { type: "comment", name: "评论区" },
|
|
234
234
|
"rich-text-editor": { type: "rich-text-editor", name: "富文本", icon: "rich-text-box" },
|
|
235
|
-
calendar: { type: "calendar", name: "日历", icon: "date-picker" }
|
|
235
|
+
calendar: { type: "calendar", name: "日历", icon: "date-picker" },
|
|
236
|
+
wizard: { type: "wizard", name: "向导", icon: "wizard" },
|
|
237
|
+
"wizard-page": { type: "wizard-page", name: "向导页", icon: "wizard" },
|
|
238
|
+
"wizard-page-detail": { type: "wizard-page-detail", name: "向导详情", icon: "wizard" },
|
|
239
|
+
step: { type: "step", name: "步骤条", icon: "step" },
|
|
240
|
+
"dynamic-form": { type: "dynamic-form", name: "动态表单" }
|
|
236
241
|
}, Nn = {
|
|
237
242
|
convertFrom: (e, n, t) => {
|
|
238
243
|
var i;
|
|
239
244
|
const r = e.editor && e.editor[n] ? e.editor[n] : e[n];
|
|
240
245
|
return ((i = Bn[r]) == null ? void 0 : i.name) || r;
|
|
241
246
|
}
|
|
242
|
-
},
|
|
247
|
+
}, On = {
|
|
243
248
|
convertTo: (e, n, t, r) => {
|
|
244
249
|
e[n] = e[n];
|
|
245
250
|
},
|
|
246
251
|
convertFrom: (e, n, t) => e.editor ? t.getRealEditorType(e.editor.type) : ""
|
|
247
|
-
},
|
|
252
|
+
}, $n = {
|
|
248
253
|
convertTo: (e, n, t, r) => {
|
|
249
254
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e.formatter ? e.formatter[n] = t : e.formatter = {
|
|
250
255
|
[n]: t
|
|
@@ -272,10 +277,12 @@ const kn = {
|
|
|
272
277
|
return e.formatter.customFormat;
|
|
273
278
|
if (n === "type")
|
|
274
279
|
return e.formatter.type || "none";
|
|
280
|
+
if (n === "customFormat")
|
|
281
|
+
return e.formmater.customFormat;
|
|
275
282
|
}
|
|
276
283
|
return "none";
|
|
277
284
|
}
|
|
278
|
-
},
|
|
285
|
+
}, Rn = {
|
|
279
286
|
convertTo: (e, n, t, r) => {
|
|
280
287
|
e.command ? e.command[n] = t : e.command = {
|
|
281
288
|
[n]: t
|
|
@@ -293,29 +300,17 @@ const kn = {
|
|
|
293
300
|
]), n === "enableType" && t === "custom" && (e.command.enable = !0, e.command.commands = [
|
|
294
301
|
{
|
|
295
302
|
value: "add",
|
|
296
|
-
text:
|
|
297
|
-
en: "add",
|
|
298
|
-
"zh-CHS": "增加",
|
|
299
|
-
"zh-CHT": "增加"
|
|
300
|
-
},
|
|
303
|
+
text: "增加",
|
|
301
304
|
type: "link"
|
|
302
305
|
},
|
|
303
306
|
{
|
|
304
307
|
value: "edit",
|
|
305
|
-
text:
|
|
306
|
-
en: "edit",
|
|
307
|
-
"zh-CHS": "编辑",
|
|
308
|
-
"zh-CHT": "編輯"
|
|
309
|
-
},
|
|
308
|
+
text: "编辑",
|
|
310
309
|
type: "danger"
|
|
311
310
|
},
|
|
312
311
|
{
|
|
313
312
|
value: "remove",
|
|
314
|
-
text:
|
|
315
|
-
en: "remove",
|
|
316
|
-
"zh-CHS": "删除",
|
|
317
|
-
"zh-CHT": "刪除"
|
|
318
|
-
},
|
|
313
|
+
text: "删除",
|
|
319
314
|
type: "remove"
|
|
320
315
|
}
|
|
321
316
|
]), n === "enableType" && t === "unable" && (e.command.enable = !1);
|
|
@@ -333,10 +328,12 @@ const kn = {
|
|
|
333
328
|
return e.command.formatter;
|
|
334
329
|
if (n === "count")
|
|
335
330
|
return e.command.count;
|
|
331
|
+
if (n === "columnWidth")
|
|
332
|
+
return e.command.columnWidth || 150;
|
|
336
333
|
}
|
|
337
334
|
return "";
|
|
338
335
|
}
|
|
339
|
-
},
|
|
336
|
+
}, Un = {
|
|
340
337
|
convertTo: (e, n, t, r) => {
|
|
341
338
|
e.column ? e.column[n] = t : e.column = {
|
|
342
339
|
[n]: t
|
|
@@ -351,7 +348,7 @@ const kn = {
|
|
|
351
348
|
}
|
|
352
349
|
return "";
|
|
353
350
|
}
|
|
354
|
-
},
|
|
351
|
+
}, An = {
|
|
355
352
|
convertTo: (e, n, t, r) => {
|
|
356
353
|
e.summary ? e.summary[n] = t : e.summary = {
|
|
357
354
|
[n]: t
|
|
@@ -360,8 +357,11 @@ const kn = {
|
|
|
360
357
|
groupFields: []
|
|
361
358
|
});
|
|
362
359
|
},
|
|
363
|
-
convertFrom: (e, n, t) =>
|
|
364
|
-
|
|
360
|
+
convertFrom: (e, n, t) => {
|
|
361
|
+
var r;
|
|
362
|
+
return n === "customSummaryStyle" ? e.summary.customSummaryStyle : n === "position" ? ((r = e.summary) == null ? void 0 : r[n]) || "bottom" : e.summary && n === "enable" ? e.summary.enable : e.type === "data-grid-column" ? e.enableSummary === void 0 ? !1 : e.enableSummary : "";
|
|
363
|
+
}
|
|
364
|
+
}, qn = {
|
|
365
365
|
convertTo: (e, n, t, r) => {
|
|
366
366
|
e.group ? e.group[n] = t : e.group = {
|
|
367
367
|
[n]: t
|
|
@@ -379,7 +379,7 @@ const kn = {
|
|
|
379
379
|
return e.group.showSummary;
|
|
380
380
|
}
|
|
381
381
|
}
|
|
382
|
-
},
|
|
382
|
+
}, jn = {
|
|
383
383
|
convertFrom: (e, n) => e.binding ? e.binding.path : "",
|
|
384
384
|
convertTo: (e, n, t) => {
|
|
385
385
|
if (t && t.length > 0) {
|
|
@@ -389,15 +389,15 @@ const kn = {
|
|
|
389
389
|
}
|
|
390
390
|
}, Dn = {
|
|
391
391
|
convertTo: (e, n, t, r) => {
|
|
392
|
-
e.pagination || (e.pagination = {}), e.pagination[n] = t;
|
|
392
|
+
e.pagination || (e.pagination = {}), n === "sizeLimits" ? e.pagination.sizeLimits = t.split(",") : e.pagination[n] = t;
|
|
393
393
|
},
|
|
394
|
-
convertFrom: (e, n, t) => e.pagination ? e.pagination[n] : e[n]
|
|
395
|
-
},
|
|
394
|
+
convertFrom: (e, n, t) => e.pagination ? n === "sizeLimits" ? e.pagination.sizeLimits.join(",") : e.pagination[n] : e[n]
|
|
395
|
+
}, Gn = {
|
|
396
396
|
convertTo: (e, n, t, r) => {
|
|
397
397
|
e.rowNumber || (e.rowNumber = {}), e.rowNumber[n] = t;
|
|
398
398
|
},
|
|
399
399
|
convertFrom: (e, n, t) => e.rowNumber ? e.rowNumber[n] : e[n]
|
|
400
|
-
},
|
|
400
|
+
}, Wn = {
|
|
401
401
|
convertTo: (e, n, t, r) => {
|
|
402
402
|
e.selection || (e.selection = {}), e.selection[n] = t;
|
|
403
403
|
},
|
|
@@ -405,14 +405,14 @@ const kn = {
|
|
|
405
405
|
var r, i;
|
|
406
406
|
return n === "showCheckbox" ? (r = e.selection) != null && r.multiSelect ? !0 : (i = e.selection) == null ? void 0 : i.showCheckbox : e.selection ? e.selection[n] : e[n];
|
|
407
407
|
}
|
|
408
|
-
}, Wn = {
|
|
409
|
-
convertFrom: (e, n, t) => e[n] && e[n].length ? `共 ${e[n].length} 项` : ""
|
|
410
408
|
}, zn = {
|
|
409
|
+
convertFrom: (e, n, t) => e[n] && e[n].length ? `共 ${e[n].length} 项` : ""
|
|
410
|
+
}, _n = {
|
|
411
411
|
convertFrom: (e, n) => e[n] || "",
|
|
412
412
|
convertTo: (e, n, t) => {
|
|
413
413
|
e[n] = t;
|
|
414
414
|
}
|
|
415
|
-
},
|
|
415
|
+
}, Xn = {
|
|
416
416
|
convertTo: (e, n, t, r) => {
|
|
417
417
|
e.size || (e.size = {}), e.size[n] = t;
|
|
418
418
|
},
|
|
@@ -422,7 +422,7 @@ const kn = {
|
|
|
422
422
|
var r, i;
|
|
423
423
|
return (r = e.formatter) != null && r.data && n === "formatterEnumData" && !e.formatterEnumData ? (i = e.formatter) == null ? void 0 : i.data : e.formatterEnumData;
|
|
424
424
|
}
|
|
425
|
-
},
|
|
425
|
+
}, Jn = {
|
|
426
426
|
convertTo: (e, n, t, r) => {
|
|
427
427
|
e.sort || (e.sort = {}), e.sort[n] = t;
|
|
428
428
|
},
|
|
@@ -433,7 +433,7 @@ const kn = {
|
|
|
433
433
|
if (n === "multiSort")
|
|
434
434
|
return !!((i = e.sort) != null && i.multiSort);
|
|
435
435
|
}
|
|
436
|
-
},
|
|
436
|
+
}, Qn = {
|
|
437
437
|
convertTo: (e, n, t, r) => {
|
|
438
438
|
e.filter || (e.filter = {}), e.filter[n] = t;
|
|
439
439
|
},
|
|
@@ -442,7 +442,7 @@ const kn = {
|
|
|
442
442
|
if (n === "mode")
|
|
443
443
|
return ((r = e.filter) == null ? void 0 : r.mode) || "client";
|
|
444
444
|
}
|
|
445
|
-
},
|
|
445
|
+
}, Yn = {
|
|
446
446
|
convertTo: (e, n, t, r) => {
|
|
447
447
|
e.rowOption ? e.rowOption[n] = t : e.rowOption = {
|
|
448
448
|
[n]: t
|
|
@@ -454,10 +454,12 @@ const kn = {
|
|
|
454
454
|
return e.rowOption.customRowStyle;
|
|
455
455
|
if (n === "customCellStyle")
|
|
456
456
|
return e.rowOption.customCellStyle;
|
|
457
|
+
if (n === "height")
|
|
458
|
+
return e.rowOption.height;
|
|
457
459
|
}
|
|
458
460
|
return "";
|
|
459
461
|
}
|
|
460
|
-
},
|
|
462
|
+
}, Zn = {
|
|
461
463
|
convertTo: (e, n, t, r) => {
|
|
462
464
|
(e.type === "data-grid-column" || e.type === "tree-grid-column") && (e[n] = t, n === "columnTemplateType" && t === "hyperlink" && (e.onClickLinkCommand ? e.columnTemplate = `
|
|
463
465
|
<span class="f-pretend-link f-cursor-pointer"
|
|
@@ -470,30 +472,30 @@ const kn = {
|
|
|
470
472
|
},
|
|
471
473
|
convertFrom: (e, n, t) => n === "columnTemplate" ? e.columnTemplate : n === "columnTemplateType" ? e.columnTemplateType ? e.columnTemplateType || "default" : e.columnTemplate && !e.onClickLinkCommand ? "custom" : e.columnTemplate && e.onClickLinkCommand ? "hyperlink" : "default" : ""
|
|
472
474
|
};
|
|
473
|
-
function
|
|
475
|
+
function Kn(e, n, t) {
|
|
474
476
|
const r = /* @__PURE__ */ new Map([
|
|
475
|
-
["/converter/appearance.converter",
|
|
476
|
-
["/converter/buttons.converter",
|
|
477
|
-
["/converter/property-editor.converter",
|
|
478
|
-
["/converter/items-count.converter",
|
|
477
|
+
["/converter/appearance.converter", Vn],
|
|
478
|
+
["/converter/buttons.converter", Mn],
|
|
479
|
+
["/converter/property-editor.converter", Ln],
|
|
480
|
+
["/converter/items-count.converter", zn],
|
|
479
481
|
["/converter/type.converter", Nn],
|
|
480
|
-
["/converter/change-editor.converter",
|
|
481
|
-
["/converter/change-formatter.converter",
|
|
482
|
-
["/converter/column-command.converter",
|
|
483
|
-
["/converter/column-option.converter",
|
|
484
|
-
["/converter/summary.converter",
|
|
485
|
-
["/converter/group.converter",
|
|
486
|
-
["/converter/form-group-label.converter",
|
|
487
|
-
["/converter/field-selector.converter",
|
|
482
|
+
["/converter/change-editor.converter", On],
|
|
483
|
+
["/converter/change-formatter.converter", $n],
|
|
484
|
+
["/converter/column-command.converter", Rn],
|
|
485
|
+
["/converter/column-option.converter", Un],
|
|
486
|
+
["/converter/summary.converter", An],
|
|
487
|
+
["/converter/group.converter", qn],
|
|
488
|
+
["/converter/form-group-label.converter", _n],
|
|
489
|
+
["/converter/field-selector.converter", jn],
|
|
488
490
|
["/converter/pagination.converter", Dn],
|
|
489
|
-
["/converter/row-number.converter",
|
|
490
|
-
["/converter/grid-selection.converter",
|
|
491
|
-
["/converter/size.converter",
|
|
491
|
+
["/converter/row-number.converter", Gn],
|
|
492
|
+
["/converter/grid-selection.converter", Wn],
|
|
493
|
+
["/converter/size.converter", Xn],
|
|
492
494
|
["/converter/change-formatter-enum.converter", Hn],
|
|
493
|
-
["/converter/grid-sort.converter",
|
|
494
|
-
["/converter/grid-filter.converter",
|
|
495
|
-
["/converter/row-option.converter",
|
|
496
|
-
["/converter/change-formatter-type.converter",
|
|
495
|
+
["/converter/grid-sort.converter", Jn],
|
|
496
|
+
["/converter/grid-filter.converter", Qn],
|
|
497
|
+
["/converter/row-option.converter", Yn],
|
|
498
|
+
["/converter/change-formatter-type.converter", Zn]
|
|
497
499
|
]), i = /* @__PURE__ */ new Map([
|
|
498
500
|
["string", { type: "input-group", enableClear: !1 }],
|
|
499
501
|
["boolean", {
|
|
@@ -518,7 +520,7 @@ function Zn(e, n, t) {
|
|
|
518
520
|
["array", { type: "button-edit" }],
|
|
519
521
|
["number", { type: "number-spinner", placeholder: "" }],
|
|
520
522
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
521
|
-
]), o =
|
|
523
|
+
]), o = kn();
|
|
522
524
|
function a(l, u) {
|
|
523
525
|
return () => o.parseValueSchema(l, u);
|
|
524
526
|
}
|
|
@@ -528,66 +530,66 @@ function Zn(e, n, t) {
|
|
|
528
530
|
function d(l, u, h) {
|
|
529
531
|
return l.includes("readonly") && u.readonly !== void 0 ? typeof u.readonly == "boolean" ? () => !!u.readonly : a(u.readonly, h) : () => !1;
|
|
530
532
|
}
|
|
531
|
-
function
|
|
533
|
+
function m(l, u) {
|
|
532
534
|
const h = l.$converter || u;
|
|
533
535
|
return typeof h == "string" && h && r.has(h) ? r.get(h) || null : h || null;
|
|
534
536
|
}
|
|
535
|
-
function
|
|
536
|
-
return Object.keys(l).map((
|
|
537
|
-
const M = I(1),
|
|
537
|
+
function p(l, u, h, E, k, U = "", A = "") {
|
|
538
|
+
return Object.keys(l).map((B) => {
|
|
539
|
+
const M = I(1), j = B, N = l[B], T = Object.keys(N), J = N.title, _ = N.type, L = i.get(_) || { type: "input-group", enableClear: !1 }, q = N.editor ? Object.assign({}, L, N.editor) : Object.assign({}, L), O = g(T, N, u), G = d(T, N, u);
|
|
538
540
|
q.readonly = q.readonly === void 0 ? G() : q.readonly;
|
|
539
|
-
const W =
|
|
540
|
-
let z =
|
|
541
|
-
const ie =
|
|
541
|
+
const W = N.type === "cascade" ? p(N.properties, u, h, E, k, U, A) : [], Q = !0;
|
|
542
|
+
let z = m(N, A);
|
|
543
|
+
const ie = X({
|
|
542
544
|
get() {
|
|
543
545
|
if (M.value) {
|
|
544
|
-
if (["class", "style"].find((ae) => ae ===
|
|
545
|
-
return z.convertFrom(h,
|
|
546
|
-
const
|
|
547
|
-
return Object.prototype.hasOwnProperty.call(
|
|
546
|
+
if (["class", "style"].find((ae) => ae === j) && !z && (z = r.get("/converter/appearance.converter") || null), z && z.convertFrom)
|
|
547
|
+
return z.convertFrom(h, B, k, U);
|
|
548
|
+
const H = h[B];
|
|
549
|
+
return Object.prototype.hasOwnProperty.call(N, "defaultValue") && (H === void 0 || typeof H == "string" && H === "") ? N.type === "boolean" ? N.defaultValue : N.defaultValue || "" : H;
|
|
548
550
|
}
|
|
549
551
|
return null;
|
|
550
552
|
},
|
|
551
|
-
set(
|
|
552
|
-
M.value += 1, z && z.convertTo ? (z.convertTo(E,
|
|
553
|
+
set(H) {
|
|
554
|
+
M.value += 1, z && z.convertTo ? (z.convertTo(E, B, H, k, U), z.convertTo(h, B, H, k, U)) : (E[B] = H, h[B] = H);
|
|
553
555
|
}
|
|
554
|
-
}), { refreshPanelAfterChanged: oe, description: K, isExpand: te, parentPropertyID: ee } =
|
|
555
|
-
return u[
|
|
556
|
+
}), { refreshPanelAfterChanged: oe, description: K, isExpand: te, parentPropertyID: ee } = N, se = { propertyID: j, propertyName: J, propertyType: _, propertyValue: ie, editor: q, visible: O, readonly: G, cascadeConfig: W, hideCascadeTitle: Q, refreshPanelAfterChanged: oe, description: K, isExpand: te, parentPropertyID: ee };
|
|
557
|
+
return u[j] = se, se;
|
|
556
558
|
});
|
|
557
559
|
}
|
|
558
560
|
function s(l, u, h = {}) {
|
|
559
561
|
const E = {}, k = e[l];
|
|
560
562
|
return k && k.categories ? Object.keys(k.categories).map((A) => {
|
|
561
|
-
const R = k.categories[A],
|
|
562
|
-
return { categoryId: A, categoryName:
|
|
563
|
+
const R = k.categories[A], B = R == null ? void 0 : R.title, M = p(R.properties || {}, E, {}, h, u);
|
|
564
|
+
return { categoryId: A, categoryName: B, properties: M };
|
|
563
565
|
}) : [];
|
|
564
566
|
}
|
|
565
567
|
function c(l, u, h, E, k = "") {
|
|
566
|
-
const U = u.$ref.schema, A = u.$ref.converter, R = h[U],
|
|
567
|
-
if (
|
|
568
|
-
const T =
|
|
568
|
+
const U = u.$ref.schema, A = u.$ref.converter, R = h[U], B = R.type, M = t(R), j = {}, N = e[B];
|
|
569
|
+
if (N && N.categories) {
|
|
570
|
+
const T = N.categories[l], J = T == null ? void 0 : T.title;
|
|
569
571
|
A && Object.keys(T.properties).forEach((q) => {
|
|
570
572
|
T.properties[q].$converter = A;
|
|
571
573
|
});
|
|
572
|
-
const _ = (T == null ? void 0 : T.properties) || {},
|
|
573
|
-
return { categoryId: l, categoryName: J, properties:
|
|
574
|
+
const _ = (T == null ? void 0 : T.properties) || {}, L = p(_, j, M, R, E, k);
|
|
575
|
+
return { categoryId: l, categoryName: J, properties: L };
|
|
574
576
|
}
|
|
575
577
|
return { categoryId: l, categoryName: "", properties: [] };
|
|
576
578
|
}
|
|
577
579
|
function f(l, u, h, E, k) {
|
|
578
580
|
const U = l.type, A = t(l), R = {};
|
|
579
|
-
let
|
|
580
|
-
if (!(
|
|
581
|
-
const
|
|
582
|
-
return Object.keys(
|
|
583
|
-
const T =
|
|
581
|
+
let B = k || e[U];
|
|
582
|
+
if (!(B && Object.keys(B).length > 0) && h && h.getPropConfig && (B = h.getPropConfig(E)), B && B.categories) {
|
|
583
|
+
const j = [];
|
|
584
|
+
return Object.keys(B.categories).map((N) => {
|
|
585
|
+
const T = B.categories[N];
|
|
584
586
|
if (T.$ref) {
|
|
585
|
-
|
|
587
|
+
j.push(c(N, T, l, u, E));
|
|
586
588
|
return;
|
|
587
589
|
}
|
|
588
|
-
const J = T == null ? void 0 : T.title, _ = T == null ? void 0 : T.tabId,
|
|
589
|
-
|
|
590
|
-
}),
|
|
590
|
+
const J = T == null ? void 0 : T.title, _ = T == null ? void 0 : T.tabId, L = T == null ? void 0 : T.tabName, q = T == null ? void 0 : T.hide, O = T == null ? void 0 : T.hideTitle, G = p(T.properties || {}, R, A, l, u, E, T.$converter), { setPropertyRelates: W } = T, Q = T == null ? void 0 : T.parentPropertyID;
|
|
591
|
+
j.push({ categoryId: N, categoryName: J, tabId: _, tabName: L, hide: q, properties: G, hideTitle: O, setPropertyRelates: W, parentPropertyID: Q });
|
|
592
|
+
}), j;
|
|
591
593
|
}
|
|
592
594
|
return [];
|
|
593
595
|
}
|
|
@@ -597,10 +599,10 @@ function Zn(e, n, t) {
|
|
|
597
599
|
propertyConverterMap: r
|
|
598
600
|
};
|
|
599
601
|
}
|
|
600
|
-
function
|
|
602
|
+
function er(e, n) {
|
|
601
603
|
let t;
|
|
602
604
|
function r(s) {
|
|
603
|
-
const { properties: c, title: f, ignore: l } = s, u = l && Array.isArray(l), h = Object.keys(c).reduce((E, k) => ((!u || !l.find((U) => U === k)) && (E[k] = c[k].type === "object" && c[k].properties ? r(c[k]) :
|
|
605
|
+
const { properties: c, title: f, ignore: l } = s, u = l && Array.isArray(l), h = Object.keys(c).reduce((E, k) => ((!u || !l.find((U) => U === k)) && (E[k] = c[k].type === "object" && c[k].properties ? r(c[k]) : fe(c[k].default)), E), {});
|
|
604
606
|
if (f && (!u || !l.find((E) => E === "id"))) {
|
|
605
607
|
const E = f.toLowerCase().replace(/-/g, "_");
|
|
606
608
|
h.id = `${E}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -610,7 +612,7 @@ function Kn(e, n) {
|
|
|
610
612
|
function i(s) {
|
|
611
613
|
const { properties: c, title: f, required: l } = s;
|
|
612
614
|
if (l && Array.isArray(l)) {
|
|
613
|
-
const u = l.reduce((h, E) => (h[E] = c[E].type === "object" && c[E].properties ? r(c[E]) :
|
|
615
|
+
const u = l.reduce((h, E) => (h[E] = c[E].type === "object" && c[E].properties ? r(c[E]) : fe(c[E].default), h), {});
|
|
614
616
|
if (f && l.find((h) => h === "id")) {
|
|
615
617
|
const h = f.toLowerCase().replace(/-/g, "_");
|
|
616
618
|
u.id = `${h}_${Math.random().toString().slice(2, 6)}`;
|
|
@@ -653,7 +655,7 @@ function Kn(e, n) {
|
|
|
653
655
|
const l = a(s, c);
|
|
654
656
|
return g(l, f);
|
|
655
657
|
}
|
|
656
|
-
function
|
|
658
|
+
function m(s) {
|
|
657
659
|
var f;
|
|
658
660
|
const c = s.type;
|
|
659
661
|
if (c) {
|
|
@@ -669,12 +671,12 @@ function Kn(e, n) {
|
|
|
669
671
|
}
|
|
670
672
|
return s;
|
|
671
673
|
}
|
|
672
|
-
function
|
|
674
|
+
function p(s) {
|
|
673
675
|
t = s;
|
|
674
676
|
}
|
|
675
|
-
return { getSchemaByType: o, resolveSchemaWithDefaultValue:
|
|
677
|
+
return { getSchemaByType: o, resolveSchemaWithDefaultValue: m, resolveSchemaToProps: d, mappingSchemaToProps: g, setDesignerContext: p };
|
|
676
678
|
}
|
|
677
|
-
const
|
|
679
|
+
const tr = {}, nr = {}, { resolveSchemaWithDefaultValue: rr } = er(tr, nr), ir = {}, or = {}, { getPropertyConfigBySchema: me } = Kn(ir, or, rr), sr = {
|
|
678
680
|
/** 某一分类下的属性配置 */
|
|
679
681
|
// as PropType<ElementPropertyConfig>
|
|
680
682
|
category: { type: Object, default: {} },
|
|
@@ -683,10 +685,10 @@ const er = {}, tr = {}, { resolveSchemaWithDefaultValue: nr } = Kn(er, tr), rr =
|
|
|
683
685
|
propertyData: { type: Object, default: {} },
|
|
684
686
|
valueChanged: { type: Function },
|
|
685
687
|
triggerRefreshPanel: { type: Function }
|
|
686
|
-
},
|
|
688
|
+
}, ar = {
|
|
687
689
|
elementConfig: { type: Object, default: {} },
|
|
688
690
|
category: { type: Object, default: {} }
|
|
689
|
-
},
|
|
691
|
+
}, lr = {
|
|
690
692
|
id: { type: String, default: "" },
|
|
691
693
|
customClass: { type: String, default: "" },
|
|
692
694
|
customStyle: { type: String, default: "" },
|
|
@@ -694,7 +696,7 @@ const er = {}, tr = {}, { resolveSchemaWithDefaultValue: nr } = Kn(er, tr), rr =
|
|
|
694
696
|
editor: { type: Object, default: {} },
|
|
695
697
|
label: { type: String, default: "" },
|
|
696
698
|
/** value is uncertain because type is uncertain, default value should not be set */
|
|
697
|
-
modelValue: { type: [String, Boolean, Array, Number] },
|
|
699
|
+
modelValue: { type: [String, Boolean, Array, Number], default: null },
|
|
698
700
|
// readonly: { type: Boolean, default: false },
|
|
699
701
|
visible: { type: Boolean, default: !0 },
|
|
700
702
|
required: { type: Boolean, default: !1 },
|
|
@@ -707,7 +709,7 @@ const er = {}, tr = {}, { resolveSchemaWithDefaultValue: nr } = Kn(er, tr), rr =
|
|
|
707
709
|
componentId: { type: String, default: "" },
|
|
708
710
|
errors: { type: Object, default: null },
|
|
709
711
|
fill: { type: Boolean, default: !1 }
|
|
710
|
-
},
|
|
712
|
+
}, dr = {
|
|
711
713
|
id: { type: String },
|
|
712
714
|
required: { type: Boolean, default: !1 },
|
|
713
715
|
text: { type: String, default: "" },
|
|
@@ -718,26 +720,26 @@ const er = {}, tr = {}, { resolveSchemaWithDefaultValue: nr } = Kn(er, tr), rr =
|
|
|
718
720
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
719
721
|
*/
|
|
720
722
|
showType: { type: String, default: "visible" }
|
|
721
|
-
},
|
|
723
|
+
}, cr = /* @__PURE__ */ re({
|
|
722
724
|
name: "FDynamicFormLabel",
|
|
723
|
-
props:
|
|
725
|
+
props: dr,
|
|
724
726
|
emits: [],
|
|
725
727
|
setup(e, n) {
|
|
726
728
|
I(e.title || e.text);
|
|
727
729
|
const t = I(e.required), r = I(e.text), i = I(e.valid), o = I(e.inValidTip);
|
|
728
730
|
Z(() => e.text, () => {
|
|
729
731
|
r.value = e.text;
|
|
730
|
-
}), Z(() => e.required, (
|
|
731
|
-
|
|
732
|
-
}), Z([() => e.valid, () => e.inValidTip], ([
|
|
733
|
-
i.value =
|
|
732
|
+
}), Z(() => e.required, (p, s) => {
|
|
733
|
+
p !== s && (t.value = p);
|
|
734
|
+
}), Z([() => e.valid, () => e.inValidTip], ([p, s]) => {
|
|
735
|
+
i.value = p, o.value = s;
|
|
734
736
|
});
|
|
735
|
-
const a =
|
|
737
|
+
const a = X(() => i.value ? r.value : o.value), g = X(() => i.value ? "" : "color:red"), d = X(() => ({
|
|
736
738
|
"col-form-label": !0,
|
|
737
739
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
738
740
|
"f-width-auto": t.value && (e.showType === "none" || !r.value)
|
|
739
|
-
})),
|
|
740
|
-
return () =>
|
|
741
|
+
})), m = X(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || t.value || !!r.value && e.showType !== "none");
|
|
742
|
+
return () => m.value && w("label", {
|
|
741
743
|
class: d.value,
|
|
742
744
|
title: a.value,
|
|
743
745
|
style: g.value
|
|
@@ -749,26 +751,26 @@ const er = {}, tr = {}, { resolveSchemaWithDefaultValue: nr } = Kn(er, tr), rr =
|
|
|
749
751
|
class: "farris-label-text"
|
|
750
752
|
}, [t.value && w("span", {
|
|
751
753
|
class: "farris-label-info text-danger"
|
|
752
|
-
}, [
|
|
754
|
+
}, [Ee("*")]), e.showType === "visible" && r.value])]);
|
|
753
755
|
}
|
|
754
|
-
}), { globalStorageKey:
|
|
755
|
-
async function
|
|
756
|
+
}), { globalStorageKey: ur } = En(), y = {}, b = {}, C = {}, F = {};
|
|
757
|
+
async function pr() {
|
|
756
758
|
{
|
|
757
759
|
const e = {
|
|
758
|
-
schemaMap:
|
|
759
|
-
propertyConfigSchemaMap:
|
|
760
|
-
propertyEffectMap:
|
|
761
|
-
schemaResolverMap:
|
|
760
|
+
schemaMap: wn,
|
|
761
|
+
propertyConfigSchemaMap: Fn,
|
|
762
|
+
propertyEffectMap: Cn,
|
|
763
|
+
schemaResolverMap: bn
|
|
762
764
|
};
|
|
763
|
-
|
|
764
|
-
const n = window[
|
|
765
|
+
Ze.register(y, b, C, F), Ye.register(y, b, C, F), Ke.register(y, b, C, F), et.register(y, b, C, F), tt.register(y, b, C, F, e), nt.register(y, b, C, F), be.register(y, b, C, F, e), Ce.register(y, b, C, F, e), be.register(y, b, C, F, e), Ce.register(y, b, C, F, e), rt.register(y, b, C, F, e), it.register(y, b, C, F), ot.register(y, b, C, F), at.register(y, b, C, F, e), st.register(y, b, C, F), lt.register(y, b, C, F, e), dt.register(y, b, C, F, e), ct.register(y, b, C, F), ut.register(y, b, C, F, e), pt.register(y, b, C, F), cn.register(y, b, C, F), mt.register(y, b, C, F), ft.register(y, b, C, F), nn.register(y, b, C, F), vt.register(y, b, C, F), ht.register(y, b, C, F, e), yt.register(y, b, C, F, e), Ct.register(y, b, C, F, e), bt.register(y, b, C, F), Ft.register(y, b, C, F, e), wt.register(y, b, C, F), St.register(y, b, C, F), Et.register(y, b, C, F), Pt.register(y, b, C, F, e), xt.register(y, b, C, F), Tt.register(y, b, C, F, e), It.register(y, b, C, F), kt.register(y, b, C, F), Vt.register(y, b, C, F), Mt.register(y, b, C, F, e), Lt.register(y, b, C, F, e), Bt.register(y, b, C, F), Ot.register(y, b, C, F, e), $t.register(y, b, C, F), Nt.register(y, b, C, F), Kt.register(y, b, C), Rt.register(y, b, C, F), Ut.register(y, b, C, F, e), At.register(y, b, C, F), qt.register(y, b, C, F), jt.register(y, b, C, F), Dt.register(y, b, C, F, e), on.register(y, b, C, F), Gt.register(y, b, C, F, e), Wt.register(y, b, C, F), zt.register(y, b, C, F), _t.register(y, b, C, F, e), Xt.register(y, b, C, F), Ht.register(y, b, C, F), Qt.register(y, b, C, F), Jt.register(y, b, C, F), Yt.register(y, b, C, F), Zt.register(y, b, C, F, e), en.register(y, b, C, F), gt.register(y, b, C, F), tn.register(y, b, C, F), rn.register(y, b, C, F, e), sn.register(y, b, C, F), an.register(y, b, C, F), ln.register(y, b, C, F), dn.register(y, b, C, F), un.register(y, b, C, F), pn.register(y, b, C, F, e), mn.register(y, b, C, F), fn.register(y, b, C, F), gn.register(y, b, C, F), vn.register(y, b, C, F, e), hn.register(y, b, C, F, e), yn.register(y, b, C, F);
|
|
766
|
+
const n = window[ur];
|
|
765
767
|
if (n)
|
|
766
768
|
for (const t in n)
|
|
767
|
-
n[t].createPropsResolver =
|
|
769
|
+
n[t].createPropsResolver = Sn, n[t].register(y, b, C);
|
|
768
770
|
}
|
|
769
771
|
}
|
|
770
|
-
function
|
|
771
|
-
|
|
772
|
+
function mr() {
|
|
773
|
+
pr();
|
|
772
774
|
function e(a) {
|
|
773
775
|
const g = y[a];
|
|
774
776
|
if (!g)
|
|
@@ -886,7 +888,7 @@ const fr = {
|
|
|
886
888
|
type: Object,
|
|
887
889
|
default: null
|
|
888
890
|
}
|
|
889
|
-
},
|
|
891
|
+
}, gr = /* @__PURE__ */ re({
|
|
890
892
|
name: "FValidationMessage",
|
|
891
893
|
props: fr,
|
|
892
894
|
emits: [],
|
|
@@ -895,7 +897,7 @@ const fr = {
|
|
|
895
897
|
Z(() => e.errors, (o) => {
|
|
896
898
|
t.value = o;
|
|
897
899
|
});
|
|
898
|
-
const r = I(!0), i =
|
|
900
|
+
const r = I(!0), i = X(() => {
|
|
899
901
|
if (t.value) {
|
|
900
902
|
const o = Object.keys(t.value).map((a) => {
|
|
901
903
|
var g;
|
|
@@ -914,37 +916,37 @@ const fr = {
|
|
|
914
916
|
class: "f-feedback-message"
|
|
915
917
|
}, [i.value])]);
|
|
916
918
|
}
|
|
917
|
-
}),
|
|
919
|
+
}), vr = /* @__PURE__ */ re({
|
|
918
920
|
name: "FDynamicFormGroup",
|
|
919
|
-
props:
|
|
921
|
+
props: lr,
|
|
920
922
|
emits: ["change", "update:modelValue"],
|
|
921
923
|
setup(e, n) {
|
|
922
924
|
var _;
|
|
923
|
-
const t = I(e.id), r = I(e.customClass), i = I(e.editor), o = I(e.label), a = I(e.modelValue), g = I(e.readonly), d = I(((_ = e.editor) == null ? void 0 : _.required) || e.required),
|
|
925
|
+
const t = I(e.id), r = I(e.customClass), i = I(e.editor), o = I(e.label), a = I(e.modelValue), g = I(e.readonly), d = I(((_ = e.editor) == null ? void 0 : _.required) || e.required), m = I(e.showLabel), p = I(e.visible);
|
|
924
926
|
I(e.type);
|
|
925
|
-
const s = I(), c = I(e.errors), f =
|
|
927
|
+
const s = I(), c = I(e.errors), f = Pn(), l = I(e.editor.type || "input-group"), u = X(() => m.value ? e.showLabelType : "none"), {
|
|
926
928
|
resolveEditorProps: h,
|
|
927
929
|
resolveEditorType: E,
|
|
928
930
|
getChangeFunctionName: k,
|
|
929
931
|
getClearFunctionName: U
|
|
930
|
-
} =
|
|
931
|
-
const
|
|
932
|
+
} = mr(), A = X(() => {
|
|
933
|
+
const L = {
|
|
932
934
|
"form-group": !0,
|
|
933
935
|
"farris-form-group": !0,
|
|
934
936
|
"common-group": !0,
|
|
935
937
|
"q-state-readonly": g.value,
|
|
936
938
|
"form-group--in-mobile": f
|
|
937
939
|
};
|
|
938
|
-
return
|
|
939
|
-
}), R =
|
|
940
|
+
return L["form-group--has-" + l.value] = !0, L;
|
|
941
|
+
}), R = X(() => {
|
|
940
942
|
if (e.fill)
|
|
941
943
|
return {
|
|
942
944
|
maxWidth: "none"
|
|
943
945
|
};
|
|
944
946
|
});
|
|
945
|
-
function
|
|
946
|
-
a.value = q !== void 0 ? q :
|
|
947
|
-
newValue:
|
|
947
|
+
function B(L, q, O) {
|
|
948
|
+
a.value = q !== void 0 ? q : L, n.emit("update:modelValue", a.value), n.emit("change", a.value, {
|
|
949
|
+
newValue: L,
|
|
948
950
|
newModelValue: q,
|
|
949
951
|
parameters: O
|
|
950
952
|
});
|
|
@@ -952,19 +954,19 @@ const fr = {
|
|
|
952
954
|
function M() {
|
|
953
955
|
n.emit("update:modelValue", "");
|
|
954
956
|
}
|
|
955
|
-
function
|
|
957
|
+
function j(L) {
|
|
956
958
|
return (...q) => {
|
|
957
|
-
M(), typeof
|
|
959
|
+
M(), typeof L == "function" && L(...q);
|
|
958
960
|
};
|
|
959
961
|
}
|
|
960
|
-
function L
|
|
962
|
+
function N(L) {
|
|
961
963
|
return (q, O, G) => {
|
|
962
|
-
|
|
964
|
+
B(q, O, G), typeof L == "function" && L(q, O, G);
|
|
963
965
|
};
|
|
964
966
|
}
|
|
965
|
-
const T =
|
|
966
|
-
const
|
|
967
|
-
return W && (O[W] =
|
|
967
|
+
const T = X(() => {
|
|
968
|
+
const L = i.value.type || "input-group", q = E(L), O = h(L, i.value), G = k(L), W = U(i.value.type);
|
|
969
|
+
return W && (O[W] = j(O[W])), G && (O[G] = N(O[G])), (O.id == null || O.id === "") && (O.id = t.value), L === "number-range" && i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" ? (i.value.onBeginValueChange && typeof i.value.onBeginValueChange == "function" && (O.onBeginValueChange = i.value.onBeginValueChange), i.value.onEndValueChange && typeof i.value.onEndValueChange == "function" && (O.onEndValueChange = i.value.onEndValueChange)) : L === "lookup" && i.value["onUpdate:idValue"] && typeof i.value["onUpdate:idValue"] == "function" ? (O["onUpdate:idValue"] = i.value["onUpdate:idValue"], O.id = t.value) : L === "collection-property-editor" && i.value.onSelectionChange && typeof i.value.onSelectionChange == "function" ? O.onSelectionChange = i.value.onSelectionChange : L === "property-editor" && (O.onBeforeOpenVariables = i.value.onBeforeOpenVariables), () => w(q, ze({
|
|
968
970
|
ref: s
|
|
969
971
|
}, O, {
|
|
970
972
|
modelValue: a.value,
|
|
@@ -972,17 +974,17 @@ const fr = {
|
|
|
972
974
|
}), n.slots);
|
|
973
975
|
});
|
|
974
976
|
function J() {
|
|
975
|
-
return w(
|
|
977
|
+
return w(gr, {
|
|
976
978
|
id: `${t.value}-validation-message`,
|
|
977
979
|
errors: c.value
|
|
978
980
|
}, null);
|
|
979
981
|
}
|
|
980
|
-
return Z([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([
|
|
982
|
+
return Z([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([L, q, O, G, W, Q, z, ie, oe, K]) => {
|
|
981
983
|
var te;
|
|
982
|
-
t.value =
|
|
984
|
+
t.value = L, r.value = q, i.value = O, o.value = G, a.value = W, g.value = Q, d.value = ((te = i.value) == null ? void 0 : te.required) || z, m.value = ie, p.value = oe, c.value = K;
|
|
983
985
|
}), n.expose({
|
|
984
986
|
editorRef: s
|
|
985
|
-
}), () =>
|
|
987
|
+
}), () => p.value && w("div", {
|
|
986
988
|
id: `${t.value}-form-group`,
|
|
987
989
|
class: r.value,
|
|
988
990
|
style: e.customStyle
|
|
@@ -991,7 +993,7 @@ const fr = {
|
|
|
991
993
|
style: R.value
|
|
992
994
|
}, [w("div", {
|
|
993
995
|
class: A.value
|
|
994
|
-
}, [w(
|
|
996
|
+
}, [w(cr, {
|
|
995
997
|
id: `${t.value}-lable`,
|
|
996
998
|
showType: u.value,
|
|
997
999
|
required: d.value,
|
|
@@ -1001,15 +1003,15 @@ const fr = {
|
|
|
1001
1003
|
class: "farris-input-wrap"
|
|
1002
1004
|
}, [T.value(), J()])])])]);
|
|
1003
1005
|
}
|
|
1004
|
-
}),
|
|
1006
|
+
}), hr = /* @__PURE__ */ re({
|
|
1005
1007
|
name: "FPropertyPanelItem",
|
|
1006
|
-
props:
|
|
1008
|
+
props: ar,
|
|
1007
1009
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1008
1010
|
setup(e, n) {
|
|
1009
1011
|
var s;
|
|
1010
1012
|
const t = I((s = e.category) == null ? void 0 : s.categoryId), r = I(e.elementConfig.propertyID), i = I(e.elementConfig.propertyName);
|
|
1011
1013
|
I(e.elementConfig.editor);
|
|
1012
|
-
const o = I(e.elementConfig.propertyValue), a =
|
|
1014
|
+
const o = I(e.elementConfig.propertyValue), a = X(() => {
|
|
1013
1015
|
const c = e.elementConfig.visible;
|
|
1014
1016
|
return {
|
|
1015
1017
|
"farris-group-wrap": !0,
|
|
@@ -1039,7 +1041,7 @@ const fr = {
|
|
|
1039
1041
|
};
|
|
1040
1042
|
n.emit("propertyChange", u, l), e.elementConfig.refreshPanelAfterChanged && n.emit("triggerRefreshPanel");
|
|
1041
1043
|
}
|
|
1042
|
-
const d = e.elementConfig.description ? `<div style="color: gray; "> 描述 :${e.elementConfig.description}</div>` : "",
|
|
1044
|
+
const d = e.elementConfig.description ? `<div style="color: gray; "> 描述 :${e.elementConfig.description}</div>` : "", m = _e({
|
|
1043
1045
|
content: `
|
|
1044
1046
|
<div>
|
|
1045
1047
|
<div style="color: black; ">${e.elementConfig.propertyName}</div>
|
|
@@ -1047,15 +1049,15 @@ const fr = {
|
|
|
1047
1049
|
${d}
|
|
1048
1050
|
</div>`,
|
|
1049
1051
|
placement: "left"
|
|
1050
|
-
}),
|
|
1051
|
-
return
|
|
1052
|
+
}), p = I("");
|
|
1053
|
+
return p.value = `${t.value}-${r.value}`, () => w("div", {
|
|
1052
1054
|
class: a.value
|
|
1053
|
-
}, [e.elementConfig.propertyName &&
|
|
1054
|
-
class: `col-form-label ${
|
|
1055
|
+
}, [e.elementConfig.propertyName && Pe(w("label", {
|
|
1056
|
+
class: `col-form-label ${p.value}`
|
|
1055
1057
|
}, [w("span", {
|
|
1056
1058
|
class: "farris-label-text"
|
|
1057
|
-
}, [i.value])]), [[
|
|
1058
|
-
id:
|
|
1059
|
+
}, [i.value])]), [[Xe("tooltip"), m]]), w(vr, {
|
|
1060
|
+
id: p.value,
|
|
1059
1061
|
showLabel: !1,
|
|
1060
1062
|
editor: e.elementConfig.editor,
|
|
1061
1063
|
modelValue: o.value,
|
|
@@ -1063,9 +1065,9 @@ const fr = {
|
|
|
1063
1065
|
editorParams: e.elementConfig.editorParams
|
|
1064
1066
|
}, null)]);
|
|
1065
1067
|
}
|
|
1066
|
-
}),
|
|
1068
|
+
}), yr = /* @__PURE__ */ re({
|
|
1067
1069
|
name: "FPropertyPanelItemList",
|
|
1068
|
-
props:
|
|
1070
|
+
props: sr,
|
|
1069
1071
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1070
1072
|
setup(e, n) {
|
|
1071
1073
|
const t = I(e.category);
|
|
@@ -1120,18 +1122,18 @@ const fr = {
|
|
|
1120
1122
|
changeObject: f
|
|
1121
1123
|
});
|
|
1122
1124
|
}
|
|
1123
|
-
function
|
|
1125
|
+
function m() {
|
|
1124
1126
|
n.emit("triggerRefreshPanel");
|
|
1125
1127
|
}
|
|
1126
|
-
function
|
|
1128
|
+
function p(f) {
|
|
1127
1129
|
return w("div", {
|
|
1128
1130
|
class: "px-2 mb-2"
|
|
1129
|
-
}, [w(
|
|
1131
|
+
}, [w(hr, {
|
|
1130
1132
|
key: g(f),
|
|
1131
1133
|
elementConfig: f,
|
|
1132
1134
|
category: t.value,
|
|
1133
1135
|
onPropertyChange: d,
|
|
1134
|
-
onTriggerRefreshPanel:
|
|
1136
|
+
onTriggerRefreshPanel: m
|
|
1135
1137
|
}, null)]);
|
|
1136
1138
|
}
|
|
1137
1139
|
function s(f) {
|
|
@@ -1153,31 +1155,31 @@ const fr = {
|
|
|
1153
1155
|
class: ["card-body", {
|
|
1154
1156
|
hidden: !f.isExpand
|
|
1155
1157
|
}]
|
|
1156
|
-
}, [(l = f.cascadeConfig) == null ? void 0 : l.map((u) =>
|
|
1158
|
+
}, [(l = f.cascadeConfig) == null ? void 0 : l.map((u) => p(u))])])]);
|
|
1157
1159
|
}
|
|
1158
1160
|
Z(() => e.category, () => {
|
|
1159
1161
|
t.value = e.category;
|
|
1160
1162
|
});
|
|
1161
1163
|
function c(f) {
|
|
1162
|
-
return f.propertyType === "cascade" ? s :
|
|
1164
|
+
return f.propertyType === "cascade" ? s : p;
|
|
1163
1165
|
}
|
|
1164
|
-
return () => w(
|
|
1166
|
+
return () => w(xe, null, [t.value.properties.map((f) => c(f)(f))]);
|
|
1165
1167
|
}
|
|
1166
1168
|
}), we = /* @__PURE__ */ re({
|
|
1167
1169
|
name: "FPropertyPanel",
|
|
1168
|
-
props:
|
|
1170
|
+
props: In,
|
|
1169
1171
|
emits: ["propertyChanged"],
|
|
1170
1172
|
setup(e, n) {
|
|
1171
|
-
const t = I(e.width), r = I(e.isWidePanel), i = I(e.enableSearch), o = I(e.mode), a = I(e.isPersitOpenState), g = I(e.isShowPanel), d = I(),
|
|
1173
|
+
const t = I(e.width), r = I(e.isWidePanel), i = I(e.enableSearch), o = I(e.mode), a = I(e.isPersitOpenState), g = I(e.isShowPanel), d = I(), m = I(), p = I(e.showCloseBtn), s = I(e.selectedTabId), c = I(!0), f = I(e.isWhiteTheme);
|
|
1172
1174
|
let l = [], u = [];
|
|
1173
1175
|
const h = I(""), E = I(), k = I(), U = ve("SchemaService");
|
|
1174
|
-
let A = [], R = null,
|
|
1175
|
-
const M = I(),
|
|
1176
|
+
let A = [], R = null, B = "";
|
|
1177
|
+
const M = I(), j = I(0), N = X(() => l.map((x) => !x.hide).length === 1), T = ve("designerContext");
|
|
1176
1178
|
function J() {
|
|
1177
1179
|
u = [], M.value && M.value.categoryList && Array.isArray(M.value.categoryList) && M.value.categoryList.length > 0 && M.value.categoryList.forEach((P) => {
|
|
1178
1180
|
if (P.properties && Array.isArray(P.properties) && P.properties.length > 0) {
|
|
1179
|
-
const S = P.properties.map(($) => ($.category = P, $.propertyType === "cascade" && $.cascadeConfig && $.cascadeConfig.map((
|
|
1180
|
-
|
|
1181
|
+
const S = P.properties.map(($) => ($.category = P, $.propertyType === "cascade" && $.cascadeConfig && $.cascadeConfig.map((D) => {
|
|
1182
|
+
D.category = P, D.cascadeParent = $, u = u.concat(D);
|
|
1181
1183
|
}), $));
|
|
1182
1184
|
u = u.concat(S);
|
|
1183
1185
|
}
|
|
@@ -1189,11 +1191,11 @@ const fr = {
|
|
|
1189
1191
|
P += S.offsetTop, S = S.offsetParent;
|
|
1190
1192
|
return P;
|
|
1191
1193
|
}
|
|
1192
|
-
function
|
|
1194
|
+
function L(x, P) {
|
|
1193
1195
|
x && P && Object.keys(P).length > 0 && Object.keys(P).forEach((S) => {
|
|
1194
|
-
var
|
|
1196
|
+
var D;
|
|
1195
1197
|
const $ = P[S];
|
|
1196
|
-
(
|
|
1198
|
+
(D = x.style) == null || D.setProperty(S, $);
|
|
1197
1199
|
});
|
|
1198
1200
|
}
|
|
1199
1201
|
function q() {
|
|
@@ -1223,22 +1225,22 @@ const fr = {
|
|
|
1223
1225
|
else if (J(), u && u.length > 0) {
|
|
1224
1226
|
const S = q();
|
|
1225
1227
|
S && S.length > 0 && setTimeout(() => {
|
|
1226
|
-
let $ = null,
|
|
1227
|
-
S.forEach((Y,
|
|
1228
|
+
let $ = null, D = -1, le = !1;
|
|
1229
|
+
S.forEach((Y, je) => {
|
|
1228
1230
|
const De = Y.propertyType === "cascade" ? `.${Y.category.categoryId}-${Y.propertyID} .farris-label-text` : `.property-item .${Y.category.categoryId}-${Y.propertyID}.col-form-label`, de = document.querySelector(De);
|
|
1229
|
-
de && (Y.category.status !== "open" && (Y.category.status = "open", le =
|
|
1231
|
+
de && (Y.category.status !== "open" && (Y.category.status = "open", le = D < 0), Y.cascadeParent && (Y.cascadeParent.isExpand = !0), D < 0 && ($ = de, D = je), L(de, {
|
|
1230
1232
|
color: "#5B89FE"
|
|
1231
1233
|
}), A.push(de));
|
|
1232
|
-
}),
|
|
1233
|
-
O(
|
|
1234
|
-
}) : O(
|
|
1234
|
+
}), D > -1 && (le ? Te(() => {
|
|
1235
|
+
O(D, P, $);
|
|
1236
|
+
}) : O(D, P, $));
|
|
1235
1237
|
}, 50);
|
|
1236
1238
|
}
|
|
1237
1239
|
}
|
|
1238
1240
|
function W(x) {
|
|
1239
1241
|
G();
|
|
1240
1242
|
}
|
|
1241
|
-
const Q =
|
|
1243
|
+
const Q = Qe(W, 200);
|
|
1242
1244
|
function z(x) {
|
|
1243
1245
|
const {
|
|
1244
1246
|
value: P
|
|
@@ -1269,7 +1271,7 @@ const fr = {
|
|
|
1269
1271
|
}
|
|
1270
1272
|
if ((x = d == null ? void 0 : d.value) == null || x.forEach((S) => {
|
|
1271
1273
|
if (S.tabId) {
|
|
1272
|
-
const $ = l.find((
|
|
1274
|
+
const $ = l.find((D) => D.tabId === S.tabId);
|
|
1273
1275
|
$ ? ($.categoryList.push(S), $.hide && ($.hide = S.hide || S.properties.length === 0)) : l.push({
|
|
1274
1276
|
tabId: S.tabId,
|
|
1275
1277
|
tabName: S.tabName,
|
|
@@ -1277,7 +1279,7 @@ const fr = {
|
|
|
1277
1279
|
hide: S.hide || S.properties.length === 0
|
|
1278
1280
|
});
|
|
1279
1281
|
} else {
|
|
1280
|
-
const $ = l.find((
|
|
1282
|
+
const $ = l.find((D) => D.tabId === "default");
|
|
1281
1283
|
$ ? $.categoryList.push(S) : l.push({
|
|
1282
1284
|
tabId: "default",
|
|
1283
1285
|
tabName: "属性",
|
|
@@ -1292,23 +1294,23 @@ const fr = {
|
|
|
1292
1294
|
s.value = (P = M.value) == null ? void 0 : P.tabId;
|
|
1293
1295
|
}
|
|
1294
1296
|
Z(() => [e.schema, e.isShowPanel], () => {
|
|
1295
|
-
|
|
1297
|
+
m.value = e.schema, !e.schema || !e.schema.type ? d.value = [] : (d.value = me(m.value, U, R, B), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value))), ee(), K(h.value), j.value++;
|
|
1296
1298
|
}), he(() => {
|
|
1297
1299
|
ee();
|
|
1298
1300
|
});
|
|
1299
1301
|
function se(x, P, S = !0) {
|
|
1300
|
-
(!
|
|
1302
|
+
(!m.value || P) && (m.value = P || e.schema), d.value = me(m.value, U, R, B, x), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value)), ee(), i.value && K(h.value), S && j.value++;
|
|
1301
1303
|
}
|
|
1302
|
-
function
|
|
1303
|
-
R = x,
|
|
1304
|
+
function H(x, P) {
|
|
1305
|
+
R = x, B = P;
|
|
1304
1306
|
}
|
|
1305
1307
|
function ae() {
|
|
1306
1308
|
o.value = o.value === "panel" ? "sidebar" : "panel", o.value === "panel" ? (setTimeout(() => {
|
|
1307
1309
|
W();
|
|
1308
1310
|
}, 100), t.value = "300px") : t.value = "41px";
|
|
1309
1311
|
}
|
|
1310
|
-
function
|
|
1311
|
-
if (
|
|
1312
|
+
function ke() {
|
|
1313
|
+
if (p.value)
|
|
1312
1314
|
return w("div", {
|
|
1313
1315
|
class: "title-actions"
|
|
1314
1316
|
}, [w("div", {
|
|
@@ -1326,23 +1328,23 @@ const fr = {
|
|
|
1326
1328
|
}, null)])])])])]);
|
|
1327
1329
|
}
|
|
1328
1330
|
function ge() {
|
|
1329
|
-
d.value =
|
|
1331
|
+
d.value = me(m.value, U, R, B), T.filterPropertyEntity && (d.value = T.filterPropertyEntity(d.value, m.value)), ee();
|
|
1330
1332
|
}
|
|
1331
|
-
function
|
|
1333
|
+
function Ve() {
|
|
1332
1334
|
var x;
|
|
1333
1335
|
if (i.value && ((x = M.value) == null ? void 0 : x.tabId) !== "commands")
|
|
1334
1336
|
return w("div", {
|
|
1335
1337
|
class: "search"
|
|
1336
1338
|
}, [w("div", {
|
|
1337
1339
|
class: "input-group f-state-editable border-left-0 border-right-0"
|
|
1338
|
-
}, [
|
|
1340
|
+
}, [Pe(w("input", {
|
|
1339
1341
|
class: "form-control f-utils-fill text-left pt-3 pb-3 textbox",
|
|
1340
1342
|
type: "text",
|
|
1341
1343
|
placeholder: "输入属性名称或编号快速定位",
|
|
1342
1344
|
autocomplete: "off",
|
|
1343
1345
|
onKeyup: (P) => z(P),
|
|
1344
1346
|
"onUpdate:modelValue": (P) => h.value = P
|
|
1345
|
-
}, null), [[
|
|
1347
|
+
}, null), [[Je, h.value]]), w("div", {
|
|
1346
1348
|
class: "input-group-append",
|
|
1347
1349
|
style: "margin-left: 0px; background:none;"
|
|
1348
1350
|
}, [w("span", {
|
|
@@ -1360,10 +1362,10 @@ const fr = {
|
|
|
1360
1362
|
class: "f-icon f-icon-search"
|
|
1361
1363
|
}, null)])])])]);
|
|
1362
1364
|
}
|
|
1363
|
-
function
|
|
1365
|
+
function Me(x) {
|
|
1364
1366
|
return `${e.propertyName}_${x.categoryId}`;
|
|
1365
1367
|
}
|
|
1366
|
-
function
|
|
1368
|
+
function Le(x) {
|
|
1367
1369
|
n.emit("propertyChanged", {
|
|
1368
1370
|
...x,
|
|
1369
1371
|
designerItem: R
|
|
@@ -1380,7 +1382,7 @@ const fr = {
|
|
|
1380
1382
|
"wide-panel": r.value
|
|
1381
1383
|
}]
|
|
1382
1384
|
}, [(P = (x = M.value) == null ? void 0 : x.categoryList) == null ? void 0 : P.map((S) => !S.hide && w("li", {
|
|
1383
|
-
key:
|
|
1385
|
+
key: Me(S),
|
|
1384
1386
|
"data-category-id": S == null ? void 0 : S.categoryId
|
|
1385
1387
|
}, [!S.hideTitle && w("span", {
|
|
1386
1388
|
class: "group-label",
|
|
@@ -1393,12 +1395,12 @@ const fr = {
|
|
|
1393
1395
|
}]
|
|
1394
1396
|
}, null), S.categoryName]), w("div", {
|
|
1395
1397
|
hidden: S.status === "closed"
|
|
1396
|
-
}, [w(
|
|
1397
|
-
key: `${S == null ? void 0 : S.categoryId}-${
|
|
1398
|
+
}, [w(yr, {
|
|
1399
|
+
key: `${S == null ? void 0 : S.categoryId}-${j.value}`,
|
|
1398
1400
|
category: S,
|
|
1399
|
-
propertyData:
|
|
1401
|
+
propertyData: m.value,
|
|
1400
1402
|
onTriggerRefreshPanel: ge,
|
|
1401
|
-
onValueChanged:
|
|
1403
|
+
onValueChanged: Le
|
|
1402
1404
|
}, null)])]))])]);
|
|
1403
1405
|
}
|
|
1404
1406
|
function Ne() {
|
|
@@ -1408,15 +1410,15 @@ const fr = {
|
|
|
1408
1410
|
onClick: ae
|
|
1409
1411
|
}, [w("i", {
|
|
1410
1412
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1411
|
-
}, null), w("span", null, [
|
|
1413
|
+
}, null), w("span", null, [Ee("属性")])]);
|
|
1412
1414
|
}
|
|
1413
|
-
function
|
|
1415
|
+
function Oe() {
|
|
1414
1416
|
return {
|
|
1415
1417
|
display: c.value ? "block" : "none",
|
|
1416
1418
|
width: t.value
|
|
1417
1419
|
};
|
|
1418
1420
|
}
|
|
1419
|
-
function
|
|
1421
|
+
function $e() {
|
|
1420
1422
|
return w("div", {
|
|
1421
1423
|
class: "switcher"
|
|
1422
1424
|
}, [w("i", {
|
|
@@ -1427,17 +1429,17 @@ const fr = {
|
|
|
1427
1429
|
onClick: ae
|
|
1428
1430
|
}, null)]);
|
|
1429
1431
|
}
|
|
1430
|
-
function
|
|
1432
|
+
function Re(x) {
|
|
1431
1433
|
M.value && M.value.tabId === x.tabId || (M.value = x, s.value = M.value.tabId, h.value = "");
|
|
1432
1434
|
}
|
|
1433
|
-
function
|
|
1435
|
+
function Ue() {
|
|
1434
1436
|
return l.map((x) => w("div", {
|
|
1435
1437
|
class: ["title-label", {
|
|
1436
1438
|
active: M.value && M.value.tabId === x.tabId
|
|
1437
1439
|
}, {
|
|
1438
1440
|
"d-none": x.hide
|
|
1439
1441
|
}],
|
|
1440
|
-
onClick: () =>
|
|
1442
|
+
onClick: () => Re(x)
|
|
1441
1443
|
}, [w("span", null, [x.tabName])]));
|
|
1442
1444
|
}
|
|
1443
1445
|
he(() => {
|
|
@@ -1445,54 +1447,54 @@ const fr = {
|
|
|
1445
1447
|
}), He(() => {
|
|
1446
1448
|
a.value && (c.value = g.value), ee(), W(h.value);
|
|
1447
1449
|
});
|
|
1448
|
-
function Ue() {
|
|
1449
|
-
D.value++;
|
|
1450
|
-
}
|
|
1451
1450
|
function Ae() {
|
|
1451
|
+
j.value++;
|
|
1452
|
+
}
|
|
1453
|
+
function qe() {
|
|
1452
1454
|
ge();
|
|
1453
1455
|
}
|
|
1454
1456
|
return n.expose({
|
|
1455
1457
|
updatePropertyConfig: se,
|
|
1456
|
-
updateDesignerItem:
|
|
1457
|
-
reloadPropertyPanel:
|
|
1458
|
-
refreshPanel:
|
|
1459
|
-
}), () => w(
|
|
1458
|
+
updateDesignerItem: H,
|
|
1459
|
+
reloadPropertyPanel: Ae,
|
|
1460
|
+
refreshPanel: qe
|
|
1461
|
+
}), () => w(xe, null, [w("div", {
|
|
1460
1462
|
ref: E,
|
|
1461
1463
|
class: ["property-panel", {
|
|
1462
1464
|
"white-theme": f.value
|
|
1463
1465
|
}],
|
|
1464
|
-
style:
|
|
1466
|
+
style: Oe()
|
|
1465
1467
|
}, [w("div", {
|
|
1466
1468
|
class: "propertyPanel panel flex-column",
|
|
1467
1469
|
hidden: o.value !== "panel"
|
|
1468
1470
|
}, [w("div", {
|
|
1469
1471
|
class: ["title d-flex", {
|
|
1470
|
-
"p-right":
|
|
1472
|
+
"p-right": p.value
|
|
1471
1473
|
}, {
|
|
1472
|
-
only:
|
|
1474
|
+
only: N.value
|
|
1473
1475
|
}]
|
|
1474
|
-
}, [
|
|
1476
|
+
}, [Ue(), ke()]), Ve(), Be()]), $e(), Ne()])]);
|
|
1475
1477
|
}
|
|
1476
1478
|
});
|
|
1477
|
-
function
|
|
1479
|
+
function br(e) {
|
|
1478
1480
|
const { formSchemaUtils: n, formStateMachineUtils: t } = e;
|
|
1479
|
-
function r(d,
|
|
1481
|
+
function r(d, m = "") {
|
|
1480
1482
|
return {
|
|
1481
|
-
path:
|
|
1483
|
+
path: m + d.code,
|
|
1482
1484
|
field: d.id,
|
|
1483
1485
|
fullPath: d.code
|
|
1484
1486
|
};
|
|
1485
1487
|
}
|
|
1486
|
-
function i(d,
|
|
1487
|
-
const
|
|
1488
|
-
return
|
|
1488
|
+
function i(d, m = "") {
|
|
1489
|
+
const p = n.getViewModelById(d);
|
|
1490
|
+
return p ? p.states.map((s) => r(s, m)) : [];
|
|
1489
1491
|
}
|
|
1490
1492
|
function o(d) {
|
|
1491
|
-
const
|
|
1492
|
-
if (d ===
|
|
1493
|
-
return
|
|
1494
|
-
const s = i(
|
|
1495
|
-
return [...
|
|
1493
|
+
const m = n.getRootViewModelId(), p = i(d);
|
|
1494
|
+
if (d === m)
|
|
1495
|
+
return p;
|
|
1496
|
+
const s = i(m, "root-component.");
|
|
1497
|
+
return [...p, ...s];
|
|
1496
1498
|
}
|
|
1497
1499
|
function a(d) {
|
|
1498
1500
|
return d.binding && d.binding.path || d.id || "";
|
|
@@ -1502,7 +1504,7 @@ function yr(e) {
|
|
|
1502
1504
|
}
|
|
1503
1505
|
return { getVariables: o, getControlName: a, getStateMachines: g };
|
|
1504
1506
|
}
|
|
1505
|
-
class
|
|
1507
|
+
class Ie {
|
|
1506
1508
|
constructor(n) {
|
|
1507
1509
|
V(this, "sessionVariables", [
|
|
1508
1510
|
{
|
|
@@ -1558,10 +1560,10 @@ class Te {
|
|
|
1558
1560
|
convertTo: (r, i, o, a, g) => {
|
|
1559
1561
|
var d;
|
|
1560
1562
|
if (i === "dataPicking" && (o != null && o.target)) {
|
|
1561
|
-
const
|
|
1563
|
+
const m = `${o.target}_dataPicking`;
|
|
1562
1564
|
((d = o.rules) == null ? void 0 : d.some(
|
|
1563
|
-
(s) => s.id ===
|
|
1564
|
-
)) ? r.dictPickingExpressionId =
|
|
1565
|
+
(s) => s.id === m && s.value
|
|
1566
|
+
)) ? r.dictPickingExpressionId = m : delete r.dictPickingExpressionId;
|
|
1565
1567
|
}
|
|
1566
1568
|
a.updateExpression(o);
|
|
1567
1569
|
}
|
|
@@ -1621,10 +1623,10 @@ class Te {
|
|
|
1621
1623
|
buildChildEntityTreeData(n = null, t) {
|
|
1622
1624
|
const r = [];
|
|
1623
1625
|
return n == null || n.forEach((i) => {
|
|
1624
|
-
var d,
|
|
1626
|
+
var d, m;
|
|
1625
1627
|
const o = this.createTreeNode(i, t);
|
|
1626
1628
|
o.type = "entity";
|
|
1627
|
-
const a = this.buildEntityFieldsTreeData((d = i.type) == null ? void 0 : d.fields, [...t, i.label]), g = this.buildChildEntityTreeData((
|
|
1629
|
+
const a = this.buildEntityFieldsTreeData((d = i.type) == null ? void 0 : d.fields, [...t, i.label]), g = this.buildChildEntityTreeData((m = i.type) == null ? void 0 : m.entities, [...t, i.label]);
|
|
1628
1630
|
g != null && g.length && (a == null || a.push(...g)), r.push({
|
|
1629
1631
|
data: o,
|
|
1630
1632
|
children: a || [],
|
|
@@ -1687,19 +1689,19 @@ class Te {
|
|
|
1687
1689
|
}
|
|
1688
1690
|
updateExpression(n, t, r, i) {
|
|
1689
1691
|
const o = t === "Field" ? n.binding.field : n.id, a = this.buildRule(o, r, i, n.type === "form-group" ? n.id : "");
|
|
1690
|
-
let d = this.getExpressionData().find((
|
|
1691
|
-
const
|
|
1692
|
+
let d = this.getExpressionData().find((p) => p.targetType === t && p.target === o);
|
|
1693
|
+
const m = (p) => p.value.trim() === "";
|
|
1692
1694
|
if (d) {
|
|
1693
|
-
const
|
|
1694
|
-
if (
|
|
1695
|
-
|
|
1695
|
+
const p = d.rules.find((s) => s.id === a.id);
|
|
1696
|
+
if (p)
|
|
1697
|
+
m(a) ? d.rules = d.rules.filter((s) => s.id !== a.id) : (Object.assign(p, a), i === "validate" && n.type === "form-group" && (p.elementId = n.id));
|
|
1696
1698
|
else {
|
|
1697
|
-
if (
|
|
1699
|
+
if (m(a))
|
|
1698
1700
|
return null;
|
|
1699
1701
|
d.rules = d.rules || [], d.rules.push(a);
|
|
1700
1702
|
}
|
|
1701
1703
|
} else {
|
|
1702
|
-
if (
|
|
1704
|
+
if (m(a))
|
|
1703
1705
|
return null;
|
|
1704
1706
|
d = {
|
|
1705
1707
|
target: `${o}`,
|
|
@@ -1711,10 +1713,10 @@ class Te {
|
|
|
1711
1713
|
}
|
|
1712
1714
|
getExpressionEditorOptions(n, t, r, i) {
|
|
1713
1715
|
return r.reduce((o, a) => {
|
|
1714
|
-
var d,
|
|
1716
|
+
var d, m;
|
|
1715
1717
|
const g = t === "Field" ? (d = n == null ? void 0 : n.binding) == null ? void 0 : d.field : n.id;
|
|
1716
1718
|
return o[a] = {
|
|
1717
|
-
hide: t === "Field" ? !!((
|
|
1719
|
+
hide: t === "Field" ? !!((m = n == null ? void 0 : n.binding) != null && m.field) : !1,
|
|
1718
1720
|
description: "",
|
|
1719
1721
|
title: this.expressionNames[a],
|
|
1720
1722
|
type: "string",
|
|
@@ -1727,10 +1729,10 @@ class Te {
|
|
|
1727
1729
|
showMessage: a === "validate" || a === "dataPicking" || a === "required",
|
|
1728
1730
|
showMessageType: a === "dataPicking",
|
|
1729
1731
|
beforeOpen: () => this.onBeforeOpenExpression(n, a, t),
|
|
1730
|
-
onSubmitModal: (
|
|
1731
|
-
const s = this.updateExpression(n, t,
|
|
1732
|
+
onSubmitModal: (p) => {
|
|
1733
|
+
const s = this.updateExpression(n, t, p, a);
|
|
1732
1734
|
if (i) {
|
|
1733
|
-
const c = this.buildRule(g,
|
|
1735
|
+
const c = this.buildRule(g, p, a);
|
|
1734
1736
|
i(c);
|
|
1735
1737
|
}
|
|
1736
1738
|
return s;
|
|
@@ -1769,7 +1771,7 @@ class Te {
|
|
|
1769
1771
|
};
|
|
1770
1772
|
}
|
|
1771
1773
|
}
|
|
1772
|
-
class
|
|
1774
|
+
class Cr {
|
|
1773
1775
|
constructor(n, t) {
|
|
1774
1776
|
V(this, "componentId");
|
|
1775
1777
|
V(this, "viewModelId");
|
|
@@ -1886,7 +1888,7 @@ class br {
|
|
|
1886
1888
|
* @returns
|
|
1887
1889
|
*/
|
|
1888
1890
|
getPropertyEditorParams(n, t = [], r = "visible", i = {}, o = {}, a = "") {
|
|
1889
|
-
const { getVariables: g, getControlName: d, getStateMachines:
|
|
1891
|
+
const { getVariables: g, getControlName: d, getStateMachines: m } = br(this.designerHostService), p = this.getRealTargetType(n), s = t && t.length > 0 ? t : ["Const", "Variable", "StateMachine", "Expression"], c = {
|
|
1890
1892
|
type: "property-editor",
|
|
1891
1893
|
propertyTypes: s
|
|
1892
1894
|
};
|
|
@@ -1899,10 +1901,10 @@ class br {
|
|
|
1899
1901
|
}, i);
|
|
1900
1902
|
break;
|
|
1901
1903
|
case "Expression":
|
|
1902
|
-
c.expressionConfig = this.getExpressionOptions(n,
|
|
1904
|
+
c.expressionConfig = this.getExpressionOptions(n, p, a || r);
|
|
1903
1905
|
break;
|
|
1904
1906
|
case "StateMachine":
|
|
1905
|
-
c.stateMachines =
|
|
1907
|
+
c.stateMachines = m();
|
|
1906
1908
|
break;
|
|
1907
1909
|
case "Variable":
|
|
1908
1910
|
Object.assign(c, {
|
|
@@ -1948,7 +1950,7 @@ class br {
|
|
|
1948
1950
|
return {
|
|
1949
1951
|
...o,
|
|
1950
1952
|
properties: { ...a },
|
|
1951
|
-
setPropertyRelates(d,
|
|
1953
|
+
setPropertyRelates(d, m) {
|
|
1952
1954
|
if (d) {
|
|
1953
1955
|
switch (d.propertyID) {
|
|
1954
1956
|
case "disabled":
|
|
@@ -1957,7 +1959,7 @@ class br {
|
|
|
1957
1959
|
g.afterMutilEditorChanged(n, d);
|
|
1958
1960
|
break;
|
|
1959
1961
|
}
|
|
1960
|
-
i && i(d,
|
|
1962
|
+
i && i(d, m);
|
|
1961
1963
|
}
|
|
1962
1964
|
}
|
|
1963
1965
|
};
|
|
@@ -1980,8 +1982,8 @@ class br {
|
|
|
1980
1982
|
const r = t && t.parent && t.parent.schema;
|
|
1981
1983
|
if (!r)
|
|
1982
1984
|
return;
|
|
1983
|
-
const i = r.contents.findIndex((a) => a.id === n), o =
|
|
1984
|
-
r.contents.splice(i, 1), r.contents.splice(i, 0, o),
|
|
1985
|
+
const i = r.contents.findIndex((a) => a.id === n), o = fe(r.contents[i]);
|
|
1986
|
+
r.contents.splice(i, 1), r.contents.splice(i, 0, o), Tn();
|
|
1985
1987
|
}
|
|
1986
1988
|
/**
|
|
1987
1989
|
* 属性编辑器,在编辑过程中会新增变量,此处需要将新增的变量追加到ViewModel中
|
|
@@ -2011,16 +2013,16 @@ class br {
|
|
|
2011
2013
|
const t = n.propertyValue;
|
|
2012
2014
|
if (!((t && t.type) === "Expression" && t.expressionInfo))
|
|
2013
2015
|
return;
|
|
2014
|
-
const { expressionId: o, expressionInfo: a } = t, { targetId: g, targetType: d, expressionType:
|
|
2016
|
+
const { expressionId: o, expressionInfo: a } = t, { targetId: g, targetType: d, expressionType: m, value: p, message: s } = a, c = this.formSchemaUtils.getModule();
|
|
2015
2017
|
c.expressions = c.expressions || [];
|
|
2016
2018
|
const { expressions: f } = c;
|
|
2017
2019
|
let l = f.find((h) => h.target === g);
|
|
2018
2020
|
l || (l = { target: g, rules: [], targetType: d }, f.push(l));
|
|
2019
|
-
const u = l.rules.find((h) => h.type ===
|
|
2021
|
+
const u = l.rules.find((h) => h.type === m);
|
|
2020
2022
|
if (u)
|
|
2021
|
-
u.value =
|
|
2023
|
+
u.value = p, u.message = s;
|
|
2022
2024
|
else {
|
|
2023
|
-
const h = { id: o, type:
|
|
2025
|
+
const h = { id: o, type: m, value: p, message: s };
|
|
2024
2026
|
l.rules.push(h);
|
|
2025
2027
|
}
|
|
2026
2028
|
delete t.expressionInfo;
|
|
@@ -2035,11 +2037,11 @@ class br {
|
|
|
2035
2037
|
const r = n.propertyValue;
|
|
2036
2038
|
if (r && r.type === "Expression")
|
|
2037
2039
|
return;
|
|
2038
|
-
const o = n.propertyID, a = this.formSchemaUtils.getExpressions(), g = t.binding ? t.binding.field : t.id, d = a.find((
|
|
2039
|
-
!d || !d.rules || (d.rules = d.rules.filter((
|
|
2040
|
+
const o = n.propertyID, a = this.formSchemaUtils.getExpressions(), g = t.binding ? t.binding.field : t.id, d = a.find((m) => m.target === g);
|
|
2041
|
+
!d || !d.rules || (d.rules = d.rules.filter((m) => m.type !== o));
|
|
2040
2042
|
}
|
|
2041
2043
|
getExpressionOptions(n, t, r) {
|
|
2042
|
-
return new
|
|
2044
|
+
return new Ie(this.formSchemaUtils).getExpressionOptions(n, t, r);
|
|
2043
2045
|
}
|
|
2044
2046
|
getRealTargetType(n) {
|
|
2045
2047
|
return ["response-toolbar-item", "tab-toolbar-item", "section-toolbar-item", "drawer-toolbar-item"].indexOf(n.type) > -1 ? "Button" : n.binding && n.binding.field ? "Field" : "Container";
|
|
@@ -2151,8 +2153,8 @@ V(ne, "fieldControlTypeMapping", {
|
|
|
2151
2153
|
]
|
|
2152
2154
|
});
|
|
2153
2155
|
let pe = ne;
|
|
2154
|
-
var
|
|
2155
|
-
class
|
|
2156
|
+
var Fr = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(Fr || {}), ue = /* @__PURE__ */ ((e) => (e.Form = "Form", e.Variable = "Variable", e))(ue || {});
|
|
2157
|
+
class Se {
|
|
2156
2158
|
constructor() {
|
|
2157
2159
|
/** 控件标题 */
|
|
2158
2160
|
V(this, "label", "");
|
|
@@ -2186,8 +2188,8 @@ function wr(e) {
|
|
|
2186
2188
|
let n, t;
|
|
2187
2189
|
const r = /* @__PURE__ */ new Map();
|
|
2188
2190
|
let i = [];
|
|
2189
|
-
function o(
|
|
2190
|
-
const f =
|
|
2191
|
+
function o(p, s) {
|
|
2192
|
+
const f = ((p == null ? void 0 : p.split(" ")) || []).filter((k) => k.startsWith("col-"));
|
|
2191
2193
|
if (f.length === 0) {
|
|
2192
2194
|
s.isSupportedClass = !1;
|
|
2193
2195
|
return;
|
|
@@ -2195,31 +2197,38 @@ function wr(e) {
|
|
|
2195
2197
|
let l = f.find((k) => /^col-([1-9]|10|11|12)$/.test(k)), u = f.find((k) => /^col-md-([1-9]|10|11|12)$/.test(k)), h = f.find((k) => /^col-xl-([1-9]|10|11|12)$/.test(k)), E = f.find((k) => /^col-el-([1-9]|10|11|12)$/.test(k));
|
|
2196
2198
|
l = l || "col-12", s.columnInSM = parseInt(l.replace("col-", ""), 10), s.displayWidthInSM = s.columnInSM / 12, s.displayWidthInSM !== 1 && (s.isSupportedClass = !1), u = u || "col-md-" + s.columnInSM, s.columnInMD = parseInt(u.replace("col-md-", ""), 10), s.displayWidthInMD = s.columnInMD / 6, [1, 2].includes(s.displayWidthInMD) || (s.isSupportedClass = !1), h = h || "col-xl-" + s.columnInMD, s.columnInLG = parseInt(h.replace("col-xl-", ""), 10), s.displayWidthInLG = s.columnInLG / 3, [1, 2, 3, 4].includes(s.displayWidthInLG) || (s.isSupportedClass = !1), E = E || "col-el-" + s.columnInLG, s.columnInEL = parseInt(E.replace("col-el-", ""), 10), s.displayWidthInEL = s.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(s.displayWidthInEL) || (s.isSupportedClass = !1);
|
|
2197
2199
|
}
|
|
2198
|
-
function a(
|
|
2200
|
+
function a(p, s, c, f = !1) {
|
|
2199
2201
|
let l = !1;
|
|
2200
|
-
|
|
2202
|
+
if (!p.contents || p.contents.length === 0) {
|
|
2203
|
+
const u = new Se();
|
|
2204
|
+
o(p.layout, u), s.push(u);
|
|
2205
|
+
return;
|
|
2206
|
+
}
|
|
2207
|
+
p.contents.forEach((u) => {
|
|
2201
2208
|
if (u.type === "fieldset") {
|
|
2202
2209
|
c += 1, a(u, s, c, !0), l = !0;
|
|
2203
2210
|
return;
|
|
2204
2211
|
}
|
|
2212
|
+
if (u.type === "dynamic-form")
|
|
2213
|
+
return;
|
|
2205
2214
|
l && (c += 1, l = !1);
|
|
2206
|
-
const h = u.appearance && u.appearance.class, E = new
|
|
2207
|
-
h ? o(h, E) : E.isSupportedClass = !1, E.label = u.label || u.id, E.id = u.id, E.group = c, f && (E.fieldSetId =
|
|
2215
|
+
const h = u.appearance && u.appearance.class, E = new Se();
|
|
2216
|
+
h ? o(h, E) : E.isSupportedClass = !1, E.label = u.label || u.id, E.id = u.id, E.group = c, f && (E.fieldSetId = p.id), t === u.id && (n = c), r.set(u.id, u), s.push(E);
|
|
2208
2217
|
});
|
|
2209
2218
|
}
|
|
2210
|
-
function g(
|
|
2211
|
-
const s = e.getComponentById(
|
|
2219
|
+
function g(p) {
|
|
2220
|
+
const s = e.getComponentById(p);
|
|
2212
2221
|
if (!s || !s.componentType || !s.componentType.startsWith("form"))
|
|
2213
2222
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
2214
2223
|
const c = e.selectNode(s, (f) => f.type === v["response-form"].type);
|
|
2215
2224
|
return !c || !c.contents || c.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: c };
|
|
2216
2225
|
}
|
|
2217
|
-
function d(
|
|
2218
|
-
s = s ||
|
|
2226
|
+
function d(p, s) {
|
|
2227
|
+
s = s || p.id;
|
|
2219
2228
|
const { result: c, message: f, formNode: l } = g(s);
|
|
2220
2229
|
if (!c)
|
|
2221
2230
|
return { result: c, message: f };
|
|
2222
|
-
t =
|
|
2231
|
+
t = p.id, i = [], r.clear();
|
|
2223
2232
|
const u = l.contents[0].type === v.fieldset.type ? 0 : 1;
|
|
2224
2233
|
a(l, i, u);
|
|
2225
2234
|
const h = i.find((k) => !k.isSupportedClass);
|
|
@@ -2231,18 +2240,18 @@ function wr(e) {
|
|
|
2231
2240
|
importData: i
|
|
2232
2241
|
};
|
|
2233
2242
|
}
|
|
2234
|
-
function p
|
|
2243
|
+
function m(p, s) {
|
|
2235
2244
|
s = s;
|
|
2236
2245
|
const { result: c, formNode: f } = g(s);
|
|
2237
2246
|
if (!c)
|
|
2238
2247
|
return "";
|
|
2239
2248
|
const l = [];
|
|
2240
|
-
return
|
|
2249
|
+
return p.forEach((u) => {
|
|
2241
2250
|
var k;
|
|
2242
2251
|
const h = r.get(u.id), E = h.appearance && h.appearance.class;
|
|
2243
2252
|
if (E) {
|
|
2244
|
-
const A = E.split(" ").filter((T) => !T.startsWith("col-")), R = "col-" + u.columnInSM,
|
|
2245
|
-
h.appearance.class =
|
|
2253
|
+
const A = E.split(" ").filter((T) => !T.startsWith("col-")), R = "col-" + u.columnInSM, B = "col-md-" + u.columnInMD, M = "col-xl-" + u.columnInLG, j = "col-el-" + u.columnInEL, N = [R, B, M, j].concat(A);
|
|
2254
|
+
h.appearance.class = N.join(" ");
|
|
2246
2255
|
}
|
|
2247
2256
|
if (u.fieldSetId) {
|
|
2248
2257
|
const U = f.contents.find((R) => R.id === u.fieldSetId), A = l.find((R) => R.id === u.fieldSetId);
|
|
@@ -2254,11 +2263,11 @@ function wr(e) {
|
|
|
2254
2263
|
return {
|
|
2255
2264
|
checkCanFindFormNode: g,
|
|
2256
2265
|
checkCanOpenLayoutEditor: d,
|
|
2257
|
-
changeFormControlsByResponseLayoutConfig:
|
|
2266
|
+
changeFormControlsByResponseLayoutConfig: m,
|
|
2258
2267
|
getResonseFormLayoutConfig: a
|
|
2259
2268
|
};
|
|
2260
2269
|
}
|
|
2261
|
-
class Zi extends
|
|
2270
|
+
class Zi extends Cr {
|
|
2262
2271
|
constructor(t, r) {
|
|
2263
2272
|
super(t, r);
|
|
2264
2273
|
V(this, "responseLayoutEditorFunction");
|
|
@@ -2282,7 +2291,7 @@ class Zi extends br {
|
|
|
2282
2291
|
return this.propertyConfig.categories = {}, this.getCommonPropertyConfig(t, r, "Grid"), this.getGridFieldEdtiorProperties ? this.propertyConfig.categories.editor = this.getGridFieldEdtiorProperties(t) : this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig.categories.expressons = this.getExpressionConfig(t, "Field"), this.propertyConfig.categories;
|
|
2283
2292
|
}
|
|
2284
2293
|
getBasicProperties(t, r, i = "Card") {
|
|
2285
|
-
var
|
|
2294
|
+
var m;
|
|
2286
2295
|
const o = this;
|
|
2287
2296
|
this.setDesignViewModelField(t);
|
|
2288
2297
|
const { canChangeControlType: a, editorTypeList: g } = this.getAvailableEditorType(t), d = {
|
|
@@ -2323,7 +2332,7 @@ class Zi extends br {
|
|
|
2323
2332
|
editor: {
|
|
2324
2333
|
data: [{ id: "visible", name: "显示" }, { id: "reserve-space", name: "占位" }, { id: "none", name: "不显示" }]
|
|
2325
2334
|
},
|
|
2326
|
-
defaultValue: ((
|
|
2335
|
+
defaultValue: ((m = t.editor) == null ? void 0 : m.type) === "image" ? "none" : "visible"
|
|
2327
2336
|
},
|
|
2328
2337
|
binding: {
|
|
2329
2338
|
description: "绑定的表单字段",
|
|
@@ -2344,19 +2353,19 @@ class Zi extends br {
|
|
|
2344
2353
|
readonly: this.formSchemaUtils.designerMode === "PC_RTC" && !t.isRtcControl
|
|
2345
2354
|
}
|
|
2346
2355
|
},
|
|
2347
|
-
setPropertyRelates(
|
|
2348
|
-
if (
|
|
2349
|
-
switch (
|
|
2356
|
+
setPropertyRelates(p, s, c) {
|
|
2357
|
+
if (p)
|
|
2358
|
+
switch (p && p.propertyID) {
|
|
2350
2359
|
case "type": {
|
|
2351
|
-
o.changeControlType(t,
|
|
2360
|
+
o.changeControlType(t, p, r);
|
|
2352
2361
|
break;
|
|
2353
2362
|
}
|
|
2354
2363
|
case "label": {
|
|
2355
|
-
|
|
2364
|
+
p.needRefreshControlTree = !0;
|
|
2356
2365
|
break;
|
|
2357
2366
|
}
|
|
2358
2367
|
case "binding": {
|
|
2359
|
-
o.changeBindingField(t,
|
|
2368
|
+
o.changeBindingField(t, p, c);
|
|
2360
2369
|
break;
|
|
2361
2370
|
}
|
|
2362
2371
|
}
|
|
@@ -2466,28 +2475,28 @@ class Zi extends br {
|
|
|
2466
2475
|
const o = r.propertyValue, a = i && i.parent && i.parent.schema;
|
|
2467
2476
|
if (!a)
|
|
2468
2477
|
return;
|
|
2469
|
-
const g = a.contents.findIndex((
|
|
2478
|
+
const g = a.contents.findIndex((p) => p.id === t.id);
|
|
2470
2479
|
if (g === -1)
|
|
2471
2480
|
return;
|
|
2472
2481
|
const d = a.contents[g];
|
|
2473
|
-
let
|
|
2482
|
+
let m;
|
|
2474
2483
|
if (this.designViewModelField) {
|
|
2475
2484
|
const c = this.formSchemaUtils.getViewModelById(this.viewModelId).fields.find((l) => l.id === this.designViewModelField.id).fieldSchema || {};
|
|
2476
|
-
c.editor || (c.editor = {}), c.editor.$type = o, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1),
|
|
2485
|
+
c.editor || (c.editor = {}), c.editor.$type = o, this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, c, !1), m = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, o);
|
|
2477
2486
|
}
|
|
2478
|
-
|
|
2487
|
+
m || (m = this.controlCreatorUtils.createFormGroupWithoutField(o)), Object.assign(m, {
|
|
2479
2488
|
id: d.id,
|
|
2480
2489
|
appearance: d.appearance,
|
|
2481
2490
|
size: d.size,
|
|
2482
2491
|
label: d.label,
|
|
2483
2492
|
binding: d.binding
|
|
2484
|
-
}), Object.prototype.hasOwnProperty.call(d, "visible") && Object.assign(
|
|
2485
|
-
Object.prototype.hasOwnProperty.call(d.editor,
|
|
2486
|
-
}), i != null && i.updateContextSchema ? i.updateContextSchema(
|
|
2487
|
-
(
|
|
2493
|
+
}), Object.prototype.hasOwnProperty.call(d, "visible") && Object.assign(m, { visible: d.visible }), d.editor && ["readonly", "required", "placeholder"].map((p) => {
|
|
2494
|
+
Object.prototype.hasOwnProperty.call(d.editor, p) && (m.editor[p] = d.editor[p]);
|
|
2495
|
+
}), i != null && i.updateContextSchema ? i.updateContextSchema(m) : (i.schema = Object.assign(d, m), Object.assign(t, m)), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
2496
|
+
(p) => p.classList.remove("dgComponentSelected")
|
|
2488
2497
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
2489
|
-
(
|
|
2490
|
-
), ce.value++,
|
|
2498
|
+
(p) => p.classList.remove("dgComponentFocused")
|
|
2499
|
+
), ce.value++, Te(() => {
|
|
2491
2500
|
this.getFormDesignerInstance().reloadPropertyPanel();
|
|
2492
2501
|
});
|
|
2493
2502
|
}
|
|
@@ -2499,7 +2508,7 @@ class Zi extends br {
|
|
|
2499
2508
|
type: "input-group",
|
|
2500
2509
|
$converter: "/converter/property-editor.converter",
|
|
2501
2510
|
parentPropertyID: "editor"
|
|
2502
|
-
}, r), g = (c = t.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], d = this.getPropertyEditorParams(t, g, "readonly"),
|
|
2511
|
+
}, r), g = (c = t.binding) != null && c.field ? [] : ["Const", "Variable", "StateMachine"], d = this.getPropertyEditorParams(t, g, "readonly"), m = this.getPropertyEditorParams(t, g, "required"), p = {
|
|
2503
2512
|
readonly: {
|
|
2504
2513
|
description: "",
|
|
2505
2514
|
title: "只读",
|
|
@@ -2509,7 +2518,7 @@ class Zi extends br {
|
|
|
2509
2518
|
description: "",
|
|
2510
2519
|
title: "必填",
|
|
2511
2520
|
type: "boolean",
|
|
2512
|
-
editor:
|
|
2521
|
+
editor: m,
|
|
2513
2522
|
visible: !!((f = t.binding) != null && f.field)
|
|
2514
2523
|
},
|
|
2515
2524
|
placeholder: {
|
|
@@ -2519,11 +2528,11 @@ class Zi extends br {
|
|
|
2519
2528
|
}
|
|
2520
2529
|
};
|
|
2521
2530
|
for (const l in i)
|
|
2522
|
-
|
|
2531
|
+
p[l] = Object.assign(p[l] || {}, i[l]);
|
|
2523
2532
|
const s = this;
|
|
2524
2533
|
return {
|
|
2525
2534
|
...a,
|
|
2526
|
-
properties: { ...
|
|
2535
|
+
properties: { ...p },
|
|
2527
2536
|
setPropertyRelates(l, u) {
|
|
2528
2537
|
if (l) {
|
|
2529
2538
|
switch (l.propertyID) {
|
|
@@ -2545,16 +2554,16 @@ class Zi extends br {
|
|
|
2545
2554
|
*/
|
|
2546
2555
|
updateUnifiedLayoutAfterControlChanged(t, r, i) {
|
|
2547
2556
|
const o = t.split(" ");
|
|
2548
|
-
let a = o.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), g = o.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), d = o.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)),
|
|
2549
|
-
a = a || "col-12", g = g || "col-md-" + a.replace("col-", ""), d = d || "col-xl-" + g.replace("col-md-", ""),
|
|
2550
|
-
const
|
|
2557
|
+
let a = o.find((s) => /^col-([1-9]|10|11|12)$/.test(s)), g = o.find((s) => /^col-md-([1-9]|10|11|12)$/.test(s)), d = o.find((s) => /^col-xl-([1-9]|10|11|12)$/.test(s)), m = o.find((s) => /^col-el-([1-9]|10|11|12)$/.test(s));
|
|
2558
|
+
a = a || "col-12", g = g || "col-md-" + a.replace("col-", ""), d = d || "col-xl-" + g.replace("col-md-", ""), m = m || "col-el-" + d.replace("col-xl-", "");
|
|
2559
|
+
const p = {
|
|
2551
2560
|
id: r,
|
|
2552
2561
|
columnInSM: parseInt(a.replace("col-", ""), 10),
|
|
2553
2562
|
columnInMD: parseInt(g.replace("col-md-", ""), 10),
|
|
2554
2563
|
columnInLG: parseInt(d.replace("col-xl-", ""), 10),
|
|
2555
|
-
columnInEL: parseInt(
|
|
2564
|
+
columnInEL: parseInt(m.replace("col-el-", ""), 10)
|
|
2556
2565
|
};
|
|
2557
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(i,
|
|
2566
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(i, p);
|
|
2558
2567
|
}
|
|
2559
2568
|
/**
|
|
2560
2569
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -2570,9 +2579,9 @@ class Zi extends br {
|
|
|
2570
2579
|
const l = o.find((u) => u.id === r.id);
|
|
2571
2580
|
Object.assign(l || {}, r);
|
|
2572
2581
|
}
|
|
2573
|
-
const a = o.map((l) => l.columnInSM), g = o.map((l) => l.columnInMD), d = o.map((l) => l.columnInLG),
|
|
2582
|
+
const a = o.map((l) => l.columnInSM), g = o.map((l) => l.columnInMD), d = o.map((l) => l.columnInLG), m = o.map((l) => l.columnInEL), p = this.checkIsUniqueColumn(a) ? a[0] : null, s = this.checkIsUniqueColumn(g) ? g[0] : null, c = this.checkIsUniqueColumn(d) ? d[0] : null, f = this.checkIsUniqueColumn(m) ? m[0] : null;
|
|
2574
2583
|
Object.assign(i.unifiedLayout, {
|
|
2575
|
-
uniqueColClassInSM:
|
|
2584
|
+
uniqueColClassInSM: p,
|
|
2576
2585
|
uniqueColClassInMD: s,
|
|
2577
2586
|
uniqueColClassInLG: c,
|
|
2578
2587
|
uniqueColClassInEL: f
|
|
@@ -2616,7 +2625,7 @@ class Zi extends br {
|
|
|
2616
2625
|
* @param propertyData 下拉框控件属性值
|
|
2617
2626
|
*/
|
|
2618
2627
|
checkEnumDataReadonly(t) {
|
|
2619
|
-
return !t.binding || t.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
2628
|
+
return !t.binding || t.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === xn.EnumType);
|
|
2620
2629
|
}
|
|
2621
2630
|
/**
|
|
2622
2631
|
* 将字段值变化前事件、变化后事件追加到交互面板
|
|
@@ -2672,7 +2681,7 @@ class Zi extends br {
|
|
|
2672
2681
|
};
|
|
2673
2682
|
}
|
|
2674
2683
|
getExpressionConfig(t, r, i = ["compute", "dependency", "validate"], o) {
|
|
2675
|
-
return new
|
|
2684
|
+
return new Ie(this.formSchemaUtils).getExpressionConfig(
|
|
2676
2685
|
t,
|
|
2677
2686
|
r,
|
|
2678
2687
|
i,
|
|
@@ -2710,14 +2719,14 @@ const Ki = {
|
|
|
2710
2719
|
}
|
|
2711
2720
|
};
|
|
2712
2721
|
export {
|
|
2713
|
-
|
|
2714
|
-
|
|
2722
|
+
Cr as BaseControlProperty,
|
|
2723
|
+
Ie as ExpressionProperty,
|
|
2715
2724
|
we as FPropertyPanel,
|
|
2716
2725
|
ue as FormBindingType,
|
|
2717
2726
|
Zi as InputBaseProperty,
|
|
2718
|
-
|
|
2727
|
+
Fr as PropertyType,
|
|
2719
2728
|
pe as SchemaDOMMapping,
|
|
2720
2729
|
Ki as default,
|
|
2721
|
-
|
|
2722
|
-
|
|
2730
|
+
ar as propertyPanelItemProps,
|
|
2731
|
+
In as propertyPanelProps
|
|
2723
2732
|
};
|