@gct-paas/core-web 0.1.6-dev.1 → 0.1.6-dev.11

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 (280) hide show
  1. package/dist/ColorPicker-BDeYRWA2.js +1 -0
  2. package/dist/JsBarcode-DY53cVJ6.js +1 -0
  3. package/dist/_plugin-vue_export-helper-CGzGcWFX.js +1 -0
  4. package/dist/chunk-DPOkwzLC.js +1 -0
  5. package/dist/{cropper-DPh9NaIi.js → cropper-DK_hFgpO.js} +1 -1
  6. package/dist/{de_DE-BY1He8Sf.js → de_DE-B3f8kAv-.js} +1 -1
  7. package/dist/defineProperty-Co6UJKQ3.js +1 -0
  8. package/dist/diagram-config-item-C5Ha2XJq.js +1 -0
  9. package/dist/diagram-config-item-reverse-ChoxnW-Z.js +1 -0
  10. package/dist/diagram-config-item-virtual-Cbmggfwt.js +1 -0
  11. package/dist/{en_US-CuX-vrWy.js → en_US-BSG3Kz6v.js} +1 -1
  12. package/dist/{es_ES-BqHRjpc9.js → es_ES-BGP8IOmQ.js} +1 -1
  13. package/dist/{fr_FR-C4TFcMTv.js → fr_FR-Y-6CzjUq.js} +1 -1
  14. package/dist/hooks-yX21uJ6d.js +1 -0
  15. package/dist/icon-next-picker-DYiHqnNR.js +1 -0
  16. package/dist/index.min.css +1 -1
  17. package/dist/{ja_JP-CgXnA74i.js → ja_JP-CDlH1v8M.js} +1 -1
  18. package/dist/loader.esm.min.js +1 -1
  19. package/dist/monaco-editor-CQJ9TMzD.js +1 -0
  20. package/dist/{pt_PT-C0ALlHDr.js → pt_PT-N-iIoE2_.js} +1 -1
  21. package/dist/relationship-diagram-config-DstwwXCO.js +1 -0
  22. package/dist/rich-editor-DVOriJH0.js +1 -0
  23. package/dist/{ru_RU-D39vUeFW.js → ru_RU--ESLRHrj.js} +1 -1
  24. package/dist/template-Dt6RJclf.js +1 -0
  25. package/dist/{tr_TR-Cm3P61iH.js → tr_TR-BOIykdZO.js} +1 -1
  26. package/dist/useMonacoEditor-DqSQTg7b.js +1 -0
  27. package/dist/{vi_VN-BZ_iPKuE.js → vi_VN-CmVoM2Rw.js} +1 -1
  28. package/dist/{zh_CN-DY_wA21D.js → zh_CN-DhsO5Qwx.js} +1 -1
  29. package/dist/{zh_TW-A1Y7MG2g.js → zh_TW-DWdp2kVo.js} +1 -1
  30. package/es/components/I18nSelect/src/i18n-select-btn.vue.mjs +2 -2
  31. package/es/components/I18nSelect/src/i18n-select-btn.vue_vue_type_script_setup_true_name_i18n-select-btn_lang.mjs +4 -1
  32. package/es/components/I18nSelect/src/{i18n-select-btn.vue_vue_type_style_index_0_scoped_b86f4068_lang.css → i18n-select-btn.vue_vue_type_style_index_0_scoped_ab917ea8_lang.css} +18 -13
  33. package/es/components/TreeEx/tree-ex.mjs +3 -0
  34. package/es/components/UserPick/src/user-pick.vue_vue_type_script_setup_true_lang.mjs +2 -2
  35. package/es/components/base-button/base-button.vue.mjs +1 -1
  36. package/es/components/copy-module-key/copy-module-key.vue_vue_type_script_setup_true_name_copy-module-key_lang.mjs +3 -0
  37. package/es/components/field-cascader/src/hooks.d.ts +1 -0
  38. package/es/components/field-tree-select/field-sort-popover.vue_vue_type_script_setup_true_lang.mjs +2 -0
  39. package/es/components/field-tree-select/field-tree-select.vue_vue_type_script_setup_true_lang.mjs +3 -0
  40. package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_script_setup_true_name_IconNextPicker_lang.mjs +6 -3
  41. package/es/components/icon-next-picker/icon-next-picker.vue_vue_type_style_index_0_lang.css +3 -0
  42. package/es/components/index.d.ts +1 -0
  43. package/es/components/index.mjs +3 -1
  44. package/es/components/label-design/components/rich-editor/index.d.ts +22 -1
  45. package/es/components/label-design/components/rich-editor/index.mjs +5 -1
  46. package/es/components/label-design/components/rich-editor/index.vue.d.ts +4 -4
  47. package/es/components/label-design/components/rich-editor/index.vue_vue_type_script_setup_true_lang.mjs +2 -2
  48. package/es/components/label-design/components/widgets/BarCode.vue.mjs +2 -2
  49. package/es/components/label-design/components/widgets/BarCode.vue_vue_type_script_setup_true_name_BAR_CODE_lang.mjs +28 -18
  50. package/es/components/label-design/components/widgets/{BarCode.vue_vue_type_style_index_0_scoped_492a6f00_lang.css → BarCode.vue_vue_type_style_index_0_scoped_abb7a450_lang.css} +3 -3
  51. package/es/components/label-design/index.mjs +1 -1
  52. package/es/components/label-design/modal/index.d.ts +1 -1
  53. package/es/components/label-design/modal/index.mjs +6 -6
  54. package/es/components/label-design/modal/rich-editor-modal.vue.d.ts +60 -0
  55. package/es/components/label-design/modal/rich-editor-modal.vue.mjs +2 -2
  56. package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_script_setup_true_lang.mjs +5 -6
  57. package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8a4eda15_lang.css +3 -0
  58. package/es/components/label-design/modal/template.vue_vue_type_script_setup_true_lang.mjs +2 -2
  59. package/es/components/label-design/panels/modals/diff-modal.vue_vue_type_script_setup_true_lang.mjs +2 -2
  60. package/es/components/label-design/panels/panel.vue_vue_type_script_setup_true_lang.mjs +1 -1
  61. package/es/components/label-design/panels/widget/components/label-params-select.vue_vue_type_script_setup_true_lang.mjs +7 -0
  62. package/es/components/label-design/panels/widget/controls/LabelParamsSelect.vue_vue_type_script_setup_true_name_label-params-select_lang.mjs +7 -0
  63. package/es/components/label-design/panels/widget/controls/VariableSelect.vue_vue_type_script_setup_true_name_variable-select_lang.mjs +1 -1
  64. package/es/components/label-design/panels/widget/controls/labelTemplate.vue.mjs +2 -2
  65. package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_script_setup_true_lang.mjs +1 -16
  66. package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_style_index_0_scoped_c628d318_lang.css +10 -0
  67. package/es/components/label-design/stage/stage.vue.d.ts +9 -0
  68. package/es/components/label-design/stage/stage.vue.mjs +2 -2
  69. package/es/components/label-design/stage/stage.vue_vue_type_script_setup_true_lang.mjs +5 -4
  70. package/es/components/label-design/stage/{stage.vue_vue_type_style_index_0_scoped_142d3d35_lang.css → stage.vue_vue_type_style_index_0_scoped_9275e9fb_lang.css} +8 -8
  71. package/es/components/layout/view-container/view-container.d.ts +1 -11
  72. package/es/components/layout/view-container/view-container.mjs +10 -14
  73. package/es/components/overlay-scrollbars/gct-overlay-scrollbars.mjs +16 -0
  74. package/es/components/paas-bpmn-log/components/approval-node.vue.mjs +2 -2
  75. package/es/components/paas-bpmn-log/components/approval-node.vue_vue_type_script_setup_true_lang.mjs +1 -2
  76. 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
  77. package/es/components/paas-bpmn-log/paas-bpmn-log.vue.mjs +2 -2
  78. package/es/components/paas-bpmn-log/paas-bpmn-log.vue_vue_type_script_setup_true_lang.mjs +1 -2
  79. 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
  80. package/es/components/select-user-modal/deptUser.vue.d.ts +9 -0
  81. package/es/components/select-user-modal/deptUser.vue.mjs +7 -0
  82. package/es/components/select-user-modal/deptUser.vue_vue_type_script_setup_true_name_deptUser_lang.mjs +296 -0
  83. package/es/components/select-user-modal/deptUser.vue_vue_type_style_index_0_scoped_02dff7bf_lang.css +40 -0
  84. package/es/components/select-user-modal/index.d.ts +2 -0
  85. package/es/components/select-user-modal/index.mjs +1 -0
  86. package/es/components/select-user-modal/range-role.vue.d.ts +9 -0
  87. package/es/components/select-user-modal/range-role.vue.mjs +7 -0
  88. package/es/components/select-user-modal/range-role.vue_vue_type_script_setup_true_name_role_lang.mjs +137 -0
  89. package/es/components/select-user-modal/range-role.vue_vue_type_style_index_0_scoped_1241bcdf_lang.css +34 -0
  90. package/es/components/select-user-modal/select-user-modal.vue.d.ts +12 -0
  91. package/es/components/select-user-modal/select-user-modal.vue.mjs +7 -0
  92. package/es/components/select-user-modal/select-user-modal.vue_vue_type_script_setup_true_name_select-user-modal_lang.mjs +123 -0
  93. package/es/components/select-user-modal/select-user-modal.vue_vue_type_style_index_0_scoped_2c0f184c_lang.css +14 -0
  94. package/es/components/select-user-modal/userGroup.vue.d.ts +9 -0
  95. package/es/components/select-user-modal/userGroup.vue.mjs +7 -0
  96. package/es/components/select-user-modal/userGroup.vue_vue_type_script_setup_true_name_userGroup_lang.mjs +149 -0
  97. package/es/components/select-user-modal/userGroup.vue_vue_type_style_index_0_scoped_47d1cbaa_lang.css +19 -0
  98. package/es/components/serial-number/serial-number-item.vue.mjs +2 -2
  99. package/es/components/serial-number/serial-number-item.vue_vue_type_script_setup_true_lang.mjs +1 -1
  100. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_f992d0b8_lang.css +67 -0
  101. package/es/create-app-vue.d.ts +2 -2
  102. package/es/create-app-vue.mjs +7 -5
  103. package/es/index.d.ts +5 -1
  104. package/es/index.mjs +37 -26
  105. package/es/locale/sys/model.d.ts +4 -0
  106. package/es/modules/category/category-modal.vue.d.ts +11 -0
  107. package/es/modules/category/category-modal.vue.mjs +7 -0
  108. package/es/modules/category/category-modal.vue_vue_type_script_setup_true_name_category-modal_lang.mjs +53 -0
  109. package/es/modules/category/category-modal.vue_vue_type_style_index_0_scoped_b560615c_lang.css +67 -0
  110. package/es/modules/category/category-sider.vue.d.ts +337 -0
  111. package/es/modules/category/category-sider.vue.mjs +7 -0
  112. package/es/modules/category/category-sider.vue_vue_type_script_setup_true_name_category-sider_lang.mjs +239 -0
  113. package/es/modules/category/category-sider.vue_vue_type_style_index_0_scoped_5af8c1ba_lang.css +211 -0
  114. package/es/modules/category/hooks/useCategory.d.ts +20 -0
  115. package/es/modules/category/hooks/useCategory.mjs +139 -0
  116. package/es/modules/category/index.d.ts +2 -0
  117. package/es/modules/category/index.mjs +2 -0
  118. package/es/modules/category/type.d.ts +8 -0
  119. package/es/modules/color-picker/src/color-editor.vue.mjs +1 -1
  120. package/es/modules/data-rules-container/index.d.ts +3 -0
  121. package/es/modules/data-rules-container/index.mjs +2 -0
  122. package/es/modules/data-rules-container/src/components/header-action.vue.d.ts +10 -0
  123. package/es/modules/data-rules-container/src/components/header-action.vue.mjs +7 -0
  124. package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_script_setup_true_name_header-action_lang.mjs +36 -0
  125. package/es/modules/data-rules-container/src/components/header-action.vue_vue_type_style_index_0_scoped_4e281013_lang.css +32 -0
  126. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.d.ts +8 -0
  127. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue.mjs +5 -0
  128. package/es/modules/data-rules-container/src/components/ndo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +266 -0
  129. package/es/modules/data-rules-container/src/components/perm-action-node.vue.d.ts +22 -0
  130. package/es/modules/data-rules-container/src/components/perm-action-node.vue.mjs +7 -0
  131. 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
  132. package/es/modules/data-rules-container/src/components/perm-action-node.vue_vue_type_style_index_0_scoped_417c660f_lang.css +73 -0
  133. package/es/modules/data-rules-container/src/components/perm-root-node.vue.d.ts +3 -0
  134. package/es/modules/data-rules-container/src/components/perm-root-node.vue.mjs +7 -0
  135. 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
  136. package/es/modules/data-rules-container/src/components/perm-root-node.vue_vue_type_style_index_0_scoped_ca5c9d20_lang.css +74 -0
  137. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.d.ts +11 -0
  138. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue.mjs +5 -0
  139. package/es/modules/data-rules-container/src/components/rdo-select-cmp.vue_vue_type_script_setup_true_lang.mjs +93 -0
  140. package/es/modules/data-rules-container/src/components/request-select-cmp.vue.d.ts +9 -0
  141. package/es/modules/data-rules-container/src/components/request-select-cmp.vue.mjs +5 -0
  142. 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
  143. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.d.ts +3 -0
  144. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue.mjs +6 -0
  145. 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
  146. package/es/modules/data-rules-container/src/components/request-tree-select-cmp.vue_vue_type_style_index_0_lang.css +21 -0
  147. package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.d.ts +32 -0
  148. package/es/modules/data-rules-container/src/components/select-modal-cmp.vue.mjs +5 -0
  149. 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
  150. package/es/modules/data-rules-container/src/components/select-more.vue.d.ts +8 -0
  151. package/es/modules/data-rules-container/src/components/select-more.vue.mjs +5 -0
  152. package/es/modules/data-rules-container/src/components/select-more.vue_vue_type_script_setup_true_lang.mjs +26 -0
  153. package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.d.ts +12 -0
  154. package/es/modules/data-rules-container/src/components/select-userdep-cmp.vue.mjs +5 -0
  155. 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
  156. package/es/modules/data-rules-container/src/components/tree-action-node.vue.d.ts +25 -0
  157. package/es/modules/data-rules-container/src/components/tree-action-node.vue.mjs +7 -0
  158. 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
  159. package/es/modules/data-rules-container/src/components/tree-action-node.vue_vue_type_style_index_0_scoped_46368089_lang.css +67 -0
  160. package/es/modules/data-rules-container/src/components/tree-root-node.vue.d.ts +3 -0
  161. package/es/modules/data-rules-container/src/components/tree-root-node.vue.mjs +7 -0
  162. 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
  163. package/es/modules/data-rules-container/src/components/tree-root-node.vue_vue_type_style_index_0_scoped_37e323fb_lang.css +29 -0
  164. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.d.ts +3 -0
  165. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue.mjs +5 -0
  166. package/es/modules/data-rules-container/src/components/tree-select-cmp.vue_vue_type_script_name_gct-select_setup_true_lang.mjs +89 -0
  167. package/es/modules/data-rules-container/src/constant/config.d.ts +146 -0
  168. package/es/modules/data-rules-container/src/constant/config.mjs +548 -0
  169. package/es/modules/data-rules-container/src/constant/interface.d.ts +85 -0
  170. package/es/modules/data-rules-container/src/constant/interface.mjs +36 -0
  171. package/es/modules/data-rules-container/src/data-rules-container.vue.d.ts +45 -0
  172. package/es/modules/data-rules-container/src/data-rules-container.vue.mjs +6 -0
  173. package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_script_setup_true_name_data-rules-container_lang.mjs +234 -0
  174. package/es/modules/data-rules-container/src/data-rules-container.vue_vue_type_style_index_0_lang.css +149 -0
  175. package/es/modules/data-rules-container/src/field-role-container.vue.d.ts +14 -0
  176. package/es/modules/data-rules-container/src/field-role-container.vue.mjs +5 -0
  177. package/es/modules/data-rules-container/src/field-role-container.vue_vue_type_script_setup_true_name_field-role-container_lang.mjs +73 -0
  178. package/es/modules/data-rules-container/src/hooks/useDataRulesTree.d.ts +30 -0
  179. package/es/modules/data-rules-container/src/hooks/useDataRulesTree.mjs +317 -0
  180. package/es/modules/data-rules-container/src/hooks/useEmitter.d.ts +10 -0
  181. package/es/modules/data-rules-container/src/hooks/useRdoHooks.d.ts +37 -0
  182. package/es/modules/data-rules-container/src/hooks/useRdoHooks.mjs +144 -0
  183. package/es/modules/data-rules-container/src/hooks/useRole.d.ts +8 -0
  184. package/es/modules/data-rules-container/src/typing.d.ts +40 -0
  185. package/es/modules/gct-dnd/constants/index.mjs +12 -0
  186. package/es/modules/gct-form/controller/form-item-basic/form-item-basic.controller.mjs +2 -0
  187. package/es/modules/gct-form/controller/gct-form/gct-form.controller.mjs +1 -0
  188. package/es/modules/gct-table/controller/gct-table/gct-table.controller.mjs +1 -0
  189. package/es/modules/gct-table/controller/table-item/table-item.controller.mjs +2 -0
  190. package/es/modules/gct-table/controller/table-row/table-row.controller.mjs +3 -0
  191. package/es/modules/gct-table/editor/gct-table-date/gct-table-date.mjs +1 -1
  192. package/es/modules/gct-table/editor/gct-table-text/gct-table-text.mjs +1 -1
  193. package/es/modules/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -4
  194. package/es/modules/global-modal/src/props.mjs +6 -0
  195. package/es/modules/print-tmpl/icon-print-folder.svg.mjs +4 -0
  196. package/es/modules/print-tmpl/icon-print-printer.svg.mjs +4 -0
  197. package/es/modules/print-tmpl/index.d.ts +2 -0
  198. package/es/modules/print-tmpl/index.mjs +1 -0
  199. package/es/modules/print-tmpl/print-tmpl-modal.vue.d.ts +31 -0
  200. package/es/modules/print-tmpl/print-tmpl-modal.vue.mjs +7 -0
  201. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +593 -0
  202. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_style_index_0_scoped_d94551a9_lang.css +143 -0
  203. package/es/modules/relationship-diagram-config/cache.controller.d.ts +70 -0
  204. package/es/modules/relationship-diagram-config/cache.controller.mjs +128 -0
  205. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.css +123 -0
  206. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.d.ts +381 -0
  207. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.mjs +98 -0
  208. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.css +71 -0
  209. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.d.ts +28 -0
  210. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.mjs +53 -0
  211. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.d.ts +27 -0
  212. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.mjs +2 -0
  213. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.css +107 -0
  214. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.d.ts +34 -0
  215. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.mjs +198 -0
  216. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.css +68 -0
  217. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.d.ts +31 -0
  218. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.mjs +53 -0
  219. package/es/modules/relationship-diagram-config/components/index.d.ts +5 -0
  220. package/es/modules/relationship-diagram-config/components/index.mjs +5 -0
  221. package/es/modules/relationship-diagram-config/constant/index.d.ts +72 -0
  222. package/es/modules/relationship-diagram-config/constant/index.mjs +70 -0
  223. package/es/modules/relationship-diagram-config/hooks/index.d.ts +10 -0
  224. package/es/modules/relationship-diagram-config/hooks/index.mjs +19 -0
  225. package/es/modules/relationship-diagram-config/index.d.ts +6 -0
  226. package/es/modules/relationship-diagram-config/index.mjs +28 -0
  227. package/es/modules/relationship-diagram-config/interface/i-link-provider/i-link-provider.d.ts +57 -0
  228. package/es/modules/relationship-diagram-config/interface/i-node-provider/i-node-provider.d.ts +18 -0
  229. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-link/i-relationship-diagram-link.d.ts +80 -0
  230. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-node/i-relationship-diagram-node.d.ts +82 -0
  231. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-options/i-relationship-diagram-options.d.ts +51 -0
  232. package/es/modules/relationship-diagram-config/interface/i-rule-config/i-rule-config.d.ts +135 -0
  233. package/es/modules/relationship-diagram-config/interface/index.d.ts +6 -0
  234. package/es/modules/relationship-diagram-config/link.controller.d.ts +75 -0
  235. package/es/modules/relationship-diagram-config/link.controller.mjs +121 -0
  236. package/es/modules/relationship-diagram-config/node.controller.d.ts +102 -0
  237. package/es/modules/relationship-diagram-config/node.controller.mjs +189 -0
  238. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.d.ts +23 -0
  239. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.mjs +33 -0
  240. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.d.ts +1 -0
  241. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.mjs +27 -0
  242. package/es/modules/relationship-diagram-config/plumb-plugin/index.d.ts +3 -0
  243. package/es/modules/relationship-diagram-config/plumb-plugin/index.mjs +2 -0
  244. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.css +132 -0
  245. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.d.ts +21 -0
  246. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.mjs +184 -0
  247. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.d.ts +14 -0
  248. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.mjs +17 -0
  249. package/es/modules/relationship-diagram-config/providers/index.d.ts +5 -0
  250. package/es/modules/relationship-diagram-config/providers/index.mjs +5 -0
  251. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.d.ts +14 -0
  252. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.mjs +17 -0
  253. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.d.ts +16 -0
  254. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.mjs +26 -0
  255. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.d.ts +14 -0
  256. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.mjs +17 -0
  257. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.d.ts +119 -0
  258. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.mjs +199 -0
  259. package/es/modules/relationship-diagram-config/relationship-diagram-config.css +113 -0
  260. package/es/modules/relationship-diagram-config/relationship-diagram-config.d.ts +102 -0
  261. package/es/modules/relationship-diagram-config/relationship-diagram-config.mjs +104 -0
  262. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.d.ts +44 -0
  263. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.mjs +46 -0
  264. package/es/modules/relationship-diagram-config/utils/index.d.ts +1 -0
  265. package/es/modules/relationship-diagram-config/utils/register/register.d.ts +71 -0
  266. package/es/modules/relationship-diagram-config/utils/register/register.mjs +81 -0
  267. package/es/styles/index.css +357 -0
  268. package/es/utils/recursive.mjs +6 -1
  269. package/package.json +14 -9
  270. package/dist/_plugin-vue_export-helper-DUzSxwNW.js +0 -1
  271. package/dist/chunk-lEgNpoW5.js +0 -1
  272. package/dist/icon-next-picker-y8hJhkCi.js +0 -1
  273. package/dist/monaco-editor-g5z1cRaz.js +0 -1
  274. package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8c23f0af_lang.css +0 -3
  275. package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_style_index_0_scoped_992e00bb_lang.css +0 -10
  276. package/es/components/paas-bpmn-log/hooks/useObserver.mjs +0 -46
  277. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +0 -67
  278. /package/dist/{objectSpread2-Cr8AaZiL.js → objectSpread2-DARadIQB.js} +0 -0
  279. /package/dist/{overlayscrollbars-vue-B2LfyB-V.js → overlayscrollbars-vue-Df-3wShc.js} +0 -0
  280. /package/es/modules/gct-table/editor/{gct-table-text/gct-table-text.css → gct-table-date/gct-table-date.css} +0 -0
@@ -0,0 +1,28 @@
1
+ import { LinkType, NodeType } from "./constant/index.mjs";
2
+ import { RegisterUtil } from "./utils/register/register.mjs";
3
+ import { DefaultLinkProvider } from "./providers/default-link-provider/default-link-provider.mjs";
4
+ import { DefaultNodeProvider } from "./providers/default-node-provider/default-node-provider.mjs";
5
+ import { ReverseNodeProvider } from "./providers/reverse-node-provider/reverse-node-provider.mjs";
6
+ import { VirtualLinkProvider } from "./providers/virtual-link-provider/virtual-link-provider.mjs";
7
+ import { VirtualNodeProvider } from "./providers/virtual-node-provider/virtual-node-provider.mjs";
8
+ import "./providers/index.mjs";
9
+ import { DiagramConfigItem } from "./components/diagram-config-item/diagram-config-item.mjs";
10
+ import { DiagramConfigItemReverse } from "./components/diagram-config-item-reverse/diagram-config-item-reverse.mjs";
11
+ import { DiagramConfigItemVirtual } from "./components/diagram-config-item-virtual/diagram-config-item-virtual.mjs";
12
+ import "./components/index.mjs";
13
+ import { RelationshipDiagramConfig } from "./relationship-diagram-config.mjs";
14
+ import { defineAsyncComponent } from "vue";
15
+ //#region src/modules/relationship-diagram-config/index.ts
16
+ var relationship_diagram_config_default = { install(app) {
17
+ RegisterUtil.registerLink(LinkType.DEFAULT, new DefaultLinkProvider());
18
+ RegisterUtil.registerLink(LinkType.VIRTUAL, new VirtualLinkProvider());
19
+ RegisterUtil.registerNode(NodeType.DEFAULT, new DefaultNodeProvider());
20
+ RegisterUtil.registerNode(NodeType.VIRTUAL, new VirtualNodeProvider());
21
+ RegisterUtil.registerNode(NodeType.REVERSE, new ReverseNodeProvider());
22
+ app.component(RelationshipDiagramConfig.name, defineAsyncComponent(() => import("./relationship-diagram-config.mjs")));
23
+ app.component(DiagramConfigItem.name, defineAsyncComponent(() => import("./components/diagram-config-item/diagram-config-item.mjs")));
24
+ app.component(DiagramConfigItemVirtual.name, defineAsyncComponent(() => import("./components/diagram-config-item-virtual/diagram-config-item-virtual.mjs")));
25
+ app.component(DiagramConfigItemReverse.name, defineAsyncComponent(() => import("./components/diagram-config-item-reverse/diagram-config-item-reverse.mjs")));
26
+ } };
27
+ //#endregion
28
+ export { relationship_diagram_config_default as default };
@@ -0,0 +1,57 @@
1
+ import { ConnectParams } from '@jsplumb/browser-ui';
2
+ import { IRelationshipDiagramLink } from '../i-relationship-diagram-link/i-relationship-diagram-link';
3
+ import { RelationshipDiagramConfigController } from '../../relationship-diagram-config.controller';
4
+ /**
5
+ * 连线适配器
6
+ *
7
+ * @author zhanghanrui
8
+ * @date 2024-06-25 19:06:57
9
+ * @export
10
+ * @interface ILinkProvider
11
+ */
12
+ export interface ILinkProvider {
13
+ /**
14
+ * 连线类型
15
+ *
16
+ * @author zhanghanrui
17
+ * @date 2024-06-25 20:06:56
18
+ * @type {string}
19
+ */
20
+ type: string;
21
+ /**
22
+ * 连线起始元素,填写 class name
23
+ *
24
+ * @author zhanghanrui
25
+ * @date 2024-06-25 19:06:54
26
+ * @type {string}
27
+ */
28
+ sourceHandle?: string;
29
+ /**
30
+ * 连线结束元素,填写 class name
31
+ *
32
+ * @author zhanghanrui
33
+ * @date 2024-06-25 19:06:15
34
+ * @type {string}
35
+ */
36
+ targetHandle?: string;
37
+ /**
38
+ * 计算连线配置
39
+ *
40
+ * @author zhanghanrui
41
+ * @date 2024-06-26 10:06:44
42
+ * @param {RelationshipDiagramConfigController} c
43
+ * @param {number} i
44
+ * @param {IRelationshipDiagramLink} link
45
+ * @return {*} {ConnectParams<Element>}
46
+ */
47
+ options(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): ConnectParams<Element>;
48
+ /**
49
+ * 连线点击事件
50
+ *
51
+ * @author zhanghanrui
52
+ * @date 2024-08-08 17:08:02
53
+ * @param {RelationshipDiagramConfigController} c
54
+ * @param {IRelationshipDiagramLink} link
55
+ */
56
+ click?(c: RelationshipDiagramConfigController, link: IRelationshipDiagramLink): void;
57
+ }
@@ -0,0 +1,18 @@
1
+ export interface INodeProvider {
2
+ /**
3
+ * 类型
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 20:06:31
7
+ * @type {string}
8
+ */
9
+ type: string;
10
+ /**
11
+ * 节点绘制组件
12
+ *
13
+ * @author zhanghanrui
14
+ * @date 2024-06-25 20:06:11
15
+ * @type {string}
16
+ */
17
+ component: string;
18
+ }
@@ -0,0 +1,80 @@
1
+ /**
2
+ * 连线
3
+ *
4
+ * @author zhanghanrui
5
+ * @date 2024-06-25 10:06:46
6
+ * @export
7
+ * @interface IRelationshipDiagramLink
8
+ */
9
+ export interface IRelationshipDiagramLink {
10
+ /**
11
+ * 连线唯一标识
12
+ *
13
+ * @author zhanghanrui
14
+ * @date 2024-06-25 13:06:08
15
+ * @type {string}
16
+ */
17
+ id: string;
18
+ /**
19
+ * 第几条连线
20
+ *
21
+ * @author zhanghanrui
22
+ * @date 2024-06-27 13:06:00
23
+ * @type {number}
24
+ */
25
+ i: number;
26
+ /**
27
+ * 连线类型
28
+ *
29
+ * @author zhanghanrui
30
+ * @date 2024-06-25 13:06:52
31
+ * @type {string}
32
+ */
33
+ type: string;
34
+ /**
35
+ * 起始节点标识
36
+ *
37
+ * @author zhanghanrui
38
+ * @date 2024-06-25 14:06:31
39
+ * @type {string}
40
+ */
41
+ source: string;
42
+ /**
43
+ * 目标节点标识
44
+ *
45
+ * @author zhanghanrui
46
+ * @date 2024-06-25 14:06:38
47
+ * @type {string}
48
+ */
49
+ target: string;
50
+ /**
51
+ * 是否为反向连线
52
+ *
53
+ * @author zhanghanrui
54
+ * @date 2024-06-25 16:06:07
55
+ * @type {boolean}
56
+ */
57
+ reverse?: boolean;
58
+ /**
59
+ * 是否为换行连线
60
+ *
61
+ * @author zhanghanrui
62
+ * @date 2024-06-25 16:06:07
63
+ * @type {boolean}
64
+ */
65
+ return?: boolean;
66
+ /**
67
+ * 是否为虚线
68
+ *
69
+ * @type {boolean}
70
+ */
71
+ dashed?: boolean;
72
+ /**
73
+ * 从第几行开始画线
74
+ *
75
+ * @author zhanghanrui
76
+ * @date 2024-06-25 16:06:04
77
+ * @type {number}
78
+ */
79
+ startLine: number;
80
+ }
@@ -0,0 +1,82 @@
1
+ /**
2
+ * 节点
3
+ *
4
+ * @author zhanghanrui
5
+ * @date 2024-06-25 10:06:53
6
+ * @export
7
+ * @interface IRelationshipDiagramNode
8
+ */
9
+ export interface IRelationshipDiagramNode {
10
+ /**
11
+ * 节点唯一标识
12
+ *
13
+ * @author zhanghanrui
14
+ * @date 2024-06-25 13:06:35
15
+ * @type {string}
16
+ */
17
+ id: string;
18
+ /**
19
+ * 字段唯一标识
20
+ *
21
+ * @author zhanghanrui
22
+ * @date 2024-07-05 10:07:11
23
+ * @type {string | null}
24
+ */
25
+ id_: string | null;
26
+ /**
27
+ * 节点类型
28
+ *
29
+ * @author zhanghanrui
30
+ * @date 2024-06-25 13:06:44
31
+ * @type {string}
32
+ */
33
+ type: string;
34
+ /**
35
+ * 当前模型标识
36
+ *
37
+ * @author zhanghanrui
38
+ * @date 2024-06-26 16:06:15
39
+ * @type {string | null}
40
+ */
41
+ modelKey: string | null;
42
+ /**
43
+ * 模型类型
44
+ *
45
+ * @author zhanghanrui
46
+ * @date 2024-06-26 16:06:30
47
+ * @type {string | null}
48
+ */
49
+ modelCategory: string | null;
50
+ /**
51
+ * 属性key
52
+ *
53
+ * @author zhanghanrui
54
+ * @date 2024-06-26 16:06:46
55
+ * @type {string | null}
56
+ */
57
+ value: string | null;
58
+ /**
59
+ * 属性文本
60
+ *
61
+ * @author zhanghanrui
62
+ * @date 2024-06-26 16:06:56
63
+ * @type {string | null}
64
+ */
65
+ label: string | null;
66
+ /**
67
+ * 是否为反向节点
68
+ *
69
+ * @author zhanghanrui
70
+ * @date 2024-06-28 15:06:46
71
+ * @type {boolean}
72
+ */
73
+ reverse?: boolean;
74
+ /**
75
+ * 禁止选择属性
76
+ *
77
+ * @author zhanghanrui
78
+ * @date 2024-06-28 13:06:52
79
+ * @type {boolean}
80
+ */
81
+ noSelectField?: boolean;
82
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * 组件参数配置
3
+ *
4
+ * @author zhanghanrui
5
+ * @date 2024-06-28 14:06:53
6
+ * @export
7
+ * @interface IRelationshipDiagramOptions
8
+ */
9
+ export interface IRelationshipDiagramOptions {
10
+ /**
11
+ * 一行显示多少个节点,默认一行显示三个
12
+ *
13
+ * @default 3
14
+ * @author zhanghanrui
15
+ * @date 2024-06-28 14:06:00
16
+ * @type {number}
17
+ */
18
+ lineCount: number;
19
+ /**
20
+ * 从第几个节点开始可以反转,默认不限制
21
+ *
22
+ * @author zhanghanrui
23
+ * @date 2024-06-28 15:06:06
24
+ * @type {number}
25
+ */
26
+ reverseCount?: number;
27
+ /**
28
+ * 最多可以建立多少个节点,默认不限制
29
+ *
30
+ * @author zhanghanrui
31
+ * @date 2024-06-28 15:06:13
32
+ * @type {number}
33
+ */
34
+ max?: number;
35
+ /**
36
+ * 是否为单方向绘制,默认不限制
37
+ *
38
+ * @author zhanghanrui
39
+ * @date 2024-06-28 15:06:10
40
+ * @type {boolean}
41
+ */
42
+ oneDirection?: boolean;
43
+ /**
44
+ * 可以有几个反转节点,默认不限制
45
+ *
46
+ * @author zhanghanrui
47
+ * @date 2024-06-28 15:06:02
48
+ * @type {number}
49
+ */
50
+ reverseMax?: number;
51
+ }
@@ -0,0 +1,135 @@
1
+ import { IRelationshipDiagramNode } from '../i-relationship-diagram-node/i-relationship-diagram-node';
2
+ /**
3
+ * 设计 json
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-29 17:06:51
7
+ * @export
8
+ * @interface IDesignJson
9
+ */
10
+ export interface IDesignJson {
11
+ /**
12
+ * 前置信息
13
+ *
14
+ * @author zhanghanrui
15
+ * @date 2024-06-29 17:06:58
16
+ * @type {IData}
17
+ */
18
+ before?: IData;
19
+ /**
20
+ * 节点信息
21
+ *
22
+ * @author zhanghanrui
23
+ * @date 2024-06-29 17:06:10
24
+ * @type {IRelationshipDiagramNode[]}
25
+ */
26
+ nodes: IRelationshipDiagramNode[];
27
+ /**
28
+ * 后置信息
29
+ *
30
+ * @author zhanghanrui
31
+ * @date 2024-06-29 17:06:08
32
+ * @type {IData}
33
+ */
34
+ after?: IData;
35
+ }
36
+ export interface INodeData {
37
+ /**
38
+ * 模型标识
39
+ *
40
+ * @author zhanghanrui
41
+ * @date 2024-06-29 17:06:38
42
+ * @type {string}
43
+ */
44
+ modelKey: string;
45
+ /**
46
+ * 模型类型
47
+ *
48
+ * @author zhanghanrui
49
+ * @date 2024-06-29 17:06:06
50
+ * @type {string}
51
+ */
52
+ modelCategory: string;
53
+ /**
54
+ * 属性标识
55
+ *
56
+ * @author zhanghanrui
57
+ * @date 2024-06-29 17:06:42
58
+ * @type {string}
59
+ */
60
+ fieldKey: string;
61
+ /**
62
+ * 节点方向
63
+ *
64
+ * @author zhanghanrui
65
+ * @date 2024-06-29 17:06:47
66
+ * @type {('forward' | 'backward' | '')}
67
+ */
68
+ direction: 'forward' | 'backward' | '';
69
+ }
70
+ /**
71
+ * 数据联动 ruleConfig 配置清单
72
+ *
73
+ * @author zhanghanrui
74
+ * @date 2024-06-29 17:06:29
75
+ * @export
76
+ * @interface IRuleConfig
77
+ */
78
+ export interface IRuleConfig {
79
+ /**
80
+ * 设计 json 配置
81
+ *
82
+ * @author zhanghanrui
83
+ * @date 2024-06-29 17:06:31
84
+ * @type {IDesignJson}
85
+ */
86
+ designJson: IDesignJson;
87
+ /**
88
+ * 是否强依赖
89
+ *
90
+ * @author zhanghanrui
91
+ * @date 2024-09-02 15:09:15
92
+ * @type {boolean}
93
+ */
94
+ strongDependence: boolean;
95
+ /**
96
+ * 主查字段名称
97
+ *
98
+ * @author zhanghanrui
99
+ * @date 2024-06-29 19:06:48
100
+ * @type {string}
101
+ */
102
+ modelKey: string;
103
+ /**
104
+ * 属性标识(不是所有场景都有)
105
+ *
106
+ * @author zhanghanrui
107
+ * @date 2024-07-05 11:07:25
108
+ * @type {string}
109
+ */
110
+ fieldId?: string;
111
+ /**
112
+ * 属性标识(不是所有场景都有)
113
+ *
114
+ * @author zhanghanrui
115
+ * @date 2024-06-29 17:06:47
116
+ * @type {string}
117
+ */
118
+ fieldKey?: string;
119
+ /**
120
+ * 属性名称
121
+ *
122
+ * @author zhanghanrui
123
+ * @date 2024-06-29 19:06:24
124
+ * @type {string}
125
+ */
126
+ fieldLabel?: string;
127
+ /**
128
+ * 给后台使用的 nodes 清单
129
+ *
130
+ * @author zhanghanrui
131
+ * @date 2024-06-29 17:06:41
132
+ * @type {INodeData[]}
133
+ */
134
+ nodes: INodeData[];
135
+ }
@@ -0,0 +1,6 @@
1
+ export type { ILinkProvider } from './i-link-provider/i-link-provider';
2
+ export type { INodeProvider } from './i-node-provider/i-node-provider';
3
+ export type { IRelationshipDiagramLink } from './i-relationship-diagram-link/i-relationship-diagram-link';
4
+ export type { IRelationshipDiagramNode } from './i-relationship-diagram-node/i-relationship-diagram-node';
5
+ export type { IRelationshipDiagramOptions } from './i-relationship-diagram-options/i-relationship-diagram-options';
6
+ export type { IRuleConfig } from './i-rule-config/i-rule-config';
@@ -0,0 +1,75 @@
1
+ import { IRelationshipDiagramLink } from './interface';
2
+ import { RelationshipDiagramConfigController } from './relationship-diagram-config.controller';
3
+ /**
4
+ * 连线控制器
5
+ *
6
+ * @author zhanghanrui
7
+ * @date 2024-06-25 14:06:19
8
+ * @export
9
+ * @class LinkController
10
+ */
11
+ export declare class LinkController {
12
+ protected readonly c: RelationshipDiagramConfigController;
13
+ constructor(c: RelationshipDiagramConfigController);
14
+ /**
15
+ * 创建连线
16
+ *
17
+ * @author zhanghanrui
18
+ * @date 2024-06-26 16:06:24
19
+ * @param {IData} data
20
+ * @return {*} {IRelationshipDiagramLink}
21
+ */
22
+ create(data: IData): IRelationshipDiagramLink;
23
+ /**
24
+ * 更新连线数据
25
+ *
26
+ * @author zhanghanrui
27
+ * @date 2024-06-25 14:06:51
28
+ * @param {IRelationshipDiagramLink} link
29
+ */
30
+ update(link: IRelationshipDiagramLink): void;
31
+ /**
32
+ * 获取连线数据
33
+ *
34
+ * @author zhanghanrui
35
+ * @date 2024-06-25 14:06:43
36
+ * @param {string} id
37
+ * @return {*} {(IRelationshipDiagramLink | null)}
38
+ */
39
+ get(id: string): IRelationshipDiagramLink | null;
40
+ /**
41
+ * 根据起始节点查找连线
42
+ *
43
+ * @author zhanghanrui
44
+ * @date 2024-06-25 14:06:19
45
+ * @param {string} source
46
+ * @return {*} {(IRelationshipDiagramLink | null)}
47
+ */
48
+ getBySource(source: string): IRelationshipDiagramLink | null;
49
+ /**
50
+ * 根据结束节点查找连线
51
+ *
52
+ * @author zhanghanrui
53
+ * @date 2024-06-25 14:06:50
54
+ * @param {string} target
55
+ * @return {*} {(IRelationshipDiagramLink | null)}
56
+ */
57
+ getByTarget(target: string): IRelationshipDiagramLink | null;
58
+ /**
59
+ * 删除连线数据,删除当前指定连线后所有数据
60
+ *
61
+ * @author zhanghanrui
62
+ * @date 2024-06-25 14:06:48
63
+ * @param {string} id
64
+ */
65
+ delete(id: string): void;
66
+ /**
67
+ * 清除已经绘制的连线
68
+ *
69
+ * @author zhanghanrui
70
+ * @date 2024-06-27 13:06:08
71
+ * @protected
72
+ * @param {IRelationshipDiagramLink[]} links
73
+ */
74
+ protected clearLinks(links: IRelationshipDiagramLink[]): void;
75
+ }
@@ -0,0 +1,121 @@
1
+ import { LinkType } from "./constant/index.mjs";
2
+ import "./relationship-diagram-config.controller.mjs";
3
+ import { uuid } from "@jsplumb/browser-ui";
4
+ //#region src/modules/relationship-diagram-config/link.controller.ts
5
+ /**
6
+ * 连线控制器
7
+ *
8
+ * @author zhanghanrui
9
+ * @date 2024-06-25 14:06:19
10
+ * @export
11
+ * @class LinkController
12
+ */
13
+ var LinkController = class {
14
+ c;
15
+ constructor(c) {
16
+ this.c = c;
17
+ }
18
+ /**
19
+ * 创建连线
20
+ *
21
+ * @author zhanghanrui
22
+ * @date 2024-06-26 16:06:24
23
+ * @param {IData} data
24
+ * @return {*} {IRelationshipDiagramLink}
25
+ */
26
+ create(data) {
27
+ const i = this.c.state.links.length;
28
+ const link = {
29
+ id: uuid(),
30
+ i,
31
+ type: LinkType.DEFAULT,
32
+ reverse: false,
33
+ return: (i + 1) % this.c.config.lineCount === 0,
34
+ startLine: Math.floor(i / 3) + 1,
35
+ dashed: false,
36
+ ...data
37
+ };
38
+ this.c.state.links.push(link);
39
+ setTimeout(() => {
40
+ this.c.connect(link);
41
+ }, 0);
42
+ return link;
43
+ }
44
+ /**
45
+ * 更新连线数据
46
+ *
47
+ * @author zhanghanrui
48
+ * @date 2024-06-25 14:06:51
49
+ * @param {IRelationshipDiagramLink} link
50
+ */
51
+ update(link) {
52
+ const data = this.get(link.id);
53
+ if (data) {
54
+ this.clearLinks([link]);
55
+ Object.assign(data, link);
56
+ this.c.connect(link);
57
+ }
58
+ }
59
+ /**
60
+ * 获取连线数据
61
+ *
62
+ * @author zhanghanrui
63
+ * @date 2024-06-25 14:06:43
64
+ * @param {string} id
65
+ * @return {*} {(IRelationshipDiagramLink | null)}
66
+ */
67
+ get(id) {
68
+ return this.c.state.links.find((link) => link.id === id) ?? null;
69
+ }
70
+ /**
71
+ * 根据起始节点查找连线
72
+ *
73
+ * @author zhanghanrui
74
+ * @date 2024-06-25 14:06:19
75
+ * @param {string} source
76
+ * @return {*} {(IRelationshipDiagramLink | null)}
77
+ */
78
+ getBySource(source) {
79
+ return this.c.state.links.find((link) => link.source === source) ?? null;
80
+ }
81
+ /**
82
+ * 根据结束节点查找连线
83
+ *
84
+ * @author zhanghanrui
85
+ * @date 2024-06-25 14:06:50
86
+ * @param {string} target
87
+ * @return {*} {(IRelationshipDiagramLink | null)}
88
+ */
89
+ getByTarget(target) {
90
+ return this.c.state.links.find((link) => link.target === target) ?? null;
91
+ }
92
+ /**
93
+ * 删除连线数据,删除当前指定连线后所有数据
94
+ *
95
+ * @author zhanghanrui
96
+ * @date 2024-06-25 14:06:48
97
+ * @param {string} id
98
+ */
99
+ delete(id) {
100
+ const i = this.c.state.links.findIndex((link) => link.id === id);
101
+ if (i !== -1) {
102
+ const links = this.c.state.links.splice(i, this.c.state.links.length);
103
+ this.clearLinks(links);
104
+ }
105
+ }
106
+ /**
107
+ * 清除已经绘制的连线
108
+ *
109
+ * @author zhanghanrui
110
+ * @date 2024-06-27 13:06:08
111
+ * @protected
112
+ * @param {IRelationshipDiagramLink[]} links
113
+ */
114
+ clearLinks(links) {
115
+ this.c.plumb.getConnections().forEach((item) => {
116
+ if (links.find((_) => item.data.id === _.id)) this.c.plumb.deleteConnection(item);
117
+ });
118
+ }
119
+ };
120
+ //#endregion
121
+ export { LinkController };