@devops-flow/devops-flow-pipeline-detail 0.0.37

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 (1666) hide show
  1. package/README.md +1 -0
  2. package/dist/1.css +1 -0
  3. package/dist/1.js +24 -0
  4. package/dist/2.css +1 -0
  5. package/dist/2.js +1 -0
  6. package/dist/PipelineFlowDetail.css +1 -0
  7. package/dist/PipelineFlowDetail.js +72 -0
  8. package/dist/assets/012298127fd56d8e39cc5f8c78ca8a3f.ttf +0 -0
  9. package/dist/assets/02991164b5a38f9e2d5cdef951e0b0f0.ttf +0 -0
  10. package/dist/assets/0797e1d82e895e8ff5300e5080764bf6.woff +0 -0
  11. package/dist/assets/08b3a2c97fe1fea813bc50c273efcdee.eot +0 -0
  12. package/dist/assets/2e7ded00f078fd4ec6492110af6d0a14.otf +0 -0
  13. package/dist/assets/3cdb30d2423385c8dfb4dba0492eb726.woff +0 -0
  14. package/dist/assets/41a03f9f5cf65cde8d930d1bdaeb7aea.woff2 +0 -0
  15. package/dist/assets/59eea939288f45071c05df4c6e9bece4.woff +0 -0
  16. package/dist/assets/5d347415be35ebffd15afab8652d96c1.ttf +0 -0
  17. package/dist/assets/7a33cfe474846a73787c1533cfb19d80.svg +1 -0
  18. package/dist/assets/957dc9f6161ba0abec83ddf3f8450579.eot +0 -0
  19. package/dist/assets/c11f19b06005bc320624fa44c8785aff.svg +1028 -0
  20. package/dist/assets/db5ebea034541d557ce613bb8fbaaa86.svg +1 -0
  21. package/dist/assets/e29f8463847bbccbe42f64812705f829.eot +0 -0
  22. package/es/assets/font/DINPro-Medium.otf +0 -0
  23. package/es/assets/images/403.png +0 -0
  24. package/es/assets/images/404.png +0 -0
  25. package/es/assets/images/Aliyun.jpg +0 -0
  26. package/es/assets/images/Aone.png +0 -0
  27. package/es/assets/images/Bitbucket.jpg +0 -0
  28. package/es/assets/images/CMD.jpg +0 -0
  29. package/es/assets/images/Check.png +0 -0
  30. package/es/assets/images/Codeup.png +0 -0
  31. package/es/assets/images/Coding.jpg +0 -0
  32. package/es/assets/images/Docker.jpg +0 -0
  33. package/es/assets/images/ECS.jpg +0 -0
  34. package/es/assets/images/Empty.jpg +0 -0
  35. package/es/assets/images/Gerrit.jpg +0 -0
  36. package/es/assets/images/Git.jpg +0 -0
  37. package/es/assets/images/GitSample.png +0 -0
  38. package/es/assets/images/GitTag.png +0 -0
  39. package/es/assets/images/Gitee.jpg +0 -0
  40. package/es/assets/images/Github.jpg +0 -0
  41. package/es/assets/images/Gitlab.jpg +0 -0
  42. package/es/assets/images/Golang.jpg +0 -0
  43. package/es/assets/images/Gradle.jpg +0 -0
  44. package/es/assets/images/History.png +0 -0
  45. package/es/assets/images/Java.jpg +0 -0
  46. package/es/assets/images/Jenkins.jpg +0 -0
  47. package/es/assets/images/Kubernetes.jpg +0 -0
  48. package/es/assets/images/Maven.jpg +0 -0
  49. package/es/assets/images/Merge.jpg +0 -0
  50. package/es/assets/images/Node.jpg +0 -0
  51. package/es/assets/images/OSS.jpg +0 -0
  52. package/es/assets/images/PHP.jpg +0 -0
  53. package/es/assets/images/Phpmetrics.jpg +0 -0
  54. package/es/assets/images/Pipeline.png +0 -0
  55. package/es/assets/images/Project.png +0 -0
  56. package/es/assets/images/Python.jpg +0 -0
  57. package/es/assets/images/React.png +0 -0
  58. package/es/assets/images/Search.png +0 -0
  59. package/es/assets/images/Star.png +0 -0
  60. package/es/assets/images/Subversion.jpg +0 -0
  61. package/es/assets/images/TbPipeline.png +0 -0
  62. package/es/assets/images/Typescript.jpg +0 -0
  63. package/es/assets/images/Verify.jpg +0 -0
  64. package/es/assets/images/android.png +0 -0
  65. package/es/assets/images/error.png +0 -0
  66. package/es/assets/images/favicon.ico +0 -0
  67. package/es/assets/images/favicon.png +0 -0
  68. package/es/assets/images/helm.png +0 -0
  69. package/es/assets/img-src/index.d.ts +54 -0
  70. package/es/assets/img-src/index.js +41 -0
  71. package/es/assets/img-src/roles.d.ts +6 -0
  72. package/es/assets/img-src/roles.js +5 -0
  73. package/es/assets/img-src/source.d.ts +18 -0
  74. package/es/assets/img-src/source.js +18 -0
  75. package/es/components/FullScreenDialog/index.d.ts +10 -0
  76. package/es/components/FullScreenDialog/index.js +51 -0
  77. package/es/components/FullScreenDialog/index.module.scss +32 -0
  78. package/es/components/InlineCode/index.d.ts +12 -0
  79. package/es/components/InlineCode/index.js +26 -0
  80. package/es/components/InlineCode/index.module.scss +11 -0
  81. package/es/components/PipelineFlowEdit/CodeEditor/GoTemplateEditor.d.ts +9 -0
  82. package/es/components/PipelineFlowEdit/CodeEditor/GoTemplateEditor.js +221 -0
  83. package/es/components/PipelineFlowEdit/CodeEditor/Guide.d.ts +3 -0
  84. package/es/components/PipelineFlowEdit/CodeEditor/Guide.js +118 -0
  85. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Nav/index.d.ts +13 -0
  86. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Nav/index.js +39 -0
  87. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Nav/index.scss +38 -0
  88. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Panel/index.d.ts +18 -0
  89. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Panel/index.js +101 -0
  90. package/es/components/PipelineFlowEdit/CodeEditor/Helper/Panel/index.scss +102 -0
  91. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Breadcrumb.d.ts +3 -0
  92. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Breadcrumb.js +28 -0
  93. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/MdContent.d.ts +7 -0
  94. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/MdContent.js +94 -0
  95. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Search.d.ts +16 -0
  96. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Search.js +150 -0
  97. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Welcome.d.ts +2 -0
  98. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/Welcome.js +93 -0
  99. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/index.d.ts +20 -0
  100. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/index.js +551 -0
  101. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/index.scss +11 -0
  102. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/search.scss +73 -0
  103. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/style.module.scss +135 -0
  104. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/utils.d.ts +2 -0
  105. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/utils.js +13 -0
  106. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Docs/welcome.module.scss +55 -0
  107. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Tasks/index.d.ts +3 -0
  108. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Tasks/index.js +189 -0
  109. package/es/components/PipelineFlowEdit/CodeEditor/Helper/components/Tasks/index.scss +67 -0
  110. package/es/components/PipelineFlowEdit/CodeEditor/Helper/getSyntaxDetail.d.ts +6 -0
  111. package/es/components/PipelineFlowEdit/CodeEditor/Helper/getSyntaxDetail.js +83 -0
  112. package/es/components/PipelineFlowEdit/CodeEditor/Helper/index.d.ts +10 -0
  113. package/es/components/PipelineFlowEdit/CodeEditor/Helper/index.js +99 -0
  114. package/es/components/PipelineFlowEdit/CodeEditor/PreviewVariables/index.d.ts +6 -0
  115. package/es/components/PipelineFlowEdit/CodeEditor/PreviewVariables/index.js +217 -0
  116. package/es/components/PipelineFlowEdit/CodeEditor/PreviewVariables/style.module.scss +7 -0
  117. package/es/components/PipelineFlowEdit/CodeEditor/ProblemsPanel/index.d.ts +16 -0
  118. package/es/components/PipelineFlowEdit/CodeEditor/ProblemsPanel/index.js +322 -0
  119. package/es/components/PipelineFlowEdit/CodeEditor/ProblemsPanel/index.scss +168 -0
  120. package/es/components/PipelineFlowEdit/CodeEditor/cursorTarget.d.ts +9 -0
  121. package/es/components/PipelineFlowEdit/CodeEditor/cursorTarget.js +185 -0
  122. package/es/components/PipelineFlowEdit/CodeEditor/hack.scss +9 -0
  123. package/es/components/PipelineFlowEdit/CodeEditor/index.d.ts +39 -0
  124. package/es/components/PipelineFlowEdit/CodeEditor/index.js +394 -0
  125. package/es/components/PipelineFlowEdit/CodeEditor/index.scss +97 -0
  126. package/es/components/PipelineFlowEdit/CodeEditor/types.d.ts +5 -0
  127. package/es/components/PipelineFlowEdit/CodeEditor/types.js +1 -0
  128. package/es/components/PipelineFlowEdit/CodeEditor/wasm_exec.js +601 -0
  129. package/es/components/PipelineFlowEdit/FlowDocument/DefService.d.ts +10 -0
  130. package/es/components/PipelineFlowEdit/FlowDocument/DefService.js +409 -0
  131. package/es/components/PipelineFlowEdit/FlowDocument/EditingDocument.d.ts +14 -0
  132. package/es/components/PipelineFlowEdit/FlowDocument/EditingDocument.js +151 -0
  133. package/es/components/PipelineFlowEdit/FlowDocument/FlowDocument.d.ts +8 -0
  134. package/es/components/PipelineFlowEdit/FlowDocument/FlowDocument.js +84 -0
  135. package/es/components/PipelineFlowEdit/FlowDocument/FlowJobEntry.d.ts +21 -0
  136. package/es/components/PipelineFlowEdit/FlowDocument/FlowJobEntry.js +388 -0
  137. package/es/components/PipelineFlowEdit/FlowDocument/FlowJobs.d.ts +10 -0
  138. package/es/components/PipelineFlowEdit/FlowDocument/FlowJobs.js +70 -0
  139. package/es/components/PipelineFlowEdit/FlowDocument/FlowNodeBase.d.ts +17 -0
  140. package/es/components/PipelineFlowEdit/FlowDocument/FlowNodeBase.js +86 -0
  141. package/es/components/PipelineFlowEdit/FlowDocument/FlowSourceEntry.d.ts +170 -0
  142. package/es/components/PipelineFlowEdit/FlowDocument/FlowSourceEntry.js +492 -0
  143. package/es/components/PipelineFlowEdit/FlowDocument/FlowSources.d.ts +12 -0
  144. package/es/components/PipelineFlowEdit/FlowDocument/FlowSources.js +82 -0
  145. package/es/components/PipelineFlowEdit/FlowDocument/FlowStageEntry.d.ts +15 -0
  146. package/es/components/PipelineFlowEdit/FlowDocument/FlowStageEntry.js +69 -0
  147. package/es/components/PipelineFlowEdit/FlowDocument/FlowStages.d.ts +12 -0
  148. package/es/components/PipelineFlowEdit/FlowDocument/FlowStages.js +84 -0
  149. package/es/components/PipelineFlowEdit/FlowDocument/FlowStepEntry.d.ts +17 -0
  150. package/es/components/PipelineFlowEdit/FlowDocument/FlowStepEntry.js +89 -0
  151. package/es/components/PipelineFlowEdit/FlowDocument/FlowSteps.d.ts +10 -0
  152. package/es/components/PipelineFlowEdit/FlowDocument/FlowSteps.js +73 -0
  153. package/es/components/PipelineFlowEdit/FlowDocument/FlowVariableGroups.d.ts +17 -0
  154. package/es/components/PipelineFlowEdit/FlowDocument/FlowVariableGroups.js +73 -0
  155. package/es/components/PipelineFlowEdit/FlowDocument/cache.d.ts +8 -0
  156. package/es/components/PipelineFlowEdit/FlowDocument/cache.js +41 -0
  157. package/es/components/PipelineFlowEdit/FlowDocument/jsonSchema.d.ts +79 -0
  158. package/es/components/PipelineFlowEdit/FlowDocument/jsonSchema.js +1 -0
  159. package/es/components/PipelineFlowEdit/FlowDocument/types.d.ts +14 -0
  160. package/es/components/PipelineFlowEdit/FlowDocument/types.js +1 -0
  161. package/es/components/PipelineFlowEdit/IngredientsContext.d.ts +11 -0
  162. package/es/components/PipelineFlowEdit/IngredientsContext.js +2 -0
  163. package/es/components/PipelineFlowEdit/UIEditor-deprecated/ItemList/index.d.ts +16 -0
  164. package/es/components/PipelineFlowEdit/UIEditor-deprecated/ItemList/index.js +97 -0
  165. package/es/components/PipelineFlowEdit/UIEditor-deprecated/ItemList/style.module.scss +53 -0
  166. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Job.d.ts +8 -0
  167. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Job.js +122 -0
  168. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobCard/JobCard.d.ts +12 -0
  169. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobCard/JobCard.js +89 -0
  170. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobCard/style.module.scss +139 -0
  171. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobDrawer/index.d.ts +8 -0
  172. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobDrawer/index.js +62 -0
  173. package/es/components/PipelineFlowEdit/UIEditor-deprecated/JobDrawer/style.module.scss +36 -0
  174. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/Source.d.ts +2 -0
  175. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/Source.js +44 -0
  176. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/Source.style.module.scss +3 -0
  177. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/index.d.ts +2 -0
  178. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/index.js +17 -0
  179. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/sources/Codeup.d.ts +5 -0
  180. package/es/components/PipelineFlowEdit/UIEditor-deprecated/PipelineSource/sources/Codeup.js +48 -0
  181. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/EmptySource.d.ts +2 -0
  182. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/EmptySource.js +25 -0
  183. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/EmptySource.module.scss +21 -0
  184. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/SourceWrapper.d.ts +2 -0
  185. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/SourceWrapper.js +7 -0
  186. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/SourceWrapper.module.scss +11 -0
  187. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/index.d.ts +12 -0
  188. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/index.js +52 -0
  189. package/es/components/PipelineFlowEdit/UIEditor-deprecated/SourceCard/style.module.scss +54 -0
  190. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Step.d.ts +10 -0
  191. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Step.js +66 -0
  192. package/es/components/PipelineFlowEdit/UIEditor-deprecated/StepsList.d.ts +5 -0
  193. package/es/components/PipelineFlowEdit/UIEditor-deprecated/StepsList.js +139 -0
  194. package/es/components/PipelineFlowEdit/UIEditor-deprecated/TaskTpl.d.ts +2 -0
  195. package/es/components/PipelineFlowEdit/UIEditor-deprecated/TaskTpl.js +150 -0
  196. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Template.d.ts +15 -0
  197. package/es/components/PipelineFlowEdit/UIEditor-deprecated/Template.js +73 -0
  198. package/es/components/PipelineFlowEdit/UIEditor-deprecated/UIEditor.d.ts +2 -0
  199. package/es/components/PipelineFlowEdit/UIEditor-deprecated/UIEditor.js +559 -0
  200. package/es/components/PipelineFlowEdit/UIEditor-deprecated/config.d.ts +3 -0
  201. package/es/components/PipelineFlowEdit/UIEditor-deprecated/config.js +81 -0
  202. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/AddMembers.d.ts +5 -0
  203. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/AddMembers.js +180 -0
  204. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Checkbox.d.ts +5 -0
  205. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Checkbox.js +14 -0
  206. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Input.d.ts +5 -0
  207. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Input.js +35 -0
  208. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Links.d.ts +5 -0
  209. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Links.js +22 -0
  210. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Number.d.ts +5 -0
  211. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Number.js +30 -0
  212. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Password.d.ts +5 -0
  213. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Password.js +32 -0
  214. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/RadioGroup.d.ts +5 -0
  215. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/RadioGroup.js +62 -0
  216. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Select.d.ts +5 -0
  217. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Select.js +195 -0
  218. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Select.module.scss +3 -0
  219. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Shell.d.ts +5 -0
  220. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Shell.js +32 -0
  221. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Textarea.d.ts +5 -0
  222. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Textarea.js +30 -0
  223. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Tip.d.ts +5 -0
  224. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/Tip.js +16 -0
  225. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/common.d.ts +5 -0
  226. package/es/components/PipelineFlowEdit/UIEditor-deprecated/fields/common.js +1 -0
  227. package/es/components/PipelineFlowEdit/UIEditor-deprecated/viewPortRender.d.ts +2 -0
  228. package/es/components/PipelineFlowEdit/UIEditor-deprecated/viewPortRender.js +47 -0
  229. package/es/components/PipelineFlowEdit/_DetailDialog.d.ts +2 -0
  230. package/es/components/PipelineFlowEdit/_DetailDialog.js +9 -0
  231. package/es/components/PipelineFlowEdit/_hotkey.js +0 -0
  232. package/es/components/PipelineFlowEdit/const.d.ts +3 -0
  233. package/es/components/PipelineFlowEdit/const.js +3 -0
  234. package/es/components/PipelineFlowEdit/index.d.ts +21 -0
  235. package/es/components/PipelineFlowEdit/index.js +254 -0
  236. package/es/components/PipelineFlowEdit/types.d.ts +28 -0
  237. package/es/components/PipelineFlowEdit/types.js +6 -0
  238. package/es/components/PipelineFlowEdit/utils.d.ts +7 -0
  239. package/es/components/PipelineFlowEdit/utils.js +62 -0
  240. package/es/components/PipelineGraph/AnimatedContainer.d.ts +5 -0
  241. package/es/components/PipelineGraph/AnimatedContainer.js +28 -0
  242. package/es/components/PipelineGraph/AnimatedContainer.scss +12 -0
  243. package/es/components/PipelineGraph/Guide.d.ts +3 -0
  244. package/es/components/PipelineGraph/Guide.js +133 -0
  245. package/es/components/PipelineGraph/PipelineBoard.d.ts +10 -0
  246. package/es/components/PipelineGraph/PipelineBoard.js +153 -0
  247. package/es/components/PipelineGraph/PipelineCanvas.d.ts +69 -0
  248. package/es/components/PipelineGraph/PipelineCanvas.js +544 -0
  249. package/es/components/PipelineGraph/PipelineCanvas.scss +114 -0
  250. package/es/components/PipelineGraph/PipelineDAG.d.ts +53 -0
  251. package/es/components/PipelineGraph/PipelineDAG.js +174 -0
  252. package/es/components/PipelineGraph/PipelineJobs.d.ts +7 -0
  253. package/es/components/PipelineGraph/PipelineJobs.js +310 -0
  254. package/es/components/PipelineGraph/PipelineJobs.module.scss +16 -0
  255. package/es/components/PipelineGraph/PipelineRunGraph.d.ts +68 -0
  256. package/es/components/PipelineGraph/PipelineRunGraph.js +341 -0
  257. package/es/components/PipelineGraph/Rect.d.ts +29 -0
  258. package/es/components/PipelineGraph/Rect.js +91 -0
  259. package/es/components/PipelineGraph/StageHeader.d.ts +13 -0
  260. package/es/components/PipelineGraph/StageHeader.js +44 -0
  261. package/es/components/PipelineGraph/ViewPortCanvas.d.ts +8 -0
  262. package/es/components/PipelineGraph/ViewPortCanvas.js +132 -0
  263. package/es/components/PipelineGraph/ViewPortStatusBar.d.ts +12 -0
  264. package/es/components/PipelineGraph/ViewPortStatusBar.js +129 -0
  265. package/es/components/PipelineGraph/createProjection.d.ts +7 -0
  266. package/es/components/PipelineGraph/createProjection.js +49 -0
  267. package/es/components/PipelineGraph/getCanvasContentRect.d.ts +7 -0
  268. package/es/components/PipelineGraph/getCanvasContentRect.js +58 -0
  269. package/es/components/PipelineGraph/hack.scss +6 -0
  270. package/es/components/PipelineGraph/sizes.d.ts +10 -0
  271. package/es/components/PipelineGraph/sizes.js +11 -0
  272. package/es/components/PipelineGraph/transformOldPipelineRun.d.ts +3 -0
  273. package/es/components/PipelineGraph/transformOldPipelineRun.js +42 -0
  274. package/es/components/PipelineGraph/utils.d.ts +3 -0
  275. package/es/components/PipelineGraph/utils.js +16 -0
  276. package/es/components/RangeDatePicker/index.d.ts +12 -0
  277. package/es/components/RangeDatePicker/index.js +170 -0
  278. package/es/components/RangeDatePicker/index.module.scss +7 -0
  279. package/es/components/SVG/CardCheckSVG/index.d.ts +5 -0
  280. package/es/components/SVG/CardCheckSVG/index.js +22 -0
  281. package/es/components/SelectPipeline/index.d.ts +7 -0
  282. package/es/components/SelectPipeline/index.js +98 -0
  283. package/es/components/SelectPipeline/index.module.scss +17 -0
  284. package/es/components/SyntaxHighlighter/index.d.ts +5 -0
  285. package/es/components/SyntaxHighlighter/index.js +20 -0
  286. package/es/components/Tooltip/index.js +169 -0
  287. package/es/components/Tooltip/index.module.scss +60 -0
  288. package/es/components/common/at-design.scss +288 -0
  289. package/es/components/common/at-dialog-nav-scroll.scss +53 -0
  290. package/es/components/common/at-dialog-nav.scss +45 -0
  291. package/es/components/common/index.scss +8 -0
  292. package/es/components/common/teambition/ErrorBoundaryCommon/index.d.ts +15 -0
  293. package/es/components/common/teambition/ErrorBoundaryCommon/index.js +69 -0
  294. package/es/components/common/teambition/ErrorBoundaryCommon/style.module.scss +8 -0
  295. package/es/components/common/teambition/avatar/index.d.ts +12 -0
  296. package/es/components/common/teambition/avatar/index.js +146 -0
  297. package/es/components/common/teambition/avatar/index.scss +27 -0
  298. package/es/components/common/teambition/bem.scss +46 -0
  299. package/es/components/common/teambition/change-info-dialog/index.d.ts +4 -0
  300. package/es/components/common/teambition/change-info-dialog/index.js +152 -0
  301. package/es/components/common/teambition/change-info-dialog/index.scss +19 -0
  302. package/es/components/common/teambition/click-button/index.d.ts +3 -0
  303. package/es/components/common/teambition/click-button/index.js +43 -0
  304. package/es/components/common/teambition/custom-tab/index.d.ts +4 -0
  305. package/es/components/common/teambition/custom-tab/index.js +55 -0
  306. package/es/components/common/teambition/custom-tab/index.scss +26 -0
  307. package/es/components/common/teambition/deploy-group-dialog/add-host/index.d.ts +3 -0
  308. package/es/components/common/teambition/deploy-group-dialog/add-host/index.js +994 -0
  309. package/es/components/common/teambition/deploy-group-dialog/add-host/index.scss +128 -0
  310. package/es/components/common/teambition/deploy-group-dialog/config.d.ts +57 -0
  311. package/es/components/common/teambition/deploy-group-dialog/config.js +71 -0
  312. package/es/components/common/teambition/deploy-group-dialog/edit-host-group/index.d.ts +15 -0
  313. package/es/components/common/teambition/deploy-group-dialog/edit-host-group/index.js +292 -0
  314. package/es/components/common/teambition/deploy-group-dialog/edit-host-group/index.scss +29 -0
  315. package/es/components/common/teambition/deploy-group-dialog/host-info/index.d.ts +13 -0
  316. package/es/components/common/teambition/deploy-group-dialog/host-info/index.js +122 -0
  317. package/es/components/common/teambition/deploy-group-dialog/host-info/index.scss +21 -0
  318. package/es/components/common/teambition/deploy-group-dialog/host-list/index.d.ts +3 -0
  319. package/es/components/common/teambition/deploy-group-dialog/host-list/index.js +61 -0
  320. package/es/components/common/teambition/deploy-group-dialog/host-list/index.scss +13 -0
  321. package/es/components/common/teambition/deploy-group-dialog/host-table/index.d.ts +3 -0
  322. package/es/components/common/teambition/deploy-group-dialog/host-table/index.js +261 -0
  323. package/es/components/common/teambition/deploy-group-dialog/host-table/index.scss +42 -0
  324. package/es/components/common/teambition/deploy-group-dialog/host-type/index.d.ts +3 -0
  325. package/es/components/common/teambition/deploy-group-dialog/host-type/index.js +205 -0
  326. package/es/components/common/teambition/deploy-group-dialog/host-type/index.scss +109 -0
  327. package/es/components/common/teambition/deploy-group-dialog/index.d.ts +6 -0
  328. package/es/components/common/teambition/deploy-group-dialog/index.js +1225 -0
  329. package/es/components/common/teambition/deploy-group-dialog/index.scss +33 -0
  330. package/es/components/common/teambition/deploy-group-dialog/store/index.d.ts +3 -0
  331. package/es/components/common/teambition/deploy-group-dialog/store/index.js +243 -0
  332. package/es/components/common/teambition/docs/index.d.ts +5 -0
  333. package/es/components/common/teambition/docs/index.js +45 -0
  334. package/es/components/common/teambition/duration/index.d.ts +12 -0
  335. package/es/components/common/teambition/duration/index.js +105 -0
  336. package/es/components/common/teambition/editable-label/index.d.ts +10 -0
  337. package/es/components/common/teambition/editable-label/index.js +86 -0
  338. package/es/components/common/teambition/editable-label/index.scss +34 -0
  339. package/es/components/common/teambition/empty/index.d.ts +6 -0
  340. package/es/components/common/teambition/empty/index.js +21 -0
  341. package/es/components/common/teambition/empty/index.scss +19 -0
  342. package/es/components/common/teambition/flow/error-hint/index.d.ts +4 -0
  343. package/es/components/common/teambition/flow/error-hint/index.js +46 -0
  344. package/es/components/common/teambition/flow/error-hint/index.scss +112 -0
  345. package/es/components/common/teambition/flow/index.d.ts +4 -0
  346. package/es/components/common/teambition/flow/index.js +545 -0
  347. package/es/components/common/teambition/flow/index.scss +13 -0
  348. package/es/components/common/teambition/flow-engine/AdvancedSetting.d.ts +10 -0
  349. package/es/components/common/teambition/flow-engine/AdvancedSetting.js +137 -0
  350. package/es/components/common/teambition/flow-engine/DebouncedInput.d.ts +3 -0
  351. package/es/components/common/teambition/flow-engine/DebouncedInput.js +23 -0
  352. package/es/components/common/teambition/flow-engine/config.d.ts +4 -0
  353. package/es/components/common/teambition/flow-engine/config.js +106 -0
  354. package/es/components/common/teambition/flow-engine/dialogs/addServiceConnection.d.ts +16 -0
  355. package/es/components/common/teambition/flow-engine/dialogs/addServiceConnection.js +233 -0
  356. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/index.d.ts +12 -0
  357. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/index.js +179 -0
  358. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/index.scss +42 -0
  359. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/types/custom.d.ts +6 -0
  360. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/types/custom.js +78 -0
  361. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/types/index.d.ts +16 -0
  362. package/es/components/common/teambition/flow-engine/dialogs/asm-connection/types/index.js +54 -0
  363. package/es/components/common/teambition/flow-engine/dialogs/black.d.ts +7 -0
  364. package/es/components/common/teambition/flow-engine/dialogs/black.js +29 -0
  365. package/es/components/common/teambition/flow-engine/dialogs/createAcrRepository/index.d.ts +3 -0
  366. package/es/components/common/teambition/flow-engine/dialogs/createAcrRepository/index.js +175 -0
  367. package/es/components/common/teambition/flow-engine/dialogs/createJenkinsCredential/index.d.ts +4 -0
  368. package/es/components/common/teambition/flow-engine/dialogs/createJenkinsCredential/index.js +179 -0
  369. package/es/components/common/teambition/flow-engine/dialogs/createJenkinsCredential/index.scss +32 -0
  370. package/es/components/common/teambition/flow-engine/dialogs/dialog.d.ts +8 -0
  371. package/es/components/common/teambition/flow-engine/dialogs/dialog.js +59 -0
  372. package/es/components/common/teambition/flow-engine/dialogs/emas-app/index.d.ts +18 -0
  373. package/es/components/common/teambition/flow-engine/dialogs/emas-app/index.js +377 -0
  374. package/es/components/common/teambition/flow-engine/dialogs/emas-app/index.scss +26 -0
  375. package/es/components/common/teambition/flow-engine/dialogs/emas-product/index.d.ts +9 -0
  376. package/es/components/common/teambition/flow-engine/dialogs/emas-product/index.js +116 -0
  377. package/es/components/common/teambition/flow-engine/dialogs/index.d.ts +5 -0
  378. package/es/components/common/teambition/flow-engine/dialogs/index.js +25 -0
  379. package/es/components/common/teambition/flow-engine/dialogs/index.scss +40 -0
  380. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/index.d.ts +29 -0
  381. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/index.js +421 -0
  382. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/index.scss +64 -0
  383. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/ack.d.ts +8 -0
  384. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/ack.js +240 -0
  385. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/custom.d.ts +8 -0
  386. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/custom.js +143 -0
  387. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/index.d.ts +35 -0
  388. package/es/components/common/teambition/flow-engine/dialogs/kubeconfig-connection/types/index.js +113 -0
  389. package/es/components/common/teambition/flow-engine/dialogs/shell-magnifying/index.d.ts +4 -0
  390. package/es/components/common/teambition/flow-engine/dialogs/shell-magnifying/index.js +40 -0
  391. package/es/components/common/teambition/flow-engine/dialogs/shell-magnifying/index.scss +13 -0
  392. package/es/components/common/teambition/flow-engine/fetch.d.ts +10 -0
  393. package/es/components/common/teambition/flow-engine/fetch.js +145 -0
  394. package/es/components/common/teambition/flow-engine/fields/AddMembers.d.ts +12 -0
  395. package/es/components/common/teambition/flow-engine/fields/AddMembers.js +164 -0
  396. package/es/components/common/teambition/flow-engine/fields/appstackImage.d.ts +3 -0
  397. package/es/components/common/teambition/flow-engine/fields/appstackImage.js +386 -0
  398. package/es/components/common/teambition/flow-engine/fields/appstackImage.scss +75 -0
  399. package/es/components/common/teambition/flow-engine/fields/base.d.ts +16 -0
  400. package/es/components/common/teambition/flow-engine/fields/base.js +61 -0
  401. package/es/components/common/teambition/flow-engine/fields/build-setting/index.d.ts +15 -0
  402. package/es/components/common/teambition/flow-engine/fields/build-setting/index.js +75 -0
  403. package/es/components/common/teambition/flow-engine/fields/checkbox.d.ts +5 -0
  404. package/es/components/common/teambition/flow-engine/fields/checkbox.js +20 -0
  405. package/es/components/common/teambition/flow-engine/fields/customVariable.d.ts +3 -0
  406. package/es/components/common/teambition/flow-engine/fields/customVariable.js +408 -0
  407. package/es/components/common/teambition/flow-engine/fields/customVariable.scss +95 -0
  408. package/es/components/common/teambition/flow-engine/fields/dropdown.d.ts +61 -0
  409. package/es/components/common/teambition/flow-engine/fields/dropdown.js +1093 -0
  410. package/es/components/common/teambition/flow-engine/fields/field_common.scss +93 -0
  411. package/es/components/common/teambition/flow-engine/fields/index.scss +115 -0
  412. package/es/components/common/teambition/flow-engine/fields/input.d.ts +10 -0
  413. package/es/components/common/teambition/flow-engine/fields/input.js +166 -0
  414. package/es/components/common/teambition/flow-engine/fields/inputList.d.ts +10 -0
  415. package/es/components/common/teambition/flow-engine/fields/inputList.js +79 -0
  416. package/es/components/common/teambition/flow-engine/fields/inputList.scss +21 -0
  417. package/es/components/common/teambition/flow-engine/fields/links.d.ts +5 -0
  418. package/es/components/common/teambition/flow-engine/fields/links.js +22 -0
  419. package/es/components/common/teambition/flow-engine/fields/machineGroupSelect.d.ts +25 -0
  420. package/es/components/common/teambition/flow-engine/fields/machineGroupSelect.js +657 -0
  421. package/es/components/common/teambition/flow-engine/fields/machineGroupSelect.scss +55 -0
  422. package/es/components/common/teambition/flow-engine/fields/machineGroupSelectNew.d.ts +32 -0
  423. package/es/components/common/teambition/flow-engine/fields/machineGroupSelectNew.js +475 -0
  424. package/es/components/common/teambition/flow-engine/fields/machineGroupSelectNew.scss +33 -0
  425. package/es/components/common/teambition/flow-engine/fields/mavenSettingSelector.d.ts +4 -0
  426. package/es/components/common/teambition/flow-engine/fields/mavenSettingSelector.js +141 -0
  427. package/es/components/common/teambition/flow-engine/fields/mavenSettingSelector.scss +11 -0
  428. package/es/components/common/teambition/flow-engine/fields/member.scss +7 -0
  429. package/es/components/common/teambition/flow-engine/fields/multiKeyValue/index.d.ts +9 -0
  430. package/es/components/common/teambition/flow-engine/fields/multiKeyValue/index.js +104 -0
  431. package/es/components/common/teambition/flow-engine/fields/multiKeyValue/index.scss +17 -0
  432. package/es/components/common/teambition/flow-engine/fields/multiUpstream.d.ts +19 -0
  433. package/es/components/common/teambition/flow-engine/fields/multiUpstream.js +396 -0
  434. package/es/components/common/teambition/flow-engine/fields/multiUpstream.scss +67 -0
  435. package/es/components/common/teambition/flow-engine/fields/none.d.ts +5 -0
  436. package/es/components/common/teambition/flow-engine/fields/none.js +18 -0
  437. package/es/components/common/teambition/flow-engine/fields/packagesConnection.d.ts +10 -0
  438. package/es/components/common/teambition/flow-engine/fields/packagesConnection.js +330 -0
  439. package/es/components/common/teambition/flow-engine/fields/packagesConnection.scss +31 -0
  440. package/es/components/common/teambition/flow-engine/fields/password.d.ts +6 -0
  441. package/es/components/common/teambition/flow-engine/fields/password.js +25 -0
  442. package/es/components/common/teambition/flow-engine/fields/radioGroup.d.ts +15 -0
  443. package/es/components/common/teambition/flow-engine/fields/radioGroup.js +180 -0
  444. package/es/components/common/teambition/flow-engine/fields/radioGroup.scss +3 -0
  445. package/es/components/common/teambition/flow-engine/fields/readline.d.ts +13 -0
  446. package/es/components/common/teambition/flow-engine/fields/readline.js +296 -0
  447. package/es/components/common/teambition/flow-engine/fields/redline.scss +69 -0
  448. package/es/components/common/teambition/flow-engine/fields/sourceSelect.d.ts +3 -0
  449. package/es/components/common/teambition/flow-engine/fields/sourceSelect.js +54 -0
  450. package/es/components/common/teambition/flow-engine/fields/sourcesSelect.d.ts +3 -0
  451. package/es/components/common/teambition/flow-engine/fields/sourcesSelect.js +69 -0
  452. package/es/components/common/teambition/flow-engine/fields/step.d.ts +20 -0
  453. package/es/components/common/teambition/flow-engine/fields/step.js +456 -0
  454. package/es/components/common/teambition/flow-engine/fields/step.scss +31 -0
  455. package/es/components/common/teambition/flow-engine/fields/steps.d.ts +17 -0
  456. package/es/components/common/teambition/flow-engine/fields/steps.js +719 -0
  457. package/es/components/common/teambition/flow-engine/fields/text_label.d.ts +5 -0
  458. package/es/components/common/teambition/flow-engine/fields/text_label.js +16 -0
  459. package/es/components/common/teambition/flow-engine/fields/tip.d.ts +6 -0
  460. package/es/components/common/teambition/flow-engine/fields/tip.js +39 -0
  461. package/es/components/common/teambition/flow-engine/fields/upstream.d.ts +12 -0
  462. package/es/components/common/teambition/flow-engine/fields/upstream.js +169 -0
  463. package/es/components/common/teambition/flow-engine/fields/upstreamSourcesUtils.d.ts +11 -0
  464. package/es/components/common/teambition/flow-engine/fields/upstreamSourcesUtils.js +144 -0
  465. package/es/components/common/teambition/flow-engine/globalContext.d.ts +5 -0
  466. package/es/components/common/teambition/flow-engine/globalContext.js +7 -0
  467. package/es/components/common/teambition/flow-engine/index.scss +190 -0
  468. package/es/components/common/teambition/flow-engine/job.d.ts +26 -0
  469. package/es/components/common/teambition/flow-engine/job.js +567 -0
  470. package/es/components/common/teambition/flow-engine/jobInitializer.d.ts +15 -0
  471. package/es/components/common/teambition/flow-engine/jobInitializer.js +64 -0
  472. package/es/components/common/teambition/flow-engine/plugins.d.ts +10 -0
  473. package/es/components/common/teambition/flow-engine/plugins.js +324 -0
  474. package/es/components/common/teambition/flow-engine/rules.d.ts +5 -0
  475. package/es/components/common/teambition/flow-engine/rules.js +633 -0
  476. package/es/components/common/teambition/flow-engine/template.d.ts +35 -0
  477. package/es/components/common/teambition/flow-engine/template.js +617 -0
  478. package/es/components/common/teambition/flow-engine/toolbars/index.d.ts +8 -0
  479. package/es/components/common/teambition/flow-engine/toolbars/index.js +32 -0
  480. package/es/components/common/teambition/flow-engine/toolbars/shortcutAcrCreate.d.ts +10 -0
  481. package/es/components/common/teambition/flow-engine/toolbars/shortcutAcrCreate.js +356 -0
  482. package/es/components/common/teambition/flow-group/index.d.ts +39 -0
  483. package/es/components/common/teambition/flow-group/index.js +201 -0
  484. package/es/components/common/teambition/flow-group/index.scss +136 -0
  485. package/es/components/common/teambition/flow-job-btn/app-deploy-order/index.d.ts +9 -0
  486. package/es/components/common/teambition/flow-job-btn/app-deploy-order/index.js +177 -0
  487. package/es/components/common/teambition/flow-job-btn/app-deploy-order/index.scss +12 -0
  488. package/es/components/common/teambition/flow-job-btn/aui-test-summary/index.d.ts +16 -0
  489. package/es/components/common/teambition/flow-job-btn/aui-test-summary/index.js +80 -0
  490. package/es/components/common/teambition/flow-job-btn/aui-test-summary/index.scss +180 -0
  491. package/es/components/common/teambition/flow-job-btn/batch-conflict-merge-btn/index.d.ts +11 -0
  492. package/es/components/common/teambition/flow-job-btn/batch-conflict-merge-btn/index.js +178 -0
  493. package/es/components/common/teambition/flow-job-btn/batch-conflict-merge-btn/index.scss +20 -0
  494. package/es/components/common/teambition/flow-job-btn/cardsMap.d.ts +13 -0
  495. package/es/components/common/teambition/flow-job-btn/cardsMap.js +215 -0
  496. package/es/components/common/teambition/flow-job-btn/change-info-btn/index.d.ts +6 -0
  497. package/es/components/common/teambition/flow-job-btn/change-info-btn/index.js +48 -0
  498. package/es/components/common/teambition/flow-job-btn/conflict-merge-btn/index.d.ts +12 -0
  499. package/es/components/common/teambition/flow-job-btn/conflict-merge-btn/index.js +151 -0
  500. package/es/components/common/teambition/flow-job-btn/conflict-merge-btn/index.scss +20 -0
  501. package/es/components/common/teambition/flow-job-btn/debug-button/index.d.ts +15 -0
  502. package/es/components/common/teambition/flow-job-btn/debug-button/index.js +142 -0
  503. package/es/components/common/teambition/flow-job-btn/debug-button/index.scss +27 -0
  504. package/es/components/common/teambition/flow-job-btn/deploy-order/deployChannel.d.ts +3 -0
  505. package/es/components/common/teambition/flow-job-btn/deploy-order/deployChannel.js +3 -0
  506. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderDetail.d.ts +4 -0
  507. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderDetail.js +700 -0
  508. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderLogDialog.d.ts +4 -0
  509. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderLogDialog.js +218 -0
  510. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderLogs.d.ts +4 -0
  511. package/es/components/common/teambition/flow-job-btn/deploy-order/deployOrderLogs.js +296 -0
  512. package/es/components/common/teambition/flow-job-btn/deploy-order/index.d.ts +12 -0
  513. package/es/components/common/teambition/flow-job-btn/deploy-order/index.js +45 -0
  514. package/es/components/common/teambition/flow-job-btn/deploy-order/index.scss +286 -0
  515. package/es/components/common/teambition/flow-job-btn/deploy-order/machineStatus.d.ts +8 -0
  516. package/es/components/common/teambition/flow-job-btn/deploy-order/machineStatus.js +8 -0
  517. package/es/components/common/teambition/flow-job-btn/deploy-order/orderStatus.d.ts +6 -0
  518. package/es/components/common/teambition/flow-job-btn/deploy-order/orderStatus.js +6 -0
  519. package/es/components/common/teambition/flow-job-btn/deploy-order/pauseStrategy.d.ts +3 -0
  520. package/es/components/common/teambition/flow-job-btn/deploy-order/pauseStrategy.js +3 -0
  521. package/es/components/common/teambition/flow-job-btn/deploy-order/utils.d.ts +20 -0
  522. package/es/components/common/teambition/flow-job-btn/deploy-order/utils.js +158 -0
  523. package/es/components/common/teambition/flow-job-btn/emas-artifact/index.d.ts +7 -0
  524. package/es/components/common/teambition/flow-job-btn/emas-artifact/index.js +77 -0
  525. package/es/components/common/teambition/flow-job-btn/emas-artifact/index.scss +4 -0
  526. package/es/components/common/teambition/flow-job-btn/execute-button/index.d.ts +24 -0
  527. package/es/components/common/teambition/flow-job-btn/execute-button/index.js +176 -0
  528. package/es/components/common/teambition/flow-job-btn/index.d.ts +12 -0
  529. package/es/components/common/teambition/flow-job-btn/index.js +207 -0
  530. package/es/components/common/teambition/flow-job-btn/istio-conflict-merge-btn/index.d.ts +12 -0
  531. package/es/components/common/teambition/flow-job-btn/istio-conflict-merge-btn/index.js +193 -0
  532. package/es/components/common/teambition/flow-job-btn/istio-conflict-merge-btn/index.scss +20 -0
  533. package/es/components/common/teambition/flow-job-btn/link/index.d.ts +11 -0
  534. package/es/components/common/teambition/flow-job-btn/link/index.js +29 -0
  535. package/es/components/common/teambition/flow-job-btn/link-with-qrcode/index.d.ts +7 -0
  536. package/es/components/common/teambition/flow-job-btn/link-with-qrcode/index.js +25 -0
  537. package/es/components/common/teambition/flow-job-btn/log-btn/AI.d.ts +9 -0
  538. package/es/components/common/teambition/flow-job-btn/log-btn/AI.js +339 -0
  539. package/es/components/common/teambition/flow-job-btn/log-btn/ai.module.scss +182 -0
  540. package/es/components/common/teambition/flow-job-btn/log-btn/ai.scss +153 -0
  541. package/es/components/common/teambition/flow-job-btn/log-btn/aiFeedback.d.ts +4 -0
  542. package/es/components/common/teambition/flow-job-btn/log-btn/aiFeedback.js +149 -0
  543. package/es/components/common/teambition/flow-job-btn/log-btn/aiFeedback.scss +61 -0
  544. package/es/components/common/teambition/flow-job-btn/log-btn/index.d.ts +17 -0
  545. package/es/components/common/teambition/flow-job-btn/log-btn/index.js +598 -0
  546. package/es/components/common/teambition/flow-job-btn/log-btn/index.scss +231 -0
  547. package/es/components/common/teambition/flow-job-btn/none/index.d.ts +11 -0
  548. package/es/components/common/teambition/flow-job-btn/none/index.js +24 -0
  549. package/es/components/common/teambition/flow-job-btn/package-download/index.d.ts +9 -0
  550. package/es/components/common/teambition/flow-job-btn/package-download/index.js +91 -0
  551. package/es/components/common/teambition/flow-job-btn/package-download/index.scss +48 -0
  552. package/es/components/common/teambition/flow-job-btn/package-link/index.d.ts +8 -0
  553. package/es/components/common/teambition/flow-job-btn/package-link/index.js +54 -0
  554. package/es/components/common/teambition/flow-job-btn/package-link/index.scss +0 -0
  555. package/es/components/common/teambition/flow-job-btn/release-branch/index.d.ts +6 -0
  556. package/es/components/common/teambition/flow-job-btn/release-branch/index.js +78 -0
  557. package/es/components/common/teambition/flow-job-btn/release-order/index.d.ts +12 -0
  558. package/es/components/common/teambition/flow-job-btn/release-order/index.js +49 -0
  559. package/es/components/common/teambition/flow-job-btn/release-order/index.scss +11 -0
  560. package/es/components/common/teambition/flow-job-btn/replaceHost.d.ts +1 -0
  561. package/es/components/common/teambition/flow-job-btn/replaceHost.js +7 -0
  562. package/es/components/common/teambition/flow-job-btn/stat-info-s-common/RememberConfirm.d.ts +5 -0
  563. package/es/components/common/teambition/flow-job-btn/stat-info-s-common/RememberConfirm.js +152 -0
  564. package/es/components/common/teambition/flow-job-btn/stat-info-s-common/common.d.ts +12 -0
  565. package/es/components/common/teambition/flow-job-btn/stat-info-s-common/common.js +70 -0
  566. package/es/components/common/teambition/flow-job-btn/state-info/index.d.ts +11 -0
  567. package/es/components/common/teambition/flow-job-btn/state-info/index.js +715 -0
  568. package/es/components/common/teambition/flow-job-btn/state-info/index.scss +78 -0
  569. package/es/components/common/teambition/flow-job-btn/state-info-with-redline/index.d.ts +11 -0
  570. package/es/components/common/teambition/flow-job-btn/state-info-with-redline/index.js +621 -0
  571. package/es/components/common/teambition/flow-job-btn/state-info-with-redline/index.scss +61 -0
  572. package/es/components/common/teambition/flow-job-btn/state-info-with-redline-new/index.d.ts +14 -0
  573. package/es/components/common/teambition/flow-job-btn/state-info-with-redline-new/index.js +706 -0
  574. package/es/components/common/teambition/flow-job-btn/state-info-with-redline-new/index.scss +99 -0
  575. package/es/components/common/teambition/flow-job-btn/summary-info/index.d.ts +12 -0
  576. package/es/components/common/teambition/flow-job-btn/summary-info/index.js +38 -0
  577. package/es/components/common/teambition/flow-job-btn/summary-info/index.scss +9 -0
  578. package/es/components/common/teambition/flow-job-btn/view/index.d.ts +11 -0
  579. package/es/components/common/teambition/flow-job-btn/view/index.js +27 -0
  580. package/es/components/common/teambition/flow-job-edit-menu/index.d.ts +24 -0
  581. package/es/components/common/teambition/flow-job-edit-menu/index.js +155 -0
  582. package/es/components/common/teambition/flow-job-edit-menu/index.scss +40 -0
  583. package/es/components/common/teambition/flow-job-new/FlowJobGraphNode.d.ts +22 -0
  584. package/es/components/common/teambition/flow-job-new/FlowJobGraphNode.js +52 -0
  585. package/es/components/common/teambition/flow-job-new/FlowJobGraphNode.module.scss +7 -0
  586. package/es/components/common/teambition/flow-job-new/avatar-group/index.d.ts +6 -0
  587. package/es/components/common/teambition/flow-job-new/avatar-group/index.js +57 -0
  588. package/es/components/common/teambition/flow-job-new/avatar-group/index.scss +59 -0
  589. package/es/components/common/teambition/flow-job-new/cardInner.module.scss +183 -0
  590. package/es/components/common/teambition/flow-job-new/componentDisplayText.d.ts +2 -0
  591. package/es/components/common/teambition/flow-job-new/componentDisplayText.js +36 -0
  592. package/es/components/common/teambition/flow-job-new/hack.module.scss +50 -0
  593. package/es/components/common/teambition/flow-job-new/index.d.ts +28 -0
  594. package/es/components/common/teambition/flow-job-new/index.js +732 -0
  595. package/es/components/common/teambition/flow-job-new/index.scss +37 -0
  596. package/es/components/common/teambition/flow-job-new/style.module.scss +145 -0
  597. package/es/components/common/teambition/flow-job-new/themes/card.scss +195 -0
  598. package/es/components/common/teambition/flow-job-new/useScroll.d.ts +2 -0
  599. package/es/components/common/teambition/flow-job-new/useScroll.js +16 -0
  600. package/es/components/common/teambition/flow-job-new/utils/index.d.ts +2 -0
  601. package/es/components/common/teambition/flow-job-new/utils/index.js +109 -0
  602. package/es/components/common/teambition/flow-job-runtime-menu/index.d.ts +16 -0
  603. package/es/components/common/teambition/flow-job-runtime-menu/index.js +89 -0
  604. package/es/components/common/teambition/flow-job-runtime-menu/index.scss +51 -0
  605. package/es/components/common/teambition/flow-new/error-hint/index.d.ts +4 -0
  606. package/es/components/common/teambition/flow-new/error-hint/index.js +46 -0
  607. package/es/components/common/teambition/flow-new/error-hint/index.scss +112 -0
  608. package/es/components/common/teambition/flow-new/flow.d.ts +3 -0
  609. package/es/components/common/teambition/flow-new/flow.js +48 -0
  610. package/es/components/common/teambition/flow-new/index.d.ts +10 -0
  611. package/es/components/common/teambition/flow-new/index.js +60 -0
  612. package/es/components/common/teambition/flow-stage/index.d.ts +25 -0
  613. package/es/components/common/teambition/flow-stage/index.js +90 -0
  614. package/es/components/common/teambition/flow-stage/index.scss +117 -0
  615. package/es/components/common/teambition/flow-stage-new/index.d.ts +23 -0
  616. package/es/components/common/teambition/flow-stage-new/index.js +76 -0
  617. package/es/components/common/teambition/flow-stage-new/index.scss +53 -0
  618. package/es/components/common/teambition/form-error-tooltip/index.d.ts +5 -0
  619. package/es/components/common/teambition/form-error-tooltip/index.js +25 -0
  620. package/es/components/common/teambition/globalParams/index.d.ts +21 -0
  621. package/es/components/common/teambition/globalParams/index.js +351 -0
  622. package/es/components/common/teambition/globalParams/index.scss +98 -0
  623. package/es/components/common/teambition/group-status/index.d.ts +7 -0
  624. package/es/components/common/teambition/group-status/index.js +83 -0
  625. package/es/components/common/teambition/group-status/index.scss +107 -0
  626. package/es/components/common/teambition/guide-hint/index.d.ts +4 -0
  627. package/es/components/common/teambition/guide-hint/index.js +55 -0
  628. package/es/components/common/teambition/guide-hint/index.scss +103 -0
  629. package/es/components/common/teambition/help-link/index.d.ts +3 -0
  630. package/es/components/common/teambition/help-link/index.js +28 -0
  631. package/es/components/common/teambition/help-link/index.scss +7 -0
  632. package/es/components/common/teambition/icon-font/index.d.ts +17 -0
  633. package/es/components/common/teambition/icon-font/index.js +81 -0
  634. package/es/components/common/teambition/icon-image/index.d.ts +12 -0
  635. package/es/components/common/teambition/icon-image/index.js +28 -0
  636. package/es/components/common/teambition/index.scss +331 -0
  637. package/es/components/common/teambition/input-placeholder-tip/index.d.ts +5 -0
  638. package/es/components/common/teambition/input-placeholder-tip/index.js +38 -0
  639. package/es/components/common/teambition/input-placeholder-tip/index.scss +7 -0
  640. package/es/components/common/teambition/instance-flow/index.d.ts +11 -0
  641. package/es/components/common/teambition/instance-flow/index.js +54 -0
  642. package/es/components/common/teambition/instance-flow/index.scss +1 -0
  643. package/es/components/common/teambition/instance-releases/index.d.ts +7 -0
  644. package/es/components/common/teambition/instance-releases/index.js +50 -0
  645. package/es/components/common/teambition/instance-releases/index.scss +52 -0
  646. package/es/components/common/teambition/instance-sources/index.d.ts +12 -0
  647. package/es/components/common/teambition/instance-sources/index.js +252 -0
  648. package/es/components/common/teambition/instance-sources/index.scss +143 -0
  649. package/es/components/common/teambition/instance-status/index.d.ts +10 -0
  650. package/es/components/common/teambition/instance-status/index.js +35 -0
  651. package/es/components/common/teambition/instance-status/index.scss +36 -0
  652. package/es/components/common/teambition/instance-status-icon/index.d.ts +91 -0
  653. package/es/components/common/teambition/instance-status-icon/index.js +239 -0
  654. package/es/components/common/teambition/instance-status-icon/index.scss +92 -0
  655. package/es/components/common/teambition/instance-trigger-info/index.d.ts +8 -0
  656. package/es/components/common/teambition/instance-trigger-info/index.js +278 -0
  657. package/es/components/common/teambition/instance-trigger-info/index.scss +109 -0
  658. package/es/components/common/teambition/instance-trigger-mode/index.d.ts +4 -0
  659. package/es/components/common/teambition/instance-trigger-mode/index.js +42 -0
  660. package/es/components/common/teambition/manage-nav-bar/index.d.ts +15 -0
  661. package/es/components/common/teambition/manage-nav-bar/index.js +99 -0
  662. package/es/components/common/teambition/manage-nav-bar/index.scss +104 -0
  663. package/es/components/common/teambition/menu-wrapper/index.d.ts +15 -0
  664. package/es/components/common/teambition/menu-wrapper/index.js +126 -0
  665. package/es/components/common/teambition/menu-wrapper/index.scss +65 -0
  666. package/es/components/common/teambition/message/index.d.ts +8 -0
  667. package/es/components/common/teambition/message/index.js +31 -0
  668. package/es/components/common/teambition/message/index.scss +43 -0
  669. package/es/components/common/teambition/message-page/index.d.ts +14 -0
  670. package/es/components/common/teambition/message-page/index.js +34 -0
  671. package/es/components/common/teambition/message-page/index.scss +16 -0
  672. package/es/components/common/teambition/operation-panel/index.d.ts +4 -0
  673. package/es/components/common/teambition/operation-panel/index.js +43 -0
  674. package/es/components/common/teambition/operation-panel/index.scss +33 -0
  675. package/es/components/common/teambition/pipeline-configuration/index.d.ts +3 -0
  676. package/es/components/common/teambition/pipeline-configuration/index.js +482 -0
  677. package/es/components/common/teambition/pipeline-configuration/index.scss +136 -0
  678. package/es/components/common/teambition/pipeline-configuration/utils.d.ts +546 -0
  679. package/es/components/common/teambition/pipeline-configuration/utils.js +1195 -0
  680. package/es/components/common/teambition/pipeline-flow-dialog/appstack-wrap.d.ts +11 -0
  681. package/es/components/common/teambition/pipeline-flow-dialog/appstack-wrap.js +50 -0
  682. package/es/components/common/teambition/pipeline-flow-dialog/index.d.ts +120 -0
  683. package/es/components/common/teambition/pipeline-flow-dialog/index.js +2612 -0
  684. package/es/components/common/teambition/pipeline-flow-dialog/index.scss +111 -0
  685. package/es/components/common/teambition/pipeline-flow-dialog/type.d.ts +14 -0
  686. package/es/components/common/teambition/pipeline-flow-dialog/utils.d.ts +18 -0
  687. package/es/components/common/teambition/pipeline-flow-dialog/utils.js +167 -0
  688. package/es/components/common/teambition/pipeline-flow-dialog/validate.d.ts +11 -0
  689. package/es/components/common/teambition/pipeline-flow-dialog/validate.js +43 -0
  690. package/es/components/common/teambition/pipeline-flow-info/flow-info/index.d.ts +3 -0
  691. package/es/components/common/teambition/pipeline-flow-info/flow-info/index.js +346 -0
  692. package/es/components/common/teambition/pipeline-flow-info/index.d.ts +11 -0
  693. package/es/components/common/teambition/pipeline-flow-info/index.js +60 -0
  694. package/es/components/common/teambition/pipeline-flow-info/index.scss +0 -0
  695. package/es/components/common/teambition/pipeline-flow-info/member-info/index.d.ts +3 -0
  696. package/es/components/common/teambition/pipeline-flow-info/member-info/index.js +70 -0
  697. package/es/components/common/teambition/pipeline-flow-info/member-info/index.scss +48 -0
  698. package/es/components/common/teambition/pipeline-flow-info/member-info/member-table.d.ts +4 -0
  699. package/es/components/common/teambition/pipeline-flow-info/member-info/member-table.js +179 -0
  700. package/es/components/common/teambition/pipeline-flow-info/member-info/utils.d.ts +16 -0
  701. package/es/components/common/teambition/pipeline-flow-info/member-info/utils.js +245 -0
  702. package/es/components/common/teambition/pipeline-flow-orchestrator/editor/index.d.ts +5 -0
  703. package/es/components/common/teambition/pipeline-flow-orchestrator/editor/index.js +8 -0
  704. package/es/components/common/teambition/pipeline-flow-orchestrator/index.d.ts +73 -0
  705. package/es/components/common/teambition/pipeline-flow-orchestrator/index.js +1010 -0
  706. package/es/components/common/teambition/pipeline-flow-orchestrator/index.scss +215 -0
  707. package/es/components/common/teambition/pipeline-flow-orchestrator/utils.d.ts +60 -0
  708. package/es/components/common/teambition/pipeline-flow-orchestrator/utils.js +225 -0
  709. package/es/components/common/teambition/pipeline-flow-scheduler/concurrency/index.d.ts +9 -0
  710. package/es/components/common/teambition/pipeline-flow-scheduler/concurrency/index.js +102 -0
  711. package/es/components/common/teambition/pipeline-flow-scheduler/index.d.ts +16 -0
  712. package/es/components/common/teambition/pipeline-flow-scheduler/index.js +250 -0
  713. package/es/components/common/teambition/pipeline-flow-scheduler/index.scss +11 -0
  714. package/es/components/common/teambition/pipeline-flow-scheduler/timer/index.d.ts +5 -0
  715. package/es/components/common/teambition/pipeline-flow-scheduler/timer/index.js +375 -0
  716. package/es/components/common/teambition/pipeline-flow-scheduler/timer/index.scss +46 -0
  717. package/es/components/common/teambition/pipeline-flow-scheduler/webhook/index.d.ts +3 -0
  718. package/es/components/common/teambition/pipeline-flow-scheduler/webhook/index.js +90 -0
  719. package/es/components/common/teambition/pipeline-flow-scheduler/webhook/index.module.scss +5 -0
  720. package/es/components/common/teambition/pipeline-flow-setting-layout/index.d.ts +8 -0
  721. package/es/components/common/teambition/pipeline-flow-setting-layout/index.js +15 -0
  722. package/es/components/common/teambition/pipeline-flow-setting-layout/index.scss +58 -0
  723. package/es/components/common/teambition/pipeline-flow-var/cache-table/add-cache-dialog/index.d.ts +9 -0
  724. package/es/components/common/teambition/pipeline-flow-var/cache-table/add-cache-dialog/index.js +131 -0
  725. package/es/components/common/teambition/pipeline-flow-var/cache-table/index.d.ts +4 -0
  726. package/es/components/common/teambition/pipeline-flow-var/cache-table/index.js +417 -0
  727. package/es/components/common/teambition/pipeline-flow-var/cache-table/index.scss +17 -0
  728. package/es/components/common/teambition/pipeline-flow-var/cache-table/mountCard.module.scss +47 -0
  729. package/es/components/common/teambition/pipeline-flow-var/cache-table/pmLocalMount.d.ts +5 -0
  730. package/es/components/common/teambition/pipeline-flow-var/cache-table/pmLocalMount.js +167 -0
  731. package/es/components/common/teambition/pipeline-flow-var/index.d.ts +11 -0
  732. package/es/components/common/teambition/pipeline-flow-var/index.js +101 -0
  733. package/es/components/common/teambition/pipeline-flow-var/index.scss +51 -0
  734. package/es/components/common/teambition/pipeline-flow-var/table-editable-pane/index.d.ts +11 -0
  735. package/es/components/common/teambition/pipeline-flow-var/table-editable-pane/index.js +146 -0
  736. package/es/components/common/teambition/pipeline-flow-var/table-editable-pane/index.scss +26 -0
  737. package/es/components/common/teambition/pipeline-flow-var/var-group-table/index.d.ts +4 -0
  738. package/es/components/common/teambition/pipeline-flow-var/var-group-table/index.js +550 -0
  739. package/es/components/common/teambition/pipeline-flow-var/var-group-table/index.scss +17 -0
  740. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog/index.d.ts +4 -0
  741. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog/index.js +324 -0
  742. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog/index.scss +53 -0
  743. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog-option/index.d.ts +4 -0
  744. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog-option/index.js +373 -0
  745. package/es/components/common/teambition/pipeline-flow-var/var-table/add-var-dialog-option/index.scss +31 -0
  746. package/es/components/common/teambition/pipeline-flow-var/var-table/index.d.ts +4 -0
  747. package/es/components/common/teambition/pipeline-flow-var/var-table/index.js +665 -0
  748. package/es/components/common/teambition/pipeline-flow-var/var-table/index.scss +21 -0
  749. package/es/components/common/teambition/pipeline-flow-var/var-table/util.d.ts +5 -0
  750. package/es/components/common/teambition/pipeline-flow-var/var-table/util.js +36 -0
  751. package/es/components/common/teambition/pipeline-graph/index.d.ts +7 -0
  752. package/es/components/common/teambition/pipeline-graph/index.js +41 -0
  753. package/es/components/common/teambition/pipeline-graph/index.scss +187 -0
  754. package/es/components/common/teambition/pipeline-graph/parent-graph.d.ts +59 -0
  755. package/es/components/common/teambition/pipeline-graph/parent-graph.js +161 -0
  756. package/es/components/common/teambition/pipeline-graph/stage-card.d.ts +8 -0
  757. package/es/components/common/teambition/pipeline-graph/stage-card.js +79 -0
  758. package/es/components/common/teambition/pipeline-graph/stage-graph.d.ts +7 -0
  759. package/es/components/common/teambition/pipeline-graph/stage-graph.js +61 -0
  760. package/es/components/common/teambition/pipeline-graph/svg-graph.d.ts +8 -0
  761. package/es/components/common/teambition/pipeline-graph/svg-graph.js +75 -0
  762. package/es/components/common/teambition/pipeline-info/appstack-wrap.d.ts +5 -0
  763. package/es/components/common/teambition/pipeline-info/appstack-wrap.js +24 -0
  764. package/es/components/common/teambition/pipeline-info/baseInfo.d.ts +8 -0
  765. package/es/components/common/teambition/pipeline-info/baseInfo.js +273 -0
  766. package/es/components/common/teambition/pipeline-info/index.d.ts +16 -0
  767. package/es/components/common/teambition/pipeline-info/index.js +313 -0
  768. package/es/components/common/teambition/pipeline-info/index.scss +56 -0
  769. package/es/components/common/teambition/pipeline-info/tagSelect.d.ts +10 -0
  770. package/es/components/common/teambition/pipeline-info/tagSelect.js +291 -0
  771. package/es/components/common/teambition/pipeline-instance/folding/index.d.ts +8 -0
  772. package/es/components/common/teambition/pipeline-instance/folding/index.js +45 -0
  773. package/es/components/common/teambition/pipeline-instance/folding/index.scss +43 -0
  774. package/es/components/common/teambition/pipeline-instance/index.d.ts +4 -0
  775. package/es/components/common/teambition/pipeline-instance/index.js +397 -0
  776. package/es/components/common/teambition/pipeline-instance/index.scss +249 -0
  777. package/es/components/common/teambition/pipeline-instance/package/packages.d.ts +8 -0
  778. package/es/components/common/teambition/pipeline-instance/package/packages.js +247 -0
  779. package/es/components/common/teambition/pipeline-instance/package/tree.d.ts +12 -0
  780. package/es/components/common/teambition/pipeline-instance/package/tree.js +104 -0
  781. package/es/components/common/teambition/pipeline-instance/readme.md +1 -0
  782. package/es/components/common/teambition/pipeline-instance/source.d.ts +3 -0
  783. package/es/components/common/teambition/pipeline-instance/source.js +198 -0
  784. package/es/components/common/teambition/pipeline-instance-new/SourceElement.d.ts +1 -0
  785. package/es/components/common/teambition/pipeline-instance-new/SourceElement.js +53 -0
  786. package/es/components/common/teambition/pipeline-instance-new/StatusBar.d.ts +1 -0
  787. package/es/components/common/teambition/pipeline-instance-new/StatusBar.js +273 -0
  788. package/es/components/common/teambition/pipeline-instance-new/commits/index.d.ts +7 -0
  789. package/es/components/common/teambition/pipeline-instance-new/commits/index.js +277 -0
  790. package/es/components/common/teambition/pipeline-instance-new/commits/index.scss +75 -0
  791. package/es/components/common/teambition/pipeline-instance-new/constants.d.ts +2 -0
  792. package/es/components/common/teambition/pipeline-instance-new/constants.js +2 -0
  793. package/es/components/common/teambition/pipeline-instance-new/index.d.ts +4 -0
  794. package/es/components/common/teambition/pipeline-instance-new/index.js +124 -0
  795. package/es/components/common/teambition/pipeline-instance-new/index.scss +500 -0
  796. package/es/components/common/teambition/pipeline-instance-new/package/packages.d.ts +8 -0
  797. package/es/components/common/teambition/pipeline-instance-new/package/packages.js +256 -0
  798. package/es/components/common/teambition/pipeline-instance-new/package/tree.d.ts +12 -0
  799. package/es/components/common/teambition/pipeline-instance-new/package/tree.js +114 -0
  800. package/es/components/common/teambition/pipeline-instance-new/source.d.ts +22 -0
  801. package/es/components/common/teambition/pipeline-instance-new/source.js +376 -0
  802. package/es/components/common/teambition/pipeline-instance-new/status/index.d.ts +9 -0
  803. package/es/components/common/teambition/pipeline-instance-new/status/index.js +172 -0
  804. package/es/components/common/teambition/pipeline-instance-new/status/index.scss +45 -0
  805. package/es/components/common/teambition/pipeline-instance-new/variable/index.d.ts +4 -0
  806. package/es/components/common/teambition/pipeline-instance-new/variable/index.js +108 -0
  807. package/es/components/common/teambition/pipeline-instance-new/variable/index.scss +5 -0
  808. package/es/components/common/teambition/pipeline-menu/index.d.ts +14 -0
  809. package/es/components/common/teambition/pipeline-menu/index.js +340 -0
  810. package/es/components/common/teambition/pipeline-menu/index.scss +122 -0
  811. package/es/components/common/teambition/pipeline-params/index.d.ts +4 -0
  812. package/es/components/common/teambition/pipeline-params/index.js +108 -0
  813. package/es/components/common/teambition/pipeline-params/index.scss +78 -0
  814. package/es/components/common/teambition/pipeline-recode-diff/index.d.ts +12 -0
  815. package/es/components/common/teambition/pipeline-recode-diff/index.js +276 -0
  816. package/es/components/common/teambition/pipeline-recode-diff/index.module.scss +27 -0
  817. package/es/components/common/teambition/pipeline-roll-back/index.d.ts +13 -0
  818. package/es/components/common/teambition/pipeline-roll-back/index.js +189 -0
  819. package/es/components/common/teambition/pipeline-roll-back/index.module.scss +23 -0
  820. package/es/components/common/teambition/pipeline-run-confirm/index.d.ts +13 -0
  821. package/es/components/common/teambition/pipeline-run-confirm/index.js +83 -0
  822. package/es/components/common/teambition/pipeline-run-confirm/index.scss +16 -0
  823. package/es/components/common/teambition/pipeline-save-diff/index.d.ts +12 -0
  824. package/es/components/common/teambition/pipeline-save-diff/index.js +98 -0
  825. package/es/components/common/teambition/pipeline-save-diff/index.module.scss +9 -0
  826. package/es/components/common/teambition/pipeline-source/BranchesFilter.d.ts +8 -0
  827. package/es/components/common/teambition/pipeline-source/BranchesFilter.js +93 -0
  828. package/es/components/common/teambition/pipeline-source/artifact-source/acr-sign.d.ts +8 -0
  829. package/es/components/common/teambition/pipeline-source/artifact-source/acr-sign.js +87 -0
  830. package/es/components/common/teambition/pipeline-source/artifact-source/acr-webhook.d.ts +8 -0
  831. package/es/components/common/teambition/pipeline-source/artifact-source/acr-webhook.js +174 -0
  832. package/es/components/common/teambition/pipeline-source/artifact-source/acr.d.ts +8 -0
  833. package/es/components/common/teambition/pipeline-source/artifact-source/acr.js +381 -0
  834. package/es/components/common/teambition/pipeline-source/artifact-source/index.d.ts +15 -0
  835. package/es/components/common/teambition/pipeline-source/artifact-source/index.js +63 -0
  836. package/es/components/common/teambition/pipeline-source/artifact-source/index.scss +71 -0
  837. package/es/components/common/teambition/pipeline-source/artifact-source/packages.d.ts +8 -0
  838. package/es/components/common/teambition/pipeline-source/artifact-source/packages.js +467 -0
  839. package/es/components/common/teambition/pipeline-source/artifact-source/utils.d.ts +2 -0
  840. package/es/components/common/teambition/pipeline-source/artifact-source/utils.js +20 -0
  841. package/es/components/common/teambition/pipeline-source/branch-mode/index.d.ts +9 -0
  842. package/es/components/common/teambition/pipeline-source/branch-mode/index.js +79 -0
  843. package/es/components/common/teambition/pipeline-source/branch-mode/index.scss +11 -0
  844. package/es/components/common/teambition/pipeline-source/code-source/index.d.ts +4 -0
  845. package/es/components/common/teambition/pipeline-source/code-source/index.js +148 -0
  846. package/es/components/common/teambition/pipeline-source/code-source/index.scss +218 -0
  847. package/es/components/common/teambition/pipeline-source/code-source/utils.d.ts +71 -0
  848. package/es/components/common/teambition/pipeline-source/code-source/utils.js +182 -0
  849. package/es/components/common/teambition/pipeline-source/credential/index.d.ts +13 -0
  850. package/es/components/common/teambition/pipeline-source/credential/index.js +430 -0
  851. package/es/components/common/teambition/pipeline-source/credential/index.scss +9 -0
  852. package/es/components/common/teambition/pipeline-source/credential-form-item/index.d.ts +20 -0
  853. package/es/components/common/teambition/pipeline-source/credential-form-item/index.js +397 -0
  854. package/es/components/common/teambition/pipeline-source/credential-form-item/index.scss +90 -0
  855. package/es/components/common/teambition/pipeline-source/credential-form-item/keypair.d.ts +6 -0
  856. package/es/components/common/teambition/pipeline-source/credential-form-item/keypair.js +80 -0
  857. package/es/components/common/teambition/pipeline-source/credential-form-item/newItem.d.ts +15 -0
  858. package/es/components/common/teambition/pipeline-source/credential-form-item/newItem.js +368 -0
  859. package/es/components/common/teambition/pipeline-source/fetch-depth/index.d.ts +6 -0
  860. package/es/components/common/teambition/pipeline-source/fetch-depth/index.js +67 -0
  861. package/es/components/common/teambition/pipeline-source/index.d.ts +37 -0
  862. package/es/components/common/teambition/pipeline-source/index.js +213 -0
  863. package/es/components/common/teambition/pipeline-source/index.scss +40 -0
  864. package/es/components/common/teambition/pipeline-source/jenkins/index.d.ts +4 -0
  865. package/es/components/common/teambition/pipeline-source/jenkins/index.js +1071 -0
  866. package/es/components/common/teambition/pipeline-source/jenkins/index.scss +34 -0
  867. package/es/components/common/teambition/pipeline-source/jenkins/layout.d.ts +3 -0
  868. package/es/components/common/teambition/pipeline-source/jenkins/layout.js +169 -0
  869. package/es/components/common/teambition/pipeline-source/jenkins/utils.d.ts +19 -0
  870. package/es/components/common/teambition/pipeline-source/jenkins/utils.js +288 -0
  871. package/es/components/common/teambition/pipeline-source/pipeline-event/index.d.ts +5 -0
  872. package/es/components/common/teambition/pipeline-source/pipeline-event/index.js +122 -0
  873. package/es/components/common/teambition/pipeline-source/pipeline-event/index.scss +40 -0
  874. package/es/components/common/teambition/pipeline-source/scms/aliyun.d.ts +11 -0
  875. package/es/components/common/teambition/pipeline-source/scms/aliyun.js +337 -0
  876. package/es/components/common/teambition/pipeline-source/scms/appstack.d.ts +10 -0
  877. package/es/components/common/teambition/pipeline-source/scms/appstack.js +211 -0
  878. package/es/components/common/teambition/pipeline-source/scms/atomGit.d.ts +10 -0
  879. package/es/components/common/teambition/pipeline-source/scms/atomGit.js +382 -0
  880. package/es/components/common/teambition/pipeline-source/scms/bitbucket.d.ts +10 -0
  881. package/es/components/common/teambition/pipeline-source/scms/bitbucket.js +131 -0
  882. package/es/components/common/teambition/pipeline-source/scms/branchTips.d.ts +3 -0
  883. package/es/components/common/teambition/pipeline-source/scms/branchTips.js +30 -0
  884. package/es/components/common/teambition/pipeline-source/scms/code_alibaba.d.ts +3 -0
  885. package/es/components/common/teambition/pipeline-source/scms/code_alibaba.js +503 -0
  886. package/es/components/common/teambition/pipeline-source/scms/codeup.d.ts +3 -0
  887. package/es/components/common/teambition/pipeline-source/scms/codeup.js +507 -0
  888. package/es/components/common/teambition/pipeline-source/scms/coding.d.ts +11 -0
  889. package/es/components/common/teambition/pipeline-source/scms/coding.js +141 -0
  890. package/es/components/common/teambition/pipeline-source/scms/flow.d.ts +10 -0
  891. package/es/components/common/teambition/pipeline-source/scms/flow.js +243 -0
  892. package/es/components/common/teambition/pipeline-source/scms/force.d.ts +10 -0
  893. package/es/components/common/teambition/pipeline-source/scms/force.js +121 -0
  894. package/es/components/common/teambition/pipeline-source/scms/git.d.ts +4 -0
  895. package/es/components/common/teambition/pipeline-source/scms/git.js +160 -0
  896. package/es/components/common/teambition/pipeline-source/scms/gitSample.d.ts +8 -0
  897. package/es/components/common/teambition/pipeline-source/scms/gitSample.js +230 -0
  898. package/es/components/common/teambition/pipeline-source/scms/gitee.d.ts +10 -0
  899. package/es/components/common/teambition/pipeline-source/scms/gitee.js +291 -0
  900. package/es/components/common/teambition/pipeline-source/scms/github.d.ts +9 -0
  901. package/es/components/common/teambition/pipeline-source/scms/github.js +122 -0
  902. package/es/components/common/teambition/pipeline-source/scms/githubOAuth.d.ts +10 -0
  903. package/es/components/common/teambition/pipeline-source/scms/githubOAuth.js +428 -0
  904. package/es/components/common/teambition/pipeline-source/scms/gitlab.d.ts +4 -0
  905. package/es/components/common/teambition/pipeline-source/scms/gitlab.js +159 -0
  906. package/es/components/common/teambition/pipeline-source/scms/hooks/useBranchDisabled.d.ts +5 -0
  907. package/es/components/common/teambition/pipeline-source/scms/hooks/useBranchDisabled.js +25 -0
  908. package/es/components/common/teambition/pipeline-source/scms/index.d.ts +83 -0
  909. package/es/components/common/teambition/pipeline-source/scms/index.js +35 -0
  910. package/es/components/common/teambition/pipeline-source/scms/index.scss +13 -0
  911. package/es/components/common/teambition/pipeline-source/scms/jenkins.d.ts +5 -0
  912. package/es/components/common/teambition/pipeline-source/scms/jenkins.js +113 -0
  913. package/es/components/common/teambition/pipeline-source/scms/svn.d.ts +4 -0
  914. package/es/components/common/teambition/pipeline-source/scms/svn.js +134 -0
  915. package/es/components/common/teambition/pipeline-source/submodule/submodule.d.ts +7 -0
  916. package/es/components/common/teambition/pipeline-source/submodule/submodule.js +58 -0
  917. package/es/components/common/teambition/pipeline-source/util.d.ts +15 -0
  918. package/es/components/common/teambition/pipeline-source/util.js +26 -0
  919. package/es/components/common/teambition/pipeline-source/webhook/index.scss +57 -0
  920. package/es/components/common/teambition/pipeline-source/webhook/jenkins-webhook.d.ts +11 -0
  921. package/es/components/common/teambition/pipeline-source/webhook/jenkins-webhook.js +171 -0
  922. package/es/components/common/teambition/pipeline-source/webhook/webhook.d.ts +5 -0
  923. package/es/components/common/teambition/pipeline-source/webhook/webhook.js +448 -0
  924. package/es/components/common/teambition/pipeline-source/workspace/index.d.ts +8 -0
  925. package/es/components/common/teambition/pipeline-source/workspace/index.js +100 -0
  926. package/es/components/common/teambition/pipeline-tag/empty.d.ts +2 -0
  927. package/es/components/common/teambition/pipeline-tag/empty.js +39 -0
  928. package/es/components/common/teambition/pipeline-tag/index.d.ts +23 -0
  929. package/es/components/common/teambition/pipeline-tag/index.js +25 -0
  930. package/es/components/common/teambition/pipeline-tag/index.scss +16 -0
  931. package/es/components/common/teambition/pipeline-template-card/GraphPreview/index.d.ts +5 -0
  932. package/es/components/common/teambition/pipeline-template-card/GraphPreview/index.js +209 -0
  933. package/es/components/common/teambition/pipeline-template-card/GraphPreview/style.module.scss +21 -0
  934. package/es/components/common/teambition/pipeline-template-card/getGraphContentArys.d.ts +6 -0
  935. package/es/components/common/teambition/pipeline-template-card/getGraphContentArys.js +70 -0
  936. package/es/components/common/teambition/pipeline-template-card/groups.d.ts +54 -0
  937. package/es/components/common/teambition/pipeline-template-card/groups.js +87 -0
  938. package/es/components/common/teambition/pipeline-template-card/index.d.ts +18 -0
  939. package/es/components/common/teambition/pipeline-template-card/index.js +211 -0
  940. package/es/components/common/teambition/pipeline-template-card/style.module.scss +111 -0
  941. package/es/components/common/teambition/pipeline-variable-group/index.scss +103 -0
  942. package/es/components/common/teambition/pipeline-variable-group/variable.d.ts +7 -0
  943. package/es/components/common/teambition/pipeline-variable-group/variable.js +42 -0
  944. package/es/components/common/teambition/pipeline-variable-group/variableGroup.d.ts +28 -0
  945. package/es/components/common/teambition/pipeline-variable-group/variableGroup.js +468 -0
  946. package/es/components/common/teambition/pipeline-version-record/index.d.ts +11 -0
  947. package/es/components/common/teambition/pipeline-version-record/index.js +302 -0
  948. package/es/components/common/teambition/pipeline-version-record/index.scss +46 -0
  949. package/es/components/common/teambition/pipeline-view-version/index.d.ts +10 -0
  950. package/es/components/common/teambition/pipeline-view-version/index.js +140 -0
  951. package/es/components/common/teambition/pipeline-view-version/index.module.scss +32 -0
  952. package/es/components/common/teambition/pipelineVersionBadge/index.d.ts +5 -0
  953. package/es/components/common/teambition/pipelineVersionBadge/index.js +42 -0
  954. package/es/components/common/teambition/relate-pipeline-dialog/index.d.ts +3 -0
  955. package/es/components/common/teambition/relate-pipeline-dialog/index.js +348 -0
  956. package/es/components/common/teambition/relate-pipeline-dialog/index.scss +56 -0
  957. package/es/components/common/teambition/release-info-dialog/index.d.ts +4 -0
  958. package/es/components/common/teambition/release-info-dialog/index.js +158 -0
  959. package/es/components/common/teambition/release-info-dialog/index.scss +52 -0
  960. package/es/components/common/teambition/run-param-config-dialog/context.d.ts +4 -0
  961. package/es/components/common/teambition/run-param-config-dialog/context.js +18 -0
  962. package/es/components/common/teambition/run-param-config-dialog/files/acr.d.ts +6 -0
  963. package/es/components/common/teambition/run-param-config-dialog/files/acr.js +138 -0
  964. package/es/components/common/teambition/run-param-config-dialog/files/add-branch.d.ts +3 -0
  965. package/es/components/common/teambition/run-param-config-dialog/files/add-branch.js +204 -0
  966. package/es/components/common/teambition/run-param-config-dialog/files/appstack-change.d.ts +8 -0
  967. package/es/components/common/teambition/run-param-config-dialog/files/appstack-change.js +494 -0
  968. package/es/components/common/teambition/run-param-config-dialog/files/appstack-changerun.d.ts +4 -0
  969. package/es/components/common/teambition/run-param-config-dialog/files/appstack-changerun.js +163 -0
  970. package/es/components/common/teambition/run-param-config-dialog/files/appstack-changerun.scss +31 -0
  971. package/es/components/common/teambition/run-param-config-dialog/files/appstack-release.d.ts +35 -0
  972. package/es/components/common/teambition/run-param-config-dialog/files/appstack-release.js +426 -0
  973. package/es/components/common/teambition/run-param-config-dialog/files/appstack-release.scss +54 -0
  974. package/es/components/common/teambition/run-param-config-dialog/files/artifact-source.d.ts +8 -0
  975. package/es/components/common/teambition/run-param-config-dialog/files/artifact-source.js +21 -0
  976. package/es/components/common/teambition/run-param-config-dialog/files/branch-status.d.ts +7 -0
  977. package/es/components/common/teambition/run-param-config-dialog/files/branch-status.js +61 -0
  978. package/es/components/common/teambition/run-param-config-dialog/files/branch.d.ts +8 -0
  979. package/es/components/common/teambition/run-param-config-dialog/files/branch.js +66 -0
  980. package/es/components/common/teambition/run-param-config-dialog/files/code-source.d.ts +4 -0
  981. package/es/components/common/teambition/run-param-config-dialog/files/code-source.js +702 -0
  982. package/es/components/common/teambition/run-param-config-dialog/files/common-footer.d.ts +4 -0
  983. package/es/components/common/teambition/run-param-config-dialog/files/common-footer.js +11 -0
  984. package/es/components/common/teambition/run-param-config-dialog/files/flow.d.ts +4 -0
  985. package/es/components/common/teambition/run-param-config-dialog/files/flow.js +119 -0
  986. package/es/components/common/teambition/run-param-config-dialog/files/index.scss +87 -0
  987. package/es/components/common/teambition/run-param-config-dialog/files/jenkins.d.ts +3 -0
  988. package/es/components/common/teambition/run-param-config-dialog/files/jenkins.js +138 -0
  989. package/es/components/common/teambition/run-param-config-dialog/files/packages.d.ts +4 -0
  990. package/es/components/common/teambition/run-param-config-dialog/files/packages.js +142 -0
  991. package/es/components/common/teambition/run-param-config-dialog/index.d.ts +6 -0
  992. package/es/components/common/teambition/run-param-config-dialog/index.js +373 -0
  993. package/es/components/common/teambition/run-param-config-dialog/index.scss +40 -0
  994. package/es/components/common/teambition/run-param-config-dialog/utils.d.ts +12 -0
  995. package/es/components/common/teambition/run-param-config-dialog/utils.js +54 -0
  996. package/es/components/common/teambition/run-pipeline-btn/index.d.ts +18 -0
  997. package/es/components/common/teambition/run-pipeline-btn/index.js +826 -0
  998. package/es/components/common/teambition/run-pipeline-btn/index.scss +48 -0
  999. package/es/components/common/teambition/scheduler/index.d.ts +9 -0
  1000. package/es/components/common/teambition/scheduler/index.js +92 -0
  1001. package/es/components/common/teambition/scheduler/index.scss +117 -0
  1002. package/es/components/common/teambition/scheduler/timer.d.ts +14 -0
  1003. package/es/components/common/teambition/scheduler/timer.js +309 -0
  1004. package/es/components/common/teambition/scheduler/webhook.d.ts +6 -0
  1005. package/es/components/common/teambition/scheduler/webhook.js +107 -0
  1006. package/es/components/common/teambition/service-connection/OAuth2/index.d.ts +11 -0
  1007. package/es/components/common/teambition/service-connection/OAuth2/index.js +537 -0
  1008. package/es/components/common/teambition/service-connection/OAuth2/index.scss +5 -0
  1009. package/es/components/common/teambition/service-connection/aliyun/index.d.ts +24 -0
  1010. package/es/components/common/teambition/service-connection/aliyun/index.js +292 -0
  1011. package/es/components/common/teambition/service-connection/aliyun/index.scss +5 -0
  1012. package/es/components/common/teambition/service-connection/aliyun/legacy.d.ts +15 -0
  1013. package/es/components/common/teambition/service-connection/aliyun/legacy.js +272 -0
  1014. package/es/components/common/teambition/service-connection/aliyun.d.ts +11 -0
  1015. package/es/components/common/teambition/service-connection/aliyun.js +264 -0
  1016. package/es/components/common/teambition/service-connection/code_alibaba/index.d.ts +11 -0
  1017. package/es/components/common/teambition/service-connection/code_alibaba/index.js +203 -0
  1018. package/es/components/common/teambition/service-connection/codeup/index.d.ts +11 -0
  1019. package/es/components/common/teambition/service-connection/codeup/index.js +380 -0
  1020. package/es/components/common/teambition/service-connection/gitee.d.ts +9 -0
  1021. package/es/components/common/teambition/service-connection/gitee.js +292 -0
  1022. package/es/components/common/teambition/service-connection/github.d.ts +8 -0
  1023. package/es/components/common/teambition/service-connection/github.js +272 -0
  1024. package/es/components/common/teambition/service-connection/index.d.ts +45 -0
  1025. package/es/components/common/teambition/service-connection/index.js +13 -0
  1026. package/es/components/common/teambition/service-connection/index.scss +306 -0
  1027. package/es/components/common/teambition/service-connection/packages/index.d.ts +11 -0
  1028. package/es/components/common/teambition/service-connection/packages/index.js +219 -0
  1029. package/es/components/common/teambition/service-connection/ram.d.ts +9 -0
  1030. package/es/components/common/teambition/service-connection/ram.js +225 -0
  1031. package/es/components/common/teambition/service-connection/tips.d.ts +6 -0
  1032. package/es/components/common/teambition/service-connection/tips.js +14 -0
  1033. package/es/components/common/teambition/service-connection-create/index.d.ts +3 -0
  1034. package/es/components/common/teambition/service-connection-create/index.js +24 -0
  1035. package/es/components/common/teambition/splitline/index.d.ts +4 -0
  1036. package/es/components/common/teambition/splitline/index.js +8 -0
  1037. package/es/components/common/teambition/splitline/index.scss +12 -0
  1038. package/es/components/common/teambition/tag-panel/index.d.ts +4 -0
  1039. package/es/components/common/teambition/tag-panel/index.js +202 -0
  1040. package/es/components/common/teambition/tag-panel/index.scss +53 -0
  1041. package/es/components/common/teambition/task-template/index.d.ts +4 -0
  1042. package/es/components/common/teambition/task-template/index.js +442 -0
  1043. package/es/components/common/teambition/task-template/index.scss +207 -0
  1044. package/es/components/common/teambition/task-template/utils.d.ts +28 -0
  1045. package/es/components/common/teambition/task-template/utils.js +271 -0
  1046. package/es/components/common/teambition/terminal/index.d.ts +18 -0
  1047. package/es/components/common/teambition/terminal/index.js +105 -0
  1048. package/es/components/common/teambition/terminal/index.scss +3 -0
  1049. package/es/components/common/teambition/yunxiao-member/index.d.ts +5 -0
  1050. package/es/components/common/teambition/yunxiao-member/index.js +974 -0
  1051. package/es/components/common/teambition/yunxiao-member/utils.d.ts +55 -0
  1052. package/es/components/common/teambition/yunxiao-member/utils.js +340 -0
  1053. package/es/components/common/variable.scss +6 -0
  1054. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/index.d.ts +7 -0
  1055. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/index.js +616 -0
  1056. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/index.scss +88 -0
  1057. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/machines-table.d.ts +9 -0
  1058. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/machines-table.js +632 -0
  1059. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/operation.d.ts +6 -0
  1060. package/es/components/dashboardMain/components/build-and-deploy-setting-new/detail/operation.js +21 -0
  1061. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/ecs-label-form-items/index.d.ts +9 -0
  1062. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/ecs-label-form-items/index.js +449 -0
  1063. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/ecs-label-form-items/style.module.scss +16 -0
  1064. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/index.d.ts +16 -0
  1065. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/index.js +391 -0
  1066. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/tagSelect.d.ts +10 -0
  1067. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/group-dialog/tagSelect.js +291 -0
  1068. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/demo-form/DemoForm.d.ts +4 -0
  1069. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/demo-form/DemoForm.js +172 -0
  1070. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/host-table/index.d.ts +3 -0
  1071. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/host-table/index.js +163 -0
  1072. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/host-table/index.scss +42 -0
  1073. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/index.d.ts +8 -0
  1074. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/index.js +834 -0
  1075. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/ecs-form-items/index.scss +33 -0
  1076. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/index.d.ts +13 -0
  1077. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/index.js +365 -0
  1078. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/os-type-card/index.d.ts +11 -0
  1079. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/os-type-card/index.js +37 -0
  1080. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/os-type-card/index.scss +52 -0
  1081. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/runner-form-items/index.d.ts +7 -0
  1082. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/runner-form-items/index.js +178 -0
  1083. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/host-dialog/runner-form-items/index.scss +63 -0
  1084. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/log-dialog/index.d.ts +12 -0
  1085. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/log-dialog/index.js +37 -0
  1086. package/es/components/dashboardMain/components/build-and-deploy-setting-new/dialog/log-dialog/index.scss +18 -0
  1087. package/es/components/dashboardMain/components/build-and-deploy-setting-new/index.d.ts +9 -0
  1088. package/es/components/dashboardMain/components/build-and-deploy-setting-new/index.js +349 -0
  1089. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/default-groups.d.ts +3 -0
  1090. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/default-groups.js +106 -0
  1091. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/deploy-groups.d.ts +8 -0
  1092. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/deploy-groups.js +109 -0
  1093. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/group-card/index.d.ts +10 -0
  1094. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/group-card/index.js +76 -0
  1095. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/group-card/index.scss +110 -0
  1096. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/private-groups.d.ts +9 -0
  1097. package/es/components/dashboardMain/components/build-and-deploy-setting-new/list/private-groups.js +105 -0
  1098. package/es/components/dashboardMain/components/build-and-deploy-setting-new/operations.d.ts +3 -0
  1099. package/es/components/dashboardMain/components/build-and-deploy-setting-new/operations.js +175 -0
  1100. package/es/components/dashboardMain/components/build-and-deploy-setting-new/permissions.d.ts +11 -0
  1101. package/es/components/dashboardMain/components/build-and-deploy-setting-new/permissions.js +11 -0
  1102. package/es/components/dashboardMain/components/build-and-deploy-setting-new/types.d.ts +16 -0
  1103. package/es/components/dashboardMain/components/build-and-deploy-setting-new/types.js +22 -0
  1104. package/es/components/dashboardMain/components/build-and-deploy-setting-new/utils.d.ts +2 -0
  1105. package/es/components/dashboardMain/components/build-and-deploy-setting-new/utils.js +30 -0
  1106. package/es/components/dashboardMain/components/build-setting/build-group-table.d.ts +15 -0
  1107. package/es/components/dashboardMain/components/build-setting/build-group-table.js +448 -0
  1108. package/es/components/dashboardMain/components/build-setting/index.d.ts +5 -0
  1109. package/es/components/dashboardMain/components/build-setting/index.js +517 -0
  1110. package/es/components/dashboardMain/components/build-setting/operations.d.ts +3 -0
  1111. package/es/components/dashboardMain/components/build-setting/operations.js +234 -0
  1112. package/es/components/dashboardMain/components/build-setting/permissions.d.ts +11 -0
  1113. package/es/components/dashboardMain/components/build-setting/permissions.js +11 -0
  1114. package/es/components/dashboardMain/components/build-setting/tableColumns.d.ts +4 -0
  1115. package/es/components/dashboardMain/components/build-setting/tableColumns.js +169 -0
  1116. package/es/components/dashboardMain/components/build-setting-entry/index.d.ts +5 -0
  1117. package/es/components/dashboardMain/components/build-setting-entry/index.js +65 -0
  1118. package/es/components/dashboardMain/components/common.scss +218 -0
  1119. package/es/components/dashboardMain/components/deploy-setting/index.scss +11 -0
  1120. package/es/components/dashboardMain/components/deploy-setting/machineGroupTable.d.ts +20 -0
  1121. package/es/components/dashboardMain/components/deploy-setting/machineGroupTable.js +620 -0
  1122. package/es/components/dashboardMain/components/deploy-setting/main.d.ts +6 -0
  1123. package/es/components/dashboardMain/components/deploy-setting/main.js +599 -0
  1124. package/es/components/dashboardMain/components/deploy-setting/operations.d.ts +3 -0
  1125. package/es/components/dashboardMain/components/deploy-setting/operations.js +266 -0
  1126. package/es/components/dashboardMain/components/deploy-setting/permissions.d.ts +9 -0
  1127. package/es/components/dashboardMain/components/deploy-setting/permissions.js +9 -0
  1128. package/es/components/dashboardMain/components/deploy-setting/tableColumns.d.ts +6 -0
  1129. package/es/components/dashboardMain/components/deploy-setting/tableColumns.js +205 -0
  1130. package/es/components/dashboardMain/components/deploy-setting-entry/index.d.ts +5 -0
  1131. package/es/components/dashboardMain/components/deploy-setting-entry/index.js +60 -0
  1132. package/es/components/dashboardMain/components/dropdown-panel/index.d.ts +4 -0
  1133. package/es/components/dashboardMain/components/dropdown-panel/index.js +176 -0
  1134. package/es/components/dashboardMain/components/dropdown-panel/index.scss +111 -0
  1135. package/es/components/dashboardMain/components/empty/index.d.ts +4 -0
  1136. package/es/components/dashboardMain/components/empty/index.js +35 -0
  1137. package/es/components/dashboardMain/components/empty/index.scss +17 -0
  1138. package/es/components/dashboardMain/components/header/index.d.ts +3 -0
  1139. package/es/components/dashboardMain/components/header/index.js +28 -0
  1140. package/es/components/dashboardMain/components/kubernetes-manage/index.d.ts +3 -0
  1141. package/es/components/dashboardMain/components/kubernetes-manage/index.js +438 -0
  1142. package/es/components/dashboardMain/components/kubernetes-manage/index.scss +14 -0
  1143. package/es/components/dashboardMain/components/kubernetes-manage/kubernetes-edit-dialog.d.ts +16 -0
  1144. package/es/components/dashboardMain/components/kubernetes-manage/kubernetes-edit-dialog.js +215 -0
  1145. package/es/components/dashboardMain/components/kubernetes-manage/operations.d.ts +3 -0
  1146. package/es/components/dashboardMain/components/kubernetes-manage/operations.js +176 -0
  1147. package/es/components/dashboardMain/components/machineGroupUpgrade/Capsule.d.ts +18 -0
  1148. package/es/components/dashboardMain/components/machineGroupUpgrade/Capsule.js +190 -0
  1149. package/es/components/dashboardMain/components/machineGroupUpgrade/Capsule.module.scss +39 -0
  1150. package/es/components/dashboardMain/components/machineGroupUpgrade/ConfirmDialog.d.ts +14 -0
  1151. package/es/components/dashboardMain/components/machineGroupUpgrade/ConfirmDialog.js +226 -0
  1152. package/es/components/dashboardMain/components/machineGroupUpgrade/MachineUpgradingDisabledTip.d.ts +10 -0
  1153. package/es/components/dashboardMain/components/machineGroupUpgrade/MachineUpgradingDisabledTip.js +50 -0
  1154. package/es/components/dashboardMain/components/machineGroupUpgrade/card.module.scss +22 -0
  1155. package/es/components/dashboardMain/components/machineGroupUpgrade/context.d.ts +1 -0
  1156. package/es/components/dashboardMain/components/machineGroupUpgrade/context.js +5 -0
  1157. package/es/components/dashboardMain/components/machineGroupUpgrade/getMachineUpgradeStatusIcon.d.ts +2 -0
  1158. package/es/components/dashboardMain/components/machineGroupUpgrade/getMachineUpgradeStatusIcon.js +60 -0
  1159. package/es/components/dashboardMain/components/machineGroupUpgrade/index.d.ts +6 -0
  1160. package/es/components/dashboardMain/components/machineGroupUpgrade/index.js +339 -0
  1161. package/es/components/dashboardMain/components/machineGroupUpgrade/statusTable.d.ts +14 -0
  1162. package/es/components/dashboardMain/components/machineGroupUpgrade/statusTable.js +493 -0
  1163. package/es/components/dashboardMain/components/machineGroupUpgrade/style.module.scss +29 -0
  1164. package/es/components/dashboardMain/components/machineGroupUpgrade/type.d.ts +39 -0
  1165. package/es/components/dashboardMain/components/machineGroupUpgrade/type.js +1 -0
  1166. package/es/components/dashboardMain/components/maven-setting/NpmSelectRepoDialog.d.ts +8 -0
  1167. package/es/components/dashboardMain/components/maven-setting/NpmSelectRepoDialog.js +148 -0
  1168. package/es/components/dashboardMain/components/maven-setting/index-old.d.ts +4 -0
  1169. package/es/components/dashboardMain/components/maven-setting/index-old.js +331 -0
  1170. package/es/components/dashboardMain/components/maven-setting/index.d.ts +4 -0
  1171. package/es/components/dashboardMain/components/maven-setting/index.js +726 -0
  1172. package/es/components/dashboardMain/components/maven-setting/index.scss +19 -0
  1173. package/es/components/dashboardMain/components/maven-setting/style.module.scss +51 -0
  1174. package/es/components/dashboardMain/components/operation-panel/index.d.ts +4 -0
  1175. package/es/components/dashboardMain/components/operation-panel/index.js +604 -0
  1176. package/es/components/dashboardMain/components/operation-panel/index.scss +80 -0
  1177. package/es/components/dashboardMain/components/pipeline-empty/index.d.ts +3 -0
  1178. package/es/components/dashboardMain/components/pipeline-empty/index.js +102 -0
  1179. package/es/components/dashboardMain/components/pipeline-empty/index.scss +8 -0
  1180. package/es/components/dashboardMain/components/pipeline-list/index.d.ts +3 -0
  1181. package/es/components/dashboardMain/components/pipeline-list/index.js +235 -0
  1182. package/es/components/dashboardMain/components/pipeline-list/index.scss +108 -0
  1183. package/es/components/dashboardMain/components/pipeline-not-fonud/index.d.ts +4 -0
  1184. package/es/components/dashboardMain/components/pipeline-not-fonud/index.js +43 -0
  1185. package/es/components/dashboardMain/components/pipeline-not-fonud/index.scss +46 -0
  1186. package/es/components/dashboardMain/components/pipeline-operation/index.d.ts +18 -0
  1187. package/es/components/dashboardMain/components/pipeline-operation/index.js +461 -0
  1188. package/es/components/dashboardMain/components/pipeline-operation/index.scss +68 -0
  1189. package/es/components/dashboardMain/components/pipeline-panel/index.d.ts +3 -0
  1190. package/es/components/dashboardMain/components/pipeline-panel/index.js +350 -0
  1191. package/es/components/dashboardMain/components/pipeline-panel/index.scss +209 -0
  1192. package/es/components/dashboardMain/components/pipeline-table/columns.d.ts +2 -0
  1193. package/es/components/dashboardMain/components/pipeline-table/columns.js +296 -0
  1194. package/es/components/dashboardMain/components/pipeline-table/index.d.ts +3 -0
  1195. package/es/components/dashboardMain/components/pipeline-table/index.js +248 -0
  1196. package/es/components/dashboardMain/components/pipeline-table/index.scss +71 -0
  1197. package/es/components/dashboardMain/components/region-config/index.d.ts +3 -0
  1198. package/es/components/dashboardMain/components/region-config/index.js +194 -0
  1199. package/es/components/dashboardMain/components/region-config/index.scss +48 -0
  1200. package/es/components/dashboardMain/components/roles-setting/index.d.ts +3 -0
  1201. package/es/components/dashboardMain/components/roles-setting/index.js +334 -0
  1202. package/es/components/dashboardMain/components/roles-setting/index.scss +23 -0
  1203. package/es/components/dashboardMain/components/roles-setting/role-create-popup/index.d.ts +3 -0
  1204. package/es/components/dashboardMain/components/roles-setting/role-create-popup/index.js +85 -0
  1205. package/es/components/dashboardMain/components/roles-setting/role-create-popup/index.scss +38 -0
  1206. package/es/components/dashboardMain/components/roles-setting/roles-card/index.d.ts +3 -0
  1207. package/es/components/dashboardMain/components/roles-setting/roles-card/index.js +175 -0
  1208. package/es/components/dashboardMain/components/roles-setting/roles-card/index.scss +72 -0
  1209. package/es/components/dashboardMain/components/roles-setting/roles-popup/index.d.ts +3 -0
  1210. package/es/components/dashboardMain/components/roles-setting/roles-popup/index.js +247 -0
  1211. package/es/components/dashboardMain/components/roles-setting/roles-popup/index.scss +93 -0
  1212. package/es/components/dashboardMain/components/roles-setting/utils.d.ts +25 -0
  1213. package/es/components/dashboardMain/components/roles-setting/utils.js +409 -0
  1214. package/es/components/dashboardMain/components/search-panel/index.d.ts +3 -0
  1215. package/es/components/dashboardMain/components/search-panel/index.js +228 -0
  1216. package/es/components/dashboardMain/components/search-panel/index.scss +141 -0
  1217. package/es/components/dashboardMain/components/service-auth-manage/index.d.ts +3 -0
  1218. package/es/components/dashboardMain/components/service-auth-manage/index.js +368 -0
  1219. package/es/components/dashboardMain/components/service-auth-manage/index.scss +1 -0
  1220. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/AliyunRam.d.ts +15 -0
  1221. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/AliyunRam.js +422 -0
  1222. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/CodeRepo.d.ts +29 -0
  1223. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/CodeRepo.js +316 -0
  1224. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/index.d.ts +10 -0
  1225. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/index.js +231 -0
  1226. package/es/components/dashboardMain/components/service-auth-manage/service-auth-dialog/index.scss +84 -0
  1227. package/es/components/dashboardMain/components/service-auth-manage/utils.d.ts +8 -0
  1228. package/es/components/dashboardMain/components/service-auth-manage/utils.js +167 -0
  1229. package/es/components/dashboardMain/components/service-connection/index.d.ts +9 -0
  1230. package/es/components/dashboardMain/components/service-connection/index.js +44 -0
  1231. package/es/components/dashboardMain/components/service-connection/index.scss +9 -0
  1232. package/es/components/dashboardMain/components/step-setting/index.d.ts +3 -0
  1233. package/es/components/dashboardMain/components/step-setting/index.js +395 -0
  1234. package/es/components/dashboardMain/components/step-setting/index.scss +40 -0
  1235. package/es/components/dashboardMain/components/step-setting/step-card/index.d.ts +3 -0
  1236. package/es/components/dashboardMain/components/step-setting/step-card/index.js +113 -0
  1237. package/es/components/dashboardMain/components/step-setting/step-card/index.scss +72 -0
  1238. package/es/components/dashboardMain/components/step-setting/utils.d.ts +21 -0
  1239. package/es/components/dashboardMain/components/step-setting/utils.js +172 -0
  1240. package/es/components/dashboardMain/components/table-title-add-ons/index.d.ts +3 -0
  1241. package/es/components/dashboardMain/components/table-title-add-ons/index.js +832 -0
  1242. package/es/components/dashboardMain/components/table-title-add-ons/index.scss +44 -0
  1243. package/es/components/dashboardMain/components/tag-setting/add-tag-dialog.d.ts +4 -0
  1244. package/es/components/dashboardMain/components/tag-setting/add-tag-dialog.js +218 -0
  1245. package/es/components/dashboardMain/components/tag-setting/add-tag-group-dialog.d.ts +10 -0
  1246. package/es/components/dashboardMain/components/tag-setting/add-tag-group-dialog.js +150 -0
  1247. package/es/components/dashboardMain/components/tag-setting/color-group.d.ts +8 -0
  1248. package/es/components/dashboardMain/components/tag-setting/color-group.js +33 -0
  1249. package/es/components/dashboardMain/components/tag-setting/index.d.ts +35 -0
  1250. package/es/components/dashboardMain/components/tag-setting/index.js +632 -0
  1251. package/es/components/dashboardMain/components/tag-setting/index.scss +152 -0
  1252. package/es/components/dashboardMain/components/task-setting/create-pac-task/index.d.ts +24 -0
  1253. package/es/components/dashboardMain/components/task-setting/create-pac-task/index.js +340 -0
  1254. package/es/components/dashboardMain/components/task-setting/create-pac-task/index.scss +59 -0
  1255. package/es/components/dashboardMain/components/task-setting/create-task/index.d.ts +22 -0
  1256. package/es/components/dashboardMain/components/task-setting/create-task/index.js +331 -0
  1257. package/es/components/dashboardMain/components/task-setting/create-task/index.scss +59 -0
  1258. package/es/components/dashboardMain/components/task-setting/edit-task/index.d.ts +18 -0
  1259. package/es/components/dashboardMain/components/task-setting/edit-task/index.js +232 -0
  1260. package/es/components/dashboardMain/components/task-setting/edit-task/index.scss +48 -0
  1261. package/es/components/dashboardMain/components/task-setting/index.d.ts +3 -0
  1262. package/es/components/dashboardMain/components/task-setting/index.js +746 -0
  1263. package/es/components/dashboardMain/components/task-setting/index.scss +39 -0
  1264. package/es/components/dashboardMain/components/task-setting/task-card/index.d.ts +3 -0
  1265. package/es/components/dashboardMain/components/task-setting/task-card/index.js +207 -0
  1266. package/es/components/dashboardMain/components/task-setting/task-card/index.scss +93 -0
  1267. package/es/components/dashboardMain/components/task-setting/task-card-new/index.d.ts +2 -0
  1268. package/es/components/dashboardMain/components/task-setting/task-card-new/index.js +178 -0
  1269. package/es/components/dashboardMain/components/task-setting/task-card-new/index.scss +86 -0
  1270. package/es/components/dashboardMain/components/task-setting/task-card-new/style.module.scss +39 -0
  1271. package/es/components/dashboardMain/components/task-setting/utils.d.ts +25 -0
  1272. package/es/components/dashboardMain/components/task-setting/utils.js +262 -0
  1273. package/es/components/dashboardMain/components/template-setting/CreateTypeDialog.d.ts +11 -0
  1274. package/es/components/dashboardMain/components/template-setting/CreateTypeDialog.js +86 -0
  1275. package/es/components/dashboardMain/components/template-setting/CreateTypeDialog.module.scss +84 -0
  1276. package/es/components/dashboardMain/components/template-setting/index.d.ts +3 -0
  1277. package/es/components/dashboardMain/components/template-setting/index.js +564 -0
  1278. package/es/components/dashboardMain/components/template-setting/index.scss +41 -0
  1279. package/es/components/dashboardMain/components/template-setting/template-card/index.d.ts +3 -0
  1280. package/es/components/dashboardMain/components/template-setting/template-card/index.js +173 -0
  1281. package/es/components/dashboardMain/components/template-setting/template-card/index.scss +87 -0
  1282. package/es/components/dashboardMain/components/template-setting/utils.d.ts +25 -0
  1283. package/es/components/dashboardMain/components/template-setting/utils.js +228 -0
  1284. package/es/components/dashboardMain/components/variable-setting/index.d.ts +24 -0
  1285. package/es/components/dashboardMain/components/variable-setting/index.js +562 -0
  1286. package/es/components/dashboardMain/config.json +53 -0
  1287. package/es/components/dashboardMain/enterprise-price/SideBarContent.d.ts +3 -0
  1288. package/es/components/dashboardMain/enterprise-price/SideBarContent.js +171 -0
  1289. package/es/components/dashboardMain/enterprise-price/StatisticsCharts.d.ts +9 -0
  1290. package/es/components/dashboardMain/enterprise-price/StatisticsCharts.js +93 -0
  1291. package/es/components/dashboardMain/enterprise-price/StatisticsContent.d.ts +3 -0
  1292. package/es/components/dashboardMain/enterprise-price/StatisticsContent.js +90 -0
  1293. package/es/components/dashboardMain/enterprise-price/TableContent.d.ts +3 -0
  1294. package/es/components/dashboardMain/enterprise-price/TableContent.js +303 -0
  1295. package/es/components/dashboardMain/enterprise-price/index.d.ts +4 -0
  1296. package/es/components/dashboardMain/enterprise-price/index.js +99 -0
  1297. package/es/components/dashboardMain/enterprise-price/index.scss +139 -0
  1298. package/es/components/dashboardMain/enterprise-setting/index.d.ts +3 -0
  1299. package/es/components/dashboardMain/enterprise-setting/index.js +114 -0
  1300. package/es/components/dashboardMain/enterprise-setting/utils.d.ts +1 -0
  1301. package/es/components/dashboardMain/enterprise-setting/utils.js +335 -0
  1302. package/es/components/dashboardMain/index.d.ts +4 -0
  1303. package/es/components/dashboardMain/index.js +688 -0
  1304. package/es/components/dashboardMain/index.scss +73 -0
  1305. package/es/components/dashboardMain/pipelines/copyPipeline.d.ts +13 -0
  1306. package/es/components/dashboardMain/pipelines/copyPipeline.js +77 -0
  1307. package/es/components/dashboardMain/pipelines/copyPipeline.scss +45 -0
  1308. package/es/components/dashboardMain/pipelines/index.d.ts +9 -0
  1309. package/es/components/dashboardMain/pipelines/index.js +1061 -0
  1310. package/es/components/dashboardMain/pipelines/index.scss +24 -0
  1311. package/es/components/dashboardMain/pipelines/util.d.ts +11 -0
  1312. package/es/components/dashboardMain/pipelines/util.js +120 -0
  1313. package/es/components/dashboardMain/setting/role/access.js +0 -0
  1314. package/es/components/dashboardNav/index.d.ts +4 -0
  1315. package/es/components/dashboardNav/index.js +1150 -0
  1316. package/es/components/dashboardNav/index.scss +305 -0
  1317. package/es/components/dashboardNav/util.d.ts +1 -0
  1318. package/es/components/dashboardNav/util.js +21 -0
  1319. package/es/components/detailMain/build/index.d.ts +10 -0
  1320. package/es/components/detailMain/build/index.js +134 -0
  1321. package/es/components/detailMain/current/index.d.ts +8 -0
  1322. package/es/components/detailMain/current/index.js +129 -0
  1323. package/es/components/detailMain/current/index.scss +0 -0
  1324. package/es/components/detailMain/deployments/index.d.ts +8 -0
  1325. package/es/components/detailMain/deployments/index.js +805 -0
  1326. package/es/components/detailMain/deployments/index.scss +205 -0
  1327. package/es/components/detailMain/deployments/release/index.d.ts +7 -0
  1328. package/es/components/detailMain/deployments/release/index.js +57 -0
  1329. package/es/components/detailMain/deployments/release/index.scss +35 -0
  1330. package/es/components/detailMain/histories/columns.d.ts +5 -0
  1331. package/es/components/detailMain/histories/columns.js +39 -0
  1332. package/es/components/detailMain/histories/filter.d.ts +6 -0
  1333. package/es/components/detailMain/histories/filter.js +196 -0
  1334. package/es/components/detailMain/histories/index.d.ts +9 -0
  1335. package/es/components/detailMain/histories/index.js +414 -0
  1336. package/es/components/detailMain/histories/index.scss +73 -0
  1337. package/es/components/detailMain/index.d.ts +12 -0
  1338. package/es/components/detailMain/index.js +31 -0
  1339. package/es/components/detailMain/metrics/index.d.ts +2 -0
  1340. package/es/components/detailMain/metrics/index.js +50 -0
  1341. package/es/components/detailMain/recent/index.d.ts +10 -0
  1342. package/es/components/detailMain/recent/index.js +113 -0
  1343. package/es/components/detailMain/recent/index.scss +0 -0
  1344. package/es/components/detailNav/index.d.ts +8 -0
  1345. package/es/components/detailNav/index.js +352 -0
  1346. package/es/components/detailNav/index.scss +18 -0
  1347. package/es/components/detailNav/link.d.ts +6 -0
  1348. package/es/components/detailNav/link.js +24 -0
  1349. package/es/components/diffViewer/index.d.ts +12 -0
  1350. package/es/components/diffViewer/index.js +46 -0
  1351. package/es/components/diffViewer/index.module.scss +22 -0
  1352. package/es/components/go-template-wasm/go.mod +18 -0
  1353. package/es/components/go-template-wasm/go.sum +58 -0
  1354. package/es/components/go-template-wasm/index.html +185 -0
  1355. package/es/components/go-template-wasm/main.go +64 -0
  1356. package/es/components/go-template-wasm/readme.md +8 -0
  1357. package/es/components/homeNewVersionGuidance/index.d.ts +4 -0
  1358. package/es/components/homeNewVersionGuidance/index.js +69 -0
  1359. package/es/components/homeNewVersionGuidance/index.scss +43 -0
  1360. package/es/components/loading/index.d.ts +3 -0
  1361. package/es/components/loading/index.js +23 -0
  1362. package/es/components/log-dialog/index.js +37 -0
  1363. package/es/components/log-dialog/index.scss +18 -0
  1364. package/es/components/newbieTask/index.d.ts +30 -0
  1365. package/es/components/newbieTask/index.js +647 -0
  1366. package/es/components/newbieTask/index.scss +165 -0
  1367. package/es/components/newbieTask/util.d.ts +45 -0
  1368. package/es/components/newbieTask/util.js +365 -0
  1369. package/es/components/pipeline/new/buildPipeline.d.ts +2 -0
  1370. package/es/components/pipeline/new/buildPipeline.js +70 -0
  1371. package/es/components/pipeline/new/defaultSettings.d.ts +1 -0
  1372. package/es/components/pipeline/new/defaultSettings.js +48 -0
  1373. package/es/components/pipeline/new/index.d.ts +72 -0
  1374. package/es/components/pipeline/new/index.js +606 -0
  1375. package/es/components/pipeline/new/index.scss +472 -0
  1376. package/es/components/pipeline/new/pipelineTplView.d.ts +14 -0
  1377. package/es/components/pipeline/new/pipelineTplView.js +244 -0
  1378. package/es/components/pipeline/new/scroll-component/CategoryNav.d.ts +2 -0
  1379. package/es/components/pipeline/new/scroll-component/CategoryNav.js +83 -0
  1380. package/es/components/pipeline/new/scroll-component/Elements.d.ts +11 -0
  1381. package/es/components/pipeline/new/scroll-component/Elements.js +248 -0
  1382. package/es/components/pipeline/new/scroll-component/index.module.scss +93 -0
  1383. package/es/components/pipeline/new/tsconfig.json +7 -0
  1384. package/es/components/pluginLogTable/index.d.ts +7 -0
  1385. package/es/components/pluginLogTable/index.js +91 -0
  1386. package/es/components/pluginLogTable/index.scss +36 -0
  1387. package/es/components/quotaNotifyCard/index.d.ts +6 -0
  1388. package/es/components/quotaNotifyCard/index.js +147 -0
  1389. package/es/components/quotaNotifyCard/index.scss +35 -0
  1390. package/es/components/tbDetailLayout/index.d.ts +4 -0
  1391. package/es/components/tbDetailLayout/index.js +32 -0
  1392. package/es/components/tbDetailLayout/index.scss +25 -0
  1393. package/es/components/tbPageHeader/index.d.ts +10 -0
  1394. package/es/components/tbPageHeader/index.js +129 -0
  1395. package/es/components/tbPageHeader/index.scss +126 -0
  1396. package/es/components/variableGroup/deleteVariableGroupDialog.d.ts +8 -0
  1397. package/es/components/variableGroup/deleteVariableGroupDialog.js +90 -0
  1398. package/es/components/variableGroup/index.scss +30 -0
  1399. package/es/components/variableGroup/newVariableGroupDialog.d.ts +11 -0
  1400. package/es/components/variableGroup/newVariableGroupDialog.js +240 -0
  1401. package/es/config.d.ts +8 -0
  1402. package/es/config.js +11 -0
  1403. package/es/contexts/index.d.ts +1 -0
  1404. package/es/contexts/index.js +2 -0
  1405. package/es/contexts/pipeline.d.ts +20 -0
  1406. package/es/contexts/pipeline.js +478 -0
  1407. package/es/index.d.ts +13 -0
  1408. package/es/index.js +85 -0
  1409. package/es/locale/index.d.ts +23 -0
  1410. package/es/locale/index.js +81 -0
  1411. package/es/locale/locale.json +6212 -0
  1412. package/es/locale/strings/en-US.json +7900 -0
  1413. package/es/locale/strings/index.js +1 -0
  1414. package/es/locale/strings/zh-CN.json +7902 -0
  1415. package/es/locale/unprocessed-code.js.txt +71 -0
  1416. package/es/locale/unprocessed-code.txt +128 -0
  1417. package/es/pages/403/index.d.ts +3 -0
  1418. package/es/pages/403/index.js +33 -0
  1419. package/es/pages/404/index.d.ts +3 -0
  1420. package/es/pages/404/index.js +28 -0
  1421. package/es/pages/bind/index.d.ts +2 -0
  1422. package/es/pages/bind/index.js +13 -0
  1423. package/es/pages/callback/error.d.ts +6 -0
  1424. package/es/pages/callback/error.js +26 -0
  1425. package/es/pages/callback/index.scss +4 -0
  1426. package/es/pages/callback/success.d.ts +5 -0
  1427. package/es/pages/callback/success.js +45 -0
  1428. package/es/pages/dashboard/NewFeatureLead.d.ts +3 -0
  1429. package/es/pages/dashboard/NewFeatureLead.js +66 -0
  1430. package/es/pages/dashboard/Survey.d.ts +2 -0
  1431. package/es/pages/dashboard/Survey.js +66 -0
  1432. package/es/pages/dashboard/index.d.ts +5 -0
  1433. package/es/pages/dashboard/index.js +280 -0
  1434. package/es/pages/dashboard/index.scss +57 -0
  1435. package/es/pages/dashboard/lead.hack.scss +13 -0
  1436. package/es/pages/dashboard/types.d.ts +10 -0
  1437. package/es/pages/dashboard/types.js +1 -0
  1438. package/es/pages/dashboard/useAllowUpgradeState.d.ts +3 -0
  1439. package/es/pages/dashboard/useAllowUpgradeState.js +77 -0
  1440. package/es/pages/dashboard/useAnnouncement.d.ts +2 -0
  1441. package/es/pages/dashboard/useAnnouncement.js +125 -0
  1442. package/es/pages/detail/appstack-wrap.d.ts +8 -0
  1443. package/es/pages/detail/appstack-wrap.js +79 -0
  1444. package/es/pages/detail/appstack.scss +4 -0
  1445. package/es/pages/detail/index.d.ts +4 -0
  1446. package/es/pages/detail/index.js +133 -0
  1447. package/es/pages/detail/index.scss +7 -0
  1448. package/es/pages/detailSwitch/index.d.ts +2 -0
  1449. package/es/pages/detailSwitch/index.js +6 -0
  1450. package/es/pages/error/index.d.ts +3 -0
  1451. package/es/pages/error/index.js +38 -0
  1452. package/es/pages/migration/index.d.ts +4 -0
  1453. package/es/pages/migration/index.js +276 -0
  1454. package/es/pages/migration/index.scss +15 -0
  1455. package/es/pages/new-detail/appstack-wrap.d.ts +7 -0
  1456. package/es/pages/new-detail/appstack-wrap.js +61 -0
  1457. package/es/pages/new-detail/index.d.ts +4 -0
  1458. package/es/pages/new-detail/index.js +100 -0
  1459. package/es/pages/new-detail/index.scss +112 -0
  1460. package/es/pages/new-detail/operationBar/GoBackAndFeedback.d.ts +2 -0
  1461. package/es/pages/new-detail/operationBar/GoBackAndFeedback.js +110 -0
  1462. package/es/pages/new-detail/operationBar/index.d.ts +8 -0
  1463. package/es/pages/new-detail/operationBar/index.js +382 -0
  1464. package/es/pages/new-detail/operationBar/index.scss +21 -0
  1465. package/es/pages/project/index.d.ts +5 -0
  1466. package/es/pages/project/index.js +471 -0
  1467. package/es/pages/project/index.scss +74 -0
  1468. package/es/pages/project/operations.d.ts +3 -0
  1469. package/es/pages/project/operations.js +347 -0
  1470. package/es/pages/tbNavigationInit/Invite/index.d.ts +3 -0
  1471. package/es/pages/tbNavigationInit/Invite/index.js +44 -0
  1472. package/es/pages/tbNavigationInit/Invite/index.scss +20 -0
  1473. package/es/pages/tbNavigationInit/contextSwitcher/contextMenu.d.ts +10 -0
  1474. package/es/pages/tbNavigationInit/contextSwitcher/contextMenu.js +105 -0
  1475. package/es/pages/tbNavigationInit/contextSwitcher/index.d.ts +6 -0
  1476. package/es/pages/tbNavigationInit/contextSwitcher/index.js +27 -0
  1477. package/es/pages/tbNavigationInit/contextSwitcher/index.scss +34 -0
  1478. package/es/pages/tbNavigationInit/create/index.d.ts +2 -0
  1479. package/es/pages/tbNavigationInit/create/index.js +34 -0
  1480. package/es/pages/tbNavigationInit/detail.d.ts +7 -0
  1481. package/es/pages/tbNavigationInit/detail.js +110 -0
  1482. package/es/pages/tbNavigationInit/help/index.d.ts +2 -0
  1483. package/es/pages/tbNavigationInit/help/index.js +26 -0
  1484. package/es/pages/tbNavigationInit/index.d.ts +1 -0
  1485. package/es/pages/tbNavigationInit/index.js +69 -0
  1486. package/es/pages/tbNavigationInit/operation/index.d.ts +2 -0
  1487. package/es/pages/tbNavigationInit/operation/index.js +98 -0
  1488. package/es/pages/tbNavigationInit/serviceMessager/index.d.ts +5 -0
  1489. package/es/pages/tbNavigationInit/serviceMessager/index.js +36 -0
  1490. package/es/pages/tbNavigationInit/star/index.d.ts +3 -0
  1491. package/es/pages/tbNavigationInit/star/index.js +56 -0
  1492. package/es/pages/tools/jenkins/import/cp2flow/index.d.ts +15 -0
  1493. package/es/pages/tools/jenkins/import/cp2flow/index.js +461 -0
  1494. package/es/pages/tools/jenkins/import/guide/index.d.ts +8 -0
  1495. package/es/pages/tools/jenkins/import/guide/index.js +51 -0
  1496. package/es/pages/tools/jenkins/import/index.d.ts +7 -0
  1497. package/es/pages/tools/jenkins/import/index.js +26 -0
  1498. package/es/pages/tools/jenkins/import/index.scss +50 -0
  1499. package/es/pages/tools/jenkins/import/main/index.d.ts +5 -0
  1500. package/es/pages/tools/jenkins/import/main/index.js +67 -0
  1501. package/es/pages/tools/jenkins/import/step-line/index.d.ts +5 -0
  1502. package/es/pages/tools/jenkins/import/step-line/index.js +29 -0
  1503. package/es/pages/tools/jenkins/import/xml2flow/index.d.ts +14 -0
  1504. package/es/pages/tools/jenkins/import/xml2flow/index.js +137 -0
  1505. package/es/pages/tour/dataSource.d.ts +105 -0
  1506. package/es/pages/tour/dataSource.js +605 -0
  1507. package/es/pages/tour/index.d.ts +2 -0
  1508. package/es/pages/tour/index.js +8 -0
  1509. package/es/resources_hack.d.ts +1 -0
  1510. package/es/resources_hack.js +1 -0
  1511. package/es/socket.d.ts +2 -0
  1512. package/es/socket.js +50 -0
  1513. package/es/style.js +14 -0
  1514. package/es/types/CustomPipelineTemplate.d.ts +27 -0
  1515. package/es/types/CustomPipelineTemplate.js +1 -0
  1516. package/es/types/Pipeline.d.ts +34 -0
  1517. package/es/types/Pipeline.js +1 -0
  1518. package/es/types/PipelineConfigVo.d.ts +28 -0
  1519. package/es/types/PipelineConfigVo.js +1 -0
  1520. package/es/types/PipelineRun.d.ts +179 -0
  1521. package/es/types/PipelineRun.js +1 -0
  1522. package/es/types/PipelineStageTemplate.d.ts +33 -0
  1523. package/es/types/PipelineStageTemplate.js +1 -0
  1524. package/es/types/PipelineVo.d.ts +26 -0
  1525. package/es/types/PipelineVo.js +1 -0
  1526. package/es/types/PresetPipelineTemplate.d.ts +30 -0
  1527. package/es/types/PresetPipelineTemplate.js +1 -0
  1528. package/es/types/flowStep.js +0 -0
  1529. package/es/types/index.d.ts +6 -0
  1530. package/es/types/job.d.ts +60 -0
  1531. package/es/types/job.js +1 -0
  1532. package/es/types/pac.d.ts +4 -0
  1533. package/es/types/pac.js +1 -0
  1534. package/es/types/sources.d.ts +15 -0
  1535. package/es/types/sources.js +16 -0
  1536. package/es/types/steps.d.ts +26 -0
  1537. package/es/types/steps.js +1 -0
  1538. package/es/utils/aliyunRegions.d.ts +4 -0
  1539. package/es/utils/aliyunRegions.js +176 -0
  1540. package/es/utils/api/index.d.ts +32 -0
  1541. package/es/utils/api/index.js +214 -0
  1542. package/es/utils/apimap/index.d.ts +20 -0
  1543. package/es/utils/apimap/index.js +342 -0
  1544. package/es/utils/apimap/maps/access.d.ts +6 -0
  1545. package/es/utils/apimap/maps/access.js +46 -0
  1546. package/es/utils/apimap/maps/ack.d.ts +6 -0
  1547. package/es/utils/apimap/maps/ack.js +6 -0
  1548. package/es/utils/apimap/maps/acr.d.ts +10 -0
  1549. package/es/utils/apimap/maps/acr.js +22 -0
  1550. package/es/utils/apimap/maps/aone_code.d.ts +6 -0
  1551. package/es/utils/apimap/maps/aone_code.js +32 -0
  1552. package/es/utils/apimap/maps/appstack.d.ts +8 -0
  1553. package/es/utils/apimap/maps/appstack.js +8 -0
  1554. package/es/utils/apimap/maps/atomgit.d.ts +6 -0
  1555. package/es/utils/apimap/maps/atomgit.js +18 -0
  1556. package/es/utils/apimap/maps/cd-pipeline.d.ts +23 -0
  1557. package/es/utils/apimap/maps/cd-pipeline.js +53 -0
  1558. package/es/utils/apimap/maps/codeup.d.ts +6 -0
  1559. package/es/utils/apimap/maps/codeup.js +26 -0
  1560. package/es/utils/apimap/maps/credentials.d.ts +6 -0
  1561. package/es/utils/apimap/maps/credentials.js +30 -0
  1562. package/es/utils/apimap/maps/emas.d.ts +12 -0
  1563. package/es/utils/apimap/maps/emas.js +15 -0
  1564. package/es/utils/apimap/maps/git-oauth2.d.ts +10 -0
  1565. package/es/utils/apimap/maps/git-oauth2.js +27 -0
  1566. package/es/utils/apimap/maps/index.d.ts +253 -0
  1567. package/es/utils/apimap/maps/index.js +54 -0
  1568. package/es/utils/apimap/maps/jenkins.d.ts +6 -0
  1569. package/es/utils/apimap/maps/jenkins.js +26 -0
  1570. package/es/utils/apimap/maps/machine-group.d.ts +17 -0
  1571. package/es/utils/apimap/maps/machine-group.js +133 -0
  1572. package/es/utils/apimap/maps/packages.d.ts +10 -0
  1573. package/es/utils/apimap/maps/packages.js +30 -0
  1574. package/es/utils/apimap/maps/pipeline.d.ts +42 -0
  1575. package/es/utils/apimap/maps/pipeline.js +382 -0
  1576. package/es/utils/apimap/maps/pipeline2.d.ts +17 -0
  1577. package/es/utils/apimap/maps/pipeline2.js +50 -0
  1578. package/es/utils/apimap/maps/quota.d.ts +7 -0
  1579. package/es/utils/apimap/maps/quota.js +31 -0
  1580. package/es/utils/apimap/maps/region.d.ts +7 -0
  1581. package/es/utils/apimap/maps/region.js +15 -0
  1582. package/es/utils/apimap/maps/resource.d.ts +6 -0
  1583. package/es/utils/apimap/maps/resource.js +30 -0
  1584. package/es/utils/apimap/maps/service-connection.d.ts +6 -0
  1585. package/es/utils/apimap/maps/service-connection.js +50 -0
  1586. package/es/utils/apimap/maps/tag.d.ts +6 -0
  1587. package/es/utils/apimap/maps/tag.js +26 -0
  1588. package/es/utils/apimap/maps/tools.d.ts +10 -0
  1589. package/es/utils/apimap/maps/tools.js +19 -0
  1590. package/es/utils/apimap/maps/uiless.d.ts +12 -0
  1591. package/es/utils/apimap/maps/uiless.js +46 -0
  1592. package/es/utils/apimap/maps/user.d.ts +10 -0
  1593. package/es/utils/apimap/maps/user.js +38 -0
  1594. package/es/utils/apimap/maps/variable-group.d.ts +16 -0
  1595. package/es/utils/apimap/maps/variable-group.js +20 -0
  1596. package/es/utils/apimap/maps/webhook.d.ts +5 -0
  1597. package/es/utils/apimap/maps/webhook.js +5 -0
  1598. package/es/utils/appSDK.d.ts +1 -0
  1599. package/es/utils/appSDK.js +51 -0
  1600. package/es/utils/codeupRootPath.d.ts +1 -0
  1601. package/es/utils/codeupRootPath.js +11 -0
  1602. package/es/utils/contextPathUtil.d.ts +16 -0
  1603. package/es/utils/contextPathUtil.js +40 -0
  1604. package/es/utils/debug.d.ts +1 -0
  1605. package/es/utils/debug.js +4 -0
  1606. package/es/utils/download.d.ts +1 -0
  1607. package/es/utils/download.js +13 -0
  1608. package/es/utils/dplusUtil.d.ts +1 -0
  1609. package/es/utils/dplusUtil.js +5 -0
  1610. package/es/utils/embedMark.js +1 -0
  1611. package/es/utils/features/aliyun.d.ts +29 -0
  1612. package/es/utils/features/aliyun.js +70 -0
  1613. package/es/utils/features/index.d.ts +2 -0
  1614. package/es/utils/features/index.js +19 -0
  1615. package/es/utils/features/vpc.d.ts +417 -0
  1616. package/es/utils/features/vpc.js +27 -0
  1617. package/es/utils/helplink/index.d.ts +5 -0
  1618. package/es/utils/helplink/index.js +30 -0
  1619. package/es/utils/hooks/index.d.ts +7 -0
  1620. package/es/utils/hooks/index.js +7 -0
  1621. package/es/utils/hooks/useAsyncData.d.ts +14 -0
  1622. package/es/utils/hooks/useAsyncData.js +36 -0
  1623. package/es/utils/hooks/useBackupState.d.ts +2 -0
  1624. package/es/utils/hooks/useBackupState.js +31 -0
  1625. package/es/utils/hooks/useBoxSize.d.ts +8 -0
  1626. package/es/utils/hooks/useBoxSize.js +33 -0
  1627. package/es/utils/hooks/useDidMount.d.ts +2 -0
  1628. package/es/utils/hooks/useDidMount.js +17 -0
  1629. package/es/utils/hooks/useEvent.d.ts +3 -0
  1630. package/es/utils/hooks/useEvent.js +69 -0
  1631. package/es/utils/hooks/useEventListener.d.ts +2 -0
  1632. package/es/utils/hooks/useEventListener.js +25 -0
  1633. package/es/utils/hooks/usePrevious.d.ts +4 -0
  1634. package/es/utils/hooks/usePrevious.js +13 -0
  1635. package/es/utils/hooks/useResize.d.ts +2 -0
  1636. package/es/utils/hooks/useResize.js +21 -0
  1637. package/es/utils/hooks/useUnmount.d.ts +2 -0
  1638. package/es/utils/hooks/useUnmount.js +10 -0
  1639. package/es/utils/index.d.ts +77 -0
  1640. package/es/utils/index.js +544 -0
  1641. package/es/utils/initYunxiaoCommon.js +231 -0
  1642. package/es/utils/loadable/index.d.ts +2 -0
  1643. package/es/utils/loadable/index.js +13 -0
  1644. package/es/utils/locale.json +8 -0
  1645. package/es/utils/md.style.css +811 -0
  1646. package/es/utils/monitor/init.d.ts +5 -0
  1647. package/es/utils/monitor/init.js +38 -0
  1648. package/es/utils/permissionUtil.d.ts +5 -0
  1649. package/es/utils/permissionUtil.js +42 -0
  1650. package/es/utils/pinyinTools.d.ts +3 -0
  1651. package/es/utils/pinyinTools.js +13 -0
  1652. package/es/utils/pipelineTools.d.ts +19 -0
  1653. package/es/utils/pipelineTools.js +167 -0
  1654. package/es/utils/route-utils.d.ts +1 -0
  1655. package/es/utils/route-utils.js +5 -0
  1656. package/es/utils/schema-pac-vpc.d.ts +403 -0
  1657. package/es/utils/schema-pac-vpc.js +924 -0
  1658. package/es/utils/schema-pac.d.ts +3 -0
  1659. package/es/utils/schema-pac.js +1126 -0
  1660. package/es/utils/schema-shared.d.ts +3 -0
  1661. package/es/utils/schema-shared.js +169 -0
  1662. package/es/utils/track/index.d.ts +28 -0
  1663. package/es/utils/track/index.js +38 -0
  1664. package/es/utils/track/init.d.ts +10 -0
  1665. package/es/utils/track/init.js +94 -0
  1666. package/package.json +51 -0
@@ -0,0 +1,2612 @@
1
+ import _extends from "@babel/runtime/helpers/extends";
2
+ import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
3
+ import _createClass from "@babel/runtime/helpers/createClass";
4
+ import _inheritsLoose from "@babel/runtime/helpers/inheritsLoose";
5
+ import _regeneratorRuntime from "@babel/runtime/regenerator";
6
+ import React, { Component } from 'react';
7
+ import { Dialog, Button, Field, Message, Switch, Loading, Balloon, Tab, Tag } from '@teamix/ui';
8
+ import { intervalEnterTime, setLocalStorageCache, getLocalStorageCache, ctrlKey, isDevEnv } from "../../../../utils";
9
+ import { ButtonIcon, YunxiaoIcon, ButtonTooltip } from '@alife/devops-ui';
10
+ import exceed, { exceedFetchWithCache } from "../../../../utils/apimap";
11
+ import YAML from 'js-yaml';
12
+ import track from "../../../../utils/track";
13
+ import cls from 'classnames';
14
+ import CustomTab from "../custom-tab";
15
+ import utils, { getFeature } from "../../../../utils";
16
+ import PipelineFlowOrchestrator, { LIST_MODE, YAML_MODE } from "../pipeline-flow-orchestrator";
17
+ import validate from "./validate";
18
+ import { get, set, cloneDeep, isEqual } from 'lodash-es';
19
+ import EditableLabel from "../editable-label";
20
+ import { NEWBIE_TASK_STATUS } from "../../../newbieTask/util";
21
+ import PipelineSaveDiff from "../pipeline-save-diff";
22
+ import permissionUtil from "../../../../utils/permissionUtil";
23
+ import { navigateWithContexPath } from "../../../../utils/route-utils";
24
+ import { PIPELINE_DRAFT_CACHE, STEPS_CACHE_KEY, PLUGINS_CACHE_KEY, extractRel, attachSources, transformPipelineVo, saveOriginalFlow, getOriginalFlow, clearOriginalFlow, addBranchModeFlagForSources, isStringWithTemplateMark } from "./utils";
25
+ import intl from "../../../../locale";
26
+ import { Perf } from '@alife/yunxiao-common';
27
+ import InlineCode from "../../../InlineCode";
28
+ import "./index.scss";
29
+ import { helpLinkIfAvailable } from "../../../../utils/helplink";
30
+ import Loadable from "../../../../utils/loadable";
31
+ import { removeDoubleQuote } from "../pipeline-run-confirm";
32
+ var PipelineFlowInfo = Loadable({
33
+ loader: function loader() {
34
+ return import("../pipeline-flow-info");
35
+ }
36
+ });
37
+ var PipelineFlowVar = Loadable({
38
+ loader: function loader() {
39
+ return import("../pipeline-flow-var");
40
+ }
41
+ });
42
+ var PipelineFlowScheduler = Loadable({
43
+ loader: function loader() {
44
+ return import("../pipeline-flow-scheduler");
45
+ }
46
+ });
47
+ var RunParamConfigDialog = Loadable({
48
+ loader: function loader() {
49
+ return import("../run-param-config-dialog");
50
+ }
51
+ });
52
+ var PipelineFlowEdit = Loadable({
53
+ loader: function loader() {
54
+ return import("../../../PipelineFlowEdit");
55
+ }
56
+ });
57
+ var PipelineRunConfirm = Loadable({
58
+ loader: function loader() {
59
+ return import("../pipeline-run-confirm");
60
+ }
61
+ });
62
+
63
+ // dbg Field
64
+ window.Field = Field;
65
+ var Tooltip = Balloon.Tooltip;
66
+ var PREFIX = 'pipeline-flow-dialog';
67
+ var PERMISSION_PIPELINE_EDIT = 'tb.flow.pipeline.edit';
68
+ var pipelineRunCommitKey = 'FLOW_INST_RUNNING_COMMENT';
69
+ var saveParamsValidate = function saveParamsValidate(configValue) {
70
+ var rules = [{
71
+ path: 'pipelineVo.name',
72
+ msg: intl.get({
73
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.BasicInformationThePipelineName',
74
+ defaultMessage: '基本信息-流水线名称不能为空'
75
+ })
76
+ }];
77
+ return validate(configValue, rules);
78
+ };
79
+ var tooltip = function tooltip(trigger, text, key) {
80
+ if (key === void 0) {
81
+ key = '';
82
+ }
83
+ return /*#__PURE__*/React.createElement(Tooltip, {
84
+ trigger: trigger,
85
+ align: "t",
86
+ key: key
87
+ }, text || trigger);
88
+ };
89
+ var alreadyRunPipeline = function alreadyRunPipeline() {
90
+ return window.AK_GLOBAL.alreadyRunPipeline;
91
+ };
92
+ export var goTemplatePreviewSwitchContainerId = 'go-template-preview-switch';
93
+ var getDefaultState = function getDefaultState(props) {
94
+ return {
95
+ /** 各种操作就是在修改 pipeline 这个 stage */
96
+ pipeline: props.pipeline || {},
97
+ sourcePipeline: cloneDeep(props.pipeline || {}),
98
+ invalidateTasks: [],
99
+ loading: false,
100
+ requesting: false,
101
+ /** 只用在 pipelineBtn 判断上... */
102
+ blankFlow: true,
103
+ branchRepoConfigs: [],
104
+ latestInstance: {},
105
+ runningGlobalParams: [],
106
+ configDailogVisible: false,
107
+ pipelineRunConfirmVisible: false,
108
+ pipelineNameChangeLoading: false,
109
+ runPipelineButtonLoading: false,
110
+ /** header 的4个tab */
111
+ navValue: 'flow',
112
+ originalSource: '[]',
113
+ configurationVisible: true,
114
+ saveAndExecBtnLoading: false,
115
+ saveBtnLoading: false,
116
+ // 以下是 PAC 相关
117
+ flowEditMode: 'code',
118
+ checkYamlBackendErrorList: [],
119
+ /** 前端代码编辑器校验出的问题 */
120
+ feValidateMarkers: [],
121
+ goTemplateViewMode: 'edit',
122
+ // pacFlowValid: true,
123
+
124
+ /** debug v1 yaml */
125
+ mode: LIST_MODE,
126
+ // 保存预览框
127
+ saveVisible: false,
128
+ isSaveAndRun: true
129
+ };
130
+ };
131
+ var PipelineFlowDialog = /*#__PURE__*/function (_Component) {
132
+ function PipelineFlowDialog(props) {
133
+ var _this;
134
+ _this = _Component.call(this, props) || this;
135
+ _this.field = void 0;
136
+ _this.runParamConfigField = void 0;
137
+ _this.fakeSaveLoading = function () {
138
+ _this.setState({
139
+ saveBtnLoading: true
140
+ });
141
+ var timer = setTimeout(function () {
142
+ _this.setState({
143
+ saveBtnLoading: false
144
+ });
145
+ clearTimeout(timer);
146
+ }, 400);
147
+ };
148
+ _this.bindShortcuts = function (e) {
149
+ // Cmd/Ctrl + S 保存
150
+ if (e[ctrlKey] && e.code === 'KeyS') {
151
+ e.preventDefault();
152
+ if (_this.isPipelineAsCode && _this.getIsUnedited()) {
153
+ _this.fakeSaveLoading();
154
+ return;
155
+ }
156
+ _this.onClickPipelineSaveBtn();
157
+ track({
158
+ action: 'PipelineSave-shortcuts',
159
+ type: _this.isPipelineAsCode ? 'pac' : 'old' // 区分pac或老编辑页
160
+ });
161
+ }
162
+ };
163
+ _this.changedValidate = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
164
+ var _yield$_this$pipeline, pipelineNotErr, pipelineErrs;
165
+ return _regeneratorRuntime.wrap(function _callee$(_context) {
166
+ while (1) switch (_context.prev = _context.next) {
167
+ case 0:
168
+ isDevEnv && console.count('changedValidate');
169
+ _context.next = 3;
170
+ return _this.pipelineValidate();
171
+ case 3:
172
+ _yield$_this$pipeline = _context.sent;
173
+ pipelineNotErr = _yield$_this$pipeline.pipelineNotErr;
174
+ pipelineErrs = _yield$_this$pipeline.pipelineErrs;
175
+ if (pipelineNotErr) {
176
+ _this.setState({
177
+ invalidateTasks: []
178
+ });
179
+ } else {
180
+ _this.onErrors(pipelineErrs);
181
+ }
182
+ case 7:
183
+ case "end":
184
+ return _context.stop();
185
+ }
186
+ }, _callee);
187
+ }));
188
+ _this.checkPermission = function () {
189
+ permissionUtil.checkPermissionList([PERMISSION_PIPELINE_EDIT], _this.props.pipelineId, 'pipeline', window.AK_GLOBAL.currentUser.workid).then(function (data) {
190
+ if (data === void 0) {
191
+ data = {};
192
+ }
193
+ if (data[PERMISSION_PIPELINE_EDIT] === false) {
194
+ navigateWithContexPath('/403');
195
+ }
196
+ });
197
+ };
198
+ _this.onClose = function () {
199
+ var _ref2 = _this.props || {},
200
+ onClose = _ref2.onClose,
201
+ trackPage = _ref2.trackPage,
202
+ type = _ref2.type,
203
+ pipelineId = _ref2.pipelineId,
204
+ location = _ref2.location;
205
+ var state = (location === null || location === void 0 ? void 0 : location.state) || {};
206
+ if (!_this.getIsUnedited() && type !== 'template') {
207
+ Dialog.confirm({
208
+ messageProps: {
209
+ type: 'notice'
210
+ },
211
+ title: intl.get({
212
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Exit',
213
+ defaultMessage: '退出'
214
+ }),
215
+ content: intl.get({
216
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.WhetherToSaveThisModification',
217
+ defaultMessage: '退出编辑前,是否对本次修改进行保存'
218
+ }),
219
+ okProps: {
220
+ children: intl.get({
221
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Save',
222
+ defaultMessage: '保存'
223
+ })
224
+ },
225
+ cancelProps: {
226
+ children: intl.get({
227
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.DoNotSave',
228
+ defaultMessage: '不保存'
229
+ })
230
+ },
231
+ onOk: function onOk() {
232
+ if (_this.isPipelineAsCode) {
233
+ // this.submitPipeline2();
234
+ _this.setState({
235
+ saveVisible: true,
236
+ isSaveAndRun: false
237
+ });
238
+ return;
239
+ }
240
+ _this.submitPipeline(function () {
241
+ clearOriginalFlow(pipelineId);
242
+ onClose(state === null || state === void 0 ? void 0 : state["new"]);
243
+ track({
244
+ action: 'save pipeline',
245
+ page: trackPage || 'edit page',
246
+ daysinceenterflow: intervalEnterTime()
247
+ });
248
+ });
249
+ },
250
+ onCancel: function onCancel() {
251
+ _this.cleanDrfatCache();
252
+ clearOriginalFlow(pipelineId);
253
+ onClose(state === null || state === void 0 ? void 0 : state["new"]);
254
+ _this.setState({
255
+ loading: false
256
+ });
257
+ }
258
+ });
259
+ return;
260
+ }
261
+ if (_this.state.changed && type === 'template') {
262
+ Dialog.confirm({
263
+ messageProps: {
264
+ type: 'notice'
265
+ },
266
+ title: intl.get({
267
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Exit',
268
+ defaultMessage: '退出'
269
+ }),
270
+ content: intl.get({
271
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YouHaveNotSavedThe',
272
+ defaultMessage: '你还没有保存模板,退出后将会清除所有数据'
273
+ }),
274
+ okProps: {
275
+ children: intl.get({
276
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Save',
277
+ defaultMessage: '保存'
278
+ })
279
+ },
280
+ cancelProps: {
281
+ children: intl.get({
282
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.DoNotSave',
283
+ defaultMessage: '不保存'
284
+ })
285
+ },
286
+ onOk: function onOk() {
287
+ _this.submitCustomPipelineTemplate().then(function () {
288
+ onClose();
289
+ _this.setState({
290
+ loading: false
291
+ });
292
+ });
293
+ },
294
+ onCancel: function onCancel() {
295
+ onClose();
296
+ _this.setState({
297
+ loading: false
298
+ });
299
+ }
300
+ });
301
+ return;
302
+ }
303
+ onClose(state === null || state === void 0 ? void 0 : state["new"]);
304
+ clearOriginalFlow(pipelineId);
305
+ _this.setState({
306
+ loading: false
307
+ });
308
+ };
309
+ _this.onErrors = function (errors) {
310
+ var invalidateTasks = Object.keys(errors).map(function (k) {
311
+ return k.split('__')[0];
312
+ }).filter(function (k) {
313
+ return k;
314
+ });
315
+ _this.setState({
316
+ invalidateTasks: invalidateTasks
317
+ });
318
+ };
319
+ _this.onSourcesChange = function (sources, updateOriginalScource) {
320
+ if (updateOriginalScource === void 0) {
321
+ updateOriginalScource = true;
322
+ }
323
+ var pipeline = _this.state.pipeline;
324
+ var _pipeline$pipelineVo = pipeline.pipelineVo,
325
+ pipelineVo = _pipeline$pipelineVo === void 0 ? {} : _pipeline$pipelineVo;
326
+ var _pipelineVo$pipelineC = pipelineVo.pipelineConfigVo,
327
+ pipelineConfigVo = _pipelineVo$pipelineC === void 0 ? {} : _pipelineVo$pipelineC;
328
+ pipelineConfigVo.sources = sources;
329
+ _this.setState(_extends({
330
+ pipeline: pipeline
331
+ }, updateOriginalScource ? {
332
+ originalScource: sources
333
+ } : {}));
334
+ var timer = setTimeout(function () {
335
+ _this.changedValidate();
336
+ clearTimeout(timer);
337
+ }, 200);
338
+ };
339
+ _this.onSettingsChange = function (settings) {
340
+ var pipeline = _this.state.pipeline;
341
+ var _pipeline$pipelineVo2 = pipeline.pipelineVo,
342
+ pipelineVo = _pipeline$pipelineVo2 === void 0 ? {} : _pipeline$pipelineVo2;
343
+ var _pipelineVo$pipelineC2 = pipelineVo.pipelineConfigVo,
344
+ pipelineConfigVo = _pipelineVo$pipelineC2 === void 0 ? {} : _pipelineVo$pipelineC2;
345
+ pipelineConfigVo.settings = settings;
346
+ _this.setState(pipeline);
347
+ };
348
+ _this.onSchedulersChange = function (schedulers) {
349
+ console.log('schedulers', schedulers);
350
+ var pipeline = _this.state.pipeline;
351
+ var _pipeline$pipelineVo3 = pipeline.pipelineVo,
352
+ pipelineVo = _pipeline$pipelineVo3 === void 0 ? {} : _pipeline$pipelineVo3;
353
+ var _pipelineVo$pipelineC3 = pipelineVo.pipelineConfigVo,
354
+ pipelineConfigVo = _pipelineVo$pipelineC3 === void 0 ? {} : _pipelineVo$pipelineC3;
355
+ pipelineConfigVo.triggerVoList = schedulers;
356
+ _this.setState(pipeline);
357
+ };
358
+ _this.onNameChange = function (name, cb) {
359
+ var pipeline = _this.state.pipeline;
360
+ var _pipeline$pipelineVo4 = pipeline.pipelineVo,
361
+ pipelineVo = _pipeline$pipelineVo4 === void 0 ? {} : _pipeline$pipelineVo4;
362
+ pipelineVo.name = name;
363
+ _this.setState({
364
+ pipeline: pipeline
365
+ });
366
+ if (_this.props.type !== 'template') {
367
+ _this.isPipelineAsCode ? _this.submitPipeline2(cb) : _this.submitPipeline(cb, false);
368
+ }
369
+ };
370
+ /** v1 流水线 */
371
+ _this.onFlowChange = function (nextFlow, pipelines, cache) {
372
+ if (cache === void 0) {
373
+ cache = true;
374
+ }
375
+ _this.setState({
376
+ blankFlow: !(pipelines && pipelines.length > 0)
377
+ });
378
+ var pipeline = _this.state.pipeline;
379
+ var pipelineConfigVo = _extends({}, pipeline.pipelineVo.pipelineConfigVo, {
380
+ flow: nextFlow
381
+ });
382
+ var pipelineVo = _extends({}, pipeline.pipelineVo, {
383
+ pipelineConfigVo: pipelineConfigVo
384
+ });
385
+ pipeline.pipelineVo.pipelineConfigVo.flow = nextFlow;
386
+ var nextPipeline = _extends({}, pipeline, {
387
+ pipelineVo: pipelineVo
388
+ });
389
+ // const nextPipeline = produce(pipeline, pipelineDraft => {
390
+ // pipelineDraft.pipelineVo.pipelineConfigVo.flow = nextFlow;
391
+ // });
392
+ _this.setState({
393
+ changed: true,
394
+ pipeline: nextPipeline
395
+ });
396
+ cache && _this.saveDrfatCache(nextPipeline);
397
+ };
398
+ _this.onPacFlowChange = function (nextFlow) {
399
+ if (isStringWithTemplateMark(nextFlow) !== isStringWithTemplateMark(_this.state.pipeline.pipelineVo.pipelineConfigVo.flow)) {
400
+ var isTemplateMode = isStringWithTemplateMark(nextFlow);
401
+ Dialog.confirm({
402
+ title: isTemplateMode ? /*#__PURE__*/React.createElement(React.Fragment, null, intl.get({
403
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SwitchedToTemplateMode',
404
+ defaultMessage: '已切换至 Template 模式'
405
+ }), /*#__PURE__*/React.createElement(Tag, {
406
+ type: "primary"
407
+ }, "BETA")) : intl.get({
408
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.OutOfTemplateMode',
409
+ defaultMessage: '已退出 Template 模式'
410
+ }),
411
+ content: isTemplateMode ? /*#__PURE__*/React.createElement("div", {
412
+ style: {
413
+ width: 440
414
+ }
415
+ }, intl.get({
416
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ThePipelineHasBeenSwitched',
417
+ defaultMessage: '流水线已切换至 template 模式,支持使用 template 模板语言动态渲染 YAML,\n 遵循原生 go template 语法,支持预览校验;满足多 Job 灵活动态配置场景,帮助降低 YAML 重复代码。'
418
+ }), helpLinkIfAvailable('help_pac_template', intl.get({
419
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.LearnMore',
420
+ defaultMessage: '了解更多'
421
+ }))) : '',
422
+ footerActions: ['ok'],
423
+ okProps: {
424
+ children: intl.get({
425
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.GotIt',
426
+ defaultMessage: '知道了'
427
+ })
428
+ }
429
+ });
430
+ _this.setState({
431
+ goTemplateViewMode: 'edit'
432
+ });
433
+ }
434
+ // this.setState({
435
+ // pacFlowValid: validYaml,
436
+ // });
437
+ var pipeline = _this.state.pipeline;
438
+ var pipelineConfigVo = _extends({}, pipeline.pipelineVo.pipelineConfigVo, {
439
+ flow: nextFlow
440
+ });
441
+ var pipelineVo = _extends({}, pipeline.pipelineVo, {
442
+ pipelineConfigVo: pipelineConfigVo
443
+ });
444
+ pipeline.pipelineVo.pipelineConfigVo.flow = nextFlow;
445
+ var nextPipeline = _extends({}, pipeline, {
446
+ pipelineVo: pipelineVo
447
+ });
448
+ _this.setState({
449
+ changed: true,
450
+ pipeline: nextPipeline
451
+ });
452
+ };
453
+ _this.onValidate = function () {
454
+ return new Promise(function (resolve, reject) {
455
+ _this.field.validate(function (errors) {
456
+ if (errors) {
457
+ _this.onErrors(errors);
458
+ Message.warning({
459
+ title: intl.get({
460
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TheObjectkeyserrorsPipelineHasUnfinished',
461
+ defaultMessage: '流水线{ObjectKeysErrors}个有未完成的配置,请检查'
462
+ }, {
463
+ ObjectKeysErrors: Object.keys(errors).length
464
+ })
465
+ });
466
+ reject(errors);
467
+ return;
468
+ }
469
+ resolve();
470
+ });
471
+ });
472
+ };
473
+ _this.onBaseInfoChange = function (val) {
474
+ var pipeline = _this.state.pipeline;
475
+ var _pipeline$pipelineVo5 = pipeline.pipelineVo,
476
+ pipelineVo = _pipeline$pipelineVo5 === void 0 ? {} : _pipeline$pipelineVo5;
477
+ pipeline.pipelineVo = _extends({}, pipelineVo, val);
478
+ _this.setState({
479
+ pipeline: pipeline
480
+ });
481
+ };
482
+ _this.getDrfatCache = function () {
483
+ var pipelineId = _this.props.pipelineId;
484
+ var preUnSavedPipeline = window.localStorage.getItem(PIPELINE_DRAFT_CACHE + "-" + pipelineId);
485
+ if (!preUnSavedPipeline) {
486
+ return null;
487
+ }
488
+ return JSON.parse(preUnSavedPipeline);
489
+ };
490
+ _this.subscribe = function (fieldName, subscriber, callback) {
491
+ var subscribers = _this.fieldSubscribeies[fieldName] || {};
492
+ subscribers[subscriber] = callback;
493
+ _this.fieldSubscribeies[fieldName] = subscribers;
494
+ };
495
+ _this.saveDrfatCache = function (pipeline) {
496
+ if (_this.timeout) {
497
+ clearTimeout(_this.timeout);
498
+ }
499
+ _this.timeout = setTimeout(function () {
500
+ var pipelineId = _this.props.pipelineId;
501
+ setLocalStorageCache(PIPELINE_DRAFT_CACHE + "-" + pipelineId, JSON.stringify(pipeline), false);
502
+ }, 1000);
503
+ };
504
+ _this.doValidate = function () {
505
+ _this.field.validate(function (errors) {
506
+ if (errors) {
507
+ _this.onErrors(errors);
508
+ } else {
509
+ _this.setState({
510
+ invalidateTasks: []
511
+ });
512
+ }
513
+ });
514
+ };
515
+ _this.cleanDrfatCache = function () {
516
+ var pipelineId = _this.props.pipelineId;
517
+ window.localStorage.removeItem(PIPELINE_DRAFT_CACHE + "-" + pipelineId);
518
+ };
519
+ _this.initCreateCustomPipelineTemplate = function () {
520
+ var pipeline = {};
521
+ var pipelineVo = {};
522
+ pipeline.pipelineVo = pipelineVo;
523
+ pipelineVo.status = 'ONLINE';
524
+ pipelineVo.name = intl.get({
525
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.NewCustomPipelineTemplate',
526
+ defaultMessage: '新自定义流水线模板'
527
+ });
528
+ pipelineVo.siteFrom = 'teambition';
529
+ pipelineVo.type = _this.props.pipelineVo.type;
530
+ pipelineVo.pipelineConfigVo = _this.props.pipelineVo.pipelineConfigVo;
531
+ _this.setState({
532
+ requesting: false,
533
+ pipeline: pipeline,
534
+ sourcePipeline: cloneDeep(pipeline)
535
+ });
536
+ };
537
+ /** didMount 调用一次 */
538
+ _this.fetchCustomPipelineTemplate = function () {
539
+ var pipelineTemplateId = _this.props.pipelineTemplateId;
540
+ exceed.fetch({
541
+ api: 'PipelineTemplate.custom.get',
542
+ data: {
543
+ id: pipelineTemplateId
544
+ }
545
+ }).then(function (res) {
546
+ var pipeline = {
547
+ pipelineVo: _extends({
548
+ name: res.object.pipelineTemplate.templateName,
549
+ pipelineConfigVo: res.object.pipelineConfig
550
+ }, res.object.pipelineTemplate.pipelineAsCodeVersion ? {
551
+ type: 'PIPELINEASCODE'
552
+ } : {})
553
+ };
554
+ _this.setState({
555
+ pipeline: pipeline,
556
+ sourcePipeline: cloneDeep(pipeline)
557
+ }, function () {
558
+ _this.setState({
559
+ requesting: false
560
+ }, function () {
561
+ setTimeout(function () {
562
+ _this.doValidate();
563
+ }, 1000);
564
+ });
565
+ });
566
+ });
567
+ };
568
+ _this.fetchSteps = function () {
569
+ var config = {
570
+ api: 'Pipeline.step.list',
571
+ data: {
572
+ displayScope: window.__isEmbedInAppstack ? 'appstack' : 'flow',
573
+ capabilities: 'ALL',
574
+ buildEnvironment: 'vm,container'
575
+ }
576
+ };
577
+ exceedFetchWithCache(config).then(function (res) {
578
+ if (res.successful && res.object) {
579
+ setLocalStorageCache(STEPS_CACHE_KEY, JSON.stringify(res.object), false);
580
+ }
581
+ });
582
+ };
583
+ _this.getLatestPiepline = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
584
+ var pipelineId, _yield$exceed$fetch, successful, object;
585
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
586
+ while (1) switch (_context2.prev = _context2.next) {
587
+ case 0:
588
+ pipelineId = _this.props.pipelineId;
589
+ _context2.next = 3;
590
+ return exceed.fetch({
591
+ api: 'Pipeline.get.instance.latest',
592
+ params: {
593
+ pipelineId: pipelineId
594
+ }
595
+ });
596
+ case 3:
597
+ _yield$exceed$fetch = _context2.sent;
598
+ successful = _yield$exceed$fetch.successful;
599
+ object = _yield$exceed$fetch.object;
600
+ return _context2.abrupt("return", successful ? object : null);
601
+ case 7:
602
+ case "end":
603
+ return _context2.stop();
604
+ }
605
+ }, _callee2);
606
+ }));
607
+ _this.setBranchRepoConfigs = function (branchRepoConfigs) {
608
+ _this.setState({
609
+ branchRepoConfigs: branchRepoConfigs
610
+ });
611
+ };
612
+ // 查看是否编辑过
613
+ _this.getIsUnedited = function () {
614
+ var _this$state = _this.state,
615
+ pipeline = _this$state.pipeline,
616
+ sourcePipeline = _this$state.sourcePipeline;
617
+ var pipelineVo = pipeline.pipelineVo;
618
+ var sourcePipelineVo = sourcePipeline.pipelineVo;
619
+ return isEqual(pipelineVo, sourcePipelineVo);
620
+ };
621
+ _this.fetchPlugins = function () {
622
+ exceed.fetch({
623
+ api: 'Pipeline.plugin.list'
624
+ }).then(function (res) {
625
+ console.log('preload plugins');
626
+ if (res.successful && res.object) {
627
+ setLocalStorageCache(PLUGINS_CACHE_KEY, JSON.stringify(res.object), false);
628
+ }
629
+ });
630
+ };
631
+ _this.fetchPipeline = /*#__PURE__*/function () {
632
+ var _ref4 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee4(notLoading) {
633
+ var _pipelineRoot$pipelin;
634
+ var pipelineId, getPipeline, pipelineRoot, _ref6, _ref6$pipelineConfigV, pipelineConfigVo, _flow$pipeline, flow;
635
+ return _regeneratorRuntime.wrap(function _callee4$(_context4) {
636
+ while (1) switch (_context4.prev = _context4.next) {
637
+ case 0:
638
+ pipelineId = _this.props.pipelineId;
639
+ if (!notLoading) {
640
+ _this.setState({
641
+ requesting: true
642
+ });
643
+ }
644
+ getPipeline = _this.props.getPipeline ? function () {
645
+ return cloneDeep(_this.props.getPipeline());
646
+ } : /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee3() {
647
+ var res;
648
+ return _regeneratorRuntime.wrap(function _callee3$(_context3) {
649
+ while (1) switch (_context3.prev = _context3.next) {
650
+ case 0:
651
+ _context3.next = 2;
652
+ return exceed.fetch({
653
+ api: 'Pipeline.get',
654
+ params: {
655
+ id: pipelineId
656
+ }
657
+ });
658
+ case 2:
659
+ res = _context3.sent;
660
+ return _context3.abrupt("return", res.object);
661
+ case 4:
662
+ case "end":
663
+ return _context3.stop();
664
+ }
665
+ }, _callee3);
666
+ }));
667
+ _context4.next = 5;
668
+ return getPipeline();
669
+ case 5:
670
+ _context4.t0 = _context4.sent;
671
+ if (_context4.t0) {
672
+ _context4.next = 8;
673
+ break;
674
+ }
675
+ _context4.t0 = {};
676
+ case 8:
677
+ pipelineRoot = _context4.t0;
678
+ pipelineRoot.pipelineVo = _extends({}, pipelineRoot.pipelineVo, transformPipelineVo(pipelineRoot.pipelineVo));
679
+ _ref6 = pipelineRoot.pipelineVo || {}, _ref6$pipelineConfigV = _ref6.pipelineConfigVo, pipelineConfigVo = _ref6$pipelineConfigV === void 0 ? {} : _ref6$pipelineConfigV; // appstack相关的部分历史流水线可能没有webhook
680
+ if (!pipelineConfigVo.webhook) {
681
+ pipelineConfigVo.webhook = utils.uuid(20);
682
+ }
683
+ saveOriginalFlow(pipelineConfigVo.flow, pipelineId);
684
+ if (((_pipelineRoot$pipelin = pipelineRoot.pipelineVo) === null || _pipelineRoot$pipelin === void 0 ? void 0 : _pipelineRoot$pipelin.type) !== 'PIPELINEASCODE') {
685
+ flow = YAML.load(pipelineConfigVo.flow);
686
+ if ((flow === null || flow === void 0 ? void 0 : (_flow$pipeline = flow.pipeline) === null || _flow$pipeline === void 0 ? void 0 : _flow$pipeline.length) > 0) {
687
+ _this.setState({
688
+ blankFlow: false
689
+ });
690
+ }
691
+ }
692
+ _this.setState({
693
+ pipeline: pipelineRoot,
694
+ sourcePipeline: cloneDeep(pipelineRoot),
695
+ originalSource: pipelineConfigVo.sources
696
+ }, function () {
697
+ _this.setState({
698
+ requesting: false
699
+ }, function () {
700
+ setTimeout(function () {
701
+ _this.doValidate();
702
+ }, 1000);
703
+ });
704
+ });
705
+ return _context4.abrupt("return", pipelineRoot);
706
+ case 16:
707
+ case "end":
708
+ return _context4.stop();
709
+ }
710
+ }, _callee4);
711
+ }));
712
+ return function (_x) {
713
+ return _ref4.apply(this, arguments);
714
+ };
715
+ }();
716
+ _this.pipelineSaveSucceed = function (_ref7) {
717
+ var pipelineNotErr = _ref7.pipelineNotErr,
718
+ flow = _ref7.flow,
719
+ pipelineErrLen = _ref7.pipelineErrLen,
720
+ sourcesNotErr = _ref7.sourcesNotErr;
721
+ if (!sourcesNotErr) {
722
+ Message.warning({
723
+ title: intl.get({
724
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TheCodeSourceHasNot',
725
+ defaultMessage: '流水线代码源保存失败,代码源未配置完成,其他配置项保存成功'
726
+ }),
727
+ duration: 5000
728
+ });
729
+ return;
730
+ }
731
+ if (pipelineNotErr) {
732
+ var _ref8 = _this.props || {},
733
+ pipelineId = _ref8.pipelineId;
734
+ Message.success({
735
+ title: intl.get({
736
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SavedSuccessfully',
737
+ defaultMessage: '保存成功'
738
+ })
739
+ });
740
+ clearOriginalFlow(pipelineId);
741
+ saveOriginalFlow(flow, pipelineId);
742
+ return;
743
+ }
744
+ Message.warning({
745
+ title: intl.get({
746
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TheProcessHasPipelineerrlenUnfinished',
747
+ defaultMessage: '流水线编排流程保存失败,流程中有{pipelineErrLen}个未完成的配置,其他配置项保存成功'
748
+ }, {
749
+ pipelineErrLen: pipelineErrLen
750
+ }),
751
+ duration: 5000
752
+ });
753
+ _this.openFirstErrorMenu();
754
+ };
755
+ _this.sourcesValidate = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee5() {
756
+ var _ref10, _ref10$sourceInvalida, sourceInvalidate;
757
+ return _regeneratorRuntime.wrap(function _callee5$(_context5) {
758
+ while (1) switch (_context5.prev = _context5.next) {
759
+ case 0:
760
+ _ref10 = _this.flowRef.onSourcesValidate() || {}, _ref10$sourceInvalida = _ref10.sourceInvalidate, sourceInvalidate = _ref10$sourceInvalida === void 0 ? {} : _ref10$sourceInvalida;
761
+ return _context5.abrupt("return", !Object.values(sourceInvalidate).filter(Boolean).length);
762
+ case 2:
763
+ case "end":
764
+ return _context5.stop();
765
+ }
766
+ }, _callee5);
767
+ }));
768
+ _this.pipelineValidate = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee6() {
769
+ var _yield$_this$field$va, errors, len;
770
+ return _regeneratorRuntime.wrap(function _callee6$(_context6) {
771
+ while (1) switch (_context6.prev = _context6.next) {
772
+ case 0:
773
+ _context6.next = 2;
774
+ return _this.field.validatePromise();
775
+ case 2:
776
+ _yield$_this$field$va = _context6.sent;
777
+ errors = _yield$_this$field$va.errors;
778
+ len = Object.keys(errors || {}).length;
779
+ return _context6.abrupt("return", {
780
+ pipelineNotErr: !len,
781
+ pipelineErrLen: len,
782
+ pipelineErrs: errors
783
+ });
784
+ case 6:
785
+ case "end":
786
+ return _context6.stop();
787
+ }
788
+ }, _callee6);
789
+ }));
790
+ _this.submitPipeline2 = /*#__PURE__*/function () {
791
+ var _ref12 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee7(callback, log) {
792
+ var p, pipeline, pipelineConfigVo, settings, data, onSavePipeline, _yield$onSavePipeline, successful, errorMsg, _window$__openGoTempl2, _window2;
793
+ return _regeneratorRuntime.wrap(function _callee7$(_context7) {
794
+ while (1) switch (_context7.prev = _context7.next) {
795
+ case 0:
796
+ if (log === void 0) {
797
+ log = '';
798
+ }
799
+ if (!(!_this.isPacEnableGoTemplate && _this.state.feValidateMarkers.length)) {
800
+ _context7.next = 4;
801
+ break;
802
+ }
803
+ Message.warning(intl.get({
804
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.PipelineConfigurationErrorPleaseModify',
805
+ defaultMessage: '流水线配置错误,请修改后保存'
806
+ }));
807
+ return _context7.abrupt("return");
808
+ case 4:
809
+ p = _this.state.pipeline;
810
+ pipeline = cloneDeep(p);
811
+ if ('pipelineVo' in pipeline) {
812
+ _context7.next = 8;
813
+ break;
814
+ }
815
+ throw new Error();
816
+ case 8:
817
+ _this.setState({
818
+ saveBtnLoading: true
819
+ });
820
+ pipelineConfigVo = pipeline.pipelineVo.pipelineConfigVo; // dbg
821
+ if (localStorage.getItem('__debug_yaml_validate') === 'false') {
822
+ pipelineConfigVo.doValidate = false;
823
+ }
824
+
825
+ // #region pipelineConfigVo.settings globalParam.masked -> .encrypted
826
+ settings = JSON.parse(pipelineConfigVo.settings);
827
+ if (settings.globalParams) {
828
+ settings.globalParams.forEach(function (globalParam) {
829
+ if (!globalParam.masked) {
830
+ globalParam.encrypted = false;
831
+ }
832
+ });
833
+ pipelineConfigVo.settings = JSON.stringify(settings);
834
+ }
835
+ // #endregion
836
+ if (saveParamsValidate(pipeline)) {
837
+ _context7.next = 15;
838
+ break;
839
+ }
840
+ return _context7.abrupt("return");
841
+ case 15:
842
+ pipelineConfigVo.changeLog = log || '';
843
+ _context7.prev = 16;
844
+ !_this.isPacEnableGoTemplate && YAML.load(pipeline.pipelineVo.pipelineConfigVo.flow);
845
+ _context7.next = 24;
846
+ break;
847
+ case 20:
848
+ _context7.prev = 20;
849
+ _context7.t0 = _context7["catch"](16);
850
+ Message.error({
851
+ title: intl.get({
852
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlFiledToSave',
853
+ defaultMessage: '保存失败'
854
+ }),
855
+ content: _context7.t0.message,
856
+ duration: 6000
857
+ });
858
+ return _context7.abrupt("return");
859
+ case 24:
860
+ data = {
861
+ pipeline: JSON.stringify(pipeline.pipelineVo),
862
+ refObjectList: JSON.stringify(pipeline.pipelineObjRelList)
863
+ };
864
+ onSavePipeline = function onSavePipeline() {
865
+ isDevEnv && console.log(data);
866
+ if (_this.props.onSavePipeline) {
867
+ return _this.props.onSavePipeline(data, 'FlowV2');
868
+ }
869
+ return exceed.fetch({
870
+ api: 'Pipeline2.update',
871
+ data: data,
872
+ params: {
873
+ id: _this.props.pipelineId
874
+ }
875
+ });
876
+ };
877
+ _context7.prev = 26;
878
+ _context7.next = 29;
879
+ return onSavePipeline()["catch"](function () {
880
+ var _window$__openGoTempl, _window;
881
+ _this.setState({
882
+ saveBtnLoading: false
883
+ });
884
+ (_window$__openGoTempl = (_window = window).__openGoTemplateEditorDefaultPreview) === null || _window$__openGoTempl === void 0 ? void 0 : _window$__openGoTempl.call(_window);
885
+ return false;
886
+ });
887
+ case 29:
888
+ _yield$onSavePipeline = _context7.sent;
889
+ successful = _yield$onSavePipeline.successful;
890
+ errorMsg = _yield$onSavePipeline.errorMsg;
891
+ if (successful) {
892
+ Message.success({
893
+ title: intl.get({
894
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SavedSuccessfully',
895
+ defaultMessage: '保存成功'
896
+ })
897
+ });
898
+ _this.cleanDrfatCache();
899
+ _this.fetchPipeline(true);
900
+ _this.setState({
901
+ changed: false,
902
+ checkYamlBackendErrorList: []
903
+ });
904
+ if (callback && typeof callback === 'function') {
905
+ callback();
906
+ }
907
+ } else {
908
+ Message.error({
909
+ title: intl.get({
910
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlFiledToSave',
911
+ defaultMessage: '保存失败'
912
+ }),
913
+ content: errorMsg,
914
+ duration: 6000
915
+ });
916
+
917
+ // @tpl
918
+ (_window$__openGoTempl2 = (_window2 = window).__openGoTemplateEditorDefaultPreview) === null || _window$__openGoTempl2 === void 0 ? void 0 : _window$__openGoTempl2.call(_window2);
919
+
920
+ // 保存失败后,调用一次校验接口,以便显示行内错误
921
+ !_this.isPacEnableGoTemplate && _this.checkYaml();
922
+ }
923
+ _this.setState({
924
+ saveBtnLoading: false
925
+ });
926
+ return _context7.abrupt("return", successful);
927
+ case 37:
928
+ _context7.prev = 37;
929
+ _context7.t1 = _context7["catch"](26);
930
+ _this.setState({
931
+ saveBtnLoading: false
932
+ });
933
+ return _context7.abrupt("return", false);
934
+ case 41:
935
+ case "end":
936
+ return _context7.stop();
937
+ }
938
+ }, _callee7, null, [[16, 20], [26, 37]]);
939
+ }));
940
+ return function (_x2, _x3) {
941
+ return _ref12.apply(this, arguments);
942
+ };
943
+ }();
944
+ _this.executePipeline2 = /*#__PURE__*/function () {
945
+ var _ref13 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee8(id, data) {
946
+ var _yield$exceed$fetch2, successful, errorMsg;
947
+ return _regeneratorRuntime.wrap(function _callee8$(_context8) {
948
+ while (1) switch (_context8.prev = _context8.next) {
949
+ case 0:
950
+ _context8.prev = 0;
951
+ _context8.next = 3;
952
+ return exceed.fetch({
953
+ api: 'Pipeline2.execute',
954
+ params: {
955
+ id: id
956
+ },
957
+ data: data
958
+ });
959
+ case 3:
960
+ _yield$exceed$fetch2 = _context8.sent;
961
+ successful = _yield$exceed$fetch2.successful;
962
+ errorMsg = _yield$exceed$fetch2.errorMsg;
963
+ _this.setState({
964
+ runPipelineButtonLoading: false,
965
+ loading: false
966
+ });
967
+ if (successful) {
968
+ _context8.next = 9;
969
+ break;
970
+ }
971
+ return _context8.abrupt("return", Message.error({
972
+ title: errorMsg || intl.get({
973
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlPipelineTriggerFailed',
974
+ defaultMessage: '触发失败'
975
+ })
976
+ }));
977
+ case 9:
978
+ _this.props.onClose();
979
+ Message.success({
980
+ title: intl.get({
981
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlPipelineTriggerSuccessful',
982
+ defaultMessage: '触发成功'
983
+ })
984
+ });
985
+ case 11:
986
+ _context8.prev = 11;
987
+ _this.setState({
988
+ runPipelineButtonLoading: false,
989
+ loading: false
990
+ });
991
+ return _context8.finish(11);
992
+ case 14:
993
+ case "end":
994
+ return _context8.stop();
995
+ }
996
+ }, _callee8, null, [[0,, 11, 14]]);
997
+ }));
998
+ return function (_x4, _x5) {
999
+ return _ref13.apply(this, arguments);
1000
+ };
1001
+ }();
1002
+ _this.submitPipeline = /*#__PURE__*/function () {
1003
+ var _ref14 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee9(callback, loading, log) {
1004
+ var _this$state2, p, originalSource, _ref15, pipelineId, pipeline, _yield$_this$pipeline2, pipelineNotErr, pipelineErrs, pipelineErrLen, sourcesNotErr, refreshFlag, path, _path, pipelineConfigVo, settings, newSources, pipelineVo, data, onSavePipeline;
1005
+ return _regeneratorRuntime.wrap(function _callee9$(_context9) {
1006
+ while (1) switch (_context9.prev = _context9.next) {
1007
+ case 0:
1008
+ if (loading === void 0) {
1009
+ loading = true;
1010
+ }
1011
+ if (log === void 0) {
1012
+ log = '';
1013
+ }
1014
+ _this.setState({
1015
+ saveBtnLoading: true
1016
+ });
1017
+ _context9.next = 5;
1018
+ return new Promise(function (r) {
1019
+ return setTimeout(r, 600);
1020
+ });
1021
+ case 5:
1022
+ _this$state2 = _this.state, p = _this$state2.pipeline, originalSource = _this$state2.originalSource;
1023
+ _ref15 = _this.props || {}, pipelineId = _ref15.pipelineId;
1024
+ pipeline = cloneDeep(p);
1025
+ _context9.next = 10;
1026
+ return _this.pipelineValidate();
1027
+ case 10:
1028
+ _yield$_this$pipeline2 = _context9.sent;
1029
+ pipelineNotErr = _yield$_this$pipeline2.pipelineNotErr;
1030
+ pipelineErrs = _yield$_this$pipeline2.pipelineErrs;
1031
+ pipelineErrLen = _yield$_this$pipeline2.pipelineErrLen;
1032
+ _context9.next = 16;
1033
+ return _this.sourcesValidate();
1034
+ case 16:
1035
+ sourcesNotErr = _context9.sent;
1036
+ // console.log(pipeline);
1037
+ // return;
1038
+ if (pipelineNotErr) {
1039
+ _this.setState({
1040
+ invalidateTasks: []
1041
+ });
1042
+ } else {
1043
+ _this.onErrors(pipelineErrs);
1044
+ }
1045
+
1046
+ // 步骤偶发 stepIdentifier 重复的兜底方案
1047
+ refreshFlag = false; // eslint-disable-next-line no-void
1048
+ void function () {
1049
+ try {
1050
+ if (!(pipelineConfigVo !== null && pipelineConfigVo !== void 0 && pipelineConfigVo.flow)) return;
1051
+ var flowObj = YAML.load(pipelineConfigVo.flow);
1052
+ var allStages = flowObj.pipeline.flatMap(function (group) {
1053
+ return (group === null || group === void 0 ? void 0 : group.stages) || [];
1054
+ });
1055
+ var jobs = allStages.flatMap(function (stage) {
1056
+ return (stage === null || stage === void 0 ? void 0 : stage.jobs) || [];
1057
+ });
1058
+ jobs.forEach(function (job) {
1059
+ var _job$params;
1060
+ var steps = ((_job$params = job.params) === null || _job$params === void 0 ? void 0 : _job$params.steps) || [];
1061
+ var idToStep = {};
1062
+ steps.forEach(function (step) {
1063
+ idToStep[step.stepIdentifier] = idToStep[step.stepIdentifier] || [];
1064
+ idToStep[step.stepIdentifier].push(step);
1065
+ });
1066
+ Object.entries(idToStep).forEach(function (_ref16) {
1067
+ var steps = _ref16[1];
1068
+ if (steps.length > 1) {
1069
+ steps[0].stepIdentifier = job.identifier + "__10_" + String(Date.now()).replace(/\d{3}$/, '000');
1070
+ refreshFlag = true;
1071
+ }
1072
+ });
1073
+ });
1074
+ pipelineConfigVo.flow = YAML.dump(flowObj);
1075
+ } catch (e) {
1076
+ console.error(e);
1077
+ }
1078
+ }();
1079
+
1080
+ // 判断源是否有校验未通过
1081
+ if (!sourcesNotErr) {
1082
+ path = 'pipelineVo.pipelineConfigVo.sources';
1083
+ set(pipeline, path, originalSource);
1084
+ }
1085
+ // 判断pipeline参数
1086
+ if (!pipelineNotErr) {
1087
+ _path = 'pipelineVo.pipelineConfigVo.flow';
1088
+ set(pipeline, _path, getOriginalFlow(pipelineId) || get(pipeline, _path));
1089
+ }
1090
+ pipelineConfigVo = pipeline.pipelineVo.pipelineConfigVo;
1091
+ settings = JSON.parse(pipelineConfigVo.settings);
1092
+ if (settings.globalParams) {
1093
+ settings.globalParams.forEach(function (globalParam) {
1094
+ if (!globalParam.masked) {
1095
+ globalParam.encrypted = false;
1096
+ }
1097
+ });
1098
+ pipelineConfigVo.settings = JSON.stringify(settings);
1099
+ }
1100
+ newSources = addBranchModeFlagForSources(YAML.load(pipelineConfigVo.flow), JSON.parse(pipelineConfigVo.sources));
1101
+ newSources.forEach(function (source) {
1102
+ if (source.data && typeof source.data.trigger !== 'undefined') {
1103
+ source.data.isTrigger = source.data.trigger;
1104
+ }
1105
+ });
1106
+ pipelineConfigVo.sources = JSON.stringify(newSources);
1107
+ pipelineVo = attachSources(pipeline.pipelineVo);
1108
+ if (saveParamsValidate(pipeline)) {
1109
+ _context9.next = 31;
1110
+ break;
1111
+ }
1112
+ return _context9.abrupt("return");
1113
+ case 31:
1114
+ pipelineConfigVo.changeLog = log || '';
1115
+ _this.setState({
1116
+ saving: true,
1117
+ loading: loading
1118
+ });
1119
+ data = {
1120
+ pipeline: JSON.stringify(pipelineVo),
1121
+ refObjectList: JSON.stringify(extractRel(pipeline))
1122
+ };
1123
+ onSavePipeline = function onSavePipeline() {
1124
+ isDevEnv && console.log(data);
1125
+ if (_this.props.onSavePipeline) {
1126
+ return _this.props.onSavePipeline(data);
1127
+ }
1128
+ return exceed.fetch({
1129
+ api: 'Pipeline.edit.submitPipeline',
1130
+ data: data
1131
+ }).then(function (v) {
1132
+ if (!v.successful) {
1133
+ throw new Error();
1134
+ }
1135
+ });
1136
+ };
1137
+ Promise.resolve(onSavePipeline(data)).then(function () {
1138
+ _this.pipelineSaveSucceed({
1139
+ pipelineNotErr: pipelineNotErr,
1140
+ flow: pipelineConfigVo.flow,
1141
+ sourcesNotErr: sourcesNotErr,
1142
+ pipelineErrLen: pipelineErrLen
1143
+ });
1144
+ _this.cleanDrfatCache();
1145
+ _this.setState({
1146
+ changed: false,
1147
+ loading: false,
1148
+ saveBtnLoading: false
1149
+ });
1150
+ if (callback && typeof callback === 'function') {
1151
+ callback();
1152
+ }
1153
+ _this.setState({
1154
+ saving: false,
1155
+ loading: false,
1156
+ originalSource: pipelineConfigVo.sources
1157
+ });
1158
+ if (refreshFlag) {
1159
+ setTimeout(function () {
1160
+ window.location.reload();
1161
+ }, 100);
1162
+ }
1163
+ })["catch"](function (err) {
1164
+ console.log(err);
1165
+ _this.setState({
1166
+ saving: false,
1167
+ loading: false,
1168
+ saveBtnLoading: false
1169
+ });
1170
+ });
1171
+ case 36:
1172
+ case "end":
1173
+ return _context9.stop();
1174
+ }
1175
+ }, _callee9);
1176
+ }));
1177
+ return function (_x6, _x7, _x8) {
1178
+ return _ref14.apply(this, arguments);
1179
+ };
1180
+ }();
1181
+ // eslint-disable-next-line no-async-promise-executor
1182
+ _this.submitCustomPipelineTemplate = function () {
1183
+ return new Promise(/*#__PURE__*/function () {
1184
+ var _ref17 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee10(resolve, reject) {
1185
+ var _this$props, trackPage, model, isEditTemplate, pipeline, _pipeline$pipelineVo$, flow, sources, _settings, souceseList, newSources, settings, flowDetail, flowContent, data, that, savePipelineFromProps, savePipelineTpl, save;
1186
+ return _regeneratorRuntime.wrap(function _callee10$(_context10) {
1187
+ while (1) switch (_context10.prev = _context10.next) {
1188
+ case 0:
1189
+ _this$props = _this.props, trackPage = _this$props.trackPage, model = _this$props.model;
1190
+ isEditTemplate = model === 'edit';
1191
+ pipeline = _this.state.pipeline;
1192
+ _pipeline$pipelineVo$ = pipeline.pipelineVo.pipelineConfigVo, flow = _pipeline$pipelineVo$.flow, sources = _pipeline$pipelineVo$.sources, _settings = _pipeline$pipelineVo$.settings;
1193
+ if (_this.isPacEnableGoTemplate) {
1194
+ _context10.next = 15;
1195
+ break;
1196
+ }
1197
+ _context10.prev = 5;
1198
+ if (flow) {
1199
+ _context10.next = 8;
1200
+ break;
1201
+ }
1202
+ throw new Error();
1203
+ case 8:
1204
+ YAML.load(flow);
1205
+ _context10.next = 15;
1206
+ break;
1207
+ case 11:
1208
+ _context10.prev = 11;
1209
+ _context10.t0 = _context10["catch"](5);
1210
+ Message.error(intl.get({
1211
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlIsInvalid',
1212
+ defaultMessage: 'YAML 不合法'
1213
+ }));
1214
+ return _context10.abrupt("return");
1215
+ case 15:
1216
+ _this.setState({
1217
+ saveAndExecuting: true,
1218
+ invalidateTasks: []
1219
+ });
1220
+ souceseList = JSON.parse(sources).map(function (source) {
1221
+ source.data.webhook = '';
1222
+ source.data.trigger = false;
1223
+ return source;
1224
+ });
1225
+ if (!_this.isPipelineAsCode) {
1226
+ newSources = addBranchModeFlagForSources(YAML.load(flow), souceseList);
1227
+ newSources.forEach(function (source) {
1228
+ if (source.data && typeof source.data.trigger !== 'undefined') {
1229
+ source.data.isTrigger = source.data.trigger;
1230
+ }
1231
+ });
1232
+ pipeline.pipelineVo.pipelineConfigVo.sources = JSON.stringify(newSources);
1233
+ }
1234
+ pipeline.pipelineVo.pipelineConfigVo.doValidate = false;
1235
+ pipeline.pipelineVo.pipelineConfigVo.triggerVoList = [{
1236
+ type: 'MANUAL'
1237
+ }];
1238
+ settings = JSON.parse(pipeline.pipelineVo.pipelineConfigVo.settings);
1239
+ settings.originPipelineId = pipeline.pipelineVo.id;
1240
+ pipeline.pipelineVo.pipelineConfigVo.settings = JSON.stringify(settings);
1241
+ flowDetail = _this.isPacEnableGoTemplate ? flow : YAML.load(flow); // 缩略图用的
1242
+ flowContent = _this.isPipelineAsCode ? [flowDetail] : flowDetail.pipeline.map(function (group) {
1243
+ var groupContent = group.stages.map(function (stage) {
1244
+ var stageContent = stage.jobs.map(function (job) {
1245
+ return job.displayName;
1246
+ });
1247
+ return stageContent;
1248
+ });
1249
+ return groupContent;
1250
+ });
1251
+ if (_this.isPipelineAsCode) {
1252
+ _context10.next = 29;
1253
+ break;
1254
+ }
1255
+ if ((JSON.parse(_settings || '{}').globalParams || []).length || flowContent.length || souceseList.length) {
1256
+ _context10.next = 29;
1257
+ break;
1258
+ }
1259
+ Message.error({
1260
+ title: intl.get({
1261
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TheCurrentTemplateConfigurationIs',
1262
+ defaultMessage: '当前模板配置为空, 请配置模板'
1263
+ })
1264
+ });
1265
+ return _context10.abrupt("return");
1266
+ case 29:
1267
+ data = {
1268
+ pipeline: JSON.stringify(pipeline.pipelineVo),
1269
+ flowContent: JSON.stringify(flowContent),
1270
+ templateName: pipeline.pipelineVo.name,
1271
+ id: isEditTemplate ? _this.props.pipelineTemplateId : null
1272
+ };
1273
+ _this.setState({
1274
+ loading: true
1275
+ });
1276
+ that = _this;
1277
+ savePipelineFromProps = function savePipelineFromProps() {
1278
+ _this.props.onSavePipeline(data);
1279
+ _this.setState({
1280
+ saveAndExecuting: false,
1281
+ loading: false,
1282
+ changed: false
1283
+ });
1284
+ };
1285
+ savePipelineTpl = function savePipelineTpl() {
1286
+ return exceed.fetch({
1287
+ api: 'PipelineTemplate.edit.submit',
1288
+ data: data
1289
+ }).then(function (res) {
1290
+ if (res.successful) {
1291
+ if (isEditTemplate) {
1292
+ track({
1293
+ action: 'update pipeline template',
1294
+ page: trackPage || 'edit page'
1295
+ });
1296
+ } else {
1297
+ track({
1298
+ action: 'create pipeline template',
1299
+ page: trackPage || 'edit page'
1300
+ });
1301
+ }
1302
+ Message.success({
1303
+ title: intl.get({
1304
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.PipelineTemplateSavedSuccessfully',
1305
+ defaultMessage: '流水线模板保存成功'
1306
+ })
1307
+ });
1308
+ if (!isEditTemplate) {
1309
+ that.props.setCustoModel('edit');
1310
+ that.props.setPipelineTemplateId(res.object);
1311
+ }
1312
+ resolve();
1313
+ }
1314
+ if (res.errorCode === '403') {
1315
+ Message.error({
1316
+ title: intl.get({
1317
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TheOperationFailedNoPermission',
1318
+ defaultMessage: '操作失败,没有权限'
1319
+ })
1320
+ });
1321
+ }
1322
+ that.setState({
1323
+ saveAndExecuting: false,
1324
+ loading: false,
1325
+ changed: false
1326
+ });
1327
+ reject();
1328
+ })["catch"](function () {
1329
+ that.setState({
1330
+ saveAndExecuting: false,
1331
+ loading: false
1332
+ });
1333
+ reject();
1334
+ });
1335
+ };
1336
+ isDevEnv && console.log(data);
1337
+ save = _this.props.onSavePipeline ? savePipelineFromProps : savePipelineTpl;
1338
+ save();
1339
+ case 37:
1340
+ case "end":
1341
+ return _context10.stop();
1342
+ }
1343
+ }, _callee10, null, [[5, 11]]);
1344
+ }));
1345
+ return function (_x9, _x10) {
1346
+ return _ref17.apply(this, arguments);
1347
+ };
1348
+ }());
1349
+ };
1350
+ _this.saveAndClose = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee11() {
1351
+ return _regeneratorRuntime.wrap(function _callee11$(_context11) {
1352
+ while (1) switch (_context11.prev = _context11.next) {
1353
+ case 0:
1354
+ _context11.next = 2;
1355
+ return _this.submitCustomPipelineTemplate();
1356
+ case 2:
1357
+ _this.props.onClose();
1358
+ case 3:
1359
+ case "end":
1360
+ return _context11.stop();
1361
+ }
1362
+ }, _callee11);
1363
+ }));
1364
+ _this.showGloblaParamsDialog = /*#__PURE__*/function () {
1365
+ var _ref19 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee12(pipeline) {
1366
+ var _this$props$changeCon;
1367
+ var pipelineConfigVo, sources, branchRepoSources, settings, _settings$globalParam, globalParams, runningGlobalParams, latestInstance, contextObj, branchRepoInfoObj;
1368
+ return _regeneratorRuntime.wrap(function _callee12$(_context12) {
1369
+ while (1) switch (_context12.prev = _context12.next) {
1370
+ case 0:
1371
+ pipelineConfigVo = pipeline.pipelineVo.pipelineConfigVo;
1372
+ sources = JSON.parse(pipelineConfigVo.sources);
1373
+ branchRepoSources = sources;
1374
+ branchRepoSources.forEach(function (source) {
1375
+ _this.runParamConfigField.setValue("" + source.sign, source.data.branch);
1376
+ });
1377
+ settings = JSON.parse(pipelineConfigVo.settings);
1378
+ _settings$globalParam = settings.globalParams, globalParams = _settings$globalParam === void 0 ? [] : _settings$globalParam;
1379
+ runningGlobalParams = globalParams.filter(function (globalParam) {
1380
+ return globalParam.runningConfig && !globalParam.masked;
1381
+ });
1382
+ runningGlobalParams.forEach(function (_ref20) {
1383
+ var key = _ref20.key,
1384
+ value = _ref20.value;
1385
+ _this.runParamConfigField.setValue(key, value);
1386
+ });
1387
+ _context12.next = 10;
1388
+ return _this.getLatestPiepline();
1389
+ case 10:
1390
+ latestInstance = _context12.sent;
1391
+ if (branchRepoSources && branchRepoSources.length > 0 || runningGlobalParams && runningGlobalParams.length > 0 || ((_this$props$changeCon = _this.props.changeConfig) === null || _this$props$changeCon === void 0 ? void 0 : _this$props$changeCon.ciType) === 'APP_RELEASE') {
1392
+ if (latestInstance && latestInstance.context) {
1393
+ contextObj = JSON.parse(latestInstance.context);
1394
+ if (contextObj.branchRepoInfo) {
1395
+ branchRepoInfoObj = JSON.parse(contextObj.branchRepoInfo);
1396
+ branchRepoSources.forEach(function (ele) {
1397
+ var matchedBranch = branchRepoInfoObj.find(function (it) {
1398
+ return it.sign === ele.sign;
1399
+ });
1400
+ if (matchedBranch) {
1401
+ ele.data.aoneFlow = matchedBranch;
1402
+ ele.data.aoneFlow.needCreateBranch = true;
1403
+ if (latestInstance.flowInstVo && latestInstance.flowInstVo.result && latestInstance.flowInstVo.result.REPO_URL) {
1404
+ if (latestInstance.flowInstVo.result.REPO_URL === ele.data.repo && latestInstance.flowInstVo.result.RELEASE_BRANCH_NAME) {
1405
+ ele.data.aoneFlow.releaseBranch = {
1406
+ branchName: latestInstance.flowInstVo.result.RELEASE_BRANCH_NAME
1407
+ };
1408
+ ele.data.aoneFlow.needCreateBranch = false;
1409
+ }
1410
+ }
1411
+ } else {
1412
+ ele.data.aoneFlow = {
1413
+ needCreateBranch: true
1414
+ };
1415
+ }
1416
+ });
1417
+ }
1418
+ }
1419
+ _this.setState({
1420
+ configDailogVisible: true,
1421
+ branchRepoConfigs: branchRepoSources,
1422
+ runningGlobalParams: runningGlobalParams,
1423
+ latestInstance: latestInstance
1424
+ });
1425
+ } else {
1426
+ _this.setState({
1427
+ latestInstance: latestInstance,
1428
+ pipelineRunConfirmVisible: true
1429
+ });
1430
+ }
1431
+ case 12:
1432
+ case "end":
1433
+ return _context12.stop();
1434
+ }
1435
+ }, _callee12);
1436
+ }));
1437
+ return function (_x11) {
1438
+ return _ref19.apply(this, arguments);
1439
+ };
1440
+ }();
1441
+ /** @deprecated */
1442
+ _this.checkYaml = /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee13() {
1443
+ var pipelineVo, _yield$exceed$fetch3, successful, object, hasError, formatErrorList;
1444
+ return _regeneratorRuntime.wrap(function _callee13$(_context13) {
1445
+ while (1) switch (_context13.prev = _context13.next) {
1446
+ case 0:
1447
+ pipelineVo = _this.state.pipeline.pipelineVo;
1448
+ _context13.prev = 1;
1449
+ YAML.load(pipelineVo.pipelineConfigVo.flow);
1450
+ _context13.next = 9;
1451
+ break;
1452
+ case 5:
1453
+ _context13.prev = 5;
1454
+ _context13.t0 = _context13["catch"](1);
1455
+ Message.error({
1456
+ title: intl.get({
1457
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlCheckFailed',
1458
+ defaultMessage: '校验不通过'
1459
+ }),
1460
+ content: _context13.t0.message,
1461
+ duration: 6000
1462
+ });
1463
+ return _context13.abrupt("return");
1464
+ case 9:
1465
+ _this.setState({
1466
+ yamlBackendValidateLoading: true
1467
+ });
1468
+ _context13.next = 12;
1469
+ return exceed.fetch({
1470
+ api: 'Pipeline2.checkYaml',
1471
+ data: {
1472
+ yaml: pipelineVo.pipelineConfigVo.flow,
1473
+ pipelineId: _this.props.pipelineId
1474
+ }
1475
+ });
1476
+ case 12:
1477
+ _yield$exceed$fetch3 = _context13.sent;
1478
+ successful = _yield$exceed$fetch3.successful;
1479
+ object = _yield$exceed$fetch3.object;
1480
+ if (successful) {
1481
+ _context13.next = 17;
1482
+ break;
1483
+ }
1484
+ return _context13.abrupt("return");
1485
+ case 17:
1486
+ hasError = object.hasError, formatErrorList = object.formatErrorList;
1487
+ if (!hasError && !_this.state.feValidateMarkers.length) {
1488
+ // 只有前端校验也没有错误,才会显示校验通过
1489
+ Message.success({
1490
+ title: intl.get({
1491
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.YamlCheckSuccessful',
1492
+ defaultMessage: '校验通过'
1493
+ })
1494
+ });
1495
+ _this.setState({
1496
+ checkYamlBackendErrorList: [],
1497
+ yamlBackendValidateLoading: false
1498
+ });
1499
+ } else {
1500
+ _this.setState({
1501
+ checkYamlBackendErrorList: formatErrorList,
1502
+ yamlBackendValidateLoading: false
1503
+ });
1504
+ }
1505
+ case 19:
1506
+ case "end":
1507
+ return _context13.stop();
1508
+ }
1509
+ }, _callee13, null, [[1, 5]]);
1510
+ }));
1511
+ /** go template 预览内容的校验,传任意的 yaml */
1512
+ _this.checkYamlByContent = /*#__PURE__*/function () {
1513
+ var _ref22 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee14(yaml) {
1514
+ var _yield$exceed$fetch4, successful, object, hasError, formatErrorList;
1515
+ return _regeneratorRuntime.wrap(function _callee14$(_context14) {
1516
+ while (1) switch (_context14.prev = _context14.next) {
1517
+ case 0:
1518
+ _context14.prev = 0;
1519
+ YAML.load(yaml);
1520
+ _context14.next = 7;
1521
+ break;
1522
+ case 4:
1523
+ _context14.prev = 4;
1524
+ _context14.t0 = _context14["catch"](0);
1525
+ return _context14.abrupt("return", false);
1526
+ case 7:
1527
+ _this.setState({
1528
+ yamlBackendValidateLoading: true
1529
+ });
1530
+ _context14.next = 10;
1531
+ return exceed.fetch({
1532
+ api: 'Pipeline2.checkYaml',
1533
+ data: {
1534
+ yaml: yaml,
1535
+ pipelineId: _this.props.pipelineId
1536
+ }
1537
+ });
1538
+ case 10:
1539
+ _yield$exceed$fetch4 = _context14.sent;
1540
+ successful = _yield$exceed$fetch4.successful;
1541
+ object = _yield$exceed$fetch4.object;
1542
+ if (successful) {
1543
+ _context14.next = 15;
1544
+ break;
1545
+ }
1546
+ return _context14.abrupt("return", false);
1547
+ case 15:
1548
+ hasError = object.hasError, formatErrorList = object.formatErrorList;
1549
+ _this.setState({
1550
+ checkYamlBackendErrorList: formatErrorList,
1551
+ yamlBackendValidateLoading: false
1552
+ });
1553
+ return _context14.abrupt("return", !hasError);
1554
+ case 18:
1555
+ case "end":
1556
+ return _context14.stop();
1557
+ }
1558
+ }, _callee14, null, [[0, 4]]);
1559
+ }));
1560
+ return function (_x12) {
1561
+ return _ref22.apply(this, arguments);
1562
+ };
1563
+ }();
1564
+ _this.submitAndExecutePipeline = /*#__PURE__*/function () {
1565
+ var _ref23 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee15(log, saveCallback) {
1566
+ var _this2, _this2$state, p, originalSource, _this2$props, _this2$props2, trackPage, pipelineId, pipeline, _yield$_this$pipeline3, pipelineNotErr, pipelineErrs, pipelineErrLen, pipelineType, sourcesNotErr, path, _path2, pipelineConfigVo, settings, newSources, data, successful, _pipeline;
1567
+ return _regeneratorRuntime.wrap(function _callee15$(_context15) {
1568
+ while (1) switch (_context15.prev = _context15.next) {
1569
+ case 0:
1570
+ _context15.next = 2;
1571
+ return new Promise(function (r) {
1572
+ return setTimeout(r, 600);
1573
+ });
1574
+ case 2:
1575
+ _this2 = _this, _this2$state = _this2.state, p = _this2$state.pipeline, originalSource = _this2$state.originalSource, _this2$props = _this2.props, _this2$props2 = _this2$props === void 0 ? {} : _this2$props, trackPage = _this2$props2.trackPage, pipelineId = _this2$props2.pipelineId;
1576
+ pipeline = cloneDeep(p);
1577
+ _context15.next = 6;
1578
+ return _this.pipelineValidate();
1579
+ case 6:
1580
+ _yield$_this$pipeline3 = _context15.sent;
1581
+ pipelineNotErr = _yield$_this$pipeline3.pipelineNotErr;
1582
+ pipelineErrs = _yield$_this$pipeline3.pipelineErrs;
1583
+ pipelineErrLen = _yield$_this$pipeline3.pipelineErrLen;
1584
+ pipelineType = pipeline.pipelineVo ? pipeline.pipelineVo.type : '';
1585
+ if (!(pipelineType !== 'PIPELINEASCODE')) {
1586
+ _context15.next = 15;
1587
+ break;
1588
+ }
1589
+ _context15.next = 14;
1590
+ return _this.sourcesValidate();
1591
+ case 14:
1592
+ sourcesNotErr = _context15.sent;
1593
+ case 15:
1594
+ if (pipelineNotErr) {
1595
+ _this.setState({
1596
+ invalidateTasks: []
1597
+ });
1598
+ } else {
1599
+ _this.onErrors(pipelineErrs);
1600
+ }
1601
+ if (!sourcesNotErr) {
1602
+ path = 'pipelineVo.pipelineConfigVo.sources';
1603
+ set(pipeline, path, originalSource);
1604
+ }
1605
+
1606
+ // 判断pipeline参数
1607
+ if (!pipelineNotErr) {
1608
+ _path2 = 'pipelineVo.pipelineConfigVo.flow';
1609
+ set(pipeline, _path2, getOriginalFlow(pipelineId) || get(pipeline, _path2));
1610
+ }
1611
+ _this.setState({
1612
+ executinButtonDisable: true
1613
+ });
1614
+ pipelineConfigVo = pipeline.pipelineVo.pipelineConfigVo;
1615
+ settings = JSON.parse(pipelineConfigVo.settings);
1616
+ if (settings.globalParams) {
1617
+ settings.globalParams.forEach(function (globalParam) {
1618
+ if (!globalParam.masked) {
1619
+ globalParam.encrypted = false;
1620
+ }
1621
+ });
1622
+ pipelineConfigVo.settings = JSON.stringify(settings);
1623
+ }
1624
+ if (!_this.isPipelineAsCode) {
1625
+ newSources = addBranchModeFlagForSources(YAML.load(pipelineConfigVo.flow), JSON.parse(pipelineConfigVo.sources));
1626
+ newSources.forEach(function (source) {
1627
+ if (source.data && typeof source.data.trigger !== 'undefined') {
1628
+ source.data.isTrigger = source.data.trigger;
1629
+ }
1630
+ });
1631
+ pipelineConfigVo.sources = JSON.stringify(newSources);
1632
+ }
1633
+ if (saveParamsValidate(pipeline)) {
1634
+ _context15.next = 25;
1635
+ break;
1636
+ }
1637
+ return _context15.abrupt("return");
1638
+ case 25:
1639
+ if (sourcesNotErr && pipelineNotErr && pipelineType !== 'PIPELINEASCODE') {
1640
+ _this.showGloblaParamsDialog(pipeline);
1641
+ }
1642
+ _this.setState({
1643
+ loading: true
1644
+ });
1645
+ pipelineConfigVo.changeLog = log || '';
1646
+ data = {
1647
+ pipeline: JSON.stringify(pipeline.pipelineVo),
1648
+ refObjectList: JSON.stringify(extractRel(pipeline))
1649
+ };
1650
+ if (!(pipelineType === 'PIPELINEASCODE')) {
1651
+ _context15.next = 42;
1652
+ break;
1653
+ }
1654
+ _this.setState({
1655
+ saveAndExecBtnLoading: true
1656
+ });
1657
+ successful = true;
1658
+ if (_this.getIsUnedited()) {
1659
+ _context15.next = 36;
1660
+ break;
1661
+ }
1662
+ _context15.next = 35;
1663
+ return _this.submitPipeline2(saveCallback, log);
1664
+ case 35:
1665
+ successful = _context15.sent;
1666
+ case 36:
1667
+ if (!successful) {
1668
+ _context15.next = 41;
1669
+ break;
1670
+ }
1671
+ _context15.next = 39;
1672
+ return _this.fetchPipeline(true);
1673
+ case 39:
1674
+ _pipeline = _context15.sent;
1675
+ _this.showGloblaParamsDialog(_pipeline);
1676
+ case 41:
1677
+ return _context15.abrupt("return", _this.setState({
1678
+ saveAndExecBtnLoading: false,
1679
+ executinButtonDisable: false
1680
+ }));
1681
+ case 42:
1682
+ exceed.fetch({
1683
+ api: 'Pipeline.edit.submitPipeline',
1684
+ data: data
1685
+ }).then(function (res) {
1686
+ if (res.successful) {
1687
+ if (saveCallback) {
1688
+ saveCallback();
1689
+ }
1690
+ _this.pipelineSaveSucceed({
1691
+ pipelineNotErr: pipelineNotErr,
1692
+ flow: pipelineConfigVo.flow,
1693
+ sourcesNotErr: sourcesNotErr,
1694
+ pipelineErrLen: pipelineErrLen
1695
+ });
1696
+ _this.setState({
1697
+ loading: false,
1698
+ executinButtonDisable: false,
1699
+ originalSource: pipelineConfigVo.sources
1700
+ });
1701
+ track({
1702
+ action: 'save and execute pipeline',
1703
+ page: trackPage || 'edit page'
1704
+ });
1705
+ }
1706
+ })["catch"](function () {
1707
+ _this.setState({
1708
+ loading: false
1709
+ });
1710
+ });
1711
+ case 43:
1712
+ case "end":
1713
+ return _context15.stop();
1714
+ }
1715
+ }, _callee15);
1716
+ }));
1717
+ return function (_x13, _x14) {
1718
+ return _ref23.apply(this, arguments);
1719
+ };
1720
+ }();
1721
+ _this.executePipeline = function () {
1722
+ var _this$state3 = _this.state,
1723
+ _this$state3$branchRe = _this$state3.branchRepoConfigs,
1724
+ branchRepoConfigs = _this$state3$branchRe === void 0 ? [] : _this$state3$branchRe,
1725
+ pipeline = _this$state3.pipeline;
1726
+ var resolve;
1727
+ var reject;
1728
+ var promiseForSuccessRequest = new Promise(function (res, rej) {
1729
+ resolve = res;
1730
+ reject = rej;
1731
+ });
1732
+ _this.runParamConfigField.validate(function (errors) {
1733
+ if (errors) {
1734
+ var messages = Object.keys(errors).flatMap(function (e) {
1735
+ return errors[e].errors;
1736
+ }).join(',');
1737
+ reject();
1738
+ return Message.warning({
1739
+ title: intl.get({
1740
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ConfigurationItemErrorMessages',
1741
+ defaultMessage: '配置项错误:{messages}'
1742
+ }, {
1743
+ messages: messages
1744
+ })
1745
+ });
1746
+ }
1747
+ var params = Object.assign({}, _this.runParamConfigField.getValues());
1748
+ var _ref24 = branchRepoConfigs.find(function (_ref25) {
1749
+ var _ref25$data = _ref25.data,
1750
+ data = _ref25$data === void 0 ? {} : _ref25$data;
1751
+ return data.isBranchMode && data.baseBranch;
1752
+ }) || {},
1753
+ _ref24$data = _ref24.data,
1754
+ branchData = _ref24$data === void 0 ? {} : _ref24$data,
1755
+ sign = _ref24.sign,
1756
+ name = _ref24.name;
1757
+ if (branchData.isBranchMode && !get(branchData, 'aoneFlow.featureBranchs', []).length) {
1758
+ reject();
1759
+ return Message.warning({
1760
+ title: intl.get({
1761
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.AddARunningBranch',
1762
+ defaultMessage: '请添加运行分支'
1763
+ })
1764
+ });
1765
+ }
1766
+ if (branchData.isBranchMode && get(branchData, 'aoneFlow.featureBranchs', []).length) {
1767
+ var branchRepoInfo = [_extends({}, branchData.aoneFlow, {
1768
+ repo: branchData.repo,
1769
+ baseBranch: {
1770
+ branchName: branchData.baseBranch
1771
+ },
1772
+ needCreateBranch: branchData.aoneFlow.needCreateBranch,
1773
+ sign: sign,
1774
+ name: name
1775
+ })].filter(function (_ref26) {
1776
+ var s = _ref26.sign;
1777
+ return !!s;
1778
+ });
1779
+ params.branchRepoInfo = JSON.stringify(branchRepoInfo);
1780
+ }
1781
+ _this.setState({
1782
+ runPipelineButtonLoading: true,
1783
+ loading: true
1784
+ });
1785
+ console.log(params, 'params ');
1786
+ if (params.signArr) {
1787
+ var signArr = params.signArr;
1788
+ signArr.forEach(function (item) {
1789
+ delete params[item];
1790
+ });
1791
+ delete params.signArr;
1792
+ }
1793
+ var data = {
1794
+ params: JSON.stringify(params)
1795
+ };
1796
+ var pipelineType = pipeline.pipelineVo ? pipeline.pipelineVo.type : '';
1797
+ if (pipelineType === 'PIPELINEASCODE') {
1798
+ _this.executePipeline2(_this.props.pipelineId, data).then(resolve, reject);
1799
+ return;
1800
+ }
1801
+ exceed.fetch({
1802
+ api: 'Pipeline.execute',
1803
+ params: {
1804
+ id: _this.state.pipeline.pipelineVo.id
1805
+ },
1806
+ data: data
1807
+ }).then(function (result) {
1808
+ _this.setState({
1809
+ runPipelineButtonLoading: false
1810
+ });
1811
+ if (result.successful && result.object) {
1812
+ resolve();
1813
+ Message.success({
1814
+ title: intl.get({
1815
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.PipelineTriggered',
1816
+ defaultMessage: '流水线已触发'
1817
+ })
1818
+ });
1819
+ _this.handleNewbieTaskStatus();
1820
+ // navigateWithContexPath(`/pipelines/${this.state.pipeline.pipelineVo.id}/current`);
1821
+ _this.props.onClose();
1822
+ _this.cleanDrfatCache();
1823
+ // 更改当前企业为运行过流水线
1824
+ window.AK_GLOBAL.alreadyRunPipeline = 'true';
1825
+ track({
1826
+ action: 'run pipeline success',
1827
+ page: _this.props.trackPage || 'edit page',
1828
+ daysinceenterflow: intervalEnterTime()
1829
+ });
1830
+ } else {
1831
+ reject();
1832
+ }
1833
+ _this.setState({
1834
+ loading: false,
1835
+ changed: false
1836
+ });
1837
+ })["catch"](function () {
1838
+ return reject();
1839
+ });
1840
+ });
1841
+ return promiseForSuccessRequest;
1842
+ };
1843
+ _this.handleNewbieTaskStatus = function () {
1844
+ var cache = getLocalStorageCache(NEWBIE_TASK_STATUS) || {};
1845
+ setLocalStorageCache(NEWBIE_TASK_STATUS, _extends({}, cache, {
1846
+ create_pipeline: true,
1847
+ update: true
1848
+ }));
1849
+ window.AK_GLOBAL.alreadyRunPipeline = 'true';
1850
+ };
1851
+ _this.configDailogClose = function () {
1852
+ _this.setState(function (state) {
1853
+ return _extends({}, state, {
1854
+ configDailogVisible: false
1855
+ });
1856
+ });
1857
+ _this.runParamConfigField.reset();
1858
+ _this.runParamConfigField.setValue('FLOW_INST_RUNNING_COMMENT', '');
1859
+ };
1860
+ _this.openFirstErrorMenu = function (time) {
1861
+ if (time === void 0) {
1862
+ time = null;
1863
+ }
1864
+ var _ref27 = document.getElementsByClassName('flow-job-capsule--error') || [],
1865
+ errorCaspsule = _ref27[0];
1866
+ if (!errorCaspsule) return;
1867
+ _this.flowRef && _this.flowRef.openFlowEditMenu(errorCaspsule, {
1868
+ time: time
1869
+ });
1870
+ };
1871
+ _this.positionError = function () {
1872
+ if (_this.state.navValue === 'flow') return _this.openFirstErrorMenu(50);
1873
+ _this.setState({
1874
+ navValue: 'flow'
1875
+ }, _this.openFirstErrorMenu);
1876
+ };
1877
+ // 点击「仅保存」按钮
1878
+ _this.onClickPipelineSaveBtn = function (log, saveCallback) {
1879
+ track({
1880
+ action: 'pipelineSaveBtn-click',
1881
+ type: _this.isPipelineAsCode ? 'pac' : 'old' // 区分pac或老编辑页
1882
+ });
1883
+
1884
+ // todo
1885
+ // if (!this.state.pacFlowValid) {
1886
+ // Message.error('YAML 内容不合法,请检查后重试');
1887
+ // return;
1888
+ // }
1889
+
1890
+ if (_this.isPipelineAsCode) {
1891
+ _this.submitPipeline2(saveCallback, log);
1892
+ return;
1893
+ }
1894
+ _this.submitPipeline(function () {
1895
+ if (saveCallback) {
1896
+ saveCallback();
1897
+ }
1898
+ track({
1899
+ action: 'save pipeline',
1900
+ page: _this.props.trackPage || 'edit page',
1901
+ daysinceenterflow: intervalEnterTime()
1902
+ });
1903
+ }, true, log);
1904
+ };
1905
+ _this.renderSaveBtn = function () {
1906
+ var _this3 = _this,
1907
+ _this3$state = _this3.state,
1908
+ pipeline = _this3$state.pipeline,
1909
+ blankFlow = _this3$state.blankFlow,
1910
+ _this3$props = _this3.props,
1911
+ _this3$props2 = _this3$props === void 0 ? {} : _this3$props,
1912
+ type = _this3$props2.type,
1913
+ model = _this3$props2.model;
1914
+
1915
+ // yml、可视化切换按钮
1916
+ var code2UISwitcher = getFeature('mock.pac.edit.ui') ? /*#__PURE__*/React.createElement("div", {
1917
+ style: {
1918
+ display: 'inline-block',
1919
+ verticalAlign: 'middle',
1920
+ marginRight: 10
1921
+ }
1922
+ }, /*#__PURE__*/React.createElement(Tab, {
1923
+ size: 'small',
1924
+ shape: "capsule",
1925
+ activeKey: _this.state.flowEditMode,
1926
+ onChange: function onChange(v) {
1927
+ _this.setState({
1928
+ flowEditMode: v
1929
+ });
1930
+ }
1931
+ }, /*#__PURE__*/React.createElement(Tab.Item, {
1932
+ key: "ui",
1933
+ title: /*#__PURE__*/React.createElement(YunxiaoIcon, {
1934
+ type: "branch-line"
1935
+ })
1936
+ }), /*#__PURE__*/React.createElement(Tab.Item, {
1937
+ key: "code",
1938
+ title: /*#__PURE__*/React.createElement(YunxiaoIcon, {
1939
+ type: "code-line"
1940
+ })
1941
+ }))) : null;
1942
+ var goTemplatePreviewSwitchContainer = /*#__PURE__*/React.createElement("div", {
1943
+ // 这个切换用 react portal 在子组件里渲染的
1944
+ id: goTemplatePreviewSwitchContainerId,
1945
+ style: {
1946
+ display: _this.isPacEnableGoTemplate ? 'inline-block' : 'none',
1947
+ verticalAlign: 'middle',
1948
+ marginRight: 10
1949
+ }
1950
+ });
1951
+ var templateBtn = /*#__PURE__*/React.createElement(React.Fragment, null, _this.isPipelineAsCode && code2UISwitcher, goTemplatePreviewSwitchContainer, /*#__PURE__*/React.createElement(Button, {
1952
+ key: "template-btn",
1953
+ type: window.__isEmbedInAppstack ? 'primary' : 'normal'
1954
+ // tpl 模板保存卡点
1955
+ ,
1956
+ disabled: !pipeline.pipelineVo,
1957
+ onClick: _this.submitCustomPipelineTemplate
1958
+ }, model === 'edit' ? intl.get({
1959
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.UpdateTemplate',
1960
+ defaultMessage: '更新模板'
1961
+ }) : intl.get({
1962
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SaveTemplate',
1963
+ defaultMessage: '保存模板'
1964
+ })), window.__isEmbedInAppstack || /*#__PURE__*/React.createElement(Button, {
1965
+ style: {
1966
+ marginLeft: 8
1967
+ }
1968
+ // tpl 模板保存卡点
1969
+ ,
1970
+ disabled: !pipeline.pipelineVo,
1971
+ type: "primary",
1972
+ onClick: _this.saveAndClose
1973
+ }, model === 'edit' ? intl.get({
1974
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.UpdateTemplateAndClose',
1975
+ defaultMessage: '更新并关闭'
1976
+ }) : intl.get({
1977
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SaveTemplateAndClose',
1978
+ defaultMessage: '保存并关闭'
1979
+ })));
1980
+ var pipelineSaveBtn = function pipelineSaveBtn(disabled) {
1981
+ return /*#__PURE__*/React.createElement(ButtonTooltip, {
1982
+ tooltip: /*#__PURE__*/React.createElement(React.Fragment, null, intl.get({
1983
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ShortcutKeys',
1984
+ defaultMessage: '快捷键'
1985
+ }), ' ', /*#__PURE__*/React.createElement(InlineCode, {
1986
+ style: {
1987
+ marginLeft: 4
1988
+ },
1989
+ dark: true
1990
+ }, "Cmd"), ' ', "+ ", /*#__PURE__*/React.createElement(InlineCode, {
1991
+ dark: true
1992
+ }, "S")),
1993
+ onlyDisabled: false,
1994
+ align: 'b',
1995
+ type: window.__isEmbedInAppstack ? 'primary' : 'normal',
1996
+ key: " pipeline-save",
1997
+ disabled: disabled,
1998
+ loading: _this.state.saveBtnLoading,
1999
+ style: {
2000
+ marginRight: 10
2001
+ },
2002
+ onClick: function onClick() {
2003
+ if (_this.isPipelineAsCode && _this.getIsUnedited()) {
2004
+ _this.fakeSaveLoading();
2005
+ return;
2006
+ }
2007
+ if (_this.isPipelineAsCode && _this.state.changed) {
2008
+ _this.setState({
2009
+ saveVisible: true,
2010
+ isSaveAndRun: false
2011
+ });
2012
+ } else {
2013
+ _this.onClickPipelineSaveBtn();
2014
+ }
2015
+ }
2016
+ }, window.__isEmbedInAppstack ? intl.get({
2017
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Save',
2018
+ defaultMessage: '保存'
2019
+ }) : intl.get({
2020
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SaveOnly',
2021
+ defaultMessage: '仅保存'
2022
+ }));
2023
+ };
2024
+ var pipelineSaveAndExecuteBtn = function pipelineSaveAndExecuteBtn(disabled) {
2025
+ if (disabled === void 0) {
2026
+ disabled = false;
2027
+ }
2028
+ return /*#__PURE__*/React.createElement(Button, {
2029
+ type: "primary",
2030
+ key: " pipeline-saveAndExecute",
2031
+ disabled: disabled,
2032
+ loading: _this.state.saveAndExecBtnLoading,
2033
+ onClick: function onClick() {
2034
+ track({
2035
+ action: 'pipelineSaveAndExecuteBtn-click',
2036
+ type: _this.isPipelineAsCode ? 'pac' : 'old' // 区分pac或老编辑页
2037
+ });
2038
+
2039
+ // tpl
2040
+ // if (!this.state.pacFlowValid) {
2041
+ // Message.error('YAML 内容不合法,请检查后重试');
2042
+ // return;
2043
+ // }
2044
+ if (_this.isPipelineAsCode && _this.state.changed) {
2045
+ _this.setState({
2046
+ saveVisible: true,
2047
+ isSaveAndRun: true
2048
+ });
2049
+ } else {
2050
+ _this.submitAndExecutePipeline();
2051
+ }
2052
+ }
2053
+ }, intl.get({
2054
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.SaveAndRun',
2055
+ defaultMessage: '保存并运行'
2056
+ }));
2057
+ };
2058
+
2059
+ /** PAC 校验按钮 */
2060
+ var validateButtonIfNeeded = _this.isPipelineAsCode && _this.state.navValue === 'flow' && !_this.isPacEnableGoTemplate ? /*#__PURE__*/React.createElement(ButtonTooltip, {
2061
+ tooltip: /*#__PURE__*/React.createElement(React.Fragment, null, intl.get({
2062
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ShortcutKeys',
2063
+ defaultMessage: '快捷键'
2064
+ }), ' ', /*#__PURE__*/React.createElement(InlineCode, {
2065
+ style: {
2066
+ marginLeft: 4
2067
+ },
2068
+ dark: true
2069
+ }, "Cmd"), ' ', "+ ", /*#__PURE__*/React.createElement(InlineCode, {
2070
+ dark: true
2071
+ }, "B")),
2072
+ loading: _this.state.yamlBackendValidateLoading,
2073
+ onlyDisabled: false,
2074
+ align: 'b',
2075
+ id: "guide-validate",
2076
+ type: "normal",
2077
+ key: " pipeline-validate",
2078
+ style: {
2079
+ marginRight: 10
2080
+ },
2081
+ onClick: function onClick() {
2082
+ track({
2083
+ action: 'pacValidateBtn-click'
2084
+ });
2085
+
2086
+ // tpl
2087
+ // if (!this.state.pacFlowValid) {
2088
+ // Message.error('YAML 内容不合法,请检查后重试');
2089
+ // return;
2090
+ // }
2091
+ _this.checkYaml();
2092
+ }
2093
+ }, intl.get({
2094
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Verification',
2095
+ defaultMessage: '校验'
2096
+ })) : null;
2097
+ var pipelineBtnAry = [];
2098
+ if (!window.__isEmbedInAppstack) {
2099
+ pipelineBtnAry.push(pipelineSaveAndExecuteBtn());
2100
+ }
2101
+ var pipelineDisabledBtnAry = [tooltip(pipelineSaveAndExecuteBtn(true), intl.get({
2102
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ThePipelineRequiresAtLeast',
2103
+ defaultMessage: '流水线至少需要一个任务'
2104
+ }), 'saveAndExecute_t')];
2105
+ if (alreadyRunPipeline() === 'true') {
2106
+ pipelineBtnAry.unshift(pipelineSaveBtn());
2107
+ pipelineDisabledBtnAry.unshift(tooltip(pipelineSaveBtn(true), intl.get({
2108
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ThePipelineRequiresAtLeast',
2109
+ defaultMessage: '流水线至少需要一个任务'
2110
+ }), 'save_t'));
2111
+ }
2112
+
2113
+ // PAC流水线,且在「流程配置」Tab时,显示校验按钮和可视化切换(根据开关显示)
2114
+ if (_this.isPipelineAsCode && _this.state.navValue === 'flow') {
2115
+ pipelineBtnAry.unshift(validateButtonIfNeeded);
2116
+ pipelineBtnAry.unshift(code2UISwitcher);
2117
+ pipelineBtnAry.unshift(goTemplatePreviewSwitchContainer);
2118
+ }
2119
+ pipelineBtnAry.filter(Boolean);
2120
+ var pipelineBtn = (!pipeline.pipelineVo || blankFlow) && !_this.isPipelineAsCode ? pipelineDisabledBtnAry : pipelineBtnAry;
2121
+ return type === 'template' ? templateBtn : pipelineBtn;
2122
+ };
2123
+ _this.fieldSubscribeies = {};
2124
+ _this.timer = null;
2125
+ _this.field = new Field(_this, {
2126
+ // autoUnmount: false,
2127
+ onChange: function onChange(name) {
2128
+ var subscribes = _this.fieldSubscribeies[name];
2129
+ if (subscribes) {
2130
+ // this.field.reset(Object.keys(subscribes));
2131
+ Object.keys(subscribes).forEach(function (key) {
2132
+ subscribes[key]();
2133
+ });
2134
+ }
2135
+ // 节流校验
2136
+ if (_this.timer) clearTimeout(_this.timer);
2137
+ _this.timer = setTimeout(function () {
2138
+ _this.timer = null;
2139
+ _this.changedValidate();
2140
+ }, 600);
2141
+ }
2142
+ });
2143
+
2144
+ // dbg
2145
+ window.__debug_field = _this.field;
2146
+ _this.runParamConfigField = new Field(_this, {
2147
+ autoUnmount: false
2148
+ });
2149
+ _this.state = getDefaultState(props);
2150
+ return _this;
2151
+ }
2152
+ _inheritsLoose(PipelineFlowDialog, _Component);
2153
+ var _proto = PipelineFlowDialog.prototype;
2154
+ _proto.UNSAFE_componentWillReceiveProps = function UNSAFE_componentWillReceiveProps(newProps) {
2155
+ console.count('componentWillReceiveProps');
2156
+ console.log(newProps);
2157
+ };
2158
+ _proto.componentDidMount = function componentDidMount() {
2159
+ var _this4 = this;
2160
+ if (this.props.type !== 'template') {
2161
+ this.checkPermission();
2162
+ }
2163
+ if (this.props.type !== 'template' || this.props.model === 'add') {
2164
+ this.checkPreviewUnSavedContent().then(function () {
2165
+ _this4.fetchPipeline();
2166
+ });
2167
+ } else if (this.props.type === 'template' && this.props.model === 'edit') {
2168
+ if (this.props.pipelineTemplateId) {
2169
+ this.fetchCustomPipelineTemplate();
2170
+ } else if (this.props.getPipeline) {
2171
+ this.fetchPipeline();
2172
+ console.log('fetch pipeline');
2173
+ } else {
2174
+ throw new Error('============ params error ============');
2175
+ }
2176
+ // todo
2177
+ } else if (this.props.model === 'create' || this.props.model === 'create-pac') {
2178
+ this.initCreateCustomPipelineTemplate();
2179
+ }
2180
+ this.fetchSteps();
2181
+ this.fetchPlugins();
2182
+
2183
+ // 注册快捷键
2184
+ document.addEventListener('keydown', this.bindShortcuts);
2185
+ };
2186
+ _proto.componentWillUnmount = function componentWillUnmount() {
2187
+ document.removeEventListener('keydown', this.bindShortcuts);
2188
+ };
2189
+ _proto.checkPreviewUnSavedContent = function checkPreviewUnSavedContent() {
2190
+ var _this5 = this;
2191
+ return new Promise(function (resolve, reject) {
2192
+ _this5.setState({
2193
+ requesting: true
2194
+ });
2195
+ var preUnSavedPipeline = _this5.getDrfatCache();
2196
+ if (preUnSavedPipeline) {
2197
+ var _ref28 = preUnSavedPipeline || {},
2198
+ _ref28$pipelineVo = _ref28.pipelineVo,
2199
+ _ref28$pipelineVo2 = _ref28$pipelineVo === void 0 ? {} : _ref28$pipelineVo,
2200
+ _ref28$pipelineVo2$pi = _ref28$pipelineVo2.pipelineConfigVo,
2201
+ _ref28$pipelineVo2$pi2 = _ref28$pipelineVo2$pi === void 0 ? {} : _ref28$pipelineVo2$pi,
2202
+ sources = _ref28$pipelineVo2$pi2.sources;
2203
+ setTimeout(function () {
2204
+ Dialog.confirm({
2205
+ messageProps: {
2206
+ type: 'notice'
2207
+ },
2208
+ title: intl.get({
2209
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.RestoreUnsavedContent',
2210
+ defaultMessage: '恢复未保存的内容'
2211
+ }),
2212
+ content: intl.get({
2213
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.IndicatesThatTheLastEditing',
2214
+ defaultMessage: '检测到上次编辑流水线未保存,是否恢复到上次编辑内容'
2215
+ }),
2216
+ onOk: function onOk() {
2217
+ _this5.cleanDrfatCache();
2218
+ _this5.setState({
2219
+ pipeline: preUnSavedPipeline,
2220
+ changed: true,
2221
+ blankFlow: false,
2222
+ originalSource: sources
2223
+ }, function () {
2224
+ setTimeout(function () {
2225
+ _this5.doValidate();
2226
+ }, 1000);
2227
+ reject();
2228
+ _this5.setState({
2229
+ requesting: false
2230
+ });
2231
+ });
2232
+ },
2233
+ onCancel: function onCancel() {
2234
+ _this5.cleanDrfatCache();
2235
+ clearOriginalFlow(_this5.props.pipelineId);
2236
+ resolve();
2237
+ },
2238
+ onClose: function onClose() {
2239
+ _this5.cleanDrfatCache();
2240
+ clearOriginalFlow(_this5.props.pipelineId);
2241
+ resolve();
2242
+ }
2243
+ });
2244
+ }, 1000);
2245
+ } else {
2246
+ resolve();
2247
+ }
2248
+ });
2249
+ };
2250
+ _proto.render = function render() {
2251
+ var _this6 = this;
2252
+ var _this$state4 = this.state,
2253
+ loading = _this$state4.loading,
2254
+ configDailogVisible = _this$state4.configDailogVisible,
2255
+ branchRepoConfigs = _this$state4.branchRepoConfigs,
2256
+ runningGlobalParams = _this$state4.runningGlobalParams,
2257
+ runPipelineButtonLoading = _this$state4.runPipelineButtonLoading,
2258
+ executinButtonDisable = _this$state4.executinButtonDisable,
2259
+ _this$state4$latestIn = _this$state4.latestInstance,
2260
+ latestInstance = _this$state4$latestIn === void 0 ? {} : _this$state4$latestIn,
2261
+ pipelineRunConfirmVisible = _this$state4.pipelineRunConfirmVisible,
2262
+ saveVisible = _this$state4.saveVisible,
2263
+ saveBtnLoading = _this$state4.saveBtnLoading,
2264
+ isSaveAndRun = _this$state4.isSaveAndRun,
2265
+ sourcePipeline = _this$state4.sourcePipeline,
2266
+ pipeline = _this$state4.pipeline;
2267
+
2268
+ // dbg
2269
+ // window._pipeline = this.state.pipeline;
2270
+
2271
+ var visible = this.props.visible;
2272
+ var prevRunningComment = JSON.parse((latestInstance || {}).context || '{}').FLOW_INST_RUNNING_COMMENT || '';
2273
+ return /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Dialog, {
2274
+ v2: false,
2275
+ className: PREFIX,
2276
+ visible: visible,
2277
+ footer: false,
2278
+ closeable: false,
2279
+ title: false,
2280
+ loading: loading,
2281
+ width: "100vw",
2282
+ closeMode: [],
2283
+ animation: {
2284
+ "in": 'expandInDown',
2285
+ out: 'expandOutUp'
2286
+ }
2287
+ }, this.header, this.content), !!configDailogVisible && /*#__PURE__*/React.createElement(RunParamConfigDialog, {
2288
+ visible: configDailogVisible,
2289
+ onClose: this.configDailogClose,
2290
+ branchRepoConfigs: branchRepoConfigs,
2291
+ setBranchRepoConfigs: this.setBranchRepoConfigs,
2292
+ runningGlobalParams: runningGlobalParams,
2293
+ onOk: this.executePipeline,
2294
+ field: this.runParamConfigField,
2295
+ loading: runPipelineButtonLoading,
2296
+ disabled: executinButtonDisable,
2297
+ prevRunningComment: prevRunningComment,
2298
+ pipelineId: this.props.pipelineId
2299
+ }), !!pipelineRunConfirmVisible && /*#__PURE__*/React.createElement(PipelineRunConfirm, _extends({
2300
+ visible: true,
2301
+ loading: runPipelineButtonLoading,
2302
+ extraDisabled: !prevRunningComment,
2303
+ onExtraClick: function onExtraClick() {
2304
+ _this6.runParamConfigField.setValue(pipelineRunCommitKey, removeDoubleQuote(prevRunningComment));
2305
+ },
2306
+ onClose: function onClose() {
2307
+ _this6.setState({
2308
+ pipelineRunConfirmVisible: false,
2309
+ loading: false
2310
+ });
2311
+ _this6.runParamConfigField.setValue(pipelineRunCommitKey, '');
2312
+ },
2313
+ onOk: this.executePipeline
2314
+ }, this.runParamConfigField.init(pipelineRunCommitKey))), saveVisible && /*#__PURE__*/React.createElement(PipelineSaveDiff, {
2315
+ visible: saveVisible,
2316
+ setVisible: function setVisible(v) {
2317
+ return _this6.setState({
2318
+ saveVisible: v
2319
+ });
2320
+ },
2321
+ saveLoading: saveBtnLoading,
2322
+ saveCallback: isSaveAndRun ? this.submitAndExecutePipeline : this.onClickPipelineSaveBtn,
2323
+ sourcePipeline: sourcePipeline,
2324
+ pipeline: pipeline,
2325
+ isSaveAndRun: isSaveAndRun
2326
+ }));
2327
+ };
2328
+ return _createClass(PipelineFlowDialog, [{
2329
+ key: "isPipelineAsCode",
2330
+ get: function get() {
2331
+ var _this$state$pipeline$;
2332
+ return ((_this$state$pipeline$ = this.state.pipeline.pipelineVo) === null || _this$state$pipeline$ === void 0 ? void 0 : _this$state$pipeline$.type) === 'PIPELINEASCODE';
2333
+ // || this.state.pipeline?.pipelineVo?.pipelineConfigVo?.pipelineType === 'PIPELINEASCODE'
2334
+ }
2335
+ }, {
2336
+ key: "isPacEnableGoTemplate",
2337
+ get: function get() {
2338
+ var _this$state$pipeline$2, _this$state$pipeline$3;
2339
+ return this.isPipelineAsCode && isStringWithTemplateMark((_this$state$pipeline$2 = this.state.pipeline.pipelineVo) === null || _this$state$pipeline$2 === void 0 ? void 0 : (_this$state$pipeline$3 = _this$state$pipeline$2.pipelineConfigVo) === null || _this$state$pipeline$3 === void 0 ? void 0 : _this$state$pipeline$3.flow);
2340
+ }
2341
+ }, {
2342
+ key: "header",
2343
+ get: function get() {
2344
+ var _this7 = this;
2345
+ var _this$state5 = this.state,
2346
+ navValue = _this$state5.navValue,
2347
+ _this$state5$invalida = _this$state5.invalidateTasks,
2348
+ invalidateTasks = _this$state5$invalida === void 0 ? [] : _this$state5$invalida,
2349
+ _this$state5$pipeline = _this$state5.pipeline,
2350
+ pipeline = _this$state5$pipeline === void 0 ? {} : _this$state5$pipeline,
2351
+ pipelineNameChangeLoading = _this$state5.pipelineNameChangeLoading,
2352
+ _this$props2 = this.props,
2353
+ _this$props3 = _this$props2 === void 0 ? {} : _this$props2,
2354
+ type = _this$props3.type,
2355
+ trackPage = _this$props3.trackPage;
2356
+ var enableYAML = /yaml=true/.test(location.search);
2357
+ var navDataSource = [{
2358
+ text: intl.get({
2359
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.ProcessConfiguration',
2360
+ defaultMessage: '流程配置'
2361
+ }),
2362
+ key: 'flow',
2363
+ action: 'open flow chart dailog'
2364
+ }, {
2365
+ text: intl.get({
2366
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.VariablesAndCaches',
2367
+ defaultMessage: '变量和缓存'
2368
+ }),
2369
+ key: 'globalVar',
2370
+ action: 'open global params dailog'
2371
+ }];
2372
+ if (type !== 'template') {
2373
+ navDataSource.splice(1, 0, {
2374
+ text: intl.get({
2375
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.TriggerSettings',
2376
+ defaultMessage: '触发设置'
2377
+ }),
2378
+ key: 'scheduler',
2379
+ action: 'open timer setting dialog'
2380
+ });
2381
+ navDataSource.unshift({
2382
+ text: intl.get({
2383
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.BasicInformation',
2384
+ defaultMessage: '基本信息'
2385
+ }),
2386
+ key: 'baseInfo',
2387
+ action: 'open base info dailog'
2388
+ });
2389
+ }
2390
+ var getEditableLabel = function getEditableLabel() {
2391
+ return /*#__PURE__*/React.createElement(EditableLabel, {
2392
+ style: {
2393
+ margin: 0
2394
+ },
2395
+ hasLimitHint: true,
2396
+ loading: type === 'template' ? false : pipelineNameChangeLoading,
2397
+ value: (pipeline.pipelineVo || {}).name || '_label_loading_',
2398
+ onChange: function onChange(value) {
2399
+ type !== 'template' && _this7.setState({
2400
+ pipelineNameChangeLoading: true
2401
+ });
2402
+ _this7.onNameChange(value, function () {
2403
+ track({
2404
+ action: 'save pipeline name',
2405
+ page: trackPage || 'edit page',
2406
+ daysinceenterflow: intervalEnterTime()
2407
+ });
2408
+ type !== 'template' && _this7.setState({
2409
+ pipelineNameChangeLoading: false
2410
+ });
2411
+ });
2412
+ }
2413
+ });
2414
+ };
2415
+ return /*#__PURE__*/React.createElement("header", {
2416
+ className: PREFIX + "__header"
2417
+ }, /*#__PURE__*/React.createElement("div", {
2418
+ className: PREFIX + "__header--left"
2419
+ }, /*#__PURE__*/React.createElement(Tooltip, {
2420
+ trigger: /*#__PURE__*/React.createElement("div", {
2421
+ onClick: this.onClose,
2422
+ className: 'btn'
2423
+ }, /*#__PURE__*/React.createElement(YunxiaoIcon, {
2424
+ type: "arrow-left-line"
2425
+ }))
2426
+ }, intl.get({
2427
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.Return',
2428
+ defaultMessage: '返回'
2429
+ })), /*#__PURE__*/React.createElement("div", {
2430
+ className: "title"
2431
+ }, getEditableLabel())), /*#__PURE__*/React.createElement("div", {
2432
+ className: PREFIX + "__header--middle"
2433
+ }, /*#__PURE__*/React.createElement(CustomTab, {
2434
+ shape: 'wrapped',
2435
+ size: 'small',
2436
+ value: navValue,
2437
+ dataSource: navDataSource,
2438
+ onChange: function onChange(_ref29) {
2439
+ var key = _ref29.key,
2440
+ action = _ref29.action;
2441
+ _this7.setState({
2442
+ navValue: key
2443
+ });
2444
+ track({
2445
+ action: action,
2446
+ page: trackPage || 'edit page',
2447
+ daysinceenterflow: intervalEnterTime()
2448
+ });
2449
+ }
2450
+ })), /*#__PURE__*/React.createElement("div", {
2451
+ className: PREFIX + "__header--right"
2452
+ }, enableYAML && /*#__PURE__*/React.createElement(Switch, {
2453
+ checked: this.state.mode === YAML_MODE,
2454
+ onChange: function onChange(checked) {
2455
+ return _this7.setState({
2456
+ mode: checked ? YAML_MODE : LIST_MODE
2457
+ });
2458
+ }
2459
+ }), !!invalidateTasks.length && /*#__PURE__*/React.createElement("span", {
2460
+ className: cls('text', 'error', {
2461
+ link: true
2462
+ }),
2463
+ onClick: this.positionError
2464
+ }, /*#__PURE__*/React.createElement(YunxiaoIcon, {
2465
+ type: "info-fill",
2466
+ style: {
2467
+ color: 'red',
2468
+ marginRight: 6
2469
+ }
2470
+ }), intl.get({
2471
+ id: 'rdc-tb-cd-assets.teambition.pipeline-flow-dialog.InvalidatetasksloppyTasksAreNotConfigured',
2472
+ defaultMessage: '{invalidateTasksLength} 项任务未配置完'
2473
+ }, {
2474
+ invalidateTasksLength: invalidateTasks.length
2475
+ })), this.renderSaveBtn(), window.__isEmbedInAppstack && /*#__PURE__*/React.createElement(ButtonIcon, {
2476
+ name: "false-line",
2477
+ onClick: this.onClose
2478
+ })));
2479
+ }
2480
+ }, {
2481
+ key: "content",
2482
+ get: function get() {
2483
+ var _this8 = this,
2484
+ _pipeline$pipelineVo6;
2485
+ var _this$state6 = this.state,
2486
+ navValue = _this$state6.navValue,
2487
+ requesting = _this$state6.requesting,
2488
+ pipeline = _this$state6.pipeline,
2489
+ invalidateTasks = _this$state6.invalidateTasks,
2490
+ mode = _this$state6.mode,
2491
+ checkYamlBackendErrorList = _this$state6.checkYamlBackendErrorList;
2492
+ if (requesting || !pipeline.pipelineVo) return /*#__PURE__*/React.createElement(Loading, {
2493
+ inline: false,
2494
+ style: {
2495
+ height: 400
2496
+ }
2497
+ });
2498
+ var _ref30 = this.props || {},
2499
+ pipelineId = _ref30.pipelineId,
2500
+ trackPage = _ref30.trackPage,
2501
+ type = _ref30.type;
2502
+ var _ref31 = pipeline.pipelineVo || {},
2503
+ _ref31$pipelineConfig = _ref31.pipelineConfigVo,
2504
+ pipelineConfigVo = _ref31$pipelineConfig === void 0 ? {} : _ref31$pipelineConfig,
2505
+ name = _ref31.name,
2506
+ envId = _ref31.envId,
2507
+ _ref31$tagIds = _ref31.tagIds,
2508
+ tagIds = _ref31$tagIds === void 0 ? '' : _ref31$tagIds,
2509
+ groupId = _ref31.groupId,
2510
+ _ref31$uuid = _ref31.uuid,
2511
+ uuid = _ref31$uuid === void 0 ? '' : _ref31$uuid;
2512
+ var _ref32 = pipelineConfigVo || {},
2513
+ flow = _ref32.flow,
2514
+ settings = _ref32.settings,
2515
+ sources = _ref32.sources,
2516
+ _ref32$triggerVoList = _ref32.triggerVoList,
2517
+ schedulers = _ref32$triggerVoList === void 0 ? [] : _ref32$triggerVoList,
2518
+ webhook = _ref32.webhook;
2519
+ var flowEditComponent = this.isPipelineAsCode ? /*#__PURE__*/React.createElement(PipelineFlowEdit, {
2520
+ pipelineConfigVo: pipelineConfigVo,
2521
+ type: this.state.flowEditMode,
2522
+ isTemplate: this.props.type === 'template',
2523
+ setFlowEditMode: function setFlowEditMode(cb) {
2524
+ _this8.setState(cb);
2525
+ },
2526
+ onPacFlowChange: this.onPacFlowChange,
2527
+ checkYamlBackendErrorList: checkYamlBackendErrorList,
2528
+ doYamlBackendCheck: this.checkYamlByContent,
2529
+ yamlBackendValidateLoading: this.state.yamlBackendValidateLoading,
2530
+ setFeValidateMarkers: function setFeValidateMarkers(feValidateMarkers) {
2531
+ _this8.setState({
2532
+ feValidateMarkers: feValidateMarkers
2533
+ });
2534
+ },
2535
+ pipelineId: this.props.pipelineId
2536
+ // tpl
2537
+ ,
2538
+ goTemplateViewMode: this.state.goTemplateViewMode
2539
+ }) : null;
2540
+ var componentMap = {
2541
+ flow: flowEditComponent,
2542
+ baseInfo: /*#__PURE__*/React.createElement(PipelineFlowInfo, {
2543
+ flowInfo: {
2544
+ name: name,
2545
+ envId: envId,
2546
+ tagIds: tagIds,
2547
+ pipelineId: pipelineId,
2548
+ groupId: groupId,
2549
+ uuid: uuid
2550
+ },
2551
+ memberInfo: {
2552
+ pipelineId: pipelineId
2553
+ },
2554
+ onChange: this.onBaseInfoChange
2555
+ }),
2556
+ globalVar: /*#__PURE__*/React.createElement(PipelineFlowVar, {
2557
+ globalParams: JSON.parse(settings || '{}').globalParams || [],
2558
+ settings: JSON.parse(settings || '{}'),
2559
+ caches: JSON.parse(settings || '{}').caches,
2560
+ variableGroupIds: JSON.parse(settings || '{}').variableGroupIds || [],
2561
+ onSettingsChange: this.onSettingsChange,
2562
+ pipelineId: pipelineId,
2563
+ type: type
2564
+ }),
2565
+ scheduler: /*#__PURE__*/React.createElement(PipelineFlowScheduler, {
2566
+ schedulers: schedulers,
2567
+ webhookKey: webhook,
2568
+ settings: JSON.parse(settings || '{}'),
2569
+ onSettingsChange: this.onSettingsChange,
2570
+ onSchedulersChange: this.onSchedulersChange
2571
+ })
2572
+ };
2573
+ return /*#__PURE__*/React.createElement("div", {
2574
+ className: PREFIX + "__content"
2575
+ }, componentMap[navValue] ? componentMap[navValue] : componentMap.flow, this.isPipelineAsCode || /*#__PURE__*/React.createElement(PipelineFlowOrchestrator, {
2576
+ ref: function ref(_ref33) {
2577
+ _this8.flowRef = _ref33;
2578
+ },
2579
+ display: navValue === 'flow',
2580
+ pipelineId: pipelineId,
2581
+ sources: sources,
2582
+ webhook: webhook || utils.uuid(20),
2583
+ onSourcesChange: this.onSourcesChange,
2584
+ flow: flow,
2585
+ pipelineType: (_pipeline$pipelineVo6 = pipeline.pipelineVo) === null || _pipeline$pipelineVo6 === void 0 ? void 0 : _pipeline$pipelineVo6.type,
2586
+ settings: settings,
2587
+ field: this.field,
2588
+ invalidateTasks: invalidateTasks,
2589
+ onPipelineChange: this.onFlowChange,
2590
+ onErrors: this.onErrors,
2591
+ mode: mode,
2592
+ doValidate: this.doValidate,
2593
+ type: type,
2594
+ subscribe: this.subscribe,
2595
+ trackPage: trackPage,
2596
+ onUpdatePipeline: function onUpdatePipeline(newPipeline) {
2597
+ var _flow = YAML.safeDump(JSON.parse(JSON.stringify({
2598
+ schema: 'tb',
2599
+ pipeline: newPipeline
2600
+ })));
2601
+ set(pipeline, 'pipelineVo.pipelineConfigVo.flow', _flow);
2602
+ _this8.setState({
2603
+ pipeline: pipeline
2604
+ });
2605
+ _this8.saveDrfatCache(pipeline);
2606
+ },
2607
+ appstackChangeConfig: this.props.changeConfig
2608
+ }), /*#__PURE__*/React.createElement(Perf, null));
2609
+ }
2610
+ }]);
2611
+ }(Component);
2612
+ export default PipelineFlowDialog;