@gct-paas/core-web 0.1.6-dev.0 → 0.1.6-dev.10

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 (283) 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/global-modal/src/components/ModalWrapper.vue_vue_type_script_lang.mjs +1 -4
  192. package/es/modules/global-modal/src/props.mjs +6 -0
  193. package/es/modules/picture-cropper/src/CopperFreeModal.vue.mjs +2 -2
  194. package/es/modules/picture-cropper/src/CopperFreeModal.vue_vue_type_script_setup_true_name_CropperModal_lang.mjs +1 -1
  195. package/es/modules/picture-cropper/src/{CopperFreeModal.vue_vue_type_style_index_0_scoped_9069f48a_lang.css → CopperFreeModal.vue_vue_type_style_index_0_scoped_da6428d3_lang.css} +10 -10
  196. package/es/modules/picture-cropper/src/CropperFree.vue.mjs +2 -2
  197. package/es/modules/picture-cropper/src/CropperFree.vue_vue_type_script_setup_true_name_CropperPhoto_lang.mjs +1 -1
  198. package/es/modules/picture-cropper/src/{CropperFree.vue_vue_type_style_index_0_scoped_7a51c6b9_lang.css → CropperFree.vue_vue_type_style_index_0_scoped_c85d53db_lang.css} +16 -16
  199. package/es/modules/print-tmpl/icon-print-folder.svg.mjs +4 -0
  200. package/es/modules/print-tmpl/icon-print-printer.svg.mjs +4 -0
  201. package/es/modules/print-tmpl/index.d.ts +2 -0
  202. package/es/modules/print-tmpl/index.mjs +1 -0
  203. package/es/modules/print-tmpl/print-tmpl-modal.vue.d.ts +31 -0
  204. package/es/modules/print-tmpl/print-tmpl-modal.vue.mjs +7 -0
  205. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_script_setup_true_name_print-tmpl-modal_lang.mjs +593 -0
  206. package/es/modules/print-tmpl/print-tmpl-modal.vue_vue_type_style_index_0_scoped_d94551a9_lang.css +143 -0
  207. package/es/modules/relationship-diagram-config/cache.controller.d.ts +70 -0
  208. package/es/modules/relationship-diagram-config/cache.controller.mjs +128 -0
  209. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.css +123 -0
  210. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.d.ts +381 -0
  211. package/es/modules/relationship-diagram-config/components/diagram-config-item/diagram-config-item.mjs +98 -0
  212. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.css +71 -0
  213. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.d.ts +28 -0
  214. package/es/modules/relationship-diagram-config/components/diagram-config-item-container/diagram-config-item-container.mjs +53 -0
  215. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.d.ts +27 -0
  216. package/es/modules/relationship-diagram-config/components/diagram-config-item-info/diagram-config-item-info.mjs +2 -0
  217. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.css +107 -0
  218. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.d.ts +34 -0
  219. package/es/modules/relationship-diagram-config/components/diagram-config-item-reverse/diagram-config-item-reverse.mjs +198 -0
  220. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.css +68 -0
  221. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.d.ts +31 -0
  222. package/es/modules/relationship-diagram-config/components/diagram-config-item-virtual/diagram-config-item-virtual.mjs +53 -0
  223. package/es/modules/relationship-diagram-config/components/index.d.ts +5 -0
  224. package/es/modules/relationship-diagram-config/components/index.mjs +5 -0
  225. package/es/modules/relationship-diagram-config/constant/index.d.ts +72 -0
  226. package/es/modules/relationship-diagram-config/constant/index.mjs +70 -0
  227. package/es/modules/relationship-diagram-config/hooks/index.d.ts +10 -0
  228. package/es/modules/relationship-diagram-config/hooks/index.mjs +19 -0
  229. package/es/modules/relationship-diagram-config/index.d.ts +6 -0
  230. package/es/modules/relationship-diagram-config/index.mjs +28 -0
  231. package/es/modules/relationship-diagram-config/interface/i-link-provider/i-link-provider.d.ts +57 -0
  232. package/es/modules/relationship-diagram-config/interface/i-node-provider/i-node-provider.d.ts +18 -0
  233. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-link/i-relationship-diagram-link.d.ts +80 -0
  234. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-node/i-relationship-diagram-node.d.ts +82 -0
  235. package/es/modules/relationship-diagram-config/interface/i-relationship-diagram-options/i-relationship-diagram-options.d.ts +51 -0
  236. package/es/modules/relationship-diagram-config/interface/i-rule-config/i-rule-config.d.ts +135 -0
  237. package/es/modules/relationship-diagram-config/interface/index.d.ts +6 -0
  238. package/es/modules/relationship-diagram-config/link.controller.d.ts +75 -0
  239. package/es/modules/relationship-diagram-config/link.controller.mjs +121 -0
  240. package/es/modules/relationship-diagram-config/node.controller.d.ts +102 -0
  241. package/es/modules/relationship-diagram-config/node.controller.mjs +189 -0
  242. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.d.ts +23 -0
  243. package/es/modules/relationship-diagram-config/plumb-plugin/arrow-endpoint.mjs +33 -0
  244. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.d.ts +1 -0
  245. package/es/modules/relationship-diagram-config/plumb-plugin/blank-endpoint-renderer.mjs +27 -0
  246. package/es/modules/relationship-diagram-config/plumb-plugin/index.d.ts +3 -0
  247. package/es/modules/relationship-diagram-config/plumb-plugin/index.mjs +2 -0
  248. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.css +132 -0
  249. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.d.ts +21 -0
  250. package/es/modules/relationship-diagram-config/providers/default-link-provider/default-link-provider.mjs +184 -0
  251. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.d.ts +14 -0
  252. package/es/modules/relationship-diagram-config/providers/default-node-provider/default-node-provider.mjs +17 -0
  253. package/es/modules/relationship-diagram-config/providers/index.d.ts +5 -0
  254. package/es/modules/relationship-diagram-config/providers/index.mjs +5 -0
  255. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.d.ts +14 -0
  256. package/es/modules/relationship-diagram-config/providers/reverse-node-provider/reverse-node-provider.mjs +17 -0
  257. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.d.ts +16 -0
  258. package/es/modules/relationship-diagram-config/providers/virtual-link-provider/virtual-link-provider.mjs +26 -0
  259. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.d.ts +14 -0
  260. package/es/modules/relationship-diagram-config/providers/virtual-node-provider/virtual-node-provider.mjs +17 -0
  261. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.d.ts +119 -0
  262. package/es/modules/relationship-diagram-config/relationship-diagram-config.controller.mjs +199 -0
  263. package/es/modules/relationship-diagram-config/relationship-diagram-config.css +113 -0
  264. package/es/modules/relationship-diagram-config/relationship-diagram-config.d.ts +102 -0
  265. package/es/modules/relationship-diagram-config/relationship-diagram-config.mjs +104 -0
  266. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.d.ts +44 -0
  267. package/es/modules/relationship-diagram-config/relationship-diagram-config.state.mjs +46 -0
  268. package/es/modules/relationship-diagram-config/utils/index.d.ts +1 -0
  269. package/es/modules/relationship-diagram-config/utils/register/register.d.ts +71 -0
  270. package/es/modules/relationship-diagram-config/utils/register/register.mjs +81 -0
  271. package/es/styles/index.css +357 -0
  272. package/es/utils/recursive.mjs +6 -1
  273. package/package.json +14 -9
  274. package/dist/_plugin-vue_export-helper-DUzSxwNW.js +0 -1
  275. package/dist/chunk-lEgNpoW5.js +0 -1
  276. package/dist/icon-next-picker-y8hJhkCi.js +0 -1
  277. package/dist/monaco-editor-g5z1cRaz.js +0 -1
  278. package/es/components/label-design/modal/rich-editor-modal.vue_vue_type_style_index_0_scoped_8c23f0af_lang.css +0 -3
  279. package/es/components/label-design/panels/widget/controls/labelTemplate.vue_vue_type_style_index_0_scoped_992e00bb_lang.css +0 -10
  280. package/es/components/paas-bpmn-log/hooks/useObserver.mjs +0 -46
  281. package/es/components/serial-number/serial-number-item.vue_vue_type_style_index_0_scoped_7baf8e25_lang.css +0 -67
  282. /package/dist/{objectSpread2-Cr8AaZiL.js → objectSpread2-DARadIQB.js} +0 -0
  283. /package/dist/{overlayscrollbars-vue-B2LfyB-V.js → overlayscrollbars-vue-Df-3wShc.js} +0 -0
@@ -0,0 +1,113 @@
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-relationship-diagram-config {
66
+ position: relative;
67
+ }
68
+
69
+ .gct-relationship-diagram-config-custom-overlay {
70
+ position: relative;
71
+ width: 50px;
72
+ height: 50px;
73
+ cursor: pointer;
74
+ }
75
+ .gct-relationship-diagram-config-custom-overlay .iconfont {
76
+ display: none;
77
+ width: 16px;
78
+ height: 16px;
79
+ }
80
+ .gct-relationship-diagram-config-custom-overlay .iconfont.delete-action:hover {
81
+ color: #F54547;
82
+ }
83
+ .gct-relationship-diagram-config-custom-overlay .iconfont.reverse-action:hover {
84
+ color: #3168EC;
85
+ }
86
+ .gct-relationship-diagram-config-custom-overlay__not-special-line .iconfont.delete-action {
87
+ position: absolute;
88
+ bottom: 9px;
89
+ left: 50%;
90
+ transform: translateX(-50%);
91
+ }
92
+ .gct-relationship-diagram-config-custom-overlay__not-special-line .iconfont.reverse-action {
93
+ position: absolute;
94
+ top: 0;
95
+ left: 50%;
96
+ transform: translateX(-50%);
97
+ }
98
+
99
+ .gct-relationship-diagram-config-custom-overlay.jtk-hover .iconfont {
100
+ display: block;
101
+ }
102
+ .gct-relationship-diagram-config-custom-overlay__special-line .iconfont.delete-action {
103
+ position: absolute;
104
+ top: 50%;
105
+ left: 5px;
106
+ transform: translateY(-50%);
107
+ }
108
+ .gct-relationship-diagram-config-custom-overlay__special-line .iconfont.reverse-action {
109
+ position: absolute;
110
+ top: 50%;
111
+ right: 5px;
112
+ transform: translateY(-50%);
113
+ }
@@ -0,0 +1,102 @@
1
+ import { PropType } from 'vue';
2
+ import { RelationshipDiagramConfigController } from './relationship-diagram-config.controller';
3
+ import { IRelationshipDiagramNode, IRelationshipDiagramOptions } from './interface';
4
+ /**
5
+ * 关系图配置
6
+ */
7
+ export declare const RelationshipDiagramConfig: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
8
+ context: {
9
+ type: PropType<IData>;
10
+ default: () => {};
11
+ };
12
+ items: {
13
+ type: {
14
+ (arrayLength: number): IRelationshipDiagramNode[];
15
+ (...items: IRelationshipDiagramNode[]): IRelationshipDiagramNode[];
16
+ new (arrayLength: number): IRelationshipDiagramNode[];
17
+ new (...items: IRelationshipDiagramNode[]): IRelationshipDiagramNode[];
18
+ isArray(arg: any): arg is any[];
19
+ readonly prototype: any[];
20
+ from<T>(arrayLike: ArrayLike<T>): T[];
21
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
22
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
23
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
24
+ of<T>(...items: T[]): T[];
25
+ readonly [Symbol.species]: ArrayConstructor;
26
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
27
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
28
+ };
29
+ default: () => never[];
30
+ };
31
+ config: {
32
+ type: PropType<IRelationshipDiagramOptions>;
33
+ };
34
+ }>, {
35
+ ns: import('@gct-paas/core').Namespace;
36
+ elRef: import('vue').Ref<HTMLDivElement | undefined, HTMLDivElement | undefined>;
37
+ c: RelationshipDiagramConfigController;
38
+ lastId: string;
39
+ isEnd: (item: IRelationshipDiagramNode, i: number) => boolean;
40
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, "update:items"[], "update:items", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
41
+ context: {
42
+ type: PropType<IData>;
43
+ default: () => {};
44
+ };
45
+ items: {
46
+ type: {
47
+ (arrayLength: number): IRelationshipDiagramNode[];
48
+ (...items: IRelationshipDiagramNode[]): IRelationshipDiagramNode[];
49
+ new (arrayLength: number): IRelationshipDiagramNode[];
50
+ new (...items: IRelationshipDiagramNode[]): IRelationshipDiagramNode[];
51
+ isArray(arg: any): arg is any[];
52
+ readonly prototype: any[];
53
+ from<T>(arrayLike: ArrayLike<T>): T[];
54
+ from<T, U>(arrayLike: ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
55
+ from<T>(iterable: Iterable<T> | ArrayLike<T>): T[];
56
+ from<T, U>(iterable: Iterable<T> | ArrayLike<T>, mapfn: (v: T, k: number) => U, thisArg?: any): U[];
57
+ of<T>(...items: T[]): T[];
58
+ readonly [Symbol.species]: ArrayConstructor;
59
+ fromAsync<T>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T | PromiseLike<T>> | ArrayLike<T | PromiseLike<T>>): Promise<T[]>;
60
+ fromAsync<T, U>(iterableOrArrayLike: AsyncIterable<T> | Iterable<T> | ArrayLike<T>, mapFn: (value: Awaited<T>, index: number) => U, thisArg?: any): Promise<Awaited<U>[]>;
61
+ };
62
+ default: () => never[];
63
+ };
64
+ config: {
65
+ type: PropType<IRelationshipDiagramOptions>;
66
+ };
67
+ }>> & Readonly<{
68
+ "onUpdate:items"?: ((...args: any[]) => any) | undefined;
69
+ }>, {
70
+ context: IData;
71
+ items: IRelationshipDiagramNode[];
72
+ }, {}, {
73
+ DiagramConfigItemContainer: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
74
+ i: {
75
+ type: NumberConstructor;
76
+ required: true;
77
+ };
78
+ id: {
79
+ type: StringConstructor;
80
+ required: true;
81
+ };
82
+ }>, {
83
+ ns: import('@gct-paas/core').Namespace;
84
+ calcPosStyle: () => {
85
+ top: string;
86
+ left: string;
87
+ };
88
+ }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, ("mounted" | "unmounted")[], "mounted" | "unmounted", import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
89
+ i: {
90
+ type: NumberConstructor;
91
+ required: true;
92
+ };
93
+ id: {
94
+ type: StringConstructor;
95
+ required: true;
96
+ };
97
+ }>> & Readonly<{
98
+ onMounted?: ((...args: any[]) => any) | undefined;
99
+ onUnmounted?: ((...args: any[]) => any) | undefined;
100
+ }>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
101
+ }, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
102
+ export default RelationshipDiagramConfig;
@@ -0,0 +1,104 @@
1
+ import { ArrowEndpointHandler } from "./plumb-plugin/arrow-endpoint.mjs";
2
+ import { register } from "./plumb-plugin/blank-endpoint-renderer.mjs";
3
+ import "./plumb-plugin/index.mjs";
4
+ import { ControllerTag, NodeType } from "./constant/index.mjs";
5
+ import { RegisterUtil } from "./utils/register/register.mjs";
6
+ import { RelationshipDiagramConfigController } from "./relationship-diagram-config.controller.mjs";
7
+ import { DiagramConfigItemContainer } from "./components/diagram-config-item-container/diagram-config-item-container.mjs";
8
+ import "./components/index.mjs";
9
+ import './relationship-diagram-config.css';/* empty css */
10
+ import { createVNode, defineComponent, h, onMounted, provide, reactive, ref, resolveComponent, watch } from "vue";
11
+ import { cloneDeep } from "lodash-es";
12
+ import { useNamespace } from "@gct-paas/core";
13
+ import { EndpointFactory, uuid } from "@jsplumb/browser-ui";
14
+ //#region src/modules/relationship-diagram-config/relationship-diagram-config.tsx
15
+ /**
16
+ * 关系图配置
17
+ */
18
+ var RelationshipDiagramConfig = /* @__PURE__ */ defineComponent({
19
+ name: "RelationshipDiagramConfig",
20
+ components: { DiagramConfigItemContainer },
21
+ props: {
22
+ context: {
23
+ type: Object,
24
+ default: () => {
25
+ return {};
26
+ }
27
+ },
28
+ items: {
29
+ type: Array,
30
+ default: () => []
31
+ },
32
+ config: { type: Object }
33
+ },
34
+ emits: ["update:items"],
35
+ setup(props, { emit }) {
36
+ register();
37
+ EndpointFactory.registerHandler(ArrowEndpointHandler);
38
+ const ns = useNamespace("relationship-diagram-config");
39
+ const elRef = ref();
40
+ const lastId = uuid();
41
+ const { fieldModelKey } = props.context;
42
+ const c = new RelationshipDiagramConfigController();
43
+ c.state = reactive(c.state);
44
+ if (props.config) Object.assign(c.config, props.config);
45
+ provide(ControllerTag.ROOT, c);
46
+ watch(() => props.items, () => {
47
+ if (JSON.stringify(props.items) !== JSON.stringify(c.state.nodes)) {
48
+ c.clearAll();
49
+ if (props.items && props.items.length > 0) c.node.setNodes(cloneDeep(props.items));
50
+ }
51
+ }, { immediate: true });
52
+ watch(() => c.state.nodes, () => {
53
+ emit("update:items", cloneDeep(c.state.nodes));
54
+ }, { deep: true });
55
+ const isEnd = (item, i) => {
56
+ return item.modelKey === fieldModelKey || c.config.max && c.config.max === i + 1 || item.reverse === true;
57
+ };
58
+ onMounted(() => {
59
+ c.initPlumb(elRef.value);
60
+ c.connectAll();
61
+ });
62
+ return {
63
+ ns,
64
+ elRef,
65
+ c,
66
+ lastId,
67
+ isEnd
68
+ };
69
+ },
70
+ render() {
71
+ const lastNode = this.c.state.nodes[this.c.state.nodes.length - 1];
72
+ const lastIndex = this.c.state.nodes.length - 1;
73
+ const endProvider = RegisterUtil.getNode(NodeType.VIRTUAL);
74
+ return createVNode("div", {
75
+ "ref": "elRef",
76
+ "class": this.ns.b()
77
+ }, [this.c.state.nodes.map((node, i) => {
78
+ const provider = RegisterUtil.getNode(node.type || NodeType.DEFAULT);
79
+ return createVNode(DiagramConfigItemContainer, {
80
+ "key": node.id,
81
+ "i": i,
82
+ "id": node.id,
83
+ "onMounted": () => this.c.node.mounted(node.id),
84
+ "onUnmounted": () => this.c.node.unmounted(node.id)
85
+ }, { default: () => [provider ? h(resolveComponent(provider.component), {
86
+ key: node.id,
87
+ context: this.context,
88
+ i,
89
+ data: node,
90
+ isEnd: this.isEnd(node, i)
91
+ }) : `为找到节点适配器类型:${node.type}`] });
92
+ }), this.isEnd(lastNode, lastIndex) ? null : createVNode(DiagramConfigItemContainer, {
93
+ "key": lastNode.id,
94
+ "i": lastIndex + 1,
95
+ "id": this.lastId
96
+ }, { default: () => [endProvider ? h(resolveComponent(endProvider.component), {
97
+ beforeNodeId: lastNode.id,
98
+ i: lastIndex + 1,
99
+ id: this.lastId
100
+ }) : `为找到虚拟节点适配器`] })]);
101
+ }
102
+ });
103
+ //#endregion
104
+ export { RelationshipDiagramConfig, RelationshipDiagramConfig as default };
@@ -0,0 +1,44 @@
1
+ import { IRelationshipDiagramLink, IRelationshipDiagramNode } from './interface';
2
+ /**
3
+ * 界面状态
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 10:06:07
7
+ * @export
8
+ * @class RelationshipDiagramConfigState
9
+ */
10
+ export declare class RelationshipDiagramConfigState {
11
+ /**
12
+ * 是否已经初始化
13
+ *
14
+ * @default false
15
+ * @author zhanghanrui
16
+ * @date 2024-06-25 10:06:08
17
+ * @type {boolean}
18
+ */
19
+ initialized: boolean;
20
+ /**
21
+ * 当前已经准备完成节点数量
22
+ *
23
+ * @author zhanghanrui
24
+ * @date 2024-06-25 14:06:14
25
+ * @type {number}
26
+ */
27
+ nodeCount: number;
28
+ /**
29
+ * 设计节点
30
+ *
31
+ * @author zhanghanrui
32
+ * @date 2024-06-25 10:06:59
33
+ * @type {IRelationshipDiagramNode[]}
34
+ */
35
+ nodes: IRelationshipDiagramNode[];
36
+ /**
37
+ * 连线
38
+ *
39
+ * @author zhanghanrui
40
+ * @date 2024-06-25 10:06:09
41
+ * @type {IRelationshipDiagramLink[]}
42
+ */
43
+ links: IRelationshipDiagramLink[];
44
+ }
@@ -0,0 +1,46 @@
1
+ //#region src/modules/relationship-diagram-config/relationship-diagram-config.state.ts
2
+ /**
3
+ * 界面状态
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 10:06:07
7
+ * @export
8
+ * @class RelationshipDiagramConfigState
9
+ */
10
+ var RelationshipDiagramConfigState = class {
11
+ /**
12
+ * 是否已经初始化
13
+ *
14
+ * @default false
15
+ * @author zhanghanrui
16
+ * @date 2024-06-25 10:06:08
17
+ * @type {boolean}
18
+ */
19
+ initialized = false;
20
+ /**
21
+ * 当前已经准备完成节点数量
22
+ *
23
+ * @author zhanghanrui
24
+ * @date 2024-06-25 14:06:14
25
+ * @type {number}
26
+ */
27
+ nodeCount = 0;
28
+ /**
29
+ * 设计节点
30
+ *
31
+ * @author zhanghanrui
32
+ * @date 2024-06-25 10:06:59
33
+ * @type {IRelationshipDiagramNode[]}
34
+ */
35
+ nodes = [];
36
+ /**
37
+ * 连线
38
+ *
39
+ * @author zhanghanrui
40
+ * @date 2024-06-25 10:06:09
41
+ * @type {IRelationshipDiagramLink[]}
42
+ */
43
+ links = [];
44
+ };
45
+ //#endregion
46
+ export { RelationshipDiagramConfigState };
@@ -0,0 +1 @@
1
+ export { RegisterUtil } from './register/register';
@@ -0,0 +1,71 @@
1
+ import { ILinkProvider, INodeProvider } from '../../interface';
2
+ /**
3
+ * 注册中心
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 19:06:06
7
+ * @export
8
+ * @class RegisterUtil
9
+ */
10
+ export declare class RegisterUtil {
11
+ /**
12
+ * 连线适配器
13
+ *
14
+ * @author zhanghanrui
15
+ * @date 2024-06-25 19:06:55
16
+ * @protected
17
+ * @static
18
+ * @type {Map<string, ILinkProvider>}
19
+ */
20
+ protected static link: Map<string, ILinkProvider>;
21
+ /**
22
+ * 节点适配器
23
+ *
24
+ * @author zhanghanrui
25
+ * @date 2024-06-25 20:06:35
26
+ * @protected
27
+ * @static
28
+ * @type {Map<string, INodeProvider>}
29
+ */
30
+ protected static node: Map<string, INodeProvider>;
31
+ /**
32
+ * 注册连线适配器
33
+ *
34
+ * @author zhanghanrui
35
+ * @date 2024-06-25 19:06:11
36
+ * @static
37
+ * @param {string} key
38
+ * @param {ILinkProvider} link
39
+ */
40
+ static registerLink(key: string, link: ILinkProvider): void;
41
+ /**
42
+ * 获取连线适配器
43
+ *
44
+ * @author zhanghanrui
45
+ * @date 2024-06-25 19:06:17
46
+ * @static
47
+ * @param {string} key
48
+ * @return {*} {(ILinkProvider | undefined)}
49
+ */
50
+ static getLink(key: string): ILinkProvider | undefined;
51
+ /**
52
+ * 注册节点适配器
53
+ *
54
+ * @author zhanghanrui
55
+ * @date 2024-06-25 20:06:02
56
+ * @static
57
+ * @param {string} key
58
+ * @param {INodeProvider} node
59
+ */
60
+ static registerNode(key: string, node: INodeProvider): void;
61
+ /**
62
+ * 获取节点适配器
63
+ *
64
+ * @author zhanghanrui
65
+ * @date 2024-06-25 20:06:09
66
+ * @static
67
+ * @param {string} key
68
+ * @return {*} {(INodeProvider | undefined)}
69
+ */
70
+ static getNode(key: string): INodeProvider | undefined;
71
+ }
@@ -0,0 +1,81 @@
1
+ //#region src/modules/relationship-diagram-config/utils/register/register.ts
2
+ /**
3
+ * 注册中心
4
+ *
5
+ * @author zhanghanrui
6
+ * @date 2024-06-25 19:06:06
7
+ * @export
8
+ * @class RegisterUtil
9
+ */
10
+ var RegisterUtil = class RegisterUtil {
11
+ /**
12
+ * 连线适配器
13
+ *
14
+ * @author zhanghanrui
15
+ * @date 2024-06-25 19:06:55
16
+ * @protected
17
+ * @static
18
+ * @type {Map<string, ILinkProvider>}
19
+ */
20
+ static link = /* @__PURE__ */ new Map();
21
+ /**
22
+ * 节点适配器
23
+ *
24
+ * @author zhanghanrui
25
+ * @date 2024-06-25 20:06:35
26
+ * @protected
27
+ * @static
28
+ * @type {Map<string, INodeProvider>}
29
+ */
30
+ static node = /* @__PURE__ */ new Map();
31
+ /**
32
+ * 注册连线适配器
33
+ *
34
+ * @author zhanghanrui
35
+ * @date 2024-06-25 19:06:11
36
+ * @static
37
+ * @param {string} key
38
+ * @param {ILinkProvider} link
39
+ */
40
+ static registerLink(key, link) {
41
+ RegisterUtil.link.set(key, link);
42
+ }
43
+ /**
44
+ * 获取连线适配器
45
+ *
46
+ * @author zhanghanrui
47
+ * @date 2024-06-25 19:06:17
48
+ * @static
49
+ * @param {string} key
50
+ * @return {*} {(ILinkProvider | undefined)}
51
+ */
52
+ static getLink(key) {
53
+ return RegisterUtil.link.get(key);
54
+ }
55
+ /**
56
+ * 注册节点适配器
57
+ *
58
+ * @author zhanghanrui
59
+ * @date 2024-06-25 20:06:02
60
+ * @static
61
+ * @param {string} key
62
+ * @param {INodeProvider} node
63
+ */
64
+ static registerNode(key, node) {
65
+ RegisterUtil.node.set(key, node);
66
+ }
67
+ /**
68
+ * 获取节点适配器
69
+ *
70
+ * @author zhanghanrui
71
+ * @date 2024-06-25 20:06:09
72
+ * @static
73
+ * @param {string} key
74
+ * @return {*} {(INodeProvider | undefined)}
75
+ */
76
+ static getNode(key) {
77
+ return RegisterUtil.node.get(key);
78
+ }
79
+ };
80
+ //#endregion
81
+ export { RegisterUtil };