@farris/ui-vue 1.2.5 → 1.2.7
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 +147 -139
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +122 -131
- package/components/avatar/index.umd.cjs +1 -1
- package/components/avatar/package.json +1 -1
- package/components/border-editor/package.json +1 -1
- package/components/button/package.json +1 -1
- package/components/button-edit/index.css +1 -0
- package/components/button-edit/package.json +1 -1
- package/components/button-group/package.json +1 -1
- package/components/calculator/package.json +1 -1
- package/components/calendar/package.json +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +216 -223
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/checkbox/package.json +1 -1
- package/components/color-picker/package.json +1 -1
- package/components/combo-list/index.esm.js +201 -181
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-list/package.json +1 -1
- package/components/combo-tree/index.esm.js +340 -107
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/combo-tree/package.json +1 -1
- package/components/common/package.json +1 -1
- package/components/component/index.esm.js +36 -29
- package/components/component/index.umd.cjs +1 -1
- package/components/component/package.json +1 -1
- package/components/condition/index.esm.js +341 -338
- package/components/condition/index.umd.cjs +1 -1
- package/components/condition/package.json +1 -1
- package/components/content-container/index.esm.js +9 -13
- package/components/content-container/index.umd.cjs +1 -1
- package/components/content-container/package.json +1 -1
- package/components/{tree-grid/style.css → data-grid/index.css} +1 -1
- package/components/data-grid/index.esm.js +3415 -3295
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2719 -2717
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +31 -40
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.esm.js +23 -20
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/package.json +1 -1
- package/components/discussion-editor/package.json +1 -1
- package/components/discussion-list/package.json +1 -1
- package/components/drawer/package.json +1 -1
- package/components/dropdown/index.esm.js +86 -86
- package/components/dropdown/index.umd.cjs +1 -1
- package/components/dropdown/package.json +1 -1
- package/components/dynamic-form/index.esm.js +578 -584
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-form/package.json +1 -1
- package/components/dynamic-resolver/index.esm.js +56 -47
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-resolver/package.json +1 -1
- package/components/dynamic-view/index.esm.js +287 -278
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/dynamic-view/package.json +1 -1
- package/components/enum-editor/package.json +1 -1
- package/components/events-editor/package.json +1 -1
- package/components/expression-editor/package.json +1 -1
- package/components/external-container/index.css +1 -0
- package/components/external-container/index.esm.js +1923 -1908
- package/components/external-container/index.umd.cjs +1 -1
- package/components/external-container/package.json +1 -1
- package/components/field-selector/index.css +1 -0
- package/components/field-selector/index.esm.js +3719 -3604
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/field-selector/package.json +1 -1
- package/components/filter-bar/{style.css → index.css} +1 -1
- package/components/filter-bar/index.esm.js +483 -470
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.esm.js +37 -34
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/flow-canvas/package.json +1 -1
- package/components/image-cropper/package.json +1 -1
- package/components/input-group/index.esm.js +258 -267
- package/components/input-group/index.umd.cjs +1 -1
- package/components/input-group/package.json +1 -1
- package/components/layout/package.json +1 -1
- package/components/list-nav/package.json +1 -1
- package/components/list-view/index.esm.js +1452 -1450
- package/components/list-view/index.umd.cjs +1 -1
- package/components/list-view/package.json +1 -1
- package/components/loading/package.json +1 -1
- package/components/locale/package.json +1 -1
- package/components/lookup/index.css +1 -0
- package/components/lookup/index.esm.js +4860 -4657
- package/components/lookup/index.umd.cjs +1 -1
- package/components/lookup/package.json +1 -1
- package/components/mapping-editor/index.css +1 -0
- package/components/mapping-editor/index.esm.js +4411 -4259
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/mapping-editor/package.json +1 -1
- package/components/message-box/index.css +1 -0
- package/components/message-box/index.esm.js +397 -386
- package/components/message-box/index.umd.cjs +1 -1
- package/components/message-box/package.json +1 -1
- package/components/modal/index.css +1 -0
- package/components/modal/index.esm.js +308 -297
- package/components/modal/index.umd.cjs +1 -1
- package/components/modal/package.json +1 -1
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +763 -741
- package/components/order/index.umd.cjs +1 -1
- package/components/order/package.json +1 -1
- package/components/page-footer/package.json +1 -1
- package/components/page-header/index.esm.js +948 -945
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/package.json +1 -1
- package/components/popover/package.json +1 -1
- package/components/progress/package.json +1 -1
- package/components/property-editor/index.esm.js +485 -466
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +437 -426
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/property-panel/package.json +1 -1
- package/components/radio-button/package.json +1 -1
- package/components/radio-group/index.esm.js +98 -107
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/radio-group/package.json +1 -1
- package/components/rate/package.json +1 -1
- package/components/response-layout/package.json +1 -1
- package/components/response-layout-editor/{style.css → index.css} +1 -1
- package/components/response-layout-editor/index.esm.js +840 -800
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-layout-editor/package.json +1 -1
- package/components/response-toolbar/index.esm.js +757 -760
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/response-toolbar/package.json +1 -1
- package/components/schema-selector/index.css +1 -0
- package/components/schema-selector/index.esm.js +3659 -3432
- package/components/schema-selector/index.umd.cjs +8 -1
- package/components/schema-selector/package.json +1 -1
- package/components/search-box/package.json +1 -1
- package/components/section/index.esm.js +21 -14
- package/components/section/index.umd.cjs +1 -1
- package/components/section/package.json +1 -1
- package/components/smoke-detector/package.json +1 -1
- package/components/spacing-editor/package.json +1 -1
- package/components/splitter/package.json +1 -1
- package/components/step/package.json +1 -1
- package/components/switch/index.esm.js +126 -135
- package/components/switch/index.umd.cjs +1 -1
- package/components/switch/package.json +1 -1
- package/components/tabs/index.css +1 -0
- package/components/tabs/index.esm.js +1400 -1379
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tabs/package.json +1 -1
- package/components/tags/package.json +1 -1
- package/components/text/package.json +1 -1
- package/components/textarea/index.esm.js +97 -106
- package/components/textarea/index.umd.cjs +1 -1
- package/components/textarea/package.json +1 -1
- package/components/time-picker/index.css +1 -0
- package/components/time-picker/index.esm.js +393 -402
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/time-picker/package.json +1 -1
- package/components/tooltip/package.json +1 -1
- package/components/transfer/index.esm.js +124 -122
- package/components/transfer/index.umd.cjs +1 -1
- package/components/transfer/package.json +1 -1
- package/components/{data-grid/style.css → tree-grid/index.css} +1 -1
- package/components/tree-grid/index.esm.js +3531 -3412
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +2046 -2044
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/tree-view/package.json +1 -1
- package/components/uploader/package.json +1 -1
- package/components/verify-detail/package.json +1 -1
- package/components/video/package.json +1 -1
- package/components/weather/package.json +1 -1
- package/farris.all.esm.js +12370 -11917
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +6 -0
- package/types/combo-list/src/components/list-container.props.d.ts +9 -1
- package/types/combo-tree/src/combo-tree.props.d.ts +4 -0
- package/types/combo-tree/src/components/tree-container.component.d.ts +13 -3
- package/types/combo-tree/src/components/tree-container.props.d.ts +15 -1
- package/types/combo-tree/src/schema/schema-mapper.d.ts +2 -0
- package/types/combo-tree/src/schema/schema-resolver.d.ts +2 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -5
- package/types/data-grid/src/data-grid.component.d.ts +2 -2
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/property-config/data-grid.property-config.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +8 -8
- package/types/designer-canvas/src/composition/types.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/converter/pagination.converter.d.ts +6 -0
- package/types/dynamic-resolver/src/visible-prop-resolver.d.ts +3 -0
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +7 -3
- package/types/lookup/src/property-config/lookup.property-config.d.ts +31 -27
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/page-header/src/page-header.props.d.ts +7 -0
- package/types/page-header/src/property-config/page-header.property-config.d.ts +1 -1
- package/types/property-panel/src/composition/entity/base-property.d.ts +2 -16
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +21 -0
- package/types/response-toolbar/index.d.ts +9 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -1
- package/types/response-toolbar/src/property-config/response-toolbar.property-config.d.ts +1 -1
- package/types/response-toolbar/src/response-toolbar.component.d.ts +4 -2
- package/types/response-toolbar/src/response-toolbar.props.d.ts +9 -2
- package/types/schema-selector/src/composition/types.d.ts +3 -1
- package/types/schema-selector/src/schema-selector-editor.component.d.ts +5 -1
- package/types/tabs/src/designer/tab-toolbar.design.component.d.ts +1 -1
- package/types/tabs/src/tabs.props.d.ts +8 -0
- package/components/button-edit/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/lookup/style.css +0 -1
- package/components/mapping-editor/style.css +0 -1
- package/components/message-box/style.css +0 -1
- package/components/modal/style.css +0 -1
- package/components/schema-selector/style.css +0 -1
- package/components/tabs/style.css +0 -1
- package/components/time-picker/style.css +0 -1
- package/style.css +0 -1
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +0 -19
- /package/components/border-editor/{style.css → index.css} +0 -0
- /package/components/checkbox/{style.css → index.css} +0 -0
- /package/components/date-picker/{style.css → index.css} +0 -0
- /package/components/designer-canvas/{style.css → index.css} +0 -0
- /package/components/designer-outline/{style.css → index.css} +0 -0
- /package/components/designer-toolbox/{style.css → index.css} +0 -0
- /package/components/discussion-editor/{style.css → index.css} +0 -0
- /package/components/discussion-list/{style.css → index.css} +0 -0
- /package/components/drawer/{style.css → index.css} +0 -0
- /package/components/events-editor/{style.css → index.css} +0 -0
- /package/components/flow-canvas/{style.css → index.css} +0 -0
- /package/components/list-view/{style.css → index.css} +0 -0
- /package/components/order/{style.css → index.css} +0 -0
- /package/components/property-editor/{style.css → index.css} +0 -0
- /package/components/property-panel/{style.css → index.css} +0 -0
- /package/components/radio-button/{style.css → index.css} +0 -0
- /package/components/radio-group/{style.css → index.css} +0 -0
- /package/components/smoke-detector/{style.css → index.css} +0 -0
- /package/components/spacing-editor/{style.css → index.css} +0 -0
- /package/components/splitter/{style.css → index.css} +0 -0
- /package/components/switch/{style.css → index.css} +0 -0
- /package/components/transfer/{style.css → index.css} +0 -0
- /package/components/uploader/{style.css → index.css} +0 -0
- /package/components/weather/{style.css → index.css} +0 -0
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var ne = Object.defineProperty;
|
|
2
2
|
var oe = (e, t, n) => t in e ? ne(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
-
var
|
|
3
|
+
var x = (e, t, n) => oe(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
4
|
import { ref as b, computed as g, watch as E, onMounted as L, nextTick as z, createVNode as B, reactive as ae, withDirectives as ie, resolveDirective as re, defineComponent as Q, Fragment as W, inject as q } from "vue";
|
|
5
5
|
import { cloneDeep as le } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
7
|
-
import { useNumber as ue, useFormat as
|
|
7
|
+
import { useNumber as ue, useFormat as ce, useSpinner as se, useTextBox as pe } from "@farris/ui-vue/components/number-spinner";
|
|
8
8
|
const R = {}, _ = {};
|
|
9
9
|
function U(e) {
|
|
10
|
-
const { properties: t, title: n } = e, o = Object.keys(t).reduce((a,
|
|
10
|
+
const { properties: t, title: n } = e, o = Object.keys(t).reduce((a, l) => (a[l] = t[l].type === "object" && t[l].properties ? U(t[l]) : le(t[l].default), a), {});
|
|
11
11
|
return o.id = `${n}-${Date.now()}`, o;
|
|
12
12
|
}
|
|
13
13
|
function G(e, t = {}) {
|
|
@@ -26,12 +26,12 @@ function de(e, t) {
|
|
|
26
26
|
function me(e, t) {
|
|
27
27
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, a) => {
|
|
28
28
|
if (t.has(a)) {
|
|
29
|
-
const
|
|
30
|
-
if (typeof
|
|
31
|
-
o[
|
|
29
|
+
const l = t.get(a);
|
|
30
|
+
if (typeof l == "string")
|
|
31
|
+
o[l] = e[a];
|
|
32
32
|
else {
|
|
33
|
-
const
|
|
34
|
-
Object.assign(o,
|
|
33
|
+
const d = l(a, e[a], e);
|
|
34
|
+
Object.assign(o, d);
|
|
35
35
|
}
|
|
36
36
|
} else
|
|
37
37
|
o[a] = e[a];
|
|
@@ -43,65 +43,65 @@ function ye(e, t, n = /* @__PURE__ */ new Map()) {
|
|
|
43
43
|
return me(o, n);
|
|
44
44
|
}
|
|
45
45
|
function fe(e = {}) {
|
|
46
|
-
function t(i,
|
|
46
|
+
function t(i, u, r, c) {
|
|
47
47
|
if (typeof r == "number")
|
|
48
|
-
return
|
|
48
|
+
return c[i].length === r;
|
|
49
49
|
if (typeof r == "object") {
|
|
50
50
|
const y = Object.keys(r)[0], f = r[y];
|
|
51
51
|
if (y === "not")
|
|
52
|
-
return Number(
|
|
52
|
+
return Number(c[i].length) !== Number(f);
|
|
53
53
|
if (y === "moreThan")
|
|
54
|
-
return Number(
|
|
54
|
+
return Number(c[i].length) >= Number(f);
|
|
55
55
|
if (y === "lessThan")
|
|
56
|
-
return Number(
|
|
56
|
+
return Number(c[i].length) <= Number(f);
|
|
57
57
|
}
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
|
-
function n(i,
|
|
61
|
-
return
|
|
60
|
+
function n(i, u, r, c) {
|
|
61
|
+
return c[i] && c[i].propertyValue && String(c[i].propertyValue.value) === String(r);
|
|
62
62
|
}
|
|
63
63
|
const o = /* @__PURE__ */ new Map([
|
|
64
64
|
["length", t],
|
|
65
65
|
["getProperty", n]
|
|
66
66
|
]);
|
|
67
|
-
Object.keys(e).reduce((i,
|
|
68
|
-
function a(i,
|
|
67
|
+
Object.keys(e).reduce((i, u) => (i.set(u, e[u]), i), o);
|
|
68
|
+
function a(i, u) {
|
|
69
69
|
const r = i;
|
|
70
|
-
return typeof
|
|
71
|
-
if (
|
|
72
|
-
return { target: r, operator: "length", param: null, value:
|
|
73
|
-
const y =
|
|
70
|
+
return typeof u == "number" ? [{ target: r, operator: "length", param: null, value: Number(u) }] : typeof u == "boolean" ? [{ target: r, operator: "getProperty", param: i, value: !!u }] : typeof u == "object" ? Object.keys(u).map((c) => {
|
|
71
|
+
if (c === "length")
|
|
72
|
+
return { target: r, operator: "length", param: null, value: u[c] };
|
|
73
|
+
const y = c, f = u[c];
|
|
74
74
|
return { target: r, operator: "getProperty", param: y, value: f };
|
|
75
75
|
}) : [];
|
|
76
76
|
}
|
|
77
|
-
function
|
|
78
|
-
return Object.keys(i).reduce((r,
|
|
79
|
-
const y = a(
|
|
77
|
+
function l(i) {
|
|
78
|
+
return Object.keys(i).reduce((r, c) => {
|
|
79
|
+
const y = a(c, i[c]);
|
|
80
80
|
return r.push(...y), r;
|
|
81
81
|
}, []);
|
|
82
82
|
}
|
|
83
|
-
function
|
|
83
|
+
function d(i, u) {
|
|
84
84
|
if (o.has(i.operator)) {
|
|
85
85
|
const r = o.get(i.operator);
|
|
86
|
-
return r && r(i.target, i.param, i.value,
|
|
86
|
+
return r && r(i.target, i.param, i.value, u) || !1;
|
|
87
87
|
}
|
|
88
88
|
return !1;
|
|
89
89
|
}
|
|
90
|
-
function
|
|
91
|
-
return
|
|
90
|
+
function m(i, u) {
|
|
91
|
+
return l(i).reduce((y, f) => y && d(f, u), !0);
|
|
92
92
|
}
|
|
93
|
-
function
|
|
94
|
-
const r = Object.keys(i),
|
|
95
|
-
return
|
|
93
|
+
function s(i, u) {
|
|
94
|
+
const r = Object.keys(i), c = r.includes("allOf"), y = r.includes("anyOf"), f = c || y, S = (f ? i[f ? c ? "allOf" : "anyOf" : "allOf"] : [i]).map((P) => m(P, u));
|
|
95
|
+
return c ? !S.includes(!1) : S.includes(!0);
|
|
96
96
|
}
|
|
97
|
-
return { parseValueSchema:
|
|
97
|
+
return { parseValueSchema: s };
|
|
98
98
|
}
|
|
99
99
|
const p = {
|
|
100
100
|
Button: { type: "Button", name: "按钮", icon: "Button" },
|
|
101
101
|
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
102
|
+
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
103
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "工具栏项", icon: "Button" },
|
|
104
|
+
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
105
105
|
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
106
106
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
107
107
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
@@ -128,15 +128,15 @@ const p = {
|
|
|
128
128
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
129
129
|
Panel: { type: "Panel", name: "面板", icon: "ContentContainer" },
|
|
130
130
|
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
131
|
-
|
|
131
|
+
component: { type: "component", name: "组件", icon: "Component" },
|
|
132
132
|
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
133
133
|
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
134
134
|
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
135
135
|
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
136
136
|
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
137
137
|
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
138
|
-
|
|
139
|
-
|
|
138
|
+
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
139
|
+
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
140
140
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
141
141
|
Tag: { type: "Tag", name: "Tag", icon: "Tag" },
|
|
142
142
|
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
@@ -145,7 +145,7 @@ const p = {
|
|
|
145
145
|
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
146
146
|
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
147
147
|
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
148
|
-
|
|
148
|
+
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
149
149
|
SectionToolbar: { type: "SectionToolbar", name: "分组面板工具栏" },
|
|
150
150
|
SectionToolbarItem: { type: "SectionToolbarItem", name: "分组面板按钮" },
|
|
151
151
|
QueryScheme: { type: "QueryScheme", name: "筛选方案", icon: "QueryScheme" },
|
|
@@ -175,7 +175,7 @@ const p = {
|
|
|
175
175
|
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
176
176
|
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
177
177
|
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
178
|
-
|
|
178
|
+
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
179
179
|
ModalFooter: { type: "ModalFooter", name: "弹窗页脚", icon: "ModalFooter" },
|
|
180
180
|
ScrollCollapsibleArea: { type: "ScrollCollapsibleArea", name: "滚动收折区域", icon: "ScrollCollapsibleArea" },
|
|
181
181
|
PersonnelSelector: { type: "PersonnelSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
@@ -209,10 +209,10 @@ const p = {
|
|
|
209
209
|
/** 审批类 end */
|
|
210
210
|
}, ge = {}, ve = {};
|
|
211
211
|
fe();
|
|
212
|
-
function he(e, t, n = /* @__PURE__ */ new Map(), o = (
|
|
213
|
-
return R[t.title] = t, _[t.title] = o, ge[t.title] = a, ve[t.title] =
|
|
214
|
-
const
|
|
215
|
-
return Object.assign(
|
|
212
|
+
function he(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, s) => m, a = {}, l = (d) => d) {
|
|
213
|
+
return R[t.title] = t, _[t.title] = o, ge[t.title] = a, ve[t.title] = l, (d = {}) => {
|
|
214
|
+
const m = ye(d, t, n), s = Object.keys(e).reduce((i, u) => (i[u] = e[u].default, i), {});
|
|
215
|
+
return Object.assign(s, m);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
function be(e, t) {
|
|
@@ -505,12 +505,12 @@ const we = "https://json-schema.org/draft/2020-12/schema", Be = "https://farris-
|
|
|
505
505
|
updateOn: { type: String, default: "blur" }
|
|
506
506
|
}, Z = he(H, Pe, Ce, Te);
|
|
507
507
|
function Ae(e, t, n, o) {
|
|
508
|
-
const a = b(e.disabled),
|
|
508
|
+
const a = b(e.disabled), l = b(!1), d = b("text"), m = b(e.showBorder), s = b(e.textAlign), i = b(e.updateOn), u = g(() => e.editable || !e.readonly), r = g(() => e.editable && !e.disabled && !e.readonly), c = g(() => !e.disabled && l.value), y = g(() => n.value === "" || n.value === null || n.value === void 0), f = g(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = g(() => e.readonly || !e.editable), k = g(() => e.enableTitle ? n.value : ""), S = g(() => ({
|
|
509
509
|
"form-control": !0,
|
|
510
510
|
"f-utils-fill": !0,
|
|
511
|
-
"text-left":
|
|
512
|
-
"text-center":
|
|
513
|
-
"text-right":
|
|
511
|
+
"text-left": s.value === "left",
|
|
512
|
+
"text-center": s.value === "center",
|
|
513
|
+
"text-right": s.value === "right"
|
|
514
514
|
})), F = g(() => {
|
|
515
515
|
const v = {
|
|
516
516
|
"f-cmp-inputgroup": !0,
|
|
@@ -518,34 +518,34 @@ function Ae(e, t, n, o) {
|
|
|
518
518
|
"f-state-disable": a.value,
|
|
519
519
|
"f-state-editable": r.value,
|
|
520
520
|
"f-state-readonly": T.value,
|
|
521
|
-
"f-state-focus":
|
|
521
|
+
"f-state-focus": c.value
|
|
522
522
|
};
|
|
523
523
|
return (e.customClass || "").split(" ").reduce(($, te) => ($[te] = !0, $), v), v;
|
|
524
|
-
}),
|
|
525
|
-
function M(v,
|
|
526
|
-
n.value = v, o.value !== v && (o.value = v),
|
|
524
|
+
}), P = g(() => m.value ? "" : "border-width : 0 ");
|
|
525
|
+
function M(v, A = !0) {
|
|
526
|
+
n.value = v, o.value !== v && (o.value = v), A && t.emit("change", v), t.emit("update:modelValue", v), t.emit("update:value", v);
|
|
527
527
|
}
|
|
528
528
|
E(
|
|
529
529
|
() => e.modelValue,
|
|
530
|
-
(v,
|
|
531
|
-
v !==
|
|
530
|
+
(v, A) => {
|
|
531
|
+
v !== A && (n.value = v, o.value = v);
|
|
532
532
|
}
|
|
533
|
-
), E(() => e.disabled, (v,
|
|
534
|
-
v !==
|
|
533
|
+
), E(() => e.disabled, (v, A) => {
|
|
534
|
+
v !== A && (a.value = v);
|
|
535
535
|
});
|
|
536
536
|
function O(v) {
|
|
537
|
-
return
|
|
537
|
+
return l.value = !1, t.emit("blur", v), v.stopPropagation(), !1;
|
|
538
538
|
}
|
|
539
539
|
function h(v) {
|
|
540
540
|
t.emit("click", v);
|
|
541
541
|
}
|
|
542
542
|
function C(v) {
|
|
543
|
-
e.disabled || (
|
|
543
|
+
e.disabled || (m.value && (l.value = !0), u.value && t.emit("focus", v));
|
|
544
544
|
}
|
|
545
545
|
function w(v) {
|
|
546
546
|
t.emit("input", v.target.value);
|
|
547
|
-
const
|
|
548
|
-
o.value =
|
|
547
|
+
const A = v.target.value;
|
|
548
|
+
o.value = A, i.value === "input" && (t.emit("update:modelValue", A), t.emit("update:value", A));
|
|
549
549
|
}
|
|
550
550
|
function V(v) {
|
|
551
551
|
t.emit("keydown", v);
|
|
@@ -558,8 +558,8 @@ function Ae(e, t, n, o) {
|
|
|
558
558
|
}
|
|
559
559
|
function j(v) {
|
|
560
560
|
if (i.value === "blur") {
|
|
561
|
-
const
|
|
562
|
-
v.stopPropagation(), M(
|
|
561
|
+
const A = v.target.value;
|
|
562
|
+
v.stopPropagation(), M(A);
|
|
563
563
|
}
|
|
564
564
|
}
|
|
565
565
|
return {
|
|
@@ -567,9 +567,9 @@ function Ae(e, t, n, o) {
|
|
|
567
567
|
disabled: a,
|
|
568
568
|
displayText: o,
|
|
569
569
|
editable: r,
|
|
570
|
-
hasFocused:
|
|
570
|
+
hasFocused: c,
|
|
571
571
|
inputGroupClass: F,
|
|
572
|
-
inputType:
|
|
572
|
+
inputType: d,
|
|
573
573
|
isEmpty: y,
|
|
574
574
|
modelValue: n,
|
|
575
575
|
readonly: T,
|
|
@@ -584,18 +584,18 @@ function Ae(e, t, n, o) {
|
|
|
584
584
|
placeholder: f,
|
|
585
585
|
textBoxClass: S,
|
|
586
586
|
textBoxTitle: k,
|
|
587
|
-
inputGroupStyle:
|
|
587
|
+
inputGroupStyle: P
|
|
588
588
|
};
|
|
589
589
|
}
|
|
590
590
|
function De(e, t, n, o) {
|
|
591
|
-
const a = b(e.disabled),
|
|
591
|
+
const a = b(e.disabled), l = b(!1), d = b("text"), m = b(e.showBorder), s = b(e.textAlign);
|
|
592
592
|
g(() => e.editable || !e.readonly);
|
|
593
|
-
const i = g(() => e.editable && !e.disabled && !e.readonly),
|
|
593
|
+
const i = g(() => e.editable && !e.disabled && !e.readonly), u = g(() => !e.disabled && l.value), r = g(() => n.value === "" || n.value === null || n.value === void 0), c = g(() => e.placeholder), y = g(() => e.readonly || !e.editable), f = g(() => e.enableTitle ? n.value : ""), T = g(() => ({
|
|
594
594
|
"form-control": !0,
|
|
595
595
|
// 'f-utils-fill': true,
|
|
596
|
-
"text-left":
|
|
597
|
-
"text-center":
|
|
598
|
-
"text-right":
|
|
596
|
+
"text-left": s.value === "left",
|
|
597
|
+
"text-center": s.value === "center",
|
|
598
|
+
"text-right": s.value === "right"
|
|
599
599
|
})), k = g(() => ({
|
|
600
600
|
"f-cmp-inputgroup": !0,
|
|
601
601
|
"input-group": !0,
|
|
@@ -603,15 +603,15 @@ function De(e, t, n, o) {
|
|
|
603
603
|
"f-state-editable": !1,
|
|
604
604
|
"f-state-readonly": !0
|
|
605
605
|
// 'f-state-focus': hasFocused.value
|
|
606
|
-
})), S = g(() =>
|
|
606
|
+
})), S = g(() => m.value ? "" : "border-width : 0 ");
|
|
607
607
|
return {
|
|
608
608
|
// changeTextBoxValue,
|
|
609
609
|
disabled: a,
|
|
610
610
|
displayText: o,
|
|
611
611
|
editable: i,
|
|
612
|
-
hasFocused:
|
|
612
|
+
hasFocused: u,
|
|
613
613
|
inputGroupClass: k,
|
|
614
|
-
inputType:
|
|
614
|
+
inputType: d,
|
|
615
615
|
isEmpty: r,
|
|
616
616
|
modelValue: n,
|
|
617
617
|
readonly: y,
|
|
@@ -623,37 +623,37 @@ function De(e, t, n, o) {
|
|
|
623
623
|
// onKeyup,
|
|
624
624
|
// onMousedown,
|
|
625
625
|
// onTextBoxValueChange,
|
|
626
|
-
placeholder:
|
|
626
|
+
placeholder: c,
|
|
627
627
|
textBoxClass: T,
|
|
628
628
|
textBoxTitle: f,
|
|
629
629
|
inputGroupStyle: S
|
|
630
630
|
};
|
|
631
631
|
}
|
|
632
632
|
function X(e, t, n) {
|
|
633
|
-
const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue:
|
|
633
|
+
const o = b(!1), a = g(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: l, displayText: d, hasFocused: m, isEmpty: s } = n;
|
|
634
634
|
function i(T) {
|
|
635
635
|
o.value = T;
|
|
636
636
|
}
|
|
637
|
-
E(
|
|
638
|
-
|
|
637
|
+
E(d, () => {
|
|
638
|
+
m != null && m.value ? i(!!(d != null && d.value)) : i(!1);
|
|
639
639
|
});
|
|
640
|
-
const
|
|
640
|
+
const u = g(() => ({
|
|
641
641
|
"input-group-text": !0,
|
|
642
642
|
"input-group-clear": !0
|
|
643
643
|
})), r = g(() => ({
|
|
644
644
|
width: "24px",
|
|
645
645
|
display: o.value ? "flex" : "none"
|
|
646
646
|
}));
|
|
647
|
-
function
|
|
648
|
-
T.stopPropagation(), a.value && (
|
|
647
|
+
function c(T) {
|
|
648
|
+
T.stopPropagation(), a.value && (l("", !0), i(!o.value), t.emit("clear"));
|
|
649
649
|
}
|
|
650
650
|
function y(T) {
|
|
651
|
-
a.value && !
|
|
651
|
+
a.value && !s.value && i(!0);
|
|
652
652
|
}
|
|
653
653
|
function f(T) {
|
|
654
654
|
a.value && i(!1);
|
|
655
655
|
}
|
|
656
|
-
return { clearButtonClass:
|
|
656
|
+
return { clearButtonClass: u, clearButtonStyle: r, hasShownClearButton: o, onClearValue: c, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
|
|
657
657
|
}
|
|
658
658
|
const Ee = ["moz", "ms", "webkit"];
|
|
659
659
|
function Oe() {
|
|
@@ -688,136 +688,136 @@ function Y(e, t) {
|
|
|
688
688
|
})), appendedContent: n, shouldShowAppendedButton: a };
|
|
689
689
|
}
|
|
690
690
|
function K(e, t, n, o) {
|
|
691
|
-
const { appendedContent: a } = o,
|
|
692
|
-
E(() => [e.readonly, e.disabled], ([
|
|
693
|
-
|
|
691
|
+
const { appendedContent: a } = o, l = b(e.enableViewPassword), d = g(() => e.type === "password"), m = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', s = '<span class="f-icon f-icon-eye"></span>', i = b(!1);
|
|
692
|
+
E(() => [e.readonly, e.disabled], ([c, y]) => {
|
|
693
|
+
d.value && (n.value = c || y ? "password" : n.value, a.value = c || y ? s : a.value);
|
|
694
694
|
});
|
|
695
|
-
function
|
|
696
|
-
return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ?
|
|
695
|
+
function u() {
|
|
696
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", a.value = i.value ? m : s, !1;
|
|
697
697
|
}
|
|
698
698
|
function r() {
|
|
699
|
-
n.value =
|
|
699
|
+
n.value = d.value ? "password" : "text", a.value = d.value ? l.value ? s : "" : a.value;
|
|
700
700
|
}
|
|
701
|
-
return r(), { isPassword:
|
|
701
|
+
return r(), { isPassword: d, onClickAppendedButton: u };
|
|
702
702
|
}
|
|
703
703
|
function Ne(e, t, n) {
|
|
704
704
|
const o = b(), {
|
|
705
705
|
onBlurTextBox: a,
|
|
706
|
-
onFocusTextBox:
|
|
707
|
-
onInput:
|
|
708
|
-
onKeyDown:
|
|
709
|
-
textBoxValue:
|
|
710
|
-
} = n, i = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
706
|
+
onFocusTextBox: l,
|
|
707
|
+
onInput: d,
|
|
708
|
+
onKeyDown: m,
|
|
709
|
+
textBoxValue: s
|
|
710
|
+
} = n, i = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), u = g(() => ({
|
|
711
711
|
"form-control": !0,
|
|
712
712
|
"f-utils-fill": !0
|
|
713
713
|
})), r = g(() => ({
|
|
714
714
|
"text-align": e.textAlign
|
|
715
715
|
}));
|
|
716
|
-
function
|
|
716
|
+
function c(T) {
|
|
717
717
|
T.stopPropagation();
|
|
718
718
|
}
|
|
719
719
|
function y() {
|
|
720
720
|
e.selectOnCreated, e.focusOnCreated;
|
|
721
721
|
}
|
|
722
722
|
async function f(T) {
|
|
723
|
-
|
|
723
|
+
l(T), await z, y();
|
|
724
724
|
}
|
|
725
725
|
return L(async () => {
|
|
726
726
|
await z, y();
|
|
727
727
|
}), () => B("input", {
|
|
728
728
|
ref: o,
|
|
729
|
-
class:
|
|
729
|
+
class: u.value,
|
|
730
730
|
style: r.value,
|
|
731
731
|
type: "text",
|
|
732
|
-
value:
|
|
732
|
+
value: s.value,
|
|
733
733
|
disabled: e.disabled,
|
|
734
734
|
readonly: e.readonly || !e.editable,
|
|
735
735
|
placeholder: i.value,
|
|
736
736
|
onBlur: a,
|
|
737
|
-
onChange:
|
|
737
|
+
onChange: c,
|
|
738
738
|
onFocus: f,
|
|
739
|
-
onInput:
|
|
740
|
-
onKeydown:
|
|
739
|
+
onInput: d,
|
|
740
|
+
onKeydown: m
|
|
741
741
|
}, null);
|
|
742
742
|
}
|
|
743
743
|
function Ie(e, t, n) {
|
|
744
744
|
const {
|
|
745
745
|
canDownward: o,
|
|
746
746
|
canUpward: a,
|
|
747
|
-
onClickDownButton:
|
|
748
|
-
onClickUpButton:
|
|
749
|
-
} = n,
|
|
747
|
+
onClickDownButton: l,
|
|
748
|
+
onClickUpButton: d
|
|
749
|
+
} = n, m = g(() => ({
|
|
750
750
|
"input-group-append": !0,
|
|
751
751
|
"btn-group": !0,
|
|
752
752
|
"btn-group-number": !0
|
|
753
|
-
})),
|
|
753
|
+
})), s = g(() => ({
|
|
754
754
|
btn: !0,
|
|
755
755
|
"btn-secondary": !0,
|
|
756
756
|
"btn-number-flag": !0
|
|
757
757
|
})), i = g(() => ({
|
|
758
758
|
cursor: a() ? "pointer" : "not-allowed",
|
|
759
759
|
"margin-left": 0
|
|
760
|
-
})),
|
|
760
|
+
})), u = g(() => ({
|
|
761
761
|
cursor: o() ? "pointer" : "not-allowed",
|
|
762
762
|
"margin-left": 0
|
|
763
763
|
}));
|
|
764
764
|
return () => B("div", {
|
|
765
|
-
class:
|
|
765
|
+
class: m.value
|
|
766
766
|
}, [B("button", {
|
|
767
767
|
title: "upButton",
|
|
768
|
-
class:
|
|
768
|
+
class: s.value,
|
|
769
769
|
style: i.value,
|
|
770
|
-
onClick:
|
|
770
|
+
onClick: d,
|
|
771
771
|
disabled: !a()
|
|
772
772
|
}, [B("span", {
|
|
773
773
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
774
774
|
}, null)]), B("button", {
|
|
775
775
|
title: "downButton",
|
|
776
|
-
class:
|
|
777
|
-
style:
|
|
778
|
-
onClick:
|
|
776
|
+
class: s.value,
|
|
777
|
+
style: u.value,
|
|
778
|
+
onClick: l,
|
|
779
779
|
disabled: !o()
|
|
780
780
|
}, [B("span", {
|
|
781
781
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
782
782
|
}, null)])]);
|
|
783
783
|
}
|
|
784
784
|
function je(e, t) {
|
|
785
|
-
const n = ue(e, t), o =
|
|
786
|
-
displayValue:
|
|
787
|
-
modelValue:
|
|
785
|
+
const n = ue(e, t), o = ce(e, t, n), a = se(e, t, o, n), l = pe(e, t, o, n, a), d = Ie(e, t, a), {
|
|
786
|
+
displayValue: m,
|
|
787
|
+
modelValue: s,
|
|
788
788
|
getRealValue: i
|
|
789
|
-
} = n,
|
|
789
|
+
} = n, u = Ne(e, t, l), {
|
|
790
790
|
format: r
|
|
791
791
|
} = o, {
|
|
792
|
-
isFocus:
|
|
793
|
-
} =
|
|
792
|
+
isFocus: c
|
|
793
|
+
} = l, y = g(() => !e.disabled && !e.readonly);
|
|
794
794
|
return L(() => {
|
|
795
795
|
const f = i(e.modelValue);
|
|
796
|
-
|
|
796
|
+
m.value = r(f);
|
|
797
797
|
}), E(() => [e.value], ([f]) => {
|
|
798
798
|
const T = i(f);
|
|
799
|
-
|
|
799
|
+
s.value = T, m.value = r(T);
|
|
800
800
|
}), E(() => [e.modelValue], ([f]) => {
|
|
801
|
-
f !==
|
|
801
|
+
f !== s.value && (s.value = f, !c.value && (m.value = r(i(f))));
|
|
802
802
|
}), E(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
803
|
-
|
|
803
|
+
m.value = r(s.value);
|
|
804
804
|
}), () => B("div", {
|
|
805
805
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
806
|
-
}, [
|
|
806
|
+
}, [u(), y.value && d()]);
|
|
807
807
|
}
|
|
808
808
|
function Ge(e, t, n, o) {
|
|
809
|
-
const a = b(),
|
|
810
|
-
isPassword:
|
|
811
|
-
} = n,
|
|
809
|
+
const a = b(), l = b(e.autocomplete), d = b(e.enableTitle), {
|
|
810
|
+
isPassword: m
|
|
811
|
+
} = n, s = b(e.minLength), i = b(e.maxLength), u = b(e.tabIndex), {
|
|
812
812
|
disabled: r,
|
|
813
|
-
displayText:
|
|
813
|
+
displayText: c,
|
|
814
814
|
inputType: y,
|
|
815
815
|
onBlur: f,
|
|
816
816
|
onFocus: T,
|
|
817
817
|
onInput: k,
|
|
818
818
|
onClick: S,
|
|
819
819
|
onKeydown: F,
|
|
820
|
-
onKeyup:
|
|
820
|
+
onKeyup: P,
|
|
821
821
|
onMousedown: M,
|
|
822
822
|
onTextBoxValueChange: O,
|
|
823
823
|
readonly: h,
|
|
@@ -830,24 +830,24 @@ function Ge(e, t, n, o) {
|
|
|
830
830
|
}), () => B("input", {
|
|
831
831
|
ref: a,
|
|
832
832
|
name: "input-group-value",
|
|
833
|
-
autocomplete:
|
|
833
|
+
autocomplete: l.value,
|
|
834
834
|
class: w.value,
|
|
835
835
|
disabled: r == null ? void 0 : r.value,
|
|
836
836
|
maxlength: i.value,
|
|
837
|
-
minlength:
|
|
837
|
+
minlength: s.value,
|
|
838
838
|
placeholder: C.value,
|
|
839
839
|
readonly: h == null ? void 0 : h.value,
|
|
840
|
-
tabindex:
|
|
841
|
-
title:
|
|
840
|
+
tabindex: u.value,
|
|
841
|
+
title: d.value && !m.value ? V.value : "",
|
|
842
842
|
type: y.value,
|
|
843
|
-
value:
|
|
843
|
+
value: c == null ? void 0 : c.value,
|
|
844
844
|
onBlur: f,
|
|
845
845
|
onClick: S,
|
|
846
846
|
onChange: O,
|
|
847
847
|
onFocus: T,
|
|
848
848
|
onInput: k,
|
|
849
849
|
onKeydown: F,
|
|
850
|
-
onKeyup:
|
|
850
|
+
onKeyup: P,
|
|
851
851
|
onMousedown: M
|
|
852
852
|
}, null);
|
|
853
853
|
}
|
|
@@ -869,20 +869,20 @@ function Ue(e, t) {
|
|
|
869
869
|
}
|
|
870
870
|
function J(e, t, n, o, a) {
|
|
871
871
|
const {
|
|
872
|
-
appendedButtonClass:
|
|
873
|
-
appendedContent:
|
|
874
|
-
} = n,
|
|
875
|
-
clearButtonClass:
|
|
872
|
+
appendedButtonClass: l,
|
|
873
|
+
appendedContent: d
|
|
874
|
+
} = n, m = g(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), s = g(() => d.value && !t.slots.groupTextTemplate), i = g(() => !!t.slots.groupTextTemplate), {
|
|
875
|
+
clearButtonClass: u,
|
|
876
876
|
clearButtonStyle: r,
|
|
877
|
-
onClearValue:
|
|
877
|
+
onClearValue: c,
|
|
878
878
|
shouldShowClearButton: y
|
|
879
879
|
} = o;
|
|
880
880
|
function f() {
|
|
881
881
|
return B("span", {
|
|
882
882
|
id: "clearIcon",
|
|
883
|
-
class:
|
|
883
|
+
class: u.value,
|
|
884
884
|
style: r.value,
|
|
885
|
-
onClick: (C) =>
|
|
885
|
+
onClick: (C) => c(C)
|
|
886
886
|
}, [B("i", {
|
|
887
887
|
class: "f-icon modal_close"
|
|
888
888
|
}, null)]);
|
|
@@ -894,17 +894,17 @@ function J(e, t, n, o, a) {
|
|
|
894
894
|
t.emit("iconMouseLeave", C);
|
|
895
895
|
}
|
|
896
896
|
function S(C) {
|
|
897
|
-
|
|
897
|
+
m.value && t.emit("clickHandle", {
|
|
898
898
|
originalEvent: C
|
|
899
899
|
}), C.stopPropagation();
|
|
900
900
|
}
|
|
901
901
|
const F = e.type === "password" ? a.onClickAppendedButton : S;
|
|
902
|
-
function
|
|
902
|
+
function P() {
|
|
903
903
|
return B("span", {
|
|
904
904
|
class: "input-group-text",
|
|
905
905
|
onMouseenter: (C) => T(C),
|
|
906
906
|
onMouseleave: (C) => k(C),
|
|
907
|
-
innerHTML:
|
|
907
|
+
innerHTML: d.value,
|
|
908
908
|
onClick: (C) => F(C)
|
|
909
909
|
}, null);
|
|
910
910
|
}
|
|
@@ -912,11 +912,11 @@ function J(e, t, n, o, a) {
|
|
|
912
912
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
913
913
|
}
|
|
914
914
|
function O() {
|
|
915
|
-
return
|
|
915
|
+
return s.value ? P : i.value ? M : "";
|
|
916
916
|
}
|
|
917
917
|
const h = O();
|
|
918
918
|
return () => B("div", {
|
|
919
|
-
class:
|
|
919
|
+
class: l.value
|
|
920
920
|
}, [y.value && f(), h && h()]);
|
|
921
921
|
}
|
|
922
922
|
const I = /* @__PURE__ */ Q({
|
|
@@ -925,15 +925,15 @@ const I = /* @__PURE__ */ Q({
|
|
|
925
925
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
926
926
|
setup(e, t) {
|
|
927
927
|
const n = b(e.modelValue), o = b(e.modelValue), a = Ae(e, t, n, o), {
|
|
928
|
-
inputGroupClass:
|
|
929
|
-
inputType:
|
|
930
|
-
inputGroupStyle:
|
|
931
|
-
} = a,
|
|
928
|
+
inputGroupClass: l,
|
|
929
|
+
inputType: d,
|
|
930
|
+
inputGroupStyle: m
|
|
931
|
+
} = a, s = Y(e), {
|
|
932
932
|
shouldShowAppendedButton: i
|
|
933
|
-
} =
|
|
933
|
+
} = s, u = X(e, t, a), {
|
|
934
934
|
onMouseEnter: r,
|
|
935
|
-
onMouseLeave:
|
|
936
|
-
} =
|
|
935
|
+
onMouseLeave: c
|
|
936
|
+
} = u, y = K(e, t, d, s), f = je(e, t), T = Ge(e, t, y, a), k = J(e, t, s, u, y), S = Ue(e, t), F = g(() => e.type === "number");
|
|
937
937
|
E(() => [e.value], ([M]) => {
|
|
938
938
|
n.value = M, o.value = M;
|
|
939
939
|
}), E(() => [e.modelValue], ([M]) => {
|
|
@@ -941,14 +941,14 @@ const I = /* @__PURE__ */ Q({
|
|
|
941
941
|
}), L(() => {
|
|
942
942
|
e.value && (n.value = e.value, o.value = e.value);
|
|
943
943
|
});
|
|
944
|
-
const
|
|
944
|
+
const P = () => B(W, null, [B("div", {
|
|
945
945
|
id: "inputGroup",
|
|
946
|
-
class:
|
|
947
|
-
style:
|
|
946
|
+
class: l.value,
|
|
947
|
+
style: m.value,
|
|
948
948
|
onMouseenter: r,
|
|
949
|
-
onMouseleave:
|
|
949
|
+
onMouseleave: c
|
|
950
950
|
}, [F.value ? f() : B(W, null, [S(), T(), i.value && k()])])]);
|
|
951
|
-
return () =>
|
|
951
|
+
return () => P();
|
|
952
952
|
}
|
|
953
953
|
});
|
|
954
954
|
function He(e, t) {
|
|
@@ -957,43 +957,44 @@ function He(e, t) {
|
|
|
957
957
|
function a(r) {
|
|
958
958
|
return !1;
|
|
959
959
|
}
|
|
960
|
-
function
|
|
960
|
+
function l() {
|
|
961
961
|
return !1;
|
|
962
962
|
}
|
|
963
|
-
function
|
|
963
|
+
function d() {
|
|
964
964
|
return !1;
|
|
965
965
|
}
|
|
966
|
-
function
|
|
966
|
+
function m() {
|
|
967
967
|
return !0;
|
|
968
968
|
}
|
|
969
|
-
function
|
|
969
|
+
function s(r) {
|
|
970
970
|
}
|
|
971
971
|
function i() {
|
|
972
972
|
}
|
|
973
|
-
function
|
|
973
|
+
function u(r) {
|
|
974
974
|
return null;
|
|
975
975
|
}
|
|
976
976
|
return {
|
|
977
977
|
canAccepts: a,
|
|
978
|
-
checkCanDeleteComponent:
|
|
979
|
-
checkCanMoveComponent:
|
|
980
|
-
hideNestedPaddingInDesginerView:
|
|
981
|
-
onAcceptMovedChildElement:
|
|
978
|
+
checkCanDeleteComponent: l,
|
|
979
|
+
checkCanMoveComponent: d,
|
|
980
|
+
hideNestedPaddingInDesginerView: m,
|
|
981
|
+
onAcceptMovedChildElement: s,
|
|
982
982
|
resolveComponentContext: i,
|
|
983
983
|
triggerBelongedComponentToMoveWhenMoved: n,
|
|
984
984
|
triggerBelongedComponentToDeleteWhenDeleted: o,
|
|
985
|
-
getPropsConfig:
|
|
985
|
+
getPropsConfig: u
|
|
986
986
|
};
|
|
987
987
|
}
|
|
988
988
|
class ee {
|
|
989
989
|
static getEditorTypesByMDataType(t) {
|
|
990
|
-
|
|
990
|
+
const n = this.fieldControlTypeMapping[t];
|
|
991
|
+
return n || [{ key: "", value: "" }];
|
|
991
992
|
}
|
|
992
993
|
}
|
|
993
994
|
/**
|
|
994
995
|
* <字段类型,可配置的控件类型列表>的映射
|
|
995
996
|
*/
|
|
996
|
-
|
|
997
|
+
x(ee, "fieldControlTypeMapping", {
|
|
997
998
|
String: [
|
|
998
999
|
{ key: p["input-group"].type, value: p["input-group"].name },
|
|
999
1000
|
{ key: p.lookup.type, value: p.lookup.name },
|
|
@@ -1050,22 +1051,27 @@ A(ee, "fieldControlTypeMapping", {
|
|
|
1050
1051
|
});
|
|
1051
1052
|
class $e {
|
|
1052
1053
|
constructor(t, n) {
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1054
|
+
x(this, "componentId");
|
|
1055
|
+
x(this, "viewModelId");
|
|
1056
|
+
x(this, "eventsEditorUtils");
|
|
1057
|
+
x(this, "formSchemaUtils");
|
|
1058
|
+
x(this, "formMetadataConverter");
|
|
1059
|
+
x(this, "designViewModelUtils");
|
|
1060
|
+
x(this, "designViewModelField");
|
|
1061
|
+
x(this, "controlCreatorUtils");
|
|
1062
|
+
x(this, "designerHostService");
|
|
1063
|
+
x(this, "schemaService", null);
|
|
1064
|
+
x(this, "metadataService", null);
|
|
1065
|
+
x(this, "propertyConfig", {
|
|
1064
1066
|
type: "object",
|
|
1065
1067
|
categories: {}
|
|
1066
1068
|
});
|
|
1067
1069
|
var o;
|
|
1068
|
-
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService;
|
|
1070
|
+
this.componentId = t, this.designerHostService = n, this.eventsEditorUtils = n.eventsEditorUtils, this.formSchemaUtils = n.formSchemaUtils, this.formMetadataConverter = n.formMetadataConverter, this.viewModelId = ((o = this.formSchemaUtils) == null ? void 0 : o.getViewModelIdByComponentId(t)) || "", this.designViewModelUtils = n.designViewModelUtils, this.controlCreatorUtils = n.controlCreatorUtils, this.metadataService = n.metadataService, this.schemaService = n.schemaService;
|
|
1071
|
+
}
|
|
1072
|
+
getTableInfo() {
|
|
1073
|
+
var t;
|
|
1074
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
1069
1075
|
}
|
|
1070
1076
|
setDesignViewModelField(t) {
|
|
1071
1077
|
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
@@ -1080,6 +1086,7 @@ class $e {
|
|
|
1080
1086
|
changeFieldEditorType(t, n) {
|
|
1081
1087
|
}
|
|
1082
1088
|
getBasicPropConfig(t) {
|
|
1089
|
+
var o, a;
|
|
1083
1090
|
var n = this;
|
|
1084
1091
|
return this.setDesignViewModelField(t), {
|
|
1085
1092
|
description: "Basic Information",
|
|
@@ -1101,7 +1108,8 @@ class $e {
|
|
|
1101
1108
|
type: "combo-list",
|
|
1102
1109
|
textField: "value",
|
|
1103
1110
|
valueField: "key",
|
|
1104
|
-
data: ee.getEditorTypesByMDataType(n.designViewModelField.type.name)
|
|
1111
|
+
data: ee.getEditorTypesByMDataType(((a = (o = n.designViewModelField) == null ? void 0 : o.type) == null ? void 0 : a.name) || ""),
|
|
1112
|
+
editable: !1
|
|
1105
1113
|
}
|
|
1106
1114
|
},
|
|
1107
1115
|
label: {
|
|
@@ -1110,11 +1118,11 @@ class $e {
|
|
|
1110
1118
|
$converter: "/converter/form-group-label.converter"
|
|
1111
1119
|
}
|
|
1112
1120
|
},
|
|
1113
|
-
setPropertyRelates(
|
|
1114
|
-
if (
|
|
1115
|
-
switch (
|
|
1121
|
+
setPropertyRelates(l, d) {
|
|
1122
|
+
if (l)
|
|
1123
|
+
switch (l && l.propertyID) {
|
|
1116
1124
|
case "type": {
|
|
1117
|
-
n.changeControlType(t,
|
|
1125
|
+
n.changeControlType(t, l);
|
|
1118
1126
|
break;
|
|
1119
1127
|
}
|
|
1120
1128
|
}
|
|
@@ -1127,13 +1135,13 @@ class $e {
|
|
|
1127
1135
|
* @param newControlType 新控件类型
|
|
1128
1136
|
*/
|
|
1129
1137
|
changeControlType(t, n) {
|
|
1130
|
-
var i,
|
|
1138
|
+
var i, u, r, c, y;
|
|
1131
1139
|
const o = n.propertyValue, a = this.formSchemaUtils.getComponentById(this.componentId);
|
|
1132
|
-
let
|
|
1133
|
-
if (!
|
|
1140
|
+
let l = this.getControlParentContainer(t.id, a);
|
|
1141
|
+
if (!l)
|
|
1134
1142
|
return;
|
|
1135
|
-
const
|
|
1136
|
-
let
|
|
1143
|
+
const d = l.contents.findIndex((f) => f.id === t.id), m = l.contents[d];
|
|
1144
|
+
let s;
|
|
1137
1145
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1138
1146
|
editor: {
|
|
1139
1147
|
$type: o
|
|
@@ -1141,20 +1149,20 @@ class $e {
|
|
|
1141
1149
|
name: this.designViewModelField.name,
|
|
1142
1150
|
require: this.designViewModelField.require,
|
|
1143
1151
|
readonly: this.designViewModelField.readonly
|
|
1144
|
-
}, !1),
|
|
1145
|
-
id:
|
|
1146
|
-
appearance:
|
|
1147
|
-
size:
|
|
1148
|
-
label:
|
|
1149
|
-
}), Object.assign(
|
|
1150
|
-
isTextArea:
|
|
1152
|
+
}, !1), s = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(s, {
|
|
1153
|
+
id: m.id,
|
|
1154
|
+
appearance: m.appearance,
|
|
1155
|
+
size: m.size,
|
|
1156
|
+
label: m.label
|
|
1157
|
+
}), Object.assign(s.editor, {
|
|
1158
|
+
isTextArea: s.isTextArea && m.isTextArea,
|
|
1151
1159
|
type: o || "",
|
|
1152
|
-
placeHolder: (i =
|
|
1153
|
-
holdPlace: (
|
|
1154
|
-
readonly: (r =
|
|
1155
|
-
require: (
|
|
1156
|
-
visible: (y =
|
|
1157
|
-
}),
|
|
1160
|
+
placeHolder: (i = m.editor) == null ? void 0 : i.placeHolder,
|
|
1161
|
+
holdPlace: (u = m.editor) == null ? void 0 : u.holdPlace,
|
|
1162
|
+
readonly: (r = m.editor) == null ? void 0 : r.readonly,
|
|
1163
|
+
require: (c = m.editor) == null ? void 0 : c.require,
|
|
1164
|
+
visible: (y = m.editor) == null ? void 0 : y.visible
|
|
1165
|
+
}), l.contents.splice(d, 1, s);
|
|
1158
1166
|
}
|
|
1159
1167
|
getAppearanceConfig(t = null) {
|
|
1160
1168
|
return {
|
|
@@ -1202,27 +1210,6 @@ class $e {
|
|
|
1202
1210
|
return o;
|
|
1203
1211
|
}
|
|
1204
1212
|
}
|
|
1205
|
-
getBindingFieldEditorOptions(t) {
|
|
1206
|
-
const n = this.formSchemaUtils.getFormMetadataBasicInfo();
|
|
1207
|
-
return {
|
|
1208
|
-
type: "field-selector",
|
|
1209
|
-
bindingType: { enable: !1 },
|
|
1210
|
-
editorParams: {
|
|
1211
|
-
propertyData: t,
|
|
1212
|
-
formBasicInfo: n
|
|
1213
|
-
},
|
|
1214
|
-
columns: [
|
|
1215
|
-
{ field: "name", title: "字段名称" },
|
|
1216
|
-
{ field: "bindingField", title: "绑定字段" },
|
|
1217
|
-
{ field: "fieldType", title: "字段类型" }
|
|
1218
|
-
],
|
|
1219
|
-
beforeOpenDialog: (o) => {
|
|
1220
|
-
const a = this.designViewModelUtils.getAllFields2TreeByVMId(this.viewModelId);
|
|
1221
|
-
o.instance.loadData(a);
|
|
1222
|
-
},
|
|
1223
|
-
textField: "bindingField"
|
|
1224
|
-
};
|
|
1225
|
-
}
|
|
1226
1213
|
}
|
|
1227
1214
|
class ze extends $e {
|
|
1228
1215
|
constructor(t, n) {
|
|
@@ -1259,17 +1246,21 @@ class ze extends $e {
|
|
|
1259
1246
|
{ field: "bindingField", title: "绑定字段" },
|
|
1260
1247
|
{ field: "fieldType", title: "字段类型" }
|
|
1261
1248
|
],
|
|
1249
|
+
textField: "bindingField",
|
|
1262
1250
|
data: o
|
|
1263
1251
|
}
|
|
1264
1252
|
};
|
|
1265
1253
|
}
|
|
1254
|
+
getBindingOtions(t) {
|
|
1255
|
+
return this.getFieldSelectorOptions(t);
|
|
1256
|
+
}
|
|
1266
1257
|
getComponentConfig(t, n = {}, o = {}) {
|
|
1267
1258
|
const a = Object.assign({
|
|
1268
1259
|
description: "组件信息",
|
|
1269
1260
|
title: "组件信息",
|
|
1270
1261
|
type: "input-group",
|
|
1271
1262
|
$converter: "/converter/property-editor.converter"
|
|
1272
|
-
}, n),
|
|
1263
|
+
}, n), l = Object.assign({
|
|
1273
1264
|
readonly: {
|
|
1274
1265
|
description: "",
|
|
1275
1266
|
title: "只读",
|
|
@@ -1291,7 +1282,7 @@ class ze extends $e {
|
|
|
1291
1282
|
type: "string"
|
|
1292
1283
|
}
|
|
1293
1284
|
}, o);
|
|
1294
|
-
return { ...a, properties: { ...
|
|
1285
|
+
return { ...a, properties: { ...l } };
|
|
1295
1286
|
}
|
|
1296
1287
|
}
|
|
1297
1288
|
class We extends ze {
|
|
@@ -1304,23 +1295,23 @@ function qe(e, t) {
|
|
|
1304
1295
|
canAccepts: n,
|
|
1305
1296
|
checkCanDeleteComponent: o,
|
|
1306
1297
|
checkCanMoveComponent: a,
|
|
1307
|
-
hideNestedPaddingInDesginerView:
|
|
1308
|
-
onAcceptMovedChildElement:
|
|
1309
|
-
resolveComponentContext:
|
|
1310
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1298
|
+
hideNestedPaddingInDesginerView: l,
|
|
1299
|
+
onAcceptMovedChildElement: d,
|
|
1300
|
+
resolveComponentContext: m,
|
|
1301
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1311
1302
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1312
|
-
} = He(e),
|
|
1313
|
-
function r(
|
|
1314
|
-
return new We(
|
|
1303
|
+
} = He(e), u = e.schema;
|
|
1304
|
+
function r(c) {
|
|
1305
|
+
return new We(c, t).getPropertyConfig(u);
|
|
1315
1306
|
}
|
|
1316
1307
|
return {
|
|
1317
1308
|
canAccepts: n,
|
|
1318
1309
|
checkCanDeleteComponent: o,
|
|
1319
1310
|
checkCanMoveComponent: a,
|
|
1320
|
-
hideNestedPaddingInDesginerView:
|
|
1321
|
-
onAcceptMovedChildElement:
|
|
1322
|
-
resolveComponentContext:
|
|
1323
|
-
triggerBelongedComponentToMoveWhenMoved:
|
|
1311
|
+
hideNestedPaddingInDesginerView: l,
|
|
1312
|
+
onAcceptMovedChildElement: d,
|
|
1313
|
+
resolveComponentContext: m,
|
|
1314
|
+
triggerBelongedComponentToMoveWhenMoved: s,
|
|
1324
1315
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1325
1316
|
getPropsConfig: r
|
|
1326
1317
|
};
|
|
@@ -1331,17 +1322,17 @@ function Qe(e, t, n) {
|
|
|
1331
1322
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
1332
1323
|
}
|
|
1333
1324
|
o();
|
|
1334
|
-
const a = n && n.getStyles && n.getStyles() || "",
|
|
1335
|
-
function
|
|
1325
|
+
const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", d = b();
|
|
1326
|
+
function m() {
|
|
1336
1327
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
1337
1328
|
}
|
|
1338
|
-
function
|
|
1329
|
+
function s() {
|
|
1339
1330
|
return !1;
|
|
1340
1331
|
}
|
|
1341
1332
|
function i() {
|
|
1342
1333
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
1343
1334
|
}
|
|
1344
|
-
function
|
|
1335
|
+
function u() {
|
|
1345
1336
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
1346
1337
|
}
|
|
1347
1338
|
function r(h) {
|
|
@@ -1352,9 +1343,9 @@ function Qe(e, t, n) {
|
|
|
1352
1343
|
const C = b(h == null ? void 0 : h.value.parent), w = r(C);
|
|
1353
1344
|
return w || null;
|
|
1354
1345
|
}
|
|
1355
|
-
function
|
|
1346
|
+
function c(h = t) {
|
|
1356
1347
|
const { componentInstance: C, designerItemElementRef: w } = h;
|
|
1357
|
-
return !C || !C.value ? null : C.value.canMove ? w :
|
|
1348
|
+
return !C || !C.value ? null : C.value.canMove ? w : c(h.parent);
|
|
1358
1349
|
}
|
|
1359
1350
|
function y(h) {
|
|
1360
1351
|
return !!n && n.canAccepts(h);
|
|
@@ -1376,43 +1367,43 @@ function Qe(e, t, n) {
|
|
|
1376
1367
|
}
|
|
1377
1368
|
function F(h, C) {
|
|
1378
1369
|
const w = String(h.getAttribute("data-controltype")), V = h.getAttribute("data-feature"), N = V ? JSON.parse(V) : {};
|
|
1379
|
-
N.parentComponentInstance =
|
|
1370
|
+
N.parentComponentInstance = d.value;
|
|
1380
1371
|
let D = G(w, N);
|
|
1381
1372
|
n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, C, D));
|
|
1382
1373
|
const j = w.toLowerCase().replace("-", "_");
|
|
1383
1374
|
return D && !D.id && D.type === w && (D.id = `${j}_${Math.random().toString().slice(2, 6)}`), D;
|
|
1384
1375
|
}
|
|
1385
|
-
function
|
|
1376
|
+
function P(h) {
|
|
1386
1377
|
}
|
|
1387
1378
|
function M(...h) {
|
|
1388
1379
|
if (n && n.getPropsConfig)
|
|
1389
1380
|
return n.getPropsConfig(...h);
|
|
1390
1381
|
}
|
|
1391
|
-
return
|
|
1392
|
-
canMove:
|
|
1393
|
-
canSelectParent:
|
|
1382
|
+
return d.value = {
|
|
1383
|
+
canMove: m(),
|
|
1384
|
+
canSelectParent: s(),
|
|
1394
1385
|
canDelete: i(),
|
|
1395
|
-
canNested: !
|
|
1386
|
+
canNested: !u(),
|
|
1396
1387
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1397
1388
|
elementRef: e,
|
|
1398
1389
|
parent: (O = t == null ? void 0 : t.parent) == null ? void 0 : O.componentInstance,
|
|
1399
1390
|
schema: t == null ? void 0 : t.schema,
|
|
1400
1391
|
styles: a,
|
|
1401
|
-
designerClass:
|
|
1392
|
+
designerClass: l,
|
|
1402
1393
|
canAccepts: y,
|
|
1403
1394
|
getBelongedComponentInstance: r,
|
|
1404
|
-
getDraggableDesignItemElement:
|
|
1395
|
+
getDraggableDesignItemElement: c,
|
|
1405
1396
|
getDraggingDisplayText: f,
|
|
1406
1397
|
getPropConfig: M,
|
|
1407
1398
|
getDragScopeElement: T,
|
|
1408
1399
|
onAcceptMovedChildElement: k,
|
|
1409
1400
|
onAcceptNewChildElement: F,
|
|
1410
|
-
onChildElementMovedOut:
|
|
1401
|
+
onChildElementMovedOut: P,
|
|
1411
1402
|
addNewChildComponentSchema: S,
|
|
1412
1403
|
updateDragAndDropRules: o,
|
|
1413
1404
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
1414
1405
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
|
|
1415
|
-
},
|
|
1406
|
+
}, d;
|
|
1416
1407
|
}
|
|
1417
1408
|
const Re = /* @__PURE__ */ Q({
|
|
1418
1409
|
name: "FInputGroupDesign",
|
|
@@ -1420,32 +1411,32 @@ const Re = /* @__PURE__ */ Q({
|
|
|
1420
1411
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
1421
1412
|
setup(e, t) {
|
|
1422
1413
|
const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
|
|
1423
|
-
inputGroupClass:
|
|
1424
|
-
inputType:
|
|
1425
|
-
inputGroupStyle:
|
|
1426
|
-
} = a,
|
|
1414
|
+
inputGroupClass: l,
|
|
1415
|
+
inputType: d,
|
|
1416
|
+
inputGroupStyle: m
|
|
1417
|
+
} = a, s = Y(e), {
|
|
1427
1418
|
shouldShowAppendedButton: i
|
|
1428
|
-
} =
|
|
1419
|
+
} = s, u = X(e, t, a), {
|
|
1429
1420
|
onMouseEnter: r,
|
|
1430
|
-
onMouseLeave:
|
|
1431
|
-
} =
|
|
1421
|
+
onMouseLeave: c
|
|
1422
|
+
} = u, y = K(e, t, d, s), f = b(), T = q("designer-host-service"), k = q("design-item-context"), S = qe(k, T), F = Qe(f, k, S);
|
|
1432
1423
|
L(() => {
|
|
1433
1424
|
f.value.componentInstance = F;
|
|
1434
1425
|
}), t.expose(F.value);
|
|
1435
|
-
const
|
|
1426
|
+
const P = J(e, t, s, u, y), M = b();
|
|
1436
1427
|
return () => B("div", {
|
|
1437
1428
|
id: "inputGroup",
|
|
1438
1429
|
ref: f,
|
|
1439
|
-
class:
|
|
1440
|
-
style:
|
|
1430
|
+
class: l.value,
|
|
1431
|
+
style: m.value,
|
|
1441
1432
|
onMouseenter: r,
|
|
1442
|
-
onMouseleave:
|
|
1433
|
+
onMouseleave: c
|
|
1443
1434
|
}, [B("input", {
|
|
1444
1435
|
ref: M,
|
|
1445
1436
|
class: "form-control",
|
|
1446
1437
|
readonly: !0,
|
|
1447
1438
|
placeholder: e.placeholder
|
|
1448
|
-
}, null), i.value &&
|
|
1439
|
+
}, null), i.value && P()]);
|
|
1449
1440
|
}
|
|
1450
1441
|
});
|
|
1451
1442
|
I.register = (e, t, n, o) => {
|