@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,98 @@
1
+ import { useRootController } from "../../hooks/index.mjs";
2
+ import './diagram-config-item.css';/* empty css */
3
+ import { createVNode, defineComponent, ref, resolveComponent, watch } from "vue";
4
+ import { clone } from "lodash-es";
5
+ import { FIELD_TYPE, t, useNamespace } from "@gct-paas/core";
6
+ //#region src/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.tsx
7
+ /**
8
+ * 节点容器
9
+ */
10
+ var DiagramConfigItem = /* @__PURE__ */ defineComponent({
11
+ name: "DiagramConfigItem",
12
+ props: {
13
+ i: {
14
+ type: Number,
15
+ required: true
16
+ },
17
+ isEnd: {
18
+ type: Boolean,
19
+ required: true
20
+ },
21
+ data: {
22
+ type: Object,
23
+ required: true
24
+ }
25
+ },
26
+ setup(props) {
27
+ const ns = useNamespace("diagram-config-item");
28
+ const select = ref(props.data.value || null);
29
+ watch(props.data, () => {
30
+ select.value = props.data.value || null;
31
+ });
32
+ const types = [
33
+ FIELD_TYPE.REF,
34
+ FIELD_TYPE.REF_MULTI,
35
+ FIELD_TYPE.RDO_REF,
36
+ FIELD_TYPE.MASTERSLAVE
37
+ ];
38
+ const c = useRootController();
39
+ const model = ref({});
40
+ const options = ref([]);
41
+ const onChange = (val, data) => {
42
+ const updateData = clone(props.data);
43
+ if (updateData.value) c.node.cache.clear(updateData);
44
+ if (data) Object.assign(updateData, {
45
+ modelCategory: model.value.modelCategory ?? "entity",
46
+ value: val,
47
+ label: data.label,
48
+ id_: data.id
49
+ });
50
+ else Object.assign(updateData, {
51
+ modelCategory: null,
52
+ value: null,
53
+ label: null,
54
+ id_: null
55
+ });
56
+ c.node.update(updateData);
57
+ if (val) c.node.cache.reset(updateData);
58
+ if (!c.link.getBySource(props.data.id) && data) c.node.create({ modelKey: data.refModelKey });
59
+ };
60
+ const load = async () => {
61
+ model.value = await c.getModel(props.data.modelKey);
62
+ if (model.value.fieldMetaList) model.value.fieldMetaList.filter((item) => types.includes(item.type)).forEach((item) => {
63
+ options.value.push({
64
+ id: item.id,
65
+ label: item.name,
66
+ value: item.key,
67
+ refModelKey: item.bindInfo
68
+ });
69
+ });
70
+ };
71
+ load();
72
+ return {
73
+ ns,
74
+ c,
75
+ select,
76
+ model,
77
+ options,
78
+ onChange
79
+ };
80
+ },
81
+ render() {
82
+ return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": this.ns.b("title") }, [createVNode("span", null, [this.model.name])]), createVNode("div", { "class": [this.ns.b("content")] }, [this.isEnd ? createVNode("div", { "class": this.ns.e("end") }, [createVNode("div", { "class": this.ns.em("end", "line") }, null), createVNode("div", { "class": this.ns.em("end", "label") }, [t("sys.pageDesigner.end")])]) : this.data.noSelectField !== true ? createVNode(resolveComponent("a-select"), {
83
+ "class": [
84
+ this.ns.b("select"),
85
+ this.ns.is("select", !!this.select),
86
+ "handle-select"
87
+ ],
88
+ "value": this.select,
89
+ "onUpdate:value": ($event) => this.select = $event,
90
+ "options": this.options,
91
+ "placeholder": t("sys.pageDesigner.dataLinkage.selectPlaceholder"),
92
+ "allowClear": true,
93
+ "onChange": this.onChange
94
+ }, null) : null])]);
95
+ }
96
+ });
97
+ //#endregion
98
+ export { DiagramConfigItem, DiagramConfigItem as default };
@@ -0,0 +1,71 @@
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-item-container {
66
+ position: absolute;
67
+ top: 0;
68
+ left: 0;
69
+ width: 178px;
70
+ height: 84px;
71
+ }
@@ -0,0 +1,28 @@
1
+ export declare const DiagramConfigItemContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
2
+ i: {
3
+ type: NumberConstructor;
4
+ required: true;
5
+ };
6
+ id: {
7
+ type: StringConstructor;
8
+ required: true;
9
+ };
10
+ }>, {
11
+ ns: import('@gct-paas/core').Namespace;
12
+ calcPosStyle: () => {
13
+ top: string;
14
+ left: string;
15
+ };
16
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("mounted" | "unmounted")[], "mounted" | "unmounted", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
+ i: {
18
+ type: NumberConstructor;
19
+ required: true;
20
+ };
21
+ id: {
22
+ type: StringConstructor;
23
+ required: true;
24
+ };
25
+ }>> & Readonly<{
26
+ onMounted?: ((...args: any[]) => any) | undefined;
27
+ onUnmounted?: ((...args: any[]) => any) | undefined;
28
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
@@ -0,0 +1,53 @@
1
+ import './diagram-config-item-container.css';/* empty css */
2
+ import { createVNode, defineComponent, onMounted, onUnmounted } from "vue";
3
+ import { useNamespace } from "@gct-paas/core";
4
+ //#region src/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.tsx
5
+ var DiagramConfigItemContainer = /* @__PURE__ */ defineComponent({
6
+ name: "DiagramConfigItemContainer",
7
+ props: {
8
+ i: {
9
+ type: Number,
10
+ required: true
11
+ },
12
+ id: {
13
+ type: String,
14
+ required: true
15
+ }
16
+ },
17
+ emits: ["mounted", "unmounted"],
18
+ setup(props, { emit }) {
19
+ const ns = useNamespace("diagram-config-item-container");
20
+ const calcPosStyle = () => {
21
+ const topI = Math.floor(props.i / 3);
22
+ const leftI = props.i % 3;
23
+ if (topI % 2 !== 1) return {
24
+ top: 24 * (topI + 1) + 84 * topI + "px",
25
+ left: 46 * (leftI + 1) + 178 * leftI - 25 + "px"
26
+ };
27
+ else return {
28
+ top: 24 * (topI + 1) + 84 * topI + "px",
29
+ left: 46 * (3 - leftI) + 178 * (2 - leftI) - 25 + "px"
30
+ };
31
+ };
32
+ onMounted(() => {
33
+ emit("mounted");
34
+ });
35
+ onUnmounted(() => {
36
+ emit("unmounted");
37
+ });
38
+ return {
39
+ ns,
40
+ calcPosStyle
41
+ };
42
+ },
43
+ render() {
44
+ const slots = this.$slots.default?.();
45
+ return createVNode("div", {
46
+ "id": this.id,
47
+ "class": this.ns.b(),
48
+ "style": this.calcPosStyle()
49
+ }, [slots]);
50
+ }
51
+ });
52
+ //#endregion
53
+ export { DiagramConfigItemContainer };
@@ -0,0 +1,27 @@
1
+ import { PropType } from 'vue';
2
+ import { IRelationshipDiagramNode } from '../../interface';
3
+ /**
4
+ * 节点容器
5
+ */
6
+ export declare const DiagramConfigItemInfo: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ i: {
8
+ type: NumberConstructor;
9
+ required: true;
10
+ };
11
+ data: {
12
+ type: PropType<IRelationshipDiagramNode>;
13
+ required: true;
14
+ };
15
+ }>, {
16
+ ns: import('@gct-paas/core').Namespace;
17
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
18
+ i: {
19
+ type: NumberConstructor;
20
+ required: true;
21
+ };
22
+ data: {
23
+ type: PropType<IRelationshipDiagramNode>;
24
+ required: true;
25
+ };
26
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
27
+ export default DiagramConfigItemInfo;
@@ -0,0 +1,107 @@
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-item-reverse {
66
+ width: 100%;
67
+ height: 100%;
68
+ border: 1px solid #E8EBF0;
69
+ border-radius: 4px;
70
+ box-shadow: 0 0 8px 0 rgba(0, 0, 0, 0.06);
71
+ }
72
+ .gct-diagram-config-item-reverse__title {
73
+ height: 32px;
74
+ padding: 8px 12px;
75
+ font-size: 14px;
76
+ line-height: 22px;
77
+ color: #212528;
78
+ }
79
+ .gct-diagram-config-item-reverse__title .ant-select {
80
+ min-width: 100px;
81
+ }
82
+
83
+ .gct-diagram-config-item-reverse__select {
84
+ height: 50px;
85
+ padding: 7px 12px;
86
+ }
87
+ .gct-diagram-config-item-reverse__select .ant-select {
88
+ width: 152px;
89
+ }
90
+ .gct-diagram-config-item-reverse__select .ant-select .ant-select-selector {
91
+ background-color: #F7F8FA;
92
+ }
93
+ .gct-diagram-config-item-reverse__select .ant-select .ant-select-selector .ant-select-selection-placeholder {
94
+ color: #C3C3C3;
95
+ }
96
+ .gct-diagram-config-item-reverse__select.is-select .ant-select-selector {
97
+ border-color: #3168EC !important;
98
+ }
99
+
100
+ .gct-diagram-config-item-reverse__model-select {
101
+ padding: 4.5px 8px;
102
+ background-color: #F7F8FA;
103
+ }
104
+ .gct-diagram-config-item-reverse__model-select .ant-select .ant-select-selector {
105
+ background-color: transparent;
106
+ border: 0;
107
+ }
@@ -0,0 +1,34 @@
1
+ import { PropType } from 'vue';
2
+ import { IRelationshipDiagramNode } from '../../interface';
3
+ /**
4
+ * 节点容器
5
+ */
6
+ export declare const DiagramConfigItemReverse: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
7
+ i: {
8
+ type: NumberConstructor;
9
+ required: true;
10
+ };
11
+ data: {
12
+ type: PropType<IRelationshipDiagramNode>;
13
+ required: true;
14
+ };
15
+ }>, {
16
+ ns: import('@gct-paas/core').Namespace;
17
+ modelSelect: import('vue').Ref<string | null, string | null>;
18
+ select: import('vue').Ref<string | null, string | null>;
19
+ modelOptions: import('vue').Ref<IData[], IData[]>;
20
+ options: import('vue').Ref<IData[], IData[]>;
21
+ onModelChange: (value: string | null, _: IObject) => void;
22
+ onChange: (value: string | null, _: IObject) => void;
23
+ onModelFocus: () => Promise<void>;
24
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
25
+ i: {
26
+ type: NumberConstructor;
27
+ required: true;
28
+ };
29
+ data: {
30
+ type: PropType<IRelationshipDiagramNode>;
31
+ required: true;
32
+ };
33
+ }>> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
34
+ export default DiagramConfigItemReverse;
@@ -0,0 +1,198 @@
1
+ import { LinkType, NodeType } from "../../constant/index.mjs";
2
+ import { useRootController } from "../../hooks/index.mjs";
3
+ import './diagram-config-item-reverse.css';/* empty css */
4
+ import { createVNode, defineComponent, ref, resolveComponent, watch } from "vue";
5
+ import { clone } from "lodash-es";
6
+ import { t, useNamespace } from "@gct-paas/core";
7
+ //#region src/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.tsx
8
+ /**
9
+ * 节点容器
10
+ */
11
+ var DiagramConfigItemReverse = /* @__PURE__ */ defineComponent({
12
+ name: "DiagramConfigItemReverse",
13
+ props: {
14
+ i: {
15
+ type: Number,
16
+ required: true
17
+ },
18
+ data: {
19
+ type: Object,
20
+ required: true
21
+ }
22
+ },
23
+ setup(props) {
24
+ const ns = useNamespace("diagram-config-item-reverse");
25
+ const c = useRootController();
26
+ const models = ref([]);
27
+ const modelSelect = ref(props.data.modelKey || null);
28
+ const select = ref(props.data.value || null);
29
+ const modelOptions = ref([]);
30
+ const options = ref([]);
31
+ watch(props.data, () => {
32
+ modelSelect.value = props.data.modelKey || null;
33
+ select.value = props.data.value || null;
34
+ redrawConnect();
35
+ });
36
+ const onModelChange = (value, _) => {
37
+ options.value = [];
38
+ modelSelect.value = value;
39
+ select.value = null;
40
+ const cloneData = clone(props.data);
41
+ c.node.cache.reverseClear(cloneData);
42
+ c.node.update(Object.assign(cloneData, {
43
+ modelKey: value ?? null,
44
+ modelCategory: _ ? _.data.modelCategory ?? "entity" : "entity",
45
+ value: null,
46
+ label: null
47
+ }));
48
+ if (value) c.node.cache.reverseReset(cloneData);
49
+ options.value = [];
50
+ fillFieldsOptions(_);
51
+ updateBeforeState();
52
+ updateAfterState();
53
+ redrawConnect();
54
+ };
55
+ const fillFieldsOptions = (_) => {
56
+ if (_) {
57
+ const data = _.data;
58
+ if (data.fieldMetaList) options.value = data.fieldMetaList.map((item) => {
59
+ return {
60
+ label: item.name,
61
+ value: item.key,
62
+ data: item
63
+ };
64
+ });
65
+ }
66
+ };
67
+ const onChange = (value, _) => {
68
+ select.value = value;
69
+ const cloneData = clone(props.data);
70
+ if (cloneData.value) c.node.cache.clear(cloneData);
71
+ if (value) c.node.update(Object.assign(cloneData, {
72
+ value,
73
+ label: _.label
74
+ }));
75
+ else c.node.update(Object.assign(cloneData, {
76
+ value: null,
77
+ label: null
78
+ }));
79
+ if (value) c.node.cache.reset(cloneData);
80
+ updateBeforeState();
81
+ updateAfterState();
82
+ redrawConnect();
83
+ };
84
+ /**
85
+ * 更新后一个节点的状态
86
+ *
87
+ * @author zhanghanrui
88
+ * @date 2024-06-28 15:06:19
89
+ */
90
+ const updateAfterState = async () => {
91
+ if (select.value) {
92
+ if (c.link.getByTarget(props.data.id)) return;
93
+ const items = await c.getModelList(modelSelect.value, select.value);
94
+ if (items && items.length > 0) c.node.create({
95
+ type: NodeType.REVERSE,
96
+ reverse: true
97
+ }, {
98
+ type: LinkType.VIRTUAL,
99
+ reverse: true,
100
+ dashed: true
101
+ });
102
+ }
103
+ };
104
+ /**
105
+ * 更新前一个节点的状态
106
+ *
107
+ * @author zhanghanrui
108
+ * @date 2024-06-28 14:06:53
109
+ */
110
+ const updateBeforeState = () => {
111
+ const link = c.link.getBySource(props.data.id);
112
+ if (link) {
113
+ const node = c.node.get(link.target, 0, true);
114
+ if (node && node.type === NodeType.DEFAULT) if (select.value) c.node.update(Object.assign(node, {
115
+ value: null,
116
+ label: null,
117
+ noSelectField: true
118
+ }));
119
+ else c.node.update(Object.assign(node, {
120
+ value: null,
121
+ label: null,
122
+ noSelectField: false
123
+ }));
124
+ }
125
+ };
126
+ const redrawConnect = () => {
127
+ const link = c.link.getBySource(props.data.id);
128
+ if (link) {
129
+ const l = clone(link);
130
+ if (select.value) l.type = LinkType.DEFAULT;
131
+ else l.type = LinkType.VIRTUAL;
132
+ c.link.update(l);
133
+ const node = c.node.get(link.target);
134
+ if (node) c.node.update({
135
+ ...node,
136
+ noSelectField: true
137
+ });
138
+ }
139
+ };
140
+ const onModelFocus = async () => {
141
+ const link = c.link.getBySource(props.data.id);
142
+ if (link) {
143
+ const targetNode = c.node.get(link.target);
144
+ if (targetNode) {
145
+ models.value = await c.getModelList(targetNode.modelKey, targetNode.value);
146
+ modelOptions.value = models.value.map((item) => {
147
+ return {
148
+ value: item.key,
149
+ label: item.name,
150
+ data: item
151
+ };
152
+ });
153
+ }
154
+ }
155
+ };
156
+ const load = async () => {
157
+ if (props.data.modelKey) {
158
+ await onModelFocus();
159
+ const opt = modelOptions.value.find((item) => {
160
+ return item.value === props.data.modelKey;
161
+ });
162
+ if (opt) fillFieldsOptions(opt);
163
+ }
164
+ };
165
+ load();
166
+ return {
167
+ ns,
168
+ modelSelect,
169
+ select,
170
+ modelOptions,
171
+ options,
172
+ onModelChange,
173
+ onChange,
174
+ onModelFocus
175
+ };
176
+ },
177
+ render() {
178
+ return createVNode("div", { "class": this.ns.b() }, [createVNode("div", { "class": [this.ns.e("title"), this.ns.e("model-select")] }, [createVNode(resolveComponent("a-select"), {
179
+ "size": "small",
180
+ "allowClear": true,
181
+ "placeholder": t("sys.pageDesigner.selectModel"),
182
+ "value": this.modelSelect,
183
+ "options": this.modelOptions,
184
+ "onChange": (val, o) => this.onModelChange(val, o),
185
+ "onFocus": () => this.onModelFocus()
186
+ }, null)]), createVNode("div", { "class": [this.ns.e("select")] }, [createVNode(resolveComponent("a-select"), {
187
+ "class": "handle-select",
188
+ "allowClear": true,
189
+ "placeholder": t("sys.pageDesigner.dataLinkage.selectPlaceholder"),
190
+ "value": this.select,
191
+ "options": this.options,
192
+ "onChange": (val, o) => this.onChange(val, o),
193
+ "disabled": !this.modelSelect
194
+ }, null)])]);
195
+ }
196
+ });
197
+ //#endregion
198
+ export { DiagramConfigItemReverse, DiagramConfigItemReverse as default };
@@ -0,0 +1,68 @@
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-item-virtual {
66
+ width: 100%;
67
+ height: 100%;
68
+ }