@farris/ui-vue 1.2.8 → 1.2.9
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 +129 -129
- package/components/accordion/index.umd.cjs +1 -0
- package/components/avatar/index.esm.js +166 -157
- package/components/avatar/index.umd.cjs +1 -0
- package/components/border-editor/index.umd.cjs +1 -0
- package/components/button/index.umd.cjs +1 -0
- package/components/button-edit/index.esm.js +343 -325
- package/components/button-edit/index.umd.cjs +1 -0
- package/components/button-group/index.umd.cjs +1 -0
- package/components/calculator/index.umd.cjs +1 -0
- package/components/calendar/index.esm.js +338 -338
- package/components/calendar/index.umd.cjs +1 -0
- package/components/capsule/index.esm.js +182 -182
- package/components/capsule/index.umd.cjs +1 -0
- package/components/checkbox/index.esm.js +326 -317
- package/components/checkbox/index.umd.cjs +1 -0
- package/components/color-picker/index.esm.js +118 -118
- package/components/color-picker/index.umd.cjs +3 -0
- package/components/combo-list/index.esm.js +338 -325
- package/components/combo-list/index.umd.cjs +1 -0
- package/components/combo-tree/index.esm.js +62 -62
- package/components/combo-tree/index.umd.cjs +1 -0
- package/components/common/index.umd.cjs +1 -0
- package/components/component/index.esm.js +382 -270
- package/components/component/index.umd.cjs +1 -0
- package/components/condition/index.esm.js +1018 -895
- package/components/condition/index.umd.cjs +1 -0
- package/components/content-container/index.esm.js +285 -212
- package/components/content-container/index.umd.cjs +1 -0
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +4761 -4319
- package/components/data-grid/index.umd.cjs +1 -0
- package/components/data-view/index.esm.js +2901 -2664
- package/components/data-view/index.umd.cjs +1 -0
- package/components/date-picker/index.esm.js +1502 -1488
- package/components/date-picker/index.umd.cjs +1 -0
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +938 -928
- package/components/designer-canvas/index.umd.cjs +1 -0
- package/components/designer-outline/index.css +1 -1
- package/components/designer-outline/index.esm.js +27 -27
- package/components/designer-outline/index.umd.cjs +1 -0
- package/components/designer-toolbox/index.esm.js +36 -12
- package/components/designer-toolbox/index.umd.cjs +1 -0
- package/components/discussion-editor/index.umd.cjs +3 -0
- package/components/discussion-list/index.umd.cjs +1 -0
- package/components/drawer/index.umd.cjs +1 -0
- package/components/dropdown/index.esm.js +241 -241
- package/components/dropdown/index.umd.cjs +2 -0
- package/components/dynamic-form/index.esm.js +1074 -885
- package/components/dynamic-form/index.umd.cjs +1 -0
- package/components/dynamic-resolver/index.esm.js +99 -94
- package/components/dynamic-resolver/index.umd.cjs +1 -0
- package/components/dynamic-view/index.umd.cjs +1 -0
- package/components/enum-editor/index.umd.cjs +1 -0
- package/components/events-editor/index.esm.js +577 -522
- package/components/events-editor/index.umd.cjs +1 -0
- package/components/expression-editor/index.esm.js +70 -70
- package/components/expression-editor/index.umd.cjs +1 -0
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +2938 -2619
- package/components/external-container/index.umd.cjs +1 -0
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +4766 -4325
- package/components/field-selector/index.umd.cjs +1 -0
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1231 -1215
- package/components/filter-bar/index.umd.cjs +1 -0
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +1062 -1052
- package/components/flow-canvas/index.umd.cjs +1 -0
- package/components/image-cropper/index.esm.js +373 -373
- package/components/image-cropper/index.umd.cjs +1 -0
- package/components/input-group/index.esm.js +398 -394
- package/components/input-group/index.umd.cjs +1 -0
- package/components/layout/index.esm.js +268 -268
- package/components/layout/index.umd.cjs +1 -0
- package/components/list-nav/index.esm.js +234 -161
- package/components/list-nav/index.umd.cjs +1 -0
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +2288 -2048
- package/components/list-view/index.umd.cjs +1 -0
- package/components/loading/index.umd.cjs +8 -0
- package/components/locale/index.umd.cjs +1 -0
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +5776 -5305
- package/components/lookup/index.umd.cjs +1 -0
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5496 -5036
- package/components/mapping-editor/index.umd.cjs +1 -0
- package/components/message-box/index.umd.cjs +1 -0
- package/components/modal/index.umd.cjs +1 -0
- package/components/nav/index.esm.js +383 -322
- package/components/nav/index.umd.cjs +3 -0
- package/components/notify/index.umd.cjs +1 -0
- package/components/number-range/index.esm.js +273 -269
- package/components/number-range/index.umd.cjs +1 -0
- package/components/number-spinner/index.esm.js +292 -283
- package/components/number-spinner/index.umd.cjs +1 -0
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1008 -925
- package/components/order/index.umd.cjs +1 -0
- package/components/page-footer/index.esm.js +98 -98
- package/components/page-footer/index.umd.cjs +1 -0
- package/components/page-header/index.esm.js +949 -847
- package/components/page-header/index.umd.cjs +1 -0
- package/components/pagination/index.esm.js +464 -403
- package/components/pagination/index.umd.cjs +1 -0
- package/components/popover/index.umd.cjs +1 -0
- package/components/progress/index.esm.js +226 -226
- package/components/progress/index.umd.cjs +3 -0
- package/components/property-editor/index.esm.js +1110 -1092
- package/components/property-editor/index.umd.cjs +3 -0
- package/components/property-panel/index.esm.js +520 -513
- package/components/property-panel/index.umd.cjs +1 -0
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +1714 -1575
- package/components/query-solution/index.umd.cjs +1 -0
- package/components/radio-button/index.esm.js +67 -67
- package/components/radio-button/index.umd.cjs +1 -0
- package/components/radio-group/index.esm.js +298 -289
- package/components/radio-group/index.umd.cjs +1 -0
- package/components/rate/index.esm.js +195 -190
- package/components/rate/index.umd.cjs +1 -0
- package/components/response-layout/index.esm.js +112 -112
- package/components/response-layout/index.umd.cjs +1 -0
- package/components/response-layout-editor/index.esm.js +902 -877
- package/components/response-layout-editor/index.umd.cjs +1 -0
- package/components/response-toolbar/index.esm.js +874 -778
- package/components/response-toolbar/index.umd.cjs +1 -0
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4594 -4289
- package/components/schema-selector/index.umd.cjs +8 -0
- package/components/search-box/index.esm.js +126 -126
- package/components/search-box/index.umd.cjs +1 -0
- package/components/section/index.esm.js +645 -503
- package/components/section/index.umd.cjs +1 -0
- package/components/smoke-detector/index.esm.js +120 -120
- package/components/smoke-detector/index.umd.cjs +1 -0
- package/components/spacing-editor/index.umd.cjs +1 -0
- package/components/splitter/index.esm.js +421 -348
- package/components/splitter/index.umd.cjs +1 -0
- package/components/step/index.esm.js +219 -219
- package/components/step/index.umd.cjs +1 -0
- package/components/switch/index.esm.js +232 -222
- package/components/switch/index.umd.cjs +1 -0
- package/components/tabs/index.esm.js +1823 -1744
- package/components/tabs/index.umd.cjs +1 -0
- package/components/tags/index.esm.js +399 -401
- package/components/tags/index.umd.cjs +1 -0
- package/components/text/index.esm.js +164 -164
- package/components/text/index.umd.cjs +1 -0
- package/components/textarea/index.esm.js +220 -215
- package/components/textarea/index.umd.cjs +1 -0
- package/components/time-picker/index.esm.js +693 -666
- package/components/time-picker/index.umd.cjs +1 -0
- package/components/tooltip/index.umd.cjs +1 -0
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +422 -413
- package/components/transfer/index.umd.cjs +1 -0
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +4799 -4358
- package/components/tree-grid/index.umd.cjs +1 -0
- package/components/tree-view/index.esm.js +2448 -2215
- package/components/tree-view/index.umd.cjs +1 -0
- package/components/uploader/index.esm.js +164 -164
- package/components/uploader/index.umd.cjs +2 -0
- package/components/verify-detail/index.esm.js +143 -143
- package/components/verify-detail/index.umd.cjs +1 -0
- package/components/video/index.esm.js +410 -331
- package/components/video/index.umd.cjs +1 -0
- package/components/weather/index.esm.js +901 -901
- package/components/weather/index.umd.cjs +16 -0
- package/farris.all.esm.js +12305 -11403
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/button-edit/src/designer/button-group.design.component.d.ts +7 -0
- package/types/combo-list/src/components/list-container.component.d.ts +3 -0
- package/types/combo-list/src/components/list-container.props.d.ts +5 -1
- package/types/common/entity/entity-schema.d.ts +258 -0
- package/types/component/src/component-ref.props.d.ts +4 -0
- package/types/component/src/composition/inner-component-build-info.d.ts +27 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/composition/data-grid-component-creator.service.d.ts +33 -0
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +2 -2
- package/types/data-grid/src/designer/use-group-column.d.ts +20 -0
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +4 -0
- package/types/data-grid/src/schema/schema-resolver.d.ts +2 -1
- package/types/data-view/components/column-format/boolean.component.d.ts +4 -0
- package/types/data-view/components/column-format/column-format.component.d.ts +4 -0
- package/types/data-view/components/column-format/date.component.d.ts +4 -0
- package/types/data-view/components/column-format/enum.component.d.ts +4 -0
- package/types/data-view/components/column-format/number.component.d.ts +4 -0
- package/types/data-view/composition/pagination/use-pagination.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -6
- package/types/data-view/composition/use-edit.d.ts +2 -1
- package/types/designer-canvas/src/composition/function/use-dragula.d.ts +2 -2
- package/types/designer-canvas/src/types.d.ts +2 -2
- package/types/dynamic-form/index.d.ts +2 -1
- package/types/dynamic-form/src/composition/response-form-component-creator.service.d.ts +31 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/schema-resolver.d.ts +2 -1
- package/types/dynamic-resolver/src/types.d.ts +3 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +2 -2
- package/types/response-toolbar/src/schema/schema-mapper.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +93 -0
- package/types/section/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +2 -2
- package/types/tabs/src/designer/tab-header-item.design.component.d.ts +3 -1
- package/types/tabs/src/property-config/tab-page.property-config.d.ts +60 -0
- package/types/tabs/src/schema/schema-resolver.d.ts +2 -1
- package/types/tags/index.d.ts +36 -5
|
@@ -1,37 +1,37 @@
|
|
|
1
1
|
var X = Object.defineProperty;
|
|
2
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
|
|
4
|
-
import { defineComponent as G, ref as
|
|
3
|
+
var h = (n, e, t) => Y(n, typeof e != "symbol" ? e + "" : e, t);
|
|
4
|
+
import { defineComponent as G, ref as k, computed as x, onMounted as W, createVNode as w, withDirectives as Z, vModelText as H, inject as O } from "vue";
|
|
5
5
|
import { cloneDeep as I } from "lodash-es";
|
|
6
6
|
import { useTextBox as K, useClear as R } from "../common/index.esm.js";
|
|
7
7
|
import { getSchemaByType as q } from "../dynamic-resolver/index.esm.js";
|
|
8
8
|
const z = {}, J = {};
|
|
9
|
-
function
|
|
10
|
-
const { properties: e, title: t } = n, o = Object.keys(e).reduce((
|
|
11
|
-
return o.id = `${t}-${Date.now()}
|
|
9
|
+
function U(n) {
|
|
10
|
+
const { properties: e, title: t, ignore: o } = n, r = o && Array.isArray(o), p = Object.keys(e).reduce((u, l) => ((!r || !o.find((m) => m == l)) && (u[l] = e[l].type === "object" && e[l].properties ? U(e[l]) : I(e[l].default)), u), {});
|
|
11
|
+
return (!r || !o.find((u) => u == "id")) && (p.id = `${t}-${Date.now()}`), p;
|
|
12
12
|
}
|
|
13
|
-
function
|
|
14
|
-
const
|
|
15
|
-
if (
|
|
16
|
-
let
|
|
17
|
-
const
|
|
18
|
-
return
|
|
13
|
+
function $(n, e = {}, t) {
|
|
14
|
+
const o = z[n];
|
|
15
|
+
if (o) {
|
|
16
|
+
let r = U(o);
|
|
17
|
+
const p = J[n];
|
|
18
|
+
return r = p ? p({ getSchemaByType: $ }, r, e, t) : r, r;
|
|
19
19
|
}
|
|
20
20
|
return null;
|
|
21
21
|
}
|
|
22
22
|
function ee(n, e) {
|
|
23
|
-
const t =
|
|
23
|
+
const t = U(e);
|
|
24
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;
|
|
25
25
|
}
|
|
26
26
|
function te(n, e) {
|
|
27
27
|
return Object.keys(n).filter((o) => n[o] != null).reduce((o, r) => {
|
|
28
28
|
if (e.has(r)) {
|
|
29
|
-
const
|
|
30
|
-
if (typeof
|
|
31
|
-
o[
|
|
29
|
+
const p = e.get(r);
|
|
30
|
+
if (typeof p == "string")
|
|
31
|
+
o[p] = n[r];
|
|
32
32
|
else {
|
|
33
|
-
const
|
|
34
|
-
Object.assign(o,
|
|
33
|
+
const u = p(r, n[r], n);
|
|
34
|
+
Object.assign(o, u);
|
|
35
35
|
}
|
|
36
36
|
} else
|
|
37
37
|
o[r] = n[r];
|
|
@@ -43,56 +43,56 @@ function ne(n, e, t = /* @__PURE__ */ new Map()) {
|
|
|
43
43
|
return te(o, t);
|
|
44
44
|
}
|
|
45
45
|
function oe(n = {}) {
|
|
46
|
-
function e(a,
|
|
47
|
-
if (typeof
|
|
48
|
-
return
|
|
49
|
-
if (typeof
|
|
50
|
-
const f = Object.keys(
|
|
46
|
+
function e(a, c, s, d) {
|
|
47
|
+
if (typeof s == "number")
|
|
48
|
+
return d[a].length === s;
|
|
49
|
+
if (typeof s == "object") {
|
|
50
|
+
const f = Object.keys(s)[0], g = s[f];
|
|
51
51
|
if (f === "not")
|
|
52
|
-
return Number(
|
|
52
|
+
return Number(d[a].length) !== Number(g);
|
|
53
53
|
if (f === "moreThan")
|
|
54
|
-
return Number(
|
|
54
|
+
return Number(d[a].length) >= Number(g);
|
|
55
55
|
if (f === "lessThan")
|
|
56
|
-
return Number(
|
|
56
|
+
return Number(d[a].length) <= Number(g);
|
|
57
57
|
}
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
|
-
function t(a,
|
|
61
|
-
return
|
|
60
|
+
function t(a, c, s, d) {
|
|
61
|
+
return d[a] && d[a].propertyValue && String(d[a].propertyValue.value) === String(s);
|
|
62
62
|
}
|
|
63
63
|
const o = /* @__PURE__ */ new Map([
|
|
64
64
|
["length", e],
|
|
65
65
|
["getProperty", t]
|
|
66
66
|
]);
|
|
67
|
-
Object.keys(n).reduce((a,
|
|
68
|
-
function r(a,
|
|
69
|
-
const
|
|
70
|
-
return typeof
|
|
71
|
-
if (
|
|
72
|
-
return { target:
|
|
73
|
-
const f =
|
|
74
|
-
return { target:
|
|
67
|
+
Object.keys(n).reduce((a, c) => (a.set(c, n[c]), a), o);
|
|
68
|
+
function r(a, c) {
|
|
69
|
+
const s = a;
|
|
70
|
+
return typeof c == "number" ? [{ target: s, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: s, operator: "getProperty", param: a, value: !!c }] : typeof c == "object" ? Object.keys(c).map((d) => {
|
|
71
|
+
if (d === "length")
|
|
72
|
+
return { target: s, operator: "length", param: null, value: c[d] };
|
|
73
|
+
const f = d, g = c[d];
|
|
74
|
+
return { target: s, operator: "getProperty", param: f, value: g };
|
|
75
75
|
}) : [];
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return Object.keys(a).reduce((
|
|
79
|
-
const f = r(
|
|
80
|
-
return
|
|
77
|
+
function p(a) {
|
|
78
|
+
return Object.keys(a).reduce((s, d) => {
|
|
79
|
+
const f = r(d, a[d]);
|
|
80
|
+
return s.push(...f), s;
|
|
81
81
|
}, []);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function u(a, c) {
|
|
84
84
|
if (o.has(a.operator)) {
|
|
85
|
-
const
|
|
86
|
-
return
|
|
85
|
+
const s = o.get(a.operator);
|
|
86
|
+
return s && s(a.target, a.param, a.value, c) || !1;
|
|
87
87
|
}
|
|
88
88
|
return !1;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function l(a, c) {
|
|
91
|
+
return p(a).reduce((f, g) => f && u(g, c), !0);
|
|
92
92
|
}
|
|
93
|
-
function m(a,
|
|
94
|
-
const
|
|
95
|
-
return
|
|
93
|
+
function m(a, c) {
|
|
94
|
+
const s = Object.keys(a), d = s.includes("allOf"), f = s.includes("anyOf"), g = d || f, B = (g ? a[g ? d ? "allOf" : "anyOf" : "allOf"] : [a]).map((V) => l(V, c));
|
|
95
|
+
return d ? !B.includes(!1) : B.includes(!0);
|
|
96
96
|
}
|
|
97
97
|
return { parseValueSchema: m };
|
|
98
98
|
}
|
|
@@ -136,10 +136,10 @@ const i = {
|
|
|
136
136
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
137
137
|
}, re = {}, ae = {};
|
|
138
138
|
oe();
|
|
139
|
-
function ie(n, e, t = /* @__PURE__ */ new Map(), o = (
|
|
140
|
-
return z[e.title] = e, J[e.title] = o, re[e.title] = r, ae[e.title] =
|
|
141
|
-
const
|
|
142
|
-
return Object.assign(m,
|
|
139
|
+
function ie(n, e, t = /* @__PURE__ */ new Map(), o = (u, l, m) => l, r = {}, p = (u) => u) {
|
|
140
|
+
return z[e.title] = e, J[e.title] = o, re[e.title] = r, ae[e.title] = p, (u = {}) => {
|
|
141
|
+
const l = ne(u, e, t), m = Object.keys(n).reduce((a, c) => (a[c] = n[c].default, a), {});
|
|
142
|
+
return Object.assign(m, l);
|
|
143
143
|
};
|
|
144
144
|
}
|
|
145
145
|
function le(n, e) {
|
|
@@ -208,7 +208,12 @@ const ce = /* @__PURE__ */ new Map([
|
|
|
208
208
|
description: "",
|
|
209
209
|
type: "boolean",
|
|
210
210
|
default: !0
|
|
211
|
-
}
|
|
211
|
+
},
|
|
212
|
+
ignore: [
|
|
213
|
+
"id",
|
|
214
|
+
"appearance",
|
|
215
|
+
"binding"
|
|
216
|
+
]
|
|
212
217
|
}, fe = [
|
|
213
218
|
"id",
|
|
214
219
|
"type"
|
|
@@ -253,36 +258,36 @@ const L = {
|
|
|
253
258
|
showBorder: { Type: Boolean, default: !0 },
|
|
254
259
|
/** 键盘按键索引 */
|
|
255
260
|
tabIndex: { type: Number, default: -1 }
|
|
256
|
-
}, _ = ie(L, ge, ce, he),
|
|
261
|
+
}, _ = ie(L, ge, ce, he), A = /* @__PURE__ */ G({
|
|
257
262
|
name: "FTextarea",
|
|
258
263
|
props: L,
|
|
259
264
|
emits: ["update:modelValue", "valueChange"],
|
|
260
265
|
setup(n, e) {
|
|
261
|
-
const t =
|
|
262
|
-
inputGroupClass:
|
|
263
|
-
onBlur:
|
|
266
|
+
const t = k(), o = k(n.modelValue), r = x(() => n.modelValue), p = K(n, e, o, r), {
|
|
267
|
+
inputGroupClass: u,
|
|
268
|
+
onBlur: l,
|
|
264
269
|
onFocus: m
|
|
265
|
-
} =
|
|
266
|
-
onMouseEnter:
|
|
267
|
-
onMouseLeave:
|
|
268
|
-
clearButtonClass:
|
|
270
|
+
} = p, a = R(n, e, p), {
|
|
271
|
+
onMouseEnter: c,
|
|
272
|
+
onMouseLeave: s,
|
|
273
|
+
clearButtonClass: d,
|
|
269
274
|
shouldShowClearButton: f,
|
|
270
|
-
clearButtonStyle:
|
|
271
|
-
} = a,
|
|
272
|
-
var
|
|
273
|
-
|
|
274
|
-
},
|
|
275
|
-
|
|
275
|
+
clearButtonStyle: g
|
|
276
|
+
} = a, D = x(() => n.maxLength ? n.maxLength : n.modelValue.length), S = (v) => {
|
|
277
|
+
var V, F;
|
|
278
|
+
v.stopPropagation(), e.emit("update:modelValue", (V = v.target) == null ? void 0 : V.value), e.emit("valueChange", (F = v.target) == null ? void 0 : F.value);
|
|
279
|
+
}, B = (v) => {
|
|
280
|
+
v.stopPropagation(), t.value.value = "", e.emit("update:modelValue", ""), e.emit("valueChange", "");
|
|
276
281
|
};
|
|
277
282
|
return W(() => {
|
|
278
283
|
}), () => w("div", {
|
|
279
|
-
class:
|
|
280
|
-
onMouseenter:
|
|
281
|
-
onMouseleave:
|
|
284
|
+
class: u.value,
|
|
285
|
+
onMouseenter: c,
|
|
286
|
+
onMouseleave: s,
|
|
282
287
|
style: "position:relative"
|
|
283
288
|
}, [Z(w("textarea", {
|
|
284
289
|
id: n.id,
|
|
285
|
-
"onUpdate:modelValue": (
|
|
290
|
+
"onUpdate:modelValue": (v) => n.modelValue = v,
|
|
286
291
|
ref: t,
|
|
287
292
|
minlength: n.minLength,
|
|
288
293
|
maxlength: n.maxLength ? n.maxLength : null,
|
|
@@ -293,30 +298,30 @@ const L = {
|
|
|
293
298
|
placeholder: n.placeholder,
|
|
294
299
|
autofocus: n.autofocus,
|
|
295
300
|
rows: n.rows,
|
|
296
|
-
onInput:
|
|
301
|
+
onInput: S,
|
|
297
302
|
onFocus: m,
|
|
298
|
-
onBlur:
|
|
299
|
-
style: "
|
|
303
|
+
onBlur: l,
|
|
304
|
+
style: "border-radius:6px; padding:5px 10px; width:100%"
|
|
300
305
|
}, null), [[H, n.modelValue]]), f.value && w("span", {
|
|
301
306
|
id: "clearIcon",
|
|
302
|
-
class:
|
|
303
|
-
style:
|
|
304
|
-
onClick: (
|
|
307
|
+
class: d.value,
|
|
308
|
+
style: g.value,
|
|
309
|
+
onClick: (v) => B(v)
|
|
305
310
|
}, [w("i", {
|
|
306
311
|
class: "f-icon modal_close"
|
|
307
312
|
}, null)]), n.showCount && w("span", {
|
|
308
313
|
style: "position: absolute;bottom: 5px;right: 10px"
|
|
309
|
-
}, [`${n.modelValue.length}/${
|
|
314
|
+
}, [`${n.modelValue.length}/${D.value}`])]);
|
|
310
315
|
}
|
|
311
316
|
});
|
|
312
|
-
function
|
|
313
|
-
var
|
|
317
|
+
function ve(n, e, t) {
|
|
318
|
+
var j;
|
|
314
319
|
function o() {
|
|
315
320
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
316
321
|
}
|
|
317
322
|
o();
|
|
318
|
-
const r = t && t.getStyles && t.getStyles() || "",
|
|
319
|
-
function
|
|
323
|
+
const r = t && t.getStyles && t.getStyles() || "", p = t && t.getDesignerClass && t.getDesignerClass() || "", u = k();
|
|
324
|
+
function l() {
|
|
320
325
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
321
326
|
}
|
|
322
327
|
function m() {
|
|
@@ -325,93 +330,93 @@ function be(n, e, t) {
|
|
|
325
330
|
function a() {
|
|
326
331
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
327
332
|
}
|
|
328
|
-
function
|
|
333
|
+
function c() {
|
|
329
334
|
return (e == null ? void 0 : e.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
330
335
|
}
|
|
331
|
-
function
|
|
336
|
+
function s(y) {
|
|
332
337
|
if (!y || !y.value)
|
|
333
338
|
return null;
|
|
334
339
|
if (y.value.schema && y.value.schema.type === "component")
|
|
335
340
|
return y.value;
|
|
336
|
-
const b =
|
|
337
|
-
return
|
|
341
|
+
const b = k(y == null ? void 0 : y.value.parent), C = s(b);
|
|
342
|
+
return C || null;
|
|
338
343
|
}
|
|
339
|
-
function
|
|
340
|
-
const { componentInstance: b, designerItemElementRef:
|
|
341
|
-
return !b || !b.value ? null : b.value.canMove ?
|
|
344
|
+
function d(y = e) {
|
|
345
|
+
const { componentInstance: b, designerItemElementRef: C } = y;
|
|
346
|
+
return !b || !b.value ? null : b.value.canMove ? C : d(y.parent);
|
|
342
347
|
}
|
|
343
348
|
function f(y) {
|
|
344
349
|
return !!t && t.canAccepts(y);
|
|
345
350
|
}
|
|
346
|
-
function
|
|
351
|
+
function g() {
|
|
347
352
|
return (e == null ? void 0 : e.schema.label) || (e == null ? void 0 : e.schema.title) || (e == null ? void 0 : e.schema.name);
|
|
348
353
|
}
|
|
349
|
-
function
|
|
354
|
+
function D() {
|
|
350
355
|
}
|
|
351
|
-
function
|
|
356
|
+
function S(y, b) {
|
|
352
357
|
b && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(b);
|
|
353
358
|
}
|
|
354
|
-
function
|
|
355
|
-
const { componentType:
|
|
356
|
-
let
|
|
357
|
-
t && t.onResolveNewComponentSchema && (
|
|
358
|
-
const
|
|
359
|
-
return
|
|
359
|
+
function B(y, b) {
|
|
360
|
+
const { componentType: C } = y;
|
|
361
|
+
let M = $(C, y, b);
|
|
362
|
+
t && t.onResolveNewComponentSchema && (M = t.onResolveNewComponentSchema(y, M));
|
|
363
|
+
const E = C.toLowerCase().replace("-", "_");
|
|
364
|
+
return M && !M.id && M.type === C && (M.id = `${E}_${Math.random().toString().slice(2, 6)}`), M;
|
|
360
365
|
}
|
|
361
|
-
function
|
|
362
|
-
const
|
|
363
|
-
|
|
364
|
-
let
|
|
365
|
-
t && t.onAcceptNewChildElement && (
|
|
366
|
-
const Q =
|
|
367
|
-
return
|
|
366
|
+
function v(y, b) {
|
|
367
|
+
const C = String(y.getAttribute("data-controltype")), M = y.getAttribute("data-feature"), E = M ? JSON.parse(M) : {};
|
|
368
|
+
E.parentComponentInstance = u.value;
|
|
369
|
+
let T = $(C, E);
|
|
370
|
+
t && t.onAcceptNewChildElement && (T = t.onAcceptNewChildElement(y, b, T));
|
|
371
|
+
const Q = C.toLowerCase().replace("-", "_");
|
|
372
|
+
return T && !T.id && T.type === C && (T.id = `${Q}_${Math.random().toString().slice(2, 6)}`), T;
|
|
368
373
|
}
|
|
369
|
-
function
|
|
374
|
+
function V(y) {
|
|
370
375
|
}
|
|
371
|
-
function
|
|
376
|
+
function F(...y) {
|
|
372
377
|
if (t && t.getPropsConfig)
|
|
373
378
|
return t.getPropsConfig(...y);
|
|
374
379
|
}
|
|
375
|
-
return
|
|
376
|
-
canMove:
|
|
380
|
+
return u.value = {
|
|
381
|
+
canMove: l(),
|
|
377
382
|
canSelectParent: m(),
|
|
378
383
|
canDelete: a(),
|
|
379
|
-
canNested: !
|
|
384
|
+
canNested: !c(),
|
|
380
385
|
contents: e == null ? void 0 : e.schema.contents,
|
|
381
386
|
elementRef: n,
|
|
382
|
-
parent: (
|
|
387
|
+
parent: (j = e == null ? void 0 : e.parent) == null ? void 0 : j.componentInstance,
|
|
383
388
|
schema: e == null ? void 0 : e.schema,
|
|
384
389
|
styles: r,
|
|
385
|
-
designerClass:
|
|
390
|
+
designerClass: p,
|
|
386
391
|
canAccepts: f,
|
|
387
|
-
getBelongedComponentInstance:
|
|
388
|
-
getDraggableDesignItemElement:
|
|
389
|
-
getDraggingDisplayText:
|
|
390
|
-
getPropConfig:
|
|
391
|
-
getDragScopeElement:
|
|
392
|
-
onAcceptMovedChildElement:
|
|
393
|
-
onAcceptNewChildElement:
|
|
394
|
-
onChildElementMovedOut:
|
|
395
|
-
addNewChildComponentSchema:
|
|
392
|
+
getBelongedComponentInstance: s,
|
|
393
|
+
getDraggableDesignItemElement: d,
|
|
394
|
+
getDraggingDisplayText: g,
|
|
395
|
+
getPropConfig: F,
|
|
396
|
+
getDragScopeElement: D,
|
|
397
|
+
onAcceptMovedChildElement: S,
|
|
398
|
+
onAcceptNewChildElement: v,
|
|
399
|
+
onChildElementMovedOut: V,
|
|
400
|
+
addNewChildComponentSchema: B,
|
|
396
401
|
updateDragAndDropRules: o,
|
|
397
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
398
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
399
|
-
},
|
|
402
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || k(!1),
|
|
403
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || k(!1)
|
|
404
|
+
}, u;
|
|
400
405
|
}
|
|
401
|
-
class
|
|
406
|
+
class be {
|
|
402
407
|
constructor(e, t) {
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
408
|
+
h(this, "componentId");
|
|
409
|
+
h(this, "viewModelId");
|
|
410
|
+
h(this, "eventsEditorUtils");
|
|
411
|
+
h(this, "formSchemaUtils");
|
|
412
|
+
h(this, "formMetadataConverter");
|
|
413
|
+
h(this, "designViewModelUtils");
|
|
414
|
+
h(this, "designViewModelField");
|
|
415
|
+
h(this, "controlCreatorUtils");
|
|
416
|
+
h(this, "designerHostService");
|
|
417
|
+
h(this, "schemaService", null);
|
|
418
|
+
h(this, "metadataService", null);
|
|
419
|
+
h(this, "propertyConfig", {
|
|
415
420
|
type: "object",
|
|
416
421
|
categories: {}
|
|
417
422
|
});
|
|
@@ -480,12 +485,12 @@ class ve {
|
|
|
480
485
|
};
|
|
481
486
|
}
|
|
482
487
|
}
|
|
483
|
-
const
|
|
488
|
+
const P = class P {
|
|
484
489
|
/**
|
|
485
490
|
* 根据绑定字段类型获取可用的输入类控件
|
|
486
491
|
*/
|
|
487
492
|
static getEditorTypesByMDataType(e) {
|
|
488
|
-
const t =
|
|
493
|
+
const t = P.fieldControlTypeMapping[e];
|
|
489
494
|
return t || [{ key: "", value: "" }];
|
|
490
495
|
}
|
|
491
496
|
/**
|
|
@@ -493,8 +498,8 @@ const V = class V {
|
|
|
493
498
|
*/
|
|
494
499
|
static getAllInputTypes() {
|
|
495
500
|
const e = [];
|
|
496
|
-
for (let t in
|
|
497
|
-
|
|
501
|
+
for (let t in P.fieldControlTypeMapping)
|
|
502
|
+
P.fieldControlTypeMapping[t].forEach((o) => {
|
|
498
503
|
e.find((r) => r.key === o.key && r.value === o.value) || e.push({ key: o.key, value: o.value });
|
|
499
504
|
});
|
|
500
505
|
return e;
|
|
@@ -503,7 +508,7 @@ const V = class V {
|
|
|
503
508
|
/**
|
|
504
509
|
* <字段类型,可配置的控件类型列表>的映射
|
|
505
510
|
*/
|
|
506
|
-
|
|
511
|
+
h(P, "fieldControlTypeMapping", {
|
|
507
512
|
String: [
|
|
508
513
|
{ key: i["input-group"].type, value: i["input-group"].name },
|
|
509
514
|
{ key: i.lookup.type, value: i.lookup.name },
|
|
@@ -549,9 +554,9 @@ v(V, "fieldControlTypeMapping", {
|
|
|
549
554
|
{ key: i["radio-group"].type, value: i["radio-group"].name }
|
|
550
555
|
]
|
|
551
556
|
});
|
|
552
|
-
let
|
|
553
|
-
const Ce =
|
|
554
|
-
class Me extends
|
|
557
|
+
let N = P;
|
|
558
|
+
const Ce = k(0);
|
|
559
|
+
class Me extends be {
|
|
555
560
|
constructor(e, t) {
|
|
556
561
|
super(e, t);
|
|
557
562
|
}
|
|
@@ -559,10 +564,10 @@ class Me extends ve {
|
|
|
559
564
|
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
565
|
}
|
|
561
566
|
getBasicProperties(e, t) {
|
|
562
|
-
var
|
|
567
|
+
var u;
|
|
563
568
|
var o = this;
|
|
564
569
|
this.setDesignViewModelField(e);
|
|
565
|
-
const r = this.formSchemaUtils.getFormMetadataBasicInfo(),
|
|
570
|
+
const r = this.formSchemaUtils.getFormMetadataBasicInfo(), p = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
566
571
|
return {
|
|
567
572
|
description: "Basic Information",
|
|
568
573
|
title: "基本信息",
|
|
@@ -574,8 +579,8 @@ class Me extends ve {
|
|
|
574
579
|
readonly: !0
|
|
575
580
|
},
|
|
576
581
|
type: {
|
|
577
|
-
description: "
|
|
578
|
-
title: "
|
|
582
|
+
description: "编辑器类型",
|
|
583
|
+
title: "编辑器类型",
|
|
579
584
|
type: "string",
|
|
580
585
|
refreshPanelAfterChanged: !0,
|
|
581
586
|
$converter: "/converter/change-editor.converter",
|
|
@@ -584,7 +589,7 @@ class Me extends ve {
|
|
|
584
589
|
textField: "value",
|
|
585
590
|
valueField: "key",
|
|
586
591
|
editable: !1,
|
|
587
|
-
data: o.designViewModelField ?
|
|
592
|
+
data: o.designViewModelField ? N.getEditorTypesByMDataType((u = o.designViewModelField.type) == null ? void 0 : u.name) : N.getAllInputTypes()
|
|
588
593
|
}
|
|
589
594
|
},
|
|
590
595
|
label: {
|
|
@@ -609,15 +614,19 @@ class Me extends ve {
|
|
|
609
614
|
{ field: "fieldType", title: "字段类型" }
|
|
610
615
|
],
|
|
611
616
|
textField: "bindingField",
|
|
612
|
-
data:
|
|
617
|
+
data: p
|
|
613
618
|
}
|
|
614
619
|
}
|
|
615
620
|
},
|
|
616
|
-
setPropertyRelates(
|
|
617
|
-
if (
|
|
618
|
-
switch (
|
|
621
|
+
setPropertyRelates(l, m) {
|
|
622
|
+
if (l)
|
|
623
|
+
switch (l && l.propertyID) {
|
|
619
624
|
case "type": {
|
|
620
|
-
o.changeControlType(e,
|
|
625
|
+
o.changeControlType(e, l, t);
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
case "label": {
|
|
629
|
+
l.needRefreshControlTree = !0;
|
|
621
630
|
break;
|
|
622
631
|
}
|
|
623
632
|
}
|
|
@@ -663,11 +672,11 @@ class Me extends ve {
|
|
|
663
672
|
* @param newControlType 新控件类型
|
|
664
673
|
*/
|
|
665
674
|
changeControlType(e, t, o) {
|
|
666
|
-
var a,
|
|
667
|
-
const r = t.propertyValue,
|
|
668
|
-
if (!
|
|
675
|
+
var a, c, s, d;
|
|
676
|
+
const r = t.propertyValue, p = o && o.parent && o.parent.schema;
|
|
677
|
+
if (!p)
|
|
669
678
|
return;
|
|
670
|
-
const
|
|
679
|
+
const u = p.contents.findIndex((f) => f.id === e.id), l = p.contents[u];
|
|
671
680
|
let m;
|
|
672
681
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
673
682
|
editor: {
|
|
@@ -677,29 +686,29 @@ class Me extends ve {
|
|
|
677
686
|
require: this.designViewModelField.require,
|
|
678
687
|
readonly: this.designViewModelField.readonly
|
|
679
688
|
}, !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:
|
|
681
|
-
appearance:
|
|
682
|
-
size:
|
|
683
|
-
label:
|
|
684
|
-
binding:
|
|
685
|
-
visible:
|
|
689
|
+
id: l.id,
|
|
690
|
+
appearance: l.appearance,
|
|
691
|
+
size: l.size,
|
|
692
|
+
label: l.label,
|
|
693
|
+
binding: l.binding,
|
|
694
|
+
visible: l.visible
|
|
686
695
|
}), Object.assign(m.editor, {
|
|
687
|
-
isTextArea: m.isTextArea &&
|
|
688
|
-
placeholder: (a =
|
|
689
|
-
holdPlace: (
|
|
690
|
-
readonly: (
|
|
691
|
-
require: (
|
|
692
|
-
}),
|
|
696
|
+
isTextArea: m.isTextArea && l.isTextArea,
|
|
697
|
+
placeholder: (a = l.editor) == null ? void 0 : a.placeholder,
|
|
698
|
+
holdPlace: (c = l.editor) == null ? void 0 : c.holdPlace,
|
|
699
|
+
readonly: (s = l.editor) == null ? void 0 : s.readonly,
|
|
700
|
+
require: (d = l.editor) == null ? void 0 : d.require
|
|
701
|
+
}), p.contents.splice(u, 1), p.contents.splice(u, 0, m), o.schema = Object.assign(l, m), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
693
702
|
(f) => f.classList.remove("dgComponentSelected")
|
|
694
703
|
), Ce.value++;
|
|
695
704
|
}
|
|
696
705
|
getComponentConfig(e, t = {}, o = {}) {
|
|
697
706
|
const r = Object.assign({
|
|
698
|
-
description: "
|
|
699
|
-
title: "
|
|
707
|
+
description: "编辑器",
|
|
708
|
+
title: "编辑器",
|
|
700
709
|
type: "input-group",
|
|
701
710
|
$converter: "/converter/property-editor.converter"
|
|
702
|
-
}, t),
|
|
711
|
+
}, t), p = Object.assign({
|
|
703
712
|
readonly: {
|
|
704
713
|
description: "",
|
|
705
714
|
title: "只读",
|
|
@@ -721,46 +730,46 @@ class Me extends ve {
|
|
|
721
730
|
type: "string"
|
|
722
731
|
}
|
|
723
732
|
}, o);
|
|
724
|
-
return { ...r, properties: { ...
|
|
733
|
+
return { ...r, properties: { ...p } };
|
|
725
734
|
}
|
|
726
735
|
}
|
|
727
|
-
class
|
|
736
|
+
class ke extends Me {
|
|
728
737
|
constructor(e, t) {
|
|
729
738
|
super(e, t);
|
|
730
739
|
}
|
|
731
740
|
}
|
|
732
|
-
function
|
|
741
|
+
function we(n, e) {
|
|
733
742
|
n.schema;
|
|
734
|
-
const t =
|
|
735
|
-
function r(
|
|
743
|
+
const t = k(!0), o = k(!0);
|
|
744
|
+
function r(s) {
|
|
736
745
|
return !1;
|
|
737
746
|
}
|
|
738
|
-
function
|
|
747
|
+
function p() {
|
|
739
748
|
return !1;
|
|
740
749
|
}
|
|
741
|
-
function
|
|
750
|
+
function u() {
|
|
742
751
|
return !1;
|
|
743
752
|
}
|
|
744
|
-
function
|
|
753
|
+
function l() {
|
|
745
754
|
return !0;
|
|
746
755
|
}
|
|
747
|
-
function m(
|
|
756
|
+
function m(s) {
|
|
748
757
|
}
|
|
749
758
|
function a() {
|
|
750
759
|
}
|
|
751
|
-
function
|
|
760
|
+
function c(s) {
|
|
752
761
|
return null;
|
|
753
762
|
}
|
|
754
763
|
return {
|
|
755
764
|
canAccepts: r,
|
|
756
|
-
checkCanDeleteComponent:
|
|
757
|
-
checkCanMoveComponent:
|
|
758
|
-
hideNestedPaddingInDesginerView:
|
|
765
|
+
checkCanDeleteComponent: p,
|
|
766
|
+
checkCanMoveComponent: u,
|
|
767
|
+
hideNestedPaddingInDesginerView: l,
|
|
759
768
|
onAcceptMovedChildElement: m,
|
|
760
769
|
resolveComponentContext: a,
|
|
761
770
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
762
771
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
763
|
-
getPropsConfig:
|
|
772
|
+
getPropsConfig: c
|
|
764
773
|
};
|
|
765
774
|
}
|
|
766
775
|
function Te(n, e) {
|
|
@@ -768,25 +777,25 @@ function Te(n, e) {
|
|
|
768
777
|
canAccepts: t,
|
|
769
778
|
checkCanDeleteComponent: o,
|
|
770
779
|
checkCanMoveComponent: r,
|
|
771
|
-
hideNestedPaddingInDesginerView:
|
|
772
|
-
onAcceptMovedChildElement:
|
|
773
|
-
resolveComponentContext:
|
|
780
|
+
hideNestedPaddingInDesginerView: p,
|
|
781
|
+
onAcceptMovedChildElement: u,
|
|
782
|
+
resolveComponentContext: l,
|
|
774
783
|
triggerBelongedComponentToMoveWhenMoved: m,
|
|
775
784
|
triggerBelongedComponentToDeleteWhenDeleted: a
|
|
776
|
-
} =
|
|
777
|
-
function
|
|
778
|
-
return new
|
|
785
|
+
} = we(n), c = n.schema;
|
|
786
|
+
function s(d, f) {
|
|
787
|
+
return new ke(d, e).getPropertyConfig(c, f);
|
|
779
788
|
}
|
|
780
789
|
return {
|
|
781
790
|
canAccepts: t,
|
|
782
791
|
checkCanDeleteComponent: o,
|
|
783
792
|
checkCanMoveComponent: r,
|
|
784
|
-
hideNestedPaddingInDesginerView:
|
|
785
|
-
onAcceptMovedChildElement:
|
|
786
|
-
resolveComponentContext:
|
|
793
|
+
hideNestedPaddingInDesginerView: p,
|
|
794
|
+
onAcceptMovedChildElement: u,
|
|
795
|
+
resolveComponentContext: l,
|
|
787
796
|
triggerBelongedComponentToMoveWhenMoved: m,
|
|
788
797
|
triggerBelongedComponentToDeleteWhenDeleted: a,
|
|
789
|
-
getPropsConfig:
|
|
798
|
+
getPropsConfig: s
|
|
790
799
|
};
|
|
791
800
|
}
|
|
792
801
|
const Be = /* @__PURE__ */ G({
|
|
@@ -794,38 +803,34 @@ const Be = /* @__PURE__ */ G({
|
|
|
794
803
|
props: L,
|
|
795
804
|
emits: [""],
|
|
796
805
|
setup(n, e) {
|
|
797
|
-
const t =
|
|
806
|
+
const t = k(), o = O("designer-host-service"), r = O("design-item-context"), p = Te(r, o), u = ve(t, r, p), l = x(() => n.maxLength ? n.maxLength : n.modelValue.length), m = x(() => ({
|
|
798
807
|
position: "relative"
|
|
799
|
-
})), a =
|
|
808
|
+
})), a = x(() => ({
|
|
800
809
|
"box-shadow": "0 0 0 1px #dcdfe6 inset",
|
|
801
810
|
border: "none",
|
|
802
811
|
padding: "5px 10px",
|
|
803
812
|
width: "100%"
|
|
804
|
-
})),
|
|
813
|
+
})), c = {
|
|
805
814
|
position: "absolute",
|
|
806
815
|
bottom: "5px",
|
|
807
816
|
right: "10px"
|
|
808
817
|
};
|
|
809
818
|
return W(() => {
|
|
810
|
-
t.value.componentInstance =
|
|
811
|
-
}), e.expose(
|
|
819
|
+
t.value.componentInstance = u;
|
|
820
|
+
}), e.expose(u.value), () => w("div", {
|
|
812
821
|
style: m.value,
|
|
813
822
|
ref: t
|
|
814
823
|
}, [w("textarea", {
|
|
815
824
|
id: n.id,
|
|
816
|
-
minlength: n.minLength,
|
|
817
|
-
maxlength: n.maxLength,
|
|
818
825
|
tabindex: n.tabIndex,
|
|
819
|
-
disabled:
|
|
820
|
-
readonly:
|
|
821
|
-
autocomplete: n.autocomplete,
|
|
826
|
+
disabled: !1,
|
|
827
|
+
readonly: !0,
|
|
822
828
|
style: a.value,
|
|
823
829
|
placeholder: n.placeholder,
|
|
824
|
-
autofocus: n.autofocus,
|
|
825
830
|
rows: n.rows
|
|
826
831
|
}, null), n.showCount && w("span", {
|
|
827
|
-
style:
|
|
828
|
-
}, [`${n.modelValue.length}/${
|
|
832
|
+
style: c
|
|
833
|
+
}, [`${n.modelValue.length}/${l.value}`])]);
|
|
829
834
|
}
|
|
830
835
|
}), Ve = (n) => {
|
|
831
836
|
const e = n;
|
|
@@ -833,15 +838,15 @@ const Be = /* @__PURE__ */ G({
|
|
|
833
838
|
t.component(e.name, n);
|
|
834
839
|
}, n;
|
|
835
840
|
};
|
|
836
|
-
|
|
837
|
-
n.textarea =
|
|
841
|
+
A.register = (n, e, t, o) => {
|
|
842
|
+
n.textarea = A, e.textarea = _;
|
|
838
843
|
};
|
|
839
|
-
|
|
844
|
+
A.registerDesigner = (n, e, t) => {
|
|
840
845
|
n.textarea = Be, e.textarea = _;
|
|
841
846
|
};
|
|
842
|
-
const Ee = Ve(
|
|
847
|
+
const Ee = Ve(A);
|
|
843
848
|
export {
|
|
844
|
-
|
|
849
|
+
A as FTextarea,
|
|
845
850
|
Ee as default,
|
|
846
851
|
_ as propsResolver,
|
|
847
852
|
L as textAreaProps
|