@gct-paas/core-web 0.1.6-dev.5 → 0.1.6-dev.7

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 (218) hide show
  1. package/dist/ColorPicker-DFKXqgaG.js +1 -0
  2. package/dist/_plugin-vue_export-helper-CGzGcWFX.js +1 -0
  3. package/dist/{de_DE-BnwOalCV.js → de_DE-B3f8kAv-.js} +1 -1
  4. package/dist/diagram-config-item-C5Ha2XJq.js +1 -0
  5. package/dist/diagram-config-item-reverse-ChoxnW-Z.js +1 -0
  6. package/dist/diagram-config-item-virtual-Cbmggfwt.js +1 -0
  7. package/dist/{en_US-6Hw6WWah.js → en_US-BSG3Kz6v.js} +1 -1
  8. package/dist/{es_ES-tAqXFGrR.js → es_ES-BGP8IOmQ.js} +1 -1
  9. package/dist/{fr_FR-BkDgVS_P.js → fr_FR-Y-6CzjUq.js} +1 -1
  10. package/dist/hooks-yX21uJ6d.js +1 -0
  11. package/dist/index.min.css +1 -1
  12. package/dist/{ja_JP-AsmV92nC.js → ja_JP-CDlH1v8M.js} +1 -1
  13. package/dist/loader.esm.min.js +1 -1
  14. package/dist/{monaco-editor-CgESUPw_.js → monaco-editor-CQJ9TMzD.js} +1 -1
  15. package/dist/{pt_PT-CCVWOJzE.js → pt_PT-N-iIoE2_.js} +1 -1
  16. package/dist/relationship-diagram-config-DstwwXCO.js +1 -0
  17. package/dist/{ru_RU-w4sUgbzL.js → ru_RU--ESLRHrj.js} +1 -1
  18. package/dist/template-CXn8oAg5.js +1 -0
  19. package/dist/{tr_TR-CGZch3eB.js → tr_TR-BOIykdZO.js} +1 -1
  20. package/dist/{vi_VN-DONxIDR7.js → vi_VN-CmVoM2Rw.js} +1 -1
  21. package/dist/{zh_CN-BxdD8hqG.js → zh_CN-DhsO5Qwx.js} +1 -1
  22. package/dist/{zh_TW-D5Y8j-oG.js → zh_TW-DWdp2kVo.js} +1 -1
  23. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
  24. package/es/components/base-button/base-button.vue.mjs +1 -1
  25. package/es/components/field-cascader/src/hooks.d.ts +1 -0
  26. package/es/components/index.d.ts +1 -0
  27. package/es/components/index.mjs +2 -0
  28. package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +2 -2
  29. package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +2 -2
  30. package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  31. package/es/components/label-design/panels/widget/controls/ImageData.vue.mjs +2 -2
  32. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_script_setup_true_name_image-data_lang.mjs +2 -2
  33. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_9232a443_lang.css +3 -0
  34. package/es/components/label-design/stage/stage.vue.d.ts +9 -0
  35. package/es/components/label-design/stage/stage.vue.mjs +2 -2
  36. package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +2 -1
  37. package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_53b1f897_lang.css → stage.vue_vue_type_style_index_0_scoped_9275e9fb_lang.css} +8 -8
  38. package/es/components/layout/view-container/view-container.d.ts +1 -11
  39. package/es/components/layout/view-container/view-container.mjs +10 -14
  40. package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +2 -2
  41. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +1 -2
  42. package/es/components/paas-bpmn-log/components/{approval-node.vue_vue_type_style_index_0_scoped_a88d7ef9_lang.css → approval-node.vue_vue_type_style_index_0_scoped_a8065b24_lang.css} +9 -9
  43. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +2 -2
  44. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +1 -2
  45. package/es/components/paas-bpmn-log/{paas-bpmn-log.vue_vue_type_style_index_0_scoped_c85122b0_lang.css → paas-bpmn-log.vue_vue_type_style_index_0_scoped_eb574523_lang.css} +9 -9
  46. package/es/components/select-user-modal/deptUser.vue.d.ts +9 -0
  47. package/es/components/select-user-modal/deptUser.vue.mjs +7 -0
  48. package/es/components/select-user-modal/deptUser.vue_vue_type_script_setup_true_name_deptUser_lang.mjs +296 -0
  49. package/es/components/select-user-modal/deptUser.vue_vue_type_style_index_0_scoped_02dff7bf_lang.css +40 -0
  50. package/es/components/select-user-modal/index.d.ts +2 -0
  51. package/es/components/select-user-modal/index.mjs +1 -0
  52. package/es/components/select-user-modal/range-role.vue.d.ts +9 -0
  53. package/es/components/select-user-modal/range-role.vue.mjs +7 -0
  54. package/es/components/select-user-modal/range-role.vue_vue_type_script_setup_true_name_role_lang.mjs +137 -0
  55. package/es/components/select-user-modal/range-role.vue_vue_type_style_index_0_scoped_1241bcdf_lang.css +34 -0
  56. package/es/components/select-user-modal/select-user-modal.vue.d.ts +12 -0
  57. package/es/components/select-user-modal/select-user-modal.vue.mjs +7 -0
  58. package/es/components/select-user-modal/select-user-modal.vue_vue_type_script_setup_true_name_select-user-modal_lang.mjs +123 -0
  59. package/es/components/select-user-modal/select-user-modal.vue_vue_type_style_index_0_scoped_2c0f184c_lang.css +14 -0
  60. package/es/components/select-user-modal/userGroup.vue.d.ts +9 -0
  61. package/es/components/select-user-modal/userGroup.vue.mjs +7 -0
  62. package/es/components/select-user-modal/userGroup.vue_vue_type_script_setup_true_name_userGroup_lang.mjs +149 -0
  63. package/es/components/select-user-modal/userGroup.vue_vue_type_style_index_0_scoped_47d1cbaa_lang.css +19 -0
  64. package/es/create-app-vue.d.ts +2 -2
  65. package/es/create-app-vue.mjs +7 -5
  66. package/es/index.d.ts +4 -2
  67. package/es/index.mjs +30 -25
  68. package/es/modules/color-picker/src/color-editor.vue.mjs +1 -1
  69. package/es/modules/data-rules-container/index.d.ts +3 -0
  70. package/es/modules/data-rules-container/index.mjs +2 -0
  71. package/es/modules/data-rules-container/src/components/header-action.vue.d.ts +10 -0
  72. package/es/modules/data-rules-container/src/components/header-action.vue.mjs +7 -0
  73. package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_script_setup_true_name_header-action_lang.mjs +36 -0
  74. package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_style_index_0_scoped_4e281013_lang.css +32 -0
  75. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.d.ts +8 -0
  76. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.mjs +5 -0
  77. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +266 -0
  78. package/es/modules/data-rules-container/src/components/perm-action-node.vue.d.ts +22 -0
  79. package/es/modules/data-rules-container/src/components/perm-action-node.vue.mjs +7 -0
  80. package/es/modules/data-rules-container/src/components/perm-action-node.vue_vue_type_script_setup_true_name_perm-action-node_lang.mjs +384 -0
  81. package/es/modules/data-rules-container/src/components/perm-action-node.vue_vue_type_style_index_0_scoped_417c660f_lang.css +73 -0
  82. package/es/modules/data-rules-container/src/components/perm-root-node.vue.d.ts +3 -0
  83. package/es/modules/data-rules-container/src/components/perm-root-node.vue.mjs +7 -0
  84. package/es/modules/data-rules-container/src/components/perm-root-node.vue_vue_type_script_setup_true_name_perm-root-node_lang.mjs +61 -0
  85. package/es/modules/data-rules-container/src/components/perm-root-node.vue_vue_type_style_index_0_scoped_ca5c9d20_lang.css +74 -0
  86. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.d.ts +11 -0
  87. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.mjs +5 -0
  88. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +93 -0
  89. package/es/modules/data-rules-container/src/components/request-select-cmp.vue.d.ts +9 -0
  90. package/es/modules/data-rules-container/src/components/request-select-cmp.vue.mjs +5 -0
  91. package/es/modules/data-rules-container/src/components/request-select-cmp.vue_vue_type_script_setup_true_name_request-select-cmp_lang.mjs +117 -0
  92. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.d.ts +3 -0
  93. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.mjs +6 -0
  94. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs +100 -0
  95. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue_vue_type_style_index_0_lang.css +21 -0
  96. package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.d.ts +32 -0
  97. package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.mjs +5 -0
  98. package/es/modules/data-rules-container/src/components/select-modal-cmp.vue_vue_type_script_setup_true_name_select-modal-cmp_lang.mjs +268 -0
  99. package/es/modules/data-rules-container/src/components/select-more.vue.d.ts +8 -0
  100. package/es/modules/data-rules-container/src/components/select-more.vue.mjs +5 -0
  101. package/es/modules/data-rules-container/src/components/select-more.vue_vue_type_script_setup_true_lang.mjs +26 -0
  102. package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.d.ts +12 -0
  103. package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.mjs +5 -0
  104. package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue_vue_type_script_setup_true_name_select-userdep-cmp_lang.mjs +103 -0
  105. package/es/modules/data-rules-container/src/components/tree-action-node.vue.d.ts +25 -0
  106. package/es/modules/data-rules-container/src/components/tree-action-node.vue.mjs +7 -0
  107. package/es/modules/data-rules-container/src/components/tree-action-node.vue_vue_type_script_setup_true_name_tree-action-node_lang.mjs +544 -0
  108. package/es/modules/data-rules-container/src/components/tree-action-node.vue_vue_type_style_index_0_scoped_46368089_lang.css +67 -0
  109. package/es/modules/data-rules-container/src/components/tree-root-node.vue.d.ts +3 -0
  110. package/es/modules/data-rules-container/src/components/tree-root-node.vue.mjs +7 -0
  111. package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_script_setup_true_name_tree-root-node_lang.mjs +105 -0
  112. package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_style_index_0_scoped_37e323fb_lang.css +29 -0
  113. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.d.ts +3 -0
  114. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.mjs +5 -0
  115. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs +89 -0
  116. package/es/modules/data-rules-container/src/constant/config.d.ts +146 -0
  117. package/es/modules/data-rules-container/src/constant/config.mjs +548 -0
  118. package/es/modules/data-rules-container/src/constant/interface.d.ts +85 -0
  119. package/es/modules/data-rules-container/src/constant/interface.mjs +36 -0
  120. package/es/modules/data-rules-container/src/data-rules-container.vue.d.ts +45 -0
  121. package/es/modules/data-rules-container/src/data-rules-container.vue.mjs +6 -0
  122. package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_script_setup_true_name_data-rules-container_lang.mjs +234 -0
  123. package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_style_index_0_lang.css +149 -0
  124. package/es/modules/data-rules-container/src/field-role-container.vue.d.ts +14 -0
  125. package/es/modules/data-rules-container/src/field-role-container.vue.mjs +5 -0
  126. package/es/modules/data-rules-container/src/field-role-container.vue_vue_type_script_setup_true_name_field-role-container_lang.mjs +73 -0
  127. package/es/modules/data-rules-container/src/hooks/useDataRulesTree.d.ts +30 -0
  128. package/es/modules/data-rules-container/src/hooks/useDataRulesTree.mjs +317 -0
  129. package/es/modules/data-rules-container/src/hooks/useEmitter.d.ts +10 -0
  130. package/es/modules/data-rules-container/src/hooks/useRdoHooks.d.ts +37 -0
  131. package/es/modules/data-rules-container/src/hooks/useRdoHooks.mjs +144 -0
  132. package/es/modules/data-rules-container/src/hooks/useRole.d.ts +8 -0
  133. package/es/modules/data-rules-container/src/typing.d.ts +40 -0
  134. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +2 -0
  135. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +1 -0
  136. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +1 -0
  137. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +2 -0
  138. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +3 -0
  139. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -4
  140. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +2 -2
  141. package/es/modules/relationship-diagram-config/cache.controller.d.ts +70 -0
  142. package/es/modules/relationship-diagram-config/cache.controller.mjs +128 -0
  143. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.css +123 -0
  144. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.d.ts +381 -0
  145. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.mjs +98 -0
  146. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.css +71 -0
  147. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.d.ts +28 -0
  148. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.mjs +53 -0
  149. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.d.ts +27 -0
  150. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.mjs +2 -0
  151. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.css +107 -0
  152. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.d.ts +34 -0
  153. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.mjs +198 -0
  154. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.css +68 -0
  155. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.d.ts +31 -0
  156. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.mjs +53 -0
  157. package/es/modules/relationship-diagram-config/components/index.d.ts +5 -0
  158. package/es/modules/relationship-diagram-config/components/index.mjs +5 -0
  159. package/es/modules/relationship-diagram-config/constant/index.d.ts +72 -0
  160. package/es/modules/relationship-diagram-config/constant/index.mjs +70 -0
  161. package/es/modules/relationship-diagram-config/hooks/index.d.ts +10 -0
  162. package/es/modules/relationship-diagram-config/hooks/index.mjs +19 -0
  163. package/es/modules/relationship-diagram-config/index.d.ts +6 -0
  164. package/es/modules/relationship-diagram-config/index.mjs +28 -0
  165. package/es/modules/relationship-diagram-config/interface/i-link-provider/i-link-provider.d.ts +57 -0
  166. package/es/modules/relationship-diagram-config/interface/i-node-provider/i-node-provider.d.ts +18 -0
  167. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-link/i-relationship-diagram-link.d.ts +80 -0
  168. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-node/i-relationship-diagram-node.d.ts +82 -0
  169. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-options/i-relationship-diagram-options.d.ts +51 -0
  170. package/es/modules/relationship-diagram-config/interface/i-rule-config/i-rule-config.d.ts +135 -0
  171. package/es/modules/relationship-diagram-config/interface/index.d.ts +6 -0
  172. package/es/modules/relationship-diagram-config/link.controller.d.ts +75 -0
  173. package/es/modules/relationship-diagram-config/link.controller.mjs +121 -0
  174. package/es/modules/relationship-diagram-config/node.controller.d.ts +102 -0
  175. package/es/modules/relationship-diagram-config/node.controller.mjs +189 -0
  176. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.d.ts +23 -0
  177. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.mjs +33 -0
  178. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.d.ts +1 -0
  179. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.mjs +27 -0
  180. package/es/modules/relationship-diagram-config/plumb-plugin/index.d.ts +3 -0
  181. package/es/modules/relationship-diagram-config/plumb-plugin/index.mjs +2 -0
  182. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.css +132 -0
  183. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.d.ts +21 -0
  184. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.mjs +184 -0
  185. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.d.ts +14 -0
  186. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.mjs +17 -0
  187. package/es/modules/relationship-diagram-config/providers/index.d.ts +5 -0
  188. package/es/modules/relationship-diagram-config/providers/index.mjs +5 -0
  189. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.d.ts +14 -0
  190. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.mjs +17 -0
  191. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.d.ts +16 -0
  192. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.mjs +26 -0
  193. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.d.ts +14 -0
  194. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.mjs +17 -0
  195. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.d.ts +119 -0
  196. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.mjs +199 -0
  197. package/es/modules/relationship-diagram-config/relationship-diagram-config.css +113 -0
  198. package/es/modules/relationship-diagram-config/relationship-diagram-config.d.ts +102 -0
  199. package/es/modules/relationship-diagram-config/relationship-diagram-config.mjs +104 -0
  200. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.d.ts +44 -0
  201. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.mjs +46 -0
  202. package/es/modules/relationship-diagram-config/utils/index.d.ts +1 -0
  203. package/es/modules/relationship-diagram-config/utils/register/register.d.ts +71 -0
  204. package/es/modules/relationship-diagram-config/utils/register/register.mjs +81 -0
  205. package/es/utils/recursive.mjs +1 -0
  206. package/package.json +10 -9
  207. package/dist/_plugin-vue_export-helper-59SbqtUR.js +0 -1
  208. package/dist/components-Dw_doMp_.js +0 -1
  209. package/dist/template-tzWsbHZE.js +0 -1
  210. package/es/components/label-design/panels/widget/controls/ImageData.vue_vue_type_style_index_0_scoped_3c4a9733_lang.css +0 -3
  211. package/es/components/paas-bpmn-log/hooks/useObserver.mjs +0 -46
  212. /package/dist/{JsBarcode-DlXSdlvD.js → JsBarcode-DY53cVJ6.js} +0 -0
  213. /package/dist/{cropper-tw7tUDDe.js → cropper-DK_hFgpO.js} +0 -0
  214. /package/dist/{icon-next-picker-B_S_yInJ.js → icon-next-picker-DYiHqnNR.js} +0 -0
  215. /package/dist/{objectSpread2-DxfE1S3_.js → objectSpread2-DARadIQB.js} +0 -0
  216. /package/dist/{overlayscrollbars-vue-DtKFrHnA.js → overlayscrollbars-vue-Df-3wShc.js} +0 -0
  217. /package/dist/{rich-editor-K2Pv0Uja.js → rich-editor-DVOriJH0.js} +0 -0
  218. /package/dist/{useMonacoEditor-BO2ALW-7.js → useMonacoEditor-DqSQTg7b.js} +0 -0
@@ -0,0 +1,27 @@
1
+ import { ArrowEndpoint } from "./arrow-endpoint.mjs";
2
+ import { registerEndpointRenderer, svg } from "@jsplumb/browser-ui";
3
+ //#region src/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.ts
4
+ var calcPoints = (direction) => {
5
+ if (direction === "left") return "0,3 6,0 6,6";
6
+ else return "0,0 6,3 0,6";
7
+ };
8
+ var register = () => {
9
+ registerEndpointRenderer(ArrowEndpoint.type, {
10
+ makeNode: (ep, _style) => {
11
+ const { direction } = ep.params || {};
12
+ return svg.node("polygon", {
13
+ points: calcPoints(direction),
14
+ "stroke-width": 1
15
+ });
16
+ },
17
+ updateNode: (ep, node) => {
18
+ const { direction } = ep.params || {};
19
+ svg.attr(node, {
20
+ points: calcPoints(direction),
21
+ "stroke-width": 1
22
+ });
23
+ }
24
+ });
25
+ };
26
+ //#endregion
27
+ export { register };
@@ -0,0 +1,3 @@
1
+ export type { ArrowEndpointParams, ComputedArrowEndpoint, } from './arrow-endpoint';
2
+ export { ArrowEndpoint, ArrowEndpointHandler } from './arrow-endpoint';
3
+ export { register } from './blank-endpoint-renderer';
@@ -0,0 +1,2 @@
1
+ import "./arrow-endpoint.mjs";
2
+ import "./blank-endpoint-renderer.mjs";
@@ -0,0 +1,132 @@
1
+ @charset "UTF-8";
2
+ /* stylelint-disable scss/no-global-function-names */
3
+ /* bem('block', 'element', 'modifier') => 'ibiz-block__element--modifier' */
4
+ /**
5
+ * 定义 Block 块
6
+ * @param {String} $block - Block 块名称
7
+ * @example
8
+ * @include b('button') {
9
+ * padding: 10px;
10
+ * }
11
+ */
12
+ /**
13
+ * 定义 Element 元素
14
+ * @param {String|List} $element - Element 元素名称,支持单个或多个
15
+ * @example
16
+ * @include b('button') {
17
+ * @include e('text') {
18
+ * color: #000;
19
+ * }
20
+ * }
21
+ * // 或传入多个元素
22
+ * @include b('button') {
23
+ * @include e(('text', 'icon')) {
24
+ * margin: 5px;
25
+ * }
26
+ * }
27
+ */
28
+ /**
29
+ * 定义 Modifier 修饰符
30
+ * @param {String|List} $modifier - Modifier 修饰符名称,支持单个或多个
31
+ * @example
32
+ * @include b('button') {
33
+ * @include m('primary') {
34
+ * background: blue;
35
+ * }
36
+ * }
37
+ * // 或传入多个修饰符
38
+ * @include b('button') {
39
+ * @include m(('primary', 'large')) {
40
+ * background: blue;
41
+ * font-size: 16px;
42
+ * }
43
+ * }
44
+ */
45
+ /**
46
+ * 定义状态选择器
47
+ * @param {String} $state - 状态名称
48
+ * @example
49
+ * @include b('button') {
50
+ * @include when('disabled') {
51
+ * opacity: 0.5;
52
+ * }
53
+ * }
54
+ */
55
+ /**
56
+ * 深色主题样式
57
+ * @param {String} $block - Block 块名称
58
+ * @example
59
+ * @include dark('button') {
60
+ * background: #333;
61
+ * color: #fff;
62
+ * }
63
+ */
64
+ /* stylelint-disable scss/no-global-function-names */
65
+ .gct-diagram-config-default-link__line-hover {
66
+ color: red;
67
+ }
68
+
69
+ .gct-diagram-config-default-link-custom-overlay-line {
70
+ cursor: pointer;
71
+ }
72
+ .gct-diagram-config-default-link-custom-overlay-line__not-special-line {
73
+ width: 50px;
74
+ height: 10px;
75
+ }
76
+
77
+ .gct-diagram-config-default-link-custom-overlay-line__special-line {
78
+ width: 10px;
79
+ height: 80px;
80
+ }
81
+
82
+ .gct-diagram-config-default-link-custom-overlay {
83
+ position: relative;
84
+ cursor: pointer;
85
+ }
86
+ .gct-diagram-config-default-link-custom-overlay .iconfont {
87
+ display: none;
88
+ width: 16px;
89
+ height: 16px;
90
+ }
91
+ .gct-diagram-config-default-link-custom-overlay .iconfont.delete-action:hover {
92
+ color: #F54547;
93
+ }
94
+ .gct-diagram-config-default-link-custom-overlay .iconfont.reverse-action:hover {
95
+ color: #3168EC;
96
+ }
97
+ .gct-diagram-config-default-link-custom-overlay__not-special-line {
98
+ width: 16px;
99
+ height: 50px;
100
+ }
101
+ .gct-diagram-config-default-link-custom-overlay__not-special-line .iconfont.delete-action {
102
+ position: absolute;
103
+ bottom: 9px;
104
+ left: 50%;
105
+ transform: translateX(-50%);
106
+ }
107
+ .gct-diagram-config-default-link-custom-overlay__not-special-line .iconfont.reverse-action {
108
+ position: absolute;
109
+ top: 0;
110
+ left: 50%;
111
+ transform: translateX(-50%);
112
+ }
113
+
114
+ .gct-diagram-config-default-link-custom-overlay.jtk-hover .iconfont {
115
+ display: block;
116
+ }
117
+ .gct-diagram-config-default-link-custom-overlay__special-line {
118
+ width: 50px;
119
+ height: 16px;
120
+ }
121
+ .gct-diagram-config-default-link-custom-overlay__special-line .iconfont.delete-action {
122
+ position: absolute;
123
+ top: 50%;
124
+ left: 5px;
125
+ transform: translateY(-50%);
126
+ }
127
+ .gct-diagram-config-default-link-custom-overlay__special-line .iconfont.reverse-action {
128
+ position: absolute;
129
+ top: 50%;
130
+ right: 5px;
131
+ transform: translateY(-50%);
132
+ }
@@ -0,0 +1,21 @@
1
+ import { ConnectParams } from '@jsplumb/browser-ui';
2
+ import { ILinkProvider, IRelationshipDiagramLink } from '../../interface';
3
+ import { RelationshipDiagramConfigController } from '../../relationship-diagram-config.controller';
4
+ /**
5
+ * 默认连线适配器
6
+ *
7
+ * @author zhanghanrui
8
+ * @date 2024-06-25 19:06:34
9
+ * @export
10
+ * @class DefaultLinkProvider
11
+ * @implements {ILinkProvider}
12
+ */
13
+ export declare class DefaultLinkProvider implements ILinkProvider {
14
+ type: "default";
15
+ protected ns: import('@gct-paas/core').Namespace;
16
+ sourceHandle: string;
17
+ deleteMessage: string;
18
+ protected reverse(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): void;
19
+ options(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): ConnectParams<Element>;
20
+ click(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): void;
21
+ }
@@ -0,0 +1,184 @@
1
+ import { ArrowEndpoint } from "../../plumb-plugin/arrow-endpoint.mjs";
2
+ import "../../plumb-plugin/index.mjs";
3
+ import { ConnectionDirection, LinkType, NodeType } from "../../constant/index.mjs";
4
+ import "../../relationship-diagram-config.controller.mjs";
5
+ import './default-link-provider.css';/* empty css */
6
+ import { t, useNamespace } from "@gct-paas/core";
7
+ import { Modal as Modal$1 } from "ant-design-vue";
8
+ import { DotEndpoint, FlowchartConnector } from "@jsplumb/browser-ui";
9
+ //#region src/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.ts
10
+ /**
11
+ * 默认连线适配器
12
+ *
13
+ * @author zhanghanrui
14
+ * @date 2024-06-25 19:06:34
15
+ * @export
16
+ * @class DefaultLinkProvider
17
+ * @implements {ILinkProvider}
18
+ */
19
+ var DefaultLinkProvider = class {
20
+ type = LinkType.DEFAULT;
21
+ ns = useNamespace("diagram-config-default-link");
22
+ sourceHandle = "handle-select";
23
+ deleteMessage = "sys.pageDesigner.dataLinkage.confirm.title";
24
+ reverse(c, link) {
25
+ let data = null;
26
+ if (link.reverse) data = c.node.get(link.target, 0, true);
27
+ else data = c.node.get(link.source, 0, true);
28
+ if (data) {
29
+ if (link.reverse !== true) c.node.cache.reverseClear(data, ConnectionDirection.FORWARD);
30
+ else c.node.cache.reverseClear(data, ConnectionDirection.REVERSE);
31
+ c.node.update(Object.assign(data, {
32
+ value: null,
33
+ label: null,
34
+ noSelectField: link.reverse === true ? false : true
35
+ }));
36
+ if (!link.reverse) {
37
+ if (c.node.cache.reverseReset(data, ConnectionDirection.REVERSE)) return;
38
+ } else if (c.node.cache.reverseReset(data, ConnectionDirection.FORWARD)) return;
39
+ if (!link.reverse) c.node.create({
40
+ type: NodeType.REVERSE,
41
+ reverse: true
42
+ }, {
43
+ type: LinkType.VIRTUAL,
44
+ reverse: true,
45
+ dashed: true
46
+ });
47
+ }
48
+ }
49
+ options(c, link) {
50
+ let anchors = link.reverse ? ["Left", [
51
+ 1,
52
+ .5,
53
+ 0,
54
+ 0,
55
+ 0,
56
+ 14
57
+ ]] : ["Right", [
58
+ 0,
59
+ .5,
60
+ 0,
61
+ 0,
62
+ 0,
63
+ 14
64
+ ]];
65
+ if (link.return) anchors = link.startLine % 2 === 1 ? ["Right", "Right"] : ["Left", "Left"];
66
+ else if (link.startLine % 2 === 0) anchors = link.reverse ? ["Right", [
67
+ 0,
68
+ .5,
69
+ 0,
70
+ 0,
71
+ 0,
72
+ 14
73
+ ]] : ["Left", [
74
+ 1,
75
+ .5,
76
+ 0,
77
+ 0,
78
+ 0,
79
+ 14
80
+ ]];
81
+ let direction = "right";
82
+ if (link.startLine % 2 === 1) direction = link.return || link.reverse ? "left" : "right";
83
+ else direction = link.return || link.reverse ? "right" : "left";
84
+ return {
85
+ hoverClass: this.ns.e("line-hover"),
86
+ paintStyle: {
87
+ strokeWidth: 1,
88
+ stroke: "#3168EC",
89
+ dashstyle: "0"
90
+ },
91
+ endpointStyle: { fill: "#3168EC" },
92
+ anchors,
93
+ connector: {
94
+ type: FlowchartConnector.type,
95
+ options: {
96
+ stub: [0, 25],
97
+ cornerRadius: 10
98
+ }
99
+ },
100
+ endpoints: [{
101
+ type: DotEndpoint.type,
102
+ options: { radius: 3 }
103
+ }, {
104
+ type: ArrowEndpoint.type,
105
+ options: { direction }
106
+ }],
107
+ overlays: [{
108
+ type: "Custom",
109
+ options: {
110
+ id: "change",
111
+ location: .5,
112
+ create: () => {
113
+ const div = document.createElement("div");
114
+ div.classList.add(this.ns.b("custom-overlay-line"));
115
+ if (link.return === true) div.classList.add(this.ns.be("custom-overlay-line", "special-line"));
116
+ else div.classList.add(this.ns.be("custom-overlay-line", "not-special-line"));
117
+ return div;
118
+ }
119
+ }
120
+ }, {
121
+ type: "Custom",
122
+ options: {
123
+ id: "delete",
124
+ location: .5,
125
+ create: () => {
126
+ const div = document.createElement("div");
127
+ div.classList.add(this.ns.b("custom-overlay"));
128
+ if (link.return === true) div.classList.add(this.ns.be("custom-overlay", "special-line"));
129
+ else div.classList.add(this.ns.be("custom-overlay", "not-special-line"));
130
+ if (link.type !== LinkType.VIRTUAL || link.reverse === true) {
131
+ const iEl = document.createElement("i");
132
+ iEl.className = "iconfont icon-caiqie1 delete-action";
133
+ iEl.onclick = (e) => {
134
+ e.stopPropagation();
135
+ Modal$1.confirm({
136
+ title: t(this.deleteMessage),
137
+ content: t("sys.pageDesigner.dataLinkage.confirm.content"),
138
+ onOk: () => {
139
+ if (link.reverse !== true) {
140
+ const sourceNode = c.node.get(link.source, 0, true);
141
+ if (sourceNode) {
142
+ c.node.cache.clear(sourceNode);
143
+ c.node.update(Object.assign(sourceNode, {
144
+ value: null,
145
+ label: null
146
+ }));
147
+ }
148
+ } else {
149
+ const targetNode = c.node.get(link.target, 0, true);
150
+ if (targetNode) {
151
+ c.node.cache.reverseClear(targetNode);
152
+ c.node.update(Object.assign(targetNode, {
153
+ value: null,
154
+ label: null,
155
+ noSelectField: false
156
+ }));
157
+ }
158
+ }
159
+ }
160
+ });
161
+ };
162
+ div.appendChild(iEl);
163
+ }
164
+ if (c.config.oneDirection === true && link.i === 0 || c.config.oneDirection === false && (c.config.reverseCount == null || link.i >= c.config.reverseCount)) {
165
+ const iEl2 = document.createElement("i");
166
+ iEl2.className = "iconfont icon-qiehuan1 reverse-action";
167
+ iEl2.onclick = (e) => {
168
+ e.stopPropagation();
169
+ this.reverse(c, link);
170
+ };
171
+ div.appendChild(iEl2);
172
+ }
173
+ return div;
174
+ }
175
+ }
176
+ }]
177
+ };
178
+ }
179
+ click(c, link) {
180
+ if (c.config.oneDirection === true && link.i === 0 || c.config.oneDirection === false && (c.config.reverseCount == null || link.i >= c.config.reverseCount)) this.reverse(c, link);
181
+ }
182
+ };
183
+ //#endregion
184
+ export { DefaultLinkProvider };
@@ -0,0 +1,14 @@
1
+ import { INodeProvider } from '../../interface';
2
+ /**
3
+ * 默认节点
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 20:06:31
7
+ * @export
8
+ * @class DefaultNodeProvider
9
+ * @implements {INodeProvider}
10
+ */
11
+ export declare class DefaultNodeProvider implements INodeProvider {
12
+ type: string;
13
+ component: string;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { NodeType } from "../../constant/index.mjs";
2
+ //#region src/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.ts
3
+ /**
4
+ * 默认节点
5
+ *
6
+ * @author zhanghanrui
7
+ * @date 2024-06-25 20:06:31
8
+ * @export
9
+ * @class DefaultNodeProvider
10
+ * @implements {INodeProvider}
11
+ */
12
+ var DefaultNodeProvider = class {
13
+ type = NodeType.DEFAULT;
14
+ component = "DiagramConfigItem";
15
+ };
16
+ //#endregion
17
+ export { DefaultNodeProvider };
@@ -0,0 +1,5 @@
1
+ export { DefaultLinkProvider } from './default-link-provider/default-link-provider';
2
+ export { DefaultNodeProvider } from './default-node-provider/default-node-provider';
3
+ export { ReverseNodeProvider } from './reverse-node-provider/reverse-node-provider';
4
+ export { VirtualLinkProvider } from './virtual-link-provider/virtual-link-provider';
5
+ export { VirtualNodeProvider } from './virtual-node-provider/virtual-node-provider';
@@ -0,0 +1,5 @@
1
+ import "./default-link-provider/default-link-provider.mjs";
2
+ import "./default-node-provider/default-node-provider.mjs";
3
+ import "./reverse-node-provider/reverse-node-provider.mjs";
4
+ import "./virtual-link-provider/virtual-link-provider.mjs";
5
+ import "./virtual-node-provider/virtual-node-provider.mjs";
@@ -0,0 +1,14 @@
1
+ import { INodeProvider } from '../../interface';
2
+ /**
3
+ * 最后的虚拟节点
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 20:06:31
7
+ * @export
8
+ * @class ReverseNodeProvider
9
+ * @implements {INodeProvider}
10
+ */
11
+ export declare class ReverseNodeProvider implements INodeProvider {
12
+ type: string;
13
+ component: string;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { NodeType } from "../../constant/index.mjs";
2
+ //#region src/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.ts
3
+ /**
4
+ * 最后的虚拟节点
5
+ *
6
+ * @author zhanghanrui
7
+ * @date 2024-06-25 20:06:31
8
+ * @export
9
+ * @class ReverseNodeProvider
10
+ * @implements {INodeProvider}
11
+ */
12
+ var ReverseNodeProvider = class {
13
+ type = NodeType.REVERSE;
14
+ component = "DiagramConfigItemReverse";
15
+ };
16
+ //#endregion
17
+ export { ReverseNodeProvider };
@@ -0,0 +1,16 @@
1
+ import { ConnectParams } from '@jsplumb/browser-ui';
2
+ import { IRelationshipDiagramLink } from '../../interface';
3
+ import { RelationshipDiagramConfigController } from '../../relationship-diagram-config.controller';
4
+ import { DefaultLinkProvider } from '../default-link-provider/default-link-provider';
5
+ /**
6
+ * 虚拟连线
7
+ *
8
+ * @author zhanghanrui
9
+ * @date 2024-06-27 16:06:04
10
+ * @export
11
+ * @class VirtualLinkProvider
12
+ * @extends {DefaultLinkProvider}
13
+ */
14
+ export declare class VirtualLinkProvider extends DefaultLinkProvider {
15
+ options(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): ConnectParams<Element>;
16
+ }
@@ -0,0 +1,26 @@
1
+ import "../../relationship-diagram-config.controller.mjs";
2
+ import { DefaultLinkProvider } from "../default-link-provider/default-link-provider.mjs";
3
+ //#region src/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.ts
4
+ /**
5
+ * 虚拟连线
6
+ *
7
+ * @author zhanghanrui
8
+ * @date 2024-06-27 16:06:04
9
+ * @export
10
+ * @class VirtualLinkProvider
11
+ * @extends {DefaultLinkProvider}
12
+ */
13
+ var VirtualLinkProvider = class extends DefaultLinkProvider {
14
+ options(c, link) {
15
+ const opts = super.options(c, link);
16
+ opts.paintStyle = {
17
+ strokeWidth: 1,
18
+ stroke: "#C3C3C3",
19
+ dashstyle: "4 4"
20
+ };
21
+ opts.endpointStyle = { fill: "#C3C3C3" };
22
+ return opts;
23
+ }
24
+ };
25
+ //#endregion
26
+ export { VirtualLinkProvider };
@@ -0,0 +1,14 @@
1
+ import { INodeProvider } from '../../interface';
2
+ /**
3
+ * 最后的虚拟节点
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 20:06:31
7
+ * @export
8
+ * @class VirtualNodeProvider
9
+ * @implements {INodeProvider}
10
+ */
11
+ export declare class VirtualNodeProvider implements INodeProvider {
12
+ type: string;
13
+ component: string;
14
+ }
@@ -0,0 +1,17 @@
1
+ import { NodeType } from "../../constant/index.mjs";
2
+ //#region src/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.ts
3
+ /**
4
+ * 最后的虚拟节点
5
+ *
6
+ * @author zhanghanrui
7
+ * @date 2024-06-25 20:06:31
8
+ * @export
9
+ * @class VirtualNodeProvider
10
+ * @implements {INodeProvider}
11
+ */
12
+ var VirtualNodeProvider = class {
13
+ type = NodeType.VIRTUAL;
14
+ component = "DiagramConfigItemVirtual";
15
+ };
16
+ //#endregion
17
+ export { VirtualNodeProvider };
@@ -0,0 +1,119 @@
1
+ import { BrowserJsPlumbInstance } from '@jsplumb/browser-ui';
2
+ import { RelationshipDiagramConfigState } from './relationship-diagram-config.state';
3
+ import { NodeController } from './node.controller';
4
+ import { LinkController } from './link.controller';
5
+ import { IRelationshipDiagramLink, IRelationshipDiagramOptions } from './interface';
6
+ import { ModelMetaDTO } from '@gct-paas/api/apaas';
7
+ /**
8
+ * 图形内控制器
9
+ *
10
+ * @author zhanghanrui
11
+ * @date 2024-06-25 09:06:30
12
+ * @export
13
+ * @class RelationshipDiagramConfigController
14
+ */
15
+ export declare class RelationshipDiagramConfigController {
16
+ /**
17
+ * 组件绘制完成后设置
18
+ *
19
+ * @author zhanghanrui
20
+ * @date 2024-06-25 15:06:08
21
+ * @type {HTMLDivElement}
22
+ */
23
+ container: HTMLDivElement;
24
+ /**
25
+ * 界面状态
26
+ *
27
+ * @author zhanghanrui
28
+ * @date 2024-06-25 09:06:41
29
+ * @type {RelationshipDiagramConfigState}
30
+ */
31
+ state: RelationshipDiagramConfigState;
32
+ /**
33
+ * 画线工具实例
34
+ *
35
+ * @author zhanghanrui
36
+ * @date 2024-06-25 14:06:11
37
+ * @type {BrowserJsPlumbInstance}
38
+ */
39
+ plumb: BrowserJsPlumbInstance;
40
+ readonly node: NodeController;
41
+ readonly link: LinkController;
42
+ /**
43
+ * 组件配置
44
+ *
45
+ * @author zhanghanrui
46
+ * @date 2024-06-28 15:06:35
47
+ * @type {IRelationshipDiagramOptions}
48
+ */
49
+ readonly config: IRelationshipDiagramOptions;
50
+ /**
51
+ * 临时窗口内加载的模型缓存
52
+ *
53
+ * @author zhanghanrui
54
+ * @date 2024-06-28 10:06:43
55
+ * @protected
56
+ * @type {IData}
57
+ */
58
+ protected modelMap: IData;
59
+ /**
60
+ * 临时窗口内加载的引用模型清单缓存
61
+ *
62
+ * @author zhanghanrui
63
+ * @date 2024-06-28 10:06:55
64
+ * @protected
65
+ * @type {IData}
66
+ */
67
+ protected modelListMap: IData;
68
+ /**
69
+ * 初始化画线工具
70
+ *
71
+ * @author zhanghanrui
72
+ * @date 2024-06-25 14:06:25
73
+ * @param {HTMLDivElement} el
74
+ */
75
+ initPlumb(el: HTMLDivElement): void;
76
+ connectAll(): void;
77
+ connect(link: IRelationshipDiagramLink): void;
78
+ /**
79
+ * 断开连线
80
+ *
81
+ * @author zhanghanrui
82
+ * @date 2024-06-27 17:06:43
83
+ * @param {IRelationshipDiagramLink} link
84
+ */
85
+ disconnect(link: IRelationshipDiagramLink): void;
86
+ /**
87
+ * 重绘连线
88
+ *
89
+ * @author zhanghanrui
90
+ * @date 2024-06-26 17:06:31
91
+ */
92
+ redraw(count?: number): void;
93
+ /**
94
+ * 根据标识查询具体模型,并携带属性
95
+ *
96
+ * @author zhanghanrui
97
+ * @date 2024-06-26 13:06:55
98
+ * @param {string} modelKey
99
+ * @return {*} {Promise<ModelMetaDTO>}
100
+ */
101
+ getModel(modelKey: string): Promise<ModelMetaDTO>;
102
+ /**
103
+ * 获取引用了指定模型的模型列表
104
+ *
105
+ * @author zhanghanrui
106
+ * @date 2024-06-29 18:06:47
107
+ * @param {string} modelKey
108
+ * @param {string} [fieldKey='']
109
+ * @return {*} {Promise<ModelMetaDTO[]>}
110
+ */
111
+ getModelList(modelKey: string, fieldKey?: string): Promise<ModelMetaDTO[]>;
112
+ /**
113
+ * 清空所有
114
+ *
115
+ * @author zhanghanrui
116
+ * @date 2024-06-29 17:06:11
117
+ */
118
+ clearAll(): void;
119
+ }