@farris/ui-vue 1.2.7 → 1.2.8
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 +79 -79
- package/components/avatar/index.esm.js +393 -440
- package/components/border-editor/index.esm.js +4 -4
- package/components/button/index.esm.js +1 -1
- package/components/button-edit/index.esm.js +353 -444
- package/components/button-group/index.esm.js +5 -5
- package/components/calendar/index.esm.js +176 -176
- package/components/capsule/index.esm.js +93 -93
- package/components/checkbox/index.esm.js +496 -542
- package/components/color-picker/index.esm.js +1 -1
- package/components/combo-list/index.esm.js +437 -483
- package/components/combo-tree/index.esm.js +8 -8
- package/components/component/index.esm.js +89 -89
- package/components/condition/index.esm.js +839 -726
- package/components/content-container/index.esm.js +61 -61
- package/components/data-grid/index.esm.js +4702 -4972
- package/components/data-view/index.esm.js +2999 -2875
- package/components/date-picker/index.esm.js +2626 -2672
- package/components/dependent-base/style.js +1 -0
- package/components/dependent-fluid/style.js +1 -0
- package/components/dependent-icon/style.js +1 -0
- package/components/dependent-input/style.js +1 -0
- package/components/dependent-table/style.js +1 -0
- package/components/designer-canvas/index.esm.js +478 -475
- package/components/designer-outline/index.esm.js +173 -131
- package/components/discussion-editor/index.esm.js +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dynamic-form/index.esm.js +934 -976
- package/components/dynamic-resolver/index.esm.js +67 -35
- package/components/dynamic-view/index.esm.js +258 -249
- package/components/enum-editor/index.esm.js +3 -3
- package/components/events-editor/index.esm.js +178 -178
- package/components/expression-editor/index.esm.js +105 -105
- package/components/external-container/index.esm.js +1892 -1775
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5245 -5514
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1483 -1556
- package/components/flow-canvas/index.esm.js +678 -675
- package/components/image-cropper/index.esm.js +266 -266
- package/components/input-group/index.esm.js +668 -714
- package/components/layout/index.esm.js +148 -148
- package/components/list-nav/index.esm.js +109 -109
- package/components/list-view/index.esm.js +1679 -1563
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +6596 -6865
- package/components/mapping-editor/index.esm.js +5592 -5862
- package/components/message-box/index.esm.js +1 -1
- package/components/modal/index.esm.js +1 -1
- package/components/nav/index.esm.js +86 -86
- package/components/number-range/index.esm.js +1120 -0
- package/components/number-range/package.json +8 -0
- package/components/number-range/style.js +6 -0
- package/components/number-spinner/index.esm.js +1146 -0
- package/components/number-spinner/package.json +8 -0
- package/components/number-spinner/style.js +4 -0
- package/components/order/index.esm.js +988 -1034
- package/components/page-footer/index.esm.js +106 -106
- package/components/page-header/index.esm.js +1088 -1296
- package/components/pagination/index.esm.js +252 -252
- package/components/progress/index.esm.js +37 -37
- package/components/property-editor/index.esm.js +1416 -1462
- package/components/property-panel/index.css +1 -1
- package/components/property-panel/index.esm.js +757 -830
- package/components/query-solution/index.css +1 -0
- package/components/query-solution/index.esm.js +6935 -0
- package/components/query-solution/package.json +8 -0
- package/components/query-solution/style.js +2 -0
- package/components/radio-button/index.esm.js +64 -64
- package/components/radio-group/index.esm.js +452 -498
- package/components/rate/index.esm.js +92 -92
- package/components/response-layout/index.esm.js +33 -33
- package/components/response-layout-editor/index.esm.js +117 -117
- package/components/response-toolbar/index.esm.js +1021 -1238
- package/components/schema-selector/index.esm.js +3215 -3308
- package/components/search-box/index.esm.js +143 -143
- package/components/section/index.esm.js +209 -209
- package/components/smoke-detector/index.esm.js +22 -22
- package/components/spacing-editor/index.esm.js +2 -2
- package/components/splitter/index.esm.js +1097 -394
- package/components/step/index.esm.js +153 -153
- package/components/switch/index.esm.js +442 -488
- package/components/tabs/index.esm.js +1835 -2004
- package/components/tags/index.esm.js +215 -215
- package/components/text/index.esm.js +53 -53
- package/components/textarea/index.esm.js +451 -482
- package/components/time-picker/index.esm.js +1345 -1392
- package/components/transfer/index.esm.js +135 -135
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5761 -6020
- package/components/tree-view/index.esm.js +2380 -2253
- package/components/uploader/index.esm.js +1 -1
- package/components/verify-detail/index.esm.js +232 -232
- package/components/video/index.esm.js +136 -136
- package/components/weather/index.esm.js +2 -2
- package/farris.all.esm.js +31630 -31224
- package/farris.all.umd.cjs +9 -9
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/checkbox/index.d.ts +1 -0
- package/types/data-grid/src/designer/column-header.design.component.d.ts +1 -1
- package/types/data-grid/src/designer/data-grid-column.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +1 -1
- package/types/designer-canvas/src/composition/dg-control.d.ts +16 -350
- package/types/designer-canvas/src/types.d.ts +1 -1
- package/types/dynamic-form/index.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +1 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/binding-resolver.d.ts +1 -0
- package/types/dynamic-view/src/dynamic-view.component.d.ts +1 -1
- package/types/lookup/src/property-config/lookup.property-config.d.ts +2 -1
- package/types/modal/src/modal.props.d.ts +1 -4
- package/types/property-panel/src/composition/entity/base-property.d.ts +0 -12
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +11 -26
- package/types/property-panel/src/composition/entity/schema-dom-mapping.d.ts +10 -8
- package/types/tabs/src/designer/tab-toolbar-item.props.d.ts +19 -0
- package/types/tabs/src/property-config/tabs.property-config.d.ts +6 -6
- package/types/tree-grid/src/designer/use-designer-rules.d.ts +3 -0
- package/types/tree-grid/src/property-config/tree-grid.property-config.d.ts +11 -0
- package/types/tree-grid/src/schema/column-resolver.d.ts +1 -1
- package/types/tree-grid/src/tree-grid.props.d.ts +8 -0
- package/components/accordion/index.umd.cjs +0 -1
- package/components/avatar/index.umd.cjs +0 -1
- package/components/border-editor/index.umd.cjs +0 -1
- package/components/button/index.umd.cjs +0 -1
- package/components/button-edit/index.umd.cjs +0 -1
- package/components/button-group/index.umd.cjs +0 -1
- package/components/calculator/index.umd.cjs +0 -1
- package/components/calendar/index.umd.cjs +0 -1
- package/components/capsule/index.umd.cjs +0 -1
- package/components/checkbox/index.umd.cjs +0 -1
- package/components/color-picker/index.umd.cjs +0 -3
- package/components/combo-list/index.umd.cjs +0 -1
- package/components/combo-tree/index.umd.cjs +0 -1
- package/components/common/index.umd.cjs +0 -1
- package/components/component/index.umd.cjs +0 -1
- package/components/condition/index.umd.cjs +0 -1
- package/components/content-container/index.umd.cjs +0 -1
- package/components/data-grid/index.umd.cjs +0 -1
- package/components/data-view/index.umd.cjs +0 -1
- package/components/date-picker/index.umd.cjs +0 -1
- package/components/designer-canvas/index.umd.cjs +0 -1
- package/components/designer-outline/index.umd.cjs +0 -1
- package/components/designer-toolbox/index.umd.cjs +0 -1
- package/components/discussion-editor/index.umd.cjs +0 -3
- package/components/discussion-list/index.umd.cjs +0 -1
- package/components/drawer/index.umd.cjs +0 -1
- package/components/dropdown/index.umd.cjs +0 -2
- package/components/dynamic-form/index.umd.cjs +0 -1
- package/components/dynamic-resolver/index.umd.cjs +0 -1
- package/components/dynamic-view/index.umd.cjs +0 -1
- package/components/enum-editor/index.umd.cjs +0 -1
- package/components/events-editor/index.umd.cjs +0 -1
- package/components/expression-editor/index.umd.cjs +0 -1
- package/components/external-container/index.umd.cjs +0 -1
- package/components/field-selector/index.umd.cjs +0 -1
- package/components/filter-bar/index.umd.cjs +0 -1
- package/components/flow-canvas/index.umd.cjs +0 -1
- package/components/image-cropper/index.umd.cjs +0 -1
- package/components/input-group/index.umd.cjs +0 -1
- package/components/layout/index.umd.cjs +0 -1
- package/components/list-nav/index.umd.cjs +0 -1
- package/components/list-view/index.umd.cjs +0 -1
- package/components/loading/index.umd.cjs +0 -8
- package/components/locale/index.umd.cjs +0 -1
- package/components/lookup/index.umd.cjs +0 -1
- package/components/mapping-editor/index.umd.cjs +0 -1
- package/components/message-box/index.umd.cjs +0 -1
- package/components/modal/index.umd.cjs +0 -1
- package/components/nav/index.umd.cjs +0 -3
- package/components/notify/index.umd.cjs +0 -1
- package/components/order/index.umd.cjs +0 -1
- package/components/page-footer/index.umd.cjs +0 -1
- package/components/page-header/index.umd.cjs +0 -1
- package/components/pagination/index.umd.cjs +0 -1
- package/components/popover/index.umd.cjs +0 -1
- package/components/progress/index.umd.cjs +0 -3
- package/components/property-editor/index.umd.cjs +0 -3
- package/components/property-panel/index.umd.cjs +0 -1
- package/components/radio-button/index.umd.cjs +0 -1
- package/components/radio-group/index.umd.cjs +0 -1
- package/components/rate/index.umd.cjs +0 -1
- package/components/response-layout/index.umd.cjs +0 -1
- package/components/response-layout-editor/index.umd.cjs +0 -1
- package/components/response-toolbar/index.umd.cjs +0 -1
- package/components/schema-selector/index.umd.cjs +0 -8
- package/components/search-box/index.umd.cjs +0 -1
- package/components/section/index.umd.cjs +0 -1
- package/components/smoke-detector/index.umd.cjs +0 -1
- package/components/spacing-editor/index.umd.cjs +0 -1
- package/components/splitter/index.umd.cjs +0 -1
- package/components/step/index.umd.cjs +0 -1
- package/components/switch/index.umd.cjs +0 -1
- package/components/tabs/index.umd.cjs +0 -1
- package/components/tags/index.umd.cjs +0 -1
- package/components/text/index.umd.cjs +0 -1
- package/components/textarea/index.umd.cjs +0 -1
- package/components/time-picker/index.umd.cjs +0 -1
- package/components/tooltip/index.umd.cjs +0 -1
- package/components/transfer/index.umd.cjs +0 -1
- package/components/tree-grid/index.umd.cjs +0 -1
- package/components/tree-view/index.umd.cjs +0 -1
- package/components/uploader/index.umd.cjs +0 -2
- package/components/verify-detail/index.umd.cjs +0 -1
- package/components/video/index.umd.cjs +0 -1
- package/components/weather/index.umd.cjs +0 -16
|
@@ -1,69 +1,69 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { ref as C, computed as E, defineComponent as
|
|
5
|
-
import { cloneDeep as
|
|
1
|
+
var Le = Object.defineProperty;
|
|
2
|
+
var je = (e, t, n) => t in e ? Le(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n;
|
|
3
|
+
var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
+
import { ref as C, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as ue, onMounted as H, nextTick as ae, reactive as Ae, withDirectives as $e, resolveDirective as Ve, Fragment as Z, mergeProps as Ge, inject as Re, onBeforeMount as We } from "vue";
|
|
5
|
+
import { cloneDeep as qe } from "lodash-es";
|
|
6
6
|
import "bignumber.js";
|
|
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 lt from "
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import ft from "
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import wt from "
|
|
37
|
-
import
|
|
38
|
-
import Pt from "
|
|
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 Gt from "
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import Ut from "
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import Xt from "
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
7
|
+
import He, { useNumber as Ue, useFormat as _e, useSpinner as ze, useTextBox as Xe } from "../number-spinner/index.esm.js";
|
|
8
|
+
import Qe from "../accordion/index.esm.js";
|
|
9
|
+
import Ze from "../avatar/index.esm.js";
|
|
10
|
+
import Je from "../button-edit/index.esm.js";
|
|
11
|
+
import Ye from "../button-group/index.esm.js";
|
|
12
|
+
import Ke from "../calendar/index.esm.js";
|
|
13
|
+
import et from "../capsule/index.esm.js";
|
|
14
|
+
import tt from "../checkbox/index.esm.js";
|
|
15
|
+
import nt from "../combo-list/index.esm.js";
|
|
16
|
+
import ot from "../combo-tree/index.esm.js";
|
|
17
|
+
import rt from "../component/index.esm.js";
|
|
18
|
+
import at from "../color-picker/index.esm.js";
|
|
19
|
+
import lt from "../content-container/index.esm.js";
|
|
20
|
+
import it from "../date-picker/index.esm.js";
|
|
21
|
+
import st from "../data-grid/index.esm.js";
|
|
22
|
+
import ut from "../dropdown/index.esm.js";
|
|
23
|
+
import ct from "../dynamic-form/index.esm.js";
|
|
24
|
+
import dt from "../events-editor/index.esm.js";
|
|
25
|
+
import pt from "../filter-bar/index.esm.js";
|
|
26
|
+
import ft from "../field-selector/index.esm.js";
|
|
27
|
+
import mt from "../image-cropper/index.esm.js";
|
|
28
|
+
import vt from "../input-group/index.esm.js";
|
|
29
|
+
import gt from "../layout/index.esm.js";
|
|
30
|
+
import yt from "../list-nav/index.esm.js";
|
|
31
|
+
import bt from "../list-view/index.esm.js";
|
|
32
|
+
import ht from "../lookup/index.esm.js";
|
|
33
|
+
import Ct from "../mapping-editor/index.esm.js";
|
|
34
|
+
import Ft from "../nav/index.esm.js";
|
|
35
|
+
import St from "../number-range/index.esm.js";
|
|
36
|
+
import wt from "../order/index.esm.js";
|
|
37
|
+
import Tt from "../page-header/index.esm.js";
|
|
38
|
+
import Pt from "../page-footer/index.esm.js";
|
|
39
|
+
import Bt from "../pagination/index.esm.js";
|
|
40
|
+
import xt from "../progress/index.esm.js";
|
|
41
|
+
import It from "../query-solution/index.esm.js";
|
|
42
|
+
import Et from "../radio-group/index.esm.js";
|
|
43
|
+
import kt from "../rate/index.esm.js";
|
|
44
|
+
import Ot from "../response-toolbar/index.esm.js";
|
|
45
|
+
import Mt from "../response-layout/index.esm.js";
|
|
46
|
+
import Nt from "../response-layout-editor/index.esm.js";
|
|
47
|
+
import Dt from "../search-box/index.esm.js";
|
|
48
|
+
import Lt from "../section/index.esm.js";
|
|
49
|
+
import jt from "../smoke-detector/index.esm.js";
|
|
50
|
+
import At from "../splitter/index.esm.js";
|
|
51
|
+
import $t from "../step/index.esm.js";
|
|
52
|
+
import Vt from "../switch/index.esm.js";
|
|
53
|
+
import Gt from "../tabs/index.esm.js";
|
|
54
|
+
import Rt from "../tags/index.esm.js";
|
|
55
|
+
import Wt from "../text/index.esm.js";
|
|
56
|
+
import qt from "../time-picker/index.esm.js";
|
|
57
|
+
import Ht from "../transfer/index.esm.js";
|
|
58
|
+
import Ut from "../tree-view/index.esm.js";
|
|
59
|
+
import _t from "../uploader/index.esm.js";
|
|
60
|
+
import zt from "../verify-detail/index.esm.js";
|
|
61
|
+
import Xt from "../weather/index.esm.js";
|
|
62
|
+
import Qt from "../video/index.esm.js";
|
|
63
|
+
import Zt from "../textarea/index.esm.js";
|
|
64
|
+
import Jt from "../schema-selector/index.esm.js";
|
|
65
|
+
import Yt from "../tree-grid/index.esm.js";
|
|
66
|
+
const Kt = {
|
|
67
67
|
width: { type: String, default: "300px" },
|
|
68
68
|
height: { type: Number, default: 10 },
|
|
69
69
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -92,89 +92,89 @@ const en = {
|
|
|
92
92
|
/** 属性变更后事件 */
|
|
93
93
|
propertyChanged: { type: Function }
|
|
94
94
|
};
|
|
95
|
-
function
|
|
96
|
-
function t(o,
|
|
97
|
-
if (typeof
|
|
98
|
-
return
|
|
99
|
-
if (typeof
|
|
100
|
-
const i = Object.keys(
|
|
95
|
+
function en(e = {}) {
|
|
96
|
+
function t(o, s, r, u) {
|
|
97
|
+
if (typeof r == "number")
|
|
98
|
+
return u[o].length === r;
|
|
99
|
+
if (typeof r == "object") {
|
|
100
|
+
const i = Object.keys(r)[0], p = r[i];
|
|
101
101
|
if (i === "not")
|
|
102
|
-
return Number(
|
|
102
|
+
return Number(u[o].length) !== Number(p);
|
|
103
103
|
if (i === "moreThan")
|
|
104
|
-
return Number(
|
|
104
|
+
return Number(u[o].length) >= Number(p);
|
|
105
105
|
if (i === "lessThan")
|
|
106
|
-
return Number(
|
|
106
|
+
return Number(u[o].length) <= Number(p);
|
|
107
107
|
}
|
|
108
108
|
return !1;
|
|
109
109
|
}
|
|
110
|
-
function n(o,
|
|
111
|
-
return
|
|
110
|
+
function n(o, s, r, u) {
|
|
111
|
+
return u[o] && u[o].propertyValue && String(u[o].propertyValue.value) === String(r);
|
|
112
112
|
}
|
|
113
|
-
const
|
|
113
|
+
const a = /* @__PURE__ */ new Map([
|
|
114
114
|
["length", t],
|
|
115
115
|
["getProperty", n]
|
|
116
116
|
]);
|
|
117
|
-
Object.keys(e).reduce((o,
|
|
118
|
-
function
|
|
119
|
-
const
|
|
120
|
-
return typeof
|
|
121
|
-
if (
|
|
122
|
-
return { target:
|
|
123
|
-
const i =
|
|
124
|
-
return { target:
|
|
117
|
+
Object.keys(e).reduce((o, s) => (o.set(s, e[s]), o), a);
|
|
118
|
+
function l(o, s) {
|
|
119
|
+
const r = o;
|
|
120
|
+
return typeof s == "number" ? [{ target: r, operator: "length", param: null, value: Number(s) }] : typeof s == "boolean" ? [{ target: r, operator: "getProperty", param: o, value: !!s }] : typeof s == "object" ? Object.keys(s).map((u) => {
|
|
121
|
+
if (u === "length")
|
|
122
|
+
return { target: r, operator: "length", param: null, value: s[u] };
|
|
123
|
+
const i = u, p = s[u];
|
|
124
|
+
return { target: r, operator: "getProperty", param: i, value: p };
|
|
125
125
|
}) : [];
|
|
126
126
|
}
|
|
127
|
-
function
|
|
128
|
-
return Object.keys(o).reduce((
|
|
129
|
-
const i =
|
|
130
|
-
return
|
|
127
|
+
function f(o) {
|
|
128
|
+
return Object.keys(o).reduce((r, u) => {
|
|
129
|
+
const i = l(u, o[u]);
|
|
130
|
+
return r.push(...i), r;
|
|
131
131
|
}, []);
|
|
132
132
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const
|
|
136
|
-
return
|
|
133
|
+
function v(o, s) {
|
|
134
|
+
if (a.has(o.operator)) {
|
|
135
|
+
const r = a.get(o.operator);
|
|
136
|
+
return r && r(o.target, o.param, o.value, s) || !1;
|
|
137
137
|
}
|
|
138
138
|
return !1;
|
|
139
139
|
}
|
|
140
|
-
function
|
|
141
|
-
return
|
|
140
|
+
function P(o, s) {
|
|
141
|
+
return f(o).reduce((i, p) => i && v(p, s), !0);
|
|
142
142
|
}
|
|
143
|
-
function d(o,
|
|
144
|
-
const
|
|
145
|
-
return
|
|
143
|
+
function d(o, s) {
|
|
144
|
+
const r = Object.keys(o), u = r.includes("allOf"), i = r.includes("anyOf"), p = u || i, N = (p ? o[p ? u ? "allOf" : "anyOf" : "allOf"] : [o]).map((D) => P(D, s));
|
|
145
|
+
return u ? !N.includes(!1) : N.includes(!0);
|
|
146
146
|
}
|
|
147
147
|
return { parseValueSchema: d };
|
|
148
148
|
}
|
|
149
|
-
const ce = {},
|
|
149
|
+
const ce = {}, tn = {};
|
|
150
150
|
function de(e) {
|
|
151
|
-
const { properties: t, title: n } = e,
|
|
152
|
-
return
|
|
151
|
+
const { properties: t, title: n } = e, a = Object.keys(t).reduce((l, f) => (l[f] = t[f].type === "object" && t[f].properties ? de(t[f]) : qe(t[f].default), l), {});
|
|
152
|
+
return a.id = `${n}-${Date.now()}`, a;
|
|
153
153
|
}
|
|
154
154
|
function pe(e, t) {
|
|
155
155
|
const n = de(t);
|
|
156
|
-
return Object.keys(e).reduce((
|
|
156
|
+
return Object.keys(e).reduce((a, l) => (a[l] && typeof a[l] == "object" ? Object.assign(a[l], e[l]) : a[l] = e[l], a), n), n;
|
|
157
157
|
}
|
|
158
|
-
function
|
|
159
|
-
return Object.keys(e).filter((
|
|
160
|
-
if (t.has(
|
|
161
|
-
const
|
|
162
|
-
if (typeof
|
|
163
|
-
|
|
158
|
+
function nn(e, t) {
|
|
159
|
+
return Object.keys(e).filter((a) => e[a] != null).reduce((a, l) => {
|
|
160
|
+
if (t.has(l)) {
|
|
161
|
+
const f = t.get(l);
|
|
162
|
+
if (typeof f == "string")
|
|
163
|
+
a[f] = e[l];
|
|
164
164
|
else {
|
|
165
|
-
const
|
|
166
|
-
Object.assign(
|
|
165
|
+
const v = f(l, e[l], e);
|
|
166
|
+
Object.assign(a, v);
|
|
167
167
|
}
|
|
168
168
|
} else
|
|
169
|
-
|
|
170
|
-
return
|
|
169
|
+
a[l] = e[l];
|
|
170
|
+
return a;
|
|
171
171
|
}, {});
|
|
172
172
|
}
|
|
173
|
-
function
|
|
174
|
-
const
|
|
175
|
-
return
|
|
173
|
+
function on(e, t, n = /* @__PURE__ */ new Map()) {
|
|
174
|
+
const a = pe(e, t);
|
|
175
|
+
return nn(a, n);
|
|
176
176
|
}
|
|
177
|
-
function
|
|
177
|
+
function fe(e) {
|
|
178
178
|
const t = e.type;
|
|
179
179
|
if (t) {
|
|
180
180
|
const n = ce[t];
|
|
@@ -182,25 +182,23 @@ function me(e) {
|
|
|
182
182
|
}
|
|
183
183
|
return e;
|
|
184
184
|
}
|
|
185
|
-
const
|
|
186
|
-
convertTo: (e, t, n,
|
|
185
|
+
const rn = {
|
|
186
|
+
convertTo: (e, t, n, a) => {
|
|
187
187
|
e.appearance && (e.appearance[t] = n);
|
|
188
188
|
},
|
|
189
189
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
190
|
-
},
|
|
190
|
+
}, an = {
|
|
191
191
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
192
|
-
},
|
|
193
|
-
convertTo: (e, t, n,
|
|
192
|
+
}, ln = {
|
|
193
|
+
convertTo: (e, t, n, a) => {
|
|
194
194
|
e.editor && (e.editor[t] = n);
|
|
195
195
|
},
|
|
196
196
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
197
|
-
},
|
|
198
|
-
|
|
199
|
-
ButtonGroup: { type: "ButtonGroup", name: "按钮组", icon: "ButtonGroup" },
|
|
197
|
+
}, sn = {
|
|
198
|
+
button: { type: "button", name: "按钮", icon: "Button" },
|
|
200
199
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
201
|
-
"response-toolbar-item": { type: "response-toolbar-item", name: "
|
|
200
|
+
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
202
201
|
"content-container": { type: "content-container", name: "容器", icon: "ContentContainer" },
|
|
203
|
-
DisplayField: { type: "DisplayField", name: "标签", icon: "DisplayField" },
|
|
204
202
|
"input-group": { type: "input-group", name: "文本", icon: "TextBox" },
|
|
205
203
|
textarea: { type: "textarea", name: "多行文本", icon: "MultiTextBox" },
|
|
206
204
|
lookup: { type: "lookup", name: "帮助", icon: "LookupEdit" },
|
|
@@ -211,246 +209,175 @@ const an = {
|
|
|
211
209
|
"check-box": { type: "check-box", name: "复选框", icon: "CheckBox" },
|
|
212
210
|
"check-group": { type: "check-group", name: "复选框组", icon: "CheckGroup" },
|
|
213
211
|
"combo-list": { type: "combo-list", name: "下拉列表", icon: "EnumField" },
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
FlowLayout: { type: "FlowLayout", name: "流布局" },
|
|
218
|
-
ResponseLayout: { type: "ResponseLayout", name: "布局容器", icon: "ResponseLayout3" },
|
|
219
|
-
ResponseLayoutItem: { type: "ResponseLayoutItem", name: "布局", icon: "ResponseLayout1" },
|
|
212
|
+
"response-form": { type: "response-form", name: "卡片面板", icon: "Form" },
|
|
213
|
+
"response-layout": { type: "response-layout", name: "布局容器", icon: "ResponseLayout3" },
|
|
214
|
+
"response-layout-item": { type: "response-layout-item", name: "布局", icon: "ResponseLayout1" },
|
|
220
215
|
"tree-grid": { type: "tree-grid", name: "树表格", icon: "TreeGrid" },
|
|
221
|
-
|
|
222
|
-
FieldSet: { type: "FieldSet", name: "分组", icon: "FieldSet" },
|
|
223
|
-
Form: { type: "Form", name: "卡片面板", icon: "Form" },
|
|
224
|
-
QueryForm: { type: "QueryForm", name: "查询面板", icon: "Form" },
|
|
216
|
+
"tree-grid-column": { type: "tree-grid-column", name: "树表格列" },
|
|
225
217
|
"data-grid": { type: "data-grid", name: "表格", icon: "DataGrid" },
|
|
226
218
|
"data-grid-column": { type: "data-grid-column", name: "表格列" },
|
|
227
|
-
|
|
228
|
-
Module: { type: "Module", name: "模块", icon: "Module" },
|
|
219
|
+
module: { type: "Module", name: "模块", icon: "Module" },
|
|
229
220
|
component: { type: "component", name: "组件", icon: "Component" },
|
|
230
|
-
ExternalContainer: { type: "ExternalContainer", name: "外部容器", icon: "ContentContainer" },
|
|
231
|
-
Image: { type: "Image", name: "图像", icon: "Image" },
|
|
232
|
-
ImageUpload: { type: "ImageUpload", name: "图片上传", icon: "imageupload" },
|
|
233
|
-
HiddenContainer: { type: "HiddenContainer", name: "隐藏区域", icon: "ContentContainer" },
|
|
234
|
-
ModalContainer: { type: "ModalContainer", name: "弹窗容器", icon: "ContentContainer" },
|
|
235
|
-
RouteContainer: { type: "RouteContainer", name: "路由区域", icon: "ContentContainer" },
|
|
236
221
|
tabs: { type: "tabs", name: "标签页", icon: "Tab" },
|
|
237
222
|
"tab-page": { type: "tab-page", name: "标签页项", dependentParentControl: "Tab" },
|
|
238
223
|
"tab-toolbar-item": { type: "tab-toolbar-item", name: "标签页工具栏按钮", icon: "Button" },
|
|
239
|
-
|
|
240
|
-
Sidebar: { type: "Sidebar", name: "侧边栏", icon: "Sidebar" },
|
|
241
|
-
HtmlTemplate: { type: "HtmlTemplate", name: "模版容器", icon: "HtmlTemplate" },
|
|
242
|
-
ListView: { type: "ListView", name: "列表", icon: "ListView" },
|
|
243
|
-
RichTextBox: { type: "RichTextBox", name: "富文本", icon: "RichTextBox" },
|
|
244
|
-
TimeSpinner: { type: "TimeSpinner", name: "时间调节器", icon: "TimePicker" },
|
|
245
|
-
TimePicker: { type: "TimePicker", name: "时间选择", icon: "TimePicker" },
|
|
224
|
+
"time-picker": { type: "time-picker", name: "时间选择", icon: "TimePicker" },
|
|
246
225
|
section: { type: "section", name: "分组面板", icon: "Section" },
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
WizardDetail: { type: "WizardDetail", name: "向导详情页" },
|
|
254
|
-
WizardDetailContainer: { type: "WizardDetailContainer", name: "向导详情容器" },
|
|
255
|
-
Wizard: { type: "Wizard", name: "向导", icon: "Wizard" },
|
|
256
|
-
MultiSelect: { type: "MultiSelect", name: "数据分配", icon: "MultiSelect" },
|
|
257
|
-
Steps: { type: "Steps", name: "步骤条", icon: "Steps" },
|
|
258
|
-
avatar: { type: "avatar", name: "头像", icon: "Avatar" },
|
|
259
|
-
ListFilter: { type: "ListFilter", name: "筛选条", icon: "ListFilter" },
|
|
260
|
-
ListNav: { type: "ListNav", name: "列表导航", icon: "ListNav" },
|
|
261
|
-
NumberRange: { type: "NumberRange", name: "数字区间选择", icon: "NumericBox" },
|
|
262
|
-
Scrollspy: { type: "Scrollspy", name: "滚动监听", icon: "Scrollspy" },
|
|
263
|
-
LanguageTextBox: { type: "LanguageTextBox", name: "多语言输入框", icon: "LanguageTextBox" },
|
|
264
|
-
ComponentRef: { type: "ComponentRef", name: "组件引用节点" },
|
|
265
|
-
FileUpload: { type: "FileUpload", name: "附件上传", icon: "FileUpload" },
|
|
266
|
-
FilePreview: { type: "FilePreview", name: "附件预览", icon: "FilePreview" },
|
|
267
|
-
ViewChange: { type: "ViewChange", name: "多视图切换", icon: "Button" },
|
|
268
|
-
MultiViewContainer: { type: "MultiViewContainer", name: "多视图", icon: "MultiViewContainer" },
|
|
269
|
-
MultiViewItem: { type: "MultiViewItem", name: "多视图项", dependentParentControl: "MultiViewContainer" },
|
|
270
|
-
Footer: { type: "Footer", name: "页脚" },
|
|
271
|
-
DiscussionEditor: { type: "DiscussionEditor", name: "评论编辑区", icon: "DiscussionEditor" },
|
|
272
|
-
DiscussionList: { type: "DiscussionList", name: "评论列表", icon: "DiscussionList" },
|
|
273
|
-
NavTab: { type: "NavTab", name: "标签类导航", icon: "NavTab" },
|
|
274
|
-
Tags: { type: "Tags", name: "标记组", icon: "Tags" },
|
|
275
|
-
Portlet: { type: "Portlet", name: "小部件", icon: "dingzhi" },
|
|
226
|
+
"section-toolbar": { type: "section-toolbar", name: "分组面板工具栏" },
|
|
227
|
+
"section-toolbar-item": { type: "section-toolbar-item", name: "分组面板按钮" },
|
|
228
|
+
splitter: { type: "splitter", name: "分栏面板", icon: "Splitter" },
|
|
229
|
+
"splitter-pane": { type: "splitter-pane", name: "分栏面板项", dependentParentControl: "Splitter" },
|
|
230
|
+
"component-ref": { type: "component-ref", name: "组件引用节点" },
|
|
231
|
+
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
276
232
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
Table: { type: "Table", name: "表格", icon: "DataGrid" },
|
|
281
|
-
LoopContainer: { type: "LoopContainer", name: "循环容器", icon: "ContentContainer" },
|
|
282
|
-
FileUploadPreview: { type: "FileUploadPreview", name: "附件上传预览", icon: "FileUpload" },
|
|
283
|
-
DynamicArea: { type: "DynamicArea", name: "动态区域", icon: "ContentContainer" },
|
|
284
|
-
DynamicAreaItem: { type: "DynamicAreaItem", name: "动态区域项", icon: "ContentContainer" },
|
|
285
|
-
TabToolbar: { type: "TabToolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
286
|
-
HeaderToolBar: { type: "HeaderToolBar", name: "头部组件工具栏", icon: "HeaderToolBar" },
|
|
287
|
-
ModalFooterToolBar: { type: "ModalFooterToolBar", name: "底部组件工具栏", icon: "ModalFooterToolBar" },
|
|
288
|
-
HeaderToolBarItem: { type: "HeaderToolBarItem", name: "头部组件工具栏按钮", icon: "HeaderToolBarItem" },
|
|
289
|
-
ModalFooterToolBarItem: { type: "ModalFooterToolBarItem", name: "底部组件工具栏按钮", icon: "ModalFooterToolBarItem" },
|
|
290
|
-
OrganizationSelector: { type: "OrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
291
|
-
AdminOrganizationSelector: { type: "AdminOrganizationSelector", name: "组织选择", icon: "OrganizationSelector" },
|
|
292
|
-
EmployeeSelector: { type: "EmployeeSelector", name: "人员选择", icon: "PersonnelSelector" },
|
|
293
|
-
OaRelation: { type: "OaRelation", name: "关联行政审批", icon: "TextBox" },
|
|
294
|
-
CitySelector: { type: "CitySelector", name: "城市选择", icon: "CitySelector" },
|
|
295
|
-
ExtIntergration: { type: "ExtIntergration", name: "外部服务集成", icon: "ViewModel" },
|
|
296
|
-
AppointmentCalendar: { type: "AppointmentCalendar", name: "预约日历", icon: "DateBox" },
|
|
297
|
-
/** 查询类 start */
|
|
298
|
-
Charts: { type: "Charts", name: "图表", icon: "Charts" },
|
|
299
|
-
QdpFramework: { type: "QdpFramework", name: "查询结果工具栏", icon: "QdpFramework" },
|
|
300
|
-
SpreadSheet: { type: "SpreadSheet", name: "查询表格控件", icon: "Charts" },
|
|
301
|
-
QdpConditionDialog: { type: "QdpConditionDialog", name: "查询筛选对话框", icon: "ContentContainer" },
|
|
302
|
-
QdpConditionDialogTab: { type: "QdpConditionDialogTab", name: "查询筛选标签页", icon: "Tab" },
|
|
303
|
-
/** 查询类 end */
|
|
304
|
-
/** 审批类 start */
|
|
305
|
-
ApprovalLogs: { type: "ApprovalLogs", name: "审批记录", icon: "ApprovalLogs" },
|
|
306
|
-
ApprovalComments: { type: "ApprovalComments", name: "审批意见", icon: "shenpiyijian" }
|
|
307
|
-
/** 审批类 end */
|
|
308
|
-
}, cn = {
|
|
233
|
+
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
234
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
235
|
+
}, un = {
|
|
309
236
|
convertFrom: (e, t, n) => {
|
|
310
|
-
var
|
|
311
|
-
const
|
|
312
|
-
return ((
|
|
237
|
+
var l;
|
|
238
|
+
const a = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
239
|
+
return ((l = sn[a]) == null ? void 0 : l.name) || a;
|
|
313
240
|
}
|
|
314
|
-
},
|
|
315
|
-
convertTo: (e, t, n,
|
|
241
|
+
}, cn = {
|
|
242
|
+
convertTo: (e, t, n, a) => {
|
|
316
243
|
e[t] = e[t];
|
|
317
244
|
},
|
|
318
245
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
319
|
-
},
|
|
246
|
+
}, dn = {
|
|
320
247
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
321
248
|
convertTo: (e, t, n) => {
|
|
322
249
|
if (n && n.length > 0) {
|
|
323
|
-
const
|
|
324
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
250
|
+
const a = n[0];
|
|
251
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = a.bindingField, e.binding.field = a.id, e.binding.fullPath = a.path, e.path = a.bindingPath;
|
|
325
252
|
}
|
|
326
253
|
}
|
|
327
|
-
},
|
|
328
|
-
convertTo: (e, t, n,
|
|
329
|
-
|
|
254
|
+
}, pn = {
|
|
255
|
+
convertTo: (e, t, n, a) => {
|
|
256
|
+
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
330
257
|
},
|
|
331
258
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
332
259
|
};
|
|
333
260
|
class fn {
|
|
334
261
|
constructor() {
|
|
335
262
|
/** 控件标题 */
|
|
336
|
-
|
|
263
|
+
A(this, "label", "");
|
|
337
264
|
/** 控件id */
|
|
338
|
-
|
|
265
|
+
A(this, "id", "");
|
|
339
266
|
/** 每个控件占用的栅格数 */
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
267
|
+
A(this, "columnInSM", 12);
|
|
268
|
+
A(this, "columnInMD", 6);
|
|
269
|
+
A(this, "columnInLG", 3);
|
|
270
|
+
A(this, "columnInEL", 2);
|
|
344
271
|
/** 每个控件占用的列数 */
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
272
|
+
A(this, "displayWidthInSM", 1);
|
|
273
|
+
A(this, "displayWidthInMD", 1);
|
|
274
|
+
A(this, "displayWidthInLG", 1);
|
|
275
|
+
A(this, "displayWidthInEL", 1);
|
|
349
276
|
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
350
|
-
|
|
277
|
+
A(this, "displayColumnCountAtBreakPoint", "md");
|
|
351
278
|
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
352
|
-
|
|
279
|
+
A(this, "tagRow", 0);
|
|
353
280
|
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
354
|
-
|
|
281
|
+
A(this, "showTopBorder", 0);
|
|
355
282
|
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
356
|
-
|
|
283
|
+
A(this, "group", 1);
|
|
357
284
|
/** 控件是否符合标准的class配置(设计器用的) */
|
|
358
|
-
|
|
285
|
+
A(this, "isSupportedClass", !0);
|
|
359
286
|
/** 控件所在分组id(设计器用的) */
|
|
360
|
-
|
|
287
|
+
A(this, "fieldSetId", "");
|
|
361
288
|
}
|
|
362
289
|
}
|
|
363
|
-
function
|
|
290
|
+
function mn() {
|
|
364
291
|
let e, t;
|
|
365
292
|
const n = /* @__PURE__ */ new Map();
|
|
366
|
-
let
|
|
367
|
-
function
|
|
368
|
-
const
|
|
369
|
-
if (
|
|
293
|
+
let a = [];
|
|
294
|
+
function l(d, o) {
|
|
295
|
+
const r = d.split(" ").filter((S) => S.startsWith("col-"));
|
|
296
|
+
if (r.length === 0) {
|
|
370
297
|
o.isSupportedClass = !1;
|
|
371
298
|
return;
|
|
372
299
|
}
|
|
373
|
-
let
|
|
374
|
-
|
|
300
|
+
let u = r.find((S) => /^col-([1-9]|10|11|12)$/.test(S)), i = r.find((S) => /^col-md-([1-9]|10|11|12)$/.test(S)), p = r.find((S) => /^col-xl-([1-9]|10|11|12)$/.test(S)), m = r.find((S) => /^col-el-([1-9]|10|11|12)$/.test(S));
|
|
301
|
+
u = u || "col-12", o.columnInSM = parseInt(u.replace("col-", ""), 10), o.displayWidthInSM = o.columnInSM / 12, o.displayWidthInSM !== 1 && (o.isSupportedClass = !1), i = i || "col-md-" + o.columnInSM, o.columnInMD = parseInt(i.replace("col-md-", ""), 10), o.displayWidthInMD = o.columnInMD / 6, [1, 2].includes(o.displayWidthInMD) || (o.isSupportedClass = !1), p = p || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(p.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), m = m || "col-el-" + o.columnInLG, o.columnInEL = parseInt(m.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
375
302
|
}
|
|
376
|
-
function
|
|
377
|
-
let
|
|
303
|
+
function f(d, o, s, r = !1) {
|
|
304
|
+
let u = !1;
|
|
378
305
|
d.contents.forEach((i) => {
|
|
379
306
|
if (i.type === "FieldSet") {
|
|
380
|
-
|
|
307
|
+
s += 1, f(i, o, s, !0), u = !0;
|
|
381
308
|
return;
|
|
382
309
|
}
|
|
383
|
-
|
|
384
|
-
const p = i.appearance && i.appearance.class,
|
|
385
|
-
p ?
|
|
310
|
+
u && (s += 1, u = !1);
|
|
311
|
+
const p = i.appearance && i.appearance.class, m = new fn();
|
|
312
|
+
p ? l(p, m) : m.isSupportedClass = !1, m.label = i.label || i.id, m.id = i.id, m.group = s, r && (m.fieldSetId = d.id), t === i.id && (e = s), n.set(i.id, i), o.push(m);
|
|
386
313
|
});
|
|
387
314
|
}
|
|
388
|
-
function
|
|
389
|
-
|
|
390
|
-
const
|
|
391
|
-
if (!
|
|
315
|
+
function v(d, o, s, r) {
|
|
316
|
+
r = r || d.id;
|
|
317
|
+
const u = s.closest(r, "content-container");
|
|
318
|
+
if (!u)
|
|
392
319
|
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
393
|
-
if (!
|
|
320
|
+
if (!u || !u.contents || u.contents.length === 0)
|
|
394
321
|
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
395
|
-
t = d.id,
|
|
396
|
-
const i =
|
|
397
|
-
|
|
398
|
-
const p =
|
|
322
|
+
t = d.id, a = [], n.clear();
|
|
323
|
+
const i = u.contents[0].type === "FieldSet" ? 0 : 1;
|
|
324
|
+
f(u, a, i);
|
|
325
|
+
const p = a.find((S) => !S.isSupportedClass);
|
|
399
326
|
return {
|
|
400
327
|
defaultState: {
|
|
401
328
|
defaultGroupNumber: e || 1,
|
|
402
329
|
model: p ? "customize" : "standard"
|
|
403
330
|
},
|
|
404
|
-
importData:
|
|
331
|
+
importData: a
|
|
405
332
|
};
|
|
406
333
|
}
|
|
407
|
-
function
|
|
408
|
-
|
|
409
|
-
const i =
|
|
334
|
+
function P(d, o, s, r, u) {
|
|
335
|
+
u = u || d.id;
|
|
336
|
+
const i = r.closest(u, "response-form");
|
|
410
337
|
if (!i)
|
|
411
338
|
return;
|
|
412
339
|
const p = [];
|
|
413
|
-
return
|
|
414
|
-
var
|
|
415
|
-
const
|
|
416
|
-
if (
|
|
417
|
-
const I =
|
|
418
|
-
|
|
340
|
+
return s.forEach((m) => {
|
|
341
|
+
var j;
|
|
342
|
+
const S = n.get(m.id), N = S.appearance && S.appearance.class;
|
|
343
|
+
if (N) {
|
|
344
|
+
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + m.columnInSM, O = "col-md-" + m.columnInMD, B = "col-xl-" + m.columnInLG, G = "col-el-" + m.columnInEL, L = [k, O, B, G].concat(I);
|
|
345
|
+
S.appearance.class = L.join(" ");
|
|
419
346
|
}
|
|
420
|
-
if (
|
|
421
|
-
const
|
|
422
|
-
I ? (
|
|
347
|
+
if (m.fieldSetId) {
|
|
348
|
+
const D = i.contents.find((k) => k.id === m.fieldSetId), I = p.find((k) => k.id === m.fieldSetId);
|
|
349
|
+
I ? (j = I.contents) == null || j.push(S) : (p.push(D), D.contents = [S]);
|
|
423
350
|
} else
|
|
424
|
-
p.push(
|
|
351
|
+
p.push(S);
|
|
425
352
|
}), i.contents = p, i.id;
|
|
426
353
|
}
|
|
427
354
|
return {
|
|
428
|
-
convertFrom:
|
|
429
|
-
convertTo:
|
|
355
|
+
convertFrom: v,
|
|
356
|
+
convertTo: P
|
|
430
357
|
};
|
|
431
358
|
}
|
|
432
|
-
const
|
|
433
|
-
convertTo: (e, t, n,
|
|
434
|
-
convertFrom: (e, t, n,
|
|
435
|
-
},
|
|
359
|
+
const le = mn(), vn = {
|
|
360
|
+
convertTo: (e, t, n, a, l) => le.convertTo(e, t, n, a, l),
|
|
361
|
+
convertFrom: (e, t, n, a) => le.convertFrom(e, t, n, a)
|
|
362
|
+
}, gn = {
|
|
436
363
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
437
|
-
},
|
|
364
|
+
}, yn = {
|
|
438
365
|
convertFrom: (e, t) => e[t] || "",
|
|
439
366
|
convertTo: (e, t, n) => {
|
|
440
367
|
e[t] = n;
|
|
441
368
|
}
|
|
442
369
|
}, ne = {}, te = /* @__PURE__ */ new Map([
|
|
443
|
-
["/converter/appearance.converter",
|
|
444
|
-
["/converter/buttons.converter",
|
|
445
|
-
["/converter/property-editor.converter",
|
|
446
|
-
["/converter/response-form-layout.converter",
|
|
447
|
-
["/converter/items-count.converter",
|
|
448
|
-
["/converter/type.converter",
|
|
449
|
-
["/converter/change-editor.converter",
|
|
450
|
-
["/converter/form-group-label.converter",
|
|
451
|
-
["/converter/field-selector.converter",
|
|
452
|
-
["/converter/pagination.converter",
|
|
453
|
-
]),
|
|
370
|
+
["/converter/appearance.converter", rn],
|
|
371
|
+
["/converter/buttons.converter", an],
|
|
372
|
+
["/converter/property-editor.converter", ln],
|
|
373
|
+
["/converter/response-form-layout.converter", vn],
|
|
374
|
+
["/converter/items-count.converter", gn],
|
|
375
|
+
["/converter/type.converter", un],
|
|
376
|
+
["/converter/change-editor.converter", cn],
|
|
377
|
+
["/converter/form-group-label.converter", yn],
|
|
378
|
+
["/converter/field-selector.converter", dn],
|
|
379
|
+
["/converter/pagination.converter", pn]
|
|
380
|
+
]), bn = {}, hn = /* @__PURE__ */ new Map([
|
|
454
381
|
["string", { type: "input-group", enableClear: !1 }],
|
|
455
382
|
["boolean", {
|
|
456
383
|
type: "combo-list",
|
|
@@ -472,70 +399,68 @@ const ie = gn(), yn = {
|
|
|
472
399
|
["array", { type: "button-edit" }],
|
|
473
400
|
["number", { type: "number-spinner" }],
|
|
474
401
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
475
|
-
]),
|
|
476
|
-
function
|
|
477
|
-
return () =>
|
|
402
|
+
]), Cn = en();
|
|
403
|
+
function me(e, t) {
|
|
404
|
+
return () => Cn.parseValueSchema(e, t);
|
|
478
405
|
}
|
|
479
|
-
function
|
|
480
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
406
|
+
function Fn(e, t, n) {
|
|
407
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : me(t.visible, n) : () => !0;
|
|
481
408
|
}
|
|
482
|
-
function
|
|
483
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
409
|
+
function Sn(e, t, n) {
|
|
410
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : me(t.readonly, n) : () => !1;
|
|
484
411
|
}
|
|
485
412
|
function wn(e, t) {
|
|
486
413
|
const n = e.$converter || t;
|
|
487
414
|
return typeof n == "string" && n && te.has(n) ? te.get(n) || null : n || null;
|
|
488
415
|
}
|
|
489
|
-
function oe(e, t, n,
|
|
416
|
+
function oe(e, t, n, a, l, f = "", v = "") {
|
|
490
417
|
return Object.keys(e).map((d) => {
|
|
491
|
-
const o = C(1),
|
|
492
|
-
let k = wn(
|
|
493
|
-
const
|
|
418
|
+
const o = C(1), s = d, r = e[d], u = Object.keys(r), i = r.title, p = r.type, m = hn.get(p) || { type: "input-group", enableClear: !1 }, S = r.editor ? Object.assign({}, m, r.editor) : m, N = Fn(u, r, t), j = Sn(u, r, t), D = r.type === "cascade" ? oe(r.properties, t, n, a, l, f, v) : [], I = !0;
|
|
419
|
+
let k = wn(r, v);
|
|
420
|
+
const O = E({
|
|
494
421
|
get() {
|
|
495
422
|
if (o.value) {
|
|
496
|
-
if (["class", "style"].find((
|
|
497
|
-
return k.convertFrom(n, d,
|
|
498
|
-
const
|
|
499
|
-
return typeof
|
|
423
|
+
if (["class", "style"].find((R) => R == s) && !k && (k = te.get("/converter/appearance.converter") || null), k && k.convertFrom)
|
|
424
|
+
return k.convertFrom(n, d, l, f);
|
|
425
|
+
const L = n[d];
|
|
426
|
+
return typeof L == "string" && L == "" ? r.defaultValue || "" : L;
|
|
500
427
|
}
|
|
501
428
|
return null;
|
|
502
429
|
},
|
|
503
|
-
set(
|
|
504
|
-
o.value += 1, k && k.convertTo ? (k.convertTo(
|
|
430
|
+
set(L) {
|
|
431
|
+
o.value += 1, k && k.convertTo ? (k.convertTo(a, d, L, l, f), k.convertTo(n, d, L, l, f)) : (a[d] = L, n[d] = L);
|
|
505
432
|
}
|
|
506
|
-
}),
|
|
507
|
-
return t[
|
|
433
|
+
}), B = r.refreshPanelAfterChanged, G = { propertyID: s, propertyName: i, propertyType: p, propertyValue: O, editor: S, visible: N, readonly: j, cascadeConfig: D, hideCascadeTitle: I, refreshPanelAfterChanged: B };
|
|
434
|
+
return t[s] = G, G;
|
|
508
435
|
});
|
|
509
436
|
}
|
|
510
|
-
function
|
|
511
|
-
const
|
|
512
|
-
if (
|
|
513
|
-
const
|
|
514
|
-
|
|
515
|
-
|
|
437
|
+
function Tn(e, t, n, a, l = "") {
|
|
438
|
+
const f = t.$ref.schema, v = t.$ref.converter, P = n[f], d = P.type, o = fe(P), s = {}, r = ne[d];
|
|
439
|
+
if (r && r.categories) {
|
|
440
|
+
const u = r.categories[e], i = u == null ? void 0 : u.title;
|
|
441
|
+
v && Object.keys(u.properties).forEach((S) => {
|
|
442
|
+
u.properties[S].$converter = v;
|
|
516
443
|
});
|
|
517
|
-
const p = (
|
|
518
|
-
return { categoryId: e, categoryName: i, properties:
|
|
444
|
+
const p = (u == null ? void 0 : u.properties) || {}, m = oe(p, s, o, P, a, l);
|
|
445
|
+
return { categoryId: e, categoryName: i, properties: m };
|
|
519
446
|
}
|
|
520
447
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
521
448
|
}
|
|
522
|
-
function ee(e, t, n,
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
((
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
if (a.$ref) {
|
|
533
|
-
u.push(Bn(l, a, e, t, r));
|
|
449
|
+
function ee(e, t, n, a, l) {
|
|
450
|
+
let f = e.type;
|
|
451
|
+
const v = fe(e), P = {};
|
|
452
|
+
let d = l || ne[f];
|
|
453
|
+
if (Object.keys(d).length === 0 && n && n.getPropConfig && (d = n.getPropConfig(a)), d && d.categories) {
|
|
454
|
+
const o = [];
|
|
455
|
+
return Object.keys(d.categories).map((s) => {
|
|
456
|
+
const r = d.categories[s];
|
|
457
|
+
if (r.$ref) {
|
|
458
|
+
o.push(Tn(s, r, e, t, a));
|
|
534
459
|
return;
|
|
535
460
|
}
|
|
536
|
-
const
|
|
537
|
-
|
|
538
|
-
}),
|
|
461
|
+
const u = r == null ? void 0 : r.title, i = r == null ? void 0 : r.tabId, p = r == null ? void 0 : r.tabName, m = r == null ? void 0 : r.hide, S = r == null ? void 0 : r.hideTitle, N = oe(r.properties || {}, P, v, e, t, a, r.$converter), j = r.setPropertyRelates;
|
|
462
|
+
o.push({ categoryId: s, categoryName: u, tabId: i, tabName: p, hide: m, properties: N, hideTitle: S, setPropertyRelates: j });
|
|
463
|
+
}), o;
|
|
539
464
|
}
|
|
540
465
|
return [];
|
|
541
466
|
}
|
|
@@ -548,22 +473,22 @@ const Pn = {
|
|
|
548
473
|
propertyData: { type: Object, default: {} },
|
|
549
474
|
valueChanged: { type: Function },
|
|
550
475
|
triggerRefreshPanel: { type: Function }
|
|
551
|
-
},
|
|
476
|
+
}, Bn = {
|
|
552
477
|
elementConfig: { type: Object, default: {} },
|
|
553
478
|
category: { type: Object, default: {} }
|
|
554
479
|
};
|
|
555
|
-
function
|
|
556
|
-
return ce[t.title] = t,
|
|
557
|
-
const
|
|
558
|
-
return Object.assign(d,
|
|
480
|
+
function ve(e, t, n = /* @__PURE__ */ new Map(), a = (v, P, d) => P, l = {}, f = (v) => v) {
|
|
481
|
+
return ce[t.title] = t, tn[t.title] = a, ne[t.title] = l, bn[t.title] = f, (v = {}) => {
|
|
482
|
+
const P = on(v, t, n), d = Object.keys(e).reduce((o, s) => (o[s] = e[s].default, o), {});
|
|
483
|
+
return Object.assign(d, P);
|
|
559
484
|
};
|
|
560
485
|
}
|
|
561
|
-
function
|
|
486
|
+
function ge(e, t) {
|
|
562
487
|
return { customClass: t.class, customStyle: t.style };
|
|
563
488
|
}
|
|
564
|
-
const
|
|
565
|
-
["appearance",
|
|
566
|
-
]),
|
|
489
|
+
const xn = /* @__PURE__ */ new Map([
|
|
490
|
+
["appearance", ge]
|
|
491
|
+
]), In = "https://json-schema.org/draft/2020-12/schema", En = "https://farris-design.gitee.io/form-group.schema.json", kn = "form-group", On = "A Farris Input Component", Mn = "object", Nn = {
|
|
567
492
|
id: {
|
|
568
493
|
description: "The unique identifier for a form group",
|
|
569
494
|
type: "string"
|
|
@@ -604,18 +529,18 @@ const In = /* @__PURE__ */ new Map([
|
|
|
604
529
|
description: "",
|
|
605
530
|
type: "number"
|
|
606
531
|
}
|
|
607
|
-
},
|
|
532
|
+
}, Dn = [
|
|
608
533
|
"id",
|
|
609
534
|
"type"
|
|
610
|
-
],
|
|
611
|
-
$schema:
|
|
612
|
-
$id:
|
|
613
|
-
title:
|
|
614
|
-
description:
|
|
615
|
-
type:
|
|
616
|
-
properties:
|
|
617
|
-
required:
|
|
618
|
-
},
|
|
535
|
+
], Ln = {
|
|
536
|
+
$schema: In,
|
|
537
|
+
$id: En,
|
|
538
|
+
title: kn,
|
|
539
|
+
description: On,
|
|
540
|
+
type: Mn,
|
|
541
|
+
properties: Nn,
|
|
542
|
+
required: Dn
|
|
543
|
+
}, ye = {
|
|
619
544
|
id: { type: String, default: "" },
|
|
620
545
|
customClass: { type: String, default: "" },
|
|
621
546
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -629,43 +554,43 @@ const In = /* @__PURE__ */ new Map([
|
|
|
629
554
|
showLabel: { type: Boolean, default: !0 },
|
|
630
555
|
type: { type: String, default: "input-group" }
|
|
631
556
|
};
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
557
|
+
ve(
|
|
558
|
+
ye,
|
|
559
|
+
Ln,
|
|
560
|
+
xn,
|
|
636
561
|
void 0
|
|
637
562
|
);
|
|
638
|
-
const
|
|
563
|
+
const jn = {
|
|
639
564
|
id: { type: String },
|
|
640
565
|
required: { type: Boolean, default: !1 },
|
|
641
566
|
text: { type: String, default: "" },
|
|
642
567
|
title: { type: String }
|
|
643
|
-
},
|
|
568
|
+
}, An = /* @__PURE__ */ U({
|
|
644
569
|
name: "FDynamicFormLabel",
|
|
645
|
-
props:
|
|
570
|
+
props: jn,
|
|
646
571
|
emits: [],
|
|
647
572
|
setup(e, t) {
|
|
648
|
-
const n = C(e.title || e.text),
|
|
649
|
-
return
|
|
650
|
-
|
|
651
|
-
}),
|
|
652
|
-
|
|
573
|
+
const n = C(e.title || e.text), a = C(e.required), l = C(e.text);
|
|
574
|
+
return V(() => e.text, () => {
|
|
575
|
+
l.value = e.text;
|
|
576
|
+
}), V(() => e.required, (f, v) => {
|
|
577
|
+
f !== v && (a.value = f);
|
|
653
578
|
}), () => c("label", {
|
|
654
579
|
class: "col-form-label",
|
|
655
580
|
title: n.value
|
|
656
|
-
}, [
|
|
581
|
+
}, [a.value && c("span", {
|
|
657
582
|
class: "farris-label-info text-danger"
|
|
658
583
|
}, [ue("*")]), c("span", {
|
|
659
584
|
class: "farris-label-text"
|
|
660
|
-
}, [
|
|
585
|
+
}, [l.value])]);
|
|
661
586
|
}
|
|
662
|
-
}),
|
|
663
|
-
["appearance",
|
|
587
|
+
}), $n = /* @__PURE__ */ new Map([
|
|
588
|
+
["appearance", ge]
|
|
664
589
|
]);
|
|
665
|
-
function
|
|
590
|
+
function Vn(e, t, n) {
|
|
666
591
|
return t;
|
|
667
592
|
}
|
|
668
|
-
const Gn = "https://json-schema.org/draft/2020-12/schema",
|
|
593
|
+
const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", Wn = "input-group", qn = "A Farris Input Component", Hn = "object", Un = {
|
|
669
594
|
id: {
|
|
670
595
|
description: "The unique identifier for a Input Group",
|
|
671
596
|
type: "string"
|
|
@@ -867,17 +792,17 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
|
|
|
867
792
|
type: "string",
|
|
868
793
|
default: ""
|
|
869
794
|
}
|
|
870
|
-
},
|
|
795
|
+
}, _n = [
|
|
871
796
|
"id",
|
|
872
797
|
"type"
|
|
873
|
-
],
|
|
798
|
+
], zn = {
|
|
874
799
|
$schema: Gn,
|
|
875
|
-
$id:
|
|
876
|
-
title:
|
|
877
|
-
description:
|
|
878
|
-
type:
|
|
800
|
+
$id: Rn,
|
|
801
|
+
title: Wn,
|
|
802
|
+
description: qn,
|
|
803
|
+
type: Hn,
|
|
879
804
|
properties: Un,
|
|
880
|
-
required:
|
|
805
|
+
required: _n
|
|
881
806
|
}, be = {
|
|
882
807
|
/** 是否自动完成 */
|
|
883
808
|
autocomplete: { Type: String, default: "off" },
|
|
@@ -945,202 +870,202 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Wn = "https://farris-
|
|
|
945
870
|
*/
|
|
946
871
|
updateOn: { type: String, default: "blur" }
|
|
947
872
|
};
|
|
948
|
-
|
|
949
|
-
function Xn(e, t, n,
|
|
950
|
-
const
|
|
873
|
+
ve(be, zn, $n, Vn);
|
|
874
|
+
function Xn(e, t, n, a) {
|
|
875
|
+
const l = C(e.disabled), f = C(!1), v = C("text"), P = C(e.showBorder), d = C(e.textAlign), o = C(e.updateOn), s = E(() => e.editable || !e.readonly), r = E(() => e.editable && !e.disabled && !e.readonly), u = E(() => !e.disabled && f.value), i = E(() => n.value === "" || n.value === null || n.value === void 0), p = E(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), m = E(() => e.readonly || !e.editable), S = E(() => e.enableTitle ? n.value : ""), N = E(() => ({
|
|
951
876
|
"form-control": !0,
|
|
952
877
|
"f-utils-fill": !0,
|
|
953
878
|
"text-left": d.value === "left",
|
|
954
879
|
"text-center": d.value === "center",
|
|
955
880
|
"text-right": d.value === "right"
|
|
956
|
-
})),
|
|
881
|
+
})), j = E(() => {
|
|
957
882
|
const x = {
|
|
958
883
|
"f-cmp-inputgroup": !0,
|
|
959
884
|
"input-group": !0,
|
|
960
|
-
"f-state-disable":
|
|
961
|
-
"f-state-editable":
|
|
962
|
-
"f-state-readonly":
|
|
963
|
-
"f-state-focus":
|
|
885
|
+
"f-state-disable": l.value,
|
|
886
|
+
"f-state-editable": r.value,
|
|
887
|
+
"f-state-readonly": m.value,
|
|
888
|
+
"f-state-focus": u.value
|
|
964
889
|
};
|
|
965
890
|
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), x), x;
|
|
966
|
-
}),
|
|
967
|
-
function I(x,
|
|
968
|
-
n.value = x,
|
|
891
|
+
}), D = E(() => P.value ? "" : "border-width : 0 ");
|
|
892
|
+
function I(x, $ = !0) {
|
|
893
|
+
n.value = x, a.value !== x && (a.value = x), $ && t.emit("change", x), t.emit("update:modelValue", x), t.emit("update:value", x);
|
|
969
894
|
}
|
|
970
|
-
|
|
895
|
+
V(
|
|
971
896
|
() => e.modelValue,
|
|
972
|
-
(x,
|
|
973
|
-
x !==
|
|
897
|
+
(x, $) => {
|
|
898
|
+
x !== $ && (n.value = x, a.value = x);
|
|
974
899
|
}
|
|
975
|
-
),
|
|
976
|
-
x !==
|
|
900
|
+
), V(() => e.disabled, (x, $) => {
|
|
901
|
+
x !== $ && (l.value = x);
|
|
977
902
|
});
|
|
978
903
|
function k(x) {
|
|
979
|
-
return
|
|
904
|
+
return f.value = !1, t.emit("blur", x), x.stopPropagation(), !1;
|
|
980
905
|
}
|
|
981
|
-
function
|
|
906
|
+
function O(x) {
|
|
982
907
|
t.emit("click", x);
|
|
983
908
|
}
|
|
984
|
-
function
|
|
985
|
-
e.disabled || (
|
|
909
|
+
function B(x) {
|
|
910
|
+
e.disabled || (P.value && (f.value = !0), s.value && t.emit("focus", x));
|
|
986
911
|
}
|
|
987
|
-
function
|
|
912
|
+
function G(x) {
|
|
988
913
|
t.emit("input", x.target.value);
|
|
989
|
-
const
|
|
990
|
-
|
|
914
|
+
const $ = x.target.value;
|
|
915
|
+
a.value = $, o.value === "input" && (t.emit("update:modelValue", $), t.emit("update:value", $));
|
|
991
916
|
}
|
|
992
|
-
function
|
|
917
|
+
function L(x) {
|
|
993
918
|
t.emit("keydown", x);
|
|
994
919
|
}
|
|
995
|
-
function
|
|
920
|
+
function R(x) {
|
|
996
921
|
t.emit("keyup", x);
|
|
997
922
|
}
|
|
998
|
-
function
|
|
923
|
+
function _(x) {
|
|
999
924
|
x.target.tagName !== "INPUT" && x.preventDefault(), x.stopPropagation();
|
|
1000
925
|
}
|
|
1001
|
-
function
|
|
926
|
+
function z(x) {
|
|
1002
927
|
if (o.value === "blur") {
|
|
1003
|
-
const
|
|
1004
|
-
x.stopPropagation(), I(
|
|
928
|
+
const $ = x.target.value;
|
|
929
|
+
x.stopPropagation(), I($);
|
|
1005
930
|
}
|
|
1006
931
|
}
|
|
1007
932
|
return {
|
|
1008
933
|
changeTextBoxValue: I,
|
|
1009
|
-
disabled:
|
|
1010
|
-
displayText:
|
|
1011
|
-
editable:
|
|
1012
|
-
hasFocused:
|
|
1013
|
-
inputGroupClass:
|
|
1014
|
-
inputType:
|
|
934
|
+
disabled: l,
|
|
935
|
+
displayText: a,
|
|
936
|
+
editable: r,
|
|
937
|
+
hasFocused: u,
|
|
938
|
+
inputGroupClass: j,
|
|
939
|
+
inputType: v,
|
|
1015
940
|
isEmpty: i,
|
|
1016
941
|
modelValue: n,
|
|
1017
|
-
readonly:
|
|
942
|
+
readonly: m,
|
|
1018
943
|
onBlur: k,
|
|
1019
|
-
onClick:
|
|
1020
|
-
onFocus:
|
|
1021
|
-
onInput:
|
|
1022
|
-
onKeydown:
|
|
1023
|
-
onKeyup:
|
|
1024
|
-
onMousedown:
|
|
1025
|
-
onTextBoxValueChange:
|
|
944
|
+
onClick: O,
|
|
945
|
+
onFocus: B,
|
|
946
|
+
onInput: G,
|
|
947
|
+
onKeydown: L,
|
|
948
|
+
onKeyup: R,
|
|
949
|
+
onMousedown: _,
|
|
950
|
+
onTextBoxValueChange: z,
|
|
1026
951
|
placeholder: p,
|
|
1027
|
-
textBoxClass:
|
|
1028
|
-
textBoxTitle:
|
|
1029
|
-
inputGroupStyle:
|
|
952
|
+
textBoxClass: N,
|
|
953
|
+
textBoxTitle: S,
|
|
954
|
+
inputGroupStyle: D
|
|
1030
955
|
};
|
|
1031
956
|
}
|
|
1032
|
-
function
|
|
1033
|
-
const
|
|
1034
|
-
function o(
|
|
1035
|
-
|
|
957
|
+
function Qn(e, t, n) {
|
|
958
|
+
const a = C(!1), l = E(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: f, displayText: v, hasFocused: P, isEmpty: d } = n;
|
|
959
|
+
function o(m) {
|
|
960
|
+
a.value = m;
|
|
1036
961
|
}
|
|
1037
|
-
|
|
1038
|
-
|
|
962
|
+
V(v, () => {
|
|
963
|
+
P != null && P.value ? o(!!(v != null && v.value)) : o(!1);
|
|
1039
964
|
});
|
|
1040
|
-
const
|
|
965
|
+
const s = E(() => ({
|
|
1041
966
|
"input-group-text": !0,
|
|
1042
967
|
"input-group-clear": !0
|
|
1043
|
-
})),
|
|
968
|
+
})), r = E(() => ({
|
|
1044
969
|
width: "24px",
|
|
1045
|
-
display:
|
|
970
|
+
display: a.value ? "flex" : "none"
|
|
1046
971
|
}));
|
|
1047
|
-
function
|
|
1048
|
-
|
|
972
|
+
function u(m) {
|
|
973
|
+
m.stopPropagation(), l.value && (f("", !0), o(!a.value), t.emit("clear"));
|
|
1049
974
|
}
|
|
1050
|
-
function i(
|
|
1051
|
-
|
|
975
|
+
function i(m) {
|
|
976
|
+
l.value && !d.value && o(!0);
|
|
1052
977
|
}
|
|
1053
|
-
function p(
|
|
1054
|
-
|
|
978
|
+
function p(m) {
|
|
979
|
+
l.value && o(!1);
|
|
1055
980
|
}
|
|
1056
|
-
return { clearButtonClass:
|
|
981
|
+
return { clearButtonClass: s, clearButtonStyle: r, hasShownClearButton: a, onClearValue: u, onMouseEnter: i, onMouseLeave: p, shouldShowClearButton: l };
|
|
1057
982
|
}
|
|
1058
|
-
const
|
|
1059
|
-
function
|
|
983
|
+
const Zn = ["moz", "ms", "webkit"];
|
|
984
|
+
function Jn() {
|
|
1060
985
|
let e = 0;
|
|
1061
986
|
return (t) => {
|
|
1062
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
1063
|
-
t(n +
|
|
1064
|
-
},
|
|
1065
|
-
return e = n +
|
|
987
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), a = Math.max(0, 16 - (n - e)), l = setTimeout(() => {
|
|
988
|
+
t(n + a);
|
|
989
|
+
}, a);
|
|
990
|
+
return e = n + a, l;
|
|
1066
991
|
};
|
|
1067
992
|
}
|
|
1068
|
-
function
|
|
993
|
+
function Yn() {
|
|
1069
994
|
if (typeof window > "u")
|
|
1070
995
|
return () => 0;
|
|
1071
996
|
if (window.requestAnimationFrame)
|
|
1072
997
|
return window.requestAnimationFrame.bind(window);
|
|
1073
|
-
const e =
|
|
1074
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
998
|
+
const e = Zn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
999
|
+
return e ? window[`${e}RequestAnimationFrame`] : Jn();
|
|
1075
1000
|
}
|
|
1076
|
-
|
|
1077
|
-
function
|
|
1078
|
-
const n = C(e.groupText),
|
|
1001
|
+
Yn();
|
|
1002
|
+
function Kn(e, t) {
|
|
1003
|
+
const n = C(e.groupText), a = E(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), l = E(() => e.enableClear || !!e.groupText);
|
|
1079
1004
|
return { appendedButtonClass: E(() => ({
|
|
1080
1005
|
"input-group-append": !0,
|
|
1081
|
-
"append-force-show":
|
|
1082
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
1006
|
+
"append-force-show": a.value
|
|
1007
|
+
})), appendedContent: n, shouldShowAppendedButton: l };
|
|
1083
1008
|
}
|
|
1084
|
-
function
|
|
1085
|
-
const { appendedContent:
|
|
1086
|
-
|
|
1087
|
-
|
|
1009
|
+
function eo(e, t, n, a) {
|
|
1010
|
+
const { appendedContent: l } = a, f = C(e.enableViewPassword), v = E(() => e.type === "password"), P = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', d = '<span class="f-icon f-icon-eye"></span>', o = C(!1);
|
|
1011
|
+
V(() => [e.readonly, e.disabled], ([u, i]) => {
|
|
1012
|
+
v.value && (n.value = u || i ? "password" : n.value, l.value = u || i ? d : l.value);
|
|
1088
1013
|
});
|
|
1089
|
-
function
|
|
1090
|
-
return o.value = !o.value, n.value = o.value ? "text" : "password",
|
|
1014
|
+
function s() {
|
|
1015
|
+
return o.value = !o.value, n.value = o.value ? "text" : "password", l.value = o.value ? P : d, !1;
|
|
1091
1016
|
}
|
|
1092
|
-
function
|
|
1093
|
-
n.value =
|
|
1017
|
+
function r() {
|
|
1018
|
+
n.value = v.value ? "password" : "text", l.value = v.value ? f.value ? d : "" : l.value;
|
|
1094
1019
|
}
|
|
1095
|
-
return
|
|
1020
|
+
return r(), { isPassword: v, onClickAppendedButton: s };
|
|
1096
1021
|
}
|
|
1097
|
-
function
|
|
1098
|
-
const
|
|
1099
|
-
onBlurTextBox:
|
|
1100
|
-
onFocusTextBox:
|
|
1101
|
-
onInput:
|
|
1102
|
-
onKeyDown:
|
|
1022
|
+
function to(e, t, n) {
|
|
1023
|
+
const a = C(), {
|
|
1024
|
+
onBlurTextBox: l,
|
|
1025
|
+
onFocusTextBox: f,
|
|
1026
|
+
onInput: v,
|
|
1027
|
+
onKeyDown: P,
|
|
1103
1028
|
textBoxValue: d
|
|
1104
|
-
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder),
|
|
1029
|
+
} = n, o = E(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), s = E(() => ({
|
|
1105
1030
|
"form-control": !0,
|
|
1106
1031
|
"f-utils-fill": !0
|
|
1107
|
-
})),
|
|
1032
|
+
})), r = E(() => ({
|
|
1108
1033
|
"text-align": e.textAlign
|
|
1109
1034
|
}));
|
|
1110
|
-
function
|
|
1111
|
-
|
|
1035
|
+
function u(m) {
|
|
1036
|
+
m.stopPropagation();
|
|
1112
1037
|
}
|
|
1113
1038
|
function i() {
|
|
1114
1039
|
e.selectOnCreated, e.focusOnCreated;
|
|
1115
1040
|
}
|
|
1116
|
-
async function p(
|
|
1117
|
-
m
|
|
1041
|
+
async function p(m) {
|
|
1042
|
+
f(m), await ae, i();
|
|
1118
1043
|
}
|
|
1119
1044
|
return H(async () => {
|
|
1120
1045
|
await ae, i();
|
|
1121
1046
|
}), () => c("input", {
|
|
1122
|
-
ref:
|
|
1123
|
-
class:
|
|
1124
|
-
style:
|
|
1047
|
+
ref: a,
|
|
1048
|
+
class: s.value,
|
|
1049
|
+
style: r.value,
|
|
1125
1050
|
type: "text",
|
|
1126
1051
|
value: d.value,
|
|
1127
1052
|
disabled: e.disabled,
|
|
1128
1053
|
readonly: e.readonly || !e.editable,
|
|
1129
1054
|
placeholder: o.value,
|
|
1130
|
-
onBlur:
|
|
1131
|
-
onChange:
|
|
1055
|
+
onBlur: l,
|
|
1056
|
+
onChange: u,
|
|
1132
1057
|
onFocus: p,
|
|
1133
|
-
onInput:
|
|
1134
|
-
onKeydown:
|
|
1058
|
+
onInput: v,
|
|
1059
|
+
onKeydown: P
|
|
1135
1060
|
}, null);
|
|
1136
1061
|
}
|
|
1137
|
-
function
|
|
1062
|
+
function no(e, t, n) {
|
|
1138
1063
|
const {
|
|
1139
|
-
canDownward:
|
|
1140
|
-
canUpward:
|
|
1141
|
-
onClickDownButton:
|
|
1142
|
-
onClickUpButton:
|
|
1143
|
-
} = n,
|
|
1064
|
+
canDownward: a,
|
|
1065
|
+
canUpward: l,
|
|
1066
|
+
onClickDownButton: f,
|
|
1067
|
+
onClickUpButton: v
|
|
1068
|
+
} = n, P = E(() => ({
|
|
1144
1069
|
"input-group-append": !0,
|
|
1145
1070
|
"btn-group": !0,
|
|
1146
1071
|
"btn-group-number": !0
|
|
@@ -1149,217 +1074,217 @@ function oo(e, t, n) {
|
|
|
1149
1074
|
"btn-secondary": !0,
|
|
1150
1075
|
"btn-number-flag": !0
|
|
1151
1076
|
})), o = E(() => ({
|
|
1152
|
-
cursor:
|
|
1077
|
+
cursor: l() ? "pointer" : "not-allowed",
|
|
1153
1078
|
"margin-left": 0
|
|
1154
|
-
})),
|
|
1155
|
-
cursor:
|
|
1079
|
+
})), s = E(() => ({
|
|
1080
|
+
cursor: a() ? "pointer" : "not-allowed",
|
|
1156
1081
|
"margin-left": 0
|
|
1157
1082
|
}));
|
|
1158
1083
|
return () => c("div", {
|
|
1159
|
-
class:
|
|
1084
|
+
class: P.value
|
|
1160
1085
|
}, [c("button", {
|
|
1161
1086
|
title: "upButton",
|
|
1162
1087
|
class: d.value,
|
|
1163
1088
|
style: o.value,
|
|
1164
|
-
onClick:
|
|
1165
|
-
disabled: !
|
|
1089
|
+
onClick: v,
|
|
1090
|
+
disabled: !l()
|
|
1166
1091
|
}, [c("span", {
|
|
1167
1092
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1168
1093
|
}, null)]), c("button", {
|
|
1169
1094
|
title: "downButton",
|
|
1170
1095
|
class: d.value,
|
|
1171
|
-
style:
|
|
1172
|
-
onClick:
|
|
1173
|
-
disabled: !
|
|
1096
|
+
style: s.value,
|
|
1097
|
+
onClick: f,
|
|
1098
|
+
disabled: !a()
|
|
1174
1099
|
}, [c("span", {
|
|
1175
1100
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1176
1101
|
}, null)])]);
|
|
1177
1102
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const n = Ue(e, t),
|
|
1180
|
-
displayValue:
|
|
1103
|
+
function oo(e, t) {
|
|
1104
|
+
const n = Ue(e, t), a = _e(e, t, n), l = ze(e, t, a, n), f = Xe(e, t, a, n, l), v = no(e, t, l), {
|
|
1105
|
+
displayValue: P,
|
|
1181
1106
|
modelValue: d,
|
|
1182
1107
|
getRealValue: o
|
|
1183
|
-
} = n,
|
|
1184
|
-
format:
|
|
1185
|
-
} =
|
|
1186
|
-
isFocus:
|
|
1187
|
-
} =
|
|
1108
|
+
} = n, s = to(e, t, f), {
|
|
1109
|
+
format: r
|
|
1110
|
+
} = a, {
|
|
1111
|
+
isFocus: u
|
|
1112
|
+
} = f, i = E(() => !e.disabled && !e.readonly);
|
|
1188
1113
|
return H(() => {
|
|
1189
1114
|
const p = o(e.modelValue);
|
|
1190
|
-
|
|
1191
|
-
}),
|
|
1192
|
-
const
|
|
1193
|
-
d.value =
|
|
1194
|
-
}),
|
|
1195
|
-
p !== d.value && (d.value = p, !
|
|
1196
|
-
}),
|
|
1197
|
-
|
|
1115
|
+
P.value = r(p);
|
|
1116
|
+
}), V(() => [e.value], ([p]) => {
|
|
1117
|
+
const m = o(p);
|
|
1118
|
+
d.value = m, P.value = r(m);
|
|
1119
|
+
}), V(() => [e.modelValue], ([p]) => {
|
|
1120
|
+
p !== d.value && (d.value = p, !u.value && (P.value = r(o(p))));
|
|
1121
|
+
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1122
|
+
P.value = r(d.value);
|
|
1198
1123
|
}), () => c("div", {
|
|
1199
1124
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1200
|
-
}, [
|
|
1125
|
+
}, [s(), i.value && v()]);
|
|
1201
1126
|
}
|
|
1202
|
-
function
|
|
1203
|
-
const
|
|
1204
|
-
isPassword:
|
|
1205
|
-
} = n, d = C(e.minLength), o = C(e.maxLength),
|
|
1206
|
-
disabled:
|
|
1207
|
-
displayText:
|
|
1127
|
+
function ro(e, t, n, a) {
|
|
1128
|
+
const l = C(), f = C(e.autocomplete), v = C(e.enableTitle), {
|
|
1129
|
+
isPassword: P
|
|
1130
|
+
} = n, d = C(e.minLength), o = C(e.maxLength), s = C(e.tabIndex), {
|
|
1131
|
+
disabled: r,
|
|
1132
|
+
displayText: u,
|
|
1208
1133
|
inputType: i,
|
|
1209
1134
|
onBlur: p,
|
|
1210
|
-
onFocus:
|
|
1211
|
-
onInput:
|
|
1212
|
-
onClick:
|
|
1213
|
-
onKeydown:
|
|
1214
|
-
onKeyup:
|
|
1135
|
+
onFocus: m,
|
|
1136
|
+
onInput: S,
|
|
1137
|
+
onClick: N,
|
|
1138
|
+
onKeydown: j,
|
|
1139
|
+
onKeyup: D,
|
|
1215
1140
|
onMousedown: I,
|
|
1216
1141
|
onTextBoxValueChange: k,
|
|
1217
|
-
readonly:
|
|
1218
|
-
placeholder:
|
|
1219
|
-
textBoxClass:
|
|
1220
|
-
textBoxTitle:
|
|
1221
|
-
} =
|
|
1142
|
+
readonly: O,
|
|
1143
|
+
placeholder: B,
|
|
1144
|
+
textBoxClass: G,
|
|
1145
|
+
textBoxTitle: L
|
|
1146
|
+
} = a;
|
|
1222
1147
|
return H(() => {
|
|
1223
1148
|
e.selectOnCreated, e.focusOnCreated;
|
|
1224
1149
|
}), () => c("input", {
|
|
1225
|
-
ref:
|
|
1150
|
+
ref: l,
|
|
1226
1151
|
name: "input-group-value",
|
|
1227
|
-
autocomplete:
|
|
1228
|
-
class:
|
|
1229
|
-
disabled:
|
|
1152
|
+
autocomplete: f.value,
|
|
1153
|
+
class: G.value,
|
|
1154
|
+
disabled: r == null ? void 0 : r.value,
|
|
1230
1155
|
maxlength: o.value,
|
|
1231
1156
|
minlength: d.value,
|
|
1232
|
-
placeholder:
|
|
1233
|
-
readonly:
|
|
1234
|
-
tabindex:
|
|
1235
|
-
title:
|
|
1157
|
+
placeholder: B.value,
|
|
1158
|
+
readonly: O == null ? void 0 : O.value,
|
|
1159
|
+
tabindex: s.value,
|
|
1160
|
+
title: v.value && !P.value ? L.value : "",
|
|
1236
1161
|
type: i.value,
|
|
1237
|
-
value:
|
|
1162
|
+
value: u == null ? void 0 : u.value,
|
|
1238
1163
|
onBlur: p,
|
|
1239
|
-
onClick:
|
|
1164
|
+
onClick: N,
|
|
1240
1165
|
onChange: k,
|
|
1241
|
-
onFocus:
|
|
1242
|
-
onInput:
|
|
1243
|
-
onKeydown:
|
|
1244
|
-
onKeyup:
|
|
1166
|
+
onFocus: m,
|
|
1167
|
+
onInput: S,
|
|
1168
|
+
onKeydown: j,
|
|
1169
|
+
onKeyup: D,
|
|
1245
1170
|
onMousedown: I
|
|
1246
1171
|
}, null);
|
|
1247
1172
|
}
|
|
1248
|
-
function
|
|
1249
|
-
const n = E(() => e.useExtendInfo && !!e.extendInfo),
|
|
1173
|
+
function ao(e, t) {
|
|
1174
|
+
const n = E(() => e.useExtendInfo && !!e.extendInfo), a = Ae({
|
|
1250
1175
|
content: e.extendInfo
|
|
1251
1176
|
});
|
|
1252
|
-
function
|
|
1177
|
+
function l() {
|
|
1253
1178
|
t.emit("updateExtendInfo");
|
|
1254
1179
|
}
|
|
1255
|
-
return () => n.value &&
|
|
1180
|
+
return () => n.value && $e(c("span", {
|
|
1256
1181
|
class: "input-group-before-tips",
|
|
1257
|
-
onMouseenter:
|
|
1182
|
+
onMouseenter: l
|
|
1258
1183
|
}, [c("i", {
|
|
1259
1184
|
class: "f-icon f-icon-info-circle"
|
|
1260
1185
|
}, null), c("b", {
|
|
1261
1186
|
class: "tips-arrow"
|
|
1262
|
-
}, null)]), [[
|
|
1187
|
+
}, null)]), [[Ve("tooltip"), a]]);
|
|
1263
1188
|
}
|
|
1264
|
-
function lo(e, t, n,
|
|
1189
|
+
function lo(e, t, n, a, l) {
|
|
1265
1190
|
const {
|
|
1266
|
-
appendedButtonClass:
|
|
1267
|
-
appendedContent:
|
|
1268
|
-
} = n,
|
|
1269
|
-
clearButtonClass:
|
|
1270
|
-
clearButtonStyle:
|
|
1271
|
-
onClearValue:
|
|
1191
|
+
appendedButtonClass: f,
|
|
1192
|
+
appendedContent: v
|
|
1193
|
+
} = n, P = E(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), d = E(() => v.value && !t.slots.groupTextTemplate), o = E(() => !!t.slots.groupTextTemplate), {
|
|
1194
|
+
clearButtonClass: s,
|
|
1195
|
+
clearButtonStyle: r,
|
|
1196
|
+
onClearValue: u,
|
|
1272
1197
|
shouldShowClearButton: i
|
|
1273
|
-
} =
|
|
1198
|
+
} = a;
|
|
1274
1199
|
function p() {
|
|
1275
1200
|
return c("span", {
|
|
1276
1201
|
id: "clearIcon",
|
|
1277
|
-
class:
|
|
1278
|
-
style:
|
|
1279
|
-
onClick: (
|
|
1202
|
+
class: s.value,
|
|
1203
|
+
style: r.value,
|
|
1204
|
+
onClick: (B) => u(B)
|
|
1280
1205
|
}, [c("i", {
|
|
1281
1206
|
class: "f-icon modal_close"
|
|
1282
1207
|
}, null)]);
|
|
1283
1208
|
}
|
|
1284
|
-
function
|
|
1285
|
-
t.emit("iconMouseEnter",
|
|
1209
|
+
function m(B) {
|
|
1210
|
+
t.emit("iconMouseEnter", B);
|
|
1286
1211
|
}
|
|
1287
|
-
function
|
|
1288
|
-
t.emit("iconMouseLeave",
|
|
1212
|
+
function S(B) {
|
|
1213
|
+
t.emit("iconMouseLeave", B);
|
|
1289
1214
|
}
|
|
1290
|
-
function
|
|
1291
|
-
|
|
1292
|
-
originalEvent:
|
|
1293
|
-
}),
|
|
1215
|
+
function N(B) {
|
|
1216
|
+
P.value && t.emit("clickHandle", {
|
|
1217
|
+
originalEvent: B
|
|
1218
|
+
}), B.stopPropagation();
|
|
1294
1219
|
}
|
|
1295
|
-
const
|
|
1296
|
-
function
|
|
1220
|
+
const j = e.type === "password" ? l.onClickAppendedButton : N;
|
|
1221
|
+
function D() {
|
|
1297
1222
|
return c("span", {
|
|
1298
1223
|
class: "input-group-text",
|
|
1299
|
-
onMouseenter: (
|
|
1300
|
-
onMouseleave: (
|
|
1301
|
-
innerHTML:
|
|
1302
|
-
onClick: (
|
|
1224
|
+
onMouseenter: (B) => m(B),
|
|
1225
|
+
onMouseleave: (B) => S(B),
|
|
1226
|
+
innerHTML: v.value,
|
|
1227
|
+
onClick: (B) => j(B)
|
|
1303
1228
|
}, null);
|
|
1304
1229
|
}
|
|
1305
1230
|
function I() {
|
|
1306
1231
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1307
1232
|
}
|
|
1308
1233
|
function k() {
|
|
1309
|
-
return d.value ?
|
|
1234
|
+
return d.value ? D : o.value ? I : "";
|
|
1310
1235
|
}
|
|
1311
|
-
const
|
|
1236
|
+
const O = k();
|
|
1312
1237
|
return () => c("div", {
|
|
1313
|
-
class:
|
|
1314
|
-
}, [i.value && p(),
|
|
1238
|
+
class: f.value
|
|
1239
|
+
}, [i.value && p(), O && O()]);
|
|
1315
1240
|
}
|
|
1316
|
-
const
|
|
1241
|
+
const io = /* @__PURE__ */ U({
|
|
1317
1242
|
name: "FInputGroup",
|
|
1318
1243
|
props: be,
|
|
1319
1244
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1320
1245
|
setup(e, t) {
|
|
1321
|
-
const n = C(e.modelValue),
|
|
1322
|
-
inputGroupClass:
|
|
1323
|
-
inputType:
|
|
1324
|
-
inputGroupStyle:
|
|
1325
|
-
} =
|
|
1246
|
+
const n = C(e.modelValue), a = C(e.modelValue), l = Xn(e, t, n, a), {
|
|
1247
|
+
inputGroupClass: f,
|
|
1248
|
+
inputType: v,
|
|
1249
|
+
inputGroupStyle: P
|
|
1250
|
+
} = l, d = Kn(e), {
|
|
1326
1251
|
shouldShowAppendedButton: o
|
|
1327
|
-
} = d,
|
|
1328
|
-
onMouseEnter:
|
|
1329
|
-
onMouseLeave:
|
|
1330
|
-
} =
|
|
1331
|
-
|
|
1332
|
-
n.value = I,
|
|
1333
|
-
}),
|
|
1334
|
-
n.value = I,
|
|
1252
|
+
} = d, s = Qn(e, t, l), {
|
|
1253
|
+
onMouseEnter: r,
|
|
1254
|
+
onMouseLeave: u
|
|
1255
|
+
} = s, i = eo(e, t, v, d), p = oo(e, t), m = ro(e, t, i, l), S = lo(e, t, d, s, i), N = ao(e, t), j = E(() => e.type === "number");
|
|
1256
|
+
V(() => [e.value], ([I]) => {
|
|
1257
|
+
n.value = I, a.value = I;
|
|
1258
|
+
}), V(() => [e.modelValue], ([I]) => {
|
|
1259
|
+
n.value = I, a.value = I;
|
|
1335
1260
|
}), H(() => {
|
|
1336
|
-
e.value && (n.value = e.value,
|
|
1261
|
+
e.value && (n.value = e.value, a.value = e.value);
|
|
1337
1262
|
});
|
|
1338
|
-
const
|
|
1263
|
+
const D = () => c(Z, null, [c("div", {
|
|
1339
1264
|
id: "inputGroup",
|
|
1340
|
-
class:
|
|
1341
|
-
style:
|
|
1342
|
-
onMouseenter:
|
|
1343
|
-
onMouseleave:
|
|
1344
|
-
}, [
|
|
1345
|
-
return () =>
|
|
1265
|
+
class: f.value,
|
|
1266
|
+
style: P.value,
|
|
1267
|
+
onMouseenter: r,
|
|
1268
|
+
onMouseleave: u
|
|
1269
|
+
}, [j.value ? p() : c(Z, null, [N(), m(), o.value && S()])])]);
|
|
1270
|
+
return () => D();
|
|
1346
1271
|
}
|
|
1347
|
-
}),
|
|
1348
|
-
let
|
|
1349
|
-
function
|
|
1350
|
-
|
|
1272
|
+
}), g = {}, y = {}, b = {}, h = {};
|
|
1273
|
+
let ie = !1;
|
|
1274
|
+
function so() {
|
|
1275
|
+
ie || (ie = !0, Ze.register(g, y, b, h), Qe.register(g, y, b, h), Je.register(g, y, b, h), Ye.register(g, y, b, h), Ke.register(g, y, b, h), et.register(g, y, b, h), tt.register(g, y, b, h), nt.register(g, y, b, h), ot.register(g, y, b, h), rt.register(g, y, b, h), lt.register(g, y, b, h), at.register(g, y, b, h), it.register(g, y, b, h), st.register(g, y, b, h), ut.register(g, y, b, h), ct.register(g, y, b, h), dt.register(g, y, b, h), pt.register(g, y, b, h), ft.register(g, y, b, h), mt.register(g, y, b, h), vt.register(g, y, b, h), gt.register(g, y, b, h), bt.register(g, y, b, h), yt.register(g, y, b, h), ht.register(g, y, b, h), Ct.register(g, y, b, h), Ft.register(g, y, b, h), St.register(g, y, b, h), He.register(g, y, b, h), wt.register(g, y, b, h), Tt.register(g, y, b, h), Pt.register(g, y, b, h), Bt.register(g, y, b, h), xt.register(g, y, b, h), It.register(g, y, b, h), Et.register(g, y, b, h), kt.register(g, y, b, h), Mt.register(g, y, b, h), Nt.register(g, y, b, h), Ot.register(g, y, b, h), Jt.register(g, y, b), Dt.register(g, y, b, h), Lt.register(g, y, b, h), jt.register(g, y, b, h), At.register(g, y, b, h), $t.register(g, y, b, h), Vt.register(g, y, b, h), Gt.register(g, y, b, h), Rt.register(g, y, b, h), Wt.register(g, y, b, h), qt.register(g, y, b, h), Ht.register(g, y, b, h), Ut.register(g, y, b, h), zt.register(g, y, b, h), _t.register(g, y, b, h), Xt.register(g, y, b, h), Qt.register(g, y, b, h), Zt.register(g, y, b, h), Yt.register(g, y, b, h));
|
|
1351
1276
|
}
|
|
1352
|
-
function
|
|
1353
|
-
|
|
1354
|
-
function e(
|
|
1355
|
-
const
|
|
1356
|
-
return
|
|
1277
|
+
function uo() {
|
|
1278
|
+
so();
|
|
1279
|
+
function e(l, f) {
|
|
1280
|
+
const v = y[l];
|
|
1281
|
+
return v ? v(f) : {};
|
|
1357
1282
|
}
|
|
1358
|
-
function t(
|
|
1359
|
-
return
|
|
1283
|
+
function t(l) {
|
|
1284
|
+
return g[l] || io;
|
|
1360
1285
|
}
|
|
1361
|
-
function n(
|
|
1362
|
-
switch (
|
|
1286
|
+
function n(l) {
|
|
1287
|
+
switch (l) {
|
|
1363
1288
|
case "check-box":
|
|
1364
1289
|
return "onChangeValue";
|
|
1365
1290
|
case "switch":
|
|
@@ -1411,117 +1336,120 @@ function co() {
|
|
|
1411
1336
|
return "onSchemaSelected";
|
|
1412
1337
|
case "mapping-editor":
|
|
1413
1338
|
return "onMappingFieldsChanged";
|
|
1339
|
+
case "textarea":
|
|
1340
|
+
return "onValueChange";
|
|
1414
1341
|
}
|
|
1415
1342
|
}
|
|
1416
|
-
function
|
|
1417
|
-
switch (
|
|
1343
|
+
function a(l) {
|
|
1344
|
+
switch (l) {
|
|
1418
1345
|
case "combo-list":
|
|
1419
1346
|
case "input-group":
|
|
1347
|
+
case "textarea":
|
|
1420
1348
|
return "onClear";
|
|
1421
1349
|
}
|
|
1422
1350
|
}
|
|
1423
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName:
|
|
1351
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: a };
|
|
1424
1352
|
}
|
|
1425
|
-
const
|
|
1353
|
+
const co = /* @__PURE__ */ U({
|
|
1426
1354
|
name: "FDynamicFormGroup",
|
|
1427
|
-
props:
|
|
1355
|
+
props: ye,
|
|
1428
1356
|
emits: ["change", "update:modelValue"],
|
|
1429
1357
|
setup(e, t) {
|
|
1430
|
-
const n = C(e.id),
|
|
1358
|
+
const n = C(e.id), a = C(e.customClass), l = C(e.editor), f = C(e.label), v = C(e.modelValue), P = C(e.readonly), d = C(e.required), o = C(e.showLabel), s = C(e.visible);
|
|
1431
1359
|
C(e.type);
|
|
1432
|
-
const
|
|
1433
|
-
resolveEditorProps:
|
|
1360
|
+
const r = C(), {
|
|
1361
|
+
resolveEditorProps: u,
|
|
1434
1362
|
resolveEditorType: i,
|
|
1435
1363
|
getChangeFunctionName: p,
|
|
1436
|
-
getClearFunctionName:
|
|
1437
|
-
} =
|
|
1364
|
+
getClearFunctionName: m
|
|
1365
|
+
} = uo(), S = E(() => ({
|
|
1438
1366
|
"form-group": !0,
|
|
1439
1367
|
"farris-form-group": !0,
|
|
1440
1368
|
"common-group": !0,
|
|
1441
|
-
"q-state-readonly":
|
|
1369
|
+
"q-state-readonly": P.value
|
|
1442
1370
|
}));
|
|
1443
|
-
function
|
|
1444
|
-
|
|
1371
|
+
function N(I, k) {
|
|
1372
|
+
v.value = k !== void 0 ? k : I, t.emit("update:modelValue", v.value), t.emit("change", v.value);
|
|
1445
1373
|
}
|
|
1446
|
-
function
|
|
1374
|
+
function j() {
|
|
1447
1375
|
t.emit("update:modelValue", "");
|
|
1448
1376
|
}
|
|
1449
|
-
const
|
|
1450
|
-
const I =
|
|
1451
|
-
return
|
|
1452
|
-
ref:
|
|
1453
|
-
},
|
|
1454
|
-
modelValue:
|
|
1455
|
-
"onUpdate:modelValue": (
|
|
1377
|
+
const D = E(() => {
|
|
1378
|
+
const I = l.value.type || "input-group", k = i(I), O = u(I, l.value), B = p(I), G = m(l.value.type);
|
|
1379
|
+
return O[B] = N, O[G] = j, () => c(k, Ge({
|
|
1380
|
+
ref: r
|
|
1381
|
+
}, O, {
|
|
1382
|
+
modelValue: v.value,
|
|
1383
|
+
"onUpdate:modelValue": (L) => v.value = L
|
|
1456
1384
|
}), null);
|
|
1457
1385
|
});
|
|
1458
|
-
return
|
|
1459
|
-
n.value = I,
|
|
1386
|
+
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([I, k, O, B, G, L, R, _, z]) => {
|
|
1387
|
+
n.value = I, a.value = k, l.value = O, f.value = B, v.value = G, P.value = L, d.value = R, o.value = _, s.value = z;
|
|
1460
1388
|
}), t.expose({
|
|
1461
|
-
editorRef:
|
|
1462
|
-
}), () =>
|
|
1389
|
+
editorRef: r
|
|
1390
|
+
}), () => s.value && c("div", {
|
|
1463
1391
|
id: `${n.value}-input-group`,
|
|
1464
|
-
class:
|
|
1392
|
+
class: a.value
|
|
1465
1393
|
}, [c("div", {
|
|
1466
1394
|
class: "farris-group-wrap"
|
|
1467
1395
|
}, [c("div", {
|
|
1468
|
-
class:
|
|
1469
|
-
}, [o.value && c(
|
|
1396
|
+
class: S.value
|
|
1397
|
+
}, [o.value && c(An, {
|
|
1470
1398
|
id: `${n.value}-lable`,
|
|
1471
1399
|
required: d.value,
|
|
1472
|
-
text:
|
|
1473
|
-
title:
|
|
1400
|
+
text: f.value,
|
|
1401
|
+
title: f.value
|
|
1474
1402
|
}, null), c("div", {
|
|
1475
1403
|
class: "farris-input-wrap"
|
|
1476
|
-
}, [
|
|
1404
|
+
}, [D.value()])])])]);
|
|
1477
1405
|
}
|
|
1478
|
-
}),
|
|
1406
|
+
}), po = /* @__PURE__ */ U({
|
|
1479
1407
|
name: "FPropertyPanelItem",
|
|
1480
|
-
props:
|
|
1408
|
+
props: Bn,
|
|
1481
1409
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1482
1410
|
setup(e, t) {
|
|
1483
1411
|
var o;
|
|
1484
|
-
const n = C((o = e.category) == null ? void 0 : o.categoryId),
|
|
1485
|
-
const
|
|
1412
|
+
const n = C((o = e.category) == null ? void 0 : o.categoryId), a = C(e.elementConfig.propertyID), l = C(e.elementConfig.propertyName), f = C(e.elementConfig.editor), v = C(e.elementConfig.propertyValue), P = E(() => {
|
|
1413
|
+
const s = e.elementConfig.visible;
|
|
1486
1414
|
return {
|
|
1487
1415
|
"farris-group-wrap": !0,
|
|
1488
1416
|
"property-item": !0,
|
|
1489
|
-
"d-none": !(typeof
|
|
1417
|
+
"d-none": !(typeof s == "boolean" ? s : s == null ? !0 : s())
|
|
1490
1418
|
};
|
|
1491
1419
|
});
|
|
1492
|
-
|
|
1493
|
-
var
|
|
1494
|
-
return (
|
|
1495
|
-
}, (
|
|
1496
|
-
|
|
1420
|
+
V(() => {
|
|
1421
|
+
var s;
|
|
1422
|
+
return (s = e.elementConfig) == null ? void 0 : s.propertyValue;
|
|
1423
|
+
}, (s) => {
|
|
1424
|
+
v.value = s;
|
|
1497
1425
|
});
|
|
1498
|
-
function d(
|
|
1499
|
-
e.elementConfig.propertyValue =
|
|
1500
|
-
const
|
|
1426
|
+
function d(s) {
|
|
1427
|
+
e.elementConfig.propertyValue = s;
|
|
1428
|
+
const r = {
|
|
1501
1429
|
propertyID: e.elementConfig.propertyID,
|
|
1502
|
-
propertyValue:
|
|
1430
|
+
propertyValue: s
|
|
1503
1431
|
};
|
|
1504
|
-
t.emit("propertyChange",
|
|
1432
|
+
t.emit("propertyChange", r), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1505
1433
|
}
|
|
1506
1434
|
return () => c("div", {
|
|
1507
|
-
class:
|
|
1508
|
-
}, [c(
|
|
1509
|
-
id:
|
|
1510
|
-
customClass: `${n.value}-${
|
|
1511
|
-
label:
|
|
1512
|
-
editor:
|
|
1513
|
-
modelValue:
|
|
1435
|
+
class: P.value
|
|
1436
|
+
}, [c(co, {
|
|
1437
|
+
id: a.value,
|
|
1438
|
+
customClass: `${n.value}-${a.value}`,
|
|
1439
|
+
label: l.value,
|
|
1440
|
+
editor: f.value,
|
|
1441
|
+
modelValue: v.value,
|
|
1514
1442
|
onChange: d,
|
|
1515
1443
|
editorParams: e.elementConfig.editorParams
|
|
1516
1444
|
}, null)]);
|
|
1517
1445
|
}
|
|
1518
|
-
}), fo = /* @__PURE__ */
|
|
1446
|
+
}), fo = /* @__PURE__ */ U({
|
|
1519
1447
|
name: "FPropertyPanelItemList",
|
|
1520
1448
|
props: Pn,
|
|
1521
1449
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1522
1450
|
setup(e, t) {
|
|
1523
1451
|
const n = C(e.category);
|
|
1524
|
-
function
|
|
1452
|
+
function a(i) {
|
|
1525
1453
|
if (!i.hideCascadeTitle)
|
|
1526
1454
|
return c("div", {
|
|
1527
1455
|
class: "farris-input-wrap"
|
|
@@ -1533,10 +1461,10 @@ const po = /* @__PURE__ */ z({
|
|
|
1533
1461
|
readonly: !0
|
|
1534
1462
|
}, null)]);
|
|
1535
1463
|
}
|
|
1536
|
-
function
|
|
1464
|
+
function l(i, p) {
|
|
1537
1465
|
p.isExpand = !p.isExpand;
|
|
1538
1466
|
}
|
|
1539
|
-
function
|
|
1467
|
+
function f(i) {
|
|
1540
1468
|
return c("div", {
|
|
1541
1469
|
class: "landscape"
|
|
1542
1470
|
}, [c("button", {
|
|
@@ -1544,10 +1472,10 @@ const po = /* @__PURE__ */ z({
|
|
|
1544
1472
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1545
1473
|
"f-state-expand": i.isExpand
|
|
1546
1474
|
}],
|
|
1547
|
-
onClick: (p) =>
|
|
1475
|
+
onClick: (p) => l(p, i)
|
|
1548
1476
|
}, [c("span", null, null)])]);
|
|
1549
1477
|
}
|
|
1550
|
-
function
|
|
1478
|
+
function v(i) {
|
|
1551
1479
|
return c("div", {
|
|
1552
1480
|
class: "f-section-formgroup-legend"
|
|
1553
1481
|
}, [c("div", {
|
|
@@ -1564,7 +1492,7 @@ const po = /* @__PURE__ */ z({
|
|
|
1564
1492
|
class: "farris-label-text"
|
|
1565
1493
|
}, [i.propertyName])])])]);
|
|
1566
1494
|
}
|
|
1567
|
-
function
|
|
1495
|
+
function P(i) {
|
|
1568
1496
|
return `${e.categoryKey}_${i.propertyID}`;
|
|
1569
1497
|
}
|
|
1570
1498
|
function d(i) {
|
|
@@ -1575,18 +1503,18 @@ const po = /* @__PURE__ */ z({
|
|
|
1575
1503
|
function o() {
|
|
1576
1504
|
t.emit("triggerRefreshPanel");
|
|
1577
1505
|
}
|
|
1578
|
-
function
|
|
1506
|
+
function s(i) {
|
|
1579
1507
|
return c("div", {
|
|
1580
1508
|
class: "px-2 mb-2"
|
|
1581
|
-
}, [c(
|
|
1582
|
-
key:
|
|
1509
|
+
}, [c(po, {
|
|
1510
|
+
key: P(i),
|
|
1583
1511
|
elementConfig: i,
|
|
1584
1512
|
category: n.value,
|
|
1585
1513
|
onPropertyChange: d,
|
|
1586
1514
|
onTriggerRefreshPanel: o
|
|
1587
1515
|
}, null)]);
|
|
1588
1516
|
}
|
|
1589
|
-
function
|
|
1517
|
+
function r(i) {
|
|
1590
1518
|
var p;
|
|
1591
1519
|
return c("div", {
|
|
1592
1520
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
@@ -1596,165 +1524,163 @@ const po = /* @__PURE__ */ z({
|
|
|
1596
1524
|
}]
|
|
1597
1525
|
}, [c("div", {
|
|
1598
1526
|
class: "card-header",
|
|
1599
|
-
onClick: (
|
|
1527
|
+
onClick: (m) => l(m, i)
|
|
1600
1528
|
}, [c("div", {
|
|
1601
1529
|
class: "panel-item-title"
|
|
1602
1530
|
}, [c("div", {
|
|
1603
1531
|
class: "form-group farris-form-group line-item"
|
|
1604
|
-
}, [
|
|
1532
|
+
}, [v(i), a(i), f(i)])])]), c("div", {
|
|
1605
1533
|
class: ["card-body", {
|
|
1606
1534
|
hidden: !i.isExpand
|
|
1607
1535
|
}]
|
|
1608
|
-
}, [(p = i.cascadeConfig) == null ? void 0 : p.map((
|
|
1536
|
+
}, [(p = i.cascadeConfig) == null ? void 0 : p.map((m) => s(m))])])]);
|
|
1609
1537
|
}
|
|
1610
|
-
|
|
1538
|
+
V(() => e.category, () => {
|
|
1611
1539
|
n.value = e.category;
|
|
1612
1540
|
});
|
|
1613
|
-
function
|
|
1614
|
-
return i.propertyType === "cascade" ?
|
|
1541
|
+
function u(i) {
|
|
1542
|
+
return i.propertyType === "cascade" ? r : s;
|
|
1615
1543
|
}
|
|
1616
|
-
return () => c(Z, null, [n.value.properties.map((i) =>
|
|
1544
|
+
return () => c(Z, null, [n.value.properties.map((i) => u(i)(i))]);
|
|
1617
1545
|
}
|
|
1618
|
-
}), se = /* @__PURE__ */
|
|
1546
|
+
}), se = /* @__PURE__ */ U({
|
|
1619
1547
|
name: "FPropertyPanel",
|
|
1620
|
-
props:
|
|
1548
|
+
props: Kt,
|
|
1621
1549
|
emits: ["propertyChanged"],
|
|
1622
1550
|
setup(e, t) {
|
|
1623
|
-
const n = C(e.width),
|
|
1624
|
-
let p = [],
|
|
1625
|
-
const
|
|
1626
|
-
let I = [], k = null,
|
|
1627
|
-
const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
1632
|
-
|
|
1633
|
-
const T = S.properties.map((D) => (D.category = S, D));
|
|
1634
|
-
f = f.concat(T);
|
|
1551
|
+
const n = C(e.width), a = C(e.isWidePanel), l = C(e.enableSearch), f = C(e.mode), v = C(e.isPersitOpenState), P = C(e.isShowPanel), d = C(), o = C(), s = C(e.showCloseBtn), r = C(e.selectedTabId), u = C(!0), i = C(e.isWhiteTheme);
|
|
1552
|
+
let p = [], m = [];
|
|
1553
|
+
const S = C(""), N = C(), j = C(), D = Re("SchemaService");
|
|
1554
|
+
let I = [], k = null, O = "";
|
|
1555
|
+
const B = C(), G = C(0);
|
|
1556
|
+
function L() {
|
|
1557
|
+
m = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((w) => {
|
|
1558
|
+
if (w.properties.forEach((F) => F.categoryId = w.categoryId), w.properties && Array.isArray(w.properties) && w.properties.length > 0) {
|
|
1559
|
+
const F = w.properties.map((M) => (M.category = w, M));
|
|
1560
|
+
m = m.concat(F);
|
|
1635
1561
|
}
|
|
1636
1562
|
});
|
|
1637
1563
|
}
|
|
1638
|
-
function
|
|
1639
|
-
let
|
|
1640
|
-
for (;
|
|
1641
|
-
|
|
1642
|
-
return
|
|
1564
|
+
function R(T) {
|
|
1565
|
+
let w = T.offsetTop, F = T.offsetParent;
|
|
1566
|
+
for (; F !== null; )
|
|
1567
|
+
w += F.offsetTop, F = F.offsetParent;
|
|
1568
|
+
return w;
|
|
1643
1569
|
}
|
|
1644
|
-
function
|
|
1645
|
-
|
|
1570
|
+
function _(T, w) {
|
|
1571
|
+
T && w && Object.keys(w).length > 0 && Object.keys(w).forEach((F) => {
|
|
1646
1572
|
var W;
|
|
1647
|
-
const
|
|
1648
|
-
(W =
|
|
1573
|
+
const M = w[F];
|
|
1574
|
+
(W = T.style) == null || W.setProperty(F, M);
|
|
1649
1575
|
});
|
|
1650
1576
|
}
|
|
1651
|
-
function
|
|
1652
|
-
return
|
|
1577
|
+
function z() {
|
|
1578
|
+
return m.filter((w) => w.visible ? !!(w.propertyID && w.propertyID.startsWith(S.value) || w.propertyName && (w.propertyName.startsWith(S.value) || w.propertyName.includes(S.value))) : !1);
|
|
1653
1579
|
}
|
|
1654
|
-
function x(
|
|
1655
|
-
if (
|
|
1656
|
-
const
|
|
1657
|
-
|
|
1580
|
+
function x(T, w, F) {
|
|
1581
|
+
if (T === 0) {
|
|
1582
|
+
const M = R(w), K = R(F) - M - 5;
|
|
1583
|
+
w == null || w.scroll({
|
|
1658
1584
|
top: K,
|
|
1659
1585
|
behavior: "smooth"
|
|
1660
1586
|
});
|
|
1661
1587
|
}
|
|
1662
1588
|
}
|
|
1663
|
-
function
|
|
1664
|
-
I && I.length > 0 && (I.forEach((
|
|
1665
|
-
|
|
1666
|
-
}), I = []),
|
|
1667
|
-
const
|
|
1668
|
-
if (!
|
|
1669
|
-
|
|
1670
|
-
else if (
|
|
1671
|
-
const
|
|
1672
|
-
|
|
1673
|
-
|
|
1674
|
-
const K =
|
|
1675
|
-
|
|
1589
|
+
function $(T) {
|
|
1590
|
+
I && I.length > 0 && (I.forEach((F) => {
|
|
1591
|
+
F.style.cssText = "";
|
|
1592
|
+
}), I = []), S.value = T || S.value;
|
|
1593
|
+
const w = document.querySelector(".panel-body");
|
|
1594
|
+
if (!S.value)
|
|
1595
|
+
N.value && w && (w.scrollTop = 0);
|
|
1596
|
+
else if (L(), m && m.length > 0) {
|
|
1597
|
+
const F = z();
|
|
1598
|
+
F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
|
|
1599
|
+
F.forEach((M, W) => {
|
|
1600
|
+
const K = M.propertyType === "cascade" ? `.${M.categoryId}-${M.propertyID} div.col-form-label` : `.property-item .${M.categoryId}-${M.propertyID} label.col-form-label`, Q = document.querySelector(K);
|
|
1601
|
+
Q && (x(W, w, Q), _(Q, {
|
|
1676
1602
|
color: "#5B89FE"
|
|
1677
|
-
}), I.push(
|
|
1603
|
+
}), I.push(Q));
|
|
1678
1604
|
});
|
|
1679
1605
|
}, 50));
|
|
1680
1606
|
}
|
|
1681
1607
|
}
|
|
1682
|
-
function q(
|
|
1683
|
-
|
|
1608
|
+
function q(T) {
|
|
1609
|
+
$(T);
|
|
1684
1610
|
}
|
|
1685
|
-
function J(
|
|
1611
|
+
function J(T) {
|
|
1686
1612
|
const {
|
|
1687
|
-
value:
|
|
1688
|
-
} =
|
|
1689
|
-
|
|
1613
|
+
value: w
|
|
1614
|
+
} = T.target;
|
|
1615
|
+
T.key === "Enter" && q(w);
|
|
1690
1616
|
}
|
|
1691
|
-
function he(
|
|
1617
|
+
function he(T) {
|
|
1692
1618
|
const {
|
|
1693
|
-
value:
|
|
1694
|
-
} =
|
|
1695
|
-
q(
|
|
1619
|
+
value: w
|
|
1620
|
+
} = T.target;
|
|
1621
|
+
q(w);
|
|
1696
1622
|
}
|
|
1697
1623
|
function Ce() {
|
|
1698
|
-
|
|
1624
|
+
v.value || (u.value = !1), t.emit("closePropertyPanel");
|
|
1699
1625
|
}
|
|
1700
|
-
function Y(
|
|
1701
|
-
|
|
1626
|
+
function Y(T) {
|
|
1627
|
+
S.value = "", $();
|
|
1702
1628
|
}
|
|
1703
|
-
function Fe(
|
|
1704
|
-
!
|
|
1629
|
+
function Fe(T) {
|
|
1630
|
+
!T.status || T.status === "open" ? T.status = "closed" : T.status = "open";
|
|
1705
1631
|
}
|
|
1706
|
-
function
|
|
1707
|
-
var
|
|
1632
|
+
function X() {
|
|
1633
|
+
var T, w;
|
|
1708
1634
|
if (p = [], !d.value || d.value.length === 0) {
|
|
1709
1635
|
p = [{
|
|
1710
1636
|
tabId: "default",
|
|
1711
1637
|
tabName: "属性",
|
|
1712
1638
|
categoryList: []
|
|
1713
|
-
}],
|
|
1639
|
+
}], B.value = null;
|
|
1714
1640
|
return;
|
|
1715
1641
|
}
|
|
1716
|
-
if ((
|
|
1717
|
-
if (
|
|
1718
|
-
const
|
|
1719
|
-
|
|
1720
|
-
tabId:
|
|
1721
|
-
tabName:
|
|
1722
|
-
categoryList: [
|
|
1723
|
-
hide:
|
|
1642
|
+
if ((T = d == null ? void 0 : d.value) == null || T.forEach((F) => {
|
|
1643
|
+
if (F.tabId) {
|
|
1644
|
+
const M = p.find((W) => W.tabId === F.tabId);
|
|
1645
|
+
M ? (M.categoryList.push(F), M.hide && (M.hide = F.hide || F.properties.length === 0)) : p.push({
|
|
1646
|
+
tabId: F.tabId,
|
|
1647
|
+
tabName: F.tabName,
|
|
1648
|
+
categoryList: [F],
|
|
1649
|
+
hide: F.hide || F.properties.length === 0
|
|
1724
1650
|
});
|
|
1725
1651
|
} else {
|
|
1726
|
-
const
|
|
1727
|
-
|
|
1652
|
+
const M = p.find((W) => W.tabId === "default");
|
|
1653
|
+
M ? M.categoryList.push(F) : p.push({
|
|
1728
1654
|
tabId: "default",
|
|
1729
1655
|
tabName: "属性",
|
|
1730
|
-
categoryList: [
|
|
1656
|
+
categoryList: [F]
|
|
1731
1657
|
});
|
|
1732
1658
|
}
|
|
1733
|
-
}),
|
|
1734
|
-
let
|
|
1735
|
-
|
|
1659
|
+
}), r.value) {
|
|
1660
|
+
let F = p == null ? void 0 : p.find((M) => M.tabId === r.value && !M.hide);
|
|
1661
|
+
B.value = F || p[0];
|
|
1736
1662
|
} else
|
|
1737
|
-
|
|
1738
|
-
|
|
1663
|
+
B.value = p[0];
|
|
1664
|
+
r.value = (w = B.value) == null ? void 0 : w.tabId;
|
|
1739
1665
|
}
|
|
1740
|
-
|
|
1741
|
-
o.value = e.schema, d.value = ee(o.value,
|
|
1666
|
+
V(() => [e.schema, e.isShowPanel], () => {
|
|
1667
|
+
o.value = e.schema, !e.schema || !e.schema.type ? d.value = [] : d.value = ee(o.value, D, k, O), X(), Y(S.value), G.value++;
|
|
1742
1668
|
}), H(() => {
|
|
1743
|
-
|
|
1669
|
+
X();
|
|
1744
1670
|
});
|
|
1745
|
-
function Se(
|
|
1746
|
-
(!o.value ||
|
|
1671
|
+
function Se(T, w) {
|
|
1672
|
+
(!o.value || w) && (o.value = w || e.schema), d.value = ee(o.value, D, k, O, T), X(), Y(S.value);
|
|
1747
1673
|
}
|
|
1748
|
-
function
|
|
1749
|
-
k =
|
|
1674
|
+
function we(T, w) {
|
|
1675
|
+
k = T, O = w;
|
|
1750
1676
|
}
|
|
1751
1677
|
function re() {
|
|
1752
|
-
|
|
1678
|
+
f.value = f.value === "panel" ? "sidebar" : "panel", f.value === "panel" ? (setTimeout(() => {
|
|
1753
1679
|
q();
|
|
1754
1680
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1755
1681
|
}
|
|
1756
|
-
function
|
|
1757
|
-
if (
|
|
1682
|
+
function Te() {
|
|
1683
|
+
if (s.value)
|
|
1758
1684
|
return c("div", {
|
|
1759
1685
|
class: "title-actions"
|
|
1760
1686
|
}, [c("div", {
|
|
@@ -1771,12 +1697,12 @@ const po = /* @__PURE__ */ z({
|
|
|
1771
1697
|
class: "f-icon f-icon-close"
|
|
1772
1698
|
}, null)])])])])]);
|
|
1773
1699
|
}
|
|
1774
|
-
function Be() {
|
|
1775
|
-
d.value = ee(o.value, L, k, M), _();
|
|
1776
|
-
}
|
|
1777
1700
|
function Pe() {
|
|
1778
|
-
|
|
1779
|
-
|
|
1701
|
+
d.value = ee(o.value, D, k, O), X();
|
|
1702
|
+
}
|
|
1703
|
+
function Be() {
|
|
1704
|
+
var T;
|
|
1705
|
+
if (l.value && ((T = B.value) == null ? void 0 : T.tabId) !== "commands")
|
|
1780
1706
|
return c("div", {
|
|
1781
1707
|
class: "search"
|
|
1782
1708
|
}, [c("div", {
|
|
@@ -1786,65 +1712,66 @@ const po = /* @__PURE__ */ z({
|
|
|
1786
1712
|
type: "text",
|
|
1787
1713
|
placeholder: "输入属性名称或编号快速定位",
|
|
1788
1714
|
autocomplete: "off",
|
|
1789
|
-
onKeyup: (
|
|
1790
|
-
value:
|
|
1715
|
+
onKeyup: (w) => J(w),
|
|
1716
|
+
value: S.value
|
|
1791
1717
|
}, null), c("div", {
|
|
1792
1718
|
class: "input-group-append",
|
|
1793
1719
|
style: "margin-left: 0px;"
|
|
1794
1720
|
}, [c("span", {
|
|
1795
1721
|
class: "input-group-text input-group-clear",
|
|
1796
1722
|
style: [{
|
|
1797
|
-
display:
|
|
1723
|
+
display: S.value && S.value.length > 0 ? "" : "none"
|
|
1798
1724
|
}],
|
|
1799
|
-
onClick: (
|
|
1725
|
+
onClick: (w) => Y()
|
|
1800
1726
|
}, [c("i", {
|
|
1801
1727
|
class: "f-icon modal_close"
|
|
1802
1728
|
}, null)]), c("span", {
|
|
1803
1729
|
class: "input-group-text input-group-clear",
|
|
1804
|
-
onClick: (
|
|
1730
|
+
onClick: (w) => he(w)
|
|
1805
1731
|
}, [c("i", {
|
|
1806
1732
|
class: "f-icon f-icon-search"
|
|
1807
1733
|
}, null)])])])]);
|
|
1808
1734
|
}
|
|
1809
|
-
function xe(
|
|
1810
|
-
return `${e.propertyName}_${
|
|
1735
|
+
function xe(T) {
|
|
1736
|
+
return `${e.propertyName}_${T.categoryId}`;
|
|
1811
1737
|
}
|
|
1812
|
-
function Ie(
|
|
1813
|
-
t.emit("propertyChanged",
|
|
1738
|
+
function Ie(T) {
|
|
1739
|
+
t.emit("propertyChanged", T);
|
|
1814
1740
|
}
|
|
1815
1741
|
function Ee() {
|
|
1816
|
-
var
|
|
1817
|
-
if (
|
|
1742
|
+
var T, w;
|
|
1743
|
+
if (B.value)
|
|
1818
1744
|
return c("div", {
|
|
1819
1745
|
class: "panel-body",
|
|
1820
|
-
ref:
|
|
1746
|
+
ref: j
|
|
1821
1747
|
}, [c("ul", {
|
|
1822
1748
|
class: ["property-grid", {
|
|
1823
|
-
"wide-panel":
|
|
1749
|
+
"wide-panel": a.value
|
|
1824
1750
|
}]
|
|
1825
|
-
}, [(
|
|
1826
|
-
key: xe(
|
|
1827
|
-
"data-category-id":
|
|
1828
|
-
}, [!
|
|
1751
|
+
}, [(w = (T = B.value) == null ? void 0 : T.categoryList) == null ? void 0 : w.map((F) => c("li", {
|
|
1752
|
+
key: xe(F),
|
|
1753
|
+
"data-category-id": F == null ? void 0 : F.categoryId
|
|
1754
|
+
}, [!F.hide && !F.hideTitle && c("span", {
|
|
1829
1755
|
class: "group-label",
|
|
1830
|
-
onClick: () => Fe(
|
|
1756
|
+
onClick: () => Fe(F)
|
|
1831
1757
|
}, [c("span", {
|
|
1832
1758
|
class: ["f-icon mr-2", {
|
|
1833
|
-
"f-legend-show":
|
|
1759
|
+
"f-legend-show": F.status === "closed"
|
|
1834
1760
|
}, {
|
|
1835
|
-
"f-legend-collapse":
|
|
1761
|
+
"f-legend-collapse": F.status === "open" || F.status === void 0
|
|
1836
1762
|
}]
|
|
1837
|
-
}, null),
|
|
1838
|
-
hidden:
|
|
1763
|
+
}, null), F.categoryName]), c("div", {
|
|
1764
|
+
hidden: F.status === "closed"
|
|
1839
1765
|
}, [c(fo, {
|
|
1840
|
-
|
|
1766
|
+
key: `${F == null ? void 0 : F.categoryId}-${G.value}`,
|
|
1767
|
+
category: F,
|
|
1841
1768
|
propertyData: o.value,
|
|
1842
|
-
onTriggerRefreshPanel:
|
|
1769
|
+
onTriggerRefreshPanel: Pe,
|
|
1843
1770
|
onValueChanged: Ie
|
|
1844
1771
|
}, null)])]))])]);
|
|
1845
1772
|
}
|
|
1846
1773
|
function ke() {
|
|
1847
|
-
if (
|
|
1774
|
+
if (f.value === "sidebar")
|
|
1848
1775
|
return c("div", {
|
|
1849
1776
|
class: "side-panel h-100",
|
|
1850
1777
|
onClick: re
|
|
@@ -1852,9 +1779,9 @@ const po = /* @__PURE__ */ z({
|
|
|
1852
1779
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1853
1780
|
}, null), c("span", null, [ue("属性")])]);
|
|
1854
1781
|
}
|
|
1855
|
-
function
|
|
1782
|
+
function Oe() {
|
|
1856
1783
|
return {
|
|
1857
|
-
display:
|
|
1784
|
+
display: u.value ? "block" : "none",
|
|
1858
1785
|
width: n.value
|
|
1859
1786
|
};
|
|
1860
1787
|
}
|
|
@@ -1864,60 +1791,60 @@ const po = /* @__PURE__ */ z({
|
|
|
1864
1791
|
}, [c("i", {
|
|
1865
1792
|
class: "f-icon f-icon-exhale-discount",
|
|
1866
1793
|
style: [{
|
|
1867
|
-
transform:
|
|
1794
|
+
transform: f.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1868
1795
|
}],
|
|
1869
1796
|
onClick: re
|
|
1870
1797
|
}, null)]);
|
|
1871
1798
|
}
|
|
1872
|
-
function
|
|
1873
|
-
|
|
1799
|
+
function Ne(T) {
|
|
1800
|
+
B.value = T, r.value = B.value.tabId, S.value = "";
|
|
1874
1801
|
}
|
|
1875
|
-
function
|
|
1876
|
-
return p.map((
|
|
1802
|
+
function De() {
|
|
1803
|
+
return p.map((T) => c("div", {
|
|
1877
1804
|
class: ["title-label", {
|
|
1878
|
-
active:
|
|
1805
|
+
active: B.value && B.value.tabId === T.tabId
|
|
1879
1806
|
}, {
|
|
1880
|
-
hidden:
|
|
1807
|
+
hidden: T.hide
|
|
1881
1808
|
}],
|
|
1882
|
-
onClick: () =>
|
|
1883
|
-
}, [c("span", null, [
|
|
1809
|
+
onClick: () => Ne(T)
|
|
1810
|
+
}, [c("span", null, [T.tabName])]));
|
|
1884
1811
|
}
|
|
1885
1812
|
return H(() => {
|
|
1886
|
-
q(
|
|
1887
|
-
}),
|
|
1888
|
-
|
|
1889
|
-
}),
|
|
1813
|
+
q(S.value);
|
|
1814
|
+
}), We(() => {
|
|
1815
|
+
v.value && (u.value = P.value), X(), q(S.value);
|
|
1816
|
+
}), V(B, () => {
|
|
1890
1817
|
}), t.expose({
|
|
1891
1818
|
updatePropertyConfig: Se,
|
|
1892
|
-
updateDesignerItem:
|
|
1819
|
+
updateDesignerItem: we
|
|
1893
1820
|
}), () => c(Z, null, [c("div", {
|
|
1894
|
-
ref:
|
|
1821
|
+
ref: N,
|
|
1895
1822
|
class: ["property-panel", {
|
|
1896
1823
|
"white-theme": i.value
|
|
1897
1824
|
}],
|
|
1898
|
-
style:
|
|
1825
|
+
style: Oe()
|
|
1899
1826
|
}, [c("div", {
|
|
1900
1827
|
class: "propertyPanel panel flex-column",
|
|
1901
|
-
hidden:
|
|
1828
|
+
hidden: f.value !== "panel"
|
|
1902
1829
|
}, [c("div", {
|
|
1903
1830
|
class: ["title d-flex", {
|
|
1904
|
-
"p-right":
|
|
1831
|
+
"p-right": s.value
|
|
1905
1832
|
}, {
|
|
1906
1833
|
only: p.length === 1
|
|
1907
1834
|
}]
|
|
1908
|
-
}, [
|
|
1835
|
+
}, [De(), Te()]), Be(), Ee()]), Me(), ke()])]);
|
|
1909
1836
|
}
|
|
1910
1837
|
});
|
|
1911
|
-
var
|
|
1912
|
-
const
|
|
1838
|
+
var mo = /* @__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))(mo || {});
|
|
1839
|
+
const Tr = {
|
|
1913
1840
|
install(e) {
|
|
1914
1841
|
e.component(se.name, se);
|
|
1915
1842
|
}
|
|
1916
1843
|
};
|
|
1917
1844
|
export {
|
|
1918
1845
|
se as FPropertyPanel,
|
|
1919
|
-
|
|
1920
|
-
|
|
1921
|
-
|
|
1922
|
-
|
|
1846
|
+
mo as PropertyType,
|
|
1847
|
+
Tr as default,
|
|
1848
|
+
Bn as propertyPanelItemProps,
|
|
1849
|
+
Kt as propertyPanelProps
|
|
1923
1850
|
};
|