@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,106 +1,106 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var v = (n, e, t) =>
|
|
4
|
-
import { defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
1
|
+
var X = Object.defineProperty;
|
|
2
|
+
var Y = (n, e, t) => e in n ? X(n, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : n[e] = t;
|
|
3
|
+
var v = (n, e, t) => Y(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as G, ref as M, computed as P, onMounted as W, createVNode as w, withDirectives as Z, vModelText as H, inject as O } from "vue";
|
|
5
|
+
import { cloneDeep as I } from "lodash-es";
|
|
6
|
+
import { useTextBox as K, useClear as R } from "../common/index.esm.js";
|
|
7
|
+
import { getSchemaByType as q } from "../dynamic-resolver/index.esm.js";
|
|
8
|
+
const z = {}, J = {};
|
|
9
|
+
function $(n) {
|
|
10
|
+
const { properties: e, title: t } = n, o = Object.keys(e).reduce((r, s) => (r[s] = e[s].type === "object" && e[s].properties ? $(e[s]) : I(e[s].default), r), {});
|
|
9
11
|
return o.id = `${t}-${Date.now()}`, o;
|
|
10
12
|
}
|
|
11
|
-
function
|
|
13
|
+
function N(n, e = {}) {
|
|
12
14
|
const t = z[n];
|
|
13
15
|
if (t) {
|
|
14
|
-
let o =
|
|
15
|
-
const
|
|
16
|
-
return o =
|
|
16
|
+
let o = $(t);
|
|
17
|
+
const r = J[n];
|
|
18
|
+
return o = r ? r({ getSchemaByType: N }, o, e) : o, o;
|
|
17
19
|
}
|
|
18
20
|
return null;
|
|
19
21
|
}
|
|
20
|
-
function
|
|
21
|
-
const t =
|
|
22
|
-
return Object.keys(n).reduce((o,
|
|
22
|
+
function ee(n, e) {
|
|
23
|
+
const t = $(e);
|
|
24
|
+
return Object.keys(n).reduce((o, r) => (o[r] && typeof o[r] == "object" ? Object.assign(o[r], n[r]) : o[r] = n[r], o), t), t;
|
|
23
25
|
}
|
|
24
|
-
function
|
|
25
|
-
return Object.keys(n).filter((o) => n[o] != null).reduce((o,
|
|
26
|
-
if (e.has(
|
|
27
|
-
const
|
|
28
|
-
if (typeof
|
|
29
|
-
o[
|
|
26
|
+
function te(n, e) {
|
|
27
|
+
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
28
|
+
if (e.has(r)) {
|
|
29
|
+
const s = e.get(r);
|
|
30
|
+
if (typeof s == "string")
|
|
31
|
+
o[s] = n[r];
|
|
30
32
|
else {
|
|
31
|
-
const
|
|
32
|
-
Object.assign(o,
|
|
33
|
+
const d = s(r, n[r], n);
|
|
34
|
+
Object.assign(o, d);
|
|
33
35
|
}
|
|
34
36
|
} else
|
|
35
|
-
o[
|
|
37
|
+
o[r] = n[r];
|
|
36
38
|
return o;
|
|
37
39
|
}, {});
|
|
38
40
|
}
|
|
39
|
-
function
|
|
40
|
-
const o =
|
|
41
|
-
return
|
|
41
|
+
function ne(n, e, t = /* @__PURE__ */ new Map()) {
|
|
42
|
+
const o = ee(n, e);
|
|
43
|
+
return te(o, t);
|
|
42
44
|
}
|
|
43
|
-
function
|
|
44
|
-
function e(
|
|
45
|
-
if (typeof
|
|
46
|
-
return
|
|
47
|
-
if (typeof
|
|
48
|
-
const
|
|
49
|
-
if (
|
|
50
|
-
return Number(
|
|
51
|
-
if (
|
|
52
|
-
return Number(
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
45
|
+
function oe(n = {}) {
|
|
46
|
+
function e(a, l, c, u) {
|
|
47
|
+
if (typeof c == "number")
|
|
48
|
+
return u[a].length === c;
|
|
49
|
+
if (typeof c == "object") {
|
|
50
|
+
const f = Object.keys(c)[0], h = c[f];
|
|
51
|
+
if (f === "not")
|
|
52
|
+
return Number(u[a].length) !== Number(h);
|
|
53
|
+
if (f === "moreThan")
|
|
54
|
+
return Number(u[a].length) >= Number(h);
|
|
55
|
+
if (f === "lessThan")
|
|
56
|
+
return Number(u[a].length) <= Number(h);
|
|
55
57
|
}
|
|
56
58
|
return !1;
|
|
57
59
|
}
|
|
58
|
-
function t(
|
|
59
|
-
return
|
|
60
|
+
function t(a, l, c, u) {
|
|
61
|
+
return u[a] && u[a].propertyValue && String(u[a].propertyValue.value) === String(c);
|
|
60
62
|
}
|
|
61
63
|
const o = /* @__PURE__ */ new Map([
|
|
62
64
|
["length", e],
|
|
63
65
|
["getProperty", t]
|
|
64
66
|
]);
|
|
65
|
-
Object.keys(n).reduce((
|
|
66
|
-
function
|
|
67
|
-
const
|
|
68
|
-
return typeof
|
|
69
|
-
if (
|
|
70
|
-
return { target:
|
|
71
|
-
const
|
|
72
|
-
return { target:
|
|
67
|
+
Object.keys(n).reduce((a, l) => (a.set(l, n[l]), a), o);
|
|
68
|
+
function r(a, l) {
|
|
69
|
+
const c = a;
|
|
70
|
+
return typeof l == "number" ? [{ target: c, operator: "length", param: null, value: Number(l) }] : typeof l == "boolean" ? [{ target: c, operator: "getProperty", param: a, value: !!l }] : typeof l == "object" ? Object.keys(l).map((u) => {
|
|
71
|
+
if (u === "length")
|
|
72
|
+
return { target: c, operator: "length", param: null, value: l[u] };
|
|
73
|
+
const f = u, h = l[u];
|
|
74
|
+
return { target: c, operator: "getProperty", param: f, value: h };
|
|
73
75
|
}) : [];
|
|
74
76
|
}
|
|
75
|
-
function
|
|
76
|
-
return Object.keys(
|
|
77
|
-
const
|
|
78
|
-
return
|
|
77
|
+
function s(a) {
|
|
78
|
+
return Object.keys(a).reduce((c, u) => {
|
|
79
|
+
const f = r(u, a[u]);
|
|
80
|
+
return c.push(...f), c;
|
|
79
81
|
}, []);
|
|
80
82
|
}
|
|
81
|
-
function
|
|
82
|
-
if (o.has(
|
|
83
|
-
const
|
|
84
|
-
return
|
|
83
|
+
function d(a, l) {
|
|
84
|
+
if (o.has(a.operator)) {
|
|
85
|
+
const c = o.get(a.operator);
|
|
86
|
+
return c && c(a.target, a.param, a.value, l) || !1;
|
|
85
87
|
}
|
|
86
88
|
return !1;
|
|
87
89
|
}
|
|
88
|
-
function
|
|
89
|
-
return
|
|
90
|
+
function p(a, l) {
|
|
91
|
+
return s(a).reduce((f, h) => f && d(h, l), !0);
|
|
90
92
|
}
|
|
91
|
-
function
|
|
92
|
-
const
|
|
93
|
-
return
|
|
93
|
+
function m(a, l) {
|
|
94
|
+
const c = Object.keys(a), u = c.includes("allOf"), f = c.includes("anyOf"), h = u || f, T = (h ? a[h ? u ? "allOf" : "anyOf" : "allOf"] : [a]).map((B) => p(B, l));
|
|
95
|
+
return u ? !T.includes(!1) : T.includes(!0);
|
|
94
96
|
}
|
|
95
|
-
return { parseValueSchema:
|
|
97
|
+
return { parseValueSchema: m };
|
|
96
98
|
}
|
|
97
|
-
const
|
|
98
|
-
|
|
99
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
99
|
+
const i = {
|
|
100
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
100
101
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
101
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
102
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
102
103
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
103
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
104
104
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
105
105
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
106
106
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -111,114 +111,43 @@ const a = {
|
|
|
111
111
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
112
112
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
113
113
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
118
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
119
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
114
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
115
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
116
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
120
117
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
121
|
-
|
|
122
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
123
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
124
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
118
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
125
119
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
126
120
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
127
|
-
|
|
128
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
121
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
129
122
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
130
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
131
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
132
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
133
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
134
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
135
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
136
123
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
137
124
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
138
125
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
139
|
-
|
|
140
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
141
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
142
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
143
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
144
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
145
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
126
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
146
127
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
154
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
155
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
156
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
157
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
158
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
159
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
160
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
161
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
162
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
163
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
164
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
165
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
166
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
167
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
168
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
169
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
170
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
171
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
172
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
173
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
174
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
175
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
128
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
129
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
130
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
131
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
132
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
133
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
176
134
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
186
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
187
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
188
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
189
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
190
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
191
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
192
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
193
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
194
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
195
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
196
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
197
|
-
/** 查询类 start */
|
|
198
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
199
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
200
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
201
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
202
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
203
|
-
/** 查询类 end */
|
|
204
|
-
/** 审批类 start */
|
|
205
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
206
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
207
|
-
/** 审批类 end */
|
|
208
|
-
}, J = {}, K = {};
|
|
209
|
-
R();
|
|
210
|
-
function ee(n, e, t = /* @__PURE__ */ new Map(), o = (m, u, y) => u, i = {}, p = (m) => m) {
|
|
211
|
-
return z[e.title] = e, j[e.title] = o, J[e.title] = i, K[e.title] = p, (m = {}) => {
|
|
212
|
-
const u = Z(m, e, t), y = Object.keys(n).reduce((r, c) => (r[c] = n[c].default, r), {});
|
|
213
|
-
return Object.assign(y, u);
|
|
135
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
136
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
137
|
+
}, re = {}, ae = {};
|
|
138
|
+
oe();
|
|
139
|
+
function ie(n, e, t = /* @__PURE__ */ new Map(), o = (d, p, m) => p, r = {}, s = (d) => d) {
|
|
140
|
+
return z[e.title] = e, J[e.title] = o, re[e.title] = r, ae[e.title] = s, (d = {}) => {
|
|
141
|
+
const p = ne(d, e, t), m = Object.keys(n).reduce((a, l) => (a[l] = n[l].default, a), {});
|
|
142
|
+
return Object.assign(m, p);
|
|
214
143
|
};
|
|
215
144
|
}
|
|
216
|
-
function
|
|
145
|
+
function le(n, e) {
|
|
217
146
|
return { customClass: e.class, customStyle: e.style };
|
|
218
147
|
}
|
|
219
|
-
const
|
|
220
|
-
["appearance",
|
|
221
|
-
]),
|
|
148
|
+
const ce = /* @__PURE__ */ new Map([
|
|
149
|
+
["appearance", le]
|
|
150
|
+
]), se = "https://json-schema.org/draft/2020-12/schema", pe = "https://farris-design.gitee.io/switch.schema.json", ue = "textarea", de = "A Farris Component", me = "object", ye = {
|
|
222
151
|
id: {
|
|
223
152
|
description: "The unique identifier for a textarea",
|
|
224
153
|
type: "string"
|
|
@@ -280,28 +209,30 @@ const ne = /* @__PURE__ */ new Map([
|
|
|
280
209
|
type: "boolean",
|
|
281
210
|
default: !0
|
|
282
211
|
}
|
|
283
|
-
},
|
|
212
|
+
}, fe = [
|
|
284
213
|
"id",
|
|
285
214
|
"type"
|
|
286
|
-
],
|
|
287
|
-
$schema:
|
|
288
|
-
$id:
|
|
289
|
-
title:
|
|
290
|
-
description:
|
|
291
|
-
type:
|
|
292
|
-
properties:
|
|
293
|
-
required:
|
|
215
|
+
], ge = {
|
|
216
|
+
$schema: se,
|
|
217
|
+
$id: pe,
|
|
218
|
+
title: ue,
|
|
219
|
+
description: de,
|
|
220
|
+
type: me,
|
|
221
|
+
properties: ye,
|
|
222
|
+
required: fe
|
|
294
223
|
};
|
|
295
|
-
function
|
|
224
|
+
function he(n, e, t) {
|
|
296
225
|
return e;
|
|
297
226
|
}
|
|
298
|
-
const
|
|
227
|
+
const L = {
|
|
299
228
|
/** 自动聚焦 */
|
|
300
229
|
autofocus: { type: Boolean, default: !1 },
|
|
301
230
|
/** 自动完成 */
|
|
302
231
|
autocomplete: { type: Boolean, default: !1 },
|
|
303
232
|
/** 禁用 */
|
|
304
233
|
disabled: { type: Boolean, default: !1 },
|
|
234
|
+
/** 启用清除按钮 */
|
|
235
|
+
enableClear: { type: Boolean, default: !1 },
|
|
305
236
|
/** 组件标识 */
|
|
306
237
|
id: { type: String, default: "" },
|
|
307
238
|
/** 最小字符长度 */
|
|
@@ -318,207 +249,156 @@ const V = {
|
|
|
318
249
|
rows: { type: Boolean },
|
|
319
250
|
/** 展示输入文本数量 */
|
|
320
251
|
showCount: { type: Boolean, default: !1 },
|
|
252
|
+
/** 展示边线 */
|
|
253
|
+
showBorder: { Type: Boolean, default: !0 },
|
|
321
254
|
/** 键盘按键索引 */
|
|
322
255
|
tabIndex: { type: Number, default: -1 }
|
|
323
|
-
},
|
|
256
|
+
}, _ = ie(L, ge, ce, he), E = /* @__PURE__ */ G({
|
|
324
257
|
name: "FTextarea",
|
|
325
|
-
props:
|
|
258
|
+
props: L,
|
|
326
259
|
emits: ["update:modelValue", "valueChange"],
|
|
327
260
|
setup(n, e) {
|
|
328
|
-
const t =
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
right: "10px"
|
|
261
|
+
const t = M(), o = M(n.modelValue), r = P(() => n.modelValue), s = K(n, e, o, r), {
|
|
262
|
+
inputGroupClass: d,
|
|
263
|
+
onBlur: p,
|
|
264
|
+
onFocus: m
|
|
265
|
+
} = s, a = R(n, e, s), {
|
|
266
|
+
onMouseEnter: l,
|
|
267
|
+
onMouseLeave: c,
|
|
268
|
+
clearButtonClass: u,
|
|
269
|
+
shouldShowClearButton: f,
|
|
270
|
+
clearButtonStyle: h
|
|
271
|
+
} = a, x = P(() => n.maxLength ? n.maxLength : n.modelValue.length), D = (C) => {
|
|
272
|
+
var B, S;
|
|
273
|
+
C.stopPropagation(), e.emit("update:modelValue", (B = C.target) == null ? void 0 : B.value), e.emit("valueChange", (S = C.target) == null ? void 0 : S.value);
|
|
274
|
+
}, T = (C) => {
|
|
275
|
+
C.stopPropagation(), t.value.value = "", e.emit("update:modelValue", ""), e.emit("valueChange", "");
|
|
344
276
|
};
|
|
345
|
-
return
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
277
|
+
return W(() => {
|
|
278
|
+
}), () => w("div", {
|
|
279
|
+
class: d.value,
|
|
280
|
+
onMouseenter: l,
|
|
281
|
+
onMouseleave: c,
|
|
282
|
+
style: "position:relative"
|
|
283
|
+
}, [Z(w("textarea", {
|
|
350
284
|
id: n.id,
|
|
285
|
+
"onUpdate:modelValue": (C) => n.modelValue = C,
|
|
351
286
|
ref: t,
|
|
352
287
|
minlength: n.minLength,
|
|
353
|
-
maxlength: n.maxLength,
|
|
288
|
+
maxlength: n.maxLength ? n.maxLength : null,
|
|
354
289
|
tabindex: n.tabIndex,
|
|
355
290
|
disabled: n.disabled,
|
|
356
291
|
readonly: n.readonly,
|
|
357
292
|
autocomplete: n.autocomplete,
|
|
358
|
-
style: u.value,
|
|
359
293
|
placeholder: n.placeholder,
|
|
360
294
|
autofocus: n.autofocus,
|
|
361
295
|
rows: n.rows,
|
|
362
|
-
onInput:
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
296
|
+
onInput: D,
|
|
297
|
+
onFocus: m,
|
|
298
|
+
onBlur: p,
|
|
299
|
+
style: "box-shadow: 0 0 0 1px #dcdfe6 inset; border: none; border-radius:6px; padding:5px 10px; width:100%"
|
|
300
|
+
}, null), [[H, n.modelValue]]), f.value && w("span", {
|
|
301
|
+
id: "clearIcon",
|
|
302
|
+
class: u.value,
|
|
303
|
+
style: h.value,
|
|
304
|
+
onClick: (C) => T(C)
|
|
305
|
+
}, [w("i", {
|
|
306
|
+
class: "f-icon modal_close"
|
|
307
|
+
}, null)]), n.showCount && w("span", {
|
|
308
|
+
style: "position: absolute;bottom: 5px;right: 10px"
|
|
309
|
+
}, [`${n.modelValue.length}/${x.value}`])]);
|
|
366
310
|
}
|
|
367
311
|
});
|
|
368
|
-
function
|
|
369
|
-
var
|
|
312
|
+
function be(n, e, t) {
|
|
313
|
+
var U;
|
|
370
314
|
function o() {
|
|
371
315
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
372
316
|
}
|
|
373
317
|
o();
|
|
374
|
-
const
|
|
375
|
-
function
|
|
318
|
+
const r = t && t.getStyles && t.getStyles() || "", s = t && t.getDesignerClass && t.getDesignerClass() || "", d = M();
|
|
319
|
+
function p() {
|
|
376
320
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
377
321
|
}
|
|
378
|
-
function
|
|
322
|
+
function m() {
|
|
379
323
|
return !1;
|
|
380
324
|
}
|
|
381
|
-
function
|
|
325
|
+
function a() {
|
|
382
326
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
383
327
|
}
|
|
384
|
-
function
|
|
328
|
+
function l() {
|
|
385
329
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
386
330
|
}
|
|
387
|
-
function
|
|
388
|
-
if (!
|
|
331
|
+
function c(y) {
|
|
332
|
+
if (!y || !y.value)
|
|
389
333
|
return null;
|
|
390
|
-
if (
|
|
391
|
-
return
|
|
392
|
-
const b =
|
|
393
|
-
return
|
|
334
|
+
if (y.value.schema && y.value.schema.type === "component")
|
|
335
|
+
return y.value;
|
|
336
|
+
const b = M(y == null ? void 0 : y.value.parent), g = c(b);
|
|
337
|
+
return g || null;
|
|
394
338
|
}
|
|
395
|
-
function
|
|
396
|
-
const { componentInstance: b, designerItemElementRef:
|
|
397
|
-
return !b || !b.value ? null : b.value.canMove ?
|
|
339
|
+
function u(y = e) {
|
|
340
|
+
const { componentInstance: b, designerItemElementRef: g } = y;
|
|
341
|
+
return !b || !b.value ? null : b.value.canMove ? g : u(y.parent);
|
|
398
342
|
}
|
|
399
|
-
function
|
|
400
|
-
return !!t && t.canAccepts(
|
|
343
|
+
function f(y) {
|
|
344
|
+
return !!t && t.canAccepts(y);
|
|
401
345
|
}
|
|
402
346
|
function h() {
|
|
403
347
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
404
348
|
}
|
|
405
|
-
function
|
|
349
|
+
function x() {
|
|
406
350
|
}
|
|
407
|
-
function
|
|
351
|
+
function D(y, b) {
|
|
408
352
|
b && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(b);
|
|
409
353
|
}
|
|
410
|
-
function
|
|
411
|
-
const { componentType: b } =
|
|
412
|
-
let
|
|
413
|
-
t && t.onResolveNewComponentSchema && (
|
|
354
|
+
function T(y) {
|
|
355
|
+
const { componentType: b } = y;
|
|
356
|
+
let g = N(b, y);
|
|
357
|
+
t && t.onResolveNewComponentSchema && (g = t.onResolveNewComponentSchema(y, g));
|
|
414
358
|
const F = b.toLowerCase().replace("-", "_");
|
|
415
|
-
return
|
|
359
|
+
return g && !g.id && g.type === b && (g.id = `${F}_${Math.random().toString().slice(2, 6)}`), g;
|
|
416
360
|
}
|
|
417
|
-
function
|
|
418
|
-
const
|
|
419
|
-
|
|
420
|
-
let
|
|
421
|
-
t && t.onAcceptNewChildElement && (
|
|
422
|
-
const
|
|
423
|
-
return
|
|
361
|
+
function C(y, b) {
|
|
362
|
+
const g = String(y.getAttribute("data-controltype")), F = y.getAttribute("data-feature"), j = F ? JSON.parse(F) : {};
|
|
363
|
+
j.parentComponentInstance = d.value;
|
|
364
|
+
let k = N(g, j);
|
|
365
|
+
t && t.onAcceptNewChildElement && (k = t.onAcceptNewChildElement(y, b, k));
|
|
366
|
+
const Q = g.toLowerCase().replace("-", "_");
|
|
367
|
+
return k && !k.id && k.type === g && (k.id = `${Q}_${Math.random().toString().slice(2, 6)}`), k;
|
|
424
368
|
}
|
|
425
|
-
function
|
|
369
|
+
function B(y) {
|
|
426
370
|
}
|
|
427
|
-
function
|
|
371
|
+
function S(...y) {
|
|
428
372
|
if (t && t.getPropsConfig)
|
|
429
|
-
return t.getPropsConfig(...
|
|
373
|
+
return t.getPropsConfig(...y);
|
|
430
374
|
}
|
|
431
|
-
return
|
|
432
|
-
canMove:
|
|
433
|
-
canSelectParent:
|
|
434
|
-
canDelete:
|
|
435
|
-
canNested: !
|
|
375
|
+
return d.value = {
|
|
376
|
+
canMove: p(),
|
|
377
|
+
canSelectParent: m(),
|
|
378
|
+
canDelete: a(),
|
|
379
|
+
canNested: !l(),
|
|
436
380
|
contents: e == null ? void 0 : e.schema.contents,
|
|
437
381
|
elementRef: n,
|
|
438
|
-
parent: (
|
|
382
|
+
parent: (U = e == null ? void 0 : e.parent) == null ? void 0 : U.componentInstance,
|
|
439
383
|
schema: e == null ? void 0 : e.schema,
|
|
440
|
-
styles:
|
|
441
|
-
designerClass:
|
|
442
|
-
canAccepts:
|
|
443
|
-
getBelongedComponentInstance:
|
|
444
|
-
getDraggableDesignItemElement:
|
|
384
|
+
styles: r,
|
|
385
|
+
designerClass: s,
|
|
386
|
+
canAccepts: f,
|
|
387
|
+
getBelongedComponentInstance: c,
|
|
388
|
+
getDraggableDesignItemElement: u,
|
|
445
389
|
getDraggingDisplayText: h,
|
|
446
|
-
getPropConfig:
|
|
447
|
-
getDragScopeElement:
|
|
448
|
-
onAcceptMovedChildElement:
|
|
449
|
-
onAcceptNewChildElement:
|
|
450
|
-
onChildElementMovedOut:
|
|
451
|
-
addNewChildComponentSchema:
|
|
390
|
+
getPropConfig: S,
|
|
391
|
+
getDragScopeElement: x,
|
|
392
|
+
onAcceptMovedChildElement: D,
|
|
393
|
+
onAcceptNewChildElement: C,
|
|
394
|
+
onChildElementMovedOut: B,
|
|
395
|
+
addNewChildComponentSchema: T,
|
|
452
396
|
updateDragAndDropRules: o,
|
|
453
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
454
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
455
|
-
},
|
|
456
|
-
}
|
|
457
|
-
class H {
|
|
458
|
-
static getEditorTypesByMDataType(e) {
|
|
459
|
-
const t = this.fieldControlTypeMapping[e];
|
|
460
|
-
return t || [{ key: "", value: "" }];
|
|
461
|
-
}
|
|
397
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || M(!1),
|
|
398
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || M(!1)
|
|
399
|
+
}, d;
|
|
462
400
|
}
|
|
463
|
-
|
|
464
|
-
* <字段类型,可配置的控件类型列表>的映射
|
|
465
|
-
*/
|
|
466
|
-
v(H, "fieldControlTypeMapping", {
|
|
467
|
-
String: [
|
|
468
|
-
{ key: a["input-group"].type, value: a["input-group"].name },
|
|
469
|
-
{ key: a.lookup.type, value: a.lookup.name },
|
|
470
|
-
{ key: a.Image.type, value: a.Image.name },
|
|
471
|
-
{ key: a["date-picker"].type, value: a["date-picker"].name },
|
|
472
|
-
{ key: a["check-box"].type, value: a["check-box"].name },
|
|
473
|
-
{ key: a["radio-group"].type, value: a["radio-group"].name },
|
|
474
|
-
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
475
|
-
{ key: a.textarea.type, value: a.textarea.name }
|
|
476
|
-
// { key: DgControl.Tags.type, value: DgControl.Tags.name },
|
|
477
|
-
],
|
|
478
|
-
Text: [
|
|
479
|
-
{ key: a.textarea.type, value: a.textarea.name },
|
|
480
|
-
{ key: a.avatar.type, value: a.avatar.name },
|
|
481
|
-
{ key: a.lookup.type, value: a.lookup.name }
|
|
482
|
-
],
|
|
483
|
-
Decimal: [
|
|
484
|
-
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
485
|
-
],
|
|
486
|
-
Integer: [
|
|
487
|
-
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
488
|
-
],
|
|
489
|
-
Number: [
|
|
490
|
-
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
491
|
-
],
|
|
492
|
-
BigNumber: [
|
|
493
|
-
{ key: a["number-spinner"].type, value: a["number-spinner"].name }
|
|
494
|
-
],
|
|
495
|
-
Date: [
|
|
496
|
-
{ key: a["date-picker"].type, value: a["date-picker"].name }
|
|
497
|
-
],
|
|
498
|
-
DateTime: [
|
|
499
|
-
{ key: a["date-picker"].type, value: a["date-picker"].name }
|
|
500
|
-
],
|
|
501
|
-
Boolean: [
|
|
502
|
-
{ key: a.switch.type, value: a.switch.name },
|
|
503
|
-
{ key: a["check-box"].type, value: a["check-box"].name }
|
|
504
|
-
],
|
|
505
|
-
Enum: [
|
|
506
|
-
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
507
|
-
{ key: a["radio-group"].type, value: a["radio-group"].name }
|
|
508
|
-
],
|
|
509
|
-
Object: [
|
|
510
|
-
{ key: a.lookup.type, value: a.lookup.name },
|
|
511
|
-
{ key: a["combo-list"].type, value: a["combo-list"].name },
|
|
512
|
-
{ key: a["radio-group"].type, value: a["radio-group"].name }
|
|
513
|
-
],
|
|
514
|
-
EmployeeSelector: [
|
|
515
|
-
{ key: a.EmployeeSelector.type, value: a.EmployeeSelector.name }
|
|
516
|
-
],
|
|
517
|
-
AdminOrganizationSelector: [
|
|
518
|
-
{ key: a.AdminOrganizationSelector.type, value: a.AdminOrganizationSelector.name }
|
|
519
|
-
]
|
|
520
|
-
});
|
|
521
|
-
class me {
|
|
401
|
+
class ve {
|
|
522
402
|
constructor(e, t) {
|
|
523
403
|
v(this, "componentId");
|
|
524
404
|
v(this, "viewModelId");
|
|
@@ -547,7 +427,7 @@ class me {
|
|
|
547
427
|
if (t) {
|
|
548
428
|
if (!this.designViewModelField) {
|
|
549
429
|
const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
550
|
-
this.designViewModelField = o.fields.find((
|
|
430
|
+
this.designViewModelField = o.fields.find((r) => r.id === t);
|
|
551
431
|
}
|
|
552
432
|
e.updateOn = this.designViewModelField.updateOn;
|
|
553
433
|
}
|
|
@@ -555,9 +435,135 @@ class me {
|
|
|
555
435
|
changeFieldEditorType(e, t) {
|
|
556
436
|
}
|
|
557
437
|
getBasicPropConfig(e) {
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
438
|
+
return {
|
|
439
|
+
description: "Basic Information",
|
|
440
|
+
title: "基本信息",
|
|
441
|
+
properties: {
|
|
442
|
+
id: {
|
|
443
|
+
description: "组件标识",
|
|
444
|
+
title: "标识",
|
|
445
|
+
type: "string",
|
|
446
|
+
readonly: !0
|
|
447
|
+
},
|
|
448
|
+
type: {
|
|
449
|
+
description: "组件类型",
|
|
450
|
+
title: "控件类型",
|
|
451
|
+
type: "select",
|
|
452
|
+
editor: {
|
|
453
|
+
type: "combo-list",
|
|
454
|
+
textField: "name",
|
|
455
|
+
valueField: "value",
|
|
456
|
+
data: [{ value: e.type, name: i[e.type].name }]
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
}
|
|
460
|
+
};
|
|
461
|
+
}
|
|
462
|
+
getAppearanceConfig(e = null) {
|
|
463
|
+
return {
|
|
464
|
+
title: "样式",
|
|
465
|
+
description: "Appearance",
|
|
466
|
+
properties: {
|
|
467
|
+
class: {
|
|
468
|
+
title: "class样式",
|
|
469
|
+
type: "string",
|
|
470
|
+
description: "组件的CSS样式",
|
|
471
|
+
$converter: "/converter/appearance.converter"
|
|
472
|
+
},
|
|
473
|
+
style: {
|
|
474
|
+
title: "style样式",
|
|
475
|
+
type: "string",
|
|
476
|
+
description: "组件的样式",
|
|
477
|
+
$converter: "/converter/appearance.converter"
|
|
478
|
+
}
|
|
479
|
+
}
|
|
480
|
+
};
|
|
481
|
+
}
|
|
482
|
+
}
|
|
483
|
+
const V = class V {
|
|
484
|
+
/**
|
|
485
|
+
* 根据绑定字段类型获取可用的输入类控件
|
|
486
|
+
*/
|
|
487
|
+
static getEditorTypesByMDataType(e) {
|
|
488
|
+
const t = V.fieldControlTypeMapping[e];
|
|
489
|
+
return t || [{ key: "", value: "" }];
|
|
490
|
+
}
|
|
491
|
+
/**
|
|
492
|
+
* 获取所有输入类控件
|
|
493
|
+
*/
|
|
494
|
+
static getAllInputTypes() {
|
|
495
|
+
const e = [];
|
|
496
|
+
for (let t in V.fieldControlTypeMapping)
|
|
497
|
+
V.fieldControlTypeMapping[t].forEach((o) => {
|
|
498
|
+
e.find((r) => r.key === o.key && r.value === o.value) || e.push({ key: o.key, value: o.value });
|
|
499
|
+
});
|
|
500
|
+
return e;
|
|
501
|
+
}
|
|
502
|
+
};
|
|
503
|
+
/**
|
|
504
|
+
* <字段类型,可配置的控件类型列表>的映射
|
|
505
|
+
*/
|
|
506
|
+
v(V, "fieldControlTypeMapping", {
|
|
507
|
+
String: [
|
|
508
|
+
{ key: i["input-group"].type, value: i["input-group"].name },
|
|
509
|
+
{ key: i.lookup.type, value: i.lookup.name },
|
|
510
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name },
|
|
511
|
+
{ key: i["check-box"].type, value: i["check-box"].name },
|
|
512
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name },
|
|
513
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
514
|
+
{ key: i.textarea.type, value: i.textarea.name }
|
|
515
|
+
],
|
|
516
|
+
Text: [
|
|
517
|
+
{ key: i.textarea.type, value: i.textarea.name },
|
|
518
|
+
{ key: i.lookup.type, value: i.lookup.name }
|
|
519
|
+
],
|
|
520
|
+
Decimal: [
|
|
521
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
522
|
+
],
|
|
523
|
+
Integer: [
|
|
524
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
525
|
+
],
|
|
526
|
+
Number: [
|
|
527
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
528
|
+
],
|
|
529
|
+
BigNumber: [
|
|
530
|
+
{ key: i["number-spinner"].type, value: i["number-spinner"].name }
|
|
531
|
+
],
|
|
532
|
+
Date: [
|
|
533
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name }
|
|
534
|
+
],
|
|
535
|
+
DateTime: [
|
|
536
|
+
{ key: i["date-picker"].type, value: i["date-picker"].name }
|
|
537
|
+
],
|
|
538
|
+
Boolean: [
|
|
539
|
+
{ key: i.switch.type, value: i.switch.name },
|
|
540
|
+
{ key: i["check-box"].type, value: i["check-box"].name }
|
|
541
|
+
],
|
|
542
|
+
Enum: [
|
|
543
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
544
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name }
|
|
545
|
+
],
|
|
546
|
+
Object: [
|
|
547
|
+
{ key: i.lookup.type, value: i.lookup.name },
|
|
548
|
+
{ key: i["combo-list"].type, value: i["combo-list"].name },
|
|
549
|
+
{ key: i["radio-group"].type, value: i["radio-group"].name }
|
|
550
|
+
]
|
|
551
|
+
});
|
|
552
|
+
let A = V;
|
|
553
|
+
const Ce = M(0);
|
|
554
|
+
class Me extends ve {
|
|
555
|
+
constructor(e, t) {
|
|
556
|
+
super(e, t);
|
|
557
|
+
}
|
|
558
|
+
getPropertyConfig(e, t) {
|
|
559
|
+
return this.propertyConfig.categories.basic = this.getBasicProperties(e, t), this.propertyConfig.categories.appearance = this.getAppearanceProperties(e), this.propertyConfig.categories.editor = this.getEditorProperties(e), this.propertyConfig;
|
|
560
|
+
}
|
|
561
|
+
getBasicProperties(e, t) {
|
|
562
|
+
var d;
|
|
563
|
+
var o = this;
|
|
564
|
+
this.setDesignViewModelField(e);
|
|
565
|
+
const r = this.formSchemaUtils.getFormMetadataBasicInfo(), s = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
566
|
+
return {
|
|
561
567
|
description: "Basic Information",
|
|
562
568
|
title: "基本信息",
|
|
563
569
|
properties: {
|
|
@@ -577,63 +583,48 @@ class me {
|
|
|
577
583
|
type: "combo-list",
|
|
578
584
|
textField: "value",
|
|
579
585
|
valueField: "key",
|
|
580
|
-
|
|
581
|
-
|
|
586
|
+
editable: !1,
|
|
587
|
+
data: o.designViewModelField ? A.getEditorTypesByMDataType((d = o.designViewModelField.type) == null ? void 0 : d.name) : A.getAllInputTypes()
|
|
582
588
|
}
|
|
583
589
|
},
|
|
584
590
|
label: {
|
|
585
591
|
title: "标签",
|
|
586
592
|
type: "string",
|
|
587
593
|
$converter: "/converter/form-group-label.converter"
|
|
594
|
+
},
|
|
595
|
+
binding: {
|
|
596
|
+
description: "绑定的表单字段",
|
|
597
|
+
title: "绑定",
|
|
598
|
+
$converter: "/converter/field-selector.converter",
|
|
599
|
+
editor: {
|
|
600
|
+
type: "field-selector",
|
|
601
|
+
bindingType: { enable: !1 },
|
|
602
|
+
editorParams: {
|
|
603
|
+
propertyData: e,
|
|
604
|
+
formBasicInfo: r
|
|
605
|
+
},
|
|
606
|
+
columns: [
|
|
607
|
+
{ field: "name", title: "字段名称" },
|
|
608
|
+
{ field: "bindingField", title: "绑定字段" },
|
|
609
|
+
{ field: "fieldType", title: "字段类型" }
|
|
610
|
+
],
|
|
611
|
+
textField: "bindingField",
|
|
612
|
+
data: s
|
|
613
|
+
}
|
|
588
614
|
}
|
|
589
615
|
},
|
|
590
616
|
setPropertyRelates(p, m) {
|
|
591
617
|
if (p)
|
|
592
618
|
switch (p && p.propertyID) {
|
|
593
619
|
case "type": {
|
|
594
|
-
|
|
620
|
+
o.changeControlType(e, p, t);
|
|
595
621
|
break;
|
|
596
622
|
}
|
|
597
623
|
}
|
|
598
624
|
}
|
|
599
625
|
};
|
|
600
626
|
}
|
|
601
|
-
|
|
602
|
-
* 卡片控件:切换控件类型后事件
|
|
603
|
-
* @param propertyData 控件DOM属性
|
|
604
|
-
* @param newControlType 新控件类型
|
|
605
|
-
*/
|
|
606
|
-
changeControlType(e, t) {
|
|
607
|
-
var r, c, l, s, g;
|
|
608
|
-
const o = t.propertyValue, i = this.formSchemaUtils.getComponentById(this.componentId);
|
|
609
|
-
let p = this.getControlParentContainer(e.id, i);
|
|
610
|
-
if (!p)
|
|
611
|
-
return;
|
|
612
|
-
const m = p.contents.findIndex((h) => h.id === e.id), u = p.contents[m];
|
|
613
|
-
let y;
|
|
614
|
-
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
615
|
-
editor: {
|
|
616
|
-
$type: o
|
|
617
|
-
},
|
|
618
|
-
name: this.designViewModelField.name,
|
|
619
|
-
require: this.designViewModelField.require,
|
|
620
|
-
readonly: this.designViewModelField.readonly
|
|
621
|
-
}, !1), y = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(y, {
|
|
622
|
-
id: u.id,
|
|
623
|
-
appearance: u.appearance,
|
|
624
|
-
size: u.size,
|
|
625
|
-
label: u.label
|
|
626
|
-
}), Object.assign(y.editor, {
|
|
627
|
-
isTextArea: y.isTextArea && u.isTextArea,
|
|
628
|
-
type: o || "",
|
|
629
|
-
placeHolder: (r = u.editor) == null ? void 0 : r.placeHolder,
|
|
630
|
-
holdPlace: (c = u.editor) == null ? void 0 : c.holdPlace,
|
|
631
|
-
readonly: (l = u.editor) == null ? void 0 : l.readonly,
|
|
632
|
-
require: (s = u.editor) == null ? void 0 : s.require,
|
|
633
|
-
visible: (g = u.editor) == null ? void 0 : g.visible
|
|
634
|
-
}), p.contents.splice(m, 1, y);
|
|
635
|
-
}
|
|
636
|
-
getAppearanceConfig(e = null) {
|
|
627
|
+
getAppearanceProperties(e) {
|
|
637
628
|
return {
|
|
638
629
|
title: "样式",
|
|
639
630
|
description: "Appearance",
|
|
@@ -663,73 +654,52 @@ class me {
|
|
|
663
654
|
}
|
|
664
655
|
};
|
|
665
656
|
}
|
|
666
|
-
/**
|
|
667
|
-
* 获取控件:以contents为节点进行定位
|
|
668
|
-
* @param controlId 控件ID
|
|
669
|
-
* @param domJson 容器
|
|
670
|
-
*/
|
|
671
|
-
getControlParentContainer(e, t) {
|
|
672
|
-
let o;
|
|
673
|
-
if (!t || !t.contents || t.contents.length === 0)
|
|
674
|
-
return null;
|
|
675
|
-
for (const i of t.contents) {
|
|
676
|
-
if (i.id === e)
|
|
677
|
-
return o = t, t;
|
|
678
|
-
if (o = this.getControlParentContainer(e, i), o)
|
|
679
|
-
return o;
|
|
680
|
-
}
|
|
681
|
-
}
|
|
682
|
-
}
|
|
683
|
-
class ye extends me {
|
|
684
|
-
constructor(e, t) {
|
|
685
|
-
super(e, t);
|
|
686
|
-
}
|
|
687
|
-
getBasicProperties(e) {
|
|
688
|
-
let t = this.getBasicPropConfig(e);
|
|
689
|
-
return t.properties.binding = this.getFieldSelectorOptions(e), t;
|
|
690
|
-
}
|
|
691
|
-
getAppearanceProperties(e) {
|
|
692
|
-
return this.getAppearanceConfig(e);
|
|
693
|
-
}
|
|
694
657
|
getEditorProperties(e) {
|
|
695
658
|
return this.getComponentConfig(e);
|
|
696
659
|
}
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
660
|
+
/**
|
|
661
|
+
* 卡片控件:切换控件类型后事件
|
|
662
|
+
* @param propertyData 控件DOM属性
|
|
663
|
+
* @param newControlType 新控件类型
|
|
664
|
+
*/
|
|
665
|
+
changeControlType(e, t, o) {
|
|
666
|
+
var a, l, c, u;
|
|
667
|
+
const r = t.propertyValue, s = o && o.parent && o.parent.schema;
|
|
668
|
+
if (!s)
|
|
669
|
+
return;
|
|
670
|
+
const d = s.contents.findIndex((f) => f.id === e.id), p = s.contents[d];
|
|
671
|
+
let m;
|
|
672
|
+
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
706
673
|
editor: {
|
|
707
|
-
type:
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
674
|
+
$type: r
|
|
675
|
+
},
|
|
676
|
+
name: this.designViewModelField.name,
|
|
677
|
+
require: this.designViewModelField.require,
|
|
678
|
+
readonly: this.designViewModelField.readonly
|
|
679
|
+
}, !1), m = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, r)), m || (m = q("form-group") || {}, m.editor = q(r) || {}, delete m.editor.id, delete m.editor.binding, delete m.editor.appearance), Object.assign(m, {
|
|
680
|
+
id: p.id,
|
|
681
|
+
appearance: p.appearance,
|
|
682
|
+
size: p.size,
|
|
683
|
+
label: p.label,
|
|
684
|
+
binding: p.binding,
|
|
685
|
+
visible: p.visible
|
|
686
|
+
}), Object.assign(m.editor, {
|
|
687
|
+
isTextArea: m.isTextArea && p.isTextArea,
|
|
688
|
+
placeholder: (a = p.editor) == null ? void 0 : a.placeholder,
|
|
689
|
+
holdPlace: (l = p.editor) == null ? void 0 : l.holdPlace,
|
|
690
|
+
readonly: (c = p.editor) == null ? void 0 : c.readonly,
|
|
691
|
+
require: (u = p.editor) == null ? void 0 : u.require
|
|
692
|
+
}), s.contents.splice(d, 1), s.contents.splice(d, 0, m), o.schema = Object.assign(p, m), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
693
|
+
(f) => f.classList.remove("dgComponentSelected")
|
|
694
|
+
), Ce.value++;
|
|
725
695
|
}
|
|
726
696
|
getComponentConfig(e, t = {}, o = {}) {
|
|
727
|
-
const
|
|
697
|
+
const r = Object.assign({
|
|
728
698
|
description: "组件信息",
|
|
729
699
|
title: "组件信息",
|
|
730
700
|
type: "input-group",
|
|
731
701
|
$converter: "/converter/property-editor.converter"
|
|
732
|
-
}, t),
|
|
702
|
+
}, t), s = Object.assign({
|
|
733
703
|
readonly: {
|
|
734
704
|
description: "",
|
|
735
705
|
title: "只读",
|
|
@@ -751,82 +721,82 @@ class ye extends me {
|
|
|
751
721
|
type: "string"
|
|
752
722
|
}
|
|
753
723
|
}, o);
|
|
754
|
-
return { ...
|
|
724
|
+
return { ...r, properties: { ...s } };
|
|
755
725
|
}
|
|
756
726
|
}
|
|
757
|
-
class
|
|
727
|
+
class we extends Me {
|
|
758
728
|
constructor(e, t) {
|
|
759
729
|
super(e, t);
|
|
760
730
|
}
|
|
761
731
|
}
|
|
762
|
-
function
|
|
732
|
+
function ke(n, e) {
|
|
763
733
|
n.schema;
|
|
764
|
-
const t =
|
|
765
|
-
function
|
|
734
|
+
const t = M(!0), o = M(!0);
|
|
735
|
+
function r(c) {
|
|
766
736
|
return !1;
|
|
767
737
|
}
|
|
768
|
-
function
|
|
738
|
+
function s() {
|
|
769
739
|
return !1;
|
|
770
740
|
}
|
|
771
|
-
function
|
|
741
|
+
function d() {
|
|
772
742
|
return !1;
|
|
773
743
|
}
|
|
774
|
-
function
|
|
744
|
+
function p() {
|
|
775
745
|
return !0;
|
|
776
746
|
}
|
|
777
|
-
function
|
|
747
|
+
function m(c) {
|
|
778
748
|
}
|
|
779
|
-
function
|
|
749
|
+
function a() {
|
|
780
750
|
}
|
|
781
|
-
function c
|
|
751
|
+
function l(c) {
|
|
782
752
|
return null;
|
|
783
753
|
}
|
|
784
754
|
return {
|
|
785
|
-
canAccepts:
|
|
786
|
-
checkCanDeleteComponent:
|
|
787
|
-
checkCanMoveComponent:
|
|
788
|
-
hideNestedPaddingInDesginerView:
|
|
789
|
-
onAcceptMovedChildElement:
|
|
790
|
-
resolveComponentContext:
|
|
755
|
+
canAccepts: r,
|
|
756
|
+
checkCanDeleteComponent: s,
|
|
757
|
+
checkCanMoveComponent: d,
|
|
758
|
+
hideNestedPaddingInDesginerView: p,
|
|
759
|
+
onAcceptMovedChildElement: m,
|
|
760
|
+
resolveComponentContext: a,
|
|
791
761
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
792
762
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
793
|
-
getPropsConfig:
|
|
763
|
+
getPropsConfig: l
|
|
794
764
|
};
|
|
795
765
|
}
|
|
796
|
-
function
|
|
766
|
+
function Te(n, e) {
|
|
797
767
|
const {
|
|
798
768
|
canAccepts: t,
|
|
799
769
|
checkCanDeleteComponent: o,
|
|
800
|
-
checkCanMoveComponent:
|
|
801
|
-
hideNestedPaddingInDesginerView:
|
|
802
|
-
onAcceptMovedChildElement:
|
|
803
|
-
resolveComponentContext:
|
|
804
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
805
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
806
|
-
} =
|
|
807
|
-
function
|
|
808
|
-
return new
|
|
770
|
+
checkCanMoveComponent: r,
|
|
771
|
+
hideNestedPaddingInDesginerView: s,
|
|
772
|
+
onAcceptMovedChildElement: d,
|
|
773
|
+
resolveComponentContext: p,
|
|
774
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
775
|
+
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
776
|
+
} = ke(n), l = n.schema;
|
|
777
|
+
function c(u, f) {
|
|
778
|
+
return new we(u, e).getPropertyConfig(l, f);
|
|
809
779
|
}
|
|
810
780
|
return {
|
|
811
781
|
canAccepts: t,
|
|
812
782
|
checkCanDeleteComponent: o,
|
|
813
|
-
checkCanMoveComponent:
|
|
814
|
-
hideNestedPaddingInDesginerView:
|
|
815
|
-
onAcceptMovedChildElement:
|
|
816
|
-
resolveComponentContext:
|
|
817
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
818
|
-
triggerBelongedComponentToDeleteWhenDeleted:
|
|
819
|
-
getPropsConfig:
|
|
783
|
+
checkCanMoveComponent: r,
|
|
784
|
+
hideNestedPaddingInDesginerView: s,
|
|
785
|
+
onAcceptMovedChildElement: d,
|
|
786
|
+
resolveComponentContext: p,
|
|
787
|
+
triggerBelongedComponentToMoveWhenMoved: m,
|
|
788
|
+
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
789
|
+
getPropsConfig: c
|
|
820
790
|
};
|
|
821
791
|
}
|
|
822
|
-
const
|
|
792
|
+
const Be = /* @__PURE__ */ G({
|
|
823
793
|
name: "FTextareaDesign",
|
|
824
|
-
props:
|
|
794
|
+
props: L,
|
|
825
795
|
emits: [""],
|
|
826
796
|
setup(n, e) {
|
|
827
|
-
const t =
|
|
797
|
+
const t = M(), o = O("designer-host-service"), r = O("design-item-context"), s = Te(r, o), d = be(t, r, s), p = P(() => n.maxLength ? n.maxLength : n.modelValue.length), m = P(() => ({
|
|
828
798
|
position: "relative"
|
|
829
|
-
})),
|
|
799
|
+
})), a = P(() => ({
|
|
830
800
|
"box-shadow": "0 0 0 1px #dcdfe6 inset",
|
|
831
801
|
border: "none",
|
|
832
802
|
padding: "5px 10px",
|
|
@@ -836,44 +806,43 @@ const be = /* @__PURE__ */ U({
|
|
|
836
806
|
bottom: "5px",
|
|
837
807
|
right: "10px"
|
|
838
808
|
};
|
|
839
|
-
return
|
|
840
|
-
t.value
|
|
841
|
-
}), e.expose(
|
|
842
|
-
style:
|
|
843
|
-
ref:
|
|
844
|
-
}, [
|
|
809
|
+
return W(() => {
|
|
810
|
+
t.value.componentInstance = d;
|
|
811
|
+
}), e.expose(d.value), () => w("div", {
|
|
812
|
+
style: m.value,
|
|
813
|
+
ref: t
|
|
814
|
+
}, [w("textarea", {
|
|
845
815
|
id: n.id,
|
|
846
|
-
ref: t,
|
|
847
816
|
minlength: n.minLength,
|
|
848
817
|
maxlength: n.maxLength,
|
|
849
818
|
tabindex: n.tabIndex,
|
|
850
819
|
disabled: n.disabled,
|
|
851
820
|
readonly: n.readonly,
|
|
852
821
|
autocomplete: n.autocomplete,
|
|
853
|
-
style:
|
|
822
|
+
style: a.value,
|
|
854
823
|
placeholder: n.placeholder,
|
|
855
824
|
autofocus: n.autofocus,
|
|
856
825
|
rows: n.rows
|
|
857
|
-
}, null), n.showCount &&
|
|
826
|
+
}, null), n.showCount && w("span", {
|
|
858
827
|
style: l
|
|
859
|
-
}, [`${n.modelValue.length}/${
|
|
828
|
+
}, [`${n.modelValue.length}/${p.value}`])]);
|
|
860
829
|
}
|
|
861
|
-
}),
|
|
830
|
+
}), Ve = (n) => {
|
|
862
831
|
const e = n;
|
|
863
832
|
return e.install = function(t) {
|
|
864
833
|
t.component(e.name, n);
|
|
865
834
|
}, n;
|
|
866
835
|
};
|
|
867
|
-
|
|
868
|
-
n.textarea =
|
|
836
|
+
E.register = (n, e, t, o) => {
|
|
837
|
+
n.textarea = E, e.textarea = _;
|
|
869
838
|
};
|
|
870
|
-
|
|
871
|
-
n.textarea =
|
|
839
|
+
E.registerDesigner = (n, e, t) => {
|
|
840
|
+
n.textarea = Be, e.textarea = _;
|
|
872
841
|
};
|
|
873
|
-
const
|
|
842
|
+
const Ee = Ve(E);
|
|
874
843
|
export {
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
844
|
+
E as FTextarea,
|
|
845
|
+
Ee as default,
|
|
846
|
+
_ as propsResolver,
|
|
847
|
+
L as textAreaProps
|
|
879
848
|
};
|