@farris/ui-vue 1.2.9 → 1.3.0
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 +63 -63
- package/components/accordion/index.umd.cjs +1 -1
- package/components/avatar/index.esm.js +402 -323
- package/components/avatar/index.umd.cjs +1 -1
- package/components/button-edit/index.css +1 -1
- package/components/button-edit/index.esm.js +98 -96
- package/components/button-edit/index.umd.cjs +1 -1
- package/components/calendar/index.esm.js +66 -66
- package/components/calendar/index.umd.cjs +1 -1
- package/components/capsule/index.esm.js +118 -118
- package/components/capsule/index.umd.cjs +1 -1
- package/components/checkbox/index.esm.js +539 -460
- package/components/checkbox/index.umd.cjs +1 -1
- package/components/color-picker/index.esm.js +135 -135
- package/components/color-picker/index.umd.cjs +2 -2
- package/components/combo-list/index.css +1 -0
- package/components/combo-list/index.esm.js +1007 -312
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/combo-tree/index.esm.js +97 -97
- package/components/combo-tree/index.umd.cjs +1 -1
- package/components/common/index.esm.js +778 -700
- package/components/common/index.umd.cjs +1 -1
- package/components/component/index.esm.js +472 -329
- package/components/component/index.umd.cjs +1 -1
- package/components/condition/index.css +1 -0
- package/components/condition/index.esm.js +2231 -1055
- package/components/condition/index.umd.cjs +1 -1
- package/components/content-container/index.esm.js +79 -79
- package/components/content-container/index.umd.cjs +1 -1
- package/components/data-grid/index.css +1 -1
- package/components/data-grid/index.esm.js +6408 -5034
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/data-view/index.css +1 -0
- package/components/data-view/index.esm.js +4762 -3511
- package/components/data-view/index.umd.cjs +1 -1
- package/components/date-picker/index.css +1 -1
- package/components/date-picker/index.esm.js +3442 -2742
- package/components/date-picker/index.umd.cjs +1 -1
- package/components/designer-outline/index.esm.js +14 -13
- package/components/designer-outline/index.umd.cjs +1 -1
- package/components/dropdown/index.esm.js +73 -73
- package/components/dropdown/index.umd.cjs +2 -2
- package/components/dynamic-form/index.css +1 -0
- package/components/dynamic-form/index.esm.js +2597 -1141
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +114 -71
- package/components/dynamic-resolver/index.umd.cjs +1 -1
- package/components/dynamic-view/index.esm.js +303 -290
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +171 -171
- package/components/events-editor/index.umd.cjs +1 -1
- package/components/expression-editor/index.esm.js +65 -65
- package/components/expression-editor/index.umd.cjs +1 -1
- package/components/external-container/index.css +1 -1
- package/components/external-container/index.esm.js +3075 -2586
- package/components/external-container/index.umd.cjs +1 -1
- package/components/field-selector/index.css +1 -1
- package/components/field-selector/index.esm.js +5272 -8511
- package/components/field-selector/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -1
- package/components/filter-bar/index.esm.js +1726 -1822
- package/components/filter-bar/index.umd.cjs +1 -1
- package/components/image-cropper/index.esm.js +126 -126
- package/components/image-cropper/index.umd.cjs +1 -1
- package/components/input-group/index.esm.js +620 -540
- package/components/input-group/index.umd.cjs +1 -1
- package/components/layout/index.esm.js +88 -88
- package/components/layout/index.umd.cjs +1 -1
- package/components/list-nav/index.esm.js +71 -71
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/list-view/index.css +1 -1
- package/components/list-view/index.esm.js +3582 -2356
- package/components/list-view/index.umd.cjs +1 -1
- package/components/lookup/index.css +1 -1
- package/components/lookup/index.esm.js +10752 -8972
- package/components/lookup/index.umd.cjs +1 -1
- package/components/mapping-editor/index.css +1 -1
- package/components/mapping-editor/index.esm.js +5601 -5329
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.css +1 -1
- package/components/message-box/index.esm.js +511 -471
- package/components/message-box/index.umd.cjs +1 -1
- package/components/modal/index.css +1 -1
- package/components/modal/index.esm.js +438 -398
- package/components/modal/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +535 -452
- package/components/nav/index.umd.cjs +2 -2
- package/components/notify/index.esm.js +59 -53
- package/components/notify/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +556 -477
- package/components/number-range/index.umd.cjs +1 -1
- package/components/number-spinner/index.esm.js +504 -425
- package/components/number-spinner/index.umd.cjs +1 -1
- package/components/order/index.css +1 -1
- package/components/order/index.esm.js +1833 -1054
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +100 -100
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +899 -870
- package/components/page-header/index.umd.cjs +1 -1
- package/components/pagination/index.esm.js +576 -487
- package/components/pagination/index.umd.cjs +1 -1
- package/components/popover/index.esm.js +71 -70
- package/components/popover/index.umd.cjs +1 -1
- package/components/progress/index.esm.js +73 -73
- package/components/progress/index.umd.cjs +2 -2
- package/components/property-editor/index.css +1 -1
- package/components/property-editor/index.esm.js +1916 -1220
- package/components/property-editor/index.umd.cjs +3 -3
- package/components/property-panel/index.esm.js +783 -886
- package/components/property-panel/index.umd.cjs +1 -1
- package/components/query-solution/index.css +1 -1
- package/components/query-solution/index.esm.js +3632 -2556
- package/components/query-solution/index.umd.cjs +1 -1
- package/components/radio-button/index.esm.js +72 -72
- package/components/radio-button/index.umd.cjs +1 -1
- package/components/radio-group/index.esm.js +484 -405
- package/components/radio-group/index.umd.cjs +1 -1
- package/components/rate/index.esm.js +152 -152
- package/components/rate/index.umd.cjs +1 -1
- package/components/response-layout/index.esm.js +73 -73
- package/components/response-layout/index.umd.cjs +1 -1
- package/components/response-layout-editor/index.css +1 -1
- package/components/response-layout-editor/index.esm.js +1081 -1043
- package/components/response-layout-editor/index.umd.cjs +1 -1
- package/components/response-toolbar/index.esm.js +753 -738
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.css +1 -1
- package/components/schema-selector/index.esm.js +4418 -4177
- package/components/schema-selector/index.umd.cjs +2 -2
- package/components/search-box/index.esm.js +119 -119
- package/components/search-box/index.umd.cjs +1 -1
- package/components/section/index.esm.js +92 -91
- package/components/section/index.umd.cjs +1 -1
- package/components/smoke-detector/index.esm.js +59 -59
- package/components/smoke-detector/index.umd.cjs +1 -1
- package/components/splitter/index.esm.js +103 -103
- package/components/splitter/index.umd.cjs +1 -1
- package/components/step/index.esm.js +85 -85
- package/components/step/index.umd.cjs +1 -1
- package/components/switch/index.esm.js +457 -378
- package/components/switch/index.umd.cjs +1 -1
- package/components/tabs/index.css +1 -1
- package/components/tabs/index.esm.js +1696 -1617
- package/components/tabs/index.umd.cjs +1 -1
- package/components/tags/index.esm.js +53 -53
- package/components/tags/index.umd.cjs +1 -1
- package/components/text/index.esm.js +268 -268
- package/components/text/index.umd.cjs +1 -1
- package/components/textarea/index.esm.js +420 -341
- package/components/textarea/index.umd.cjs +1 -1
- package/components/time-picker/index.css +1 -1
- package/components/time-picker/index.esm.js +1062 -981
- package/components/time-picker/index.umd.cjs +1 -1
- package/components/transfer/index.css +1 -1
- package/components/transfer/index.esm.js +381 -379
- package/components/transfer/index.umd.cjs +1 -1
- package/components/tree-grid/index.css +1 -1
- package/components/tree-grid/index.esm.js +5252 -9560
- package/components/tree-grid/index.umd.cjs +1 -1
- package/components/tree-view/index.css +1 -0
- package/components/tree-view/index.esm.js +3920 -2692
- package/components/tree-view/index.umd.cjs +1 -1
- package/components/uploader/index.esm.js +373 -367
- package/components/uploader/index.umd.cjs +2 -2
- package/components/verify-detail/index.esm.js +92 -92
- package/components/verify-detail/index.umd.cjs +1 -1
- package/components/video/index.esm.js +597 -417
- package/components/video/index.umd.cjs +1 -1
- package/components/weather/index.esm.js +251 -251
- package/components/weather/index.umd.cjs +4 -4
- package/farris.all.esm.js +17125 -16176
- package/farris.all.umd.cjs +8 -8
- package/index.css +1 -1
- package/package.json +1 -1
- package/types/capsule/src/capsule.props.d.ts +2 -2
- package/types/combo-list/src/components/list-container.component.d.ts +0 -3
- package/types/combo-list/src/components/list-container.props.d.ts +0 -4
- package/types/common/index.d.ts +1 -0
- package/types/common/types.d.ts +1 -1
- package/types/common/utils/encrypt.d.ts +2 -0
- package/types/component/src/component.props.d.ts +7 -0
- package/types/component/src/designer/use-designer-rules.d.ts +1 -1
- package/types/component/src/property-config/component.property-config.d.ts +9 -0
- package/types/components.d.ts +1 -0
- package/types/data-grid/index.d.ts +5 -2
- package/types/data-grid/src/data-grid.component.d.ts +2 -1
- package/types/data-grid/src/data-grid.props.d.ts +1 -0
- package/types/data-view/composition/types.d.ts +18 -1
- package/types/data-view/composition/visualization/use-virtual-scroll.d.ts +0 -15
- package/types/designer-canvas/src/composition/dg-control.d.ts +5 -0
- package/types/designer-canvas/src/composition/types.d.ts +1 -1
- package/types/dynamic-form/src/composition/use-response-form-layout-setting.d.ts +2 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.component.d.ts +8 -0
- package/types/dynamic-form/src/designer/response-form-layout-setting.props.d.ts +4 -0
- package/types/dynamic-form/src/designer/use-designer-rules.d.ts +2 -2
- package/types/dynamic-form/src/property-config/form.property-config.d.ts +9 -0
- package/types/dynamic-form/src/schema/schema-mapper.d.ts +1 -0
- package/types/dynamic-form/src/schema/schema-resolver.d.ts +1 -0
- package/types/dynamic-form/src/types.d.ts +12 -1
- package/types/dynamic-resolver/index.d.ts +1 -0
- package/types/dynamic-resolver/src/event-handler-resolver.d.ts +4 -0
- package/types/dynamic-resolver/src/types.d.ts +9 -0
- package/types/dynamic-view/index.d.ts +1 -0
- package/types/dynamic-view/src/event-dispatcher.d.ts +1 -1
- package/types/index.d.ts +2 -0
- package/types/lookup/src/components/favorite/lookup-favorite.component.d.ts +29 -0
- package/types/lookup/src/components/favorite/lookup-favorite.props.d.ts +15 -0
- package/types/lookup/src/components/modal-container.component.d.ts +25 -0
- package/types/lookup/src/components/modal-container.props.d.ts +29 -0
- package/types/lookup/src/composition/types.d.ts +8 -0
- package/types/lookup/src/composition/use-check-props.d.ts +9 -2
- package/types/lookup/src/composition/use-dialog.d.ts +5 -1
- package/types/lookup/src/composition/use-favorite.d.ts +12 -0
- package/types/lookup/src/composition/use-http.d.ts +9 -5
- package/types/lookup/src/composition/use-input-change.d.ts +3 -0
- package/types/lookup/src/composition/use-user-data.d.ts +24 -0
- package/types/lookup/src/property-config/lookup.property-config.d.ts +6 -4
- package/types/mapping-editor/src/mapping-editor.component.d.ts +3 -0
- package/types/mapping-editor/src/mapping-editor.props.d.ts +0 -1
- package/types/modal/src/composition/use-draggable.d.ts +2 -1
- package/types/modal/src/composition/use-shortcut.d.ts +6 -0
- package/types/modal/src/modal.component.d.ts +3 -0
- package/types/modal/src/modal.props.d.ts +4 -0
- package/types/page-header/src/page-header.props.d.ts +1 -0
- package/types/property-panel/src/composition/entity/base-property.d.ts +8 -0
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +20 -1
- package/types/response-layout-editor/src/composition/converter/use-response-layout-editor-setting.d.ts +2 -0
- package/types/response-layout-editor/src/type.d.ts +21 -0
- package/types/tabs/src/tabs.props.d.ts +1 -0
- package/types/tree-grid/index.d.ts +8 -2
- package/types/tree-grid/src/tree-grid.component.d.ts +3 -1
- package/types/data-grid/src/designer/use-group-column.d.ts +0 -20
- package/types/modal/src/composition/use-esc.d.ts +0 -1
- package/types/response-layout-editor/src/composition/converter/response-layout-editor.converter.d.ts +0 -3
- package/types/response-layout-editor/src/composition/converter/use-convert-property-value.d.ts +0 -20
|
@@ -1,69 +1,66 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var A = (e, t, n) => je(e, typeof t != "symbol" ? t + "" : t, n);
|
|
4
|
-
import { ref as F, computed as E, defineComponent as U, watch as V, createVNode as c, createTextVNode as de, onMounted as H, nextTick as ie, 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";
|
|
1
|
+
import { ref as h, computed as S, defineComponent as H, watch as V, createVNode as l, createTextVNode as ce, onMounted as W, nextTick as ie, reactive as je, withDirectives as Re, resolveDirective as Ae, Fragment as Z, mergeProps as De, inject as Ve, onBeforeMount as $e } from "vue";
|
|
2
|
+
import { isPlainObject as le, cloneDeep as Me } from "lodash-es";
|
|
6
3
|
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
|
|
20
|
-
import
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
27
|
-
import
|
|
28
|
-
import
|
|
29
|
-
import
|
|
30
|
-
import
|
|
31
|
-
import
|
|
32
|
-
import
|
|
33
|
-
import
|
|
34
|
-
import
|
|
35
|
-
import
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import
|
|
40
|
-
import
|
|
41
|
-
import
|
|
42
|
-
import
|
|
43
|
-
import
|
|
44
|
-
import
|
|
45
|
-
import
|
|
46
|
-
import
|
|
47
|
-
import
|
|
48
|
-
import
|
|
49
|
-
import
|
|
50
|
-
import
|
|
51
|
-
import
|
|
52
|
-
import
|
|
53
|
-
import
|
|
54
|
-
import
|
|
55
|
-
import
|
|
56
|
-
import
|
|
57
|
-
import
|
|
58
|
-
import
|
|
59
|
-
import
|
|
60
|
-
import
|
|
61
|
-
import
|
|
62
|
-
import
|
|
63
|
-
import
|
|
64
|
-
import
|
|
65
|
-
import
|
|
66
|
-
const
|
|
4
|
+
import Ge, { useNumber as qe, useFormat as We, useSpinner as He, useTextBox as Ue } from "../number-spinner/index.esm.js";
|
|
5
|
+
import _e from "../accordion/index.esm.js";
|
|
6
|
+
import ze from "../avatar/index.esm.js";
|
|
7
|
+
import Qe from "../button-edit/index.esm.js";
|
|
8
|
+
import Ze from "../button-group/index.esm.js";
|
|
9
|
+
import Je from "../calendar/index.esm.js";
|
|
10
|
+
import Xe from "../capsule/index.esm.js";
|
|
11
|
+
import Ye from "../checkbox/index.esm.js";
|
|
12
|
+
import Ke from "../combo-list/index.esm.js";
|
|
13
|
+
import et from "../combo-tree/index.esm.js";
|
|
14
|
+
import tt from "../component/index.esm.js";
|
|
15
|
+
import nt from "../color-picker/index.esm.js";
|
|
16
|
+
import ot from "../content-container/index.esm.js";
|
|
17
|
+
import rt from "../date-picker/index.esm.js";
|
|
18
|
+
import at from "../data-grid/index.esm.js";
|
|
19
|
+
import it from "../dropdown/index.esm.js";
|
|
20
|
+
import lt from "../dynamic-form/index.esm.js";
|
|
21
|
+
import st from "../events-editor/index.esm.js";
|
|
22
|
+
import ut from "../filter-bar/index.esm.js";
|
|
23
|
+
import ct from "../field-selector/index.esm.js";
|
|
24
|
+
import dt from "../image-cropper/index.esm.js";
|
|
25
|
+
import pt from "../input-group/index.esm.js";
|
|
26
|
+
import ft from "../layout/index.esm.js";
|
|
27
|
+
import mt from "../list-nav/index.esm.js";
|
|
28
|
+
import gt from "../list-view/index.esm.js";
|
|
29
|
+
import vt from "../lookup/index.esm.js";
|
|
30
|
+
import yt from "../mapping-editor/index.esm.js";
|
|
31
|
+
import bt from "../nav/index.esm.js";
|
|
32
|
+
import ht from "../number-range/index.esm.js";
|
|
33
|
+
import Ct from "../order/index.esm.js";
|
|
34
|
+
import Ft from "../page-header/index.esm.js";
|
|
35
|
+
import xt from "../page-footer/index.esm.js";
|
|
36
|
+
import Tt from "../pagination/index.esm.js";
|
|
37
|
+
import wt from "../progress/index.esm.js";
|
|
38
|
+
import Bt from "../query-solution/index.esm.js";
|
|
39
|
+
import Pt from "../radio-group/index.esm.js";
|
|
40
|
+
import St from "../rate/index.esm.js";
|
|
41
|
+
import kt from "../response-toolbar/index.esm.js";
|
|
42
|
+
import Et from "../response-layout/index.esm.js";
|
|
43
|
+
import It from "../response-layout-editor/index.esm.js";
|
|
44
|
+
import Ot from "../search-box/index.esm.js";
|
|
45
|
+
import Nt from "../section/index.esm.js";
|
|
46
|
+
import Lt from "../smoke-detector/index.esm.js";
|
|
47
|
+
import jt from "../splitter/index.esm.js";
|
|
48
|
+
import Rt from "../step/index.esm.js";
|
|
49
|
+
import At from "../switch/index.esm.js";
|
|
50
|
+
import Dt from "../tabs/index.esm.js";
|
|
51
|
+
import Vt from "../tags/index.esm.js";
|
|
52
|
+
import $t from "../text/index.esm.js";
|
|
53
|
+
import Mt from "../time-picker/index.esm.js";
|
|
54
|
+
import Gt from "../transfer/index.esm.js";
|
|
55
|
+
import qt from "../tree-view/index.esm.js";
|
|
56
|
+
import Wt from "../uploader/index.esm.js";
|
|
57
|
+
import Ht from "../verify-detail/index.esm.js";
|
|
58
|
+
import Ut from "../weather/index.esm.js";
|
|
59
|
+
import _t from "../video/index.esm.js";
|
|
60
|
+
import zt from "../textarea/index.esm.js";
|
|
61
|
+
import Qt from "../schema-selector/index.esm.js";
|
|
62
|
+
import Zt from "../tree-grid/index.esm.js";
|
|
63
|
+
const Jt = {
|
|
67
64
|
width: { type: String, default: "300px" },
|
|
68
65
|
height: { type: Number, default: 10 },
|
|
69
66
|
isWidePanel: { type: Boolean, default: !1 },
|
|
@@ -92,114 +89,114 @@ const Kt = {
|
|
|
92
89
|
/** 属性变更后事件 */
|
|
93
90
|
propertyChanged: { type: Function }
|
|
94
91
|
};
|
|
95
|
-
function
|
|
96
|
-
function t(
|
|
92
|
+
function Xt(e = {}) {
|
|
93
|
+
function t(i, p, a, f) {
|
|
97
94
|
if (typeof a == "number")
|
|
98
|
-
return
|
|
95
|
+
return f[i].length === a;
|
|
99
96
|
if (typeof a == "object") {
|
|
100
|
-
const
|
|
101
|
-
if (
|
|
102
|
-
return Number(
|
|
103
|
-
if (
|
|
104
|
-
return Number(
|
|
105
|
-
if (
|
|
106
|
-
return Number(
|
|
97
|
+
const s = Object.keys(a)[0], m = a[s];
|
|
98
|
+
if (s === "not")
|
|
99
|
+
return Number(f[i].length) !== Number(m);
|
|
100
|
+
if (s === "moreThan")
|
|
101
|
+
return Number(f[i].length) >= Number(m);
|
|
102
|
+
if (s === "lessThan")
|
|
103
|
+
return Number(f[i].length) <= Number(m);
|
|
107
104
|
}
|
|
108
105
|
return !1;
|
|
109
106
|
}
|
|
110
|
-
function n(
|
|
111
|
-
return
|
|
107
|
+
function n(i, p, a, f) {
|
|
108
|
+
return f[i] && f[i].propertyValue && String(f[i].propertyValue.value) === String(a);
|
|
112
109
|
}
|
|
113
|
-
const
|
|
110
|
+
const o = /* @__PURE__ */ new Map([
|
|
114
111
|
["length", t],
|
|
115
112
|
["getProperty", n]
|
|
116
113
|
]);
|
|
117
|
-
Object.keys(e).reduce((
|
|
118
|
-
function
|
|
119
|
-
const a =
|
|
120
|
-
return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param:
|
|
121
|
-
if (
|
|
122
|
-
return { target: a, operator: "length", param: null, value: p[
|
|
123
|
-
const
|
|
124
|
-
return { target: a, operator: "getProperty", param:
|
|
114
|
+
Object.keys(e).reduce((i, p) => (i.set(p, e[p]), i), o);
|
|
115
|
+
function r(i, p) {
|
|
116
|
+
const a = i;
|
|
117
|
+
return typeof p == "number" ? [{ target: a, operator: "length", param: null, value: Number(p) }] : typeof p == "boolean" ? [{ target: a, operator: "getProperty", param: i, value: !!p }] : typeof p == "object" ? Object.keys(p).map((f) => {
|
|
118
|
+
if (f === "length")
|
|
119
|
+
return { target: a, operator: "length", param: null, value: p[f] };
|
|
120
|
+
const s = f, m = p[f];
|
|
121
|
+
return { target: a, operator: "getProperty", param: s, value: m };
|
|
125
122
|
}) : [];
|
|
126
123
|
}
|
|
127
|
-
function
|
|
128
|
-
return Object.keys(
|
|
129
|
-
const
|
|
130
|
-
return a.push(...
|
|
124
|
+
function d(i) {
|
|
125
|
+
return Object.keys(i).reduce((a, f) => {
|
|
126
|
+
const s = r(f, i[f]);
|
|
127
|
+
return a.push(...s), a;
|
|
131
128
|
}, []);
|
|
132
129
|
}
|
|
133
|
-
function
|
|
134
|
-
if (
|
|
135
|
-
const a =
|
|
136
|
-
return a && a(
|
|
130
|
+
function c(i, p) {
|
|
131
|
+
if (o.has(i.operator)) {
|
|
132
|
+
const a = o.get(i.operator);
|
|
133
|
+
return a && a(i.target, i.param, i.value, p) || !1;
|
|
137
134
|
}
|
|
138
135
|
return !1;
|
|
139
136
|
}
|
|
140
|
-
function C(
|
|
141
|
-
return
|
|
137
|
+
function C(i, p) {
|
|
138
|
+
return d(i).reduce((s, m) => s && c(m, p), !0);
|
|
142
139
|
}
|
|
143
|
-
function u(
|
|
144
|
-
const a = Object.keys(
|
|
145
|
-
return
|
|
140
|
+
function u(i, p) {
|
|
141
|
+
const a = Object.keys(i), f = a.includes("allOf"), s = a.includes("anyOf"), m = f || s, L = (m ? i[m ? f ? "allOf" : "anyOf" : "allOf"] : [i]).map((R) => C(R, p));
|
|
142
|
+
return f ? !L.includes(!1) : L.includes(!0);
|
|
146
143
|
}
|
|
147
144
|
return { parseValueSchema: u };
|
|
148
145
|
}
|
|
149
|
-
const
|
|
150
|
-
function
|
|
151
|
-
const { properties: t, title: n, ignore:
|
|
152
|
-
return (!
|
|
146
|
+
const ee = {}, Yt = {};
|
|
147
|
+
function de(e) {
|
|
148
|
+
const { properties: t, title: n, ignore: o } = e, r = o && Array.isArray(o), d = Object.keys(t).reduce((c, C) => ((!r || !o.find((u) => u == C)) && (c[C] = t[C].type === "object" && t[C].properties ? de(t[C]) : Me(t[C].default)), c), {});
|
|
149
|
+
return (!r || !o.find((c) => c == "id")) && (d.id = `${n}-${Date.now()}`), d;
|
|
153
150
|
}
|
|
154
|
-
function
|
|
155
|
-
const n =
|
|
156
|
-
return Object.keys(e).reduce((
|
|
151
|
+
function te(e, t) {
|
|
152
|
+
const n = de(t);
|
|
153
|
+
return Object.keys(e).reduce((o, r) => (o[r] && le(o[r]) && le(e[r]) ? Object.assign(o[r], e[r]) : o[r] = e[r], o), n), n;
|
|
157
154
|
}
|
|
158
|
-
function
|
|
159
|
-
return Object.keys(e).filter((
|
|
160
|
-
if (t.has(
|
|
161
|
-
const
|
|
162
|
-
if (typeof
|
|
163
|
-
|
|
155
|
+
function Kt(e, t) {
|
|
156
|
+
return Object.keys(e).filter((o) => e[o] != null).reduce((o, r) => {
|
|
157
|
+
if (t.has(r)) {
|
|
158
|
+
const d = t.get(r);
|
|
159
|
+
if (typeof d == "string")
|
|
160
|
+
o[d] = e[r];
|
|
164
161
|
else {
|
|
165
|
-
const
|
|
166
|
-
Object.assign(
|
|
162
|
+
const c = d(r, e[r], e);
|
|
163
|
+
Object.assign(o, c);
|
|
167
164
|
}
|
|
168
165
|
} else
|
|
169
|
-
r
|
|
170
|
-
return
|
|
166
|
+
o[r] = e[r];
|
|
167
|
+
return o;
|
|
171
168
|
}, {});
|
|
172
169
|
}
|
|
173
|
-
function
|
|
174
|
-
const
|
|
175
|
-
return
|
|
170
|
+
function en(e, t, n = /* @__PURE__ */ new Map()) {
|
|
171
|
+
const o = te(e, t);
|
|
172
|
+
return Kt(o, n);
|
|
176
173
|
}
|
|
177
|
-
function
|
|
174
|
+
function pe(e) {
|
|
178
175
|
var n;
|
|
179
176
|
const t = e.type;
|
|
180
177
|
if (t) {
|
|
181
|
-
const
|
|
182
|
-
if (
|
|
183
|
-
const
|
|
184
|
-
|
|
178
|
+
const o = ee[t], r = te(e, o), d = ((n = e.editor) == null ? void 0 : n.type) || "";
|
|
179
|
+
if (d) {
|
|
180
|
+
const c = ee[d], C = te(e.editor, c);
|
|
181
|
+
r.editor = C;
|
|
185
182
|
}
|
|
186
|
-
return
|
|
183
|
+
return r;
|
|
187
184
|
}
|
|
188
185
|
return e;
|
|
189
186
|
}
|
|
190
|
-
const
|
|
191
|
-
convertTo: (e, t, n,
|
|
187
|
+
const tn = {
|
|
188
|
+
convertTo: (e, t, n, o) => {
|
|
192
189
|
e.appearance && (e.appearance[t] = n);
|
|
193
190
|
},
|
|
194
191
|
convertFrom: (e, t, n) => e.appearance ? e.appearance[t] : e[t]
|
|
195
|
-
},
|
|
192
|
+
}, nn = {
|
|
196
193
|
convertFrom: (e, t, n) => e.buttons && e.buttons.length ? `共 ${e.buttons.length} 项` : "无"
|
|
197
|
-
},
|
|
198
|
-
convertTo: (e, t, n,
|
|
194
|
+
}, on = {
|
|
195
|
+
convertTo: (e, t, n, o) => {
|
|
199
196
|
e.editor && (e.editor[t] = n);
|
|
200
197
|
},
|
|
201
198
|
convertFrom: (e, t, n) => e.editor && e.editor.hasOwnProperty(t) ? e.editor[t] : e[t]
|
|
202
|
-
},
|
|
199
|
+
}, rn = {
|
|
203
200
|
button: { type: "button", name: "按钮", icon: "Button" },
|
|
204
201
|
"response-toolbar": { type: "response-toolbar", name: "工具栏", icon: "ButtonGroup" },
|
|
205
202
|
"response-toolbar-item": { type: "response-toolbar-item", name: "按钮", icon: "Button" },
|
|
@@ -236,153 +233,50 @@ const rn = {
|
|
|
236
233
|
uploader: { type: "uploader", name: "附件上传", icon: "FileUpload" },
|
|
237
234
|
"page-header": { type: "page-header", name: "页头", icon: "Header" },
|
|
238
235
|
"page-footer": { type: "page-footer", name: "页脚", icon: "ModalFooter" },
|
|
239
|
-
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" }
|
|
240
|
-
|
|
236
|
+
"tab-toolbar": { type: "tab-toolbar", name: "标签页工具栏", icon: "TabToolbar" },
|
|
237
|
+
fieldset: { type: "fieldset", name: "分组", icon: "fieldset" }
|
|
238
|
+
}, an = {
|
|
241
239
|
convertFrom: (e, t, n) => {
|
|
242
|
-
var
|
|
243
|
-
const
|
|
244
|
-
return ((
|
|
240
|
+
var r;
|
|
241
|
+
const o = e.editor && e.editor[t] ? e.editor[t] : e[t];
|
|
242
|
+
return ((r = rn[o]) == null ? void 0 : r.name) || o;
|
|
245
243
|
}
|
|
246
|
-
},
|
|
247
|
-
convertTo: (e, t, n,
|
|
244
|
+
}, ln = {
|
|
245
|
+
convertTo: (e, t, n, o) => {
|
|
248
246
|
e[t] = e[t];
|
|
249
247
|
},
|
|
250
248
|
convertFrom: (e, t, n) => e.editor ? n.getRealEditorType(e.editor.type) : ""
|
|
251
|
-
},
|
|
249
|
+
}, sn = {
|
|
252
250
|
convertFrom: (e, t) => e.binding ? e.binding.path : "",
|
|
253
251
|
convertTo: (e, t, n) => {
|
|
254
252
|
if (n && n.length > 0) {
|
|
255
|
-
const
|
|
256
|
-
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path =
|
|
253
|
+
const o = n[0];
|
|
254
|
+
e.binding || (e.binding = {}), e.binding.type = "Form", e.binding.path = o.bindingField, e.binding.field = o.id, e.binding.fullPath = o.path, e.path = o.bindingPath;
|
|
257
255
|
}
|
|
258
256
|
}
|
|
259
|
-
},
|
|
260
|
-
convertTo: (e, t, n,
|
|
257
|
+
}, un = {
|
|
258
|
+
convertTo: (e, t, n, o) => {
|
|
261
259
|
e.pagination || (e.pagination = {}), e.pagination[t] = n;
|
|
262
260
|
},
|
|
263
261
|
convertFrom: (e, t, n) => e.pagination ? e.pagination[t] : e[t]
|
|
264
|
-
}
|
|
265
|
-
class fn {
|
|
266
|
-
constructor() {
|
|
267
|
-
/** 控件标题 */
|
|
268
|
-
A(this, "label", "");
|
|
269
|
-
/** 控件id */
|
|
270
|
-
A(this, "id", "");
|
|
271
|
-
/** 每个控件占用的栅格数 */
|
|
272
|
-
A(this, "columnInSM", 12);
|
|
273
|
-
A(this, "columnInMD", 6);
|
|
274
|
-
A(this, "columnInLG", 3);
|
|
275
|
-
A(this, "columnInEL", 2);
|
|
276
|
-
/** 每个控件占用的列数 */
|
|
277
|
-
A(this, "displayWidthInSM", 1);
|
|
278
|
-
A(this, "displayWidthInMD", 1);
|
|
279
|
-
A(this, "displayWidthInLG", 1);
|
|
280
|
-
A(this, "displayWidthInEL", 1);
|
|
281
|
-
/** 编辑器内部默认显示的屏幕大小-----可以去掉 */
|
|
282
|
-
A(this, "displayColumnCountAtBreakPoint", "md");
|
|
283
|
-
/** 控件所在行,传0即可-----编辑器内部使用 */
|
|
284
|
-
A(this, "tagRow", 0);
|
|
285
|
-
/** 控件是否显示上方空白:传0即可-----编辑器内部使用 */
|
|
286
|
-
A(this, "showTopBorder", 0);
|
|
287
|
-
/** 区域,从1开始。卡片内的控件从上往下,从左往右划分区域,遇到分组fieldSet时group+1,分组结束后group+1 */
|
|
288
|
-
A(this, "group", 1);
|
|
289
|
-
/** 控件是否符合标准的class配置(设计器用的) */
|
|
290
|
-
A(this, "isSupportedClass", !0);
|
|
291
|
-
/** 控件所在分组id(设计器用的) */
|
|
292
|
-
A(this, "fieldSetId", "");
|
|
293
|
-
}
|
|
294
|
-
}
|
|
295
|
-
function mn() {
|
|
296
|
-
let e, t;
|
|
297
|
-
const n = /* @__PURE__ */ new Map();
|
|
298
|
-
let r = [];
|
|
299
|
-
function l(u, o) {
|
|
300
|
-
const a = u.split(" ").filter((T) => T.startsWith("col-"));
|
|
301
|
-
if (a.length === 0) {
|
|
302
|
-
o.isSupportedClass = !1;
|
|
303
|
-
return;
|
|
304
|
-
}
|
|
305
|
-
let s = a.find((T) => /^col-([1-9]|10|11|12)$/.test(T)), i = a.find((T) => /^col-md-([1-9]|10|11|12)$/.test(T)), d = a.find((T) => /^col-xl-([1-9]|10|11|12)$/.test(T)), v = a.find((T) => /^col-el-([1-9]|10|11|12)$/.test(T));
|
|
306
|
-
s = s || "col-12", o.columnInSM = parseInt(s.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), d = d || "col-xl-" + o.columnInMD, o.columnInLG = parseInt(d.replace("col-xl-", ""), 10), o.displayWidthInLG = o.columnInLG / 3, [1, 2, 3, 4].includes(o.displayWidthInLG) || (o.isSupportedClass = !1), v = v || "col-el-" + o.columnInLG, o.columnInEL = parseInt(v.replace("col-el-", ""), 10), o.displayWidthInEL = o.columnInEL / 2, [1, 2, 3, 4, 5, 6].includes(o.displayWidthInEL) || (o.isSupportedClass = !1);
|
|
307
|
-
}
|
|
308
|
-
function m(u, o, p, a = !1) {
|
|
309
|
-
let s = !1;
|
|
310
|
-
u.contents.forEach((i) => {
|
|
311
|
-
if (i.type === "FieldSet") {
|
|
312
|
-
p += 1, m(i, o, p, !0), s = !0;
|
|
313
|
-
return;
|
|
314
|
-
}
|
|
315
|
-
s && (p += 1, s = !1);
|
|
316
|
-
const d = i.appearance && i.appearance.class, v = new fn();
|
|
317
|
-
d ? l(d, v) : v.isSupportedClass = !1, v.label = i.label || i.id, v.id = i.id, v.group = p, a && (v.fieldSetId = u.id), t === i.id && (e = p), n.set(i.id, i), o.push(v);
|
|
318
|
-
});
|
|
319
|
-
}
|
|
320
|
-
function f(u, o, p, a) {
|
|
321
|
-
a = a || u.id;
|
|
322
|
-
const s = p.closest(a, "content-container");
|
|
323
|
-
if (!s)
|
|
324
|
-
return { result: !1, message: "只可以在响应式表单组件中调整响应式布局配置" };
|
|
325
|
-
if (!s || !s.contents || s.contents.length === 0)
|
|
326
|
-
return { result: !1, message: "Form区域内没有控件,请先添加控件" };
|
|
327
|
-
t = u.id, r = [], n.clear();
|
|
328
|
-
const i = s.contents[0].type === "FieldSet" ? 0 : 1;
|
|
329
|
-
m(s, r, i);
|
|
330
|
-
const d = r.find((T) => !T.isSupportedClass);
|
|
331
|
-
return {
|
|
332
|
-
defaultState: {
|
|
333
|
-
defaultGroupNumber: e || 1,
|
|
334
|
-
model: d ? "customize" : "standard"
|
|
335
|
-
},
|
|
336
|
-
importData: r
|
|
337
|
-
};
|
|
338
|
-
}
|
|
339
|
-
function C(u, o, p, a, s) {
|
|
340
|
-
s = s || u.id;
|
|
341
|
-
const i = a.closest(s, "response-form");
|
|
342
|
-
if (!i)
|
|
343
|
-
return;
|
|
344
|
-
const d = [];
|
|
345
|
-
return p.forEach((v) => {
|
|
346
|
-
var j;
|
|
347
|
-
const T = n.get(v.id), N = T.appearance && T.appearance.class;
|
|
348
|
-
if (N) {
|
|
349
|
-
const I = N.split(" ").filter((R) => !R.startsWith("col-")), k = "col-" + v.columnInSM, O = "col-md-" + v.columnInMD, B = "col-xl-" + v.columnInLG, G = "col-el-" + v.columnInEL, D = [k, O, B, G].concat(I);
|
|
350
|
-
T.appearance.class = D.join(" ");
|
|
351
|
-
}
|
|
352
|
-
if (v.fieldSetId) {
|
|
353
|
-
const L = i.contents.find((k) => k.id === v.fieldSetId), I = d.find((k) => k.id === v.fieldSetId);
|
|
354
|
-
I ? (j = I.contents) == null || j.push(T) : (d.push(L), L.contents = [T]);
|
|
355
|
-
} else
|
|
356
|
-
d.push(T);
|
|
357
|
-
}), i.contents = d, i.id;
|
|
358
|
-
}
|
|
359
|
-
return {
|
|
360
|
-
convertFrom: f,
|
|
361
|
-
convertTo: C
|
|
362
|
-
};
|
|
363
|
-
}
|
|
364
|
-
const se = mn(), vn = {
|
|
365
|
-
convertTo: (e, t, n, r, l) => se.convertTo(e, t, n, r, l),
|
|
366
|
-
convertFrom: (e, t, n, r) => se.convertFrom(e, t, n, r)
|
|
367
|
-
}, gn = {
|
|
262
|
+
}, cn = {
|
|
368
263
|
convertFrom: (e, t, n) => e[t] && e[t].length ? `共 ${e[t].length} 项` : ""
|
|
369
|
-
},
|
|
264
|
+
}, dn = {
|
|
370
265
|
convertFrom: (e, t) => e[t] || "",
|
|
371
266
|
convertTo: (e, t, n) => {
|
|
372
267
|
e[t] = n;
|
|
373
268
|
}
|
|
374
|
-
},
|
|
375
|
-
["/converter/appearance.converter",
|
|
376
|
-
["/converter/buttons.converter",
|
|
377
|
-
["/converter/property-editor.converter",
|
|
378
|
-
["/converter/
|
|
379
|
-
["/converter/
|
|
380
|
-
["/converter/
|
|
381
|
-
["/converter/
|
|
382
|
-
["/converter/
|
|
383
|
-
["/converter/
|
|
384
|
-
|
|
385
|
-
]), bn = {}, hn = /* @__PURE__ */ new Map([
|
|
269
|
+
}, oe = {}, ne = /* @__PURE__ */ new Map([
|
|
270
|
+
["/converter/appearance.converter", tn],
|
|
271
|
+
["/converter/buttons.converter", nn],
|
|
272
|
+
["/converter/property-editor.converter", on],
|
|
273
|
+
["/converter/items-count.converter", cn],
|
|
274
|
+
["/converter/type.converter", an],
|
|
275
|
+
["/converter/change-editor.converter", ln],
|
|
276
|
+
["/converter/form-group-label.converter", dn],
|
|
277
|
+
["/converter/field-selector.converter", sn],
|
|
278
|
+
["/converter/pagination.converter", un]
|
|
279
|
+
]), pn = {}, fn = /* @__PURE__ */ new Map([
|
|
386
280
|
["string", { type: "input-group", enableClear: !1 }],
|
|
387
281
|
["boolean", {
|
|
388
282
|
type: "combo-list",
|
|
@@ -404,72 +298,72 @@ const se = mn(), vn = {
|
|
|
404
298
|
["array", { type: "button-edit" }],
|
|
405
299
|
["number", { type: "number-spinner" }],
|
|
406
300
|
["events-editor", { type: "events-editor", hide: !0 }]
|
|
407
|
-
]),
|
|
408
|
-
function
|
|
409
|
-
return () =>
|
|
301
|
+
]), mn = Xt();
|
|
302
|
+
function fe(e, t) {
|
|
303
|
+
return () => mn.parseValueSchema(e, t);
|
|
410
304
|
}
|
|
411
|
-
function
|
|
412
|
-
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 :
|
|
305
|
+
function gn(e, t, n) {
|
|
306
|
+
return e.includes("visible") && t.visible !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : t.visible === void 0 ? !0 : fe(t.visible, n) : () => !0;
|
|
413
307
|
}
|
|
414
|
-
function
|
|
415
|
-
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible :
|
|
308
|
+
function vn(e, t, n) {
|
|
309
|
+
return e.includes("readonly") && t.readonly !== void 0 ? typeof t.visible == "boolean" ? () => !!t.visible : fe(t.readonly, n) : () => !1;
|
|
416
310
|
}
|
|
417
|
-
function
|
|
311
|
+
function yn(e, t) {
|
|
418
312
|
const n = e.$converter || t;
|
|
419
|
-
return typeof n == "string" && n &&
|
|
313
|
+
return typeof n == "string" && n && ne.has(n) ? ne.get(n) || null : n || null;
|
|
420
314
|
}
|
|
421
|
-
function
|
|
315
|
+
function re(e, t, n, o, r, d = "", c = "") {
|
|
422
316
|
return Object.keys(e).map((u) => {
|
|
423
|
-
const
|
|
424
|
-
let
|
|
425
|
-
const O =
|
|
317
|
+
const i = h(1), p = u, a = e[u], f = Object.keys(a), s = a.title, m = a.type, w = fn.get(m) || { type: "input-group", enableClear: !1 }, k = a.editor ? Object.assign({}, w, a.editor) : w, L = gn(f, a, t), A = vn(f, a, t), R = a.type === "cascade" ? re(a.properties, t, n, o, r, d, c) : [], E = !0;
|
|
318
|
+
let I = yn(a, c);
|
|
319
|
+
const O = S({
|
|
426
320
|
get() {
|
|
427
|
-
if (
|
|
428
|
-
if (["class", "style"].find((
|
|
429
|
-
return
|
|
430
|
-
const
|
|
431
|
-
return typeof
|
|
321
|
+
if (i.value) {
|
|
322
|
+
if (["class", "style"].find((G) => G == p) && !I && (I = ne.get("/converter/appearance.converter") || null), I && I.convertFrom)
|
|
323
|
+
return I.convertFrom(n, u, r, d);
|
|
324
|
+
const j = n[u];
|
|
325
|
+
return typeof j == "string" && j == "" ? a.defaultValue || "" : j;
|
|
432
326
|
}
|
|
433
327
|
return null;
|
|
434
328
|
},
|
|
435
|
-
set(
|
|
436
|
-
|
|
329
|
+
set(j) {
|
|
330
|
+
i.value += 1, I && I.convertTo ? (I.convertTo(o, u, j, r, d), I.convertTo(n, u, j, r, d)) : (o[u] = j, n[u] = j);
|
|
437
331
|
}
|
|
438
|
-
}), B = a.refreshPanelAfterChanged,
|
|
439
|
-
return t[p] =
|
|
332
|
+
}), B = a.refreshPanelAfterChanged, $ = { propertyID: p, propertyName: s, propertyType: m, propertyValue: O, editor: k, visible: L, readonly: A, cascadeConfig: R, hideCascadeTitle: E, refreshPanelAfterChanged: B };
|
|
333
|
+
return t[p] = $, $;
|
|
440
334
|
});
|
|
441
335
|
}
|
|
442
|
-
function
|
|
443
|
-
const
|
|
336
|
+
function bn(e, t, n, o, r = "") {
|
|
337
|
+
const d = t.$ref.schema, c = t.$ref.converter, C = n[d], u = C.type, i = pe(C), p = {}, a = oe[u];
|
|
444
338
|
if (a && a.categories) {
|
|
445
|
-
const
|
|
446
|
-
|
|
447
|
-
|
|
339
|
+
const f = a.categories[e], s = f == null ? void 0 : f.title;
|
|
340
|
+
c && Object.keys(f.properties).forEach((k) => {
|
|
341
|
+
f.properties[k].$converter = c;
|
|
448
342
|
});
|
|
449
|
-
const
|
|
450
|
-
return { categoryId: e, categoryName:
|
|
343
|
+
const m = (f == null ? void 0 : f.properties) || {}, w = re(m, p, i, C, o, r);
|
|
344
|
+
return { categoryId: e, categoryName: s, properties: w };
|
|
451
345
|
}
|
|
452
346
|
return { categoryId: e, categoryName: "", properties: [] };
|
|
453
347
|
}
|
|
454
|
-
function
|
|
455
|
-
let
|
|
456
|
-
const
|
|
457
|
-
let u =
|
|
458
|
-
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(
|
|
459
|
-
const
|
|
348
|
+
function K(e, t, n, o, r) {
|
|
349
|
+
let d = e.type;
|
|
350
|
+
const c = pe(e), C = {};
|
|
351
|
+
let u = r || oe[d];
|
|
352
|
+
if (Object.keys(u).length === 0 && n && n.getPropConfig && (u = n.getPropConfig(o)), u && u.categories) {
|
|
353
|
+
const i = [];
|
|
460
354
|
return Object.keys(u.categories).map((p) => {
|
|
461
355
|
const a = u.categories[p];
|
|
462
356
|
if (a.$ref) {
|
|
463
|
-
|
|
357
|
+
i.push(bn(p, a, e, t, o));
|
|
464
358
|
return;
|
|
465
359
|
}
|
|
466
|
-
const
|
|
467
|
-
|
|
468
|
-
}),
|
|
360
|
+
const f = a == null ? void 0 : a.title, s = a == null ? void 0 : a.tabId, m = a == null ? void 0 : a.tabName, w = a == null ? void 0 : a.hide, k = a == null ? void 0 : a.hideTitle, L = re(a.properties || {}, C, c, e, t, o, a.$converter), A = a.setPropertyRelates;
|
|
361
|
+
i.push({ categoryId: p, categoryName: f, tabId: s, tabName: m, hide: w, properties: L, hideTitle: k, setPropertyRelates: A });
|
|
362
|
+
}), i;
|
|
469
363
|
}
|
|
470
364
|
return [];
|
|
471
365
|
}
|
|
472
|
-
const
|
|
366
|
+
const hn = {
|
|
473
367
|
/** 某一分类下的属性配置 */
|
|
474
368
|
// as PropType<ElementPropertyConfig>
|
|
475
369
|
category: { type: Object, default: {} },
|
|
@@ -478,22 +372,22 @@ const Pn = {
|
|
|
478
372
|
propertyData: { type: Object, default: {} },
|
|
479
373
|
valueChanged: { type: Function },
|
|
480
374
|
triggerRefreshPanel: { type: Function }
|
|
481
|
-
},
|
|
375
|
+
}, Cn = {
|
|
482
376
|
elementConfig: { type: Object, default: {} },
|
|
483
377
|
category: { type: Object, default: {} }
|
|
484
378
|
};
|
|
485
|
-
function
|
|
486
|
-
return
|
|
487
|
-
const C =
|
|
379
|
+
function me(e, t, n = /* @__PURE__ */ new Map(), o = (c, C, u) => C, r = {}, d = (c) => c) {
|
|
380
|
+
return ee[t.title] = t, Yt[t.title] = o, oe[t.title] = r, pn[t.title] = d, (c = {}) => {
|
|
381
|
+
const C = en(c, t, n), u = Object.keys(e).reduce((i, p) => (i[p] = e[p].default, i), {});
|
|
488
382
|
return Object.assign(u, C);
|
|
489
383
|
};
|
|
490
384
|
}
|
|
491
385
|
function ge(e, t) {
|
|
492
386
|
return { customClass: t.class, customStyle: t.style };
|
|
493
387
|
}
|
|
494
|
-
const
|
|
388
|
+
const Fn = /* @__PURE__ */ new Map([
|
|
495
389
|
["appearance", ge]
|
|
496
|
-
]),
|
|
390
|
+
]), xn = "https://json-schema.org/draft/2020-12/schema", Tn = "https://farris-design.gitee.io/form-group.schema.json", wn = "form-group", Bn = "A Farris Input Component", Pn = "object", Sn = {
|
|
497
391
|
id: {
|
|
498
392
|
description: "The unique identifier for a form group",
|
|
499
393
|
type: "string"
|
|
@@ -534,18 +428,18 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
534
428
|
description: "",
|
|
535
429
|
type: "number"
|
|
536
430
|
}
|
|
537
|
-
},
|
|
431
|
+
}, kn = [
|
|
538
432
|
"id",
|
|
539
433
|
"type"
|
|
540
|
-
],
|
|
541
|
-
$schema:
|
|
542
|
-
$id:
|
|
543
|
-
title:
|
|
544
|
-
description:
|
|
545
|
-
type:
|
|
546
|
-
properties:
|
|
547
|
-
required:
|
|
548
|
-
},
|
|
434
|
+
], En = {
|
|
435
|
+
$schema: xn,
|
|
436
|
+
$id: Tn,
|
|
437
|
+
title: wn,
|
|
438
|
+
description: Bn,
|
|
439
|
+
type: Pn,
|
|
440
|
+
properties: Sn,
|
|
441
|
+
required: kn
|
|
442
|
+
}, ve = {
|
|
549
443
|
id: { type: String, default: "" },
|
|
550
444
|
customClass: { type: String, default: "" },
|
|
551
445
|
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
@@ -559,43 +453,43 @@ const xn = /* @__PURE__ */ new Map([
|
|
|
559
453
|
showLabel: { type: Boolean, default: !0 },
|
|
560
454
|
type: { type: String, default: "input-group" }
|
|
561
455
|
};
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
456
|
+
me(
|
|
457
|
+
ve,
|
|
458
|
+
En,
|
|
459
|
+
Fn,
|
|
566
460
|
void 0
|
|
567
461
|
);
|
|
568
|
-
const
|
|
462
|
+
const In = {
|
|
569
463
|
id: { type: String },
|
|
570
464
|
required: { type: Boolean, default: !1 },
|
|
571
465
|
text: { type: String, default: "" },
|
|
572
466
|
title: { type: String }
|
|
573
|
-
},
|
|
467
|
+
}, On = /* @__PURE__ */ H({
|
|
574
468
|
name: "FDynamicFormLabel",
|
|
575
|
-
props:
|
|
469
|
+
props: In,
|
|
576
470
|
emits: [],
|
|
577
471
|
setup(e, t) {
|
|
578
|
-
const n =
|
|
472
|
+
const n = h(e.title || e.text), o = h(e.required), r = h(e.text);
|
|
579
473
|
return V(() => e.text, () => {
|
|
580
|
-
|
|
581
|
-
}), V(() => e.required, (
|
|
582
|
-
|
|
583
|
-
}), () =>
|
|
474
|
+
r.value = e.text;
|
|
475
|
+
}), V(() => e.required, (d, c) => {
|
|
476
|
+
d !== c && (o.value = d);
|
|
477
|
+
}), () => r.value && l("label", {
|
|
584
478
|
class: "col-form-label",
|
|
585
479
|
title: n.value
|
|
586
|
-
}, [
|
|
480
|
+
}, [o.value && l("span", {
|
|
587
481
|
class: "farris-label-info text-danger"
|
|
588
|
-
}, [
|
|
482
|
+
}, [ce("*")]), l("span", {
|
|
589
483
|
class: "farris-label-text"
|
|
590
|
-
}, [
|
|
484
|
+
}, [r.value])]);
|
|
591
485
|
}
|
|
592
|
-
}),
|
|
486
|
+
}), Nn = /* @__PURE__ */ new Map([
|
|
593
487
|
["appearance", ge]
|
|
594
488
|
]);
|
|
595
|
-
function
|
|
489
|
+
function Ln(e, t, n) {
|
|
596
490
|
return t;
|
|
597
491
|
}
|
|
598
|
-
const
|
|
492
|
+
const jn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-design.gitee.io/input-group.schema.json", An = "input-group", Dn = "A Farris Input Component", Vn = "object", $n = {
|
|
599
493
|
id: {
|
|
600
494
|
description: "The unique identifier for a Input Group",
|
|
601
495
|
type: "string"
|
|
@@ -797,18 +691,19 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
797
691
|
type: "string",
|
|
798
692
|
default: ""
|
|
799
693
|
}
|
|
800
|
-
},
|
|
694
|
+
}, Mn = [
|
|
801
695
|
"id",
|
|
802
696
|
"type"
|
|
803
|
-
],
|
|
804
|
-
$schema:
|
|
697
|
+
], Gn = {
|
|
698
|
+
$schema: jn,
|
|
805
699
|
$id: Rn,
|
|
806
|
-
title:
|
|
807
|
-
description:
|
|
808
|
-
type:
|
|
809
|
-
properties:
|
|
810
|
-
required:
|
|
811
|
-
},
|
|
700
|
+
title: An,
|
|
701
|
+
description: Dn,
|
|
702
|
+
type: Vn,
|
|
703
|
+
properties: $n,
|
|
704
|
+
required: Mn
|
|
705
|
+
}, ye = {
|
|
706
|
+
id: { Type: String, default: "" },
|
|
812
707
|
/** 是否自动完成 */
|
|
813
708
|
autocomplete: { Type: String, default: "off" },
|
|
814
709
|
/** 自定义CLASS */
|
|
@@ -875,421 +770,421 @@ const Gn = "https://json-schema.org/draft/2020-12/schema", Rn = "https://farris-
|
|
|
875
770
|
*/
|
|
876
771
|
updateOn: { type: String, default: "blur" }
|
|
877
772
|
};
|
|
878
|
-
|
|
879
|
-
function
|
|
880
|
-
const
|
|
773
|
+
me(ye, Gn, Nn, Ln);
|
|
774
|
+
function qn(e, t, n, o) {
|
|
775
|
+
const r = h(e.disabled), d = h(!1), c = h("text"), C = h(e.showBorder), u = h(e.textAlign), i = h(e.updateOn), p = S(() => e.editable || !e.readonly), a = S(() => e.editable && !e.disabled && !e.readonly), f = S(() => !e.disabled && d.value), s = S(() => n.value === "" || n.value === null || n.value === void 0), m = S(() => (e.disabled || e.readonly) && !e.forcePlaceholder ? "" : e.placeholder), w = S(() => e.readonly || !e.editable), k = S(() => e.enableTitle ? n.value : ""), L = S(() => ({
|
|
881
776
|
"form-control": !0,
|
|
882
777
|
"f-utils-fill": !0,
|
|
883
778
|
"text-left": u.value === "left",
|
|
884
779
|
"text-center": u.value === "center",
|
|
885
780
|
"text-right": u.value === "right"
|
|
886
|
-
})),
|
|
887
|
-
const
|
|
781
|
+
})), A = S(() => {
|
|
782
|
+
const P = {
|
|
888
783
|
"f-cmp-inputgroup": !0,
|
|
889
784
|
"input-group": !0,
|
|
890
|
-
"f-state-disable":
|
|
785
|
+
"f-state-disable": r.value,
|
|
891
786
|
"f-state-editable": a.value,
|
|
892
|
-
"f-state-readonly":
|
|
893
|
-
"f-state-focus":
|
|
787
|
+
"f-state-readonly": w.value,
|
|
788
|
+
"f-state-focus": f.value
|
|
894
789
|
};
|
|
895
|
-
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q),
|
|
896
|
-
}),
|
|
897
|
-
function
|
|
898
|
-
n.value =
|
|
790
|
+
return (e.customClass || "").split(" ").reduce((q, J) => (q[J] = !0, q), P), P;
|
|
791
|
+
}), R = S(() => C.value ? "" : "border-width : 0 ");
|
|
792
|
+
function E(P, D = !0) {
|
|
793
|
+
n.value = P, o.value !== P && (o.value = P), D && t.emit("change", P), t.emit("update:modelValue", P), t.emit("update:value", P);
|
|
899
794
|
}
|
|
900
795
|
V(
|
|
901
796
|
() => e.modelValue,
|
|
902
|
-
(
|
|
903
|
-
|
|
797
|
+
(P, D) => {
|
|
798
|
+
P !== D && (n.value = P, o.value = P);
|
|
904
799
|
}
|
|
905
|
-
), V(() => e.disabled, (
|
|
906
|
-
|
|
800
|
+
), V(() => e.disabled, (P, D) => {
|
|
801
|
+
P !== D && (r.value = P);
|
|
907
802
|
});
|
|
908
|
-
function
|
|
909
|
-
return
|
|
803
|
+
function I(P) {
|
|
804
|
+
return d.value = !1, t.emit("blur", P), P.stopPropagation(), !1;
|
|
910
805
|
}
|
|
911
|
-
function O(
|
|
912
|
-
t.emit("click",
|
|
806
|
+
function O(P) {
|
|
807
|
+
t.emit("click", P);
|
|
913
808
|
}
|
|
914
|
-
function B(
|
|
915
|
-
e.disabled || (C.value && (
|
|
809
|
+
function B(P) {
|
|
810
|
+
e.disabled || (C.value && (d.value = !0), p.value && t.emit("focus", P));
|
|
916
811
|
}
|
|
917
|
-
function
|
|
918
|
-
t.emit("input",
|
|
919
|
-
const
|
|
920
|
-
|
|
812
|
+
function $(P) {
|
|
813
|
+
t.emit("input", P.target.value);
|
|
814
|
+
const D = P.target.value;
|
|
815
|
+
o.value = D, i.value === "change" && (t.emit("update:modelValue", D), t.emit("update:value", D));
|
|
921
816
|
}
|
|
922
|
-
function
|
|
923
|
-
t.emit("keydown",
|
|
817
|
+
function j(P) {
|
|
818
|
+
t.emit("keydown", P);
|
|
924
819
|
}
|
|
925
|
-
function
|
|
926
|
-
t.emit("keyup",
|
|
820
|
+
function G(P) {
|
|
821
|
+
t.emit("keyup", P);
|
|
927
822
|
}
|
|
928
|
-
function
|
|
929
|
-
|
|
823
|
+
function U(P) {
|
|
824
|
+
P.target.tagName !== "INPUT" && P.preventDefault(), P.stopPropagation();
|
|
930
825
|
}
|
|
931
|
-
function
|
|
932
|
-
if (
|
|
933
|
-
const
|
|
934
|
-
|
|
826
|
+
function _(P) {
|
|
827
|
+
if (i.value === "blur") {
|
|
828
|
+
const D = P.target.value;
|
|
829
|
+
P.stopPropagation(), E(D);
|
|
935
830
|
}
|
|
936
831
|
}
|
|
937
832
|
return {
|
|
938
|
-
changeTextBoxValue:
|
|
939
|
-
disabled:
|
|
940
|
-
displayText:
|
|
833
|
+
changeTextBoxValue: E,
|
|
834
|
+
disabled: r,
|
|
835
|
+
displayText: o,
|
|
941
836
|
editable: a,
|
|
942
|
-
hasFocused:
|
|
943
|
-
inputGroupClass:
|
|
944
|
-
inputType:
|
|
945
|
-
isEmpty:
|
|
837
|
+
hasFocused: f,
|
|
838
|
+
inputGroupClass: A,
|
|
839
|
+
inputType: c,
|
|
840
|
+
isEmpty: s,
|
|
946
841
|
modelValue: n,
|
|
947
|
-
readonly:
|
|
948
|
-
onBlur:
|
|
842
|
+
readonly: w,
|
|
843
|
+
onBlur: I,
|
|
949
844
|
onClick: O,
|
|
950
845
|
onFocus: B,
|
|
951
|
-
onInput:
|
|
952
|
-
onKeydown:
|
|
953
|
-
onKeyup:
|
|
954
|
-
onMousedown:
|
|
955
|
-
onTextBoxValueChange:
|
|
956
|
-
placeholder:
|
|
957
|
-
textBoxClass:
|
|
958
|
-
textBoxTitle:
|
|
959
|
-
inputGroupStyle:
|
|
846
|
+
onInput: $,
|
|
847
|
+
onKeydown: j,
|
|
848
|
+
onKeyup: G,
|
|
849
|
+
onMousedown: U,
|
|
850
|
+
onTextBoxValueChange: _,
|
|
851
|
+
placeholder: m,
|
|
852
|
+
textBoxClass: L,
|
|
853
|
+
textBoxTitle: k,
|
|
854
|
+
inputGroupStyle: R
|
|
960
855
|
};
|
|
961
856
|
}
|
|
962
|
-
function
|
|
963
|
-
const
|
|
964
|
-
function
|
|
965
|
-
|
|
857
|
+
function Wn(e, t, n) {
|
|
858
|
+
const o = h(!1), r = S(() => e.enableClear && !e.readonly && !e.disabled), { changeTextBoxValue: d, displayText: c, hasFocused: C, isEmpty: u } = n;
|
|
859
|
+
function i(w) {
|
|
860
|
+
o.value = w;
|
|
966
861
|
}
|
|
967
|
-
V(
|
|
968
|
-
C != null && C.value ?
|
|
862
|
+
V(c, () => {
|
|
863
|
+
C != null && C.value ? i(!!(c != null && c.value)) : i(!1);
|
|
969
864
|
});
|
|
970
|
-
const p =
|
|
865
|
+
const p = S(() => ({
|
|
971
866
|
"input-group-text": !0,
|
|
972
867
|
"input-group-clear": !0
|
|
973
|
-
})), a =
|
|
868
|
+
})), a = S(() => ({
|
|
974
869
|
width: "24px",
|
|
975
|
-
display:
|
|
870
|
+
display: o.value ? "flex" : "none"
|
|
976
871
|
}));
|
|
977
|
-
function
|
|
978
|
-
|
|
872
|
+
function f(w) {
|
|
873
|
+
w.stopPropagation(), r.value && (d("", !0), i(!o.value), t.emit("clear"));
|
|
979
874
|
}
|
|
980
|
-
function
|
|
981
|
-
|
|
875
|
+
function s(w) {
|
|
876
|
+
r.value && !u.value && i(!0);
|
|
982
877
|
}
|
|
983
|
-
function
|
|
984
|
-
|
|
878
|
+
function m(w) {
|
|
879
|
+
r.value && i(!1);
|
|
985
880
|
}
|
|
986
|
-
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton:
|
|
881
|
+
return { clearButtonClass: p, clearButtonStyle: a, hasShownClearButton: o, onClearValue: f, onMouseEnter: s, onMouseLeave: m, shouldShowClearButton: r };
|
|
987
882
|
}
|
|
988
|
-
const
|
|
989
|
-
function
|
|
883
|
+
const Hn = ["moz", "ms", "webkit"];
|
|
884
|
+
function Un() {
|
|
990
885
|
let e = 0;
|
|
991
886
|
return (t) => {
|
|
992
|
-
const n = (/* @__PURE__ */ new Date()).getTime(),
|
|
993
|
-
t(n +
|
|
994
|
-
},
|
|
995
|
-
return e = n +
|
|
887
|
+
const n = (/* @__PURE__ */ new Date()).getTime(), o = Math.max(0, 16 - (n - e)), r = setTimeout(() => {
|
|
888
|
+
t(n + o);
|
|
889
|
+
}, o);
|
|
890
|
+
return e = n + o, r;
|
|
996
891
|
};
|
|
997
892
|
}
|
|
998
|
-
function
|
|
893
|
+
function _n() {
|
|
999
894
|
if (typeof window > "u")
|
|
1000
895
|
return () => 0;
|
|
1001
896
|
if (window.requestAnimationFrame)
|
|
1002
897
|
return window.requestAnimationFrame.bind(window);
|
|
1003
|
-
const e =
|
|
1004
|
-
return e ? window[`${e}RequestAnimationFrame`] :
|
|
898
|
+
const e = Hn.filter((t) => `${t}RequestAnimationFrame` in window)[0];
|
|
899
|
+
return e ? window[`${e}RequestAnimationFrame`] : Un();
|
|
1005
900
|
}
|
|
1006
|
-
|
|
1007
|
-
function
|
|
1008
|
-
const n =
|
|
1009
|
-
return { appendedButtonClass:
|
|
901
|
+
_n();
|
|
902
|
+
function zn(e, t) {
|
|
903
|
+
const n = h(e.groupText), o = S(() => e.showButtonWhenDisabled && (e.readonly || e.disabled)), r = S(() => e.enableClear || !!e.groupText);
|
|
904
|
+
return { appendedButtonClass: S(() => ({
|
|
1010
905
|
"input-group-append": !0,
|
|
1011
|
-
"append-force-show":
|
|
1012
|
-
})), appendedContent: n, shouldShowAppendedButton:
|
|
906
|
+
"append-force-show": o.value
|
|
907
|
+
})), appendedContent: n, shouldShowAppendedButton: r };
|
|
1013
908
|
}
|
|
1014
|
-
function
|
|
1015
|
-
const { appendedContent:
|
|
1016
|
-
V(() => [e.readonly, e.disabled], ([
|
|
1017
|
-
|
|
909
|
+
function Qn(e, t, n, o) {
|
|
910
|
+
const { appendedContent: r } = o, d = h(e.enableViewPassword), c = S(() => e.type === "password"), C = '<span class="f-icon f-icon-eye" style="color: rgb(56, 143, 255);"></span>', u = '<span class="f-icon f-icon-eye"></span>', i = h(!1);
|
|
911
|
+
V(() => [e.readonly, e.disabled], ([f, s]) => {
|
|
912
|
+
c.value && (n.value = f || s ? "password" : n.value, r.value = f || s ? u : r.value);
|
|
1018
913
|
});
|
|
1019
914
|
function p() {
|
|
1020
|
-
return
|
|
915
|
+
return i.value = !i.value, n.value = i.value ? "text" : "password", r.value = i.value ? C : u, !1;
|
|
1021
916
|
}
|
|
1022
917
|
function a() {
|
|
1023
|
-
n.value =
|
|
918
|
+
n.value = c.value ? "password" : "text", r.value = c.value ? d.value ? u : "" : r.value;
|
|
1024
919
|
}
|
|
1025
|
-
return a(), { isPassword:
|
|
920
|
+
return a(), { isPassword: c, onClickAppendedButton: p };
|
|
1026
921
|
}
|
|
1027
|
-
function
|
|
1028
|
-
const
|
|
1029
|
-
onBlurTextBox:
|
|
1030
|
-
onFocusTextBox:
|
|
1031
|
-
onInput:
|
|
922
|
+
function Zn(e, t, n) {
|
|
923
|
+
const o = h(), {
|
|
924
|
+
onBlurTextBox: r,
|
|
925
|
+
onFocusTextBox: d,
|
|
926
|
+
onInput: c,
|
|
1032
927
|
onKeyDown: C,
|
|
1033
928
|
textBoxValue: u
|
|
1034
|
-
} = n,
|
|
929
|
+
} = n, i = S(() => e.disabled || e.readonly || !e.editable ? "" : e.placeholder), p = S(() => ({
|
|
1035
930
|
"form-control": !0,
|
|
1036
931
|
"f-utils-fill": !0
|
|
1037
|
-
})), a =
|
|
932
|
+
})), a = S(() => ({
|
|
1038
933
|
"text-align": e.textAlign
|
|
1039
934
|
}));
|
|
1040
|
-
function
|
|
1041
|
-
|
|
935
|
+
function f(w) {
|
|
936
|
+
w.stopPropagation();
|
|
1042
937
|
}
|
|
1043
|
-
function
|
|
938
|
+
function s() {
|
|
1044
939
|
e.selectOnCreated, e.focusOnCreated;
|
|
1045
940
|
}
|
|
1046
|
-
async function
|
|
1047
|
-
|
|
941
|
+
async function m(w) {
|
|
942
|
+
d(w), await ie, s();
|
|
1048
943
|
}
|
|
1049
|
-
return
|
|
1050
|
-
await ie,
|
|
1051
|
-
}), () =>
|
|
1052
|
-
ref:
|
|
944
|
+
return W(async () => {
|
|
945
|
+
await ie, s();
|
|
946
|
+
}), () => l("input", {
|
|
947
|
+
ref: o,
|
|
1053
948
|
class: p.value,
|
|
1054
949
|
style: a.value,
|
|
1055
950
|
type: "text",
|
|
1056
951
|
value: u.value,
|
|
1057
952
|
disabled: e.disabled,
|
|
1058
953
|
readonly: e.readonly || !e.editable,
|
|
1059
|
-
placeholder:
|
|
1060
|
-
onBlur:
|
|
1061
|
-
onChange:
|
|
1062
|
-
onFocus:
|
|
1063
|
-
onInput:
|
|
954
|
+
placeholder: i.value,
|
|
955
|
+
onBlur: r,
|
|
956
|
+
onChange: f,
|
|
957
|
+
onFocus: m,
|
|
958
|
+
onInput: c,
|
|
1064
959
|
onKeydown: C
|
|
1065
960
|
}, null);
|
|
1066
961
|
}
|
|
1067
|
-
function
|
|
962
|
+
function Jn(e, t, n) {
|
|
1068
963
|
const {
|
|
1069
|
-
canDownward:
|
|
1070
|
-
canUpward:
|
|
1071
|
-
onClickDownButton:
|
|
1072
|
-
onClickUpButton:
|
|
1073
|
-
} = n, C =
|
|
964
|
+
canDownward: o,
|
|
965
|
+
canUpward: r,
|
|
966
|
+
onClickDownButton: d,
|
|
967
|
+
onClickUpButton: c
|
|
968
|
+
} = n, C = S(() => ({
|
|
1074
969
|
"input-group-append": !0,
|
|
1075
970
|
"btn-group": !0,
|
|
1076
971
|
"btn-group-number": !0
|
|
1077
|
-
})), u =
|
|
972
|
+
})), u = S(() => ({
|
|
1078
973
|
btn: !0,
|
|
1079
974
|
"btn-secondary": !0,
|
|
1080
975
|
"btn-number-flag": !0
|
|
1081
|
-
})),
|
|
1082
|
-
cursor: l() ? "pointer" : "not-allowed",
|
|
1083
|
-
"margin-left": 0
|
|
1084
|
-
})), p = E(() => ({
|
|
976
|
+
})), i = S(() => ({
|
|
1085
977
|
cursor: r() ? "pointer" : "not-allowed",
|
|
1086
978
|
"margin-left": 0
|
|
979
|
+
})), p = S(() => ({
|
|
980
|
+
cursor: o() ? "pointer" : "not-allowed",
|
|
981
|
+
"margin-left": 0
|
|
1087
982
|
}));
|
|
1088
|
-
return () =>
|
|
983
|
+
return () => l("div", {
|
|
1089
984
|
class: C.value
|
|
1090
|
-
}, [
|
|
985
|
+
}, [l("button", {
|
|
1091
986
|
title: "upButton",
|
|
1092
987
|
class: u.value,
|
|
1093
|
-
style:
|
|
1094
|
-
onClick:
|
|
1095
|
-
disabled: !
|
|
1096
|
-
}, [
|
|
988
|
+
style: i.value,
|
|
989
|
+
onClick: c,
|
|
990
|
+
disabled: !r()
|
|
991
|
+
}, [l("span", {
|
|
1097
992
|
class: "f-icon f-icon-arrow-chevron-up number-arrow-chevron"
|
|
1098
|
-
}, null)]),
|
|
993
|
+
}, null)]), l("button", {
|
|
1099
994
|
title: "downButton",
|
|
1100
995
|
class: u.value,
|
|
1101
996
|
style: p.value,
|
|
1102
|
-
onClick:
|
|
1103
|
-
disabled: !
|
|
1104
|
-
}, [
|
|
997
|
+
onClick: d,
|
|
998
|
+
disabled: !o()
|
|
999
|
+
}, [l("span", {
|
|
1105
1000
|
class: "f-icon f-icon-arrow-chevron-down number-arrow-chevron"
|
|
1106
1001
|
}, null)])]);
|
|
1107
1002
|
}
|
|
1108
|
-
function
|
|
1109
|
-
const n =
|
|
1003
|
+
function Xn(e, t) {
|
|
1004
|
+
const n = qe(e, t), o = We(e, t, n), r = He(e, t, o, n), d = Ue(e, t, o, n, r), c = Jn(e, t, r), {
|
|
1110
1005
|
displayValue: C,
|
|
1111
1006
|
modelValue: u,
|
|
1112
|
-
getRealValue:
|
|
1113
|
-
} = n, p =
|
|
1007
|
+
getRealValue: i
|
|
1008
|
+
} = n, p = Zn(e, t, d), {
|
|
1114
1009
|
format: a
|
|
1115
|
-
} =
|
|
1116
|
-
isFocus:
|
|
1117
|
-
} =
|
|
1118
|
-
return
|
|
1119
|
-
const
|
|
1120
|
-
C.value = a(
|
|
1121
|
-
}), V(() => [e.value], ([
|
|
1122
|
-
const
|
|
1123
|
-
u.value =
|
|
1124
|
-
}), V(() => [e.modelValue], ([
|
|
1125
|
-
|
|
1010
|
+
} = o, {
|
|
1011
|
+
isFocus: f
|
|
1012
|
+
} = d, s = S(() => !e.disabled && !e.readonly);
|
|
1013
|
+
return W(() => {
|
|
1014
|
+
const m = i(e.modelValue);
|
|
1015
|
+
C.value = a(m);
|
|
1016
|
+
}), V(() => [e.value], ([m]) => {
|
|
1017
|
+
const w = i(m);
|
|
1018
|
+
u.value = w, C.value = a(w);
|
|
1019
|
+
}), V(() => [e.modelValue], ([m]) => {
|
|
1020
|
+
m !== u.value && (u.value = m, !f.value && (C.value = a(i(m))));
|
|
1126
1021
|
}), V(() => [e.precision, e.useThousands, e.prefix, e.suffix, e.showZero], () => {
|
|
1127
1022
|
C.value = a(u.value);
|
|
1128
|
-
}), () =>
|
|
1023
|
+
}), () => l("div", {
|
|
1129
1024
|
class: "input-group f-state-hover flex-row f-cmp-number-spinner"
|
|
1130
|
-
}, [p(),
|
|
1025
|
+
}, [p(), s.value && c()]);
|
|
1131
1026
|
}
|
|
1132
|
-
function
|
|
1133
|
-
const
|
|
1027
|
+
function Yn(e, t, n, o) {
|
|
1028
|
+
const r = h(), d = h(e.autocomplete), c = h(e.enableTitle), {
|
|
1134
1029
|
isPassword: C
|
|
1135
|
-
} = n, u =
|
|
1030
|
+
} = n, u = h(e.minLength), i = h(e.maxLength), p = h(e.tabIndex), {
|
|
1136
1031
|
disabled: a,
|
|
1137
|
-
displayText:
|
|
1138
|
-
inputType:
|
|
1139
|
-
onBlur:
|
|
1140
|
-
onFocus:
|
|
1141
|
-
onInput:
|
|
1142
|
-
onClick:
|
|
1143
|
-
onKeydown:
|
|
1144
|
-
onKeyup:
|
|
1145
|
-
onMousedown:
|
|
1146
|
-
onTextBoxValueChange:
|
|
1032
|
+
displayText: f,
|
|
1033
|
+
inputType: s,
|
|
1034
|
+
onBlur: m,
|
|
1035
|
+
onFocus: w,
|
|
1036
|
+
onInput: k,
|
|
1037
|
+
onClick: L,
|
|
1038
|
+
onKeydown: A,
|
|
1039
|
+
onKeyup: R,
|
|
1040
|
+
onMousedown: E,
|
|
1041
|
+
onTextBoxValueChange: I,
|
|
1147
1042
|
readonly: O,
|
|
1148
1043
|
placeholder: B,
|
|
1149
|
-
textBoxClass:
|
|
1150
|
-
textBoxTitle:
|
|
1151
|
-
} =
|
|
1152
|
-
return
|
|
1044
|
+
textBoxClass: $,
|
|
1045
|
+
textBoxTitle: j
|
|
1046
|
+
} = o;
|
|
1047
|
+
return W(() => {
|
|
1153
1048
|
e.selectOnCreated, e.focusOnCreated;
|
|
1154
|
-
}), () =>
|
|
1155
|
-
ref:
|
|
1049
|
+
}), () => l("input", {
|
|
1050
|
+
ref: r,
|
|
1156
1051
|
name: "input-group-value",
|
|
1157
|
-
autocomplete:
|
|
1158
|
-
class:
|
|
1052
|
+
autocomplete: d.value,
|
|
1053
|
+
class: $.value,
|
|
1159
1054
|
disabled: a == null ? void 0 : a.value,
|
|
1160
|
-
maxlength:
|
|
1055
|
+
maxlength: i.value,
|
|
1161
1056
|
minlength: u.value,
|
|
1162
1057
|
placeholder: B.value,
|
|
1163
1058
|
readonly: O == null ? void 0 : O.value,
|
|
1164
1059
|
tabindex: p.value,
|
|
1165
|
-
title:
|
|
1166
|
-
type:
|
|
1167
|
-
value:
|
|
1168
|
-
onBlur:
|
|
1169
|
-
onClick:
|
|
1170
|
-
onChange:
|
|
1171
|
-
onFocus:
|
|
1172
|
-
onInput:
|
|
1173
|
-
onKeydown:
|
|
1174
|
-
onKeyup:
|
|
1175
|
-
onMousedown:
|
|
1060
|
+
title: c.value && !C.value ? j.value : "",
|
|
1061
|
+
type: s.value,
|
|
1062
|
+
value: f == null ? void 0 : f.value,
|
|
1063
|
+
onBlur: m,
|
|
1064
|
+
onClick: L,
|
|
1065
|
+
onChange: I,
|
|
1066
|
+
onFocus: w,
|
|
1067
|
+
onInput: k,
|
|
1068
|
+
onKeydown: A,
|
|
1069
|
+
onKeyup: R,
|
|
1070
|
+
onMousedown: E
|
|
1176
1071
|
}, null);
|
|
1177
1072
|
}
|
|
1178
|
-
function
|
|
1179
|
-
const n =
|
|
1073
|
+
function Kn(e, t) {
|
|
1074
|
+
const n = S(() => e.useExtendInfo && !!e.extendInfo), o = je({
|
|
1180
1075
|
content: e.extendInfo
|
|
1181
1076
|
});
|
|
1182
|
-
function
|
|
1077
|
+
function r() {
|
|
1183
1078
|
t.emit("updateExtendInfo");
|
|
1184
1079
|
}
|
|
1185
|
-
return () => n.value &&
|
|
1080
|
+
return () => n.value && Re(l("span", {
|
|
1186
1081
|
class: "input-group-before-tips",
|
|
1187
|
-
onMouseenter:
|
|
1188
|
-
}, [
|
|
1082
|
+
onMouseenter: r
|
|
1083
|
+
}, [l("i", {
|
|
1189
1084
|
class: "f-icon f-icon-info-circle"
|
|
1190
|
-
}, null),
|
|
1085
|
+
}, null), l("b", {
|
|
1191
1086
|
class: "tips-arrow"
|
|
1192
|
-
}, null)]), [[
|
|
1087
|
+
}, null)]), [[Ae("tooltip"), o]]);
|
|
1193
1088
|
}
|
|
1194
|
-
function
|
|
1089
|
+
function eo(e, t, n, o, r) {
|
|
1195
1090
|
const {
|
|
1196
|
-
appendedButtonClass:
|
|
1197
|
-
appendedContent:
|
|
1198
|
-
} = n, C =
|
|
1091
|
+
appendedButtonClass: d,
|
|
1092
|
+
appendedContent: c
|
|
1093
|
+
} = n, C = S(() => e.showButtonWhenDisabled && (!e.editable || !e.readonly) && !e.disabled), u = S(() => c.value && !t.slots.groupTextTemplate), i = S(() => !!t.slots.groupTextTemplate), {
|
|
1199
1094
|
clearButtonClass: p,
|
|
1200
1095
|
clearButtonStyle: a,
|
|
1201
|
-
onClearValue:
|
|
1202
|
-
shouldShowClearButton:
|
|
1203
|
-
} =
|
|
1204
|
-
function
|
|
1205
|
-
return
|
|
1096
|
+
onClearValue: f,
|
|
1097
|
+
shouldShowClearButton: s
|
|
1098
|
+
} = o;
|
|
1099
|
+
function m() {
|
|
1100
|
+
return l("span", {
|
|
1206
1101
|
id: "clearIcon",
|
|
1207
1102
|
class: p.value,
|
|
1208
1103
|
style: a.value,
|
|
1209
|
-
onClick: (B) =>
|
|
1210
|
-
}, [
|
|
1104
|
+
onClick: (B) => f(B)
|
|
1105
|
+
}, [l("i", {
|
|
1211
1106
|
class: "f-icon modal_close"
|
|
1212
1107
|
}, null)]);
|
|
1213
1108
|
}
|
|
1214
|
-
function
|
|
1109
|
+
function w(B) {
|
|
1215
1110
|
t.emit("iconMouseEnter", B);
|
|
1216
1111
|
}
|
|
1217
|
-
function
|
|
1112
|
+
function k(B) {
|
|
1218
1113
|
t.emit("iconMouseLeave", B);
|
|
1219
1114
|
}
|
|
1220
|
-
function
|
|
1115
|
+
function L(B) {
|
|
1221
1116
|
C.value && t.emit("clickHandle", {
|
|
1222
1117
|
originalEvent: B
|
|
1223
1118
|
}), B.stopPropagation();
|
|
1224
1119
|
}
|
|
1225
|
-
const
|
|
1226
|
-
function
|
|
1227
|
-
return
|
|
1120
|
+
const A = e.type === "password" ? r.onClickAppendedButton : L;
|
|
1121
|
+
function R() {
|
|
1122
|
+
return l("span", {
|
|
1228
1123
|
class: "input-group-text",
|
|
1229
|
-
onMouseenter: (B) =>
|
|
1230
|
-
onMouseleave: (B) =>
|
|
1231
|
-
innerHTML:
|
|
1232
|
-
onClick: (B) =>
|
|
1124
|
+
onMouseenter: (B) => w(B),
|
|
1125
|
+
onMouseleave: (B) => k(B),
|
|
1126
|
+
innerHTML: c.value,
|
|
1127
|
+
onClick: (B) => A(B)
|
|
1233
1128
|
}, null);
|
|
1234
1129
|
}
|
|
1235
|
-
function
|
|
1130
|
+
function E() {
|
|
1236
1131
|
return t.slots.groupTextTemplate && t.slots.groupTextTemplate();
|
|
1237
1132
|
}
|
|
1238
|
-
function
|
|
1239
|
-
return u.value ?
|
|
1133
|
+
function I() {
|
|
1134
|
+
return u.value ? R : i.value ? E : "";
|
|
1240
1135
|
}
|
|
1241
|
-
const O =
|
|
1242
|
-
return () =>
|
|
1243
|
-
class:
|
|
1244
|
-
}, [
|
|
1136
|
+
const O = I();
|
|
1137
|
+
return () => l("div", {
|
|
1138
|
+
class: d.value
|
|
1139
|
+
}, [s.value && m(), O && O()]);
|
|
1245
1140
|
}
|
|
1246
|
-
const
|
|
1141
|
+
const to = /* @__PURE__ */ H({
|
|
1247
1142
|
name: "FInputGroup",
|
|
1248
|
-
props:
|
|
1143
|
+
props: ye,
|
|
1249
1144
|
emits: ["clear", "change", "blur", "click", "clickHandle", "focus", "input", "keydown", "keyup", "iconMouseEnter", "iconMouseLeave", "update:modelValue", "update:value", "updateExtendInfo", "valueChange"],
|
|
1250
1145
|
setup(e, t) {
|
|
1251
|
-
const n =
|
|
1252
|
-
inputGroupClass:
|
|
1253
|
-
inputType:
|
|
1146
|
+
const n = h(e.modelValue), o = h(e.modelValue), r = qn(e, t, n, o), {
|
|
1147
|
+
inputGroupClass: d,
|
|
1148
|
+
inputType: c,
|
|
1254
1149
|
inputGroupStyle: C
|
|
1255
|
-
} =
|
|
1256
|
-
shouldShowAppendedButton:
|
|
1257
|
-
} = u, p =
|
|
1150
|
+
} = r, u = zn(e), {
|
|
1151
|
+
shouldShowAppendedButton: i
|
|
1152
|
+
} = u, p = Wn(e, t, r), {
|
|
1258
1153
|
onMouseEnter: a,
|
|
1259
|
-
onMouseLeave:
|
|
1260
|
-
} = p,
|
|
1261
|
-
V(() => [e.value], ([
|
|
1262
|
-
n.value =
|
|
1263
|
-
}), V(() => [e.modelValue], ([
|
|
1264
|
-
n.value =
|
|
1265
|
-
}),
|
|
1266
|
-
e.value && (n.value = e.value,
|
|
1154
|
+
onMouseLeave: f
|
|
1155
|
+
} = p, s = Qn(e, t, c, u), m = Xn(e, t), w = Yn(e, t, s, r), k = eo(e, t, u, p, s), L = Kn(e, t), A = S(() => e.type === "number");
|
|
1156
|
+
V(() => [e.value], ([E]) => {
|
|
1157
|
+
n.value = E, o.value = E;
|
|
1158
|
+
}), V(() => [e.modelValue], ([E]) => {
|
|
1159
|
+
n.value = E, o.value = E;
|
|
1160
|
+
}), W(() => {
|
|
1161
|
+
e.value && (n.value = e.value, o.value = e.value);
|
|
1267
1162
|
});
|
|
1268
|
-
const
|
|
1269
|
-
id:
|
|
1270
|
-
class:
|
|
1163
|
+
const R = () => l(Z, null, [l("div", {
|
|
1164
|
+
id: e.id,
|
|
1165
|
+
class: d.value,
|
|
1271
1166
|
style: C.value,
|
|
1272
1167
|
onMouseenter: a,
|
|
1273
|
-
onMouseleave:
|
|
1274
|
-
}, [
|
|
1275
|
-
return () =>
|
|
1168
|
+
onMouseleave: f
|
|
1169
|
+
}, [A.value ? m() : l(Z, null, [L(), w(), i.value && k()])])]);
|
|
1170
|
+
return () => R();
|
|
1276
1171
|
}
|
|
1277
|
-
}), g = {},
|
|
1278
|
-
let
|
|
1279
|
-
function
|
|
1280
|
-
|
|
1172
|
+
}), g = {}, v = {}, y = {}, b = {};
|
|
1173
|
+
let se = !1;
|
|
1174
|
+
function no() {
|
|
1175
|
+
se || (se = !0, ze.register(g, v, y, b), _e.register(g, v, y, b), Qe.register(g, v, y, b), Ze.register(g, v, y, b), Je.register(g, v, y, b), Xe.register(g, v, y, b), Ye.register(g, v, y, b), Ke.register(g, v, y, b), et.register(g, v, y, b), tt.register(g, v, y, b), ot.register(g, v, y, b), nt.register(g, v, y, b), rt.register(g, v, y, b), at.register(g, v, y, b), it.register(g, v, y, b), lt.register(g, v, y, b), st.register(g, v, y, b), ut.register(g, v, y, b), ct.register(g, v, y, b), dt.register(g, v, y, b), pt.register(g, v, y, b), ft.register(g, v, y, b), gt.register(g, v, y, b), mt.register(g, v, y, b), vt.register(g, v, y, b), yt.register(g, v, y, b), bt.register(g, v, y, b), ht.register(g, v, y, b), Ge.register(g, v, y, b), Ct.register(g, v, y, b), Ft.register(g, v, y, b), xt.register(g, v, y, b), Tt.register(g, v, y, b), wt.register(g, v, y, b), Bt.register(g, v, y, b), Pt.register(g, v, y, b), St.register(g, v, y, b), Et.register(g, v, y, b), It.register(g, v, y, b), kt.register(g, v, y, b), Qt.register(g, v, y), Ot.register(g, v, y, b), Nt.register(g, v, y, b), Lt.register(g, v, y, b), jt.register(g, v, y, b), Rt.register(g, v, y, b), At.register(g, v, y, b), Dt.register(g, v, y, b), Vt.register(g, v, y, b), $t.register(g, v, y, b), Mt.register(g, v, y, b), Gt.register(g, v, y, b), qt.register(g, v, y, b), Ht.register(g, v, y, b), Wt.register(g, v, y, b), Ut.register(g, v, y, b), _t.register(g, v, y, b), zt.register(g, v, y, b), Zt.register(g, v, y, b));
|
|
1281
1176
|
}
|
|
1282
|
-
function
|
|
1283
|
-
|
|
1284
|
-
function e(
|
|
1285
|
-
const
|
|
1286
|
-
return
|
|
1177
|
+
function oo() {
|
|
1178
|
+
no();
|
|
1179
|
+
function e(r, d) {
|
|
1180
|
+
const c = v[r];
|
|
1181
|
+
return c ? c(d) : {};
|
|
1287
1182
|
}
|
|
1288
|
-
function t(
|
|
1289
|
-
return g[
|
|
1183
|
+
function t(r) {
|
|
1184
|
+
return g[r] || to;
|
|
1290
1185
|
}
|
|
1291
|
-
function n(
|
|
1292
|
-
switch (
|
|
1186
|
+
function n(r) {
|
|
1187
|
+
switch (r) {
|
|
1293
1188
|
case "check-box":
|
|
1294
1189
|
return "onChangeValue";
|
|
1295
1190
|
case "switch":
|
|
@@ -1320,7 +1215,7 @@ function uo() {
|
|
|
1320
1215
|
case "input-group":
|
|
1321
1216
|
return "onChange";
|
|
1322
1217
|
case "lookup":
|
|
1323
|
-
return "";
|
|
1218
|
+
return "onUpdate:modelValue";
|
|
1324
1219
|
case "number-range":
|
|
1325
1220
|
return "onValueChange";
|
|
1326
1221
|
case "number-spinner":
|
|
@@ -1335,6 +1230,8 @@ function uo() {
|
|
|
1335
1230
|
return "onSavedCommandListChanged";
|
|
1336
1231
|
case "grid-field-editor":
|
|
1337
1232
|
return "onChange";
|
|
1233
|
+
case "response-form-layout-setting":
|
|
1234
|
+
return "onChange";
|
|
1338
1235
|
case "field-selector":
|
|
1339
1236
|
return "onFieldSelected";
|
|
1340
1237
|
case "schema-selector":
|
|
@@ -1345,513 +1242,513 @@ function uo() {
|
|
|
1345
1242
|
return "onValueChange";
|
|
1346
1243
|
}
|
|
1347
1244
|
}
|
|
1348
|
-
function r
|
|
1349
|
-
switch (
|
|
1245
|
+
function o(r) {
|
|
1246
|
+
switch (r) {
|
|
1350
1247
|
case "combo-list":
|
|
1351
1248
|
case "input-group":
|
|
1352
1249
|
case "textarea":
|
|
1353
1250
|
return "onClear";
|
|
1354
1251
|
}
|
|
1355
1252
|
}
|
|
1356
|
-
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName:
|
|
1253
|
+
return { resolveEditorProps: e, resolveEditorType: t, getChangeFunctionName: n, getClearFunctionName: o };
|
|
1357
1254
|
}
|
|
1358
|
-
const
|
|
1255
|
+
const ro = /* @__PURE__ */ H({
|
|
1359
1256
|
name: "FDynamicFormGroup",
|
|
1360
|
-
props:
|
|
1257
|
+
props: ve,
|
|
1361
1258
|
emits: ["change", "update:modelValue"],
|
|
1362
1259
|
setup(e, t) {
|
|
1363
|
-
const n =
|
|
1364
|
-
|
|
1365
|
-
const a =
|
|
1366
|
-
resolveEditorProps:
|
|
1367
|
-
resolveEditorType:
|
|
1368
|
-
getChangeFunctionName:
|
|
1369
|
-
getClearFunctionName:
|
|
1370
|
-
} =
|
|
1260
|
+
const n = h(e.id), o = h(e.customClass), r = h(e.editor), d = h(e.label), c = h(e.modelValue), C = h(e.readonly), u = h(e.required), i = h(e.showLabel), p = h(e.visible);
|
|
1261
|
+
h(e.type);
|
|
1262
|
+
const a = h(), {
|
|
1263
|
+
resolveEditorProps: f,
|
|
1264
|
+
resolveEditorType: s,
|
|
1265
|
+
getChangeFunctionName: m,
|
|
1266
|
+
getClearFunctionName: w
|
|
1267
|
+
} = oo(), k = S(() => ({
|
|
1371
1268
|
"form-group": !0,
|
|
1372
1269
|
"farris-form-group": !0,
|
|
1373
1270
|
"common-group": !0,
|
|
1374
1271
|
"q-state-readonly": C.value
|
|
1375
1272
|
}));
|
|
1376
|
-
function
|
|
1377
|
-
|
|
1273
|
+
function L(E, I) {
|
|
1274
|
+
c.value = I !== void 0 ? I : E, t.emit("update:modelValue", c.value), t.emit("change", c.value);
|
|
1378
1275
|
}
|
|
1379
|
-
function
|
|
1276
|
+
function A() {
|
|
1380
1277
|
t.emit("update:modelValue", "");
|
|
1381
1278
|
}
|
|
1382
|
-
const
|
|
1383
|
-
const
|
|
1384
|
-
return O[B] =
|
|
1279
|
+
const R = S(() => {
|
|
1280
|
+
const E = r.value.type || "input-group", I = s(E), O = f(E, r.value), B = m(E), $ = w(r.value.type);
|
|
1281
|
+
return O[B] = L, O[$] = A, (O.id == null || O.id === "") && (O.id = n.value), () => l(I, De({
|
|
1385
1282
|
ref: a
|
|
1386
1283
|
}, O, {
|
|
1387
|
-
modelValue:
|
|
1388
|
-
"onUpdate:modelValue": (
|
|
1284
|
+
modelValue: c.value,
|
|
1285
|
+
"onUpdate:modelValue": (j) => c.value = j
|
|
1389
1286
|
}), null);
|
|
1390
1287
|
});
|
|
1391
|
-
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([
|
|
1392
|
-
n.value =
|
|
1288
|
+
return V([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible], ([E, I, O, B, $, j, G, U, _]) => {
|
|
1289
|
+
n.value = E, o.value = I, r.value = O, d.value = B, c.value = $, C.value = j, u.value = G, i.value = U, p.value = _;
|
|
1393
1290
|
}), t.expose({
|
|
1394
1291
|
editorRef: a
|
|
1395
|
-
}), () => p.value &&
|
|
1292
|
+
}), () => p.value && l("div", {
|
|
1396
1293
|
id: `${n.value}-input-group`,
|
|
1397
|
-
class:
|
|
1398
|
-
}, [
|
|
1294
|
+
class: o.value
|
|
1295
|
+
}, [l("div", {
|
|
1399
1296
|
class: "farris-group-wrap"
|
|
1400
|
-
}, [
|
|
1401
|
-
class:
|
|
1402
|
-
}, [
|
|
1297
|
+
}, [l("div", {
|
|
1298
|
+
class: k.value
|
|
1299
|
+
}, [i.value && l(On, {
|
|
1403
1300
|
id: `${n.value}-lable`,
|
|
1404
1301
|
required: u.value,
|
|
1405
|
-
text:
|
|
1406
|
-
title:
|
|
1407
|
-
}, null),
|
|
1302
|
+
text: d.value,
|
|
1303
|
+
title: d.value
|
|
1304
|
+
}, null), l("div", {
|
|
1408
1305
|
class: "farris-input-wrap"
|
|
1409
|
-
}, [
|
|
1306
|
+
}, [R.value()])])])]);
|
|
1410
1307
|
}
|
|
1411
|
-
}),
|
|
1308
|
+
}), ao = /* @__PURE__ */ H({
|
|
1412
1309
|
name: "FPropertyPanelItem",
|
|
1413
|
-
props:
|
|
1310
|
+
props: Cn,
|
|
1414
1311
|
emits: ["propertyChange", "triggerRefreshPanel"],
|
|
1415
1312
|
setup(e, t) {
|
|
1416
1313
|
var u;
|
|
1417
|
-
const n =
|
|
1418
|
-
|
|
1419
|
-
const
|
|
1420
|
-
const
|
|
1314
|
+
const n = h((u = e.category) == null ? void 0 : u.categoryId), o = h(e.elementConfig.propertyID), r = h(e.elementConfig.propertyName);
|
|
1315
|
+
h(e.elementConfig.editor);
|
|
1316
|
+
const d = h(e.elementConfig.propertyValue), c = S(() => {
|
|
1317
|
+
const i = e.elementConfig.visible;
|
|
1421
1318
|
return {
|
|
1422
1319
|
"farris-group-wrap": !0,
|
|
1423
1320
|
"property-item": !0,
|
|
1424
|
-
"d-none": !(typeof
|
|
1321
|
+
"d-none": !(typeof i == "boolean" ? i : i == null ? !0 : i())
|
|
1425
1322
|
};
|
|
1426
1323
|
});
|
|
1427
1324
|
V(() => {
|
|
1428
|
-
var
|
|
1429
|
-
return (
|
|
1430
|
-
}, (
|
|
1431
|
-
|
|
1325
|
+
var i;
|
|
1326
|
+
return (i = e.elementConfig) == null ? void 0 : i.propertyValue;
|
|
1327
|
+
}, (i) => {
|
|
1328
|
+
d.value = i;
|
|
1432
1329
|
});
|
|
1433
|
-
function C(
|
|
1434
|
-
e.elementConfig.propertyValue =
|
|
1330
|
+
function C(i) {
|
|
1331
|
+
e.elementConfig.propertyValue = i;
|
|
1435
1332
|
const p = {
|
|
1436
1333
|
propertyID: e.elementConfig.propertyID,
|
|
1437
|
-
propertyValue:
|
|
1334
|
+
propertyValue: i
|
|
1438
1335
|
};
|
|
1439
1336
|
t.emit("propertyChange", p), e.elementConfig.refreshPanelAfterChanged && t.emit("triggerRefreshPanel");
|
|
1440
1337
|
}
|
|
1441
|
-
return () =>
|
|
1442
|
-
class:
|
|
1443
|
-
}, [
|
|
1444
|
-
id:
|
|
1445
|
-
customClass: `${n.value}-${
|
|
1446
|
-
label:
|
|
1338
|
+
return () => l("div", {
|
|
1339
|
+
class: c.value
|
|
1340
|
+
}, [l(ro, {
|
|
1341
|
+
id: o.value,
|
|
1342
|
+
customClass: `${n.value}-${o.value}`,
|
|
1343
|
+
label: r.value,
|
|
1447
1344
|
editor: e.elementConfig.editor,
|
|
1448
|
-
modelValue:
|
|
1345
|
+
modelValue: d.value,
|
|
1449
1346
|
onChange: C,
|
|
1450
1347
|
editorParams: e.elementConfig.editorParams
|
|
1451
1348
|
}, null)]);
|
|
1452
1349
|
}
|
|
1453
|
-
}),
|
|
1350
|
+
}), io = /* @__PURE__ */ H({
|
|
1454
1351
|
name: "FPropertyPanelItemList",
|
|
1455
|
-
props:
|
|
1352
|
+
props: hn,
|
|
1456
1353
|
emits: ["valueChanged", "submitModal", "triggerRefreshPanel"],
|
|
1457
1354
|
setup(e, t) {
|
|
1458
|
-
const n =
|
|
1459
|
-
function
|
|
1460
|
-
if (!
|
|
1461
|
-
return
|
|
1355
|
+
const n = h(e.category);
|
|
1356
|
+
function o(s) {
|
|
1357
|
+
if (!s.hideCascadeTitle)
|
|
1358
|
+
return l("div", {
|
|
1462
1359
|
class: "farris-input-wrap"
|
|
1463
|
-
}, [
|
|
1360
|
+
}, [l("input", {
|
|
1464
1361
|
title: "summary",
|
|
1465
1362
|
type: "input",
|
|
1466
1363
|
class: "form-control form-control-sm",
|
|
1467
|
-
value:
|
|
1364
|
+
value: s.cascadeSummary,
|
|
1468
1365
|
readonly: !0
|
|
1469
1366
|
}, null)]);
|
|
1470
1367
|
}
|
|
1471
|
-
function
|
|
1472
|
-
|
|
1368
|
+
function r(s, m) {
|
|
1369
|
+
m.isExpand = !m.isExpand;
|
|
1473
1370
|
}
|
|
1474
|
-
function
|
|
1475
|
-
return
|
|
1371
|
+
function d(s) {
|
|
1372
|
+
return l("div", {
|
|
1476
1373
|
class: "landscape"
|
|
1477
|
-
}, [
|
|
1374
|
+
}, [l("button", {
|
|
1478
1375
|
title: "expand-button",
|
|
1479
1376
|
class: ["btn f-btn-collapse-expand f-btn-mx px-1", {
|
|
1480
|
-
"f-state-expand":
|
|
1377
|
+
"f-state-expand": s.isExpand
|
|
1481
1378
|
}],
|
|
1482
|
-
onClick: (
|
|
1483
|
-
}, [
|
|
1379
|
+
onClick: (m) => r(m, s)
|
|
1380
|
+
}, [l("span", null, null)])]);
|
|
1484
1381
|
}
|
|
1485
|
-
function
|
|
1486
|
-
return
|
|
1382
|
+
function c(s) {
|
|
1383
|
+
return l("div", {
|
|
1487
1384
|
class: "f-section-formgroup-legend"
|
|
1488
|
-
}, [
|
|
1385
|
+
}, [l("div", {
|
|
1489
1386
|
class: "f-header px-0 my-0 col-form-label",
|
|
1490
1387
|
style: "font-size: inherit;"
|
|
1491
|
-
}, [
|
|
1388
|
+
}, [l("div", {
|
|
1492
1389
|
class: "wrap"
|
|
1493
|
-
}, [
|
|
1390
|
+
}, [l("span", {
|
|
1494
1391
|
class: ["f-icon mr-1", {
|
|
1495
|
-
"f-icon-arrow-60-right": !
|
|
1496
|
-
"f-icon-arrow-60-down":
|
|
1392
|
+
"f-icon-arrow-60-right": !s.isExpand,
|
|
1393
|
+
"f-icon-arrow-60-down": s.isExpand
|
|
1497
1394
|
}]
|
|
1498
|
-
}, null),
|
|
1395
|
+
}, null), l("span", {
|
|
1499
1396
|
class: "farris-label-text"
|
|
1500
|
-
}, [
|
|
1397
|
+
}, [s.propertyName])])])]);
|
|
1501
1398
|
}
|
|
1502
|
-
function C(
|
|
1503
|
-
return `${e.categoryKey}_${
|
|
1399
|
+
function C(s) {
|
|
1400
|
+
return `${e.categoryKey}_${s.propertyID}`;
|
|
1504
1401
|
}
|
|
1505
|
-
function u(
|
|
1506
|
-
|
|
1507
|
-
changeObject:
|
|
1402
|
+
function u(s) {
|
|
1403
|
+
s.categoryId = n.value.categoryId, n.value.enableCascade && (s.propertyPath = n.value.parentPropertyID), n.value.setPropertyRelates && n.value.setPropertyRelates(s, e.propertyData), t.emit("valueChanged", {
|
|
1404
|
+
changeObject: s
|
|
1508
1405
|
});
|
|
1509
1406
|
}
|
|
1510
|
-
function
|
|
1407
|
+
function i() {
|
|
1511
1408
|
t.emit("triggerRefreshPanel");
|
|
1512
1409
|
}
|
|
1513
|
-
function p(
|
|
1514
|
-
return
|
|
1410
|
+
function p(s) {
|
|
1411
|
+
return l("div", {
|
|
1515
1412
|
class: "px-2 mb-2"
|
|
1516
|
-
}, [
|
|
1517
|
-
key: C(
|
|
1518
|
-
elementConfig:
|
|
1413
|
+
}, [l(ao, {
|
|
1414
|
+
key: C(s),
|
|
1415
|
+
elementConfig: s,
|
|
1519
1416
|
category: n.value,
|
|
1520
1417
|
onPropertyChange: u,
|
|
1521
|
-
onTriggerRefreshPanel:
|
|
1418
|
+
onTriggerRefreshPanel: i
|
|
1522
1419
|
}, null)]);
|
|
1523
1420
|
}
|
|
1524
|
-
function a(
|
|
1525
|
-
var
|
|
1526
|
-
return
|
|
1421
|
+
function a(s) {
|
|
1422
|
+
var m;
|
|
1423
|
+
return l("div", {
|
|
1527
1424
|
class: "propertyCascadeItem farris-panel px-2 mb-2"
|
|
1528
|
-
}, [
|
|
1425
|
+
}, [l("div", {
|
|
1529
1426
|
class: ["farris-panel-item card", {
|
|
1530
|
-
hidden: !
|
|
1427
|
+
hidden: !s.isExpand
|
|
1531
1428
|
}]
|
|
1532
|
-
}, [
|
|
1429
|
+
}, [l("div", {
|
|
1533
1430
|
class: "card-header",
|
|
1534
|
-
onClick: (
|
|
1535
|
-
}, [
|
|
1431
|
+
onClick: (w) => r(w, s)
|
|
1432
|
+
}, [l("div", {
|
|
1536
1433
|
class: "panel-item-title"
|
|
1537
|
-
}, [
|
|
1434
|
+
}, [l("div", {
|
|
1538
1435
|
class: "form-group farris-form-group line-item"
|
|
1539
|
-
}, [
|
|
1436
|
+
}, [c(s), o(s), d(s)])])]), l("div", {
|
|
1540
1437
|
class: ["card-body", {
|
|
1541
|
-
hidden: !
|
|
1438
|
+
hidden: !s.isExpand
|
|
1542
1439
|
}]
|
|
1543
|
-
}, [(
|
|
1440
|
+
}, [(m = s.cascadeConfig) == null ? void 0 : m.map((w) => p(w))])])]);
|
|
1544
1441
|
}
|
|
1545
1442
|
V(() => e.category, () => {
|
|
1546
1443
|
n.value = e.category;
|
|
1547
1444
|
});
|
|
1548
|
-
function s
|
|
1549
|
-
return
|
|
1445
|
+
function f(s) {
|
|
1446
|
+
return s.propertyType === "cascade" ? a : p;
|
|
1550
1447
|
}
|
|
1551
|
-
return () =>
|
|
1448
|
+
return () => l(Z, null, [n.value.properties.map((s) => f(s)(s))]);
|
|
1552
1449
|
}
|
|
1553
|
-
}),
|
|
1450
|
+
}), ue = /* @__PURE__ */ H({
|
|
1554
1451
|
name: "FPropertyPanel",
|
|
1555
|
-
props:
|
|
1452
|
+
props: Jt,
|
|
1556
1453
|
emits: ["propertyChanged"],
|
|
1557
1454
|
setup(e, t) {
|
|
1558
|
-
const n =
|
|
1559
|
-
let
|
|
1560
|
-
const
|
|
1561
|
-
let
|
|
1562
|
-
const B =
|
|
1563
|
-
function
|
|
1564
|
-
|
|
1565
|
-
if (
|
|
1566
|
-
const
|
|
1567
|
-
|
|
1455
|
+
const n = h(e.width), o = h(e.isWidePanel), r = h(e.enableSearch), d = h(e.mode), c = h(e.isPersitOpenState), C = h(e.isShowPanel), u = h(), i = h(), p = h(e.showCloseBtn), a = h(e.selectedTabId), f = h(!0), s = h(e.isWhiteTheme);
|
|
1456
|
+
let m = [], w = [];
|
|
1457
|
+
const k = h(""), L = h(), A = h(), R = Ve("SchemaService");
|
|
1458
|
+
let E = [], I = null, O = "";
|
|
1459
|
+
const B = h(), $ = h(0);
|
|
1460
|
+
function j() {
|
|
1461
|
+
w = [], B.value && B.value.categoryList && Array.isArray(B.value.categoryList) && B.value.categoryList.length > 0 && B.value.categoryList.forEach((x) => {
|
|
1462
|
+
if (x.properties.forEach((F) => F.categoryId = x.categoryId), x.properties && Array.isArray(x.properties) && x.properties.length > 0) {
|
|
1463
|
+
const F = x.properties.map((N) => (N.category = x, N));
|
|
1464
|
+
w = w.concat(F);
|
|
1568
1465
|
}
|
|
1569
1466
|
});
|
|
1570
1467
|
}
|
|
1571
|
-
function
|
|
1572
|
-
let
|
|
1573
|
-
for (;
|
|
1574
|
-
|
|
1575
|
-
return
|
|
1468
|
+
function G(T) {
|
|
1469
|
+
let x = T.offsetTop, F = T.offsetParent;
|
|
1470
|
+
for (; F !== null; )
|
|
1471
|
+
x += F.offsetTop, F = F.offsetParent;
|
|
1472
|
+
return x;
|
|
1576
1473
|
}
|
|
1577
|
-
function
|
|
1578
|
-
|
|
1579
|
-
var
|
|
1580
|
-
const
|
|
1581
|
-
(
|
|
1474
|
+
function U(T, x) {
|
|
1475
|
+
T && x && Object.keys(x).length > 0 && Object.keys(x).forEach((F) => {
|
|
1476
|
+
var M;
|
|
1477
|
+
const N = x[F];
|
|
1478
|
+
(M = T.style) == null || M.setProperty(F, N);
|
|
1582
1479
|
});
|
|
1583
1480
|
}
|
|
1584
|
-
function
|
|
1585
|
-
return
|
|
1481
|
+
function _() {
|
|
1482
|
+
return w.filter((x) => x.visible ? !!(x.propertyID && x.propertyID.startsWith(k.value) || x.propertyName && (x.propertyName.startsWith(k.value) || x.propertyName.includes(k.value))) : !1);
|
|
1586
1483
|
}
|
|
1587
|
-
function
|
|
1588
|
-
if (
|
|
1589
|
-
const
|
|
1590
|
-
|
|
1591
|
-
top:
|
|
1484
|
+
function P(T, x, F) {
|
|
1485
|
+
if (T === 0) {
|
|
1486
|
+
const N = G(x), Y = G(F) - N - 5;
|
|
1487
|
+
x == null || x.scroll({
|
|
1488
|
+
top: Y,
|
|
1592
1489
|
behavior: "smooth"
|
|
1593
1490
|
});
|
|
1594
1491
|
}
|
|
1595
1492
|
}
|
|
1596
|
-
function
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
}),
|
|
1600
|
-
const
|
|
1601
|
-
if (!
|
|
1602
|
-
|
|
1603
|
-
else if (
|
|
1604
|
-
const
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
const
|
|
1608
|
-
Q && (
|
|
1493
|
+
function D(T) {
|
|
1494
|
+
E && E.length > 0 && (E.forEach((F) => {
|
|
1495
|
+
F.style.cssText = "";
|
|
1496
|
+
}), E = []), k.value = T || k.value;
|
|
1497
|
+
const x = document.querySelector(".panel-body");
|
|
1498
|
+
if (!k.value)
|
|
1499
|
+
L.value && x && (x.scrollTop = 0);
|
|
1500
|
+
else if (j(), w && w.length > 0) {
|
|
1501
|
+
const F = _();
|
|
1502
|
+
F && F.length > 0 && (F[0].category.status === "closed" && (F[0].category.status = "open"), setTimeout(() => {
|
|
1503
|
+
F.forEach((N, M) => {
|
|
1504
|
+
const Y = N.propertyType === "cascade" ? `.${N.categoryId}-${N.propertyID} div.col-form-label` : `.property-item .${N.categoryId}-${N.propertyID} label.col-form-label`, Q = document.querySelector(Y);
|
|
1505
|
+
Q && (P(M, x, Q), U(Q, {
|
|
1609
1506
|
color: "#5B89FE"
|
|
1610
|
-
}),
|
|
1507
|
+
}), E.push(Q));
|
|
1611
1508
|
});
|
|
1612
1509
|
}, 50));
|
|
1613
1510
|
}
|
|
1614
1511
|
}
|
|
1615
|
-
function q(
|
|
1616
|
-
|
|
1512
|
+
function q(T) {
|
|
1513
|
+
D(T);
|
|
1617
1514
|
}
|
|
1618
|
-
function J(
|
|
1515
|
+
function J(T) {
|
|
1619
1516
|
const {
|
|
1620
|
-
value:
|
|
1621
|
-
} =
|
|
1622
|
-
|
|
1517
|
+
value: x
|
|
1518
|
+
} = T.target;
|
|
1519
|
+
T.key === "Enter" && q(x);
|
|
1623
1520
|
}
|
|
1624
|
-
function
|
|
1521
|
+
function be(T) {
|
|
1625
1522
|
const {
|
|
1626
|
-
value:
|
|
1627
|
-
} =
|
|
1628
|
-
q(
|
|
1523
|
+
value: x
|
|
1524
|
+
} = T.target;
|
|
1525
|
+
q(x);
|
|
1629
1526
|
}
|
|
1630
|
-
function
|
|
1631
|
-
|
|
1527
|
+
function he() {
|
|
1528
|
+
c.value || (f.value = !1), t.emit("closePropertyPanel");
|
|
1632
1529
|
}
|
|
1633
|
-
function
|
|
1634
|
-
|
|
1530
|
+
function X(T) {
|
|
1531
|
+
k.value = "", D();
|
|
1635
1532
|
}
|
|
1636
|
-
function
|
|
1637
|
-
!
|
|
1533
|
+
function Ce(T) {
|
|
1534
|
+
!T.status || T.status === "open" ? T.status = "closed" : T.status = "open";
|
|
1638
1535
|
}
|
|
1639
|
-
function
|
|
1640
|
-
var
|
|
1641
|
-
if (
|
|
1642
|
-
|
|
1536
|
+
function z() {
|
|
1537
|
+
var T, x;
|
|
1538
|
+
if (m = [], !u.value || u.value.length === 0) {
|
|
1539
|
+
m = [{
|
|
1643
1540
|
tabId: "default",
|
|
1644
1541
|
tabName: "属性",
|
|
1645
1542
|
categoryList: []
|
|
1646
1543
|
}], B.value = null;
|
|
1647
1544
|
return;
|
|
1648
1545
|
}
|
|
1649
|
-
if ((
|
|
1650
|
-
if (
|
|
1651
|
-
const
|
|
1652
|
-
|
|
1653
|
-
tabId:
|
|
1654
|
-
tabName:
|
|
1655
|
-
categoryList: [
|
|
1656
|
-
hide:
|
|
1546
|
+
if ((T = u == null ? void 0 : u.value) == null || T.forEach((F) => {
|
|
1547
|
+
if (F.tabId) {
|
|
1548
|
+
const N = m.find((M) => M.tabId === F.tabId);
|
|
1549
|
+
N ? (N.categoryList.push(F), N.hide && (N.hide = F.hide || F.properties.length === 0)) : m.push({
|
|
1550
|
+
tabId: F.tabId,
|
|
1551
|
+
tabName: F.tabName,
|
|
1552
|
+
categoryList: [F],
|
|
1553
|
+
hide: F.hide || F.properties.length === 0
|
|
1657
1554
|
});
|
|
1658
1555
|
} else {
|
|
1659
|
-
const
|
|
1660
|
-
|
|
1556
|
+
const N = m.find((M) => M.tabId === "default");
|
|
1557
|
+
N ? N.categoryList.push(F) : m.push({
|
|
1661
1558
|
tabId: "default",
|
|
1662
1559
|
tabName: "属性",
|
|
1663
|
-
categoryList: [
|
|
1560
|
+
categoryList: [F]
|
|
1664
1561
|
});
|
|
1665
1562
|
}
|
|
1666
1563
|
}), a.value) {
|
|
1667
|
-
let
|
|
1668
|
-
B.value =
|
|
1564
|
+
let F = m == null ? void 0 : m.find((N) => N.tabId === a.value && !N.hide);
|
|
1565
|
+
B.value = F || m[0];
|
|
1669
1566
|
} else
|
|
1670
|
-
B.value =
|
|
1671
|
-
a.value = (
|
|
1567
|
+
B.value = m[0];
|
|
1568
|
+
a.value = (x = B.value) == null ? void 0 : x.tabId;
|
|
1672
1569
|
}
|
|
1673
1570
|
V(() => [e.schema, e.isShowPanel], () => {
|
|
1674
|
-
|
|
1675
|
-
}),
|
|
1676
|
-
|
|
1571
|
+
i.value = e.schema, !e.schema || !e.schema.type ? u.value = [] : u.value = K(i.value, R, I, O), z(), X(k.value), $.value++;
|
|
1572
|
+
}), W(() => {
|
|
1573
|
+
z();
|
|
1677
1574
|
});
|
|
1678
|
-
function
|
|
1679
|
-
(!
|
|
1575
|
+
function Fe(T, x) {
|
|
1576
|
+
(!i.value || x) && (i.value = x || e.schema), u.value = K(i.value, R, I, O, T), z(), X(k.value);
|
|
1680
1577
|
}
|
|
1681
|
-
function
|
|
1682
|
-
|
|
1578
|
+
function xe(T, x) {
|
|
1579
|
+
I = T, O = x;
|
|
1683
1580
|
}
|
|
1684
|
-
function
|
|
1685
|
-
|
|
1581
|
+
function ae() {
|
|
1582
|
+
d.value = d.value === "panel" ? "sidebar" : "panel", d.value === "panel" ? (setTimeout(() => {
|
|
1686
1583
|
q();
|
|
1687
1584
|
}, 100), n.value = "300px") : n.value = "41px";
|
|
1688
1585
|
}
|
|
1689
|
-
function
|
|
1586
|
+
function Te() {
|
|
1690
1587
|
if (p.value)
|
|
1691
|
-
return
|
|
1588
|
+
return l("div", {
|
|
1692
1589
|
class: "title-actions"
|
|
1693
|
-
}, [
|
|
1590
|
+
}, [l("div", {
|
|
1694
1591
|
class: "monaco-toolbar"
|
|
1695
|
-
}, [
|
|
1592
|
+
}, [l("div", {
|
|
1696
1593
|
class: "monaco-action-bar animated"
|
|
1697
|
-
}, [
|
|
1594
|
+
}, [l("ul", {
|
|
1698
1595
|
class: "actions-container",
|
|
1699
1596
|
role: "toolbar"
|
|
1700
|
-
}, [
|
|
1597
|
+
}, [l("li", {
|
|
1701
1598
|
class: "action-item",
|
|
1702
|
-
onClick:
|
|
1703
|
-
}, [
|
|
1599
|
+
onClick: he
|
|
1600
|
+
}, [l("span", {
|
|
1704
1601
|
class: "f-icon f-icon-close"
|
|
1705
1602
|
}, null)])])])])]);
|
|
1706
1603
|
}
|
|
1707
|
-
function
|
|
1708
|
-
u.value =
|
|
1604
|
+
function we() {
|
|
1605
|
+
u.value = K(i.value, R, I, O), z();
|
|
1709
1606
|
}
|
|
1710
1607
|
function Be() {
|
|
1711
|
-
var
|
|
1712
|
-
if (
|
|
1713
|
-
return
|
|
1608
|
+
var T;
|
|
1609
|
+
if (r.value && ((T = B.value) == null ? void 0 : T.tabId) !== "commands")
|
|
1610
|
+
return l("div", {
|
|
1714
1611
|
class: "search"
|
|
1715
|
-
}, [
|
|
1612
|
+
}, [l("div", {
|
|
1716
1613
|
class: "input-group f-state-editable border-left-0 border-right-0"
|
|
1717
|
-
}, [
|
|
1614
|
+
}, [l("input", {
|
|
1718
1615
|
class: "form-control f-utils-fill text-left pt-3 pb-3 textbox",
|
|
1719
1616
|
type: "text",
|
|
1720
1617
|
placeholder: "输入属性名称或编号快速定位",
|
|
1721
1618
|
autocomplete: "off",
|
|
1722
|
-
onKeyup: (
|
|
1723
|
-
value:
|
|
1724
|
-
}, null),
|
|
1619
|
+
onKeyup: (x) => J(x),
|
|
1620
|
+
value: k.value
|
|
1621
|
+
}, null), l("div", {
|
|
1725
1622
|
class: "input-group-append",
|
|
1726
1623
|
style: "margin-left: 0px;"
|
|
1727
|
-
}, [
|
|
1624
|
+
}, [l("span", {
|
|
1728
1625
|
class: "input-group-text input-group-clear",
|
|
1729
1626
|
style: [{
|
|
1730
|
-
display:
|
|
1627
|
+
display: k.value && k.value.length > 0 ? "" : "none"
|
|
1731
1628
|
}],
|
|
1732
|
-
onClick: (
|
|
1733
|
-
}, [
|
|
1629
|
+
onClick: (x) => X()
|
|
1630
|
+
}, [l("i", {
|
|
1734
1631
|
class: "f-icon modal_close"
|
|
1735
|
-
}, null)]),
|
|
1632
|
+
}, null)]), l("span", {
|
|
1736
1633
|
class: "input-group-text input-group-clear",
|
|
1737
|
-
onClick: (
|
|
1738
|
-
}, [
|
|
1634
|
+
onClick: (x) => be(x)
|
|
1635
|
+
}, [l("i", {
|
|
1739
1636
|
class: "f-icon f-icon-search"
|
|
1740
1637
|
}, null)])])])]);
|
|
1741
1638
|
}
|
|
1742
|
-
function
|
|
1743
|
-
return `${e.propertyName}_${
|
|
1639
|
+
function Pe(T) {
|
|
1640
|
+
return `${e.propertyName}_${T.categoryId}`;
|
|
1744
1641
|
}
|
|
1745
|
-
function
|
|
1746
|
-
t.emit("propertyChanged",
|
|
1642
|
+
function Se(T) {
|
|
1643
|
+
t.emit("propertyChanged", T);
|
|
1747
1644
|
}
|
|
1748
|
-
function
|
|
1749
|
-
var
|
|
1645
|
+
function ke() {
|
|
1646
|
+
var T, x;
|
|
1750
1647
|
if (B.value)
|
|
1751
|
-
return
|
|
1648
|
+
return l("div", {
|
|
1752
1649
|
class: "panel-body",
|
|
1753
|
-
ref:
|
|
1754
|
-
}, [
|
|
1650
|
+
ref: A
|
|
1651
|
+
}, [l("ul", {
|
|
1755
1652
|
class: ["property-grid", {
|
|
1756
|
-
"wide-panel":
|
|
1653
|
+
"wide-panel": o.value
|
|
1757
1654
|
}]
|
|
1758
|
-
}, [(
|
|
1759
|
-
key:
|
|
1760
|
-
"data-category-id":
|
|
1761
|
-
}, [!
|
|
1655
|
+
}, [(x = (T = B.value) == null ? void 0 : T.categoryList) == null ? void 0 : x.map((F) => l("li", {
|
|
1656
|
+
key: Pe(F),
|
|
1657
|
+
"data-category-id": F == null ? void 0 : F.categoryId
|
|
1658
|
+
}, [!F.hide && !F.hideTitle && l("span", {
|
|
1762
1659
|
class: "group-label",
|
|
1763
|
-
onClick: () =>
|
|
1764
|
-
}, [
|
|
1660
|
+
onClick: () => Ce(F)
|
|
1661
|
+
}, [l("span", {
|
|
1765
1662
|
class: ["f-icon mr-2", {
|
|
1766
|
-
"f-legend-show":
|
|
1663
|
+
"f-legend-show": F.status === "closed"
|
|
1767
1664
|
}, {
|
|
1768
|
-
"f-legend-collapse":
|
|
1665
|
+
"f-legend-collapse": F.status === "open" || F.status === void 0
|
|
1769
1666
|
}]
|
|
1770
|
-
}, null),
|
|
1771
|
-
hidden:
|
|
1772
|
-
}, [
|
|
1773
|
-
key: `${
|
|
1774
|
-
category:
|
|
1775
|
-
propertyData:
|
|
1776
|
-
onTriggerRefreshPanel:
|
|
1777
|
-
onValueChanged:
|
|
1667
|
+
}, null), F.categoryName]), l("div", {
|
|
1668
|
+
hidden: F.status === "closed"
|
|
1669
|
+
}, [l(io, {
|
|
1670
|
+
key: `${F == null ? void 0 : F.categoryId}-${$.value}`,
|
|
1671
|
+
category: F,
|
|
1672
|
+
propertyData: i.value,
|
|
1673
|
+
onTriggerRefreshPanel: we,
|
|
1674
|
+
onValueChanged: Se
|
|
1778
1675
|
}, null)])]))])]);
|
|
1779
1676
|
}
|
|
1780
|
-
function
|
|
1781
|
-
if (
|
|
1782
|
-
return
|
|
1677
|
+
function Ee() {
|
|
1678
|
+
if (d.value === "sidebar")
|
|
1679
|
+
return l("div", {
|
|
1783
1680
|
class: "side-panel h-100",
|
|
1784
|
-
onClick:
|
|
1785
|
-
}, [
|
|
1681
|
+
onClick: ae
|
|
1682
|
+
}, [l("i", {
|
|
1786
1683
|
class: "f-icon f-icon-engineering w-100 icon"
|
|
1787
|
-
}, null),
|
|
1684
|
+
}, null), l("span", null, [ce("属性")])]);
|
|
1788
1685
|
}
|
|
1789
|
-
function
|
|
1686
|
+
function Ie() {
|
|
1790
1687
|
return {
|
|
1791
|
-
display:
|
|
1688
|
+
display: f.value ? "block" : "none",
|
|
1792
1689
|
width: n.value
|
|
1793
1690
|
};
|
|
1794
1691
|
}
|
|
1795
|
-
function
|
|
1796
|
-
return
|
|
1692
|
+
function Oe() {
|
|
1693
|
+
return l("div", {
|
|
1797
1694
|
class: "switcher"
|
|
1798
|
-
}, [
|
|
1695
|
+
}, [l("i", {
|
|
1799
1696
|
class: "f-icon f-icon-exhale-discount",
|
|
1800
1697
|
style: [{
|
|
1801
|
-
transform:
|
|
1698
|
+
transform: d.value === "sidebar" ? "none" : "rotate(180deg)"
|
|
1802
1699
|
}],
|
|
1803
|
-
onClick:
|
|
1700
|
+
onClick: ae
|
|
1804
1701
|
}, null)]);
|
|
1805
1702
|
}
|
|
1806
|
-
function Ne(
|
|
1807
|
-
B.value =
|
|
1703
|
+
function Ne(T) {
|
|
1704
|
+
B.value = T, a.value = B.value.tabId, k.value = "";
|
|
1808
1705
|
}
|
|
1809
1706
|
function Le() {
|
|
1810
|
-
return
|
|
1707
|
+
return m.map((T) => l("div", {
|
|
1811
1708
|
class: ["title-label", {
|
|
1812
|
-
active: B.value && B.value.tabId ===
|
|
1709
|
+
active: B.value && B.value.tabId === T.tabId
|
|
1813
1710
|
}, {
|
|
1814
|
-
hidden:
|
|
1711
|
+
hidden: T.hide
|
|
1815
1712
|
}],
|
|
1816
|
-
onClick: () => Ne(
|
|
1817
|
-
}, [
|
|
1713
|
+
onClick: () => Ne(T)
|
|
1714
|
+
}, [l("span", null, [T.tabName])]));
|
|
1818
1715
|
}
|
|
1819
|
-
return
|
|
1820
|
-
q(
|
|
1821
|
-
}),
|
|
1822
|
-
|
|
1716
|
+
return W(() => {
|
|
1717
|
+
q(k.value);
|
|
1718
|
+
}), $e(() => {
|
|
1719
|
+
c.value && (f.value = C.value), z(), q(k.value);
|
|
1823
1720
|
}), V(B, () => {
|
|
1824
1721
|
}), t.expose({
|
|
1825
|
-
updatePropertyConfig:
|
|
1826
|
-
updateDesignerItem:
|
|
1827
|
-
}), () =>
|
|
1828
|
-
ref:
|
|
1722
|
+
updatePropertyConfig: Fe,
|
|
1723
|
+
updateDesignerItem: xe
|
|
1724
|
+
}), () => l(Z, null, [l("div", {
|
|
1725
|
+
ref: L,
|
|
1829
1726
|
class: ["property-panel", {
|
|
1830
|
-
"white-theme":
|
|
1727
|
+
"white-theme": s.value
|
|
1831
1728
|
}],
|
|
1832
|
-
style:
|
|
1833
|
-
}, [
|
|
1729
|
+
style: Ie()
|
|
1730
|
+
}, [l("div", {
|
|
1834
1731
|
class: "propertyPanel panel flex-column",
|
|
1835
|
-
hidden:
|
|
1836
|
-
}, [
|
|
1732
|
+
hidden: d.value !== "panel"
|
|
1733
|
+
}, [l("div", {
|
|
1837
1734
|
class: ["title d-flex", {
|
|
1838
1735
|
"p-right": p.value
|
|
1839
1736
|
}, {
|
|
1840
|
-
only:
|
|
1737
|
+
only: m.length === 1
|
|
1841
1738
|
}]
|
|
1842
|
-
}, [Le(),
|
|
1739
|
+
}, [Le(), Te()]), Be(), ke()]), Oe(), Ee()])]);
|
|
1843
1740
|
}
|
|
1844
1741
|
});
|
|
1845
|
-
var
|
|
1846
|
-
const
|
|
1742
|
+
var lo = /* @__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))(lo || {});
|
|
1743
|
+
const yr = {
|
|
1847
1744
|
install(e) {
|
|
1848
|
-
e.component(
|
|
1745
|
+
e.component(ue.name, ue);
|
|
1849
1746
|
}
|
|
1850
1747
|
};
|
|
1851
1748
|
export {
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
|
|
1749
|
+
ue as FPropertyPanel,
|
|
1750
|
+
lo as PropertyType,
|
|
1751
|
+
yr as default,
|
|
1752
|
+
Cn as propertyPanelItemProps,
|
|
1753
|
+
Jt as propertyPanelProps
|
|
1857
1754
|
};
|