@farris/ui-vue 1.8.0-alpha.0 → 1.8.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/components/avatar/index.esm.js +138 -1526
- package/components/avatar/index.umd.cjs +1 -6
- package/components/button/index.css +1 -1
- package/components/button/index.esm.js +15951 -15410
- package/components/button/index.umd.cjs +27 -27
- package/components/calendar/index.esm.js +269 -255
- package/components/calendar/index.umd.cjs +3 -3
- package/components/collection-property-editor/index.esm.js +243 -229
- package/components/collection-property-editor/index.umd.cjs +2 -2
- package/components/combo-list/index.esm.js +32 -32
- package/components/combo-list/index.umd.cjs +1 -1
- package/components/comment/index.esm.js +473 -456
- package/components/comment/index.umd.cjs +6 -6
- package/components/component/index.css +1 -1
- package/components/component/index.esm.js +2503 -2239
- package/components/component/index.umd.cjs +2 -2
- package/components/condition/index.esm.js +1064 -954
- package/components/condition/index.umd.cjs +2 -2
- package/components/data-grid/index.esm.js +1 -1
- package/components/data-grid/index.umd.cjs +1 -1
- package/components/designer-canvas/index.css +1 -1
- package/components/designer-canvas/index.esm.js +3894 -3058
- package/components/designer-canvas/index.umd.cjs +1 -1
- package/components/drawer/index.esm.js +91 -77
- package/components/drawer/index.umd.cjs +2 -2
- package/components/dynamic-form/index.esm.js +220 -215
- package/components/dynamic-form/index.umd.cjs +1 -1
- package/components/dynamic-resolver/index.esm.js +145 -131
- package/components/dynamic-resolver/index.umd.cjs +2 -2
- package/components/dynamic-view/index.esm.js +336 -329
- package/components/dynamic-view/index.umd.cjs +1 -1
- package/components/events-editor/index.esm.js +1611 -1536
- package/components/events-editor/index.umd.cjs +3 -3
- package/components/expression-editor/index.esm.js +219 -219
- package/components/expression-editor/index.umd.cjs +2 -2
- package/components/external-container/index.esm.js +179 -178
- package/components/external-container/index.umd.cjs +1 -1
- package/components/fieldset/index.esm.js +285 -221
- package/components/fieldset/index.umd.cjs +1 -1
- package/components/filter-bar/index.css +1 -0
- package/components/filter-bar/index.esm.js +1512 -1290
- package/components/filter-bar/index.umd.cjs +7 -7
- package/components/filter-condition-editor/index.esm.js +851 -831
- package/components/filter-condition-editor/index.umd.cjs +3 -3
- package/components/flow-canvas/index.esm.js +520 -501
- package/components/flow-canvas/index.umd.cjs +8 -8
- package/components/image/index.esm.js +101 -79
- package/components/image/index.umd.cjs +3 -3
- package/components/language-textbox/index.esm.js +330 -251
- package/components/language-textbox/index.umd.cjs +2 -2
- package/components/list-nav/index.esm.js +399 -313
- package/components/list-nav/index.umd.cjs +1 -1
- package/components/locale/index.esm.js +3 -0
- package/components/locale/index.umd.cjs +1 -1
- package/components/lookup/index.esm.js +997 -976
- package/components/lookup/index.umd.cjs +2 -2
- package/components/mapping-editor/index.esm.js +725 -705
- package/components/mapping-editor/index.umd.cjs +1 -1
- package/components/message-box/index.esm.js +542 -522
- package/components/message-box/index.umd.cjs +1 -1
- package/components/nav/index.esm.js +95 -308
- package/components/nav/index.umd.cjs +1 -1
- package/components/number-range/index.esm.js +115 -107
- package/components/number-range/index.umd.cjs +2 -2
- package/components/order/index.esm.js +56 -54
- package/components/order/index.umd.cjs +1 -1
- package/components/page-footer/index.esm.js +135 -123
- package/components/page-footer/index.umd.cjs +1 -1
- package/components/page-header/index.esm.js +266 -222
- package/components/page-header/index.umd.cjs +1 -1
- package/components/property-panel/index.esm.js +402 -375
- package/components/property-panel/index.umd.cjs +4 -4
- package/components/query-solution/index.esm.js +3171 -3061
- package/components/query-solution/index.umd.cjs +7 -7
- package/components/response-toolbar/index.esm.js +1 -1
- package/components/response-toolbar/index.umd.cjs +1 -1
- package/components/schema-selector/index.esm.js +1620 -1608
- package/components/schema-selector/index.umd.cjs +5 -5
- package/components/scroll-navbar/index.esm.js +150 -136
- package/components/scroll-navbar/index.umd.cjs +2 -2
- package/components/section/index.esm.js +323 -311
- package/components/section/index.umd.cjs +2 -2
- package/components/sort-condition-editor/index.esm.js +850 -830
- package/components/sort-condition-editor/index.umd.cjs +3 -3
- package/components/step/index.esm.js +991 -224
- package/components/step/index.umd.cjs +1 -1
- package/components/tabs/index.esm.js +356 -334
- package/components/tabs/index.umd.cjs +1 -1
- package/components/wizard/index.esm.js +159 -162
- package/components/wizard/index.umd.cjs +1 -1
- package/designer/avatar/index.esm.js +1721 -0
- package/designer/avatar/index.umd.cjs +6 -0
- package/designer/button-edit/index.esm.js +2 -1
- package/designer/button-edit/index.umd.cjs +1 -1
- package/designer/data-grid/index.esm.js +693 -659
- package/designer/data-grid/index.umd.cjs +6 -6
- package/designer/data-view/index.esm.js +90 -78
- package/designer/data-view/index.umd.cjs +2 -2
- package/designer/date-picker/index.esm.js +203 -203
- package/designer/date-picker/index.umd.cjs +1 -1
- package/designer/drawer/index.esm.js +181 -167
- package/designer/drawer/index.umd.cjs +2 -2
- package/designer/dynamic-form/index.esm.js +228 -206
- package/designer/dynamic-form/index.umd.cjs +2 -2
- package/designer/farris-designer.all.esm.js +10014 -9692
- package/designer/farris-designer.all.umd.cjs +18 -18
- package/designer/index.css +1 -1
- package/designer/input-group/index.esm.js +15 -15
- package/designer/input-group/index.umd.cjs +1 -1
- package/designer/nav/index.esm.js +1719 -0
- package/designer/nav/index.umd.cjs +6 -0
- package/designer/number-spinner/index.esm.js +8 -7
- package/designer/number-spinner/index.umd.cjs +1 -1
- package/designer/radio-group/index.esm.js +133 -125
- package/designer/radio-group/index.umd.cjs +2 -2
- package/designer/response-toolbar/index.esm.js +864 -863
- package/designer/response-toolbar/index.umd.cjs +1 -1
- package/designer/section/index.esm.js +245 -183
- package/designer/section/index.umd.cjs +1 -1
- package/designer/tabs/index.css +1 -1
- package/designer/tabs/index.esm.js +3667 -2810
- package/designer/tabs/index.umd.cjs +2 -2
- package/designer/time-picker/index.esm.js +26 -17
- package/designer/time-picker/index.umd.cjs +2 -2
- package/designer/tree-grid/index.esm.js +69 -37
- package/designer/tree-grid/index.umd.cjs +1 -1
- package/designer/wizard/index.esm.js +110 -110
- package/designer/wizard/index.umd.cjs +3 -3
- package/farris.all.esm.js +39993 -39089
- package/farris.all.umd.cjs +36 -36
- package/index.css +1 -1
- package/locales/filter-bar/ui/en.json +1 -0
- package/locales/filter-bar/ui/zh-CHS.json +1 -0
- package/locales/filter-bar/ui/zh-CHT.json +1 -0
- package/locales/ui/en.json +1 -0
- package/locales/ui/zh-CHS.json +1 -0
- package/locales/ui/zh-CHT.json +1 -0
- package/package.json +1 -1
- package/types/avatar/designer.d.ts +28 -0
- package/types/avatar/index.d.ts +0 -15
- package/types/avatar/src/composition/types.d.ts +3 -0
- package/types/avatar/src/composition/use-file.d.ts +19 -0
- package/types/avatar/src/composition/use-image.d.ts +1 -1
- package/types/avatar/src/designer/avatar.design.props.d.ts +24 -0
- package/types/avatar/src/property-config/avatar.property-config.d.ts +11 -13
- package/types/avatar/src/schema/schema-mapper.d.ts +2 -0
- package/types/components.d.ts +3 -0
- package/types/condition/index.d.ts +18 -6
- package/types/condition/src/condition-fields.component.d.ts +9 -3
- package/types/condition/src/condition-fields.design.component.d.ts +9 -3
- package/types/condition/src/condition-list.component.d.ts +9 -3
- package/types/condition/src/condition.props.d.ts +11 -0
- package/types/data-view/designer/property-config/use-appearance.d.ts +17 -10
- package/types/data-view/designer/property-config/use-pagination.d.ts +0 -6
- package/types/designer-canvas/src/composition/dg-control.d.ts +13 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.component.d.ts +3 -0
- package/types/dynamic-form/src/component/dynamic-form-label/dynamic-form-label.props.d.ts +4 -0
- package/types/dynamic-resolver/src/converter/tree-auto-check.converter.d.ts +3 -0
- package/types/dynamic-view/src/components/maps.d.ts +130 -4
- package/types/filter-bar/src/composition/types.d.ts +2 -0
- package/types/filter-bar/src/filter-bar.props.d.ts +0 -1
- package/types/filter-bar/src/locale/locale.d.ts +2 -1
- package/types/filter-bar/src/property-config/filter-bar.property-config.d.ts +0 -1
- package/types/language-textbox/index.d.ts +65 -2
- package/types/language-textbox/src/designer/language-textbox.design.component.d.ts +36 -0
- package/types/language-textbox/src/language-textbox.component.d.ts +38 -1
- package/types/language-textbox/src/language-textbox.props.d.ts +20 -0
- package/types/lookup/src/components/popup-container.component.d.ts +3 -3
- package/types/lookup/src/composition/use-compat.d.ts +28 -0
- package/types/lookup/src/composition/use-state.d.ts +1 -0
- package/types/message-box/src/message-box.service.d.ts +2 -1
- package/types/nav/designer.d.ts +28 -0
- package/types/nav/index.d.ts +24 -20
- package/types/nav/src/designer/nav.design.props.d.ts +29 -0
- package/types/nav/src/designer/use-design-rules.d.ts +3 -0
- package/types/nav/src/property-config/nav.property-config.d.ts +9 -0
- package/types/nav/src/schema/schema-mapper.d.ts +4 -0
- package/types/page-footer/src/designer/use-designer-rules.d.ts +2 -2
- package/types/page-header/src/designer/use-designer-rules.d.ts +2 -2
- package/types/property-panel/src/composition/entity/input-base-property.d.ts +1 -0
- package/types/query-solution/src/designer/query-solution-config/composition/use-util.d.ts +1 -1
- package/types/query-solution/src/designer/query-solution-config/query-solution-config.props.d.ts +1 -1
- package/types/section/src/designer/section.design.props.d.ts +4 -0
- package/types/section/src/property-config/section.property-config.d.ts +39 -0
- package/types/section/src/schema/toolbar-resolver.d.ts +0 -1
- package/types/step/src/designer/use-designer-rules.d.ts +3 -0
- package/types/step/src/designer/use-step-creator.d.ts +6 -0
- package/types/step/src/property-config/step.property-config.d.ts +15 -0
- package/types/step/src/schema/schema-resolver.d.ts +2 -1
- package/types/tabs/src/composition/types.d.ts +4 -0
- package/types/tabs/src/tabs.props.d.ts +6 -0
- package/types/tooltip/index.d.ts +3 -3
- package/types/tooltip/src/tooltip.component.d.ts +2 -2
|
@@ -1,99 +1,100 @@
|
|
|
1
|
-
import { inject as X, ref as
|
|
2
|
-
import { resolveAppearance as
|
|
1
|
+
import { inject as X, ref as b, defineComponent as te, createVNode as n, onMounted as he, computed as K, createTextVNode as Y, Fragment as xe, onBeforeMount as on, reactive as Ge, withDirectives as He, resolveDirective as We, watch as ue, mergeProps as tn, onUnmounted as un, provide as Ie } from "vue";
|
|
2
|
+
import { resolveAppearance as dn, createPropsResolver as an, schemaMap as Je, schemaResolverMap as mn, propertyEffectMap as fn, propertyConfigSchemaMap as vn } from "../dynamic-resolver/index.esm.js";
|
|
3
3
|
import { cloneDeep as W } from "lodash-es";
|
|
4
|
-
import { useGuid as Qe, ControllerSchemaRepositorySymbol as
|
|
5
|
-
import { DgControl as
|
|
4
|
+
import { useGuid as Qe, ControllerSchemaRepositorySymbol as hn, useThirdComponent as gn, isMobilePhone as Cn } from "../common/index.esm.js";
|
|
5
|
+
import { DgControl as pn } from "../designer-canvas/index.esm.js";
|
|
6
6
|
import { FNotifyService as fe } from "../notify/index.esm.js";
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { F_MODAL_SERVICE_TOKEN as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
7
|
+
import bn, { FTreeView as wn } from "../tree-view/index.esm.js";
|
|
8
|
+
import Sn, { FSchemaSelector as Fn } from "../schema-selector/index.esm.js";
|
|
9
|
+
import { F_MODAL_SERVICE_TOKEN as yn } from "../modal/index.esm.js";
|
|
10
|
+
import En from "../input-group/index.esm.js";
|
|
11
|
+
import ln from "../combo-list/index.esm.js";
|
|
12
12
|
import Ye from "../event-parameter/index.esm.js";
|
|
13
|
-
import { LocaleService as
|
|
14
|
-
import
|
|
15
|
-
import
|
|
16
|
-
import
|
|
17
|
-
import
|
|
18
|
-
import
|
|
19
|
-
import
|
|
13
|
+
import { LocaleService as Nn } from "../locale/index.esm.js";
|
|
14
|
+
import Pn from "../accordion/index.esm.js";
|
|
15
|
+
import Mn from "../../designer/avatar/index.esm.js";
|
|
16
|
+
import Vn from "../../designer/button-edit/index.esm.js";
|
|
17
|
+
import Ln from "../button-group/index.esm.js";
|
|
18
|
+
import Bn from "../button/index.esm.js";
|
|
19
|
+
import In from "../calendar/index.esm.js";
|
|
20
|
+
import xn from "../../designer/capsule/index.esm.js";
|
|
20
21
|
import Xe from "../../designer/checkbox/index.esm.js";
|
|
21
22
|
import Ze from "../../designer/checkbox-group/index.esm.js";
|
|
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
|
-
import
|
|
67
|
-
import
|
|
68
|
-
import
|
|
69
|
-
import
|
|
70
|
-
import
|
|
71
|
-
import
|
|
72
|
-
import
|
|
73
|
-
import
|
|
74
|
-
import
|
|
75
|
-
import
|
|
76
|
-
import
|
|
77
|
-
import
|
|
78
|
-
import
|
|
79
|
-
import
|
|
80
|
-
import
|
|
81
|
-
import
|
|
82
|
-
import
|
|
83
|
-
import
|
|
84
|
-
import
|
|
85
|
-
import
|
|
86
|
-
import
|
|
87
|
-
import
|
|
88
|
-
import
|
|
23
|
+
import Tn from "../combo-tree/index.esm.js";
|
|
24
|
+
import kn from "../component/index.esm.js";
|
|
25
|
+
import An from "../color-picker/index.esm.js";
|
|
26
|
+
import On from "../content-container/index.esm.js";
|
|
27
|
+
import $n from "../../designer/date-picker/index.esm.js";
|
|
28
|
+
import Dn from "../../designer/data-grid/index.esm.js";
|
|
29
|
+
import Rn from "../dropdown/index.esm.js";
|
|
30
|
+
import jn from "../../designer/dynamic-form/index.esm.js";
|
|
31
|
+
import Un from "../events-editor/index.esm.js";
|
|
32
|
+
import qn from "../filter-bar/index.esm.js";
|
|
33
|
+
import Gn from "../field-selector/index.esm.js";
|
|
34
|
+
import _n from "../binding-selector/index.esm.js";
|
|
35
|
+
import zn from "../image-cropper/index.esm.js";
|
|
36
|
+
import Hn from "../../designer/input-group/index.esm.js";
|
|
37
|
+
import Wn from "../layout/index.esm.js";
|
|
38
|
+
import Kn from "../list-nav/index.esm.js";
|
|
39
|
+
import Jn from "../../designer/list-view/index.esm.js";
|
|
40
|
+
import Qn from "../lookup/index.esm.js";
|
|
41
|
+
import Yn from "../mapping-editor/index.esm.js";
|
|
42
|
+
import Xn from "../../designer/nav/index.esm.js";
|
|
43
|
+
import Zn from "../number-range/index.esm.js";
|
|
44
|
+
import eo from "../../designer/number-spinner/index.esm.js";
|
|
45
|
+
import no from "../order/index.esm.js";
|
|
46
|
+
import oo from "../page-header/index.esm.js";
|
|
47
|
+
import to from "../page-footer/index.esm.js";
|
|
48
|
+
import ao from "../pagination/index.esm.js";
|
|
49
|
+
import lo from "../progress/index.esm.js";
|
|
50
|
+
import ro from "../query-solution/index.esm.js";
|
|
51
|
+
import io from "../../designer/radio-group/index.esm.js";
|
|
52
|
+
import co from "../../designer/rate/index.esm.js";
|
|
53
|
+
import so from "../../designer/response-toolbar/index.esm.js";
|
|
54
|
+
import uo from "../response-layout/index.esm.js";
|
|
55
|
+
import mo from "../../designer/response-layout-editor/index.esm.js";
|
|
56
|
+
import fo from "../search-box/index.esm.js";
|
|
57
|
+
import vo from "../../designer/section/index.esm.js";
|
|
58
|
+
import ho from "../smoke-detector/index.esm.js";
|
|
59
|
+
import go from "../splitter/index.esm.js";
|
|
60
|
+
import Co from "../step/index.esm.js";
|
|
61
|
+
import po from "../../designer/switch/index.esm.js";
|
|
62
|
+
import bo from "../../designer/tabs/index.esm.js";
|
|
63
|
+
import wo from "../../designer/tags/index.esm.js";
|
|
64
|
+
import So from "../text/index.esm.js";
|
|
65
|
+
import Fo from "../../designer/time-picker/index.esm.js";
|
|
66
|
+
import yo from "../transfer/index.esm.js";
|
|
67
|
+
import Eo from "../uploader/index.esm.js";
|
|
68
|
+
import No from "../verify-detail/index.esm.js";
|
|
69
|
+
import Po from "../video/index.esm.js";
|
|
70
|
+
import Mo from "../../designer/textarea/index.esm.js";
|
|
71
|
+
import Vo from "../../designer/tree-grid/index.esm.js";
|
|
72
|
+
import Lo from "../filter-condition-editor/index.esm.js";
|
|
73
|
+
import Bo from "../fieldset/index.esm.js";
|
|
74
|
+
import Io from "../sort-condition-editor/index.esm.js";
|
|
75
|
+
import xo from "../menu-lookup/index.esm.js";
|
|
76
|
+
import To from "../../designer/drawer/index.esm.js";
|
|
77
|
+
import ko from "../json-editor/index.esm.js";
|
|
78
|
+
import Ao from "../property-editor/index.esm.js";
|
|
79
|
+
import Oo from "../expression-editor/index.esm.js";
|
|
80
|
+
import $o from "../code-editor/index.esm.js";
|
|
81
|
+
import Do from "../html-template/index.esm.js";
|
|
82
|
+
import Ro from "../collection-property-editor/index.esm.js";
|
|
83
|
+
import jo from "../../designer/modal/index.esm.js";
|
|
84
|
+
import Uo from "../external-container/index.esm.js";
|
|
85
|
+
import qo from "../language-textbox/index.esm.js";
|
|
86
|
+
import Go from "../image/index.esm.js";
|
|
87
|
+
import _o from "../comment/index.esm.js";
|
|
88
|
+
import zo from "../../designer/wizard/index.esm.js";
|
|
89
|
+
import Ho from "../tooltip/index.esm.js";
|
|
89
90
|
import "../property-panel/index.esm.js";
|
|
90
|
-
const
|
|
91
|
-
["appearance",
|
|
91
|
+
const Wo = /* @__PURE__ */ new Map([
|
|
92
|
+
["appearance", dn]
|
|
92
93
|
]);
|
|
93
|
-
function
|
|
94
|
-
return
|
|
94
|
+
function Ko(e, y, g) {
|
|
95
|
+
return y;
|
|
95
96
|
}
|
|
96
|
-
const
|
|
97
|
+
const Jo = "https://json-schema.org/draft/2020-12/schema", Qo = "https://farris-design.gitee.io/events-editor.schema.json", Yo = "events-editor", Xo = "A Farris Component", Zo = "object", et = {
|
|
97
98
|
id: {
|
|
98
99
|
description: "The unique identifier for events-editor",
|
|
99
100
|
type: "string"
|
|
@@ -113,22 +114,22 @@ const Ho = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-
|
|
|
113
114
|
type: "function",
|
|
114
115
|
default: null
|
|
115
116
|
}
|
|
116
|
-
},
|
|
117
|
+
}, nt = [
|
|
117
118
|
"id",
|
|
118
119
|
"type"
|
|
119
|
-
],
|
|
120
|
-
$schema:
|
|
121
|
-
$id:
|
|
122
|
-
title:
|
|
123
|
-
description:
|
|
124
|
-
type:
|
|
125
|
-
properties:
|
|
126
|
-
required:
|
|
127
|
-
},
|
|
128
|
-
title:
|
|
129
|
-
description:
|
|
130
|
-
type:
|
|
131
|
-
categories:
|
|
120
|
+
], ot = {
|
|
121
|
+
$schema: Jo,
|
|
122
|
+
$id: Qo,
|
|
123
|
+
title: Yo,
|
|
124
|
+
description: Xo,
|
|
125
|
+
type: Zo,
|
|
126
|
+
properties: et,
|
|
127
|
+
required: nt
|
|
128
|
+
}, tt = "events-editor", at = "A Farris Component", lt = "object", rt = {}, it = {
|
|
129
|
+
title: tt,
|
|
130
|
+
description: at,
|
|
131
|
+
type: lt,
|
|
132
|
+
categories: rt
|
|
132
133
|
}, en = [
|
|
133
134
|
{
|
|
134
135
|
label: "pageChange",
|
|
@@ -150,7 +151,7 @@ const Ho = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-
|
|
|
150
151
|
label: "onDeleteClicked",
|
|
151
152
|
name: "Mock操作列点击删除"
|
|
152
153
|
}
|
|
153
|
-
],
|
|
154
|
+
], ct = {
|
|
154
155
|
propertyID: "data-grid-component-viewmodel",
|
|
155
156
|
propertyType: "events",
|
|
156
157
|
/** 内置构件显示的命令列表 */
|
|
@@ -233,19 +234,19 @@ const Ho = "https://json-schema.org/draft/2020-12/schema", Wo = "https://farris-
|
|
|
233
234
|
newController: [],
|
|
234
235
|
isAddControllerMethod: !1,
|
|
235
236
|
getEventList: () => ({ events: en, boundEventsList: [] })
|
|
236
|
-
},
|
|
237
|
-
initialData: { type: Object, default:
|
|
237
|
+
}, rn = {
|
|
238
|
+
initialData: { type: Object, default: ct },
|
|
238
239
|
viewSourceHandle: { type: Function, default: () => {
|
|
239
240
|
} }
|
|
240
|
-
},
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
241
|
+
}, st = an(
|
|
242
|
+
rn,
|
|
243
|
+
ot,
|
|
244
|
+
Wo,
|
|
245
|
+
Ko,
|
|
246
|
+
it
|
|
246
247
|
);
|
|
247
|
-
function
|
|
248
|
-
function e(
|
|
248
|
+
function cn() {
|
|
249
|
+
function e(g, u) {
|
|
249
250
|
const a = [
|
|
250
251
|
{
|
|
251
252
|
controllerId: "45be24f9-c1f7-44f7-b447-fe2ada458a61",
|
|
@@ -524,149 +525,149 @@ function ln() {
|
|
|
524
525
|
]
|
|
525
526
|
}
|
|
526
527
|
];
|
|
527
|
-
let
|
|
528
|
-
const
|
|
529
|
-
return
|
|
528
|
+
let f = -1;
|
|
529
|
+
const N = a.findIndex((C) => g === C.controllerId);
|
|
530
|
+
return N !== -1 && (f = a[N].commands.findIndex((C) => u === C.handlerName)), f !== -1;
|
|
530
531
|
}
|
|
531
|
-
function
|
|
532
|
-
const
|
|
533
|
-
return a.componentLists.length !== 0 &&
|
|
532
|
+
function y(g, u, a) {
|
|
533
|
+
const f = e(g.controllerName.id, u.handlerName);
|
|
534
|
+
return a.componentLists.length !== 0 && f && (u.hasPath = !0, u.targetComponent = u.targetComponent || a.componentLists[0].componentId, u.componentLists = W(a.componentLists)), u;
|
|
534
535
|
}
|
|
535
|
-
return { isContextDependent: e, setComponentLists:
|
|
536
|
+
return { isContextDependent: e, setComponentLists: y };
|
|
536
537
|
}
|
|
537
|
-
var
|
|
538
|
-
function
|
|
539
|
-
const
|
|
540
|
-
function
|
|
541
|
-
var
|
|
542
|
-
let
|
|
538
|
+
var me = /* @__PURE__ */ ((e) => (e.Frame = "frame", e.dataGrid = "data-grid", e.listView = "list-view", e.form = "form", e.uploader = "uploader", e.calendar = "calendar", e.page = "page", e))(me || {});
|
|
539
|
+
function ut(e, y) {
|
|
540
|
+
const g = X("designerContext"), u = g && g.dgControl ? g.dgControl : pn, a = b(""), f = b("");
|
|
541
|
+
function N(l) {
|
|
542
|
+
var c, m, S, o;
|
|
543
|
+
let h = "controlIcon fd-i-Family ", v = "";
|
|
543
544
|
switch (l == null ? void 0 : l.type) {
|
|
544
545
|
case "form-group": {
|
|
545
|
-
|
|
546
|
+
v = ((c = u[l.type]) == null ? void 0 : c.icon) || ((m = l.editor) == null ? void 0 : m.type) || "", (S = u[l.editor.type]) != null && S.icon && (v = u[l.editor.type].icon);
|
|
546
547
|
break;
|
|
547
548
|
}
|
|
548
549
|
default:
|
|
549
|
-
|
|
550
|
+
v = ((o = u[l.type]) == null ? void 0 : o.icon) || l.type;
|
|
550
551
|
}
|
|
551
|
-
const
|
|
552
|
-
return
|
|
552
|
+
const d = `fd_pc-${v}`;
|
|
553
|
+
return h += d, h;
|
|
553
554
|
}
|
|
554
|
-
function
|
|
555
|
-
var
|
|
556
|
-
let
|
|
557
|
-
const
|
|
558
|
-
if ((
|
|
559
|
-
const
|
|
560
|
-
l.id === ((
|
|
555
|
+
function C(l, h) {
|
|
556
|
+
var c;
|
|
557
|
+
let v = l.id;
|
|
558
|
+
const d = h == null ? void 0 : h.contents;
|
|
559
|
+
if ((h == null ? void 0 : h.type) === "splitter" && d && d.length === 2) {
|
|
560
|
+
const m = h.direction !== "column";
|
|
561
|
+
l.id === ((c = d[0]) == null ? void 0 : c.id) ? v = m ? "左侧区域" : "上方区域" : v = m ? "右侧区域" : "下方区域";
|
|
561
562
|
}
|
|
562
|
-
return
|
|
563
|
+
return v;
|
|
563
564
|
}
|
|
564
|
-
function
|
|
565
|
+
function A(l) {
|
|
565
566
|
if (l.isLikeCardContainer)
|
|
566
567
|
return "区块";
|
|
567
|
-
const
|
|
568
|
-
return l.id === "page-header" &&
|
|
568
|
+
const h = l.appearance && l.appearance.class || "", v = h.split(" ");
|
|
569
|
+
return l.id === "page-header" && h && h === "f-page-header" ? "页头" : v.includes("f-page-header-base") ? "页头容器" : v.includes("f-page-header-extend") ? "页头扩展容器" : v.includes("f-title") ? "标题容器" : v.includes("f-page") ? "根容器" : v.includes("f-page-main") ? "内容区域" : v.includes("f-scrollspy-content") && l.isScrollspyContainer ? "滚动监听容器" : v.includes("f-grid-is-sub") ? "表格容器" : v.includes("f-filter-container") ? "筛选条容器" : "容器";
|
|
569
570
|
}
|
|
570
|
-
function
|
|
571
|
-
const { componentType:
|
|
572
|
-
switch (
|
|
573
|
-
case
|
|
571
|
+
function R(l) {
|
|
572
|
+
const { componentType: h } = l;
|
|
573
|
+
switch (h) {
|
|
574
|
+
case me.Frame:
|
|
574
575
|
return "根组件";
|
|
575
|
-
case
|
|
576
|
-
return (e == null ? void 0 : e.formSchemaUtils.selectNode(l, (
|
|
577
|
-
case
|
|
576
|
+
case me.dataGrid:
|
|
577
|
+
return (e == null ? void 0 : e.formSchemaUtils.selectNode(l, (d) => d.type === (u["tree-grid"] && u["tree-grid"].type))) ? "树表格组件" : "表格组件";
|
|
578
|
+
case me.uploader:
|
|
578
579
|
return "附件组件";
|
|
579
|
-
case
|
|
580
|
+
case me.listView:
|
|
580
581
|
return "列表视图组件";
|
|
581
|
-
case
|
|
582
|
+
case me.form:
|
|
582
583
|
return "卡片组件";
|
|
583
|
-
case
|
|
584
|
+
case me.calendar:
|
|
584
585
|
return "日历组件";
|
|
585
|
-
case
|
|
586
|
+
case me.page:
|
|
586
587
|
return l.name || "页面";
|
|
587
588
|
default:
|
|
588
589
|
return "组件";
|
|
589
590
|
}
|
|
590
591
|
}
|
|
591
|
-
function
|
|
592
|
-
const
|
|
593
|
-
if (l.type !== "component" &&
|
|
594
|
-
return
|
|
592
|
+
function w(l, h) {
|
|
593
|
+
const v = l.name || l.text || l.label || l.title || l.mainTitle;
|
|
594
|
+
if (l.type !== "component" && v && typeof v == "string")
|
|
595
|
+
return v.trim();
|
|
595
596
|
switch (l.type) {
|
|
596
597
|
case "content-container":
|
|
597
|
-
return
|
|
598
|
+
return A(l);
|
|
598
599
|
case "splitter-pane":
|
|
599
|
-
return
|
|
600
|
+
return C(l, h);
|
|
600
601
|
case "component":
|
|
601
|
-
return
|
|
602
|
+
return R(l);
|
|
602
603
|
default:
|
|
603
|
-
return
|
|
604
|
+
return u[l.type] && u[l.type].name || l.id;
|
|
604
605
|
}
|
|
605
606
|
}
|
|
606
|
-
function
|
|
607
|
-
const
|
|
608
|
-
if (!
|
|
607
|
+
function M(l, h) {
|
|
608
|
+
const v = l.length ? l[0] : null;
|
|
609
|
+
if (!v)
|
|
609
610
|
return;
|
|
610
|
-
|
|
611
|
-
const
|
|
612
|
-
|
|
611
|
+
f.value = "", a.value = v.originalId;
|
|
612
|
+
const d = v ? `${v.originalId}-design-item` : "", c = document.getElementById(d);
|
|
613
|
+
c && c.click(), y.emit("selectionChanged", v);
|
|
613
614
|
}
|
|
614
|
-
function
|
|
615
|
+
function p(l) {
|
|
615
616
|
if (!l)
|
|
616
617
|
return;
|
|
617
|
-
const
|
|
618
|
-
|
|
618
|
+
const h = `${l}-design-item`, v = document.getElementById(h);
|
|
619
|
+
v && v.click();
|
|
619
620
|
}
|
|
620
|
-
return { getIcon:
|
|
621
|
+
return { getIcon: N, getTitle: w, onChanged: M, currentSelectedNodeId: a, currentSelectedOutsideNodeId: f, triggerOutsideClick: p };
|
|
621
622
|
}
|
|
622
|
-
function
|
|
623
|
-
const { getIcon:
|
|
624
|
-
function a(
|
|
625
|
-
var
|
|
626
|
-
const
|
|
627
|
-
|
|
628
|
-
}
|
|
629
|
-
function
|
|
630
|
-
return
|
|
631
|
-
if (
|
|
632
|
-
a(
|
|
623
|
+
function dt(e, y) {
|
|
624
|
+
const { getIcon: g, getTitle: u } = y;
|
|
625
|
+
function a(w, M, p, l, h) {
|
|
626
|
+
var d;
|
|
627
|
+
const v = (d = e.data.module) == null ? void 0 : d.components.find((c) => c.id === w.component);
|
|
628
|
+
v && f([v], M, p, l, h);
|
|
629
|
+
}
|
|
630
|
+
function f(w, M, p, l, h) {
|
|
631
|
+
return w.forEach((v) => {
|
|
632
|
+
if (v.type === "component" && (h = v.id), v.type === "component-ref") {
|
|
633
|
+
a(v, M, p, l, h);
|
|
633
634
|
return;
|
|
634
635
|
}
|
|
635
|
-
const
|
|
636
|
-
originalId:
|
|
637
|
-
layer:
|
|
636
|
+
const d = {
|
|
637
|
+
originalId: v.id,
|
|
638
|
+
layer: p,
|
|
638
639
|
originalParent: l == null ? void 0 : l.id,
|
|
639
|
-
componentId:
|
|
640
|
-
name: v
|
|
641
|
-
type:
|
|
642
|
-
controlIcon:
|
|
643
|
-
rawSchema:
|
|
640
|
+
componentId: h,
|
|
641
|
+
name: u(v, l),
|
|
642
|
+
type: v.type,
|
|
643
|
+
controlIcon: g(v),
|
|
644
|
+
rawSchema: v
|
|
644
645
|
};
|
|
645
|
-
|
|
646
|
-
}),
|
|
647
|
-
}
|
|
648
|
-
function
|
|
649
|
-
const
|
|
650
|
-
|
|
651
|
-
let l =
|
|
652
|
-
for (;
|
|
653
|
-
const
|
|
654
|
-
|
|
655
|
-
}
|
|
656
|
-
return
|
|
657
|
-
}
|
|
658
|
-
function
|
|
659
|
-
return
|
|
660
|
-
|
|
661
|
-
}),
|
|
662
|
-
var
|
|
663
|
-
|
|
664
|
-
}),
|
|
665
|
-
|
|
666
|
-
}),
|
|
667
|
-
}
|
|
668
|
-
function
|
|
669
|
-
const
|
|
646
|
+
M.push(W(d)), (v.contents || v.buttons) && f(v.contents || v.buttons, M, p + 1, v, h);
|
|
647
|
+
}), M;
|
|
648
|
+
}
|
|
649
|
+
function N(w) {
|
|
650
|
+
const M = [], p = w.find((d) => d.layer === 0);
|
|
651
|
+
w = w.filter((d) => d.layer !== 0), M.push(p);
|
|
652
|
+
let l = p.originalId, h = 0, v = 1e3;
|
|
653
|
+
for (; w.length !== 0 || v === 0; ) {
|
|
654
|
+
const d = w.find((c) => c.originalParent === l);
|
|
655
|
+
d ? (M.push(d), l = d.originalId, w = w.filter((c) => c.originalId !== l), h = 0) : (h -= 1, l = M.slice(h)[0].originalId), v -= 1;
|
|
656
|
+
}
|
|
657
|
+
return M;
|
|
658
|
+
}
|
|
659
|
+
function C(w) {
|
|
660
|
+
return w.forEach((M, p) => {
|
|
661
|
+
M.id = (p + 1).toString();
|
|
662
|
+
}), w.forEach((M) => {
|
|
663
|
+
var p;
|
|
664
|
+
M.parent = ((p = w.find((l) => l.originalId === M.originalParent)) == null ? void 0 : p.id) || "";
|
|
665
|
+
}), w.forEach((M) => {
|
|
666
|
+
M.hasChildren = w.findIndex((p) => p.parent === M.id) > 0;
|
|
667
|
+
}), w;
|
|
668
|
+
}
|
|
669
|
+
function A(w) {
|
|
670
|
+
const M = {
|
|
670
671
|
originalId: e.data.module.id,
|
|
671
672
|
layer: 0,
|
|
672
673
|
originalParent: null,
|
|
@@ -674,151 +675,151 @@ function ct(e, E) {
|
|
|
674
675
|
type: "module",
|
|
675
676
|
controlIcon: "controlIcon fd-i-Family fd_pc-module",
|
|
676
677
|
rawSchema: e.data.module
|
|
677
|
-
},
|
|
678
|
-
return
|
|
679
|
-
l[0].originalParent =
|
|
680
|
-
}),
|
|
681
|
-
}
|
|
682
|
-
function
|
|
683
|
-
const
|
|
684
|
-
if (!
|
|
678
|
+
}, p = [];
|
|
679
|
+
return w.forEach((l) => {
|
|
680
|
+
l[0].originalParent = M.originalId, p.push(...l);
|
|
681
|
+
}), p.unshift(M), p;
|
|
682
|
+
}
|
|
683
|
+
function R() {
|
|
684
|
+
const w = e.data.module ? b(e.data.module.components) : b([e.data]);
|
|
685
|
+
if (!w.value)
|
|
685
686
|
return;
|
|
686
|
-
const
|
|
687
|
-
|
|
688
|
-
if (
|
|
689
|
-
const
|
|
690
|
-
|
|
691
|
-
const
|
|
692
|
-
|
|
687
|
+
const M = [];
|
|
688
|
+
w.value.forEach((v) => {
|
|
689
|
+
if (v) {
|
|
690
|
+
const d = [];
|
|
691
|
+
d.push(v);
|
|
692
|
+
const S = f(d, [], 1, null, v.id);
|
|
693
|
+
M.push(S);
|
|
693
694
|
}
|
|
694
695
|
});
|
|
695
|
-
const
|
|
696
|
-
return
|
|
696
|
+
const p = A(M), l = N(p);
|
|
697
|
+
return C(l);
|
|
697
698
|
}
|
|
698
|
-
return { getData:
|
|
699
|
+
return { getData: R };
|
|
699
700
|
}
|
|
700
701
|
function be(e) {
|
|
701
|
-
const
|
|
702
|
-
function
|
|
703
|
-
var
|
|
702
|
+
const y = X("sourceOutlineData") || [], g = b(), u = b(!1), a = b([]), f = b();
|
|
703
|
+
function N(d, c, m, S) {
|
|
704
|
+
var o, q, z, D;
|
|
704
705
|
return {
|
|
705
706
|
id: Qe().guid(),
|
|
706
|
-
source:
|
|
707
|
-
formId: (
|
|
708
|
-
formCode: (
|
|
709
|
-
componentId: (
|
|
710
|
-
externalContainerId: (D =
|
|
711
|
-
event:
|
|
707
|
+
source: S || {
|
|
708
|
+
formId: (o = d.sourceCommunication) == null ? void 0 : o.formId,
|
|
709
|
+
formCode: (q = d.sourceCommunication) == null ? void 0 : q.formCode,
|
|
710
|
+
componentId: (z = d.sourceCommunication) == null ? void 0 : z.componentId,
|
|
711
|
+
externalContainerId: (D = d.sourceCommunication) == null ? void 0 : D.externalContainerId,
|
|
712
|
+
event: c || "onCommunication"
|
|
712
713
|
},
|
|
713
714
|
target: {
|
|
714
|
-
formId: (
|
|
715
|
-
formCode: (
|
|
716
|
-
externalContainerId: (
|
|
717
|
-
commandCode: (
|
|
718
|
-
commandViewmodelId: (
|
|
715
|
+
formId: (m == null ? void 0 : m.formId) || "",
|
|
716
|
+
formCode: (m == null ? void 0 : m.formCode) || "",
|
|
717
|
+
externalContainerId: (m == null ? void 0 : m.externalContainerId) || "",
|
|
718
|
+
commandCode: (m == null ? void 0 : m.commandCode) || "",
|
|
719
|
+
commandViewmodelId: (m == null ? void 0 : m.commandViewmodelId) || ""
|
|
719
720
|
},
|
|
720
721
|
paramMappings: []
|
|
721
722
|
};
|
|
722
723
|
}
|
|
723
|
-
function
|
|
724
|
-
var
|
|
725
|
-
(
|
|
726
|
-
var
|
|
727
|
-
if (
|
|
728
|
-
const
|
|
729
|
-
|
|
724
|
+
function C(d) {
|
|
725
|
+
var c, m;
|
|
726
|
+
(c = d == null ? void 0 : d.communication) != null && c.length && ((m = d == null ? void 0 : d.communication) == null || m.map((S) => {
|
|
727
|
+
var o, q;
|
|
728
|
+
if (S != null && S.id && !((o = S == null ? void 0 : S.source) != null && o.componentId)) {
|
|
729
|
+
const z = (q = e.getFormSchema().module.communications) == null ? void 0 : q.find((D) => D.id === (S == null ? void 0 : S.id));
|
|
730
|
+
z && Object.assign(S, z);
|
|
730
731
|
}
|
|
731
732
|
}));
|
|
732
733
|
}
|
|
733
|
-
function
|
|
734
|
-
const
|
|
735
|
-
|
|
736
|
-
const
|
|
737
|
-
|
|
734
|
+
function A(d) {
|
|
735
|
+
const c = e.getFormSchema(), { communications: m } = c.module;
|
|
736
|
+
m || (c.module.communications = []);
|
|
737
|
+
const S = c.module.communications.findIndex((o) => o.id === d.id);
|
|
738
|
+
S === -1 ? c.module.communications.push(d) : Object.assign(c.module.communications[S], d);
|
|
738
739
|
}
|
|
739
|
-
function
|
|
740
|
-
var
|
|
741
|
-
if ((
|
|
742
|
-
const
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
}),
|
|
740
|
+
function R(d) {
|
|
741
|
+
var c;
|
|
742
|
+
if ((c = d == null ? void 0 : d.communication) != null && c.length) {
|
|
743
|
+
const m = e.getFormSchema();
|
|
744
|
+
d.communication.map((S) => {
|
|
745
|
+
m.module.communications && S && (m.module.communications = m.module.communications.filter((o) => o.id !== S.id));
|
|
746
|
+
}), d.communication = [];
|
|
746
747
|
}
|
|
747
748
|
}
|
|
748
|
-
function
|
|
749
|
-
var
|
|
750
|
-
const
|
|
751
|
-
|
|
749
|
+
function w(d) {
|
|
750
|
+
var m;
|
|
751
|
+
const c = e.getFormSchema();
|
|
752
|
+
d && ((m = c.module.communications) != null && m.length) && (c.module.communications = c.module.communications.filter((S) => S.id !== d));
|
|
752
753
|
}
|
|
753
|
-
function
|
|
754
|
-
const
|
|
755
|
-
if (
|
|
756
|
-
const
|
|
757
|
-
return
|
|
754
|
+
function M(d, c, m) {
|
|
755
|
+
const S = ut(d, c), o = e.externalFormSchema.get(m);
|
|
756
|
+
if (o != null && o.content) {
|
|
757
|
+
const q = { data: o.content }, { getData: z } = dt(q, S);
|
|
758
|
+
return z();
|
|
758
759
|
}
|
|
759
760
|
return [];
|
|
760
761
|
}
|
|
761
|
-
function
|
|
762
|
-
var
|
|
763
|
-
if (!((
|
|
764
|
-
|
|
762
|
+
function p(d) {
|
|
763
|
+
var m;
|
|
764
|
+
if (!((m = d == null ? void 0 : d.source) != null && m.componentId)) {
|
|
765
|
+
u.value = !1;
|
|
765
766
|
return;
|
|
766
767
|
}
|
|
767
|
-
const
|
|
768
|
-
|
|
768
|
+
const c = y.find((S) => S.originalId === d.source.componentId);
|
|
769
|
+
c ? (u.value = !1, g.value = c) : (u.value = !0, g.value = { id: d.source.componentId });
|
|
769
770
|
}
|
|
770
|
-
function l(
|
|
771
|
-
var
|
|
771
|
+
function l(d) {
|
|
772
|
+
var o, q, z, D;
|
|
772
773
|
a.value = [];
|
|
773
|
-
const
|
|
774
|
-
if (!
|
|
775
|
-
|
|
774
|
+
const c = (o = g.value) == null ? void 0 : o.rawSchema;
|
|
775
|
+
if (!c) {
|
|
776
|
+
f.value = null;
|
|
776
777
|
return;
|
|
777
778
|
}
|
|
778
|
-
const
|
|
779
|
-
|
|
780
|
-
a.value.push({ eventCode:
|
|
781
|
-
}), (
|
|
782
|
-
var
|
|
783
|
-
return
|
|
779
|
+
const m = c.type === "form-group" && c.editor ? c.editor.type : c.type, S = (q = Je[m]) == null ? void 0 : q.events;
|
|
780
|
+
S && Object.keys(S).forEach((P) => {
|
|
781
|
+
a.value.push({ eventCode: P, eventName: S[P] });
|
|
782
|
+
}), (z = d.source) != null && z.event && ((D = a.value) != null && D.length) && (f.value = a.value.find((P) => {
|
|
783
|
+
var $;
|
|
784
|
+
return P.eventCode === (($ = d.source) == null ? void 0 : $.event);
|
|
784
785
|
}));
|
|
785
786
|
}
|
|
786
|
-
function
|
|
787
|
-
var
|
|
788
|
-
if (!(
|
|
787
|
+
function h(d) {
|
|
788
|
+
var S, o, q, z, D, P, $, i;
|
|
789
|
+
if (!(d != null && d.length))
|
|
789
790
|
return;
|
|
790
|
-
|
|
791
|
-
let
|
|
792
|
-
return
|
|
793
|
-
${(i =
|
|
791
|
+
p(d[0]), l(d[0]);
|
|
792
|
+
let c = "", m = "";
|
|
793
|
+
return u.value ? c = `${((S = d[0].source) == null ? void 0 : S.componentId) || ""}-${((o = d[0].source) == null ? void 0 : o.event) || ""}` : (c = (q = g.value) == null ? void 0 : q.name, c && ((z = f.value) != null && z.eventName) && (c += `-${(D = f.value) == null ? void 0 : D.eventName}`), m = `${(P = g.value) == null ? void 0 : P.name} (${($ = g.value) == null ? void 0 : $.originalId})`, m = `${m}
|
|
794
|
+
${(i = f.value) == null ? void 0 : i.eventName} (${f.value.eventCode})`), { title: c, titleTip: m, isControlInvalid: u.value };
|
|
794
795
|
}
|
|
795
|
-
function
|
|
796
|
-
var
|
|
797
|
-
if ((
|
|
798
|
-
const
|
|
799
|
-
return
|
|
796
|
+
function v(d) {
|
|
797
|
+
var c;
|
|
798
|
+
if ((c = d == null ? void 0 : d.communication) != null && c.length) {
|
|
799
|
+
const m = d == null ? void 0 : d.communication[0];
|
|
800
|
+
return m == null ? void 0 : m.source;
|
|
800
801
|
}
|
|
801
802
|
}
|
|
802
803
|
return {
|
|
803
|
-
createNewCommunication:
|
|
804
|
-
resolveCommunication:
|
|
805
|
-
clearAllCommunication:
|
|
806
|
-
clearCommunicationById:
|
|
807
|
-
saveCommunication:
|
|
808
|
-
assembleSourceOutline:
|
|
809
|
-
resolveSourceControlEventTitle:
|
|
810
|
-
resolveCommunicationSource:
|
|
804
|
+
createNewCommunication: N,
|
|
805
|
+
resolveCommunication: C,
|
|
806
|
+
clearAllCommunication: R,
|
|
807
|
+
clearCommunicationById: w,
|
|
808
|
+
saveCommunication: A,
|
|
809
|
+
assembleSourceOutline: M,
|
|
810
|
+
resolveSourceControlEventTitle: h,
|
|
811
|
+
resolveCommunicationSource: v
|
|
811
812
|
};
|
|
812
813
|
}
|
|
813
|
-
function
|
|
814
|
-
const
|
|
815
|
-
function
|
|
816
|
-
var
|
|
814
|
+
function mt(e, y, g) {
|
|
815
|
+
const u = b([]), { boundEvents: a, unBoundEvent: f } = y;
|
|
816
|
+
function N(p) {
|
|
817
|
+
var h, v;
|
|
817
818
|
return {
|
|
818
819
|
/** 当前事件名称及label */
|
|
819
820
|
event: {
|
|
820
|
-
label: (
|
|
821
|
-
name: (
|
|
821
|
+
label: (h = p.boundEvents) == null ? void 0 : h.label,
|
|
822
|
+
name: (v = p.boundEvents) == null ? void 0 : v.name
|
|
822
823
|
},
|
|
823
824
|
/** 控制组件的展示及顺序:
|
|
824
825
|
* 0:事件下拉框
|
|
@@ -833,159 +834,159 @@ function st(e, E, h) {
|
|
|
833
834
|
showSwitchNumber: 2
|
|
834
835
|
}],
|
|
835
836
|
/** 方法列表 */
|
|
836
|
-
command: W(
|
|
837
|
+
command: W(p.command),
|
|
837
838
|
/** 当前的控制器 */
|
|
838
|
-
controller: W(
|
|
839
|
+
controller: W(p.controller),
|
|
839
840
|
/** 通讯 */
|
|
840
|
-
communication:
|
|
841
|
+
communication: p.communication
|
|
841
842
|
};
|
|
842
843
|
}
|
|
843
|
-
function
|
|
844
|
-
var
|
|
845
|
-
|
|
844
|
+
function C() {
|
|
845
|
+
var p;
|
|
846
|
+
u.value = (p = a.value) == null ? void 0 : p.map((l) => N(l));
|
|
846
847
|
}
|
|
847
|
-
function
|
|
848
|
-
const
|
|
849
|
-
boundEvents:
|
|
848
|
+
function A(p, l) {
|
|
849
|
+
const v = N({
|
|
850
|
+
boundEvents: p,
|
|
850
851
|
command: null,
|
|
851
852
|
controller: { id: "", name: "", label: "" },
|
|
852
853
|
communication: l ? [l] : []
|
|
853
854
|
});
|
|
854
855
|
if (l) {
|
|
855
|
-
|
|
856
|
+
v.showSwitch[0].showSwitchNumber = 2, v.showSwitch[0].showSection[2][2] = !1, v.showSwitch[0].showSection[2][3] = !1, v.needSelectCommunicationCommand = !0, u.value.unshift(v);
|
|
856
857
|
return;
|
|
857
858
|
}
|
|
858
|
-
|
|
859
|
+
p && (v.showSwitch[0].showSwitchNumber = 1, v.showSwitch[0].showSection[2][3] = !0, u.value.unshift(v));
|
|
859
860
|
}
|
|
860
|
-
function
|
|
861
|
-
var
|
|
862
|
-
(
|
|
863
|
-
l.showSwitch.forEach((
|
|
864
|
-
|
|
861
|
+
function R() {
|
|
862
|
+
var p;
|
|
863
|
+
(p = u.value) == null || p.forEach((l) => {
|
|
864
|
+
l.showSwitch.forEach((h) => {
|
|
865
|
+
h.showSection[2][3] = !1;
|
|
865
866
|
}), l.shouldShowCommunicationPanel = !1;
|
|
866
867
|
});
|
|
867
868
|
}
|
|
868
|
-
function
|
|
869
|
-
|
|
869
|
+
function w(p) {
|
|
870
|
+
u.value[p].showSwitch.forEach((l) => {
|
|
870
871
|
l.showSection[2][3] = !l.showSection[2][3];
|
|
871
872
|
});
|
|
872
873
|
}
|
|
873
|
-
function
|
|
874
|
-
if (
|
|
875
|
-
const l =
|
|
876
|
-
|
|
877
|
-
const { clearAllCommunication:
|
|
878
|
-
|
|
874
|
+
function M(p) {
|
|
875
|
+
if (p >= 0 && p <= u.value.length - 1) {
|
|
876
|
+
const l = u.value[p];
|
|
877
|
+
f(l.event), u.value.splice(p, 1);
|
|
878
|
+
const { clearAllCommunication: h } = be(e);
|
|
879
|
+
h(l);
|
|
879
880
|
}
|
|
880
881
|
}
|
|
881
882
|
return {
|
|
882
|
-
addNewInteraction:
|
|
883
|
-
collapseInteractions:
|
|
884
|
-
deleteInteracton:
|
|
885
|
-
toggleMethodInInteraction:
|
|
886
|
-
interactions:
|
|
887
|
-
loadInteractions:
|
|
883
|
+
addNewInteraction: A,
|
|
884
|
+
collapseInteractions: R,
|
|
885
|
+
deleteInteracton: M,
|
|
886
|
+
toggleMethodInInteraction: w,
|
|
887
|
+
interactions: u,
|
|
888
|
+
loadInteractions: C
|
|
888
889
|
};
|
|
889
890
|
}
|
|
890
|
-
function
|
|
891
|
-
const
|
|
892
|
-
function
|
|
893
|
-
const { allComponentList:
|
|
891
|
+
function ft(e) {
|
|
892
|
+
const y = b([]), g = b([]), u = b([]), { isContextDependent: a } = cn();
|
|
893
|
+
function f() {
|
|
894
|
+
const { allComponentList: p } = e.value;
|
|
894
895
|
e.value.componentLists.length && e.value.viewModel && e.value.viewModel.forEach((l) => {
|
|
895
|
-
l.controllerList.forEach((
|
|
896
|
-
if (
|
|
897
|
-
const
|
|
898
|
-
if ((
|
|
899
|
-
|
|
896
|
+
l.controllerList.forEach((h) => {
|
|
897
|
+
if (h.targetComponent) {
|
|
898
|
+
const v = p.find((c) => c.componentId === h.targetComponent);
|
|
899
|
+
if ((v ? v.viewModelId : void 0) === e.value.viewModelId)
|
|
900
|
+
h.hasPath = !1;
|
|
900
901
|
else {
|
|
901
|
-
const
|
|
902
|
-
|
|
902
|
+
const c = a(l.controllerName.id, h.handlerName);
|
|
903
|
+
h.hasPath = c ? !0 : h.hasPath, h.componentLists = c ? W(e.value.componentLists) : h.componentLists;
|
|
903
904
|
}
|
|
904
905
|
}
|
|
905
906
|
});
|
|
906
907
|
}), e.value.componentLists.length && e.value.boundEventsList && e.value.boundEventsList.forEach((l) => {
|
|
907
|
-
var
|
|
908
|
-
if ((
|
|
909
|
-
const
|
|
910
|
-
(
|
|
911
|
-
var
|
|
912
|
-
return
|
|
908
|
+
var h;
|
|
909
|
+
if ((h = l.command) != null && h.targetComponent) {
|
|
910
|
+
const v = p.find(
|
|
911
|
+
(c) => {
|
|
912
|
+
var m;
|
|
913
|
+
return c.componentId === (((m = l.command) == null ? void 0 : m.targetComponent) || "");
|
|
913
914
|
}
|
|
914
915
|
);
|
|
915
|
-
if ((
|
|
916
|
+
if ((v ? v.viewModelId : void 0) === e.value.viewModelId)
|
|
916
917
|
l.command.hasPath = !1;
|
|
917
918
|
else {
|
|
918
|
-
const
|
|
919
|
+
const c = a(
|
|
919
920
|
l.controller.id,
|
|
920
921
|
l.command.handlerName
|
|
921
922
|
);
|
|
922
|
-
l.command.hasPath =
|
|
923
|
+
l.command.hasPath = c ? !0 : l.command.hasPath, l.command.componentLists = c ? W(e.value.componentLists) : l.command.componentLists;
|
|
923
924
|
}
|
|
924
925
|
}
|
|
925
926
|
});
|
|
926
927
|
}
|
|
927
|
-
function
|
|
928
|
-
const
|
|
929
|
-
(
|
|
928
|
+
function N() {
|
|
929
|
+
const p = g.value.reduce(
|
|
930
|
+
(h, v) => (h.set(v.boundEvents.label, !0), h),
|
|
930
931
|
/* @__PURE__ */ new Map()
|
|
931
932
|
);
|
|
932
|
-
return
|
|
933
|
+
return y.value.filter((h) => !p.has(h.label));
|
|
933
934
|
}
|
|
934
|
-
function
|
|
935
|
+
function C() {
|
|
935
936
|
var l;
|
|
936
|
-
const
|
|
937
|
-
|
|
937
|
+
const p = ((l = g.value) == null ? void 0 : l.length) > 0;
|
|
938
|
+
u.value = p ? N() : y.value;
|
|
938
939
|
}
|
|
939
|
-
function
|
|
940
|
-
|
|
940
|
+
function A() {
|
|
941
|
+
f(), y.value = e.value.events, g.value = e.value.boundEventsList, C();
|
|
941
942
|
}
|
|
942
|
-
function
|
|
943
|
-
|
|
943
|
+
function R(p) {
|
|
944
|
+
u.value = u.value.filter((l) => l.label !== p.label);
|
|
944
945
|
}
|
|
945
|
-
function
|
|
946
|
-
|
|
946
|
+
function w(p) {
|
|
947
|
+
g.value = g.value.filter((l) => l.boundEvents.label !== p.label), C();
|
|
947
948
|
}
|
|
948
|
-
function
|
|
949
|
-
var
|
|
950
|
-
const
|
|
951
|
-
|
|
952
|
-
return l.find((
|
|
949
|
+
function M() {
|
|
950
|
+
var h;
|
|
951
|
+
const p = (h = e.value) == null ? void 0 : h.getEventList(), { events: l } = p;
|
|
952
|
+
p && (e.value.events = W(l), e.value.boundEventsList = p.boundEventsList), e.value.boundEventsList && (e.value.boundEventsList = e.value.boundEventsList.filter(function(v) {
|
|
953
|
+
return l.find((d) => d.label === v.boundEvents.label);
|
|
953
954
|
}));
|
|
954
955
|
}
|
|
955
956
|
return {
|
|
956
|
-
allEvents:
|
|
957
|
-
boundEvents:
|
|
958
|
-
candidateEvents:
|
|
959
|
-
excludeFromCandidates:
|
|
960
|
-
loadEvents:
|
|
961
|
-
resetBoundEvents:
|
|
962
|
-
unBoundEvent:
|
|
957
|
+
allEvents: y,
|
|
958
|
+
boundEvents: g,
|
|
959
|
+
candidateEvents: u,
|
|
960
|
+
excludeFromCandidates: R,
|
|
961
|
+
loadEvents: A,
|
|
962
|
+
resetBoundEvents: M,
|
|
963
|
+
unBoundEvent: w
|
|
963
964
|
};
|
|
964
965
|
}
|
|
965
|
-
const
|
|
966
|
+
const vt = {
|
|
966
967
|
sourceCommunication: { type: Object, default: {} }
|
|
967
|
-
},
|
|
968
|
+
}, ht = {
|
|
968
969
|
events: { type: Array, default: [] }
|
|
969
|
-
},
|
|
970
|
+
}, gt = /* @__PURE__ */ te({
|
|
970
971
|
name: "FEventList",
|
|
971
|
-
props:
|
|
972
|
+
props: ht,
|
|
972
973
|
emits: ["click"],
|
|
973
|
-
setup(e,
|
|
974
|
-
const
|
|
975
|
-
function
|
|
976
|
-
|
|
974
|
+
setup(e, y) {
|
|
975
|
+
const g = b(e.events);
|
|
976
|
+
function u(f) {
|
|
977
|
+
y.emit("click", f);
|
|
977
978
|
}
|
|
978
|
-
function a(
|
|
979
|
+
function a(f) {
|
|
979
980
|
return n("div", {
|
|
980
981
|
class: "f-page-events-editor-first-bound-event"
|
|
981
982
|
}, [n("div", {
|
|
982
|
-
onClick: () =>
|
|
983
|
+
onClick: () => u(f),
|
|
983
984
|
class: "f-page-events-editor-first-bound-event-name"
|
|
984
|
-
}, [
|
|
985
|
+
}, [f.name])]);
|
|
985
986
|
}
|
|
986
987
|
return () => n("div", {
|
|
987
988
|
class: "f-page-events-editor-events"
|
|
988
|
-
}, [
|
|
989
|
+
}, [g.value.map((f) => a(f))]);
|
|
989
990
|
}
|
|
990
991
|
}), we = {
|
|
991
992
|
/** 通讯id */
|
|
@@ -994,91 +995,91 @@ const dt = {
|
|
|
994
995
|
sourceCommunication: { type: Object, default: {} },
|
|
995
996
|
/** 当前事件编号 */
|
|
996
997
|
event: { type: String, default: "" }
|
|
997
|
-
},
|
|
998
|
+
}, Ct = /* @__PURE__ */ te({
|
|
998
999
|
name: "FSelectSourceControl",
|
|
999
1000
|
props: we,
|
|
1000
1001
|
emits: ["selectSourceEvent", "deleteControl"],
|
|
1001
|
-
setup(e,
|
|
1002
|
-
const
|
|
1003
|
-
createNewCommunication:
|
|
1004
|
-
} = be(
|
|
1005
|
-
a.value =
|
|
1006
|
-
const
|
|
1002
|
+
setup(e, y) {
|
|
1003
|
+
const g = X("useFormSchema"), {
|
|
1004
|
+
createNewCommunication: u
|
|
1005
|
+
} = be(g), a = b();
|
|
1006
|
+
a.value = u(e);
|
|
1007
|
+
const f = b([{
|
|
1007
1008
|
field: "name",
|
|
1008
1009
|
title: "",
|
|
1009
1010
|
dataType: "string"
|
|
1010
|
-
}]),
|
|
1011
|
-
function
|
|
1012
|
-
const
|
|
1013
|
-
|
|
1014
|
-
}
|
|
1015
|
-
function
|
|
1016
|
-
var
|
|
1017
|
-
if (!((i = (
|
|
1018
|
-
|
|
1011
|
+
}]), N = b([]), C = b(), A = b(), R = b(!0), w = b(!1), M = b([]), p = b(), l = b(!0), h = b(!1);
|
|
1012
|
+
function v() {
|
|
1013
|
+
const P = X("sourceOutlineData");
|
|
1014
|
+
N.value = P || [], A.value.updateDataSource(N.value);
|
|
1015
|
+
}
|
|
1016
|
+
function d() {
|
|
1017
|
+
var $, i, t;
|
|
1018
|
+
if (!((i = ($ = a.value) == null ? void 0 : $.source) != null && i.componentId)) {
|
|
1019
|
+
h.value = !1;
|
|
1019
1020
|
return;
|
|
1020
1021
|
}
|
|
1021
|
-
const
|
|
1022
|
-
|
|
1022
|
+
const P = (t = N.value) == null ? void 0 : t.find((r) => r.originalId === a.value.source.componentId);
|
|
1023
|
+
P ? (A.value.selectItemById(P.id), h.value = !1) : (h.value = !0, C.value = {
|
|
1023
1024
|
id: a.value.source.componentId
|
|
1024
1025
|
});
|
|
1025
1026
|
}
|
|
1026
|
-
function
|
|
1027
|
-
var
|
|
1028
|
-
(
|
|
1029
|
-
var r,
|
|
1030
|
-
return
|
|
1027
|
+
function c() {
|
|
1028
|
+
var P, $, i;
|
|
1029
|
+
($ = (P = a.value) == null ? void 0 : P.source) != null && $.event && ((i = M.value) != null && i.length) && (p.value = M.value.find((t) => {
|
|
1030
|
+
var r, E;
|
|
1031
|
+
return t.eventCode === ((E = (r = a.value) == null ? void 0 : r.source) == null ? void 0 : E.event);
|
|
1031
1032
|
}));
|
|
1032
1033
|
}
|
|
1033
1034
|
he(() => {
|
|
1034
|
-
|
|
1035
|
+
v(), d(), c(), l.value = !1;
|
|
1035
1036
|
});
|
|
1036
|
-
function
|
|
1037
|
-
var
|
|
1038
|
-
|
|
1039
|
-
const
|
|
1037
|
+
function m() {
|
|
1038
|
+
var t;
|
|
1039
|
+
M.value = [];
|
|
1040
|
+
const P = C.value.rawSchema, $ = P.type === "form-group" && P.editor ? P.editor.type : P.type, i = (t = Je[$]) == null ? void 0 : t.events;
|
|
1040
1041
|
i && Object.keys(i).forEach((r) => {
|
|
1041
|
-
|
|
1042
|
+
M.value.push({
|
|
1042
1043
|
eventCode: r,
|
|
1043
1044
|
eventName: i[r]
|
|
1044
1045
|
});
|
|
1045
1046
|
});
|
|
1046
1047
|
}
|
|
1047
|
-
function
|
|
1048
|
-
|
|
1049
|
-
const
|
|
1050
|
-
|
|
1048
|
+
function S(P) {
|
|
1049
|
+
R.value = !1, h.value = !1;
|
|
1050
|
+
const $ = C.value !== P[0];
|
|
1051
|
+
$ && (C.value = P[0], m()), l.value || (w.value = !0), !l.value && $ && (p.value = null);
|
|
1051
1052
|
}
|
|
1052
|
-
const
|
|
1053
|
+
const o = K(() => ({
|
|
1053
1054
|
"item-list": !0,
|
|
1054
|
-
"d-none": !
|
|
1055
|
-
})),
|
|
1056
|
-
var
|
|
1055
|
+
"d-none": !R.value
|
|
1056
|
+
})), q = K(() => (P) => {
|
|
1057
|
+
var $;
|
|
1057
1058
|
return {
|
|
1058
1059
|
item: !0,
|
|
1059
|
-
selected: ((
|
|
1060
|
+
selected: (($ = p.value) == null ? void 0 : $.eventCode) === P
|
|
1060
1061
|
};
|
|
1061
1062
|
});
|
|
1062
|
-
function
|
|
1063
|
-
var
|
|
1064
|
-
|
|
1063
|
+
function z(P) {
|
|
1064
|
+
var $;
|
|
1065
|
+
R.value = !1, w.value = !1, p.value = P, a.value.source.componentId = C.value.rawSchema.id, a.value.source.event = ($ = p.value) == null ? void 0 : $.eventCode, y.emit("selectSourceEvent", a.value);
|
|
1065
1066
|
}
|
|
1066
1067
|
const D = K(() => ({
|
|
1067
1068
|
"form-container": !0,
|
|
1068
1069
|
"position-relative": !0,
|
|
1069
|
-
invalid:
|
|
1070
|
+
invalid: h.value
|
|
1070
1071
|
}));
|
|
1071
1072
|
return () => n("div", {
|
|
1072
1073
|
class: D.value
|
|
1073
1074
|
}, [n("div", {
|
|
1074
|
-
class:
|
|
1075
|
+
class: o.value,
|
|
1075
1076
|
style: "min-height:220px;"
|
|
1076
1077
|
}, [n("span", {
|
|
1077
1078
|
class: "tip"
|
|
1078
|
-
}, [Y("请选择源控件")]), n(
|
|
1079
|
-
ref:
|
|
1080
|
-
data:
|
|
1081
|
-
columns:
|
|
1079
|
+
}, [Y("请选择源控件")]), n(wn, {
|
|
1080
|
+
ref: A,
|
|
1081
|
+
data: N.value,
|
|
1082
|
+
columns: f.value,
|
|
1082
1083
|
columnOption: {
|
|
1083
1084
|
fitColumns: !0,
|
|
1084
1085
|
fitMode: "expand"
|
|
@@ -1086,66 +1087,66 @@ const dt = {
|
|
|
1086
1087
|
showTreeNodeIcons: !0,
|
|
1087
1088
|
fit: !0,
|
|
1088
1089
|
iconField: "controlIcon",
|
|
1089
|
-
onSelectionChange:
|
|
1090
|
-
}, null)]),
|
|
1090
|
+
onSelectionChange: S
|
|
1091
|
+
}, null)]), w.value && n(xe, null, [n("div", {
|
|
1091
1092
|
class: "item-list"
|
|
1092
1093
|
}, [n("span", {
|
|
1093
1094
|
class: "tip"
|
|
1094
|
-
}, [Y("请选择事件")]),
|
|
1095
|
-
class:
|
|
1096
|
-
onClick: () =>
|
|
1097
|
-
}, [
|
|
1095
|
+
}, [Y("请选择事件")]), M.value.map((P) => n("span", {
|
|
1096
|
+
class: q.value(P.eventCode),
|
|
1097
|
+
onClick: () => z(P)
|
|
1098
|
+
}, [P.eventName]))])])]);
|
|
1098
1099
|
}
|
|
1099
|
-
}),
|
|
1100
|
+
}), pt = /* @__PURE__ */ te({
|
|
1100
1101
|
name: "FInteractionButton",
|
|
1101
|
-
props:
|
|
1102
|
+
props: vt,
|
|
1102
1103
|
emits: ["clickEventItem", "selectSourceControl"],
|
|
1103
|
-
setup(e,
|
|
1104
|
-
const
|
|
1105
|
-
candidateEvents:
|
|
1106
|
-
} =
|
|
1107
|
-
collapseInteractions:
|
|
1108
|
-
} = a,
|
|
1109
|
-
function
|
|
1110
|
-
|
|
1111
|
-
}
|
|
1112
|
-
function
|
|
1113
|
-
var
|
|
1114
|
-
(
|
|
1115
|
-
}
|
|
1116
|
-
function
|
|
1117
|
-
|
|
1118
|
-
}
|
|
1119
|
-
function
|
|
1120
|
-
var
|
|
1121
|
-
if (!((
|
|
1122
|
-
|
|
1104
|
+
setup(e, y) {
|
|
1105
|
+
const g = new fe(), u = X("useEventsComposition"), a = X("useInteractionCompostion"), {
|
|
1106
|
+
candidateEvents: f
|
|
1107
|
+
} = u, {
|
|
1108
|
+
collapseInteractions: N
|
|
1109
|
+
} = a, C = b(!1), A = b(!1);
|
|
1110
|
+
function R(h) {
|
|
1111
|
+
f.value = f.value.filter((v) => v.label !== h.label);
|
|
1112
|
+
}
|
|
1113
|
+
function w() {
|
|
1114
|
+
var h;
|
|
1115
|
+
(h = e.sourceCommunication) != null && h.needSelectSourceControl ? A.value = !A.value : C.value = !C.value;
|
|
1116
|
+
}
|
|
1117
|
+
function M(h) {
|
|
1118
|
+
w(), R(h), y.emit("clickEventItem", h);
|
|
1119
|
+
}
|
|
1120
|
+
function p() {
|
|
1121
|
+
var h;
|
|
1122
|
+
if (!((h = e.sourceCommunication) != null && h.needSelectSourceControl) && f.value.length === 0) {
|
|
1123
|
+
g.info({
|
|
1123
1124
|
position: "top-center",
|
|
1124
1125
|
message: "事件已全部绑定"
|
|
1125
1126
|
});
|
|
1126
1127
|
return;
|
|
1127
1128
|
}
|
|
1128
|
-
|
|
1129
|
+
N(), w();
|
|
1129
1130
|
}
|
|
1130
|
-
function l(
|
|
1131
|
-
|
|
1131
|
+
function l(h) {
|
|
1132
|
+
A.value = !1, y.emit("selectSourceControl", h);
|
|
1132
1133
|
}
|
|
1133
|
-
return () => n(
|
|
1134
|
+
return () => n(xe, null, [n("div", {
|
|
1134
1135
|
class: "f-page-events-editor-top-button"
|
|
1135
1136
|
}, [n("button", {
|
|
1136
1137
|
class: "f-page-events-editor-button",
|
|
1137
|
-
onClick:
|
|
1138
|
+
onClick: p
|
|
1138
1139
|
}, [n("span", {
|
|
1139
1140
|
class: "f-page-events-editor-text"
|
|
1140
|
-
}, [Y("新建交互事件")])])]),
|
|
1141
|
-
events:
|
|
1142
|
-
onClick:
|
|
1143
|
-
}, null),
|
|
1141
|
+
}, [Y("新建交互事件")])])]), C.value && n(gt, {
|
|
1142
|
+
events: f.value,
|
|
1143
|
+
onClick: M
|
|
1144
|
+
}, null), A.value && n(Ct, {
|
|
1144
1145
|
sourceCommunication: e.sourceCommunication,
|
|
1145
1146
|
onSelectSourceEvent: l
|
|
1146
1147
|
}, null)]);
|
|
1147
1148
|
}
|
|
1148
|
-
}),
|
|
1149
|
+
}), bt = {
|
|
1149
1150
|
collapsed: { type: Boolean, default: !0 },
|
|
1150
1151
|
displayOrder: { type: Number, default: -1 },
|
|
1151
1152
|
interaction: { type: Object, default: {} },
|
|
@@ -1155,7 +1156,7 @@ const dt = {
|
|
|
1155
1156
|
} },
|
|
1156
1157
|
/** 接收是否显示「可选择方法」功能 */
|
|
1157
1158
|
haveBoundCommand: { Type: Boolean, default: !1 }
|
|
1158
|
-
},
|
|
1159
|
+
}, wt = {
|
|
1159
1160
|
/** 判断是否为新引入的方法 */
|
|
1160
1161
|
newImport: { Type: Boolean, default: !1 },
|
|
1161
1162
|
/** 新增的内置构件列表 */
|
|
@@ -1172,47 +1173,47 @@ const dt = {
|
|
|
1172
1173
|
event: { Type: Object },
|
|
1173
1174
|
/** 通讯来源 */
|
|
1174
1175
|
sourceCommunication: { type: Object, default: {} }
|
|
1175
|
-
},
|
|
1176
|
+
}, St = {
|
|
1176
1177
|
controllers: { type: Array, default: [] }
|
|
1177
|
-
},
|
|
1178
|
+
}, Ft = /* @__PURE__ */ te({
|
|
1178
1179
|
name: "FCommandList",
|
|
1179
|
-
props:
|
|
1180
|
+
props: St,
|
|
1180
1181
|
emits: ["selectMethod"],
|
|
1181
|
-
setup(e,
|
|
1182
|
-
function
|
|
1183
|
-
return
|
|
1182
|
+
setup(e, y) {
|
|
1183
|
+
function g(C) {
|
|
1184
|
+
return C.controllerList.length !== 0;
|
|
1184
1185
|
}
|
|
1185
|
-
function
|
|
1186
|
-
return
|
|
1186
|
+
function u(C) {
|
|
1187
|
+
return g(C) && n("div", {
|
|
1187
1188
|
class: "f-page-internals-controller"
|
|
1188
1189
|
}, [n("div", {
|
|
1189
1190
|
class: "f-page-internals-controller-name",
|
|
1190
|
-
title:
|
|
1191
|
-
}, [
|
|
1191
|
+
title: C.controllerName.name
|
|
1192
|
+
}, [C.controllerName.name])]);
|
|
1192
1193
|
}
|
|
1193
|
-
function a(
|
|
1194
|
-
|
|
1195
|
-
method:
|
|
1196
|
-
controller:
|
|
1194
|
+
function a(C, A) {
|
|
1195
|
+
y.emit("selectMethod", {
|
|
1196
|
+
method: C,
|
|
1197
|
+
controller: A
|
|
1197
1198
|
});
|
|
1198
1199
|
}
|
|
1199
|
-
function
|
|
1200
|
-
return
|
|
1200
|
+
function f(C) {
|
|
1201
|
+
return C.controllerList.map((A) => n("div", {
|
|
1201
1202
|
class: "f-page-internals-command",
|
|
1202
|
-
onClick: () => a(
|
|
1203
|
+
onClick: () => a(A, C)
|
|
1203
1204
|
}, [n("div", {
|
|
1204
1205
|
class: "f-page-internals-command-name",
|
|
1205
|
-
title:
|
|
1206
|
-
}, [
|
|
1206
|
+
title: A.label
|
|
1207
|
+
}, [A.name])]));
|
|
1207
1208
|
}
|
|
1208
|
-
function
|
|
1209
|
-
return n("div", null, [
|
|
1209
|
+
function N(C) {
|
|
1210
|
+
return n("div", null, [u(C), f(C)]);
|
|
1210
1211
|
}
|
|
1211
1212
|
return () => n("div", {
|
|
1212
1213
|
class: "f-page-internals"
|
|
1213
|
-
}, [e.controllers.map((
|
|
1214
|
+
}, [e.controllers.map((C) => N(C))]);
|
|
1214
1215
|
}
|
|
1215
|
-
}),
|
|
1216
|
+
}), yt = {
|
|
1216
1217
|
getEventPath: { type: Function, default: null },
|
|
1217
1218
|
notifyService: { type: Object },
|
|
1218
1219
|
useFormSchema: { type: Object },
|
|
@@ -1220,61 +1221,61 @@ const dt = {
|
|
|
1220
1221
|
sourceCommunication: { type: Object, default: {} },
|
|
1221
1222
|
/** 当前编辑的事件编号、事件名称 */
|
|
1222
1223
|
event: { Type: Object }
|
|
1223
|
-
},
|
|
1224
|
+
}, Et = /* @__PURE__ */ te({
|
|
1224
1225
|
name: "FBoundEventSelector",
|
|
1225
|
-
props:
|
|
1226
|
+
props: yt,
|
|
1226
1227
|
emits: ["cancel", "submit"],
|
|
1227
|
-
setup(e,
|
|
1228
|
-
var
|
|
1229
|
-
const
|
|
1230
|
-
|
|
1228
|
+
setup(e, y) {
|
|
1229
|
+
var F, j;
|
|
1230
|
+
const g = b(), u = b([]), a = b('<i class="f-icon f-icon-search"></i>'), f = e.useFormSchema.getFormMetadataBasicInfo(), N = b(""), C = b(), A = ((F = e.sourceCommunication) == null ? void 0 : F.unSupportedEventCodes) || [], R = b(!A.includes(e.event.label) && ((j = e.useFormSchema.externalFormSchema) == null ? void 0 : j.size) > 0), w = b(), M = b([]);
|
|
1231
|
+
on(() => {
|
|
1231
1232
|
if (e.getEventPath) {
|
|
1232
|
-
const
|
|
1233
|
-
|
|
1233
|
+
const s = e.getEventPath();
|
|
1234
|
+
g.value = s.viewModelDisplay;
|
|
1234
1235
|
const {
|
|
1235
|
-
actionWithPath:
|
|
1236
|
-
} =
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1236
|
+
actionWithPath: k
|
|
1237
|
+
} = s;
|
|
1238
|
+
k.forEach((O) => {
|
|
1239
|
+
O.sourceComponent.map.forEach((G) => {
|
|
1240
|
+
G.active = !1, G.hide = !1;
|
|
1240
1241
|
});
|
|
1241
|
-
}),
|
|
1242
|
+
}), u.value = W(k);
|
|
1242
1243
|
}
|
|
1243
1244
|
});
|
|
1244
|
-
function
|
|
1245
|
-
|
|
1246
|
-
const
|
|
1247
|
-
|
|
1248
|
-
const J =
|
|
1249
|
-
`${
|
|
1245
|
+
function p(s = "") {
|
|
1246
|
+
s = s.replace(/ /g, "").replace(/>/g, "").toLowerCase(), s === "" && (s = " "), u.value.forEach((k) => {
|
|
1247
|
+
const O = k.path;
|
|
1248
|
+
k.sourceComponent.map.forEach((G) => {
|
|
1249
|
+
const J = G.command.name, oe = G.event.name, I = G.command.label;
|
|
1250
|
+
`${O}${J}${oe}${I}`.toLowerCase().includes(s) ? G.hide = !1 : G.hide = !0;
|
|
1250
1251
|
});
|
|
1251
1252
|
});
|
|
1252
1253
|
}
|
|
1253
|
-
function l(
|
|
1254
|
-
|
|
1255
|
-
if (!
|
|
1254
|
+
function l(s = "") {
|
|
1255
|
+
s = s.replace(/ /g, "").replace(/>/g, "").toLowerCase(), M.value.forEach((k) => {
|
|
1256
|
+
if (!k.isCommandNode)
|
|
1256
1257
|
return;
|
|
1257
|
-
const
|
|
1258
|
-
|
|
1258
|
+
const O = k.name || "", G = k.code || "", J = k.viewmodelName || "", oe = `${O}${G}${J}`.toLowerCase();
|
|
1259
|
+
s && !oe.includes(s) ? k.hide = !0 : k.hide = !1;
|
|
1259
1260
|
});
|
|
1260
1261
|
}
|
|
1261
|
-
function
|
|
1262
|
-
!
|
|
1262
|
+
function h(s = "") {
|
|
1263
|
+
!w.value || w.value.id === f.id ? p(s) : l(s);
|
|
1263
1264
|
}
|
|
1264
|
-
function
|
|
1265
|
-
const
|
|
1265
|
+
function v() {
|
|
1266
|
+
const s = n("div", {
|
|
1266
1267
|
class: "f-vm-search"
|
|
1267
1268
|
}, [n("div", {
|
|
1268
1269
|
class: "f-vm-searchBar"
|
|
1269
|
-
}, [n(
|
|
1270
|
+
}, [n(En, {
|
|
1270
1271
|
updateOn: "change",
|
|
1271
1272
|
groupText: a.value,
|
|
1272
|
-
modelValue:
|
|
1273
|
-
"onUpdate:modelValue": (
|
|
1274
|
-
onChange:
|
|
1273
|
+
modelValue: N.value,
|
|
1274
|
+
"onUpdate:modelValue": (k) => N.value = k,
|
|
1275
|
+
onChange: h,
|
|
1275
1276
|
placeholder: "请输入名称/编号/路径搜索"
|
|
1276
1277
|
}, null)])]);
|
|
1277
|
-
return
|
|
1278
|
+
return R.value ? n("div", {
|
|
1278
1279
|
class: "f-navSelector-header"
|
|
1279
1280
|
}, [n("div", {
|
|
1280
1281
|
class: "f-navSelector-recommand"
|
|
@@ -1284,37 +1285,37 @@ const dt = {
|
|
|
1284
1285
|
class: "f-navSelector-remainder"
|
|
1285
1286
|
}, [n("div", {
|
|
1286
1287
|
class: "f-vm-search"
|
|
1287
|
-
}, [
|
|
1288
|
+
}, [s])])]) : s;
|
|
1288
1289
|
}
|
|
1289
|
-
function
|
|
1290
|
+
function d(s) {
|
|
1290
1291
|
return {
|
|
1291
1292
|
"f-vm-item": !0,
|
|
1292
|
-
"f-vm-item-focus":
|
|
1293
|
+
"f-vm-item-focus": s.active
|
|
1293
1294
|
};
|
|
1294
1295
|
}
|
|
1295
|
-
function s
|
|
1296
|
-
let
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
!J.command.isInvalid &&
|
|
1296
|
+
function c(s, k) {
|
|
1297
|
+
let O = 0;
|
|
1298
|
+
u.value.forEach((G) => {
|
|
1299
|
+
G.sourceComponent.map.forEach((J) => {
|
|
1300
|
+
!J.command.isInvalid && s.controller.id === J.controller.id && s.command.id === J.command.id && s.event.label === J.event.label && k.sourceComponent.id === G.sourceComponent.id ? (s.active = !s.active, C.value = W(s)) : (J.command.isInvalid && s.controller.id === J.controller.id && s.command.id === J.command.id && s.event.label === J.event.label && k.sourceComponent.id === G.sourceComponent.id && (O++, O === 1 && (new fe().info({
|
|
1300
1301
|
position: "top-center",
|
|
1301
1302
|
message: "该方法已失效"
|
|
1302
|
-
}),
|
|
1303
|
+
}), C.value = null)), J.active = !1);
|
|
1303
1304
|
});
|
|
1304
1305
|
});
|
|
1305
1306
|
}
|
|
1306
|
-
function
|
|
1307
|
+
function m(s) {
|
|
1307
1308
|
return {
|
|
1308
|
-
"f-event-func": !
|
|
1309
|
-
"f-event-func-invalid":
|
|
1309
|
+
"f-event-func": !s.command.isInvalid,
|
|
1310
|
+
"f-event-func-invalid": s.command.isInvalid
|
|
1310
1311
|
};
|
|
1311
1312
|
}
|
|
1312
|
-
function
|
|
1313
|
-
return
|
|
1314
|
-
if (!
|
|
1313
|
+
function S(s) {
|
|
1314
|
+
return s.sourceComponent.map.filter((k) => !k.hide).map((k) => {
|
|
1315
|
+
if (!k.command.isInvalid)
|
|
1315
1316
|
return n("div", {
|
|
1316
|
-
class:
|
|
1317
|
-
onClick: () =>
|
|
1317
|
+
class: d(k),
|
|
1318
|
+
onClick: () => c(k, s)
|
|
1318
1319
|
}, [n("div", {
|
|
1319
1320
|
class: "f-event-commandItem"
|
|
1320
1321
|
}, [n("div", {
|
|
@@ -1323,16 +1324,16 @@ const dt = {
|
|
|
1323
1324
|
class: "f-icon f-icon-source-code",
|
|
1324
1325
|
style: "font-size:10px;color:#30B471;"
|
|
1325
1326
|
}, [Y(" ")])]), n("div", {
|
|
1326
|
-
class:
|
|
1327
|
-
}, [
|
|
1327
|
+
class: m(k)
|
|
1328
|
+
}, [k.command.name, Y("("), k.command.label, Y(")")])]), n("div", {
|
|
1328
1329
|
class: "f-event-path"
|
|
1329
|
-
}, [
|
|
1330
|
+
}, [s.path, k.event.name])]);
|
|
1330
1331
|
});
|
|
1331
1332
|
}
|
|
1332
|
-
function
|
|
1333
|
-
return
|
|
1333
|
+
function o() {
|
|
1334
|
+
return u.value.length > 0 ? n("div", {
|
|
1334
1335
|
class: "f-vm-viewModel flex-fill"
|
|
1335
|
-
}, [
|
|
1336
|
+
}, [u.value.map((s) => S(s))]) : n("div", {
|
|
1336
1337
|
class: "f-list-view-emptydata",
|
|
1337
1338
|
style: "height: 360px;position: relative;"
|
|
1338
1339
|
}, [n("div", {
|
|
@@ -1341,93 +1342,93 @@ const dt = {
|
|
|
1341
1342
|
class: "f-datagrid-norecords-content"
|
|
1342
1343
|
}, [Y(" 暂无数据")])])]);
|
|
1343
1344
|
}
|
|
1344
|
-
function
|
|
1345
|
-
|
|
1345
|
+
function q() {
|
|
1346
|
+
y.emit("cancel");
|
|
1346
1347
|
}
|
|
1347
|
-
function
|
|
1348
|
-
if (!
|
|
1348
|
+
function z() {
|
|
1349
|
+
if (!C.value) {
|
|
1349
1350
|
e.notifyService.info({
|
|
1350
1351
|
position: "top-center",
|
|
1351
1352
|
message: "请选择需要绑定的方法"
|
|
1352
1353
|
});
|
|
1353
1354
|
return;
|
|
1354
1355
|
}
|
|
1355
|
-
|
|
1356
|
-
selectedCommand:
|
|
1357
|
-
selectedForm:
|
|
1356
|
+
y.emit("submit", {
|
|
1357
|
+
selectedCommand: C.value,
|
|
1358
|
+
selectedForm: w.value
|
|
1358
1359
|
});
|
|
1359
1360
|
}
|
|
1360
1361
|
function D() {
|
|
1361
|
-
const
|
|
1362
|
-
return
|
|
1362
|
+
const s = e.useFormSchema.externalFormSchema, k = [];
|
|
1363
|
+
return k.push({
|
|
1363
1364
|
containerId: "",
|
|
1364
|
-
id:
|
|
1365
|
-
code:
|
|
1366
|
-
name:
|
|
1367
|
-
}), Array.from(
|
|
1368
|
-
const
|
|
1369
|
-
|
|
1370
|
-
containerId:
|
|
1371
|
-
id:
|
|
1372
|
-
code:
|
|
1373
|
-
name:
|
|
1365
|
+
id: f.id,
|
|
1366
|
+
code: f.code,
|
|
1367
|
+
name: f.name
|
|
1368
|
+
}), Array.from(s.keys()).forEach((O) => {
|
|
1369
|
+
const G = s.get(O);
|
|
1370
|
+
k.push({
|
|
1371
|
+
containerId: O,
|
|
1372
|
+
id: G.id,
|
|
1373
|
+
code: G.code,
|
|
1374
|
+
name: G.name
|
|
1374
1375
|
});
|
|
1375
|
-
}),
|
|
1376
|
+
}), k;
|
|
1376
1377
|
}
|
|
1377
|
-
const
|
|
1378
|
+
const P = K(() => ({
|
|
1378
1379
|
"f-vm-all": !0,
|
|
1379
1380
|
" h-100": !0,
|
|
1380
|
-
"has-page-list":
|
|
1381
|
+
"has-page-list": R.value
|
|
1381
1382
|
}));
|
|
1382
|
-
function
|
|
1383
|
+
function $(s) {
|
|
1383
1384
|
var J, oe;
|
|
1384
1385
|
const {
|
|
1385
|
-
viewmodels:
|
|
1386
|
-
components:
|
|
1387
|
-
} =
|
|
1388
|
-
if ((
|
|
1386
|
+
viewmodels: k,
|
|
1387
|
+
components: O
|
|
1388
|
+
} = s.module;
|
|
1389
|
+
if ((k == null ? void 0 : k.length) === 0 || (O == null ? void 0 : O.length) === 0)
|
|
1389
1390
|
return [];
|
|
1390
|
-
|
|
1391
|
-
const
|
|
1392
|
-
|
|
1393
|
-
if (!
|
|
1391
|
+
M.value = [];
|
|
1392
|
+
const G = (oe = (J = e.sourceCommunication) == null ? void 0 : J.parameterData) == null ? void 0 : oe.getViewModelName;
|
|
1393
|
+
k.forEach((I) => {
|
|
1394
|
+
if (!I || !I.commands || I.commands.length === 0)
|
|
1394
1395
|
return [];
|
|
1395
|
-
const Q =
|
|
1396
|
-
|
|
1397
|
-
id:
|
|
1398
|
-
code:
|
|
1399
|
-
name: ne ||
|
|
1400
|
-
}),
|
|
1401
|
-
ce.isInvalid ||
|
|
1396
|
+
const Q = O.find((ce) => ce.viewModel === I.id), ne = G && Q ? G(Q, I.name, s) : "";
|
|
1397
|
+
M.value.push({
|
|
1398
|
+
id: I.id,
|
|
1399
|
+
code: I.code,
|
|
1400
|
+
name: ne || I.name
|
|
1401
|
+
}), I.commands.forEach((ce) => {
|
|
1402
|
+
ce.isInvalid || M.value.push({
|
|
1402
1403
|
...ce,
|
|
1403
|
-
viewmodelId:
|
|
1404
|
-
viewmodelName: ne ||
|
|
1404
|
+
viewmodelId: I.id,
|
|
1405
|
+
viewmodelName: ne || I.name,
|
|
1405
1406
|
isCommandNode: !0
|
|
1406
1407
|
});
|
|
1407
1408
|
});
|
|
1408
1409
|
});
|
|
1409
1410
|
}
|
|
1410
|
-
function i(
|
|
1411
|
-
var
|
|
1412
|
-
if (!(
|
|
1413
|
-
if (
|
|
1414
|
-
const J = (
|
|
1415
|
-
(
|
|
1411
|
+
function i(s) {
|
|
1412
|
+
var k, O, G;
|
|
1413
|
+
if (!(s.id === w.value.id && s.containerId === w.value.containerId))
|
|
1414
|
+
if (w.value = s, N.value = "", C.value = null, w.value.id !== f.id) {
|
|
1415
|
+
const J = (O = e.useFormSchema.externalFormSchema) == null ? void 0 : O.get((k = w.value) == null ? void 0 : k.containerId);
|
|
1416
|
+
(G = J == null ? void 0 : J.content) != null && G.module && $(J.content);
|
|
1416
1417
|
} else
|
|
1417
|
-
|
|
1418
|
+
u.value.map((J) => {
|
|
1418
1419
|
J.sourceComponent.map.map((oe) => {
|
|
1419
1420
|
oe.hide = !1, oe.active = !1;
|
|
1420
1421
|
});
|
|
1421
1422
|
});
|
|
1422
1423
|
}
|
|
1423
|
-
function
|
|
1424
|
-
const
|
|
1425
|
-
|
|
1426
|
-
const
|
|
1427
|
-
var
|
|
1424
|
+
function t() {
|
|
1425
|
+
const s = D();
|
|
1426
|
+
w.value || (w.value = s[0]);
|
|
1427
|
+
const k = K(() => (O) => {
|
|
1428
|
+
var G;
|
|
1428
1429
|
return {
|
|
1429
1430
|
"f-list-view-group-item": !0,
|
|
1430
|
-
"f-listview-active":
|
|
1431
|
+
"f-listview-active": O.id === ((G = w.value) == null ? void 0 : G.id) && O.containerId === w.value.containerId
|
|
1431
1432
|
};
|
|
1432
1433
|
});
|
|
1433
1434
|
return n("div", {
|
|
@@ -1439,30 +1440,30 @@ const dt = {
|
|
|
1439
1440
|
}, [n("ul", {
|
|
1440
1441
|
class: "f-list-view-group",
|
|
1441
1442
|
style: "list-style: none;"
|
|
1442
|
-
}, [
|
|
1443
|
-
let
|
|
1444
|
-
return
|
|
1445
|
-
class:
|
|
1446
|
-
onClick: () => i(
|
|
1443
|
+
}, [s.map((O) => {
|
|
1444
|
+
let G = O.name;
|
|
1445
|
+
return O.containerId && (G += `, 所属外部容器:${O.containerId}`), n("li", {
|
|
1446
|
+
class: k.value(O),
|
|
1447
|
+
onClick: () => i(O)
|
|
1447
1448
|
}, [n("div", {
|
|
1448
1449
|
class: "f-list-content"
|
|
1449
1450
|
}, [n("div", {
|
|
1450
1451
|
class: "f-navSelector-leftCategory",
|
|
1451
|
-
title:
|
|
1452
|
-
}, [
|
|
1452
|
+
title: G
|
|
1453
|
+
}, [O.name])])]);
|
|
1453
1454
|
})])])])]);
|
|
1454
1455
|
}
|
|
1455
|
-
function r(
|
|
1456
|
-
|
|
1456
|
+
function r(s) {
|
|
1457
|
+
M.value.map((k) => k.active = !1), s.active = !0, C.value = s;
|
|
1457
1458
|
}
|
|
1458
|
-
function
|
|
1459
|
+
function E() {
|
|
1459
1460
|
return n("div", {
|
|
1460
1461
|
class: "f-vm-viewModel flex-fill"
|
|
1461
|
-
}, [
|
|
1462
|
-
if (
|
|
1462
|
+
}, [M.value.filter((s) => !s.hide).map((s) => {
|
|
1463
|
+
if (s.isCommandNode)
|
|
1463
1464
|
return n("div", {
|
|
1464
|
-
class:
|
|
1465
|
-
onClick: () => r(
|
|
1465
|
+
class: d(s),
|
|
1466
|
+
onClick: () => r(s)
|
|
1466
1467
|
}, [n("div", {
|
|
1467
1468
|
class: "f-event-commandItem"
|
|
1468
1469
|
}, [n("div", {
|
|
@@ -1472,131 +1473,131 @@ const dt = {
|
|
|
1472
1473
|
style: "font-size: 10px; color: rgb(48, 180, 113);"
|
|
1473
1474
|
}, null)]), n("div", {
|
|
1474
1475
|
class: "f-event-func"
|
|
1475
|
-
}, [
|
|
1476
|
+
}, [s.name, Y("("), s.code, Y(")")])]), n("div", {
|
|
1476
1477
|
class: "f-event-path"
|
|
1477
|
-
}, [
|
|
1478
|
+
}, [s.viewmodelName])]);
|
|
1478
1479
|
})]);
|
|
1479
1480
|
}
|
|
1480
1481
|
return () => n("div", {
|
|
1481
|
-
class:
|
|
1482
|
+
class: P.value
|
|
1482
1483
|
}, [n("div", {
|
|
1483
1484
|
class: "d-flex f-utils-fill-flex-row splitter"
|
|
1484
|
-
}, [
|
|
1485
|
+
}, [R.value ? t() : "", n("div", {
|
|
1485
1486
|
class: "f-utils-fill-flex-column"
|
|
1486
|
-
}, [
|
|
1487
|
+
}, [v(), !w.value || w.value.id === f.id ? o() : E()])]), n("div", {
|
|
1487
1488
|
class: "modal-footer"
|
|
1488
1489
|
}, [n("button", {
|
|
1489
1490
|
type: "button",
|
|
1490
1491
|
class: "btn btn-secondary",
|
|
1491
|
-
onClick:
|
|
1492
|
+
onClick: q
|
|
1492
1493
|
}, [Y("取消")]), n("button", {
|
|
1493
1494
|
type: "button",
|
|
1494
1495
|
class: "btn btn-primary",
|
|
1495
|
-
onClick:
|
|
1496
|
+
onClick: z
|
|
1496
1497
|
}, [Y("确定")])])]);
|
|
1497
1498
|
}
|
|
1498
|
-
}),
|
|
1499
|
+
}), Nt = /* @__PURE__ */ te({
|
|
1499
1500
|
name: "FCommandSource",
|
|
1500
|
-
props:
|
|
1501
|
+
props: wt,
|
|
1501
1502
|
emits: ["addInternalCommandListChanged", "newImportChanged", "selectBoundMethod", "click", "existChanged", "newFunctionChanged", "close", "selectMethod", "addCommunication"],
|
|
1502
|
-
setup(e,
|
|
1503
|
-
const
|
|
1504
|
-
checkIfNewControllerExists:
|
|
1505
|
-
addNewController:
|
|
1506
|
-
} =
|
|
1507
|
-
let
|
|
1508
|
-
const
|
|
1503
|
+
setup(e, y) {
|
|
1504
|
+
const g = X("useMethodsComposition"), u = X("useFormCommand"), a = new fe(), {
|
|
1505
|
+
checkIfNewControllerExists: f,
|
|
1506
|
+
addNewController: N
|
|
1507
|
+
} = g, C = b(e.controllers), A = X("useFormSchema"), R = X(yn);
|
|
1508
|
+
let w, M;
|
|
1509
|
+
const p = b(!1);
|
|
1509
1510
|
he(() => {
|
|
1510
|
-
|
|
1511
|
+
p.value = A.externalFormSchema.size > 0;
|
|
1511
1512
|
});
|
|
1512
|
-
function l(r,
|
|
1513
|
-
if (
|
|
1514
|
-
const
|
|
1515
|
-
|
|
1513
|
+
function l(r, E, F) {
|
|
1514
|
+
if (N(r), r.Commands) {
|
|
1515
|
+
const j = u.getInternalControllerFromControllerMetadata(r, E, F);
|
|
1516
|
+
f(j) && a.info({
|
|
1516
1517
|
position: "top-center",
|
|
1517
1518
|
message: "该控制器已存在"
|
|
1518
1519
|
});
|
|
1519
1520
|
}
|
|
1520
1521
|
}
|
|
1521
|
-
async function
|
|
1522
|
-
|
|
1523
|
-
|
|
1522
|
+
async function h(r) {
|
|
1523
|
+
u.getSupportedControllerMetadata(r).then((E) => {
|
|
1524
|
+
E && l(E.controller, E.code, E.nameSpace);
|
|
1524
1525
|
}).finally(() => {
|
|
1525
|
-
|
|
1526
|
+
w && w.destroy && w.destroy();
|
|
1526
1527
|
});
|
|
1527
1528
|
}
|
|
1528
|
-
function
|
|
1529
|
-
|
|
1529
|
+
function v(r) {
|
|
1530
|
+
w && w.destroy && w.destroy();
|
|
1530
1531
|
}
|
|
1531
|
-
function
|
|
1532
|
+
function d() {
|
|
1532
1533
|
const r = {
|
|
1533
|
-
formBasicInfo:
|
|
1534
|
+
formBasicInfo: A == null ? void 0 : A.getFormMetadataBasicInfo()
|
|
1534
1535
|
};
|
|
1535
|
-
return n(
|
|
1536
|
-
injectSymbolToken:
|
|
1536
|
+
return n(Fn, {
|
|
1537
|
+
injectSymbolToken: hn,
|
|
1537
1538
|
"view-type": "NavList",
|
|
1538
1539
|
editorParams: r,
|
|
1539
1540
|
showFooter: !0,
|
|
1540
|
-
onCancel:
|
|
1541
|
-
onSubmit:
|
|
1541
|
+
onCancel: v,
|
|
1542
|
+
onSubmit: h
|
|
1542
1543
|
}, null);
|
|
1543
1544
|
}
|
|
1544
|
-
function
|
|
1545
|
-
|
|
1545
|
+
function c() {
|
|
1546
|
+
w = R.open({
|
|
1546
1547
|
title: "选择控制器",
|
|
1547
1548
|
width: 950,
|
|
1548
|
-
render:
|
|
1549
|
+
render: d,
|
|
1549
1550
|
showButtons: !1
|
|
1550
1551
|
});
|
|
1551
1552
|
}
|
|
1552
|
-
function
|
|
1553
|
-
|
|
1553
|
+
function m() {
|
|
1554
|
+
y.emit("newFunctionChanged");
|
|
1554
1555
|
}
|
|
1555
|
-
function
|
|
1556
|
-
|
|
1556
|
+
function S() {
|
|
1557
|
+
M && M.destroy && M.destroy();
|
|
1557
1558
|
}
|
|
1558
|
-
function
|
|
1559
|
+
function o(r) {
|
|
1559
1560
|
const {
|
|
1560
|
-
selectedCommand:
|
|
1561
|
-
selectedForm:
|
|
1561
|
+
selectedCommand: E,
|
|
1562
|
+
selectedForm: F
|
|
1562
1563
|
} = r;
|
|
1563
|
-
!
|
|
1564
|
+
!F || (F == null ? void 0 : F.id) === A.getFormMetadataBasicInfo().id ? (g.selectBoundCommand(E, e.iteractionDisplayOrder), y.emit("selectBoundMethod")) : y.emit("addCommunication", r), S();
|
|
1564
1565
|
}
|
|
1565
|
-
function
|
|
1566
|
+
function q() {
|
|
1566
1567
|
const {
|
|
1567
1568
|
getEventPath: r
|
|
1568
|
-
} =
|
|
1569
|
-
return n(
|
|
1569
|
+
} = g;
|
|
1570
|
+
return n(Et, {
|
|
1570
1571
|
getEventPath: r,
|
|
1571
1572
|
notifyService: a,
|
|
1572
|
-
useFormSchema:
|
|
1573
|
+
useFormSchema: A,
|
|
1573
1574
|
sourceCommunication: e.sourceCommunication,
|
|
1574
1575
|
event: e.event,
|
|
1575
|
-
onCancel:
|
|
1576
|
-
onSubmit:
|
|
1576
|
+
onCancel: S,
|
|
1577
|
+
onSubmit: o
|
|
1577
1578
|
}, null);
|
|
1578
1579
|
}
|
|
1579
|
-
function
|
|
1580
|
-
|
|
1580
|
+
function z() {
|
|
1581
|
+
M = R.open({
|
|
1581
1582
|
title: "已有方法",
|
|
1582
1583
|
width: 950,
|
|
1583
1584
|
height: 500,
|
|
1584
1585
|
fitContent: !1,
|
|
1585
|
-
render:
|
|
1586
|
+
render: q,
|
|
1586
1587
|
showButtons: !1,
|
|
1587
1588
|
enableEsc: !1,
|
|
1588
1589
|
draggable: !0
|
|
1589
1590
|
});
|
|
1590
1591
|
}
|
|
1591
1592
|
function D() {
|
|
1592
|
-
|
|
1593
|
+
y.emit("close", null);
|
|
1593
1594
|
}
|
|
1594
|
-
function
|
|
1595
|
+
function P() {
|
|
1595
1596
|
return n("div", {
|
|
1596
1597
|
class: "f-command-breakline"
|
|
1597
1598
|
}, [Y("------------------------------------------------------------")]);
|
|
1598
1599
|
}
|
|
1599
|
-
function
|
|
1600
|
+
function $() {
|
|
1600
1601
|
return n("div", {
|
|
1601
1602
|
class: "f-page-internals-new-command"
|
|
1602
1603
|
}, [n("div", {
|
|
@@ -1605,112 +1606,112 @@ const dt = {
|
|
|
1605
1606
|
class: "f-icon f-icon-panel-retraction"
|
|
1606
1607
|
}, null), n("div", {
|
|
1607
1608
|
class: "f-function-class",
|
|
1608
|
-
onClick: () =>
|
|
1609
|
+
onClick: () => c()
|
|
1609
1610
|
}, [Y("引入控制器")])]), n("div", {
|
|
1610
1611
|
class: "f-page-internals-new-command-func2"
|
|
1611
1612
|
}, [n("div", {
|
|
1612
1613
|
class: "f-icon f-icon-new-edit"
|
|
1613
1614
|
}, null), n("div", {
|
|
1614
1615
|
class: "f-function-class",
|
|
1615
|
-
onClick: () =>
|
|
1616
|
-
}, [Y("添加新方法")])]), (e.haveBoundCommand ||
|
|
1616
|
+
onClick: () => m()
|
|
1617
|
+
}, [Y("添加新方法")])]), (e.haveBoundCommand || p.value) && n("div", {
|
|
1617
1618
|
class: "f-page-internals-new-command-func3"
|
|
1618
1619
|
}, [n("div", {
|
|
1619
1620
|
class: "f-icon f-icon-licensed"
|
|
1620
1621
|
}, null), n("div", {
|
|
1621
1622
|
class: "f-function-class",
|
|
1622
|
-
onClick: () =>
|
|
1623
|
+
onClick: () => z()
|
|
1623
1624
|
}, [Y("已有方法")])])]);
|
|
1624
1625
|
}
|
|
1625
1626
|
function i(r) {
|
|
1626
|
-
|
|
1627
|
+
y.emit("selectMethod", r);
|
|
1627
1628
|
}
|
|
1628
|
-
function
|
|
1629
|
+
function t() {
|
|
1629
1630
|
return n("div", {
|
|
1630
1631
|
class: "f-page-command-source-choice"
|
|
1631
|
-
}, [n(
|
|
1632
|
-
controllers:
|
|
1632
|
+
}, [n(Ft, {
|
|
1633
|
+
controllers: C.value,
|
|
1633
1634
|
onSelectMethod: i
|
|
1634
1635
|
}, null)]);
|
|
1635
1636
|
}
|
|
1636
1637
|
return () => n("div", {
|
|
1637
1638
|
class: "f-page-events-editor-command-source"
|
|
1638
|
-
}, [
|
|
1639
|
+
}, [t(), P(), $(), P(), n("div", null, [n("div", {
|
|
1639
1640
|
class: "f-page-internals-close",
|
|
1640
1641
|
onClick: D
|
|
1641
1642
|
}, [Y("取消")])])]);
|
|
1642
1643
|
}
|
|
1643
|
-
}),
|
|
1644
|
+
}), Pt = {
|
|
1644
1645
|
command: { type: Object, default: {} },
|
|
1645
1646
|
showParameter: { type: Boolean, default: !1 },
|
|
1646
1647
|
controller: { type: Object, default: {} },
|
|
1647
1648
|
/** 是否显示删除按钮 */
|
|
1648
1649
|
showDeleteIcon: { type: Boolean, default: !1 }
|
|
1649
|
-
},
|
|
1650
|
+
}, Mt = /* @__PURE__ */ te({
|
|
1650
1651
|
name: "FParameterEditor",
|
|
1651
|
-
props:
|
|
1652
|
+
props: Pt,
|
|
1652
1653
|
emits: ["confirm", "change", "targetChange", "viewSource", "deleteCommand"],
|
|
1653
|
-
setup(e,
|
|
1654
|
-
const
|
|
1655
|
-
const
|
|
1656
|
-
return
|
|
1654
|
+
setup(e, y) {
|
|
1655
|
+
const g = new fe(), u = X("FMessageBoxService"), a = b(W(e.command)), f = b(e.controller), N = b(0), C = K(() => a.value.id === "abandoned"), A = K(() => a.value.id === "deleted"), R = K(() => e.showDeleteIcon), w = K(() => a.value !== null), M = X("useMethodsComposition"), p = b(e.showParameter), l = X("useFormSchema"), h = K(() => a.value.componentLists && a.value.hasPath), v = K(() => {
|
|
1656
|
+
const I = a.value.id !== "abandoned" && a.value.id !== "deleted", Q = h.value, ne = a.value.property && a.value.property.length > 0;
|
|
1657
|
+
return I && (Q || ne);
|
|
1657
1658
|
});
|
|
1658
|
-
function
|
|
1659
|
+
function d() {
|
|
1659
1660
|
const {
|
|
1660
|
-
targetComponent:
|
|
1661
|
+
targetComponent: I
|
|
1661
1662
|
} = a.value;
|
|
1662
1663
|
let Q = "";
|
|
1663
1664
|
return a.value.componentLists && a.value.componentLists.forEach((ne) => {
|
|
1664
|
-
if (ne.componentId ===
|
|
1665
|
+
if (ne.componentId === I) {
|
|
1665
1666
|
Q = ne.viewModelId;
|
|
1666
1667
|
return;
|
|
1667
1668
|
}
|
|
1668
1669
|
}), Q;
|
|
1669
1670
|
}
|
|
1670
|
-
const
|
|
1671
|
-
function
|
|
1672
|
-
|
|
1671
|
+
const c = b(d()), m = K(() => a.value.targetComponent || "");
|
|
1672
|
+
function S() {
|
|
1673
|
+
g.info({
|
|
1673
1674
|
position: "top-center",
|
|
1674
1675
|
message: "方法已被移除,请重新绑定"
|
|
1675
1676
|
});
|
|
1676
1677
|
}
|
|
1677
|
-
function
|
|
1678
|
+
function o() {
|
|
1678
1679
|
return n("div", {
|
|
1679
1680
|
title: "方法已被移除,请重新绑定",
|
|
1680
1681
|
class: "f-icon f-icon-flowline-warning text-danger text-center ",
|
|
1681
1682
|
style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
|
|
1682
|
-
onClick: () =>
|
|
1683
|
+
onClick: () => S()
|
|
1683
1684
|
}, null);
|
|
1684
1685
|
}
|
|
1685
|
-
function
|
|
1686
|
-
|
|
1686
|
+
function q() {
|
|
1687
|
+
g.info({
|
|
1687
1688
|
position: "top-center",
|
|
1688
1689
|
message: "方法已失效,请重新绑定"
|
|
1689
1690
|
});
|
|
1690
1691
|
}
|
|
1691
|
-
function
|
|
1692
|
+
function z() {
|
|
1692
1693
|
return n("div", {
|
|
1693
1694
|
title: "'方法已被删除,请绑定其他方法'",
|
|
1694
1695
|
class: "f-icon f-icon-flowline-warning text-danger text-center ",
|
|
1695
1696
|
style: "font-size: 13px;margin-right:10px;width: 30px;height: 20px;",
|
|
1696
|
-
onClick: () =>
|
|
1697
|
+
onClick: () => q()
|
|
1697
1698
|
}, null);
|
|
1698
1699
|
}
|
|
1699
|
-
function D(
|
|
1700
|
-
|
|
1700
|
+
function D(I) {
|
|
1701
|
+
p.value = !p.value;
|
|
1701
1702
|
}
|
|
1702
|
-
function
|
|
1703
|
+
function P() {
|
|
1703
1704
|
return n("div", {
|
|
1704
1705
|
class: "f-icon f-icon-edit-button",
|
|
1705
1706
|
style: "font-size: 13px;margin-right:10px;",
|
|
1706
|
-
onClick: () => D(
|
|
1707
|
+
onClick: () => D(N.value)
|
|
1707
1708
|
}, null);
|
|
1708
1709
|
}
|
|
1709
|
-
function
|
|
1710
|
-
a.value.targetComponent =
|
|
1710
|
+
function $(I, Q) {
|
|
1711
|
+
a.value.targetComponent = I[0].componentId, y.emit("targetChange", a.value);
|
|
1711
1712
|
}
|
|
1712
1713
|
function i() {
|
|
1713
|
-
const
|
|
1714
|
+
const I = Ge({
|
|
1714
1715
|
content: "将此方法添加到指定的组件",
|
|
1715
1716
|
placement: "top"
|
|
1716
1717
|
});
|
|
@@ -1722,81 +1723,81 @@ const dt = {
|
|
|
1722
1723
|
class: "farris-label-tips ml-2"
|
|
1723
1724
|
}, [n("i", {
|
|
1724
1725
|
class: "f-icon f-icon-description-tips"
|
|
1725
|
-
}, null)]), [[We("tooltip"),
|
|
1726
|
+
}, null)]), [[We("tooltip"), I]])]), n("div", {
|
|
1726
1727
|
class: "f-page-parameter-editor-targetComponent-dropdown"
|
|
1727
|
-
}, [n(
|
|
1728
|
-
modelValue:
|
|
1729
|
-
"onUpdate:modelValue": (Q) =>
|
|
1728
|
+
}, [n(ln, {
|
|
1729
|
+
modelValue: c.value,
|
|
1730
|
+
"onUpdate:modelValue": (Q) => c.value = Q,
|
|
1730
1731
|
enableClear: !1,
|
|
1731
1732
|
idField: "viewModelId",
|
|
1732
1733
|
valueField: "viewModelId",
|
|
1733
1734
|
textField: "componentId",
|
|
1734
1735
|
data: a.value.componentLists,
|
|
1735
1736
|
editable: !1,
|
|
1736
|
-
onChange:
|
|
1737
|
+
onChange: $
|
|
1737
1738
|
}, null)])])]);
|
|
1738
1739
|
}
|
|
1739
|
-
function
|
|
1740
|
-
Q.value =
|
|
1740
|
+
function t(I, Q) {
|
|
1741
|
+
Q.value = I;
|
|
1741
1742
|
}
|
|
1742
1743
|
function r() {
|
|
1743
|
-
|
|
1744
|
+
y.emit("change", a.value);
|
|
1744
1745
|
}
|
|
1745
|
-
function
|
|
1746
|
-
let
|
|
1747
|
-
return
|
|
1746
|
+
function E() {
|
|
1747
|
+
let I = "";
|
|
1748
|
+
return m.value ? I = l.getViewModelIdByComponentId(m.value) : I = M.getViewModeId(), I;
|
|
1748
1749
|
}
|
|
1749
|
-
function
|
|
1750
|
-
var Se, Fe, ye, Ee, ge, Ce,
|
|
1751
|
-
const ne =
|
|
1750
|
+
function F(I, Q) {
|
|
1751
|
+
var Se, Fe, ye, Ee, ge, Ce, T, U, _, H, Z, ae, le, re, ie, Ne, Pe, Me, de, Ve, Le;
|
|
1752
|
+
const ne = E(), Te = l.getViewModelById(ne).commands.find((ee) => {
|
|
1752
1753
|
var se;
|
|
1753
1754
|
return (ee == null ? void 0 : ee.id) === ((se = e.command) == null ? void 0 : se.id);
|
|
1754
|
-
}), ke = Ge(
|
|
1755
|
+
}), ke = Ge(I.context.data), {
|
|
1755
1756
|
assembleSchemaFieldsByComponent: Ae,
|
|
1756
1757
|
assembleOutline: Oe,
|
|
1757
1758
|
assembleStateVariables: $e,
|
|
1758
1759
|
assembleSchemaFieldsUnderBoundEntity: De,
|
|
1759
1760
|
getEditor: Re
|
|
1760
|
-
} =
|
|
1761
|
+
} = I.context.generalData, {
|
|
1761
1762
|
designerMode: je
|
|
1762
1763
|
} = l, Ue = (ee) => {
|
|
1763
|
-
|
|
1764
|
+
t(ee, I), r();
|
|
1764
1765
|
}, qe = (ee) => {
|
|
1765
|
-
var se, pe, ve,
|
|
1766
|
-
return ((
|
|
1766
|
+
var se, pe, ve, Be;
|
|
1767
|
+
return ((Be = (ve = (pe = (se = I == null ? void 0 : I.origin) == null ? void 0 : se.controlSource) == null ? void 0 : pe.context) == null ? void 0 : ve.data) == null ? void 0 : Be.value) === ":Entity" || ee.raw.children && ee.raw.children.length && (ee.disabled = !0), ee;
|
|
1767
1768
|
};
|
|
1768
1769
|
return n(Ye, {
|
|
1769
1770
|
readonly: je === "PC_RTC" && !Q.isRtcCommand,
|
|
1770
|
-
defaultValue:
|
|
1771
|
-
modelValue:
|
|
1772
|
-
"onUpdate:modelValue": (ee) =>
|
|
1771
|
+
defaultValue: I == null ? void 0 : I.origin.defaultValue,
|
|
1772
|
+
modelValue: I.value,
|
|
1773
|
+
"onUpdate:modelValue": (ee) => I.value = ee,
|
|
1773
1774
|
data: ke,
|
|
1774
|
-
editor: Re(
|
|
1775
|
+
editor: Re(I.value, I, Te, ne, Ue),
|
|
1775
1776
|
fieldData: Ae(),
|
|
1776
1777
|
formData: Oe(),
|
|
1777
1778
|
varData: $e(),
|
|
1778
|
-
activeViewModelFieldData: De(
|
|
1779
|
-
editorControlSource: (Se =
|
|
1779
|
+
activeViewModelFieldData: De(m.value),
|
|
1780
|
+
editorControlSource: (Se = I == null ? void 0 : I.origin) == null ? void 0 : Se.controlSource,
|
|
1780
1781
|
customRowStatus: qe,
|
|
1781
|
-
idField: ((ge = (Ee = (ye = (Fe =
|
|
1782
|
-
textField: ((Pe = (Ne = (ie = (re =
|
|
1783
|
-
editable: (Le = (Ve = (
|
|
1782
|
+
idField: ((ge = (Ee = (ye = (Fe = I == null ? void 0 : I.origin) == null ? void 0 : Fe.controlSource) == null ? void 0 : ye.context) == null ? void 0 : Ee.data) == null ? void 0 : ge.value) === ":Entity" ? "bindTo" : ((_ = (U = (T = (Ce = I == null ? void 0 : I.origin) == null ? void 0 : Ce.controlSource) == null ? void 0 : T.context) == null ? void 0 : U.valueField) == null ? void 0 : _.value) || ((le = (ae = (Z = (H = I == null ? void 0 : I.origin) == null ? void 0 : H.controlSource) == null ? void 0 : Z.context) == null ? void 0 : ae.idField) == null ? void 0 : le.value) || "id",
|
|
1783
|
+
textField: ((Pe = (Ne = (ie = (re = I == null ? void 0 : I.origin) == null ? void 0 : re.controlSource) == null ? void 0 : ie.context) == null ? void 0 : Ne.textField) == null ? void 0 : Pe.value) || "label",
|
|
1784
|
+
editable: (Le = (Ve = (de = (Me = I == null ? void 0 : I.origin) == null ? void 0 : Me.controlSource) == null ? void 0 : de.context) == null ? void 0 : Ve.editable) == null ? void 0 : Le.value,
|
|
1784
1785
|
onConfirm: (ee) => {
|
|
1785
|
-
|
|
1786
|
+
t(ee, I), r();
|
|
1786
1787
|
},
|
|
1787
1788
|
onValueChange: (ee) => {
|
|
1788
1789
|
var se, pe;
|
|
1789
|
-
if (((se =
|
|
1790
|
-
const ve = (pe = a.value.property) == null ? void 0 : pe.find((
|
|
1790
|
+
if (((se = I.origin) == null ? void 0 : se.Code) === "lookupId") {
|
|
1791
|
+
const ve = (pe = a.value.property) == null ? void 0 : pe.find((Be) => Be.name === "mappingFields");
|
|
1791
1792
|
ve && ve.value && (ve.value = "");
|
|
1792
1793
|
}
|
|
1793
|
-
|
|
1794
|
+
t(ee, I), r();
|
|
1794
1795
|
}
|
|
1795
1796
|
}, null);
|
|
1796
1797
|
}
|
|
1797
|
-
function
|
|
1798
|
-
var
|
|
1799
|
-
return (
|
|
1798
|
+
function j() {
|
|
1799
|
+
var I;
|
|
1800
|
+
return (I = a.value.property) == null ? void 0 : I.map((Q, ne) => {
|
|
1800
1801
|
const ce = Ge({
|
|
1801
1802
|
content: Q.description,
|
|
1802
1803
|
placement: "top"
|
|
@@ -1813,36 +1814,36 @@ const dt = {
|
|
|
1813
1814
|
class: "f-icon f-icon-description-tips"
|
|
1814
1815
|
}, null)]), [[We("tooltip"), ce]])])]), n("div", {
|
|
1815
1816
|
class: "f-page-parameter-editor-row2"
|
|
1816
|
-
}, [
|
|
1817
|
+
}, [F(Q, a.value)])]);
|
|
1817
1818
|
});
|
|
1818
1819
|
}
|
|
1819
|
-
function
|
|
1820
|
+
function s() {
|
|
1820
1821
|
return n("div", {
|
|
1821
1822
|
class: "f-page-parameter-editor-group"
|
|
1822
|
-
}, [
|
|
1823
|
+
}, [h.value && i(), j()]);
|
|
1823
1824
|
}
|
|
1824
|
-
function
|
|
1825
|
-
|
|
1825
|
+
function k(I) {
|
|
1826
|
+
I.stopPropagation(), y.emit("viewSource", {
|
|
1826
1827
|
command: a.value,
|
|
1827
|
-
event:
|
|
1828
|
+
event: I
|
|
1828
1829
|
});
|
|
1829
1830
|
}
|
|
1830
|
-
function
|
|
1831
|
-
|
|
1832
|
-
|
|
1831
|
+
function O() {
|
|
1832
|
+
u.question(`确定删除命令【${a.value.name}】吗?`, "", () => {
|
|
1833
|
+
y.emit("deleteCommand");
|
|
1833
1834
|
});
|
|
1834
1835
|
}
|
|
1835
|
-
function
|
|
1836
|
+
function G() {
|
|
1836
1837
|
return n("div", {
|
|
1837
1838
|
class: "f-icon f-icon-yxs_delete",
|
|
1838
1839
|
title: "删除命令",
|
|
1839
|
-
onClick: (
|
|
1840
|
+
onClick: (I) => O()
|
|
1840
1841
|
}, null);
|
|
1841
1842
|
}
|
|
1842
1843
|
const J = K(() => {
|
|
1843
|
-
var
|
|
1844
|
+
var I;
|
|
1844
1845
|
return {
|
|
1845
|
-
cursor:
|
|
1846
|
+
cursor: C.value || f.value.isCommon || ((I = f.value) == null ? void 0 : I.label.indexOf(l == null ? void 0 : l.getModule().code)) === -1 ? "default" : "pointer"
|
|
1846
1847
|
};
|
|
1847
1848
|
});
|
|
1848
1849
|
function oe() {
|
|
@@ -1852,16 +1853,16 @@ const dt = {
|
|
|
1852
1853
|
class: "f-page-parameter-editor-command-name",
|
|
1853
1854
|
style: J.value,
|
|
1854
1855
|
title: a.value.label,
|
|
1855
|
-
onDblclick:
|
|
1856
|
+
onDblclick: k
|
|
1856
1857
|
}, [a.value.name]), n("div", {
|
|
1857
1858
|
class: "f-page-parameter-editor-first-row-icon"
|
|
1858
|
-
}, [
|
|
1859
|
+
}, [C.value && o(), A.value && z(), v.value && P(), R.value && G()])]), p.value && s()]);
|
|
1859
1860
|
}
|
|
1860
1861
|
return () => n("div", {
|
|
1861
1862
|
class: "f-page-parameter-editor"
|
|
1862
|
-
}, [
|
|
1863
|
+
}, [w.value && oe()]);
|
|
1863
1864
|
}
|
|
1864
|
-
}),
|
|
1865
|
+
}), Vt = {
|
|
1865
1866
|
customClass: { type: String, default: "" },
|
|
1866
1867
|
customStyle: { type: String, defaut: "" },
|
|
1867
1868
|
/** 控制是否可见 */
|
|
@@ -1870,22 +1871,22 @@ const dt = {
|
|
|
1870
1871
|
adaptForLanguage: { type: Boolean, default: !0 }
|
|
1871
1872
|
}, _e = /* @__PURE__ */ te({
|
|
1872
1873
|
name: "FResponseForm",
|
|
1873
|
-
props:
|
|
1874
|
+
props: Vt,
|
|
1874
1875
|
emits: [],
|
|
1875
|
-
setup(e,
|
|
1876
|
-
const
|
|
1877
|
-
const a =
|
|
1876
|
+
setup(e, y) {
|
|
1877
|
+
const g = b(), u = K(() => {
|
|
1878
|
+
const a = Nn.getLocale(), f = e.customClass.split(" "), N = {
|
|
1878
1879
|
"drag-container": !0
|
|
1879
1880
|
};
|
|
1880
|
-
return
|
|
1881
|
+
return f.reduce((C, A) => (C[A] = !0, C), N), e.adaptForLanguage && a && (N["farris-form-controls-inline"] = a !== "en"), N;
|
|
1881
1882
|
});
|
|
1882
1883
|
return () => e.visible && He(n("div", {
|
|
1883
|
-
ref:
|
|
1884
|
-
class:
|
|
1884
|
+
ref: g,
|
|
1885
|
+
class: u.value,
|
|
1885
1886
|
style: e.customStyle
|
|
1886
|
-
}, [
|
|
1887
|
+
}, [y.slots.default && y.slots.default()]), [[We("area-response")]]);
|
|
1887
1888
|
}
|
|
1888
|
-
}),
|
|
1889
|
+
}), Lt = {
|
|
1889
1890
|
id: { type: String, default: "" },
|
|
1890
1891
|
customClass: { type: String, default: "" },
|
|
1891
1892
|
customStyle: { type: String, default: "" },
|
|
@@ -1907,8 +1908,9 @@ const dt = {
|
|
|
1907
1908
|
errors: { type: Object, default: null },
|
|
1908
1909
|
fill: { type: Boolean, default: !1 },
|
|
1909
1910
|
enableTips: { type: Boolean, default: !1 },
|
|
1910
|
-
tipsContent: { type: Object, default: "" }
|
|
1911
|
-
|
|
1911
|
+
tipsContent: { type: Object, default: "" },
|
|
1912
|
+
linkLabel: { type: String, default: !1 }
|
|
1913
|
+
}, Bt = {
|
|
1912
1914
|
id: { type: String },
|
|
1913
1915
|
required: { type: Boolean, default: !1 },
|
|
1914
1916
|
text: { type: String, default: "" },
|
|
@@ -1918,71 +1920,73 @@ const dt = {
|
|
|
1918
1920
|
/**
|
|
1919
1921
|
* 实际支持 'visible'可见 | 'reserve-space' 占位不显示
|
|
1920
1922
|
*/
|
|
1921
|
-
showType: { type: String, default: "visible" }
|
|
1922
|
-
|
|
1923
|
+
showType: { type: String, default: "visible" },
|
|
1924
|
+
isLink: { type: Boolean, default: !1 }
|
|
1925
|
+
}, It = /* @__PURE__ */ te({
|
|
1923
1926
|
name: "FDynamicFormLabel",
|
|
1924
|
-
props:
|
|
1927
|
+
props: Bt,
|
|
1925
1928
|
emits: ["clickLabel"],
|
|
1926
|
-
setup(e,
|
|
1927
|
-
|
|
1928
|
-
const
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
}),
|
|
1932
|
-
|
|
1933
|
-
}),
|
|
1934
|
-
a.value =
|
|
1929
|
+
setup(e, y) {
|
|
1930
|
+
b(e.title || e.text);
|
|
1931
|
+
const g = b(e.required), u = b(e.text), a = b(e.valid), f = b(e.inValidTip);
|
|
1932
|
+
ue(() => e.text, () => {
|
|
1933
|
+
u.value = e.text;
|
|
1934
|
+
}), ue(() => e.required, (w, M) => {
|
|
1935
|
+
w !== M && (g.value = w);
|
|
1936
|
+
}), ue([() => e.valid, () => e.inValidTip], ([w, M]) => {
|
|
1937
|
+
a.value = w, f.value = M;
|
|
1935
1938
|
});
|
|
1936
|
-
const
|
|
1939
|
+
const N = K(() => a.value ? u.value : f.value), C = K(() => a.value ? "" : "color:red"), A = K(() => ({
|
|
1937
1940
|
"col-form-label": !0,
|
|
1938
1941
|
// 指定必填,当显示模式是隐藏或者没有指定标签名时,宽度不限定
|
|
1939
|
-
"f-width-auto":
|
|
1940
|
-
|
|
1941
|
-
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
|
|
1945
|
-
|
|
1942
|
+
"f-width-auto": g.value && (e.showType === "none" || !u.value),
|
|
1943
|
+
"f-pretend-link": e.isLink
|
|
1944
|
+
})), R = K(() => e.showType === "force-none" ? !1 : e.showType === "reserve-space" || g.value || !!u.value && e.showType !== "none");
|
|
1945
|
+
return () => R.value && n("label", {
|
|
1946
|
+
class: A.value,
|
|
1947
|
+
title: N.value,
|
|
1948
|
+
style: C.value,
|
|
1949
|
+
onClick: () => y.emit("clickLabel")
|
|
1946
1950
|
}, [!a.value && n("span", {
|
|
1947
1951
|
class: "f-icon f-icon-warning mr-1",
|
|
1948
1952
|
style: "color: red; min-width: 16px;",
|
|
1949
|
-
title:
|
|
1953
|
+
title: f.value
|
|
1950
1954
|
}, null), n("span", {
|
|
1951
1955
|
class: "farris-label-text"
|
|
1952
|
-
}, [
|
|
1956
|
+
}, [g.value && n("span", {
|
|
1953
1957
|
class: "farris-label-info text-danger"
|
|
1954
|
-
}, [Y("*")]), e.showType === "visible" &&
|
|
1958
|
+
}, [Y("*")]), e.showType === "visible" && u.value])]);
|
|
1955
1959
|
}
|
|
1956
|
-
}), { globalStorageKey:
|
|
1957
|
-
async function
|
|
1960
|
+
}), { globalStorageKey: xt } = gn(), V = {}, L = {}, B = {}, x = {};
|
|
1961
|
+
async function Tt() {
|
|
1958
1962
|
{
|
|
1959
1963
|
const e = {
|
|
1960
1964
|
schemaMap: Je,
|
|
1961
|
-
propertyConfigSchemaMap:
|
|
1962
|
-
propertyEffectMap:
|
|
1963
|
-
schemaResolverMap:
|
|
1965
|
+
propertyConfigSchemaMap: vn,
|
|
1966
|
+
propertyEffectMap: fn,
|
|
1967
|
+
schemaResolverMap: mn
|
|
1964
1968
|
};
|
|
1965
|
-
|
|
1966
|
-
const
|
|
1967
|
-
if (
|
|
1968
|
-
for (const
|
|
1969
|
-
|
|
1969
|
+
Mn.register(V, L, B, x), Pn.register(V, L, B, x), Vn.register(V, L, B, x), Ln.register(V, L, B, x), Bn.register(V, L, B, x), In.register(V, L, B, x, e), xn.register(V, L, B, x), Xe.register(V, L, B, x, e), Ze.register(V, L, B, x, e), Xe.register(V, L, B, x, e), Ze.register(V, L, B, x, e), ln.register(V, L, B, x, e), Tn.register(V, L, B, x), kn.register(V, L, B, x), On.register(V, L, B, x, e), An.register(V, L, B, x), $n.register(V, L, B, x, e), Dn.register(V, L, B, x, e), Rn.register(V, L, B, x), jn.register(V, L, B, x, e), Un.register(V, L, B, x), Oo.register(V, L, B, x), qn.register(V, L, B, x), Gn.register(V, L, B, x), Lo.register(V, L, B, x), zn.register(V, L, B, x), Hn.register(V, L, B, x, e), Wn.register(V, L, B, x, e), Jn.register(V, L, B, x, e), Kn.register(V, L, B, x), Qn.register(V, L, B, x, e), Yn.register(V, L, B, x), Xn.register(V, L, B, x), Zn.register(V, L, B, x), eo.register(V, L, B, x, e), no.register(V, L, B, x), oo.register(V, L, B, x, e), to.register(V, L, B, x), ao.register(V, L, B, x), lo.register(V, L, B, x), ro.register(V, L, B, x, e), io.register(V, L, B, x, e), co.register(V, L, B, x), uo.register(V, L, B, x, e), mo.register(V, L, B, x), so.register(V, L, B, x), Sn.register(V, L, B), fo.register(V, L, B, x), vo.register(V, L, B, x, e), ho.register(V, L, B, x), go.register(V, L, B, x), Co.register(V, L, B, x), po.register(V, L, B, x, e), Io.register(V, L, B, x), bo.register(V, L, B, x, e), wo.register(V, L, B, x), So.register(V, L, B, x), Fo.register(V, L, B, x, e), yo.register(V, L, B, x), bn.register(V, L, B, x), No.register(V, L, B, x), Eo.register(V, L, B, x), Po.register(V, L, B, x), Mo.register(V, L, B, x, e), Vo.register(V, L, B, x), _n.register(V, L, B, x), Ye.register(V, L, B, x), Bo.register(V, L, B, x, e), xo.register(V, L, B, x), To.register(V, L, B, x), ko.register(V, L, B, x), Ao.register(V, L, B, x), $o.register(V, L, B, x), Do.register(V, L, B, x, e), Ro.register(V, L, B, x), jo.register(V, L, B, x), Uo.register(V, L, B, x), qo.register(V, L, B, x, e), Go.register(V, L, B, x, e), _o.register(V, L, B, x), zo.register(V, L, B, x);
|
|
1970
|
+
const y = window[xt];
|
|
1971
|
+
if (y)
|
|
1972
|
+
for (const g in y)
|
|
1973
|
+
y[g].createPropsResolver = an, y[g].register(V, L, B);
|
|
1970
1974
|
}
|
|
1971
1975
|
}
|
|
1972
|
-
function
|
|
1973
|
-
|
|
1974
|
-
function e(
|
|
1975
|
-
const
|
|
1976
|
-
if (!
|
|
1977
|
-
throw new Error(`Could not find the editor of type '${
|
|
1978
|
-
return
|
|
1979
|
-
}
|
|
1980
|
-
function
|
|
1981
|
-
const
|
|
1982
|
-
return
|
|
1983
|
-
}
|
|
1984
|
-
function
|
|
1985
|
-
switch (
|
|
1976
|
+
function sn() {
|
|
1977
|
+
Tt();
|
|
1978
|
+
function e(N) {
|
|
1979
|
+
const C = V[N];
|
|
1980
|
+
if (!C)
|
|
1981
|
+
throw new Error(`Could not find the editor of type '${N}'`);
|
|
1982
|
+
return C;
|
|
1983
|
+
}
|
|
1984
|
+
function y(N, C) {
|
|
1985
|
+
const A = L[N];
|
|
1986
|
+
return A ? A(C) : {};
|
|
1987
|
+
}
|
|
1988
|
+
function g(N) {
|
|
1989
|
+
switch (N) {
|
|
1986
1990
|
case "check-box":
|
|
1987
1991
|
return "onChangeValue";
|
|
1988
1992
|
case "switch":
|
|
@@ -2056,31 +2060,31 @@ function Bt() {
|
|
|
2056
2060
|
return "onUpdate:modelValue";
|
|
2057
2061
|
}
|
|
2058
2062
|
}
|
|
2059
|
-
function
|
|
2060
|
-
switch (
|
|
2063
|
+
function u(N) {
|
|
2064
|
+
switch (N) {
|
|
2061
2065
|
case "combo-list":
|
|
2062
2066
|
case "input-group":
|
|
2063
2067
|
case "textarea":
|
|
2064
2068
|
return "onClear";
|
|
2065
2069
|
}
|
|
2066
2070
|
}
|
|
2067
|
-
function a(
|
|
2068
|
-
switch (
|
|
2071
|
+
function a(N) {
|
|
2072
|
+
switch (N) {
|
|
2069
2073
|
case "input-group":
|
|
2070
2074
|
case "textarea":
|
|
2071
2075
|
return "onMousedownEvent";
|
|
2072
2076
|
}
|
|
2073
2077
|
}
|
|
2074
|
-
function
|
|
2075
|
-
switch (
|
|
2078
|
+
function f(N) {
|
|
2079
|
+
switch (N) {
|
|
2076
2080
|
case "input-group":
|
|
2077
2081
|
case "textarea":
|
|
2078
2082
|
return "onMouseupEvent";
|
|
2079
2083
|
}
|
|
2080
2084
|
}
|
|
2081
|
-
return { resolveEditorProps:
|
|
2085
|
+
return { resolveEditorProps: y, resolveEditorType: e, getChangeFunctionName: g, getClearFunctionName: u, getMousedownFunctionName: a, getMouseupFunctionName: f };
|
|
2082
2086
|
}
|
|
2083
|
-
const
|
|
2087
|
+
const kt = {
|
|
2084
2088
|
/**
|
|
2085
2089
|
* 显示的错误信息
|
|
2086
2090
|
*/
|
|
@@ -2088,126 +2092,127 @@ const It = {
|
|
|
2088
2092
|
type: Object,
|
|
2089
2093
|
default: null
|
|
2090
2094
|
}
|
|
2091
|
-
},
|
|
2095
|
+
}, At = /* @__PURE__ */ te({
|
|
2092
2096
|
name: "FValidationMessage",
|
|
2093
|
-
props:
|
|
2097
|
+
props: kt,
|
|
2094
2098
|
emits: [],
|
|
2095
|
-
setup(e,
|
|
2096
|
-
const
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
+
setup(e, y) {
|
|
2100
|
+
const g = b(e.errors);
|
|
2101
|
+
ue(() => e.errors, (f) => {
|
|
2102
|
+
g.value = f;
|
|
2099
2103
|
});
|
|
2100
|
-
const
|
|
2101
|
-
if (
|
|
2102
|
-
const
|
|
2103
|
-
var
|
|
2104
|
-
return (
|
|
2104
|
+
const u = b(!0), a = K(() => {
|
|
2105
|
+
if (g.value) {
|
|
2106
|
+
const f = Object.keys(g.value).map((N) => {
|
|
2107
|
+
var C;
|
|
2108
|
+
return (C = g.value[N]) == null ? void 0 : C.name;
|
|
2105
2109
|
});
|
|
2106
|
-
return
|
|
2110
|
+
return f.length ? f.join(" ") : "";
|
|
2107
2111
|
}
|
|
2108
2112
|
return "";
|
|
2109
2113
|
});
|
|
2110
2114
|
return () => a.value && n("div", {
|
|
2111
2115
|
class: "farris-feedback f-state-invalid",
|
|
2112
|
-
onClick: () =>
|
|
2113
|
-
}, [!
|
|
2116
|
+
onClick: () => u.value = !u.value
|
|
2117
|
+
}, [!u.value && n("span", {
|
|
2114
2118
|
class: "f-icon f-icon-message_warning f-feedback-icon"
|
|
2115
|
-
}, null),
|
|
2119
|
+
}, null), u.value && n("span", {
|
|
2116
2120
|
class: "f-feedback-message"
|
|
2117
2121
|
}, [a.value])]);
|
|
2118
2122
|
}
|
|
2119
2123
|
}), Ke = /* @__PURE__ */ te({
|
|
2120
2124
|
name: "FDynamicFormGroup",
|
|
2121
|
-
props:
|
|
2125
|
+
props: Lt,
|
|
2122
2126
|
emits: ["change", "update:modelValue", "clickLabel"],
|
|
2123
|
-
setup(e,
|
|
2124
|
-
var
|
|
2125
|
-
const
|
|
2126
|
-
|
|
2127
|
-
const
|
|
2128
|
-
resolveEditorProps:
|
|
2129
|
-
resolveEditorType:
|
|
2130
|
-
getChangeFunctionName:
|
|
2131
|
-
getClearFunctionName:
|
|
2132
|
-
} =
|
|
2133
|
-
const
|
|
2127
|
+
setup(e, y) {
|
|
2128
|
+
var E;
|
|
2129
|
+
const g = b(e.id), u = b(e.customClass), a = b(e.editor), f = b(e.label), N = b(e.modelValue), C = b(e.readonly), A = b(((E = e.editor) == null ? void 0 : E.required) || e.required), R = b(e.showLabel), w = b(e.visible);
|
|
2130
|
+
b(e.type);
|
|
2131
|
+
const M = b(), p = b(e.errors), l = Cn(), h = b(e.editor.type || "input-group"), v = K(() => R.value ? e.showLabelType : "none"), {
|
|
2132
|
+
resolveEditorProps: d,
|
|
2133
|
+
resolveEditorType: c,
|
|
2134
|
+
getChangeFunctionName: m,
|
|
2135
|
+
getClearFunctionName: S
|
|
2136
|
+
} = sn(), o = K(() => {
|
|
2137
|
+
const F = {
|
|
2134
2138
|
"form-group": !0,
|
|
2135
2139
|
"farris-form-group": !0,
|
|
2136
2140
|
"common-group": !0,
|
|
2137
|
-
"q-state-readonly":
|
|
2141
|
+
"q-state-readonly": C.value,
|
|
2138
2142
|
"align-items-start": a.value.type === "textarea" || a.value.type === "rich-text-editor",
|
|
2139
2143
|
"form-group--in-mobile": l
|
|
2140
2144
|
};
|
|
2141
|
-
return
|
|
2142
|
-
}),
|
|
2145
|
+
return F["form-group--has-" + h.value] = !0, F;
|
|
2146
|
+
}), q = K(() => {
|
|
2143
2147
|
if (e.fill)
|
|
2144
2148
|
return {
|
|
2145
2149
|
maxWidth: "none"
|
|
2146
2150
|
};
|
|
2147
2151
|
});
|
|
2148
|
-
function
|
|
2149
|
-
|
|
2150
|
-
newValue:
|
|
2151
|
-
newModelValue:
|
|
2152
|
-
parameters:
|
|
2152
|
+
function z(F, j, s) {
|
|
2153
|
+
N.value = j !== void 0 ? j : F, y.emit("update:modelValue", N.value), y.emit("change", N.value, {
|
|
2154
|
+
newValue: F,
|
|
2155
|
+
newModelValue: j,
|
|
2156
|
+
parameters: s
|
|
2153
2157
|
});
|
|
2154
2158
|
}
|
|
2155
2159
|
function D() {
|
|
2156
|
-
|
|
2160
|
+
y.emit("update:modelValue", "");
|
|
2157
2161
|
}
|
|
2158
|
-
function
|
|
2159
|
-
return (...
|
|
2160
|
-
D(), typeof
|
|
2162
|
+
function P(F) {
|
|
2163
|
+
return (...j) => {
|
|
2164
|
+
D(), typeof F == "function" && F(...j);
|
|
2161
2165
|
};
|
|
2162
2166
|
}
|
|
2163
|
-
function
|
|
2164
|
-
return (
|
|
2165
|
-
|
|
2167
|
+
function $(F) {
|
|
2168
|
+
return (j, s, k) => {
|
|
2169
|
+
z(j, s, k), typeof F == "function" && F(j, s, k);
|
|
2166
2170
|
};
|
|
2167
2171
|
}
|
|
2168
2172
|
const i = K(() => {
|
|
2169
|
-
const
|
|
2170
|
-
return
|
|
2171
|
-
ref:
|
|
2172
|
-
},
|
|
2173
|
-
modelValue:
|
|
2174
|
-
"onUpdate:modelValue": (
|
|
2175
|
-
}),
|
|
2173
|
+
const F = a.value.type || "input-group", j = c(F), s = d(F, a.value), k = m(F), O = S(a.value.type);
|
|
2174
|
+
return O && (s[O] = P(s[O])), k && (s[k] = $(s[k])), (s.id == null || s.id === "") && (s.id = g.value), F === "number-range" && a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" ? (a.value.onBeginValueChange && typeof a.value.onBeginValueChange == "function" && (s.onBeginValueChange = a.value.onBeginValueChange), a.value.onEndValueChange && typeof a.value.onEndValueChange == "function" && (s.onEndValueChange = a.value.onEndValueChange)) : F === "lookup" && a.value["onUpdate:idValue"] && typeof a.value["onUpdate:idValue"] == "function" ? (s["onUpdate:idValue"] = a.value["onUpdate:idValue"], s.id = g.value) : F === "collection-property-editor" && a.value.onSelectionChange && typeof a.value.onSelectionChange == "function" ? s.onSelectionChange = a.value.onSelectionChange : F === "property-editor" && (s.onBeforeOpenVariables = a.value.onBeforeOpenVariables), () => n(j, tn({
|
|
2175
|
+
ref: M
|
|
2176
|
+
}, s, {
|
|
2177
|
+
modelValue: N.value,
|
|
2178
|
+
"onUpdate:modelValue": (G) => N.value = G
|
|
2179
|
+
}), y.slots);
|
|
2176
2180
|
});
|
|
2177
|
-
function
|
|
2178
|
-
return n(
|
|
2179
|
-
id: `${
|
|
2180
|
-
errors:
|
|
2181
|
+
function t() {
|
|
2182
|
+
return n(At, {
|
|
2183
|
+
id: `${g.value}-validation-message`,
|
|
2184
|
+
errors: p.value
|
|
2181
2185
|
}, null);
|
|
2182
2186
|
}
|
|
2183
|
-
|
|
2187
|
+
ue([() => e.id, () => e.customClass, () => e.editor, () => e.label, () => e.modelValue, () => e.readonly, () => e.required, () => e.showLabel, () => e.visible, () => e.errors], ([F, j, s, k, O, G, J, oe, I, Q]) => {
|
|
2184
2188
|
var ne;
|
|
2185
|
-
|
|
2189
|
+
g.value = F, u.value = j, a.value = s, f.value = k, N.value = O, C.value = G, A.value = ((ne = a.value) == null ? void 0 : ne.required) || J, R.value = oe, w.value = I, p.value = Q;
|
|
2186
2190
|
});
|
|
2187
|
-
function r(
|
|
2188
|
-
|
|
2189
|
-
}
|
|
2190
|
-
return
|
|
2191
|
-
editorRef:
|
|
2192
|
-
}), () =>
|
|
2193
|
-
id: `${
|
|
2194
|
-
class:
|
|
2191
|
+
function r(F) {
|
|
2192
|
+
y.emit("clickLabel", F);
|
|
2193
|
+
}
|
|
2194
|
+
return y.expose({
|
|
2195
|
+
editorRef: M
|
|
2196
|
+
}), () => w.value && n("div", {
|
|
2197
|
+
id: `${g.value}-form-group`,
|
|
2198
|
+
class: u.value,
|
|
2195
2199
|
style: e.customStyle
|
|
2196
2200
|
}, [n("div", {
|
|
2197
2201
|
class: "farris-group-wrap",
|
|
2198
|
-
style:
|
|
2202
|
+
style: q.value
|
|
2199
2203
|
}, [n("div", {
|
|
2200
|
-
class:
|
|
2201
|
-
}, [n(
|
|
2202
|
-
id: `${
|
|
2203
|
-
showType:
|
|
2204
|
-
required:
|
|
2205
|
-
text:
|
|
2206
|
-
title:
|
|
2204
|
+
class: o.value
|
|
2205
|
+
}, [n(It, {
|
|
2206
|
+
id: `${g.value}-lable`,
|
|
2207
|
+
showType: v.value,
|
|
2208
|
+
required: A.value,
|
|
2209
|
+
text: f.value,
|
|
2210
|
+
title: f.value,
|
|
2211
|
+
isLink: !!e.linkLabel,
|
|
2207
2212
|
onClickLabel: r
|
|
2208
2213
|
}, null), n("div", {
|
|
2209
2214
|
class: "farris-input-wrap"
|
|
2210
|
-
}, [i.value(),
|
|
2215
|
+
}, [i.value(), t()]), e.enableTips && n(Ho, {
|
|
2211
2216
|
content: e.tipsContent
|
|
2212
2217
|
}, {
|
|
2213
2218
|
default: () => [n("span", {
|
|
@@ -2217,177 +2222,247 @@ const It = {
|
|
|
2217
2222
|
}, null)])]
|
|
2218
2223
|
})])])]);
|
|
2219
2224
|
}
|
|
2225
|
+
}), Ot = {
|
|
2226
|
+
id: { type: String, default: "" },
|
|
2227
|
+
/** 筛选组件配置器,具体配置项可查看各组件文档 */
|
|
2228
|
+
editor: { type: Object, default: {} },
|
|
2229
|
+
/** value is uncertain because type is uncertain, default value should not be set */
|
|
2230
|
+
modelValue: { type: [String, Boolean, Array, Number] },
|
|
2231
|
+
/**
|
|
2232
|
+
* 作为内嵌编辑器被创建后默认获得焦点
|
|
2233
|
+
*/
|
|
2234
|
+
focusOnCreated: { type: Boolean, default: !1 },
|
|
2235
|
+
/**
|
|
2236
|
+
* 作为内嵌编辑器被创建后默认选中文本
|
|
2237
|
+
*/
|
|
2238
|
+
selectOnCreated: { type: Boolean, default: !1 }
|
|
2239
|
+
}, nn = /* @__PURE__ */ te({
|
|
2240
|
+
name: "FDynamicFormInput",
|
|
2241
|
+
props: Ot,
|
|
2242
|
+
emits: ["change", "update:modelValue", "mousedown", "mouseup"],
|
|
2243
|
+
setup(e, y) {
|
|
2244
|
+
const g = b(e.id), u = b(e.editor), a = b(e.modelValue), {
|
|
2245
|
+
resolveEditorProps: f,
|
|
2246
|
+
resolveEditorType: N,
|
|
2247
|
+
getChangeFunctionName: C,
|
|
2248
|
+
getMousedownFunctionName: A,
|
|
2249
|
+
getMouseupFunctionName: R,
|
|
2250
|
+
getClearFunctionName: w
|
|
2251
|
+
} = sn();
|
|
2252
|
+
function M(m, S, o) {
|
|
2253
|
+
a.value = S !== void 0 ? S : m, y.emit("update:modelValue", a.value), y.emit("change", a.value, {
|
|
2254
|
+
newValue: m,
|
|
2255
|
+
newModelValue: S,
|
|
2256
|
+
parameters: o
|
|
2257
|
+
});
|
|
2258
|
+
}
|
|
2259
|
+
function p(m) {
|
|
2260
|
+
y.emit("mousedown", m);
|
|
2261
|
+
}
|
|
2262
|
+
function l(m) {
|
|
2263
|
+
y.emit("mouseup", m);
|
|
2264
|
+
}
|
|
2265
|
+
function h() {
|
|
2266
|
+
y.emit("update:modelValue", "");
|
|
2267
|
+
}
|
|
2268
|
+
function v(m) {
|
|
2269
|
+
return (...S) => {
|
|
2270
|
+
h(), typeof m == "function" && m(...S);
|
|
2271
|
+
};
|
|
2272
|
+
}
|
|
2273
|
+
function d(m) {
|
|
2274
|
+
return (S, o, q) => {
|
|
2275
|
+
M(S, o, q), typeof m == "function" && m(S, o, q);
|
|
2276
|
+
};
|
|
2277
|
+
}
|
|
2278
|
+
const c = K(() => {
|
|
2279
|
+
const m = N(u.value.type), S = f(u.value.type, u.value);
|
|
2280
|
+
S.focusOnCreated = e.focusOnCreated, S.selectOnCreated = e.selectOnCreated;
|
|
2281
|
+
const o = C(u.value.type), q = w(u.value.type);
|
|
2282
|
+
q && (S[q] = v(S[q])), o && (S[o] = d(S[o]));
|
|
2283
|
+
const z = A(u.value.type);
|
|
2284
|
+
S[z] = p;
|
|
2285
|
+
const D = R(u.value.type);
|
|
2286
|
+
return S[D] = l, S.id = g.value, () => n(m, tn(S, {
|
|
2287
|
+
modelValue: a.value,
|
|
2288
|
+
"onUpdate:modelValue": (P) => a.value = P
|
|
2289
|
+
}), null);
|
|
2290
|
+
});
|
|
2291
|
+
return ue([() => e.id, () => e.editor, () => e.modelValue], ([m, S, o]) => {
|
|
2292
|
+
g.value = m, u.value = S, a.value = o;
|
|
2293
|
+
}), () => c.value();
|
|
2294
|
+
}
|
|
2220
2295
|
});
|
|
2221
2296
|
_e.install = (e) => {
|
|
2222
|
-
e.component(_e.name, _e).component(Ke.name, Ke);
|
|
2297
|
+
e.component(_e.name, _e).component(nn.name, nn).component(Ke.name, Ke);
|
|
2223
2298
|
};
|
|
2224
|
-
const
|
|
2299
|
+
const $t = /* @__PURE__ */ te({
|
|
2225
2300
|
name: "FSelectParameters",
|
|
2226
2301
|
props: we,
|
|
2227
2302
|
emits: ["changed"],
|
|
2228
|
-
setup(e,
|
|
2303
|
+
setup(e, y) {
|
|
2229
2304
|
var i;
|
|
2230
|
-
const
|
|
2231
|
-
|
|
2305
|
+
const g = new fe();
|
|
2306
|
+
g.globalConfig = {
|
|
2232
2307
|
position: "top-center"
|
|
2233
2308
|
};
|
|
2234
|
-
const
|
|
2235
|
-
let r = "",
|
|
2236
|
-
if (
|
|
2237
|
-
const
|
|
2238
|
-
|
|
2309
|
+
const u = X("FMessageBoxService"), a = b(e.communication), f = b(((i = a.value) == null ? void 0 : i.paramMappings) || []), N = X("useFormSchema"), C = N.getFormMetadataBasicInfo(), A = b([]), R = b([]), w = b({}), M = b({}), p = K(() => (t) => {
|
|
2310
|
+
let r = "", E = "";
|
|
2311
|
+
if (t.sourceValue && t.targetVariable) {
|
|
2312
|
+
const F = R.value.find((j) => j.statePath === `${t.targetVariableViewModelId}.${t.targetVariable}`);
|
|
2313
|
+
F && F.name ? (M.value[t.targetVariable] = !1, r = `${t.sourceValue}--->${F.name}`, E = `将 ${t.sourceValue} 赋值给 ${F.name}`) : (M.value[t.targetVariable] = !0, r = `${t.sourceValue}--->${t.targetVariable}`, E = `将 ${t.sourceValue} 赋值给 ${t.targetVariable}`);
|
|
2239
2314
|
}
|
|
2240
2315
|
return {
|
|
2241
2316
|
displayText: r,
|
|
2242
|
-
displayTextTip:
|
|
2317
|
+
displayTextTip: E
|
|
2243
2318
|
};
|
|
2244
2319
|
});
|
|
2245
|
-
|
|
2246
|
-
a.value =
|
|
2320
|
+
ue(() => e.communication, (t) => {
|
|
2321
|
+
a.value = t, f.value = a.value.paramMappings || [];
|
|
2247
2322
|
}, {
|
|
2248
2323
|
deep: !0
|
|
2249
2324
|
});
|
|
2250
2325
|
function l() {
|
|
2251
2326
|
var r;
|
|
2252
|
-
const
|
|
2253
|
-
|
|
2327
|
+
const t = f.value.length || 0;
|
|
2328
|
+
f.value.length && (f.value = f.value.filter((E) => !(!E.sourceValue && !E.targetVariable))), a.value.paramMappings = f.value, t !== ((r = a.value.paramMappings) == null ? void 0 : r.length) && y.emit("changed");
|
|
2254
2329
|
}
|
|
2255
|
-
|
|
2330
|
+
un(() => {
|
|
2256
2331
|
l();
|
|
2257
2332
|
});
|
|
2258
|
-
function
|
|
2259
|
-
var
|
|
2333
|
+
function h(t) {
|
|
2334
|
+
var s, k;
|
|
2260
2335
|
const {
|
|
2261
2336
|
viewmodels: r,
|
|
2262
|
-
components:
|
|
2263
|
-
} =
|
|
2264
|
-
if ((r == null ? void 0 : r.length) === 0 || (
|
|
2337
|
+
components: E
|
|
2338
|
+
} = t.module;
|
|
2339
|
+
if ((r == null ? void 0 : r.length) === 0 || (E == null ? void 0 : E.length) === 0)
|
|
2265
2340
|
return [];
|
|
2266
|
-
const
|
|
2267
|
-
|
|
2268
|
-
const
|
|
2269
|
-
return r.forEach((
|
|
2270
|
-
if (!
|
|
2341
|
+
const F = [];
|
|
2342
|
+
R.value = [];
|
|
2343
|
+
const j = (k = (s = e.sourceCommunication) == null ? void 0 : s.parameterData) == null ? void 0 : k.getViewModelName;
|
|
2344
|
+
return r.forEach((O) => {
|
|
2345
|
+
if (!O || !O.states || O.states.length === 0)
|
|
2271
2346
|
return [];
|
|
2272
|
-
const
|
|
2273
|
-
|
|
2347
|
+
const G = [], J = E.find((Q) => Q.viewModel === O.id), oe = j && J ? j(J, O.name, t) : "";
|
|
2348
|
+
O.states.forEach((Q) => {
|
|
2274
2349
|
const ne = {
|
|
2275
2350
|
...Q,
|
|
2276
|
-
statePath:
|
|
2351
|
+
statePath: O.id + "." + Q.code
|
|
2277
2352
|
};
|
|
2278
|
-
|
|
2353
|
+
G.push({
|
|
2279
2354
|
data: ne,
|
|
2280
2355
|
children: []
|
|
2281
|
-
}),
|
|
2356
|
+
}), R.value.push(ne);
|
|
2282
2357
|
});
|
|
2283
|
-
const
|
|
2358
|
+
const I = {
|
|
2284
2359
|
data: {
|
|
2285
|
-
id:
|
|
2286
|
-
code:
|
|
2287
|
-
name: oe ||
|
|
2288
|
-
statePath:
|
|
2360
|
+
id: O.id,
|
|
2361
|
+
code: O.code,
|
|
2362
|
+
name: oe || O.name,
|
|
2363
|
+
statePath: O.id
|
|
2289
2364
|
},
|
|
2290
|
-
children:
|
|
2365
|
+
children: G
|
|
2291
2366
|
};
|
|
2292
|
-
|
|
2293
|
-
}),
|
|
2367
|
+
F.push(I);
|
|
2368
|
+
}), F;
|
|
2294
2369
|
}
|
|
2295
|
-
function
|
|
2296
|
-
var
|
|
2297
|
-
if (!((
|
|
2370
|
+
function v() {
|
|
2371
|
+
var t, r;
|
|
2372
|
+
if (!((t = a.value) != null && t.target.formId))
|
|
2298
2373
|
return [];
|
|
2299
|
-
if (a.value.target.formId ===
|
|
2300
|
-
|
|
2374
|
+
if (a.value.target.formId === C.id)
|
|
2375
|
+
A.value = h(N.getFormSchema());
|
|
2301
2376
|
else {
|
|
2302
|
-
const
|
|
2303
|
-
(r =
|
|
2377
|
+
const E = N.externalFormSchema.get(a.value.target.externalContainerId);
|
|
2378
|
+
(r = E == null ? void 0 : E.content) != null && r.module && (A.value = h(E == null ? void 0 : E.content));
|
|
2304
2379
|
}
|
|
2305
2380
|
}
|
|
2306
|
-
function
|
|
2307
|
-
Object.keys(
|
|
2308
|
-
|
|
2381
|
+
function d() {
|
|
2382
|
+
Object.keys(w.value).forEach((t) => {
|
|
2383
|
+
w.value[t] = !1;
|
|
2309
2384
|
});
|
|
2310
2385
|
}
|
|
2311
|
-
function
|
|
2312
|
-
|
|
2313
|
-
const
|
|
2314
|
-
|
|
2315
|
-
id:
|
|
2386
|
+
function c() {
|
|
2387
|
+
d();
|
|
2388
|
+
const t = Qe().guid();
|
|
2389
|
+
f.value.push({
|
|
2390
|
+
id: t,
|
|
2316
2391
|
sourceValue: "",
|
|
2317
2392
|
targetVariable: "",
|
|
2318
2393
|
targetVariableViewModelId: ""
|
|
2319
|
-
}), a.value.paramMappings =
|
|
2394
|
+
}), a.value.paramMappings = f.value, w.value[t] = !0;
|
|
2320
2395
|
}
|
|
2321
|
-
function
|
|
2322
|
-
|
|
2323
|
-
function
|
|
2324
|
-
|
|
2396
|
+
function m(t, r, E) {
|
|
2397
|
+
t.stopPropagation();
|
|
2398
|
+
function F() {
|
|
2399
|
+
f.value = f.value.filter((j) => j.id !== r.id), a.value.paramMappings = f.value, d(), y.emit("changed");
|
|
2325
2400
|
}
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
}) :
|
|
2401
|
+
E ? u.question(`确定删除参数【${E}】吗?`, "", () => {
|
|
2402
|
+
F();
|
|
2403
|
+
}) : F();
|
|
2329
2404
|
}
|
|
2330
|
-
function
|
|
2331
|
-
|
|
2405
|
+
function S(t) {
|
|
2406
|
+
w.value[t.id] || (d(), w.value[t.id] = !0);
|
|
2332
2407
|
}
|
|
2333
|
-
function t
|
|
2408
|
+
function o(t, r) {
|
|
2334
2409
|
if (!r.sourceValue) {
|
|
2335
|
-
|
|
2410
|
+
g.warning("请选择源参数");
|
|
2336
2411
|
return;
|
|
2337
2412
|
}
|
|
2338
2413
|
if (!r.targetVariable) {
|
|
2339
|
-
|
|
2414
|
+
g.warning("请选择目标参数");
|
|
2340
2415
|
return;
|
|
2341
2416
|
}
|
|
2342
|
-
|
|
2417
|
+
w.value[t.id] = !1, Object.assign(t, r), delete t.statePath, y.emit("changed");
|
|
2343
2418
|
}
|
|
2344
|
-
function
|
|
2345
|
-
|
|
2419
|
+
function q(t) {
|
|
2420
|
+
w.value[t.id] = !1, !t.sourceValue && !t.targetVariable && !t.targetVariableViewModelId && (f.value = f.value.filter((r) => r.id !== t.id), a.value.paramMappings = f.value, y.emit("changed"));
|
|
2346
2421
|
}
|
|
2347
2422
|
he(() => {
|
|
2348
|
-
|
|
2349
|
-
}),
|
|
2350
|
-
|
|
2423
|
+
v();
|
|
2424
|
+
}), ue(() => e.communication, (t) => {
|
|
2425
|
+
v();
|
|
2351
2426
|
}, {
|
|
2352
2427
|
deep: !0
|
|
2353
2428
|
});
|
|
2354
|
-
function
|
|
2355
|
-
var
|
|
2356
|
-
if ((
|
|
2429
|
+
function z(t, r, E) {
|
|
2430
|
+
var F;
|
|
2431
|
+
if ((F = E.newValue) != null && F.length) {
|
|
2357
2432
|
const {
|
|
2358
|
-
statePath:
|
|
2359
|
-
} =
|
|
2360
|
-
if ((
|
|
2361
|
-
const
|
|
2362
|
-
r.targetVariableViewModelId =
|
|
2433
|
+
statePath: j
|
|
2434
|
+
} = E.newValue[0];
|
|
2435
|
+
if ((j == null ? void 0 : j.indexOf(".")) > 0) {
|
|
2436
|
+
const s = j.split(".");
|
|
2437
|
+
r.targetVariableViewModelId = s[0], r.targetVariable = s[1];
|
|
2363
2438
|
}
|
|
2364
2439
|
}
|
|
2365
2440
|
}
|
|
2366
|
-
function D(
|
|
2441
|
+
function D(t) {
|
|
2367
2442
|
return {
|
|
2368
2443
|
type: "combo-tree",
|
|
2369
2444
|
textField: "name",
|
|
2370
2445
|
valueField: "statePath",
|
|
2371
2446
|
idField: "statePath",
|
|
2372
|
-
data:
|
|
2447
|
+
data: A.value,
|
|
2373
2448
|
editable: !1,
|
|
2374
2449
|
enableClear: !1,
|
|
2375
|
-
customRowStatus: (r) => r.raw.parent ? (
|
|
2450
|
+
customRowStatus: (r) => r.raw.parent ? (f.value.find((F) => F.id !== t.id && `${F.targetVariableViewModelId}.${F.targetVariable}` === r.raw.statePath) && (r.disabled = !0), r) : (r.disabled = !0, r)
|
|
2376
2451
|
};
|
|
2377
2452
|
}
|
|
2378
|
-
function
|
|
2379
|
-
const r = W(
|
|
2453
|
+
function P(t) {
|
|
2454
|
+
const r = W(t);
|
|
2380
2455
|
r.statePath = `${r.targetVariableViewModelId}.${r.targetVariable}`;
|
|
2381
|
-
const
|
|
2382
|
-
let
|
|
2383
|
-
if (a.value.source.formId !==
|
|
2384
|
-
const
|
|
2385
|
-
|
|
2456
|
+
const E = D(t);
|
|
2457
|
+
let F = N.getFormSchema();
|
|
2458
|
+
if (a.value.source.formId !== C.id) {
|
|
2459
|
+
const O = N.externalFormSchema.get(a.value.source.externalContainerId);
|
|
2460
|
+
O != null && O.content && (F = O == null ? void 0 : O.content);
|
|
2386
2461
|
}
|
|
2387
2462
|
const {
|
|
2388
|
-
assembleSchemaFieldsByComponent:
|
|
2389
|
-
assembleOutline:
|
|
2390
|
-
assembleStateVariables:
|
|
2463
|
+
assembleSchemaFieldsByComponent: j,
|
|
2464
|
+
assembleOutline: s,
|
|
2465
|
+
assembleStateVariables: k
|
|
2391
2466
|
} = e.sourceCommunication.parameterData;
|
|
2392
2467
|
return n("div", {
|
|
2393
2468
|
class: "param-panel"
|
|
@@ -2405,52 +2480,52 @@ const kt = /* @__PURE__ */ te({
|
|
|
2405
2480
|
}, [Y("源参数")])])])])]), n(Ye, {
|
|
2406
2481
|
class: "col-12 mb-2",
|
|
2407
2482
|
modelValue: r.sourceValue,
|
|
2408
|
-
"onUpdate:modelValue": (
|
|
2409
|
-
fieldData:
|
|
2410
|
-
formData:
|
|
2411
|
-
varData:
|
|
2483
|
+
"onUpdate:modelValue": (O) => r.sourceValue = O,
|
|
2484
|
+
fieldData: j(F),
|
|
2485
|
+
formData: s(F),
|
|
2486
|
+
varData: k(F),
|
|
2412
2487
|
editorType: "Default",
|
|
2413
2488
|
editable: !0
|
|
2414
2489
|
}, null), n(Ke, {
|
|
2415
2490
|
label: "目标参数",
|
|
2416
2491
|
modelValue: r.statePath,
|
|
2417
|
-
"onUpdate:modelValue": (
|
|
2492
|
+
"onUpdate:modelValue": (O) => r.statePath = O,
|
|
2418
2493
|
customClass: "col-12 mb-2",
|
|
2419
|
-
editor:
|
|
2420
|
-
onChange: (
|
|
2494
|
+
editor: E,
|
|
2495
|
+
onChange: (O, G) => z(O, r, G)
|
|
2421
2496
|
}, null), n("div", {
|
|
2422
2497
|
class: "d-flex justify-content-end"
|
|
2423
2498
|
}, [n("button", {
|
|
2424
2499
|
class: "btn btn-secondary mr-2",
|
|
2425
|
-
onClick: () =>
|
|
2500
|
+
onClick: () => q(t)
|
|
2426
2501
|
}, [Y("取消")]), n("button", {
|
|
2427
2502
|
class: "btn btn-primary",
|
|
2428
|
-
onClick: () => t
|
|
2503
|
+
onClick: () => o(t, r)
|
|
2429
2504
|
}, [Y("确定")])])]);
|
|
2430
2505
|
}
|
|
2431
|
-
|
|
2432
|
-
addParameter:
|
|
2433
|
-
closeAllParameterPanel:
|
|
2506
|
+
y.expose({
|
|
2507
|
+
addParameter: c,
|
|
2508
|
+
closeAllParameterPanel: d
|
|
2434
2509
|
});
|
|
2435
|
-
const
|
|
2510
|
+
const $ = K(() => (t) => ({
|
|
2436
2511
|
"param-container": !0,
|
|
2437
2512
|
"ml-3": !0,
|
|
2438
|
-
invalid:
|
|
2513
|
+
invalid: t
|
|
2439
2514
|
}));
|
|
2440
|
-
return () =>
|
|
2515
|
+
return () => f.value.length ? f.value.map((t) => {
|
|
2441
2516
|
const {
|
|
2442
2517
|
displayText: r,
|
|
2443
|
-
displayTextTip:
|
|
2444
|
-
} =
|
|
2518
|
+
displayTextTip: E
|
|
2519
|
+
} = p.value(t), F = M.value[t.targetVariable];
|
|
2445
2520
|
return n("div", {
|
|
2446
|
-
class:
|
|
2521
|
+
class: $.value(F)
|
|
2447
2522
|
}, [n("div", {
|
|
2448
2523
|
class: "selected-item position-relative"
|
|
2449
2524
|
}, [n("span", {
|
|
2450
2525
|
class: "form-control mr-3",
|
|
2451
|
-
title:
|
|
2452
|
-
onClick: () =>
|
|
2453
|
-
}, [r || "请配置参数"]),
|
|
2526
|
+
title: E,
|
|
2527
|
+
onClick: () => S(t)
|
|
2528
|
+
}, [r || "请配置参数"]), F ? n("span", {
|
|
2454
2529
|
title: "目标参数已失效,请重新选择"
|
|
2455
2530
|
}, [n("i", {
|
|
2456
2531
|
class: "f-icon f-icon-flowline-warning text-danger text-tip"
|
|
@@ -2459,129 +2534,129 @@ const kt = /* @__PURE__ */ te({
|
|
|
2459
2534
|
}, [n("div", {
|
|
2460
2535
|
class: "f-icon f-icon-yxs_delete",
|
|
2461
2536
|
title: "删除参数",
|
|
2462
|
-
onClick: (
|
|
2463
|
-
}, null)])]),
|
|
2537
|
+
onClick: (j) => m(j, t, r)
|
|
2538
|
+
}, null)])]), w.value[t.id] ? P(t) : ""]);
|
|
2464
2539
|
}) : "";
|
|
2465
2540
|
}
|
|
2466
|
-
}),
|
|
2541
|
+
}), Dt = /* @__PURE__ */ te({
|
|
2467
2542
|
name: "FCommunicationCommandItem",
|
|
2468
2543
|
props: we,
|
|
2469
2544
|
emits: ["addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
2470
|
-
setup(e,
|
|
2471
|
-
const
|
|
2472
|
-
var i,
|
|
2473
|
-
if (!
|
|
2545
|
+
setup(e, y) {
|
|
2546
|
+
const g = b(e.communication), u = X("FMessageBoxService"), a = X("useFormSchema"), f = a.getFormMetadataBasicInfo(), N = b([]), C = b(), A = b(!1), R = b([]), w = b(), M = b(!1), p = b(e.communication.paramMappings && e.communication.paramMappings.length > 0), l = K(() => {
|
|
2547
|
+
var i, t, r, E;
|
|
2548
|
+
if (!C.value)
|
|
2474
2549
|
return "";
|
|
2475
|
-
const
|
|
2476
|
-
return `${
|
|
2477
|
-
}),
|
|
2478
|
-
var
|
|
2479
|
-
if (!
|
|
2550
|
+
const P = ((i = C.value) == null ? void 0 : i.name) || ((t = C.value) == null ? void 0 : t.code) || "", $ = ((r = w.value) == null ? void 0 : r.name) || ((E = w.value) == null ? void 0 : E.code) || "";
|
|
2551
|
+
return `${P}-${$}`;
|
|
2552
|
+
}), h = K(() => {
|
|
2553
|
+
var E, F, j, s, k, O;
|
|
2554
|
+
if (!C.value)
|
|
2480
2555
|
return "";
|
|
2481
|
-
const
|
|
2482
|
-
return `${
|
|
2483
|
-
${
|
|
2484
|
-
}),
|
|
2485
|
-
function
|
|
2486
|
-
var
|
|
2487
|
-
if ((
|
|
2488
|
-
const i =
|
|
2489
|
-
|
|
2490
|
-
containerId:
|
|
2491
|
-
id:
|
|
2492
|
-
code:
|
|
2556
|
+
const P = ((E = C.value) == null ? void 0 : E.name) || ((F = C.value) == null ? void 0 : F.code) || "", $ = ((j = w.value) == null ? void 0 : j.name) || ((s = w.value) == null ? void 0 : s.code) || "", i = ((k = C.value) == null ? void 0 : k.code) || "", t = ((O = w.value) == null ? void 0 : O.code) || "", r = C.value.containerId ? `, 所属外部容器: ${C.value.containerId}` : "";
|
|
2557
|
+
return `${P} (${i}${r})
|
|
2558
|
+
${$} (${t})`;
|
|
2559
|
+
}), v = K(() => A.value ? "目标表单已失效,请删除当前方法。" : M.value ? "目标命令已失效,请删除当前方法。" : "");
|
|
2560
|
+
function d() {
|
|
2561
|
+
var P, $;
|
|
2562
|
+
if (($ = (P = g.value) == null ? void 0 : P.target) != null && $.formId) {
|
|
2563
|
+
const i = N.value.find((t) => t.id === g.value.target.formId && t.containerId === g.value.target.externalContainerId);
|
|
2564
|
+
A.value = !i, C.value = i || {
|
|
2565
|
+
containerId: g.value.target.externalContainerId,
|
|
2566
|
+
id: g.value.target.formId,
|
|
2567
|
+
code: g.value.target.formCode
|
|
2493
2568
|
};
|
|
2494
2569
|
} else
|
|
2495
|
-
|
|
2570
|
+
A.value = !1;
|
|
2496
2571
|
}
|
|
2497
|
-
function
|
|
2498
|
-
var
|
|
2499
|
-
const
|
|
2500
|
-
Array.from(
|
|
2501
|
-
var
|
|
2502
|
-
const r =
|
|
2503
|
-
((
|
|
2504
|
-
containerId:
|
|
2572
|
+
function c() {
|
|
2573
|
+
var $, i;
|
|
2574
|
+
const P = a.externalFormSchema;
|
|
2575
|
+
Array.from(P.keys()).forEach((t) => {
|
|
2576
|
+
var E, F;
|
|
2577
|
+
const r = P.get(t);
|
|
2578
|
+
((F = (E = g.value) == null ? void 0 : E.source) == null ? void 0 : F.externalContainerId) !== t && N.value.push({
|
|
2579
|
+
containerId: t,
|
|
2505
2580
|
id: r.id,
|
|
2506
2581
|
code: r.code,
|
|
2507
2582
|
name: r.name
|
|
2508
2583
|
});
|
|
2509
|
-
}), ((i = (
|
|
2584
|
+
}), ((i = ($ = g.value) == null ? void 0 : $.source) == null ? void 0 : i.formId) !== f.id && N.value.unshift({
|
|
2510
2585
|
containerId: "",
|
|
2511
|
-
id:
|
|
2512
|
-
code:
|
|
2513
|
-
name:
|
|
2514
|
-
}),
|
|
2586
|
+
id: f.id,
|
|
2587
|
+
code: f.code,
|
|
2588
|
+
name: f.name
|
|
2589
|
+
}), d();
|
|
2515
2590
|
}
|
|
2516
|
-
function
|
|
2517
|
-
var
|
|
2518
|
-
if ((
|
|
2591
|
+
function m() {
|
|
2592
|
+
var P, $;
|
|
2593
|
+
if (($ = (P = g.value) == null ? void 0 : P.target) != null && $.commandCode) {
|
|
2519
2594
|
const {
|
|
2520
2595
|
commandCode: i,
|
|
2521
|
-
commandViewmodelId:
|
|
2522
|
-
} =
|
|
2523
|
-
|
|
2524
|
-
code:
|
|
2525
|
-
},
|
|
2596
|
+
commandViewmodelId: t
|
|
2597
|
+
} = g.value.target, r = R.value.find((E) => E.code === i && E.viewmodelId === t);
|
|
2598
|
+
w.value = r || {
|
|
2599
|
+
code: g.value.target.commandCode
|
|
2600
|
+
}, M.value = !r;
|
|
2526
2601
|
} else
|
|
2527
|
-
|
|
2602
|
+
w.value = null, M.value = !1;
|
|
2528
2603
|
}
|
|
2529
|
-
function
|
|
2530
|
-
var r,
|
|
2604
|
+
function S(P) {
|
|
2605
|
+
var r, E;
|
|
2531
2606
|
const {
|
|
2532
|
-
viewmodels:
|
|
2607
|
+
viewmodels: $,
|
|
2533
2608
|
components: i
|
|
2534
|
-
} =
|
|
2535
|
-
if ((
|
|
2609
|
+
} = P.module;
|
|
2610
|
+
if (($ == null ? void 0 : $.length) === 0 || (i == null ? void 0 : i.length) === 0)
|
|
2536
2611
|
return [];
|
|
2537
|
-
|
|
2538
|
-
const
|
|
2539
|
-
|
|
2540
|
-
if (!
|
|
2612
|
+
R.value = [];
|
|
2613
|
+
const t = (E = (r = e.sourceCommunication) == null ? void 0 : r.parameterData) == null ? void 0 : E.getViewModelName;
|
|
2614
|
+
$.forEach((F) => {
|
|
2615
|
+
if (!F || !F.commands || F.commands.length === 0)
|
|
2541
2616
|
return [];
|
|
2542
|
-
const
|
|
2543
|
-
|
|
2544
|
-
id:
|
|
2545
|
-
code:
|
|
2546
|
-
name:
|
|
2547
|
-
}),
|
|
2548
|
-
|
|
2549
|
-
...
|
|
2550
|
-
viewmodelId:
|
|
2617
|
+
const j = i.find((k) => k.viewModel === F.id), s = t && j ? t(j, F.name, P) : "";
|
|
2618
|
+
R.value.push({
|
|
2619
|
+
id: F.id,
|
|
2620
|
+
code: F.code,
|
|
2621
|
+
name: s || F.name
|
|
2622
|
+
}), F.commands.forEach((k) => {
|
|
2623
|
+
k.isInvalid || R.value.push({
|
|
2624
|
+
...k,
|
|
2625
|
+
viewmodelId: F.id,
|
|
2551
2626
|
isCommandNode: !0
|
|
2552
2627
|
});
|
|
2553
2628
|
});
|
|
2554
2629
|
});
|
|
2555
2630
|
}
|
|
2556
|
-
function
|
|
2557
|
-
var
|
|
2558
|
-
if (!((
|
|
2631
|
+
function o() {
|
|
2632
|
+
var P, $, i;
|
|
2633
|
+
if (!((P = C.value) != null && P.id))
|
|
2559
2634
|
return [];
|
|
2560
|
-
if (
|
|
2561
|
-
|
|
2635
|
+
if (C.value.id === f.id)
|
|
2636
|
+
S(a.getFormSchema());
|
|
2562
2637
|
else {
|
|
2563
|
-
const
|
|
2564
|
-
(i =
|
|
2638
|
+
const t = a.externalFormSchema.get(($ = C.value) == null ? void 0 : $.containerId);
|
|
2639
|
+
(i = t == null ? void 0 : t.content) != null && i.module && S(t.content);
|
|
2565
2640
|
}
|
|
2566
|
-
|
|
2641
|
+
m();
|
|
2567
2642
|
}
|
|
2568
2643
|
he(() => {
|
|
2569
|
-
|
|
2570
|
-
}),
|
|
2571
|
-
|
|
2644
|
+
c(), o();
|
|
2645
|
+
}), ue(() => e.communication, (P) => {
|
|
2646
|
+
p.value = e.communication.paramMappings && e.communication.paramMappings.length > 0, d(), o();
|
|
2572
2647
|
}, {
|
|
2573
2648
|
deep: !0
|
|
2574
2649
|
});
|
|
2575
|
-
function
|
|
2576
|
-
|
|
2650
|
+
function q() {
|
|
2651
|
+
y.emit("addParameter");
|
|
2577
2652
|
}
|
|
2578
|
-
function
|
|
2579
|
-
|
|
2580
|
-
|
|
2653
|
+
function z() {
|
|
2654
|
+
u.question(`确定删除命令【${l.value}】吗?`, "", () => {
|
|
2655
|
+
y.emit("deleteCommand");
|
|
2581
2656
|
});
|
|
2582
2657
|
}
|
|
2583
2658
|
function D() {
|
|
2584
|
-
|
|
2659
|
+
y.emit("toggleParameterPanel");
|
|
2585
2660
|
}
|
|
2586
2661
|
return () => n("div", {
|
|
2587
2662
|
class: "form-container position-relative"
|
|
@@ -2589,126 +2664,126 @@ ${O} (${o})`;
|
|
|
2589
2664
|
class: "f-page-parameter-editor-first-row"
|
|
2590
2665
|
}, [n("span", {
|
|
2591
2666
|
class: "f-page-parameter-editor-command-name",
|
|
2592
|
-
title:
|
|
2667
|
+
title: h.value
|
|
2593
2668
|
}, [l.value]), n("div", {
|
|
2594
2669
|
class: "f-page-parameter-editor-first-row-icon"
|
|
2595
|
-
}, [
|
|
2596
|
-
title:
|
|
2670
|
+
}, [A.value || M.value ? n("div", null, [n("span", {
|
|
2671
|
+
title: v.value
|
|
2597
2672
|
}, [n("i", {
|
|
2598
2673
|
class: "ml-2 f-icon f-icon-flowline-warning text-danger text-tip"
|
|
2599
2674
|
}, null)]), n("div", {
|
|
2600
2675
|
class: "f-icon f-icon-yxs_delete",
|
|
2601
2676
|
title: "删除命令",
|
|
2602
|
-
onClick: (
|
|
2603
|
-
}, null)]) : n(
|
|
2677
|
+
onClick: (P) => z()
|
|
2678
|
+
}, null)]) : n(xe, null, [n("div", {
|
|
2604
2679
|
class: "f-icon f-icon-home-add",
|
|
2605
2680
|
title: "新增参数",
|
|
2606
2681
|
style: "font-size: 11px;",
|
|
2607
|
-
onClick:
|
|
2608
|
-
}, null),
|
|
2682
|
+
onClick: q
|
|
2683
|
+
}, null), p.value && n("div", {
|
|
2609
2684
|
class: "f-icon f-icon-edit-button",
|
|
2610
2685
|
title: "收折参数",
|
|
2611
2686
|
onClick: () => D()
|
|
2612
2687
|
}, null), n("div", {
|
|
2613
2688
|
class: "f-icon f-icon-yxs_delete",
|
|
2614
2689
|
title: "删除命令",
|
|
2615
|
-
onClick: (
|
|
2690
|
+
onClick: (P) => z()
|
|
2616
2691
|
}, null)])])])]);
|
|
2617
2692
|
}
|
|
2618
|
-
}),
|
|
2693
|
+
}), Rt = /* @__PURE__ */ te({
|
|
2619
2694
|
name: "FCombineForm",
|
|
2620
2695
|
props: we,
|
|
2621
2696
|
emits: ["changed", "deleteCommand", "addCommand"],
|
|
2622
|
-
setup(e,
|
|
2623
|
-
const
|
|
2624
|
-
saveCommunication:
|
|
2625
|
-
} = be(
|
|
2626
|
-
var
|
|
2627
|
-
return ((
|
|
2628
|
-
}),
|
|
2629
|
-
function
|
|
2630
|
-
|
|
2631
|
-
}
|
|
2632
|
-
function
|
|
2633
|
-
|
|
2634
|
-
}
|
|
2635
|
-
function
|
|
2636
|
-
|
|
2697
|
+
setup(e, y) {
|
|
2698
|
+
const g = X("useFormSchema"), {
|
|
2699
|
+
saveCommunication: u
|
|
2700
|
+
} = be(g), a = b(e.communication), f = K(() => {
|
|
2701
|
+
var d, c, m, S;
|
|
2702
|
+
return ((c = (d = a.value) == null ? void 0 : d.source) == null ? void 0 : c.componentId) && ((S = (m = a.value) == null ? void 0 : m.source) == null ? void 0 : S.event);
|
|
2703
|
+
}), N = b(!0), C = b(!0), A = b(), R = b();
|
|
2704
|
+
function w() {
|
|
2705
|
+
u(a.value), y.emit("changed", a.value);
|
|
2706
|
+
}
|
|
2707
|
+
function M() {
|
|
2708
|
+
A.value && A.value.addParameter(), C.value = !1;
|
|
2709
|
+
}
|
|
2710
|
+
function p() {
|
|
2711
|
+
y.emit("deleteCommand");
|
|
2637
2712
|
}
|
|
2638
2713
|
function l() {
|
|
2639
|
-
|
|
2714
|
+
C.value = !C.value;
|
|
2640
2715
|
}
|
|
2641
|
-
const
|
|
2642
|
-
"d-none":
|
|
2716
|
+
const h = K(() => ({
|
|
2717
|
+
"d-none": C.value
|
|
2643
2718
|
}));
|
|
2644
|
-
function
|
|
2645
|
-
|
|
2719
|
+
function v() {
|
|
2720
|
+
A.value && A.value.closeAllParameterPanel();
|
|
2646
2721
|
}
|
|
2647
|
-
return
|
|
2648
|
-
closeAllParameterPanel:
|
|
2722
|
+
return y.expose({
|
|
2723
|
+
closeAllParameterPanel: v
|
|
2649
2724
|
}), () => n("div", {
|
|
2650
2725
|
class: "combine-form-container pb-2"
|
|
2651
|
-
}, [
|
|
2652
|
-
ref:
|
|
2726
|
+
}, [f.value && n(xe, null, [n(Dt, {
|
|
2727
|
+
ref: R,
|
|
2653
2728
|
communication: a.value,
|
|
2654
2729
|
sourceCommunication: e.sourceCommunication,
|
|
2655
|
-
onAddParameter:
|
|
2656
|
-
onDeleteCommand:
|
|
2730
|
+
onAddParameter: M,
|
|
2731
|
+
onDeleteCommand: p,
|
|
2657
2732
|
onToggleParameterPanel: l
|
|
2658
|
-
}, null),
|
|
2659
|
-
class:
|
|
2660
|
-
}, [n(
|
|
2661
|
-
ref:
|
|
2733
|
+
}, null), N.value && n("div", {
|
|
2734
|
+
class: h.value
|
|
2735
|
+
}, [n($t, {
|
|
2736
|
+
ref: A,
|
|
2662
2737
|
communication: a.value,
|
|
2663
|
-
onChanged:
|
|
2738
|
+
onChanged: w,
|
|
2664
2739
|
sourceCommunication: e.sourceCommunication
|
|
2665
2740
|
}, null)])])]);
|
|
2666
2741
|
}
|
|
2667
|
-
}),
|
|
2742
|
+
}), jt = /* @__PURE__ */ te({
|
|
2668
2743
|
name: "FSelectCommunicationCommand",
|
|
2669
2744
|
props: we,
|
|
2670
2745
|
emits: ["selectCommand", "addParameter", "deleteCommand", "toggleParameterPanel"],
|
|
2671
|
-
setup(e,
|
|
2672
|
-
const
|
|
2673
|
-
function
|
|
2674
|
-
var
|
|
2675
|
-
const
|
|
2676
|
-
Array.from(
|
|
2677
|
-
var
|
|
2678
|
-
const
|
|
2679
|
-
((
|
|
2680
|
-
containerId:
|
|
2681
|
-
id:
|
|
2682
|
-
code:
|
|
2683
|
-
name:
|
|
2746
|
+
setup(e, y) {
|
|
2747
|
+
const g = X("useFormSchema"), u = g.getFormMetadataBasicInfo(), a = b([]), f = b(), N = b([]), C = b(), A = b(!0), R = b(!1);
|
|
2748
|
+
function w() {
|
|
2749
|
+
var m;
|
|
2750
|
+
const c = g.externalFormSchema;
|
|
2751
|
+
Array.from(c.keys()).forEach((S) => {
|
|
2752
|
+
var q;
|
|
2753
|
+
const o = c.get(S);
|
|
2754
|
+
((q = e.sourceCommunication) == null ? void 0 : q.externalContainerId) !== S && a.value.push({
|
|
2755
|
+
containerId: S,
|
|
2756
|
+
id: o.id,
|
|
2757
|
+
code: o.code,
|
|
2758
|
+
name: o.name
|
|
2684
2759
|
});
|
|
2685
|
-
}), ((
|
|
2760
|
+
}), ((m = e.sourceCommunication) == null ? void 0 : m.formId) !== u.id && a.value.unshift({
|
|
2686
2761
|
containerId: "",
|
|
2687
|
-
id:
|
|
2688
|
-
code:
|
|
2689
|
-
name:
|
|
2762
|
+
id: u.id,
|
|
2763
|
+
code: u.code,
|
|
2764
|
+
name: u.name
|
|
2690
2765
|
});
|
|
2691
2766
|
}
|
|
2692
|
-
function
|
|
2693
|
-
var
|
|
2767
|
+
function M(c) {
|
|
2768
|
+
var q, z;
|
|
2694
2769
|
const {
|
|
2695
|
-
viewmodels:
|
|
2696
|
-
components:
|
|
2697
|
-
} =
|
|
2698
|
-
if ((
|
|
2770
|
+
viewmodels: m,
|
|
2771
|
+
components: S
|
|
2772
|
+
} = c.module;
|
|
2773
|
+
if ((m == null ? void 0 : m.length) === 0 || (S == null ? void 0 : S.length) === 0)
|
|
2699
2774
|
return [];
|
|
2700
|
-
|
|
2701
|
-
const
|
|
2702
|
-
|
|
2775
|
+
N.value = [];
|
|
2776
|
+
const o = (z = (q = e.sourceCommunication) == null ? void 0 : q.parameterData) == null ? void 0 : z.getViewModelName;
|
|
2777
|
+
m.forEach((D) => {
|
|
2703
2778
|
if (!D || !D.commands || D.commands.length === 0)
|
|
2704
2779
|
return [];
|
|
2705
|
-
const
|
|
2706
|
-
|
|
2780
|
+
const P = S.find((i) => i.viewModel === D.id), $ = o && P ? o(P, D.name, c) : "";
|
|
2781
|
+
N.value.push({
|
|
2707
2782
|
id: D.id,
|
|
2708
2783
|
code: D.code,
|
|
2709
|
-
name:
|
|
2784
|
+
name: $ || D.name
|
|
2710
2785
|
}), D.commands.forEach((i) => {
|
|
2711
|
-
i.isInvalid ||
|
|
2786
|
+
i.isInvalid || N.value.push({
|
|
2712
2787
|
...i,
|
|
2713
2788
|
viewmodelId: D.id,
|
|
2714
2789
|
isCommandNode: !0
|
|
@@ -2716,190 +2791,190 @@ ${O} (${o})`;
|
|
|
2716
2791
|
});
|
|
2717
2792
|
});
|
|
2718
2793
|
}
|
|
2719
|
-
function
|
|
2720
|
-
var
|
|
2721
|
-
if (!((
|
|
2794
|
+
function p() {
|
|
2795
|
+
var c, m, S;
|
|
2796
|
+
if (!((c = f.value) != null && c.id))
|
|
2722
2797
|
return [];
|
|
2723
|
-
if (
|
|
2724
|
-
|
|
2798
|
+
if (f.value.id === u.id)
|
|
2799
|
+
M(g.getFormSchema());
|
|
2725
2800
|
else {
|
|
2726
|
-
const
|
|
2727
|
-
(
|
|
2801
|
+
const o = g.externalFormSchema.get((m = f.value) == null ? void 0 : m.containerId);
|
|
2802
|
+
(S = o == null ? void 0 : o.content) != null && S.module && M(o.content);
|
|
2728
2803
|
}
|
|
2729
2804
|
}
|
|
2730
2805
|
he(() => {
|
|
2731
|
-
|
|
2806
|
+
w(), p();
|
|
2732
2807
|
});
|
|
2733
|
-
function l(
|
|
2734
|
-
|
|
2808
|
+
function l(c) {
|
|
2809
|
+
f.value = c, A.value = !1, R.value = !0, p();
|
|
2735
2810
|
}
|
|
2736
|
-
const
|
|
2737
|
-
var
|
|
2811
|
+
const h = K(() => (c) => {
|
|
2812
|
+
var m, S;
|
|
2738
2813
|
return {
|
|
2739
2814
|
item: !0,
|
|
2740
|
-
selected: ((
|
|
2815
|
+
selected: ((m = f.value) == null ? void 0 : m.id) === c.id && ((S = f.value) == null ? void 0 : S.containerId) === c.containerId
|
|
2741
2816
|
};
|
|
2742
|
-
}),
|
|
2743
|
-
var
|
|
2817
|
+
}), v = K(() => (c) => {
|
|
2818
|
+
var m;
|
|
2744
2819
|
return {
|
|
2745
2820
|
item: !0,
|
|
2746
|
-
selected: ((
|
|
2747
|
-
"pl-4":
|
|
2748
|
-
disabled: !
|
|
2821
|
+
selected: ((m = C.value) == null ? void 0 : m.id) === c.id,
|
|
2822
|
+
"pl-4": c.isCommandNode,
|
|
2823
|
+
disabled: !c.isCommandNode
|
|
2749
2824
|
};
|
|
2750
2825
|
});
|
|
2751
|
-
function
|
|
2752
|
-
|
|
2753
|
-
targetForm:
|
|
2754
|
-
targetCommand:
|
|
2826
|
+
function d(c) {
|
|
2827
|
+
c.isCommandNode && (R.value = !1, C.value = c, y.emit("selectCommand", {
|
|
2828
|
+
targetForm: f.value,
|
|
2829
|
+
targetCommand: c
|
|
2755
2830
|
}));
|
|
2756
2831
|
}
|
|
2757
2832
|
return () => n("div", {
|
|
2758
2833
|
class: "form-container position-relative"
|
|
2759
|
-
}, [
|
|
2834
|
+
}, [A.value && n("div", {
|
|
2760
2835
|
class: "item-list"
|
|
2761
2836
|
}, [n("span", {
|
|
2762
2837
|
class: "tip"
|
|
2763
|
-
}, [Y("请选择目标页面")]), a.value.map((
|
|
2764
|
-
class:
|
|
2765
|
-
onClick: () => l(
|
|
2766
|
-
title:
|
|
2767
|
-
}, [
|
|
2838
|
+
}, [Y("请选择目标页面")]), a.value.map((c) => n("span", {
|
|
2839
|
+
class: h.value(c),
|
|
2840
|
+
onClick: () => l(c),
|
|
2841
|
+
title: c.containerId ? `所属外部容器:${c.containerId}` : "当前页面"
|
|
2842
|
+
}, [c.name]))]), R.value ? n("div", {
|
|
2768
2843
|
class: "item-list"
|
|
2769
2844
|
}, [n("span", {
|
|
2770
2845
|
class: "tip"
|
|
2771
|
-
}, [Y("请选择目标命令")]),
|
|
2772
|
-
class:
|
|
2773
|
-
title:
|
|
2774
|
-
onClick: () =>
|
|
2775
|
-
}, [
|
|
2846
|
+
}, [Y("请选择目标命令")]), N.value.map((c) => n("span", {
|
|
2847
|
+
class: v.value(c),
|
|
2848
|
+
title: c.code,
|
|
2849
|
+
onClick: () => d(c)
|
|
2850
|
+
}, [c.name]))]) : ""]);
|
|
2776
2851
|
}
|
|
2777
|
-
}),
|
|
2852
|
+
}), Ut = /* @__PURE__ */ te({
|
|
2778
2853
|
name: "FInteractionItem",
|
|
2779
|
-
props:
|
|
2854
|
+
props: bt,
|
|
2780
2855
|
emits: ["addAction", "delete", "toggle"],
|
|
2781
|
-
setup(e,
|
|
2856
|
+
setup(e, y) {
|
|
2782
2857
|
var ge, Ce;
|
|
2783
2858
|
const {
|
|
2784
|
-
guid:
|
|
2785
|
-
} = Qe(),
|
|
2786
|
-
toggleSelectingMethod:
|
|
2787
|
-
emitFinalState:
|
|
2788
|
-
getViewModeId:
|
|
2789
|
-
getMethodsOnViewModel:
|
|
2790
|
-
getComponentList:
|
|
2791
|
-
updateTarget:
|
|
2792
|
-
updateCommandHasPath:
|
|
2793
|
-
} = a,
|
|
2859
|
+
guid: g
|
|
2860
|
+
} = Qe(), u = X("FMessageBoxService"), a = X("useMethodsComposition"), {
|
|
2861
|
+
toggleSelectingMethod: f,
|
|
2862
|
+
emitFinalState: N,
|
|
2863
|
+
getViewModeId: C,
|
|
2864
|
+
getMethodsOnViewModel: A,
|
|
2865
|
+
getComponentList: R,
|
|
2866
|
+
updateTarget: w,
|
|
2867
|
+
updateCommandHasPath: M
|
|
2868
|
+
} = a, p = X("useFormSchema"), {
|
|
2794
2869
|
clearCommunicationById: l,
|
|
2795
|
-
resolveSourceControlEventTitle:
|
|
2796
|
-
resolveCommunication:
|
|
2797
|
-
createNewCommunication:
|
|
2798
|
-
saveCommunication:
|
|
2799
|
-
resolveCommunicationSource:
|
|
2800
|
-
} = be(
|
|
2801
|
-
const
|
|
2802
|
-
return
|
|
2803
|
-
}), D =
|
|
2804
|
-
|
|
2805
|
-
const
|
|
2806
|
-
var
|
|
2807
|
-
const
|
|
2808
|
-
return
|
|
2809
|
-
}),
|
|
2810
|
-
function
|
|
2870
|
+
resolveSourceControlEventTitle: h,
|
|
2871
|
+
resolveCommunication: v,
|
|
2872
|
+
createNewCommunication: d,
|
|
2873
|
+
saveCommunication: c,
|
|
2874
|
+
resolveCommunicationSource: m
|
|
2875
|
+
} = be(p), S = b(e.controllers), o = b(e.interaction), q = b(!1), z = K(() => {
|
|
2876
|
+
const T = o.value.showSwitch[0];
|
|
2877
|
+
return T.showSection[T.showSwitchNumber][2];
|
|
2878
|
+
}), D = b(e.sourceCommunication.needSelectSourceControl);
|
|
2879
|
+
o.value.shouldShowCommunicationPanel = o.value.shouldShowCommunicationPanel === !1 ? !1 : !!((Ce = (ge = o.value) == null ? void 0 : ge.communication) != null && Ce.length) || D.value;
|
|
2880
|
+
const P = K(() => {
|
|
2881
|
+
var H;
|
|
2882
|
+
const T = !!((H = o.value.command) != null && H.id), U = o.value.showSwitch[0], _ = U.showSection[U.showSwitchNumber][3];
|
|
2883
|
+
return T && _;
|
|
2884
|
+
}), $ = b(o.value.needSelectCommunicationCommand || !1), i = b(), t = b(), r = b(!1), E = b(), F = b([]);
|
|
2885
|
+
function j() {
|
|
2811
2886
|
if (D.value) {
|
|
2812
|
-
const
|
|
2813
|
-
if (
|
|
2887
|
+
const T = h(o.value.communication);
|
|
2888
|
+
if (T) {
|
|
2814
2889
|
const {
|
|
2815
2890
|
title: U,
|
|
2816
|
-
titleTip:
|
|
2817
|
-
isControlInvalid:
|
|
2818
|
-
} =
|
|
2819
|
-
i.value = U,
|
|
2891
|
+
titleTip: _,
|
|
2892
|
+
isControlInvalid: H
|
|
2893
|
+
} = T;
|
|
2894
|
+
i.value = U, t.value = H ? "源表单或事件已失效,请删除" : _ || U, r.value = H;
|
|
2820
2895
|
}
|
|
2821
2896
|
} else
|
|
2822
|
-
|
|
2897
|
+
t.value = o.value.event.label, i.value = o.value.event.name;
|
|
2823
2898
|
}
|
|
2824
|
-
|
|
2825
|
-
|
|
2899
|
+
on(() => {
|
|
2900
|
+
v(o.value), j(), E.value = m(o.value) || e.sourceCommunication;
|
|
2826
2901
|
});
|
|
2827
|
-
const
|
|
2902
|
+
const s = K(() => ({
|
|
2828
2903
|
"f-icon": !0,
|
|
2829
|
-
"f-icon-arrow-chevron-down":
|
|
2830
|
-
"f-icon-arrow-chevron-left": !
|
|
2904
|
+
"f-icon-arrow-chevron-down": P.value || o.value.shouldShowCommunicationPanel,
|
|
2905
|
+
"f-icon-arrow-chevron-left": !P.value && !o.value.shouldShowCommunicationPanel
|
|
2831
2906
|
}));
|
|
2832
|
-
function
|
|
2833
|
-
var
|
|
2834
|
-
let
|
|
2835
|
-
|
|
2907
|
+
function k() {
|
|
2908
|
+
var _, H;
|
|
2909
|
+
let T = (_ = o.value.command) != null && _.id ? 1 : 0;
|
|
2910
|
+
T = T + (((H = o.value.communication) == null ? void 0 : H.length) || 0);
|
|
2836
2911
|
const U = `确定删除【${i.value}】吗?`;
|
|
2837
|
-
|
|
2838
|
-
|
|
2912
|
+
u.question(U, "", () => {
|
|
2913
|
+
y.emit("delete", e.displayOrder);
|
|
2839
2914
|
});
|
|
2840
2915
|
}
|
|
2841
|
-
function
|
|
2842
|
-
var
|
|
2843
|
-
const
|
|
2844
|
-
|
|
2916
|
+
function O() {
|
|
2917
|
+
var H;
|
|
2918
|
+
const T = o.value.showSwitch[0], U = !!((H = o.value.command) != null && H.id);
|
|
2919
|
+
o.value.communication && o.value.communication.length > 0 && (o.value.shouldShowCommunicationPanel = !o.value.shouldShowCommunicationPanel), U && (T.showSection[T.showSwitchNumber][3] = !T.showSection[T.showSwitchNumber][3], y.emit("toggle", e.displayOrder));
|
|
2845
2920
|
}
|
|
2846
|
-
function
|
|
2847
|
-
var
|
|
2848
|
-
const
|
|
2921
|
+
function G() {
|
|
2922
|
+
var H, Z;
|
|
2923
|
+
const T = !!((H = o.value.command) != null && H.id), U = o.value.communication && o.value.communication.length > 0;
|
|
2849
2924
|
if (D.value) {
|
|
2850
|
-
|
|
2925
|
+
$.value = !$.value, (Z = F.value) != null && Z.length && F.value.map((ae) => {
|
|
2851
2926
|
ae.closeAllParameterPanel();
|
|
2852
2927
|
});
|
|
2853
2928
|
return;
|
|
2854
2929
|
}
|
|
2855
|
-
U && (
|
|
2856
|
-
const
|
|
2857
|
-
|
|
2858
|
-
}
|
|
2859
|
-
function J(
|
|
2860
|
-
const U =
|
|
2861
|
-
|
|
2862
|
-
const
|
|
2863
|
-
|
|
2864
|
-
}
|
|
2865
|
-
function oe(
|
|
2866
|
-
let
|
|
2867
|
-
const ae =
|
|
2930
|
+
U && (o.value.shouldShowCommunicationPanel = !o.value.shouldShowCommunicationPanel);
|
|
2931
|
+
const _ = o.value.showSwitch[0];
|
|
2932
|
+
f(_, T), y.emit("addAction", e.displayOrder);
|
|
2933
|
+
}
|
|
2934
|
+
function J(T) {
|
|
2935
|
+
const U = o.value.communication !== void 0;
|
|
2936
|
+
T === null && o.value.command === null && !U && y.emit("delete", e.displayOrder), o.value.communication && (o.value.shouldShowCommunicationPanel = z.value);
|
|
2937
|
+
const _ = o.value.showSwitch[0];
|
|
2938
|
+
f(_, U);
|
|
2939
|
+
}
|
|
2940
|
+
function oe(T, U, _) {
|
|
2941
|
+
let H = `${U}${_}${T}`, Z = -1;
|
|
2942
|
+
const ae = A();
|
|
2868
2943
|
for (; Z === -1; ) {
|
|
2869
2944
|
let le = !1;
|
|
2870
2945
|
for (let re = 0; re < ae.length; re++)
|
|
2871
2946
|
ae[re].controllerList.forEach((ie) => {
|
|
2872
|
-
ie.label || ie.label === "" ? le = ie.label.toLowerCase() ===
|
|
2947
|
+
ie.label || ie.label === "" ? le = ie.label.toLowerCase() === H.toLowerCase() ? !0 : le : le = !1;
|
|
2873
2948
|
});
|
|
2874
2949
|
if (le)
|
|
2875
|
-
|
|
2950
|
+
T += 1, H = `${U}${_}${T}`;
|
|
2876
2951
|
else {
|
|
2877
2952
|
Z = 0;
|
|
2878
2953
|
break;
|
|
2879
2954
|
}
|
|
2880
2955
|
}
|
|
2881
2956
|
return {
|
|
2882
|
-
newName:
|
|
2883
|
-
suffix:
|
|
2957
|
+
newName: H,
|
|
2958
|
+
suffix: T
|
|
2884
2959
|
};
|
|
2885
2960
|
}
|
|
2886
|
-
function
|
|
2961
|
+
function I(T) {
|
|
2887
2962
|
const {
|
|
2888
2963
|
method: U,
|
|
2889
|
-
controller:
|
|
2890
|
-
} =
|
|
2891
|
-
label:
|
|
2964
|
+
controller: _
|
|
2965
|
+
} = T, {
|
|
2966
|
+
label: H,
|
|
2892
2967
|
handlerName: Z,
|
|
2893
2968
|
property: ae,
|
|
2894
2969
|
componentLists: le,
|
|
2895
2970
|
hasPath: re
|
|
2896
|
-
} = U, ie =
|
|
2971
|
+
} = U, ie = C().replace(/-/g, "").replace("component", "").replace("viewmodel", ""), Ne = H.slice(0, 1).toUpperCase() + H.slice(1), {
|
|
2897
2972
|
newName: Pe,
|
|
2898
2973
|
suffix: Me
|
|
2899
2974
|
} = oe(1, ie, Ne), {
|
|
2900
|
-
controllerName:
|
|
2901
|
-
} =
|
|
2902
|
-
id:
|
|
2975
|
+
controllerName: de
|
|
2976
|
+
} = _, Ve = de.id, Le = {
|
|
2977
|
+
id: g(),
|
|
2903
2978
|
label: Pe,
|
|
2904
2979
|
name: `${U.name}${Me}`,
|
|
2905
2980
|
handlerName: Z,
|
|
@@ -2908,17 +2983,17 @@ ${O} (${o})`;
|
|
|
2908
2983
|
property: ae,
|
|
2909
2984
|
componentLists: le
|
|
2910
2985
|
};
|
|
2911
|
-
|
|
2912
|
-
id:
|
|
2913
|
-
label:
|
|
2914
|
-
name:
|
|
2915
|
-
isCommon:
|
|
2986
|
+
o.value.command = M(_, Le), o.value.command && p.designerMode === "PC_RTC" && (o.value.command.isRtcCommand = !0), o.value.controller = {
|
|
2987
|
+
id: de.id,
|
|
2988
|
+
label: de.label,
|
|
2989
|
+
name: de.name,
|
|
2990
|
+
isCommon: de.isCommon
|
|
2916
2991
|
};
|
|
2917
|
-
const ee =
|
|
2918
|
-
ee.showSwitchNumber = 2, ee.showSection[ee.showSwitchNumber][2] = !1, ee.showSection[ee.showSwitchNumber][3] = !0,
|
|
2992
|
+
const ee = o.value.showSwitch[0];
|
|
2993
|
+
ee.showSwitchNumber = 2, ee.showSection[ee.showSwitchNumber][2] = !1, ee.showSection[ee.showSwitchNumber][3] = !0, q.value = !0, o.value.communication && o.value.communication.length > 0 && (o.value.shouldShowCommunicationPanel = !0), N(!1, null);
|
|
2919
2994
|
}
|
|
2920
2995
|
function Q() {
|
|
2921
|
-
|
|
2996
|
+
o.value.command = {
|
|
2922
2997
|
id: "abandoned",
|
|
2923
2998
|
label: "未绑定方法",
|
|
2924
2999
|
name: "未绑定方法",
|
|
@@ -2927,23 +3002,23 @@ ${O} (${o})`;
|
|
|
2927
3002
|
handlerName: "未绑定方法",
|
|
2928
3003
|
cmpId: "",
|
|
2929
3004
|
shortcut: {},
|
|
2930
|
-
isRtcCommand:
|
|
3005
|
+
isRtcCommand: p.designerMode === "PC_RTC" ? !0 : void 0,
|
|
2931
3006
|
isNewGenerated: void 0,
|
|
2932
3007
|
extensions: [],
|
|
2933
3008
|
isInvalid: !1
|
|
2934
|
-
},
|
|
3009
|
+
}, o.value.controller = {
|
|
2935
3010
|
label: "",
|
|
2936
3011
|
name: "",
|
|
2937
3012
|
id: ""
|
|
2938
|
-
},
|
|
2939
|
-
const
|
|
2940
|
-
|
|
3013
|
+
}, N(!0, o.value.event);
|
|
3014
|
+
const T = o.value.showSwitch[0];
|
|
3015
|
+
f(T, !0);
|
|
2941
3016
|
}
|
|
2942
|
-
function ne(
|
|
3017
|
+
function ne(T, U) {
|
|
2943
3018
|
var Z;
|
|
2944
|
-
if (
|
|
3019
|
+
if (o.value.communication || (o.value.communication = []), o.value.communication.find((ae) => {
|
|
2945
3020
|
var le, re, ie;
|
|
2946
|
-
return ((le = ae.target) == null ? void 0 : le.formId) ===
|
|
3021
|
+
return ((le = ae.target) == null ? void 0 : le.formId) === T.formId && ((re = ae.target) == null ? void 0 : re.externalContainerId) === T.externalContainerId && ((ie = ae.target) == null ? void 0 : ie.commandCode) === T.commandCode;
|
|
2947
3022
|
})) {
|
|
2948
3023
|
new fe().info({
|
|
2949
3024
|
position: "top-center",
|
|
@@ -2951,124 +3026,124 @@ ${O} (${o})`;
|
|
|
2951
3026
|
});
|
|
2952
3027
|
return;
|
|
2953
3028
|
}
|
|
2954
|
-
let
|
|
2955
|
-
|
|
3029
|
+
let H;
|
|
3030
|
+
o.value.communication.length === 1 && !((Z = o.value.communication[0].target) != null && Z.formId) ? (Object.assign(o.value.communication[0].target, T), H = o.value.communication[0]) : (H = d(e, o.value.event.label, T, U), o.value.communication.push(H)), N(!1, null), c(H);
|
|
2956
3031
|
}
|
|
2957
|
-
function ce(
|
|
2958
|
-
var
|
|
2959
|
-
const U =
|
|
2960
|
-
if (U.showSection[U.showSwitchNumber][2] = !1, (
|
|
3032
|
+
function ce(T) {
|
|
3033
|
+
var _;
|
|
3034
|
+
const U = o.value.showSwitch[0];
|
|
3035
|
+
if (U.showSection[U.showSwitchNumber][2] = !1, (_ = o.value.command) != null && _.id && (U.showSection[U.showSwitchNumber][3] = !0), o.value.shouldShowCommunicationPanel = !0, T) {
|
|
2961
3036
|
const {
|
|
2962
|
-
selectedCommand:
|
|
3037
|
+
selectedCommand: H,
|
|
2963
3038
|
selectedForm: Z
|
|
2964
|
-
} =
|
|
3039
|
+
} = T, ae = {
|
|
2965
3040
|
formId: (Z == null ? void 0 : Z.id) || "",
|
|
2966
3041
|
formCode: (Z == null ? void 0 : Z.code) || "",
|
|
2967
3042
|
externalContainerId: (Z == null ? void 0 : Z.containerId) || "",
|
|
2968
|
-
commandCode: (
|
|
2969
|
-
commandViewmodelId: (
|
|
3043
|
+
commandCode: (H == null ? void 0 : H.code) || "",
|
|
3044
|
+
commandViewmodelId: (H == null ? void 0 : H.viewmodelId) || ""
|
|
2970
3045
|
};
|
|
2971
3046
|
ne(ae);
|
|
2972
3047
|
}
|
|
2973
3048
|
}
|
|
2974
3049
|
function Te() {
|
|
2975
|
-
const
|
|
2976
|
-
|
|
3050
|
+
const T = o.value.showSwitch[0];
|
|
3051
|
+
T.showSwitchNumber = 2, T.showSection[T.showSwitchNumber][2] = !1, T.showSection[T.showSwitchNumber][3] = !0, q.value = !1, o.value.communication && o.value.communication.length > 0 && (o.value.shouldShowCommunicationPanel = !0), N(!1, null);
|
|
2977
3052
|
}
|
|
2978
3053
|
function ke() {
|
|
2979
|
-
return n(
|
|
2980
|
-
controllers:
|
|
3054
|
+
return n(Nt, {
|
|
3055
|
+
controllers: S.value,
|
|
2981
3056
|
sourceCommunication: e.sourceCommunication,
|
|
2982
3057
|
onClose: J,
|
|
2983
|
-
onSelectMethod:
|
|
3058
|
+
onSelectMethod: I,
|
|
2984
3059
|
onNewFunctionChanged: () => Q(),
|
|
2985
3060
|
onAddCommunication: ce,
|
|
2986
3061
|
haveBoundCommand: e.haveBoundCommand,
|
|
2987
3062
|
iteractionDisplayOrder: e.displayOrder,
|
|
2988
3063
|
onSelectBoundMethod: Te,
|
|
2989
|
-
event:
|
|
3064
|
+
event: o.value.event
|
|
2990
3065
|
}, null);
|
|
2991
3066
|
}
|
|
2992
3067
|
function Ae() {
|
|
2993
|
-
const
|
|
2994
|
-
|
|
3068
|
+
const T = o.value.showSwitch[0];
|
|
3069
|
+
T.showSection[T.showSwitchNumber][3] = !1;
|
|
2995
3070
|
}
|
|
2996
|
-
function Oe(
|
|
2997
|
-
|
|
3071
|
+
function Oe(T) {
|
|
3072
|
+
o.value.command = W(T), N(!1, null);
|
|
2998
3073
|
}
|
|
2999
|
-
function $e(
|
|
3000
|
-
|
|
3074
|
+
function $e(T) {
|
|
3075
|
+
T.componentLists = R(), w(T), o.value.command = W(T), N(!1, null);
|
|
3001
3076
|
}
|
|
3002
|
-
function De(
|
|
3003
|
-
var
|
|
3077
|
+
function De(T) {
|
|
3078
|
+
var _;
|
|
3004
3079
|
const {
|
|
3005
3080
|
controller: U
|
|
3006
|
-
} =
|
|
3007
|
-
U.isCommon || (
|
|
3008
|
-
...
|
|
3009
|
-
...
|
|
3081
|
+
} = o.value;
|
|
3082
|
+
U.isCommon || (_ = e.viewSourceHandle) == null || _.call(e, {
|
|
3083
|
+
...T,
|
|
3084
|
+
...o.value
|
|
3010
3085
|
});
|
|
3011
3086
|
}
|
|
3012
3087
|
function Re() {
|
|
3013
|
-
|
|
3088
|
+
o.value.command = null, N(!1, null);
|
|
3014
3089
|
}
|
|
3015
3090
|
function je() {
|
|
3016
|
-
return n(
|
|
3017
|
-
command:
|
|
3018
|
-
controller:
|
|
3019
|
-
showParameter:
|
|
3020
|
-
showDeleteIcon:
|
|
3091
|
+
return n(Mt, {
|
|
3092
|
+
command: o.value.command,
|
|
3093
|
+
controller: o.value.controller,
|
|
3094
|
+
showParameter: q.value,
|
|
3095
|
+
showDeleteIcon: o.value.communication && o.value.communication.length > 0,
|
|
3021
3096
|
onConfirm: () => Ae(),
|
|
3022
|
-
onChange: (
|
|
3023
|
-
onTargetChange: (
|
|
3024
|
-
onViewSource: (
|
|
3097
|
+
onChange: (T) => Oe(T),
|
|
3098
|
+
onTargetChange: (T) => $e(T),
|
|
3099
|
+
onViewSource: (T) => De(T),
|
|
3025
3100
|
onDeleteCommand: Re
|
|
3026
3101
|
}, null);
|
|
3027
3102
|
}
|
|
3028
|
-
function Ue(
|
|
3029
|
-
|
|
3103
|
+
function Ue(T, U) {
|
|
3104
|
+
o.value.communication && o.value.communication.length > U && (o.value.communication[U] = T, N(!1, null));
|
|
3030
3105
|
}
|
|
3031
|
-
function qe(
|
|
3032
|
-
var
|
|
3033
|
-
|
|
3106
|
+
function qe(T, U) {
|
|
3107
|
+
var _;
|
|
3108
|
+
o.value.communication && o.value.communication.length > U && (o.value.communication.splice(U, 1), l(T.id), o.value.communication.length === 0 && !((_ = o.value.command) != null && _.id) ? y.emit("delete", e.displayOrder) : N(!1, null));
|
|
3034
3109
|
}
|
|
3035
|
-
function Se(
|
|
3110
|
+
function Se(T, U) {
|
|
3036
3111
|
const {
|
|
3037
|
-
source:
|
|
3038
|
-
target:
|
|
3039
|
-
} =
|
|
3040
|
-
ne(
|
|
3041
|
-
}
|
|
3042
|
-
function Fe(
|
|
3043
|
-
return n(
|
|
3044
|
-
ref: (
|
|
3045
|
-
|
|
3112
|
+
source: _,
|
|
3113
|
+
target: H
|
|
3114
|
+
} = T;
|
|
3115
|
+
ne(H, _), o.value.shouldShowCommunicationPanel = !0;
|
|
3116
|
+
}
|
|
3117
|
+
function Fe(T, U) {
|
|
3118
|
+
return n(Rt, {
|
|
3119
|
+
ref: (_) => {
|
|
3120
|
+
_ && (F.value[U] = _);
|
|
3046
3121
|
},
|
|
3047
|
-
communication:
|
|
3048
|
-
event:
|
|
3122
|
+
communication: T,
|
|
3123
|
+
event: o.value.event.label,
|
|
3049
3124
|
sourceCommunication: e.sourceCommunication,
|
|
3050
|
-
onChanged: (
|
|
3051
|
-
onDeleteCommand: () => qe(
|
|
3052
|
-
onAddCommand: (
|
|
3125
|
+
onChanged: (_) => Ue(_, U),
|
|
3126
|
+
onDeleteCommand: () => qe(T, U),
|
|
3127
|
+
onAddCommand: (_) => Se(_)
|
|
3053
3128
|
}, null);
|
|
3054
3129
|
}
|
|
3055
|
-
function ye(
|
|
3130
|
+
function ye(T) {
|
|
3056
3131
|
const {
|
|
3057
3132
|
targetForm: U,
|
|
3058
|
-
targetCommand:
|
|
3059
|
-
} =
|
|
3133
|
+
targetCommand: _
|
|
3134
|
+
} = T, H = {
|
|
3060
3135
|
formId: U.id,
|
|
3061
3136
|
formCode: U.code,
|
|
3062
3137
|
externalContainerId: U.containerId,
|
|
3063
|
-
commandCode:
|
|
3064
|
-
commandViewmodelId:
|
|
3138
|
+
commandCode: _.code,
|
|
3139
|
+
commandViewmodelId: _.viewmodelId
|
|
3065
3140
|
};
|
|
3066
|
-
ne(
|
|
3141
|
+
ne(H, E.value), o.value.shouldShowCommunicationPanel = !0, $.value = !1, o.value.needSelectCommunicationCommand = !1;
|
|
3067
3142
|
}
|
|
3068
3143
|
function Ee() {
|
|
3069
|
-
return n(
|
|
3144
|
+
return n(jt, {
|
|
3070
3145
|
sourceCommunication: e.sourceCommunication,
|
|
3071
|
-
onSelectCommand: (
|
|
3146
|
+
onSelectCommand: (T) => ye(T)
|
|
3072
3147
|
}, null);
|
|
3073
3148
|
}
|
|
3074
3149
|
return () => n("div", {
|
|
@@ -3077,76 +3152,76 @@ ${O} (${o})`;
|
|
|
3077
3152
|
class: "f-page-events-editor-bound-event"
|
|
3078
3153
|
}, [n("div", {
|
|
3079
3154
|
class: "f-page-events-editor-bound-event-name",
|
|
3080
|
-
title:
|
|
3155
|
+
title: t.value
|
|
3081
3156
|
}, [i.value]), !r.value && n("div", {
|
|
3082
3157
|
style: "float:right;margin:5px;"
|
|
3083
3158
|
}, [n("div", {
|
|
3084
|
-
class:
|
|
3159
|
+
class: s.value,
|
|
3085
3160
|
style: "font-size: 10px;",
|
|
3086
|
-
onClick:
|
|
3161
|
+
onClick: O
|
|
3087
3162
|
}, null)]), n("div", {
|
|
3088
3163
|
class: "f-icon f-icon-yxs_delete",
|
|
3089
3164
|
style: "font-size: 13px;float: right; margin:8px;",
|
|
3090
|
-
onClick:
|
|
3165
|
+
onClick: k
|
|
3091
3166
|
}, null), !r.value && n("div", {
|
|
3092
3167
|
class: "f-icon f-icon-home-add",
|
|
3093
3168
|
style: "float:right; font-size: 10px; margin:8px;",
|
|
3094
|
-
onClick:
|
|
3169
|
+
onClick: G
|
|
3095
3170
|
}, null), r.value && n("div", {
|
|
3096
3171
|
class: "f-icon f-icon-flowline-warning text-danger text-tip",
|
|
3097
3172
|
title: "源表单或事件已失效,请删除",
|
|
3098
3173
|
style: "float:right; font-size: 13px; margin:8px;"
|
|
3099
|
-
}, null)]),
|
|
3174
|
+
}, null)]), z.value && ke(), $.value && Ee(), P.value && je(), !r.value && o.value.shouldShowCommunicationPanel && o.value.communication && o.value.communication.length > 0 ? o.value.communication.map((T, U) => Fe(T, U)) : ""]);
|
|
3100
3175
|
}
|
|
3101
3176
|
});
|
|
3102
|
-
function
|
|
3103
|
-
const { interactions:
|
|
3104
|
-
function
|
|
3105
|
-
|
|
3177
|
+
function qt(e, y, g) {
|
|
3178
|
+
const { interactions: u } = y, { setComponentLists: a } = cn(), f = b(e.value.internalCommandList);
|
|
3179
|
+
function N(i) {
|
|
3180
|
+
u.value[i].showSwitch = [], u.value[i].showSwitch.push(W({
|
|
3106
3181
|
// 存储所有的展示设定
|
|
3107
3182
|
showSection: [[!1, !1, !1, !1, !1], [!1, !1, !0, !1, !1], [!1, !0, !1, !0, !1]],
|
|
3108
3183
|
// 展示哪个部分
|
|
3109
3184
|
showSwitchNumber: 2
|
|
3110
|
-
})),
|
|
3185
|
+
})), u.value = W(u.value);
|
|
3111
3186
|
}
|
|
3112
|
-
function
|
|
3187
|
+
function C(i) {
|
|
3113
3188
|
var r;
|
|
3114
|
-
const
|
|
3115
|
-
return (r = e.value.newController) == null || r.forEach((
|
|
3116
|
-
i.forEach((
|
|
3117
|
-
|
|
3189
|
+
const t = [];
|
|
3190
|
+
return (r = e.value.newController) == null || r.forEach((E) => {
|
|
3191
|
+
i.forEach((F) => {
|
|
3192
|
+
E.Code === F.controller.label && t.push(W(E));
|
|
3118
3193
|
});
|
|
3119
|
-
}),
|
|
3194
|
+
}), t;
|
|
3120
3195
|
}
|
|
3121
|
-
function
|
|
3196
|
+
function A(i) {
|
|
3122
3197
|
if (e.value.repititionCommand.length !== 0)
|
|
3123
|
-
return e.value.repititionCommand.forEach((
|
|
3198
|
+
return e.value.repititionCommand.forEach((t) => {
|
|
3124
3199
|
i.forEach((r) => {
|
|
3125
|
-
var
|
|
3126
|
-
if (
|
|
3127
|
-
|
|
3128
|
-
const
|
|
3129
|
-
(
|
|
3130
|
-
|
|
3131
|
-
id:
|
|
3132
|
-
viewModelId:
|
|
3133
|
-
} :
|
|
3200
|
+
var E, F, j, s;
|
|
3201
|
+
if (t.command.id === ((E = r.command) == null ? void 0 : E.id)) {
|
|
3202
|
+
t.command.params = W((F = r.command) == null ? void 0 : F.property);
|
|
3203
|
+
const k = (j = r.command) == null ? void 0 : j.targetComponent;
|
|
3204
|
+
(s = r.command) == null || s.componentLists.forEach((O) => {
|
|
3205
|
+
t.targetComponent = O.componentId === k ? {
|
|
3206
|
+
id: O.componentId,
|
|
3207
|
+
viewModelId: O.viewModelId
|
|
3208
|
+
} : t.targetComponent;
|
|
3134
3209
|
});
|
|
3135
3210
|
}
|
|
3136
3211
|
});
|
|
3137
3212
|
}), e.value.repititionCommand;
|
|
3138
3213
|
}
|
|
3139
|
-
function
|
|
3140
|
-
var
|
|
3141
|
-
e.value.newFuncEvents =
|
|
3142
|
-
const r = [],
|
|
3143
|
-
|
|
3144
|
-
const
|
|
3145
|
-
r.push(W(
|
|
3214
|
+
function R(i = !1, t = null) {
|
|
3215
|
+
var s;
|
|
3216
|
+
e.value.newFuncEvents = t ? W(t) : null, e.value.isAddControllerMethod = i;
|
|
3217
|
+
const r = [], E = W(e.value.internalCommandList);
|
|
3218
|
+
u.value.map((k) => {
|
|
3219
|
+
const O = W(k.controller), G = W(k.command), J = W(k.event), oe = W(k.communication), I = { controller: O, command: G, boundEvents: J, communication: oe };
|
|
3220
|
+
r.push(W(I));
|
|
3146
3221
|
});
|
|
3147
|
-
const
|
|
3148
|
-
e.value.repititionCommand && (e.value.repititionCommand =
|
|
3149
|
-
const
|
|
3222
|
+
const F = (s = e.value.newController) != null && s.length && r.length ? W(C(r)) : [];
|
|
3223
|
+
e.value.repititionCommand && (e.value.repititionCommand = A(r));
|
|
3224
|
+
const j = {
|
|
3150
3225
|
/** 拼接名称时的前缀 */
|
|
3151
3226
|
viewModelId: e.value.viewModelId,
|
|
3152
3227
|
/** 视图模型绑定的事件下的方法列表 */
|
|
@@ -3156,7 +3231,7 @@ function Rt(e, E, h) {
|
|
|
3156
3231
|
/** 可选择的绑定事件列表 */
|
|
3157
3232
|
events: W(e.value.events),
|
|
3158
3233
|
/** 内置构件列表; */
|
|
3159
|
-
internalCommandList: W(
|
|
3234
|
+
internalCommandList: W(E),
|
|
3160
3235
|
/** 所有可选的组件 */
|
|
3161
3236
|
componentLists: [],
|
|
3162
3237
|
/** 接收formBasicService.formMetaBasicInfo.relativePath */
|
|
@@ -3164,7 +3239,7 @@ function Rt(e, E, h) {
|
|
|
3164
3239
|
/** 接收formBasicService.envType */
|
|
3165
3240
|
envType: e.value.envType,
|
|
3166
3241
|
/** 初始为空,用于存储用户点击「导入新方法」的控制器值 */
|
|
3167
|
-
newController: W(
|
|
3242
|
+
newController: W(F),
|
|
3168
3243
|
/** 切换到代码视图标识 */
|
|
3169
3244
|
isAddControllerMethod: e.value.isAddControllerMethod,
|
|
3170
3245
|
/** 用户选择「已有方法」 */
|
|
@@ -3174,79 +3249,79 @@ function Rt(e, E, h) {
|
|
|
3174
3249
|
/** 新增方法的对应事件 */
|
|
3175
3250
|
newFuncEvents: e.value.newFuncEvents
|
|
3176
3251
|
};
|
|
3177
|
-
|
|
3252
|
+
g.emit("savedCommandListChanged", j);
|
|
3178
3253
|
}
|
|
3179
|
-
function
|
|
3254
|
+
function w(i) {
|
|
3180
3255
|
i.showSection[i.showSwitchNumber][2] = !0;
|
|
3181
3256
|
}
|
|
3182
|
-
function
|
|
3257
|
+
function M(i) {
|
|
3183
3258
|
i.showSection[i.showSwitchNumber][2] = !1;
|
|
3184
3259
|
}
|
|
3185
|
-
function
|
|
3260
|
+
function p(i) {
|
|
3186
3261
|
i.showSection[i.showSwitchNumber][3] = !0;
|
|
3187
3262
|
}
|
|
3188
3263
|
function l(i) {
|
|
3189
3264
|
i.showSection[i.showSwitchNumber][3] = !1;
|
|
3190
3265
|
}
|
|
3191
|
-
function
|
|
3192
|
-
i.showSection[i.showSwitchNumber][2] ? (
|
|
3266
|
+
function h(i, t = !1) {
|
|
3267
|
+
i.showSection[i.showSwitchNumber][2] ? (M(i), t && p(i)) : (w(i), t && l(i));
|
|
3193
3268
|
}
|
|
3194
|
-
function
|
|
3269
|
+
function v() {
|
|
3195
3270
|
return e.value.componentLists;
|
|
3196
3271
|
}
|
|
3197
|
-
function
|
|
3198
|
-
e.value.viewModel.forEach((
|
|
3199
|
-
for (let r = 0; r <
|
|
3200
|
-
|
|
3272
|
+
function d(i) {
|
|
3273
|
+
e.value.viewModel.forEach((t) => {
|
|
3274
|
+
for (let r = 0; r < t.controllerList.length; r++)
|
|
3275
|
+
t.controllerList[r].label === i.label && (t.controllerList[r] = W(i));
|
|
3201
3276
|
});
|
|
3202
3277
|
}
|
|
3203
|
-
function
|
|
3278
|
+
function c() {
|
|
3204
3279
|
return e.value.viewModelId;
|
|
3205
3280
|
}
|
|
3206
|
-
function
|
|
3281
|
+
function m() {
|
|
3207
3282
|
return e.value.getEventPath ? e.value.getEventPath().viewModelDisplay : [];
|
|
3208
3283
|
}
|
|
3209
|
-
function
|
|
3210
|
-
return a(i,
|
|
3284
|
+
function S(i, t) {
|
|
3285
|
+
return a(i, t, e.value);
|
|
3211
3286
|
}
|
|
3212
|
-
function
|
|
3287
|
+
function o(i) {
|
|
3213
3288
|
e.value.newController = e.value.newController || [], e.value.newController.push(W(i));
|
|
3214
|
-
const
|
|
3215
|
-
for (let r = 0; r <
|
|
3216
|
-
for (let
|
|
3217
|
-
|
|
3289
|
+
const t = e.value.newController;
|
|
3290
|
+
for (let r = 0; r < t.length; r++)
|
|
3291
|
+
for (let E = r + 1; E < t.length; E++)
|
|
3292
|
+
t[r].Id === t[E].Id && (t.splice(E, 1), E--);
|
|
3218
3293
|
}
|
|
3219
|
-
function
|
|
3220
|
-
let
|
|
3294
|
+
function q(i) {
|
|
3295
|
+
let t = !1;
|
|
3221
3296
|
return e.value.internalCommandList.forEach((r) => {
|
|
3222
3297
|
if (r.controllerName.label === i.controllerName.label) {
|
|
3223
|
-
|
|
3298
|
+
t = !0;
|
|
3224
3299
|
return;
|
|
3225
3300
|
}
|
|
3226
|
-
}),
|
|
3301
|
+
}), t || e.value.internalCommandList.push(i), t;
|
|
3227
3302
|
}
|
|
3228
|
-
function
|
|
3303
|
+
function z() {
|
|
3229
3304
|
var i;
|
|
3230
3305
|
if ((i = e.value) != null && i.getEventPath)
|
|
3231
3306
|
return e.value.getEventPath();
|
|
3232
3307
|
}
|
|
3233
|
-
function D(i,
|
|
3234
|
-
|
|
3235
|
-
var
|
|
3236
|
-
((
|
|
3308
|
+
function D(i, t) {
|
|
3309
|
+
u.value.forEach((r) => {
|
|
3310
|
+
var E;
|
|
3311
|
+
((E = r.command) == null ? void 0 : E.label) === t.label && (r.command = t);
|
|
3237
3312
|
});
|
|
3238
3313
|
}
|
|
3239
|
-
function
|
|
3240
|
-
D(i,
|
|
3314
|
+
function P(i, t) {
|
|
3315
|
+
D(i, t);
|
|
3241
3316
|
}
|
|
3242
|
-
function
|
|
3243
|
-
const r =
|
|
3317
|
+
function $(i, t) {
|
|
3318
|
+
const r = u.value[t];
|
|
3244
3319
|
i.event = i.event.label ? i.event : W(r.event);
|
|
3245
|
-
let
|
|
3246
|
-
e.value.repititionCommand || (e.value.repititionCommand = []), e.value.repititionCommand.forEach((
|
|
3247
|
-
|
|
3248
|
-
}),
|
|
3249
|
-
let
|
|
3320
|
+
let E = !1;
|
|
3321
|
+
e.value.repititionCommand || (e.value.repititionCommand = []), e.value.repititionCommand.forEach((s) => {
|
|
3322
|
+
s.command.id === i.command.id && s.event.label === i.event.label && s.targetComponent.viewModelId === i.targetComponent.viewModelId && (E = !0), s.command.id === i.command.id && s.event.label === i.event.label && s.targetComponent.viewModelId !== i.targetComponent.viewModelId && (s = W(i));
|
|
3323
|
+
}), E || e.value.repititionCommand.push(W(i));
|
|
3324
|
+
let F = {
|
|
3250
3325
|
id: i.command.id,
|
|
3251
3326
|
label: i.command.label,
|
|
3252
3327
|
name: i.command.name,
|
|
@@ -3261,100 +3336,100 @@ function Rt(e, E, h) {
|
|
|
3261
3336
|
isNewGenerated: i.command.isNewGenerated || !1,
|
|
3262
3337
|
isInvalid: !1
|
|
3263
3338
|
};
|
|
3264
|
-
const
|
|
3339
|
+
const j = {
|
|
3265
3340
|
controllerName: i.controller
|
|
3266
3341
|
};
|
|
3267
|
-
|
|
3342
|
+
F = a(j, F, e.value), r.command = W(F), r.controller = W(i.controller), P(r, F);
|
|
3268
3343
|
}
|
|
3269
3344
|
return {
|
|
3270
|
-
controllers:
|
|
3271
|
-
onClosed:
|
|
3272
|
-
emitFinalState:
|
|
3273
|
-
toggleSelectingMethod:
|
|
3274
|
-
getViewModeId:
|
|
3275
|
-
getComponentList:
|
|
3276
|
-
updateTarget:
|
|
3277
|
-
updateCommandHasPath:
|
|
3278
|
-
addNewController:
|
|
3279
|
-
checkIfNewControllerExists:
|
|
3280
|
-
getMethodsOnViewModel:
|
|
3281
|
-
getEventPath:
|
|
3282
|
-
selectBoundCommand:
|
|
3345
|
+
controllers: f,
|
|
3346
|
+
onClosed: N,
|
|
3347
|
+
emitFinalState: R,
|
|
3348
|
+
toggleSelectingMethod: h,
|
|
3349
|
+
getViewModeId: c,
|
|
3350
|
+
getComponentList: v,
|
|
3351
|
+
updateTarget: d,
|
|
3352
|
+
updateCommandHasPath: S,
|
|
3353
|
+
addNewController: o,
|
|
3354
|
+
checkIfNewControllerExists: q,
|
|
3355
|
+
getMethodsOnViewModel: m,
|
|
3356
|
+
getEventPath: z,
|
|
3357
|
+
selectBoundCommand: $
|
|
3283
3358
|
};
|
|
3284
3359
|
}
|
|
3285
3360
|
const ze = /* @__PURE__ */ te({
|
|
3286
3361
|
name: "FEventsEditor",
|
|
3287
|
-
props:
|
|
3362
|
+
props: rn,
|
|
3288
3363
|
emits: ["savedCommandListChanged"],
|
|
3289
|
-
setup(e,
|
|
3290
|
-
const
|
|
3291
|
-
loadEvents:
|
|
3292
|
-
resetBoundEvents:
|
|
3293
|
-
} = a,
|
|
3294
|
-
addNewInteraction:
|
|
3295
|
-
deleteInteracton:
|
|
3296
|
-
interactions:
|
|
3297
|
-
loadInteractions:
|
|
3298
|
-
} =
|
|
3299
|
-
emitFinalState:
|
|
3300
|
-
controllers:
|
|
3364
|
+
setup(e, y) {
|
|
3365
|
+
const g = b(e.initialData), u = X("designer-host-service"), a = ft(g), {
|
|
3366
|
+
loadEvents: f,
|
|
3367
|
+
resetBoundEvents: N
|
|
3368
|
+
} = a, C = X("useFormSchema"), A = mt(C, a), {
|
|
3369
|
+
addNewInteraction: R,
|
|
3370
|
+
deleteInteracton: w,
|
|
3371
|
+
interactions: M,
|
|
3372
|
+
loadInteractions: p
|
|
3373
|
+
} = A, l = qt(g, A, y), {
|
|
3374
|
+
emitFinalState: h,
|
|
3375
|
+
controllers: v
|
|
3301
3376
|
} = l;
|
|
3302
|
-
|
|
3303
|
-
function
|
|
3304
|
-
|
|
3377
|
+
Ie("useEventsComposition", a), Ie("useInteractionCompostion", A), Ie("useMethodsComposition", l);
|
|
3378
|
+
function d() {
|
|
3379
|
+
g.value.isAddControllerMethod = !1;
|
|
3305
3380
|
}
|
|
3306
|
-
function
|
|
3307
|
-
var
|
|
3308
|
-
const D = (
|
|
3381
|
+
function c() {
|
|
3382
|
+
var P, $;
|
|
3383
|
+
const D = ($ = (P = g.value) == null ? void 0 : P.sourceCommunication) == null ? void 0 : $.externalContainerId;
|
|
3309
3384
|
if (D) {
|
|
3310
3385
|
const {
|
|
3311
3386
|
assembleSourceOutline: i
|
|
3312
|
-
} = be(
|
|
3313
|
-
|
|
3387
|
+
} = be(C), t = i(u, y, D);
|
|
3388
|
+
Ie("sourceOutlineData", t);
|
|
3314
3389
|
}
|
|
3315
3390
|
}
|
|
3316
3391
|
he(() => {
|
|
3317
|
-
|
|
3392
|
+
d(), N(), f(), p(), c();
|
|
3318
3393
|
});
|
|
3319
|
-
function
|
|
3320
|
-
|
|
3321
|
-
}
|
|
3322
|
-
function
|
|
3323
|
-
const
|
|
3324
|
-
let
|
|
3325
|
-
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ?
|
|
3326
|
-
key: `${
|
|
3327
|
-
controllers:
|
|
3394
|
+
function m(D) {
|
|
3395
|
+
w(D), h(!1, null);
|
|
3396
|
+
}
|
|
3397
|
+
function S(D, P) {
|
|
3398
|
+
const $ = D.showSwitch[0], i = $.showSection[$.showSwitchNumber][3];
|
|
3399
|
+
let t = !1;
|
|
3400
|
+
return e.initialData.getEventPath && (e.initialData.getEventPath().actionWithPath.length !== 0 ? t = !0 : t = !1), n(Ut, {
|
|
3401
|
+
key: `${P}`,
|
|
3402
|
+
controllers: v.value,
|
|
3328
3403
|
interaction: D,
|
|
3329
|
-
displayOrder:
|
|
3404
|
+
displayOrder: P,
|
|
3330
3405
|
collapsed: i,
|
|
3331
|
-
onDelete:
|
|
3332
|
-
sourceCommunication:
|
|
3406
|
+
onDelete: m,
|
|
3407
|
+
sourceCommunication: g.value.sourceCommunication,
|
|
3333
3408
|
viewSourceHandle: e.viewSourceHandle,
|
|
3334
|
-
haveBoundCommand:
|
|
3409
|
+
haveBoundCommand: t
|
|
3335
3410
|
}, null);
|
|
3336
3411
|
}
|
|
3337
|
-
function
|
|
3412
|
+
function o() {
|
|
3338
3413
|
var D;
|
|
3339
|
-
return (D =
|
|
3340
|
-
var
|
|
3341
|
-
let i =
|
|
3342
|
-
return (
|
|
3414
|
+
return (D = M.value) == null ? void 0 : D.map((P, $) => {
|
|
3415
|
+
var t;
|
|
3416
|
+
let i = P.event.label;
|
|
3417
|
+
return (t = P.communication) != null && t.length && (i = `${P.communication.map((E) => E.id).join("-")}_${i}`), n("div", {
|
|
3343
3418
|
class: "events-display-order",
|
|
3344
|
-
key: `${i}_${
|
|
3345
|
-
}, [
|
|
3419
|
+
key: `${i}_${$}`
|
|
3420
|
+
}, [S(P, $)]);
|
|
3346
3421
|
});
|
|
3347
3422
|
}
|
|
3348
|
-
function
|
|
3349
|
-
|
|
3423
|
+
function q(D) {
|
|
3424
|
+
R(D);
|
|
3350
3425
|
}
|
|
3351
|
-
function
|
|
3352
|
-
const
|
|
3353
|
-
if (
|
|
3354
|
-
var
|
|
3355
|
-
if ((
|
|
3356
|
-
var
|
|
3357
|
-
return ((
|
|
3426
|
+
function z(D) {
|
|
3427
|
+
const P = D.source;
|
|
3428
|
+
if (M.value.find((i) => {
|
|
3429
|
+
var t;
|
|
3430
|
+
if ((t = i.communication) != null && t.length && i.communication.find((E) => {
|
|
3431
|
+
var F, j, s;
|
|
3432
|
+
return ((F = E.source) == null ? void 0 : F.formId) === P.formId && ((j = E.source) == null ? void 0 : j.componentId) === P.componentId && ((s = E.source) == null ? void 0 : s.event) === P.event;
|
|
3358
3433
|
}))
|
|
3359
3434
|
return !0;
|
|
3360
3435
|
})) {
|
|
@@ -3364,7 +3439,7 @@ const ze = /* @__PURE__ */ te({
|
|
|
3364
3439
|
});
|
|
3365
3440
|
return;
|
|
3366
3441
|
}
|
|
3367
|
-
|
|
3442
|
+
R({
|
|
3368
3443
|
label: "onCommunication",
|
|
3369
3444
|
name: "组件通讯"
|
|
3370
3445
|
}, D);
|
|
@@ -3373,23 +3448,23 @@ const ze = /* @__PURE__ */ te({
|
|
|
3373
3448
|
class: "f-page-events-editor"
|
|
3374
3449
|
}, [n("div", {
|
|
3375
3450
|
class: "f-page-events-editor-content"
|
|
3376
|
-
}, [n(
|
|
3377
|
-
sourceCommunication:
|
|
3378
|
-
onClickEventItem:
|
|
3379
|
-
onSelectSourceControl:
|
|
3380
|
-
}, null),
|
|
3451
|
+
}, [n(pt, {
|
|
3452
|
+
sourceCommunication: g.value.sourceCommunication,
|
|
3453
|
+
onClickEventItem: q,
|
|
3454
|
+
onSelectSourceControl: z
|
|
3455
|
+
}, null), o()])]);
|
|
3381
3456
|
}
|
|
3382
|
-
}),
|
|
3457
|
+
}), Nl = {
|
|
3383
3458
|
install(e) {
|
|
3384
3459
|
e.component(ze.name, ze);
|
|
3385
3460
|
},
|
|
3386
|
-
register(e,
|
|
3387
|
-
e["events-editor"] = ze,
|
|
3461
|
+
register(e, y, g, u) {
|
|
3462
|
+
e["events-editor"] = ze, y["events-editor"] = st;
|
|
3388
3463
|
}
|
|
3389
3464
|
};
|
|
3390
3465
|
export {
|
|
3391
3466
|
ze as FEventsEditor,
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3467
|
+
Nl as default,
|
|
3468
|
+
rn as eventsEditorProps,
|
|
3469
|
+
st as propsResolver
|
|
3395
3470
|
};
|