@web-utils/component 5.0.0-beta03 → 5.0.0-beta04

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.
Files changed (390) hide show
  1. package/chunks/DialogForm.BzmXN481.mjs +37816 -0
  2. package/chunks/ElementDialog.BrqPs1yL.mjs +198 -0
  3. package/chunks/FormTemp.DWB4CV8h.mjs +251 -0
  4. package/chunks/FyButton.DGd1yE_h.mjs +27 -0
  5. package/chunks/{FyCurd.DqJuCLNW.mjs → FyCurd.DmIW6Tjw.mjs} +490 -483
  6. package/chunks/{FyForm.CgyGhetD.mjs → FyForm.Dh77gj0Z.mjs} +149 -149
  7. package/chunks/{FyUEditor.uvZS8UgS.mjs → FyUEditor.BMGigcYw.mjs} +7 -7
  8. package/chunks/{FyUpload.DoBEuYcC.mjs → FyUpload.Y_mVdD0K.mjs} +77 -77
  9. package/chunks/{MonacoEditor.Bq9d6JSz.mjs → MonacoEditor.DQ1vPh6D.mjs} +8 -8
  10. package/chunks/dataformat.BpAzVPYN.mjs +165 -0
  11. package/chunks/{dic.NZCGhtA7.mjs → dic.N2PNjL8o.mjs} +1 -1
  12. package/chunks/{event.CmOTnori.mjs → event.BevSLXu4.mjs} +8 -9
  13. package/chunks/{util.g-WQEec9.mjs → util.Cdt7t08t.mjs} +35 -50
  14. package/dialog/index.d.ts +14 -0
  15. package/dialog/props.d.ts +101 -0
  16. package/dialog-form/index.mjs +2 -145
  17. package/element-dialog/index.mjs +1 -1
  18. package/element-dialog/style.css +1 -1
  19. package/fy-array/index.mjs +7 -7
  20. package/fy-button/index.mjs +2 -0
  21. package/fy-button/style.css +1 -0
  22. package/fy-cascader/index.mjs +2 -2
  23. package/fy-checkbox/index.mjs +2 -2
  24. package/fy-curd/index.mjs +1 -1
  25. package/fy-curd/style.css +1 -1
  26. package/fy-date/index.mjs +2 -2
  27. package/fy-date/style.css +1 -1
  28. package/fy-dynamic/index.mjs +15 -15
  29. package/fy-empty/index.mjs +4 -4
  30. package/fy-form/index.mjs +1 -1
  31. package/fy-input/index.mjs +3 -3
  32. package/fy-input-color/index.mjs +2 -2
  33. package/fy-input-map/index.mjs +36 -34
  34. package/fy-input-number/index.mjs +2 -2
  35. package/fy-input-table/index.mjs +40 -38
  36. package/fy-input-tree/index.mjs +17 -17
  37. package/fy-radio/index.mjs +2 -2
  38. package/fy-rate/index.mjs +2 -2
  39. package/fy-select/index.mjs +29 -29
  40. package/fy-slider/index.mjs +5 -5
  41. package/fy-switch/index.mjs +2 -2
  42. package/fy-tabs/index.mjs +1 -1
  43. package/fy-time/index.mjs +7 -7
  44. package/fy-title/index.mjs +2 -2
  45. package/fy-tree/index.mjs +76 -74
  46. package/fy-u-editor/index.mjs +1 -1
  47. package/fy-upload/index.mjs +1 -1
  48. package/icon-temp/index.mjs +1 -1
  49. package/index.d.ts +2 -141
  50. package/index.mjs +31 -178
  51. package/monaco-editor/index.mjs +1 -1
  52. package/package.json +4 -4
  53. package/web-types.json +2431 -20044
  54. package/address-input/index.mjs +0 -76
  55. package/address-input/style.css +0 -1
  56. package/affix/index.mjs +0 -72
  57. package/affix/style.css +0 -1
  58. package/aside-menu/index.mjs +0 -20
  59. package/aside-menu/style.css +0 -1
  60. package/avatar/index.mjs +0 -94
  61. package/avatar/style.css +0 -1
  62. package/awesome-button/index.mjs +0 -49
  63. package/base.css +0 -1
  64. package/capsule-tab/index.mjs +0 -27
  65. package/capsule-tab/style.css +0 -1
  66. package/card/index.mjs +0 -86
  67. package/card/style.css +0 -1
  68. package/carousel/index.mjs +0 -46
  69. package/carousel/style.css +0 -1
  70. package/chat/index.mjs +0 -432
  71. package/chat/style.css +0 -1
  72. package/chunk-file-uploader/index.mjs +0 -2
  73. package/chunk-file-uploader/style.css +0 -1
  74. package/chunks/ChunkFileUploader.C3EA0e5t.mjs +0 -114
  75. package/chunks/EditableTree.CV8b95tW.mjs +0 -639
  76. package/chunks/ElementBaseInfo.lW0iwU10.mjs +0 -208
  77. package/chunks/ElementDialog.DWhAJsUn.mjs +0 -520
  78. package/chunks/ElementForm.C7yebHWH.mjs +0 -600
  79. package/chunks/ElementListeners.B_SjC8dp.mjs +0 -635
  80. package/chunks/ElementMultiInstance.Xw27Z5mm.mjs +0 -289
  81. package/chunks/ElementOtherConfig.DnNmAhKn.mjs +0 -50
  82. package/chunks/ElementProperties.DKr9JE_O.mjs +0 -187
  83. package/chunks/ElementTaskConfig.CPjsXlpS.mjs +0 -442
  84. package/chunks/FlowCondition.BA7GF34X.mjs +0 -193
  85. package/chunks/FlowDesigner.DH1ypcUw.mjs +0 -5100
  86. package/chunks/FormBlock.D6kZl7sm.mjs +0 -117
  87. package/chunks/FormCascader.BXL8lKww.mjs +0 -1229
  88. package/chunks/FormInputTime.DzTPiDNh.mjs +0 -1775
  89. package/chunks/FormItem.B8iPLduv.mjs +0 -89
  90. package/chunks/FormItemGroup.CCGqEapT.mjs +0 -154
  91. package/chunks/FormSelect.t0jbTL_K.mjs +0 -1475
  92. package/chunks/FormSwitch.uoFQ-xp_.mjs +0 -298
  93. package/chunks/FormTemp.CeHtEZQe.mjs +0 -144
  94. package/chunks/FyFormDesign.DIIK7mXK.mjs +0 -5521
  95. package/chunks/ImagePreview.DDFrZgo5.mjs +0 -649
  96. package/chunks/Keyboard.DBspwbYo.mjs +0 -379
  97. package/chunks/PageableTable.DR-REJN5.mjs +0 -659
  98. package/chunks/RecordVideo.CKTY-gk9.mjs +0 -116
  99. package/chunks/SignalAndMessage.CL2u19it.mjs +0 -189
  100. package/chunks/SplitPane.DNNid7WB.mjs +0 -219
  101. package/chunks/TableColumn.Cq9Bvevm.mjs +0 -186
  102. package/chunks/TableView.DMWMaGLA.mjs +0 -477
  103. package/chunks/Toolbar.DytZ6fO0.mjs +0 -219
  104. package/chunks/ToolbarButton.AlTszc53.mjs +0 -107
  105. package/chunks/UserTaskListeners.Qfm8hKWP.mjs +0 -581
  106. package/chunks/VueCron.BmPnLuu3.mjs +0 -1787
  107. package/chunks/VueTreeSelect.GHx4Z2lG.mjs +0 -1877
  108. package/chunks/button.gVyl7Y__.mjs +0 -927
  109. package/chunks/checkbox.AmhCpaBZ.mjs +0 -438
  110. package/chunks/chunk.A6TnG60p.mjs +0 -13
  111. package/chunks/confirmable-mixin.BZtxXY0h.mjs +0 -273
  112. package/chunks/constants.Dw7hXt67.mjs +0 -4
  113. package/chunks/core.Blrh_Fjl.mjs +0 -51
  114. package/chunks/dataformat.F7GtAoiN.mjs +0 -144
  115. package/chunks/dictionary.BqVLM7Lf.mjs +0 -87
  116. package/chunks/dictionary.DXYdZefs.mjs +0 -19
  117. package/chunks/event.ZRs4J5TN.mjs +0 -4
  118. package/chunks/focus-trap.CuUc8N2C.mjs +0 -211
  119. package/chunks/form-input.DdSb45Tz.mjs +0 -34
  120. package/chunks/form-item.fYYCXvCs.mjs +0 -716
  121. package/chunks/form-pick.BEC7lrNH.mjs +0 -7
  122. package/chunks/form-validate.JFOV_f-C.mjs +0 -11
  123. package/chunks/icon.AJYLfX1m.mjs +0 -26
  124. package/chunks/icon.niAg1zTC.mjs +0 -251
  125. package/chunks/init.CtUEiRbU.mjs +0 -115
  126. package/chunks/input.B_wW4aF-.mjs +0 -548
  127. package/chunks/install.BJl2MN77.mjs +0 -73
  128. package/chunks/message-box.wGWcYSSd.mjs +0 -463
  129. package/chunks/message.DnTACuzV.mjs +0 -401
  130. package/chunks/overlay.Rhu_rfhx.mjs +0 -122
  131. package/chunks/photo-swipe.BvBJGc5x.mjs +0 -55
  132. package/chunks/radio.BMkZBhl5.mjs +0 -274
  133. package/chunks/scroll.BJIpzi2Q.mjs +0 -28
  134. package/chunks/scrollbar.CvxOszy3.mjs +0 -345
  135. package/chunks/slot.CZCo32Cw.mjs +0 -25
  136. package/chunks/style.CraPDfJA.mjs +0 -325
  137. package/chunks/sub-table-plus-props.DvS8aKT4.mjs +0 -28
  138. package/chunks/tab-mixin.C9DSz8xu.mjs +0 -70
  139. package/chunks/tag.B6yUaGj-.mjs +0 -141
  140. package/chunks/teleport.87mkIv8m.mjs +0 -22
  141. package/chunks/tooltip.Dzjs7LZ8.mjs +0 -1926
  142. package/chunks/typescript.D0a40c7B.mjs +0 -4
  143. package/chunks/use-aria.B9uqqWAE.mjs +0 -17
  144. package/chunks/use-composition.BMPJBvYs.mjs +0 -47
  145. package/chunks/use-deprecated.vx6LTDA_.mjs +0 -12
  146. package/chunks/use-empty-values.CxYKjLV9.mjs +0 -81
  147. package/chunks/use-form-item.DMDTkMq9.mjs +0 -48
  148. package/chunks/use-global-config.Dkt91Ob3.mjs +0 -57
  149. package/chunks/use-id.CyzdvfQn.mjs +0 -15
  150. package/chunks/use-locale.CBoQRFjH.mjs +0 -188
  151. package/chunks/use-size.CoorvF12.mjs +0 -18
  152. package/chunks/util.fjuzrmWz.mjs +0 -103
  153. package/chunks/utilSelf.Bv7FtUNb.mjs +0 -46
  154. package/chunks/utils.C37EhJ-u.mjs +0 -60
  155. package/chunks/utils.C8RvIGLM.mjs +0 -14
  156. package/chunks/validator.Drv0r2Nb.mjs +0 -5
  157. package/chunks/vnode.raM3wMJz.mjs +0 -14
  158. package/code-mirror-editor/index.mjs +0 -99
  159. package/code-mirror-editor/style.css +0 -1
  160. package/comment/index.mjs +0 -62
  161. package/comment/style.css +0 -1
  162. package/configComponents.d.ts +0 -29
  163. package/configComponents.mjs +0 -42
  164. package/confirm-button/index.mjs +0 -35
  165. package/confirmable/index.mjs +0 -8
  166. package/context-menu/index.mjs +0 -196
  167. package/context-menu/style.css +0 -1
  168. package/count-up/index.mjs +0 -99
  169. package/custom-scrollbar/index.mjs +0 -93
  170. package/data-box/index.mjs +0 -64
  171. package/data-box/style.css +0 -1
  172. package/data-card/index.mjs +0 -60
  173. package/data-card/style.css +0 -1
  174. package/data-card-text/index.mjs +0 -64
  175. package/data-card-text/style.css +0 -1
  176. package/data-display/index.mjs +0 -71
  177. package/data-display/style.css +0 -1
  178. package/data-icons/index.mjs +0 -70
  179. package/data-icons/style.css +0 -1
  180. package/data-imgtext/index.mjs +0 -67
  181. package/data-imgtext/style.css +0 -1
  182. package/data-operatext/index.mjs +0 -51
  183. package/data-operatext/style.css +0 -1
  184. package/data-panel/index.mjs +0 -57
  185. package/data-panel/style.css +0 -1
  186. package/data-pay/index.mjs +0 -105
  187. package/data-pay/style.css +0 -1
  188. package/data-price/index.mjs +0 -48
  189. package/data-price/style.css +0 -1
  190. package/data-progress/index.mjs +0 -67
  191. package/data-progress/style.css +0 -1
  192. package/data-rotate/index.mjs +0 -61
  193. package/data-rotate/style.css +0 -1
  194. package/data-table-picker/index.mjs +0 -116
  195. package/data-tabs/index.mjs +0 -67
  196. package/data-tabs/style.css +0 -1
  197. package/dynamic-table/index.mjs +0 -165
  198. package/dynamic-table/style.css +0 -1
  199. package/e-charts/index.mjs +0 -176
  200. package/e-charts/style.css +0 -1
  201. package/easy-popup/index.mjs +0 -92
  202. package/easy-popup/style.css +0 -1
  203. package/editable-progress/index.mjs +0 -113
  204. package/editable-progress/style.css +0 -1
  205. package/editable-tree/index.mjs +0 -2
  206. package/editable-tree/style.css +0 -1
  207. package/element-listeners/style.css +0 -1
  208. package/element-multi-instance/style.css +0 -1
  209. package/ellipsis/index.mjs +0 -124
  210. package/ellipsis/style.css +0 -1
  211. package/empty-view/index.mjs +0 -46
  212. package/empty-view/style.css +0 -1
  213. package/error-view/index.mjs +0 -37
  214. package/error-view/style.css +0 -1
  215. package/flex-column/index.mjs +0 -35
  216. package/flex-item/index.mjs +0 -61
  217. package/flex-row/index.mjs +0 -34
  218. package/flex-scroller/index.mjs +0 -29
  219. package/flex-scroller/style.css +0 -1
  220. package/flow/index.mjs +0 -240
  221. package/flow/style.css +0 -1
  222. package/flow-designer/index.mjs +0 -2
  223. package/flow-designer/style.css +0 -1
  224. package/flow-node/index.mjs +0 -56
  225. package/flow-viewer/index.mjs +0 -160
  226. package/flow-viewer/style.css +0 -1
  227. package/form-block/index.mjs +0 -2
  228. package/form-block/style.css +0 -1
  229. package/form-button/index.mjs +0 -36
  230. package/form-card/index.mjs +0 -14
  231. package/form-cascader/index.mjs +0 -2
  232. package/form-checkbox/index.mjs +0 -90
  233. package/form-checkbox-group/index.mjs +0 -162
  234. package/form-checkbox-group/style.css +0 -1
  235. package/form-date-picker/index.mjs +0 -156
  236. package/form-holder/index.mjs +0 -134
  237. package/form-holder/style.css +0 -1
  238. package/form-input/index.mjs +0 -114
  239. package/form-input-cron-expression/index.mjs +0 -98
  240. package/form-input-cron-expression/style.css +0 -1
  241. package/form-input-email/index.mjs +0 -66
  242. package/form-input-id-card/index.mjs +0 -74
  243. package/form-input-phone-number/index.mjs +0 -73
  244. package/form-input-tag/index.mjs +0 -89
  245. package/form-input-time/index.mjs +0 -2
  246. package/form-item/index.mjs +0 -2
  247. package/form-item/style.css +0 -1
  248. package/form-item-config-provider/index.mjs +0 -47
  249. package/form-item-group/index.mjs +0 -2
  250. package/form-item-group/style.css +0 -1
  251. package/form-radio-group/index.mjs +0 -162
  252. package/form-radio-group/style.css +0 -1
  253. package/form-select/index.mjs +0 -2
  254. package/form-select/style.css +0 -1
  255. package/form-switch/index.mjs +0 -2
  256. package/form-table/index.mjs +0 -132
  257. package/form-table-plus/index.mjs +0 -165
  258. package/form-textarea/index.mjs +0 -91
  259. package/form-tree-select/index.mjs +0 -90
  260. package/form-tree-select/style.css +0 -1
  261. package/form-tree-select-multiple/index.mjs +0 -93
  262. package/form-view/index.mjs +0 -280
  263. package/form-view/style.css +0 -1
  264. package/fy-article/index.mjs +0 -73
  265. package/fy-article/style.css +0 -1
  266. package/fy-code/index.mjs +0 -48
  267. package/fy-draggable/index.mjs +0 -323
  268. package/fy-draggable/style.css +0 -1
  269. package/fy-form-design/index.mjs +0 -2
  270. package/fy-form-design/style.css +0 -1
  271. package/fy-input-icon/index.mjs +0 -134
  272. package/fy-input-icon/style.css +0 -1
  273. package/fy-progress/index.mjs +0 -36
  274. package/guide-steps/index.mjs +0 -73
  275. package/guide-steps/style.css +0 -1
  276. package/helper-function.d.ts +0 -5
  277. package/helper-function.mjs +0 -58
  278. package/highlight-j-s/index.mjs +0 -51
  279. package/highlight-j-s/style.css +0 -1
  280. package/icon-card/index.mjs +0 -34
  281. package/icon-card/style.css +0 -1
  282. package/iframe-window/index.mjs +0 -40
  283. package/iframe-window/style.css +0 -1
  284. package/image-cropper/index.mjs +0 -152
  285. package/image-cropper/style.css +0 -1
  286. package/image-preview/index.mjs +0 -2
  287. package/image-preview/style.css +0 -1
  288. package/image-viewer/index.mjs +0 -70
  289. package/image-viewer/style.css +0 -1
  290. package/input-number-range/index.mjs +0 -76
  291. package/input-number-range/style.css +0 -1
  292. package/j-s-x-component/index.mjs +0 -14
  293. package/keyboard/index.mjs +0 -2
  294. package/keyboard/style.css +0 -1
  295. package/license/index.mjs +0 -106
  296. package/loading-view/index.mjs +0 -39
  297. package/loading-view/style.css +0 -1
  298. package/name-avatar/index.mjs +0 -61
  299. package/name-avatar/style.css +0 -1
  300. package/nav-bar/index.mjs +0 -34
  301. package/nav-bar/style.css +0 -1
  302. package/not-implement/index.mjs +0 -10
  303. package/not-implement/style.css +0 -1
  304. package/notice/index.mjs +0 -97
  305. package/notice/style.css +0 -1
  306. package/page/index.mjs +0 -19
  307. package/page/style.css +0 -1
  308. package/page-header/index.mjs +0 -27
  309. package/page-header/style.css +0 -1
  310. package/page-index/index.mjs +0 -121
  311. package/page-index/style.css +0 -1
  312. package/page-index-top/index.mjs +0 -80
  313. package/page-skeleton/index.mjs +0 -49
  314. package/page-skeleton/style.css +0 -1
  315. package/page-skeleton-new/index.mjs +0 -79
  316. package/page-skeleton-new/style.css +0 -1
  317. package/pageable-table/index.mjs +0 -2
  318. package/pageable-table/style.css +0 -1
  319. package/pageable-view/index.mjs +0 -280
  320. package/pageable-view/style.css +0 -1
  321. package/photo-swipe/index.d.ts +0 -8
  322. package/photo-swipe/index.mjs +0 -33
  323. package/picker-table-view/index.mjs +0 -221
  324. package/present-view/index.mjs +0 -271
  325. package/present-view/style.css +0 -1
  326. package/queue/index.mjs +0 -46
  327. package/queue/style.css +0 -1
  328. package/record-video/index.mjs +0 -2
  329. package/record-video/style.css +0 -1
  330. package/resize-observer/index.mjs +0 -45
  331. package/resize-observer/style.css +0 -1
  332. package/search/index.mjs +0 -116
  333. package/search/style.css +0 -1
  334. package/sign/index.mjs +0 -104
  335. package/sign/style.css +0 -1
  336. package/sign-panel/index.mjs +0 -183
  337. package/sign-panel/style.css +0 -1
  338. package/skeleton/index.mjs +0 -51
  339. package/skeleton/style.css +0 -1
  340. package/skeleton-panel/index.mjs +0 -34
  341. package/skeleton-panel/style.css +0 -1
  342. package/split-pane/index.mjs +0 -3
  343. package/split-pane/style.css +0 -1
  344. package/stateful/index.mjs +0 -71
  345. package/stateful/style.css +0 -1
  346. package/static-pageable-table/index.mjs +0 -69
  347. package/static-pageable-table/style.css +0 -1
  348. package/sub-table/index.mjs +0 -505
  349. package/sub-table/style.css +0 -1
  350. package/sub-table-plus/index.mjs +0 -590
  351. package/sub-table-plus/style.css +0 -1
  352. package/swiper/index.mjs +0 -128
  353. package/swiper/style.css +0 -1
  354. package/tab/index.mjs +0 -117
  355. package/tab/style.css +0 -1
  356. package/tab-item/index.mjs +0 -49
  357. package/table-column/index.mjs +0 -2
  358. package/table-column/style.css +0 -1
  359. package/table-view/index.mjs +0 -3
  360. package/table-view/style.css +0 -1
  361. package/tabs-view/index.mjs +0 -109
  362. package/tabs-view/style.css +0 -1
  363. package/tag-render/index.mjs +0 -84
  364. package/tag-render/style.css +0 -1
  365. package/text-ellipsis/index.mjs +0 -95
  366. package/text-ellipsis/style.css +0 -1
  367. package/toolbar/index.mjs +0 -2
  368. package/toolbar/style.css +0 -1
  369. package/toolbar-button/index.mjs +0 -2
  370. package/verify/index.mjs +0 -58
  371. package/verify/style.css +0 -1
  372. package/video/index.d.ts +0 -10
  373. package/vue-cron/index.mjs +0 -2
  374. package/vue-cron/style.css +0 -1
  375. package/vue-qr-code/index.mjs +0 -32
  376. package/vue-quill-editor/index.mjs +0 -127
  377. package/vue-quill-editor/style.css +0 -1
  378. package/vue-tags-input/index.mjs +0 -348
  379. package/vue-tags-input/style.css +0 -1
  380. package/vue-tree-select/index.mjs +0 -2
  381. package/vue-tree-select/style.css +0 -1
  382. package/vue-video-player/index.mjs +0 -136
  383. package/vue-video-player/style.css +0 -1
  384. package/watermark/index.mjs +0 -47
  385. package/watermark/style.css +0 -1
  386. package/x-input-tag/index.mjs +0 -142
  387. package/x-input-tag/style.css +0 -1
  388. /package/chunks/{_plugin-vue_export-helper.7vrlOII_.mjs → _plugin-vue_export-helper.CTBRVsXt.mjs} +0 -0
  389. /package/chunks/{packages.CONbEH13.mjs → packages.W76nKiMk.mjs} +0 -0
  390. /package/chunks/{permission.8WDtOmzA.mjs → permission.ZYdXiCsn.mjs} +0 -0
@@ -1,5100 +0,0 @@
1
- import { t as e } from "./_plugin-vue_export-helper.7vrlOII_.mjs";
2
- import t from "../highlight-j-s/index.mjs";
3
- import { createBlock as n, createCommentVNode as r, createElementBlock as i, createElementVNode as a, createTextVNode as o, createVNode as s, markRaw as c, mergeProps as l, normalizeClass as u, normalizeStyle as d, openBlock as f, renderSlot as p, resolveComponent as m, toDisplayString as h, vShow as g, withCtx as _, withDirectives as v, withModifiers as y } from "vue";
4
- import { isArray as b } from "@web-utils/core";
5
- import { assign as x, forEach as S, isArray as C, isFunction as w, isObject as T, some as E } from "min-dash";
6
- import { is as D } from "bpmn-js/lib/util/ModelUtil";
7
- import { isEventSubProcess as O, isExpanded as k } from "bpmn-js/lib/util/DiUtil";
8
- import { isAny as A } from "bpmn-js/lib/features/modeling/util/ModelingUtil";
9
- import { getChildLanes as j } from "bpmn-js/lib/features/modeling/util/LaneUtil";
10
- import { hasPrimaryModifier as M } from "diagram-js/lib/util/Mouse";
11
- import N from "bpmn-js/lib/features/palette/PaletteProvider";
12
- import P from "diagram-js/lib/features/auto-place/AutoPlace";
13
- import { asTRBL as F, getMid as I } from "diagram-js/lib/layout/LayoutUtil";
14
- import "bpmn-js/dist/assets/bpmn-js.css";
15
- import "bpmn-js/dist/assets/diagram-js.css";
16
- import "bpmn-js/dist/assets/bpmn-font/css/bpmn-embedded.css";
17
- import "bpmn-js-token-simulation/assets/css/bpmn-js-token-simulation.css";
18
- import L from "bpmn-js/lib/Modeler";
19
- import ee from "bpmn-js/lib/features/drilldown";
20
- import te from "bpmn-js-token-simulation";
21
- import R from "x2js";
22
- import ne from "highlight.js/lib/core";
23
- import re from "highlight.js/lib/languages/xml";
24
- import ie from "highlight.js/lib/languages/json";
25
- //#region src/components/bpmn-process-designer/plugins/content-pad/contentPadProvider.js
26
- function z(e, t, n, r, i, a, o, s, c, l, u, d, f) {
27
- e = e || {}, r.registerProvider(this), this._contextPad = r, this._modeling = i, this._elementFactory = a, this._connect = o, this._create = s, this._popupMenu = c, this._canvas = l, this._rules = u, this._translate = d, e.autoPlace !== !1 && (this._autoPlace = t.get("autoPlace", !1)), n.on("create.end", 250, function(e) {
28
- let t = e.context.shape;
29
- if (!M(e) || !r.isOpen(t)) return;
30
- let n = r.getEntries(t);
31
- n.replace && n.replace.action.click(e, t);
32
- });
33
- }
34
- z.$inject = [
35
- "config.contextPad",
36
- "injector",
37
- "eventBus",
38
- "contextPad",
39
- "modeling",
40
- "elementFactory",
41
- "connect",
42
- "create",
43
- "popupMenu",
44
- "canvas",
45
- "rules",
46
- "translate",
47
- "elementRegistry"
48
- ], z.prototype.getContextPadEntries = function(e) {
49
- let t = this._contextPad, n = this._modeling, r = this._elementFactory, i = this._connect, a = this._create, o = this._popupMenu, s = this._canvas, c = this._rules, l = this._autoPlace, u = this._translate, d = {};
50
- if (e.type === "label") return d;
51
- let f = e.businessObject;
52
- function p(e, t) {
53
- i.start(e, t);
54
- }
55
- function m() {
56
- n.removeElements([e]);
57
- }
58
- function h(e) {
59
- let n = s.getContainer(), r = t.getPad(e).html, i = n.getBoundingClientRect(), a = r.getBoundingClientRect(), o = a.top - i.top;
60
- return {
61
- x: a.left - i.left,
62
- y: o + a.height + 5
63
- };
64
- }
65
- function g(e, t, n, i) {
66
- typeof n != "string" && (i = n, n = u("Append {type}", { type: e.replace(/^bpmn:/, "") }));
67
- function o(t, n) {
68
- let o = r.createShape(x({ type: e }, i));
69
- a.start(t, o, { source: n });
70
- }
71
- return {
72
- group: "model",
73
- className: t,
74
- title: n,
75
- action: {
76
- dragstart: o,
77
- click: l ? function(t, n) {
78
- let a = r.createShape(x({ type: e }, i));
79
- l.append(n, a);
80
- } : o
81
- }
82
- };
83
- }
84
- function _(e) {
85
- return function(r, i) {
86
- n.splitLane(i, e), t.open(i, !0);
87
- };
88
- }
89
- if (A(f, ["bpmn:Lane", "bpmn:Participant"]) && k(f)) {
90
- let t = j(e);
91
- x(d, { "lane-insert-above": {
92
- group: "lane-insert-above",
93
- className: "bpmn-icon-lane-insert-above",
94
- title: u("Add Lane above"),
95
- action: { click: function(e, t) {
96
- n.addLane(t, "top");
97
- } }
98
- } }), t.length < 2 && (e.height >= 120 && x(d, { "lane-divide-two": {
99
- group: "lane-divide",
100
- className: "bpmn-icon-lane-divide-two",
101
- title: u("Divide into two Lanes"),
102
- action: { click: _(2) }
103
- } }), e.height >= 180 && x(d, { "lane-divide-three": {
104
- group: "lane-divide",
105
- className: "bpmn-icon-lane-divide-three",
106
- title: u("Divide into three Lanes"),
107
- action: { click: _(3) }
108
- } })), x(d, { "lane-insert-below": {
109
- group: "lane-insert-below",
110
- className: "bpmn-icon-lane-insert-below",
111
- title: u("Add Lane below"),
112
- action: { click: function(e, t) {
113
- n.addLane(t, "bottom");
114
- } }
115
- } });
116
- }
117
- D(f, "bpmn:FlowNode") && (D(f, "bpmn:EventBasedGateway") ? x(d, {
118
- "append.receive-task": g("bpmn:ReceiveTask", "bpmn-icon-receive-task", u("Append ReceiveTask")),
119
- "append.message-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-message", u("Append MessageIntermediateCatchEvent"), { eventDefinitionType: "bpmn:MessageEventDefinition" }),
120
- "append.timer-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-timer", u("Append TimerIntermediateCatchEvent"), { eventDefinitionType: "bpmn:TimerEventDefinition" }),
121
- "append.condition-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-condition", u("Append ConditionIntermediateCatchEvent"), { eventDefinitionType: "bpmn:ConditionalEventDefinition" }),
122
- "append.signal-intermediate-event": g("bpmn:IntermediateCatchEvent", "bpmn-icon-intermediate-event-catch-signal", u("Append SignalIntermediateCatchEvent"), { eventDefinitionType: "bpmn:SignalEventDefinition" })
123
- }) : ae(f, "bpmn:BoundaryEvent", "bpmn:CompensateEventDefinition") ? x(d, { "append.compensation-activity": g("bpmn:Task", "bpmn-icon-task", u("Append compensation activity"), { isForCompensation: !0 }) }) : !D(f, "bpmn:EndEvent") && !f.isForCompensation && !ae(f, "bpmn:IntermediateThrowEvent", "bpmn:LinkEventDefinition") && !O(f) && x(d, {
124
- "append.end-event": g("bpmn:EndEvent", "bpmn-icon-end-event-none", u("Append EndEvent")),
125
- "append.gateway": g("bpmn:ExclusiveGateway", "bpmn-icon-gateway-none", u("Append Gateway")),
126
- "append.append-task": g("bpmn:UserTask", "bpmn-icon-user-task", u("Append Task")),
127
- "append.intermediate-event": g("bpmn:IntermediateThrowEvent", "bpmn-icon-intermediate-event-none", u("Append Intermediate/Boundary Event"))
128
- })), o.isEmpty(e, "bpmn-replace") || x(d, { replace: {
129
- group: "edit",
130
- className: "bpmn-icon-screw-wrench",
131
- title: u("Change type"),
132
- action: { click: function(e, t) {
133
- let n = x(h(t), { cursor: {
134
- x: e.x,
135
- y: e.y
136
- } });
137
- o.open(t, "bpmn-replace", n);
138
- } }
139
- } }), A(f, [
140
- "bpmn:FlowNode",
141
- "bpmn:InteractionNode",
142
- "bpmn:DataObjectReference",
143
- "bpmn:DataStoreReference"
144
- ]) && x(d, {
145
- "append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation"),
146
- connect: {
147
- group: "connect",
148
- className: "bpmn-icon-connection-multi",
149
- title: u(`Connect using ${f.isForCompensation ? "" : "Sequence/MessageFlow or "}Association`),
150
- action: {
151
- click: p,
152
- dragstart: p
153
- }
154
- }
155
- }), A(f, ["bpmn:DataObjectReference", "bpmn:DataStoreReference"]) && x(d, { connect: {
156
- group: "connect",
157
- className: "bpmn-icon-connection-multi",
158
- title: u("Connect using DataInputAssociation"),
159
- action: {
160
- click: p,
161
- dragstart: p
162
- }
163
- } }), D(f, "bpmn:Group") && x(d, { "append.text-annotation": g("bpmn:TextAnnotation", "bpmn-icon-text-annotation") });
164
- let v = c.allowed("elements.delete", { elements: [e] });
165
- return C(v) && (v = v[0] === e), v && x(d, { delete: {
166
- group: "edit",
167
- className: "bpmn-icon-trash",
168
- title: u("Remove"),
169
- action: { click: m }
170
- } }), d;
171
- };
172
- function ae(e, t, n) {
173
- let r = e.$instanceOf(t), i = !1;
174
- return S(e.eventDefinitions || [], function(e) {
175
- e.$type === n && (i = !0);
176
- }), r && i;
177
- }
178
- //#endregion
179
- //#region src/components/bpmn-process-designer/plugins/content-pad/index.js
180
- var oe = {
181
- __init__: ["contextPadProvider"],
182
- contextPadProvider: ["type", z]
183
- };
184
- //#endregion
185
- //#region src/components/bpmn-process-designer/plugins/palette/CustomPalette.js
186
- function B(e, t, n, r, i, a, o, s, c) {
187
- N.call(this, e, t, n, r, i, a, o, s, c, 2e3), this._create = t, this._elementFactory = n, this._spaceTool = r, this._lassoTool = i, this._handTool = a, this._globalConnect = o, this._moddle = s, this._translate = c;
188
- }
189
- var V = function() {};
190
- V.prototype = N.prototype, V.prototype.getPaletteEntries = function() {
191
- let e = {}, t = this._create, n = this._elementFactory, r = this._spaceTool, i = this._lassoTool, a = this._handTool, o = this._globalConnect, s = this._translate;
192
- function c(e, r, i, a, o) {
193
- function c(r) {
194
- let i = n.createShape(x({ type: e }, o));
195
- e === "bpmn:UserTask" && (i.businessObject.candidateUsers = "${handlers}"), o && (i.businessObject.di.isExpanded = o.isExpanded), t.start(r, i);
196
- }
197
- let l = e.replace(/^bpmn:/, "");
198
- return {
199
- group: r,
200
- className: i,
201
- title: a || s("Create {type}", { type: l }),
202
- action: {
203
- dragstart: c,
204
- click: c
205
- }
206
- };
207
- }
208
- function l(e) {
209
- let r = n.createShape({
210
- type: "bpmn:SubProcess",
211
- x: 0,
212
- y: 0,
213
- isExpanded: !0
214
- }), i = n.createShape({
215
- type: "bpmn:StartEvent",
216
- x: 40,
217
- y: 82,
218
- parent: r
219
- });
220
- t.start(e, [r, i], { hints: { autoSelect: [i] } });
221
- }
222
- function u(e) {
223
- t.start(e, n.createParticipantShape());
224
- }
225
- return x(e, {
226
- "hand-tool": {
227
- group: "tools",
228
- className: "bpmn-icon-hand-tool",
229
- title: s("Activate the hand tool"),
230
- action: { click: function(e) {
231
- a.activateHand(e);
232
- } }
233
- },
234
- "lasso-tool": {
235
- group: "tools",
236
- className: "bpmn-icon-lasso-tool",
237
- title: s("Activate the lasso tool"),
238
- action: { click: function(e) {
239
- i.activateSelection(e);
240
- } }
241
- },
242
- "space-tool": {
243
- group: "tools",
244
- className: "bpmn-icon-space-tool",
245
- title: s("Activate the create/remove space tool"),
246
- action: { click: function(e) {
247
- r.activateSelection(e);
248
- } }
249
- },
250
- "global-connect-tool": {
251
- group: "tools",
252
- className: "bpmn-icon-connection-multi",
253
- title: s("Activate the global connect tool"),
254
- action: { click: function(e) {
255
- o.toggle(e);
256
- } }
257
- },
258
- "tool-separator": {
259
- group: "tools",
260
- separator: !0
261
- },
262
- "create.start-event": c("bpmn:StartEvent", "event", "bpmn-icon-start-event-none", s("Create StartEvent")),
263
- "create.intermediate-event": c("bpmn:IntermediateThrowEvent", "event", "bpmn-icon-intermediate-event-none", s("Create Intermediate/Boundary Event")),
264
- "create.user-task": c("bpmn:UserTask", "activity", "bpmn-icon-user-task", s("Create User Task")),
265
- "create.exclusive-gateway": c("bpmn:ExclusiveGateway", "activity", "bpmn-icon-gateway-none", s("Create Gateway")),
266
- "create.end-event": c("bpmn:EndEvent", "activity", "bpmn-icon-end-event-none", s("Create EndEvent")),
267
- "activity-separator": {
268
- group: "activity",
269
- separator: !0
270
- },
271
- "create.subprocess-expanded": {
272
- group: "activity",
273
- className: "bpmn-icon-subprocess-expanded",
274
- title: s("Create expanded SubProcess"),
275
- action: {
276
- dragstart: l,
277
- click: l
278
- }
279
- },
280
- "create.participant-expanded": {
281
- group: "collaboration",
282
- className: "bpmn-icon-participant",
283
- title: s("Create Pool/Participant"),
284
- action: {
285
- dragstart: u,
286
- click: u
287
- }
288
- }
289
- }), e;
290
- }, B.$inject = [
291
- "palette",
292
- "create",
293
- "elementFactory",
294
- "spaceTool",
295
- "lassoTool",
296
- "handTool",
297
- "globalConnect",
298
- "moddle",
299
- "translate"
300
- ], B.prototype = new V(), B.prototype.constructor = B;
301
- //#endregion
302
- //#region src/components/bpmn-process-designer/plugins/palette/index.js
303
- var se = {
304
- __init__: ["customPalette"],
305
- customPalette: ["type", B]
306
- };
307
- //#endregion
308
- //#region src/components/bpmn-process-designer/modules/auto-place/CustomAutoPlace.js
309
- function ce(e, t) {
310
- P.call(this, e, t, 3e3), e.on("autoPlace", 3e3, function(e) {
311
- let t = e.shape, n = e.source;
312
- return fe(n, t);
313
- }), this.append = function(n, r, i) {
314
- e.fire("autoPlace.start", {
315
- source: n,
316
- shape: r
317
- });
318
- let a = e.fire("autoPlace", {
319
- source: n,
320
- shape: r
321
- });
322
- console.log("hints", i, "position", a);
323
- let o = t.appendShape(n, r, a, n.parent, i);
324
- return e.fire("autoPlace.end", {
325
- source: n,
326
- shape: o
327
- }), o;
328
- };
329
- }
330
- function le(e) {
331
- return {
332
- top: e.y,
333
- right: e.x + (e.width || 0),
334
- bottom: e.y + (e.height || 0),
335
- left: e.x
336
- };
337
- }
338
- function ue(e) {
339
- return {
340
- x: Math.round(e.x),
341
- y: Math.round(e.y)
342
- };
343
- }
344
- function de(e) {
345
- return ue({
346
- x: e.x + (e.width || 0) / 2,
347
- y: e.y + (e.height || 0) / 2
348
- });
349
- }
350
- function fe(e, t, n) {
351
- n || (n = {});
352
- let r = n.defaultDistance || 50, i = de(e), a = le(e);
353
- return {
354
- x: i.x,
355
- y: a.bottom + r + t.height / 2
356
- };
357
- }
358
- var pe = function() {};
359
- pe.prototype = P.prototype, ce.prototype = new pe(), ce.prototype.constructor = P;
360
- //#endregion
361
- //#region src/components/bpmn-process-designer/modules/auto-place/rewriteAutoPlace.js
362
- var me = 200, he = 100;
363
- function ge(e, t, n) {
364
- e.on("autoPlace", he, function(e) {
365
- let t = e.shape, n = e.source;
366
- return _e(n, t);
367
- }), e.on("autoPlace.end", function(e) {
368
- n.scrollToElement(e.shape);
369
- }), this.append = function(n, r, i) {
370
- e.fire("autoPlace.start", {
371
- source: n,
372
- shape: r
373
- });
374
- let a = e.fire("autoPlace", {
375
- source: n,
376
- shape: r
377
- }), o = t.appendShape(n, r, a, n.parent, i);
378
- return e.fire("autoPlace.end", {
379
- source: n,
380
- shape: o
381
- }), o;
382
- };
383
- }
384
- ge.$inject = [
385
- "eventBus",
386
- "modeling",
387
- "canvas"
388
- ];
389
- function _e(e, t) {
390
- let n = me, r = I(e);
391
- return {
392
- x: F(e).right + n + t.width / 2,
393
- y: r.y
394
- };
395
- }
396
- //#endregion
397
- //#region src/components/bpmn-process-designer/modules/auto-place/index.js
398
- var ve = {
399
- __init__: ["autoPlaceSelectionBehavior"],
400
- autoPlace: ["type", ge]
401
- }, ye = [
402
- "base",
403
- "task",
404
- "form",
405
- "multiInstance"
406
- ], be = {
407
- name: "PropertiesPanel",
408
- componentName: "MyPropertiesPanel",
409
- components: {
410
- UserTaskListeners: () => import("./UserTaskListeners.Qfm8hKWP.mjs"),
411
- ElementForm: () => import("./ElementForm.C7yebHWH.mjs"),
412
- ElementProperties: () => import("./ElementProperties.DKr9JE_O.mjs"),
413
- ElementListeners: () => import("./ElementListeners.B_SjC8dp.mjs"),
414
- SignalAndMassage: () => import("./SignalAndMessage.CL2u19it.mjs"),
415
- FlowCondition: () => import("./FlowCondition.BA7GF34X.mjs"),
416
- ElementMultiInstance: () => import("./ElementMultiInstance.Xw27Z5mm.mjs"),
417
- ElementTask: () => import("./ElementTaskConfig.CPjsXlpS.mjs"),
418
- ElementOtherConfig: () => import("./ElementOtherConfig.DnNmAhKn.mjs"),
419
- ElementBaseInfo: () => import("./ElementBaseInfo.lW0iwU10.mjs")
420
- },
421
- provide() {
422
- return {
423
- prefix: this.prefix,
424
- width: this.width,
425
- context: this.context,
426
- bpmnInstances: this.bpmnInstances
427
- };
428
- },
429
- props: {
430
- activeTabs: {
431
- type: Array,
432
- default: () => [
433
- "base",
434
- "task",
435
- "form",
436
- "multiInstance"
437
- ]
438
- },
439
- useTabs: Array,
440
- bpmnModeler: Object,
441
- context: Object,
442
- prefix: {
443
- type: String,
444
- default: "camunda"
445
- },
446
- width: {
447
- type: Number,
448
- default: 480
449
- },
450
- idEditDisabled: {
451
- type: Boolean,
452
- default: !1
453
- },
454
- panelType: { type: String }
455
- },
456
- emits: ["initModels"],
457
- data() {
458
- return {
459
- element: {},
460
- bpmnInstances: {},
461
- activeTab: this.panelType === "tab" ? "base" : ["base"],
462
- elementId: "",
463
- elementType: "",
464
- conditionFormVisible: !1,
465
- formVisible: !1,
466
- isPanelVisible: !0
467
- };
468
- },
469
- computed: {
470
- isArray() {
471
- return Array.isArray(this.useTabs);
472
- },
473
- isNullOrUndefined() {
474
- return this.useTabs === null || this.useTabs === void 0;
475
- },
476
- isTab() {
477
- return this.panelType === "tab";
478
- }
479
- },
480
- watch: {
481
- activeTabs: {
482
- immediate: !0,
483
- handler() {
484
- this.activeTab = this.isTab ? "base" : ye;
485
- }
486
- },
487
- elementId: { handler() {
488
- this.activeTab = this.isTab ? "base" : ye;
489
- } },
490
- isTab: {
491
- immediate: !0,
492
- handler(e) {
493
- e ? this.activeTab = "base" : this.activeTab = ["base"];
494
- }
495
- }
496
- },
497
- created() {
498
- this.initModels();
499
- },
500
- methods: {
501
- initModels() {
502
- if (!this.bpmnModeler) {
503
- this.timer = setTimeout(() => this.initModels(), 10);
504
- return;
505
- }
506
- this.timer && clearTimeout(this.timer), this.bpmnInstances = c({
507
- modeler: this.bpmnModeler,
508
- modeling: this.bpmnModeler.get("modeling"),
509
- moddle: this.bpmnModeler.get("moddle"),
510
- eventBus: this.bpmnModeler.get("eventBus"),
511
- bpmnFactory: this.bpmnModeler.get("bpmnFactory"),
512
- elementFactory: this.bpmnModeler.get("elementFactory"),
513
- elementRegistry: this.bpmnModeler.get("elementRegistry"),
514
- replace: this.bpmnModeler.get("replace"),
515
- selection: this.bpmnModeler.get("selection")
516
- }), this.$emit("initModels", this.bpmnInstances), this.getActiveElement();
517
- },
518
- getActiveElement() {
519
- this.initFormOnChanged(null), this.bpmnModeler.on("import.done", () => {
520
- this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), this.initFormOnChanged(null);
521
- }), this.bpmnModeler.on("selection.changed", ({ newSelection: e }) => {
522
- this.initFormOnChanged(e[0] || null);
523
- }), this.bpmnModeler.on("element.changed", ({ element: e }) => {
524
- e && e.id === this.elementId && this.initFormOnChanged(e);
525
- });
526
- },
527
- initFormOnChanged(e) {
528
- let t = e;
529
- t || (t = this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Process") ?? this.bpmnInstances.elementRegistry.find((e) => e.type === "bpmn:Collaboration")), t && (this.element = c(t), this.elementId = t.id, this.elementType = t.type.split(":")[1] || "", this.conditionFormVisible = !!(this.elementType === "SequenceFlow" && t.source && t.source.type.indexOf("StartEvent") === -1), this.formVisible = this.elementType === "UserTask");
530
- }
531
- }
532
- }, xe = { style: {
533
- height: "40px",
534
- "line-height": "40px"
535
- } }, Se = { class: "panel-tab__title" }, Ce = { class: "panel-tab__title" };
536
- function we(e, t, c, l, b, x) {
537
- var S;
538
- let C = m("ElementBaseInfo"), w = m("ElTabPane"), T = m("SignalAndMassage"), E = m("ElementForm"), D = m("ElementTask"), O = m("ElementMultiInstance"), k = m("ElementListeners"), A = m("UserTaskListeners"), j = m("ElementProperties"), M = m("ElementOtherConfig"), N = m("ElTabs"), P = m("ElCollapseItem"), F = m("FlowCondition"), I = m("ElTooltip"), L = m("ElCollapse");
539
- return f(), i("div", {
540
- class: u(["process-panel__container", {
541
- show: b.isPanelVisible,
542
- hide: !b.isPanelVisible
543
- }]),
544
- style: d({ width: `${b.isPanelVisible ? c.width : 34}px` }),
545
- onClick: t[3] || (t[3] = (e) => b.isPanelVisible = !0)
546
- }, [a("div", xe, [a("i", {
547
- class: u(["open-properties-handel", b.isPanelVisible ? "el-icon-caret-right" : "el-icon-caret-left"]),
548
- onClick: t[0] || (t[0] = y((e) => b.isPanelVisible = !b.isPanelVisible, ["stop"]))
549
- }, null, 2), o(" " + h(b.isPanelVisible ? (S = b.element) == null || (S = S.businessObject) == null ? void 0 : S.name : ""), 1)]), c.panelType === "tab" ? v((f(), n(N, {
550
- key: 0,
551
- modelValue: b.activeTab,
552
- "onUpdate:modelValue": t[1] || (t[1] = (e) => b.activeTab = e)
553
- }, {
554
- default: _(() => [
555
- r(" 常规 "),
556
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("base") ? (f(), n(w, {
557
- key: 0,
558
- label: "常规",
559
- name: "base",
560
- lazy: ""
561
- }, {
562
- default: _(() => [s(C, {
563
- id: b.elementId,
564
- "id-edit-disabled": c.idEditDisabled,
565
- type: b.elementType,
566
- element: b.element,
567
- "bpmn-instances": b.bpmnInstances
568
- }, null, 8, [
569
- "id",
570
- "id-edit-disabled",
571
- "type",
572
- "element",
573
- "bpmn-instances"
574
- ])]),
575
- _: 1
576
- })) : r("v-if", !0),
577
- r(" 消息与信号 "),
578
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("message")) && b.elementType === "Process" ? (f(), n(w, {
579
- key: 1,
580
- label: "消息与信号",
581
- name: "message",
582
- lazy: ""
583
- }, {
584
- default: _(() => [s(T, { "bpmn-instances": b.bpmnInstances }, null, 8, ["bpmn-instances"])]),
585
- _: 1
586
- })) : r("v-if", !0),
587
- r(" 流转条件 "),
588
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("condition")) && b.conditionFormVisible ? (f(), n(w, {
589
- key: 2,
590
- label: "流转条件",
591
- name: "condition",
592
- lazy: ""
593
- }, {
594
- default: _(() => [s(T, { "bpmn-instances": b.bpmnInstances }, null, 8, ["bpmn-instances"])]),
595
- _: 1
596
- })) : r("v-if", !0),
597
- r(" 表单 "),
598
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("form") ? p(e.$slots, "form", {
599
- key: 3,
600
- id: b.elementId,
601
- bpmnInstances: b.bpmnInstances,
602
- element: b.element,
603
- type: b.elementType
604
- }, () => [(x.isNullOrUndefined || x.isArray && c.useTabs.includes("base")) && b.formVisible ? (f(), n(w, {
605
- key: "form",
606
- label: "表单",
607
- name: "form",
608
- lazy: ""
609
- }, {
610
- default: _(() => [s(E, {
611
- id: b.elementId,
612
- "bpmn-instances": b.bpmnInstances,
613
- element: b.element,
614
- type: b.elementType
615
- }, null, 8, [
616
- "id",
617
- "bpmn-instances",
618
- "element",
619
- "type"
620
- ])]),
621
- _: 1
622
- })) : r("v-if", !0)]) : r("v-if", !0),
623
- r(" 任务 "),
624
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("task") ? p(e.$slots, "task", {
625
- key: 4,
626
- id: b.elementId,
627
- bpmnInstances: b.bpmnInstances,
628
- element: b.element,
629
- type: b.elementType
630
- }, () => [b.elementType.indexOf("Task") === -1 ? r("v-if", !0) : (f(), n(w, {
631
- key: "task",
632
- label: "任务",
633
- name: "task",
634
- lazy: ""
635
- }, {
636
- default: _(() => [s(D, {
637
- id: b.elementId,
638
- "bpmn-instances": b.bpmnInstances,
639
- element: b.element,
640
- type: b.elementType
641
- }, null, 8, [
642
- "id",
643
- "bpmn-instances",
644
- "element",
645
- "type"
646
- ])]),
647
- _: 1
648
- }))]) : r("v-if", !0),
649
- r(" 多实例 "),
650
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("multiInstance")) && b.elementType.indexOf("Task") !== -1 ? (f(), n(w, {
651
- key: "multiInstance",
652
- label: "多实例",
653
- name: "multiInstance",
654
- lazy: ""
655
- }, {
656
- default: _(() => [s(O, {
657
- id: b.elementId,
658
- "bpmn-instances": b.bpmnInstances,
659
- element: b.element,
660
- type: b.elementType
661
- }, null, 8, [
662
- "id",
663
- "bpmn-instances",
664
- "element",
665
- "type"
666
- ])]),
667
- _: 1
668
- })) : r("v-if", !0),
669
- r(" 执行监听器 "),
670
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("listeners") ? (f(), n(w, {
671
- key: "listeners",
672
- label: "执行监听器",
673
- name: "listeners",
674
- lazy: ""
675
- }, {
676
- default: _(() => [s(k, {
677
- id: b.elementId,
678
- "bpmn-instances": b.bpmnInstances,
679
- element: b.element,
680
- type: b.elementType
681
- }, null, 8, [
682
- "id",
683
- "bpmn-instances",
684
- "element",
685
- "type"
686
- ])]),
687
- _: 1
688
- })) : r("v-if", !0),
689
- r(" 任务监听器 "),
690
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("taskListeners")) && b.elementType === "UserTask" ? (f(), n(w, {
691
- key: "taskListeners",
692
- label: "任务监听器",
693
- name: "taskListeners",
694
- lazy: ""
695
- }, {
696
- default: _(() => [s(A, {
697
- id: b.elementId,
698
- "bpmn-instances": b.bpmnInstances,
699
- element: b.element,
700
- type: b.elementType
701
- }, null, 8, [
702
- "id",
703
- "bpmn-instances",
704
- "element",
705
- "type"
706
- ])]),
707
- _: 1
708
- })) : r("v-if", !0),
709
- r(" 扩展属性 "),
710
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("extensions") ? (f(), n(w, {
711
- key: "extensions",
712
- label: "扩展属性",
713
- name: "extensions",
714
- lazy: ""
715
- }, {
716
- default: _(() => [s(j, {
717
- id: b.elementId,
718
- "bpmn-instances": b.bpmnInstances,
719
- element: b.element,
720
- type: b.elementType
721
- }, null, 8, [
722
- "id",
723
- "bpmn-instances",
724
- "element",
725
- "type"
726
- ])]),
727
- _: 1
728
- })) : r("v-if", !0),
729
- r(" 其他 "),
730
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("other") ? (f(), n(w, {
731
- key: "other",
732
- label: "其他",
733
- name: "other",
734
- lazy: ""
735
- }, {
736
- default: _(() => [s(M, {
737
- id: b.elementId,
738
- element: b.element,
739
- "bpmn-instances": b.bpmnInstances
740
- }, null, 8, [
741
- "id",
742
- "element",
743
- "bpmn-instances"
744
- ])]),
745
- _: 1
746
- })) : r("v-if", !0),
747
- r(" 拓展 "),
748
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("extend") ? p(e.$slots, "extend", {
749
- key: 10,
750
- id: b.elementId,
751
- bpmnInstances: b.bpmnInstances,
752
- element: b.element,
753
- type: b.elementType
754
- }) : r("v-if", !0)
755
- ]),
756
- _: 3
757
- }, 8, ["modelValue"])), [[g, b.isPanelVisible]]) : v((f(), n(L, {
758
- key: 1,
759
- modelValue: b.activeTab,
760
- "onUpdate:modelValue": t[2] || (t[2] = (e) => b.activeTab = e)
761
- }, {
762
- default: _(() => [
763
- r(" 常规 "),
764
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("base") ? (f(), n(P, {
765
- key: 0,
766
- name: "base"
767
- }, {
768
- title: _(() => [...t[4] || (t[4] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-info" }), o("常规")], -1)])]),
769
- default: _(() => [s(C, {
770
- id: b.elementId,
771
- "id-edit-disabled": c.idEditDisabled,
772
- type: b.elementType,
773
- element: b.element,
774
- "bpmn-instances": b.bpmnInstances
775
- }, null, 8, [
776
- "id",
777
- "id-edit-disabled",
778
- "type",
779
- "element",
780
- "bpmn-instances"
781
- ])]),
782
- _: 1
783
- })) : r("v-if", !0),
784
- r(" 消息与信号 "),
785
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("message")) && b.elementType === "Process" ? (f(), n(P, {
786
- key: "message",
787
- name: "message"
788
- }, {
789
- title: _(() => [...t[5] || (t[5] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-comment" }), o("消息与信号")], -1)])]),
790
- default: _(() => [s(T, { "bpmn-instances": b.bpmnInstances }, null, 8, ["bpmn-instances"])]),
791
- _: 1
792
- })) : r("v-if", !0),
793
- r(" 流转条件 "),
794
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("condition")) && b.conditionFormVisible ? (f(), n(P, {
795
- key: "condition",
796
- name: "condition"
797
- }, {
798
- title: _(() => [...t[6] || (t[6] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-promotion" }), o("流转条件")], -1)])]),
799
- default: _(() => [s(F, {
800
- id: b.elementId,
801
- element: b.element,
802
- "bpmn-instances": b.bpmnInstances,
803
- type: b.elementType
804
- }, null, 8, [
805
- "id",
806
- "element",
807
- "bpmn-instances",
808
- "type"
809
- ])]),
810
- _: 1
811
- })) : r("v-if", !0),
812
- r(" 表单 "),
813
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("form") ? p(e.$slots, "form", {
814
- key: 3,
815
- id: b.elementId,
816
- bpmnInstances: b.bpmnInstances,
817
- element: b.element,
818
- type: b.elementType
819
- }, () => [(x.isNullOrUndefined || x.isArray && c.useTabs.includes("base")) && b.formVisible ? (f(), n(P, {
820
- key: "form",
821
- name: "form"
822
- }, {
823
- title: _(() => [...t[7] || (t[7] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-order" }), o("表单")], -1)])]),
824
- default: _(() => [s(E, {
825
- id: b.elementId,
826
- "bpmn-instances": b.bpmnInstances,
827
- element: b.element,
828
- type: b.elementType
829
- }, null, 8, [
830
- "id",
831
- "bpmn-instances",
832
- "element",
833
- "type"
834
- ])]),
835
- _: 1
836
- })) : r("v-if", !0)]) : r("v-if", !0),
837
- r(" 任务 "),
838
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("task") ? p(e.$slots, "task", {
839
- key: 4,
840
- id: b.elementId,
841
- bpmnInstances: b.bpmnInstances,
842
- element: b.element,
843
- type: b.elementType
844
- }, () => [b.elementType.indexOf("Task") === -1 ? r("v-if", !0) : (f(), n(P, {
845
- key: "task",
846
- name: "task"
847
- }, {
848
- title: _(() => [...t[8] || (t[8] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-claim" }), o("任务")], -1)])]),
849
- default: _(() => [s(D, {
850
- id: b.elementId,
851
- "bpmn-instances": b.bpmnInstances,
852
- element: b.element,
853
- type: b.elementType
854
- }, null, 8, [
855
- "id",
856
- "bpmn-instances",
857
- "element",
858
- "type"
859
- ])]),
860
- _: 1
861
- }))]) : r("v-if", !0),
862
- r(" 多实例 "),
863
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("multiInstance")) && b.elementType.indexOf("Task") !== -1 ? (f(), n(P, {
864
- key: "multiInstance",
865
- name: "multiInstance"
866
- }, {
867
- title: _(() => [...t[9] || (t[9] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-help" }), o("多实例")], -1)])]),
868
- default: _(() => [s(O, {
869
- id: b.elementId,
870
- "bpmn-instances": b.bpmnInstances,
871
- element: b.element,
872
- type: b.elementType
873
- }, null, 8, [
874
- "id",
875
- "bpmn-instances",
876
- "element",
877
- "type"
878
- ])]),
879
- _: 1
880
- })) : r("v-if", !0),
881
- r(" 执行监听器 "),
882
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("listeners") ? (f(), n(P, {
883
- key: "listeners",
884
- name: "listeners"
885
- }, {
886
- title: _(() => [a("div", Se, [
887
- t[12] || (t[12] = a("i", { class: "el-icon-message-solid" }, null, -1)),
888
- t[13] || (t[13] = o("执行监听器", -1)),
889
- s(I, { effect: "light" }, {
890
- content: _(() => [...t[10] || (t[10] = [a("p", null, "发送和退回时会触发", -1)])]),
891
- default: _(() => [t[11] || (t[11] = a("i", { class: "el-icon-info" }, null, -1))]),
892
- _: 1
893
- })
894
- ])]),
895
- default: _(() => [s(k, {
896
- id: b.elementId,
897
- "bpmn-instances": b.bpmnInstances,
898
- element: b.element,
899
- type: b.elementType
900
- }, null, 8, [
901
- "id",
902
- "bpmn-instances",
903
- "element",
904
- "type"
905
- ])]),
906
- _: 1
907
- })) : r("v-if", !0),
908
- r(" 任务监听器 "),
909
- (x.isNullOrUndefined || x.isArray && c.useTabs.includes("taskListeners")) && b.elementType === "UserTask" ? (f(), n(P, {
910
- key: "taskListeners",
911
- name: "taskListeners"
912
- }, {
913
- title: _(() => [a("div", Ce, [
914
- t[16] || (t[16] = a("i", { class: "el-icon-message-solid" }, null, -1)),
915
- t[17] || (t[17] = o("任务监听器", -1)),
916
- s(I, { effect: "light" }, {
917
- content: _(() => [...t[14] || (t[14] = [a("p", null, "任务实例的创建、指派、完成、删除、更新、超时会触发", -1)])]),
918
- default: _(() => [t[15] || (t[15] = a("i", { class: "el-icon-info" }, null, -1))]),
919
- _: 1
920
- })
921
- ])]),
922
- default: _(() => [s(A, {
923
- id: b.elementId,
924
- "bpmn-instances": b.bpmnInstances,
925
- element: b.element,
926
- type: b.elementType
927
- }, null, 8, [
928
- "id",
929
- "bpmn-instances",
930
- "element",
931
- "type"
932
- ])]),
933
- _: 1
934
- })) : r("v-if", !0),
935
- r(" 扩展属性 "),
936
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("extensions") ? (f(), n(P, {
937
- key: "extensions",
938
- name: "extensions"
939
- }, {
940
- title: _(() => [...t[18] || (t[18] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-circle-plus" }), o("扩展属性")], -1)])]),
941
- default: _(() => [s(j, {
942
- id: b.elementId,
943
- "bpmn-instances": b.bpmnInstances,
944
- element: b.element,
945
- type: b.elementType
946
- }, null, 8, [
947
- "id",
948
- "bpmn-instances",
949
- "element",
950
- "type"
951
- ])]),
952
- _: 1
953
- })) : r("v-if", !0),
954
- r(" 其他 "),
955
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("other") ? (f(), n(P, {
956
- key: "other",
957
- name: "other"
958
- }, {
959
- title: _(() => [...t[19] || (t[19] = [a("div", { class: "panel-tab__title" }, [a("i", { class: "el-icon-s-promotion" }), o("其他")], -1)])]),
960
- default: _(() => [s(M, {
961
- id: b.elementId,
962
- element: b.element,
963
- "bpmn-instances": b.bpmnInstances
964
- }, null, 8, [
965
- "id",
966
- "element",
967
- "bpmn-instances"
968
- ])]),
969
- _: 1
970
- })) : r("v-if", !0),
971
- r(" 拓展 "),
972
- x.isNullOrUndefined || x.isArray && c.useTabs.includes("extend") ? p(e.$slots, "extend", {
973
- key: 10,
974
- id: b.elementId,
975
- bpmnInstances: b.bpmnInstances,
976
- element: b.element,
977
- type: b.elementType
978
- }) : r("v-if", !0)
979
- ]),
980
- _: 3
981
- }, 8, ["modelValue"])), [[g, b.isPanelVisible]])], 6);
982
- }
983
- var Te = /* @__PURE__ */ e(be, [["render", we]]), Ee = (e, t, n) => (n = n || "camunda", `<?xml version="1.0" encoding="UTF-8"?>
984
- <bpmn2:definitions
985
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
986
- xmlns:bpmn2="http://www.omg.org/spec/BPMN/20100524/MODEL"
987
- xmlns:bpmndi="http://www.omg.org/spec/BPMN/20100524/DI"
988
- xmlns:dc="http://www.omg.org/spec/DD/20100524/DC"
989
- xmlns:di="http://www.omg.org/spec/DD/20100524/DI"
990
- id="diagram_${e}"
991
- targetNamespace="${{
992
- activiti: "http://activiti.org/bpmn",
993
- camunda: "http://bpmn.io/schema/bpmn",
994
- flowable: "http://flowable.org/bpmn"
995
- }[n]}">
996
- <bpmn2:process id="${e}" name="${t}" isExecutable="true">
997
- </bpmn2:process>
998
- <bpmndi:BPMNDiagram id="BPMNDiagram_1">
999
- <bpmndi:BPMNPlane id="BPMNPlane_1" bpmnElement="${e}">
1000
- </bpmndi:BPMNPlane>
1001
- </bpmndi:BPMNDiagram>
1002
- </bpmn2:definitions>`);
1003
- //#endregion
1004
- //#region src/components/bpmn-process-designer/plugins/translate/customTranslate.js
1005
- function De(e) {
1006
- return function(t, n) {
1007
- return n = n || {}, t = e[t] || t, t.replace(/{([^}]+)}/g, function(t, r) {
1008
- let i = n[r];
1009
- return e[n[r]] !== null && e[n[r]] !== void 0 && (i = e[n[r]]), i || `{${r}}`;
1010
- });
1011
- };
1012
- }
1013
- //#endregion
1014
- //#region src/components/bpmn-process-designer/plugins/translate/zh.js
1015
- var Oe = {
1016
- "Append EndEvent": "追加结束事件",
1017
- "Append Gateway": "追加网关",
1018
- "Append Task": "追加任务",
1019
- "Append Intermediate/Boundary Event": "追加中间抛出事件/边界事件",
1020
- "Activate the global connect tool": "激活全局连接工具",
1021
- "Append {type}": "添加 {type}",
1022
- "Add Lane above": "在上面添加道",
1023
- "Divide into two Lanes": "分割成两个道",
1024
- "Divide into three Lanes": "分割成三个道",
1025
- "Add Lane below": "在下面添加道",
1026
- "Append compensation activity": "追加补偿活动",
1027
- "Change type": "修改类型",
1028
- "Connect using Association": "使用关联连接",
1029
- "Connect using Sequence/MessageFlow or Association": "使用顺序/消息流或者关联连接",
1030
- "Connect using DataInputAssociation": "使用数据输入关联连接",
1031
- Remove: "移除",
1032
- "Activate the hand tool": "激活抓手工具",
1033
- "Activate the lasso tool": "激活套索工具",
1034
- "Activate the create/remove space tool": "激活创建/删除空间工具",
1035
- "Create expanded SubProcess": "创建扩展子过程",
1036
- "Create IntermediateThrowEvent/BoundaryEvent": "创建中间抛出事件/边界事件",
1037
- "Create Pool/Participant": "创建池/参与者",
1038
- "Parallel Multi Instance": "并行多重事件",
1039
- "Sequential Multi Instance": "时序多重事件",
1040
- DataObjectReference: "数据对象参考",
1041
- DataStoreReference: "数据存储参考",
1042
- Loop: "循环",
1043
- "Ad-hoc": "即席",
1044
- "Create {type}": "创建 {type}",
1045
- Task: "任务",
1046
- "Send Task": "发送任务",
1047
- "Receive Task": "接收任务",
1048
- "User Task": "用户任务",
1049
- "Manual Task": "手工任务",
1050
- "Business Rule Task": "业务规则任务",
1051
- "Service Task": "服务任务",
1052
- "Script Task": "脚本任务",
1053
- "Call Activity": "调用活动",
1054
- "Sub Process (collapsed)": "子流程(折叠的)",
1055
- "Sub Process (expanded)": "子流程(展开的)",
1056
- "Start Event": "开始事件",
1057
- StartEvent: "开始事件",
1058
- "Intermediate Throw Event": "中间事件",
1059
- "End Event": "结束事件",
1060
- EndEvent: "结束事件",
1061
- "Create StartEvent": "创建开始事件",
1062
- "Create EndEvent": "创建结束事件",
1063
- "Create Task": "创建任务",
1064
- "Create User Task": "创建用户任务",
1065
- "Create Gateway": "创建网关",
1066
- "Create DataObjectReference": "创建数据对象",
1067
- "Create DataStoreReference": "创建数据存储",
1068
- "Create Group": "创建分组",
1069
- "Create Intermediate/Boundary Event": "创建中间/边界事件",
1070
- "Message Start Event": "消息开始事件",
1071
- "Timer Start Event": "定时开始事件",
1072
- "Conditional Start Event": "条件开始事件",
1073
- "Signal Start Event": "信号开始事件",
1074
- "Error Start Event": "错误开始事件",
1075
- "Escalation Start Event": "升级开始事件",
1076
- "Compensation Start Event": "补偿开始事件",
1077
- "Message Start Event (non-interrupting)": "消息开始事件(非中断)",
1078
- "Timer Start Event (non-interrupting)": "定时开始事件(非中断)",
1079
- "Conditional Start Event (non-interrupting)": "条件开始事件(非中断)",
1080
- "Signal Start Event (non-interrupting)": "信号开始事件(非中断)",
1081
- "Escalation Start Event (non-interrupting)": "升级开始事件(非中断)",
1082
- "Message Intermediate Catch Event": "消息中间捕获事件",
1083
- "Message Intermediate Throw Event": "消息中间抛出事件",
1084
- "Timer Intermediate Catch Event": "定时中间捕获事件",
1085
- "Escalation Intermediate Throw Event": "升级中间抛出事件",
1086
- "Conditional Intermediate Catch Event": "条件中间捕获事件",
1087
- "Link Intermediate Catch Event": "链接中间捕获事件",
1088
- "Link Intermediate Throw Event": "链接中间抛出事件",
1089
- "Compensation Intermediate Throw Event": "补偿中间抛出事件",
1090
- "Signal Intermediate Catch Event": "信号中间捕获事件",
1091
- "Signal Intermediate Throw Event": "信号中间抛出事件",
1092
- "Message End Event": "消息结束事件",
1093
- "Escalation End Event": "定时结束事件",
1094
- "Error End Event": "错误结束事件",
1095
- "Cancel End Event": "取消结束事件",
1096
- "Compensation End Event": "补偿结束事件",
1097
- "Signal End Event": "信号结束事件",
1098
- "Terminate End Event": "终止结束事件",
1099
- "Message Boundary Event": "消息边界事件",
1100
- "Message Boundary Event (non-interrupting)": "消息边界事件(非中断)",
1101
- "Timer Boundary Event": "定时边界事件",
1102
- "Timer Boundary Event (non-interrupting)": "定时边界事件(非中断)",
1103
- "Escalation Boundary Event": "升级边界事件",
1104
- "Escalation Boundary Event (non-interrupting)": "升级边界事件(非中断)",
1105
- "Conditional Boundary Event": "条件边界事件",
1106
- "Conditional Boundary Event (non-interrupting)": "条件边界事件(非中断)",
1107
- "Error Boundary Event": "错误边界事件",
1108
- "Cancel Boundary Event": "取消边界事件",
1109
- "Signal Boundary Event": "信号边界事件",
1110
- "Signal Boundary Event (non-interrupting)": "信号边界事件(非中断)",
1111
- "Compensation Boundary Event": "补偿边界事件",
1112
- "Exclusive Gateway": "互斥网关",
1113
- "Parallel Gateway": "并行网关",
1114
- "Inclusive Gateway": "相容网关",
1115
- "Complex Gateway": "复杂网关",
1116
- "Event based Gateway": "事件网关",
1117
- Transaction: "转运",
1118
- "Sub Process": "子流程",
1119
- "Event Sub Process": "事件子流程",
1120
- "Collapsed Pool": "折叠池",
1121
- "Expanded Pool": "展开池",
1122
- "no parent for {element} in {parent}": "在{parent}里,{element}没有父类",
1123
- "no shape type specified": "没有指定的形状类型",
1124
- "flow elements must be children of pools/participants": "流元素必须是池/参与者的子类",
1125
- "out of bounds release": "out of bounds release",
1126
- "more than {count} child lanes": "子道大于{count} ",
1127
- "element required": "元素不能为空",
1128
- "diagram not part of bpmn:Definitions": "流程图不符合bpmn规范",
1129
- "no diagram to display": "没有可展示的流程图",
1130
- "no process or collaboration to display": "没有可展示的流程/协作",
1131
- "element {element} referenced by {referenced}#{property} not yet drawn": "由{referenced}#{property}引用的{element}元素仍未绘制",
1132
- "already rendered {element}": "{element} 已被渲染",
1133
- "failed to import {element}": "导入{element}失败",
1134
- Id: "编号",
1135
- Name: "名称",
1136
- General: "常规",
1137
- Details: "详情",
1138
- "Message Name": "消息名称",
1139
- Message: "消息",
1140
- Initiator: "创建者",
1141
- "Asynchronous Continuations": "持续异步",
1142
- "Asynchronous Before": "异步前",
1143
- "Asynchronous After": "异步后",
1144
- "Job Configuration": "工作配置",
1145
- Exclusive: "排除",
1146
- "Job Priority": "工作优先级",
1147
- "Retry Time Cycle": "重试时间周期",
1148
- Documentation: "文档",
1149
- "Element Documentation": "元素文档",
1150
- "History Configuration": "历史配置",
1151
- "History Time To Live": "历史的生存时间",
1152
- Forms: "表单",
1153
- "Form Key": "表单key",
1154
- "Form Fields": "表单字段",
1155
- "Business Key": "业务key",
1156
- "Form Field": "表单字段",
1157
- ID: "编号",
1158
- Type: "类型",
1159
- Label: "名称",
1160
- "Default Value": "默认值",
1161
- "Default Flow": "默认流转路径",
1162
- "Conditional Flow": "条件流转路径",
1163
- "Sequence Flow": "普通流转路径",
1164
- Validation: "校验",
1165
- "Add Constraint": "添加约束",
1166
- Config: "配置",
1167
- Properties: "属性",
1168
- "Add Property": "添加属性",
1169
- Value: "值",
1170
- Listeners: "监听器",
1171
- "Execution Listener": "执行监听",
1172
- "Event Type": "事件类型",
1173
- "Listener Type": "监听器类型",
1174
- "Java Class": "Java类",
1175
- Expression: "表达式",
1176
- "Must provide a value": "必须提供一个值",
1177
- "Delegate Expression": "代理表达式",
1178
- Script: "脚本",
1179
- "Script Format": "脚本格式",
1180
- "Script Type": "脚本类型",
1181
- "Inline Script": "内联脚本",
1182
- "External Script": "外部脚本",
1183
- Resource: "资源",
1184
- "Field Injection": "字段注入",
1185
- Extensions: "扩展",
1186
- "Input/Output": "输入/输出",
1187
- "Input Parameters": "输入参数",
1188
- "Output Parameters": "输出参数",
1189
- Parameters: "参数",
1190
- "Output Parameter": "输出参数",
1191
- "Timer Definition Type": "定时器定义类型",
1192
- "Timer Definition": "定时器定义",
1193
- Date: "日期",
1194
- Duration: "持续",
1195
- Cycle: "循环",
1196
- Signal: "信号",
1197
- "Signal Name": "信号名称",
1198
- Escalation: "升级",
1199
- Error: "错误",
1200
- "Link Name": "链接名称",
1201
- Condition: "条件名称",
1202
- "Variable Name": "变量名称",
1203
- "Variable Event": "变量事件",
1204
- "Specify more than one variable change event as a comma separated list.": "多个变量事件以逗号隔开",
1205
- "Wait for Completion": "等待完成",
1206
- "Activity Ref": "活动参考",
1207
- "Version Tag": "版本标签",
1208
- Executable: "可执行文件",
1209
- "External Task Configuration": "扩展任务配置",
1210
- "Task Priority": "任务优先级",
1211
- External: "外部",
1212
- Connector: "连接器",
1213
- "Must configure Connector": "必须配置连接器",
1214
- "Connector Id": "连接器编号",
1215
- Implementation: "实现方式",
1216
- "Field Injections": "字段注入",
1217
- Fields: "字段",
1218
- "Result Variable": "结果变量",
1219
- Topic: "主题",
1220
- "Configure Connector": "配置连接器",
1221
- "Input Parameter": "输入参数",
1222
- Assignee: "代理人",
1223
- "Candidate Users": "候选用户",
1224
- "Candidate Groups": "候选组",
1225
- "Due Date": "到期时间",
1226
- "Follow Up Date": "跟踪日期",
1227
- Priority: "优先级",
1228
- "The follow up date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
1229
- "The due date as an EL expression (e.g. ${someDate} or an ISO date (e.g. 2015-06-26T09:54:00)": "跟踪日期必须符合EL表达式,如: ${someDate} ,或者一个ISO标准日期,如:2015-06-26T09:54:00",
1230
- Variables: "变量",
1231
- "Candidate Starter Configuration": "候选人起动器配置",
1232
- "Candidate Starter Groups": "候选人起动器组",
1233
- "This maps to the process definition key.": "这映射到流程定义键。",
1234
- "Candidate Starter Users": "候选人起动器的用户",
1235
- "Specify more than one user as a comma separated list.": "指定多个用户作为逗号分隔的列表。",
1236
- "Tasklist Configuration": "Tasklist配置",
1237
- Startable: "启动",
1238
- "Specify more than one group as a comma separated list.": "指定多个组作为逗号分隔的列表。",
1239
- "Create element": "创建元素",
1240
- "Empty Pool": "空池",
1241
- Gateways: "网关",
1242
- "Sub Processes": "子流程",
1243
- "Append element": "追加元素",
1244
- "Boundary Event": "边界事件",
1245
- "Data Store Reference": "数据存储引用",
1246
- "Data Object Reference": "数据对象引用",
1247
- Participants: "参与者",
1248
- Events: "事件",
1249
- Data: "数据",
1250
- TextAnnotation: "文本说明",
1251
- Tasks: "任务"
1252
- }, H = [
1253
- {
1254
- name: "commentInForm",
1255
- isAttr: !0,
1256
- type: "Boolean"
1257
- },
1258
- {
1259
- name: "commentOrder",
1260
- isAttr: !0,
1261
- type: "Number"
1262
- },
1263
- {
1264
- name: "commentNodeIds",
1265
- isAttr: !0,
1266
- type: "String"
1267
- },
1268
- {
1269
- name: "commentLabel",
1270
- isAttr: !0,
1271
- type: "String"
1272
- },
1273
- {
1274
- name: "requiredComment",
1275
- isAttr: !0,
1276
- type: "String"
1277
- }
1278
- ], ke = {
1279
- name: "Camunda",
1280
- uri: "http://camunda.org/schema/1.0/bpmn",
1281
- prefix: "camunda",
1282
- xml: { tagAlias: "lowerCase" },
1283
- associations: [],
1284
- types: [
1285
- {
1286
- name: "Definitions",
1287
- isAbstract: !0,
1288
- extends: ["bpmn:Definitions"],
1289
- properties: [{
1290
- name: "diagramRelationId",
1291
- isAttr: !0,
1292
- type: "String"
1293
- }]
1294
- },
1295
- {
1296
- name: "InOutBinding",
1297
- superClass: ["Element"],
1298
- isAbstract: !0,
1299
- properties: [
1300
- {
1301
- name: "source",
1302
- isAttr: !0,
1303
- type: "String"
1304
- },
1305
- {
1306
- name: "sourceExpression",
1307
- isAttr: !0,
1308
- type: "String"
1309
- },
1310
- {
1311
- name: "target",
1312
- isAttr: !0,
1313
- type: "String"
1314
- },
1315
- {
1316
- name: "businessKey",
1317
- isAttr: !0,
1318
- type: "String"
1319
- },
1320
- {
1321
- name: "local",
1322
- isAttr: !0,
1323
- type: "Boolean",
1324
- default: !1
1325
- },
1326
- {
1327
- name: "variables",
1328
- isAttr: !0,
1329
- type: "String"
1330
- }
1331
- ]
1332
- },
1333
- {
1334
- name: "In",
1335
- superClass: ["InOutBinding"],
1336
- meta: { allowedIn: ["bpmn:CallActivity", "bpmn:SignalEventDefinition"] }
1337
- },
1338
- {
1339
- name: "Out",
1340
- superClass: ["InOutBinding"],
1341
- meta: { allowedIn: ["bpmn:CallActivity"] }
1342
- },
1343
- {
1344
- name: "AsyncCapable",
1345
- isAbstract: !0,
1346
- extends: [
1347
- "bpmn:Activity",
1348
- "bpmn:Gateway",
1349
- "bpmn:Event"
1350
- ],
1351
- properties: [
1352
- {
1353
- name: "async",
1354
- isAttr: !0,
1355
- type: "Boolean",
1356
- default: !1
1357
- },
1358
- {
1359
- name: "asyncBefore",
1360
- isAttr: !0,
1361
- type: "Boolean",
1362
- default: !1
1363
- },
1364
- {
1365
- name: "asyncAfter",
1366
- isAttr: !0,
1367
- type: "Boolean",
1368
- default: !1
1369
- },
1370
- {
1371
- name: "exclusive",
1372
- isAttr: !0,
1373
- type: "Boolean",
1374
- default: !0
1375
- }
1376
- ]
1377
- },
1378
- {
1379
- name: "JobPriorized",
1380
- isAbstract: !0,
1381
- extends: ["bpmn:Process", "camunda:AsyncCapable"],
1382
- properties: [{
1383
- name: "jobPriority",
1384
- isAttr: !0,
1385
- type: "String"
1386
- }]
1387
- },
1388
- {
1389
- name: "SignalEventDefinition",
1390
- isAbstract: !0,
1391
- extends: ["bpmn:SignalEventDefinition"],
1392
- properties: [{
1393
- name: "async",
1394
- isAttr: !0,
1395
- type: "Boolean",
1396
- default: !1
1397
- }]
1398
- },
1399
- {
1400
- name: "ErrorEventDefinition",
1401
- isAbstract: !0,
1402
- extends: ["bpmn:ErrorEventDefinition"],
1403
- properties: [{
1404
- name: "errorCodeVariable",
1405
- isAttr: !0,
1406
- type: "String"
1407
- }, {
1408
- name: "errorMessageVariable",
1409
- isAttr: !0,
1410
- type: "String"
1411
- }]
1412
- },
1413
- {
1414
- name: "Error",
1415
- isAbstract: !0,
1416
- extends: ["bpmn:Error"],
1417
- properties: [{
1418
- name: "camunda:errorMessage",
1419
- isAttr: !0,
1420
- type: "String"
1421
- }]
1422
- },
1423
- {
1424
- name: "PotentialStarter",
1425
- superClass: ["Element"],
1426
- properties: [{
1427
- name: "resourceAssignmentExpression",
1428
- type: "bpmn:ResourceAssignmentExpression"
1429
- }]
1430
- },
1431
- {
1432
- name: "FormSupported",
1433
- isAbstract: !0,
1434
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
1435
- properties: [{
1436
- name: "formHandlerClass",
1437
- isAttr: !0,
1438
- type: "String"
1439
- }, {
1440
- name: "formKey",
1441
- isAttr: !0,
1442
- type: "String"
1443
- }]
1444
- },
1445
- {
1446
- name: "TemplateSupported",
1447
- isAbstract: !0,
1448
- extends: ["bpmn:Process", "bpmn:FlowElement"],
1449
- properties: [{
1450
- name: "modelerTemplate",
1451
- isAttr: !0,
1452
- type: "String"
1453
- }, {
1454
- name: "modelerTemplateVersion",
1455
- isAttr: !0,
1456
- type: "Integer"
1457
- }]
1458
- },
1459
- {
1460
- name: "Initiator",
1461
- isAbstract: !0,
1462
- extends: ["bpmn:StartEvent"],
1463
- properties: [{
1464
- name: "initiator",
1465
- isAttr: !0,
1466
- type: "String"
1467
- }]
1468
- },
1469
- {
1470
- name: "ScriptTask",
1471
- isAbstract: !0,
1472
- extends: ["bpmn:ScriptTask"],
1473
- properties: [{
1474
- name: "resultVariable",
1475
- isAttr: !0,
1476
- type: "String"
1477
- }, {
1478
- name: "resource",
1479
- isAttr: !0,
1480
- type: "String"
1481
- }]
1482
- },
1483
- {
1484
- name: "Process",
1485
- isAbstract: !0,
1486
- extends: ["bpmn:Process"],
1487
- properties: [
1488
- {
1489
- name: "candidateStarterGroups",
1490
- isAttr: !0,
1491
- type: "String"
1492
- },
1493
- {
1494
- name: "candidateStarterUsers",
1495
- isAttr: !0,
1496
- type: "String"
1497
- },
1498
- {
1499
- name: "versionTag",
1500
- isAttr: !0,
1501
- type: "String"
1502
- },
1503
- {
1504
- name: "historyTimeToLive",
1505
- isAttr: !0,
1506
- type: "String"
1507
- },
1508
- {
1509
- name: "isStartableInTasklist",
1510
- isAttr: !0,
1511
- type: "Boolean",
1512
- default: !0
1513
- }
1514
- ]
1515
- },
1516
- {
1517
- name: "EscalationEventDefinition",
1518
- isAbstract: !0,
1519
- extends: ["bpmn:EscalationEventDefinition"],
1520
- properties: [{
1521
- name: "escalationCodeVariable",
1522
- isAttr: !0,
1523
- type: "String"
1524
- }]
1525
- },
1526
- {
1527
- name: "FormalExpression",
1528
- isAbstract: !0,
1529
- extends: ["bpmn:FormalExpression"],
1530
- properties: [{
1531
- name: "resource",
1532
- isAttr: !0,
1533
- type: "String"
1534
- }]
1535
- },
1536
- {
1537
- name: "Assignable",
1538
- extends: ["bpmn:UserTask"],
1539
- properties: [
1540
- {
1541
- name: "assignee",
1542
- isAttr: !0,
1543
- type: "String"
1544
- },
1545
- {
1546
- name: "candidateUsers",
1547
- isAttr: !0,
1548
- type: "String"
1549
- },
1550
- {
1551
- name: "candidateGroups",
1552
- isAttr: !0,
1553
- type: "String"
1554
- },
1555
- {
1556
- name: "dueDate",
1557
- isAttr: !0,
1558
- type: "String"
1559
- },
1560
- {
1561
- name: "followUpDate",
1562
- isAttr: !0,
1563
- type: "String"
1564
- },
1565
- {
1566
- name: "priority",
1567
- isAttr: !0,
1568
- type: "String"
1569
- },
1570
- ...H
1571
- ]
1572
- },
1573
- {
1574
- name: "CallActivity",
1575
- extends: ["bpmn:CallActivity"],
1576
- properties: [
1577
- {
1578
- name: "calledElementBinding",
1579
- isAttr: !0,
1580
- type: "String",
1581
- default: "latest"
1582
- },
1583
- {
1584
- name: "calledElementVersion",
1585
- isAttr: !0,
1586
- type: "String"
1587
- },
1588
- {
1589
- name: "calledElementVersionTag",
1590
- isAttr: !0,
1591
- type: "String"
1592
- },
1593
- {
1594
- name: "calledElementTenantId",
1595
- isAttr: !0,
1596
- type: "String"
1597
- },
1598
- {
1599
- name: "caseRef",
1600
- isAttr: !0,
1601
- type: "String"
1602
- },
1603
- {
1604
- name: "caseBinding",
1605
- isAttr: !0,
1606
- type: "String",
1607
- default: "latest"
1608
- },
1609
- {
1610
- name: "caseVersion",
1611
- isAttr: !0,
1612
- type: "String"
1613
- },
1614
- {
1615
- name: "caseTenantId",
1616
- isAttr: !0,
1617
- type: "String"
1618
- },
1619
- {
1620
- name: "variableMappingClass",
1621
- isAttr: !0,
1622
- type: "String"
1623
- },
1624
- {
1625
- name: "variableMappingDelegateExpression",
1626
- isAttr: !0,
1627
- type: "String"
1628
- }
1629
- ]
1630
- },
1631
- {
1632
- name: "ServiceTaskLike",
1633
- extends: [
1634
- "bpmn:ServiceTask",
1635
- "bpmn:BusinessRuleTask",
1636
- "bpmn:SendTask",
1637
- "bpmn:MessageEventDefinition"
1638
- ],
1639
- properties: [
1640
- {
1641
- name: "expression",
1642
- isAttr: !0,
1643
- type: "String"
1644
- },
1645
- {
1646
- name: "class",
1647
- isAttr: !0,
1648
- type: "String"
1649
- },
1650
- {
1651
- name: "delegateExpression",
1652
- isAttr: !0,
1653
- type: "String"
1654
- },
1655
- {
1656
- name: "resultVariable",
1657
- isAttr: !0,
1658
- type: "String"
1659
- }
1660
- ]
1661
- },
1662
- {
1663
- name: "DmnCapable",
1664
- extends: ["bpmn:BusinessRuleTask"],
1665
- properties: [
1666
- {
1667
- name: "decisionRef",
1668
- isAttr: !0,
1669
- type: "String"
1670
- },
1671
- {
1672
- name: "decisionRefBinding",
1673
- isAttr: !0,
1674
- type: "String",
1675
- default: "latest"
1676
- },
1677
- {
1678
- name: "decisionRefVersion",
1679
- isAttr: !0,
1680
- type: "String"
1681
- },
1682
- {
1683
- name: "mapDecisionResult",
1684
- isAttr: !0,
1685
- type: "String",
1686
- default: "resultList"
1687
- },
1688
- {
1689
- name: "decisionRefTenantId",
1690
- isAttr: !0,
1691
- type: "String"
1692
- }
1693
- ]
1694
- },
1695
- {
1696
- name: "ExternalCapable",
1697
- extends: ["camunda:ServiceTaskLike"],
1698
- properties: [{
1699
- name: "type",
1700
- isAttr: !0,
1701
- type: "String"
1702
- }, {
1703
- name: "topic",
1704
- isAttr: !0,
1705
- type: "String"
1706
- }]
1707
- },
1708
- {
1709
- name: "TaskPriorized",
1710
- extends: ["bpmn:Process", "camunda:ExternalCapable"],
1711
- properties: [{
1712
- name: "taskPriority",
1713
- isAttr: !0,
1714
- type: "String"
1715
- }]
1716
- },
1717
- {
1718
- name: "Properties",
1719
- superClass: ["Element"],
1720
- meta: { allowedIn: ["*"] },
1721
- properties: [{
1722
- name: "values",
1723
- type: "Property",
1724
- isMany: !0
1725
- }]
1726
- },
1727
- {
1728
- name: "Property",
1729
- superClass: ["Element"],
1730
- properties: [
1731
- {
1732
- name: "id",
1733
- type: "String",
1734
- isAttr: !0
1735
- },
1736
- {
1737
- name: "name",
1738
- type: "String",
1739
- isAttr: !0
1740
- },
1741
- {
1742
- name: "value",
1743
- type: "String",
1744
- isAttr: !0
1745
- }
1746
- ]
1747
- },
1748
- {
1749
- name: "Connector",
1750
- superClass: ["Element"],
1751
- meta: { allowedIn: ["camunda:ServiceTaskLike"] },
1752
- properties: [{
1753
- name: "inputOutput",
1754
- type: "InputOutput"
1755
- }, {
1756
- name: "connectorId",
1757
- type: "String"
1758
- }]
1759
- },
1760
- {
1761
- name: "InputOutput",
1762
- superClass: ["Element"],
1763
- meta: { allowedIn: ["bpmn:FlowNode", "camunda:Connector"] },
1764
- properties: [
1765
- {
1766
- name: "inputOutput",
1767
- type: "InputOutput"
1768
- },
1769
- {
1770
- name: "connectorId",
1771
- type: "String"
1772
- },
1773
- {
1774
- name: "inputParameters",
1775
- isMany: !0,
1776
- type: "InputParameter"
1777
- },
1778
- {
1779
- name: "outputParameters",
1780
- isMany: !0,
1781
- type: "OutputParameter"
1782
- }
1783
- ]
1784
- },
1785
- {
1786
- name: "InputOutputParameter",
1787
- properties: [
1788
- {
1789
- name: "name",
1790
- isAttr: !0,
1791
- type: "String"
1792
- },
1793
- {
1794
- name: "value",
1795
- isBody: !0,
1796
- type: "String"
1797
- },
1798
- {
1799
- name: "definition",
1800
- type: "InputOutputParameterDefinition"
1801
- }
1802
- ]
1803
- },
1804
- {
1805
- name: "InputOutputParameterDefinition",
1806
- isAbstract: !0
1807
- },
1808
- {
1809
- name: "List",
1810
- superClass: ["InputOutputParameterDefinition"],
1811
- properties: [{
1812
- name: "items",
1813
- isMany: !0,
1814
- type: "InputOutputParameterDefinition"
1815
- }]
1816
- },
1817
- {
1818
- name: "Map",
1819
- superClass: ["InputOutputParameterDefinition"],
1820
- properties: [{
1821
- name: "entries",
1822
- isMany: !0,
1823
- type: "Entry"
1824
- }]
1825
- },
1826
- {
1827
- name: "Entry",
1828
- properties: [
1829
- {
1830
- name: "key",
1831
- isAttr: !0,
1832
- type: "String"
1833
- },
1834
- {
1835
- name: "value",
1836
- isBody: !0,
1837
- type: "String"
1838
- },
1839
- {
1840
- name: "definition",
1841
- type: "InputOutputParameterDefinition"
1842
- }
1843
- ]
1844
- },
1845
- {
1846
- name: "Value",
1847
- superClass: ["InputOutputParameterDefinition"],
1848
- properties: [
1849
- {
1850
- name: "id",
1851
- isAttr: !0,
1852
- type: "String"
1853
- },
1854
- {
1855
- name: "name",
1856
- isAttr: !0,
1857
- type: "String"
1858
- },
1859
- {
1860
- name: "value",
1861
- isBody: !0,
1862
- type: "String"
1863
- }
1864
- ]
1865
- },
1866
- {
1867
- name: "Script",
1868
- superClass: ["InputOutputParameterDefinition"],
1869
- properties: [
1870
- {
1871
- name: "scriptFormat",
1872
- isAttr: !0,
1873
- type: "String"
1874
- },
1875
- {
1876
- name: "resource",
1877
- isAttr: !0,
1878
- type: "String"
1879
- },
1880
- {
1881
- name: "value",
1882
- isBody: !0,
1883
- type: "String"
1884
- }
1885
- ]
1886
- },
1887
- {
1888
- name: "Field",
1889
- superClass: ["Element"],
1890
- meta: { allowedIn: [
1891
- "camunda:ServiceTaskLike",
1892
- "camunda:ExecutionListener",
1893
- "camunda:TaskListener"
1894
- ] },
1895
- properties: [
1896
- {
1897
- name: "name",
1898
- isAttr: !0,
1899
- type: "String"
1900
- },
1901
- {
1902
- name: "expression",
1903
- type: "String"
1904
- },
1905
- {
1906
- name: "stringValue",
1907
- isAttr: !0,
1908
- type: "String"
1909
- },
1910
- {
1911
- name: "string",
1912
- type: "String"
1913
- }
1914
- ]
1915
- },
1916
- {
1917
- name: "InputParameter",
1918
- superClass: ["InputOutputParameter"]
1919
- },
1920
- {
1921
- name: "OutputParameter",
1922
- superClass: ["InputOutputParameter"]
1923
- },
1924
- {
1925
- name: "Collectable",
1926
- isAbstract: !0,
1927
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
1928
- superClass: ["camunda:AsyncCapable"],
1929
- properties: [{
1930
- name: "collection",
1931
- isAttr: !0,
1932
- type: "String"
1933
- }, {
1934
- name: "elementVariable",
1935
- isAttr: !0,
1936
- type: "String"
1937
- }]
1938
- },
1939
- {
1940
- name: "FailedJobRetryTimeCycle",
1941
- superClass: ["Element"],
1942
- meta: { allowedIn: ["camunda:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] },
1943
- properties: [{
1944
- name: "body",
1945
- isBody: !0,
1946
- type: "String"
1947
- }]
1948
- },
1949
- {
1950
- name: "ExecutionListener",
1951
- superClass: ["Element"],
1952
- meta: { allowedIn: [
1953
- "bpmn:Task",
1954
- "bpmn:ServiceTask",
1955
- "bpmn:UserTask",
1956
- "bpmn:BusinessRuleTask",
1957
- "bpmn:ScriptTask",
1958
- "bpmn:ReceiveTask",
1959
- "bpmn:ManualTask",
1960
- "bpmn:ExclusiveGateway",
1961
- "bpmn:SequenceFlow",
1962
- "bpmn:ParallelGateway",
1963
- "bpmn:InclusiveGateway",
1964
- "bpmn:EventBasedGateway",
1965
- "bpmn:StartEvent",
1966
- "bpmn:IntermediateCatchEvent",
1967
- "bpmn:IntermediateThrowEvent",
1968
- "bpmn:EndEvent",
1969
- "bpmn:BoundaryEvent",
1970
- "bpmn:CallActivity",
1971
- "bpmn:SubProcess",
1972
- "bpmn:Process"
1973
- ] },
1974
- properties: [
1975
- {
1976
- name: "expression",
1977
- isAttr: !0,
1978
- type: "String"
1979
- },
1980
- {
1981
- name: "class",
1982
- isAttr: !0,
1983
- type: "String"
1984
- },
1985
- {
1986
- name: "delegateExpression",
1987
- isAttr: !0,
1988
- type: "String"
1989
- },
1990
- {
1991
- name: "event",
1992
- isAttr: !0,
1993
- type: "String"
1994
- },
1995
- {
1996
- name: "script",
1997
- type: "Script"
1998
- },
1999
- {
2000
- name: "fields",
2001
- type: "Field",
2002
- isMany: !0
2003
- }
2004
- ]
2005
- },
2006
- {
2007
- name: "TaskListener",
2008
- superClass: ["Element"],
2009
- meta: { allowedIn: ["bpmn:UserTask"] },
2010
- properties: [
2011
- {
2012
- name: "expression",
2013
- isAttr: !0,
2014
- type: "String"
2015
- },
2016
- {
2017
- name: "class",
2018
- isAttr: !0,
2019
- type: "String"
2020
- },
2021
- {
2022
- name: "delegateExpression",
2023
- isAttr: !0,
2024
- type: "String"
2025
- },
2026
- {
2027
- name: "event",
2028
- isAttr: !0,
2029
- type: "String"
2030
- },
2031
- {
2032
- name: "script",
2033
- type: "Script"
2034
- },
2035
- {
2036
- name: "fields",
2037
- type: "Field",
2038
- isMany: !0
2039
- },
2040
- {
2041
- name: "id",
2042
- type: "String",
2043
- isAttr: !0
2044
- },
2045
- {
2046
- name: "eventDefinitions",
2047
- type: "bpmn:TimerEventDefinition",
2048
- isMany: !0
2049
- }
2050
- ]
2051
- },
2052
- {
2053
- name: "FormProperty",
2054
- superClass: ["Element"],
2055
- meta: { allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"] },
2056
- properties: [
2057
- {
2058
- name: "id",
2059
- type: "String",
2060
- isAttr: !0
2061
- },
2062
- {
2063
- name: "name",
2064
- type: "String",
2065
- isAttr: !0
2066
- },
2067
- {
2068
- name: "type",
2069
- type: "String",
2070
- isAttr: !0
2071
- },
2072
- {
2073
- name: "required",
2074
- type: "String",
2075
- isAttr: !0
2076
- },
2077
- {
2078
- name: "readable",
2079
- type: "String",
2080
- isAttr: !0
2081
- },
2082
- {
2083
- name: "writable",
2084
- type: "String",
2085
- isAttr: !0
2086
- },
2087
- {
2088
- name: "variable",
2089
- type: "String",
2090
- isAttr: !0
2091
- },
2092
- {
2093
- name: "expression",
2094
- type: "String",
2095
- isAttr: !0
2096
- },
2097
- {
2098
- name: "datePattern",
2099
- type: "String",
2100
- isAttr: !0
2101
- },
2102
- {
2103
- name: "default",
2104
- type: "String",
2105
- isAttr: !0
2106
- },
2107
- {
2108
- name: "values",
2109
- type: "Value",
2110
- isMany: !0
2111
- }
2112
- ]
2113
- },
2114
- {
2115
- name: "FormData",
2116
- superClass: ["Element"],
2117
- meta: { allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"] },
2118
- properties: [{
2119
- name: "fields",
2120
- type: "FormField",
2121
- isMany: !0
2122
- }, {
2123
- name: "businessKey",
2124
- type: "String",
2125
- isAttr: !0
2126
- }]
2127
- },
2128
- {
2129
- name: "FormField",
2130
- superClass: ["Element"],
2131
- properties: [
2132
- {
2133
- name: "id",
2134
- type: "String",
2135
- isAttr: !0
2136
- },
2137
- {
2138
- name: "label",
2139
- type: "String",
2140
- isAttr: !0
2141
- },
2142
- {
2143
- name: "type",
2144
- type: "String",
2145
- isAttr: !0
2146
- },
2147
- {
2148
- name: "datePattern",
2149
- type: "String",
2150
- isAttr: !0
2151
- },
2152
- {
2153
- name: "defaultValue",
2154
- type: "String",
2155
- isAttr: !0
2156
- },
2157
- {
2158
- name: "properties",
2159
- type: "Properties"
2160
- },
2161
- {
2162
- name: "validation",
2163
- type: "Validation"
2164
- },
2165
- {
2166
- name: "values",
2167
- type: "Value",
2168
- isMany: !0
2169
- }
2170
- ]
2171
- },
2172
- {
2173
- name: "Validation",
2174
- superClass: ["Element"],
2175
- properties: [{
2176
- name: "constraints",
2177
- type: "Constraint",
2178
- isMany: !0
2179
- }]
2180
- },
2181
- {
2182
- name: "Constraint",
2183
- superClass: ["Element"],
2184
- properties: [{
2185
- name: "name",
2186
- type: "String",
2187
- isAttr: !0
2188
- }, {
2189
- name: "config",
2190
- type: "String",
2191
- isAttr: !0
2192
- }]
2193
- },
2194
- {
2195
- name: "ConditionalEventDefinition",
2196
- isAbstract: !0,
2197
- extends: ["bpmn:ConditionalEventDefinition"],
2198
- properties: [{
2199
- name: "variableName",
2200
- isAttr: !0,
2201
- type: "String"
2202
- }, {
2203
- name: "variableEvents",
2204
- isAttr: !0,
2205
- type: "String"
2206
- }]
2207
- }
2208
- ],
2209
- emumerations: []
2210
- }, Ae = {
2211
- name: "Activiti",
2212
- uri: "http://activiti.org/bpmn",
2213
- prefix: "activiti",
2214
- xml: { tagAlias: "lowerCase" },
2215
- associations: [],
2216
- types: [
2217
- {
2218
- name: "Definitions",
2219
- isAbstract: !0,
2220
- extends: ["bpmn:Definitions"],
2221
- properties: [{
2222
- name: "diagramRelationId",
2223
- isAttr: !0,
2224
- type: "String"
2225
- }]
2226
- },
2227
- {
2228
- name: "InOutBinding",
2229
- superClass: ["Element"],
2230
- isAbstract: !0,
2231
- properties: [
2232
- {
2233
- name: "source",
2234
- isAttr: !0,
2235
- type: "String"
2236
- },
2237
- {
2238
- name: "sourceExpression",
2239
- isAttr: !0,
2240
- type: "String"
2241
- },
2242
- {
2243
- name: "target",
2244
- isAttr: !0,
2245
- type: "String"
2246
- },
2247
- {
2248
- name: "businessKey",
2249
- isAttr: !0,
2250
- type: "String"
2251
- },
2252
- {
2253
- name: "local",
2254
- isAttr: !0,
2255
- type: "Boolean",
2256
- default: !1
2257
- },
2258
- {
2259
- name: "variables",
2260
- isAttr: !0,
2261
- type: "String"
2262
- }
2263
- ]
2264
- },
2265
- {
2266
- name: "In",
2267
- superClass: ["InOutBinding"],
2268
- meta: { allowedIn: ["bpmn:CallActivity"] }
2269
- },
2270
- {
2271
- name: "Out",
2272
- superClass: ["InOutBinding"],
2273
- meta: { allowedIn: ["bpmn:CallActivity"] }
2274
- },
2275
- {
2276
- name: "AsyncCapable",
2277
- isAbstract: !0,
2278
- extends: [
2279
- "bpmn:Activity",
2280
- "bpmn:Gateway",
2281
- "bpmn:Event"
2282
- ],
2283
- properties: [
2284
- {
2285
- name: "async",
2286
- isAttr: !0,
2287
- type: "Boolean",
2288
- default: !1
2289
- },
2290
- {
2291
- name: "asyncBefore",
2292
- isAttr: !0,
2293
- type: "Boolean",
2294
- default: !1
2295
- },
2296
- {
2297
- name: "asyncAfter",
2298
- isAttr: !0,
2299
- type: "Boolean",
2300
- default: !1
2301
- },
2302
- {
2303
- name: "exclusive",
2304
- isAttr: !0,
2305
- type: "Boolean",
2306
- default: !0
2307
- }
2308
- ]
2309
- },
2310
- {
2311
- name: "JobPriorized",
2312
- isAbstract: !0,
2313
- extends: ["bpmn:Process", "activiti:AsyncCapable"],
2314
- properties: [{
2315
- name: "jobPriority",
2316
- isAttr: !0,
2317
- type: "String"
2318
- }]
2319
- },
2320
- {
2321
- name: "SignalEventDefinition",
2322
- isAbstract: !0,
2323
- extends: ["bpmn:SignalEventDefinition"],
2324
- properties: [{
2325
- name: "async",
2326
- isAttr: !0,
2327
- type: "Boolean",
2328
- default: !1
2329
- }]
2330
- },
2331
- {
2332
- name: "ErrorEventDefinition",
2333
- isAbstract: !0,
2334
- extends: ["bpmn:ErrorEventDefinition"],
2335
- properties: [{
2336
- name: "errorCodeVariable",
2337
- isAttr: !0,
2338
- type: "String"
2339
- }, {
2340
- name: "errorMessageVariable",
2341
- isAttr: !0,
2342
- type: "String"
2343
- }]
2344
- },
2345
- {
2346
- name: "Error",
2347
- isAbstract: !0,
2348
- extends: ["bpmn:Error"],
2349
- properties: [{
2350
- name: "activiti:errorMessage",
2351
- isAttr: !0,
2352
- type: "String"
2353
- }]
2354
- },
2355
- {
2356
- name: "PotentialStarter",
2357
- superClass: ["Element"],
2358
- properties: [{
2359
- name: "resourceAssignmentExpression",
2360
- type: "bpmn:ResourceAssignmentExpression"
2361
- }]
2362
- },
2363
- {
2364
- name: "FormSupported",
2365
- isAbstract: !0,
2366
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
2367
- properties: [{
2368
- name: "formHandlerClass",
2369
- isAttr: !0,
2370
- type: "String"
2371
- }, {
2372
- name: "formKey",
2373
- isAttr: !0,
2374
- type: "String"
2375
- }]
2376
- },
2377
- {
2378
- name: "TemplateSupported",
2379
- isAbstract: !0,
2380
- extends: ["bpmn:Process", "bpmn:FlowElement"],
2381
- properties: [{
2382
- name: "modelerTemplate",
2383
- isAttr: !0,
2384
- type: "String"
2385
- }]
2386
- },
2387
- {
2388
- name: "Initiator",
2389
- isAbstract: !0,
2390
- extends: ["bpmn:StartEvent"],
2391
- properties: [{
2392
- name: "initiator",
2393
- isAttr: !0,
2394
- type: "String"
2395
- }]
2396
- },
2397
- {
2398
- name: "ScriptTask",
2399
- isAbstract: !0,
2400
- extends: ["bpmn:ScriptTask"],
2401
- properties: [{
2402
- name: "resultVariable",
2403
- isAttr: !0,
2404
- type: "String"
2405
- }, {
2406
- name: "resource",
2407
- isAttr: !0,
2408
- type: "String"
2409
- }]
2410
- },
2411
- {
2412
- name: "Process",
2413
- isAbstract: !0,
2414
- extends: ["bpmn:Process"],
2415
- properties: [
2416
- {
2417
- name: "candidateStarterGroups",
2418
- isAttr: !0,
2419
- type: "String"
2420
- },
2421
- {
2422
- name: "candidateStarterUsers",
2423
- isAttr: !0,
2424
- type: "String"
2425
- },
2426
- {
2427
- name: "versionTag",
2428
- isAttr: !0,
2429
- type: "String"
2430
- },
2431
- {
2432
- name: "historyTimeToLive",
2433
- isAttr: !0,
2434
- type: "String"
2435
- },
2436
- {
2437
- name: "isStartableInTasklist",
2438
- isAttr: !0,
2439
- type: "Boolean",
2440
- default: !0
2441
- },
2442
- {
2443
- name: "executionListener",
2444
- isAbstract: !0,
2445
- type: "Expression"
2446
- }
2447
- ]
2448
- },
2449
- {
2450
- name: "EscalationEventDefinition",
2451
- isAbstract: !0,
2452
- extends: ["bpmn:EscalationEventDefinition"],
2453
- properties: [{
2454
- name: "escalationCodeVariable",
2455
- isAttr: !0,
2456
- type: "String"
2457
- }]
2458
- },
2459
- {
2460
- name: "FormalExpression",
2461
- isAbstract: !0,
2462
- extends: ["bpmn:FormalExpression"],
2463
- properties: [{
2464
- name: "resource",
2465
- isAttr: !0,
2466
- type: "String"
2467
- }]
2468
- },
2469
- {
2470
- name: "multiinstance_type",
2471
- superClass: ["Element"]
2472
- },
2473
- {
2474
- name: "multiinstance_condition",
2475
- superClass: ["Element"]
2476
- },
2477
- {
2478
- name: "Assignable",
2479
- extends: ["bpmn:UserTask"],
2480
- properties: [
2481
- {
2482
- name: "assignee",
2483
- isAttr: !0,
2484
- type: "String"
2485
- },
2486
- {
2487
- name: "candidateUsers",
2488
- isAttr: !0,
2489
- type: "String"
2490
- },
2491
- {
2492
- name: "candidateGroups",
2493
- isAttr: !0,
2494
- type: "String"
2495
- },
2496
- {
2497
- name: "dueDate",
2498
- isAttr: !0,
2499
- type: "String"
2500
- },
2501
- {
2502
- name: "followUpDate",
2503
- isAttr: !0,
2504
- type: "String"
2505
- },
2506
- {
2507
- name: "priority",
2508
- isAttr: !0,
2509
- type: "String"
2510
- },
2511
- {
2512
- name: "multiinstance_condition",
2513
- isAttr: !0,
2514
- type: "String"
2515
- },
2516
- ...H
2517
- ]
2518
- },
2519
- {
2520
- name: "CallActivity",
2521
- extends: ["bpmn:CallActivity"],
2522
- properties: [
2523
- {
2524
- name: "calledElementBinding",
2525
- isAttr: !0,
2526
- type: "String",
2527
- default: "latest"
2528
- },
2529
- {
2530
- name: "calledElementVersion",
2531
- isAttr: !0,
2532
- type: "String"
2533
- },
2534
- {
2535
- name: "calledElementVersionTag",
2536
- isAttr: !0,
2537
- type: "String"
2538
- },
2539
- {
2540
- name: "calledElementTenantId",
2541
- isAttr: !0,
2542
- type: "String"
2543
- },
2544
- {
2545
- name: "caseRef",
2546
- isAttr: !0,
2547
- type: "String"
2548
- },
2549
- {
2550
- name: "caseBinding",
2551
- isAttr: !0,
2552
- type: "String",
2553
- default: "latest"
2554
- },
2555
- {
2556
- name: "caseVersion",
2557
- isAttr: !0,
2558
- type: "String"
2559
- },
2560
- {
2561
- name: "caseTenantId",
2562
- isAttr: !0,
2563
- type: "String"
2564
- },
2565
- {
2566
- name: "variableMappingClass",
2567
- isAttr: !0,
2568
- type: "String"
2569
- },
2570
- {
2571
- name: "variableMappingDelegateExpression",
2572
- isAttr: !0,
2573
- type: "String"
2574
- }
2575
- ]
2576
- },
2577
- {
2578
- name: "ServiceTaskLike",
2579
- extends: [
2580
- "bpmn:ServiceTask",
2581
- "bpmn:BusinessRuleTask",
2582
- "bpmn:SendTask",
2583
- "bpmn:MessageEventDefinition"
2584
- ],
2585
- properties: [
2586
- {
2587
- name: "expression",
2588
- isAttr: !0,
2589
- type: "String"
2590
- },
2591
- {
2592
- name: "class",
2593
- isAttr: !0,
2594
- type: "String"
2595
- },
2596
- {
2597
- name: "delegateExpression",
2598
- isAttr: !0,
2599
- type: "String"
2600
- },
2601
- {
2602
- name: "resultVariable",
2603
- isAttr: !0,
2604
- type: "String"
2605
- }
2606
- ]
2607
- },
2608
- {
2609
- name: "DmnCapable",
2610
- extends: ["bpmn:BusinessRuleTask"],
2611
- properties: [
2612
- {
2613
- name: "decisionRef",
2614
- isAttr: !0,
2615
- type: "String"
2616
- },
2617
- {
2618
- name: "decisionRefBinding",
2619
- isAttr: !0,
2620
- type: "String",
2621
- default: "latest"
2622
- },
2623
- {
2624
- name: "decisionRefVersion",
2625
- isAttr: !0,
2626
- type: "String"
2627
- },
2628
- {
2629
- name: "mapDecisionResult",
2630
- isAttr: !0,
2631
- type: "String",
2632
- default: "resultList"
2633
- },
2634
- {
2635
- name: "decisionRefTenantId",
2636
- isAttr: !0,
2637
- type: "String"
2638
- }
2639
- ]
2640
- },
2641
- {
2642
- name: "ExternalCapable",
2643
- extends: ["activiti:ServiceTaskLike"],
2644
- properties: [{
2645
- name: "type",
2646
- isAttr: !0,
2647
- type: "String"
2648
- }, {
2649
- name: "topic",
2650
- isAttr: !0,
2651
- type: "String"
2652
- }]
2653
- },
2654
- {
2655
- name: "TaskPriorized",
2656
- extends: ["bpmn:Process", "activiti:ExternalCapable"],
2657
- properties: [{
2658
- name: "taskPriority",
2659
- isAttr: !0,
2660
- type: "String"
2661
- }]
2662
- },
2663
- {
2664
- name: "Properties",
2665
- superClass: ["Element"],
2666
- meta: { allowedIn: ["*"] },
2667
- properties: [{
2668
- name: "values",
2669
- type: "Property",
2670
- isMany: !0
2671
- }]
2672
- },
2673
- {
2674
- name: "Property",
2675
- superClass: ["Element"],
2676
- properties: [
2677
- {
2678
- name: "id",
2679
- type: "String",
2680
- isAttr: !0
2681
- },
2682
- {
2683
- name: "name",
2684
- type: "String",
2685
- isAttr: !0
2686
- },
2687
- {
2688
- name: "value",
2689
- type: "String",
2690
- isAttr: !0
2691
- }
2692
- ]
2693
- },
2694
- {
2695
- name: "Connector",
2696
- superClass: ["Element"],
2697
- meta: { allowedIn: ["activiti:ServiceTaskLike"] },
2698
- properties: [{
2699
- name: "inputOutput",
2700
- type: "InputOutput"
2701
- }, {
2702
- name: "connectorId",
2703
- type: "String"
2704
- }]
2705
- },
2706
- {
2707
- name: "InputOutput",
2708
- superClass: ["Element"],
2709
- meta: { allowedIn: ["bpmn:FlowNode", "activiti:Connector"] },
2710
- properties: [
2711
- {
2712
- name: "inputOutput",
2713
- type: "InputOutput"
2714
- },
2715
- {
2716
- name: "connectorId",
2717
- type: "String"
2718
- },
2719
- {
2720
- name: "inputParameters",
2721
- isMany: !0,
2722
- type: "InputParameter"
2723
- },
2724
- {
2725
- name: "outputParameters",
2726
- isMany: !0,
2727
- type: "OutputParameter"
2728
- }
2729
- ]
2730
- },
2731
- {
2732
- name: "InputOutputParameter",
2733
- properties: [
2734
- {
2735
- name: "name",
2736
- isAttr: !0,
2737
- type: "String"
2738
- },
2739
- {
2740
- name: "value",
2741
- isBody: !0,
2742
- type: "String"
2743
- },
2744
- {
2745
- name: "definition",
2746
- type: "InputOutputParameterDefinition"
2747
- }
2748
- ]
2749
- },
2750
- {
2751
- name: "InputOutputParameterDefinition",
2752
- isAbstract: !0
2753
- },
2754
- {
2755
- name: "List",
2756
- superClass: ["InputOutputParameterDefinition"],
2757
- properties: [{
2758
- name: "items",
2759
- isMany: !0,
2760
- type: "InputOutputParameterDefinition"
2761
- }]
2762
- },
2763
- {
2764
- name: "Map",
2765
- superClass: ["InputOutputParameterDefinition"],
2766
- properties: [{
2767
- name: "entries",
2768
- isMany: !0,
2769
- type: "Entry"
2770
- }]
2771
- },
2772
- {
2773
- name: "Entry",
2774
- properties: [
2775
- {
2776
- name: "key",
2777
- isAttr: !0,
2778
- type: "String"
2779
- },
2780
- {
2781
- name: "value",
2782
- isBody: !0,
2783
- type: "String"
2784
- },
2785
- {
2786
- name: "definition",
2787
- type: "InputOutputParameterDefinition"
2788
- }
2789
- ]
2790
- },
2791
- {
2792
- name: "Value",
2793
- superClass: ["InputOutputParameterDefinition"],
2794
- properties: [
2795
- {
2796
- name: "id",
2797
- isAttr: !0,
2798
- type: "String"
2799
- },
2800
- {
2801
- name: "name",
2802
- isAttr: !0,
2803
- type: "String"
2804
- },
2805
- {
2806
- name: "value",
2807
- isBody: !0,
2808
- type: "String"
2809
- }
2810
- ]
2811
- },
2812
- {
2813
- name: "Script",
2814
- superClass: ["InputOutputParameterDefinition"],
2815
- properties: [
2816
- {
2817
- name: "scriptFormat",
2818
- isAttr: !0,
2819
- type: "String"
2820
- },
2821
- {
2822
- name: "resource",
2823
- isAttr: !0,
2824
- type: "String"
2825
- },
2826
- {
2827
- name: "value",
2828
- isBody: !0,
2829
- type: "String"
2830
- }
2831
- ]
2832
- },
2833
- {
2834
- name: "Field",
2835
- superClass: ["Element"],
2836
- meta: { allowedIn: [
2837
- "activiti:ServiceTaskLike",
2838
- "activiti:ExecutionListener",
2839
- "activiti:TaskListener"
2840
- ] },
2841
- properties: [
2842
- {
2843
- name: "name",
2844
- isAttr: !0,
2845
- type: "String"
2846
- },
2847
- {
2848
- name: "expression",
2849
- type: "String"
2850
- },
2851
- {
2852
- name: "stringValue",
2853
- isAttr: !0,
2854
- type: "String"
2855
- },
2856
- {
2857
- name: "string",
2858
- type: "String"
2859
- }
2860
- ]
2861
- },
2862
- {
2863
- name: "InputParameter",
2864
- superClass: ["InputOutputParameter"]
2865
- },
2866
- {
2867
- name: "OutputParameter",
2868
- superClass: ["InputOutputParameter"]
2869
- },
2870
- {
2871
- name: "Collectable",
2872
- isAbstract: !0,
2873
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
2874
- superClass: ["activiti:AsyncCapable"],
2875
- properties: [{
2876
- name: "collection",
2877
- isAttr: !0,
2878
- type: "String"
2879
- }, {
2880
- name: "elementVariable",
2881
- isAttr: !0,
2882
- type: "String"
2883
- }]
2884
- },
2885
- {
2886
- name: "FailedJobRetryTimeCycle",
2887
- superClass: ["Element"],
2888
- meta: { allowedIn: ["activiti:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] },
2889
- properties: [{
2890
- name: "body",
2891
- isBody: !0,
2892
- type: "String"
2893
- }]
2894
- },
2895
- {
2896
- name: "ExecutionListener",
2897
- superClass: ["Element"],
2898
- meta: { allowedIn: [
2899
- "bpmn:Task",
2900
- "bpmn:ServiceTask",
2901
- "bpmn:UserTask",
2902
- "bpmn:BusinessRuleTask",
2903
- "bpmn:ScriptTask",
2904
- "bpmn:ReceiveTask",
2905
- "bpmn:ManualTask",
2906
- "bpmn:ExclusiveGateway",
2907
- "bpmn:SequenceFlow",
2908
- "bpmn:ParallelGateway",
2909
- "bpmn:InclusiveGateway",
2910
- "bpmn:EventBasedGateway",
2911
- "bpmn:StartEvent",
2912
- "bpmn:IntermediateCatchEvent",
2913
- "bpmn:IntermediateThrowEvent",
2914
- "bpmn:EndEvent",
2915
- "bpmn:BoundaryEvent",
2916
- "bpmn:CallActivity",
2917
- "bpmn:SubProcess",
2918
- "bpmn:Process"
2919
- ] },
2920
- properties: [
2921
- {
2922
- name: "expression",
2923
- isAttr: !0,
2924
- type: "String"
2925
- },
2926
- {
2927
- name: "class",
2928
- isAttr: !0,
2929
- type: "String"
2930
- },
2931
- {
2932
- name: "delegateExpression",
2933
- isAttr: !0,
2934
- type: "String"
2935
- },
2936
- {
2937
- name: "event",
2938
- isAttr: !0,
2939
- type: "String"
2940
- },
2941
- {
2942
- name: "script",
2943
- type: "Script"
2944
- },
2945
- {
2946
- name: "fields",
2947
- type: "Field",
2948
- isMany: !0
2949
- }
2950
- ]
2951
- },
2952
- {
2953
- name: "TaskListener",
2954
- superClass: ["Element"],
2955
- meta: { allowedIn: ["bpmn:UserTask"] },
2956
- properties: [
2957
- {
2958
- name: "expression",
2959
- isAttr: !0,
2960
- type: "String"
2961
- },
2962
- {
2963
- name: "class",
2964
- isAttr: !0,
2965
- type: "String"
2966
- },
2967
- {
2968
- name: "delegateExpression",
2969
- isAttr: !0,
2970
- type: "String"
2971
- },
2972
- {
2973
- name: "event",
2974
- isAttr: !0,
2975
- type: "String"
2976
- },
2977
- {
2978
- name: "script",
2979
- type: "Script"
2980
- },
2981
- {
2982
- name: "fields",
2983
- type: "Field",
2984
- isMany: !0
2985
- }
2986
- ]
2987
- },
2988
- {
2989
- name: "FormProperty",
2990
- superClass: ["Element"],
2991
- meta: { allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"] },
2992
- properties: [
2993
- {
2994
- name: "id",
2995
- type: "String",
2996
- isAttr: !0
2997
- },
2998
- {
2999
- name: "name",
3000
- type: "String",
3001
- isAttr: !0
3002
- },
3003
- {
3004
- name: "type",
3005
- type: "String",
3006
- isAttr: !0
3007
- },
3008
- {
3009
- name: "required",
3010
- type: "String",
3011
- isAttr: !0
3012
- },
3013
- {
3014
- name: "readable",
3015
- type: "String",
3016
- isAttr: !0
3017
- },
3018
- {
3019
- name: "writable",
3020
- type: "String",
3021
- isAttr: !0
3022
- },
3023
- {
3024
- name: "variable",
3025
- type: "String",
3026
- isAttr: !0
3027
- },
3028
- {
3029
- name: "expression",
3030
- type: "String",
3031
- isAttr: !0
3032
- },
3033
- {
3034
- name: "datePattern",
3035
- type: "String",
3036
- isAttr: !0
3037
- },
3038
- {
3039
- name: "default",
3040
- type: "String",
3041
- isAttr: !0
3042
- },
3043
- {
3044
- name: "values",
3045
- type: "Value",
3046
- isMany: !0
3047
- }
3048
- ]
3049
- },
3050
- {
3051
- name: "FormProperty",
3052
- superClass: ["Element"],
3053
- properties: [
3054
- {
3055
- name: "id",
3056
- type: "String",
3057
- isAttr: !0
3058
- },
3059
- {
3060
- name: "label",
3061
- type: "String",
3062
- isAttr: !0
3063
- },
3064
- {
3065
- name: "type",
3066
- type: "String",
3067
- isAttr: !0
3068
- },
3069
- {
3070
- name: "datePattern",
3071
- type: "String",
3072
- isAttr: !0
3073
- },
3074
- {
3075
- name: "defaultValue",
3076
- type: "String",
3077
- isAttr: !0
3078
- },
3079
- {
3080
- name: "properties",
3081
- type: "Properties"
3082
- },
3083
- {
3084
- name: "validation",
3085
- type: "Validation"
3086
- },
3087
- {
3088
- name: "values",
3089
- type: "Value",
3090
- isMany: !0
3091
- }
3092
- ]
3093
- },
3094
- {
3095
- name: "Validation",
3096
- superClass: ["Element"],
3097
- properties: [{
3098
- name: "constraints",
3099
- type: "Constraint",
3100
- isMany: !0
3101
- }]
3102
- },
3103
- {
3104
- name: "Constraint",
3105
- superClass: ["Element"],
3106
- properties: [{
3107
- name: "name",
3108
- type: "String",
3109
- isAttr: !0
3110
- }, {
3111
- name: "config",
3112
- type: "String",
3113
- isAttr: !0
3114
- }]
3115
- },
3116
- {
3117
- name: "ConditionalEventDefinition",
3118
- isAbstract: !0,
3119
- extends: ["bpmn:ConditionalEventDefinition"],
3120
- properties: [{
3121
- name: "variableName",
3122
- isAttr: !0,
3123
- type: "String"
3124
- }, {
3125
- name: "variableEvent",
3126
- isAttr: !0,
3127
- type: "String"
3128
- }]
3129
- }
3130
- ],
3131
- emumerations: []
3132
- }, je = {
3133
- name: "Flowable",
3134
- uri: "http://flowable.org/bpmn",
3135
- prefix: "flowable",
3136
- xml: { tagAlias: "lowerCase" },
3137
- associations: [],
3138
- emumerations: [],
3139
- types: [
3140
- {
3141
- name: "InOutBinding",
3142
- superClass: ["Element"],
3143
- isAbstract: !0,
3144
- properties: [
3145
- {
3146
- name: "source",
3147
- isAttr: !0,
3148
- type: "String"
3149
- },
3150
- {
3151
- name: "sourceExpression",
3152
- isAttr: !0,
3153
- type: "String"
3154
- },
3155
- {
3156
- name: "target",
3157
- isAttr: !0,
3158
- type: "String"
3159
- },
3160
- {
3161
- name: "businessKey",
3162
- isAttr: !0,
3163
- type: "String"
3164
- },
3165
- {
3166
- name: "local",
3167
- isAttr: !0,
3168
- type: "Boolean",
3169
- default: !1
3170
- },
3171
- {
3172
- name: "variables",
3173
- isAttr: !0,
3174
- type: "String"
3175
- }
3176
- ]
3177
- },
3178
- {
3179
- name: "In",
3180
- superClass: ["InOutBinding"],
3181
- meta: { allowedIn: ["bpmn:CallActivity"] }
3182
- },
3183
- {
3184
- name: "Out",
3185
- superClass: ["InOutBinding"],
3186
- meta: { allowedIn: ["bpmn:CallActivity"] }
3187
- },
3188
- {
3189
- name: "AsyncCapable",
3190
- isAbstract: !0,
3191
- extends: [
3192
- "bpmn:Activity",
3193
- "bpmn:Gateway",
3194
- "bpmn:Event"
3195
- ],
3196
- properties: [
3197
- {
3198
- name: "async",
3199
- isAttr: !0,
3200
- type: "Boolean",
3201
- default: !1
3202
- },
3203
- {
3204
- name: "asyncBefore",
3205
- isAttr: !0,
3206
- type: "Boolean",
3207
- default: !1
3208
- },
3209
- {
3210
- name: "asyncAfter",
3211
- isAttr: !0,
3212
- type: "Boolean",
3213
- default: !1
3214
- },
3215
- {
3216
- name: "exclusive",
3217
- isAttr: !0,
3218
- type: "Boolean",
3219
- default: !0
3220
- }
3221
- ]
3222
- },
3223
- {
3224
- name: "JobPriorized",
3225
- isAbstract: !0,
3226
- extends: ["bpmn:Process", "flowable:AsyncCapable"],
3227
- properties: [{
3228
- name: "jobPriority",
3229
- isAttr: !0,
3230
- type: "String"
3231
- }]
3232
- },
3233
- {
3234
- name: "SignalEventDefinition",
3235
- isAbstract: !0,
3236
- extends: ["bpmn:SignalEventDefinition"],
3237
- properties: [{
3238
- name: "async",
3239
- isAttr: !0,
3240
- type: "Boolean",
3241
- default: !1
3242
- }]
3243
- },
3244
- {
3245
- name: "ErrorEventDefinition",
3246
- isAbstract: !0,
3247
- extends: ["bpmn:ErrorEventDefinition"],
3248
- properties: [{
3249
- name: "errorCodeVariable",
3250
- isAttr: !0,
3251
- type: "String"
3252
- }, {
3253
- name: "errorMessageVariable",
3254
- isAttr: !0,
3255
- type: "String"
3256
- }]
3257
- },
3258
- {
3259
- name: "Error",
3260
- isAbstract: !0,
3261
- extends: ["bpmn:Error"],
3262
- properties: [{
3263
- name: "flowable:errorMessage",
3264
- isAttr: !0,
3265
- type: "String"
3266
- }]
3267
- },
3268
- {
3269
- name: "PotentialStarter",
3270
- superClass: ["Element"],
3271
- properties: [{
3272
- name: "resourceAssignmentExpression",
3273
- type: "bpmn:ResourceAssignmentExpression"
3274
- }]
3275
- },
3276
- {
3277
- name: "FormSupported",
3278
- isAbstract: !0,
3279
- extends: ["bpmn:StartEvent", "bpmn:UserTask"],
3280
- properties: [
3281
- {
3282
- name: "formHandlerClass",
3283
- isAttr: !0,
3284
- type: "String"
3285
- },
3286
- {
3287
- name: "formKey",
3288
- isAttr: !0,
3289
- type: "String"
3290
- },
3291
- {
3292
- name: "formType",
3293
- isAttr: !0,
3294
- type: "String"
3295
- },
3296
- {
3297
- name: "formReadOnly",
3298
- isAttr: !0,
3299
- type: "Boolean",
3300
- default: !1
3301
- },
3302
- {
3303
- name: "formInit",
3304
- isAttr: !0,
3305
- type: "Boolean",
3306
- default: !0
3307
- }
3308
- ]
3309
- },
3310
- {
3311
- name: "TemplateSupported",
3312
- isAbstract: !0,
3313
- extends: ["bpmn:Process", "bpmn:FlowElement"],
3314
- properties: [{
3315
- name: "modelerTemplate",
3316
- isAttr: !0,
3317
- type: "String"
3318
- }]
3319
- },
3320
- {
3321
- name: "Initiator",
3322
- isAbstract: !0,
3323
- extends: ["bpmn:StartEvent"],
3324
- properties: [{
3325
- name: "initiator",
3326
- isAttr: !0,
3327
- type: "String"
3328
- }]
3329
- },
3330
- {
3331
- name: "ScriptTask",
3332
- isAbstract: !0,
3333
- extends: ["bpmn:ScriptTask"],
3334
- properties: [{
3335
- name: "resultVariable",
3336
- isAttr: !0,
3337
- type: "String"
3338
- }, {
3339
- name: "resource",
3340
- isAttr: !0,
3341
- type: "String"
3342
- }]
3343
- },
3344
- {
3345
- name: "Process",
3346
- isAbstract: !0,
3347
- extends: ["bpmn:Process"],
3348
- properties: [
3349
- {
3350
- name: "candidateStarterGroups",
3351
- isAttr: !0,
3352
- type: "String"
3353
- },
3354
- {
3355
- name: "candidateStarterUsers",
3356
- isAttr: !0,
3357
- type: "String"
3358
- },
3359
- {
3360
- name: "versionTag",
3361
- isAttr: !0,
3362
- type: "String"
3363
- },
3364
- {
3365
- name: "historyTimeToLive",
3366
- isAttr: !0,
3367
- type: "String"
3368
- },
3369
- {
3370
- name: "isStartableInTasklist",
3371
- isAttr: !0,
3372
- type: "Boolean",
3373
- default: !0
3374
- }
3375
- ]
3376
- },
3377
- {
3378
- name: "EscalationEventDefinition",
3379
- isAbstract: !0,
3380
- extends: ["bpmn:EscalationEventDefinition"],
3381
- properties: [{
3382
- name: "escalationCodeVariable",
3383
- isAttr: !0,
3384
- type: "String"
3385
- }]
3386
- },
3387
- {
3388
- name: "FormalExpression",
3389
- isAbstract: !0,
3390
- extends: ["bpmn:FormalExpression"],
3391
- properties: [{
3392
- name: "resource",
3393
- isAttr: !0,
3394
- type: "String"
3395
- }]
3396
- },
3397
- {
3398
- name: "Assignable",
3399
- extends: ["bpmn:UserTask"],
3400
- properties: [
3401
- {
3402
- name: "assignee",
3403
- isAttr: !0,
3404
- type: "String"
3405
- },
3406
- {
3407
- name: "candidateUsers",
3408
- isAttr: !0,
3409
- type: "String"
3410
- },
3411
- {
3412
- name: "candidateGroups",
3413
- isAttr: !0,
3414
- type: "String"
3415
- },
3416
- {
3417
- name: "dueDate",
3418
- isAttr: !0,
3419
- type: "String"
3420
- },
3421
- {
3422
- name: "followUpDate",
3423
- isAttr: !0,
3424
- type: "String"
3425
- },
3426
- {
3427
- name: "priority",
3428
- isAttr: !0,
3429
- type: "String"
3430
- },
3431
- ...H
3432
- ]
3433
- },
3434
- {
3435
- name: "CallActivity",
3436
- extends: ["bpmn:CallActivity"],
3437
- properties: [
3438
- {
3439
- name: "calledElementBinding",
3440
- isAttr: !0,
3441
- type: "String",
3442
- default: "latest"
3443
- },
3444
- {
3445
- name: "calledElementVersion",
3446
- isAttr: !0,
3447
- type: "String"
3448
- },
3449
- {
3450
- name: "calledElementVersionTag",
3451
- isAttr: !0,
3452
- type: "String"
3453
- },
3454
- {
3455
- name: "calledElementTenantId",
3456
- isAttr: !0,
3457
- type: "String"
3458
- },
3459
- {
3460
- name: "caseRef",
3461
- isAttr: !0,
3462
- type: "String"
3463
- },
3464
- {
3465
- name: "caseBinding",
3466
- isAttr: !0,
3467
- type: "String",
3468
- default: "latest"
3469
- },
3470
- {
3471
- name: "caseVersion",
3472
- isAttr: !0,
3473
- type: "String"
3474
- },
3475
- {
3476
- name: "caseTenantId",
3477
- isAttr: !0,
3478
- type: "String"
3479
- },
3480
- {
3481
- name: "variableMappingClass",
3482
- isAttr: !0,
3483
- type: "String"
3484
- },
3485
- {
3486
- name: "variableMappingDelegateExpression",
3487
- isAttr: !0,
3488
- type: "String"
3489
- }
3490
- ]
3491
- },
3492
- {
3493
- name: "ServiceTaskLike",
3494
- extends: [
3495
- "bpmn:ServiceTask",
3496
- "bpmn:BusinessRuleTask",
3497
- "bpmn:SendTask",
3498
- "bpmn:MessageEventDefinition"
3499
- ],
3500
- properties: [
3501
- {
3502
- name: "expression",
3503
- isAttr: !0,
3504
- type: "String"
3505
- },
3506
- {
3507
- name: "class",
3508
- isAttr: !0,
3509
- type: "String"
3510
- },
3511
- {
3512
- name: "delegateExpression",
3513
- isAttr: !0,
3514
- type: "String"
3515
- },
3516
- {
3517
- name: "resultVariable",
3518
- isAttr: !0,
3519
- type: "String"
3520
- }
3521
- ]
3522
- },
3523
- {
3524
- name: "DmnCapable",
3525
- extends: ["bpmn:BusinessRuleTask"],
3526
- properties: [
3527
- {
3528
- name: "decisionRef",
3529
- isAttr: !0,
3530
- type: "String"
3531
- },
3532
- {
3533
- name: "decisionRefBinding",
3534
- isAttr: !0,
3535
- type: "String",
3536
- default: "latest"
3537
- },
3538
- {
3539
- name: "decisionRefVersion",
3540
- isAttr: !0,
3541
- type: "String"
3542
- },
3543
- {
3544
- name: "mapDecisionResult",
3545
- isAttr: !0,
3546
- type: "String",
3547
- default: "resultList"
3548
- },
3549
- {
3550
- name: "decisionRefTenantId",
3551
- isAttr: !0,
3552
- type: "String"
3553
- }
3554
- ]
3555
- },
3556
- {
3557
- name: "ExternalCapable",
3558
- extends: ["flowable:ServiceTaskLike"],
3559
- properties: [{
3560
- name: "type",
3561
- isAttr: !0,
3562
- type: "String"
3563
- }, {
3564
- name: "topic",
3565
- isAttr: !0,
3566
- type: "String"
3567
- }]
3568
- },
3569
- {
3570
- name: "TaskPriorized",
3571
- extends: ["bpmn:Process", "flowable:ExternalCapable"],
3572
- properties: [{
3573
- name: "taskPriority",
3574
- isAttr: !0,
3575
- type: "String"
3576
- }]
3577
- },
3578
- {
3579
- name: "Properties",
3580
- superClass: ["Element"],
3581
- meta: { allowedIn: ["*"] },
3582
- properties: [{
3583
- name: "values",
3584
- type: "Property",
3585
- isMany: !0
3586
- }]
3587
- },
3588
- {
3589
- name: "Property",
3590
- superClass: ["Element"],
3591
- properties: [
3592
- {
3593
- name: "id",
3594
- type: "String",
3595
- isAttr: !0
3596
- },
3597
- {
3598
- name: "name",
3599
- type: "String",
3600
- isAttr: !0
3601
- },
3602
- {
3603
- name: "value",
3604
- type: "String",
3605
- isAttr: !0
3606
- }
3607
- ]
3608
- },
3609
- {
3610
- name: "Button",
3611
- superClass: ["Element"],
3612
- meta: { allowedIn: ["bpmn:UserTask"] },
3613
- properties: [
3614
- {
3615
- name: "id",
3616
- type: "String",
3617
- isAttr: !0
3618
- },
3619
- {
3620
- name: "name",
3621
- type: "String",
3622
- isAttr: !0
3623
- },
3624
- {
3625
- name: "code",
3626
- type: "String",
3627
- isAttr: !0
3628
- },
3629
- {
3630
- name: "isHide",
3631
- type: "String",
3632
- isAttr: !0
3633
- },
3634
- {
3635
- name: "next",
3636
- type: "String",
3637
- isAttr: !0
3638
- },
3639
- {
3640
- name: "sort",
3641
- type: "Integer",
3642
- isAttr: !0
3643
- }
3644
- ]
3645
- },
3646
- {
3647
- name: "Assignee",
3648
- superClass: ["Element"],
3649
- meta: { allowedIn: ["bpmn:UserTask"] },
3650
- properties: [
3651
- {
3652
- name: "id",
3653
- type: "String",
3654
- isAttr: !0
3655
- },
3656
- {
3657
- name: "type",
3658
- type: "String",
3659
- isAttr: !0
3660
- },
3661
- {
3662
- name: "value",
3663
- type: "String",
3664
- isAttr: !0
3665
- },
3666
- {
3667
- name: "condition",
3668
- type: "String",
3669
- isAttr: !0
3670
- },
3671
- {
3672
- name: "operationType",
3673
- type: "String",
3674
- isAttr: !0
3675
- },
3676
- {
3677
- name: "sort",
3678
- type: "Integer",
3679
- isAttr: !0
3680
- }
3681
- ]
3682
- },
3683
- {
3684
- name: "Connector",
3685
- superClass: ["Element"],
3686
- meta: { allowedIn: ["flowable:ServiceTaskLike"] },
3687
- properties: [{
3688
- name: "inputOutput",
3689
- type: "InputOutput"
3690
- }, {
3691
- name: "connectorId",
3692
- type: "String"
3693
- }]
3694
- },
3695
- {
3696
- name: "InputOutput",
3697
- superClass: ["Element"],
3698
- meta: { allowedIn: ["bpmn:FlowNode", "flowable:Connector"] },
3699
- properties: [
3700
- {
3701
- name: "inputOutput",
3702
- type: "InputOutput"
3703
- },
3704
- {
3705
- name: "connectorId",
3706
- type: "String"
3707
- },
3708
- {
3709
- name: "inputParameters",
3710
- isMany: !0,
3711
- type: "InputParameter"
3712
- },
3713
- {
3714
- name: "outputParameters",
3715
- isMany: !0,
3716
- type: "OutputParameter"
3717
- }
3718
- ]
3719
- },
3720
- {
3721
- name: "InputOutputParameter",
3722
- properties: [
3723
- {
3724
- name: "name",
3725
- isAttr: !0,
3726
- type: "String"
3727
- },
3728
- {
3729
- name: "value",
3730
- isBody: !0,
3731
- type: "String"
3732
- },
3733
- {
3734
- name: "definition",
3735
- type: "InputOutputParameterDefinition"
3736
- }
3737
- ]
3738
- },
3739
- {
3740
- name: "InputOutputParameterDefinition",
3741
- isAbstract: !0
3742
- },
3743
- {
3744
- name: "List",
3745
- superClass: ["InputOutputParameterDefinition"],
3746
- properties: [{
3747
- name: "items",
3748
- isMany: !0,
3749
- type: "InputOutputParameterDefinition"
3750
- }]
3751
- },
3752
- {
3753
- name: "Map",
3754
- superClass: ["InputOutputParameterDefinition"],
3755
- properties: [{
3756
- name: "entries",
3757
- isMany: !0,
3758
- type: "Entry"
3759
- }]
3760
- },
3761
- {
3762
- name: "Entry",
3763
- properties: [
3764
- {
3765
- name: "key",
3766
- isAttr: !0,
3767
- type: "String"
3768
- },
3769
- {
3770
- name: "value",
3771
- isBody: !0,
3772
- type: "String"
3773
- },
3774
- {
3775
- name: "definition",
3776
- type: "InputOutputParameterDefinition"
3777
- }
3778
- ]
3779
- },
3780
- {
3781
- name: "Value",
3782
- superClass: ["InputOutputParameterDefinition"],
3783
- properties: [
3784
- {
3785
- name: "id",
3786
- isAttr: !0,
3787
- type: "String"
3788
- },
3789
- {
3790
- name: "name",
3791
- isAttr: !0,
3792
- type: "String"
3793
- },
3794
- {
3795
- name: "value",
3796
- isBody: !0,
3797
- type: "String"
3798
- }
3799
- ]
3800
- },
3801
- {
3802
- name: "Script",
3803
- superClass: ["InputOutputParameterDefinition"],
3804
- properties: [
3805
- {
3806
- name: "scriptFormat",
3807
- isAttr: !0,
3808
- type: "String"
3809
- },
3810
- {
3811
- name: "resource",
3812
- isAttr: !0,
3813
- type: "String"
3814
- },
3815
- {
3816
- name: "value",
3817
- isBody: !0,
3818
- type: "String"
3819
- }
3820
- ]
3821
- },
3822
- {
3823
- name: "Field",
3824
- superClass: ["Element"],
3825
- meta: { allowedIn: [
3826
- "flowable:ServiceTaskLike",
3827
- "flowable:ExecutionListener",
3828
- "flowable:TaskListener",
3829
- "bpmn:ServiceTask"
3830
- ] },
3831
- properties: [
3832
- {
3833
- name: "name",
3834
- isAttr: !0,
3835
- type: "String"
3836
- },
3837
- {
3838
- name: "expression",
3839
- type: "String"
3840
- },
3841
- {
3842
- name: "stringValue",
3843
- isAttr: !0,
3844
- type: "String"
3845
- },
3846
- {
3847
- name: "string",
3848
- type: "String"
3849
- },
3850
- {
3851
- name: "htmlVar",
3852
- type: "Expression"
3853
- }
3854
- ]
3855
- },
3856
- {
3857
- name: "ChildField",
3858
- superClass: ["Element"],
3859
- properties: [
3860
- {
3861
- name: "id",
3862
- type: "String",
3863
- isAttr: !0
3864
- },
3865
- {
3866
- name: "name",
3867
- type: "String",
3868
- isAttr: !0
3869
- },
3870
- {
3871
- name: "type",
3872
- type: "String",
3873
- isAttr: !0
3874
- },
3875
- {
3876
- name: "required",
3877
- type: "String",
3878
- isAttr: !0
3879
- },
3880
- {
3881
- name: "readable",
3882
- type: "String",
3883
- isAttr: !0
3884
- },
3885
- {
3886
- name: "writable",
3887
- type: "String",
3888
- isAttr: !0
3889
- },
3890
- {
3891
- name: "variable",
3892
- type: "String",
3893
- isAttr: !0
3894
- },
3895
- {
3896
- name: "expression",
3897
- type: "String",
3898
- isAttr: !0
3899
- },
3900
- {
3901
- name: "datePattern",
3902
- type: "String",
3903
- isAttr: !0
3904
- },
3905
- {
3906
- name: "default",
3907
- type: "String",
3908
- isAttr: !0
3909
- },
3910
- {
3911
- name: "values",
3912
- type: "Value",
3913
- isMany: !0
3914
- }
3915
- ]
3916
- },
3917
- {
3918
- name: "InputParameter",
3919
- superClass: ["InputOutputParameter"]
3920
- },
3921
- {
3922
- name: "OutputParameter",
3923
- superClass: ["InputOutputParameter"]
3924
- },
3925
- {
3926
- name: "Collectable",
3927
- isAbstract: !0,
3928
- extends: ["bpmn:MultiInstanceLoopCharacteristics"],
3929
- superClass: ["flowable:AsyncCapable"],
3930
- properties: [{
3931
- name: "collection",
3932
- isAttr: !0,
3933
- type: "String"
3934
- }, {
3935
- name: "elementVariable",
3936
- isAttr: !0,
3937
- type: "String"
3938
- }]
3939
- },
3940
- {
3941
- name: "FailedJobRetryTimeCycle",
3942
- superClass: ["Element"],
3943
- meta: { allowedIn: ["flowable:AsyncCapable", "bpmn:MultiInstanceLoopCharacteristics"] },
3944
- properties: [{
3945
- name: "body",
3946
- isBody: !0,
3947
- type: "String"
3948
- }]
3949
- },
3950
- {
3951
- name: "ExecutionListener",
3952
- superClass: ["Element"],
3953
- meta: { allowedIn: [
3954
- "bpmn:Task",
3955
- "bpmn:ServiceTask",
3956
- "bpmn:UserTask",
3957
- "bpmn:BusinessRuleTask",
3958
- "bpmn:ScriptTask",
3959
- "bpmn:ReceiveTask",
3960
- "bpmn:ManualTask",
3961
- "bpmn:ExclusiveGateway",
3962
- "bpmn:SequenceFlow",
3963
- "bpmn:ParallelGateway",
3964
- "bpmn:InclusiveGateway",
3965
- "bpmn:EventBasedGateway",
3966
- "bpmn:StartEvent",
3967
- "bpmn:IntermediateCatchEvent",
3968
- "bpmn:IntermediateThrowEvent",
3969
- "bpmn:EndEvent",
3970
- "bpmn:BoundaryEvent",
3971
- "bpmn:CallActivity",
3972
- "bpmn:SubProcess",
3973
- "bpmn:Process"
3974
- ] },
3975
- properties: [
3976
- {
3977
- name: "expression",
3978
- isAttr: !0,
3979
- type: "String"
3980
- },
3981
- {
3982
- name: "class",
3983
- isAttr: !0,
3984
- type: "String"
3985
- },
3986
- {
3987
- name: "delegateExpression",
3988
- isAttr: !0,
3989
- type: "String"
3990
- },
3991
- {
3992
- name: "event",
3993
- isAttr: !0,
3994
- type: "String"
3995
- },
3996
- {
3997
- name: "script",
3998
- type: "Script"
3999
- },
4000
- {
4001
- name: "fields",
4002
- type: "Field",
4003
- isMany: !0
4004
- }
4005
- ]
4006
- },
4007
- {
4008
- name: "TaskListener",
4009
- superClass: ["Element"],
4010
- meta: { allowedIn: ["bpmn:UserTask"] },
4011
- properties: [
4012
- {
4013
- name: "expression",
4014
- isAttr: !0,
4015
- type: "String"
4016
- },
4017
- {
4018
- name: "class",
4019
- isAttr: !0,
4020
- type: "String"
4021
- },
4022
- {
4023
- name: "delegateExpression",
4024
- isAttr: !0,
4025
- type: "String"
4026
- },
4027
- {
4028
- name: "event",
4029
- isAttr: !0,
4030
- type: "String"
4031
- },
4032
- {
4033
- name: "script",
4034
- type: "Script"
4035
- },
4036
- {
4037
- name: "fields",
4038
- type: "Field",
4039
- isMany: !0
4040
- }
4041
- ]
4042
- },
4043
- {
4044
- name: "FormProperty",
4045
- superClass: ["Element"],
4046
- meta: { allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"] },
4047
- properties: [
4048
- {
4049
- name: "id",
4050
- type: "String",
4051
- isAttr: !0
4052
- },
4053
- {
4054
- name: "name",
4055
- type: "String",
4056
- isAttr: !0
4057
- },
4058
- {
4059
- name: "type",
4060
- type: "String",
4061
- isAttr: !0
4062
- },
4063
- {
4064
- name: "required",
4065
- type: "String",
4066
- isAttr: !0
4067
- },
4068
- {
4069
- name: "readable",
4070
- type: "String",
4071
- isAttr: !0
4072
- },
4073
- {
4074
- name: "writable",
4075
- type: "String",
4076
- isAttr: !0
4077
- },
4078
- {
4079
- name: "variable",
4080
- type: "String",
4081
- isAttr: !0
4082
- },
4083
- {
4084
- name: "expression",
4085
- type: "String",
4086
- isAttr: !0
4087
- },
4088
- {
4089
- name: "datePattern",
4090
- type: "String",
4091
- isAttr: !0
4092
- },
4093
- {
4094
- name: "default",
4095
- type: "String",
4096
- isAttr: !0
4097
- },
4098
- {
4099
- name: "values",
4100
- type: "Value",
4101
- isMany: !0
4102
- },
4103
- {
4104
- name: "children",
4105
- type: "ChildField",
4106
- isMany: !0
4107
- },
4108
- {
4109
- name: "extensionElements",
4110
- type: "bpmn:ExtensionElements",
4111
- isMany: !0
4112
- }
4113
- ]
4114
- },
4115
- {
4116
- name: "FormData",
4117
- superClass: ["Element"],
4118
- meta: { allowedIn: ["bpmn:StartEvent", "bpmn:UserTask"] },
4119
- properties: [{
4120
- name: "fields",
4121
- type: "FormField",
4122
- isMany: !0
4123
- }, {
4124
- name: "businessKey",
4125
- type: "String",
4126
- isAttr: !0
4127
- }]
4128
- },
4129
- {
4130
- name: "FormField",
4131
- superClass: ["Element"],
4132
- properties: [
4133
- {
4134
- name: "id",
4135
- type: "String",
4136
- isAttr: !0
4137
- },
4138
- {
4139
- name: "label",
4140
- type: "String",
4141
- isAttr: !0
4142
- },
4143
- {
4144
- name: "type",
4145
- type: "String",
4146
- isAttr: !0
4147
- },
4148
- {
4149
- name: "datePattern",
4150
- type: "String",
4151
- isAttr: !0
4152
- },
4153
- {
4154
- name: "defaultValue",
4155
- type: "String",
4156
- isAttr: !0
4157
- },
4158
- {
4159
- name: "properties",
4160
- type: "Properties"
4161
- },
4162
- {
4163
- name: "validation",
4164
- type: "Validation"
4165
- },
4166
- {
4167
- name: "values",
4168
- type: "Value",
4169
- isMany: !0
4170
- }
4171
- ]
4172
- },
4173
- {
4174
- name: "Validation",
4175
- superClass: ["Element"],
4176
- properties: [{
4177
- name: "constraints",
4178
- type: "Constraint",
4179
- isMany: !0
4180
- }]
4181
- },
4182
- {
4183
- name: "Constraint",
4184
- superClass: ["Element"],
4185
- properties: [{
4186
- name: "name",
4187
- type: "String",
4188
- isAttr: !0
4189
- }, {
4190
- name: "config",
4191
- type: "String",
4192
- isAttr: !0
4193
- }]
4194
- },
4195
- {
4196
- name: "ConditionalEventDefinition",
4197
- isAbstract: !0,
4198
- extends: ["bpmn:ConditionalEventDefinition"],
4199
- properties: [{
4200
- name: "variableName",
4201
- isAttr: !0,
4202
- type: "String"
4203
- }, {
4204
- name: "variableEvent",
4205
- isAttr: !0,
4206
- type: "String"
4207
- }]
4208
- },
4209
- {
4210
- name: "Condition",
4211
- superClass: ["Element"],
4212
- meta: { allowedIn: ["bpmn:SequenceFlow"] },
4213
- properties: [
4214
- {
4215
- name: "id",
4216
- type: "String",
4217
- isAttr: !0
4218
- },
4219
- {
4220
- name: "field",
4221
- type: "String",
4222
- isAttr: !0
4223
- },
4224
- {
4225
- name: "compare",
4226
- type: "String",
4227
- isAttr: !0
4228
- },
4229
- {
4230
- name: "value",
4231
- type: "String",
4232
- isAttr: !0
4233
- },
4234
- {
4235
- name: "logic",
4236
- type: "String",
4237
- isAttr: !0
4238
- },
4239
- {
4240
- name: "sort",
4241
- type: "Integer",
4242
- isAttr: !0
4243
- }
4244
- ]
4245
- },
4246
- {
4247
- name: "AssigneeType",
4248
- superClass: ["Element"],
4249
- properties: [{
4250
- name: "body",
4251
- isBody: !0,
4252
- type: "String"
4253
- }]
4254
- },
4255
- {
4256
- name: "AssigneeGroups",
4257
- superClass: ["Element"],
4258
- properties: [{
4259
- name: "body",
4260
- isBody: !0,
4261
- type: "String"
4262
- }]
4263
- },
4264
- {
4265
- name: "AssigneeUsers",
4266
- superClass: ["Element"],
4267
- properties: [{
4268
- name: "body",
4269
- isBody: !0,
4270
- type: "String"
4271
- }]
4272
- },
4273
- {
4274
- name: "AssigneeRules",
4275
- superClass: ["Element"],
4276
- properties: [{
4277
- name: "body",
4278
- isBody: !0,
4279
- type: "String"
4280
- }]
4281
- }
4282
- ]
4283
- }, Me = "*";
4284
- function U(e) {
4285
- let t = this;
4286
- e.on("moddleCopy.canCopyProperty", function(e) {
4287
- let n = e.property, r = e.parent;
4288
- return t.canCopyProperty(n, r);
4289
- });
4290
- }
4291
- U.$inject = ["eventBus"], U.prototype.canCopyProperty = function(e, t) {
4292
- if (T(e) && !Pe(e, t) || W(e, "camunda:InputOutput") && !this.canHostInputOutput(t) || Ne(e, ["camunda:Connector", "camunda:Field"]) && !this.canHostConnector(t) || W(e, "camunda:In") && !this.canHostIn(t)) return !1;
4293
- }, U.prototype.canHostInputOutput = function(e) {
4294
- if (G(e, "camunda:Connector")) return !0;
4295
- let t = G(e, "bpmn:FlowNode");
4296
- return !(!t || Ne(t, [
4297
- "bpmn:StartEvent",
4298
- "bpmn:Gateway",
4299
- "bpmn:BoundaryEvent"
4300
- ]) || W(t, "bpmn:SubProcess") && t.get("triggeredByEvent"));
4301
- }, U.prototype.canHostConnector = function(e) {
4302
- return W(G(e, "camunda:ServiceTaskLike"), "bpmn:MessageEventDefinition") ? G(e, "bpmn:IntermediateThrowEvent") || G(e, "bpmn:EndEvent") : !0;
4303
- }, U.prototype.canHostIn = function(e) {
4304
- return G(e, "bpmn:CallActivity") ? !0 : G(e, "bpmn:SignalEventDefinition") ? G(e, "bpmn:IntermediateThrowEvent") || G(e, "bpmn:EndEvent") : !0;
4305
- };
4306
- function W(e, t) {
4307
- return e && w(e.$instanceOf) && e.$instanceOf(t);
4308
- }
4309
- function Ne(e, t) {
4310
- return E(t, function(t) {
4311
- return W(e, t);
4312
- });
4313
- }
4314
- function G(e, t) {
4315
- if (!t) return e.$parent;
4316
- if (W(e, t)) return e;
4317
- if (e.$parent) return G(e.$parent, t);
4318
- }
4319
- function Pe(e, t) {
4320
- let n = e.$type && e.$model.getTypeDescriptor(e.$type), r = n && n.meta && n.meta.allowedIn;
4321
- return !r || Fe(r) ? !0 : E(r, function(e) {
4322
- return G(t, e);
4323
- });
4324
- }
4325
- function Fe(e) {
4326
- return e.indexOf(Me) !== -1;
4327
- }
4328
- //#endregion
4329
- //#region src/components/bpmn-process-designer/plugins/extension-moddle/camunda/index.js
4330
- var Ie = {
4331
- __init__: ["camundaModdleExtension"],
4332
- camundaModdleExtension: ["type", U]
4333
- }, Le = {
4334
- FailedJobRetryTimeCycle: [
4335
- "bpmn:StartEvent",
4336
- "bpmn:BoundaryEvent",
4337
- "bpmn:IntermediateCatchEvent",
4338
- "bpmn:Activity"
4339
- ],
4340
- Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4341
- Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4342
- };
4343
- function K(e, t) {
4344
- return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
4345
- }
4346
- function Re(e) {
4347
- return e && e.length;
4348
- }
4349
- function q(e, t) {
4350
- return Re(e) && E(e, function(e) {
4351
- return K(e, t);
4352
- });
4353
- }
4354
- function ze(e, t) {
4355
- return E(t, function(t) {
4356
- return K(e, t);
4357
- });
4358
- }
4359
- function J(e, t, n) {
4360
- let r = t.name, i = Le[r.replace(/activiti:/, "")];
4361
- return r === e && ze(n, i);
4362
- }
4363
- function Y(e) {
4364
- e.on("property.clone", function(e) {
4365
- let t = e.newElement, n = e.propertyDescriptor;
4366
- this.canCloneProperty(t, n);
4367
- }, this);
4368
- }
4369
- Y.$inject = ["eventBus"], Y.prototype.canCloneProperty = function(e, t) {
4370
- if (J("activiti:FailedJobRetryTimeCycle", t, e)) return q(e.eventDefinitions, "bpmn:TimerEventDefinition") || q(e.eventDefinitions, "bpmn:SignalEventDefinition") || K(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4371
- if (J("activiti:Connector", t, e) || J("activiti:Field", t, e)) return q(e.eventDefinitions, "bpmn:MessageEventDefinition");
4372
- };
4373
- //#endregion
4374
- //#region src/components/bpmn-process-designer/plugins/extension-moddle/activiti/index.js
4375
- var Be = {
4376
- __init__: ["ActivitiModdleExtension"],
4377
- ActivitiModdleExtension: ["type", Y]
4378
- }, Ve = {
4379
- FailedJobRetryTimeCycle: [
4380
- "bpmn:StartEvent",
4381
- "bpmn:BoundaryEvent",
4382
- "bpmn:IntermediateCatchEvent",
4383
- "bpmn:Activity"
4384
- ],
4385
- Connector: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"],
4386
- Field: ["bpmn:EndEvent", "bpmn:IntermediateThrowEvent"]
4387
- };
4388
- function X(e, t) {
4389
- return e && typeof e.$instanceOf == "function" && e.$instanceOf(t);
4390
- }
4391
- function He(e) {
4392
- return e && e.length;
4393
- }
4394
- function Z(e, t) {
4395
- return He(e) && E(e, function(e) {
4396
- return X(e, t);
4397
- });
4398
- }
4399
- function Ue(e, t) {
4400
- return E(t, function(t) {
4401
- return X(e, t);
4402
- });
4403
- }
4404
- function Q(e, t, n) {
4405
- let r = t.name, i = Ve[r.replace(/flowable:/, "")];
4406
- return r === e && Ue(n, i);
4407
- }
4408
- function $(e) {
4409
- e.on("property.clone", function(e) {
4410
- let t = e.newElement, n = e.propertyDescriptor;
4411
- this.canCloneProperty(t, n);
4412
- }, this);
4413
- }
4414
- $.$inject = ["eventBus"], $.prototype.canCloneProperty = function(e, t) {
4415
- if (Q("flowable:FailedJobRetryTimeCycle", t, e)) return Z(e.eventDefinitions, "bpmn:TimerEventDefinition") || Z(e.eventDefinitions, "bpmn:SignalEventDefinition") || X(e.loopCharacteristics, "bpmn:MultiInstanceLoopCharacteristics");
4416
- if (Q("flowable:Connector", t, e) || Q("flowable:Field", t, e)) return Z(e.eventDefinitions, "bpmn:MessageEventDefinition");
4417
- };
4418
- //#endregion
4419
- //#region src/components/bpmn-process-designer/plugins/extension-moddle/flowable/index.js
4420
- var We = {
4421
- __init__: ["FlowableModdleExtension"],
4422
- FlowableModdleExtension: ["type", $]
4423
- };
4424
- ne.registerLanguage("xml", re), ne.registerLanguage("json", ie);
4425
- var Ge = {
4426
- name: "ProcessDesigner",
4427
- components: { HighlightJS: t },
4428
- componentName: "MyProcessDesigner",
4429
- props: {
4430
- modelValue: String,
4431
- processId: String,
4432
- processName: String,
4433
- translations: Object,
4434
- options: {
4435
- type: Object,
4436
- default: () => ({})
4437
- },
4438
- additionalModel: [Object, Array],
4439
- moddleExtension: Object,
4440
- onlyCustomizeAddi: {
4441
- type: Boolean,
4442
- default: !1
4443
- },
4444
- onlyCustomizeModdle: {
4445
- type: Boolean,
4446
- default: !1
4447
- },
4448
- simulation: {
4449
- type: Boolean,
4450
- default: !0
4451
- },
4452
- keyboard: {
4453
- type: Boolean,
4454
- default: !0
4455
- },
4456
- prefix: {
4457
- type: String,
4458
- default: "camunda"
4459
- },
4460
- events: {
4461
- type: Array,
4462
- default: () => ["element.click"]
4463
- },
4464
- headerButtonSize: {
4465
- type: String,
4466
- default: "small",
4467
- validator: (e) => [
4468
- "default",
4469
- "small",
4470
- ""
4471
- ].indexOf(e) !== -1
4472
- },
4473
- headerButtonType: {
4474
- type: String,
4475
- default: "primary",
4476
- validator: (e) => [
4477
- "default",
4478
- "primary",
4479
- "success",
4480
- "warning",
4481
- "danger",
4482
- "info"
4483
- ].indexOf(e) !== -1
4484
- },
4485
- extendTypes: Array
4486
- },
4487
- emits: [
4488
- "destroy",
4489
- "init-finished",
4490
- "commandStack-changed",
4491
- "canvas-viewbox-changed",
4492
- "change",
4493
- "update:modelValue"
4494
- ],
4495
- data() {
4496
- return {
4497
- defaultZoom: 1,
4498
- previewModelVisible: !1,
4499
- simulationStatus: !1,
4500
- previewResult: "",
4501
- previewType: "xml",
4502
- recoverable: !1,
4503
- revocable: !1
4504
- };
4505
- },
4506
- computed: {
4507
- additionalModules() {
4508
- let e = [];
4509
- if (this.onlyCustomizeAddi) return b(this.additionalModel) ? this.additionalModel || [] : [this.additionalModel];
4510
- b(this.additionalModel) ? e.push(...this.additionalModel) : this.additionalModel && e.push(this.additionalModel);
4511
- let t = { translate: ["value", De(this.translations || Oe)] };
4512
- return e.push(t), this.simulation && e.push(te), e.push(ee), this.prefix === "camunda" && e.push(Ie), this.prefix === "flowable" && e.push(We), this.prefix === "activiti" && e.push(Be), e;
4513
- },
4514
- moddleExtensions() {
4515
- let e = {};
4516
- if (this.onlyCustomizeModdle) return this.moddleExtension || null;
4517
- if (this.moddleExtension) for (let t in this.moddleExtension) e[t] = this.moddleExtension[t];
4518
- return this.prefix === "activiti" && (e.activiti = {
4519
- ...Ae,
4520
- types: [...Ae.types, ...this.extendTypes || []]
4521
- }), this.prefix === "flowable" && (e.flowable = {
4522
- ...je,
4523
- types: [...je.types, ...this.extendTypes || []]
4524
- }), this.prefix === "camunda" && (e.camunda = {
4525
- ...ke,
4526
- types: [...ke.types, ...this.extendTypes || []]
4527
- }), e;
4528
- }
4529
- },
4530
- mounted() {
4531
- this.initBpmnModeler(), this.createNewDiagram(this.modelValue);
4532
- },
4533
- beforeUnmount() {
4534
- this.bpmnModeler && this.bpmnModeler.destroy(), this.$emit("destroy", this.bpmnModeler), this.bpmnModeler = null;
4535
- },
4536
- methods: {
4537
- initBpmnModeler() {
4538
- this.bpmnModeler || (this.bpmnModeler = c(new L({
4539
- container: this.$refs["bpmn-canvas"],
4540
- keyboard: this.keyboard ? { bindTo: document } : null,
4541
- additionalModules: this.additionalModules,
4542
- moddleExtensions: this.moddleExtensions,
4543
- ...this.options
4544
- })), this.$emit("init-finished", this.bpmnModeler), this.initModelListeners());
4545
- },
4546
- initModelListeners() {
4547
- let e = this.bpmnModeler.get("eventBus"), t = this;
4548
- this.events.forEach((n) => {
4549
- e.on(n, (e) => {
4550
- let r = n.replace(/\./g, "-"), i = e ? e.element : null;
4551
- t.$emit(r, i, e);
4552
- });
4553
- }), e.on("commandStack.changed", async (e) => {
4554
- try {
4555
- this.recoverable = this.bpmnModeler.get("commandStack").canRedo(), this.revocable = this.bpmnModeler.get("commandStack").canUndo();
4556
- let { xml: t } = await this.bpmnModeler.saveXML({ format: !0 });
4557
- this.$emit("commandStack-changed", e), this.$emit("update:modelValue", t), this.$emit("change", t);
4558
- } catch (e) {
4559
- console.error(`[Process Designer Warn]: ${e.message || e}`);
4560
- }
4561
- }), this.bpmnModeler.on("canvas.viewbox.changed", ({ viewbox: e }) => {
4562
- this.$emit("canvas-viewbox-changed", { viewbox: e });
4563
- let { scale: t } = e;
4564
- this.defaultZoom = Math.floor(t * 100) / 100;
4565
- });
4566
- },
4567
- async createNewDiagram(e) {
4568
- let t = this.processId || `Process_${(/* @__PURE__ */ new Date()).getTime()}`, n = this.processName || `业务流程_${(/* @__PURE__ */ new Date()).getTime()}`, r = e || Ee(t, n, this.prefix);
4569
- try {
4570
- let { warnings: e } = await this.bpmnModeler.importXML(r);
4571
- this.bpmnModeler.get("canvas").zoom("fit-viewport", "center"), e != null && e.length;
4572
- } catch (e) {
4573
- console.error(`[Process Designer Warn]: ${(e == null ? void 0 : e.message) || e}`);
4574
- }
4575
- },
4576
- async downloadProcess(e, t = "diagram") {
4577
- try {
4578
- let { err: r, xml: i } = await this.bpmnModeler.saveXML();
4579
- r && console.error(`[Process Designer Warn ]: ${r.message || r}`);
4580
- let { definitions: a } = new R().xml2js(i);
4581
- if (t = a.process._name || t, e === "xml" || e === "bpmn") {
4582
- let { href: r, filename: a } = this.setEncoded(e.toUpperCase(), t, i);
4583
- n(r, a);
4584
- } else {
4585
- let { err: e, svg: r } = await this.bpmnModeler.saveSVG();
4586
- if (e) return console.error(e);
4587
- let { href: i, filename: a } = this.setEncoded("SVG", t, r);
4588
- n(i, a);
4589
- }
4590
- } catch (e) {
4591
- console.error(`[Process Designer Warn ]: ${e.message || e}`);
4592
- }
4593
- function n(e, t) {
4594
- if (e && t) {
4595
- let n = document.createElement("a");
4596
- n.download = t, n.href = e, n.click(), URL.revokeObjectURL(n.href);
4597
- }
4598
- }
4599
- },
4600
- setEncoded(e, t = "diagram", n) {
4601
- let r = encodeURIComponent(n);
4602
- return {
4603
- filename: `${t}.${e}`,
4604
- href: `data:application/${e === "svg" ? "text/xml" : "bpmn20-xml"};charset=UTF-8,${r}`,
4605
- data: n
4606
- };
4607
- },
4608
- importLocalFile() {
4609
- let e = this, t = this.$refs.refFile.files[0], n = new FileReader();
4610
- n.readAsText(t), n.onload = function() {
4611
- let t = this.result;
4612
- e.createNewDiagram(t);
4613
- };
4614
- },
4615
- downloadProcessAsXml() {
4616
- this.downloadProcess("xml");
4617
- },
4618
- downloadProcessAsBpmn() {
4619
- this.downloadProcess("bpmn");
4620
- },
4621
- downloadProcessAsSvg() {
4622
- this.downloadProcess("svg");
4623
- },
4624
- processSimulation() {
4625
- if (this.simulationStatus = !this.simulationStatus, this.simulation) {
4626
- var e;
4627
- (e = this.bpmnModeler) == null || e.get("toggleMode").toggleMode();
4628
- }
4629
- },
4630
- processRedo() {
4631
- this.bpmnModeler.get("commandStack").redo();
4632
- },
4633
- processUndo() {
4634
- this.bpmnModeler.get("commandStack").undo();
4635
- },
4636
- processZoomIn(e = .1) {
4637
- let t = Math.floor(this.defaultZoom * 100 + e * 100) / 100;
4638
- if (t > 4) throw Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");
4639
- this.defaultZoom = t, this.bpmnModeler.get("canvas").zoom(this.defaultZoom);
4640
- },
4641
- processZoomOut(e = .1) {
4642
- let t = Math.floor(this.defaultZoom * 100 - e * 100) / 100;
4643
- if (t < .2) throw Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");
4644
- this.defaultZoom = t, this.bpmnModeler.get("canvas").zoom(this.defaultZoom);
4645
- },
4646
- processZoomTo(e = 1) {
4647
- if (e < .2) throw Error("[Process Designer Warn ]: The zoom ratio cannot be less than 0.2");
4648
- if (e > 4) throw Error("[Process Designer Warn ]: The zoom ratio cannot be greater than 4");
4649
- this.defaultZoom = e, this.bpmnModeler.get("canvas").zoom(e);
4650
- },
4651
- processReZoom() {
4652
- this.defaultZoom = 1, this.bpmnModeler.get("canvas").zoom("fit-viewport", "auto");
4653
- },
4654
- processRestart() {
4655
- this.recoverable = !1, this.revocable = !1, this.createNewDiagram(null);
4656
- },
4657
- elementsAlign(e) {
4658
- let t = this.bpmnModeler.get("alignElements"), n = this.bpmnModeler.get("selection").get();
4659
- if (!n || n.length <= 1) {
4660
- this.$message.warning("请按住 Shift 键选择多个元素对齐");
4661
- return;
4662
- }
4663
- this.$confirm("自动对齐可能造成图形变形,是否继续?", "警告", {
4664
- confirmButtonText: "确定",
4665
- cancelButtonText: "取消",
4666
- type: "warning"
4667
- }).then(() => t.trigger(n, e));
4668
- },
4669
- previewProcessXML() {
4670
- this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: e }) => {
4671
- this.previewResult = e, this.previewType = "xml", this.previewModelVisible = !0;
4672
- });
4673
- },
4674
- previewProcessJson() {
4675
- let e = new R();
4676
- this.bpmnModeler.saveXML({ format: !0 }).then(({ xml: t }) => {
4677
- let { definitions: n } = e.xml2js(t);
4678
- n ? this.previewResult = JSON.stringify(n, null, 4) : this.previewResult = "", this.previewType = "json", this.previewModelVisible = !0;
4679
- });
4680
- }
4681
- }
4682
- }, Ke = { class: "my-process-designer" }, qe = { class: "my-process-designer__header" }, Je = { class: "my-process-designer__container" }, Ye = {
4683
- ref: "bpmn-canvas",
4684
- class: "my-process-designer__canvas flow-background-image"
4685
- };
4686
- function Xe(e, t, c, l, u, d) {
4687
- let g = m("ElButton"), v = m("ElTooltip"), y = m("ElButtonGroup"), b = m("HighlightJS"), x = m("ElementDialog");
4688
- return f(), i("div", Ke, [
4689
- a("div", qe, [
4690
- p(e.$slots, "control-header", {}, () => [
4691
- s(y, { key: "file-control" }, {
4692
- default: _(() => [
4693
- p(e.$slots, "toolbar-buttons"),
4694
- c.simulation ? (f(), n(v, {
4695
- key: 0,
4696
- effect: "light",
4697
- content: "导入流程"
4698
- }, {
4699
- default: _(() => [s(g, {
4700
- size: c.headerButtonSize,
4701
- type: c.headerButtonType,
4702
- icon: "el-icon-folder-opened",
4703
- onClick: t[0] || (t[0] = (t) => e.$refs.refFile.click())
4704
- }, {
4705
- default: _(() => [...t[17] || (t[17] = [o(" 导入 ", -1)])]),
4706
- _: 1
4707
- }, 8, ["size", "type"])]),
4708
- _: 1
4709
- })) : r("v-if", !0),
4710
- s(v, { effect: "light" }, {
4711
- content: _(() => [
4712
- s(g, {
4713
- size: c.headerButtonSize,
4714
- text: "",
4715
- onClick: t[1] || (t[1] = (e) => d.downloadProcessAsXml())
4716
- }, {
4717
- default: _(() => [...t[19] || (t[19] = [o("下载为XML文件", -1)])]),
4718
- _: 1
4719
- }, 8, ["size"]),
4720
- t[22] || (t[22] = a("br", null, null, -1)),
4721
- s(g, {
4722
- size: c.headerButtonSize,
4723
- text: "",
4724
- onClick: t[2] || (t[2] = (e) => d.downloadProcessAsSvg())
4725
- }, {
4726
- default: _(() => [...t[20] || (t[20] = [o("下载为SVG文件", -1)])]),
4727
- _: 1
4728
- }, 8, ["size"]),
4729
- t[23] || (t[23] = a("br", null, null, -1)),
4730
- s(g, {
4731
- size: c.headerButtonSize,
4732
- text: "",
4733
- onClick: t[3] || (t[3] = (e) => d.downloadProcessAsBpmn())
4734
- }, {
4735
- default: _(() => [...t[21] || (t[21] = [o("下载为BPMN文件", -1)])]),
4736
- _: 1
4737
- }, 8, ["size"])
4738
- ]),
4739
- default: _(() => [s(g, {
4740
- size: c.headerButtonSize,
4741
- type: c.headerButtonType,
4742
- icon: "el-icon-download"
4743
- }, {
4744
- default: _(() => [...t[18] || (t[18] = [o("下载", -1)])]),
4745
- _: 1
4746
- }, 8, ["size", "type"])]),
4747
- _: 1
4748
- }),
4749
- s(v, { effect: "light" }, {
4750
- content: _(() => [
4751
- s(g, {
4752
- size: c.headerButtonSize,
4753
- text: "",
4754
- onClick: d.previewProcessXML
4755
- }, {
4756
- default: _(() => [...t[24] || (t[24] = [o("预览XML", -1)])]),
4757
- _: 1
4758
- }, 8, ["size", "onClick"]),
4759
- t[26] || (t[26] = a("br", null, null, -1)),
4760
- s(g, {
4761
- size: c.headerButtonSize,
4762
- text: "",
4763
- onClick: d.previewProcessJson
4764
- }, {
4765
- default: _(() => [...t[25] || (t[25] = [o("预览JSON", -1)])]),
4766
- _: 1
4767
- }, 8, ["size", "onClick"])
4768
- ]),
4769
- default: _(() => [s(g, {
4770
- size: c.headerButtonSize,
4771
- type: c.headerButtonType,
4772
- icon: "el-icon-view"
4773
- }, {
4774
- default: _(() => [...t[27] || (t[27] = [o("预览", -1)])]),
4775
- _: 1
4776
- }, 8, ["size", "type"])]),
4777
- _: 1
4778
- }),
4779
- c.simulation ? (f(), n(v, {
4780
- key: 1,
4781
- effect: "light",
4782
- content: u.simulationStatus ? "退出模拟" : "开启模拟"
4783
- }, {
4784
- default: _(() => [s(g, {
4785
- size: c.headerButtonSize,
4786
- type: c.headerButtonType,
4787
- icon: "el-icon-cpu",
4788
- onClick: d.processSimulation
4789
- }, {
4790
- default: _(() => [...t[28] || (t[28] = [o(" 模拟 ", -1)])]),
4791
- _: 1
4792
- }, 8, [
4793
- "size",
4794
- "type",
4795
- "onClick"
4796
- ])]),
4797
- _: 1
4798
- }, 8, ["content"])) : r("v-if", !0)
4799
- ]),
4800
- _: 3
4801
- }),
4802
- s(y, { key: "align-control" }, {
4803
- default: _(() => [
4804
- s(v, {
4805
- effect: "light",
4806
- content: "向左对齐"
4807
- }, {
4808
- default: _(() => [s(g, {
4809
- size: c.headerButtonSize,
4810
- class: "align align-left",
4811
- icon: "el-icon-s-data",
4812
- onClick: t[4] || (t[4] = (e) => d.elementsAlign("left"))
4813
- }, null, 8, ["size"])]),
4814
- _: 1
4815
- }),
4816
- s(v, {
4817
- effect: "light",
4818
- content: "向右对齐"
4819
- }, {
4820
- default: _(() => [s(g, {
4821
- size: c.headerButtonSize,
4822
- class: "align align-right",
4823
- icon: "el-icon-s-data",
4824
- onClick: t[5] || (t[5] = (e) => d.elementsAlign("right"))
4825
- }, null, 8, ["size"])]),
4826
- _: 1
4827
- }),
4828
- s(v, {
4829
- effect: "light",
4830
- content: "向上对齐"
4831
- }, {
4832
- default: _(() => [s(g, {
4833
- size: c.headerButtonSize,
4834
- class: "align align-top",
4835
- icon: "el-icon-s-data",
4836
- onClick: t[6] || (t[6] = (e) => d.elementsAlign("top"))
4837
- }, null, 8, ["size"])]),
4838
- _: 1
4839
- }),
4840
- s(v, {
4841
- effect: "light",
4842
- content: "向下对齐"
4843
- }, {
4844
- default: _(() => [s(g, {
4845
- size: c.headerButtonSize,
4846
- class: "align align-bottom",
4847
- icon: "el-icon-s-data",
4848
- onClick: t[7] || (t[7] = (e) => d.elementsAlign("bottom"))
4849
- }, null, 8, ["size"])]),
4850
- _: 1
4851
- }),
4852
- s(v, {
4853
- effect: "light",
4854
- content: "水平居中"
4855
- }, {
4856
- default: _(() => [s(g, {
4857
- size: c.headerButtonSize,
4858
- class: "align align-center",
4859
- icon: "el-icon-s-data",
4860
- onClick: t[8] || (t[8] = (e) => d.elementsAlign("center"))
4861
- }, null, 8, ["size"])]),
4862
- _: 1
4863
- }),
4864
- s(v, {
4865
- effect: "light",
4866
- content: "垂直居中"
4867
- }, {
4868
- default: _(() => [s(g, {
4869
- size: c.headerButtonSize,
4870
- class: "align align-middle",
4871
- icon: "el-icon-s-data",
4872
- onClick: t[9] || (t[9] = (e) => d.elementsAlign("middle"))
4873
- }, null, 8, ["size"])]),
4874
- _: 1
4875
- })
4876
- ]),
4877
- _: 1
4878
- }),
4879
- s(y, { key: "scale-control" }, {
4880
- default: _(() => [
4881
- s(v, {
4882
- effect: "light",
4883
- content: "缩小视图"
4884
- }, {
4885
- default: _(() => [s(g, {
4886
- size: c.headerButtonSize,
4887
- disabled: u.defaultZoom < .2,
4888
- icon: "el-icon-zoom-out",
4889
- onClick: t[10] || (t[10] = (e) => d.processZoomOut())
4890
- }, null, 8, ["size", "disabled"])]),
4891
- _: 1
4892
- }),
4893
- s(g, { size: c.headerButtonSize }, {
4894
- default: _(() => [o(h(`${Math.floor(u.defaultZoom * 10 * 10)}%`), 1)]),
4895
- _: 1
4896
- }, 8, ["size"]),
4897
- s(v, {
4898
- effect: "light",
4899
- content: "放大视图"
4900
- }, {
4901
- default: _(() => [s(g, {
4902
- size: c.headerButtonSize,
4903
- disabled: u.defaultZoom > 4,
4904
- icon: "el-icon-zoom-in",
4905
- onClick: t[11] || (t[11] = (e) => d.processZoomIn())
4906
- }, null, 8, ["size", "disabled"])]),
4907
- _: 1
4908
- }),
4909
- s(v, {
4910
- effect: "light",
4911
- content: "重置视图并居中"
4912
- }, {
4913
- default: _(() => [s(g, {
4914
- size: c.headerButtonSize,
4915
- icon: "el-icon-c-scale-to-original",
4916
- onClick: t[12] || (t[12] = (e) => d.processReZoom())
4917
- }, null, 8, ["size"])]),
4918
- _: 1
4919
- })
4920
- ]),
4921
- _: 1
4922
- }),
4923
- s(y, { key: "stack-control" }, {
4924
- default: _(() => [
4925
- s(v, {
4926
- effect: "light",
4927
- content: "撤销"
4928
- }, {
4929
- default: _(() => [s(g, {
4930
- size: c.headerButtonSize,
4931
- disabled: !u.revocable,
4932
- icon: "el-icon-refresh-left",
4933
- onClick: t[13] || (t[13] = (e) => d.processUndo())
4934
- }, null, 8, ["size", "disabled"])]),
4935
- _: 1
4936
- }),
4937
- s(v, {
4938
- effect: "light",
4939
- content: "恢复"
4940
- }, {
4941
- default: _(() => [s(g, {
4942
- size: c.headerButtonSize,
4943
- disabled: !u.recoverable,
4944
- icon: "el-icon-refresh-right",
4945
- onClick: t[14] || (t[14] = (e) => d.processRedo())
4946
- }, null, 8, ["size", "disabled"])]),
4947
- _: 1
4948
- }),
4949
- s(v, {
4950
- effect: "light",
4951
- content: "重新绘制"
4952
- }, {
4953
- default: _(() => [s(g, {
4954
- size: c.headerButtonSize,
4955
- icon: "el-icon-refresh",
4956
- onClick: d.processRestart
4957
- }, null, 8, ["size", "onClick"])]),
4958
- _: 1
4959
- })
4960
- ]),
4961
- _: 1
4962
- })
4963
- ]),
4964
- r(" 用于打开本地文件"),
4965
- a("input", {
4966
- id: "files",
4967
- ref: "refFile",
4968
- type: "file",
4969
- style: { display: "none" },
4970
- accept: ".xml, .bpmn",
4971
- onChange: t[15] || (t[15] = (...e) => d.importLocalFile && d.importLocalFile(...e))
4972
- }, null, 544)
4973
- ]),
4974
- a("div", Je, [a("div", Ye, null, 512)]),
4975
- s(x, {
4976
- visible: u.previewModelVisible,
4977
- "onUpdate:visible": t[16] || (t[16] = (e) => u.previewModelVisible = e),
4978
- title: "预览",
4979
- class: "flow-dialog",
4980
- width: "60vw",
4981
- height: "60vh",
4982
- "body-padding": !1,
4983
- "destroy-on-close": ""
4984
- }, {
4985
- default: _(() => [s(b, {
4986
- language: u.previewType,
4987
- code: u.previewResult
4988
- }, null, 8, ["language", "code"])]),
4989
- _: 1
4990
- }, 8, ["visible"])
4991
- ]);
4992
- }
4993
- //#endregion
4994
- //#region src/components/bpmn-process-designer/FlowDesigner.vue
4995
- var Ze = {
4996
- name: "FlowDesigner",
4997
- components: {
4998
- PropertiesPanel: Te,
4999
- ProcessDesigner: /* @__PURE__ */ e(Ge, [["render", Xe]])
5000
- },
5001
- props: {
5002
- modelValue: String,
5003
- usePanel: {
5004
- type: Boolean,
5005
- default: !0
5006
- },
5007
- useTabs: Array,
5008
- extendTypes: Array,
5009
- context: Object,
5010
- panelType: { type: String }
5011
- },
5012
- emits: ["update:modelValue"],
5013
- data() {
5014
- return {
5015
- modeler: null,
5016
- reloadIndex: 0,
5017
- controlForm: {
5018
- processId: "",
5019
- processName: "",
5020
- simulation: !0,
5021
- labelEditing: !1,
5022
- labelVisible: !1,
5023
- prefix: "flowable",
5024
- headerButtonSize: "small",
5025
- additionalModel: c([
5026
- oe,
5027
- se,
5028
- ve
5029
- ])
5030
- }
5031
- };
5032
- },
5033
- methods: {
5034
- initModeler(e) {
5035
- this.modeler = e;
5036
- },
5037
- async refresh() {
5038
- await this.$nextTick(), await this.$refs.processDesigner.createNewDiagram(this.modelValue);
5039
- }
5040
- }
5041
- }, Qe = { class: "flow-designer" };
5042
- function $e(e, t, a, o, s, c) {
5043
- let u = m("ProcessDesigner"), d = m("PropertiesPanel");
5044
- return f(), i("div", Qe, [(f(), n(u, l({ key: `designer-${s.reloadIndex}` }, s.controlForm, {
5045
- ref: "processDesigner",
5046
- "model-value": a.modelValue,
5047
- "extend-types": a.extendTypes,
5048
- options: {
5049
- taskResizingEnabled: !0,
5050
- eventResizingEnabled: !0
5051
- },
5052
- keyboard: "",
5053
- onInput: t[0] || (t[0] = (t) => e.$emit("update:modelValue", t)),
5054
- onInitFinished: c.initModeler
5055
- }), {
5056
- "toolbar-buttons": _(() => [p(e.$slots, "toolbar-buttons", { modeler: s.modeler })]),
5057
- _: 3
5058
- }, 16, [
5059
- "model-value",
5060
- "extend-types",
5061
- "onInitFinished"
5062
- ])), a.usePanel && (a.useTabs === null || a.useTabs === void 0 || a.useTabs.length > 0) ? (f(), n(d, {
5063
- key: `penal-${s.reloadIndex}`,
5064
- "panel-type": a.panelType,
5065
- "use-tabs": a.useTabs,
5066
- "bpmn-modeler": s.modeler,
5067
- context: a.context,
5068
- prefix: s.controlForm.prefix,
5069
- class: "process-panel"
5070
- }, {
5071
- task: _(({ id: t, bpmnInstances: n, element: r, type: i }) => [p(e.$slots, "task", {
5072
- id: t,
5073
- bpmnInstances: n,
5074
- element: r,
5075
- type: i
5076
- })]),
5077
- form: _(({ id: t, bpmnInstances: n, element: r, type: i }) => [p(e.$slots, "form", {
5078
- id: t,
5079
- bpmnInstances: n,
5080
- element: r,
5081
- type: i
5082
- })]),
5083
- extend: _(({ id: t, bpmnInstances: n, element: r, type: i }) => [p(e.$slots, "extend", {
5084
- id: t,
5085
- bpmnInstances: n,
5086
- element: r,
5087
- type: i
5088
- })]),
5089
- _: 3
5090
- }, 8, [
5091
- "panel-type",
5092
- "use-tabs",
5093
- "bpmn-modeler",
5094
- "context",
5095
- "prefix"
5096
- ])) : r("v-if", !0)]);
5097
- }
5098
- var et = /* @__PURE__ */ e(Ze, [["render", $e]]);
5099
- //#endregion
5100
- export { et as t };