@farris/ui-vue 1.4.0 → 1.4.1
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 +2 -1
- package/components/avatar/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +2 -1
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/combo-list/index.esm.js +2 -1
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -1
- package/components/condition/index.esm.js +715 -704
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.css +1 -1
- package/components/content-container/index.esm.js +1180 -1169
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +2949 -2901
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -1
- package/components/data-view/index.esm.js +609 -598
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +3 -2
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +2081 -2062
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-outline/index.css +1 -1
- package/components/drawer/index.esm.js +23 -21
- package/components/drawer/index.umd.cjs +1 -1
- package/components/dynamic-form/index.css +1 -1
- package/components/dynamic-form/index.esm.js +2745 -2691
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +1322 -1311
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +85 -74
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +4618 -4320
- package/components/filter-bar/index.umd.cjs +3 -3
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1982 -1963
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +2 -1
- package/components/input-group/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +822 -811
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +3268 -3219
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +1985 -1937
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +136 -135
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +2 -1
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +2 -1
- package/components/order/index.umd.cjs +1 -1
- package/components/property-editor/index.esm.js +2 -1
- package/components/property-editor/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +295 -283
- package/components/property-panel/index.umd.cjs +2 -2
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +5430 -5374
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/radio-group/index.esm.js +2 -1
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +1259 -1248
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/section/index.css +1 -1
- package/components/section/index.esm.js +1272 -1261
- package/components/section/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +2 -1
- package/components/switch/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +14 -13
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +2 -1
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +715 -704
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -1
- package/components/tree-view/index.esm.js +107 -96
- package/components/tree-view/index.umd.cjs +1 -1
- package/farris.all.esm.js +14687 -14334
- package/farris.all.umd.cjs +11 -11
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/condition/src/composition/condition-value/input-group-value.d.ts +1 -1
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +6 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +8 -0
- package/types/dynamic-form/src/composition/form-binding-resolver-design.d.ts +6 -0
- package/types/filter-bar/src/components/drawer.component.d.ts +4 -0
- package/types/filter-bar/src/components/filter-item/filter-item.component.d.ts +10 -0
- package/types/filter-bar/src/components/filter-item/filter-item.props.d.ts +3 -0
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.component.d.ts +11 -0
- package/types/filter-bar/src/components/filter-item-condition/filter-item-condition.props.d.ts +3 -0
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/composition/use-condition.d.ts +19 -0
- package/types/filter-bar/src/filter-bar.component.d.ts +2 -1
- package/types/filter-bar/src/types.d.ts +4 -6
- package/types/filter-bar/src/components/filter-item.component.d.ts +0 -5
- /package/types/filter-bar/src/components/{toolbar-component.d.ts → toolbar.component.d.ts} +0 -0
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
var oe = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var v = (t, n, e) =>
|
|
2
|
+
var re = (t, n, e) => n in t ? oe(t, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : t[n] = e;
|
|
3
|
+
var v = (t, n, e) => re(t, typeof n != "symbol" ? n + "" : n, e);
|
|
4
4
|
import { computed as I, ref as E, createVNode as P, defineComponent as _, onMounted as Q, watch as $, createTextVNode as J, inject as H } from "vue";
|
|
5
5
|
import { isPlainObject as Z, cloneDeep as G } from "lodash-es";
|
|
6
6
|
import T from "bignumber.js";
|
|
7
7
|
import { DgControl as X } from "../designer-canvas/index.esm.js";
|
|
8
|
-
import { FormSchemaEntityFieldType$Type as
|
|
8
|
+
import { FormSchemaEntityFieldType$Type as ie, withInstall as ae } from "../common/index.esm.js";
|
|
9
9
|
function le(t, n, e) {
|
|
10
10
|
return n;
|
|
11
11
|
}
|
|
12
12
|
const Y = {}, R = {};
|
|
13
13
|
function W(t) {
|
|
14
|
-
const { properties: n, title: e, ignore: o } = t,
|
|
15
|
-
if (e && (!
|
|
14
|
+
const { properties: n, title: e, ignore: o } = t, r = o && Array.isArray(o), l = Object.keys(n).reduce((s, y) => ((!r || !o.find((c) => c === y)) && (s[y] = n[y].type === "object" && n[y].properties ? W(n[y]) : G(n[y].default)), s), {});
|
|
15
|
+
if (e && (!r || !o.find((s) => s === "id"))) {
|
|
16
16
|
const s = e.toLowerCase().replace(/-/g, "_");
|
|
17
17
|
l.id = `${s}_${Math.random().toString().slice(2, 6)}`;
|
|
18
18
|
}
|
|
@@ -21,12 +21,12 @@ function W(t) {
|
|
|
21
21
|
function se(t) {
|
|
22
22
|
const { properties: n, title: e, required: o } = t;
|
|
23
23
|
if (o && Array.isArray(o)) {
|
|
24
|
-
const
|
|
24
|
+
const r = o.reduce((l, s) => (l[s] = n[s].type === "object" && n[s].properties ? W(n[s]) : G(n[s].default), l), {});
|
|
25
25
|
if (e && o.find((l) => l === "id")) {
|
|
26
26
|
const l = e.toLowerCase().replace(/-/g, "_");
|
|
27
|
-
|
|
27
|
+
r.id = `${l}_${Math.random().toString().slice(2, 6)}`;
|
|
28
28
|
}
|
|
29
|
-
return
|
|
29
|
+
return r;
|
|
30
30
|
}
|
|
31
31
|
return {
|
|
32
32
|
type: e
|
|
@@ -35,28 +35,28 @@ function se(t) {
|
|
|
35
35
|
function K(t, n = {}, e) {
|
|
36
36
|
const o = Y[t];
|
|
37
37
|
if (o) {
|
|
38
|
-
let
|
|
38
|
+
let r = se(o);
|
|
39
39
|
const l = R[t];
|
|
40
|
-
return
|
|
40
|
+
return r = l ? l({ getSchemaByType: K }, r, n, e) : r, r;
|
|
41
41
|
}
|
|
42
42
|
return null;
|
|
43
43
|
}
|
|
44
44
|
function ue(t, n) {
|
|
45
45
|
const e = W(n);
|
|
46
|
-
return Object.keys(e).reduce((o,
|
|
46
|
+
return Object.keys(e).reduce((o, r) => (Object.prototype.hasOwnProperty.call(t, r) && (o[r] && Z(o[r]) && Z(t[r] || !t[r]) ? Object.assign(o[r], t[r] || {}) : o[r] = t[r]), o), e), e;
|
|
47
47
|
}
|
|
48
48
|
function ce(t, n) {
|
|
49
|
-
return Object.keys(t).filter((o) => t[o] != null).reduce((o,
|
|
50
|
-
if (n.has(
|
|
51
|
-
const l = n.get(
|
|
49
|
+
return Object.keys(t).filter((o) => t[o] != null).reduce((o, r) => {
|
|
50
|
+
if (n.has(r)) {
|
|
51
|
+
const l = n.get(r);
|
|
52
52
|
if (typeof l == "string")
|
|
53
|
-
o[l] = t[
|
|
53
|
+
o[l] = t[r];
|
|
54
54
|
else {
|
|
55
|
-
const s = l(
|
|
55
|
+
const s = l(r, t[r], t);
|
|
56
56
|
Object.assign(o, s);
|
|
57
57
|
}
|
|
58
58
|
} else
|
|
59
|
-
o[
|
|
59
|
+
o[r] = t[r];
|
|
60
60
|
return o;
|
|
61
61
|
}, {});
|
|
62
62
|
}
|
|
@@ -65,11 +65,11 @@ function de(t, n, e = /* @__PURE__ */ new Map()) {
|
|
|
65
65
|
return ce(o, e);
|
|
66
66
|
}
|
|
67
67
|
function pe(t = {}) {
|
|
68
|
-
function n(a, u,
|
|
69
|
-
if (typeof
|
|
70
|
-
return d[a].length ===
|
|
71
|
-
if (typeof
|
|
72
|
-
const p = Object.keys(
|
|
68
|
+
function n(a, u, i, d) {
|
|
69
|
+
if (typeof i == "number")
|
|
70
|
+
return d[a].length === i;
|
|
71
|
+
if (typeof i == "object") {
|
|
72
|
+
const p = Object.keys(i)[0], m = i[p];
|
|
73
73
|
if (p === "not")
|
|
74
74
|
return Number(d[a].length) !== Number(m);
|
|
75
75
|
if (p === "moreThan")
|
|
@@ -79,33 +79,33 @@ function pe(t = {}) {
|
|
|
79
79
|
}
|
|
80
80
|
return !1;
|
|
81
81
|
}
|
|
82
|
-
function e(a, u,
|
|
83
|
-
return d[a] && d[a].propertyValue && String(d[a].propertyValue.value) === String(
|
|
82
|
+
function e(a, u, i, d) {
|
|
83
|
+
return d[a] && d[a].propertyValue && String(d[a].propertyValue.value) === String(i);
|
|
84
84
|
}
|
|
85
85
|
const o = /* @__PURE__ */ new Map([
|
|
86
86
|
["length", n],
|
|
87
87
|
["getProperty", e]
|
|
88
88
|
]);
|
|
89
89
|
Object.keys(t).reduce((a, u) => (a.set(u, t[u]), a), o);
|
|
90
|
-
function
|
|
91
|
-
const
|
|
92
|
-
return typeof u == "number" ? [{ target:
|
|
90
|
+
function r(a, u) {
|
|
91
|
+
const i = a;
|
|
92
|
+
return typeof u == "number" ? [{ target: i, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: i, operator: "getProperty", param: a, value: !!u }] : typeof u == "object" ? Object.keys(u).map((d) => {
|
|
93
93
|
if (d === "length")
|
|
94
|
-
return { target:
|
|
94
|
+
return { target: i, operator: "length", param: null, value: u[d] };
|
|
95
95
|
const p = d, m = u[d];
|
|
96
|
-
return { target:
|
|
96
|
+
return { target: i, operator: "getProperty", param: p, value: m };
|
|
97
97
|
}) : [];
|
|
98
98
|
}
|
|
99
99
|
function l(a) {
|
|
100
|
-
return Object.keys(a).reduce((
|
|
101
|
-
const p =
|
|
102
|
-
return
|
|
100
|
+
return Object.keys(a).reduce((i, d) => {
|
|
101
|
+
const p = r(d, a[d]);
|
|
102
|
+
return i.push(...p), i;
|
|
103
103
|
}, []);
|
|
104
104
|
}
|
|
105
105
|
function s(a, u) {
|
|
106
106
|
if (o.has(a.operator)) {
|
|
107
|
-
const
|
|
108
|
-
return
|
|
107
|
+
const i = o.get(a.operator);
|
|
108
|
+
return i && i(a.target, a.param, a.value, u) || !1;
|
|
109
109
|
}
|
|
110
110
|
return !1;
|
|
111
111
|
}
|
|
@@ -113,7 +113,7 @@ function pe(t = {}) {
|
|
|
113
113
|
return l(a).reduce((p, m) => p && s(m, u), !0);
|
|
114
114
|
}
|
|
115
115
|
function c(a, u) {
|
|
116
|
-
const
|
|
116
|
+
const i = Object.keys(a), d = i.includes("allOf"), p = i.includes("anyOf"), m = d || p, C = (m ? a[m ? d ? "allOf" : "anyOf" : "allOf"] : [a]).map((B) => y(B, u));
|
|
117
117
|
return d ? !C.includes(!1) : C.includes(!0);
|
|
118
118
|
}
|
|
119
119
|
return { parseValueSchema: c };
|
|
@@ -160,8 +160,8 @@ const f = {
|
|
|
160
160
|
"query-solution": { type: "query-solution", name: "筛选方案", icon: "QueryScheme" }
|
|
161
161
|
}, me = {}, fe = {};
|
|
162
162
|
pe();
|
|
163
|
-
function ye(t, n, e = /* @__PURE__ */ new Map(), o = (s, y, c, a) => y,
|
|
164
|
-
return Y[n.title] = n, R[n.title] = o, me[n.title] =
|
|
163
|
+
function ye(t, n, e = /* @__PURE__ */ new Map(), o = (s, y, c, a) => y, r = {}, l = (s) => s) {
|
|
164
|
+
return Y[n.title] = n, R[n.title] = o, me[n.title] = r, fe[n.title] = l, (s = {}) => {
|
|
165
165
|
const y = de(s, n, e), c = Object.keys(t).reduce((a, u) => (a[u] = t[u].default, a), {});
|
|
166
166
|
return Object.assign(c, y);
|
|
167
167
|
};
|
|
@@ -382,17 +382,17 @@ function te(t, n) {
|
|
|
382
382
|
function o(c) {
|
|
383
383
|
return c.toFixed(e.value);
|
|
384
384
|
}
|
|
385
|
-
function
|
|
385
|
+
function r(c) {
|
|
386
386
|
return isNaN(c) || c === null || c === void 0 || c === "";
|
|
387
387
|
}
|
|
388
388
|
function l(c) {
|
|
389
|
-
const a =
|
|
389
|
+
const a = r(t.max) ? null : new T(String(t.max), 10), u = r(t.min) ? null : new T(String(t.min), 10);
|
|
390
390
|
return a && c.gt(a) ? a : u && c.lt(u) ? u : c;
|
|
391
391
|
}
|
|
392
|
-
function s(c, a, u,
|
|
393
|
-
const d = new T(c, 10), p =
|
|
392
|
+
function s(c, a, u, i) {
|
|
393
|
+
const d = new T(c, 10), p = r(u && u.value) ? null : new T(String(u.value), 10), m = r(a && a.value) ? null : new T(String(a.value), 10);
|
|
394
394
|
let g;
|
|
395
|
-
return
|
|
395
|
+
return i ? g = p && d.gt(p) ? p : d : g = m && d.lt(m) ? m : d, g.toString();
|
|
396
396
|
}
|
|
397
397
|
function y(c, a = !0) {
|
|
398
398
|
if (t.parser)
|
|
@@ -411,7 +411,7 @@ function te(t, n) {
|
|
|
411
411
|
}
|
|
412
412
|
return o(u);
|
|
413
413
|
}
|
|
414
|
-
return { getRealValue: y, isEmpty:
|
|
414
|
+
return { getRealValue: y, isEmpty: r, precision: e, getValidNumberObject: l, getValidNumberInRange: s };
|
|
415
415
|
}
|
|
416
416
|
function ne(t, n, e) {
|
|
417
417
|
const o = I(() => ({
|
|
@@ -420,7 +420,7 @@ function ne(t, n, e) {
|
|
|
420
420
|
decimalSeparator: t.decimalSeparator,
|
|
421
421
|
groupSeparator: t.useThousands ? t.groupSeparator : "",
|
|
422
422
|
groupSize: t.groupSize
|
|
423
|
-
})), { getValidNumberObject:
|
|
423
|
+
})), { getValidNumberObject: r, precision: l } = e;
|
|
424
424
|
function s(a) {
|
|
425
425
|
return a = a == null || a === "" ? "" : String(a), a = a.replace(new RegExp(t.prefix, "g"), "").replace(new RegExp(t.suffix, "g"), "").replace(/,/g, ""), t.groupSeparator && t.groupSeparator !== "," && (a = a.replace(new RegExp(`\\${t.groupSeparator}`, "g"), "")), t.decimalSeparator && t.decimalSeparator !== "." && (a = a.replace(new RegExp(`\\${t.decimalSeparator}`, "g"), ".")), a;
|
|
426
426
|
}
|
|
@@ -428,14 +428,14 @@ function ne(t, n, e) {
|
|
|
428
428
|
return t.precision !== null && t.precision !== void 0 ? a.toFormat(l.value, u) : a.toFormat(u);
|
|
429
429
|
}
|
|
430
430
|
function c(a, u = !0) {
|
|
431
|
-
const
|
|
431
|
+
const i = s(a), d = new T(i, 10);
|
|
432
432
|
let p = d;
|
|
433
|
-
return u && (p =
|
|
433
|
+
return u && (p = r(d)), p.valueOf() === "0" && !t.showZero || p.isNaN() ? "" : t.formatter ? t.formatter(p.toNumber()) : y(p, o.value);
|
|
434
434
|
}
|
|
435
435
|
return { cleanFormat: s, format: c };
|
|
436
436
|
}
|
|
437
|
-
function L(t, n, e, o,
|
|
438
|
-
const { format: u } =
|
|
437
|
+
function L(t, n, e, o, r, l, s, y, c, a) {
|
|
438
|
+
const { format: u } = r, { getRealValue: i, getValidNumberInRange: d } = l;
|
|
439
439
|
function p() {
|
|
440
440
|
const k = new T(o.value || 0);
|
|
441
441
|
return !(t.max && !new T(t.max).isNaN() && k.gte(new T(t.max)));
|
|
@@ -450,7 +450,7 @@ function L(t, n, e, o, i, l, s, y, c, a) {
|
|
|
450
450
|
const N = k === "up" ? p : m, V = k === "up" ? "plus" : "minus";
|
|
451
451
|
if (N()) {
|
|
452
452
|
let S = new T(o.value || 0)[V](Number(t.step)).toFixed();
|
|
453
|
-
S = d(S, y, c, a), e.value = u(S), o.value =
|
|
453
|
+
S = d(S, y, c, a), e.value = u(S), o.value = i(S), s(o.value);
|
|
454
454
|
}
|
|
455
455
|
}
|
|
456
456
|
function F() {
|
|
@@ -467,8 +467,8 @@ function L(t, n, e, o, i, l, s, y, c, a) {
|
|
|
467
467
|
}
|
|
468
468
|
return { canDownward: m, canUpward: p, downward: C, onClickDownButton: B, onClickUpButton: w, upward: F };
|
|
469
469
|
}
|
|
470
|
-
function x(t, n, e, o,
|
|
471
|
-
const { cleanFormat:
|
|
470
|
+
function x(t, n, e, o, r, l, s, y, c, a, u) {
|
|
471
|
+
const { cleanFormat: i, format: d } = r, { getRealValue: p, isEmpty: m, getValidNumberInRange: g } = l, { downward: F, upward: C } = s, w = I(() => e.value), B = E(!1);
|
|
472
472
|
function k(b) {
|
|
473
473
|
var D;
|
|
474
474
|
if (b.stopPropagation(), t.readonly || t.disabled)
|
|
@@ -476,7 +476,7 @@ function x(t, n, e, o, i, l, s, y, c, a, u) {
|
|
|
476
476
|
B.value = !1;
|
|
477
477
|
let S = (D = b.target) == null ? void 0 : D.value;
|
|
478
478
|
t.nullable || (S = S || 0);
|
|
479
|
-
let M =
|
|
479
|
+
let M = i(S);
|
|
480
480
|
M = g(M, c, a, u), e.value = d(M), o.value = p(M), y(o.value), n.emit("blur", { event: b, formatted: e.value, value: o.value });
|
|
481
481
|
}
|
|
482
482
|
function N(b) {
|
|
@@ -487,7 +487,7 @@ function x(t, n, e, o, i, l, s, y, c, a, u) {
|
|
|
487
487
|
b.stopPropagation();
|
|
488
488
|
let S = (D = b.target) == null ? void 0 : D.value;
|
|
489
489
|
t.nullable || (S = S || 0);
|
|
490
|
-
const M =
|
|
490
|
+
const M = i(S);
|
|
491
491
|
e.value = M, o.value = p(M), y(o.value);
|
|
492
492
|
}
|
|
493
493
|
function h(b) {
|
|
@@ -497,7 +497,7 @@ function x(t, n, e, o, i, l, s, y, c, a, u) {
|
|
|
497
497
|
}
|
|
498
498
|
function O(t, n, e, o) {
|
|
499
499
|
const {
|
|
500
|
-
onBlurTextBox:
|
|
500
|
+
onBlurTextBox: r,
|
|
501
501
|
onFocusTextBox: l,
|
|
502
502
|
onInput: s,
|
|
503
503
|
onKeyDown: y,
|
|
@@ -505,7 +505,7 @@ function O(t, n, e, o) {
|
|
|
505
505
|
} = e, a = I(() => o ? t.beginPlaceHolder : t.endPlaceHolder), u = I(() => ({
|
|
506
506
|
"form-control": !0,
|
|
507
507
|
"sub-input": !0
|
|
508
|
-
})),
|
|
508
|
+
})), i = I(() => ({
|
|
509
509
|
"text-align": t.textAlign
|
|
510
510
|
}));
|
|
511
511
|
function d(p) {
|
|
@@ -513,13 +513,13 @@ function O(t, n, e, o) {
|
|
|
513
513
|
}
|
|
514
514
|
return () => P("input", {
|
|
515
515
|
class: u.value,
|
|
516
|
-
style:
|
|
516
|
+
style: i.value,
|
|
517
517
|
type: "text",
|
|
518
518
|
value: c.value,
|
|
519
519
|
disabled: t.disabled,
|
|
520
520
|
readonly: t.readonly || !t.editable,
|
|
521
521
|
placeholder: a.value,
|
|
522
|
-
onBlur:
|
|
522
|
+
onBlur: r,
|
|
523
523
|
onChange: d,
|
|
524
524
|
onFocus: l,
|
|
525
525
|
onInput: s,
|
|
@@ -529,7 +529,7 @@ function O(t, n, e, o) {
|
|
|
529
529
|
function j(t, n, e) {
|
|
530
530
|
const {
|
|
531
531
|
canDownward: o,
|
|
532
|
-
canUpward:
|
|
532
|
+
canUpward: r,
|
|
533
533
|
onClickDownButton: l,
|
|
534
534
|
onClickUpButton: s
|
|
535
535
|
} = e, y = I(() => ({
|
|
@@ -542,7 +542,7 @@ function j(t, n, e) {
|
|
|
542
542
|
"btn-secondary": !0,
|
|
543
543
|
"btn-number-flag": !0
|
|
544
544
|
})), a = I(() => ({
|
|
545
|
-
cursor:
|
|
545
|
+
cursor: r() ? "pointer" : "not-allowed",
|
|
546
546
|
"margin-left": 0
|
|
547
547
|
})), u = I(() => ({
|
|
548
548
|
cursor: o() ? "pointer" : "not-allowed",
|
|
@@ -555,7 +555,7 @@ function j(t, n, e) {
|
|
|
555
555
|
class: c.value,
|
|
556
556
|
style: a.value,
|
|
557
557
|
onClick: s,
|
|
558
|
-
disabled: !
|
|
558
|
+
disabled: !r()
|
|
559
559
|
}, [P("span", {
|
|
560
560
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
561
561
|
}, null)]), P("button", {
|
|
@@ -573,11 +573,11 @@ const U = /* @__PURE__ */ _({
|
|
|
573
573
|
props: z,
|
|
574
574
|
emits: ["valueChange", "blur", "focus", "click", "input", "beginValueChange", "endValueChange"],
|
|
575
575
|
setup(t, n) {
|
|
576
|
-
const e = E(t.beginValue), o = E(""),
|
|
576
|
+
const e = E(t.beginValue), o = E(""), r = E(t.endValue), l = E(""), s = te(t), y = ne(t, n, s), c = (N) => {
|
|
577
577
|
n.emit("beginValueChange", N);
|
|
578
|
-
}, a = L(t, n, o, e, y, s, c, e,
|
|
578
|
+
}, a = L(t, n, o, e, y, s, c, e, r, !0), u = x(t, n, o, e, y, s, a, c, e, r, !0), i = j(t, n, a), d = O(t, n, u, !0), p = (N) => {
|
|
579
579
|
n.emit("endValueChange", N);
|
|
580
|
-
}, m = L(t, n, l,
|
|
580
|
+
}, m = L(t, n, l, r, y, s, p, e, r, !1), g = x(t, n, l, r, y, s, m, p, e, r, !1), F = j(t, n, m), C = O(t, n, g, !1), {
|
|
581
581
|
getRealValue: w
|
|
582
582
|
} = s, {
|
|
583
583
|
format: B
|
|
@@ -593,17 +593,17 @@ const U = /* @__PURE__ */ _({
|
|
|
593
593
|
}), $(() => [t.endValue], ([N]) => {
|
|
594
594
|
if (!g.isTextBoxFocused.value) {
|
|
595
595
|
const V = w(N, !1);
|
|
596
|
-
|
|
596
|
+
r.value = V, l.value = B(V, !1);
|
|
597
597
|
}
|
|
598
598
|
}), $(() => [t.precision, t.useThousands, t.prefix, t.suffix, t.showZero], () => {
|
|
599
|
-
o.value = B(e.value), l.value = B(
|
|
599
|
+
o.value = B(e.value), l.value = B(r.value);
|
|
600
600
|
}), () => P("div", {
|
|
601
601
|
class: "input-group number-range f-cmp-number-spinner"
|
|
602
602
|
}, [P("div", {
|
|
603
603
|
class: "form-control input-container"
|
|
604
604
|
}, [P("div", {
|
|
605
605
|
class: "sub-input-group"
|
|
606
|
-
}, [d(), k.value &&
|
|
606
|
+
}, [d(), k.value && i()]), P("span", {
|
|
607
607
|
class: "spliter"
|
|
608
608
|
}, [J("~")]), P("div", {
|
|
609
609
|
class: "sub-input-group"
|
|
@@ -612,7 +612,7 @@ const U = /* @__PURE__ */ _({
|
|
|
612
612
|
});
|
|
613
613
|
function Be(t, n, e) {
|
|
614
614
|
var V;
|
|
615
|
-
const o = e && e.getStyles && e.getStyles() || "",
|
|
615
|
+
const o = e && e.getStyles && e.getStyles() || "", r = e && e.getDesignerClass && e.getDesignerClass() || "", l = E();
|
|
616
616
|
function s() {
|
|
617
617
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : e && e.checkCanMoveComponent ? e.checkCanMoveComponent() : !0;
|
|
618
618
|
}
|
|
@@ -633,13 +633,13 @@ function Be(t, n, e) {
|
|
|
633
633
|
const b = E(h == null ? void 0 : h.value.parent), S = u(b);
|
|
634
634
|
return S || null;
|
|
635
635
|
}
|
|
636
|
-
function
|
|
636
|
+
function i(h = n) {
|
|
637
637
|
var D;
|
|
638
638
|
const { componentInstance: b, designerItemElementRef: S } = h;
|
|
639
639
|
if (!b || !b.value)
|
|
640
640
|
return null;
|
|
641
641
|
const { getCustomButtons: M } = b.value;
|
|
642
|
-
return b.value.canMove || M && ((D = M()) != null && D.length) ? S :
|
|
642
|
+
return b.value.canMove || M && ((D = M()) != null && D.length) ? S : i(h.parent);
|
|
643
643
|
}
|
|
644
644
|
function d(h) {
|
|
645
645
|
return !!e && e.canAccepts(h);
|
|
@@ -694,10 +694,10 @@ function Be(t, n, e) {
|
|
|
694
694
|
parent: (V = n == null ? void 0 : n.parent) == null ? void 0 : V.componentInstance,
|
|
695
695
|
schema: n == null ? void 0 : n.schema,
|
|
696
696
|
styles: o,
|
|
697
|
-
designerClass:
|
|
697
|
+
designerClass: r,
|
|
698
698
|
canAccepts: d,
|
|
699
699
|
getBelongedComponentInstance: u,
|
|
700
|
-
getDraggableDesignItemElement:
|
|
700
|
+
getDraggableDesignItemElement: i,
|
|
701
701
|
getDraggingDisplayText: p,
|
|
702
702
|
getPropConfig: w,
|
|
703
703
|
getDragScopeElement: m,
|
|
@@ -740,8 +740,8 @@ class Ne {
|
|
|
740
740
|
const e = n.binding && n.binding.type === "Form" && n.binding.field;
|
|
741
741
|
if (e) {
|
|
742
742
|
if (!this.designViewModelField) {
|
|
743
|
-
const
|
|
744
|
-
this.designViewModelField =
|
|
743
|
+
const r = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
744
|
+
this.designViewModelField = r.fields.find((l) => l.id === e);
|
|
745
745
|
}
|
|
746
746
|
n.updateOn = (o = this.designViewModelField) == null ? void 0 : o.updateOn;
|
|
747
747
|
}
|
|
@@ -802,8 +802,8 @@ class Ne {
|
|
|
802
802
|
const o = e && e.parent && e.parent.schema;
|
|
803
803
|
if (!o)
|
|
804
804
|
return;
|
|
805
|
-
const
|
|
806
|
-
o.contents.splice(
|
|
805
|
+
const r = o.contents.findIndex((s) => s.id === n), l = G(o.contents[r]);
|
|
806
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, l);
|
|
807
807
|
}
|
|
808
808
|
}
|
|
809
809
|
const A = class A {
|
|
@@ -821,7 +821,7 @@ const A = class A {
|
|
|
821
821
|
const n = [];
|
|
822
822
|
for (const e in A.fieldControlTypeMapping)
|
|
823
823
|
A.fieldControlTypeMapping[e].forEach((o) => {
|
|
824
|
-
n.find((
|
|
824
|
+
n.find((r) => r.key === o.key && r.value === o.value) || n.push({ key: o.key, value: o.value });
|
|
825
825
|
});
|
|
826
826
|
return n;
|
|
827
827
|
}
|
|
@@ -830,8 +830,8 @@ const A = class A {
|
|
|
830
830
|
* @param control 控件元数据
|
|
831
831
|
*/
|
|
832
832
|
static mappingDomPropAndSchemaProp(n) {
|
|
833
|
-
var
|
|
834
|
-
const e = (
|
|
833
|
+
var r;
|
|
834
|
+
const e = (r = n.editor) == null ? void 0 : r.type;
|
|
835
835
|
if (!e)
|
|
836
836
|
return [];
|
|
837
837
|
const o = [];
|
|
@@ -931,55 +931,55 @@ class Te {
|
|
|
931
931
|
function Pe(t) {
|
|
932
932
|
let n, e;
|
|
933
933
|
const o = /* @__PURE__ */ new Map();
|
|
934
|
-
let
|
|
935
|
-
function l(u,
|
|
934
|
+
let r = [];
|
|
935
|
+
function l(u, i) {
|
|
936
936
|
const p = u.split(" ").filter((w) => w.startsWith("col-"));
|
|
937
937
|
if (p.length === 0) {
|
|
938
|
-
|
|
938
|
+
i.isSupportedClass = !1;
|
|
939
939
|
return;
|
|
940
940
|
}
|
|
941
941
|
let m = p.find((w) => /^col-([1-9]|10|11|12)$/.test(w)), g = p.find((w) => /^col-md-([1-9]|10|11|12)$/.test(w)), F = p.find((w) => /^col-xl-([1-9]|10|11|12)$/.test(w)), C = p.find((w) => /^col-el-([1-9]|10|11|12)$/.test(w));
|
|
942
|
-
m = m || "col-12",
|
|
942
|
+
m = m || "col-12", i.columnInSM = parseInt(m.replace("col-", ""), 10), i.displayWidthInSM = i.columnInSM / 12, i.displayWidthInSM !== 1 && (i.isSupportedClass = !1), g = g || "col-md-" + i.columnInSM, i.columnInMD = parseInt(g.replace("col-md-", ""), 10), i.displayWidthInMD = i.columnInMD / 6, [1, 2].includes(i.displayWidthInMD) || (i.isSupportedClass = !1), F = F || "col-xl-" + i.columnInMD, i.columnInLG = parseInt(F.replace("col-xl-", ""), 10), i.displayWidthInLG = i.columnInLG / 3, [1, 2, 3, 4].includes(i.displayWidthInLG) || (i.isSupportedClass = !1), C = C || "col-el-" + i.columnInLG, i.columnInEL = parseInt(C.replace("col-el-", ""), 10), i.displayWidthInEL = i.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(i.displayWidthInEL) || (i.isSupportedClass = !1);
|
|
943
943
|
}
|
|
944
|
-
function s(u,
|
|
944
|
+
function s(u, i, d, p = !1) {
|
|
945
945
|
let m = !1;
|
|
946
946
|
u.contents.forEach((g) => {
|
|
947
947
|
if (g.type === "fieldset") {
|
|
948
|
-
d += 1, s(g,
|
|
948
|
+
d += 1, s(g, i, d, !0), m = !0;
|
|
949
949
|
return;
|
|
950
950
|
}
|
|
951
951
|
m && (d += 1, m = !1);
|
|
952
952
|
const F = g.appearance && g.appearance.class, C = new Te();
|
|
953
|
-
F ? l(F, C) : C.isSupportedClass = !1, C.label = g.label || g.id, C.id = g.id, C.group = d, p && (C.fieldSetId = u.id), e === g.id && (n = d), o.set(g.id, g),
|
|
953
|
+
F ? l(F, C) : C.isSupportedClass = !1, C.label = g.label || g.id, C.id = g.id, C.group = d, p && (C.fieldSetId = u.id), e === g.id && (n = d), o.set(g.id, g), i.push(C);
|
|
954
954
|
});
|
|
955
955
|
}
|
|
956
956
|
function y(u) {
|
|
957
|
-
const
|
|
958
|
-
if (!
|
|
957
|
+
const i = t.getComponentById(u);
|
|
958
|
+
if (!i || !i.componentType || !i.componentType.startsWith("form"))
|
|
959
959
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
960
|
-
const d = t.selectNode(
|
|
960
|
+
const d = t.selectNode(i, (p) => p.type === X["response-form"].type);
|
|
961
961
|
return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
|
|
962
962
|
}
|
|
963
|
-
function c(u,
|
|
964
|
-
|
|
965
|
-
const { result: d, message: p, formNode: m } = y(
|
|
963
|
+
function c(u, i) {
|
|
964
|
+
i = i || u.id;
|
|
965
|
+
const { result: d, message: p, formNode: m } = y(i);
|
|
966
966
|
if (!d)
|
|
967
967
|
return { result: d, message: p };
|
|
968
|
-
e = u.id,
|
|
968
|
+
e = u.id, r = [], o.clear();
|
|
969
969
|
const g = m.contents[0].type === X.fieldset.type ? 0 : 1;
|
|
970
|
-
s(m,
|
|
971
|
-
const F =
|
|
970
|
+
s(m, r, g);
|
|
971
|
+
const F = r.find((w) => !w.isSupportedClass);
|
|
972
972
|
return {
|
|
973
973
|
defaultState: {
|
|
974
974
|
defaultGroupNumber: n || 1,
|
|
975
975
|
model: F ? "customize" : "standard"
|
|
976
976
|
},
|
|
977
|
-
importData:
|
|
977
|
+
importData: r
|
|
978
978
|
};
|
|
979
979
|
}
|
|
980
|
-
function a(u,
|
|
981
|
-
|
|
982
|
-
const { result: d, formNode: p } = y(
|
|
980
|
+
function a(u, i) {
|
|
981
|
+
i = i;
|
|
982
|
+
const { result: d, formNode: p } = y(i);
|
|
983
983
|
if (!d)
|
|
984
984
|
return "";
|
|
985
985
|
const m = [];
|
|
@@ -1015,7 +1015,7 @@ class Ee extends Ne {
|
|
|
1015
1015
|
}
|
|
1016
1016
|
getBasicProperties(e, o) {
|
|
1017
1017
|
var l;
|
|
1018
|
-
const
|
|
1018
|
+
const r = this;
|
|
1019
1019
|
return this.setDesignViewModelField(e), {
|
|
1020
1020
|
description: "Basic Information",
|
|
1021
1021
|
title: "基本信息",
|
|
@@ -1037,7 +1037,7 @@ class Ee extends Ne {
|
|
|
1037
1037
|
textField: "value",
|
|
1038
1038
|
valueField: "key",
|
|
1039
1039
|
editable: !1,
|
|
1040
|
-
data:
|
|
1040
|
+
data: r.designViewModelField ? q.getEditorTypesByMDataType((l = r.designViewModelField.type) == null ? void 0 : l.name) : q.getAllInputTypes()
|
|
1041
1041
|
}
|
|
1042
1042
|
},
|
|
1043
1043
|
label: {
|
|
@@ -1059,14 +1059,15 @@ class Ee extends Ne {
|
|
|
1059
1059
|
disableOccupiedFields: !0
|
|
1060
1060
|
},
|
|
1061
1061
|
textField: "bindingField"
|
|
1062
|
-
}
|
|
1062
|
+
},
|
|
1063
|
+
refreshPanelAfterChanged: !0
|
|
1063
1064
|
}
|
|
1064
1065
|
},
|
|
1065
1066
|
setPropertyRelates(s, y) {
|
|
1066
1067
|
if (s)
|
|
1067
1068
|
switch (s && s.propertyID) {
|
|
1068
1069
|
case "type": {
|
|
1069
|
-
|
|
1070
|
+
r.changeControlType(e, s, o);
|
|
1070
1071
|
break;
|
|
1071
1072
|
}
|
|
1072
1073
|
case "label": {
|
|
@@ -1078,7 +1079,7 @@ class Ee extends Ne {
|
|
|
1078
1079
|
};
|
|
1079
1080
|
}
|
|
1080
1081
|
getAppearanceProperties(e, o) {
|
|
1081
|
-
const
|
|
1082
|
+
const r = this;
|
|
1082
1083
|
return {
|
|
1083
1084
|
title: "外观",
|
|
1084
1085
|
description: "Appearance",
|
|
@@ -1104,7 +1105,7 @@ class Ee extends Ne {
|
|
|
1104
1105
|
refreshPanelAfterChanged: !0,
|
|
1105
1106
|
editor: {
|
|
1106
1107
|
type: "response-layout-editor-setting",
|
|
1107
|
-
initialState:
|
|
1108
|
+
initialState: r.responseLayoutEditorFunction.checkCanOpenLayoutEditor(e, r.componentId)
|
|
1108
1109
|
}
|
|
1109
1110
|
}
|
|
1110
1111
|
},
|
|
@@ -1112,10 +1113,10 @@ class Ee extends Ne {
|
|
|
1112
1113
|
if (l)
|
|
1113
1114
|
switch (l && l.propertyID) {
|
|
1114
1115
|
case "responseLayout":
|
|
1115
|
-
|
|
1116
|
+
r.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(l.propertyValue, r.componentId || e.id), r.updateUnifiedLayoutAfterResponseLayoutChanged(r.componentId), r.updateElementByParentContainer(e.id, o), delete e.responseLayout;
|
|
1116
1117
|
break;
|
|
1117
1118
|
case "class":
|
|
1118
|
-
|
|
1119
|
+
r.updateUnifiedLayoutAfterControlChanged(l.propertyValue, e.id, this.componentId), r.updateElementByParentContainer(e.id, o);
|
|
1119
1120
|
break;
|
|
1120
1121
|
}
|
|
1121
1122
|
}
|
|
@@ -1129,9 +1130,9 @@ class Ee extends Ne {
|
|
|
1129
1130
|
* @param propertyData 控件DOM属性
|
|
1130
1131
|
* @param newControlType 新控件类型
|
|
1131
1132
|
*/
|
|
1132
|
-
changeControlType(e, o,
|
|
1133
|
-
var u,
|
|
1134
|
-
const l = o.propertyValue, s =
|
|
1133
|
+
changeControlType(e, o, r) {
|
|
1134
|
+
var u, i, d, p;
|
|
1135
|
+
const l = o.propertyValue, s = r && r.parent && r.parent.schema;
|
|
1135
1136
|
if (!s)
|
|
1136
1137
|
return;
|
|
1137
1138
|
const y = s.contents.findIndex((m) => m.id === e.id), c = s.contents[y];
|
|
@@ -1153,16 +1154,16 @@ class Ee extends Ne {
|
|
|
1153
1154
|
}), Object.assign(a.editor, {
|
|
1154
1155
|
isTextArea: a.isTextArea && c.isTextArea,
|
|
1155
1156
|
placeholder: (u = c.editor) == null ? void 0 : u.placeholder,
|
|
1156
|
-
holdPlace: (
|
|
1157
|
+
holdPlace: (i = c.editor) == null ? void 0 : i.holdPlace,
|
|
1157
1158
|
readonly: (d = c.editor) == null ? void 0 : d.readonly,
|
|
1158
1159
|
required: (p = c.editor) == null ? void 0 : p.required
|
|
1159
|
-
}), s.contents.splice(y, 1), s.contents.splice(y, 0, a),
|
|
1160
|
+
}), s.contents.splice(y, 1), s.contents.splice(y, 0, a), r.schema = Object.assign(c, a), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1160
1161
|
(m) => m.classList.remove("dgComponentSelected")
|
|
1161
1162
|
), Array.from(document.getElementsByClassName("dgComponentFocused")).forEach(
|
|
1162
1163
|
(m) => m.classList.remove("dgComponentFocused")
|
|
1163
1164
|
), Ve.value++;
|
|
1164
1165
|
}
|
|
1165
|
-
getComponentConfig(e, o = {},
|
|
1166
|
+
getComponentConfig(e, o = {}, r = {}, l) {
|
|
1166
1167
|
const s = Object.assign({
|
|
1167
1168
|
description: "编辑器",
|
|
1168
1169
|
title: "编辑器",
|
|
@@ -1194,7 +1195,7 @@ class Ee extends Ne {
|
|
|
1194
1195
|
title: "提示文本",
|
|
1195
1196
|
type: "string"
|
|
1196
1197
|
}
|
|
1197
|
-
},
|
|
1198
|
+
}, r);
|
|
1198
1199
|
return { ...s, properties: { ...y }, setPropertyRelates: l };
|
|
1199
1200
|
}
|
|
1200
1201
|
/**
|
|
@@ -1203,9 +1204,9 @@ class Ee extends Ne {
|
|
|
1203
1204
|
* @param controlId 控件Id
|
|
1204
1205
|
* @param componentId 控件所在组件id
|
|
1205
1206
|
*/
|
|
1206
|
-
updateUnifiedLayoutAfterControlChanged(e, o,
|
|
1207
|
+
updateUnifiedLayoutAfterControlChanged(e, o, r) {
|
|
1207
1208
|
const l = e.split(" ");
|
|
1208
|
-
let s = l.find((
|
|
1209
|
+
let s = l.find((i) => /^col-([1-9]|10|11|12)$/.test(i)), y = l.find((i) => /^col-md-([1-9]|10|11|12)$/.test(i)), c = l.find((i) => /^col-xl-([1-9]|10|11|12)$/.test(i)), a = l.find((i) => /^col-el-([1-9]|10|11|12)$/.test(i));
|
|
1209
1210
|
s = s || "col-12", y = y || "col-md-" + s.replace("col-", ""), c = c || "col-xl-" + y.replace("col-md-", ""), a = a || "col-el-" + c.replace("col-xl-", "");
|
|
1210
1211
|
const u = {
|
|
1211
1212
|
id: o,
|
|
@@ -1214,7 +1215,7 @@ class Ee extends Ne {
|
|
|
1214
1215
|
columnInLG: parseInt(c.replace("col-xl-", ""), 10),
|
|
1215
1216
|
columnInEL: parseInt(a.replace("col-el-", ""), 10)
|
|
1216
1217
|
};
|
|
1217
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(
|
|
1218
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(r, u);
|
|
1218
1219
|
}
|
|
1219
1220
|
/**
|
|
1220
1221
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -1222,18 +1223,18 @@ class Ee extends Ne {
|
|
|
1222
1223
|
* @param controlLayoutConfig 某单独变动的控件配置项,FormResponseLayoutContext类型
|
|
1223
1224
|
*/
|
|
1224
1225
|
updateUnifiedLayoutAfterResponseLayoutChanged(e, o) {
|
|
1225
|
-
const { formNode:
|
|
1226
|
-
if (!
|
|
1226
|
+
const { formNode: r } = this.responseLayoutEditorFunction.checkCanFindFormNode(e);
|
|
1227
|
+
if (!r || !r.unifiedLayout)
|
|
1227
1228
|
return;
|
|
1228
1229
|
const l = [];
|
|
1229
|
-
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(
|
|
1230
|
+
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(r, l, 1), o) {
|
|
1230
1231
|
const m = l.find((g) => g.id === o.id);
|
|
1231
1232
|
Object.assign(m || {}, o);
|
|
1232
1233
|
}
|
|
1233
|
-
const s = l.map((m) => m.columnInSM), y = l.map((m) => m.columnInMD), c = l.map((m) => m.columnInLG), a = l.map((m) => m.columnInEL), u = this.checkIsUniqueColumn(s) ? s[0] : null,
|
|
1234
|
-
Object.assign(
|
|
1234
|
+
const s = l.map((m) => m.columnInSM), y = l.map((m) => m.columnInMD), c = l.map((m) => m.columnInLG), a = l.map((m) => m.columnInEL), u = this.checkIsUniqueColumn(s) ? s[0] : null, i = this.checkIsUniqueColumn(y) ? y[0] : null, d = this.checkIsUniqueColumn(c) ? c[0] : null, p = this.checkIsUniqueColumn(a) ? a[0] : null;
|
|
1235
|
+
Object.assign(r.unifiedLayout, {
|
|
1235
1236
|
uniqueColClassInSM: u,
|
|
1236
|
-
uniqueColClassInMD:
|
|
1237
|
+
uniqueColClassInMD: i,
|
|
1237
1238
|
uniqueColClassInLG: d,
|
|
1238
1239
|
uniqueColClassInEL: p
|
|
1239
1240
|
});
|
|
@@ -1252,19 +1253,19 @@ class Ee extends Ne {
|
|
|
1252
1253
|
* @param textField
|
|
1253
1254
|
* @returns
|
|
1254
1255
|
*/
|
|
1255
|
-
getItemCollectionEditor(e, o,
|
|
1256
|
-
return o = o || "value",
|
|
1256
|
+
getItemCollectionEditor(e, o, r) {
|
|
1257
|
+
return o = o || "value", r = r || "name", {
|
|
1257
1258
|
editor: {
|
|
1258
1259
|
columns: [
|
|
1259
1260
|
{ field: o, title: "值", dataType: "string" },
|
|
1260
|
-
{ field:
|
|
1261
|
+
{ field: r, title: "名称", dataType: "string" },
|
|
1261
1262
|
{ field: "disabled", title: "禁用", visible: !1, dataType: "boolean", editor: { type: "switch" } }
|
|
1262
1263
|
],
|
|
1263
1264
|
type: "item-collection-editor",
|
|
1264
1265
|
valueField: o,
|
|
1265
|
-
nameField:
|
|
1266
|
-
requiredFields: [o,
|
|
1267
|
-
uniqueFields: [o,
|
|
1266
|
+
nameField: r,
|
|
1267
|
+
requiredFields: [o, r],
|
|
1268
|
+
uniqueFields: [o, r],
|
|
1268
1269
|
readonly: this.checkEnumDataReadonly(e)
|
|
1269
1270
|
}
|
|
1270
1271
|
};
|
|
@@ -1276,7 +1277,7 @@ class Ee extends Ne {
|
|
|
1276
1277
|
* @param propertyData 下拉框控件属性值
|
|
1277
1278
|
*/
|
|
1278
1279
|
checkEnumDataReadonly(e) {
|
|
1279
|
-
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type ===
|
|
1280
|
+
return !e.binding || e.binding.type !== "Form" ? !1 : !!(this.designViewModelField && this.designViewModelField.type && this.designViewModelField.type.$type === ie.EnumType);
|
|
1280
1281
|
}
|
|
1281
1282
|
}
|
|
1282
1283
|
class De extends Ee {
|
|
@@ -1295,8 +1296,8 @@ class De extends Ee {
|
|
|
1295
1296
|
}
|
|
1296
1297
|
function Ie(t, n) {
|
|
1297
1298
|
const e = t.schema;
|
|
1298
|
-
function o(
|
|
1299
|
-
return new De(
|
|
1299
|
+
function o(r, l) {
|
|
1300
|
+
return new De(r, n).getPropertyConfig(e, l);
|
|
1300
1301
|
}
|
|
1301
1302
|
return { getPropsConfig: o };
|
|
1302
1303
|
}
|
|
@@ -1305,15 +1306,15 @@ const Ae = /* @__PURE__ */ _({
|
|
|
1305
1306
|
props: z,
|
|
1306
1307
|
emits: ["valueChange", "blur", "focus", "click", "input", "beginValueChange", "endValueChange"],
|
|
1307
1308
|
setup(t, n) {
|
|
1308
|
-
const e = E(t.beginValue), o = E(""),
|
|
1309
|
+
const e = E(t.beginValue), o = E(""), r = E(t.endValue), l = E(""), s = te(t), y = ne(t, n, s), c = (b) => {
|
|
1309
1310
|
n.emit("beginValueChange", b);
|
|
1310
|
-
}, a = E(), u = H("designer-host-service"),
|
|
1311
|
+
}, a = E(), u = H("designer-host-service"), i = H("design-item-context"), d = Ie(i, u), p = Be(a, i, d);
|
|
1311
1312
|
Q(() => {
|
|
1312
1313
|
a.value.componentInstance = p;
|
|
1313
1314
|
}), n.expose(p.value);
|
|
1314
|
-
const m = L(t, n, o, e, y, s, c, e,
|
|
1315
|
+
const m = L(t, n, o, e, y, s, c, e, r, !0), g = x(t, n, o, e, y, s, m, c, e, r, !0), F = j(t, n, m), C = O(t, n, g, !0), w = (b) => {
|
|
1315
1316
|
n.emit("endValueChange", b);
|
|
1316
|
-
}, B = L(t, n, l,
|
|
1317
|
+
}, B = L(t, n, l, r, y, s, w, e, r, !1), k = x(t, n, l, r, y, s, B, w, e, r, !1), N = j(t, n, B), V = O(t, n, k, !1), h = I(() => !t.disabled && !t.readonly && t.showButton);
|
|
1317
1318
|
return () => P("div", {
|
|
1318
1319
|
ref: a,
|
|
1319
1320
|
class: "input-group number-range f-cmp-number-spinner"
|