@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.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/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,100 +1,99 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import {
|
|
9
|
-
|
|
1
|
+
var H = Object.defineProperty;
|
|
2
|
+
var q = (e, t, n) => t in e ? H(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var v = (e, t, n) => q(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { defineComponent as O, ref as g, watch as w, computed as B, createVNode as M, inject as E, onMounted as G } from "vue";
|
|
5
|
+
import { cloneDeep as W } from "lodash-es";
|
|
6
|
+
import z from "../list-view/index.esm.js";
|
|
7
|
+
import A from "../button-edit/index.esm.js";
|
|
8
|
+
import { getSchemaByType as j } from "../dynamic-resolver/index.esm.js";
|
|
9
|
+
import { useDesignerComponent as J } from "../designer-canvas/index.esm.js";
|
|
10
|
+
const Q = {}, X = {};
|
|
10
11
|
function L(e) {
|
|
11
|
-
const { properties: t, title: n } = e,
|
|
12
|
-
return
|
|
12
|
+
const { properties: t, title: n } = e, i = Object.keys(t).reduce((l, u) => (l[u] = t[u].type === "object" && t[u].properties ? L(t[u]) : W(t[u].default), l), {});
|
|
13
|
+
return i.id = `${n}-${Date.now()}`, i;
|
|
13
14
|
}
|
|
14
|
-
function
|
|
15
|
+
function Y(e, t) {
|
|
15
16
|
const n = L(t);
|
|
16
|
-
return Object.keys(e).reduce((
|
|
17
|
+
return Object.keys(e).reduce((i, l) => (i[l] && typeof i[l] == "object" ? Object.assign(i[l], e[l]) : i[l] = e[l], i), n), n;
|
|
17
18
|
}
|
|
18
|
-
function
|
|
19
|
-
return Object.keys(e).filter((
|
|
20
|
-
if (t.has(
|
|
21
|
-
const u = t.get(
|
|
19
|
+
function Z(e, t) {
|
|
20
|
+
return Object.keys(e).filter((i) => e[i] != null).reduce((i, l) => {
|
|
21
|
+
if (t.has(l)) {
|
|
22
|
+
const u = t.get(l);
|
|
22
23
|
if (typeof u == "string")
|
|
23
|
-
|
|
24
|
+
i[u] = e[l];
|
|
24
25
|
else {
|
|
25
|
-
const
|
|
26
|
-
Object.assign(
|
|
26
|
+
const y = u(l, e[l], e);
|
|
27
|
+
Object.assign(i, y);
|
|
27
28
|
}
|
|
28
29
|
} else
|
|
29
|
-
|
|
30
|
-
return
|
|
30
|
+
i[l] = e[l];
|
|
31
|
+
return i;
|
|
31
32
|
}, {});
|
|
32
33
|
}
|
|
33
|
-
function
|
|
34
|
-
const
|
|
35
|
-
return
|
|
34
|
+
function _(e, t, n = /* @__PURE__ */ new Map()) {
|
|
35
|
+
const i = Y(e, t);
|
|
36
|
+
return Z(i, n);
|
|
36
37
|
}
|
|
37
|
-
function
|
|
38
|
-
function t(
|
|
39
|
-
if (typeof
|
|
40
|
-
return a[
|
|
41
|
-
if (typeof
|
|
42
|
-
const
|
|
43
|
-
if (
|
|
44
|
-
return Number(a[
|
|
45
|
-
if (
|
|
46
|
-
return Number(a[
|
|
47
|
-
if (
|
|
48
|
-
return Number(a[
|
|
38
|
+
function K(e = {}) {
|
|
39
|
+
function t(s, d, o, a) {
|
|
40
|
+
if (typeof o == "number")
|
|
41
|
+
return a[s].length === o;
|
|
42
|
+
if (typeof o == "object") {
|
|
43
|
+
const r = Object.keys(o)[0], f = o[r];
|
|
44
|
+
if (r === "not")
|
|
45
|
+
return Number(a[s].length) !== Number(f);
|
|
46
|
+
if (r === "moreThan")
|
|
47
|
+
return Number(a[s].length) >= Number(f);
|
|
48
|
+
if (r === "lessThan")
|
|
49
|
+
return Number(a[s].length) <= Number(f);
|
|
49
50
|
}
|
|
50
51
|
return !1;
|
|
51
52
|
}
|
|
52
|
-
function n(
|
|
53
|
-
return a[
|
|
53
|
+
function n(s, d, o, a) {
|
|
54
|
+
return a[s] && a[s].propertyValue && String(a[s].propertyValue.value) === String(o);
|
|
54
55
|
}
|
|
55
|
-
const
|
|
56
|
+
const i = /* @__PURE__ */ new Map([
|
|
56
57
|
["length", t],
|
|
57
58
|
["getProperty", n]
|
|
58
59
|
]);
|
|
59
|
-
Object.keys(e).reduce((
|
|
60
|
-
function
|
|
61
|
-
const
|
|
62
|
-
return typeof d == "number" ? [{ target:
|
|
60
|
+
Object.keys(e).reduce((s, d) => (s.set(d, e[d]), s), i);
|
|
61
|
+
function l(s, d) {
|
|
62
|
+
const o = s;
|
|
63
|
+
return typeof d == "number" ? [{ target: o, operator: "length", param: null, value: Number(d) }] : typeof d == "boolean" ? [{ target: o, operator: "getProperty", param: s, value: !!d }] : typeof d == "object" ? Object.keys(d).map((a) => {
|
|
63
64
|
if (a === "length")
|
|
64
|
-
return { target:
|
|
65
|
-
const
|
|
66
|
-
return { target:
|
|
65
|
+
return { target: o, operator: "length", param: null, value: d[a] };
|
|
66
|
+
const r = a, f = d[a];
|
|
67
|
+
return { target: o, operator: "getProperty", param: r, value: f };
|
|
67
68
|
}) : [];
|
|
68
69
|
}
|
|
69
|
-
function u(
|
|
70
|
-
return Object.keys(
|
|
71
|
-
const
|
|
72
|
-
return
|
|
70
|
+
function u(s) {
|
|
71
|
+
return Object.keys(s).reduce((o, a) => {
|
|
72
|
+
const r = l(a, s[a]);
|
|
73
|
+
return o.push(...r), o;
|
|
73
74
|
}, []);
|
|
74
75
|
}
|
|
75
|
-
function
|
|
76
|
-
if (
|
|
77
|
-
const
|
|
78
|
-
return
|
|
76
|
+
function y(s, d) {
|
|
77
|
+
if (i.has(s.operator)) {
|
|
78
|
+
const o = i.get(s.operator);
|
|
79
|
+
return o && o(s.target, s.param, s.value, d) || !1;
|
|
79
80
|
}
|
|
80
81
|
return !1;
|
|
81
82
|
}
|
|
82
|
-
function
|
|
83
|
-
return u(
|
|
83
|
+
function p(s, d) {
|
|
84
|
+
return u(s).reduce((r, f) => r && y(f, d), !0);
|
|
84
85
|
}
|
|
85
|
-
function
|
|
86
|
-
const
|
|
86
|
+
function m(s, d) {
|
|
87
|
+
const o = Object.keys(s), a = o.includes("allOf"), r = o.includes("anyOf"), f = a || r, h = (f ? s[f ? a ? "allOf" : "anyOf" : "allOf"] : [s]).map((F) => p(F, d));
|
|
87
88
|
return a ? !h.includes(!1) : h.includes(!0);
|
|
88
89
|
}
|
|
89
|
-
return { parseValueSchema:
|
|
90
|
+
return { parseValueSchema: m };
|
|
90
91
|
}
|
|
91
|
-
const
|
|
92
|
-
|
|
93
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
92
|
+
const c = {
|
|
93
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
94
94
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
95
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
95
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
96
96
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
97
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
98
97
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
99
98
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
100
99
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -105,114 +104,43 @@ const l = {
|
|
|
105
104
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
106
105
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
107
106
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
112
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
113
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
107
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
108
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
109
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
114
110
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
115
|
-
|
|
116
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
117
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
118
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
111
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
119
112
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
120
113
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
121
|
-
|
|
122
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
114
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
123
115
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
124
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
125
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
126
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
127
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
128
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
129
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
130
116
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
131
117
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
132
118
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
133
|
-
|
|
134
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
135
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
136
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
137
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
138
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
139
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
119
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
140
120
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
148
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
149
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
150
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
151
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
152
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
153
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
154
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
155
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
156
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
157
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
158
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
159
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
160
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
161
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
162
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
163
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
164
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
165
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
166
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
167
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
168
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
169
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
121
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
122
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
123
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
124
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
125
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
126
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
170
127
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
180
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
181
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
182
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
183
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
184
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
185
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
186
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
187
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
188
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
189
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
190
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
191
|
-
/** 查询类 start */
|
|
192
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
193
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
194
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
195
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
196
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
197
|
-
/** 查询类 end */
|
|
198
|
-
/** 审批类 start */
|
|
199
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
200
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
201
|
-
/** 审批类 end */
|
|
202
|
-
}, J = {}, K = {};
|
|
203
|
-
_();
|
|
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);
|
|
128
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
129
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
130
|
+
}, ee = {}, te = {};
|
|
131
|
+
K();
|
|
132
|
+
function ne(e, t, n = /* @__PURE__ */ new Map(), i = (y, p, m) => p, l = {}, u = (y) => y) {
|
|
133
|
+
return Q[t.title] = t, X[t.title] = i, ee[t.title] = l, te[t.title] = u, (y = {}) => {
|
|
134
|
+
const p = _(y, t, n), m = Object.keys(e).reduce((s, d) => (s[d] = e[d].default, s), {});
|
|
135
|
+
return Object.assign(m, p);
|
|
208
136
|
};
|
|
209
137
|
}
|
|
210
|
-
function
|
|
138
|
+
function ie(e, t) {
|
|
211
139
|
return { customClass: t.class, customStyle: t.style };
|
|
212
140
|
}
|
|
213
|
-
const
|
|
214
|
-
["appearance",
|
|
215
|
-
]),
|
|
141
|
+
const oe = /* @__PURE__ */ new Map([
|
|
142
|
+
["appearance", ie]
|
|
143
|
+
]), ae = "https://json-schema.org/draft/2020-12/schema", le = "https://farris-design.gitee.io/combo-list.schema.json", re = "combo-list", se = "A Farris Input Component", ce = "object", de = {
|
|
216
144
|
id: {
|
|
217
145
|
description: "The unique identifier for a combo list",
|
|
218
146
|
type: "string"
|
|
@@ -323,23 +251,23 @@ const ne = /* @__PURE__ */ new Map([
|
|
|
323
251
|
type: "sting",
|
|
324
252
|
default: ""
|
|
325
253
|
}
|
|
326
|
-
},
|
|
254
|
+
}, ue = [
|
|
327
255
|
"id",
|
|
328
256
|
"type"
|
|
329
|
-
],
|
|
330
|
-
$schema:
|
|
331
|
-
$id:
|
|
332
|
-
title:
|
|
333
|
-
description:
|
|
334
|
-
type:
|
|
335
|
-
properties:
|
|
336
|
-
required:
|
|
257
|
+
], pe = {
|
|
258
|
+
$schema: ae,
|
|
259
|
+
$id: le,
|
|
260
|
+
title: re,
|
|
261
|
+
description: se,
|
|
262
|
+
type: ce,
|
|
263
|
+
properties: de,
|
|
264
|
+
required: ue
|
|
337
265
|
};
|
|
338
|
-
function
|
|
266
|
+
function me(e, t, n) {
|
|
339
267
|
return t;
|
|
340
268
|
}
|
|
341
|
-
var
|
|
342
|
-
const
|
|
269
|
+
var ye = /* @__PURE__ */ ((e) => (e.Text = "text", e.Tag = "tag", e))(ye || {}), fe = /* @__PURE__ */ ((e) => (e.top = "top", e.bottom = "bottom", e.auto = "auto", e))(fe || {});
|
|
270
|
+
const D = {
|
|
343
271
|
/**
|
|
344
272
|
* 组件标识
|
|
345
273
|
*/
|
|
@@ -505,7 +433,7 @@ const P = {
|
|
|
505
433
|
},
|
|
506
434
|
// 搜索启用高亮
|
|
507
435
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
508
|
-
},
|
|
436
|
+
}, R = ne(D, pe, oe, me), ge = {
|
|
509
437
|
dataSource: { type: Array, default: [] },
|
|
510
438
|
enableSearch: { type: Boolean, default: !1 },
|
|
511
439
|
idField: { type: String, default: "id" },
|
|
@@ -526,40 +454,40 @@ const P = {
|
|
|
526
454
|
},
|
|
527
455
|
// 搜索启用高亮
|
|
528
456
|
enableHighlightSearch: { type: Boolean, default: !0 }
|
|
529
|
-
},
|
|
457
|
+
}, he = /* @__PURE__ */ O({
|
|
530
458
|
name: "FComboListContainer",
|
|
531
|
-
props:
|
|
459
|
+
props: ge,
|
|
532
460
|
emits: ["selectionChange"],
|
|
533
461
|
setup(e, t) {
|
|
534
|
-
const n =
|
|
535
|
-
|
|
536
|
-
|
|
462
|
+
const n = g(), i = g(e.dataSource), l = g([]), u = g(e.separator), y = g(e.width), p = g(e.maxHeight), m = g(String(e.selectedValues).split(u.value));
|
|
463
|
+
w(e.dataSource, () => {
|
|
464
|
+
i.value = e.dataSource;
|
|
537
465
|
});
|
|
538
|
-
const
|
|
539
|
-
const
|
|
540
|
-
return
|
|
466
|
+
const s = B(() => e.enableSearch ? "SearchBar" : "ContentHeader"), d = B(() => {
|
|
467
|
+
const r = {};
|
|
468
|
+
return y.value !== void 0 && (r.width = `${y.value}px`), p.value !== void 0 && p.value > 0 && (r.maxHeight = `${p.value}px`), r;
|
|
541
469
|
});
|
|
542
|
-
function
|
|
543
|
-
|
|
470
|
+
function o(r) {
|
|
471
|
+
l.value = r.map((f) => Object.assign({}, f)), m.value = r.map((f) => f[e.idField]), t.emit("selectionChange", l.value);
|
|
544
472
|
}
|
|
545
|
-
function a(
|
|
473
|
+
function a(r) {
|
|
546
474
|
if (e.enableHighlightSearch)
|
|
547
475
|
return;
|
|
548
|
-
let
|
|
549
|
-
typeof e.searchOption == "function" ?
|
|
476
|
+
let f = [];
|
|
477
|
+
typeof e.searchOption == "function" ? f = i.value.filter((C) => e.searchOption(r, C)) : f = i.value.filter((C) => C[e.valueField].indexOf(r) > -1 || C[e.textField].indexOf(r) > -1), n.value.updateDataSource(f);
|
|
550
478
|
}
|
|
551
|
-
return
|
|
552
|
-
|
|
553
|
-
}), () =>
|
|
479
|
+
return w([() => e.selectedValues], ([r]) => {
|
|
480
|
+
m.value = r.split(u.value);
|
|
481
|
+
}), () => M("div", {
|
|
554
482
|
class: "f-combo-list-container pl-3",
|
|
555
483
|
style: d.value
|
|
556
|
-
}, [
|
|
484
|
+
}, [M(z, {
|
|
557
485
|
ref: n,
|
|
558
486
|
size: "small",
|
|
559
487
|
itemClass: "f-combo-list-item",
|
|
560
|
-
header:
|
|
488
|
+
header: s.value,
|
|
561
489
|
headerClass: "f-combo-list-search-box",
|
|
562
|
-
data:
|
|
490
|
+
data: i.value,
|
|
563
491
|
idField: e.idField,
|
|
564
492
|
textField: e.textField,
|
|
565
493
|
titleField: e.titleField,
|
|
@@ -573,278 +501,340 @@ const P = {
|
|
|
573
501
|
showSelection: !0
|
|
574
502
|
},
|
|
575
503
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
576
|
-
selectionValues:
|
|
577
|
-
onSelectionChange:
|
|
504
|
+
selectionValues: m.value,
|
|
505
|
+
onSelectionChange: o,
|
|
578
506
|
onAfterSearch: a
|
|
579
507
|
}, null)]);
|
|
580
508
|
}
|
|
581
509
|
});
|
|
582
|
-
function
|
|
583
|
-
const t =
|
|
584
|
-
function u(
|
|
585
|
-
const a = String(
|
|
586
|
-
return
|
|
510
|
+
function be(e) {
|
|
511
|
+
const t = g(""), n = g(e.modelValue), i = g(e.data || []), l = g(e.editable);
|
|
512
|
+
function u(o) {
|
|
513
|
+
const a = String(o).split(e.separator).map((f) => [f, !0]), r = new Map(a);
|
|
514
|
+
return i.value.filter((f) => r.has(String(f[e.valueField])));
|
|
587
515
|
}
|
|
588
|
-
function
|
|
589
|
-
const a = u(
|
|
590
|
-
t.value =
|
|
516
|
+
function y(o) {
|
|
517
|
+
const a = u(o).map((r) => r[e.textField]).join(e.separator);
|
|
518
|
+
t.value = l.value ? a || o : a;
|
|
591
519
|
}
|
|
592
|
-
function
|
|
593
|
-
const a =
|
|
594
|
-
return
|
|
520
|
+
function p(o) {
|
|
521
|
+
const a = o.split(e.separator).map((f) => [f, !0]), r = new Map(a);
|
|
522
|
+
return i.value.filter((f) => r.has(f[e.textField]));
|
|
595
523
|
}
|
|
596
|
-
function
|
|
524
|
+
function m(o) {
|
|
597
525
|
const a = {};
|
|
598
|
-
return a[e.idField] =
|
|
526
|
+
return a[e.idField] = o, a[e.textField] = o, [a];
|
|
599
527
|
}
|
|
600
|
-
function
|
|
601
|
-
let a =
|
|
602
|
-
const
|
|
603
|
-
return
|
|
528
|
+
function s(o) {
|
|
529
|
+
let a = p(o);
|
|
530
|
+
const r = a && a.length > 0;
|
|
531
|
+
return l.value && !r && (a = m(o)), a;
|
|
604
532
|
}
|
|
605
533
|
function d() {
|
|
606
|
-
const { url:
|
|
607
|
-
let
|
|
608
|
-
fetch(
|
|
609
|
-
var
|
|
534
|
+
const { url: o, method: a = "GET", headers: r = {}, body: f = null } = e.remote, C = a.toLowerCase() == "get" ? { method: a, headers: r } : { method: a, headers: r, body: f };
|
|
535
|
+
let x = !1;
|
|
536
|
+
fetch(o, C).then((h) => {
|
|
537
|
+
var F, T;
|
|
610
538
|
if (h.status === 200)
|
|
611
|
-
return
|
|
539
|
+
return x = !!((T = (F = h.headers) == null ? void 0 : F.get("content-type")) != null && T.includes("application/json")), x ? h.text() : h.json();
|
|
612
540
|
throw new Error(h.statusText);
|
|
613
541
|
}).then((h) => {
|
|
614
|
-
|
|
542
|
+
i.value = x ? JSON.parse(h) : h;
|
|
615
543
|
}).catch((h) => {
|
|
616
544
|
console.error(h);
|
|
617
545
|
});
|
|
618
546
|
}
|
|
619
|
-
return e.remote && d(),
|
|
620
|
-
|
|
621
|
-
}),
|
|
547
|
+
return e.remote && d(), w(() => e.data, () => {
|
|
548
|
+
i.value = e.data;
|
|
549
|
+
}), w([i], ([o]) => {
|
|
622
550
|
if (e.modelValue) {
|
|
623
|
-
const a =
|
|
551
|
+
const a = o.find((r) => r[e.valueField] === e.modelValue);
|
|
624
552
|
a && (t.value = a[e.textField]);
|
|
625
553
|
}
|
|
626
|
-
}),
|
|
627
|
-
n.value =
|
|
628
|
-
}),
|
|
554
|
+
}), w(() => e.modelValue, (o) => {
|
|
555
|
+
n.value = o, y(o);
|
|
556
|
+
}), y(e.modelValue), { dataSource: i, displayText: t, editable: l, modelValue: n, getItemsByDisplayText: p, getItemsByValue: u, getSelectedItemsByDisplayText: s };
|
|
629
557
|
}
|
|
630
|
-
const
|
|
558
|
+
const V = /* @__PURE__ */ O({
|
|
631
559
|
name: "FComboList",
|
|
632
|
-
props:
|
|
560
|
+
props: D,
|
|
633
561
|
emits: ["clear", "update:modelValue", "change", "input"],
|
|
634
562
|
setup(e, t) {
|
|
635
|
-
const n =
|
|
636
|
-
dataSource:
|
|
637
|
-
displayText:
|
|
638
|
-
editable:
|
|
563
|
+
const n = g(), i = g(e.disabled), l = g(e.enableClear), u = g(e.enableSearch), y = g(e.readonly), {
|
|
564
|
+
dataSource: p,
|
|
565
|
+
displayText: m,
|
|
566
|
+
editable: s,
|
|
639
567
|
modelValue: d,
|
|
640
|
-
getSelectedItemsByDisplayText:
|
|
641
|
-
} =
|
|
642
|
-
function
|
|
568
|
+
getSelectedItemsByDisplayText: o
|
|
569
|
+
} = be(e), a = B(() => e.multiSelect), r = B(() => n.value ? n.value.elementRef.getBoundingClientRect().width : 0);
|
|
570
|
+
function f() {
|
|
643
571
|
!a.value && n.value && n.value.hidePopup();
|
|
644
572
|
}
|
|
645
|
-
function
|
|
646
|
-
|
|
573
|
+
function C(b) {
|
|
574
|
+
m.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), f();
|
|
647
575
|
}
|
|
648
|
-
function
|
|
649
|
-
|
|
576
|
+
function x() {
|
|
577
|
+
y.value || n.value.togglePopup();
|
|
650
578
|
}
|
|
651
579
|
function h(b) {
|
|
652
580
|
d.value = "", t.emit("update:modelValue", ""), t.emit("clear");
|
|
653
581
|
}
|
|
654
|
-
function
|
|
655
|
-
const S =
|
|
656
|
-
|
|
582
|
+
function P(b) {
|
|
583
|
+
const S = o(b);
|
|
584
|
+
C(S);
|
|
657
585
|
}
|
|
658
|
-
function
|
|
659
|
-
return
|
|
586
|
+
function F() {
|
|
587
|
+
return m.value;
|
|
660
588
|
}
|
|
661
|
-
function
|
|
589
|
+
function T(b) {
|
|
662
590
|
t.emit("input", b);
|
|
663
591
|
}
|
|
664
592
|
return t.expose({
|
|
665
|
-
getDisplayText:
|
|
666
|
-
}),
|
|
667
|
-
|
|
668
|
-
}), () =>
|
|
593
|
+
getDisplayText: F
|
|
594
|
+
}), w([() => e.disabled, () => e.editable, () => e.enableClear, () => e.enableSearch, () => e.readonly], ([b, S, N, U, $]) => {
|
|
595
|
+
i.value = b, s.value = S, l.value = N, u.value = U, y.value = $;
|
|
596
|
+
}), () => M(A, {
|
|
669
597
|
ref: n,
|
|
670
598
|
id: e.id,
|
|
671
|
-
disable:
|
|
672
|
-
readonly:
|
|
599
|
+
disable: i.value,
|
|
600
|
+
readonly: y.value,
|
|
673
601
|
forcePlaceholder: e.forcePlaceholder,
|
|
674
|
-
editable:
|
|
602
|
+
editable: s.value,
|
|
675
603
|
buttonContent: e.dropDownIcon,
|
|
676
604
|
placeholder: e.placeholder,
|
|
677
|
-
enableClear:
|
|
605
|
+
enableClear: l.value,
|
|
678
606
|
maxLength: e.maxLength,
|
|
679
607
|
tabIndex: e.tabIndex,
|
|
680
608
|
enableTitle: e.enableTitle,
|
|
681
609
|
multiSelect: e.multiSelect,
|
|
682
610
|
inputType: e.multiSelect ? e.viewType : "text",
|
|
683
|
-
modelValue:
|
|
684
|
-
"onUpdate:modelValue": (b) =>
|
|
611
|
+
modelValue: m.value,
|
|
612
|
+
"onUpdate:modelValue": (b) => m.value = b,
|
|
685
613
|
focusOnCreated: e.focusOnCreated,
|
|
686
614
|
selectOnCreated: e.selectOnCreated,
|
|
687
615
|
onClear: h,
|
|
688
|
-
onClick:
|
|
689
|
-
onChange:
|
|
690
|
-
onInput:
|
|
616
|
+
onClick: x,
|
|
617
|
+
onChange: P,
|
|
618
|
+
onInput: T,
|
|
691
619
|
beforeOpen: e.beforeOpen
|
|
692
620
|
}, {
|
|
693
|
-
default: () => [
|
|
621
|
+
default: () => [M(he, {
|
|
694
622
|
idField: e.idField,
|
|
695
623
|
valueField: e.valueField,
|
|
696
624
|
textField: e.textField,
|
|
697
625
|
titleField: e.titleField,
|
|
698
|
-
dataSource:
|
|
626
|
+
dataSource: p.value,
|
|
699
627
|
selectedValues: d.value,
|
|
700
628
|
multiSelect: e.multiSelect,
|
|
701
629
|
enableSearch: u.value,
|
|
702
630
|
maxHeight: e.maxHeight,
|
|
703
631
|
enableHighlightSearch: e.enableHighlightSearch,
|
|
704
|
-
width: e.fitEditor ?
|
|
705
|
-
onSelectionChange:
|
|
632
|
+
width: e.fitEditor ? r.value : void 0,
|
|
633
|
+
onSelectionChange: C
|
|
706
634
|
}, null)]
|
|
707
635
|
});
|
|
708
636
|
}
|
|
709
637
|
});
|
|
710
|
-
function
|
|
638
|
+
function ve(e, t) {
|
|
711
639
|
e.schema;
|
|
712
|
-
const n =
|
|
713
|
-
function
|
|
640
|
+
const n = g(!0), i = g(!0);
|
|
641
|
+
function l(o) {
|
|
714
642
|
return !1;
|
|
715
643
|
}
|
|
716
644
|
function u() {
|
|
717
645
|
return !1;
|
|
718
646
|
}
|
|
719
|
-
function
|
|
647
|
+
function y() {
|
|
720
648
|
return !1;
|
|
721
649
|
}
|
|
722
|
-
function
|
|
650
|
+
function p() {
|
|
723
651
|
return !0;
|
|
724
652
|
}
|
|
725
|
-
function
|
|
653
|
+
function m(o) {
|
|
726
654
|
}
|
|
727
|
-
function
|
|
655
|
+
function s() {
|
|
728
656
|
}
|
|
729
|
-
function d(
|
|
657
|
+
function d(o) {
|
|
730
658
|
return null;
|
|
731
659
|
}
|
|
732
660
|
return {
|
|
733
|
-
canAccepts:
|
|
661
|
+
canAccepts: l,
|
|
734
662
|
checkCanDeleteComponent: u,
|
|
735
|
-
checkCanMoveComponent:
|
|
736
|
-
hideNestedPaddingInDesginerView:
|
|
737
|
-
onAcceptMovedChildElement:
|
|
738
|
-
resolveComponentContext:
|
|
663
|
+
checkCanMoveComponent: y,
|
|
664
|
+
hideNestedPaddingInDesginerView: p,
|
|
665
|
+
onAcceptMovedChildElement: m,
|
|
666
|
+
resolveComponentContext: s,
|
|
739
667
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
740
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
668
|
+
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
741
669
|
getPropsConfig: d
|
|
742
670
|
};
|
|
743
671
|
}
|
|
744
|
-
class
|
|
672
|
+
class Ce {
|
|
673
|
+
constructor(t, n) {
|
|
674
|
+
v(this, "componentId");
|
|
675
|
+
v(this, "viewModelId");
|
|
676
|
+
v(this, "eventsEditorUtils");
|
|
677
|
+
v(this, "formSchemaUtils");
|
|
678
|
+
v(this, "formMetadataConverter");
|
|
679
|
+
v(this, "designViewModelUtils");
|
|
680
|
+
v(this, "designViewModelField");
|
|
681
|
+
v(this, "controlCreatorUtils");
|
|
682
|
+
v(this, "designerHostService");
|
|
683
|
+
v(this, "schemaService", null);
|
|
684
|
+
v(this, "metadataService", null);
|
|
685
|
+
v(this, "propertyConfig", {
|
|
686
|
+
type: "object",
|
|
687
|
+
categories: {}
|
|
688
|
+
});
|
|
689
|
+
var i;
|
|
690
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((i = this.formSchemaUtils) == null ? void 0 : i.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
|
|
691
|
+
}
|
|
692
|
+
getTableInfo() {
|
|
693
|
+
var t;
|
|
694
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
695
|
+
}
|
|
696
|
+
setDesignViewModelField(t) {
|
|
697
|
+
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
698
|
+
if (n) {
|
|
699
|
+
if (!this.designViewModelField) {
|
|
700
|
+
const i = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
701
|
+
this.designViewModelField = i.fields.find((l) => l.id === n);
|
|
702
|
+
}
|
|
703
|
+
t.updateOn = this.designViewModelField.updateOn;
|
|
704
|
+
}
|
|
705
|
+
}
|
|
706
|
+
changeFieldEditorType(t, n) {
|
|
707
|
+
}
|
|
708
|
+
getBasicPropConfig(t) {
|
|
709
|
+
return {
|
|
710
|
+
description: "Basic Information",
|
|
711
|
+
title: "基本信息",
|
|
712
|
+
properties: {
|
|
713
|
+
id: {
|
|
714
|
+
description: "组件标识",
|
|
715
|
+
title: "标识",
|
|
716
|
+
type: "string",
|
|
717
|
+
readonly: !0
|
|
718
|
+
},
|
|
719
|
+
type: {
|
|
720
|
+
description: "组件类型",
|
|
721
|
+
title: "控件类型",
|
|
722
|
+
type: "select",
|
|
723
|
+
editor: {
|
|
724
|
+
type: "combo-list",
|
|
725
|
+
textField: "name",
|
|
726
|
+
valueField: "value",
|
|
727
|
+
data: [{ value: t.type, name: c[t.type].name }]
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
};
|
|
732
|
+
}
|
|
733
|
+
getAppearanceConfig(t = null) {
|
|
734
|
+
return {
|
|
735
|
+
title: "样式",
|
|
736
|
+
description: "Appearance",
|
|
737
|
+
properties: {
|
|
738
|
+
class: {
|
|
739
|
+
title: "class样式",
|
|
740
|
+
type: "string",
|
|
741
|
+
description: "组件的CSS样式",
|
|
742
|
+
$converter: "/converter/appearance.converter"
|
|
743
|
+
},
|
|
744
|
+
style: {
|
|
745
|
+
title: "style样式",
|
|
746
|
+
type: "string",
|
|
747
|
+
description: "组件的样式",
|
|
748
|
+
$converter: "/converter/appearance.converter"
|
|
749
|
+
}
|
|
750
|
+
}
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
}
|
|
754
|
+
const k = class k {
|
|
755
|
+
/**
|
|
756
|
+
* 根据绑定字段类型获取可用的输入类控件
|
|
757
|
+
*/
|
|
745
758
|
static getEditorTypesByMDataType(t) {
|
|
746
|
-
const n =
|
|
759
|
+
const n = k.fieldControlTypeMapping[t];
|
|
747
760
|
return n || [{ key: "", value: "" }];
|
|
748
761
|
}
|
|
749
|
-
|
|
762
|
+
/**
|
|
763
|
+
* 获取所有输入类控件
|
|
764
|
+
*/
|
|
765
|
+
static getAllInputTypes() {
|
|
766
|
+
const t = [];
|
|
767
|
+
for (let n in k.fieldControlTypeMapping)
|
|
768
|
+
k.fieldControlTypeMapping[n].forEach((i) => {
|
|
769
|
+
t.find((l) => l.key === i.key && l.value === i.value) || t.push({ key: i.key, value: i.value });
|
|
770
|
+
});
|
|
771
|
+
return t;
|
|
772
|
+
}
|
|
773
|
+
};
|
|
750
774
|
/**
|
|
751
775
|
* <字段类型,可配置的控件类型列表>的映射
|
|
752
776
|
*/
|
|
753
|
-
|
|
777
|
+
v(k, "fieldControlTypeMapping", {
|
|
754
778
|
String: [
|
|
755
|
-
{ key:
|
|
756
|
-
{ key:
|
|
757
|
-
{ key:
|
|
758
|
-
{ key:
|
|
759
|
-
{ key:
|
|
760
|
-
{ key:
|
|
761
|
-
{ key:
|
|
762
|
-
{ key: l.textarea.type, value: l.textarea.name }
|
|
763
|
-
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
779
|
+
{ key: c["input-group"].type, value: c["input-group"].name },
|
|
780
|
+
{ key: c.lookup.type, value: c.lookup.name },
|
|
781
|
+
{ key: c["date-picker"].type, value: c["date-picker"].name },
|
|
782
|
+
{ key: c["check-box"].type, value: c["check-box"].name },
|
|
783
|
+
{ key: c["radio-group"].type, value: c["radio-group"].name },
|
|
784
|
+
{ key: c["combo-list"].type, value: c["combo-list"].name },
|
|
785
|
+
{ key: c.textarea.type, value: c.textarea.name }
|
|
764
786
|
],
|
|
765
787
|
Text: [
|
|
766
|
-
{ key:
|
|
767
|
-
{ key:
|
|
768
|
-
{ key: l.lookup.type, value: l.lookup.name }
|
|
788
|
+
{ key: c.textarea.type, value: c.textarea.name },
|
|
789
|
+
{ key: c.lookup.type, value: c.lookup.name }
|
|
769
790
|
],
|
|
770
791
|
Decimal: [
|
|
771
|
-
{ key:
|
|
792
|
+
{ key: c["number-spinner"].type, value: c["number-spinner"].name }
|
|
772
793
|
],
|
|
773
794
|
Integer: [
|
|
774
|
-
{ key:
|
|
795
|
+
{ key: c["number-spinner"].type, value: c["number-spinner"].name }
|
|
775
796
|
],
|
|
776
797
|
Number: [
|
|
777
|
-
{ key:
|
|
798
|
+
{ key: c["number-spinner"].type, value: c["number-spinner"].name }
|
|
778
799
|
],
|
|
779
800
|
BigNumber: [
|
|
780
|
-
{ key:
|
|
801
|
+
{ key: c["number-spinner"].type, value: c["number-spinner"].name }
|
|
781
802
|
],
|
|
782
803
|
Date: [
|
|
783
|
-
{ key:
|
|
804
|
+
{ key: c["date-picker"].type, value: c["date-picker"].name }
|
|
784
805
|
],
|
|
785
806
|
DateTime: [
|
|
786
|
-
{ key:
|
|
807
|
+
{ key: c["date-picker"].type, value: c["date-picker"].name }
|
|
787
808
|
],
|
|
788
809
|
Boolean: [
|
|
789
|
-
{ key:
|
|
790
|
-
{ key:
|
|
810
|
+
{ key: c.switch.type, value: c.switch.name },
|
|
811
|
+
{ key: c["check-box"].type, value: c["check-box"].name }
|
|
791
812
|
],
|
|
792
813
|
Enum: [
|
|
793
|
-
{ key:
|
|
794
|
-
{ key:
|
|
814
|
+
{ key: c["combo-list"].type, value: c["combo-list"].name },
|
|
815
|
+
{ key: c["radio-group"].type, value: c["radio-group"].name }
|
|
795
816
|
],
|
|
796
817
|
Object: [
|
|
797
|
-
{ key:
|
|
798
|
-
{ key:
|
|
799
|
-
{ key:
|
|
800
|
-
],
|
|
801
|
-
EmployeeSelector: [
|
|
802
|
-
{ key: l.EmployeeSelector.type, value: l.EmployeeSelector.name }
|
|
803
|
-
],
|
|
804
|
-
AdminOrganizationSelector: [
|
|
805
|
-
{ key: l.AdminOrganizationSelector.type, value: l.AdminOrganizationSelector.name }
|
|
818
|
+
{ key: c.lookup.type, value: c.lookup.name },
|
|
819
|
+
{ key: c["combo-list"].type, value: c["combo-list"].name },
|
|
820
|
+
{ key: c["radio-group"].type, value: c["radio-group"].name }
|
|
806
821
|
]
|
|
807
822
|
});
|
|
808
|
-
|
|
823
|
+
let I = k;
|
|
824
|
+
const Se = g(0);
|
|
825
|
+
class xe extends Ce {
|
|
809
826
|
constructor(t, n) {
|
|
810
|
-
|
|
811
|
-
C(this, "viewModelId");
|
|
812
|
-
C(this, "eventsEditorUtils");
|
|
813
|
-
C(this, "formSchemaUtils");
|
|
814
|
-
C(this, "formMetadataConverter");
|
|
815
|
-
C(this, "designViewModelUtils");
|
|
816
|
-
C(this, "designViewModelField");
|
|
817
|
-
C(this, "controlCreatorUtils");
|
|
818
|
-
C(this, "designerHostService");
|
|
819
|
-
C(this, "schemaService", null);
|
|
820
|
-
C(this, "metadataService", null);
|
|
821
|
-
C(this, "propertyConfig", {
|
|
822
|
-
type: "object",
|
|
823
|
-
categories: {}
|
|
824
|
-
});
|
|
825
|
-
var o;
|
|
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);
|
|
831
|
-
}
|
|
832
|
-
setDesignViewModelField(t) {
|
|
833
|
-
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
834
|
-
if (n) {
|
|
835
|
-
if (!this.designViewModelField) {
|
|
836
|
-
const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
837
|
-
this.designViewModelField = o.fields.find((r) => r.id === n);
|
|
838
|
-
}
|
|
839
|
-
t.updateOn = this.designViewModelField.updateOn;
|
|
840
|
-
}
|
|
827
|
+
super(t, n);
|
|
841
828
|
}
|
|
842
|
-
|
|
829
|
+
getPropertyConfig(t, n) {
|
|
830
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
843
831
|
}
|
|
844
|
-
|
|
845
|
-
var
|
|
846
|
-
var
|
|
847
|
-
|
|
832
|
+
getBasicProperties(t, n) {
|
|
833
|
+
var y;
|
|
834
|
+
var i = this;
|
|
835
|
+
this.setDesignViewModelField(t);
|
|
836
|
+
const l = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
837
|
+
return {
|
|
848
838
|
description: "Basic Information",
|
|
849
839
|
title: "基本信息",
|
|
850
840
|
properties: {
|
|
@@ -864,63 +854,48 @@ class be {
|
|
|
864
854
|
type: "combo-list",
|
|
865
855
|
textField: "value",
|
|
866
856
|
valueField: "key",
|
|
867
|
-
|
|
868
|
-
|
|
857
|
+
editable: !1,
|
|
858
|
+
data: i.designViewModelField ? I.getEditorTypesByMDataType((y = i.designViewModelField.type) == null ? void 0 : y.name) : I.getAllInputTypes()
|
|
869
859
|
}
|
|
870
860
|
},
|
|
871
861
|
label: {
|
|
872
862
|
title: "标签",
|
|
873
863
|
type: "string",
|
|
874
864
|
$converter: "/converter/form-group-label.converter"
|
|
865
|
+
},
|
|
866
|
+
binding: {
|
|
867
|
+
description: "绑定的表单字段",
|
|
868
|
+
title: "绑定",
|
|
869
|
+
$converter: "/converter/field-selector.converter",
|
|
870
|
+
editor: {
|
|
871
|
+
type: "field-selector",
|
|
872
|
+
bindingType: { enable: !1 },
|
|
873
|
+
editorParams: {
|
|
874
|
+
propertyData: t,
|
|
875
|
+
formBasicInfo: l
|
|
876
|
+
},
|
|
877
|
+
columns: [
|
|
878
|
+
{ field: "name", title: "字段名称" },
|
|
879
|
+
{ field: "bindingField", title: "绑定字段" },
|
|
880
|
+
{ field: "fieldType", title: "字段类型" }
|
|
881
|
+
],
|
|
882
|
+
textField: "bindingField",
|
|
883
|
+
data: u
|
|
884
|
+
}
|
|
875
885
|
}
|
|
876
886
|
},
|
|
877
|
-
setPropertyRelates(
|
|
878
|
-
if (
|
|
879
|
-
switch (
|
|
887
|
+
setPropertyRelates(p, m) {
|
|
888
|
+
if (p)
|
|
889
|
+
switch (p && p.propertyID) {
|
|
880
890
|
case "type": {
|
|
881
|
-
|
|
891
|
+
i.changeControlType(t, p, n);
|
|
882
892
|
break;
|
|
883
893
|
}
|
|
884
894
|
}
|
|
885
895
|
}
|
|
886
896
|
};
|
|
887
897
|
}
|
|
888
|
-
|
|
889
|
-
* 卡片控件:切换控件类型后事件
|
|
890
|
-
* @param propertyData 控件DOM属性
|
|
891
|
-
* @param newControlType 新控件类型
|
|
892
|
-
*/
|
|
893
|
-
changeControlType(t, n) {
|
|
894
|
-
var c, d, i, a, s;
|
|
895
|
-
const o = n.propertyValue, r = this.formSchemaUtils.getComponentById(this.componentId);
|
|
896
|
-
let u = this.getControlParentContainer(t.id, r);
|
|
897
|
-
if (!u)
|
|
898
|
-
return;
|
|
899
|
-
const m = u.contents.findIndex((p) => p.id === t.id), y = u.contents[m];
|
|
900
|
-
let g;
|
|
901
|
-
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
902
|
-
editor: {
|
|
903
|
-
$type: o
|
|
904
|
-
},
|
|
905
|
-
name: this.designViewModelField.name,
|
|
906
|
-
require: this.designViewModelField.require,
|
|
907
|
-
readonly: this.designViewModelField.readonly
|
|
908
|
-
}, !1), g = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(g, {
|
|
909
|
-
id: y.id,
|
|
910
|
-
appearance: y.appearance,
|
|
911
|
-
size: y.size,
|
|
912
|
-
label: y.label
|
|
913
|
-
}), Object.assign(g.editor, {
|
|
914
|
-
isTextArea: g.isTextArea && y.isTextArea,
|
|
915
|
-
type: o || "",
|
|
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);
|
|
922
|
-
}
|
|
923
|
-
getAppearanceConfig(t = null) {
|
|
898
|
+
getAppearanceProperties(t) {
|
|
924
899
|
return {
|
|
925
900
|
title: "样式",
|
|
926
901
|
description: "Appearance",
|
|
@@ -950,68 +925,47 @@ class be {
|
|
|
950
925
|
}
|
|
951
926
|
};
|
|
952
927
|
}
|
|
953
|
-
/**
|
|
954
|
-
* 获取控件:以contents为节点进行定位
|
|
955
|
-
* @param controlId 控件ID
|
|
956
|
-
* @param domJson 容器
|
|
957
|
-
*/
|
|
958
|
-
getControlParentContainer(t, n) {
|
|
959
|
-
let o;
|
|
960
|
-
if (!n || !n.contents || n.contents.length === 0)
|
|
961
|
-
return null;
|
|
962
|
-
for (const r of n.contents) {
|
|
963
|
-
if (r.id === t)
|
|
964
|
-
return o = n, n;
|
|
965
|
-
if (o = this.getControlParentContainer(t, r), o)
|
|
966
|
-
return o;
|
|
967
|
-
}
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
class Ce extends be {
|
|
971
|
-
constructor(t, n) {
|
|
972
|
-
super(t, n);
|
|
973
|
-
}
|
|
974
|
-
getBasicProperties(t) {
|
|
975
|
-
let n = this.getBasicPropConfig(t);
|
|
976
|
-
return n.properties.binding = this.getFieldSelectorOptions(t), n;
|
|
977
|
-
}
|
|
978
|
-
getAppearanceProperties(t) {
|
|
979
|
-
return this.getAppearanceConfig(t);
|
|
980
|
-
}
|
|
981
928
|
getEditorProperties(t) {
|
|
982
929
|
return this.getComponentConfig(t);
|
|
983
930
|
}
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
931
|
+
/**
|
|
932
|
+
* 卡片控件:切换控件类型后事件
|
|
933
|
+
* @param propertyData 控件DOM属性
|
|
934
|
+
* @param newControlType 新控件类型
|
|
935
|
+
*/
|
|
936
|
+
changeControlType(t, n, i) {
|
|
937
|
+
var s, d, o, a;
|
|
938
|
+
const l = n.propertyValue, u = i && i.parent && i.parent.schema;
|
|
939
|
+
if (!u)
|
|
940
|
+
return;
|
|
941
|
+
const y = u.contents.findIndex((r) => r.id === t.id), p = u.contents[y];
|
|
942
|
+
let m;
|
|
943
|
+
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
993
944
|
editor: {
|
|
994
|
-
type:
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
945
|
+
$type: l
|
|
946
|
+
},
|
|
947
|
+
name: this.designViewModelField.name,
|
|
948
|
+
require: this.designViewModelField.require,
|
|
949
|
+
readonly: this.designViewModelField.readonly
|
|
950
|
+
}, !1), m = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, l)), m || (m = j("form-group") || {}, m.editor = j(l) || {}, delete m.editor.id, delete m.editor.binding, delete m.editor.appearance), Object.assign(m, {
|
|
951
|
+
id: p.id,
|
|
952
|
+
appearance: p.appearance,
|
|
953
|
+
size: p.size,
|
|
954
|
+
label: p.label,
|
|
955
|
+
binding: p.binding,
|
|
956
|
+
visible: p.visible
|
|
957
|
+
}), Object.assign(m.editor, {
|
|
958
|
+
isTextArea: m.isTextArea && p.isTextArea,
|
|
959
|
+
placeholder: (s = p.editor) == null ? void 0 : s.placeholder,
|
|
960
|
+
holdPlace: (d = p.editor) == null ? void 0 : d.holdPlace,
|
|
961
|
+
readonly: (o = p.editor) == null ? void 0 : o.readonly,
|
|
962
|
+
require: (a = p.editor) == null ? void 0 : a.require
|
|
963
|
+
}), u.contents.splice(y, 1), u.contents.splice(y, 0, m), i.schema = Object.assign(p, m), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
964
|
+
(r) => r.classList.remove("dgComponentSelected")
|
|
965
|
+
), Se.value++;
|
|
1012
966
|
}
|
|
1013
|
-
getComponentConfig(t, n = {},
|
|
1014
|
-
const
|
|
967
|
+
getComponentConfig(t, n = {}, i = {}) {
|
|
968
|
+
const l = Object.assign({
|
|
1015
969
|
description: "组件信息",
|
|
1016
970
|
title: "组件信息",
|
|
1017
971
|
type: "input-group",
|
|
@@ -1037,11 +991,11 @@ class Ce extends be {
|
|
|
1037
991
|
title: "提示文本",
|
|
1038
992
|
type: "string"
|
|
1039
993
|
}
|
|
1040
|
-
},
|
|
1041
|
-
return { ...
|
|
994
|
+
}, i);
|
|
995
|
+
return { ...l, properties: { ...u } };
|
|
1042
996
|
}
|
|
1043
997
|
}
|
|
1044
|
-
class
|
|
998
|
+
class Fe extends xe {
|
|
1045
999
|
constructor(t, n) {
|
|
1046
1000
|
super(t, n);
|
|
1047
1001
|
}
|
|
@@ -1065,41 +1019,41 @@ class ve extends Ce {
|
|
|
1065
1019
|
});
|
|
1066
1020
|
}
|
|
1067
1021
|
}
|
|
1068
|
-
function
|
|
1022
|
+
function ke(e, t) {
|
|
1069
1023
|
const {
|
|
1070
1024
|
canAccepts: n,
|
|
1071
|
-
checkCanDeleteComponent:
|
|
1072
|
-
checkCanMoveComponent:
|
|
1025
|
+
checkCanDeleteComponent: i,
|
|
1026
|
+
checkCanMoveComponent: l,
|
|
1073
1027
|
hideNestedPaddingInDesginerView: u,
|
|
1074
|
-
onAcceptMovedChildElement:
|
|
1075
|
-
resolveComponentContext:
|
|
1076
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1077
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1078
|
-
} =
|
|
1079
|
-
function
|
|
1080
|
-
return new
|
|
1028
|
+
onAcceptMovedChildElement: y,
|
|
1029
|
+
resolveComponentContext: p,
|
|
1030
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1031
|
+
triggerBelongedComponentToDeleteWhenDeleted: s
|
|
1032
|
+
} = ve(e), d = e.schema;
|
|
1033
|
+
function o(a, r) {
|
|
1034
|
+
return new Fe(a, t).getPropertyConfig(d, r);
|
|
1081
1035
|
}
|
|
1082
1036
|
return {
|
|
1083
1037
|
canAccepts: n,
|
|
1084
|
-
checkCanDeleteComponent:
|
|
1085
|
-
checkCanMoveComponent:
|
|
1038
|
+
checkCanDeleteComponent: i,
|
|
1039
|
+
checkCanMoveComponent: l,
|
|
1086
1040
|
hideNestedPaddingInDesginerView: u,
|
|
1087
|
-
onAcceptMovedChildElement:
|
|
1088
|
-
resolveComponentContext:
|
|
1089
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1090
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
1091
|
-
getPropsConfig:
|
|
1041
|
+
onAcceptMovedChildElement: y,
|
|
1042
|
+
resolveComponentContext: p,
|
|
1043
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
1044
|
+
triggerBelongedComponentToDeleteWhenDeleted: s,
|
|
1045
|
+
getPropsConfig: o
|
|
1092
1046
|
};
|
|
1093
1047
|
}
|
|
1094
|
-
const
|
|
1048
|
+
const we = /* @__PURE__ */ O({
|
|
1095
1049
|
name: "FComboListDesign",
|
|
1096
|
-
props:
|
|
1050
|
+
props: D,
|
|
1097
1051
|
emits: ["clear", "update:modelValue", "change"],
|
|
1098
1052
|
setup(e, t) {
|
|
1099
|
-
const n =
|
|
1100
|
-
return
|
|
1101
|
-
n.value.componentInstance =
|
|
1102
|
-
}), t.expose(
|
|
1053
|
+
const n = g(), i = E("designer-host-service"), l = E("design-item-context"), u = ke(l, i), y = J(n, l, u);
|
|
1054
|
+
return G(() => {
|
|
1055
|
+
n.value.componentInstance = y;
|
|
1056
|
+
}), t.expose(y.value), () => M(A, {
|
|
1103
1057
|
ref: n,
|
|
1104
1058
|
id: e.id,
|
|
1105
1059
|
disable: e.disabled,
|
|
@@ -1116,24 +1070,24 @@ const Fe = /* @__PURE__ */ I({
|
|
|
1116
1070
|
inputType: e.multiSelect ? "tag" : "text"
|
|
1117
1071
|
}, null);
|
|
1118
1072
|
}
|
|
1119
|
-
}),
|
|
1073
|
+
}), Me = (e) => {
|
|
1120
1074
|
const t = e;
|
|
1121
1075
|
return t.install = function(n) {
|
|
1122
1076
|
n.component(t.name, e);
|
|
1123
1077
|
}, e;
|
|
1124
1078
|
};
|
|
1125
|
-
|
|
1126
|
-
e["combo-list"] =
|
|
1079
|
+
V.register = (e, t, n, i) => {
|
|
1080
|
+
e["combo-list"] = V, t["combo-list"] = R;
|
|
1127
1081
|
};
|
|
1128
|
-
|
|
1129
|
-
e["combo-list"] =
|
|
1082
|
+
V.registerDesigner = (e, t, n) => {
|
|
1083
|
+
e["combo-list"] = we, t["combo-list"] = R;
|
|
1130
1084
|
};
|
|
1131
|
-
const
|
|
1085
|
+
const Ee = Me(V);
|
|
1132
1086
|
export {
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1087
|
+
V as FComboList,
|
|
1088
|
+
fe as Placement,
|
|
1089
|
+
ye as ViewType,
|
|
1090
|
+
D as comboListProps,
|
|
1091
|
+
Ee as default,
|
|
1092
|
+
R as propsResolver
|
|
1139
1093
|
};
|