@noldova/git.window 0.0.5 → 0.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (390) hide show
  1. package/package.json +34 -9
  2. package/src/api/index.d.ts +1593 -16
  3. package/src/api/index.js +33 -0
  4. package/src/api/index.js.map +1 -1
  5. package/src/app/components/git-account-dialog/git-account-dialog.component.js +29 -0
  6. package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -0
  7. package/src/app/components/git-accounts/git-accounts.component.js +44 -0
  8. package/src/app/components/git-accounts/git-accounts.component.js.map +1 -0
  9. package/src/app/components/git-agents/git-agents.component.js +54 -0
  10. package/src/app/components/git-agents/git-agents.component.js.map +1 -0
  11. package/src/app/components/git-branch-card/git-branch-card.component.js +6 -4
  12. package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
  13. package/src/app/components/git-branch-drop/git-branch-drop.component.js +84 -0
  14. package/src/app/components/git-branch-drop/git-branch-drop.component.js.map +1 -0
  15. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +38 -0
  16. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js.map +1 -0
  17. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +34 -0
  18. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js.map +1 -0
  19. package/src/app/components/git-command-log/git-command-log.component.js +91 -0
  20. package/src/app/components/git-command-log/git-command-log.component.js.map +1 -0
  21. package/src/app/components/git-commit-card/git-commit-card.component.js +41 -6
  22. package/src/app/components/git-commit-card/git-commit-card.component.js.map +1 -1
  23. package/src/app/components/git-commit-detail/git-commit-detail.component.js +263 -0
  24. package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -0
  25. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +27 -0
  26. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -0
  27. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +26 -0
  28. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js.map +1 -0
  29. package/src/app/components/git-conflicts/git-conflicts.component.js +251 -0
  30. package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -0
  31. package/src/app/components/git-diff-files/git-diff-files.component.js +178 -0
  32. package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -0
  33. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +29 -0
  34. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js.map +1 -0
  35. package/src/app/components/git-file-group/git-file-group.component.js +78 -5
  36. package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
  37. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +23 -0
  38. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js.map +1 -0
  39. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +30 -0
  40. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js.map +1 -0
  41. package/src/app/components/git-history/git-history.component.js +480 -0
  42. package/src/app/components/git-history/git-history.component.js.map +1 -0
  43. package/src/app/components/git-host-row/git-host-row.component.js +3 -4
  44. package/src/app/components/git-host-row/git-host-row.component.js.map +1 -1
  45. package/src/app/components/git-person-avatar/git-person-avatar.component.js +44 -0
  46. package/src/app/components/git-person-avatar/git-person-avatar.component.js.map +1 -0
  47. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +118 -0
  48. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -0
  49. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +123 -0
  50. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js.map +1 -0
  51. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +228 -0
  52. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -0
  53. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +211 -0
  54. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -0
  55. package/src/app/components/git-pull-requests/git-pull-requests.component.js +100 -0
  56. package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -0
  57. package/src/app/components/git-rebase/git-rebase.component.js +392 -0
  58. package/src/app/components/git-rebase/git-rebase.component.js.map +1 -0
  59. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +34 -0
  60. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js.map +1 -0
  61. package/src/app/components/git-reference-text/git-reference-text.component.js +56 -0
  62. package/src/app/components/git-reference-text/git-reference-text.component.js.map +1 -0
  63. package/src/app/components/git-repository/git-repository.component.js +289 -0
  64. package/src/app/components/git-repository/git-repository.component.js.map +1 -0
  65. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +27 -0
  66. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js.map +1 -0
  67. package/src/app/components/git-undo-menu/git-undo-menu.component.js +40 -0
  68. package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -0
  69. package/src/app/components/git-view/git-view.component.js +62 -10
  70. package/src/app/components/git-view/git-view.component.js.map +1 -1
  71. package/src/app/components/git-workspace/git-visible.directive.js +27 -0
  72. package/src/app/components/git-workspace/git-visible.directive.js.map +1 -0
  73. package/src/app/components/git-workspace/git-workspace.component.js +301 -0
  74. package/src/app/components/git-workspace/git-workspace.component.js.map +1 -0
  75. package/src/app/components/git-workspace-across/git-workspace-across.component.js +128 -0
  76. package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -0
  77. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +32 -0
  78. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js.map +1 -0
  79. package/src/app/components/git-workspaces/git-workspaces.component.js +55 -0
  80. package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -0
  81. package/src/app/enums/git-agent-state.js +15 -0
  82. package/src/app/enums/git-agent-state.js.map +1 -0
  83. package/src/app/enums/git-file-layout.js +14 -0
  84. package/src/app/enums/git-file-layout.js.map +1 -0
  85. package/src/app/enums/git-history-action.js +19 -0
  86. package/src/app/enums/git-history-action.js.map +1 -0
  87. package/src/app/enums/git-host-card-state.js +15 -0
  88. package/src/app/enums/git-host-card-state.js.map +1 -0
  89. package/src/app/enums/git-host-feature.js +17 -0
  90. package/src/app/enums/git-host-feature.js.map +1 -0
  91. package/src/app/enums/git-pull-request-state.js +15 -0
  92. package/src/app/enums/git-pull-request-state.js.map +1 -0
  93. package/src/app/enums/git-pull-requests-state.js +15 -0
  94. package/src/app/enums/git-pull-requests-state.js.map +1 -0
  95. package/src/app/enums/git-resolved-by.js +16 -0
  96. package/src/app/enums/git-resolved-by.js.map +1 -0
  97. package/src/app/enums/git-workspace-view.js +15 -0
  98. package/src/app/enums/git-workspace-view.js.map +1 -0
  99. package/src/app/interfaces/i-git-agents.js +8 -0
  100. package/src/app/interfaces/i-git-agents.js.map +1 -0
  101. package/src/app/interfaces/i-git-avatars.js +8 -0
  102. package/src/app/interfaces/i-git-avatars.js.map +1 -0
  103. package/src/app/interfaces/i-git-commit-prefixes.js +8 -0
  104. package/src/app/interfaces/i-git-commit-prefixes.js.map +1 -0
  105. package/src/app/interfaces/i-git-host-account.js +8 -0
  106. package/src/app/interfaces/i-git-host-account.js.map +1 -0
  107. package/src/app/interfaces/i-git-link-references.js +8 -0
  108. package/src/app/interfaces/i-git-link-references.js.map +1 -0
  109. package/src/app/interfaces/i-git-pull-request-host.js +8 -0
  110. package/src/app/interfaces/i-git-pull-request-host.js.map +1 -0
  111. package/src/app/interfaces/i-git-pull-requests.js +8 -0
  112. package/src/app/interfaces/i-git-pull-requests.js.map +1 -0
  113. package/src/app/interfaces/i-git-repository-links.js +8 -0
  114. package/src/app/interfaces/i-git-repository-links.js.map +1 -0
  115. package/src/app/interfaces/i-git-workspace-across-page.js +8 -0
  116. package/src/app/interfaces/i-git-workspace-across-page.js.map +1 -0
  117. package/src/app/interfaces/i-provided-git-commit-prefixes.js +8 -0
  118. package/src/app/interfaces/i-provided-git-commit-prefixes.js.map +1 -0
  119. package/src/app/interfaces/i-provided-git-host-account.js +8 -0
  120. package/src/app/interfaces/i-provided-git-host-account.js.map +1 -0
  121. package/src/app/models/focus-place.js +16 -0
  122. package/src/app/models/focus-place.js.map +1 -0
  123. package/src/app/models/focus-survivor.js +16 -0
  124. package/src/app/models/focus-survivor.js.map +1 -0
  125. package/src/app/models/git-agent-row.js +20 -0
  126. package/src/app/models/git-agent-row.js.map +1 -0
  127. package/src/app/models/git-branch-drop.js +40 -0
  128. package/src/app/models/git-branch-drop.js.map +1 -0
  129. package/src/app/models/git-branch-menu-item.js +3 -2
  130. package/src/app/models/git-branch-menu-item.js.map +1 -1
  131. package/src/app/models/git-branch-pull-request.js +49 -0
  132. package/src/app/models/git-branch-pull-request.js.map +1 -0
  133. package/src/app/models/git-branch-row.js +24 -0
  134. package/src/app/models/git-branch-row.js.map +1 -0
  135. package/src/app/models/git-branch-tree-node.js +16 -0
  136. package/src/app/models/git-branch-tree-node.js.map +1 -0
  137. package/src/app/models/git-branch-view.js +27 -0
  138. package/src/app/models/git-branch-view.js.map +1 -0
  139. package/src/app/models/git-bulk-outcome.js +16 -0
  140. package/src/app/models/git-bulk-outcome.js.map +1 -0
  141. package/src/app/models/git-bulk-result.js +18 -0
  142. package/src/app/models/git-bulk-result.js.map +1 -0
  143. package/src/app/models/git-bulk-target.js +22 -0
  144. package/src/app/models/git-bulk-target.js.map +1 -0
  145. package/src/app/models/git-check-counts.js +19 -0
  146. package/src/app/models/git-check-counts.js.map +1 -0
  147. package/src/app/models/git-chip-drag.js +20 -0
  148. package/src/app/models/git-chip-drag.js.map +1 -0
  149. package/src/app/models/git-chip-split.js +16 -0
  150. package/src/app/models/git-chip-split.js.map +1 -0
  151. package/src/app/models/git-code-span.js +54 -0
  152. package/src/app/models/git-code-span.js.map +1 -0
  153. package/src/app/models/git-comments-link.js +16 -0
  154. package/src/app/models/git-comments-link.js.map +1 -0
  155. package/src/app/models/git-commit-comments.js +18 -0
  156. package/src/app/models/git-commit-comments.js.map +1 -0
  157. package/src/app/models/git-commit-file-row.js +28 -0
  158. package/src/app/models/git-commit-file-row.js.map +1 -0
  159. package/src/app/models/git-commit-pull-request.js +28 -0
  160. package/src/app/models/git-commit-pull-request.js.map +1 -0
  161. package/src/app/models/git-commit-view.js +16 -0
  162. package/src/app/models/git-commit-view.js.map +1 -0
  163. package/src/app/models/git-conflict-detail.js +20 -0
  164. package/src/app/models/git-conflict-detail.js.map +1 -0
  165. package/src/app/models/git-detail-front.js +16 -0
  166. package/src/app/models/git-detail-front.js.map +1 -0
  167. package/src/app/models/git-detail-page.js +16 -0
  168. package/src/app/models/git-detail-page.js.map +1 -0
  169. package/src/app/models/git-diff-row.js +19 -8
  170. package/src/app/models/git-diff-row.js.map +1 -1
  171. package/src/app/models/git-file-group.js +2 -1
  172. package/src/app/models/git-file-group.js.map +1 -1
  173. package/src/app/models/git-file-item.js +22 -0
  174. package/src/app/models/git-file-item.js.map +1 -0
  175. package/src/app/models/git-file-line.js +16 -0
  176. package/src/app/models/git-file-line.js.map +1 -0
  177. package/src/app/models/git-file-row.js +4 -3
  178. package/src/app/models/git-file-row.js.map +1 -1
  179. package/src/app/models/git-first-conflicts-read.js +16 -0
  180. package/src/app/models/git-first-conflicts-read.js.map +1 -0
  181. package/src/app/models/git-folder-page.js +16 -0
  182. package/src/app/models/git-folder-page.js.map +1 -0
  183. package/src/app/models/git-force-push-offer.js +25 -0
  184. package/src/app/models/git-force-push-offer.js.map +1 -0
  185. package/src/app/models/git-graph-line.js +22 -0
  186. package/src/app/models/git-graph-line.js.map +1 -0
  187. package/src/app/models/git-graph-row.js +26 -0
  188. package/src/app/models/git-graph-row.js.map +1 -0
  189. package/src/app/models/git-history-ask.js +16 -0
  190. package/src/app/models/git-history-ask.js.map +1 -0
  191. package/src/app/models/git-history-row.js +39 -0
  192. package/src/app/models/git-history-row.js.map +1 -0
  193. package/src/app/models/git-history-toolbar.js +16 -0
  194. package/src/app/models/git-history-toolbar.js.map +1 -0
  195. package/src/app/models/git-host-card.js +24 -0
  196. package/src/app/models/git-host-card.js.map +1 -0
  197. package/src/app/models/git-host-row-view.js +9 -0
  198. package/src/app/models/git-host-row-view.js.map +1 -0
  199. package/src/app/models/git-host-tally.js +16 -0
  200. package/src/app/models/git-host-tally.js.map +1 -0
  201. package/src/app/models/git-labeled-prediction.js +16 -0
  202. package/src/app/models/git-labeled-prediction.js.map +1 -0
  203. package/src/app/models/git-lane-target.js +16 -0
  204. package/src/app/models/git-lane-target.js.map +1 -0
  205. package/src/app/models/git-lane.js +21 -0
  206. package/src/app/models/git-lane.js.map +1 -0
  207. package/src/app/models/git-last-write.js +18 -0
  208. package/src/app/models/git-last-write.js.map +1 -0
  209. package/src/app/models/git-line-counts.js +20 -0
  210. package/src/app/models/git-line-counts.js.map +1 -0
  211. package/src/app/models/git-marked-line.js +19 -0
  212. package/src/app/models/git-marked-line.js.map +1 -0
  213. package/src/app/models/git-moving-folder.js +16 -0
  214. package/src/app/models/git-moving-folder.js.map +1 -0
  215. package/src/app/models/git-operation-name.js +17 -0
  216. package/src/app/models/git-operation-name.js.map +1 -0
  217. package/src/app/models/git-path-entry.js +20 -0
  218. package/src/app/models/git-path-entry.js.map +1 -0
  219. package/src/app/models/git-predicted-line.js +18 -0
  220. package/src/app/models/git-predicted-line.js.map +1 -0
  221. package/src/app/models/git-prediction-ask.js +16 -0
  222. package/src/app/models/git-prediction-ask.js.map +1 -0
  223. package/src/app/models/git-provided-pull-requests.js +16 -0
  224. package/src/app/models/git-provided-pull-requests.js.map +1 -0
  225. package/src/app/models/git-pull-request-list.js +33 -0
  226. package/src/app/models/git-pull-request-list.js.map +1 -0
  227. package/src/app/models/git-pull-request-read.js +16 -0
  228. package/src/app/models/git-pull-request-read.js.map +1 -0
  229. package/src/app/models/git-pull-request-row.js +34 -0
  230. package/src/app/models/git-pull-request-row.js.map +1 -0
  231. package/src/app/models/git-pull-request-stack.js +18 -0
  232. package/src/app/models/git-pull-request-stack.js.map +1 -0
  233. package/src/app/models/git-rebase-landing.js +16 -0
  234. package/src/app/models/git-rebase-landing.js.map +1 -0
  235. package/src/app/models/git-rebase-preview.js +38 -0
  236. package/src/app/models/git-rebase-preview.js.map +1 -0
  237. package/src/app/models/git-rebase-row-plan.js +16 -0
  238. package/src/app/models/git-rebase-row-plan.js.map +1 -0
  239. package/src/app/models/git-rebase-row.js +82 -0
  240. package/src/app/models/git-rebase-row.js.map +1 -0
  241. package/src/app/models/git-rebase-start.js +16 -0
  242. package/src/app/models/git-rebase-start.js.map +1 -0
  243. package/src/app/models/git-ref-chip.js +75 -0
  244. package/src/app/models/git-ref-chip.js.map +1 -0
  245. package/src/app/models/git-reference-part.js +45 -0
  246. package/src/app/models/git-reference-part.js.map +1 -0
  247. package/src/app/models/git-repository-link.js +25 -0
  248. package/src/app/models/git-repository-link.js.map +1 -0
  249. package/src/app/models/git-repository-summary.js +60 -0
  250. package/src/app/models/git-repository-summary.js.map +1 -0
  251. package/src/app/models/git-resolved-file.js +16 -0
  252. package/src/app/models/git-resolved-file.js.map +1 -0
  253. package/src/app/models/git-reviews-read.js +18 -0
  254. package/src/app/models/git-reviews-read.js.map +1 -0
  255. package/src/app/models/git-row-pull-request.js +16 -0
  256. package/src/app/models/git-row-pull-request.js.map +1 -0
  257. package/src/app/models/git-shared-branch.js +16 -0
  258. package/src/app/models/git-shared-branch.js.map +1 -0
  259. package/src/app/models/git-signing-read.js +16 -0
  260. package/src/app/models/git-signing-read.js.map +1 -0
  261. package/src/app/models/git-status-bar-items.js +18 -0
  262. package/src/app/models/git-status-bar-items.js.map +1 -0
  263. package/src/app/models/git-switch-target.js +16 -0
  264. package/src/app/models/git-switch-target.js.map +1 -0
  265. package/src/app/models/git-text-around.js +18 -0
  266. package/src/app/models/git-text-around.js.map +1 -0
  267. package/src/app/models/git-track-counts.js +17 -0
  268. package/src/app/models/git-track-counts.js.map +1 -0
  269. package/src/app/models/git-workspace-across.js +22 -0
  270. package/src/app/models/git-workspace-across.js.map +1 -0
  271. package/src/app/models/git-workspace-host.js +55 -0
  272. package/src/app/models/git-workspace-host.js.map +1 -0
  273. package/src/app/models/git-workspace-overview.js +96 -0
  274. package/src/app/models/git-workspace-overview.js.map +1 -0
  275. package/src/app/models/git-workspace-review.js +20 -0
  276. package/src/app/models/git-workspace-review.js.map +1 -0
  277. package/src/app/models/git-workspace-reviews.js +16 -0
  278. package/src/app/models/git-workspace-reviews.js.map +1 -0
  279. package/src/app/models/git-workspace-row.js +185 -0
  280. package/src/app/models/git-workspace-row.js.map +1 -0
  281. package/src/app/models/git-workspace-run.js +23 -0
  282. package/src/app/models/git-workspace-run.js.map +1 -0
  283. package/src/app/models/git-workspace-side.js +25 -0
  284. package/src/app/models/git-workspace-side.js.map +1 -0
  285. package/src/app/models/git-workspace-view-count.js +16 -0
  286. package/src/app/models/git-workspace-view-count.js.map +1 -0
  287. package/src/app/models/git-workspace-view-label.js +16 -0
  288. package/src/app/models/git-workspace-view-label.js.map +1 -0
  289. package/src/app/models/git-workspace.js +47 -0
  290. package/src/app/models/git-workspace.js.map +1 -0
  291. package/src/app/models/thread-line.js +18 -0
  292. package/src/app/models/thread-line.js.map +1 -0
  293. package/src/app/services/commit-labels.js +44 -0
  294. package/src/app/services/commit-labels.js.map +1 -0
  295. package/src/app/services/focus-keeper.js +76 -0
  296. package/src/app/services/focus-keeper.js.map +1 -0
  297. package/src/app/services/git-agents.js +18 -0
  298. package/src/app/services/git-agents.js.map +1 -0
  299. package/src/app/services/git-avatars.js +34 -0
  300. package/src/app/services/git-avatars.js.map +1 -0
  301. package/src/app/services/git-branch-tree.js +50 -0
  302. package/src/app/services/git-branch-tree.js.map +1 -0
  303. package/src/app/services/git-code-colors.js +56 -0
  304. package/src/app/services/git-code-colors.js.map +1 -0
  305. package/src/app/services/git-command-logs.js +33 -0
  306. package/src/app/services/git-command-logs.js.map +1 -0
  307. package/src/app/services/git-commit-details.js +22 -0
  308. package/src/app/services/git-commit-details.js.map +1 -0
  309. package/src/app/services/git-commit-files.js +35 -0
  310. package/src/app/services/git-commit-files.js.map +1 -0
  311. package/src/app/services/git-commit-prefixes.js +32 -0
  312. package/src/app/services/git-commit-prefixes.js.map +1 -0
  313. package/src/app/services/git-conflict-details.js +22 -0
  314. package/src/app/services/git-conflict-details.js.map +1 -0
  315. package/src/app/services/git-counts.js +17 -0
  316. package/src/app/services/git-counts.js.map +1 -0
  317. package/src/app/services/git-detail-view.js +81 -0
  318. package/src/app/services/git-detail-view.js.map +1 -0
  319. package/src/app/services/git-file-tree.js +19 -0
  320. package/src/app/services/git-file-tree.js.map +1 -0
  321. package/src/app/services/git-folder.js +32 -6
  322. package/src/app/services/git-folder.js.map +1 -1
  323. package/src/app/services/git-graph-layout.js +80 -0
  324. package/src/app/services/git-graph-layout.js.map +1 -0
  325. package/src/app/services/git-gravatars.js +30 -0
  326. package/src/app/services/git-gravatars.js.map +1 -0
  327. package/src/app/services/git-history-asks.js +26 -0
  328. package/src/app/services/git-history-asks.js.map +1 -0
  329. package/src/app/services/git-history-rows.js +48 -0
  330. package/src/app/services/git-history-rows.js.map +1 -0
  331. package/src/app/services/git-history-selection.js +17 -0
  332. package/src/app/services/git-history-selection.js.map +1 -0
  333. package/src/app/services/git-host-accounts.js +33 -0
  334. package/src/app/services/git-host-accounts.js.map +1 -0
  335. package/src/app/services/git-last-write-undo.js +99 -0
  336. package/src/app/services/git-last-write-undo.js.map +1 -0
  337. package/src/app/services/git-link-reference-set.js +33 -0
  338. package/src/app/services/git-link-reference-set.js.map +1 -0
  339. package/src/app/services/git-link-references.js +31 -0
  340. package/src/app/services/git-link-references.js.map +1 -0
  341. package/src/app/services/git-new-branch.js +21 -0
  342. package/src/app/services/git-new-branch.js.map +1 -0
  343. package/src/app/services/git-path-layout.js +77 -0
  344. package/src/app/services/git-path-layout.js.map +1 -0
  345. package/src/app/services/git-pending-switch.js +30 -0
  346. package/src/app/services/git-pending-switch.js.map +1 -0
  347. package/src/app/services/git-pull-requests.js +43 -0
  348. package/src/app/services/git-pull-requests.js.map +1 -0
  349. package/src/app/services/git-rebase-previews.js +22 -0
  350. package/src/app/services/git-rebase-previews.js.map +1 -0
  351. package/src/app/services/git-rebasing.js +48 -0
  352. package/src/app/services/git-rebasing.js.map +1 -0
  353. package/src/app/services/git-recent-repositories.js +35 -0
  354. package/src/app/services/git-recent-repositories.js.map +1 -0
  355. package/src/app/services/git-repository-links.js +20 -0
  356. package/src/app/services/git-repository-links.js.map +1 -0
  357. package/src/app/services/git-repository-summaries.js +146 -0
  358. package/src/app/services/git-repository-summaries.js.map +1 -0
  359. package/src/app/services/git-resolving.js +32 -0
  360. package/src/app/services/git-resolving.js.map +1 -0
  361. package/src/app/services/git-runtime-client.js +112 -1
  362. package/src/app/services/git-runtime-client.js.map +1 -1
  363. package/src/app/services/git-status-bar.js +81 -0
  364. package/src/app/services/git-status-bar.js.map +1 -0
  365. package/src/app/services/git-status-follower.js +78 -0
  366. package/src/app/services/git-status-follower.js.map +1 -0
  367. package/src/app/services/git-view-options.js +15 -0
  368. package/src/app/services/git-view-options.js.map +1 -0
  369. package/src/app/services/git-view-state.service.js +232 -17
  370. package/src/app/services/git-view-state.service.js.map +1 -1
  371. package/src/app/services/git-viewing.js +31 -0
  372. package/src/app/services/git-viewing.js.map +1 -0
  373. package/src/app/services/git-window-part.js +93 -4
  374. package/src/app/services/git-window-part.js.map +1 -1
  375. package/src/app/services/git-window-storage.js +27 -0
  376. package/src/app/services/git-window-storage.js.map +1 -0
  377. package/src/app/services/git-workspace-across-views.js +22 -0
  378. package/src/app/services/git-workspace-across-views.js.map +1 -0
  379. package/src/app/services/git-workspace-bulk.js +81 -0
  380. package/src/app/services/git-workspace-bulk.js.map +1 -0
  381. package/src/app/services/git-workspace-pages.js +25 -0
  382. package/src/app/services/git-workspace-pages.js.map +1 -0
  383. package/src/app/services/git-workspace-pull-requests.js +199 -0
  384. package/src/app/services/git-workspace-pull-requests.js.map +1 -0
  385. package/src/app/services/git-workspace-sides.js +22 -0
  386. package/src/app/services/git-workspace-sides.js.map +1 -0
  387. package/src/app/services/git-workspaces.js +58 -0
  388. package/src/app/services/git-workspaces.js.map +1 -0
  389. package/src/resources.js +1153 -13
  390. package/src/resources.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"git-host-row.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAA4C,MAAM,eAAe,CAAC;AACvH,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAkC,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxF,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;;AAQ9D,MAAM,OAAO,mBAAmB;IACb,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,QAAQ,GAAuC,QAAQ,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;iFAAC,CAAC;IAE/F,SAAS,GAAqB,SAAS,CAAC;IACxC,GAAG,GAAsF,QAAQ,CAAC,GAAG,EAAE;QACxH,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7D,OAAO,QAAQ,KAAK,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC;YAChC,SAAS,EAAE,QAAQ,CAAC,GAAG,CAAC,SAAS;YACjC,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,E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C;QACpC,CAAC;IACH,CAAC;uGAnCU,mBAAmB;2FAAnB,mBAAmB,scCvBhC,ufAgBA,0tBDGY,iBAAiB;;2FAIhB,mBAAmB;kBAN/B,SAAS;+BACE,kBAAkB,WACnB,CAAC,iBAAiB,CAAC"}
1
+ {"version":3,"file":"git-host-row.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-host-row/git-host-row.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,eAAe,CAAC;AAC5G,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAkC,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAGxF,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;;AAQ9D,MAAM,OAAO,mBAAmB;IACb,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,QAAQ,GAAuC,QAAQ,CAAC,GAAG,EAAE,CAAC,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;iFAAC,CAAC;IAE/F,SAAS,GAAqB,SAAS,CAAC;IACxC,GAAG,GAAkC,QAAQ,CAAC,GAAG,EAAE;QACpE,MAAM,QAAQ,GAA+B,IAAI,CAAC,QAAQ,EAAE,CAAC;QAC7D,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,cAAc,CACxD,QAAQ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Ae,CAAC,IAAI;gBACvB,OAAO,SAAS,CAAC,QAAQ,CAAC;YAC5B;gBACE,OAAO,SAAS,CAAC,cAAc,CAAC;QACpC,CAAC;IACH,CAAC;uGAlCU,mBAAmB;2FAAnB,mBAAmB,scCzBhC,ufAgBA,0tBDKY,iBAAiB;;2FAIhB,mBAAmB;kBAN/B,SAAS;+BACE,kBAAkB,WACnB,CAAC,iBAAiB,CAAC"}
@@ -0,0 +1,44 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Component, computed, DestroyRef, ElementRef, inject, input, signal } from "@angular/core";
9
+ import { AvatarComponent, AvatarSize } from "@noldova/ui.components.angular";
10
+ import * as i0 from "@angular/core";
11
+ export class GitPersonAvatarComponent {
12
+ isSeen = signal(false, /* @ts-ignore */
13
+ ...(ngDevMode ? [{ debugName: "isSeen" }] : /* istanbul ignore next */ []));
14
+ shown = computed(() => this.image()
15
+ ?? (this.isSeen() ? this.host().personAvatarOf(this.reference(), this.login()) ?? null : null), /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
17
+ host = input.required(/* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
19
+ reference = input.required(/* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
21
+ login = input.required(/* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "login" }] : /* istanbul ignore next */ []));
23
+ image = input(null, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
25
+ size = input(AvatarSize.Normal, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
27
+ constructor() {
28
+ const observer = new IntersectionObserver(entries => {
29
+ if (!entries.some(t => t.isIntersecting))
30
+ return;
31
+ observer.disconnect();
32
+ this.isSeen.set(true);
33
+ });
34
+ observer.observe(inject(ElementRef).nativeElement);
35
+ inject(DestroyRef).onDestroy(() => observer.disconnect());
36
+ }
37
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPersonAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
38
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitPersonAvatarComponent, isStandalone: true, selector: "nol-git-person-avatar", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: true, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }] });
39
+ }
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPersonAvatarComponent, decorators: [{
41
+ type: Component,
42
+ args: [{ selector: "nol-git-person-avatar", imports: [AvatarComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"] }]
43
+ }], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], login: [{ type: i0.Input, args: [{ isSignal: true, alias: "login", required: true }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
44
+ //# sourceMappingURL=git-person-avatar.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-person-avatar.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-person-avatar/git-person-avatar.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-person-avatar/git-person-avatar.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAiC,MAAM,EAAuB,MAAM,eAAe,CAAC;AAEvJ,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;;AAU7E,MAAM,OAAO,wBAAwB;IAClB,MAAM,GAA4B,MAAM,CAAU,KAAK;+EAAC,CAAC;IAEvD,KAAK,GAA0B,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE;WACxE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,cAAc,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,IAAI,CAAC;8EAAC,CAAC;IAElF,IAAI,GAAqC,KAAK,CAAC,QAAQ;6EAAuB,CAAC;IAC/E,SAAS,GAA+B,KAAK,CAAC,QAAQ;kFAAiB,CAAC;IACxE,KAAK,GAAwB,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACtD,KAAK,GAA+B,KAAK,CAAgB,IAAI;8EAAC,CAAC;IAC/D,IAAI,GAA4B,KAAK,CAAa,UAAU,CAAC,MAAM;6EAAC,CAAC;IAErF;QACE,MAAM,QAAQ,GAAyB,IAAI,oBAAoB,CAAC,OAAO,CAAC,EAAE;YACxE,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,CAAC;gBACtC,OAAO;YACT,QAAQ,CAAC,UAAU,EAAE,CAAC;YACtB,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;QACxB,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,OAAO,CAAC,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC,CAAC;QAC5E,MAAM,CAAC,UAAU,CAAC,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,UAAU,EAAE,CAAC,CAAC;IAC5D,CAAC;uGArBU,wBAAwB;2FAAxB,wBAAwB,wrBCpBrC,wQASA,kSDSY,eAAe;;2FAEd,wBAAwB;kBANpC,SAAS;+BACE,uBAAuB,WAGxB,CAAC,eAAe,CAAC"}
@@ -0,0 +1,118 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Component, effect, inject, input, output, PendingTasks, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
11
+ import { HostPullRequestCommits } from "@noldova/git.hosting.protocol";
12
+ import { ButtonComponent, ButtonVariant, SpinnerComponent } from "@noldova/ui.components.angular";
13
+ import { GitFolder } from "../../services/git-folder.js";
14
+ import { GitHistorySelection } from "../../services/git-history-selection.js";
15
+ import { Resources } from "../../../resources.js";
16
+ import * as i0 from "@angular/core";
17
+ export class GitPullRequestCommitsComponent {
18
+ context = inject(WindowPartTokens.context);
19
+ tasks = inject(PendingTasks);
20
+ attempt = signal(0, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
22
+ dates = new Intl.DateTimeFormat(undefined, Resources.pullRequestCommitDateFormat);
23
+ resources = Resources;
24
+ secondary = ButtonVariant.Secondary;
25
+ list = signal(null, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
27
+ folder = signal(null, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
29
+ failure = signal(null, /* @ts-ignore */
30
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
31
+ isReading = signal(true, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
33
+ host = input.required(/* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
35
+ reference = input.required(/* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
37
+ url = input.required(/* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
39
+ counted = output();
40
+ constructor() {
41
+ effect(onCleanup => {
42
+ this.attempt();
43
+ GitFolder.folder();
44
+ const reference = this.reference();
45
+ let isCurrent = true;
46
+ onCleanup(() => {
47
+ isCurrent = false;
48
+ });
49
+ untracked(() => {
50
+ this.list.set(null);
51
+ this.folder.set(null);
52
+ this.failure.set(null);
53
+ this.isReading.set(true);
54
+ void this.readAsync(reference, () => isCurrent);
55
+ });
56
+ });
57
+ }
58
+ retry() {
59
+ this.attempt.update(t => t + 1);
60
+ }
61
+ shortOf(commit) {
62
+ return commit.id.slice(0, Resources.shortIdLength);
63
+ }
64
+ ageOf(commit) {
65
+ return Resources.formatPullRequestCommitAge(Date.now() - commit.authoredAt) ?? this.dates.format(commit.authoredAt);
66
+ }
67
+ open(commit) {
68
+ void this.openAsync(commit);
69
+ }
70
+ async openAsync(commit) {
71
+ const folder = this.folder();
72
+ const url = this.host().commitPageOf(this.url(), commit.id);
73
+ try {
74
+ if (Object.isNull(folder))
75
+ await this.context.openLinkAsync(url);
76
+ else
77
+ await GitHistorySelection.selectAsync(this.context, folder, commit.id);
78
+ }
79
+ catch (error) {
80
+ if (!(error instanceof WindowException))
81
+ throw error;
82
+ this.context.log(Object.isNull(folder) ? Resources.formatHostLinkFailed(this.host().name, url, String(error))
83
+ : Resources.formatHostRequestFailed(this.host().name, Resources.openHistoryCommand, String(error)));
84
+ }
85
+ }
86
+ async readAsync(reference, isCurrent) {
87
+ const done = this.tasks.add();
88
+ try {
89
+ const [answer, folder] = await Promise.all([this.context.requestAsync(this.host().readCommitsMethod, reference.toJson()),
90
+ this.host().localFolderAsync(this.url())]);
91
+ const list = HostPullRequestCommits.fromJson(answer);
92
+ if (isCurrent()) {
93
+ this.list.set(list);
94
+ this.folder.set(folder);
95
+ this.counted.emit(`${list.commits.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}`);
96
+ }
97
+ }
98
+ catch (error) {
99
+ if (!(error instanceof WindowException))
100
+ throw error;
101
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readCommitsMethod, String(error)));
102
+ if (isCurrent())
103
+ this.failure.set(Resources.formatPullRequestCommitsUnanswered(this.host().name));
104
+ }
105
+ finally {
106
+ if (isCurrent())
107
+ this.isReading.set(false);
108
+ done();
109
+ }
110
+ }
111
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestCommitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
112
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestCommitsComponent, isStandalone: true, selector: "nol-git-pull-request-commits", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
113
+ }
114
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestCommitsComponent, decorators: [{
115
+ type: Component,
116
+ args: [{ selector: "nol-git-pull-request-commits", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
117
+ }], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
118
+ //# sourceMappingURL=git-pull-request-commits.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-pull-request-commits.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAA8B,sBAAsB,EAAsB,MAAM,+BAA+B,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,E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GAAG,CAAC,MAAM,CAAC,CAAC;gBACxB,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAClG,CAAC;QACH,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACpH,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,kCAAkC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC;gBACO,CAAC;YACP,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,EAAE,CAAC;QACT,CAAC;IACH,CAAC;uGAjGU,8BAA8B;2FAA9B,8BAA8B,6eCzB3C,q4CAmCA,wqDDZY,eAAe,oJAAE,gBAAgB;;2FAEhC,8BAA8B;kBAN1C,SAAS;+BACE,8BAA8B,WAG/B,CAAC,eAAe,EAAE,gBAAgB,CAAC"}
@@ -0,0 +1,123 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Component, effect, inject, input, output, PendingTasks, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
11
+ import { HostPullRequestConflicts } from "@noldova/git.hosting.protocol";
12
+ import { GitFolderParams, GitNames, GitStatus, OperationKind } from "@noldova/git.protocol";
13
+ import { ButtonComponent, ButtonVariant, SpinnerComponent } from "@noldova/ui.components.angular";
14
+ import { GitFolder } from "../../services/git-folder.js";
15
+ import { Resources } from "../../../resources.js";
16
+ import * as i0 from "@angular/core";
17
+ export class GitPullRequestConflictsComponent {
18
+ context = inject(WindowPartTokens.context);
19
+ tasks = inject(PendingTasks);
20
+ attempt = signal(0, /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
22
+ resources = Resources;
23
+ secondary = ButtonVariant.Secondary;
24
+ list = signal(null, /* @ts-ignore */
25
+ ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
26
+ folder = signal(null, /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
28
+ failure = signal(null, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
30
+ isReading = signal(true, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
32
+ host = input.required(/* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
34
+ reference = input.required(/* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
36
+ url = input.required(/* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
38
+ changes = input.required(/* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "changes" }] : /* istanbul ignore next */ []));
40
+ counted = output();
41
+ constructor() {
42
+ effect(onCleanup => {
43
+ this.attempt();
44
+ GitFolder.folder();
45
+ const reference = this.reference();
46
+ let isCurrent = true;
47
+ onCleanup(() => {
48
+ isCurrent = false;
49
+ });
50
+ untracked(() => {
51
+ this.list.set(null);
52
+ this.folder.set(null);
53
+ this.failure.set(null);
54
+ this.isReading.set(true);
55
+ void this.readAsync(reference, () => isCurrent);
56
+ });
57
+ });
58
+ }
59
+ retry() {
60
+ this.attempt.update(t => t + 1);
61
+ }
62
+ open(folder) {
63
+ void this.openAsync(folder);
64
+ }
65
+ async openAsync(folder) {
66
+ try {
67
+ await this.context.runCommandAsync(Resources.openConflictsCommand, new GitFolderParams(folder).toJson());
68
+ }
69
+ catch (error) {
70
+ if (!(error instanceof WindowException))
71
+ throw error;
72
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, Resources.openConflictsCommand, String(error)));
73
+ }
74
+ }
75
+ async readAsync(reference, isCurrent) {
76
+ const done = this.tasks.add();
77
+ try {
78
+ const [answer, folder] = await Promise.all([this.context.requestAsync(this.host().readConflictsMethod, reference.toJson()),
79
+ this.host().localFolderAsync(this.url())]);
80
+ const list = HostPullRequestConflicts.fromJson(answer);
81
+ const merging = Object.isNull(folder) || list.paths.length === 0 ? null : await this.mergingFolderAsync(folder);
82
+ if (!isCurrent())
83
+ return;
84
+ this.list.set(list);
85
+ this.folder.set(merging);
86
+ this.counted.emit(`${list.paths.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}`);
87
+ }
88
+ catch (error) {
89
+ if (!(error instanceof WindowException))
90
+ throw error;
91
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readConflictsMethod, String(error)));
92
+ if (isCurrent())
93
+ this.failure.set(Resources.formatPullRequestConflictsUnanswered(this.host().name));
94
+ }
95
+ finally {
96
+ if (isCurrent())
97
+ this.isReading.set(false);
98
+ done();
99
+ }
100
+ }
101
+ async mergingFolderAsync(folder) {
102
+ const changes = this.changes();
103
+ try {
104
+ const status = GitStatus.fromJson(await this.context.requestAsync(GitNames.statusMethod, new GitFolderParams(folder).toJson()));
105
+ const isMerging = status.operation?.kind === OperationKind.Merge && !Object.isNull(status.branch)
106
+ && [changes?.headBranch, changes?.baseBranch].includes(status.branch);
107
+ return isMerging ? folder : null;
108
+ }
109
+ catch (error) {
110
+ if (!(error instanceof WindowException))
111
+ throw error;
112
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.statusMethod, String(error)));
113
+ return null;
114
+ }
115
+ }
116
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
117
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestConflictsComponent, isStandalone: true, selector: "nol-git-pull-request-conflicts", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, changes: { classPropertyName: "changes", publicName: "changes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
118
+ }
119
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestConflictsComponent, decorators: [{
120
+ type: Component,
121
+ args: [{ selector: "nol-git-pull-request-conflicts", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
122
+ }], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], changes: [{ type: i0.Input, args: [{ isSignal: true, alias: "changes", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
123
+ //# sourceMappingURL=git-pull-request-conflicts.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-pull-request-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAAoB,wBAAwB,EAAsB,MAAM,+BAA+B,CAAC;AAC/G,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,uBAAuB,CAAC;AAC5F,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,gCAAgC;IAC1B,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,OAAO,GAA2B,MAAM,CAAS,CAAC;gFAAC,CAAC;IAElD,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,IAAI,GAAoD,MAAM,CAAkC,IAAI;6EAAC,CAAC;IACtG,MAAM,GAAkC,MAAM,CAAgB,IAAI;+EAAC,CAAC;IACpE,OAAO,GAAkC,MAAM,CAAgB,IAAI;gFAAC,CAAC;IACrE,SAAS,GAA4B,MAAM,CAAU,IAAI;kFAAC,CAAC;IAE9D,IAAI,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AAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC;mBACrG,CAAC,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,UAAU,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC;YACxE,OAAO,SAAS,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC;QACnC,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,QAAQ,CAAC,YAAY,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YAC5G,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;uGArGU,gCAAgC;2FAAhC,gCAAgC,4mBCzB7C,gsDAuCA,slDDhBY,eAAe,oJAAE,gBAAgB;;2FAEhC,gCAAgC;kBAN5C,SAAS;+BACE,gCAAgC,WAGjC,CAAC,eAAe,EAAE,gBAAgB,CAAC"}
@@ -0,0 +1,228 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { afterRenderEffect, Component, computed, DestroyRef, effect, inject, input, output, PendingTasks, signal, untracked, viewChild } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
11
+ import { HostPullRequestFiles } from "@noldova/git.hosting.protocol";
12
+ import { DiffScope, DiffScopeKind, DiffTotals, GitCommitDetailParams, GitDiffParams, GitFetchParams, GitFolderParams, GitNames, GitStatus } from "@noldova/git.protocol";
13
+ import { ButtonComponent, ButtonVariant, FileBadgeComponent, SpinnerComponent } from "@noldova/ui.components.angular";
14
+ import { GitFileLayout } from "../../enums/git-file-layout.js";
15
+ import { GitFolder } from "../../services/git-folder.js";
16
+ import { GitPathLayout } from "../../services/git-path-layout.js";
17
+ import { GitRuntimeClient } from "../../services/git-runtime-client.js";
18
+ import { Resources } from "../../../resources.js";
19
+ import { GitDiffFilesComponent } from "../git-diff-files/git-diff-files.component.js";
20
+ import { GitFileLayoutButtonComponent } from "../git-file-layout-button/git-file-layout-button.component.js";
21
+ import * as i0 from "@angular/core";
22
+ export class GitPullRequestFilesComponent {
23
+ context = inject(WindowPartTokens.context);
24
+ tasks = inject(PendingTasks);
25
+ client = new GitRuntimeClient(this.context);
26
+ attempt = signal(0, /* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
28
+ diffFiles = viewChild(GitDiffFilesComponent, /* @ts-ignore */
29
+ ...(ngDevMode ? [{ debugName: "diffFiles" }] : /* istanbul ignore next */ []));
30
+ isFirstRead = true;
31
+ revealed = null;
32
+ resources = Resources;
33
+ secondary = ButtonVariant.Secondary;
34
+ list = signal(null, /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
36
+ folder = signal(null, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
38
+ scope = signal(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
40
+ failure = signal(null, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
42
+ isReading = signal(true, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
44
+ isFetching = signal(false, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "isFetching" }] : /* istanbul ignore next */ []));
46
+ fetchFailure = signal(null, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "fetchFailure" }] : /* istanbul ignore next */ []));
48
+ layout = signal(GitFileLayout.Folders, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
50
+ closed = signal(new Set(), /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "closed" }] : /* istanbul ignore next */ []));
52
+ files = signal([], /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
54
+ rows = computed(() => GitPathLayout.layout(this.files(), t => t.path, this.layout(), this.closed()), /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
56
+ host = input.required(/* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
58
+ reference = input.required(/* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
60
+ url = input.required(/* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
62
+ answer = input(null, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "answer" }] : /* istanbul ignore next */ []));
64
+ reveal = input(null, /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "reveal" }] : /* istanbul ignore next */ []));
66
+ counted = output();
67
+ unrevealed = output();
68
+ constructor() {
69
+ effect(onCleanup => {
70
+ this.attempt();
71
+ GitFolder.folder();
72
+ const reference = this.reference();
73
+ let isCurrent = true;
74
+ onCleanup(() => {
75
+ isCurrent = false;
76
+ });
77
+ untracked(() => {
78
+ const given = this.isFirstRead ? this.answer() : null;
79
+ this.isFirstRead = false;
80
+ this.list.set(null);
81
+ this.files.set([]);
82
+ this.folder.set(null);
83
+ this.scope.set(null);
84
+ this.failure.set(null);
85
+ this.isReading.set(true);
86
+ void this.readAsync(reference, given, () => isCurrent);
87
+ });
88
+ });
89
+ inject(DestroyRef).onDestroy(this.client.onChanged(folder => {
90
+ const list = this.list();
91
+ if (!Object.isNull(list) && folder === this.folder() && Object.isNull(this.scope()))
92
+ void this.placeAsync(folder, list);
93
+ }));
94
+ afterRenderEffect(() => {
95
+ const line = this.reveal();
96
+ if (Object.isNull(line) || line === this.revealed || this.isReading())
97
+ return;
98
+ const files = this.diffFiles();
99
+ if (!Object.isUndefined(files) && !files.isRead())
100
+ return;
101
+ this.revealed = line;
102
+ if (!Object.isUndefined(files) && files.holds(line.path))
103
+ untracked(() => files.reveal(line.path, line.line));
104
+ else
105
+ untracked(() => this.unrevealed.emit(line));
106
+ });
107
+ }
108
+ retry() {
109
+ this.attempt.update(t => t + 1);
110
+ }
111
+ insetOf(depth) {
112
+ return depth === 0 ? null : Resources.rowStartRem + depth * Resources.commitFileStepRem;
113
+ }
114
+ nameOf(path) {
115
+ return path.slice(path.lastIndexOf(Resources.slash) + 1);
116
+ }
117
+ toggle(folder) {
118
+ const closed = new Set(this.closed());
119
+ if (!closed.delete(folder))
120
+ closed.add(folder);
121
+ this.closed.set(closed);
122
+ }
123
+ letterOf(file) {
124
+ return Resources.pullRequestFileLetters[file.kind];
125
+ }
126
+ fetch(folder) {
127
+ void this.fetchAsync(folder);
128
+ }
129
+ async fetchAsync(folder) {
130
+ const done = this.tasks.add();
131
+ this.isFetching.set(true);
132
+ this.fetchFailure.set(null);
133
+ try {
134
+ const status = GitStatus.fromJson(await this.context.requestAsync(GitNames.statusMethod, new GitFolderParams(folder).toJson()));
135
+ await this.context.requestAsync(GitNames.fetchMethod, new GitFetchParams(folder, status.fingerprint).toJson());
136
+ this.retry();
137
+ }
138
+ catch (error) {
139
+ if (!(error instanceof WindowException))
140
+ throw error;
141
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.fetchMethod, String(error)));
142
+ this.fetchFailure.set(Resources.pullRequestFilesFetchFailed);
143
+ }
144
+ finally {
145
+ this.isFetching.set(false);
146
+ done();
147
+ }
148
+ }
149
+ async readAsync(reference, given, isCurrent) {
150
+ const done = this.tasks.add();
151
+ try {
152
+ const [list, folder] = await Promise.all([given ?? this.readListAsync(reference), this.host().localFolderAsync(this.url())]);
153
+ const scope = Object.isNull(folder) || Object.isNull(list.sourceCommit) || Object.isNull(list.commonCommit) ? null
154
+ : await this.scopeAsync(folder, list.commonCommit, list.sourceCommit);
155
+ const totals = Object.isNull(folder) || Object.isNull(scope) ? null : await this.totalsAsync(folder, scope);
156
+ if (!isCurrent())
157
+ return;
158
+ this.list.set(list);
159
+ this.files.set(list.files);
160
+ this.folder.set(folder);
161
+ this.scope.set(scope);
162
+ this.counted.emit(Object.isNull(totals) ? `${list.files.length}${list.hasMore ? Resources.pullRequestMoreMark : ""}` : String(totals.files));
163
+ }
164
+ catch (error) {
165
+ if (!(error instanceof WindowException))
166
+ throw error;
167
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, this.host().readChangesMethod, String(error)));
168
+ if (isCurrent())
169
+ this.failure.set(Resources.formatPullRequestFilesUnanswered(this.host().name));
170
+ }
171
+ finally {
172
+ if (isCurrent())
173
+ this.isReading.set(false);
174
+ done();
175
+ }
176
+ }
177
+ async readListAsync(reference) {
178
+ return HostPullRequestFiles.fromJson(await this.context.requestAsync(this.host().readChangesMethod, reference.toJson()));
179
+ }
180
+ async totalsAsync(folder, scope) {
181
+ try {
182
+ return DiffTotals.fromJson(await this.context.requestAsync(GitNames.diffTotalsMethod, new GitDiffParams(folder, scope).toJson()));
183
+ }
184
+ catch (error) {
185
+ if (!(error instanceof WindowException))
186
+ throw error;
187
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, GitNames.diffTotalsMethod, String(error)));
188
+ return null;
189
+ }
190
+ }
191
+ async placeAsync(folder, list) {
192
+ if (Object.isNull(list.sourceCommit) || Object.isNull(list.commonCommit))
193
+ return;
194
+ const done = this.tasks.add();
195
+ try {
196
+ const scope = await this.scopeAsync(folder, list.commonCommit, list.sourceCommit);
197
+ if (Object.isNull(scope) || this.list() !== list)
198
+ return;
199
+ const totals = await this.totalsAsync(folder, scope);
200
+ if (this.list() !== list)
201
+ return;
202
+ this.scope.set(scope);
203
+ if (!Object.isNull(totals))
204
+ this.counted.emit(String(totals.files));
205
+ }
206
+ finally {
207
+ done();
208
+ }
209
+ }
210
+ async scopeAsync(folder, common, source) {
211
+ try {
212
+ await Promise.all([common, source].map(t => this.context.requestAsync(GitNames.commitDetailMethod, new GitCommitDetailParams(folder, t).toJson())));
213
+ return new DiffScope(DiffScopeKind.Range, common, source);
214
+ }
215
+ catch (error) {
216
+ if (!(error instanceof WindowException))
217
+ throw error;
218
+ return null;
219
+ }
220
+ }
221
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
222
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestFilesComponent, isStandalone: true, selector: "nol-git-pull-request-files", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, answer: { classPropertyName: "answer", publicName: "answer", isSignal: true, isRequired: false, transformFunction: null }, reveal: { classPropertyName: "reveal", publicName: "reveal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { counted: "counted", unrevealed: "unrevealed" }, viewQueries: [{ propertyName: "diffFiles", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <div class=\"files-header\">\n <span class=\"caps\">{{ resources.formatFilesChanged(list.files.length) }}</span>\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n </div>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.files-header {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n padding: 0 var(--nol-space-1);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
223
+ }
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestFilesComponent, decorators: [{
225
+ type: Component,
226
+ args: [{ selector: "nol-git-pull-request-files", imports: [ButtonComponent, FileBadgeComponent, GitDiffFilesComponent, GitFileLayoutButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <div class=\"files-header\">\n <span class=\"caps\">{{ resources.formatFilesChanged(list.files.length) }}</span>\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n </div>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.files-header {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: space-between;\n min-width: 0;\n padding: 0 var(--nol-space-1);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
227
+ }], ctorParameters: () => [], propDecorators: { diffFiles: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GitDiffFilesComponent), { isSignal: true }] }], host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], answer: [{ type: i0.Input, args: [{ isSignal: true, alias: "answer", required: false }] }], reveal: [{ type: i0.Input, args: [{ isSignal: true, alias: "reveal", required: false }] }], counted: [{ type: i0.Output, args: ["counted"] }], unrevealed: [{ type: i0.Output, args: ["unrevealed"] }] } });
228
+ //# sourceMappingURL=git-pull-request-files.component.js.map