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