@web-utils/form-ui 1.0.0-beta72 → 1.0.0-beta74
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/address-input/index.mjs +1 -1
- package/affix/index.d.ts +0 -2
- package/affix/index.mjs +2 -3
- package/capsule-tab/index.mjs +1 -1
- package/card/index.mjs +15 -16
- package/chunks/-fXBgN9b2.mjs +37 -0
- package/chunks/{-UHCmZBh.mjs → -yfgKY3g.mjs} +1 -1
- package/chunks/{Ciy3EJGG2.mjs → -zgWD713.mjs} +44 -45
- package/chunks/{qFn9SqfB2.mjs → 7_9hAeqb.mjs} +72 -73
- package/chunks/{CidE_6Q52.mjs → 8A7LSgb4.mjs} +26 -27
- package/chunks/B0BOjeph2.mjs +108 -0
- package/chunks/BE4V5Vf5.mjs +133 -0
- package/chunks/{Diidem-9.mjs → BGJjAw5E.mjs} +1 -1
- package/chunks/{BJNI7n9Z.mjs → BH7VEktl.mjs} +19 -19
- package/chunks/{BrJzSp9f.mjs → BI6kCG2j2.mjs} +2 -2
- package/chunks/BctSGDgW2.mjs +29 -0
- package/chunks/BhIWiH5R.mjs +661 -0
- package/chunks/BhzlH7Az.mjs +90 -0
- package/chunks/{DWjZMJ1e2.mjs → Bj0kgDOA.mjs} +132 -133
- package/chunks/{DmEOzzaP2.mjs → BrelfRGo2.mjs} +14 -14
- package/chunks/{X6BItEt1.mjs → BsqIRxSS.mjs} +6 -7
- package/chunks/{Bnm0osro.mjs → Byy1rvPO.mjs} +13 -16
- package/chunks/{iPHgzcZ0.mjs → C6mb7Nru2.mjs} +4 -4
- package/chunks/{Bhkk9TmJ2.mjs → CFoSvMJ-2.mjs} +1 -1
- package/chunks/{Vrr45MGv.mjs → CO3taG7t2.mjs} +1 -1
- package/chunks/{QAHALDuF2.mjs → CWBRpkHy.mjs} +138 -139
- package/chunks/Ccxbv7uz2.mjs +34 -0
- package/chunks/Ce4tNNzg2.mjs +63 -0
- package/chunks/{SEQG09ut.mjs → CelJ2L8A2.mjs} +2 -2
- package/chunks/CjYOitzM2.mjs +31 -0
- package/chunks/Cknuquqx.mjs +32 -0
- package/chunks/ClVh1Lek.mjs +130 -0
- package/chunks/CwyebsNL2.mjs +39 -0
- package/chunks/{CJl5ZiUq2.mjs → D4Pd8rZi.mjs} +28 -30
- package/chunks/D6YM84Pf2.mjs +29 -0
- package/chunks/{DlROUHPJ2.mjs → DTq5QLoT.mjs} +43 -43
- package/chunks/{5oaTzHT-2.mjs → DVMfVn-M.mjs} +14 -13
- package/chunks/DVdQHb_v.mjs +50 -0
- package/chunks/{YS7hFnUB2.mjs → Daa7nl7U.mjs} +19 -19
- package/chunks/{D6TSUCGL.mjs → Dh_BQpvC2.mjs} +2 -2
- package/chunks/DizOY5i8.mjs +69 -0
- package/chunks/{Czi7_tAe.mjs → DjaV6_cg2.mjs} +2 -2
- package/chunks/{CKWgRCN52.mjs → Dm3gQGoV2.mjs} +2 -2
- package/chunks/DqW9QtF3.mjs +68 -0
- package/chunks/{CKbOqPFm2.mjs → DqWJCka8.mjs} +9 -9
- package/chunks/{CIerTjpq2.mjs → DrWUdRj32.mjs} +2 -2
- package/chunks/{BrSZZNRc.mjs → DucSg7Mt.mjs} +70 -72
- package/chunks/Dv7YRB2U2.mjs +25 -0
- package/chunks/DyLQsqWJ.mjs +61 -0
- package/chunks/HsHwYW1a.mjs +99 -0
- package/chunks/KDVLIvaS.mjs +30 -0
- package/chunks/{BHwRv4F0.mjs → Lkg7bYLD2.mjs} +73 -74
- package/chunks/OBTStTaa.mjs +179 -0
- package/chunks/{DSnICEQN.mjs → Opn85Hlx2.mjs} +1 -1
- package/chunks/{C9nRNgwm2.mjs → QTy8g5MS.mjs} +589 -763
- package/chunks/{CsA_9MVv.mjs → YdNYH25C.mjs} +1 -1
- package/chunks/_q6JzJYp.mjs +773 -0
- package/chunks/{BiYsC43_.mjs → gTgPZrgY2.mjs} +119 -120
- package/chunks/{D2FNAA1a.mjs → jsgk7Yse2.mjs} +2 -2
- package/chunks/nL59ZuIk.mjs +58 -0
- package/chunks/{BJuAz5lX2.mjs → sWVkgzQt2.mjs} +2 -2
- package/chunks/{DN2qkQvd.mjs → tjwOOiNr2.mjs} +31 -32
- package/code-mirror-editor/index.mjs +1 -1
- package/confirm-button/index.mjs +1 -1
- package/confirmable/index.mjs +1 -1
- package/context-menu/index.mjs +1 -1
- package/count-up/index.mjs +1 -1
- package/custom-scrollbar/index.mjs +1 -1
- package/data-box/index.mjs +9 -10
- package/data-card/index.mjs +8 -9
- package/data-card-text/index.mjs +8 -9
- package/data-display/index.mjs +9 -10
- package/data-icons/index.mjs +9 -10
- package/data-imgtext/index.mjs +9 -11
- package/data-operatext/index.mjs +8 -9
- package/data-panel/index.mjs +9 -10
- package/data-pay/index.mjs +10 -12
- package/data-price/index.mjs +8 -9
- package/data-progress/index.mjs +10 -11
- package/data-rotate/index.mjs +9 -10
- package/data-table-picker/index.mjs +11 -12
- package/data-tabs/index.mjs +9 -10
- package/dict-render/index.mjs +1 -1
- package/e-charts/index.mjs +2 -2
- package/easy-popup/index.mjs +1 -1
- package/editable-progress/index.mjs +8 -8
- package/editable-tree/index.mjs +595 -2
- package/editable-tree/style.css +1 -1
- package/element-dialog/index.mjs +1 -1
- package/element-dialog/style.css +1 -1
- package/element-resize-observer/index.mjs +1 -1
- package/flex-box/index.mjs +1 -1
- package/flex-column/index.mjs +1 -1
- package/flex-item/index.mjs +1 -1
- package/flex-row/index.mjs +1 -1
- package/flex-scroller/index.mjs +1 -1
- package/flow-designer/index.mjs +1 -1
- package/flow-designer/style.css +1 -1
- package/flow-viewer/index.mjs +1 -1
- package/form-cascader/index.mjs +1 -1
- package/form-checkbox/index.mjs +1 -1
- package/form-checkbox-group/index.mjs +1 -1
- package/form-checkbox-group/style.css +1 -1
- package/form-date-picker/index.mjs +1 -1
- package/form-holder/index.mjs +1 -1
- package/form-image/index.mjs +1 -1
- package/form-input/index.mjs +1 -1
- package/form-input-cron-expression/index.mjs +1 -1
- package/form-input-email/index.mjs +1 -1
- package/form-input-id-card/index.mjs +1 -1
- package/form-input-number/index.mjs +1 -1
- package/form-input-phone-number/index.mjs +1 -1
- package/form-input-tag/index.mjs +1 -1
- package/form-input-time/index.mjs +1 -1
- package/form-item-group/index.mjs +1 -1
- package/form-item-x/index.mjs +1 -1
- package/form-radio-group/index.mjs +1 -1
- package/form-rate/index.mjs +1 -1
- package/form-row/index.mjs +1 -1
- package/form-select/index.mjs +1 -1
- package/form-slider/index.mjs +1 -1
- package/form-switch/index.mjs +1 -1
- package/form-table/index.mjs +1 -1
- package/form-table-plus/index.mjs +1 -1
- package/form-text/index.mjs +1 -1
- package/form-textarea/index.mjs +1 -1
- package/form-time-select/index.mjs +1 -1
- package/form-tree-select/index.mjs +1 -1
- package/form-tree-select-multiple/index.mjs +1 -1
- package/form-view/index.mjs +3 -3
- package/guide-steps/index.mjs +77 -2
- package/guide-steps/style.css +1 -1
- package/helper/dictionary.mjs +1 -1
- package/helper/input.mjs +1 -1
- package/highlight-j-s/index.mjs +1 -1
- package/iframe-window/index.mjs +1 -1
- package/image-cropper/index.mjs +12 -11
- package/image-preview/index.d.ts +1 -153
- package/image-preview/index.mjs +201 -2
- package/image-preview/style.css +1 -1
- package/image-viewer/index.mjs +1 -1
- package/index.css +1 -1
- package/index.mjs +101 -101
- package/input-number-range/index.mjs +7 -7
- package/keyboard/index.mjs +1 -1
- package/loading-view/index.mjs +1 -1
- package/name-avatar/index.mjs +1 -1
- package/nav-bar/index.mjs +3 -4
- package/package.json +5 -1
- package/page-index/index.mjs +14 -14
- package/page-index-top/index.mjs +12 -12
- package/pageable-table/index.mjs +1 -1
- package/pageable-table/style.css +1 -1
- package/photo-swipe/index.mjs +1 -1
- package/props/col.mjs +1 -1
- package/props/form-item.mjs +1 -1
- package/sign-panel/index.mjs +1 -1
- package/skeleton-panel/index.mjs +3 -3
- package/split-pane/index.mjs +1 -1
- package/sub-table/index.mjs +1 -1
- package/sub-table-plus/index.mjs +1 -1
- package/swiper/index.mjs +2 -2
- package/table-column/index.mjs +1 -1
- package/table-column-def/index.mjs +1 -1
- package/table-view/index.mjs +109 -110
- package/table-view/style.css +1 -1
- package/tag-render/index.mjs +21 -23
- package/text-ellipsis/index.d.ts +1 -1
- package/text-ellipsis/index.mjs +1 -1
- package/toolbar/index.mjs +1 -1
- package/toolbar-button/index.mjs +1 -1
- package/vue-cron/index.mjs +1 -1
- package/vue-tags-input/index.mjs +1 -1
- package/vue-tree-select/index.mjs +1 -1
- package/vue-video-player/index.d.ts +1 -1
- package/vue-video-player/index.mjs +1 -1
- package/watermark/index.mjs +1 -1
- package/web-types.json +1 -1
- package/x-input-tag/index.mjs +47 -50
- package/year-calendar/index.mjs +1 -1
- package/year-calendar/style.css +1 -1
- package/chunks/49634Q2N2.mjs +0 -936
- package/chunks/77cFhiAz.mjs +0 -13
- package/chunks/7JVbVOff2.mjs +0 -46
- package/chunks/B1ATN2my.mjs +0 -26
- package/chunks/B7O8aGqC2.mjs +0 -58
- package/chunks/BBPczt0U.mjs +0 -4
- package/chunks/BCwAowl1.mjs +0 -589
- package/chunks/BDVLN2ly.mjs +0 -105
- package/chunks/BEIlrURf.mjs +0 -251
- package/chunks/BEysX5TF2.mjs +0 -1038
- package/chunks/BHVyaqk0.mjs +0 -736
- package/chunks/BIj6pa8Z.mjs +0 -15
- package/chunks/BMWg0Wyj.mjs +0 -223
- package/chunks/BOsml5YC.mjs +0 -69
- package/chunks/BPwFiWYl2.mjs +0 -226
- package/chunks/BVIHqL6g.mjs +0 -17
- package/chunks/BVSQ6DfJ.mjs +0 -17
- package/chunks/BWqFKbFT.mjs +0 -1
- package/chunks/B__5L22p2.mjs +0 -346
- package/chunks/Bcpewc6H.mjs +0 -1279
- package/chunks/Bdeug17L.mjs +0 -42
- package/chunks/BffxPn8a.mjs +0 -34
- package/chunks/BgKQXQO_.mjs +0 -3093
- package/chunks/Bgw_3soo.mjs +0 -35
- package/chunks/BjCfQFUL.mjs +0 -54
- package/chunks/BjWs-r2V.mjs +0 -25
- package/chunks/BlB1fEo92.mjs +0 -8
- package/chunks/BmP9lQmT.mjs +0 -1
- package/chunks/BrYtAPbN2.mjs +0 -161
- package/chunks/BsKwchVA.mjs +0 -14
- package/chunks/Bxo1Of95.mjs +0 -479
- package/chunks/BzFYbCpR.mjs +0 -25
- package/chunks/C6puxasG.mjs +0 -34
- package/chunks/C7l9aZGE.mjs +0 -577
- package/chunks/CDRNaOEg2.mjs +0 -274
- package/chunks/CG7AYiWy.mjs +0 -1
- package/chunks/CLzc_j7_.mjs +0 -234
- package/chunks/CQSTyCVP.mjs +0 -6
- package/chunks/CQxz8uUc.mjs +0 -454
- package/chunks/CU8bKuD12.mjs +0 -237
- package/chunks/CUF58PQ6.mjs +0 -1
- package/chunks/CUMFv5zJ2.mjs +0 -136
- package/chunks/C_eGir-J.mjs +0 -17
- package/chunks/Cb6Zx6UC.mjs +0 -29
- package/chunks/Cb_S4x_i2.mjs +0 -1098
- package/chunks/CbgD7y-5.mjs +0 -5
- package/chunks/CbsGuLZz2.mjs +0 -105
- package/chunks/CcT5SsZk.mjs +0 -48
- package/chunks/CcnjxILx.mjs +0 -1
- package/chunks/ChkCT6Mm.mjs +0 -4
- package/chunks/CiFlMt6Z.mjs +0 -41
- package/chunks/CiOqOUkG.mjs +0 -1
- package/chunks/CkXf_DVJ2.mjs +0 -1
- package/chunks/CnCSm3LY2.mjs +0 -4
- package/chunks/CnqWFDqp2.mjs +0 -244
- package/chunks/Cq0oEWRi2.mjs +0 -384
- package/chunks/CtBIjjQc2.mjs +0 -58
- package/chunks/Ctd3_wOH2.mjs +0 -6
- package/chunks/CuoYjthQ.mjs +0 -643
- package/chunks/CwhXr2Qc.mjs +0 -1
- package/chunks/D-hj62se2.mjs +0 -525
- package/chunks/D3VpXXqv.mjs +0 -1331
- package/chunks/D3Xixh5v.mjs +0 -5
- package/chunks/D4oNQiIK.mjs +0 -461
- package/chunks/D7O9ov79.mjs +0 -447
- package/chunks/D8fid28s2.mjs +0 -42
- package/chunks/DJdhVUFO2.mjs +0 -2435
- package/chunks/DJo_1CEK2.mjs +0 -61
- package/chunks/DMBx2EQl.mjs +0 -107
- package/chunks/DOCwznnS.mjs +0 -62
- package/chunks/DStwh2ne.mjs +0 -281
- package/chunks/D_5z5Xeq2.mjs +0 -37
- package/chunks/Df9VO_Wn2.mjs +0 -2
- package/chunks/Dg9Q-Tbi2.mjs +0 -299
- package/chunks/Diyl8upM.mjs +0 -277
- package/chunks/DjIPzCCR.mjs +0 -2
- package/chunks/DnBzQ-xh.mjs +0 -4
- package/chunks/Dp195RgF.mjs +0 -2
- package/chunks/Dqu1Etz62.mjs +0 -52
- package/chunks/DrKq_frR.mjs +0 -98
- package/chunks/DrXfCf172.mjs +0 -440
- package/chunks/DsZznbt2.mjs +0 -208
- package/chunks/Dsd58O0g.mjs +0 -25
- package/chunks/DssopN-n2.mjs +0 -97
- package/chunks/Dtq1xYk8.mjs +0 -47
- package/chunks/FeuisuNY2.mjs +0 -88
- package/chunks/GEtlriHC.mjs +0 -188
- package/chunks/GsvG1yFW.mjs +0 -1919
- package/chunks/IheQdJ0z.mjs +0 -267
- package/chunks/KGmxNbpi.mjs +0 -21
- package/chunks/PNyFONog2.mjs +0 -69
- package/chunks/T70m4caR.mjs +0 -1095
- package/chunks/ZBsqmcIN2.mjs +0 -622
- package/chunks/akEzJ4kG.mjs +0 -18
- package/chunks/fX1GD0G5.mjs +0 -70
- package/chunks/gh52LMTG.mjs +0 -12
- package/chunks/hgAOQY9a.mjs +0 -406
- package/chunks/iu5J8EF_.mjs +0 -197
- package/chunks/lGc5ksPb.mjs +0 -279
- package/chunks/pZQfJv282.mjs +0 -4
- package/chunks/qrHhuZXg.mjs +0 -465
- package/chunks/r8gDbwly.mjs +0 -1
- package/chunks/vpwjmKdg2.mjs +0 -32
- package/css/style.css +0 -1
- package/css/style10.css +0 -1
- package/css/style11.css +0 -1
- package/css/style12.css +0 -1
- package/css/style13.css +0 -1
- package/css/style14.css +0 -1
- package/css/style15.css +0 -1
- package/css/style16.css +0 -1
- package/css/style17.css +0 -1
- package/css/style18.css +0 -1
- package/css/style19.css +0 -1
- package/css/style2.css +0 -1
- package/css/style20.css +0 -1
- package/css/style21.css +0 -1
- package/css/style22.css +0 -1
- package/css/style23.css +0 -1
- package/css/style24.css +0 -1
- package/css/style25.css +0 -1
- package/css/style26.css +0 -1
- package/css/style27.css +0 -1
- package/css/style28.css +0 -1
- package/css/style29.css +0 -1
- package/css/style3.css +0 -1
- package/css/style4.css +0 -1
- package/css/style5.css +0 -1
- package/css/style6.css +0 -1
- package/css/style7.css +0 -1
- package/css/style8.css +0 -1
- package/css/style9.css +0 -1
- package/form-date-picker/style.css +0 -1
- package/form-image/style.css +0 -1
- package/form-input-time/style.css +0 -1
- package/form-radio-group/style.css +0 -1
- package/form-rate/style.css +0 -1
- package/form-time-select/style.css +0 -1
- /package/chunks/{CZnBtJW02.mjs → BBvIPqcc.mjs} +0 -0
- /package/chunks/{iIozz7ce.mjs → BoCxKwBf.mjs} +0 -0
- /package/chunks/{BxRjXAwz.mjs → CE67pCwD.mjs} +0 -0
- /package/chunks/{DWhGFQkb2.mjs → CQeEP_Tl.mjs} +0 -0
- /package/chunks/{BQ0e8kIi.mjs → CaczibeD.mjs} +0 -0
- /package/chunks/{B_80qPvY.mjs → DZCryyFG.mjs} +0 -0
- /package/chunks/{q5iCsXNv.mjs → Dq63V0CC.mjs} +0 -0
- /package/chunks/{CRjUGi_-.mjs → OEBJ-trG.mjs} +0 -0
- /package/chunks/{GYddfy8T.mjs → fjtZc9Rq2.mjs} +0 -0
|
@@ -1,23 +1,22 @@
|
|
|
1
1
|
import { n as e } from "./CjjJimnU.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { t as
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import { t as d } from "./BPwFiWYl2.mjs";
|
|
10
|
-
/* empty css */
|
|
11
|
-
import "./CiOqOUkG.mjs";
|
|
12
|
-
import { t as f } from "./BQ0e8kIi.mjs";
|
|
13
|
-
import "./CwhXr2Qc.mjs";
|
|
14
|
-
import "./ChkCT6Mm.mjs";
|
|
15
|
-
import "./BWqFKbFT.mjs";
|
|
16
|
-
import "./r8gDbwly.mjs";
|
|
17
|
-
import { r as p, t as m } from "./DWhGFQkb2.mjs";
|
|
18
|
-
import { a as h, i as g, n as _, r as v } from "./CZnBtJW02.mjs";
|
|
2
|
+
import { t } from "./CaczibeD.mjs";
|
|
3
|
+
import { t as n } from "./OBTStTaa.mjs";
|
|
4
|
+
import { r, t as i } from "./CQeEP_Tl.mjs";
|
|
5
|
+
import { a, i as o, n as s, r as c } from "./BBvIPqcc.mjs";
|
|
6
|
+
import { ElButton as l, ElDivider as u, ElDrawer as d, ElForm as f, ElFormItem as p, ElInput as m, ElOption as h, ElSelect as g, ElTable as _, ElTableColumn as v } from "element-plus/es";
|
|
7
|
+
import "element-plus/es/components/base/style/css";
|
|
8
|
+
import "element-plus/es/components/input/style/css";
|
|
19
9
|
import { Fragment as y, createBlock as b, createCommentVNode as x, createElementBlock as S, createElementVNode as C, createTextVNode as w, createVNode as T, openBlock as E, renderList as D, withCtx as O, withModifiers as k } from "vue";
|
|
20
10
|
import { capitalize as A, fastClone as j } from "@web-utils/core";
|
|
11
|
+
import "element-plus/es/components/button/style/css";
|
|
12
|
+
import "element-plus/es/components/drawer/style/css";
|
|
13
|
+
import "element-plus/es/components/table/style/css";
|
|
14
|
+
import "element-plus/es/components/table-column/style/css";
|
|
15
|
+
import "element-plus/es/components/form/style/css";
|
|
16
|
+
import "element-plus/es/components/form-item/style/css";
|
|
17
|
+
import "element-plus/es/components/select/style/css";
|
|
18
|
+
import "element-plus/es/components/option/style/css";
|
|
19
|
+
import "element-plus/es/components/divider/style/css";
|
|
21
20
|
//#region src/components/bpmn-process-designer/components/penal/listeners/ElementListeners.vue
|
|
22
21
|
var M = /* @__PURE__ */ e({ default: () => H }), N = (e) => ({
|
|
23
22
|
$type: "flowable:ExecutionListener",
|
|
@@ -57,8 +56,8 @@ var M = /* @__PURE__ */ e({ default: () => H }), N = (e) => ({
|
|
|
57
56
|
listenerFieldFormModelVisible: !1,
|
|
58
57
|
editingListenerIndex: -1,
|
|
59
58
|
editingListenerFieldIndex: -1,
|
|
60
|
-
listenerTypeObject:
|
|
61
|
-
fieldTypeObject:
|
|
59
|
+
listenerTypeObject: a,
|
|
60
|
+
fieldTypeObject: s
|
|
62
61
|
};
|
|
63
62
|
},
|
|
64
63
|
computed: { apis() {
|
|
@@ -81,7 +80,7 @@ var M = /* @__PURE__ */ e({ default: () => H }), N = (e) => ({
|
|
|
81
80
|
methods: {
|
|
82
81
|
resetListenersList() {
|
|
83
82
|
var e;
|
|
84
|
-
this.otherExtensionList = [], this.bpmnElementListeners = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type === `${this.prefix}:ExecutionListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((e) =>
|
|
83
|
+
this.otherExtensionList = [], this.bpmnElementListeners = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type === `${this.prefix}:ExecutionListener`)) ?? [], this.elementListenersList = this.bpmnElementListeners.map((e) => o(e));
|
|
85
84
|
},
|
|
86
85
|
changeFiledType(e) {
|
|
87
86
|
e === "string" ? (delete this.listenerFieldForm.expression, this.listenerFieldForm.string = "") : (delete this.listenerFieldForm.string, this.listenerFieldForm.expression = "");
|
|
@@ -95,7 +94,7 @@ var M = /* @__PURE__ */ e({ default: () => H }), N = (e) => ({
|
|
|
95
94
|
},
|
|
96
95
|
async openListenerForm(e, t) {
|
|
97
96
|
var n;
|
|
98
|
-
e ? (this.listenerForm =
|
|
97
|
+
e ? (this.listenerForm = c(e), this.fieldsListOfListener = e.fields ? e.fields.map((e) => ({ ...e })) : [], this.editingListenerIndex = t) : (this.listenerForm = { fields: [] }, this.fieldsListOfListener = [], this.editingListenerIndex = -1), this.listenerFormModelVisible = !0, await this.$nextTick(), (n = this.$refs.listenerFormRef) == null || n.clearValidate();
|
|
99
98
|
},
|
|
100
99
|
openListenerFieldForm(e, t) {
|
|
101
100
|
this.listenerFieldForm = e ? j(e) : { fieldType: "string" }, this.editingListenerFieldIndex = e ? t : -1, this.listenerFieldFormModelVisible = !0, this.$nextTick(() => {
|
|
@@ -112,60 +111,60 @@ var M = /* @__PURE__ */ e({ default: () => H }), N = (e) => ({
|
|
|
112
111
|
},
|
|
113
112
|
async removeListener(e, t) {
|
|
114
113
|
try {
|
|
115
|
-
await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(t, 1), this.elementListenersList.splice(t, 1),
|
|
114
|
+
await this.$confirm("确认移除该监听器吗?", "提示"), this.bpmnElementListeners.splice(t, 1), this.elementListenersList.splice(t, 1), r(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners));
|
|
116
115
|
} catch {}
|
|
117
116
|
},
|
|
118
117
|
async saveListenerConfig() {
|
|
119
118
|
var e;
|
|
120
119
|
if (!await this.$refs.listenerFormRef.validate()) return;
|
|
121
|
-
let t =
|
|
122
|
-
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(t), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, t), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type !== `${this.prefix}:ExecutionListener`)) ?? [],
|
|
120
|
+
let t = i(this.bpmnInstances, this.listenerForm, !1, this.prefix);
|
|
121
|
+
this.editingListenerIndex === -1 ? (this.bpmnElementListeners.push(t), this.elementListenersList.push(this.listenerForm)) : (this.bpmnElementListeners.splice(this.editingListenerIndex, 1, t), this.elementListenersList.splice(this.editingListenerIndex, 1, this.listenerForm)), this.otherExtensionList = ((e = this.element.businessObject) == null || (e = e.extensionElements) == null || (e = e.values) == null ? void 0 : e.filter((e) => e.$type !== `${this.prefix}:ExecutionListener`)) ?? [], r(this.bpmnInstances, this.element, this.otherExtensionList.concat(this.bpmnElementListeners)), this.listenerFormModelVisible = !1, this.listenerForm = {};
|
|
123
122
|
}
|
|
124
123
|
}
|
|
125
124
|
}, I = { class: "panel-tab__content element-listeners" }, L = { class: "element-drawer__button" }, R = { class: "listener-filed__title" }, z = { class: "listener-filed__title" }, B = { class: "element-drawer__button" };
|
|
126
|
-
function V(e,
|
|
127
|
-
let
|
|
125
|
+
function V(e, t, r, i, a, o) {
|
|
126
|
+
let s = v, c = l, A = u, j = _, M = h, N = g, P = p, F = m, V = f, H = d, U = n;
|
|
128
127
|
return E(), S("div", I, [
|
|
129
128
|
T(j, {
|
|
130
|
-
data:
|
|
129
|
+
data: a.elementListenersList,
|
|
131
130
|
border: ""
|
|
132
131
|
}, {
|
|
133
132
|
default: O(() => [
|
|
134
|
-
T(
|
|
133
|
+
T(s, {
|
|
135
134
|
label: "序号",
|
|
136
135
|
width: "50px",
|
|
137
136
|
type: "index"
|
|
138
137
|
}),
|
|
139
|
-
T(
|
|
138
|
+
T(s, {
|
|
140
139
|
label: "事件类型",
|
|
141
140
|
"min-width": "100px",
|
|
142
141
|
prop: "event"
|
|
143
142
|
}),
|
|
144
|
-
T(
|
|
143
|
+
T(s, {
|
|
145
144
|
label: "监听器类型",
|
|
146
145
|
"min-width": "100px",
|
|
147
146
|
"show-overflow-tooltip": "",
|
|
148
|
-
formatter: (e) =>
|
|
147
|
+
formatter: (e) => a.listenerTypeObject[e.listenerType]
|
|
149
148
|
}, null, 8, ["formatter"]),
|
|
150
|
-
T(
|
|
149
|
+
T(s, {
|
|
151
150
|
label: "操作",
|
|
152
151
|
width: "90px"
|
|
153
152
|
}, {
|
|
154
|
-
default: O(({ row: e, $index:
|
|
155
|
-
T(
|
|
153
|
+
default: O(({ row: e, $index: n }) => [
|
|
154
|
+
T(c, {
|
|
156
155
|
text: "",
|
|
157
|
-
onClick: (
|
|
156
|
+
onClick: (t) => o.openListenerForm(e, n)
|
|
158
157
|
}, {
|
|
159
|
-
default: O(() => [...
|
|
158
|
+
default: O(() => [...t[26] || (t[26] = [w("编辑", -1)])]),
|
|
160
159
|
_: 1
|
|
161
160
|
}, 8, ["onClick"]),
|
|
162
161
|
T(A, { direction: "vertical" }),
|
|
163
|
-
T(
|
|
162
|
+
T(c, {
|
|
164
163
|
text: "",
|
|
165
164
|
style: { color: "#ff4d4f" },
|
|
166
|
-
onClick: (
|
|
165
|
+
onClick: (t) => o.removeListener(e, n)
|
|
167
166
|
}, {
|
|
168
|
-
default: O(() => [...
|
|
167
|
+
default: O(() => [...t[27] || (t[27] = [w("移除", -1)])]),
|
|
169
168
|
_: 1
|
|
170
169
|
}, 8, ["onClick"])
|
|
171
170
|
]),
|
|
@@ -174,21 +173,21 @@ function V(e, f, p, m, h, g) {
|
|
|
174
173
|
]),
|
|
175
174
|
_: 1
|
|
176
175
|
}, 8, ["data"]),
|
|
177
|
-
C("div", L, [T(
|
|
176
|
+
C("div", L, [T(c, {
|
|
178
177
|
type: "primary",
|
|
179
178
|
icon: "el-icon-plus",
|
|
180
|
-
onClick:
|
|
179
|
+
onClick: t[0] || (t[0] = (e) => o.openListenerForm(null))
|
|
181
180
|
}, {
|
|
182
|
-
default: O(() => [...
|
|
181
|
+
default: O(() => [...t[28] || (t[28] = [w("添加监听器", -1)])]),
|
|
183
182
|
_: 1
|
|
184
183
|
})]),
|
|
185
184
|
x(" 监听器 编辑/创建 部分 "),
|
|
186
185
|
T(H, {
|
|
187
|
-
visible:
|
|
188
|
-
"onUpdate:visible":
|
|
186
|
+
visible: a.listenerFormModelVisible,
|
|
187
|
+
"onUpdate:visible": t[16] || (t[16] = (e) => a.listenerFormModelVisible = e),
|
|
189
188
|
class: "flow-drawer element-listeners-drawer",
|
|
190
189
|
title: "执行监听器",
|
|
191
|
-
size: `${
|
|
190
|
+
size: `${o.width}px`,
|
|
192
191
|
"wrapper-closable": !1,
|
|
193
192
|
"append-to-body": "",
|
|
194
193
|
"destroy-on-close": ""
|
|
@@ -196,35 +195,35 @@ function V(e, f, p, m, h, g) {
|
|
|
196
195
|
default: O(() => [
|
|
197
196
|
T(A),
|
|
198
197
|
C("p", R, [
|
|
199
|
-
|
|
200
|
-
T(
|
|
198
|
+
t[32] || (t[32] = C("span", null, [C("i", { class: "el-icon-menu" }), w(" 监听器类型: ")], -1)),
|
|
199
|
+
T(c, {
|
|
201
200
|
type: "primary",
|
|
202
201
|
style: { "margin-left": "auto" },
|
|
203
|
-
onClick:
|
|
202
|
+
onClick: t[1] || (t[1] = (e) => o.assignListener("start"))
|
|
204
203
|
}, {
|
|
205
|
-
default: O(() => [...
|
|
204
|
+
default: O(() => [...t[29] || (t[29] = [w("开始", -1)])]),
|
|
206
205
|
_: 1
|
|
207
206
|
}),
|
|
208
|
-
T(
|
|
207
|
+
T(c, {
|
|
209
208
|
type: "primary",
|
|
210
|
-
onClick:
|
|
209
|
+
onClick: t[2] || (t[2] = (e) => o.assignListener("end"))
|
|
211
210
|
}, {
|
|
212
|
-
default: O(() => [...
|
|
211
|
+
default: O(() => [...t[30] || (t[30] = [w("结束", -1)])]),
|
|
213
212
|
_: 1
|
|
214
213
|
}),
|
|
215
|
-
T(
|
|
214
|
+
T(c, {
|
|
216
215
|
type: "primary",
|
|
217
|
-
onClick:
|
|
216
|
+
onClick: t[3] || (t[3] = (e) => o.assignListener("draft"))
|
|
218
217
|
}, {
|
|
219
|
-
default: O(() => [...
|
|
218
|
+
default: O(() => [...t[31] || (t[31] = [w("草稿", -1)])]),
|
|
220
219
|
_: 1
|
|
221
220
|
})
|
|
222
221
|
]),
|
|
223
222
|
T(V, {
|
|
224
223
|
ref: "listenerFormRef",
|
|
225
|
-
model:
|
|
224
|
+
model: a.listenerForm,
|
|
226
225
|
"label-width": "96px",
|
|
227
|
-
onSubmit:
|
|
226
|
+
onSubmit: t[13] || (t[13] = k(() => {}, ["prevent"]))
|
|
228
227
|
}, {
|
|
229
228
|
default: O(() => [
|
|
230
229
|
T(P, {
|
|
@@ -236,8 +235,8 @@ function V(e, f, p, m, h, g) {
|
|
|
236
235
|
}
|
|
237
236
|
}, {
|
|
238
237
|
default: O(() => [T(N, {
|
|
239
|
-
modelValue:
|
|
240
|
-
"onUpdate:modelValue":
|
|
238
|
+
modelValue: a.listenerForm.event,
|
|
239
|
+
"onUpdate:modelValue": t[4] || (t[4] = (e) => a.listenerForm.event = e)
|
|
241
240
|
}, {
|
|
242
241
|
default: O(() => [T(M, {
|
|
243
242
|
label: "开始",
|
|
@@ -259,19 +258,19 @@ function V(e, f, p, m, h, g) {
|
|
|
259
258
|
}
|
|
260
259
|
}, {
|
|
261
260
|
default: O(() => [T(N, {
|
|
262
|
-
modelValue:
|
|
263
|
-
"onUpdate:modelValue":
|
|
261
|
+
modelValue: a.listenerForm.listenerType,
|
|
262
|
+
"onUpdate:modelValue": t[5] || (t[5] = (e) => a.listenerForm.listenerType = e)
|
|
264
263
|
}, {
|
|
265
|
-
default: O(() => [(E(!0), S(y, null, D(Object.keys(
|
|
264
|
+
default: O(() => [(E(!0), S(y, null, D(Object.keys(a.listenerTypeObject), (e) => (E(), b(M, {
|
|
266
265
|
key: e,
|
|
267
|
-
label:
|
|
266
|
+
label: a.listenerTypeObject[e],
|
|
268
267
|
value: e
|
|
269
268
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
270
269
|
_: 1
|
|
271
270
|
}, 8, ["modelValue"])]),
|
|
272
271
|
_: 1
|
|
273
272
|
}),
|
|
274
|
-
|
|
273
|
+
a.listenerForm.listenerType === "classListener" ? (E(), b(P, {
|
|
275
274
|
key: "listener-class",
|
|
276
275
|
label: "Java类",
|
|
277
276
|
prop: "class",
|
|
@@ -281,13 +280,13 @@ function V(e, f, p, m, h, g) {
|
|
|
281
280
|
}
|
|
282
281
|
}, {
|
|
283
282
|
default: O(() => [T(F, {
|
|
284
|
-
modelValue:
|
|
285
|
-
"onUpdate:modelValue":
|
|
283
|
+
modelValue: a.listenerForm.class,
|
|
284
|
+
"onUpdate:modelValue": t[6] || (t[6] = (e) => a.listenerForm.class = e),
|
|
286
285
|
clearable: ""
|
|
287
286
|
}, null, 8, ["modelValue"])]),
|
|
288
287
|
_: 1
|
|
289
288
|
})) : x("v-if", !0),
|
|
290
|
-
|
|
289
|
+
a.listenerForm.listenerType === "expressionListener" ? (E(), b(P, {
|
|
291
290
|
key: "listener-expression",
|
|
292
291
|
label: "表达式",
|
|
293
292
|
prop: "expression",
|
|
@@ -297,13 +296,13 @@ function V(e, f, p, m, h, g) {
|
|
|
297
296
|
}
|
|
298
297
|
}, {
|
|
299
298
|
default: O(() => [T(F, {
|
|
300
|
-
modelValue:
|
|
301
|
-
"onUpdate:modelValue":
|
|
299
|
+
modelValue: a.listenerForm.expression,
|
|
300
|
+
"onUpdate:modelValue": t[7] || (t[7] = (e) => a.listenerForm.expression = e),
|
|
302
301
|
clearable: ""
|
|
303
302
|
}, null, 8, ["modelValue"])]),
|
|
304
303
|
_: 1
|
|
305
304
|
})) : x("v-if", !0),
|
|
306
|
-
|
|
305
|
+
a.listenerForm.listenerType === "delegateExpressionListener" ? (E(), b(P, {
|
|
307
306
|
key: "listener-delegate",
|
|
308
307
|
label: "代理表达式",
|
|
309
308
|
prop: "delegateExpression",
|
|
@@ -313,8 +312,8 @@ function V(e, f, p, m, h, g) {
|
|
|
313
312
|
}
|
|
314
313
|
}, {
|
|
315
314
|
default: O(() => [T(N, {
|
|
316
|
-
modelValue:
|
|
317
|
-
"onUpdate:modelValue":
|
|
315
|
+
modelValue: a.listenerForm.delegateExpression,
|
|
316
|
+
"onUpdate:modelValue": t[8] || (t[8] = (e) => a.listenerForm.delegateExpression = e),
|
|
318
317
|
"default-first-option": "",
|
|
319
318
|
"allow-create": "",
|
|
320
319
|
filterable: "",
|
|
@@ -322,7 +321,7 @@ function V(e, f, p, m, h, g) {
|
|
|
322
321
|
}, {
|
|
323
322
|
default: O(() => {
|
|
324
323
|
var e;
|
|
325
|
-
return [(E(!0), S(y, null, D(((e =
|
|
324
|
+
return [(E(!0), S(y, null, D(((e = o.context) == null ? void 0 : e.delegateExpressions) || [], (e) => (E(), b(M, {
|
|
326
325
|
key: e,
|
|
327
326
|
value: e,
|
|
328
327
|
label: e
|
|
@@ -332,7 +331,7 @@ function V(e, f, p, m, h, g) {
|
|
|
332
331
|
}, 8, ["modelValue"])]),
|
|
333
332
|
_: 1
|
|
334
333
|
})) : x("v-if", !0),
|
|
335
|
-
|
|
334
|
+
a.listenerForm.listenerType === "scriptListener" ? (E(), S(y, { key: 3 }, [
|
|
336
335
|
T(P, {
|
|
337
336
|
key: "listener-script-format",
|
|
338
337
|
label: "脚本格式",
|
|
@@ -344,8 +343,8 @@ function V(e, f, p, m, h, g) {
|
|
|
344
343
|
}
|
|
345
344
|
}, {
|
|
346
345
|
default: O(() => [T(F, {
|
|
347
|
-
modelValue:
|
|
348
|
-
"onUpdate:modelValue":
|
|
346
|
+
modelValue: a.listenerForm.scriptFormat,
|
|
347
|
+
"onUpdate:modelValue": t[9] || (t[9] = (e) => a.listenerForm.scriptFormat = e),
|
|
349
348
|
clearable: ""
|
|
350
349
|
}, null, 8, ["modelValue"])]),
|
|
351
350
|
_: 1
|
|
@@ -361,8 +360,8 @@ function V(e, f, p, m, h, g) {
|
|
|
361
360
|
}
|
|
362
361
|
}, {
|
|
363
362
|
default: O(() => [T(N, {
|
|
364
|
-
modelValue:
|
|
365
|
-
"onUpdate:modelValue":
|
|
363
|
+
modelValue: a.listenerForm.scriptType,
|
|
364
|
+
"onUpdate:modelValue": t[10] || (t[10] = (e) => a.listenerForm.scriptType = e)
|
|
366
365
|
}, {
|
|
367
366
|
default: O(() => [T(M, {
|
|
368
367
|
label: "内联脚本",
|
|
@@ -375,7 +374,7 @@ function V(e, f, p, m, h, g) {
|
|
|
375
374
|
}, 8, ["modelValue"])]),
|
|
376
375
|
_: 1
|
|
377
376
|
}),
|
|
378
|
-
|
|
377
|
+
a.listenerForm.scriptType === "inlineScript" ? (E(), b(P, {
|
|
379
378
|
key: "listener-script",
|
|
380
379
|
label: "脚本内容",
|
|
381
380
|
prop: "value",
|
|
@@ -386,13 +385,13 @@ function V(e, f, p, m, h, g) {
|
|
|
386
385
|
}
|
|
387
386
|
}, {
|
|
388
387
|
default: O(() => [T(F, {
|
|
389
|
-
modelValue:
|
|
390
|
-
"onUpdate:modelValue":
|
|
388
|
+
modelValue: a.listenerForm.value,
|
|
389
|
+
"onUpdate:modelValue": t[11] || (t[11] = (e) => a.listenerForm.value = e),
|
|
391
390
|
clearable: ""
|
|
392
391
|
}, null, 8, ["modelValue"])]),
|
|
393
392
|
_: 1
|
|
394
393
|
})) : x("v-if", !0),
|
|
395
|
-
|
|
394
|
+
a.listenerForm.scriptType === "externalScript" ? (E(), b(P, {
|
|
396
395
|
key: "listener-resource",
|
|
397
396
|
label: "资源地址",
|
|
398
397
|
prop: "resource",
|
|
@@ -403,8 +402,8 @@ function V(e, f, p, m, h, g) {
|
|
|
403
402
|
}
|
|
404
403
|
}, {
|
|
405
404
|
default: O(() => [T(F, {
|
|
406
|
-
modelValue:
|
|
407
|
-
"onUpdate:modelValue":
|
|
405
|
+
modelValue: a.listenerForm.resource,
|
|
406
|
+
"onUpdate:modelValue": t[12] || (t[12] = (e) => a.listenerForm.resource = e),
|
|
408
407
|
clearable: ""
|
|
409
408
|
}, null, 8, ["modelValue"])]),
|
|
410
409
|
_: 1
|
|
@@ -414,63 +413,63 @@ function V(e, f, p, m, h, g) {
|
|
|
414
413
|
_: 1
|
|
415
414
|
}, 8, ["model"]),
|
|
416
415
|
T(A),
|
|
417
|
-
C("p", z, [
|
|
416
|
+
C("p", z, [t[34] || (t[34] = C("span", null, [C("i", { class: "el-icon-menu" }), w(" 注入字段: ")], -1)), T(c, {
|
|
418
417
|
type: "primary",
|
|
419
418
|
style: { "margin-left": "auto" },
|
|
420
|
-
onClick:
|
|
419
|
+
onClick: t[14] || (t[14] = (e) => o.openListenerFieldForm(null))
|
|
421
420
|
}, {
|
|
422
|
-
default: O(() => [...
|
|
421
|
+
default: O(() => [...t[33] || (t[33] = [w("添加字段", -1)])]),
|
|
423
422
|
_: 1
|
|
424
423
|
})]),
|
|
425
424
|
T(j, {
|
|
426
|
-
data:
|
|
425
|
+
data: a.fieldsListOfListener,
|
|
427
426
|
"max-height": "240",
|
|
428
427
|
border: "",
|
|
429
428
|
fit: "",
|
|
430
429
|
style: { flex: "none" }
|
|
431
430
|
}, {
|
|
432
431
|
default: O(() => [
|
|
433
|
-
T(
|
|
432
|
+
T(s, {
|
|
434
433
|
label: "序号",
|
|
435
434
|
width: "50px",
|
|
436
435
|
type: "index"
|
|
437
436
|
}),
|
|
438
|
-
T(
|
|
437
|
+
T(s, {
|
|
439
438
|
label: "字段名称",
|
|
440
439
|
"min-width": "100px",
|
|
441
440
|
prop: "name"
|
|
442
441
|
}),
|
|
443
|
-
T(
|
|
442
|
+
T(s, {
|
|
444
443
|
label: "字段类型",
|
|
445
444
|
"min-width": "80px",
|
|
446
445
|
"show-overflow-tooltip": "",
|
|
447
|
-
formatter: (e) =>
|
|
446
|
+
formatter: (e) => a.fieldTypeObject[e.fieldType]
|
|
448
447
|
}, null, 8, ["formatter"]),
|
|
449
|
-
T(
|
|
448
|
+
T(s, {
|
|
450
449
|
label: "字段值/表达式",
|
|
451
450
|
"min-width": "100px",
|
|
452
451
|
"show-overflow-tooltip": "",
|
|
453
452
|
formatter: (e) => e.string || e.expression
|
|
454
453
|
}, null, 8, ["formatter"]),
|
|
455
|
-
T(
|
|
454
|
+
T(s, {
|
|
456
455
|
label: "操作",
|
|
457
456
|
width: "100px"
|
|
458
457
|
}, {
|
|
459
|
-
default: O(({ row: e, $index:
|
|
460
|
-
T(
|
|
458
|
+
default: O(({ row: e, $index: n }) => [
|
|
459
|
+
T(c, {
|
|
461
460
|
text: "",
|
|
462
|
-
onClick: (
|
|
461
|
+
onClick: (t) => o.openListenerFieldForm(e, n)
|
|
463
462
|
}, {
|
|
464
|
-
default: O(() => [...
|
|
463
|
+
default: O(() => [...t[35] || (t[35] = [w("编辑", -1)])]),
|
|
465
464
|
_: 1
|
|
466
465
|
}, 8, ["onClick"]),
|
|
467
466
|
T(A, { direction: "vertical" }),
|
|
468
|
-
T(
|
|
467
|
+
T(c, {
|
|
469
468
|
text: "",
|
|
470
469
|
style: { color: "#ff4d4f" },
|
|
471
|
-
onClick: (
|
|
470
|
+
onClick: (t) => o.removeListenerField(e, n)
|
|
472
471
|
}, {
|
|
473
|
-
default: O(() => [...
|
|
472
|
+
default: O(() => [...t[36] || (t[36] = [w("移除", -1)])]),
|
|
474
473
|
_: 1
|
|
475
474
|
}, 8, ["onClick"])
|
|
476
475
|
]),
|
|
@@ -479,14 +478,14 @@ function V(e, f, p, m, h, g) {
|
|
|
479
478
|
]),
|
|
480
479
|
_: 1
|
|
481
480
|
}, 8, ["data"]),
|
|
482
|
-
C("div", B, [T(
|
|
483
|
-
default: O(() => [...
|
|
481
|
+
C("div", B, [T(c, { onClick: t[15] || (t[15] = (e) => a.listenerFormModelVisible = !1) }, {
|
|
482
|
+
default: O(() => [...t[37] || (t[37] = [w("取 消", -1)])]),
|
|
484
483
|
_: 1
|
|
485
|
-
}), T(
|
|
484
|
+
}), T(c, {
|
|
486
485
|
type: "primary",
|
|
487
|
-
onClick:
|
|
486
|
+
onClick: o.saveListenerConfig
|
|
488
487
|
}, {
|
|
489
|
-
default: O(() => [...
|
|
488
|
+
default: O(() => [...t[38] || (t[38] = [w("保 存", -1)])]),
|
|
490
489
|
_: 1
|
|
491
490
|
}, 8, ["onClick"])])
|
|
492
491
|
]),
|
|
@@ -494,30 +493,30 @@ function V(e, f, p, m, h, g) {
|
|
|
494
493
|
}, 8, ["visible", "size"]),
|
|
495
494
|
x(" 注入字段 编辑/创建 部分 "),
|
|
496
495
|
T(U, {
|
|
497
|
-
visible:
|
|
498
|
-
"onUpdate:visible":
|
|
496
|
+
visible: a.listenerFieldFormModelVisible,
|
|
497
|
+
"onUpdate:visible": t[25] || (t[25] = (e) => a.listenerFieldFormModelVisible = e),
|
|
499
498
|
title: "字段配置",
|
|
500
499
|
class: "flow-dialog",
|
|
501
500
|
width: "600px",
|
|
502
501
|
"append-to-body": "",
|
|
503
502
|
"destroy-on-close": ""
|
|
504
503
|
}, {
|
|
505
|
-
footer: O(() => [T(
|
|
506
|
-
default: O(() => [...
|
|
504
|
+
footer: O(() => [T(c, { onClick: t[24] || (t[24] = (e) => a.listenerFieldFormModelVisible = !1) }, {
|
|
505
|
+
default: O(() => [...t[39] || (t[39] = [w("取 消", -1)])]),
|
|
507
506
|
_: 1
|
|
508
|
-
}), T(
|
|
507
|
+
}), T(c, {
|
|
509
508
|
type: "primary",
|
|
510
|
-
onClick:
|
|
509
|
+
onClick: o.saveListenerFiled
|
|
511
510
|
}, {
|
|
512
|
-
default: O(() => [...
|
|
511
|
+
default: O(() => [...t[40] || (t[40] = [w("确 定", -1)])]),
|
|
513
512
|
_: 1
|
|
514
513
|
}, 8, ["onClick"])]),
|
|
515
514
|
default: O(() => [T(V, {
|
|
516
515
|
ref: "listenerFieldFormRef",
|
|
517
|
-
model:
|
|
516
|
+
model: a.listenerFieldForm,
|
|
518
517
|
"label-width": "96px",
|
|
519
518
|
style: { height: "136px" },
|
|
520
|
-
onSubmit:
|
|
519
|
+
onSubmit: t[23] || (t[23] = k(() => {}, ["prevent"]))
|
|
521
520
|
}, {
|
|
522
521
|
default: O(() => [
|
|
523
522
|
T(P, {
|
|
@@ -529,17 +528,17 @@ function V(e, f, p, m, h, g) {
|
|
|
529
528
|
}
|
|
530
529
|
}, {
|
|
531
530
|
default: O(() => [T(N, {
|
|
532
|
-
modelValue:
|
|
533
|
-
"onUpdate:modelValue":
|
|
531
|
+
modelValue: a.listenerFieldForm.name,
|
|
532
|
+
"onUpdate:modelValue": t[17] || (t[17] = (e) => a.listenerFieldForm.name = e),
|
|
534
533
|
"default-first-option": "",
|
|
535
534
|
"allow-create": "",
|
|
536
535
|
filterable: "",
|
|
537
536
|
clearable: "",
|
|
538
|
-
onInput:
|
|
537
|
+
onInput: o.setDefaultFieldValue
|
|
539
538
|
}, {
|
|
540
539
|
default: O(() => {
|
|
541
540
|
var e;
|
|
542
|
-
return [(E(!0), S(y, null, D(((e =
|
|
541
|
+
return [(E(!0), S(y, null, D(((e = o.context) == null ? void 0 : e.fields) || [], (e) => (E(), b(M, {
|
|
543
542
|
key: e,
|
|
544
543
|
value: e,
|
|
545
544
|
label: e
|
|
@@ -558,20 +557,20 @@ function V(e, f, p, m, h, g) {
|
|
|
558
557
|
}
|
|
559
558
|
}, {
|
|
560
559
|
default: O(() => [T(N, {
|
|
561
|
-
modelValue:
|
|
562
|
-
"onUpdate:modelValue":
|
|
563
|
-
onInput:
|
|
560
|
+
modelValue: a.listenerFieldForm.fieldType,
|
|
561
|
+
"onUpdate:modelValue": t[18] || (t[18] = (e) => a.listenerFieldForm.fieldType = e),
|
|
562
|
+
onInput: o.changeFiledType
|
|
564
563
|
}, {
|
|
565
|
-
default: O(() => [(E(!0), S(y, null, D(Object.keys(
|
|
564
|
+
default: O(() => [(E(!0), S(y, null, D(Object.keys(a.fieldTypeObject), (e) => (E(), b(M, {
|
|
566
565
|
key: e,
|
|
567
|
-
label:
|
|
566
|
+
label: a.fieldTypeObject[e],
|
|
568
567
|
value: e
|
|
569
568
|
}, null, 8, ["label", "value"]))), 128))]),
|
|
570
569
|
_: 1
|
|
571
570
|
}, 8, ["modelValue", "onInput"])]),
|
|
572
571
|
_: 1
|
|
573
572
|
}),
|
|
574
|
-
|
|
573
|
+
a.listenerFieldForm.fieldType === "string" ? (E(), b(P, {
|
|
575
574
|
key: "field-string",
|
|
576
575
|
class: "element-listeners-field-name",
|
|
577
576
|
label: "字段值:",
|
|
@@ -581,25 +580,25 @@ function V(e, f, p, m, h, g) {
|
|
|
581
580
|
trigger: ["blur", "change"]
|
|
582
581
|
}
|
|
583
582
|
}, {
|
|
584
|
-
default: O(() => [
|
|
583
|
+
default: O(() => [a.listenerFieldForm.name === "url" ? (E(), b(N, {
|
|
585
584
|
key: 0,
|
|
586
|
-
modelValue:
|
|
587
|
-
"onUpdate:modelValue":
|
|
585
|
+
modelValue: a.listenerFieldForm.string,
|
|
586
|
+
"onUpdate:modelValue": t[19] || (t[19] = (e) => a.listenerFieldForm.string = e),
|
|
588
587
|
"default-first-option": "",
|
|
589
588
|
"allow-create": "",
|
|
590
589
|
filterable: "",
|
|
591
590
|
clearable: ""
|
|
592
591
|
}, {
|
|
593
|
-
default: O(() => [(E(!0), S(y, null, D(
|
|
592
|
+
default: O(() => [(E(!0), S(y, null, D(o.apis, (e) => (E(), b(M, {
|
|
594
593
|
key: e,
|
|
595
594
|
value: e,
|
|
596
595
|
label: e
|
|
597
596
|
}, null, 8, ["value", "label"]))), 128))]),
|
|
598
597
|
_: 1
|
|
599
|
-
}, 8, ["modelValue"])) :
|
|
598
|
+
}, 8, ["modelValue"])) : a.listenerFieldForm.name === "serviceId" ? (E(), b(N, {
|
|
600
599
|
key: 1,
|
|
601
|
-
modelValue:
|
|
602
|
-
"onUpdate:modelValue":
|
|
600
|
+
modelValue: a.listenerFieldForm.string,
|
|
601
|
+
"onUpdate:modelValue": t[20] || (t[20] = (e) => a.listenerFieldForm.string = e),
|
|
603
602
|
"default-first-option": "",
|
|
604
603
|
"allow-create": "",
|
|
605
604
|
filterable: "",
|
|
@@ -607,7 +606,7 @@ function V(e, f, p, m, h, g) {
|
|
|
607
606
|
}, {
|
|
608
607
|
default: O(() => {
|
|
609
608
|
var e;
|
|
610
|
-
return [(E(!0), S(y, null, D(((e =
|
|
609
|
+
return [(E(!0), S(y, null, D(((e = o.context) == null ? void 0 : e.services) || [], (e) => (E(), b(M, {
|
|
611
610
|
key: e,
|
|
612
611
|
value: e,
|
|
613
612
|
label: e
|
|
@@ -616,13 +615,13 @@ function V(e, f, p, m, h, g) {
|
|
|
616
615
|
_: 1
|
|
617
616
|
}, 8, ["modelValue"])) : (E(), b(F, {
|
|
618
617
|
key: 2,
|
|
619
|
-
modelValue:
|
|
620
|
-
"onUpdate:modelValue":
|
|
618
|
+
modelValue: a.listenerFieldForm.string,
|
|
619
|
+
"onUpdate:modelValue": t[21] || (t[21] = (e) => a.listenerFieldForm.string = e),
|
|
621
620
|
clearable: ""
|
|
622
621
|
}, null, 8, ["modelValue"]))]),
|
|
623
622
|
_: 1
|
|
624
623
|
})) : x("v-if", !0),
|
|
625
|
-
|
|
624
|
+
a.listenerFieldForm.fieldType === "expression" ? (E(), b(P, {
|
|
626
625
|
key: "field-expression",
|
|
627
626
|
label: "表达式:",
|
|
628
627
|
prop: "expression",
|
|
@@ -632,8 +631,8 @@ function V(e, f, p, m, h, g) {
|
|
|
632
631
|
}
|
|
633
632
|
}, {
|
|
634
633
|
default: O(() => [T(F, {
|
|
635
|
-
modelValue:
|
|
636
|
-
"onUpdate:modelValue":
|
|
634
|
+
modelValue: a.listenerFieldForm.expression,
|
|
635
|
+
"onUpdate:modelValue": t[22] || (t[22] = (e) => a.listenerFieldForm.expression = e),
|
|
637
636
|
clearable: ""
|
|
638
637
|
}, null, 8, ["modelValue"])]),
|
|
639
638
|
_: 1
|
|
@@ -645,6 +644,6 @@ function V(e, f, p, m, h, g) {
|
|
|
645
644
|
}, 8, ["visible"])
|
|
646
645
|
]);
|
|
647
646
|
}
|
|
648
|
-
var H = /* @__PURE__ */
|
|
647
|
+
var H = /* @__PURE__ */ t(F, [["render", V]]);
|
|
649
648
|
//#endregion
|
|
650
649
|
export { M as n, H as t };
|