@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,22 +1,22 @@
|
|
|
1
1
|
var ae = Object.defineProperty;
|
|
2
2
|
var re = (e, t, n) => t in e ? ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
4
|
-
import { ref as
|
|
3
|
+
var A = (e, t, n) => re(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as b, computed as y, watch as V, onMounted as G, nextTick as z, createVNode as B, reactive as ie, withDirectives as le, resolveDirective as ue, defineComponent as Q, Fragment as J, inject as Z } from "vue";
|
|
5
5
|
import { cloneDeep as se } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
7
|
import { useNumber as ce, useFormat as de, useSpinner as pe, useTextBox as fe } from "../number-spinner/index.esm.js";
|
|
8
8
|
import { getSchemaByType as _ } from "../dynamic-resolver/index.esm.js";
|
|
9
9
|
const X = {}, Y = {};
|
|
10
10
|
function q(e) {
|
|
11
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((
|
|
12
|
-
return o.id = `${n}-${Date.now()}
|
|
11
|
+
const { properties: t, title: n, ignore: o } = e, a = o && Array.isArray(o), d = Object.keys(t).reduce((s, i) => ((!a || !o.find((u) => u == i)) && (s[i] = t[i].type === "object" && t[i].properties ? q(t[i]) : se(t[i].default)), s), {});
|
|
12
|
+
return (!a || !o.find((s) => s == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
13
13
|
}
|
|
14
|
-
function I(e, t = {}) {
|
|
15
|
-
const
|
|
16
|
-
if (
|
|
17
|
-
let
|
|
18
|
-
const
|
|
19
|
-
return
|
|
14
|
+
function I(e, t = {}, n) {
|
|
15
|
+
const o = X[e];
|
|
16
|
+
if (o) {
|
|
17
|
+
let a = q(o);
|
|
18
|
+
const d = Y[e];
|
|
19
|
+
return a = d ? d({ getSchemaByType: I }, a, t, n) : a, a;
|
|
20
20
|
}
|
|
21
21
|
return null;
|
|
22
22
|
}
|
|
@@ -27,12 +27,12 @@ function me(e, t) {
|
|
|
27
27
|
function ye(e, t) {
|
|
28
28
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
29
29
|
if (t.has(a)) {
|
|
30
|
-
const
|
|
31
|
-
if (typeof
|
|
32
|
-
o[
|
|
30
|
+
const d = t.get(a);
|
|
31
|
+
if (typeof d == "string")
|
|
32
|
+
o[d] = e[a];
|
|
33
33
|
else {
|
|
34
|
-
const
|
|
35
|
-
Object.assign(o,
|
|
34
|
+
const s = d(a, e[a], e);
|
|
35
|
+
Object.assign(o, s);
|
|
36
36
|
}
|
|
37
37
|
} else
|
|
38
38
|
o[a] = e[a];
|
|
@@ -44,11 +44,11 @@ function ve(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
44
44
|
return ye(o, n);
|
|
45
45
|
}
|
|
46
46
|
function ge(e = {}) {
|
|
47
|
-
function t(r,
|
|
48
|
-
if (typeof
|
|
49
|
-
return p[r].length ===
|
|
50
|
-
if (typeof
|
|
51
|
-
const m = Object.keys(
|
|
47
|
+
function t(r, c, l, p) {
|
|
48
|
+
if (typeof l == "number")
|
|
49
|
+
return p[r].length === l;
|
|
50
|
+
if (typeof l == "object") {
|
|
51
|
+
const m = Object.keys(l)[0], v = l[m];
|
|
52
52
|
if (m === "not")
|
|
53
53
|
return Number(p[r].length) !== Number(v);
|
|
54
54
|
if (m === "moreThan")
|
|
@@ -58,44 +58,44 @@ function ge(e = {}) {
|
|
|
58
58
|
}
|
|
59
59
|
return !1;
|
|
60
60
|
}
|
|
61
|
-
function n(r,
|
|
62
|
-
return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(
|
|
61
|
+
function n(r, c, l, p) {
|
|
62
|
+
return p[r] && p[r].propertyValue && String(p[r].propertyValue.value) === String(l);
|
|
63
63
|
}
|
|
64
64
|
const o = /* @__PURE__ */ new Map([
|
|
65
65
|
["length", t],
|
|
66
66
|
["getProperty", n]
|
|
67
67
|
]);
|
|
68
|
-
Object.keys(e).reduce((r,
|
|
69
|
-
function a(r,
|
|
70
|
-
const
|
|
71
|
-
return typeof
|
|
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((p) => {
|
|
72
72
|
if (p === "length")
|
|
73
|
-
return { target:
|
|
74
|
-
const m = p, v =
|
|
75
|
-
return { target:
|
|
73
|
+
return { target: l, operator: "length", param: null, value: c[p] };
|
|
74
|
+
const m = p, v = c[p];
|
|
75
|
+
return { target: l, operator: "getProperty", param: m, value: v };
|
|
76
76
|
}) : [];
|
|
77
77
|
}
|
|
78
|
-
function
|
|
79
|
-
return Object.keys(r).reduce((
|
|
78
|
+
function d(r) {
|
|
79
|
+
return Object.keys(r).reduce((l, p) => {
|
|
80
80
|
const m = a(p, r[p]);
|
|
81
|
-
return
|
|
81
|
+
return l.push(...m), l;
|
|
82
82
|
}, []);
|
|
83
83
|
}
|
|
84
|
-
function
|
|
84
|
+
function s(r, c) {
|
|
85
85
|
if (o.has(r.operator)) {
|
|
86
|
-
const
|
|
87
|
-
return
|
|
86
|
+
const l = o.get(r.operator);
|
|
87
|
+
return l && l(r.target, r.param, r.value, c) || !1;
|
|
88
88
|
}
|
|
89
89
|
return !1;
|
|
90
90
|
}
|
|
91
|
-
function
|
|
92
|
-
return
|
|
91
|
+
function i(r, c) {
|
|
92
|
+
return d(r).reduce((m, v) => m && s(v, c), !0);
|
|
93
93
|
}
|
|
94
|
-
function
|
|
95
|
-
const
|
|
96
|
-
return p ? !
|
|
94
|
+
function u(r, c) {
|
|
95
|
+
const l = Object.keys(r), p = l.includes("allOf"), m = l.includes("anyOf"), v = p || m, T = (v ? r[v ? p ? "allOf" : "anyOf" : "allOf"] : [r]).map((E) => i(E, c));
|
|
96
|
+
return p ? !T.includes(!1) : T.includes(!0);
|
|
97
97
|
}
|
|
98
|
-
return { parseValueSchema:
|
|
98
|
+
return { parseValueSchema: u };
|
|
99
99
|
}
|
|
100
100
|
const f = {
|
|
101
101
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
@@ -135,12 +135,12 @@ const f = {
|
|
|
135
135
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
136
136
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
137
137
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
138
|
-
},
|
|
138
|
+
}, be = {}, he = {};
|
|
139
139
|
ge();
|
|
140
|
-
function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
141
|
-
return X[t.title] = t, Y[t.title] = o,
|
|
142
|
-
const
|
|
143
|
-
return Object.assign(
|
|
140
|
+
function Ce(e, t, n = /* @__PURE__ */ new Map(), o = (s, i, u) => i, a = {}, d = (s) => s) {
|
|
141
|
+
return X[t.title] = t, Y[t.title] = o, be[t.title] = a, he[t.title] = d, (s = {}) => {
|
|
142
|
+
const i = ve(s, t, n), u = Object.keys(e).reduce((r, c) => (r[c] = e[c].default, r), {});
|
|
143
|
+
return Object.assign(u, i);
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
146
|
function we(e, t) {
|
|
@@ -433,97 +433,97 @@ const ke = "https://json-schema.org/draft/2020-12/schema", Me = "https://farris-
|
|
|
433
433
|
updateOn: { type: String, default: "blur" }
|
|
434
434
|
}, R = Ce(W, Fe, Be, Te);
|
|
435
435
|
function De(e, t, n, o) {
|
|
436
|
-
const a =
|
|
436
|
+
const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign), r = b(e.updateOn), c = y(() => e.editable || !e.readonly), l = y(() => e.editable && !e.disabled && !e.readonly), p = y(() => !e.disabled && d.value), m = y(() => n.value === "" || n.value === null || n.value === void 0), v = y(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), C = y(() => e.readonly || !e.editable), x = y(() => e.enableTitle ? n.value : ""), T = y(() => ({
|
|
437
437
|
"form-control": !0,
|
|
438
438
|
"f-utils-fill": !0,
|
|
439
|
-
"text-left":
|
|
440
|
-
"text-center":
|
|
441
|
-
"text-right":
|
|
439
|
+
"text-left": u.value === "left",
|
|
440
|
+
"text-center": u.value === "center",
|
|
441
|
+
"text-right": u.value === "right"
|
|
442
442
|
})), S = y(() => {
|
|
443
443
|
const g = {
|
|
444
444
|
"f-cmp-inputgroup": !0,
|
|
445
445
|
"input-group": !0,
|
|
446
446
|
"f-state-disable": a.value,
|
|
447
|
-
"f-state-editable":
|
|
448
|
-
"f-state-readonly":
|
|
447
|
+
"f-state-editable": l.value,
|
|
448
|
+
"f-state-readonly": C.value,
|
|
449
449
|
"f-state-focus": p.value
|
|
450
450
|
};
|
|
451
451
|
return (e.customClass || "").split(" ").reduce((H, oe) => (H[oe] = !0, H), g), g;
|
|
452
|
-
}),
|
|
453
|
-
function
|
|
454
|
-
n.value = g, o.value !== g && (o.value = g),
|
|
452
|
+
}), E = y(() => i.value ? "" : "border-width : 0 ");
|
|
453
|
+
function k(g, F = !0) {
|
|
454
|
+
n.value = g, o.value !== g && (o.value = g), F && t.emit("change", g), t.emit("update:modelValue", g), t.emit("update:value", g);
|
|
455
455
|
}
|
|
456
|
-
|
|
456
|
+
V(
|
|
457
457
|
() => e.modelValue,
|
|
458
|
-
(g,
|
|
459
|
-
g !==
|
|
458
|
+
(g, F) => {
|
|
459
|
+
g !== F && (n.value = g, o.value = g);
|
|
460
460
|
}
|
|
461
|
-
),
|
|
462
|
-
g !==
|
|
461
|
+
), V(() => e.disabled, (g, F) => {
|
|
462
|
+
g !== F && (a.value = g);
|
|
463
463
|
});
|
|
464
|
-
function
|
|
465
|
-
return
|
|
464
|
+
function O(g) {
|
|
465
|
+
return d.value = !1, t.emit("blur", g), g.stopPropagation(), !1;
|
|
466
466
|
}
|
|
467
|
-
function
|
|
467
|
+
function h(g) {
|
|
468
468
|
t.emit("click", g);
|
|
469
469
|
}
|
|
470
|
-
function
|
|
471
|
-
e.disabled || (
|
|
470
|
+
function w(g) {
|
|
471
|
+
e.disabled || (i.value && (d.value = !0), c.value && t.emit("focus", g));
|
|
472
472
|
}
|
|
473
|
-
function
|
|
473
|
+
function M(g) {
|
|
474
474
|
t.emit("input", g.target.value);
|
|
475
|
-
const
|
|
476
|
-
o.value =
|
|
475
|
+
const F = g.target.value;
|
|
476
|
+
o.value = F, r.value === "input" && (t.emit("update:modelValue", F), t.emit("update:value", F));
|
|
477
477
|
}
|
|
478
|
-
function
|
|
478
|
+
function P(g) {
|
|
479
479
|
t.emit("keydown", g);
|
|
480
480
|
}
|
|
481
|
-
function
|
|
481
|
+
function N(g) {
|
|
482
482
|
t.emit("keyup", g);
|
|
483
483
|
}
|
|
484
|
-
function
|
|
484
|
+
function D(g) {
|
|
485
485
|
g.target.tagName !== "INPUT" && g.preventDefault(), g.stopPropagation();
|
|
486
486
|
}
|
|
487
487
|
function U(g) {
|
|
488
488
|
if (r.value === "blur") {
|
|
489
|
-
const
|
|
490
|
-
g.stopPropagation(),
|
|
489
|
+
const F = g.target.value;
|
|
490
|
+
g.stopPropagation(), k(F);
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
return {
|
|
494
|
-
changeTextBoxValue:
|
|
494
|
+
changeTextBoxValue: k,
|
|
495
495
|
disabled: a,
|
|
496
496
|
displayText: o,
|
|
497
|
-
editable:
|
|
497
|
+
editable: l,
|
|
498
498
|
hasFocused: p,
|
|
499
499
|
inputGroupClass: S,
|
|
500
|
-
inputType:
|
|
500
|
+
inputType: s,
|
|
501
501
|
isEmpty: m,
|
|
502
502
|
modelValue: n,
|
|
503
|
-
readonly:
|
|
504
|
-
onBlur:
|
|
505
|
-
onClick:
|
|
506
|
-
onFocus:
|
|
507
|
-
onInput:
|
|
508
|
-
onKeydown:
|
|
509
|
-
onKeyup:
|
|
510
|
-
onMousedown:
|
|
503
|
+
readonly: C,
|
|
504
|
+
onBlur: O,
|
|
505
|
+
onClick: h,
|
|
506
|
+
onFocus: w,
|
|
507
|
+
onInput: M,
|
|
508
|
+
onKeydown: P,
|
|
509
|
+
onKeyup: N,
|
|
510
|
+
onMousedown: D,
|
|
511
511
|
onTextBoxValueChange: U,
|
|
512
512
|
placeholder: v,
|
|
513
|
-
textBoxClass:
|
|
513
|
+
textBoxClass: T,
|
|
514
514
|
textBoxTitle: x,
|
|
515
|
-
inputGroupStyle:
|
|
515
|
+
inputGroupStyle: E
|
|
516
516
|
};
|
|
517
517
|
}
|
|
518
518
|
function Ve(e, t, n, o) {
|
|
519
|
-
const a =
|
|
519
|
+
const a = b(e.disabled), d = b(!1), s = b("text"), i = b(e.showBorder), u = b(e.textAlign);
|
|
520
520
|
y(() => e.editable || !e.readonly);
|
|
521
|
-
const r = y(() => e.editable && !e.disabled && !e.readonly),
|
|
521
|
+
const r = y(() => e.editable && !e.disabled && !e.readonly), c = y(() => !e.disabled && d.value), l = y(() => n.value === "" || n.value === null || n.value === void 0), p = y(() => e.placeholder), m = y(() => e.readonly || !e.editable), v = y(() => e.enableTitle ? n.value : ""), C = y(() => ({
|
|
522
522
|
"form-control": !0,
|
|
523
523
|
// 'f-utils-fill': true,
|
|
524
|
-
"text-left":
|
|
525
|
-
"text-center":
|
|
526
|
-
"text-right":
|
|
524
|
+
"text-left": u.value === "left",
|
|
525
|
+
"text-center": u.value === "center",
|
|
526
|
+
"text-right": u.value === "right"
|
|
527
527
|
})), x = y(() => ({
|
|
528
528
|
"f-cmp-inputgroup": !0,
|
|
529
529
|
"input-group": !0,
|
|
@@ -531,16 +531,16 @@ function Ve(e, t, n, o) {
|
|
|
531
531
|
"f-state-editable": !1,
|
|
532
532
|
"f-state-readonly": !0
|
|
533
533
|
// 'f-state-focus': hasFocused.value
|
|
534
|
-
})),
|
|
534
|
+
})), T = y(() => i.value ? "" : "border-width : 0 ");
|
|
535
535
|
return {
|
|
536
536
|
// changeTextBoxValue,
|
|
537
537
|
disabled: a,
|
|
538
538
|
displayText: o,
|
|
539
539
|
editable: r,
|
|
540
|
-
hasFocused:
|
|
540
|
+
hasFocused: c,
|
|
541
541
|
inputGroupClass: x,
|
|
542
|
-
inputType:
|
|
543
|
-
isEmpty:
|
|
542
|
+
inputType: s,
|
|
543
|
+
isEmpty: l,
|
|
544
544
|
modelValue: n,
|
|
545
545
|
readonly: m,
|
|
546
546
|
// onBlur,
|
|
@@ -552,36 +552,36 @@ function Ve(e, t, n, o) {
|
|
|
552
552
|
// onMousedown,
|
|
553
553
|
// onTextBoxValueChange,
|
|
554
554
|
placeholder: p,
|
|
555
|
-
textBoxClass:
|
|
555
|
+
textBoxClass: C,
|
|
556
556
|
textBoxTitle: v,
|
|
557
|
-
inputGroupStyle:
|
|
557
|
+
inputGroupStyle: T
|
|
558
558
|
};
|
|
559
559
|
}
|
|
560
560
|
function K(e, t, n) {
|
|
561
|
-
const o =
|
|
562
|
-
function r(
|
|
563
|
-
o.value =
|
|
561
|
+
const o = b(!1), a = y(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: s, hasFocused: i, isEmpty: u } = n;
|
|
562
|
+
function r(C) {
|
|
563
|
+
o.value = C;
|
|
564
564
|
}
|
|
565
|
-
|
|
566
|
-
|
|
565
|
+
V(s, () => {
|
|
566
|
+
i != null && i.value ? r(!!(s != null && s.value)) : r(!1);
|
|
567
567
|
});
|
|
568
|
-
const
|
|
568
|
+
const c = y(() => ({
|
|
569
569
|
"input-group-text": !0,
|
|
570
570
|
"input-group-clear": !0
|
|
571
|
-
})),
|
|
571
|
+
})), l = y(() => ({
|
|
572
572
|
width: "24px",
|
|
573
573
|
display: o.value ? "flex" : "none"
|
|
574
574
|
}));
|
|
575
|
-
function p(
|
|
576
|
-
|
|
575
|
+
function p(C) {
|
|
576
|
+
C.stopPropagation(), a.value && (d("", !0), r(!o.value), t.emit("clear"));
|
|
577
577
|
}
|
|
578
|
-
function m(
|
|
579
|
-
a.value && !
|
|
578
|
+
function m(C) {
|
|
579
|
+
a.value && !u.value && r(!0);
|
|
580
580
|
}
|
|
581
|
-
function v(
|
|
581
|
+
function v(C) {
|
|
582
582
|
a.value && r(!1);
|
|
583
583
|
}
|
|
584
|
-
return { clearButtonClass:
|
|
584
|
+
return { clearButtonClass: c, clearButtonStyle: l, hasShownClearButton: o, onClearValue: p, onMouseEnter: m, onMouseLeave: v, shouldShowClearButton: a };
|
|
585
585
|
}
|
|
586
586
|
const Oe = ["moz", "ms", "webkit"];
|
|
587
587
|
function Ne() {
|
|
@@ -609,174 +609,174 @@ const Ge = (e) => {
|
|
|
609
609
|
}, e;
|
|
610
610
|
};
|
|
611
611
|
function ee(e, t) {
|
|
612
|
-
const n =
|
|
612
|
+
const n = b(e.groupText), o = y(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), a = y(() => e.enableClear || !!e.groupText);
|
|
613
613
|
return { appendedButtonClass: y(() => ({
|
|
614
614
|
"input-group-append": !0,
|
|
615
615
|
"append-force-show": o.value
|
|
616
616
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
617
617
|
}
|
|
618
618
|
function te(e, t, n, o) {
|
|
619
|
-
const { appendedContent: a } = o,
|
|
620
|
-
|
|
621
|
-
|
|
619
|
+
const { appendedContent: a } = o, d = b(e.enableViewPassword), s = y(() => e.type === "password"), i = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', r = b(!1);
|
|
620
|
+
V(() => [e.readonly, e.disabled], ([p, m]) => {
|
|
621
|
+
s.value && (n.value = p || m ? "password" : n.value, a.value = p || m ? u : a.value);
|
|
622
622
|
});
|
|
623
|
-
function
|
|
624
|
-
return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ?
|
|
623
|
+
function c() {
|
|
624
|
+
return r.value = !r.value, n.value = r.value ? "text" : "password", a.value = r.value ? i : u, !1;
|
|
625
625
|
}
|
|
626
|
-
function
|
|
627
|
-
n.value =
|
|
626
|
+
function l() {
|
|
627
|
+
n.value = s.value ? "password" : "text", a.value = s.value ? d.value ? u : "" : a.value;
|
|
628
628
|
}
|
|
629
|
-
return
|
|
629
|
+
return l(), { isPassword: s, onClickAppendedButton: c };
|
|
630
630
|
}
|
|
631
631
|
function Le(e, t, n) {
|
|
632
|
-
const o =
|
|
632
|
+
const o = b(), {
|
|
633
633
|
onBlurTextBox: a,
|
|
634
|
-
onFocusTextBox:
|
|
635
|
-
onInput:
|
|
636
|
-
onKeyDown:
|
|
637
|
-
textBoxValue:
|
|
638
|
-
} = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
634
|
+
onFocusTextBox: d,
|
|
635
|
+
onInput: s,
|
|
636
|
+
onKeyDown: i,
|
|
637
|
+
textBoxValue: u
|
|
638
|
+
} = n, r = y(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), c = y(() => ({
|
|
639
639
|
"form-control": !0,
|
|
640
640
|
"f-utils-fill": !0
|
|
641
|
-
})),
|
|
641
|
+
})), l = y(() => ({
|
|
642
642
|
"text-align": e.textAlign
|
|
643
643
|
}));
|
|
644
|
-
function p(
|
|
645
|
-
|
|
644
|
+
function p(C) {
|
|
645
|
+
C.stopPropagation();
|
|
646
646
|
}
|
|
647
647
|
function m() {
|
|
648
648
|
e.selectOnCreated, e.focusOnCreated;
|
|
649
649
|
}
|
|
650
|
-
async function v(
|
|
651
|
-
|
|
650
|
+
async function v(C) {
|
|
651
|
+
d(C), await z, m();
|
|
652
652
|
}
|
|
653
|
-
return
|
|
653
|
+
return G(async () => {
|
|
654
654
|
await z, m();
|
|
655
|
-
}), () =>
|
|
655
|
+
}), () => B("input", {
|
|
656
656
|
ref: o,
|
|
657
|
-
class:
|
|
658
|
-
style:
|
|
657
|
+
class: c.value,
|
|
658
|
+
style: l.value,
|
|
659
659
|
type: "text",
|
|
660
|
-
value:
|
|
660
|
+
value: u.value,
|
|
661
661
|
disabled: e.disabled,
|
|
662
662
|
readonly: e.readonly || !e.editable,
|
|
663
663
|
placeholder: r.value,
|
|
664
664
|
onBlur: a,
|
|
665
665
|
onChange: p,
|
|
666
666
|
onFocus: v,
|
|
667
|
-
onInput:
|
|
668
|
-
onKeydown:
|
|
667
|
+
onInput: s,
|
|
668
|
+
onKeydown: i
|
|
669
669
|
}, null);
|
|
670
670
|
}
|
|
671
671
|
function $e(e, t, n) {
|
|
672
672
|
const {
|
|
673
673
|
canDownward: o,
|
|
674
674
|
canUpward: a,
|
|
675
|
-
onClickDownButton:
|
|
676
|
-
onClickUpButton:
|
|
677
|
-
} = n,
|
|
675
|
+
onClickDownButton: d,
|
|
676
|
+
onClickUpButton: s
|
|
677
|
+
} = n, i = y(() => ({
|
|
678
678
|
"input-group-append": !0,
|
|
679
679
|
"btn-group": !0,
|
|
680
680
|
"btn-group-number": !0
|
|
681
|
-
})),
|
|
681
|
+
})), u = y(() => ({
|
|
682
682
|
btn: !0,
|
|
683
683
|
"btn-secondary": !0,
|
|
684
684
|
"btn-number-flag": !0
|
|
685
685
|
})), r = y(() => ({
|
|
686
686
|
cursor: a() ? "pointer" : "not-allowed",
|
|
687
687
|
"margin-left": 0
|
|
688
|
-
})),
|
|
688
|
+
})), c = y(() => ({
|
|
689
689
|
cursor: o() ? "pointer" : "not-allowed",
|
|
690
690
|
"margin-left": 0
|
|
691
691
|
}));
|
|
692
|
-
return () =>
|
|
693
|
-
class:
|
|
694
|
-
}, [
|
|
692
|
+
return () => B("div", {
|
|
693
|
+
class: i.value
|
|
694
|
+
}, [B("button", {
|
|
695
695
|
title: "upButton",
|
|
696
|
-
class:
|
|
696
|
+
class: u.value,
|
|
697
697
|
style: r.value,
|
|
698
|
-
onClick:
|
|
698
|
+
onClick: s,
|
|
699
699
|
disabled: !a()
|
|
700
|
-
}, [
|
|
700
|
+
}, [B("span", {
|
|
701
701
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
702
|
-
}, null)]),
|
|
702
|
+
}, null)]), B("button", {
|
|
703
703
|
title: "downButton",
|
|
704
|
-
class:
|
|
705
|
-
style:
|
|
706
|
-
onClick:
|
|
704
|
+
class: u.value,
|
|
705
|
+
style: c.value,
|
|
706
|
+
onClick: d,
|
|
707
707
|
disabled: !o()
|
|
708
|
-
}, [
|
|
708
|
+
}, [B("span", {
|
|
709
709
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
710
710
|
}, null)])]);
|
|
711
711
|
}
|
|
712
712
|
function Ue(e, t) {
|
|
713
|
-
const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n),
|
|
714
|
-
displayValue:
|
|
715
|
-
modelValue:
|
|
713
|
+
const n = ce(e, t), o = de(e, t, n), a = pe(e, t, o, n), d = fe(e, t, o, n, a), s = $e(e, t, a), {
|
|
714
|
+
displayValue: i,
|
|
715
|
+
modelValue: u,
|
|
716
716
|
getRealValue: r
|
|
717
|
-
} = n,
|
|
718
|
-
format:
|
|
717
|
+
} = n, c = Le(e, t, d), {
|
|
718
|
+
format: l
|
|
719
719
|
} = o, {
|
|
720
720
|
isFocus: p
|
|
721
|
-
} =
|
|
722
|
-
return
|
|
721
|
+
} = d, m = y(() => !e.disabled && !e.readonly);
|
|
722
|
+
return G(() => {
|
|
723
723
|
const v = r(e.modelValue);
|
|
724
|
-
|
|
725
|
-
}),
|
|
726
|
-
const
|
|
727
|
-
|
|
728
|
-
}),
|
|
729
|
-
v !==
|
|
730
|
-
}),
|
|
731
|
-
|
|
732
|
-
}), () =>
|
|
724
|
+
i.value = l(v);
|
|
725
|
+
}), V(() => [e.value], ([v]) => {
|
|
726
|
+
const C = r(v);
|
|
727
|
+
u.value = C, i.value = l(C);
|
|
728
|
+
}), V(() => [e.modelValue], ([v]) => {
|
|
729
|
+
v !== u.value && (u.value = v, !p.value && (i.value = l(r(v))));
|
|
730
|
+
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
731
|
+
i.value = l(u.value);
|
|
732
|
+
}), () => B("div", {
|
|
733
733
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
734
|
-
}, [
|
|
734
|
+
}, [c(), m.value && s()]);
|
|
735
735
|
}
|
|
736
736
|
function Ie(e, t, n, o) {
|
|
737
|
-
const a =
|
|
738
|
-
isPassword:
|
|
739
|
-
} = n,
|
|
740
|
-
disabled:
|
|
737
|
+
const a = b(), d = b(e.autocomplete), s = b(e.enableTitle), {
|
|
738
|
+
isPassword: i
|
|
739
|
+
} = n, u = b(e.minLength), r = b(e.maxLength), c = b(e.tabIndex), {
|
|
740
|
+
disabled: l,
|
|
741
741
|
displayText: p,
|
|
742
742
|
inputType: m,
|
|
743
743
|
onBlur: v,
|
|
744
|
-
onFocus:
|
|
744
|
+
onFocus: C,
|
|
745
745
|
onInput: x,
|
|
746
|
-
onClick:
|
|
746
|
+
onClick: T,
|
|
747
747
|
onKeydown: S,
|
|
748
|
-
onKeyup:
|
|
749
|
-
onMousedown:
|
|
750
|
-
onTextBoxValueChange:
|
|
751
|
-
readonly:
|
|
752
|
-
placeholder:
|
|
753
|
-
textBoxClass:
|
|
754
|
-
textBoxTitle:
|
|
748
|
+
onKeyup: E,
|
|
749
|
+
onMousedown: k,
|
|
750
|
+
onTextBoxValueChange: O,
|
|
751
|
+
readonly: h,
|
|
752
|
+
placeholder: w,
|
|
753
|
+
textBoxClass: M,
|
|
754
|
+
textBoxTitle: P
|
|
755
755
|
} = o;
|
|
756
|
-
return
|
|
756
|
+
return G(() => {
|
|
757
757
|
e.selectOnCreated, e.focusOnCreated;
|
|
758
|
-
}), () =>
|
|
758
|
+
}), () => B("input", {
|
|
759
759
|
ref: a,
|
|
760
760
|
name: "input-group-value",
|
|
761
|
-
autocomplete:
|
|
762
|
-
class:
|
|
763
|
-
disabled:
|
|
761
|
+
autocomplete: d.value,
|
|
762
|
+
class: M.value,
|
|
763
|
+
disabled: l == null ? void 0 : l.value,
|
|
764
764
|
maxlength: r.value,
|
|
765
|
-
minlength:
|
|
766
|
-
placeholder:
|
|
767
|
-
readonly:
|
|
768
|
-
tabindex:
|
|
769
|
-
title:
|
|
765
|
+
minlength: u.value,
|
|
766
|
+
placeholder: w.value,
|
|
767
|
+
readonly: h == null ? void 0 : h.value,
|
|
768
|
+
tabindex: c.value,
|
|
769
|
+
title: s.value && !i.value ? P.value : "",
|
|
770
770
|
type: m.value,
|
|
771
771
|
value: p == null ? void 0 : p.value,
|
|
772
772
|
onBlur: v,
|
|
773
|
-
onClick:
|
|
774
|
-
onChange:
|
|
775
|
-
onFocus:
|
|
773
|
+
onClick: T,
|
|
774
|
+
onChange: O,
|
|
775
|
+
onFocus: C,
|
|
776
776
|
onInput: x,
|
|
777
777
|
onKeydown: S,
|
|
778
|
-
onKeyup:
|
|
779
|
-
onMousedown:
|
|
778
|
+
onKeyup: E,
|
|
779
|
+
onMousedown: k
|
|
780
780
|
}, null);
|
|
781
781
|
}
|
|
782
782
|
function qe(e, t) {
|
|
@@ -786,147 +786,147 @@ function qe(e, t) {
|
|
|
786
786
|
function a() {
|
|
787
787
|
t.emit("updateExtendInfo");
|
|
788
788
|
}
|
|
789
|
-
return () => n.value && le(
|
|
789
|
+
return () => n.value && le(B("span", {
|
|
790
790
|
class: "input-group-before-tips",
|
|
791
791
|
onMouseenter: a
|
|
792
|
-
}, [
|
|
792
|
+
}, [B("i", {
|
|
793
793
|
class: "f-icon f-icon-info-circle"
|
|
794
|
-
}, null),
|
|
794
|
+
}, null), B("b", {
|
|
795
795
|
class: "tips-arrow"
|
|
796
796
|
}, null)]), [[ue("tooltip"), o]]);
|
|
797
797
|
}
|
|
798
798
|
function ne(e, t, n, o, a) {
|
|
799
799
|
const {
|
|
800
|
-
appendedButtonClass:
|
|
801
|
-
appendedContent:
|
|
802
|
-
} = n,
|
|
803
|
-
clearButtonClass:
|
|
804
|
-
clearButtonStyle:
|
|
800
|
+
appendedButtonClass: d,
|
|
801
|
+
appendedContent: s
|
|
802
|
+
} = n, i = y(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = y(() => s.value && !t.slots.groupTextTemplate), r = y(() => !!t.slots.groupTextTemplate), {
|
|
803
|
+
clearButtonClass: c,
|
|
804
|
+
clearButtonStyle: l,
|
|
805
805
|
onClearValue: p,
|
|
806
806
|
shouldShowClearButton: m
|
|
807
807
|
} = o;
|
|
808
808
|
function v() {
|
|
809
|
-
return
|
|
809
|
+
return B("span", {
|
|
810
810
|
id: "clearIcon",
|
|
811
|
-
class:
|
|
812
|
-
style:
|
|
813
|
-
onClick: (
|
|
814
|
-
}, [
|
|
811
|
+
class: c.value,
|
|
812
|
+
style: l.value,
|
|
813
|
+
onClick: (w) => p(w)
|
|
814
|
+
}, [B("i", {
|
|
815
815
|
class: "f-icon modal_close"
|
|
816
816
|
}, null)]);
|
|
817
817
|
}
|
|
818
|
-
function w
|
|
819
|
-
t.emit("iconMouseEnter",
|
|
818
|
+
function C(w) {
|
|
819
|
+
t.emit("iconMouseEnter", w);
|
|
820
820
|
}
|
|
821
|
-
function x(
|
|
822
|
-
t.emit("iconMouseLeave",
|
|
821
|
+
function x(w) {
|
|
822
|
+
t.emit("iconMouseLeave", w);
|
|
823
823
|
}
|
|
824
|
-
function
|
|
825
|
-
|
|
826
|
-
originalEvent:
|
|
827
|
-
}),
|
|
824
|
+
function T(w) {
|
|
825
|
+
i.value && t.emit("clickHandle", {
|
|
826
|
+
originalEvent: w
|
|
827
|
+
}), w.stopPropagation();
|
|
828
828
|
}
|
|
829
|
-
const S = e.type === "password" ? a.onClickAppendedButton :
|
|
830
|
-
function
|
|
831
|
-
return
|
|
829
|
+
const S = e.type === "password" ? a.onClickAppendedButton : T;
|
|
830
|
+
function E() {
|
|
831
|
+
return B("span", {
|
|
832
832
|
class: "input-group-text",
|
|
833
|
-
onMouseenter: (
|
|
834
|
-
onMouseleave: (
|
|
835
|
-
innerHTML:
|
|
836
|
-
onClick: (
|
|
833
|
+
onMouseenter: (w) => C(w),
|
|
834
|
+
onMouseleave: (w) => x(w),
|
|
835
|
+
innerHTML: s.value,
|
|
836
|
+
onClick: (w) => S(w)
|
|
837
837
|
}, null);
|
|
838
838
|
}
|
|
839
|
-
function
|
|
839
|
+
function k() {
|
|
840
840
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
841
841
|
}
|
|
842
|
-
function
|
|
843
|
-
return
|
|
842
|
+
function O() {
|
|
843
|
+
return u.value ? E : r.value ? k : "";
|
|
844
844
|
}
|
|
845
|
-
const
|
|
846
|
-
return () =>
|
|
847
|
-
class:
|
|
848
|
-
}, [m.value && v(),
|
|
845
|
+
const h = O();
|
|
846
|
+
return () => B("div", {
|
|
847
|
+
class: d.value
|
|
848
|
+
}, [m.value && v(), h && h()]);
|
|
849
849
|
}
|
|
850
850
|
const L = /* @__PURE__ */ Q({
|
|
851
851
|
name: "FInputGroup",
|
|
852
852
|
props: W,
|
|
853
853
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
854
854
|
setup(e, t) {
|
|
855
|
-
const n =
|
|
856
|
-
inputGroupClass:
|
|
857
|
-
inputType:
|
|
858
|
-
inputGroupStyle:
|
|
859
|
-
} = a,
|
|
855
|
+
const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
|
|
856
|
+
inputGroupClass: d,
|
|
857
|
+
inputType: s,
|
|
858
|
+
inputGroupStyle: i
|
|
859
|
+
} = a, u = ee(e), {
|
|
860
860
|
shouldShowAppendedButton: r
|
|
861
|
-
} =
|
|
862
|
-
onMouseEnter:
|
|
861
|
+
} = u, c = K(e, t, a), {
|
|
862
|
+
onMouseEnter: l,
|
|
863
863
|
onMouseLeave: p
|
|
864
|
-
} =
|
|
865
|
-
|
|
866
|
-
n.value =
|
|
867
|
-
}),
|
|
868
|
-
n.value =
|
|
869
|
-
}),
|
|
864
|
+
} = c, m = te(e, t, s, u), v = Ue(e, t), C = Ie(e, t, m, a), x = ne(e, t, u, c, m), T = qe(e, t), S = y(() => e.type === "number");
|
|
865
|
+
V(() => [e.value], ([k]) => {
|
|
866
|
+
n.value = k, o.value = k;
|
|
867
|
+
}), V(() => [e.modelValue], ([k]) => {
|
|
868
|
+
n.value = k, o.value = k;
|
|
869
|
+
}), G(() => {
|
|
870
870
|
e.value && (n.value = e.value, o.value = e.value);
|
|
871
871
|
});
|
|
872
|
-
const
|
|
872
|
+
const E = () => B(J, null, [B("div", {
|
|
873
873
|
id: "inputGroup",
|
|
874
|
-
class:
|
|
875
|
-
style:
|
|
876
|
-
onMouseenter:
|
|
874
|
+
class: d.value,
|
|
875
|
+
style: i.value,
|
|
876
|
+
onMouseenter: l,
|
|
877
877
|
onMouseleave: p
|
|
878
|
-
}, [S.value ? v() :
|
|
879
|
-
return () =>
|
|
878
|
+
}, [S.value ? v() : B(J, null, [T(), C(), r.value && x()])])]);
|
|
879
|
+
return () => E();
|
|
880
880
|
}
|
|
881
881
|
});
|
|
882
882
|
function We(e, t) {
|
|
883
883
|
e.schema;
|
|
884
|
-
const n =
|
|
885
|
-
function a(
|
|
884
|
+
const n = b(!0), o = b(!0);
|
|
885
|
+
function a(l) {
|
|
886
886
|
return !1;
|
|
887
887
|
}
|
|
888
|
-
function
|
|
888
|
+
function d() {
|
|
889
889
|
return !1;
|
|
890
890
|
}
|
|
891
|
-
function
|
|
891
|
+
function s() {
|
|
892
892
|
return !1;
|
|
893
893
|
}
|
|
894
|
-
function
|
|
894
|
+
function i() {
|
|
895
895
|
return !0;
|
|
896
896
|
}
|
|
897
|
-
function l
|
|
897
|
+
function u(l) {
|
|
898
898
|
}
|
|
899
899
|
function r() {
|
|
900
900
|
}
|
|
901
|
-
function
|
|
901
|
+
function c(l) {
|
|
902
902
|
return null;
|
|
903
903
|
}
|
|
904
904
|
return {
|
|
905
905
|
canAccepts: a,
|
|
906
|
-
checkCanDeleteComponent:
|
|
907
|
-
checkCanMoveComponent:
|
|
908
|
-
hideNestedPaddingInDesginerView:
|
|
909
|
-
onAcceptMovedChildElement:
|
|
906
|
+
checkCanDeleteComponent: d,
|
|
907
|
+
checkCanMoveComponent: s,
|
|
908
|
+
hideNestedPaddingInDesginerView: i,
|
|
909
|
+
onAcceptMovedChildElement: u,
|
|
910
910
|
resolveComponentContext: r,
|
|
911
911
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
912
912
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
913
|
-
getPropsConfig:
|
|
913
|
+
getPropsConfig: c
|
|
914
914
|
};
|
|
915
915
|
}
|
|
916
916
|
class He {
|
|
917
917
|
constructor(t, n) {
|
|
918
|
-
|
|
919
|
-
|
|
920
|
-
|
|
921
|
-
|
|
922
|
-
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
918
|
+
A(this, "componentId");
|
|
919
|
+
A(this, "viewModelId");
|
|
920
|
+
A(this, "eventsEditorUtils");
|
|
921
|
+
A(this, "formSchemaUtils");
|
|
922
|
+
A(this, "formMetadataConverter");
|
|
923
|
+
A(this, "designViewModelUtils");
|
|
924
|
+
A(this, "designViewModelField");
|
|
925
|
+
A(this, "controlCreatorUtils");
|
|
926
|
+
A(this, "designerHostService");
|
|
927
|
+
A(this, "schemaService", null);
|
|
928
|
+
A(this, "metadataService", null);
|
|
929
|
+
A(this, "propertyConfig", {
|
|
930
930
|
type: "object",
|
|
931
931
|
categories: {}
|
|
932
932
|
});
|
|
@@ -995,12 +995,12 @@ class He {
|
|
|
995
995
|
};
|
|
996
996
|
}
|
|
997
997
|
}
|
|
998
|
-
const
|
|
998
|
+
const j = class j {
|
|
999
999
|
/**
|
|
1000
1000
|
* 根据绑定字段类型获取可用的输入类控件
|
|
1001
1001
|
*/
|
|
1002
1002
|
static getEditorTypesByMDataType(t) {
|
|
1003
|
-
const n =
|
|
1003
|
+
const n = j.fieldControlTypeMapping[t];
|
|
1004
1004
|
return n || [{ key: "", value: "" }];
|
|
1005
1005
|
}
|
|
1006
1006
|
/**
|
|
@@ -1008,8 +1008,8 @@ const N = class N {
|
|
|
1008
1008
|
*/
|
|
1009
1009
|
static getAllInputTypes() {
|
|
1010
1010
|
const t = [];
|
|
1011
|
-
for (let n in
|
|
1012
|
-
|
|
1011
|
+
for (let n in j.fieldControlTypeMapping)
|
|
1012
|
+
j.fieldControlTypeMapping[n].forEach((o) => {
|
|
1013
1013
|
t.find((a) => a.key === o.key && a.value === o.value) || t.push({ key: o.key, value: o.value });
|
|
1014
1014
|
});
|
|
1015
1015
|
return t;
|
|
@@ -1018,7 +1018,7 @@ const N = class N {
|
|
|
1018
1018
|
/**
|
|
1019
1019
|
* <字段类型,可配置的控件类型列表>的映射
|
|
1020
1020
|
*/
|
|
1021
|
-
|
|
1021
|
+
A(j, "fieldControlTypeMapping", {
|
|
1022
1022
|
String: [
|
|
1023
1023
|
{ key: f["input-group"].type, value: f["input-group"].name },
|
|
1024
1024
|
{ key: f.lookup.type, value: f.lookup.name },
|
|
@@ -1064,8 +1064,8 @@ P(N, "fieldControlTypeMapping", {
|
|
|
1064
1064
|
{ key: f["radio-group"].type, value: f["radio-group"].name }
|
|
1065
1065
|
]
|
|
1066
1066
|
});
|
|
1067
|
-
let $ =
|
|
1068
|
-
const ze =
|
|
1067
|
+
let $ = j;
|
|
1068
|
+
const ze = b(0);
|
|
1069
1069
|
class Je extends He {
|
|
1070
1070
|
constructor(t, n) {
|
|
1071
1071
|
super(t, n);
|
|
@@ -1074,10 +1074,10 @@ class Je extends He {
|
|
|
1074
1074
|
return this.propertyConfig.categories.basic = this.getBasicProperties(t, n), this.propertyConfig.categories.appearance = this.getAppearanceProperties(t), this.propertyConfig.categories.editor = this.getEditorProperties(t), this.propertyConfig;
|
|
1075
1075
|
}
|
|
1076
1076
|
getBasicProperties(t, n) {
|
|
1077
|
-
var
|
|
1077
|
+
var s;
|
|
1078
1078
|
var o = this;
|
|
1079
1079
|
this.setDesignViewModelField(t);
|
|
1080
|
-
const a = this.formSchemaUtils.getFormMetadataBasicInfo(),
|
|
1080
|
+
const a = this.formSchemaUtils.getFormMetadataBasicInfo(), d = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1081
1081
|
return {
|
|
1082
1082
|
description: "Basic Information",
|
|
1083
1083
|
title: "基本信息",
|
|
@@ -1089,8 +1089,8 @@ class Je extends He {
|
|
|
1089
1089
|
readonly: !0
|
|
1090
1090
|
},
|
|
1091
1091
|
type: {
|
|
1092
|
-
description: "
|
|
1093
|
-
title: "
|
|
1092
|
+
description: "编辑器类型",
|
|
1093
|
+
title: "编辑器类型",
|
|
1094
1094
|
type: "string",
|
|
1095
1095
|
refreshPanelAfterChanged: !0,
|
|
1096
1096
|
$converter: "/converter/change-editor.converter",
|
|
@@ -1099,7 +1099,7 @@ class Je extends He {
|
|
|
1099
1099
|
textField: "value",
|
|
1100
1100
|
valueField: "key",
|
|
1101
1101
|
editable: !1,
|
|
1102
|
-
data: o.designViewModelField ? $.getEditorTypesByMDataType((
|
|
1102
|
+
data: o.designViewModelField ? $.getEditorTypesByMDataType((s = o.designViewModelField.type) == null ? void 0 : s.name) : $.getAllInputTypes()
|
|
1103
1103
|
}
|
|
1104
1104
|
},
|
|
1105
1105
|
label: {
|
|
@@ -1124,15 +1124,19 @@ class Je extends He {
|
|
|
1124
1124
|
{ field: "fieldType", title: "字段类型" }
|
|
1125
1125
|
],
|
|
1126
1126
|
textField: "bindingField",
|
|
1127
|
-
data:
|
|
1127
|
+
data: d
|
|
1128
1128
|
}
|
|
1129
1129
|
}
|
|
1130
1130
|
},
|
|
1131
|
-
setPropertyRelates(
|
|
1132
|
-
if (
|
|
1133
|
-
switch (
|
|
1131
|
+
setPropertyRelates(i, u) {
|
|
1132
|
+
if (i)
|
|
1133
|
+
switch (i && i.propertyID) {
|
|
1134
1134
|
case "type": {
|
|
1135
|
-
o.changeControlType(t,
|
|
1135
|
+
o.changeControlType(t, i, n);
|
|
1136
|
+
break;
|
|
1137
|
+
}
|
|
1138
|
+
case "label": {
|
|
1139
|
+
i.needRefreshControlTree = !0;
|
|
1136
1140
|
break;
|
|
1137
1141
|
}
|
|
1138
1142
|
}
|
|
@@ -1178,12 +1182,12 @@ class Je extends He {
|
|
|
1178
1182
|
* @param newControlType 新控件类型
|
|
1179
1183
|
*/
|
|
1180
1184
|
changeControlType(t, n, o) {
|
|
1181
|
-
var r,
|
|
1182
|
-
const a = n.propertyValue,
|
|
1183
|
-
if (!
|
|
1185
|
+
var r, c, l, p;
|
|
1186
|
+
const a = n.propertyValue, d = o && o.parent && o.parent.schema;
|
|
1187
|
+
if (!d)
|
|
1184
1188
|
return;
|
|
1185
|
-
const
|
|
1186
|
-
let
|
|
1189
|
+
const s = d.contents.findIndex((m) => m.id === t.id), i = d.contents[s];
|
|
1190
|
+
let u;
|
|
1187
1191
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1188
1192
|
editor: {
|
|
1189
1193
|
$type: a
|
|
@@ -1191,30 +1195,30 @@ class Je extends He {
|
|
|
1191
1195
|
name: this.designViewModelField.name,
|
|
1192
1196
|
require: this.designViewModelField.require,
|
|
1193
1197
|
readonly: this.designViewModelField.readonly
|
|
1194
|
-
}, !1),
|
|
1195
|
-
id:
|
|
1196
|
-
appearance:
|
|
1197
|
-
size:
|
|
1198
|
-
label:
|
|
1199
|
-
binding:
|
|
1200
|
-
visible:
|
|
1201
|
-
}), Object.assign(
|
|
1202
|
-
isTextArea:
|
|
1203
|
-
placeholder: (r =
|
|
1204
|
-
holdPlace: (
|
|
1205
|
-
readonly: (
|
|
1206
|
-
require: (p =
|
|
1207
|
-
}),
|
|
1198
|
+
}, !1), u = this.controlCreatorUtils.setFormFieldProperty(this.designViewModelField, a)), u || (u = _("form-group") || {}, u.editor = _(a) || {}, delete u.editor.id, delete u.editor.binding, delete u.editor.appearance), Object.assign(u, {
|
|
1199
|
+
id: i.id,
|
|
1200
|
+
appearance: i.appearance,
|
|
1201
|
+
size: i.size,
|
|
1202
|
+
label: i.label,
|
|
1203
|
+
binding: i.binding,
|
|
1204
|
+
visible: i.visible
|
|
1205
|
+
}), Object.assign(u.editor, {
|
|
1206
|
+
isTextArea: u.isTextArea && i.isTextArea,
|
|
1207
|
+
placeholder: (r = i.editor) == null ? void 0 : r.placeholder,
|
|
1208
|
+
holdPlace: (c = i.editor) == null ? void 0 : c.holdPlace,
|
|
1209
|
+
readonly: (l = i.editor) == null ? void 0 : l.readonly,
|
|
1210
|
+
require: (p = i.editor) == null ? void 0 : p.require
|
|
1211
|
+
}), d.contents.splice(s, 1), d.contents.splice(s, 0, u), o.schema = Object.assign(i, u), Array.from(document.getElementsByClassName("dgComponentSelected")).forEach(
|
|
1208
1212
|
(m) => m.classList.remove("dgComponentSelected")
|
|
1209
1213
|
), ze.value++;
|
|
1210
1214
|
}
|
|
1211
1215
|
getComponentConfig(t, n = {}, o = {}) {
|
|
1212
1216
|
const a = Object.assign({
|
|
1213
|
-
description: "
|
|
1214
|
-
title: "
|
|
1217
|
+
description: "编辑器",
|
|
1218
|
+
title: "编辑器",
|
|
1215
1219
|
type: "input-group",
|
|
1216
1220
|
$converter: "/converter/property-editor.converter"
|
|
1217
|
-
}, n),
|
|
1221
|
+
}, n), d = Object.assign({
|
|
1218
1222
|
readonly: {
|
|
1219
1223
|
description: "",
|
|
1220
1224
|
title: "只读",
|
|
@@ -1236,7 +1240,7 @@ class Je extends He {
|
|
|
1236
1240
|
type: "string"
|
|
1237
1241
|
}
|
|
1238
1242
|
}, o);
|
|
1239
|
-
return { ...a, properties: { ...
|
|
1243
|
+
return { ...a, properties: { ...d } };
|
|
1240
1244
|
}
|
|
1241
1245
|
}
|
|
1242
1246
|
class Ze extends Je {
|
|
@@ -1249,148 +1253,148 @@ function _e(e, t) {
|
|
|
1249
1253
|
canAccepts: n,
|
|
1250
1254
|
checkCanDeleteComponent: o,
|
|
1251
1255
|
checkCanMoveComponent: a,
|
|
1252
|
-
hideNestedPaddingInDesginerView:
|
|
1253
|
-
onAcceptMovedChildElement:
|
|
1254
|
-
resolveComponentContext:
|
|
1255
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1256
|
+
hideNestedPaddingInDesginerView: d,
|
|
1257
|
+
onAcceptMovedChildElement: s,
|
|
1258
|
+
resolveComponentContext: i,
|
|
1259
|
+
triggerBelongedComponentToMoveWhenMoved: u,
|
|
1256
1260
|
triggerBelongedComponentToDeleteWhenDeleted: r
|
|
1257
|
-
} = We(e),
|
|
1258
|
-
function
|
|
1259
|
-
return new Ze(p, t).getPropertyConfig(
|
|
1261
|
+
} = We(e), c = e.schema;
|
|
1262
|
+
function l(p, m) {
|
|
1263
|
+
return new Ze(p, t).getPropertyConfig(c, m);
|
|
1260
1264
|
}
|
|
1261
1265
|
return {
|
|
1262
1266
|
canAccepts: n,
|
|
1263
1267
|
checkCanDeleteComponent: o,
|
|
1264
1268
|
checkCanMoveComponent: a,
|
|
1265
|
-
hideNestedPaddingInDesginerView:
|
|
1266
|
-
onAcceptMovedChildElement:
|
|
1267
|
-
resolveComponentContext:
|
|
1268
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1269
|
+
hideNestedPaddingInDesginerView: d,
|
|
1270
|
+
onAcceptMovedChildElement: s,
|
|
1271
|
+
resolveComponentContext: i,
|
|
1272
|
+
triggerBelongedComponentToMoveWhenMoved: u,
|
|
1269
1273
|
triggerBelongedComponentToDeleteWhenDeleted: r,
|
|
1270
|
-
getPropsConfig:
|
|
1274
|
+
getPropsConfig: l
|
|
1271
1275
|
};
|
|
1272
1276
|
}
|
|
1273
1277
|
function Qe(e, t, n) {
|
|
1274
|
-
var
|
|
1278
|
+
var O;
|
|
1275
1279
|
function o() {
|
|
1276
1280
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
1277
1281
|
}
|
|
1278
1282
|
o();
|
|
1279
|
-
const a = n && n.getStyles && n.getStyles() || "",
|
|
1280
|
-
function
|
|
1283
|
+
const a = n && n.getStyles && n.getStyles() || "", d = n && n.getDesignerClass && n.getDesignerClass() || "", s = b();
|
|
1284
|
+
function i() {
|
|
1281
1285
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
1282
1286
|
}
|
|
1283
|
-
function
|
|
1287
|
+
function u() {
|
|
1284
1288
|
return !1;
|
|
1285
1289
|
}
|
|
1286
1290
|
function r() {
|
|
1287
1291
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
1288
1292
|
}
|
|
1289
|
-
function
|
|
1293
|
+
function c() {
|
|
1290
1294
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
1291
1295
|
}
|
|
1292
|
-
function
|
|
1293
|
-
if (!
|
|
1296
|
+
function l(h) {
|
|
1297
|
+
if (!h || !h.value)
|
|
1294
1298
|
return null;
|
|
1295
|
-
if (
|
|
1296
|
-
return
|
|
1297
|
-
const
|
|
1298
|
-
return
|
|
1299
|
+
if (h.value.schema && h.value.schema.type === "component")
|
|
1300
|
+
return h.value;
|
|
1301
|
+
const w = b(h == null ? void 0 : h.value.parent), M = l(w);
|
|
1302
|
+
return M || null;
|
|
1299
1303
|
}
|
|
1300
|
-
function p(
|
|
1301
|
-
const { componentInstance:
|
|
1302
|
-
return !
|
|
1304
|
+
function p(h = t) {
|
|
1305
|
+
const { componentInstance: w, designerItemElementRef: M } = h;
|
|
1306
|
+
return !w || !w.value ? null : w.value.canMove ? M : p(h.parent);
|
|
1303
1307
|
}
|
|
1304
|
-
function m(
|
|
1305
|
-
return !!n && n.canAccepts(
|
|
1308
|
+
function m(h) {
|
|
1309
|
+
return !!n && n.canAccepts(h);
|
|
1306
1310
|
}
|
|
1307
1311
|
function v() {
|
|
1308
1312
|
return (t == null ? void 0 : t.schema.label) || (t == null ? void 0 : t.schema.title) || (t == null ? void 0 : t.schema.name);
|
|
1309
1313
|
}
|
|
1310
|
-
function
|
|
1314
|
+
function C() {
|
|
1311
1315
|
}
|
|
1312
|
-
function x(
|
|
1313
|
-
|
|
1316
|
+
function x(h, w) {
|
|
1317
|
+
w && n != null && n.onAcceptMovedChildElement && n.onAcceptMovedChildElement(w);
|
|
1314
1318
|
}
|
|
1315
|
-
function
|
|
1316
|
-
const { componentType:
|
|
1317
|
-
let
|
|
1318
|
-
n && n.onResolveNewComponentSchema && (
|
|
1319
|
-
const
|
|
1320
|
-
return
|
|
1319
|
+
function T(h, w) {
|
|
1320
|
+
const { componentType: M } = h;
|
|
1321
|
+
let P = I(M, h, w);
|
|
1322
|
+
n && n.onResolveNewComponentSchema && (P = n.onResolveNewComponentSchema(h, P));
|
|
1323
|
+
const N = M.toLowerCase().replace("-", "_");
|
|
1324
|
+
return P && !P.id && P.type === M && (P.id = `${N}_${Math.random().toString().slice(2, 6)}`), P;
|
|
1321
1325
|
}
|
|
1322
|
-
function S(
|
|
1323
|
-
const
|
|
1324
|
-
|
|
1325
|
-
let
|
|
1326
|
-
n && n.onAcceptNewChildElement && (
|
|
1327
|
-
const U =
|
|
1328
|
-
return
|
|
1326
|
+
function S(h, w) {
|
|
1327
|
+
const M = String(h.getAttribute("data-controltype")), P = h.getAttribute("data-feature"), N = P ? JSON.parse(P) : {};
|
|
1328
|
+
N.parentComponentInstance = s.value;
|
|
1329
|
+
let D = I(M, N);
|
|
1330
|
+
n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, w, D));
|
|
1331
|
+
const U = M.toLowerCase().replace("-", "_");
|
|
1332
|
+
return D && !D.id && D.type === M && (D.id = `${U}_${Math.random().toString().slice(2, 6)}`), D;
|
|
1329
1333
|
}
|
|
1330
|
-
function
|
|
1334
|
+
function E(h) {
|
|
1331
1335
|
}
|
|
1332
|
-
function
|
|
1336
|
+
function k(...h) {
|
|
1333
1337
|
if (n && n.getPropsConfig)
|
|
1334
|
-
return n.getPropsConfig(...
|
|
1338
|
+
return n.getPropsConfig(...h);
|
|
1335
1339
|
}
|
|
1336
|
-
return
|
|
1337
|
-
canMove:
|
|
1338
|
-
canSelectParent:
|
|
1340
|
+
return s.value = {
|
|
1341
|
+
canMove: i(),
|
|
1342
|
+
canSelectParent: u(),
|
|
1339
1343
|
canDelete: r(),
|
|
1340
|
-
canNested: !
|
|
1344
|
+
canNested: !c(),
|
|
1341
1345
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1342
1346
|
elementRef: e,
|
|
1343
|
-
parent: (
|
|
1347
|
+
parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
1344
1348
|
schema: t == null ? void 0 : t.schema,
|
|
1345
1349
|
styles: a,
|
|
1346
|
-
designerClass:
|
|
1350
|
+
designerClass: d,
|
|
1347
1351
|
canAccepts: m,
|
|
1348
|
-
getBelongedComponentInstance:
|
|
1352
|
+
getBelongedComponentInstance: l,
|
|
1349
1353
|
getDraggableDesignItemElement: p,
|
|
1350
1354
|
getDraggingDisplayText: v,
|
|
1351
|
-
getPropConfig:
|
|
1352
|
-
getDragScopeElement:
|
|
1355
|
+
getPropConfig: k,
|
|
1356
|
+
getDragScopeElement: C,
|
|
1353
1357
|
onAcceptMovedChildElement: x,
|
|
1354
1358
|
onAcceptNewChildElement: S,
|
|
1355
|
-
onChildElementMovedOut:
|
|
1356
|
-
addNewChildComponentSchema:
|
|
1359
|
+
onChildElementMovedOut: E,
|
|
1360
|
+
addNewChildComponentSchema: T,
|
|
1357
1361
|
updateDragAndDropRules: o,
|
|
1358
|
-
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved ||
|
|
1359
|
-
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted ||
|
|
1360
|
-
},
|
|
1362
|
+
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
1363
|
+
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
|
|
1364
|
+
}, s;
|
|
1361
1365
|
}
|
|
1362
1366
|
const Xe = /* @__PURE__ */ Q({
|
|
1363
1367
|
name: "FInputGroupDesign",
|
|
1364
1368
|
props: W,
|
|
1365
1369
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
1366
1370
|
setup(e, t) {
|
|
1367
|
-
const n =
|
|
1368
|
-
inputGroupClass:
|
|
1369
|
-
inputType:
|
|
1370
|
-
inputGroupStyle:
|
|
1371
|
-
} = a,
|
|
1371
|
+
const n = b(e.modelValue), o = b(e.modelValue), a = Ve(e, t, n, o), {
|
|
1372
|
+
inputGroupClass: d,
|
|
1373
|
+
inputType: s,
|
|
1374
|
+
inputGroupStyle: i
|
|
1375
|
+
} = a, u = ee(e), {
|
|
1372
1376
|
shouldShowAppendedButton: r
|
|
1373
|
-
} =
|
|
1374
|
-
onMouseEnter:
|
|
1377
|
+
} = u, c = K(e, t, a), {
|
|
1378
|
+
onMouseEnter: l,
|
|
1375
1379
|
onMouseLeave: p
|
|
1376
|
-
} =
|
|
1377
|
-
|
|
1380
|
+
} = c, m = te(e, t, s, u), v = b(), C = Z("designer-host-service"), x = Z("design-item-context"), T = _e(x, C), S = Qe(v, x, T);
|
|
1381
|
+
G(() => {
|
|
1378
1382
|
v.value.componentInstance = S;
|
|
1379
1383
|
}), t.expose(S.value);
|
|
1380
|
-
const
|
|
1381
|
-
return () =>
|
|
1384
|
+
const E = ne(e, t, u, c, m), k = b();
|
|
1385
|
+
return () => B("div", {
|
|
1382
1386
|
id: "inputGroup",
|
|
1383
1387
|
ref: v,
|
|
1384
|
-
class:
|
|
1385
|
-
style:
|
|
1386
|
-
onMouseenter:
|
|
1388
|
+
class: d.value,
|
|
1389
|
+
style: i.value,
|
|
1390
|
+
onMouseenter: l,
|
|
1387
1391
|
onMouseleave: p
|
|
1388
|
-
}, [
|
|
1389
|
-
ref:
|
|
1392
|
+
}, [B("input", {
|
|
1393
|
+
ref: k,
|
|
1390
1394
|
class: "form-control",
|
|
1391
1395
|
readonly: !0,
|
|
1392
1396
|
placeholder: e.placeholder
|
|
1393
|
-
}, null), r.value &&
|
|
1397
|
+
}, null), r.value && E()]);
|
|
1394
1398
|
}
|
|
1395
1399
|
});
|
|
1396
1400
|
L.register = (e, t, n, o) => {
|