@farris/ui-vue 1.3.0 → 1.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/accordion/index.esm.js +1 -1
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +472 -366
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.esm.js +1 -1
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +472 -480
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +225 -233
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +615 -517
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +325 -333
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +578 -472
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +49 -49
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +832 -722
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +303 -981
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.esm.js +8 -8
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +335 -1002
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.esm.js +4429 -4312
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.esm.js +3037 -3020
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.esm.js +2216 -2119
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +914 -883
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +223 -231
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +1691 -2187
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +143 -136
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +250 -258
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +1 -1
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.esm.js +2672 -3438
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.esm.js +2965 -2970
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.esm.js +1650 -1602
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/flow-canvas/index.css +1 -1
- package/components/flow-canvas/index.esm.js +684 -675
- package/components/flow-canvas/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +453 -461
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +604 -507
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +402 -378
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +348 -1019
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.esm.js +1658 -1666
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +5209 -5088
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.esm.js +4329 -4213
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +905 -1357
- package/components/nav/index.umd.cjs +3 -3
- package/components/number-range/index.esm.js +517 -420
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +588 -491
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.esm.js +1376 -1965
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +1 -1
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +1073 -1905
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +809 -1237
- package/components/pagination/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +198 -206
- package/components/progress/index.umd.cjs +3 -3
- package/components/property-editor/index.esm.js +1297 -1200
- package/components/property-editor/index.umd.cjs +2 -2
- package/components/property-panel/index.esm.js +609 -507
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.esm.js +3391 -3758
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +1 -1
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +544 -447
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +247 -255
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +146 -154
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.esm.js +700 -675
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +956 -1786
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +4963 -5617
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +158 -161
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +436 -1124
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +92 -100
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +571 -1210
- package/components/splitter/index.umd.cjs +1 -1
- package/components/splitter/style.js +2 -0
- package/components/step/index.esm.js +239 -247
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +445 -348
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +2278 -3031
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +311 -319
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +215 -223
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +468 -371
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.esm.js +1271 -1174
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.esm.js +469 -477
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.esm.js +3060 -3065
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.esm.js +2476 -2481
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +374 -382
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +248 -256
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +414 -1093
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +498 -506
- package/components/weather/index.umd.cjs +5 -5
- package/farris.all.esm.js +20216 -21844
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/common/directive/area-response.d.ts +10 -0
- package/types/common/index.d.ts +8 -0
- package/types/common/radio-checkbox/radio-checkbox.props.d.ts +1 -0
- package/types/common/utils/resolve-field.d.ts +2 -0
- package/types/common/utils/use-class.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +2 -2
- package/types/condition/src/types.d.ts +2 -1
- package/types/content-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/data-grid/index.d.ts +8 -5
- package/types/data-grid/src/data-grid.component.d.ts +3 -2
- package/types/data-grid/src/designer/data-grid.design.component.d.ts +2 -2
- package/types/data-grid/src/designer/use-designer-rules.d.ts +2 -2
- package/types/data-view/components/row/hierarchy-row.component.d.ts +2 -2
- package/types/data-view/composition/data/use-tree-data.d.ts +1 -1
- package/types/data-view/composition/types.d.ts +7 -9
- package/types/designer-canvas/index.d.ts +2 -1
- package/types/designer-canvas/src/composition/rule/use-dragula-common-rule.d.ts +4 -0
- package/types/designer-canvas/src/composition/rule/use-template-rule.d.ts +30 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -2
- package/types/designer-canvas/src/types.d.ts +2 -1
- package/types/dynamic-form/src/designer/response-form.design.component.d.ts +7 -1
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +1 -1
- package/types/dynamic-resolver/src/common/toolbar-resolver.d.ts +1 -1
- package/types/external-container/src/designer/use-designer-rules.d.ts +3 -3
- package/types/layout/src/designer/layout-pane-use-designer-rules.d.ts +3 -3
- package/types/list-nav/src/designer/use-designer-rules.d.ts +3 -0
- package/types/pagination/src/components/buttons/goto-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/next-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/buttons/previous-buttons.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-list.component.d.ts +2 -2
- package/types/pagination/src/components/pages/page-number.component.d.ts +2 -2
- package/types/property-panel/index.d.ts +2 -1
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/composition/types.d.ts +34 -27
- package/types/query-solution/src/designer/query-solution-config/composition/use-panel.d.ts +2 -16
- package/types/query-solution/src/designer/query-solution-config/composition/use-property.d.ts +19 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-querysolution-rules.d.ts +3 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-transfer.d.ts +1 -1
- package/types/query-solution/src/property-config/query-solution.property-config.d.ts +60 -0
- package/types/query-solution/src/solutions.d.ts +108 -509
- package/types/response-layout-editor/index.d.ts +3 -1
- package/types/response-toolbar/src/designer/use-designer-rules.d.ts +3 -3
- package/types/response-toolbar/src/property-config/response-toolbar-item.property-config.d.ts +1 -0
- package/types/section/src/designer/use-designer-rules.d.ts +3 -3
- package/types/splitter/src/components/splitter-pane.component.d.ts +1 -1
- package/types/splitter/src/designer/splitter-pane-use-designer-rules.d.ts +3 -3
- package/types/splitter/src/designer/splitter-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-page-use-designer-rules.d.ts +3 -3
- package/types/tabs/src/designer/tab-use-designer-rules.d.ts +3 -3
- package/types/tree-grid/index.d.ts +3 -3
- package/types/tree-grid/src/tree-grid.component.d.ts +1 -1
- package/types/designer-canvas/src/composition/rule/use-drag-drop-rules.d.ts +0 -19
- package/types/designer-canvas/src/composition/use-dragula-common-rule.d.ts +0 -4
- package/types/list-nav/src/composition/use-designer-rules.d.ts +0 -3
- package/types/query-solution/src/designer/query-solution-config/composition/mock-data.d.ts +0 -6
|
@@ -1,66 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
var Ae = Object.defineProperty;
|
|
2
|
+
var Re = (e, t, n) => t in e ? Ae(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var $ = (e, t, n) => Re(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as h, computed as S, defineComponent as H, watch as R, createVNode as l, createTextVNode as de, onMounted as W, nextTick as le, reactive as De, withDirectives as $e, resolveDirective as Ge, Fragment as J, mergeProps as qe, inject as Ue, onBeforeMount as We } from "vue";
|
|
5
|
+
import { isPlainObject as se, cloneDeep as pe } from "lodash-es";
|
|
3
6
|
import "bignumber.js";
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import
|
|
13
|
-
import
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
const
|
|
7
|
+
import He, { useNumber as _e, useFormat as ze, useSpinner as Qe, useTextBox as Ze } from "../number-spinner/index.esm.js";
|
|
8
|
+
import Je from "../accordion/index.esm.js";
|
|
9
|
+
import Xe from "../avatar/index.esm.js";
|
|
10
|
+
import Ye from "../button-edit/index.esm.js";
|
|
11
|
+
import Ke from "../button-group/index.esm.js";
|
|
12
|
+
import et from "../calendar/index.esm.js";
|
|
13
|
+
import tt from "../capsule/index.esm.js";
|
|
14
|
+
import nt from "../checkbox/index.esm.js";
|
|
15
|
+
import ot from "../combo-list/index.esm.js";
|
|
16
|
+
import rt from "../combo-tree/index.esm.js";
|
|
17
|
+
import at from "../component/index.esm.js";
|
|
18
|
+
import it from "../color-picker/index.esm.js";
|
|
19
|
+
import lt from "../content-container/index.esm.js";
|
|
20
|
+
import st from "../date-picker/index.esm.js";
|
|
21
|
+
import ut from "../data-grid/index.esm.js";
|
|
22
|
+
import ct from "../dropdown/index.esm.js";
|
|
23
|
+
import dt from "../dynamic-form/index.esm.js";
|
|
24
|
+
import pt from "../events-editor/index.esm.js";
|
|
25
|
+
import ft from "../filter-bar/index.esm.js";
|
|
26
|
+
import mt from "../field-selector/index.esm.js";
|
|
27
|
+
import gt from "../image-cropper/index.esm.js";
|
|
28
|
+
import vt from "../input-group/index.esm.js";
|
|
29
|
+
import yt from "../layout/index.esm.js";
|
|
30
|
+
import bt from "../list-nav/index.esm.js";
|
|
31
|
+
import ht from "../list-view/index.esm.js";
|
|
32
|
+
import Ct from "../lookup/index.esm.js";
|
|
33
|
+
import Ft from "../mapping-editor/index.esm.js";
|
|
34
|
+
import wt from "../nav/index.esm.js";
|
|
35
|
+
import xt from "../number-range/index.esm.js";
|
|
36
|
+
import Tt from "../order/index.esm.js";
|
|
37
|
+
import Bt from "../page-header/index.esm.js";
|
|
38
|
+
import Pt from "../page-footer/index.esm.js";
|
|
39
|
+
import St from "../pagination/index.esm.js";
|
|
40
|
+
import Et from "../progress/index.esm.js";
|
|
41
|
+
import kt from "../query-solution/index.esm.js";
|
|
42
|
+
import It from "../radio-group/index.esm.js";
|
|
43
|
+
import Ot from "../rate/index.esm.js";
|
|
44
|
+
import Mt from "../response-toolbar/index.esm.js";
|
|
45
|
+
import Vt from "../response-layout/index.esm.js";
|
|
46
|
+
import Nt from "../response-layout-editor/index.esm.js";
|
|
47
|
+
import jt from "../search-box/index.esm.js";
|
|
48
|
+
import Lt from "../section/index.esm.js";
|
|
49
|
+
import At from "../smoke-detector/index.esm.js";
|
|
50
|
+
import Rt from "../splitter/index.esm.js";
|
|
51
|
+
import Dt from "../step/index.esm.js";
|
|
52
|
+
import $t from "../switch/index.esm.js";
|
|
53
|
+
import Gt from "../tabs/index.esm.js";
|
|
54
|
+
import qt from "../tags/index.esm.js";
|
|
55
|
+
import Ut from "../text/index.esm.js";
|
|
56
|
+
import Wt from "../time-picker/index.esm.js";
|
|
57
|
+
import Ht from "../transfer/index.esm.js";
|
|
58
|
+
import _t from "../tree-view/index.esm.js";
|
|
59
|
+
import zt from "../uploader/index.esm.js";
|
|
60
|
+
import Qt from "../verify-detail/index.esm.js";
|
|
61
|
+
import Zt from "../weather/index.esm.js";
|
|
62
|
+
import Jt from "../video/index.esm.js";
|
|
63
|
+
import Xt from "../textarea/index.esm.js";
|
|
64
|
+
import Yt from "../schema-selector/index.esm.js";
|
|
65
|
+
import Kt from "../tree-grid/index.esm.js";
|
|
66
|
+
const en = {
|
|
64
67
|
width: { type: String, default: "300px" },
|
|
65
68
|
height: { type: Number, default: 10 },
|
|
66
69
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -89,7 +92,7 @@ const Jt = {
|
|
|
89
92
|
/** 属性变更后事件 */
|
|
90
93
|
propertyChanged: { type: Function }
|
|
91
94
|
};
|
|
92
|
-
function
|
|
95
|
+
function tn(e = {}) {
|
|
93
96
|
function t(i, p, a, f) {
|
|
94
97
|
if (typeof a == "number")
|
|
95
98
|
return f[i].length === a;
|
|
@@ -127,7 +130,7 @@ function Xt(e = {}) {
|
|
|
127
130
|
return a.push(...s), a;
|
|
128
131
|
}, []);
|
|
129
132
|
}
|
|
130
|
-
function
|
|
133
|
+
function u(i, p) {
|
|
131
134
|
if (o.has(i.operator)) {
|
|
132
135
|
const a = o.get(i.operator);
|
|
133
136
|
return a && a(i.target, i.param, i.value, p) || !1;
|
|
@@ -135,68 +138,68 @@ function Xt(e = {}) {
|
|
|
135
138
|
return !1;
|
|
136
139
|
}
|
|
137
140
|
function C(i, p) {
|
|
138
|
-
return d(i).reduce((s, m) => s &&
|
|
141
|
+
return d(i).reduce((s, m) => s && u(m, p), !0);
|
|
139
142
|
}
|
|
140
|
-
function
|
|
141
|
-
const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s,
|
|
142
|
-
return f ? !
|
|
143
|
+
function c(i, p) {
|
|
144
|
+
const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, V = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((L) => C(L, p));
|
|
145
|
+
return f ? !V.includes(!1) : V.includes(!0);
|
|
143
146
|
}
|
|
144
|
-
return { parseValueSchema:
|
|
147
|
+
return { parseValueSchema: c };
|
|
145
148
|
}
|
|
146
|
-
const
|
|
147
|
-
function
|
|
148
|
-
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((
|
|
149
|
-
return (!r || !o.find((
|
|
149
|
+
const te = {}, nn = {};
|
|
150
|
+
function fe(e) {
|
|
151
|
+
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((u, C) => ((!r || !o.find((c) => c == C)) && (u[C] = t[C].type === "object" && t[C].properties ? fe(t[C]) : pe(t[C].default)), u), {});
|
|
152
|
+
return n && (!r || !o.find((u) => u == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
150
153
|
}
|
|
151
|
-
function
|
|
152
|
-
const n =
|
|
153
|
-
return Object.keys(e).reduce((o, r) => (o[r] &&
|
|
154
|
+
function ne(e, t) {
|
|
155
|
+
const n = fe(t);
|
|
156
|
+
return Object.keys(e).reduce((o, r) => (o[r] && se(o[r]) && se(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
|
|
154
157
|
}
|
|
155
|
-
function
|
|
158
|
+
function on(e, t) {
|
|
156
159
|
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
157
160
|
if (t.has(r)) {
|
|
158
161
|
const d = t.get(r);
|
|
159
162
|
if (typeof d == "string")
|
|
160
163
|
o[d] = e[r];
|
|
161
164
|
else {
|
|
162
|
-
const
|
|
163
|
-
Object.assign(o,
|
|
165
|
+
const u = d(r, e[r], e);
|
|
166
|
+
Object.assign(o, u);
|
|
164
167
|
}
|
|
165
168
|
} else
|
|
166
169
|
o[r] = e[r];
|
|
167
170
|
return o;
|
|
168
171
|
}, {});
|
|
169
172
|
}
|
|
170
|
-
function
|
|
171
|
-
const o =
|
|
172
|
-
return
|
|
173
|
+
function rn(e, t, n = /* @__PURE__ */ new Map()) {
|
|
174
|
+
const o = ne(e, t);
|
|
175
|
+
return on(o, n);
|
|
173
176
|
}
|
|
174
|
-
function
|
|
177
|
+
function me(e) {
|
|
175
178
|
var n;
|
|
176
179
|
const t = e.type;
|
|
177
180
|
if (t) {
|
|
178
|
-
const o =
|
|
181
|
+
const o = te[t], r = ne(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
179
182
|
if (d) {
|
|
180
|
-
const
|
|
183
|
+
const u = te[d], C = ne(e.editor, u);
|
|
181
184
|
r.editor = C;
|
|
182
185
|
}
|
|
183
186
|
return r;
|
|
184
187
|
}
|
|
185
188
|
return e;
|
|
186
189
|
}
|
|
187
|
-
const
|
|
190
|
+
const an = {
|
|
188
191
|
convertTo: (e, t, n, o) => {
|
|
189
192
|
e.appearance && (e.appearance[t] = n);
|
|
190
193
|
},
|
|
191
194
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
192
|
-
},
|
|
195
|
+
}, ln = {
|
|
193
196
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
194
|
-
},
|
|
197
|
+
}, sn = {
|
|
195
198
|
convertTo: (e, t, n, o) => {
|
|
196
199
|
e.editor && (e.editor[t] = n);
|
|
197
200
|
},
|
|
198
201
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
199
|
-
},
|
|
202
|
+
}, ge = {
|
|
200
203
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
201
204
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
202
205
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -235,18 +238,18 @@ const tn = {
|
|
|
235
238
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
236
239
|
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
237
240
|
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
238
|
-
},
|
|
241
|
+
}, un = {
|
|
239
242
|
convertFrom: (e, t, n) => {
|
|
240
243
|
var r;
|
|
241
244
|
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
242
|
-
return ((r =
|
|
245
|
+
return ((r = ge[o]) == null ? void 0 : r.name) || o;
|
|
243
246
|
}
|
|
244
|
-
},
|
|
247
|
+
}, cn = {
|
|
245
248
|
convertTo: (e, t, n, o) => {
|
|
246
249
|
e[t] = e[t];
|
|
247
250
|
},
|
|
248
251
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
249
|
-
},
|
|
252
|
+
}, dn = {
|
|
250
253
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
251
254
|
convertTo: (e, t, n) => {
|
|
252
255
|
if (n && n.length > 0) {
|
|
@@ -254,34 +257,35 @@ const tn = {
|
|
|
254
257
|
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
255
258
|
}
|
|
256
259
|
}
|
|
257
|
-
},
|
|
260
|
+
}, pn = {
|
|
258
261
|
convertTo: (e, t, n, o) => {
|
|
259
262
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
260
263
|
},
|
|
261
264
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
262
|
-
},
|
|
265
|
+
}, fn = {
|
|
263
266
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
264
|
-
},
|
|
267
|
+
}, mn = {
|
|
265
268
|
convertFrom: (e, t) => e[t] || "",
|
|
266
269
|
convertTo: (e, t, n) => {
|
|
267
270
|
e[t] = n;
|
|
268
271
|
}
|
|
269
|
-
},
|
|
270
|
-
["/converter/appearance.converter",
|
|
271
|
-
["/converter/buttons.converter",
|
|
272
|
-
["/converter/property-editor.converter",
|
|
273
|
-
["/converter/items-count.converter",
|
|
274
|
-
["/converter/type.converter",
|
|
275
|
-
["/converter/change-editor.converter",
|
|
276
|
-
["/converter/form-group-label.converter",
|
|
277
|
-
["/converter/field-selector.converter",
|
|
278
|
-
["/converter/pagination.converter",
|
|
279
|
-
]),
|
|
272
|
+
}, re = {}, oe = /* @__PURE__ */ new Map([
|
|
273
|
+
["/converter/appearance.converter", an],
|
|
274
|
+
["/converter/buttons.converter", ln],
|
|
275
|
+
["/converter/property-editor.converter", sn],
|
|
276
|
+
["/converter/items-count.converter", fn],
|
|
277
|
+
["/converter/type.converter", un],
|
|
278
|
+
["/converter/change-editor.converter", cn],
|
|
279
|
+
["/converter/form-group-label.converter", mn],
|
|
280
|
+
["/converter/field-selector.converter", dn],
|
|
281
|
+
["/converter/pagination.converter", pn]
|
|
282
|
+
]), gn = {}, vn = /* @__PURE__ */ new Map([
|
|
280
283
|
["string", { type: "input-group", enableClear: !1 }],
|
|
281
284
|
["boolean", {
|
|
282
285
|
type: "combo-list",
|
|
283
286
|
textField: "name",
|
|
284
287
|
valueField: "value",
|
|
288
|
+
idField: "value",
|
|
285
289
|
maxHeight: 64,
|
|
286
290
|
data: [
|
|
287
291
|
{
|
|
@@ -298,72 +302,74 @@ const tn = {
|
|
|
298
302
|
["array", { type: "button-edit" }],
|
|
299
303
|
["number", { type: "number-spinner" }],
|
|
300
304
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
301
|
-
]),
|
|
302
|
-
function
|
|
303
|
-
return () =>
|
|
305
|
+
]), yn = tn();
|
|
306
|
+
function ve(e, t) {
|
|
307
|
+
return () => yn.parseValueSchema(e, t);
|
|
304
308
|
}
|
|
305
|
-
function
|
|
306
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
309
|
+
function bn(e, t, n) {
|
|
310
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : ve(t.visible, n) : () => !0;
|
|
307
311
|
}
|
|
308
|
-
function
|
|
309
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
312
|
+
function hn(e, t, n) {
|
|
313
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : ve(t.readonly, n) : () => !1;
|
|
310
314
|
}
|
|
311
|
-
function
|
|
315
|
+
function Cn(e, t) {
|
|
312
316
|
const n = e.$converter || t;
|
|
313
|
-
return typeof n == "string" && n &&
|
|
317
|
+
return typeof n == "string" && n && oe.has(n) ? oe.get(n) || null : n || null;
|
|
314
318
|
}
|
|
315
|
-
function
|
|
316
|
-
return Object.keys(e).map((
|
|
317
|
-
const i = h(1), p =
|
|
318
|
-
|
|
319
|
+
function ae(e, t, n, o, r, d = "", u = "") {
|
|
320
|
+
return Object.keys(e).map((c) => {
|
|
321
|
+
const i = h(1), p = c, a = e[c], f = Object.keys(a), s = a.title, m = a.type, T = vn.get(m) || { type: "input-group", enableClear: !1 }, E = a.editor ? Object.assign({}, T, a.editor) : Object.assign({}, T), V = bn(f, a, t), j = hn(f, a, t);
|
|
322
|
+
E.readonly = j();
|
|
323
|
+
const L = a.type === "cascade" ? ae(a.properties, t, n, o, r, d, u) : [], k = !0;
|
|
324
|
+
let I = Cn(a, u);
|
|
319
325
|
const O = S({
|
|
320
326
|
get() {
|
|
321
327
|
if (i.value) {
|
|
322
|
-
if (["class", "style"].find((
|
|
323
|
-
return I.convertFrom(n,
|
|
324
|
-
const
|
|
325
|
-
return typeof
|
|
328
|
+
if (["class", "style"].find((q) => q == p) && !I && (I = oe.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
329
|
+
return I.convertFrom(n, c, r, d);
|
|
330
|
+
const N = n[c];
|
|
331
|
+
return typeof N == "string" && N == "" ? a.defaultValue || "" : N;
|
|
326
332
|
}
|
|
327
333
|
return null;
|
|
328
334
|
},
|
|
329
|
-
set(
|
|
330
|
-
i.value += 1, I && I.convertTo ? (I.convertTo(o,
|
|
335
|
+
set(N) {
|
|
336
|
+
i.value += 1, I && I.convertTo ? (I.convertTo(o, c, N, r, d), I.convertTo(n, c, N, r, d)) : (o[c] = N, n[c] = N);
|
|
331
337
|
}
|
|
332
|
-
}), B = a.refreshPanelAfterChanged,
|
|
333
|
-
return t[p] =
|
|
338
|
+
}), B = a.refreshPanelAfterChanged, D = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: E, visible: V, readonly: j, cascadeConfig: L, hideCascadeTitle: k, refreshPanelAfterChanged: B };
|
|
339
|
+
return t[p] = D, D;
|
|
334
340
|
});
|
|
335
341
|
}
|
|
336
|
-
function
|
|
337
|
-
const d = t.$ref.schema,
|
|
342
|
+
function Fn(e, t, n, o, r = "") {
|
|
343
|
+
const d = t.$ref.schema, u = t.$ref.converter, C = n[d], c = C.type, i = me(C), p = {}, a = re[c];
|
|
338
344
|
if (a && a.categories) {
|
|
339
345
|
const f = a.categories[e], s = f == null ? void 0 : f.title;
|
|
340
|
-
|
|
341
|
-
f.properties[
|
|
346
|
+
u && Object.keys(f.properties).forEach((E) => {
|
|
347
|
+
f.properties[E].$converter = u;
|
|
342
348
|
});
|
|
343
|
-
const m = (f == null ? void 0 : f.properties) || {},
|
|
344
|
-
return { categoryId: e, categoryName: s, properties:
|
|
349
|
+
const m = (f == null ? void 0 : f.properties) || {}, T = ae(m, p, i, C, o, r);
|
|
350
|
+
return { categoryId: e, categoryName: s, properties: T };
|
|
345
351
|
}
|
|
346
352
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
347
353
|
}
|
|
348
|
-
function
|
|
354
|
+
function ee(e, t, n, o, r) {
|
|
349
355
|
let d = e.type;
|
|
350
|
-
const
|
|
351
|
-
let
|
|
352
|
-
if (Object.keys(
|
|
356
|
+
const u = me(e), C = {};
|
|
357
|
+
let c = r || re[d];
|
|
358
|
+
if (Object.keys(c).length === 0 && n && n.getPropConfig && (c = n.getPropConfig(o)), c && c.categories) {
|
|
353
359
|
const i = [];
|
|
354
|
-
return Object.keys(
|
|
355
|
-
const a =
|
|
360
|
+
return Object.keys(c.categories).map((p) => {
|
|
361
|
+
const a = c.categories[p];
|
|
356
362
|
if (a.$ref) {
|
|
357
|
-
i.push(
|
|
363
|
+
i.push(Fn(p, a, e, t, o));
|
|
358
364
|
return;
|
|
359
365
|
}
|
|
360
|
-
const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName,
|
|
361
|
-
i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide:
|
|
366
|
+
const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, T = a == null ? void 0 : a.hide, E = a == null ? void 0 : a.hideTitle, V = ae(a.properties || {}, C, u, e, t, o, a.$converter), j = a.setPropertyRelates;
|
|
367
|
+
i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: T, properties: V, hideTitle: E, setPropertyRelates: j });
|
|
362
368
|
}), i;
|
|
363
369
|
}
|
|
364
370
|
return [];
|
|
365
371
|
}
|
|
366
|
-
const
|
|
372
|
+
const wn = {
|
|
367
373
|
/** 某一分类下的属性配置 */
|
|
368
374
|
// as PropType<ElementPropertyConfig>
|
|
369
375
|
category: { type: Object, default: {} },
|
|
@@ -372,22 +378,22 @@ const hn = {
|
|
|
372
378
|
propertyData: { type: Object, default: {} },
|
|
373
379
|
valueChanged: { type: Function },
|
|
374
380
|
triggerRefreshPanel: { type: Function }
|
|
375
|
-
},
|
|
381
|
+
}, xn = {
|
|
376
382
|
elementConfig: { type: Object, default: {} },
|
|
377
383
|
category: { type: Object, default: {} }
|
|
378
384
|
};
|
|
379
|
-
function
|
|
380
|
-
return
|
|
381
|
-
const C =
|
|
382
|
-
return Object.assign(
|
|
385
|
+
function ye(e, t, n = /* @__PURE__ */ new Map(), o = (u, C, c) => C, r = {}, d = (u) => u) {
|
|
386
|
+
return te[t.title] = t, nn[t.title] = o, re[t.title] = r, gn[t.title] = d, (u = {}) => {
|
|
387
|
+
const C = rn(u, t, n), c = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
|
|
388
|
+
return Object.assign(c, C);
|
|
383
389
|
};
|
|
384
390
|
}
|
|
385
|
-
function
|
|
391
|
+
function be(e, t) {
|
|
386
392
|
return { customClass: t.class, customStyle: t.style };
|
|
387
393
|
}
|
|
388
|
-
const
|
|
389
|
-
["appearance",
|
|
390
|
-
]),
|
|
394
|
+
const Tn = /* @__PURE__ */ new Map([
|
|
395
|
+
["appearance", be]
|
|
396
|
+
]), Bn = "https://json-schema.org/draft/2020-12/schema", Pn = "https://farris-design.gitee.io/form-group.schema.json", Sn = "form-group", En = "A Farris Input Component", kn = "object", In = {
|
|
391
397
|
id: {
|
|
392
398
|
description: "The unique identifier for a form group",
|
|
393
399
|
type: "string"
|
|
@@ -428,18 +434,18 @@ const Fn = /* @__PURE__ */ new Map([
|
|
|
428
434
|
description: "",
|
|
429
435
|
type: "number"
|
|
430
436
|
}
|
|
431
|
-
},
|
|
437
|
+
}, On = [
|
|
432
438
|
"id",
|
|
433
439
|
"type"
|
|
434
|
-
],
|
|
435
|
-
$schema:
|
|
436
|
-
$id:
|
|
437
|
-
title:
|
|
438
|
-
description:
|
|
439
|
-
type:
|
|
440
|
-
properties:
|
|
441
|
-
required:
|
|
442
|
-
},
|
|
440
|
+
], Mn = {
|
|
441
|
+
$schema: Bn,
|
|
442
|
+
$id: Pn,
|
|
443
|
+
title: Sn,
|
|
444
|
+
description: En,
|
|
445
|
+
type: kn,
|
|
446
|
+
properties: In,
|
|
447
|
+
required: On
|
|
448
|
+
}, he = {
|
|
443
449
|
id: { type: String, default: "" },
|
|
444
450
|
customClass: { type: String, default: "" },
|
|
445
451
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -453,43 +459,43 @@ const Fn = /* @__PURE__ */ new Map([
|
|
|
453
459
|
showLabel: { type: Boolean, default: !0 },
|
|
454
460
|
type: { type: String, default: "input-group" }
|
|
455
461
|
};
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
462
|
+
ye(
|
|
463
|
+
he,
|
|
464
|
+
Mn,
|
|
465
|
+
Tn,
|
|
460
466
|
void 0
|
|
461
467
|
);
|
|
462
|
-
const
|
|
468
|
+
const Vn = {
|
|
463
469
|
id: { type: String },
|
|
464
470
|
required: { type: Boolean, default: !1 },
|
|
465
471
|
text: { type: String, default: "" },
|
|
466
472
|
title: { type: String }
|
|
467
|
-
},
|
|
473
|
+
}, Nn = /* @__PURE__ */ H({
|
|
468
474
|
name: "FDynamicFormLabel",
|
|
469
|
-
props:
|
|
475
|
+
props: Vn,
|
|
470
476
|
emits: [],
|
|
471
477
|
setup(e, t) {
|
|
472
478
|
const n = h(e.title || e.text), o = h(e.required), r = h(e.text);
|
|
473
|
-
return
|
|
479
|
+
return R(() => e.text, () => {
|
|
474
480
|
r.value = e.text;
|
|
475
|
-
}),
|
|
476
|
-
d !==
|
|
481
|
+
}), R(() => e.required, (d, u) => {
|
|
482
|
+
d !== u && (o.value = d);
|
|
477
483
|
}), () => r.value && l("label", {
|
|
478
484
|
class: "col-form-label",
|
|
479
485
|
title: n.value
|
|
480
486
|
}, [o.value && l("span", {
|
|
481
487
|
class: "farris-label-info text-danger"
|
|
482
|
-
}, [
|
|
488
|
+
}, [de("*")]), l("span", {
|
|
483
489
|
class: "farris-label-text"
|
|
484
490
|
}, [r.value])]);
|
|
485
491
|
}
|
|
486
|
-
}),
|
|
487
|
-
["appearance",
|
|
492
|
+
}), jn = /* @__PURE__ */ new Map([
|
|
493
|
+
["appearance", be]
|
|
488
494
|
]);
|
|
489
495
|
function Ln(e, t, n) {
|
|
490
496
|
return t;
|
|
491
497
|
}
|
|
492
|
-
const
|
|
498
|
+
const An = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Dn = "input-group", $n = "A Farris Input Component", Gn = "object", qn = {
|
|
493
499
|
id: {
|
|
494
500
|
description: "The unique identifier for a Input Group",
|
|
495
501
|
type: "string"
|
|
@@ -691,18 +697,18 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
691
697
|
type: "string",
|
|
692
698
|
default: ""
|
|
693
699
|
}
|
|
694
|
-
},
|
|
700
|
+
}, Un = [
|
|
695
701
|
"id",
|
|
696
702
|
"type"
|
|
697
|
-
],
|
|
698
|
-
$schema:
|
|
703
|
+
], Wn = {
|
|
704
|
+
$schema: An,
|
|
699
705
|
$id: Rn,
|
|
700
|
-
title:
|
|
701
|
-
description:
|
|
702
|
-
type:
|
|
703
|
-
properties:
|
|
704
|
-
required:
|
|
705
|
-
},
|
|
706
|
+
title: Dn,
|
|
707
|
+
description: $n,
|
|
708
|
+
type: Gn,
|
|
709
|
+
properties: qn,
|
|
710
|
+
required: Un
|
|
711
|
+
}, Ce = {
|
|
706
712
|
id: { Type: String, default: "" },
|
|
707
713
|
/** 是否自动完成 */
|
|
708
714
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -770,35 +776,35 @@ const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
770
776
|
*/
|
|
771
777
|
updateOn: { type: String, default: "blur" }
|
|
772
778
|
};
|
|
773
|
-
|
|
774
|
-
function
|
|
775
|
-
const r = h(e.disabled), d = h(!1),
|
|
779
|
+
ye(Ce, Wn, jn, Ln);
|
|
780
|
+
function Hn(e, t, n, o) {
|
|
781
|
+
const r = h(e.disabled), d = h(!1), u = h("text"), C = h(e.showBorder), c = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), T = S(() => e.readonly || !e.editable), E = S(() => e.enableTitle ? n.value : ""), V = S(() => ({
|
|
776
782
|
"form-control": !0,
|
|
777
783
|
"f-utils-fill": !0,
|
|
778
|
-
"text-left":
|
|
779
|
-
"text-center":
|
|
780
|
-
"text-right":
|
|
781
|
-
})),
|
|
784
|
+
"text-left": c.value === "left",
|
|
785
|
+
"text-center": c.value === "center",
|
|
786
|
+
"text-right": c.value === "right"
|
|
787
|
+
})), j = S(() => {
|
|
782
788
|
const P = {
|
|
783
789
|
"f-cmp-inputgroup": !0,
|
|
784
790
|
"input-group": !0,
|
|
785
791
|
"f-state-disable": r.value,
|
|
786
792
|
"f-state-editable": a.value,
|
|
787
|
-
"f-state-readonly":
|
|
793
|
+
"f-state-readonly": T.value,
|
|
788
794
|
"f-state-focus": f.value
|
|
789
795
|
};
|
|
790
|
-
return (e.customClass || "").split(" ").reduce((
|
|
791
|
-
}),
|
|
792
|
-
function
|
|
793
|
-
n.value = P, o.value !== P && (o.value = P),
|
|
796
|
+
return (e.customClass || "").split(" ").reduce((U, X) => (U[X] = !0, U), P), P;
|
|
797
|
+
}), L = S(() => C.value ? "" : "border-width : 0 ");
|
|
798
|
+
function k(P, A = !0) {
|
|
799
|
+
n.value = P, o.value !== P && (o.value = P), A && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
|
|
794
800
|
}
|
|
795
|
-
|
|
801
|
+
R(
|
|
796
802
|
() => e.modelValue,
|
|
797
|
-
(P,
|
|
798
|
-
P !==
|
|
803
|
+
(P, A) => {
|
|
804
|
+
P !== A && (n.value = P, o.value = P);
|
|
799
805
|
}
|
|
800
|
-
),
|
|
801
|
-
P !==
|
|
806
|
+
), R(() => e.disabled, (P, A) => {
|
|
807
|
+
P !== A && (r.value = P);
|
|
802
808
|
});
|
|
803
809
|
function I(P) {
|
|
804
810
|
return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
|
|
@@ -809,58 +815,58 @@ function qn(e, t, n, o) {
|
|
|
809
815
|
function B(P) {
|
|
810
816
|
e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
|
|
811
817
|
}
|
|
812
|
-
function
|
|
818
|
+
function D(P) {
|
|
813
819
|
t.emit("input", P.target.value);
|
|
814
|
-
const
|
|
815
|
-
o.value =
|
|
820
|
+
const A = P.target.value;
|
|
821
|
+
o.value = A, i.value === "change" && (t.emit("update:modelValue", A), t.emit("update:value", A));
|
|
816
822
|
}
|
|
817
|
-
function
|
|
823
|
+
function N(P) {
|
|
818
824
|
t.emit("keydown", P);
|
|
819
825
|
}
|
|
820
|
-
function
|
|
826
|
+
function q(P) {
|
|
821
827
|
t.emit("keyup", P);
|
|
822
828
|
}
|
|
823
|
-
function
|
|
829
|
+
function _(P) {
|
|
824
830
|
P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
|
|
825
831
|
}
|
|
826
|
-
function
|
|
832
|
+
function z(P) {
|
|
827
833
|
if (i.value === "blur") {
|
|
828
|
-
const
|
|
829
|
-
P.stopPropagation(),
|
|
834
|
+
const A = P.target.value;
|
|
835
|
+
P.stopPropagation(), k(A);
|
|
830
836
|
}
|
|
831
837
|
}
|
|
832
838
|
return {
|
|
833
|
-
changeTextBoxValue:
|
|
839
|
+
changeTextBoxValue: k,
|
|
834
840
|
disabled: r,
|
|
835
841
|
displayText: o,
|
|
836
842
|
editable: a,
|
|
837
843
|
hasFocused: f,
|
|
838
|
-
inputGroupClass:
|
|
839
|
-
inputType:
|
|
844
|
+
inputGroupClass: j,
|
|
845
|
+
inputType: u,
|
|
840
846
|
isEmpty: s,
|
|
841
847
|
modelValue: n,
|
|
842
|
-
readonly:
|
|
848
|
+
readonly: T,
|
|
843
849
|
onBlur: I,
|
|
844
850
|
onClick: O,
|
|
845
851
|
onFocus: B,
|
|
846
|
-
onInput:
|
|
847
|
-
onKeydown:
|
|
848
|
-
onKeyup:
|
|
849
|
-
onMousedown:
|
|
850
|
-
onTextBoxValueChange:
|
|
852
|
+
onInput: D,
|
|
853
|
+
onKeydown: N,
|
|
854
|
+
onKeyup: q,
|
|
855
|
+
onMousedown: _,
|
|
856
|
+
onTextBoxValueChange: z,
|
|
851
857
|
placeholder: m,
|
|
852
|
-
textBoxClass:
|
|
853
|
-
textBoxTitle:
|
|
854
|
-
inputGroupStyle:
|
|
858
|
+
textBoxClass: V,
|
|
859
|
+
textBoxTitle: E,
|
|
860
|
+
inputGroupStyle: L
|
|
855
861
|
};
|
|
856
862
|
}
|
|
857
|
-
function
|
|
858
|
-
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText:
|
|
859
|
-
function i(
|
|
860
|
-
o.value =
|
|
863
|
+
function _n(e, t, n) {
|
|
864
|
+
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: u, hasFocused: C, isEmpty: c } = n;
|
|
865
|
+
function i(T) {
|
|
866
|
+
o.value = T;
|
|
861
867
|
}
|
|
862
|
-
|
|
863
|
-
C != null && C.value ? i(!!(
|
|
868
|
+
R(u, () => {
|
|
869
|
+
C != null && C.value ? i(!!(u != null && u.value)) : i(!1);
|
|
864
870
|
});
|
|
865
871
|
const p = S(() => ({
|
|
866
872
|
"input-group-text": !0,
|
|
@@ -869,19 +875,19 @@ function Wn(e, t, n) {
|
|
|
869
875
|
width: "24px",
|
|
870
876
|
display: o.value ? "flex" : "none"
|
|
871
877
|
}));
|
|
872
|
-
function f(
|
|
873
|
-
|
|
878
|
+
function f(T) {
|
|
879
|
+
T.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
|
|
874
880
|
}
|
|
875
|
-
function s(
|
|
876
|
-
r.value && !
|
|
881
|
+
function s(T) {
|
|
882
|
+
r.value && !c.value && i(!0);
|
|
877
883
|
}
|
|
878
|
-
function m(
|
|
884
|
+
function m(T) {
|
|
879
885
|
r.value && i(!1);
|
|
880
886
|
}
|
|
881
887
|
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
|
|
882
888
|
}
|
|
883
|
-
const
|
|
884
|
-
function
|
|
889
|
+
const zn = ["moz", "ms", "webkit"];
|
|
890
|
+
function Qn() {
|
|
885
891
|
let e = 0;
|
|
886
892
|
return (t) => {
|
|
887
893
|
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
@@ -890,86 +896,86 @@ function Un() {
|
|
|
890
896
|
return e = n + o, r;
|
|
891
897
|
};
|
|
892
898
|
}
|
|
893
|
-
function
|
|
899
|
+
function Zn() {
|
|
894
900
|
if (typeof window > "u")
|
|
895
901
|
return () => 0;
|
|
896
902
|
if (window.requestAnimationFrame)
|
|
897
903
|
return window.requestAnimationFrame.bind(window);
|
|
898
|
-
const e =
|
|
899
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
904
|
+
const e = zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
905
|
+
return e ? window[`${e}RequestAnimationFrame`] : Qn();
|
|
900
906
|
}
|
|
901
|
-
|
|
902
|
-
function
|
|
907
|
+
Zn();
|
|
908
|
+
function Jn(e, t) {
|
|
903
909
|
const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
|
|
904
910
|
return { appendedButtonClass: S(() => ({
|
|
905
911
|
"input-group-append": !0,
|
|
906
912
|
"append-force-show": o.value
|
|
907
913
|
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
908
914
|
}
|
|
909
|
-
function
|
|
910
|
-
const { appendedContent: r } = o, d = h(e.enableViewPassword),
|
|
911
|
-
|
|
912
|
-
|
|
915
|
+
function Xn(e, t, n, o) {
|
|
916
|
+
const { appendedContent: r } = o, d = h(e.enableViewPassword), u = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', c = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
|
|
917
|
+
R(() => [e.readonly, e.disabled], ([f, s]) => {
|
|
918
|
+
u.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? c : r.value);
|
|
913
919
|
});
|
|
914
920
|
function p() {
|
|
915
|
-
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C :
|
|
921
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : c, !1;
|
|
916
922
|
}
|
|
917
923
|
function a() {
|
|
918
|
-
n.value =
|
|
924
|
+
n.value = u.value ? "password" : "text", r.value = u.value ? d.value ? c : "" : r.value;
|
|
919
925
|
}
|
|
920
|
-
return a(), { isPassword:
|
|
926
|
+
return a(), { isPassword: u, onClickAppendedButton: p };
|
|
921
927
|
}
|
|
922
|
-
function
|
|
928
|
+
function Yn(e, t, n) {
|
|
923
929
|
const o = h(), {
|
|
924
930
|
onBlurTextBox: r,
|
|
925
931
|
onFocusTextBox: d,
|
|
926
|
-
onInput:
|
|
932
|
+
onInput: u,
|
|
927
933
|
onKeyDown: C,
|
|
928
|
-
textBoxValue:
|
|
934
|
+
textBoxValue: c
|
|
929
935
|
} = n, i = S(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = S(() => ({
|
|
930
936
|
"form-control": !0,
|
|
931
937
|
"f-utils-fill": !0
|
|
932
938
|
})), a = S(() => ({
|
|
933
939
|
"text-align": e.textAlign
|
|
934
940
|
}));
|
|
935
|
-
function f(
|
|
936
|
-
|
|
941
|
+
function f(T) {
|
|
942
|
+
T.stopPropagation();
|
|
937
943
|
}
|
|
938
944
|
function s() {
|
|
939
945
|
e.selectOnCreated, e.focusOnCreated;
|
|
940
946
|
}
|
|
941
|
-
async function m(
|
|
942
|
-
d(
|
|
947
|
+
async function m(T) {
|
|
948
|
+
d(T), await le, s();
|
|
943
949
|
}
|
|
944
950
|
return W(async () => {
|
|
945
|
-
await
|
|
951
|
+
await le, s();
|
|
946
952
|
}), () => l("input", {
|
|
947
953
|
ref: o,
|
|
948
954
|
class: p.value,
|
|
949
955
|
style: a.value,
|
|
950
956
|
type: "text",
|
|
951
|
-
value:
|
|
957
|
+
value: c.value,
|
|
952
958
|
disabled: e.disabled,
|
|
953
959
|
readonly: e.readonly || !e.editable,
|
|
954
960
|
placeholder: i.value,
|
|
955
961
|
onBlur: r,
|
|
956
962
|
onChange: f,
|
|
957
963
|
onFocus: m,
|
|
958
|
-
onInput:
|
|
964
|
+
onInput: u,
|
|
959
965
|
onKeydown: C
|
|
960
966
|
}, null);
|
|
961
967
|
}
|
|
962
|
-
function
|
|
968
|
+
function Kn(e, t, n) {
|
|
963
969
|
const {
|
|
964
970
|
canDownward: o,
|
|
965
971
|
canUpward: r,
|
|
966
972
|
onClickDownButton: d,
|
|
967
|
-
onClickUpButton:
|
|
973
|
+
onClickUpButton: u
|
|
968
974
|
} = n, C = S(() => ({
|
|
969
975
|
"input-group-append": !0,
|
|
970
976
|
"btn-group": !0,
|
|
971
977
|
"btn-group-number": !0
|
|
972
|
-
})),
|
|
978
|
+
})), c = S(() => ({
|
|
973
979
|
btn: !0,
|
|
974
980
|
"btn-secondary": !0,
|
|
975
981
|
"btn-number-flag": !0
|
|
@@ -984,15 +990,15 @@ function Jn(e, t, n) {
|
|
|
984
990
|
class: C.value
|
|
985
991
|
}, [l("button", {
|
|
986
992
|
title: "upButton",
|
|
987
|
-
class:
|
|
993
|
+
class: c.value,
|
|
988
994
|
style: i.value,
|
|
989
|
-
onClick:
|
|
995
|
+
onClick: u,
|
|
990
996
|
disabled: !r()
|
|
991
997
|
}, [l("span", {
|
|
992
998
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
993
999
|
}, null)]), l("button", {
|
|
994
1000
|
title: "downButton",
|
|
995
|
-
class:
|
|
1001
|
+
class: c.value,
|
|
996
1002
|
style: p.value,
|
|
997
1003
|
onClick: d,
|
|
998
1004
|
disabled: !o()
|
|
@@ -1000,12 +1006,12 @@ function Jn(e, t, n) {
|
|
|
1000
1006
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1001
1007
|
}, null)])]);
|
|
1002
1008
|
}
|
|
1003
|
-
function
|
|
1004
|
-
const n =
|
|
1009
|
+
function eo(e, t) {
|
|
1010
|
+
const n = _e(e, t), o = ze(e, t, n), r = Qe(e, t, o, n), d = Ze(e, t, o, n, r), u = Kn(e, t, r), {
|
|
1005
1011
|
displayValue: C,
|
|
1006
|
-
modelValue:
|
|
1012
|
+
modelValue: c,
|
|
1007
1013
|
getRealValue: i
|
|
1008
|
-
} = n, p =
|
|
1014
|
+
} = n, p = Yn(e, t, d), {
|
|
1009
1015
|
format: a
|
|
1010
1016
|
} = o, {
|
|
1011
1017
|
isFocus: f
|
|
@@ -1013,36 +1019,36 @@ function Xn(e, t) {
|
|
|
1013
1019
|
return W(() => {
|
|
1014
1020
|
const m = i(e.modelValue);
|
|
1015
1021
|
C.value = a(m);
|
|
1016
|
-
}),
|
|
1017
|
-
const
|
|
1018
|
-
|
|
1019
|
-
}),
|
|
1020
|
-
m !==
|
|
1021
|
-
}),
|
|
1022
|
-
C.value = a(
|
|
1022
|
+
}), R(() => [e.value], ([m]) => {
|
|
1023
|
+
const T = i(m);
|
|
1024
|
+
c.value = T, C.value = a(T);
|
|
1025
|
+
}), R(() => [e.modelValue], ([m]) => {
|
|
1026
|
+
m !== c.value && (c.value = m, !f.value && (C.value = a(i(m))));
|
|
1027
|
+
}), R(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1028
|
+
C.value = a(c.value);
|
|
1023
1029
|
}), () => l("div", {
|
|
1024
1030
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1025
|
-
}, [p(), s.value &&
|
|
1031
|
+
}, [p(), s.value && u()]);
|
|
1026
1032
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const r = h(), d = h(e.autocomplete),
|
|
1033
|
+
function to(e, t, n, o) {
|
|
1034
|
+
const r = h(), d = h(e.autocomplete), u = h(e.enableTitle), {
|
|
1029
1035
|
isPassword: C
|
|
1030
|
-
} = n,
|
|
1036
|
+
} = n, c = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
|
|
1031
1037
|
disabled: a,
|
|
1032
1038
|
displayText: f,
|
|
1033
1039
|
inputType: s,
|
|
1034
1040
|
onBlur: m,
|
|
1035
|
-
onFocus:
|
|
1036
|
-
onInput:
|
|
1037
|
-
onClick:
|
|
1038
|
-
onKeydown:
|
|
1039
|
-
onKeyup:
|
|
1040
|
-
onMousedown:
|
|
1041
|
+
onFocus: T,
|
|
1042
|
+
onInput: E,
|
|
1043
|
+
onClick: V,
|
|
1044
|
+
onKeydown: j,
|
|
1045
|
+
onKeyup: L,
|
|
1046
|
+
onMousedown: k,
|
|
1041
1047
|
onTextBoxValueChange: I,
|
|
1042
1048
|
readonly: O,
|
|
1043
1049
|
placeholder: B,
|
|
1044
|
-
textBoxClass:
|
|
1045
|
-
textBoxTitle:
|
|
1050
|
+
textBoxClass: D,
|
|
1051
|
+
textBoxTitle: N
|
|
1046
1052
|
} = o;
|
|
1047
1053
|
return W(() => {
|
|
1048
1054
|
e.selectOnCreated, e.focusOnCreated;
|
|
@@ -1050,47 +1056,47 @@ function Yn(e, t, n, o) {
|
|
|
1050
1056
|
ref: r,
|
|
1051
1057
|
name: "input-group-value",
|
|
1052
1058
|
autocomplete: d.value,
|
|
1053
|
-
class:
|
|
1059
|
+
class: D.value,
|
|
1054
1060
|
disabled: a == null ? void 0 : a.value,
|
|
1055
1061
|
maxlength: i.value,
|
|
1056
|
-
minlength:
|
|
1062
|
+
minlength: c.value,
|
|
1057
1063
|
placeholder: B.value,
|
|
1058
1064
|
readonly: O == null ? void 0 : O.value,
|
|
1059
1065
|
tabindex: p.value,
|
|
1060
|
-
title:
|
|
1066
|
+
title: u.value && !C.value ? N.value : "",
|
|
1061
1067
|
type: s.value,
|
|
1062
1068
|
value: f == null ? void 0 : f.value,
|
|
1063
1069
|
onBlur: m,
|
|
1064
|
-
onClick:
|
|
1070
|
+
onClick: V,
|
|
1065
1071
|
onChange: I,
|
|
1066
|
-
onFocus:
|
|
1067
|
-
onInput:
|
|
1068
|
-
onKeydown:
|
|
1069
|
-
onKeyup:
|
|
1070
|
-
onMousedown:
|
|
1072
|
+
onFocus: T,
|
|
1073
|
+
onInput: E,
|
|
1074
|
+
onKeydown: j,
|
|
1075
|
+
onKeyup: L,
|
|
1076
|
+
onMousedown: k
|
|
1071
1077
|
}, null);
|
|
1072
1078
|
}
|
|
1073
|
-
function
|
|
1074
|
-
const n = S(() => e.useExtendInfo && !!e.extendInfo), o =
|
|
1079
|
+
function no(e, t) {
|
|
1080
|
+
const n = S(() => e.useExtendInfo && !!e.extendInfo), o = De({
|
|
1075
1081
|
content: e.extendInfo
|
|
1076
1082
|
});
|
|
1077
1083
|
function r() {
|
|
1078
1084
|
t.emit("updateExtendInfo");
|
|
1079
1085
|
}
|
|
1080
|
-
return () => n.value &&
|
|
1086
|
+
return () => n.value && $e(l("span", {
|
|
1081
1087
|
class: "input-group-before-tips",
|
|
1082
1088
|
onMouseenter: r
|
|
1083
1089
|
}, [l("i", {
|
|
1084
1090
|
class: "f-icon f-icon-info-circle"
|
|
1085
1091
|
}, null), l("b", {
|
|
1086
1092
|
class: "tips-arrow"
|
|
1087
|
-
}, null)]), [[
|
|
1093
|
+
}, null)]), [[Ge("tooltip"), o]]);
|
|
1088
1094
|
}
|
|
1089
|
-
function
|
|
1095
|
+
function oo(e, t, n, o, r) {
|
|
1090
1096
|
const {
|
|
1091
1097
|
appendedButtonClass: d,
|
|
1092
|
-
appendedContent:
|
|
1093
|
-
} = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled),
|
|
1098
|
+
appendedContent: u
|
|
1099
|
+
} = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), c = S(() => u.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
|
|
1094
1100
|
clearButtonClass: p,
|
|
1095
1101
|
clearButtonStyle: a,
|
|
1096
1102
|
onClearValue: f,
|
|
@@ -1106,82 +1112,82 @@ function eo(e, t, n, o, r) {
|
|
|
1106
1112
|
class: "f-icon modal_close"
|
|
1107
1113
|
}, null)]);
|
|
1108
1114
|
}
|
|
1109
|
-
function
|
|
1115
|
+
function T(B) {
|
|
1110
1116
|
t.emit("iconMouseEnter", B);
|
|
1111
1117
|
}
|
|
1112
|
-
function
|
|
1118
|
+
function E(B) {
|
|
1113
1119
|
t.emit("iconMouseLeave", B);
|
|
1114
1120
|
}
|
|
1115
|
-
function
|
|
1121
|
+
function V(B) {
|
|
1116
1122
|
C.value && t.emit("clickHandle", {
|
|
1117
1123
|
originalEvent: B
|
|
1118
1124
|
}), B.stopPropagation();
|
|
1119
1125
|
}
|
|
1120
|
-
const
|
|
1121
|
-
function
|
|
1126
|
+
const j = e.type === "password" ? r.onClickAppendedButton : V;
|
|
1127
|
+
function L() {
|
|
1122
1128
|
return l("span", {
|
|
1123
1129
|
class: "input-group-text",
|
|
1124
|
-
onMouseenter: (B) =>
|
|
1125
|
-
onMouseleave: (B) =>
|
|
1126
|
-
innerHTML:
|
|
1127
|
-
onClick: (B) =>
|
|
1130
|
+
onMouseenter: (B) => T(B),
|
|
1131
|
+
onMouseleave: (B) => E(B),
|
|
1132
|
+
innerHTML: u.value,
|
|
1133
|
+
onClick: (B) => j(B)
|
|
1128
1134
|
}, null);
|
|
1129
1135
|
}
|
|
1130
|
-
function
|
|
1136
|
+
function k() {
|
|
1131
1137
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1132
1138
|
}
|
|
1133
1139
|
function I() {
|
|
1134
|
-
return
|
|
1140
|
+
return c.value ? L : i.value ? k : "";
|
|
1135
1141
|
}
|
|
1136
1142
|
const O = I();
|
|
1137
1143
|
return () => l("div", {
|
|
1138
1144
|
class: d.value
|
|
1139
1145
|
}, [s.value && m(), O && O()]);
|
|
1140
1146
|
}
|
|
1141
|
-
const
|
|
1147
|
+
const ro = /* @__PURE__ */ H({
|
|
1142
1148
|
name: "FInputGroup",
|
|
1143
|
-
props:
|
|
1149
|
+
props: Ce,
|
|
1144
1150
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1145
1151
|
setup(e, t) {
|
|
1146
|
-
const n = h(e.modelValue), o = h(e.modelValue), r =
|
|
1152
|
+
const n = h(e.modelValue), o = h(e.modelValue), r = Hn(e, t, n, o), {
|
|
1147
1153
|
inputGroupClass: d,
|
|
1148
|
-
inputType:
|
|
1154
|
+
inputType: u,
|
|
1149
1155
|
inputGroupStyle: C
|
|
1150
|
-
} = r,
|
|
1156
|
+
} = r, c = Jn(e), {
|
|
1151
1157
|
shouldShowAppendedButton: i
|
|
1152
|
-
} =
|
|
1158
|
+
} = c, p = _n(e, t, r), {
|
|
1153
1159
|
onMouseEnter: a,
|
|
1154
1160
|
onMouseLeave: f
|
|
1155
|
-
} = p, s =
|
|
1156
|
-
|
|
1157
|
-
n.value =
|
|
1158
|
-
}),
|
|
1159
|
-
n.value =
|
|
1161
|
+
} = p, s = Xn(e, t, u, c), m = eo(e, t), T = to(e, t, s, r), E = oo(e, t, c, p, s), V = no(e, t), j = S(() => e.type === "number");
|
|
1162
|
+
R(() => [e.value], ([k]) => {
|
|
1163
|
+
n.value = k, o.value = k;
|
|
1164
|
+
}), R(() => [e.modelValue], ([k]) => {
|
|
1165
|
+
n.value = k, o.value = k;
|
|
1160
1166
|
}), W(() => {
|
|
1161
1167
|
e.value && (n.value = e.value, o.value = e.value);
|
|
1162
1168
|
});
|
|
1163
|
-
const
|
|
1169
|
+
const L = () => l(J, null, [l("div", {
|
|
1164
1170
|
id: e.id,
|
|
1165
1171
|
class: d.value,
|
|
1166
1172
|
style: C.value,
|
|
1167
1173
|
onMouseenter: a,
|
|
1168
1174
|
onMouseleave: f
|
|
1169
|
-
}, [
|
|
1170
|
-
return () =>
|
|
1175
|
+
}, [j.value ? m() : l(J, null, [V(), T(), i.value && E()])])]);
|
|
1176
|
+
return () => L();
|
|
1171
1177
|
}
|
|
1172
1178
|
}), g = {}, v = {}, y = {}, b = {};
|
|
1173
|
-
let
|
|
1174
|
-
function
|
|
1175
|
-
|
|
1179
|
+
let ue = !1;
|
|
1180
|
+
function ao() {
|
|
1181
|
+
ue || (ue = !0, Xe.register(g, v, y, b), Je.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), nt.register(g, v, y, b), ot.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), lt.register(g, v, y, b), it.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), mt.register(g, v, y, b), gt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), ht.register(g, v, y, b), bt.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), wt.register(g, v, y, b), xt.register(g, v, y, b), He.register(g, v, y, b), Tt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), kt.register(g, v, y, b), It.register(g, v, y, b), Ot.register(g, v, y, b), Vt.register(g, v, y, b), Nt.register(g, v, y, b), Mt.register(g, v, y, b), Yt.register(g, v, y), jt.register(g, v, y, b), Lt.register(g, v, y, b), At.register(g, v, y, b), Rt.register(g, v, y, b), Dt.register(g, v, y, b), $t.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ut.register(g, v, y, b), Wt.register(g, v, y, b), Ht.register(g, v, y, b), _t.register(g, v, y, b), Qt.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b), Jt.register(g, v, y, b), Xt.register(g, v, y, b), Kt.register(g, v, y, b));
|
|
1176
1182
|
}
|
|
1177
|
-
function
|
|
1178
|
-
|
|
1183
|
+
function io() {
|
|
1184
|
+
ao();
|
|
1179
1185
|
function e(r, d) {
|
|
1180
|
-
const
|
|
1181
|
-
return
|
|
1186
|
+
const u = v[r];
|
|
1187
|
+
return u ? u(d) : {};
|
|
1182
1188
|
}
|
|
1183
1189
|
function t(r) {
|
|
1184
|
-
return g[r] ||
|
|
1190
|
+
return g[r] || ro;
|
|
1185
1191
|
}
|
|
1186
1192
|
function n(r) {
|
|
1187
1193
|
switch (r) {
|
|
@@ -1252,41 +1258,41 @@ function oo() {
|
|
|
1252
1258
|
}
|
|
1253
1259
|
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1254
1260
|
}
|
|
1255
|
-
const
|
|
1261
|
+
const lo = /* @__PURE__ */ H({
|
|
1256
1262
|
name: "FDynamicFormGroup",
|
|
1257
|
-
props:
|
|
1263
|
+
props: he,
|
|
1258
1264
|
emits: ["change", "update:modelValue"],
|
|
1259
1265
|
setup(e, t) {
|
|
1260
|
-
const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label),
|
|
1266
|
+
const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), u = h(e.modelValue), C = h(e.readonly), c = h(e.required), i = h(e.showLabel), p = h(e.visible);
|
|
1261
1267
|
h(e.type);
|
|
1262
1268
|
const a = h(), {
|
|
1263
1269
|
resolveEditorProps: f,
|
|
1264
1270
|
resolveEditorType: s,
|
|
1265
1271
|
getChangeFunctionName: m,
|
|
1266
|
-
getClearFunctionName:
|
|
1267
|
-
} =
|
|
1272
|
+
getClearFunctionName: T
|
|
1273
|
+
} = io(), E = S(() => ({
|
|
1268
1274
|
"form-group": !0,
|
|
1269
1275
|
"farris-form-group": !0,
|
|
1270
1276
|
"common-group": !0,
|
|
1271
1277
|
"q-state-readonly": C.value
|
|
1272
1278
|
}));
|
|
1273
|
-
function
|
|
1274
|
-
|
|
1279
|
+
function V(k, I) {
|
|
1280
|
+
u.value = I !== void 0 ? I : k, t.emit("update:modelValue", u.value), t.emit("change", u.value);
|
|
1275
1281
|
}
|
|
1276
|
-
function
|
|
1282
|
+
function j() {
|
|
1277
1283
|
t.emit("update:modelValue", "");
|
|
1278
1284
|
}
|
|
1279
|
-
const
|
|
1280
|
-
const
|
|
1281
|
-
return O[B] =
|
|
1285
|
+
const L = S(() => {
|
|
1286
|
+
const k = r.value.type || "input-group", I = s(k), O = f(k, r.value), B = m(k), D = T(r.value.type);
|
|
1287
|
+
return O[B] = V, O[D] = j, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, qe({
|
|
1282
1288
|
ref: a
|
|
1283
1289
|
}, O, {
|
|
1284
|
-
modelValue:
|
|
1285
|
-
"onUpdate:modelValue": (
|
|
1290
|
+
modelValue: u.value,
|
|
1291
|
+
"onUpdate:modelValue": (N) => u.value = N
|
|
1286
1292
|
}), null);
|
|
1287
1293
|
});
|
|
1288
|
-
return
|
|
1289
|
-
n.value =
|
|
1294
|
+
return R([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([k, I, O, B, D, N, q, _, z]) => {
|
|
1295
|
+
n.value = k, o.value = I, r.value = O, d.value = B, u.value = D, C.value = N, c.value = q, i.value = _, p.value = z;
|
|
1290
1296
|
}), t.expose({
|
|
1291
1297
|
editorRef: a
|
|
1292
1298
|
}), () => p.value && l("div", {
|
|
@@ -1295,25 +1301,25 @@ const ro = /* @__PURE__ */ H({
|
|
|
1295
1301
|
}, [l("div", {
|
|
1296
1302
|
class: "farris-group-wrap"
|
|
1297
1303
|
}, [l("div", {
|
|
1298
|
-
class:
|
|
1299
|
-
}, [i.value && l(
|
|
1304
|
+
class: E.value
|
|
1305
|
+
}, [i.value && l(Nn, {
|
|
1300
1306
|
id: `${n.value}-lable`,
|
|
1301
|
-
required:
|
|
1307
|
+
required: c.value,
|
|
1302
1308
|
text: d.value,
|
|
1303
1309
|
title: d.value
|
|
1304
1310
|
}, null), l("div", {
|
|
1305
1311
|
class: "farris-input-wrap"
|
|
1306
|
-
}, [
|
|
1312
|
+
}, [L.value()])])])]);
|
|
1307
1313
|
}
|
|
1308
|
-
}),
|
|
1314
|
+
}), so = /* @__PURE__ */ H({
|
|
1309
1315
|
name: "FPropertyPanelItem",
|
|
1310
|
-
props:
|
|
1316
|
+
props: xn,
|
|
1311
1317
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1312
1318
|
setup(e, t) {
|
|
1313
|
-
var
|
|
1314
|
-
const n = h((
|
|
1319
|
+
var c;
|
|
1320
|
+
const n = h((c = e.category) == null ? void 0 : c.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
|
|
1315
1321
|
h(e.elementConfig.editor);
|
|
1316
|
-
const d = h(e.elementConfig.propertyValue),
|
|
1322
|
+
const d = h(e.elementConfig.propertyValue), u = S(() => {
|
|
1317
1323
|
const i = e.elementConfig.visible;
|
|
1318
1324
|
return {
|
|
1319
1325
|
"farris-group-wrap": !0,
|
|
@@ -1321,7 +1327,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
1321
1327
|
"d-none": !(typeof i == "boolean" ? i : i == null ? !0 : i())
|
|
1322
1328
|
};
|
|
1323
1329
|
});
|
|
1324
|
-
|
|
1330
|
+
R(() => {
|
|
1325
1331
|
var i;
|
|
1326
1332
|
return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
|
|
1327
1333
|
}, (i) => {
|
|
@@ -1336,8 +1342,8 @@ const ro = /* @__PURE__ */ H({
|
|
|
1336
1342
|
t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1337
1343
|
}
|
|
1338
1344
|
return () => l("div", {
|
|
1339
|
-
class:
|
|
1340
|
-
}, [l(
|
|
1345
|
+
class: u.value
|
|
1346
|
+
}, [l(lo, {
|
|
1341
1347
|
id: o.value,
|
|
1342
1348
|
customClass: `${n.value}-${o.value}`,
|
|
1343
1349
|
label: r.value,
|
|
@@ -1347,9 +1353,9 @@ const ro = /* @__PURE__ */ H({
|
|
|
1347
1353
|
editorParams: e.elementConfig.editorParams
|
|
1348
1354
|
}, null)]);
|
|
1349
1355
|
}
|
|
1350
|
-
}),
|
|
1356
|
+
}), uo = /* @__PURE__ */ H({
|
|
1351
1357
|
name: "FPropertyPanelItemList",
|
|
1352
|
-
props:
|
|
1358
|
+
props: wn,
|
|
1353
1359
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1354
1360
|
setup(e, t) {
|
|
1355
1361
|
const n = h(e.category);
|
|
@@ -1379,7 +1385,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
1379
1385
|
onClick: (m) => r(m, s)
|
|
1380
1386
|
}, [l("span", null, null)])]);
|
|
1381
1387
|
}
|
|
1382
|
-
function
|
|
1388
|
+
function u(s) {
|
|
1383
1389
|
return l("div", {
|
|
1384
1390
|
class: "f-section-formgroup-legend"
|
|
1385
1391
|
}, [l("div", {
|
|
@@ -1399,7 +1405,7 @@ const ro = /* @__PURE__ */ H({
|
|
|
1399
1405
|
function C(s) {
|
|
1400
1406
|
return `${e.categoryKey}_${s.propertyID}`;
|
|
1401
1407
|
}
|
|
1402
|
-
function
|
|
1408
|
+
function c(s) {
|
|
1403
1409
|
s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
|
|
1404
1410
|
changeObject: s
|
|
1405
1411
|
});
|
|
@@ -1410,11 +1416,11 @@ const ro = /* @__PURE__ */ H({
|
|
|
1410
1416
|
function p(s) {
|
|
1411
1417
|
return l("div", {
|
|
1412
1418
|
class: "px-2 mb-2"
|
|
1413
|
-
}, [l(
|
|
1419
|
+
}, [l(so, {
|
|
1414
1420
|
key: C(s),
|
|
1415
1421
|
elementConfig: s,
|
|
1416
1422
|
category: n.value,
|
|
1417
|
-
onPropertyChange:
|
|
1423
|
+
onPropertyChange: c,
|
|
1418
1424
|
onTriggerRefreshPanel: i
|
|
1419
1425
|
}, null)]);
|
|
1420
1426
|
}
|
|
@@ -1428,114 +1434,114 @@ const ro = /* @__PURE__ */ H({
|
|
|
1428
1434
|
}]
|
|
1429
1435
|
}, [l("div", {
|
|
1430
1436
|
class: "card-header",
|
|
1431
|
-
onClick: (
|
|
1437
|
+
onClick: (T) => r(T, s)
|
|
1432
1438
|
}, [l("div", {
|
|
1433
1439
|
class: "panel-item-title"
|
|
1434
1440
|
}, [l("div", {
|
|
1435
1441
|
class: "form-group farris-form-group line-item"
|
|
1436
|
-
}, [
|
|
1442
|
+
}, [u(s), o(s), d(s)])])]), l("div", {
|
|
1437
1443
|
class: ["card-body", {
|
|
1438
1444
|
hidden: !s.isExpand
|
|
1439
1445
|
}]
|
|
1440
|
-
}, [(m = s.cascadeConfig) == null ? void 0 : m.map((
|
|
1446
|
+
}, [(m = s.cascadeConfig) == null ? void 0 : m.map((T) => p(T))])])]);
|
|
1441
1447
|
}
|
|
1442
|
-
|
|
1448
|
+
R(() => e.category, () => {
|
|
1443
1449
|
n.value = e.category;
|
|
1444
1450
|
});
|
|
1445
1451
|
function f(s) {
|
|
1446
1452
|
return s.propertyType === "cascade" ? a : p;
|
|
1447
1453
|
}
|
|
1448
|
-
return () => l(
|
|
1454
|
+
return () => l(J, null, [n.value.properties.map((s) => f(s)(s))]);
|
|
1449
1455
|
}
|
|
1450
|
-
}),
|
|
1456
|
+
}), ce = /* @__PURE__ */ H({
|
|
1451
1457
|
name: "FPropertyPanel",
|
|
1452
|
-
props:
|
|
1458
|
+
props: en,
|
|
1453
1459
|
emits: ["propertyChanged"],
|
|
1454
1460
|
setup(e, t) {
|
|
1455
|
-
const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode),
|
|
1456
|
-
let m = [],
|
|
1457
|
-
const
|
|
1458
|
-
let
|
|
1459
|
-
const B = h(),
|
|
1460
|
-
function
|
|
1461
|
-
|
|
1462
|
-
if (
|
|
1463
|
-
const F =
|
|
1464
|
-
|
|
1461
|
+
const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), u = h(e.isPersitOpenState), C = h(e.isShowPanel), c = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
|
|
1462
|
+
let m = [], T = [];
|
|
1463
|
+
const E = h(""), V = h(), j = h(), L = Ue("SchemaService");
|
|
1464
|
+
let k = [], I = null, O = "";
|
|
1465
|
+
const B = h(), D = h(0);
|
|
1466
|
+
function N() {
|
|
1467
|
+
T = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
|
|
1468
|
+
if (w.properties.forEach((F) => F.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
|
|
1469
|
+
const F = w.properties.map((M) => (M.category = w, M));
|
|
1470
|
+
T = T.concat(F);
|
|
1465
1471
|
}
|
|
1466
1472
|
});
|
|
1467
1473
|
}
|
|
1468
|
-
function
|
|
1469
|
-
let
|
|
1474
|
+
function q(x) {
|
|
1475
|
+
let w = x.offsetTop, F = x.offsetParent;
|
|
1470
1476
|
for (; F !== null; )
|
|
1471
|
-
|
|
1472
|
-
return
|
|
1477
|
+
w += F.offsetTop, F = F.offsetParent;
|
|
1478
|
+
return w;
|
|
1473
1479
|
}
|
|
1474
|
-
function
|
|
1475
|
-
|
|
1476
|
-
var
|
|
1477
|
-
const
|
|
1478
|
-
(
|
|
1480
|
+
function _(x, w) {
|
|
1481
|
+
x && w && Object.keys(w).length > 0 && Object.keys(w).forEach((F) => {
|
|
1482
|
+
var G;
|
|
1483
|
+
const M = w[F];
|
|
1484
|
+
(G = x.style) == null || G.setProperty(F, M);
|
|
1479
1485
|
});
|
|
1480
1486
|
}
|
|
1481
|
-
function
|
|
1482
|
-
return
|
|
1487
|
+
function z() {
|
|
1488
|
+
return T.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(E.value) || w.propertyName && (w.propertyName.startsWith(E.value) || w.propertyName.includes(E.value))) : !1);
|
|
1483
1489
|
}
|
|
1484
|
-
function P(
|
|
1485
|
-
if (
|
|
1486
|
-
const
|
|
1487
|
-
|
|
1488
|
-
top:
|
|
1490
|
+
function P(x, w, F) {
|
|
1491
|
+
if (x === 0) {
|
|
1492
|
+
const M = q(w), K = q(F) - M - 5;
|
|
1493
|
+
w == null || w.scroll({
|
|
1494
|
+
top: K,
|
|
1489
1495
|
behavior: "smooth"
|
|
1490
1496
|
});
|
|
1491
1497
|
}
|
|
1492
1498
|
}
|
|
1493
|
-
function
|
|
1494
|
-
|
|
1499
|
+
function A(x) {
|
|
1500
|
+
k && k.length > 0 && (k.forEach((F) => {
|
|
1495
1501
|
F.style.cssText = "";
|
|
1496
|
-
}),
|
|
1497
|
-
const
|
|
1498
|
-
if (!
|
|
1499
|
-
|
|
1500
|
-
else if (
|
|
1501
|
-
const F =
|
|
1502
|
+
}), k = []), E.value = x || E.value;
|
|
1503
|
+
const w = document.querySelector(".panel-body");
|
|
1504
|
+
if (!E.value)
|
|
1505
|
+
V.value && w && (w.scrollTop = 0);
|
|
1506
|
+
else if (N(), T && T.length > 0) {
|
|
1507
|
+
const F = z();
|
|
1502
1508
|
F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
|
|
1503
|
-
F.forEach((
|
|
1504
|
-
const
|
|
1505
|
-
|
|
1509
|
+
F.forEach((M, G) => {
|
|
1510
|
+
const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Z = document.querySelector(K);
|
|
1511
|
+
Z && (P(G, w, Z), _(Z, {
|
|
1506
1512
|
color: "#5B89FE"
|
|
1507
|
-
}),
|
|
1513
|
+
}), k.push(Z));
|
|
1508
1514
|
});
|
|
1509
1515
|
}, 50));
|
|
1510
1516
|
}
|
|
1511
1517
|
}
|
|
1512
|
-
function
|
|
1513
|
-
|
|
1518
|
+
function U(x) {
|
|
1519
|
+
A(x);
|
|
1514
1520
|
}
|
|
1515
|
-
function
|
|
1521
|
+
function X(x) {
|
|
1516
1522
|
const {
|
|
1517
|
-
value:
|
|
1518
|
-
} =
|
|
1519
|
-
|
|
1523
|
+
value: w
|
|
1524
|
+
} = x.target;
|
|
1525
|
+
x.key === "Enter" && U(w);
|
|
1520
1526
|
}
|
|
1521
|
-
function
|
|
1527
|
+
function Fe(x) {
|
|
1522
1528
|
const {
|
|
1523
|
-
value:
|
|
1524
|
-
} =
|
|
1525
|
-
|
|
1529
|
+
value: w
|
|
1530
|
+
} = x.target;
|
|
1531
|
+
U(w);
|
|
1526
1532
|
}
|
|
1527
|
-
function
|
|
1528
|
-
|
|
1533
|
+
function we() {
|
|
1534
|
+
u.value || (f.value = !1), t.emit("closePropertyPanel");
|
|
1529
1535
|
}
|
|
1530
|
-
function
|
|
1531
|
-
|
|
1536
|
+
function Y(x) {
|
|
1537
|
+
E.value = "", A();
|
|
1532
1538
|
}
|
|
1533
|
-
function
|
|
1534
|
-
!
|
|
1539
|
+
function xe(x) {
|
|
1540
|
+
!x.status || x.status === "open" ? x.status = "closed" : x.status = "open";
|
|
1535
1541
|
}
|
|
1536
|
-
function
|
|
1537
|
-
var
|
|
1538
|
-
if (m = [], !
|
|
1542
|
+
function Q() {
|
|
1543
|
+
var x, w;
|
|
1544
|
+
if (m = [], !c.value || c.value.length === 0) {
|
|
1539
1545
|
m = [{
|
|
1540
1546
|
tabId: "default",
|
|
1541
1547
|
tabName: "属性",
|
|
@@ -1543,47 +1549,47 @@ const ro = /* @__PURE__ */ H({
|
|
|
1543
1549
|
}], B.value = null;
|
|
1544
1550
|
return;
|
|
1545
1551
|
}
|
|
1546
|
-
if ((
|
|
1552
|
+
if ((x = c == null ? void 0 : c.value) == null || x.forEach((F) => {
|
|
1547
1553
|
if (F.tabId) {
|
|
1548
|
-
const
|
|
1549
|
-
|
|
1554
|
+
const M = m.find((G) => G.tabId === F.tabId);
|
|
1555
|
+
M ? (M.categoryList.push(F), M.hide && (M.hide = F.hide || F.properties.length === 0)) : m.push({
|
|
1550
1556
|
tabId: F.tabId,
|
|
1551
1557
|
tabName: F.tabName,
|
|
1552
1558
|
categoryList: [F],
|
|
1553
1559
|
hide: F.hide || F.properties.length === 0
|
|
1554
1560
|
});
|
|
1555
1561
|
} else {
|
|
1556
|
-
const
|
|
1557
|
-
|
|
1562
|
+
const M = m.find((G) => G.tabId === "default");
|
|
1563
|
+
M ? M.categoryList.push(F) : m.push({
|
|
1558
1564
|
tabId: "default",
|
|
1559
1565
|
tabName: "属性",
|
|
1560
1566
|
categoryList: [F]
|
|
1561
1567
|
});
|
|
1562
1568
|
}
|
|
1563
1569
|
}), a.value) {
|
|
1564
|
-
let F = m == null ? void 0 : m.find((
|
|
1570
|
+
let F = m == null ? void 0 : m.find((M) => M.tabId === a.value && !M.hide);
|
|
1565
1571
|
B.value = F || m[0];
|
|
1566
1572
|
} else
|
|
1567
1573
|
B.value = m[0];
|
|
1568
|
-
a.value = (
|
|
1574
|
+
a.value = (w = B.value) == null ? void 0 : w.tabId;
|
|
1569
1575
|
}
|
|
1570
|
-
|
|
1571
|
-
i.value = e.schema, !e.schema || !e.schema.type ?
|
|
1576
|
+
R(() => [e.schema, e.isShowPanel], () => {
|
|
1577
|
+
i.value = e.schema, !e.schema || !e.schema.type ? c.value = [] : c.value = ee(i.value, L, I, O), Q(), Y(E.value), D.value++;
|
|
1572
1578
|
}), W(() => {
|
|
1573
|
-
|
|
1579
|
+
Q();
|
|
1574
1580
|
});
|
|
1575
|
-
function
|
|
1576
|
-
(!i.value ||
|
|
1581
|
+
function Te(x, w) {
|
|
1582
|
+
(!i.value || w) && (i.value = w || e.schema), c.value = ee(i.value, L, I, O, x), Q(), Y(E.value);
|
|
1577
1583
|
}
|
|
1578
|
-
function
|
|
1579
|
-
I =
|
|
1584
|
+
function Be(x, w) {
|
|
1585
|
+
I = x, O = w;
|
|
1580
1586
|
}
|
|
1581
|
-
function
|
|
1587
|
+
function ie() {
|
|
1582
1588
|
d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
|
|
1583
|
-
|
|
1589
|
+
U();
|
|
1584
1590
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1585
1591
|
}
|
|
1586
|
-
function
|
|
1592
|
+
function Pe() {
|
|
1587
1593
|
if (p.value)
|
|
1588
1594
|
return l("div", {
|
|
1589
1595
|
class: "title-actions"
|
|
@@ -1596,17 +1602,17 @@ const ro = /* @__PURE__ */ H({
|
|
|
1596
1602
|
role: "toolbar"
|
|
1597
1603
|
}, [l("li", {
|
|
1598
1604
|
class: "action-item",
|
|
1599
|
-
onClick:
|
|
1605
|
+
onClick: we
|
|
1600
1606
|
}, [l("span", {
|
|
1601
1607
|
class: "f-icon f-icon-close"
|
|
1602
1608
|
}, null)])])])])]);
|
|
1603
1609
|
}
|
|
1604
|
-
function
|
|
1605
|
-
|
|
1610
|
+
function Se() {
|
|
1611
|
+
c.value = ee(i.value, L, I, O), Q();
|
|
1606
1612
|
}
|
|
1607
|
-
function
|
|
1608
|
-
var
|
|
1609
|
-
if (r.value && ((
|
|
1613
|
+
function Ee() {
|
|
1614
|
+
var x;
|
|
1615
|
+
if (r.value && ((x = B.value) == null ? void 0 : x.tabId) !== "commands")
|
|
1610
1616
|
return l("div", {
|
|
1611
1617
|
class: "search"
|
|
1612
1618
|
}, [l("div", {
|
|
@@ -1616,48 +1622,48 @@ const ro = /* @__PURE__ */ H({
|
|
|
1616
1622
|
type: "text",
|
|
1617
1623
|
placeholder: "输入属性名称或编号快速定位",
|
|
1618
1624
|
autocomplete: "off",
|
|
1619
|
-
onKeyup: (
|
|
1620
|
-
value:
|
|
1625
|
+
onKeyup: (w) => X(w),
|
|
1626
|
+
value: E.value
|
|
1621
1627
|
}, null), l("div", {
|
|
1622
1628
|
class: "input-group-append",
|
|
1623
1629
|
style: "margin-left: 0px;"
|
|
1624
1630
|
}, [l("span", {
|
|
1625
1631
|
class: "input-group-text input-group-clear",
|
|
1626
1632
|
style: [{
|
|
1627
|
-
display:
|
|
1633
|
+
display: E.value && E.value.length > 0 ? "" : "none"
|
|
1628
1634
|
}],
|
|
1629
|
-
onClick: (
|
|
1635
|
+
onClick: (w) => Y()
|
|
1630
1636
|
}, [l("i", {
|
|
1631
1637
|
class: "f-icon modal_close"
|
|
1632
1638
|
}, null)]), l("span", {
|
|
1633
1639
|
class: "input-group-text input-group-clear",
|
|
1634
|
-
onClick: (
|
|
1640
|
+
onClick: (w) => Fe(w)
|
|
1635
1641
|
}, [l("i", {
|
|
1636
1642
|
class: "f-icon f-icon-search"
|
|
1637
1643
|
}, null)])])])]);
|
|
1638
1644
|
}
|
|
1639
|
-
function
|
|
1640
|
-
return `${e.propertyName}_${
|
|
1645
|
+
function ke(x) {
|
|
1646
|
+
return `${e.propertyName}_${x.categoryId}`;
|
|
1641
1647
|
}
|
|
1642
|
-
function
|
|
1643
|
-
t.emit("propertyChanged",
|
|
1648
|
+
function Ie(x) {
|
|
1649
|
+
t.emit("propertyChanged", x);
|
|
1644
1650
|
}
|
|
1645
|
-
function
|
|
1646
|
-
var
|
|
1651
|
+
function Oe() {
|
|
1652
|
+
var x, w;
|
|
1647
1653
|
if (B.value)
|
|
1648
1654
|
return l("div", {
|
|
1649
1655
|
class: "panel-body",
|
|
1650
|
-
ref:
|
|
1656
|
+
ref: j
|
|
1651
1657
|
}, [l("ul", {
|
|
1652
1658
|
class: ["property-grid", {
|
|
1653
1659
|
"wide-panel": o.value
|
|
1654
1660
|
}]
|
|
1655
|
-
}, [(
|
|
1656
|
-
key:
|
|
1661
|
+
}, [(w = (x = B.value) == null ? void 0 : x.categoryList) == null ? void 0 : w.map((F) => l("li", {
|
|
1662
|
+
key: ke(F),
|
|
1657
1663
|
"data-category-id": F == null ? void 0 : F.categoryId
|
|
1658
1664
|
}, [!F.hide && !F.hideTitle && l("span", {
|
|
1659
1665
|
class: "group-label",
|
|
1660
|
-
onClick: () =>
|
|
1666
|
+
onClick: () => xe(F)
|
|
1661
1667
|
}, [l("span", {
|
|
1662
1668
|
class: ["f-icon mr-2", {
|
|
1663
1669
|
"f-legend-show": F.status === "closed"
|
|
@@ -1666,30 +1672,30 @@ const ro = /* @__PURE__ */ H({
|
|
|
1666
1672
|
}]
|
|
1667
1673
|
}, null), F.categoryName]), l("div", {
|
|
1668
1674
|
hidden: F.status === "closed"
|
|
1669
|
-
}, [l(
|
|
1670
|
-
key: `${F == null ? void 0 : F.categoryId}-${
|
|
1675
|
+
}, [l(uo, {
|
|
1676
|
+
key: `${F == null ? void 0 : F.categoryId}-${D.value}`,
|
|
1671
1677
|
category: F,
|
|
1672
1678
|
propertyData: i.value,
|
|
1673
|
-
onTriggerRefreshPanel:
|
|
1674
|
-
onValueChanged:
|
|
1679
|
+
onTriggerRefreshPanel: Se,
|
|
1680
|
+
onValueChanged: Ie
|
|
1675
1681
|
}, null)])]))])]);
|
|
1676
1682
|
}
|
|
1677
|
-
function
|
|
1683
|
+
function Me() {
|
|
1678
1684
|
if (d.value === "sidebar")
|
|
1679
1685
|
return l("div", {
|
|
1680
1686
|
class: "side-panel h-100",
|
|
1681
|
-
onClick:
|
|
1687
|
+
onClick: ie
|
|
1682
1688
|
}, [l("i", {
|
|
1683
1689
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1684
|
-
}, null), l("span", null, [
|
|
1690
|
+
}, null), l("span", null, [de("属性")])]);
|
|
1685
1691
|
}
|
|
1686
|
-
function
|
|
1692
|
+
function Ve() {
|
|
1687
1693
|
return {
|
|
1688
1694
|
display: f.value ? "block" : "none",
|
|
1689
1695
|
width: n.value
|
|
1690
1696
|
};
|
|
1691
1697
|
}
|
|
1692
|
-
function
|
|
1698
|
+
function Ne() {
|
|
1693
1699
|
return l("div", {
|
|
1694
1700
|
class: "switcher"
|
|
1695
1701
|
}, [l("i", {
|
|
@@ -1697,36 +1703,36 @@ const ro = /* @__PURE__ */ H({
|
|
|
1697
1703
|
style: [{
|
|
1698
1704
|
transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1699
1705
|
}],
|
|
1700
|
-
onClick:
|
|
1706
|
+
onClick: ie
|
|
1701
1707
|
}, null)]);
|
|
1702
1708
|
}
|
|
1703
|
-
function
|
|
1704
|
-
B.value =
|
|
1709
|
+
function je(x) {
|
|
1710
|
+
B.value = x, a.value = B.value.tabId, E.value = "";
|
|
1705
1711
|
}
|
|
1706
1712
|
function Le() {
|
|
1707
|
-
return m.map((
|
|
1713
|
+
return m.map((x) => l("div", {
|
|
1708
1714
|
class: ["title-label", {
|
|
1709
|
-
active: B.value && B.value.tabId ===
|
|
1715
|
+
active: B.value && B.value.tabId === x.tabId
|
|
1710
1716
|
}, {
|
|
1711
|
-
hidden:
|
|
1717
|
+
hidden: x.hide
|
|
1712
1718
|
}],
|
|
1713
|
-
onClick: () =>
|
|
1714
|
-
}, [l("span", null, [
|
|
1719
|
+
onClick: () => je(x)
|
|
1720
|
+
}, [l("span", null, [x.tabName])]));
|
|
1715
1721
|
}
|
|
1716
1722
|
return W(() => {
|
|
1717
|
-
|
|
1718
|
-
}),
|
|
1719
|
-
|
|
1720
|
-
}),
|
|
1723
|
+
U(E.value);
|
|
1724
|
+
}), We(() => {
|
|
1725
|
+
u.value && (f.value = C.value), Q(), U(E.value);
|
|
1726
|
+
}), R(B, () => {
|
|
1721
1727
|
}), t.expose({
|
|
1722
|
-
updatePropertyConfig:
|
|
1723
|
-
updateDesignerItem:
|
|
1724
|
-
}), () => l(
|
|
1725
|
-
ref:
|
|
1728
|
+
updatePropertyConfig: Te,
|
|
1729
|
+
updateDesignerItem: Be
|
|
1730
|
+
}), () => l(J, null, [l("div", {
|
|
1731
|
+
ref: V,
|
|
1726
1732
|
class: ["property-panel", {
|
|
1727
1733
|
"white-theme": s.value
|
|
1728
1734
|
}],
|
|
1729
|
-
style:
|
|
1735
|
+
style: Ve()
|
|
1730
1736
|
}, [l("div", {
|
|
1731
1737
|
class: "propertyPanel panel flex-column",
|
|
1732
1738
|
hidden: d.value !== "panel"
|
|
@@ -1736,19 +1742,115 @@ const ro = /* @__PURE__ */ H({
|
|
|
1736
1742
|
}, {
|
|
1737
1743
|
only: m.length === 1
|
|
1738
1744
|
}]
|
|
1739
|
-
}, [Le(),
|
|
1745
|
+
}, [Le(), Pe()]), Ee(), Oe()]), Ne(), Me()])]);
|
|
1740
1746
|
}
|
|
1741
1747
|
});
|
|
1742
|
-
|
|
1743
|
-
|
|
1748
|
+
class Fr {
|
|
1749
|
+
constructor(t, n) {
|
|
1750
|
+
$(this, "componentId");
|
|
1751
|
+
$(this, "viewModelId");
|
|
1752
|
+
$(this, "eventsEditorUtils");
|
|
1753
|
+
$(this, "formSchemaUtils");
|
|
1754
|
+
$(this, "formMetadataConverter");
|
|
1755
|
+
$(this, "designViewModelUtils");
|
|
1756
|
+
$(this, "designViewModelField");
|
|
1757
|
+
$(this, "controlCreatorUtils");
|
|
1758
|
+
$(this, "designerHostService");
|
|
1759
|
+
$(this, "schemaService", null);
|
|
1760
|
+
$(this, "metadataService", null);
|
|
1761
|
+
$(this, "propertyConfig", {
|
|
1762
|
+
type: "object",
|
|
1763
|
+
categories: {}
|
|
1764
|
+
});
|
|
1765
|
+
var o;
|
|
1766
|
+
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;
|
|
1767
|
+
}
|
|
1768
|
+
getTableInfo() {
|
|
1769
|
+
var t;
|
|
1770
|
+
return (t = this.schemaService) == null ? void 0 : t.getTableInfoByViewModelId(this.viewModelId);
|
|
1771
|
+
}
|
|
1772
|
+
setDesignViewModelField(t) {
|
|
1773
|
+
const n = t.binding && t.binding.type === "Form" && t.binding.field;
|
|
1774
|
+
if (n) {
|
|
1775
|
+
if (!this.designViewModelField) {
|
|
1776
|
+
const o = this.designViewModelUtils.getDgViewModel(this.viewModelId);
|
|
1777
|
+
this.designViewModelField = o.fields.find((r) => r.id === n);
|
|
1778
|
+
}
|
|
1779
|
+
t.updateOn = this.designViewModelField.updateOn;
|
|
1780
|
+
}
|
|
1781
|
+
}
|
|
1782
|
+
changeFieldEditorType(t, n) {
|
|
1783
|
+
}
|
|
1784
|
+
getBasicPropConfig(t) {
|
|
1785
|
+
return {
|
|
1786
|
+
description: "Basic Information",
|
|
1787
|
+
title: "基本信息",
|
|
1788
|
+
properties: {
|
|
1789
|
+
id: {
|
|
1790
|
+
description: "组件标识",
|
|
1791
|
+
title: "标识",
|
|
1792
|
+
type: "string",
|
|
1793
|
+
readonly: !0
|
|
1794
|
+
},
|
|
1795
|
+
type: {
|
|
1796
|
+
description: "组件类型",
|
|
1797
|
+
title: "控件类型",
|
|
1798
|
+
type: "select",
|
|
1799
|
+
editor: {
|
|
1800
|
+
type: "combo-list",
|
|
1801
|
+
textField: "name",
|
|
1802
|
+
valueField: "value",
|
|
1803
|
+
data: [{ value: t.type, name: ge[t.type].name }]
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1806
|
+
}
|
|
1807
|
+
};
|
|
1808
|
+
}
|
|
1809
|
+
getAppearanceConfig(t = null) {
|
|
1810
|
+
return {
|
|
1811
|
+
title: "样式",
|
|
1812
|
+
description: "Appearance",
|
|
1813
|
+
properties: {
|
|
1814
|
+
class: {
|
|
1815
|
+
title: "class样式",
|
|
1816
|
+
type: "string",
|
|
1817
|
+
description: "组件的CSS样式",
|
|
1818
|
+
$converter: "/converter/appearance.converter"
|
|
1819
|
+
},
|
|
1820
|
+
style: {
|
|
1821
|
+
title: "style样式",
|
|
1822
|
+
type: "string",
|
|
1823
|
+
description: "组件的样式",
|
|
1824
|
+
$converter: "/converter/appearance.converter"
|
|
1825
|
+
}
|
|
1826
|
+
}
|
|
1827
|
+
};
|
|
1828
|
+
}
|
|
1829
|
+
/**
|
|
1830
|
+
*
|
|
1831
|
+
* @param propertyId
|
|
1832
|
+
* @param componentInstance
|
|
1833
|
+
* @returns
|
|
1834
|
+
*/
|
|
1835
|
+
updateElementByParentContainer(t, n) {
|
|
1836
|
+
const o = n && n.parent && n.parent.schema;
|
|
1837
|
+
if (!o)
|
|
1838
|
+
return;
|
|
1839
|
+
const r = o.contents.findIndex((u) => u.id === t), d = pe(o.contents[r]);
|
|
1840
|
+
o.contents.splice(r, 1), o.contents.splice(r, 0, d);
|
|
1841
|
+
}
|
|
1842
|
+
}
|
|
1843
|
+
var co = /* @__PURE__ */ ((e) => (e.string = "string", e.boolean = "boolean", e.number = "number", e.select = "select", e.boolOrExp = "boolOrExp", e.editableSelect = "editableSelect", e.multiSelect = "multiSelect", e.date = "date", e.datetime = "datetime", e.modal = "modal", e.cascade = "cascade", e.custom = "custom", e.unity = "unity", e.events = "events", e.switch = "switch", e.multiLanguage = "multiLanguage", e))(co || {});
|
|
1844
|
+
const wr = {
|
|
1744
1845
|
install(e) {
|
|
1745
|
-
e.component(
|
|
1846
|
+
e.component(ce.name, ce);
|
|
1746
1847
|
}
|
|
1747
1848
|
};
|
|
1748
1849
|
export {
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1850
|
+
Fr as BaseControlProperty,
|
|
1851
|
+
ce as FPropertyPanel,
|
|
1852
|
+
co as PropertyType,
|
|
1853
|
+
wr as default,
|
|
1854
|
+
xn as propertyPanelItemProps,
|
|
1855
|
+
en as propertyPanelProps
|
|
1754
1856
|
};
|