@farris/ui-vue 1.2.5 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,29 +1,29 @@
|
|
|
1
1
|
var N = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var C = (e, t, n) =>
|
|
4
|
-
import { defineComponent as I, ref as f, watch as x, computed as
|
|
2
|
+
var U = (e, t, n) => t in e ? N(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var C = (e, t, n) => U(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as I, ref as f, watch as x, computed as B, createVNode as w, inject as D, onMounted as z } from "vue";
|
|
5
5
|
import { cloneDeep as $ } from "lodash-es";
|
|
6
6
|
import G from "@farris/ui-vue/components/list-view";
|
|
7
|
-
import
|
|
7
|
+
import O from "@farris/ui-vue/components/button-edit";
|
|
8
8
|
import { useDesignerComponent as W } from "@farris/ui-vue/components/designer-canvas/src/composition/function/use-designer-component";
|
|
9
9
|
const Q = {}, q = {};
|
|
10
|
-
function
|
|
11
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((r,
|
|
10
|
+
function L(e) {
|
|
11
|
+
const { properties: t, title: n } = e, o = Object.keys(t).reduce((r, u) => (r[u] = t[u].type === "object" && t[u].properties ? L(t[u]) : $(t[u].default), r), {});
|
|
12
12
|
return o.id = `${n}-${Date.now()}`, o;
|
|
13
13
|
}
|
|
14
14
|
function X(e, t) {
|
|
15
|
-
const n =
|
|
15
|
+
const n = L(t);
|
|
16
16
|
return Object.keys(e).reduce((o, r) => (o[r] = e[r], o), n), n;
|
|
17
17
|
}
|
|
18
18
|
function Y(e, t) {
|
|
19
19
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
20
20
|
if (t.has(r)) {
|
|
21
|
-
const
|
|
22
|
-
if (typeof
|
|
23
|
-
o[
|
|
21
|
+
const u = t.get(r);
|
|
22
|
+
if (typeof u == "string")
|
|
23
|
+
o[u] = e[r];
|
|
24
24
|
else {
|
|
25
|
-
const
|
|
26
|
-
Object.assign(o,
|
|
25
|
+
const m = u(r, e[r], e);
|
|
26
|
+
Object.assign(o, m);
|
|
27
27
|
}
|
|
28
28
|
} else
|
|
29
29
|
o[r] = e[r];
|
|
@@ -35,55 +35,55 @@ function Z(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
35
35
|
return Y(o, n);
|
|
36
36
|
}
|
|
37
37
|
function _(e = {}) {
|
|
38
|
-
function t(c,
|
|
38
|
+
function t(c, d, i, a) {
|
|
39
39
|
if (typeof i == "number")
|
|
40
40
|
return a[c].length === i;
|
|
41
41
|
if (typeof i == "object") {
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return Number(a[c].length) !== Number(
|
|
45
|
-
if (
|
|
46
|
-
return Number(a[c].length) >= Number(
|
|
47
|
-
if (
|
|
48
|
-
return Number(a[c].length) <= Number(
|
|
42
|
+
const s = Object.keys(i)[0], p = i[s];
|
|
43
|
+
if (s === "not")
|
|
44
|
+
return Number(a[c].length) !== Number(p);
|
|
45
|
+
if (s === "moreThan")
|
|
46
|
+
return Number(a[c].length) >= Number(p);
|
|
47
|
+
if (s === "lessThan")
|
|
48
|
+
return Number(a[c].length) <= Number(p);
|
|
49
49
|
}
|
|
50
50
|
return !1;
|
|
51
51
|
}
|
|
52
|
-
function n(c,
|
|
52
|
+
function n(c, d, i, a) {
|
|
53
53
|
return a[c] && a[c].propertyValue && String(a[c].propertyValue.value) === String(i);
|
|
54
54
|
}
|
|
55
55
|
const o = /* @__PURE__ */ new Map([
|
|
56
56
|
["length", t],
|
|
57
57
|
["getProperty", n]
|
|
58
58
|
]);
|
|
59
|
-
Object.keys(e).reduce((c,
|
|
60
|
-
function r(c,
|
|
59
|
+
Object.keys(e).reduce((c, d) => (c.set(d, e[d]), c), o);
|
|
60
|
+
function r(c, d) {
|
|
61
61
|
const i = c;
|
|
62
|
-
return typeof
|
|
62
|
+
return typeof d == "number" ? [{ target: i, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: i, operator: "getProperty", param: c, value: !!d }] : typeof d == "object" ? Object.keys(d).map((a) => {
|
|
63
63
|
if (a === "length")
|
|
64
|
-
return { target: i, operator: "length", param: null, value:
|
|
65
|
-
const
|
|
66
|
-
return { target: i, operator: "getProperty", param:
|
|
64
|
+
return { target: i, operator: "length", param: null, value: d[a] };
|
|
65
|
+
const s = a, p = d[a];
|
|
66
|
+
return { target: i, operator: "getProperty", param: s, value: p };
|
|
67
67
|
}) : [];
|
|
68
68
|
}
|
|
69
|
-
function
|
|
69
|
+
function u(c) {
|
|
70
70
|
return Object.keys(c).reduce((i, a) => {
|
|
71
|
-
const
|
|
72
|
-
return i.push(...
|
|
71
|
+
const s = r(a, c[a]);
|
|
72
|
+
return i.push(...s), i;
|
|
73
73
|
}, []);
|
|
74
74
|
}
|
|
75
|
-
function
|
|
75
|
+
function m(c, d) {
|
|
76
76
|
if (o.has(c.operator)) {
|
|
77
77
|
const i = o.get(c.operator);
|
|
78
|
-
return i && i(c.target, c.param, c.value,
|
|
78
|
+
return i && i(c.target, c.param, c.value, d) || !1;
|
|
79
79
|
}
|
|
80
80
|
return !1;
|
|
81
81
|
}
|
|
82
|
-
function
|
|
83
|
-
return
|
|
82
|
+
function y(c, d) {
|
|
83
|
+
return u(c).reduce((s, p) => s && m(p, d), !0);
|
|
84
84
|
}
|
|
85
|
-
function g(c,
|
|
86
|
-
const i = Object.keys(c), a = i.includes("allOf"),
|
|
85
|
+
function g(c, d) {
|
|
86
|
+
const i = Object.keys(c), a = i.includes("allOf"), s = i.includes("anyOf"), p = a || s, h = (p ? c[p ? a ? "allOf" : "anyOf" : "allOf"] : [c]).map((T) => y(T, d));
|
|
87
87
|
return a ? !h.includes(!1) : h.includes(!0);
|
|
88
88
|
}
|
|
89
89
|
return { parseValueSchema: g };
|
|
@@ -91,9 +91,9 @@ function _(e = {}) {
|
|
|
91
91
|
const l = {
|
|
92
92
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
93
93
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
94
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
95
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
96
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
97
97
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
98
98
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
99
99
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -120,15 +120,15 @@ const l = {
|
|
|
120
120
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
121
121
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
122
122
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
123
|
-
|
|
123
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
124
124
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
125
125
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
126
126
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
127
127
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
128
128
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
129
129
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
130
|
-
|
|
131
|
-
|
|
130
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
131
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
132
132
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
133
133
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
134
134
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -137,7 +137,7 @@ const l = {
|
|
|
137
137
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
138
138
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
139
139
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
140
|
-
|
|
140
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
141
141
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
142
142
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
143
143
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -167,7 +167,7 @@ const l = {
|
|
|
167
167
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
168
168
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
169
169
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
170
|
-
|
|
170
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
171
171
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
172
172
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
173
173
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -201,10 +201,10 @@ const l = {
|
|
|
201
201
|
/** 审批类 end */
|
|
202
202
|
}, J = {}, K = {};
|
|
203
203
|
_();
|
|
204
|
-
function ee(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
205
|
-
return Q[t.title] = t, q[t.title] = o, J[t.title] = r, K[t.title] =
|
|
206
|
-
const
|
|
207
|
-
return Object.assign(g,
|
|
204
|
+
function ee(e, t, n = /* @__PURE__ */ new Map(), o = (m, y, g) => y, r = {}, u = (m) => m) {
|
|
205
|
+
return Q[t.title] = t, q[t.title] = o, J[t.title] = r, K[t.title] = u, (m = {}) => {
|
|
206
|
+
const y = Z(m, t, n), g = Object.keys(e).reduce((c, d) => (c[d] = e[d].default, c), {});
|
|
207
|
+
return Object.assign(g, y);
|
|
208
208
|
};
|
|
209
209
|
}
|
|
210
210
|
function te(e, t) {
|
|
@@ -267,7 +267,7 @@ const ne = /* @__PURE__ */ new Map([
|
|
|
267
267
|
valueField: {
|
|
268
268
|
description: "",
|
|
269
269
|
type: "string",
|
|
270
|
-
default: "
|
|
270
|
+
default: "value"
|
|
271
271
|
},
|
|
272
272
|
titleField: {
|
|
273
273
|
description: "",
|
|
@@ -498,8 +498,14 @@ const P = {
|
|
|
498
498
|
/**
|
|
499
499
|
* 打开前
|
|
500
500
|
*/
|
|
501
|
-
beforeOpen: { type: Function, default: null }
|
|
502
|
-
|
|
501
|
+
beforeOpen: { type: Function, default: null },
|
|
502
|
+
searchOption: {
|
|
503
|
+
type: Object,
|
|
504
|
+
default: !1
|
|
505
|
+
},
|
|
506
|
+
// 搜索启用高亮
|
|
507
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
508
|
+
}, A = ee(P, de, ne, ue), ye = {
|
|
503
509
|
dataSource: { type: Array, default: [] },
|
|
504
510
|
enableSearch: { type: Boolean, default: !1 },
|
|
505
511
|
idField: { type: String, default: "id" },
|
|
@@ -513,74 +519,96 @@ const P = {
|
|
|
513
519
|
valueField: { type: String, default: "id" },
|
|
514
520
|
/** 值变化事件 */
|
|
515
521
|
onSelectionChange: { type: Function, default: () => {
|
|
516
|
-
} }
|
|
522
|
+
} },
|
|
523
|
+
searchOption: {
|
|
524
|
+
type: Object,
|
|
525
|
+
default: !1
|
|
526
|
+
},
|
|
527
|
+
// 搜索启用高亮
|
|
528
|
+
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
517
529
|
}, ge = /* @__PURE__ */ I({
|
|
518
530
|
name: "FComboListContainer",
|
|
519
531
|
props: ye,
|
|
520
532
|
emits: ["selectionChange"],
|
|
521
533
|
setup(e, t) {
|
|
522
|
-
const n = f(e.dataSource),
|
|
534
|
+
const n = f(), o = f(e.dataSource), r = f([]), u = f(e.separator), m = f(e.width), y = f(e.maxHeight), g = f(String(e.selectedValues).split(u.value));
|
|
523
535
|
x(e.dataSource, () => {
|
|
524
|
-
|
|
536
|
+
o.value = e.dataSource;
|
|
525
537
|
});
|
|
526
|
-
const
|
|
527
|
-
const
|
|
528
|
-
return
|
|
538
|
+
const c = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = B(() => {
|
|
539
|
+
const s = {};
|
|
540
|
+
return m.value !== void 0 && (s.width = `${m.value}px`), y.value !== void 0 && y.value > 0 && (s.maxHeight = `${y.value}px`), s;
|
|
529
541
|
});
|
|
530
|
-
function s
|
|
531
|
-
|
|
542
|
+
function i(s) {
|
|
543
|
+
r.value = s.map((p) => Object.assign({}, p)), g.value = s.map((p) => p[e.idField]), t.emit("selectionChange", r.value);
|
|
544
|
+
}
|
|
545
|
+
function a(s) {
|
|
546
|
+
if (e.enableHighlightSearch)
|
|
547
|
+
return;
|
|
548
|
+
let p = [];
|
|
549
|
+
typeof e.searchOption == "function" ? p = o.value.filter((v) => e.searchOption(s, v)) : p = o.value.filter((v) => v[e.valueField].indexOf(s) > -1 || v[e.textField].indexOf(s) > -1), n.value.updateDataSource(p);
|
|
532
550
|
}
|
|
533
|
-
return x([() => e.selectedValues], ([
|
|
534
|
-
|
|
535
|
-
}), () =>
|
|
551
|
+
return x([() => e.selectedValues], ([s]) => {
|
|
552
|
+
g.value = s.split(u.value);
|
|
553
|
+
}), () => w("div", {
|
|
536
554
|
class: "f-combo-list-container pl-3",
|
|
537
|
-
style:
|
|
538
|
-
}, [
|
|
555
|
+
style: d.value
|
|
556
|
+
}, [w(G, {
|
|
557
|
+
ref: n,
|
|
539
558
|
size: "small",
|
|
540
559
|
itemClass: "f-combo-list-item",
|
|
541
|
-
header:
|
|
560
|
+
header: c.value,
|
|
542
561
|
headerClass: "f-combo-list-search-box",
|
|
543
|
-
data:
|
|
562
|
+
data: o.value,
|
|
544
563
|
idField: e.idField,
|
|
545
564
|
textField: e.textField,
|
|
546
565
|
titleField: e.titleField,
|
|
547
566
|
multiSelect: e.multiSelect,
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
567
|
+
selection: {
|
|
568
|
+
enableSelectRow: !0,
|
|
569
|
+
multiSelect: !0,
|
|
570
|
+
multiSelectMode: "OnCheckAndClick",
|
|
571
|
+
showCheckbox: !0,
|
|
572
|
+
showSelectAll: !1,
|
|
573
|
+
showSelection: !0
|
|
574
|
+
},
|
|
575
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
576
|
+
selectionValues: g.value,
|
|
577
|
+
onSelectionChange: i,
|
|
578
|
+
onAfterSearch: a
|
|
551
579
|
}, null)]);
|
|
552
580
|
}
|
|
553
581
|
});
|
|
554
582
|
function fe(e) {
|
|
555
583
|
const t = f(""), n = f(e.modelValue), o = f(e.data || []), r = f(e.editable);
|
|
556
|
-
function
|
|
557
|
-
const a = String(i).split(e.separator).map((
|
|
558
|
-
return o.value.filter((
|
|
584
|
+
function u(i) {
|
|
585
|
+
const a = String(i).split(e.separator).map((p) => [p, !0]), s = new Map(a);
|
|
586
|
+
return o.value.filter((p) => s.has(String(p[e.valueField])));
|
|
559
587
|
}
|
|
560
|
-
function
|
|
561
|
-
const a =
|
|
588
|
+
function m(i) {
|
|
589
|
+
const a = u(i).map((s) => s[e.textField]).join(e.separator);
|
|
562
590
|
t.value = r.value ? a || i : a;
|
|
563
591
|
}
|
|
564
|
-
function
|
|
565
|
-
const a = i.split(e.separator).map((
|
|
566
|
-
return o.value.filter((
|
|
592
|
+
function y(i) {
|
|
593
|
+
const a = i.split(e.separator).map((p) => [p, !0]), s = new Map(a);
|
|
594
|
+
return o.value.filter((p) => s.has(p[e.textField]));
|
|
567
595
|
}
|
|
568
596
|
function g(i) {
|
|
569
597
|
const a = {};
|
|
570
598
|
return a[e.idField] = i, a[e.textField] = i, [a];
|
|
571
599
|
}
|
|
572
600
|
function c(i) {
|
|
573
|
-
let a =
|
|
574
|
-
const
|
|
575
|
-
return r.value && !
|
|
601
|
+
let a = y(i);
|
|
602
|
+
const s = a && a.length > 0;
|
|
603
|
+
return r.value && !s && (a = g(i)), a;
|
|
576
604
|
}
|
|
577
|
-
function
|
|
578
|
-
const { url: i, method: a = "GET", headers:
|
|
605
|
+
function d() {
|
|
606
|
+
const { url: i, method: a = "GET", headers: s = {}, body: p = null } = e.remote, v = a.toLowerCase() == "get" ? { method: a, headers: s } : { method: a, headers: s, body: p };
|
|
579
607
|
let F = !1;
|
|
580
|
-
fetch(i,
|
|
581
|
-
var T,
|
|
608
|
+
fetch(i, v).then((h) => {
|
|
609
|
+
var T, M;
|
|
582
610
|
if (h.status === 200)
|
|
583
|
-
return F = !!((
|
|
611
|
+
return F = !!((M = (T = h.headers) == null ? void 0 : T.get("content-type")) != null && M.includes("application/json")), F ? h.text() : h.json();
|
|
584
612
|
throw new Error(h.statusText);
|
|
585
613
|
}).then((h) => {
|
|
586
614
|
o.value = F ? JSON.parse(h) : h;
|
|
@@ -588,60 +616,60 @@ function fe(e) {
|
|
|
588
616
|
console.error(h);
|
|
589
617
|
});
|
|
590
618
|
}
|
|
591
|
-
return e.remote &&
|
|
619
|
+
return e.remote && d(), x(() => e.data, () => {
|
|
592
620
|
o.value = e.data;
|
|
593
621
|
}), x([o], ([i]) => {
|
|
594
622
|
if (e.modelValue) {
|
|
595
|
-
const a = i.find((
|
|
623
|
+
const a = i.find((s) => s[e.valueField] === e.modelValue);
|
|
596
624
|
a && (t.value = a[e.textField]);
|
|
597
625
|
}
|
|
598
626
|
}), x(() => e.modelValue, (i) => {
|
|
599
|
-
n.value = i,
|
|
600
|
-
}),
|
|
627
|
+
n.value = i, m(i);
|
|
628
|
+
}), m(e.modelValue), { dataSource: o, displayText: t, editable: r, modelValue: n, getItemsByDisplayText: y, getItemsByValue: u, getSelectedItemsByDisplayText: c };
|
|
601
629
|
}
|
|
602
630
|
const k = /* @__PURE__ */ I({
|
|
603
631
|
name: "FComboList",
|
|
604
632
|
props: P,
|
|
605
633
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
606
634
|
setup(e, t) {
|
|
607
|
-
const n = f(), o = f(e.disabled), r = f(e.enableClear),
|
|
608
|
-
dataSource:
|
|
635
|
+
const n = f(), o = f(e.disabled), r = f(e.enableClear), u = f(e.enableSearch), m = f(e.readonly), {
|
|
636
|
+
dataSource: y,
|
|
609
637
|
displayText: g,
|
|
610
638
|
editable: c,
|
|
611
|
-
modelValue:
|
|
639
|
+
modelValue: d,
|
|
612
640
|
getSelectedItemsByDisplayText: i
|
|
613
|
-
} = fe(e), a =
|
|
614
|
-
function
|
|
641
|
+
} = fe(e), a = B(() => e.multiSelect), s = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
642
|
+
function p() {
|
|
615
643
|
!a.value && n.value && n.value.hidePopup();
|
|
616
644
|
}
|
|
617
|
-
function
|
|
618
|
-
g.value = b.map((
|
|
645
|
+
function v(b) {
|
|
646
|
+
g.value = b.map((S) => S[e.textField]).join(e.separator), b.length === 1 ? d.value = b[0][e.valueField] : d.value = b.map((S) => S[e.valueField]).join(e.separator), t.emit("update:modelValue", d.value), t.emit("change", b, d.value), p();
|
|
619
647
|
}
|
|
620
648
|
function F() {
|
|
621
|
-
|
|
649
|
+
m.value || n.value.togglePopup();
|
|
622
650
|
}
|
|
623
651
|
function h(b) {
|
|
624
|
-
|
|
652
|
+
d.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
625
653
|
}
|
|
626
654
|
function V(b) {
|
|
627
|
-
const
|
|
628
|
-
S
|
|
655
|
+
const S = i(b);
|
|
656
|
+
v(S);
|
|
629
657
|
}
|
|
630
658
|
function T() {
|
|
631
659
|
return g.value;
|
|
632
660
|
}
|
|
633
|
-
function
|
|
661
|
+
function M(b) {
|
|
634
662
|
t.emit("input", b);
|
|
635
663
|
}
|
|
636
664
|
return t.expose({
|
|
637
665
|
getDisplayText: T
|
|
638
|
-
}), x([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([b,
|
|
639
|
-
o.value = b, c.value =
|
|
640
|
-
}), () =>
|
|
666
|
+
}), x([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([b, S, R, H, j]) => {
|
|
667
|
+
o.value = b, c.value = S, r.value = R, u.value = H, m.value = j;
|
|
668
|
+
}), () => w(O, {
|
|
641
669
|
ref: n,
|
|
642
670
|
id: e.id,
|
|
643
671
|
disable: o.value,
|
|
644
|
-
readonly:
|
|
672
|
+
readonly: m.value,
|
|
645
673
|
forcePlaceholder: e.forcePlaceholder,
|
|
646
674
|
editable: c.value,
|
|
647
675
|
buttonContent: e.dropDownIcon,
|
|
@@ -659,21 +687,22 @@ const k = /* @__PURE__ */ I({
|
|
|
659
687
|
onClear: h,
|
|
660
688
|
onClick: F,
|
|
661
689
|
onChange: V,
|
|
662
|
-
onInput:
|
|
690
|
+
onInput: M,
|
|
663
691
|
beforeOpen: e.beforeOpen
|
|
664
692
|
}, {
|
|
665
|
-
default: () => [
|
|
693
|
+
default: () => [w(ge, {
|
|
666
694
|
idField: e.idField,
|
|
667
695
|
valueField: e.valueField,
|
|
668
696
|
textField: e.textField,
|
|
669
697
|
titleField: e.titleField,
|
|
670
|
-
dataSource:
|
|
671
|
-
selectedValues:
|
|
698
|
+
dataSource: y.value,
|
|
699
|
+
selectedValues: d.value,
|
|
672
700
|
multiSelect: e.multiSelect,
|
|
673
|
-
enableSearch:
|
|
701
|
+
enableSearch: u.value,
|
|
674
702
|
maxHeight: e.maxHeight,
|
|
675
|
-
|
|
676
|
-
|
|
703
|
+
enableHighlightSearch: e.enableHighlightSearch,
|
|
704
|
+
width: e.fitEditor ? s.value : void 0,
|
|
705
|
+
onSelectionChange: v
|
|
677
706
|
}, null)]
|
|
678
707
|
});
|
|
679
708
|
}
|
|
@@ -684,43 +713,44 @@ function he(e, t) {
|
|
|
684
713
|
function r(i) {
|
|
685
714
|
return !1;
|
|
686
715
|
}
|
|
687
|
-
function
|
|
716
|
+
function u() {
|
|
688
717
|
return !1;
|
|
689
718
|
}
|
|
690
|
-
function
|
|
719
|
+
function m() {
|
|
691
720
|
return !1;
|
|
692
721
|
}
|
|
693
|
-
function
|
|
722
|
+
function y() {
|
|
694
723
|
return !0;
|
|
695
724
|
}
|
|
696
725
|
function g(i) {
|
|
697
726
|
}
|
|
698
727
|
function c() {
|
|
699
728
|
}
|
|
700
|
-
function
|
|
729
|
+
function d(i) {
|
|
701
730
|
return null;
|
|
702
731
|
}
|
|
703
732
|
return {
|
|
704
733
|
canAccepts: r,
|
|
705
|
-
checkCanDeleteComponent:
|
|
706
|
-
checkCanMoveComponent:
|
|
707
|
-
hideNestedPaddingInDesginerView:
|
|
734
|
+
checkCanDeleteComponent: u,
|
|
735
|
+
checkCanMoveComponent: m,
|
|
736
|
+
hideNestedPaddingInDesginerView: y,
|
|
708
737
|
onAcceptMovedChildElement: g,
|
|
709
738
|
resolveComponentContext: c,
|
|
710
739
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
711
740
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
712
|
-
getPropsConfig:
|
|
741
|
+
getPropsConfig: d
|
|
713
742
|
};
|
|
714
743
|
}
|
|
715
|
-
class
|
|
744
|
+
class E {
|
|
716
745
|
static getEditorTypesByMDataType(t) {
|
|
717
|
-
|
|
746
|
+
const n = this.fieldControlTypeMapping[t];
|
|
747
|
+
return n || [{ key: "", value: "" }];
|
|
718
748
|
}
|
|
719
749
|
}
|
|
720
750
|
/**
|
|
721
751
|
* <字段类型,可配置的控件类型列表>的映射
|
|
722
752
|
*/
|
|
723
|
-
C(
|
|
753
|
+
C(E, "fieldControlTypeMapping", {
|
|
724
754
|
String: [
|
|
725
755
|
{ key: l["input-group"].type, value: l["input-group"].name },
|
|
726
756
|
{ key: l.lookup.type, value: l.lookup.name },
|
|
@@ -786,13 +816,18 @@ class be {
|
|
|
786
816
|
C(this, "designViewModelField");
|
|
787
817
|
C(this, "controlCreatorUtils");
|
|
788
818
|
C(this, "designerHostService");
|
|
819
|
+
C(this, "schemaService", null);
|
|
789
820
|
C(this, "metadataService", null);
|
|
790
821
|
C(this, "propertyConfig", {
|
|
791
822
|
type: "object",
|
|
792
823
|
categories: {}
|
|
793
824
|
});
|
|
794
825
|
var o;
|
|
795
|
-
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService;
|
|
826
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
|
|
827
|
+
}
|
|
828
|
+
getTableInfo() {
|
|
829
|
+
var t;
|
|
830
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
796
831
|
}
|
|
797
832
|
setDesignViewModelField(t) {
|
|
798
833
|
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
@@ -807,6 +842,7 @@ class be {
|
|
|
807
842
|
changeFieldEditorType(t, n) {
|
|
808
843
|
}
|
|
809
844
|
getBasicPropConfig(t) {
|
|
845
|
+
var o, r;
|
|
810
846
|
var n = this;
|
|
811
847
|
return this.setDesignViewModelField(t), {
|
|
812
848
|
description: "Basic Information",
|
|
@@ -828,7 +864,8 @@ class be {
|
|
|
828
864
|
type: "combo-list",
|
|
829
865
|
textField: "value",
|
|
830
866
|
valueField: "key",
|
|
831
|
-
data:
|
|
867
|
+
data: E.getEditorTypesByMDataType(((r = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : r.name) || ""),
|
|
868
|
+
editable: !1
|
|
832
869
|
}
|
|
833
870
|
},
|
|
834
871
|
label: {
|
|
@@ -837,11 +874,11 @@ class be {
|
|
|
837
874
|
$converter: "/converter/form-group-label.converter"
|
|
838
875
|
}
|
|
839
876
|
},
|
|
840
|
-
setPropertyRelates(
|
|
841
|
-
if (
|
|
842
|
-
switch (
|
|
877
|
+
setPropertyRelates(u, m) {
|
|
878
|
+
if (u)
|
|
879
|
+
switch (u && u.propertyID) {
|
|
843
880
|
case "type": {
|
|
844
|
-
n.changeControlType(t,
|
|
881
|
+
n.changeControlType(t, u);
|
|
845
882
|
break;
|
|
846
883
|
}
|
|
847
884
|
}
|
|
@@ -854,12 +891,12 @@ class be {
|
|
|
854
891
|
* @param newControlType 新控件类型
|
|
855
892
|
*/
|
|
856
893
|
changeControlType(t, n) {
|
|
857
|
-
var c,
|
|
894
|
+
var c, d, i, a, s;
|
|
858
895
|
const o = n.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
859
|
-
let
|
|
860
|
-
if (!
|
|
896
|
+
let u = this.getControlParentContainer(t.id, r);
|
|
897
|
+
if (!u)
|
|
861
898
|
return;
|
|
862
|
-
const
|
|
899
|
+
const m = u.contents.findIndex((p) => p.id === t.id), y = u.contents[m];
|
|
863
900
|
let g;
|
|
864
901
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
865
902
|
editor: {
|
|
@@ -869,19 +906,19 @@ class be {
|
|
|
869
906
|
require: this.designViewModelField.require,
|
|
870
907
|
readonly: this.designViewModelField.readonly
|
|
871
908
|
}, !1), g = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(g, {
|
|
872
|
-
id:
|
|
873
|
-
appearance:
|
|
874
|
-
size:
|
|
875
|
-
label:
|
|
909
|
+
id: y.id,
|
|
910
|
+
appearance: y.appearance,
|
|
911
|
+
size: y.size,
|
|
912
|
+
label: y.label
|
|
876
913
|
}), Object.assign(g.editor, {
|
|
877
|
-
isTextArea: g.isTextArea &&
|
|
914
|
+
isTextArea: g.isTextArea && y.isTextArea,
|
|
878
915
|
type: o || "",
|
|
879
|
-
placeHolder: (c =
|
|
880
|
-
holdPlace: (
|
|
881
|
-
readonly: (i =
|
|
882
|
-
require: (a =
|
|
883
|
-
visible: (
|
|
884
|
-
}),
|
|
916
|
+
placeHolder: (c = y.editor) == null ? void 0 : c.placeHolder,
|
|
917
|
+
holdPlace: (d = y.editor) == null ? void 0 : d.holdPlace,
|
|
918
|
+
readonly: (i = y.editor) == null ? void 0 : i.readonly,
|
|
919
|
+
require: (a = y.editor) == null ? void 0 : a.require,
|
|
920
|
+
visible: (s = y.editor) == null ? void 0 : s.visible
|
|
921
|
+
}), u.contents.splice(m, 1, g);
|
|
885
922
|
}
|
|
886
923
|
getAppearanceConfig(t = null) {
|
|
887
924
|
return {
|
|
@@ -929,27 +966,6 @@ class be {
|
|
|
929
966
|
return o;
|
|
930
967
|
}
|
|
931
968
|
}
|
|
932
|
-
getBindingFieldEditorOptions(t) {
|
|
933
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
934
|
-
return {
|
|
935
|
-
type: "field-selector",
|
|
936
|
-
bindingType: { enable: !1 },
|
|
937
|
-
editorParams: {
|
|
938
|
-
propertyData: t,
|
|
939
|
-
formBasicInfo: n
|
|
940
|
-
},
|
|
941
|
-
columns: [
|
|
942
|
-
{ field: "name", title: "字段名称" },
|
|
943
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
944
|
-
{ field: "fieldType", title: "字段类型" }
|
|
945
|
-
],
|
|
946
|
-
beforeOpenDialog: (o) => {
|
|
947
|
-
const r = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
948
|
-
o.instance.loadData(r);
|
|
949
|
-
},
|
|
950
|
-
textField: "bindingField"
|
|
951
|
-
};
|
|
952
|
-
}
|
|
953
969
|
}
|
|
954
970
|
class Ce extends be {
|
|
955
971
|
constructor(t, n) {
|
|
@@ -986,17 +1002,21 @@ class Ce extends be {
|
|
|
986
1002
|
{ field: "bindingField", title: "绑定字段" },
|
|
987
1003
|
{ field: "fieldType", title: "字段类型" }
|
|
988
1004
|
],
|
|
1005
|
+
textField: "bindingField",
|
|
989
1006
|
data: o
|
|
990
1007
|
}
|
|
991
1008
|
};
|
|
992
1009
|
}
|
|
1010
|
+
getBindingOtions(t) {
|
|
1011
|
+
return this.getFieldSelectorOptions(t);
|
|
1012
|
+
}
|
|
993
1013
|
getComponentConfig(t, n = {}, o = {}) {
|
|
994
1014
|
const r = Object.assign({
|
|
995
1015
|
description: "组件信息",
|
|
996
1016
|
title: "组件信息",
|
|
997
1017
|
type: "input-group",
|
|
998
1018
|
$converter: "/converter/property-editor.converter"
|
|
999
|
-
}, n),
|
|
1019
|
+
}, n), u = Object.assign({
|
|
1000
1020
|
readonly: {
|
|
1001
1021
|
description: "",
|
|
1002
1022
|
title: "只读",
|
|
@@ -1018,7 +1038,7 @@ class Ce extends be {
|
|
|
1018
1038
|
type: "string"
|
|
1019
1039
|
}
|
|
1020
1040
|
}, o);
|
|
1021
|
-
return { ...r, properties: { ...
|
|
1041
|
+
return { ...r, properties: { ...u } };
|
|
1022
1042
|
}
|
|
1023
1043
|
}
|
|
1024
1044
|
class ve extends Ce {
|
|
@@ -1050,22 +1070,22 @@ function Se(e, t) {
|
|
|
1050
1070
|
canAccepts: n,
|
|
1051
1071
|
checkCanDeleteComponent: o,
|
|
1052
1072
|
checkCanMoveComponent: r,
|
|
1053
|
-
hideNestedPaddingInDesginerView:
|
|
1054
|
-
onAcceptMovedChildElement:
|
|
1055
|
-
resolveComponentContext:
|
|
1073
|
+
hideNestedPaddingInDesginerView: u,
|
|
1074
|
+
onAcceptMovedChildElement: m,
|
|
1075
|
+
resolveComponentContext: y,
|
|
1056
1076
|
triggerBelongedComponentToMoveWhenMoved: g,
|
|
1057
1077
|
triggerBelongedComponentToDeleteWhenDeleted: c
|
|
1058
|
-
} = he(e),
|
|
1078
|
+
} = he(e), d = e.schema;
|
|
1059
1079
|
function i(a) {
|
|
1060
|
-
return new ve(a, t).getPropertyConfig(
|
|
1080
|
+
return new ve(a, t).getPropertyConfig(d);
|
|
1061
1081
|
}
|
|
1062
1082
|
return {
|
|
1063
1083
|
canAccepts: n,
|
|
1064
1084
|
checkCanDeleteComponent: o,
|
|
1065
1085
|
checkCanMoveComponent: r,
|
|
1066
|
-
hideNestedPaddingInDesginerView:
|
|
1067
|
-
onAcceptMovedChildElement:
|
|
1068
|
-
resolveComponentContext:
|
|
1086
|
+
hideNestedPaddingInDesginerView: u,
|
|
1087
|
+
onAcceptMovedChildElement: m,
|
|
1088
|
+
resolveComponentContext: y,
|
|
1069
1089
|
triggerBelongedComponentToMoveWhenMoved: g,
|
|
1070
1090
|
triggerBelongedComponentToDeleteWhenDeleted: c,
|
|
1071
1091
|
getPropsConfig: i
|
|
@@ -1076,10 +1096,10 @@ const Fe = /* @__PURE__ */ I({
|
|
|
1076
1096
|
props: P,
|
|
1077
1097
|
emits: ["clear", "update:modelValue", "change"],
|
|
1078
1098
|
setup(e, t) {
|
|
1079
|
-
const n = f(), o = D("designer-host-service"), r = D("design-item-context"),
|
|
1099
|
+
const n = f(), o = D("designer-host-service"), r = D("design-item-context"), u = Se(r, o), m = W(n, r, u);
|
|
1080
1100
|
return z(() => {
|
|
1081
|
-
n.value.componentInstance =
|
|
1082
|
-
}), t.expose(
|
|
1101
|
+
n.value.componentInstance = m;
|
|
1102
|
+
}), t.expose(m.value), () => w(O, {
|
|
1083
1103
|
ref: n,
|
|
1084
1104
|
id: e.id,
|
|
1085
1105
|
disable: e.disabled,
|
|
@@ -1103,10 +1123,10 @@ const Fe = /* @__PURE__ */ I({
|
|
|
1103
1123
|
}, e;
|
|
1104
1124
|
};
|
|
1105
1125
|
k.register = (e, t, n, o) => {
|
|
1106
|
-
e["combo-list"] = k, t["combo-list"] =
|
|
1126
|
+
e["combo-list"] = k, t["combo-list"] = A;
|
|
1107
1127
|
};
|
|
1108
1128
|
k.registerDesigner = (e, t, n) => {
|
|
1109
|
-
e["combo-list"] = Fe, t["combo-list"] =
|
|
1129
|
+
e["combo-list"] = Fe, t["combo-list"] = A;
|
|
1110
1130
|
};
|
|
1111
1131
|
const Ie = Te(k);
|
|
1112
1132
|
export {
|
|
@@ -1115,5 +1135,5 @@ export {
|
|
|
1115
1135
|
pe as ViewType,
|
|
1116
1136
|
P as comboListProps,
|
|
1117
1137
|
Ie as default,
|
|
1118
|
-
|
|
1138
|
+
A as propsResolver
|
|
1119
1139
|
};
|