@farris/ui-vue 1.2.4 → 1.2.6
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 +58 -58
- package/components/accordion/index.umd.cjs +1 -1
- package/components/accordion/package.json +1 -1
- package/components/avatar/index.esm.js +124 -116
- 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/index.esm.js +1 -1
- package/components/capsule/index.umd.cjs +1 -1
- package/components/capsule/package.json +1 -1
- package/components/checkbox/index.esm.js +219 -209
- 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 +36 -28
- 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/index.esm.js +2 -2
- package/components/common/index.umd.cjs +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 +406 -402
- 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 +4439 -4273
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-grid/package.json +1 -1
- package/components/data-view/index.esm.js +2904 -2892
- package/components/data-view/index.umd.cjs +1 -1
- package/components/data-view/package.json +1 -1
- package/components/date-picker/index.esm.js +250 -242
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/date-picker/package.json +1 -1
- package/components/designer-canvas/index.css +1 -0
- package/components/designer-canvas/index.esm.js +24 -21
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/designer-canvas/package.json +1 -1
- package/components/designer-outline/index.esm.js +44 -42
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/designer-outline/package.json +1 -1
- package/components/designer-toolbox/index.esm.js +28 -467
- package/components/designer-toolbox/index.umd.cjs +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 +984 -928
- 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 +281 -277
- 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 +1917 -1901
- 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 +4185 -4023
- 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 +595 -581
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/filter-bar/package.json +1 -1
- package/components/flow-canvas/index.css +1 -0
- package/components/flow-canvas/index.esm.js +38 -35
- 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 +256 -248
- 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 +1522 -1519
- 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 +4629 -4410
- 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 +4454 -4255
- 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/index.esm.js +511 -469
- package/components/nav/index.umd.cjs +2 -2
- package/components/nav/package.json +1 -1
- package/components/notify/package.json +1 -1
- package/components/order/index.esm.js +972 -920
- 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 +917 -893
- package/components/page-header/index.umd.cjs +1 -1
- package/components/page-header/package.json +1 -1
- package/components/pagination/index.esm.js +491 -449
- package/components/pagination/index.umd.cjs +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 +108 -101
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-editor/package.json +1 -1
- package/components/property-panel/index.esm.js +361 -349
- 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 +72 -64
- 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 +452 -439
- 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 +610 -592
- 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 +4041 -3749
- 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 +159 -178
- 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 +1450 -1408
- 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 +86 -78
- 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 +387 -379
- 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 +95 -93
- 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 +4437 -4271
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-grid/package.json +1 -1
- package/components/tree-view/index.esm.js +1989 -1985
- 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 +12989 -12513
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -0
- package/package.json +2 -2
- 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/condition/index.d.ts +60 -1
- 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/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/data-view/components/column-setting/column-setting.component.d.ts +2 -1
- package/types/data-view/composition/types.d.ts +2 -0
- 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/designer/use-designer-rules.d.ts +3 -3
- 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/list-view/src/composition/types.d.ts +1 -1
- package/types/lookup/src/designer/use-lookup-rules.d.ts +3 -0
- package/types/lookup/src/property-config/converters/lookup-property.converter.d.ts +8 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +29 -25
- package/types/mapping-editor/src/mapping-editor.props.d.ts +8 -0
- package/types/message-box/index.d.ts +84 -1
- package/types/modal/src/modal.component.d.ts +3 -3
- package/types/modal/src/modal.props.d.ts +3 -5
- package/types/notify/index.d.ts +84 -1
- 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 -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/types/tree-grid/src/schema/column-resolver.d.ts +3 -0
- package/components/button-edit/style.css +0 -1
- package/components/designer-canvas/style.css +0 -1
- package/components/external-container/style.css +0 -1
- package/components/field-selector/style.css +0 -1
- package/components/flow-canvas/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-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/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
7
|
import { useNumber as ue, useFormat as se, useSpinner as ce, 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, s) {
|
|
47
47
|
if (typeof r == "number")
|
|
48
|
-
return
|
|
48
|
+
return s[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(s[i].length) !== Number(f);
|
|
53
53
|
if (y === "moreThan")
|
|
54
|
-
return Number(
|
|
54
|
+
return Number(s[i].length) >= Number(f);
|
|
55
55
|
if (y === "lessThan")
|
|
56
|
-
return Number(
|
|
56
|
+
return Number(s[i].length) <= Number(f);
|
|
57
57
|
}
|
|
58
58
|
return !1;
|
|
59
59
|
}
|
|
60
|
-
function n(i,
|
|
61
|
-
return
|
|
60
|
+
function n(i, u, r, s) {
|
|
61
|
+
return s[i] && s[i].propertyValue && String(s[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((s) => {
|
|
71
|
+
if (s === "length")
|
|
72
|
+
return { target: r, operator: "length", param: null, value: u[s] };
|
|
73
|
+
const y = s, f = u[s];
|
|
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, s) => {
|
|
79
|
+
const y = a(s, i[s]);
|
|
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 c(i,
|
|
94
|
-
const r = Object.keys(i),
|
|
95
|
-
return
|
|
93
|
+
function c(i, u) {
|
|
94
|
+
const r = Object.keys(i), s = r.includes("allOf"), y = r.includes("anyOf"), f = s || y, S = (f ? i[f ? s ? "allOf" : "anyOf" : "allOf"] : [i]).map((P) => m(P, u));
|
|
95
|
+
return s ? !S.includes(!1) : S.includes(!0);
|
|
96
96
|
}
|
|
97
97
|
return { parseValueSchema: c };
|
|
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(c,
|
|
212
|
+
function he(e, t, n = /* @__PURE__ */ new Map(), o = (d, m, c) => 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), c = Object.keys(e).reduce((i, u) => (i[u] = e[u].default, i), {});
|
|
215
|
+
return Object.assign(c, m);
|
|
216
216
|
};
|
|
217
217
|
}
|
|
218
218
|
function be(e, t) {
|
|
@@ -505,7 +505,7 @@ 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), c = b(e.textAlign), i = b(e.updateOn), u = g(() => e.editable || !e.readonly), r = g(() => e.editable && !e.disabled && !e.readonly), s = 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
511
|
"text-left": c.value === "left",
|
|
@@ -518,39 +518,39 @@ 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": s.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
|
-
function
|
|
537
|
-
return
|
|
536
|
+
function V(v) {
|
|
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
|
-
function
|
|
550
|
+
function O(v) {
|
|
551
551
|
t.emit("keydown", v);
|
|
552
552
|
}
|
|
553
|
-
function
|
|
553
|
+
function I(v) {
|
|
554
554
|
t.emit("keyup", v);
|
|
555
555
|
}
|
|
556
556
|
function D(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,30 +567,30 @@ function Ae(e, t, n, o) {
|
|
|
567
567
|
disabled: a,
|
|
568
568
|
displayText: o,
|
|
569
569
|
editable: r,
|
|
570
|
-
hasFocused:
|
|
570
|
+
hasFocused: s,
|
|
571
571
|
inputGroupClass: F,
|
|
572
|
-
inputType:
|
|
572
|
+
inputType: d,
|
|
573
573
|
isEmpty: y,
|
|
574
574
|
modelValue: n,
|
|
575
575
|
readonly: T,
|
|
576
|
-
onBlur:
|
|
576
|
+
onBlur: V,
|
|
577
577
|
onClick: h,
|
|
578
578
|
onFocus: C,
|
|
579
579
|
onInput: w,
|
|
580
|
-
onKeydown:
|
|
581
|
-
onKeyup:
|
|
580
|
+
onKeydown: O,
|
|
581
|
+
onKeyup: I,
|
|
582
582
|
onMousedown: D,
|
|
583
583
|
onTextBoxValueChange: j,
|
|
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), c = 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), s = 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
596
|
"text-left": c.value === "left",
|
|
@@ -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,29 +623,29 @@ function De(e, t, n, o) {
|
|
|
623
623
|
// onKeyup,
|
|
624
624
|
// onMousedown,
|
|
625
625
|
// onTextBoxValueChange,
|
|
626
|
-
placeholder:
|
|
626
|
+
placeholder: s,
|
|
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: c } = 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 s(T) {
|
|
648
|
+
T.stopPropagation(), a.value && (l("", !0), i(!o.value), t.emit("clear"));
|
|
649
649
|
}
|
|
650
650
|
function y(T) {
|
|
651
651
|
a.value && !c.value && i(!0);
|
|
@@ -653,10 +653,10 @@ function X(e, t, n) {
|
|
|
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: s, onMouseEnter: y, onMouseLeave: f, shouldShowClearButton: a };
|
|
657
657
|
}
|
|
658
658
|
const Ee = ["moz", "ms", "webkit"];
|
|
659
|
-
function
|
|
659
|
+
function Ve() {
|
|
660
660
|
let e = 0;
|
|
661
661
|
return (t) => {
|
|
662
662
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), a = setTimeout(() => {
|
|
@@ -665,15 +665,15 @@ function Oe() {
|
|
|
665
665
|
return e = n + o, a;
|
|
666
666
|
};
|
|
667
667
|
}
|
|
668
|
-
function
|
|
668
|
+
function Oe() {
|
|
669
669
|
if (typeof window > "u")
|
|
670
670
|
return () => 0;
|
|
671
671
|
if (window.requestAnimationFrame)
|
|
672
672
|
return window.requestAnimationFrame.bind(window);
|
|
673
673
|
const e = Ee.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
674
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
674
|
+
return e ? window[`${e}RequestAnimationFrame`] : Ve();
|
|
675
675
|
}
|
|
676
|
-
|
|
676
|
+
Oe();
|
|
677
677
|
const Le = (e) => {
|
|
678
678
|
const t = e;
|
|
679
679
|
return t.install = function(n) {
|
|
@@ -688,45 +688,45 @@ 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>', c = '<span class="f-icon f-icon-eye"></span>', i = b(!1);
|
|
692
|
+
E(() => [e.readonly, e.disabled], ([s, y]) => {
|
|
693
|
+
d.value && (n.value = s || y ? "password" : n.value, a.value = s || y ? c : 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 : c, !1;
|
|
697
697
|
}
|
|
698
698
|
function r() {
|
|
699
|
-
n.value =
|
|
699
|
+
n.value = d.value ? "password" : "text", a.value = d.value ? l.value ? c : "" : a.value;
|
|
700
700
|
}
|
|
701
|
-
return r(), { isPassword:
|
|
701
|
+
return r(), { isPassword: d, onClickAppendedButton: u };
|
|
702
702
|
}
|
|
703
|
-
function
|
|
703
|
+
function Ie(e, t, n) {
|
|
704
704
|
const o = b(), {
|
|
705
705
|
onBlurTextBox: a,
|
|
706
|
-
onFocusTextBox:
|
|
707
|
-
onInput:
|
|
708
|
-
onKeyDown:
|
|
706
|
+
onFocusTextBox: l,
|
|
707
|
+
onInput: d,
|
|
708
|
+
onKeyDown: m,
|
|
709
709
|
textBoxValue: c
|
|
710
|
-
} = n, i = g(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
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 s(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
732
|
value: c.value,
|
|
@@ -734,19 +734,19 @@ function Ne(e, t, n) {
|
|
|
734
734
|
readonly: e.readonly || !e.editable,
|
|
735
735
|
placeholder: i.value,
|
|
736
736
|
onBlur: a,
|
|
737
|
-
onChange:
|
|
737
|
+
onChange: s,
|
|
738
738
|
onFocus: f,
|
|
739
|
-
onInput:
|
|
740
|
-
onKeydown:
|
|
739
|
+
onInput: d,
|
|
740
|
+
onKeydown: m
|
|
741
741
|
}, null);
|
|
742
742
|
}
|
|
743
|
-
function
|
|
743
|
+
function Ne(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
|
|
@@ -757,97 +757,97 @@ function Ie(e, t, n) {
|
|
|
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
768
|
class: c.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
776
|
class: c.value,
|
|
777
|
-
style:
|
|
778
|
-
onClick:
|
|
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 = se(e, t, n), a = ce(e, t, o, n),
|
|
786
|
-
displayValue:
|
|
785
|
+
const n = ue(e, t), o = se(e, t, n), a = ce(e, t, o, n), l = pe(e, t, o, n, a), d = Ne(e, t, a), {
|
|
786
|
+
displayValue: m,
|
|
787
787
|
modelValue: c,
|
|
788
788
|
getRealValue: i
|
|
789
|
-
} = n,
|
|
789
|
+
} = n, u = Ie(e, t, l), {
|
|
790
790
|
format: r
|
|
791
791
|
} = o, {
|
|
792
|
-
isFocus:
|
|
793
|
-
} =
|
|
792
|
+
isFocus: s
|
|
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
|
-
c.value = T,
|
|
799
|
+
c.value = T, m.value = r(T);
|
|
800
800
|
}), E(() => [e.modelValue], ([f]) => {
|
|
801
|
-
f !== c.value && (c.value = f, !
|
|
801
|
+
f !== c.value && (c.value = f, !s.value && (m.value = r(i(f))));
|
|
802
802
|
}), E(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
803
|
-
|
|
803
|
+
m.value = r(c.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, c = b(e.minLength), i = b(e.maxLength),
|
|
809
|
+
const a = b(), l = b(e.autocomplete), d = b(e.enableTitle), {
|
|
810
|
+
isPassword: m
|
|
811
|
+
} = n, c = b(e.minLength), i = b(e.maxLength), u = b(e.tabIndex), {
|
|
812
812
|
disabled: r,
|
|
813
|
-
displayText:
|
|
813
|
+
displayText: s,
|
|
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
|
-
onTextBoxValueChange:
|
|
822
|
+
onTextBoxValueChange: V,
|
|
823
823
|
readonly: h,
|
|
824
824
|
placeholder: C,
|
|
825
825
|
textBoxClass: w,
|
|
826
|
-
textBoxTitle:
|
|
826
|
+
textBoxTitle: O
|
|
827
827
|
} = o;
|
|
828
828
|
return L(() => {
|
|
829
829
|
e.selectOnCreated, e.focusOnCreated;
|
|
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
837
|
minlength: c.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 ? O.value : "",
|
|
842
842
|
type: y.value,
|
|
843
|
-
value:
|
|
843
|
+
value: s == null ? void 0 : s.value,
|
|
844
844
|
onBlur: f,
|
|
845
845
|
onClick: S,
|
|
846
|
-
onChange:
|
|
846
|
+
onChange: V,
|
|
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), c = g(() => d.value && !t.slots.groupTextTemplate), i = g(() => !!t.slots.groupTextTemplate), {
|
|
875
|
+
clearButtonClass: u,
|
|
876
876
|
clearButtonStyle: r,
|
|
877
|
-
onClearValue:
|
|
877
|
+
onClearValue: s,
|
|
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) => s(C)
|
|
886
886
|
}, [B("i", {
|
|
887
887
|
class: "f-icon modal_close"
|
|
888
888
|
}, null)]);
|
|
@@ -894,46 +894,46 @@ 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
|
}
|
|
911
911
|
function M() {
|
|
912
912
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
913
913
|
}
|
|
914
|
-
function
|
|
915
|
-
return c.value ?
|
|
914
|
+
function V() {
|
|
915
|
+
return c.value ? P : i.value ? M : "";
|
|
916
916
|
}
|
|
917
|
-
const h =
|
|
917
|
+
const h = V();
|
|
918
918
|
return () => B("div", {
|
|
919
|
-
class:
|
|
919
|
+
class: l.value
|
|
920
920
|
}, [y.value && f(), h && h()]);
|
|
921
921
|
}
|
|
922
|
-
const
|
|
922
|
+
const N = /* @__PURE__ */ Q({
|
|
923
923
|
name: "FInputGroup",
|
|
924
924
|
props: H,
|
|
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:
|
|
928
|
+
inputGroupClass: l,
|
|
929
|
+
inputType: d,
|
|
930
|
+
inputGroupStyle: m
|
|
931
931
|
} = a, c = Y(e), {
|
|
932
932
|
shouldShowAppendedButton: i
|
|
933
|
-
} = c,
|
|
933
|
+
} = c, u = X(e, t, a), {
|
|
934
934
|
onMouseEnter: r,
|
|
935
|
-
onMouseLeave:
|
|
936
|
-
} =
|
|
935
|
+
onMouseLeave: s
|
|
936
|
+
} = u, y = K(e, t, d, c), f = je(e, t), T = Ge(e, t, y, a), k = J(e, t, c, 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: s
|
|
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
969
|
function c(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:
|
|
978
|
+
checkCanDeleteComponent: l,
|
|
979
|
+
checkCanMoveComponent: d,
|
|
980
|
+
hideNestedPaddingInDesginerView: m,
|
|
981
981
|
onAcceptMovedChildElement: c,
|
|
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,12 +1135,12 @@ class $e {
|
|
|
1127
1135
|
* @param newControlType 新控件类型
|
|
1128
1136
|
*/
|
|
1129
1137
|
changeControlType(t, n) {
|
|
1130
|
-
var i,
|
|
1138
|
+
var i, u, r, s, 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
|
|
1143
|
+
const d = l.contents.findIndex((f) => f.id === t.id), m = l.contents[d];
|
|
1136
1144
|
let c;
|
|
1137
1145
|
this.designViewModelField && (this.designViewModelUtils.getDgViewModel(this.viewModelId).changeField(this.designViewModelField.id, {
|
|
1138
1146
|
editor: {
|
|
@@ -1142,19 +1150,19 @@ class $e {
|
|
|
1142
1150
|
require: this.designViewModelField.require,
|
|
1143
1151
|
readonly: this.designViewModelField.readonly
|
|
1144
1152
|
}, !1), c = this.controlCreatorUtils.setFormFieldProperty("Form", this.designViewModelField, null, o)), Object.assign(c, {
|
|
1145
|
-
id:
|
|
1146
|
-
appearance:
|
|
1147
|
-
size:
|
|
1148
|
-
label:
|
|
1153
|
+
id: m.id,
|
|
1154
|
+
appearance: m.appearance,
|
|
1155
|
+
size: m.size,
|
|
1156
|
+
label: m.label
|
|
1149
1157
|
}), Object.assign(c.editor, {
|
|
1150
|
-
isTextArea: c.isTextArea &&
|
|
1158
|
+
isTextArea: c.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: (s = m.editor) == null ? void 0 : s.require,
|
|
1164
|
+
visible: (y = m.editor) == null ? void 0 : y.visible
|
|
1165
|
+
}), l.contents.splice(d, 1, c);
|
|
1158
1166
|
}
|
|
1159
1167
|
getAppearanceConfig(t = null) {
|
|
1160
1168
|
return {
|
|
@@ -1269,7 +1277,7 @@ class ze extends $e {
|
|
|
1269
1277
|
title: "组件信息",
|
|
1270
1278
|
type: "input-group",
|
|
1271
1279
|
$converter: "/converter/property-editor.converter"
|
|
1272
|
-
}, n),
|
|
1280
|
+
}, n), l = Object.assign({
|
|
1273
1281
|
readonly: {
|
|
1274
1282
|
description: "",
|
|
1275
1283
|
title: "只读",
|
|
@@ -1291,7 +1299,7 @@ class ze extends $e {
|
|
|
1291
1299
|
type: "string"
|
|
1292
1300
|
}
|
|
1293
1301
|
}, o);
|
|
1294
|
-
return { ...a, properties: { ...
|
|
1302
|
+
return { ...a, properties: { ...l } };
|
|
1295
1303
|
}
|
|
1296
1304
|
}
|
|
1297
1305
|
class We extends ze {
|
|
@@ -1304,35 +1312,35 @@ function qe(e, t) {
|
|
|
1304
1312
|
canAccepts: n,
|
|
1305
1313
|
checkCanDeleteComponent: o,
|
|
1306
1314
|
checkCanMoveComponent: a,
|
|
1307
|
-
hideNestedPaddingInDesginerView:
|
|
1308
|
-
onAcceptMovedChildElement:
|
|
1309
|
-
resolveComponentContext:
|
|
1315
|
+
hideNestedPaddingInDesginerView: l,
|
|
1316
|
+
onAcceptMovedChildElement: d,
|
|
1317
|
+
resolveComponentContext: m,
|
|
1310
1318
|
triggerBelongedComponentToMoveWhenMoved: c,
|
|
1311
1319
|
triggerBelongedComponentToDeleteWhenDeleted: i
|
|
1312
|
-
} = He(e),
|
|
1313
|
-
function r(
|
|
1314
|
-
return new We(
|
|
1320
|
+
} = He(e), u = e.schema;
|
|
1321
|
+
function r(s) {
|
|
1322
|
+
return new We(s, t).getPropertyConfig(u);
|
|
1315
1323
|
}
|
|
1316
1324
|
return {
|
|
1317
1325
|
canAccepts: n,
|
|
1318
1326
|
checkCanDeleteComponent: o,
|
|
1319
1327
|
checkCanMoveComponent: a,
|
|
1320
|
-
hideNestedPaddingInDesginerView:
|
|
1321
|
-
onAcceptMovedChildElement:
|
|
1322
|
-
resolveComponentContext:
|
|
1328
|
+
hideNestedPaddingInDesginerView: l,
|
|
1329
|
+
onAcceptMovedChildElement: d,
|
|
1330
|
+
resolveComponentContext: m,
|
|
1323
1331
|
triggerBelongedComponentToMoveWhenMoved: c,
|
|
1324
1332
|
triggerBelongedComponentToDeleteWhenDeleted: i,
|
|
1325
1333
|
getPropsConfig: r
|
|
1326
1334
|
};
|
|
1327
1335
|
}
|
|
1328
1336
|
function Qe(e, t, n) {
|
|
1329
|
-
var
|
|
1337
|
+
var V;
|
|
1330
1338
|
function o() {
|
|
1331
1339
|
n != null && n.resolveComponentContext && n.resolveComponentContext();
|
|
1332
1340
|
}
|
|
1333
1341
|
o();
|
|
1334
|
-
const a = n && n.getStyles && n.getStyles() || "",
|
|
1335
|
-
function
|
|
1342
|
+
const a = n && n.getStyles && n.getStyles() || "", l = n && n.getDesignerClass && n.getDesignerClass() || "", d = b();
|
|
1343
|
+
function m() {
|
|
1336
1344
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanMoveComponent ? n.checkCanMoveComponent() : !0;
|
|
1337
1345
|
}
|
|
1338
1346
|
function c() {
|
|
@@ -1341,7 +1349,7 @@ function Qe(e, t, n) {
|
|
|
1341
1349
|
function i() {
|
|
1342
1350
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !1 : n && n.checkCanDeleteComponent ? n.checkCanDeleteComponent() : !0;
|
|
1343
1351
|
}
|
|
1344
|
-
function
|
|
1352
|
+
function u() {
|
|
1345
1353
|
return (t == null ? void 0 : t.schema.componentType) === "frame" ? !0 : n && n.hideNestedPaddingInDesginerView ? n.hideNestedPaddingInDesginerView() : !1;
|
|
1346
1354
|
}
|
|
1347
1355
|
function r(h) {
|
|
@@ -1352,9 +1360,9 @@ function Qe(e, t, n) {
|
|
|
1352
1360
|
const C = b(h == null ? void 0 : h.value.parent), w = r(C);
|
|
1353
1361
|
return w || null;
|
|
1354
1362
|
}
|
|
1355
|
-
function
|
|
1363
|
+
function s(h = t) {
|
|
1356
1364
|
const { componentInstance: C, designerItemElementRef: w } = h;
|
|
1357
|
-
return !C || !C.value ? null : C.value.canMove ? w :
|
|
1365
|
+
return !C || !C.value ? null : C.value.canMove ? w : s(h.parent);
|
|
1358
1366
|
}
|
|
1359
1367
|
function y(h) {
|
|
1360
1368
|
return !!n && n.canAccepts(h);
|
|
@@ -1371,48 +1379,48 @@ function Qe(e, t, n) {
|
|
|
1371
1379
|
const { componentType: C } = h;
|
|
1372
1380
|
let w = G(C, h);
|
|
1373
1381
|
n && n.onResolveNewComponentSchema && (w = n.onResolveNewComponentSchema(h, w));
|
|
1374
|
-
const
|
|
1375
|
-
return w && !w.id && w.type === C && (w.id = `${
|
|
1382
|
+
const O = C.toLowerCase().replace("-", "_");
|
|
1383
|
+
return w && !w.id && w.type === C && (w.id = `${O}_${Math.random().toString().slice(2, 6)}`), w;
|
|
1376
1384
|
}
|
|
1377
1385
|
function F(h, C) {
|
|
1378
|
-
const w = String(h.getAttribute("data-controltype")),
|
|
1379
|
-
|
|
1380
|
-
let D = G(w,
|
|
1386
|
+
const w = String(h.getAttribute("data-controltype")), O = h.getAttribute("data-feature"), I = O ? JSON.parse(O) : {};
|
|
1387
|
+
I.parentComponentInstance = d.value;
|
|
1388
|
+
let D = G(w, I);
|
|
1381
1389
|
n && n.onAcceptNewChildElement && (D = n.onAcceptNewChildElement(h, C, D));
|
|
1382
1390
|
const j = w.toLowerCase().replace("-", "_");
|
|
1383
1391
|
return D && !D.id && D.type === w && (D.id = `${j}_${Math.random().toString().slice(2, 6)}`), D;
|
|
1384
1392
|
}
|
|
1385
|
-
function
|
|
1393
|
+
function P(h) {
|
|
1386
1394
|
}
|
|
1387
1395
|
function M(...h) {
|
|
1388
1396
|
if (n && n.getPropsConfig)
|
|
1389
1397
|
return n.getPropsConfig(...h);
|
|
1390
1398
|
}
|
|
1391
|
-
return
|
|
1392
|
-
canMove:
|
|
1399
|
+
return d.value = {
|
|
1400
|
+
canMove: m(),
|
|
1393
1401
|
canSelectParent: c(),
|
|
1394
1402
|
canDelete: i(),
|
|
1395
|
-
canNested: !
|
|
1403
|
+
canNested: !u(),
|
|
1396
1404
|
contents: t == null ? void 0 : t.schema.contents,
|
|
1397
1405
|
elementRef: e,
|
|
1398
|
-
parent: (
|
|
1406
|
+
parent: (V = t == null ? void 0 : t.parent) == null ? void 0 : V.componentInstance,
|
|
1399
1407
|
schema: t == null ? void 0 : t.schema,
|
|
1400
1408
|
styles: a,
|
|
1401
|
-
designerClass:
|
|
1409
|
+
designerClass: l,
|
|
1402
1410
|
canAccepts: y,
|
|
1403
1411
|
getBelongedComponentInstance: r,
|
|
1404
|
-
getDraggableDesignItemElement:
|
|
1412
|
+
getDraggableDesignItemElement: s,
|
|
1405
1413
|
getDraggingDisplayText: f,
|
|
1406
1414
|
getPropConfig: M,
|
|
1407
1415
|
getDragScopeElement: T,
|
|
1408
1416
|
onAcceptMovedChildElement: k,
|
|
1409
1417
|
onAcceptNewChildElement: F,
|
|
1410
|
-
onChildElementMovedOut:
|
|
1418
|
+
onChildElementMovedOut: P,
|
|
1411
1419
|
addNewChildComponentSchema: S,
|
|
1412
1420
|
updateDragAndDropRules: o,
|
|
1413
1421
|
triggerBelongedComponentToMoveWhenMoved: !!n && n.triggerBelongedComponentToMoveWhenMoved || b(!1),
|
|
1414
1422
|
triggerBelongedComponentToDeleteWhenDeleted: !!n && n.triggerBelongedComponentToDeleteWhenDeleted || b(!1)
|
|
1415
|
-
},
|
|
1423
|
+
}, d;
|
|
1416
1424
|
}
|
|
1417
1425
|
const Re = /* @__PURE__ */ Q({
|
|
1418
1426
|
name: "FInputGroupDesign",
|
|
@@ -1420,43 +1428,43 @@ const Re = /* @__PURE__ */ Q({
|
|
|
1420
1428
|
emits: ["updateExtendInfo", "clear", "valueChange", "clickHandle", "blurHandle", "focusHandle", "enterHandle", "iconMouseEnter", "iconMouseLeave", "keyupHandle", "keydownHandle", "inputClick"],
|
|
1421
1429
|
setup(e, t) {
|
|
1422
1430
|
const n = b(e.modelValue), o = b(e.modelValue), a = De(e, t, n, o), {
|
|
1423
|
-
inputGroupClass:
|
|
1424
|
-
inputType:
|
|
1425
|
-
inputGroupStyle:
|
|
1431
|
+
inputGroupClass: l,
|
|
1432
|
+
inputType: d,
|
|
1433
|
+
inputGroupStyle: m
|
|
1426
1434
|
} = a, c = Y(e), {
|
|
1427
1435
|
shouldShowAppendedButton: i
|
|
1428
|
-
} = c,
|
|
1436
|
+
} = c, u = X(e, t, a), {
|
|
1429
1437
|
onMouseEnter: r,
|
|
1430
|
-
onMouseLeave:
|
|
1431
|
-
} =
|
|
1438
|
+
onMouseLeave: s
|
|
1439
|
+
} = u, y = K(e, t, d, c), f = b(), T = q("designer-host-service"), k = q("design-item-context"), S = qe(k, T), F = Qe(f, k, S);
|
|
1432
1440
|
L(() => {
|
|
1433
1441
|
f.value.componentInstance = F;
|
|
1434
1442
|
}), t.expose(F.value);
|
|
1435
|
-
const
|
|
1443
|
+
const P = J(e, t, c, u, y), M = b();
|
|
1436
1444
|
return () => B("div", {
|
|
1437
1445
|
id: "inputGroup",
|
|
1438
1446
|
ref: f,
|
|
1439
|
-
class:
|
|
1440
|
-
style:
|
|
1447
|
+
class: l.value,
|
|
1448
|
+
style: m.value,
|
|
1441
1449
|
onMouseenter: r,
|
|
1442
|
-
onMouseleave:
|
|
1450
|
+
onMouseleave: s
|
|
1443
1451
|
}, [B("input", {
|
|
1444
1452
|
ref: M,
|
|
1445
1453
|
class: "form-control",
|
|
1446
1454
|
readonly: !0,
|
|
1447
1455
|
placeholder: e.placeholder
|
|
1448
|
-
}, null), i.value &&
|
|
1456
|
+
}, null), i.value && P()]);
|
|
1449
1457
|
}
|
|
1450
1458
|
});
|
|
1451
|
-
|
|
1452
|
-
e["input-group"] =
|
|
1459
|
+
N.register = (e, t, n, o) => {
|
|
1460
|
+
e["input-group"] = N, t["input-group"] = Z;
|
|
1453
1461
|
};
|
|
1454
|
-
|
|
1462
|
+
N.registerDesigner = (e, t, n) => {
|
|
1455
1463
|
e["input-group"] = Re, t["input-group"] = Z;
|
|
1456
1464
|
};
|
|
1457
|
-
const Je = Le(
|
|
1465
|
+
const Je = Le(N);
|
|
1458
1466
|
export {
|
|
1459
|
-
|
|
1467
|
+
N as FInputGroup,
|
|
1460
1468
|
Je as default,
|
|
1461
1469
|
H as inputGroupProps,
|
|
1462
1470
|
Z as propsResolver
|