@farris/ui-vue 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,38 +1,37 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
5
|
-
import { isPlainObject as
|
|
1
|
+
var re = Object.defineProperty;
|
|
2
|
+
var ie = (e, n, t) => n in e ? re(e, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : e[n] = t;
|
|
3
|
+
var M = (e, n, t) => ie(e, typeof n != "symbol" ? n + "" : n, t);
|
|
4
|
+
import { ref as b, computed as g, watch as x, onMounted as N, nextTick as $, createVNode as E, reactive as se, withDirectives as ue, resolveDirective as ce, defineComponent as Z, Fragment as q, inject as H } from "vue";
|
|
5
|
+
import { isPlainObject as z, cloneDeep as J } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import { useNumber as de, useFormat as pe, useSpinner as fe, useTextBox as me } from "../number-spinner/index.esm.js";
|
|
8
|
-
import {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
return (!a || !o.find((u) => u == "id")) && (l.id = `${t}-${Date.now()}`), l;
|
|
8
|
+
import { DgControl as X } from "../designer-canvas/index.esm.js";
|
|
9
|
+
const Q = {}, Y = {};
|
|
10
|
+
function j(e) {
|
|
11
|
+
const { properties: n, title: t, ignore: o } = e, a = o && Array.isArray(o), s = Object.keys(n).reduce((u, f) => ((!a || !o.find((i) => i == f)) && (u[f] = n[f].type === "object" && n[f].properties ? j(n[f]) : J(n[f].default)), u), {});
|
|
12
|
+
return t && (!a || !o.find((u) => u == "id")) && (s.id = `${t}-${Date.now()}`), s;
|
|
14
13
|
}
|
|
15
|
-
function
|
|
16
|
-
const o =
|
|
14
|
+
function _(e, n = {}, t) {
|
|
15
|
+
const o = Q[e];
|
|
17
16
|
if (o) {
|
|
18
|
-
let a =
|
|
19
|
-
const
|
|
20
|
-
return a =
|
|
17
|
+
let a = j(o);
|
|
18
|
+
const s = Y[e];
|
|
19
|
+
return a = s ? s({ getSchemaByType: _ }, a, n, t) : a, a;
|
|
21
20
|
}
|
|
22
21
|
return null;
|
|
23
22
|
}
|
|
24
|
-
function
|
|
25
|
-
const t =
|
|
26
|
-
return Object.keys(e).reduce((o, a) => (o[a] &&
|
|
23
|
+
function ye(e, n) {
|
|
24
|
+
const t = j(n);
|
|
25
|
+
return Object.keys(e).reduce((o, a) => (o[a] && z(o[a]) && z(e[a]) ? Object.assign(o[a], e[a]) : o[a] = e[a], o), t), t;
|
|
27
26
|
}
|
|
28
|
-
function
|
|
27
|
+
function he(e, n) {
|
|
29
28
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
30
29
|
if (n.has(a)) {
|
|
31
|
-
const
|
|
32
|
-
if (typeof
|
|
33
|
-
o[
|
|
30
|
+
const s = n.get(a);
|
|
31
|
+
if (typeof s == "string")
|
|
32
|
+
o[s] = e[a];
|
|
34
33
|
else {
|
|
35
|
-
const u =
|
|
34
|
+
const u = s(a, e[a], e);
|
|
36
35
|
Object.assign(o, u);
|
|
37
36
|
}
|
|
38
37
|
} else
|
|
@@ -40,65 +39,65 @@ function ve(e, n) {
|
|
|
40
39
|
return o;
|
|
41
40
|
}, {});
|
|
42
41
|
}
|
|
43
|
-
function
|
|
44
|
-
const o =
|
|
45
|
-
return
|
|
42
|
+
function ge(e, n, t = /* @__PURE__ */ new Map()) {
|
|
43
|
+
const o = ye(e, n);
|
|
44
|
+
return he(o, t);
|
|
46
45
|
}
|
|
47
|
-
function
|
|
48
|
-
function n(r,
|
|
49
|
-
if (typeof
|
|
50
|
-
return
|
|
51
|
-
if (typeof
|
|
52
|
-
const
|
|
53
|
-
if (
|
|
54
|
-
return Number(
|
|
55
|
-
if (
|
|
56
|
-
return Number(
|
|
57
|
-
if (
|
|
58
|
-
return Number(
|
|
46
|
+
function ve(e = {}) {
|
|
47
|
+
function n(r, c, l, d) {
|
|
48
|
+
if (typeof l == "number")
|
|
49
|
+
return d[r].length === l;
|
|
50
|
+
if (typeof l == "object") {
|
|
51
|
+
const m = Object.keys(l)[0], p = l[m];
|
|
52
|
+
if (m === "not")
|
|
53
|
+
return Number(d[r].length) !== Number(p);
|
|
54
|
+
if (m === "moreThan")
|
|
55
|
+
return Number(d[r].length) >= Number(p);
|
|
56
|
+
if (m === "lessThan")
|
|
57
|
+
return Number(d[r].length) <= Number(p);
|
|
59
58
|
}
|
|
60
59
|
return !1;
|
|
61
60
|
}
|
|
62
|
-
function t(r,
|
|
63
|
-
return
|
|
61
|
+
function t(r, c, l, d) {
|
|
62
|
+
return d[r] && d[r].propertyValue && String(d[r].propertyValue.value) === String(l);
|
|
64
63
|
}
|
|
65
64
|
const o = /* @__PURE__ */ new Map([
|
|
66
65
|
["length", n],
|
|
67
66
|
["getProperty", t]
|
|
68
67
|
]);
|
|
69
|
-
Object.keys(e).reduce((r,
|
|
70
|
-
function a(r,
|
|
71
|
-
const
|
|
72
|
-
return typeof
|
|
73
|
-
if (
|
|
74
|
-
return { target:
|
|
75
|
-
const
|
|
76
|
-
return { target:
|
|
68
|
+
Object.keys(e).reduce((r, c) => (r.set(c, e[c]), r), o);
|
|
69
|
+
function a(r, c) {
|
|
70
|
+
const l = r;
|
|
71
|
+
return typeof c == "number" ? [{ target: l, operator: "length", param: null, value: Number(c) }] : typeof c == "boolean" ? [{ target: l, operator: "getProperty", param: r, value: !!c }] : typeof c == "object" ? Object.keys(c).map((d) => {
|
|
72
|
+
if (d === "length")
|
|
73
|
+
return { target: l, operator: "length", param: null, value: c[d] };
|
|
74
|
+
const m = d, p = c[d];
|
|
75
|
+
return { target: l, operator: "getProperty", param: m, value: p };
|
|
77
76
|
}) : [];
|
|
78
77
|
}
|
|
79
|
-
function
|
|
80
|
-
return Object.keys(r).reduce((
|
|
81
|
-
const
|
|
82
|
-
return
|
|
78
|
+
function s(r) {
|
|
79
|
+
return Object.keys(r).reduce((l, d) => {
|
|
80
|
+
const m = a(d, r[d]);
|
|
81
|
+
return l.push(...m), l;
|
|
83
82
|
}, []);
|
|
84
83
|
}
|
|
85
|
-
function u(r,
|
|
84
|
+
function u(r, c) {
|
|
86
85
|
if (o.has(r.operator)) {
|
|
87
|
-
const
|
|
88
|
-
return
|
|
86
|
+
const l = o.get(r.operator);
|
|
87
|
+
return l && l(r.target, r.param, r.value, c) || !1;
|
|
89
88
|
}
|
|
90
89
|
return !1;
|
|
91
90
|
}
|
|
92
|
-
function
|
|
93
|
-
return
|
|
91
|
+
function f(r, c) {
|
|
92
|
+
return s(r).reduce((m, p) => m && u(p, c), !0);
|
|
94
93
|
}
|
|
95
|
-
function i(r,
|
|
96
|
-
const
|
|
97
|
-
return
|
|
94
|
+
function i(r, c) {
|
|
95
|
+
const l = Object.keys(r), d = l.includes("allOf"), m = l.includes("anyOf"), p = d || m, w = (p ? r[p ? d ? "allOf" : "anyOf" : "allOf"] : [r]).map((F) => f(F, c));
|
|
96
|
+
return d ? !w.includes(!1) : w.includes(!0);
|
|
98
97
|
}
|
|
99
98
|
return { parseValueSchema: i };
|
|
100
99
|
}
|
|
101
|
-
const
|
|
100
|
+
const h = {
|
|
102
101
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
103
102
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
104
103
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -137,24 +136,24 @@ const m = {
|
|
|
137
136
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
138
137
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
139
138
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
140
|
-
},
|
|
141
|
-
|
|
142
|
-
function
|
|
143
|
-
return
|
|
144
|
-
const
|
|
145
|
-
return Object.assign(i,
|
|
139
|
+
}, be = {}, Ce = {};
|
|
140
|
+
ve();
|
|
141
|
+
function we(e, n, t = /* @__PURE__ */ new Map(), o = (u, f, i) => f, a = {}, s = (u) => u) {
|
|
142
|
+
return Q[n.title] = n, Y[n.title] = o, be[n.title] = a, Ce[n.title] = s, (u = {}) => {
|
|
143
|
+
const f = ge(u, n, t), i = Object.keys(e).reduce((r, c) => (r[c] = e[c].default, r), {});
|
|
144
|
+
return Object.assign(i, f);
|
|
146
145
|
};
|
|
147
146
|
}
|
|
148
|
-
function
|
|
147
|
+
function Be(e, n) {
|
|
149
148
|
return { customClass: n.class, customStyle: n.style };
|
|
150
149
|
}
|
|
151
|
-
const
|
|
152
|
-
["appearance",
|
|
150
|
+
const Me = /* @__PURE__ */ new Map([
|
|
151
|
+
["appearance", Be]
|
|
153
152
|
]);
|
|
154
|
-
function
|
|
153
|
+
function Te(e, n, t) {
|
|
155
154
|
return n;
|
|
156
155
|
}
|
|
157
|
-
const
|
|
156
|
+
const ke = "https://json-schema.org/draft/2020-12/schema", Se = "https://farris-design.gitee.io/input-group.schema.json", Ie = "input-group", Ee = "A Farris Input Component", Fe = "object", Ae = {
|
|
158
157
|
id: {
|
|
159
158
|
description: "The unique identifier for a Input Group",
|
|
160
159
|
type: "string"
|
|
@@ -356,18 +355,18 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
|
|
|
356
355
|
type: "string",
|
|
357
356
|
default: ""
|
|
358
357
|
}
|
|
359
|
-
},
|
|
358
|
+
}, Pe = [
|
|
360
359
|
"id",
|
|
361
360
|
"type"
|
|
362
|
-
],
|
|
363
|
-
$schema:
|
|
364
|
-
$id:
|
|
365
|
-
title:
|
|
361
|
+
], xe = {
|
|
362
|
+
$schema: ke,
|
|
363
|
+
$id: Se,
|
|
364
|
+
title: Ie,
|
|
366
365
|
description: Ee,
|
|
367
|
-
type:
|
|
368
|
-
properties:
|
|
369
|
-
required:
|
|
370
|
-
},
|
|
366
|
+
type: Fe,
|
|
367
|
+
properties: Ae,
|
|
368
|
+
required: Pe
|
|
369
|
+
}, U = {
|
|
371
370
|
id: { Type: String, default: "" },
|
|
372
371
|
/** 是否自动完成 */
|
|
373
372
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -434,118 +433,118 @@ const Se = "https://json-schema.org/draft/2020-12/schema", xe = "https://farris-
|
|
|
434
433
|
* - input: 输入时更新
|
|
435
434
|
*/
|
|
436
435
|
updateOn: { type: String, default: "blur" }
|
|
437
|
-
},
|
|
438
|
-
function
|
|
439
|
-
const a =
|
|
436
|
+
}, K = we(U, xe, Me, Te);
|
|
437
|
+
function De(e, n, t, o) {
|
|
438
|
+
const a = b(e.disabled), s = b(!1), u = b("text"), f = b(e.showBorder), i = b(e.textAlign), r = b(e.updateOn), c = g(() => e.editable || !e.readonly), l = g(() => e.editable && !e.disabled && !e.readonly), d = g(() => !e.disabled && s.value), m = g(() => t.value === "" || t.value === null || t.value === void 0), p = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), y = g(() => e.readonly || !e.editable), B = g(() => e.enableTitle ? t.value : ""), w = g(() => ({
|
|
440
439
|
"form-control": !0,
|
|
441
440
|
"f-utils-fill": !0,
|
|
442
441
|
"text-left": i.value === "left",
|
|
443
442
|
"text-center": i.value === "center",
|
|
444
443
|
"text-right": i.value === "right"
|
|
445
|
-
})),
|
|
444
|
+
})), T = g(() => {
|
|
446
445
|
const v = {
|
|
447
446
|
"f-cmp-inputgroup": !0,
|
|
448
447
|
"input-group": !0,
|
|
449
448
|
"f-state-disable": a.value,
|
|
450
|
-
"f-state-editable":
|
|
451
|
-
"f-state-readonly":
|
|
452
|
-
"f-state-focus":
|
|
449
|
+
"f-state-editable": l.value,
|
|
450
|
+
"f-state-readonly": y.value,
|
|
451
|
+
"f-state-focus": d.value
|
|
453
452
|
};
|
|
454
|
-
return (e.customClass || "").split(" ").reduce((
|
|
455
|
-
}),
|
|
456
|
-
function
|
|
457
|
-
t.value = v, o.value !== v && (o.value = v),
|
|
453
|
+
return (e.customClass || "").split(" ").reduce((W, le) => (W[le] = !0, W), v), v;
|
|
454
|
+
}), F = g(() => f.value ? "" : "border-width : 0 ");
|
|
455
|
+
function S(v, P = !0) {
|
|
456
|
+
t.value = v, o.value !== v && (o.value = v), P && n.emit("change", v), n.emit("update:modelValue", v), n.emit("update:value", v);
|
|
458
457
|
}
|
|
459
|
-
|
|
458
|
+
x(
|
|
460
459
|
() => e.modelValue,
|
|
461
|
-
(v,
|
|
462
|
-
v !==
|
|
460
|
+
(v, P) => {
|
|
461
|
+
v !== P && (t.value = v, o.value = v);
|
|
463
462
|
}
|
|
464
|
-
),
|
|
465
|
-
v !==
|
|
463
|
+
), x(() => e.disabled, (v, P) => {
|
|
464
|
+
v !== P && (a.value = v);
|
|
466
465
|
});
|
|
467
|
-
function
|
|
468
|
-
return
|
|
466
|
+
function C(v) {
|
|
467
|
+
return s.value = !1, n.emit("blur", v), v.stopPropagation(), !1;
|
|
469
468
|
}
|
|
470
|
-
function
|
|
469
|
+
function I(v) {
|
|
471
470
|
n.emit("click", v);
|
|
472
471
|
}
|
|
473
|
-
function
|
|
474
|
-
e.disabled || (
|
|
472
|
+
function k(v) {
|
|
473
|
+
e.disabled || (f.value && (s.value = !0), c.value && n.emit("focus", v));
|
|
475
474
|
}
|
|
476
|
-
function
|
|
475
|
+
function A(v) {
|
|
477
476
|
n.emit("input", v.target.value);
|
|
478
|
-
const
|
|
479
|
-
o.value =
|
|
477
|
+
const P = v.target.value;
|
|
478
|
+
o.value = P, r.value === "change" && (n.emit("update:modelValue", P), n.emit("update:value", P));
|
|
480
479
|
}
|
|
481
|
-
function
|
|
480
|
+
function D(v) {
|
|
482
481
|
n.emit("keydown", v);
|
|
483
482
|
}
|
|
484
|
-
function
|
|
483
|
+
function G(v) {
|
|
485
484
|
n.emit("keyup", v);
|
|
486
485
|
}
|
|
487
|
-
function
|
|
486
|
+
function oe(v) {
|
|
488
487
|
v.target.tagName !== "INPUT" && v.preventDefault(), v.stopPropagation();
|
|
489
488
|
}
|
|
490
|
-
function
|
|
489
|
+
function ae(v) {
|
|
491
490
|
if (r.value === "blur") {
|
|
492
|
-
const
|
|
493
|
-
v.stopPropagation(),
|
|
491
|
+
const P = v.target.value;
|
|
492
|
+
v.stopPropagation(), S(P);
|
|
494
493
|
}
|
|
495
494
|
}
|
|
496
495
|
return {
|
|
497
|
-
changeTextBoxValue:
|
|
496
|
+
changeTextBoxValue: S,
|
|
498
497
|
disabled: a,
|
|
499
498
|
displayText: o,
|
|
500
|
-
editable:
|
|
501
|
-
hasFocused:
|
|
502
|
-
inputGroupClass:
|
|
499
|
+
editable: l,
|
|
500
|
+
hasFocused: d,
|
|
501
|
+
inputGroupClass: T,
|
|
503
502
|
inputType: u,
|
|
504
|
-
isEmpty:
|
|
503
|
+
isEmpty: m,
|
|
505
504
|
modelValue: t,
|
|
506
|
-
readonly:
|
|
507
|
-
onBlur:
|
|
508
|
-
onClick:
|
|
509
|
-
onFocus:
|
|
510
|
-
onInput:
|
|
511
|
-
onKeydown:
|
|
512
|
-
onKeyup:
|
|
513
|
-
onMousedown:
|
|
514
|
-
onTextBoxValueChange:
|
|
515
|
-
placeholder:
|
|
516
|
-
textBoxClass:
|
|
517
|
-
textBoxTitle:
|
|
518
|
-
inputGroupStyle:
|
|
505
|
+
readonly: y,
|
|
506
|
+
onBlur: C,
|
|
507
|
+
onClick: I,
|
|
508
|
+
onFocus: k,
|
|
509
|
+
onInput: A,
|
|
510
|
+
onKeydown: D,
|
|
511
|
+
onKeyup: G,
|
|
512
|
+
onMousedown: oe,
|
|
513
|
+
onTextBoxValueChange: ae,
|
|
514
|
+
placeholder: p,
|
|
515
|
+
textBoxClass: w,
|
|
516
|
+
textBoxTitle: B,
|
|
517
|
+
inputGroupStyle: F
|
|
519
518
|
};
|
|
520
519
|
}
|
|
521
|
-
function
|
|
522
|
-
const a =
|
|
520
|
+
function Le(e, n, t, o) {
|
|
521
|
+
const a = b(e.disabled), s = b(!1), u = b("text"), f = b(e.showBorder), i = b(e.textAlign);
|
|
523
522
|
g(() => e.editable || !e.readonly);
|
|
524
|
-
const r = g(() => e.editable && !e.disabled && !e.readonly),
|
|
523
|
+
const r = g(() => e.editable && !e.disabled && !e.readonly), c = g(() => !e.disabled && s.value), l = g(() => t.value === "" || t.value === null || t.value === void 0), d = g(() => e.placeholder), m = g(() => e.readonly || !e.editable), p = g(() => e.enableTitle ? t.value : ""), y = g(() => ({
|
|
525
524
|
"form-control": !0,
|
|
526
525
|
// 'f-utils-fill': true,
|
|
527
526
|
"text-left": i.value === "left",
|
|
528
527
|
"text-center": i.value === "center",
|
|
529
528
|
"text-right": i.value === "right"
|
|
530
|
-
})),
|
|
529
|
+
})), B = g(() => ({
|
|
531
530
|
"f-cmp-inputgroup": !0,
|
|
532
531
|
"input-group": !0,
|
|
533
532
|
"f-state-disable": !0,
|
|
534
533
|
"f-state-editable": !1,
|
|
535
534
|
"f-state-readonly": !0
|
|
536
535
|
// 'f-state-focus': hasFocused.value
|
|
537
|
-
})),
|
|
536
|
+
})), w = g(() => f.value ? "" : "border-width : 0 ");
|
|
538
537
|
return {
|
|
539
538
|
// changeTextBoxValue,
|
|
540
539
|
disabled: a,
|
|
541
540
|
displayText: o,
|
|
542
541
|
editable: r,
|
|
543
|
-
hasFocused:
|
|
544
|
-
inputGroupClass:
|
|
542
|
+
hasFocused: c,
|
|
543
|
+
inputGroupClass: B,
|
|
545
544
|
inputType: u,
|
|
546
|
-
isEmpty:
|
|
545
|
+
isEmpty: l,
|
|
547
546
|
modelValue: t,
|
|
548
|
-
readonly:
|
|
547
|
+
readonly: m,
|
|
549
548
|
// onBlur,
|
|
550
549
|
// onClick,
|
|
551
550
|
// onFocus,
|
|
@@ -554,40 +553,40 @@ function Ve(e, n, t, o) {
|
|
|
554
553
|
// onKeyup,
|
|
555
554
|
// onMousedown,
|
|
556
555
|
// onTextBoxValueChange,
|
|
557
|
-
placeholder:
|
|
558
|
-
textBoxClass:
|
|
559
|
-
textBoxTitle:
|
|
560
|
-
inputGroupStyle:
|
|
556
|
+
placeholder: d,
|
|
557
|
+
textBoxClass: y,
|
|
558
|
+
textBoxTitle: p,
|
|
559
|
+
inputGroupStyle: w
|
|
561
560
|
};
|
|
562
561
|
}
|
|
563
|
-
function
|
|
564
|
-
const o =
|
|
565
|
-
function r(
|
|
566
|
-
o.value =
|
|
562
|
+
function R(e, n, t) {
|
|
563
|
+
const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: s, displayText: u, hasFocused: f, isEmpty: i } = t;
|
|
564
|
+
function r(y) {
|
|
565
|
+
o.value = y;
|
|
567
566
|
}
|
|
568
|
-
|
|
569
|
-
|
|
567
|
+
x(u, () => {
|
|
568
|
+
f != null && f.value ? r(!!(u != null && u.value)) : r(!1);
|
|
570
569
|
});
|
|
571
|
-
const
|
|
570
|
+
const c = g(() => ({
|
|
572
571
|
"input-group-text": !0,
|
|
573
572
|
"input-group-clear": !0
|
|
574
|
-
})),
|
|
573
|
+
})), l = g(() => ({
|
|
575
574
|
width: "24px",
|
|
576
575
|
display: o.value ? "flex" : "none"
|
|
577
576
|
}));
|
|
578
|
-
function
|
|
579
|
-
|
|
577
|
+
function d(y) {
|
|
578
|
+
y.stopPropagation(), a.value && (s("", !0), r(!o.value), n.emit("clear"));
|
|
580
579
|
}
|
|
581
|
-
function y
|
|
580
|
+
function m(y) {
|
|
582
581
|
a.value && !i.value && r(!0);
|
|
583
582
|
}
|
|
584
|
-
function
|
|
583
|
+
function p(y) {
|
|
585
584
|
a.value && r(!1);
|
|
586
585
|
}
|
|
587
|
-
return { clearButtonClass:
|
|
586
|
+
return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: d, onMouseEnter: m, onMouseLeave: p, shouldShowClearButton: a };
|
|
588
587
|
}
|
|
589
|
-
const
|
|
590
|
-
function
|
|
588
|
+
const Ne = ["moz", "ms", "webkit"];
|
|
589
|
+
function Ve() {
|
|
591
590
|
let e = 0;
|
|
592
591
|
return (n) => {
|
|
593
592
|
const t = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (t - e)), a = setTimeout(() => {
|
|
@@ -596,88 +595,88 @@ function Ne() {
|
|
|
596
595
|
return e = t + o, a;
|
|
597
596
|
};
|
|
598
597
|
}
|
|
599
|
-
function
|
|
598
|
+
function Oe() {
|
|
600
599
|
if (typeof window > "u")
|
|
601
600
|
return () => 0;
|
|
602
601
|
if (window.requestAnimationFrame)
|
|
603
602
|
return window.requestAnimationFrame.bind(window);
|
|
604
|
-
const e =
|
|
605
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
603
|
+
const e = Ne.filter((n) => `${n}RequestAnimationFrame` in window)[0];
|
|
604
|
+
return e ? window[`${e}RequestAnimationFrame`] : Ve();
|
|
606
605
|
}
|
|
607
|
-
|
|
608
|
-
const
|
|
606
|
+
Oe();
|
|
607
|
+
const Ge = (e) => {
|
|
609
608
|
const n = e;
|
|
610
609
|
return n.install = function(t) {
|
|
611
610
|
t.component(n.name, e);
|
|
612
611
|
}, e;
|
|
613
612
|
};
|
|
614
|
-
function
|
|
615
|
-
const t =
|
|
613
|
+
function ee(e, n) {
|
|
614
|
+
const t = b(e.groupText), o = g(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = g(() => e.enableClear || !!e.groupText);
|
|
616
615
|
return { appendedButtonClass: g(() => ({
|
|
617
616
|
"input-group-append": !0,
|
|
618
617
|
"append-force-show": o.value
|
|
619
618
|
})), appendedContent: t, shouldShowAppendedButton: a };
|
|
620
619
|
}
|
|
621
|
-
function
|
|
622
|
-
const { appendedContent: a } = o,
|
|
623
|
-
|
|
624
|
-
u.value && (t.value =
|
|
620
|
+
function te(e, n, t, o) {
|
|
621
|
+
const { appendedContent: a } = o, s = b(e.enableViewPassword), u = g(() => e.type === "password"), f = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', i = '<span class="f-icon f-icon-eye"></span>', r = b(!1);
|
|
622
|
+
x(() => [e.readonly, e.disabled], ([d, m]) => {
|
|
623
|
+
u.value && (t.value = d || m ? "password" : t.value, a.value = d || m ? i : a.value);
|
|
625
624
|
});
|
|
626
|
-
function
|
|
627
|
-
return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ?
|
|
625
|
+
function c() {
|
|
626
|
+
return r.value = !r.value, t.value = r.value ? "text" : "password", a.value = r.value ? f : i, !1;
|
|
628
627
|
}
|
|
629
|
-
function
|
|
630
|
-
t.value = u.value ? "password" : "text", a.value = u.value ?
|
|
628
|
+
function l() {
|
|
629
|
+
t.value = u.value ? "password" : "text", a.value = u.value ? s.value ? i : "" : a.value;
|
|
631
630
|
}
|
|
632
|
-
return
|
|
631
|
+
return l(), { isPassword: u, onClickAppendedButton: c };
|
|
633
632
|
}
|
|
634
|
-
function
|
|
635
|
-
const o =
|
|
633
|
+
function je(e, n, t) {
|
|
634
|
+
const o = b(), {
|
|
636
635
|
onBlurTextBox: a,
|
|
637
|
-
onFocusTextBox:
|
|
636
|
+
onFocusTextBox: s,
|
|
638
637
|
onInput: u,
|
|
639
|
-
onKeyDown:
|
|
638
|
+
onKeyDown: f,
|
|
640
639
|
textBoxValue: i
|
|
641
|
-
} = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
640
|
+
} = t, r = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = g(() => ({
|
|
642
641
|
"form-control": !0,
|
|
643
642
|
"f-utils-fill": !0
|
|
644
|
-
})),
|
|
643
|
+
})), l = g(() => ({
|
|
645
644
|
"text-align": e.textAlign
|
|
646
645
|
}));
|
|
647
|
-
function
|
|
648
|
-
|
|
646
|
+
function d(y) {
|
|
647
|
+
y.stopPropagation();
|
|
649
648
|
}
|
|
650
|
-
function
|
|
649
|
+
function m() {
|
|
651
650
|
e.selectOnCreated, e.focusOnCreated;
|
|
652
651
|
}
|
|
653
|
-
async function
|
|
654
|
-
|
|
652
|
+
async function p(y) {
|
|
653
|
+
s(y), await $, m();
|
|
655
654
|
}
|
|
656
655
|
return N(async () => {
|
|
657
|
-
await
|
|
658
|
-
}), () =>
|
|
656
|
+
await $, m();
|
|
657
|
+
}), () => E("input", {
|
|
659
658
|
ref: o,
|
|
660
|
-
class:
|
|
661
|
-
style:
|
|
659
|
+
class: c.value,
|
|
660
|
+
style: l.value,
|
|
662
661
|
type: "text",
|
|
663
662
|
value: i.value,
|
|
664
663
|
disabled: e.disabled,
|
|
665
664
|
readonly: e.readonly || !e.editable,
|
|
666
665
|
placeholder: r.value,
|
|
667
666
|
onBlur: a,
|
|
668
|
-
onChange:
|
|
669
|
-
onFocus:
|
|
667
|
+
onChange: d,
|
|
668
|
+
onFocus: p,
|
|
670
669
|
onInput: u,
|
|
671
|
-
onKeydown:
|
|
670
|
+
onKeydown: f
|
|
672
671
|
}, null);
|
|
673
672
|
}
|
|
674
|
-
function
|
|
673
|
+
function Ue(e, n, t) {
|
|
675
674
|
const {
|
|
676
675
|
canDownward: o,
|
|
677
676
|
canUpward: a,
|
|
678
|
-
onClickDownButton:
|
|
677
|
+
onClickDownButton: s,
|
|
679
678
|
onClickUpButton: u
|
|
680
|
-
} = t,
|
|
679
|
+
} = t, f = g(() => ({
|
|
681
680
|
"input-group-append": !0,
|
|
682
681
|
"btn-group": !0,
|
|
683
682
|
"btn-group-number": !0
|
|
@@ -688,248 +687,248 @@ function $e(e, n, t) {
|
|
|
688
687
|
})), r = g(() => ({
|
|
689
688
|
cursor: a() ? "pointer" : "not-allowed",
|
|
690
689
|
"margin-left": 0
|
|
691
|
-
})),
|
|
690
|
+
})), c = g(() => ({
|
|
692
691
|
cursor: o() ? "pointer" : "not-allowed",
|
|
693
692
|
"margin-left": 0
|
|
694
693
|
}));
|
|
695
|
-
return () =>
|
|
696
|
-
class:
|
|
697
|
-
}, [
|
|
694
|
+
return () => E("div", {
|
|
695
|
+
class: f.value
|
|
696
|
+
}, [E("button", {
|
|
698
697
|
title: "upButton",
|
|
699
698
|
class: i.value,
|
|
700
699
|
style: r.value,
|
|
701
700
|
onClick: u,
|
|
702
701
|
disabled: !a()
|
|
703
|
-
}, [
|
|
702
|
+
}, [E("span", {
|
|
704
703
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
705
|
-
}, null)]),
|
|
704
|
+
}, null)]), E("button", {
|
|
706
705
|
title: "downButton",
|
|
707
706
|
class: i.value,
|
|
708
|
-
style:
|
|
709
|
-
onClick:
|
|
707
|
+
style: c.value,
|
|
708
|
+
onClick: s,
|
|
710
709
|
disabled: !o()
|
|
711
|
-
}, [
|
|
710
|
+
}, [E("span", {
|
|
712
711
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
713
712
|
}, null)])]);
|
|
714
713
|
}
|
|
715
|
-
function
|
|
716
|
-
const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t),
|
|
717
|
-
displayValue:
|
|
714
|
+
function We(e, n) {
|
|
715
|
+
const t = de(e, n), o = pe(e, n, t), a = fe(e, n, o, t), s = me(e, n, o, t, a), u = Ue(e, n, a), {
|
|
716
|
+
displayValue: f,
|
|
718
717
|
modelValue: i,
|
|
719
718
|
getRealValue: r
|
|
720
|
-
} = t,
|
|
721
|
-
format:
|
|
719
|
+
} = t, c = je(e, n, s), {
|
|
720
|
+
format: l
|
|
722
721
|
} = o, {
|
|
723
|
-
isFocus:
|
|
724
|
-
} =
|
|
722
|
+
isFocus: d
|
|
723
|
+
} = s, m = g(() => !e.disabled && !e.readonly);
|
|
725
724
|
return N(() => {
|
|
726
|
-
const
|
|
727
|
-
|
|
728
|
-
}),
|
|
729
|
-
const
|
|
730
|
-
i.value =
|
|
731
|
-
}),
|
|
732
|
-
|
|
733
|
-
}),
|
|
734
|
-
|
|
735
|
-
}), () =>
|
|
725
|
+
const p = r(e.modelValue);
|
|
726
|
+
f.value = l(p);
|
|
727
|
+
}), x(() => [e.value], ([p]) => {
|
|
728
|
+
const y = r(p);
|
|
729
|
+
i.value = y, f.value = l(y);
|
|
730
|
+
}), x(() => [e.modelValue], ([p]) => {
|
|
731
|
+
p !== i.value && (i.value = p, !d.value && (f.value = l(r(p))));
|
|
732
|
+
}), x(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
733
|
+
f.value = l(i.value);
|
|
734
|
+
}), () => E("div", {
|
|
736
735
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
737
|
-
}, [
|
|
736
|
+
}, [c(), m.value && u()]);
|
|
738
737
|
}
|
|
739
|
-
function
|
|
740
|
-
const a =
|
|
741
|
-
isPassword:
|
|
742
|
-
} = t, i =
|
|
743
|
-
disabled:
|
|
744
|
-
displayText:
|
|
745
|
-
inputType:
|
|
746
|
-
onBlur:
|
|
747
|
-
onFocus:
|
|
748
|
-
onInput:
|
|
749
|
-
onClick:
|
|
750
|
-
onKeydown:
|
|
751
|
-
onKeyup:
|
|
752
|
-
onMousedown:
|
|
753
|
-
onTextBoxValueChange:
|
|
754
|
-
readonly:
|
|
755
|
-
placeholder:
|
|
756
|
-
textBoxClass:
|
|
757
|
-
textBoxTitle:
|
|
738
|
+
function $e(e, n, t, o) {
|
|
739
|
+
const a = b(), s = b(e.autocomplete), u = b(e.enableTitle), {
|
|
740
|
+
isPassword: f
|
|
741
|
+
} = t, i = b(e.minLength), r = b(e.maxLength), c = b(e.tabIndex), {
|
|
742
|
+
disabled: l,
|
|
743
|
+
displayText: d,
|
|
744
|
+
inputType: m,
|
|
745
|
+
onBlur: p,
|
|
746
|
+
onFocus: y,
|
|
747
|
+
onInput: B,
|
|
748
|
+
onClick: w,
|
|
749
|
+
onKeydown: T,
|
|
750
|
+
onKeyup: F,
|
|
751
|
+
onMousedown: S,
|
|
752
|
+
onTextBoxValueChange: C,
|
|
753
|
+
readonly: I,
|
|
754
|
+
placeholder: k,
|
|
755
|
+
textBoxClass: A,
|
|
756
|
+
textBoxTitle: D
|
|
758
757
|
} = o;
|
|
759
758
|
return N(() => {
|
|
760
759
|
e.selectOnCreated, e.focusOnCreated;
|
|
761
|
-
}), () =>
|
|
760
|
+
}), () => E("input", {
|
|
762
761
|
ref: a,
|
|
763
762
|
name: "input-group-value",
|
|
764
|
-
autocomplete:
|
|
765
|
-
class:
|
|
766
|
-
disabled:
|
|
763
|
+
autocomplete: s.value,
|
|
764
|
+
class: A.value,
|
|
765
|
+
disabled: l == null ? void 0 : l.value,
|
|
767
766
|
maxlength: r.value,
|
|
768
767
|
minlength: i.value,
|
|
769
|
-
placeholder:
|
|
770
|
-
readonly:
|
|
771
|
-
tabindex:
|
|
772
|
-
title: u.value && !
|
|
773
|
-
type:
|
|
774
|
-
value:
|
|
775
|
-
onBlur:
|
|
776
|
-
onClick:
|
|
777
|
-
onChange:
|
|
778
|
-
onFocus:
|
|
779
|
-
onInput:
|
|
780
|
-
onKeydown:
|
|
781
|
-
onKeyup:
|
|
782
|
-
onMousedown:
|
|
768
|
+
placeholder: k.value,
|
|
769
|
+
readonly: I == null ? void 0 : I.value,
|
|
770
|
+
tabindex: c.value,
|
|
771
|
+
title: u.value && !f.value ? D.value : "",
|
|
772
|
+
type: m.value,
|
|
773
|
+
value: d == null ? void 0 : d.value,
|
|
774
|
+
onBlur: p,
|
|
775
|
+
onClick: w,
|
|
776
|
+
onChange: C,
|
|
777
|
+
onFocus: y,
|
|
778
|
+
onInput: B,
|
|
779
|
+
onKeydown: T,
|
|
780
|
+
onKeyup: F,
|
|
781
|
+
onMousedown: S
|
|
783
782
|
}, null);
|
|
784
783
|
}
|
|
785
|
-
function
|
|
784
|
+
function qe(e, n) {
|
|
786
785
|
const t = g(() => e.useExtendInfo && !!e.extendInfo), o = se({
|
|
787
786
|
content: e.extendInfo
|
|
788
787
|
});
|
|
789
788
|
function a() {
|
|
790
789
|
n.emit("updateExtendInfo");
|
|
791
790
|
}
|
|
792
|
-
return () => t.value && ue(
|
|
791
|
+
return () => t.value && ue(E("span", {
|
|
793
792
|
class: "input-group-before-tips",
|
|
794
793
|
onMouseenter: a
|
|
795
|
-
}, [
|
|
794
|
+
}, [E("i", {
|
|
796
795
|
class: "f-icon f-icon-info-circle"
|
|
797
|
-
}, null),
|
|
796
|
+
}, null), E("b", {
|
|
798
797
|
class: "tips-arrow"
|
|
799
798
|
}, null)]), [[ce("tooltip"), o]]);
|
|
800
799
|
}
|
|
801
|
-
function
|
|
800
|
+
function ne(e, n, t, o, a) {
|
|
802
801
|
const {
|
|
803
|
-
appendedButtonClass:
|
|
802
|
+
appendedButtonClass: s,
|
|
804
803
|
appendedContent: u
|
|
805
|
-
} = t,
|
|
806
|
-
clearButtonClass:
|
|
807
|
-
clearButtonStyle:
|
|
808
|
-
onClearValue:
|
|
809
|
-
shouldShowClearButton:
|
|
804
|
+
} = t, f = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), i = g(() => u.value && !n.slots.groupTextTemplate), r = g(() => !!n.slots.groupTextTemplate), {
|
|
805
|
+
clearButtonClass: c,
|
|
806
|
+
clearButtonStyle: l,
|
|
807
|
+
onClearValue: d,
|
|
808
|
+
shouldShowClearButton: m
|
|
810
809
|
} = o;
|
|
811
|
-
function
|
|
812
|
-
return
|
|
810
|
+
function p() {
|
|
811
|
+
return E("span", {
|
|
813
812
|
id: "clearIcon",
|
|
814
|
-
class:
|
|
815
|
-
style:
|
|
816
|
-
onClick: (
|
|
817
|
-
}, [
|
|
813
|
+
class: c.value,
|
|
814
|
+
style: l.value,
|
|
815
|
+
onClick: (k) => d(k)
|
|
816
|
+
}, [E("i", {
|
|
818
817
|
class: "f-icon modal_close"
|
|
819
818
|
}, null)]);
|
|
820
819
|
}
|
|
821
|
-
function
|
|
822
|
-
n.emit("iconMouseEnter",
|
|
820
|
+
function y(k) {
|
|
821
|
+
n.emit("iconMouseEnter", k);
|
|
823
822
|
}
|
|
824
|
-
function
|
|
825
|
-
n.emit("iconMouseLeave",
|
|
823
|
+
function B(k) {
|
|
824
|
+
n.emit("iconMouseLeave", k);
|
|
826
825
|
}
|
|
827
|
-
function
|
|
828
|
-
|
|
829
|
-
originalEvent:
|
|
830
|
-
}),
|
|
826
|
+
function w(k) {
|
|
827
|
+
f.value && n.emit("clickHandle", {
|
|
828
|
+
originalEvent: k
|
|
829
|
+
}), k.stopPropagation();
|
|
831
830
|
}
|
|
832
|
-
const
|
|
833
|
-
function
|
|
834
|
-
return
|
|
831
|
+
const T = e.type === "password" ? a.onClickAppendedButton : w;
|
|
832
|
+
function F() {
|
|
833
|
+
return E("span", {
|
|
835
834
|
class: "input-group-text",
|
|
836
|
-
onMouseenter: (
|
|
837
|
-
onMouseleave: (
|
|
835
|
+
onMouseenter: (k) => y(k),
|
|
836
|
+
onMouseleave: (k) => B(k),
|
|
838
837
|
innerHTML: u.value,
|
|
839
|
-
onClick: (
|
|
838
|
+
onClick: (k) => T(k)
|
|
840
839
|
}, null);
|
|
841
840
|
}
|
|
842
|
-
function
|
|
841
|
+
function S() {
|
|
843
842
|
return n.slots.groupTextTemplate && n.slots.groupTextTemplate();
|
|
844
843
|
}
|
|
845
|
-
function
|
|
846
|
-
return i.value ?
|
|
844
|
+
function C() {
|
|
845
|
+
return i.value ? F : r.value ? S : "";
|
|
847
846
|
}
|
|
848
|
-
const
|
|
849
|
-
return () =>
|
|
850
|
-
class:
|
|
851
|
-
}, [
|
|
847
|
+
const I = C();
|
|
848
|
+
return () => E("div", {
|
|
849
|
+
class: s.value
|
|
850
|
+
}, [m.value && p(), I && I()]);
|
|
852
851
|
}
|
|
853
|
-
const
|
|
852
|
+
const V = /* @__PURE__ */ Z({
|
|
854
853
|
name: "FInputGroup",
|
|
855
|
-
props:
|
|
854
|
+
props: U,
|
|
856
855
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
857
856
|
setup(e, n) {
|
|
858
|
-
const t =
|
|
859
|
-
inputGroupClass:
|
|
857
|
+
const t = b(e.modelValue), o = b(e.modelValue), a = De(e, n, t, o), {
|
|
858
|
+
inputGroupClass: s,
|
|
860
859
|
inputType: u,
|
|
861
|
-
inputGroupStyle:
|
|
862
|
-
} = a, i =
|
|
860
|
+
inputGroupStyle: f
|
|
861
|
+
} = a, i = ee(e), {
|
|
863
862
|
shouldShowAppendedButton: r
|
|
864
|
-
} = i,
|
|
865
|
-
onMouseEnter:
|
|
866
|
-
onMouseLeave:
|
|
867
|
-
} =
|
|
868
|
-
|
|
869
|
-
t.value =
|
|
870
|
-
}),
|
|
871
|
-
t.value =
|
|
863
|
+
} = i, c = R(e, n, a), {
|
|
864
|
+
onMouseEnter: l,
|
|
865
|
+
onMouseLeave: d
|
|
866
|
+
} = c, m = te(e, n, u, i), p = We(e, n), y = $e(e, n, m, a), B = ne(e, n, i, c, m), w = qe(e, n), T = g(() => e.type === "number");
|
|
867
|
+
x(() => [e.value], ([S]) => {
|
|
868
|
+
t.value = S, o.value = S;
|
|
869
|
+
}), x(() => [e.modelValue], ([S]) => {
|
|
870
|
+
t.value = S, o.value = S;
|
|
872
871
|
}), N(() => {
|
|
873
872
|
e.value && (t.value = e.value, o.value = e.value);
|
|
874
873
|
});
|
|
875
|
-
const
|
|
874
|
+
const F = () => E(q, null, [E("div", {
|
|
876
875
|
id: e.id,
|
|
877
|
-
class:
|
|
878
|
-
style:
|
|
879
|
-
onMouseenter:
|
|
880
|
-
onMouseleave:
|
|
881
|
-
}, [
|
|
882
|
-
return () =>
|
|
876
|
+
class: s.value,
|
|
877
|
+
style: f.value,
|
|
878
|
+
onMouseenter: l,
|
|
879
|
+
onMouseleave: d
|
|
880
|
+
}, [T.value ? p() : E(q, null, [w(), y(), r.value && B()])])]);
|
|
881
|
+
return () => F();
|
|
883
882
|
}
|
|
884
883
|
});
|
|
885
|
-
function
|
|
884
|
+
function He(e, n) {
|
|
886
885
|
e.schema;
|
|
887
|
-
const t =
|
|
888
|
-
function a(
|
|
886
|
+
const t = b(!0), o = b(!0);
|
|
887
|
+
function a(l) {
|
|
889
888
|
return !1;
|
|
890
889
|
}
|
|
891
|
-
function
|
|
890
|
+
function s() {
|
|
892
891
|
return !1;
|
|
893
892
|
}
|
|
894
893
|
function u() {
|
|
895
894
|
return !1;
|
|
896
895
|
}
|
|
897
|
-
function
|
|
896
|
+
function f() {
|
|
898
897
|
return !0;
|
|
899
898
|
}
|
|
900
|
-
function i(
|
|
899
|
+
function i(l) {
|
|
901
900
|
}
|
|
902
901
|
function r() {
|
|
903
902
|
}
|
|
904
|
-
function
|
|
903
|
+
function c(l) {
|
|
905
904
|
return null;
|
|
906
905
|
}
|
|
907
906
|
return {
|
|
908
907
|
canAccepts: a,
|
|
909
|
-
checkCanDeleteComponent:
|
|
908
|
+
checkCanDeleteComponent: s,
|
|
910
909
|
checkCanMoveComponent: u,
|
|
911
|
-
hideNestedPaddingInDesginerView:
|
|
910
|
+
hideNestedPaddingInDesginerView: f,
|
|
912
911
|
onAcceptMovedChildElement: i,
|
|
913
912
|
resolveComponentContext: r,
|
|
914
913
|
triggerBelongedComponentToMoveWhenMoved: t,
|
|
915
914
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
916
|
-
getPropsConfig:
|
|
915
|
+
getPropsConfig: c
|
|
917
916
|
};
|
|
918
917
|
}
|
|
919
|
-
class
|
|
918
|
+
class ze {
|
|
920
919
|
constructor(n, t) {
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
920
|
+
M(this, "componentId");
|
|
921
|
+
M(this, "viewModelId");
|
|
922
|
+
M(this, "eventsEditorUtils");
|
|
923
|
+
M(this, "formSchemaUtils");
|
|
924
|
+
M(this, "formMetadataConverter");
|
|
925
|
+
M(this, "designViewModelUtils");
|
|
926
|
+
M(this, "designViewModelField");
|
|
927
|
+
M(this, "controlCreatorUtils");
|
|
928
|
+
M(this, "designerHostService");
|
|
929
|
+
M(this, "schemaService", null);
|
|
930
|
+
M(this, "metadataService", null);
|
|
931
|
+
M(this, "propertyConfig", {
|
|
933
932
|
type: "object",
|
|
934
933
|
categories: {}
|
|
935
934
|
});
|
|
@@ -971,7 +970,7 @@ class Re {
|
|
|
971
970
|
type: "combo-list",
|
|
972
971
|
textField: "name",
|
|
973
972
|
valueField: "value",
|
|
974
|
-
data: [{ value: n.type, name:
|
|
973
|
+
data: [{ value: n.type, name: h[n.type].name }]
|
|
975
974
|
}
|
|
976
975
|
}
|
|
977
976
|
}
|
|
@@ -1007,16 +1006,16 @@ class Re {
|
|
|
1007
1006
|
const o = t && t.parent && t.parent.schema;
|
|
1008
1007
|
if (!o)
|
|
1009
1008
|
return;
|
|
1010
|
-
const a = o.contents.findIndex((u) => u.id === n),
|
|
1011
|
-
o.contents.splice(a, 1), o.contents.splice(a, 0,
|
|
1009
|
+
const a = o.contents.findIndex((u) => u.id === n), s = J(o.contents[a]);
|
|
1010
|
+
o.contents.splice(a, 1), o.contents.splice(a, 0, s);
|
|
1012
1011
|
}
|
|
1013
1012
|
}
|
|
1014
|
-
const
|
|
1013
|
+
const L = class L {
|
|
1015
1014
|
/**
|
|
1016
1015
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1017
1016
|
*/
|
|
1018
1017
|
static getEditorTypesByMDataType(n) {
|
|
1019
|
-
const t =
|
|
1018
|
+
const t = L.fieldControlTypeMapping[n];
|
|
1020
1019
|
return t || [{ key: "", value: "" }];
|
|
1021
1020
|
}
|
|
1022
1021
|
/**
|
|
@@ -1024,8 +1023,8 @@ const O = class O {
|
|
|
1024
1023
|
*/
|
|
1025
1024
|
static getAllInputTypes() {
|
|
1026
1025
|
const n = [];
|
|
1027
|
-
for (let t in
|
|
1028
|
-
|
|
1026
|
+
for (let t in L.fieldControlTypeMapping)
|
|
1027
|
+
L.fieldControlTypeMapping[t].forEach((o) => {
|
|
1029
1028
|
n.find((a) => a.key === o.key && a.value === o.value) || n.push({ key: o.key, value: o.value });
|
|
1030
1029
|
});
|
|
1031
1030
|
return n;
|
|
@@ -1034,68 +1033,175 @@ const O = class O {
|
|
|
1034
1033
|
/**
|
|
1035
1034
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1036
1035
|
*/
|
|
1037
|
-
|
|
1036
|
+
M(L, "fieldControlTypeMapping", {
|
|
1038
1037
|
String: [
|
|
1039
|
-
{ key:
|
|
1040
|
-
{ key:
|
|
1041
|
-
{ key:
|
|
1042
|
-
{ key:
|
|
1043
|
-
{ key:
|
|
1044
|
-
{ key:
|
|
1045
|
-
{ key:
|
|
1038
|
+
{ key: h["input-group"].type, value: h["input-group"].name },
|
|
1039
|
+
{ key: h.lookup.type, value: h.lookup.name },
|
|
1040
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name },
|
|
1041
|
+
{ key: h["check-box"].type, value: h["check-box"].name },
|
|
1042
|
+
{ key: h["check-group"].type, value: h["check-group"].name },
|
|
1043
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name },
|
|
1044
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
1045
|
+
{ key: h.textarea.type, value: h.textarea.name }
|
|
1046
1046
|
],
|
|
1047
1047
|
Text: [
|
|
1048
|
-
{ key:
|
|
1049
|
-
{ key:
|
|
1048
|
+
{ key: h.textarea.type, value: h.textarea.name },
|
|
1049
|
+
{ key: h.lookup.type, value: h.lookup.name }
|
|
1050
1050
|
],
|
|
1051
1051
|
Decimal: [
|
|
1052
|
-
{ key:
|
|
1052
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
1053
1053
|
],
|
|
1054
1054
|
Integer: [
|
|
1055
|
-
{ key:
|
|
1055
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
1056
1056
|
],
|
|
1057
1057
|
Number: [
|
|
1058
|
-
{ key:
|
|
1058
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
1059
1059
|
],
|
|
1060
1060
|
BigNumber: [
|
|
1061
|
-
{ key:
|
|
1061
|
+
{ key: h["number-spinner"].type, value: h["number-spinner"].name }
|
|
1062
1062
|
],
|
|
1063
1063
|
Date: [
|
|
1064
|
-
{ key:
|
|
1064
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name }
|
|
1065
1065
|
],
|
|
1066
1066
|
DateTime: [
|
|
1067
|
-
{ key:
|
|
1067
|
+
{ key: h["date-picker"].type, value: h["date-picker"].name }
|
|
1068
1068
|
],
|
|
1069
1069
|
Boolean: [
|
|
1070
|
-
{ key:
|
|
1071
|
-
{ key:
|
|
1070
|
+
{ key: h.switch.type, value: h.switch.name },
|
|
1071
|
+
{ key: h["check-box"].type, value: h["check-box"].name }
|
|
1072
1072
|
],
|
|
1073
1073
|
Enum: [
|
|
1074
|
-
{ key:
|
|
1075
|
-
{ key:
|
|
1074
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
1075
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name }
|
|
1076
1076
|
],
|
|
1077
1077
|
Object: [
|
|
1078
|
-
{ key:
|
|
1079
|
-
{ key:
|
|
1080
|
-
{ key:
|
|
1078
|
+
{ key: h.lookup.type, value: h.lookup.name },
|
|
1079
|
+
{ key: h["combo-list"].type, value: h["combo-list"].name },
|
|
1080
|
+
{ key: h["radio-group"].type, value: h["radio-group"].name }
|
|
1081
1081
|
]
|
|
1082
1082
|
});
|
|
1083
|
-
let
|
|
1084
|
-
const
|
|
1085
|
-
class
|
|
1083
|
+
let O = L;
|
|
1084
|
+
const Xe = b(0);
|
|
1085
|
+
class Ze {
|
|
1086
|
+
constructor() {
|
|
1087
|
+
/** 控件标题 */
|
|
1088
|
+
M(this, "label", "");
|
|
1089
|
+
/** 控件id */
|
|
1090
|
+
M(this, "id", "");
|
|
1091
|
+
/** 每个控件占用的栅格数 */
|
|
1092
|
+
M(this, "columnInSM", 12);
|
|
1093
|
+
M(this, "columnInMD", 6);
|
|
1094
|
+
M(this, "columnInLG", 3);
|
|
1095
|
+
M(this, "columnInEL", 2);
|
|
1096
|
+
/** 每个控件占用的列数 */
|
|
1097
|
+
M(this, "displayWidthInSM", 1);
|
|
1098
|
+
M(this, "displayWidthInMD", 1);
|
|
1099
|
+
M(this, "displayWidthInLG", 1);
|
|
1100
|
+
M(this, "displayWidthInEL", 1);
|
|
1101
|
+
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
1102
|
+
M(this, "displayColumnCountAtBreakPoint", "md");
|
|
1103
|
+
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
1104
|
+
M(this, "tagRow", 0);
|
|
1105
|
+
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
1106
|
+
M(this, "showTopBorder", 0);
|
|
1107
|
+
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
1108
|
+
M(this, "group", 1);
|
|
1109
|
+
/** 控件是否符合标准的class配置(设计器用的) */
|
|
1110
|
+
M(this, "isSupportedClass", !0);
|
|
1111
|
+
/** 控件所在分组id(设计器用的) */
|
|
1112
|
+
M(this, "fieldSetId", "");
|
|
1113
|
+
}
|
|
1114
|
+
}
|
|
1115
|
+
function Je(e) {
|
|
1116
|
+
let n, t;
|
|
1117
|
+
const o = /* @__PURE__ */ new Map();
|
|
1118
|
+
let a = [];
|
|
1119
|
+
function s(c, l) {
|
|
1120
|
+
const m = c.split(" ").filter((T) => T.startsWith("col-"));
|
|
1121
|
+
if (m.length === 0) {
|
|
1122
|
+
l.isSupportedClass = !1;
|
|
1123
|
+
return;
|
|
1124
|
+
}
|
|
1125
|
+
let p = m.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), y = m.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), B = m.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), w = m.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
|
|
1126
|
+
p = p || "col-12", l.columnInSM = parseInt(p.replace("col-", ""), 10), l.displayWidthInSM = l.columnInSM / 12, l.displayWidthInSM !== 1 && (l.isSupportedClass = !1), y = y || "col-md-" + l.columnInSM, l.columnInMD = parseInt(y.replace("col-md-", ""), 10), l.displayWidthInMD = l.columnInMD / 6, [1, 2].includes(l.displayWidthInMD) || (l.isSupportedClass = !1), B = B || "col-xl-" + l.columnInMD, l.columnInLG = parseInt(B.replace("col-xl-", ""), 10), l.displayWidthInLG = l.columnInLG / 3, [1, 2, 3, 4].includes(l.displayWidthInLG) || (l.isSupportedClass = !1), w = w || "col-el-" + l.columnInLG, l.columnInEL = parseInt(w.replace("col-el-", ""), 10), l.displayWidthInEL = l.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(l.displayWidthInEL) || (l.isSupportedClass = !1);
|
|
1127
|
+
}
|
|
1128
|
+
function u(c, l, d, m = !1) {
|
|
1129
|
+
let p = !1;
|
|
1130
|
+
c.contents.forEach((y) => {
|
|
1131
|
+
if (y.type === "fieldset") {
|
|
1132
|
+
d += 1, u(y, l, d, !0), p = !0;
|
|
1133
|
+
return;
|
|
1134
|
+
}
|
|
1135
|
+
p && (d += 1, p = !1);
|
|
1136
|
+
const B = y.appearance && y.appearance.class, w = new Ze();
|
|
1137
|
+
B ? s(B, w) : w.isSupportedClass = !1, w.label = y.label || y.id, w.id = y.id, w.group = d, m && (w.fieldSetId = c.id), t === y.id && (n = d), o.set(y.id, y), l.push(w);
|
|
1138
|
+
});
|
|
1139
|
+
}
|
|
1140
|
+
function f(c) {
|
|
1141
|
+
const l = e.getComponentById(c);
|
|
1142
|
+
if (!l || !l.componentType || !l.componentType.startsWith("form"))
|
|
1143
|
+
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
1144
|
+
const d = e.selectNode(l, (m) => m.type === X["response-form"].type);
|
|
1145
|
+
return !d || !d.contents || d.contents.length === 0 ? { result: !1, message: "Form区域内没有控件,请先添加控件" } : { result: !0, message: "", formNode: d };
|
|
1146
|
+
}
|
|
1147
|
+
function i(c, l) {
|
|
1148
|
+
l = l || c.id;
|
|
1149
|
+
const { result: d, message: m, formNode: p } = f(l);
|
|
1150
|
+
if (!d)
|
|
1151
|
+
return { result: d, message: m };
|
|
1152
|
+
t = c.id, a = [], o.clear();
|
|
1153
|
+
const y = p.contents[0].type === X.fieldset.type ? 0 : 1;
|
|
1154
|
+
u(p, a, y);
|
|
1155
|
+
const B = a.find((T) => !T.isSupportedClass);
|
|
1156
|
+
return {
|
|
1157
|
+
defaultState: {
|
|
1158
|
+
defaultGroupNumber: n || 1,
|
|
1159
|
+
model: B ? "customize" : "standard"
|
|
1160
|
+
},
|
|
1161
|
+
importData: a
|
|
1162
|
+
};
|
|
1163
|
+
}
|
|
1164
|
+
function r(c, l) {
|
|
1165
|
+
l = l;
|
|
1166
|
+
const { result: d, formNode: m } = f(l);
|
|
1167
|
+
if (!d)
|
|
1168
|
+
return "";
|
|
1169
|
+
const p = [];
|
|
1170
|
+
return c.forEach((y) => {
|
|
1171
|
+
var T;
|
|
1172
|
+
const B = o.get(y.id), w = B.appearance && B.appearance.class;
|
|
1173
|
+
if (w) {
|
|
1174
|
+
const S = w.split(" ").filter((G) => !G.startsWith("col-")), C = "col-" + y.columnInSM, I = "col-md-" + y.columnInMD, k = "col-xl-" + y.columnInLG, A = "col-el-" + y.columnInEL, D = [C, I, k, A].concat(S);
|
|
1175
|
+
B.appearance.class = D.join(" ");
|
|
1176
|
+
}
|
|
1177
|
+
if (y.fieldSetId) {
|
|
1178
|
+
const F = m.contents.find((C) => C.id === y.fieldSetId), S = p.find((C) => C.id === y.fieldSetId);
|
|
1179
|
+
S ? (T = S.contents) == null || T.push(B) : (p.push(F), F.contents = [B]);
|
|
1180
|
+
} else
|
|
1181
|
+
p.push(B);
|
|
1182
|
+
}), m.contents = p, m.id;
|
|
1183
|
+
}
|
|
1184
|
+
return {
|
|
1185
|
+
checkCanFindFormNode: f,
|
|
1186
|
+
checkCanOpenLayoutEditor: i,
|
|
1187
|
+
changeFormControlsByResponseLayoutConfig: r,
|
|
1188
|
+
getResonseFormLayoutConfig: u
|
|
1189
|
+
};
|
|
1190
|
+
}
|
|
1191
|
+
class Qe extends ze {
|
|
1086
1192
|
constructor(t, o) {
|
|
1087
1193
|
super(t, o);
|
|
1088
|
-
|
|
1089
|
-
this.responseLayoutEditorFunction =
|
|
1194
|
+
M(this, "responseLayoutEditorFunction");
|
|
1195
|
+
this.responseLayoutEditorFunction = Je(this.formSchemaUtils);
|
|
1090
1196
|
}
|
|
1091
1197
|
getPropertyConfig(t, o) {
|
|
1092
1198
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t, o), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t, o), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
1093
1199
|
}
|
|
1094
1200
|
getBasicProperties(t, o) {
|
|
1095
|
-
var
|
|
1201
|
+
var f;
|
|
1096
1202
|
var a = this;
|
|
1097
1203
|
this.setDesignViewModelField(t);
|
|
1098
|
-
const
|
|
1204
|
+
const s = this.formSchemaUtils.getFormMetadataBasicInfo(), u = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1099
1205
|
return {
|
|
1100
1206
|
description: "Basic Information",
|
|
1101
1207
|
title: "基本信息",
|
|
@@ -1117,7 +1223,7 @@ class Xe extends Re {
|
|
|
1117
1223
|
textField: "value",
|
|
1118
1224
|
valueField: "key",
|
|
1119
1225
|
editable: !1,
|
|
1120
|
-
data: a.designViewModelField ?
|
|
1226
|
+
data: a.designViewModelField ? O.getEditorTypesByMDataType((f = a.designViewModelField.type) == null ? void 0 : f.name) : O.getAllInputTypes()
|
|
1121
1227
|
}
|
|
1122
1228
|
},
|
|
1123
1229
|
label: {
|
|
@@ -1134,7 +1240,7 @@ class Xe extends Re {
|
|
|
1134
1240
|
bindingType: { enable: !1 },
|
|
1135
1241
|
editorParams: {
|
|
1136
1242
|
propertyData: t,
|
|
1137
|
-
formBasicInfo:
|
|
1243
|
+
formBasicInfo: s
|
|
1138
1244
|
},
|
|
1139
1245
|
columns: [
|
|
1140
1246
|
{ field: "name", title: "字段名称" },
|
|
@@ -1192,14 +1298,14 @@ class Xe extends Re {
|
|
|
1192
1298
|
}
|
|
1193
1299
|
}
|
|
1194
1300
|
},
|
|
1195
|
-
setPropertyRelates(
|
|
1196
|
-
if (
|
|
1197
|
-
switch (
|
|
1301
|
+
setPropertyRelates(s, u) {
|
|
1302
|
+
if (s)
|
|
1303
|
+
switch (s && s.propertyID) {
|
|
1198
1304
|
case "responseLayout":
|
|
1199
|
-
a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(
|
|
1305
|
+
a.responseLayoutEditorFunction.changeFormControlsByResponseLayoutConfig(s.propertyValue, a.componentId || t.id), a.updateUnifiedLayoutAfterResponseLayoutChanged(a.componentId), a.updateElementByParentContainer(t.id, o), delete t.responseLayout;
|
|
1200
1306
|
break;
|
|
1201
1307
|
case "class":
|
|
1202
|
-
a.updateUnifiedLayoutAfterControlChanged(
|
|
1308
|
+
a.updateUnifiedLayoutAfterControlChanged(s.propertyValue, t.id, this.componentId), a.updateElementByParentContainer(t.id, o);
|
|
1203
1309
|
break;
|
|
1204
1310
|
}
|
|
1205
1311
|
}
|
|
@@ -1214,20 +1320,20 @@ class Xe extends Re {
|
|
|
1214
1320
|
* @param newControlType 新控件类型
|
|
1215
1321
|
*/
|
|
1216
1322
|
changeControlType(t, o, a) {
|
|
1217
|
-
var
|
|
1218
|
-
const
|
|
1323
|
+
var c, l, d, m;
|
|
1324
|
+
const s = o.propertyValue, u = a && a.parent && a.parent.schema;
|
|
1219
1325
|
if (!u)
|
|
1220
1326
|
return;
|
|
1221
|
-
const
|
|
1327
|
+
const f = u.contents.findIndex((p) => p.id === t.id), i = u.contents[f];
|
|
1222
1328
|
let r;
|
|
1223
1329
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1224
1330
|
editor: {
|
|
1225
|
-
$type:
|
|
1331
|
+
$type: s
|
|
1226
1332
|
},
|
|
1227
1333
|
name: this.designViewModelField.name,
|
|
1228
1334
|
require: this.designViewModelField.require,
|
|
1229
1335
|
readonly: this.designViewModelField.readonly
|
|
1230
|
-
}, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField,
|
|
1336
|
+
}, !1), r = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, s)), r || (r = this.controlCreatorUtils.createFormGroupWithoutField(s)), Object.assign(r, {
|
|
1231
1337
|
id: i.id,
|
|
1232
1338
|
appearance: i.appearance,
|
|
1233
1339
|
size: i.size,
|
|
@@ -1236,16 +1342,16 @@ class Xe extends Re {
|
|
|
1236
1342
|
visible: i.visible
|
|
1237
1343
|
}), Object.assign(r.editor, {
|
|
1238
1344
|
isTextArea: r.isTextArea && i.isTextArea,
|
|
1239
|
-
placeholder: (
|
|
1240
|
-
holdPlace: (
|
|
1241
|
-
readonly: (
|
|
1242
|
-
require: (
|
|
1243
|
-
}), u.contents.splice(
|
|
1244
|
-
(
|
|
1245
|
-
),
|
|
1345
|
+
placeholder: (c = i.editor) == null ? void 0 : c.placeholder,
|
|
1346
|
+
holdPlace: (l = i.editor) == null ? void 0 : l.holdPlace,
|
|
1347
|
+
readonly: (d = i.editor) == null ? void 0 : d.readonly,
|
|
1348
|
+
require: (m = i.editor) == null ? void 0 : m.require
|
|
1349
|
+
}), u.contents.splice(f, 1), u.contents.splice(f, 0, r), a.schema = Object.assign(i, r), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1350
|
+
(p) => p.classList.remove("dgComponentSelected")
|
|
1351
|
+
), Xe.value++;
|
|
1246
1352
|
}
|
|
1247
1353
|
getComponentConfig(t, o = {}, a = {}) {
|
|
1248
|
-
const
|
|
1354
|
+
const s = Object.assign({
|
|
1249
1355
|
description: "编辑器",
|
|
1250
1356
|
title: "编辑器",
|
|
1251
1357
|
type: "input-group",
|
|
@@ -1272,7 +1378,7 @@ class Xe extends Re {
|
|
|
1272
1378
|
type: "string"
|
|
1273
1379
|
}
|
|
1274
1380
|
}, a);
|
|
1275
|
-
return { ...
|
|
1381
|
+
return { ...s, properties: { ...u } };
|
|
1276
1382
|
}
|
|
1277
1383
|
/**
|
|
1278
1384
|
* 修改某一输入控件的样式后更新Form的统一布局配置
|
|
@@ -1281,17 +1387,17 @@ class Xe extends Re {
|
|
|
1281
1387
|
* @param componentId 控件所在组件id
|
|
1282
1388
|
*/
|
|
1283
1389
|
updateUnifiedLayoutAfterControlChanged(t, o, a) {
|
|
1284
|
-
const
|
|
1285
|
-
let u =
|
|
1286
|
-
u = u || "col-12",
|
|
1287
|
-
const
|
|
1390
|
+
const s = t.split(" ");
|
|
1391
|
+
let u = s.find((l) => /^col-([1-9]|10|11|12)$/.test(l)), f = s.find((l) => /^col-md-([1-9]|10|11|12)$/.test(l)), i = s.find((l) => /^col-xl-([1-9]|10|11|12)$/.test(l)), r = s.find((l) => /^col-el-([1-9]|10|11|12)$/.test(l));
|
|
1392
|
+
u = u || "col-12", f = f || "col-md-" + u.replace("col-", ""), i = i || "col-xl-" + f.replace("col-md-", ""), r = r || "col-el-" + i.replace("col-xl-", "");
|
|
1393
|
+
const c = {
|
|
1288
1394
|
id: o,
|
|
1289
1395
|
columnInSM: parseInt(u.replace("col-", ""), 10),
|
|
1290
|
-
columnInMD: parseInt(
|
|
1396
|
+
columnInMD: parseInt(f.replace("col-md-", ""), 10),
|
|
1291
1397
|
columnInLG: parseInt(i.replace("col-xl-", ""), 10),
|
|
1292
1398
|
columnInEL: parseInt(r.replace("col-el-", ""), 10)
|
|
1293
1399
|
};
|
|
1294
|
-
this.updateUnifiedLayoutAfterResponseLayoutChanged(a,
|
|
1400
|
+
this.updateUnifiedLayoutAfterResponseLayoutChanged(a, c);
|
|
1295
1401
|
}
|
|
1296
1402
|
/**
|
|
1297
1403
|
* 修改控件布局配置后更新Form统一布局配置
|
|
@@ -1302,17 +1408,17 @@ class Xe extends Re {
|
|
|
1302
1408
|
const { formNode: a } = this.responseLayoutEditorFunction.checkCanFindFormNode(t);
|
|
1303
1409
|
if (!a || !a.unifiedLayout)
|
|
1304
1410
|
return;
|
|
1305
|
-
const
|
|
1306
|
-
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a,
|
|
1307
|
-
const
|
|
1308
|
-
Object.assign(
|
|
1411
|
+
const s = [];
|
|
1412
|
+
if (this.responseLayoutEditorFunction.getResonseFormLayoutConfig(a, s, 1), o) {
|
|
1413
|
+
const p = s.find((y) => y.id === o.id);
|
|
1414
|
+
Object.assign(p || {}, o);
|
|
1309
1415
|
}
|
|
1310
|
-
const u =
|
|
1416
|
+
const u = s.map((p) => p.columnInSM), f = s.map((p) => p.columnInMD), i = s.map((p) => p.columnInLG), r = s.map((p) => p.columnInEL), c = this.checkIsUniqueColumn(u) ? u[0] : null, l = this.checkIsUniqueColumn(f) ? f[0] : null, d = this.checkIsUniqueColumn(i) ? i[0] : null, m = this.checkIsUniqueColumn(r) ? r[0] : null;
|
|
1311
1417
|
Object.assign(a.unifiedLayout, {
|
|
1312
|
-
uniqueColClassInSM:
|
|
1313
|
-
uniqueColClassInMD:
|
|
1314
|
-
uniqueColClassInLG:
|
|
1315
|
-
uniqueColClassInEL:
|
|
1418
|
+
uniqueColClassInSM: c,
|
|
1419
|
+
uniqueColClassInMD: l,
|
|
1420
|
+
uniqueColClassInLG: d,
|
|
1421
|
+
uniqueColClassInEL: m
|
|
1316
1422
|
});
|
|
1317
1423
|
}
|
|
1318
1424
|
/**
|
|
@@ -1323,7 +1429,7 @@ class Xe extends Re {
|
|
|
1323
1429
|
return Array.from(o).length === 1;
|
|
1324
1430
|
}
|
|
1325
1431
|
}
|
|
1326
|
-
class
|
|
1432
|
+
class Ye extends Qe {
|
|
1327
1433
|
constructor(n, t) {
|
|
1328
1434
|
super(n, t);
|
|
1329
1435
|
}
|
|
@@ -1333,35 +1439,35 @@ function _e(e, n) {
|
|
|
1333
1439
|
canAccepts: t,
|
|
1334
1440
|
checkCanDeleteComponent: o,
|
|
1335
1441
|
checkCanMoveComponent: a,
|
|
1336
|
-
hideNestedPaddingInDesginerView:
|
|
1442
|
+
hideNestedPaddingInDesginerView: s,
|
|
1337
1443
|
onAcceptMovedChildElement: u,
|
|
1338
|
-
resolveComponentContext:
|
|
1444
|
+
resolveComponentContext: f,
|
|
1339
1445
|
triggerBelongedComponentToMoveWhenMoved: i,
|
|
1340
1446
|
triggerBelongedComponentToDeleteWhenDeleted: r
|
|
1341
|
-
} =
|
|
1342
|
-
function
|
|
1343
|
-
return new
|
|
1447
|
+
} = He(e), c = e.schema;
|
|
1448
|
+
function l(d, m) {
|
|
1449
|
+
return new Ye(d, n).getPropertyConfig(c, m);
|
|
1344
1450
|
}
|
|
1345
1451
|
return {
|
|
1346
1452
|
canAccepts: t,
|
|
1347
1453
|
checkCanDeleteComponent: o,
|
|
1348
1454
|
checkCanMoveComponent: a,
|
|
1349
|
-
hideNestedPaddingInDesginerView:
|
|
1455
|
+
hideNestedPaddingInDesginerView: s,
|
|
1350
1456
|
onAcceptMovedChildElement: u,
|
|
1351
|
-
resolveComponentContext:
|
|
1457
|
+
resolveComponentContext: f,
|
|
1352
1458
|
triggerBelongedComponentToMoveWhenMoved: i,
|
|
1353
1459
|
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
1354
|
-
getPropsConfig:
|
|
1460
|
+
getPropsConfig: l
|
|
1355
1461
|
};
|
|
1356
1462
|
}
|
|
1357
|
-
function
|
|
1358
|
-
var
|
|
1463
|
+
function Ke(e, n, t) {
|
|
1464
|
+
var S;
|
|
1359
1465
|
function o() {
|
|
1360
1466
|
t != null && t.resolveComponentContext && t.resolveComponentContext();
|
|
1361
1467
|
}
|
|
1362
1468
|
o();
|
|
1363
|
-
const a = t && t.getStyles && t.getStyles() || "",
|
|
1364
|
-
function
|
|
1469
|
+
const a = t && t.getStyles && t.getStyles() || "", s = t && t.getDesignerClass && t.getDesignerClass() || "", u = b();
|
|
1470
|
+
function f() {
|
|
1365
1471
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanMoveComponent ? t.checkCanMoveComponent() : !0;
|
|
1366
1472
|
}
|
|
1367
1473
|
function i() {
|
|
@@ -1370,123 +1476,114 @@ function Qe(e, n, t) {
|
|
|
1370
1476
|
function r() {
|
|
1371
1477
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !1 : t && t.checkCanDeleteComponent ? t.checkCanDeleteComponent() : !0;
|
|
1372
1478
|
}
|
|
1373
|
-
function
|
|
1479
|
+
function c() {
|
|
1374
1480
|
return (n == null ? void 0 : n.schema.componentType) === "frame" ? !0 : t && t.hideNestedPaddingInDesginerView ? t.hideNestedPaddingInDesginerView() : !1;
|
|
1375
1481
|
}
|
|
1376
|
-
function
|
|
1377
|
-
if (!
|
|
1482
|
+
function l(C) {
|
|
1483
|
+
if (!C || !C.value)
|
|
1378
1484
|
return null;
|
|
1379
|
-
if (
|
|
1380
|
-
return
|
|
1381
|
-
const
|
|
1382
|
-
return
|
|
1485
|
+
if (C.value.schema && C.value.schema.type === "component")
|
|
1486
|
+
return C.value;
|
|
1487
|
+
const I = b(C == null ? void 0 : C.value.parent), k = l(I);
|
|
1488
|
+
return k || null;
|
|
1383
1489
|
}
|
|
1384
|
-
function
|
|
1385
|
-
const { componentInstance:
|
|
1386
|
-
return !
|
|
1490
|
+
function d(C = n) {
|
|
1491
|
+
const { componentInstance: I, designerItemElementRef: k } = C;
|
|
1492
|
+
return !I || !I.value ? null : I.value.canMove ? k : d(C.parent);
|
|
1387
1493
|
}
|
|
1388
|
-
function
|
|
1389
|
-
return !!t && t.canAccepts(
|
|
1494
|
+
function m(C) {
|
|
1495
|
+
return !!t && t.canAccepts(C);
|
|
1390
1496
|
}
|
|
1391
|
-
function
|
|
1497
|
+
function p() {
|
|
1392
1498
|
return (n == null ? void 0 : n.schema.label) || (n == null ? void 0 : n.schema.title) || (n == null ? void 0 : n.schema.name);
|
|
1393
1499
|
}
|
|
1394
|
-
function
|
|
1395
|
-
}
|
|
1396
|
-
function S(b, w) {
|
|
1397
|
-
w && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(w);
|
|
1500
|
+
function y() {
|
|
1398
1501
|
}
|
|
1399
|
-
function
|
|
1400
|
-
|
|
1401
|
-
let E = $(M, b, w);
|
|
1402
|
-
t && t.onResolveNewComponentSchema && (E = t.onResolveNewComponentSchema(b, E));
|
|
1403
|
-
const V = M.toLowerCase().replace("-", "_");
|
|
1404
|
-
return E && !E.id && E.type === M && (E.id = `${V}_${Math.random().toString().slice(2, 6)}`), E;
|
|
1502
|
+
function B(C, I) {
|
|
1503
|
+
I && t != null && t.onAcceptMovedChildElement && t.onAcceptMovedChildElement(I);
|
|
1405
1504
|
}
|
|
1406
|
-
function
|
|
1407
|
-
const
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
return L && !L.id && L.type === M && (L.id = `${G}_${Math.random().toString().slice(2, 6)}`), L;
|
|
1505
|
+
function w(C, I) {
|
|
1506
|
+
const { componentType: k } = C;
|
|
1507
|
+
let A = _(k, C, I);
|
|
1508
|
+
t && t.onResolveNewComponentSchema && (A = t.onResolveNewComponentSchema(C, A));
|
|
1509
|
+
const D = k.toLowerCase().replace("-", "_");
|
|
1510
|
+
return A && !A.id && A.type === k && (A.id = `${D}_${Math.random().toString().slice(2, 6)}`), A;
|
|
1413
1511
|
}
|
|
1414
|
-
function
|
|
1512
|
+
function T(C) {
|
|
1415
1513
|
}
|
|
1416
|
-
function
|
|
1514
|
+
function F(...C) {
|
|
1417
1515
|
if (t && t.getPropsConfig)
|
|
1418
|
-
return t.getPropsConfig(...
|
|
1516
|
+
return t.getPropsConfig(...C);
|
|
1419
1517
|
}
|
|
1420
1518
|
return u.value = {
|
|
1421
|
-
canMove:
|
|
1519
|
+
canMove: f(),
|
|
1422
1520
|
canSelectParent: i(),
|
|
1423
1521
|
canDelete: r(),
|
|
1424
|
-
canNested: !
|
|
1522
|
+
canNested: !c(),
|
|
1425
1523
|
contents: n == null ? void 0 : n.schema.contents,
|
|
1426
1524
|
elementRef: e,
|
|
1427
|
-
parent: (
|
|
1525
|
+
parent: (S = n == null ? void 0 : n.parent) == null ? void 0 : S.componentInstance,
|
|
1428
1526
|
schema: n == null ? void 0 : n.schema,
|
|
1429
1527
|
styles: a,
|
|
1430
|
-
designerClass:
|
|
1431
|
-
canAccepts:
|
|
1432
|
-
getBelongedComponentInstance:
|
|
1433
|
-
getDraggableDesignItemElement:
|
|
1434
|
-
getDraggingDisplayText:
|
|
1435
|
-
getPropConfig:
|
|
1436
|
-
getDragScopeElement:
|
|
1437
|
-
onAcceptMovedChildElement:
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
addNewChildComponentSchema: T,
|
|
1528
|
+
designerClass: s,
|
|
1529
|
+
canAccepts: m,
|
|
1530
|
+
getBelongedComponentInstance: l,
|
|
1531
|
+
getDraggableDesignItemElement: d,
|
|
1532
|
+
getDraggingDisplayText: p,
|
|
1533
|
+
getPropConfig: F,
|
|
1534
|
+
getDragScopeElement: y,
|
|
1535
|
+
onAcceptMovedChildElement: B,
|
|
1536
|
+
onChildElementMovedOut: T,
|
|
1537
|
+
addNewChildComponentSchema: w,
|
|
1441
1538
|
updateDragAndDropRules: o,
|
|
1442
|
-
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved ||
|
|
1443
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
1539
|
+
triggerBelongedComponentToMoveWhenMoved: !!t && t.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
1540
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!t && t.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
|
|
1444
1541
|
}, u;
|
|
1445
1542
|
}
|
|
1446
|
-
const
|
|
1543
|
+
const Re = /* @__PURE__ */ Z({
|
|
1447
1544
|
name: "FInputGroupDesign",
|
|
1448
|
-
props:
|
|
1545
|
+
props: U,
|
|
1449
1546
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
1450
1547
|
setup(e, n) {
|
|
1451
|
-
const t =
|
|
1452
|
-
inputGroupClass:
|
|
1548
|
+
const t = b(e.modelValue), o = b(e.modelValue), a = Le(e, n, t, o), {
|
|
1549
|
+
inputGroupClass: s,
|
|
1453
1550
|
inputType: u,
|
|
1454
|
-
inputGroupStyle:
|
|
1455
|
-
} = a, i =
|
|
1551
|
+
inputGroupStyle: f
|
|
1552
|
+
} = a, i = ee(e), {
|
|
1456
1553
|
shouldShowAppendedButton: r
|
|
1457
|
-
} = i,
|
|
1458
|
-
onMouseEnter:
|
|
1459
|
-
onMouseLeave:
|
|
1460
|
-
} =
|
|
1554
|
+
} = i, c = R(e, n, a), {
|
|
1555
|
+
onMouseEnter: l,
|
|
1556
|
+
onMouseLeave: d
|
|
1557
|
+
} = c, m = te(e, n, u, i), p = b(), y = H("designer-host-service"), B = H("design-item-context"), w = _e(B, y), T = Ke(p, B, w);
|
|
1461
1558
|
N(() => {
|
|
1462
|
-
|
|
1463
|
-
}), n.expose(
|
|
1464
|
-
const
|
|
1465
|
-
return () =>
|
|
1559
|
+
p.value.componentInstance = T;
|
|
1560
|
+
}), n.expose(T.value);
|
|
1561
|
+
const F = ne(e, n, i, c, m), S = b();
|
|
1562
|
+
return () => E("div", {
|
|
1466
1563
|
id: "inputGroup",
|
|
1467
|
-
ref:
|
|
1468
|
-
class:
|
|
1469
|
-
style:
|
|
1470
|
-
onMouseenter:
|
|
1471
|
-
onMouseleave:
|
|
1472
|
-
}, [
|
|
1473
|
-
ref:
|
|
1564
|
+
ref: p,
|
|
1565
|
+
class: s.value,
|
|
1566
|
+
style: f.value,
|
|
1567
|
+
onMouseenter: l,
|
|
1568
|
+
onMouseleave: d
|
|
1569
|
+
}, [E("input", {
|
|
1570
|
+
ref: S,
|
|
1474
1571
|
class: "form-control",
|
|
1475
1572
|
readonly: !0,
|
|
1476
1573
|
placeholder: e.placeholder
|
|
1477
|
-
}, null), r.value &&
|
|
1574
|
+
}, null), r.value && F()]);
|
|
1478
1575
|
}
|
|
1479
1576
|
});
|
|
1480
|
-
|
|
1481
|
-
e["input-group"] =
|
|
1577
|
+
V.register = (e, n, t, o) => {
|
|
1578
|
+
e["input-group"] = V, n["input-group"] = K;
|
|
1482
1579
|
};
|
|
1483
|
-
|
|
1484
|
-
e["input-group"] =
|
|
1580
|
+
V.registerDesigner = (e, n, t) => {
|
|
1581
|
+
e["input-group"] = Re, n["input-group"] = K;
|
|
1485
1582
|
};
|
|
1486
|
-
const
|
|
1583
|
+
const rt = Ge(V);
|
|
1487
1584
|
export {
|
|
1488
|
-
|
|
1489
|
-
|
|
1490
|
-
|
|
1491
|
-
|
|
1585
|
+
V as FInputGroup,
|
|
1586
|
+
rt as default,
|
|
1587
|
+
U as inputGroupProps,
|
|
1588
|
+
K as propsResolver
|
|
1492
1589
|
};
|