@noldova/git.window 0.0.6 → 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
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-pull-request-files.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-files/git-pull-request-files.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-files/git-pull-request-files.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,iBAAiB,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAe,MAAM,EAAE,SAAS,EAAE,SAAS,EACpL,MAAM,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACrG,OAAO,EAA4B,oBAAoB,EAAsB,MAAM,+BAA+B,CAAC;AACnH,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,UAAU,EAAE,qBAAqB,EAAE,aAAa,EAAE,cAAc,EAAE,eAAe,EAAE,QAAQ,EAAE,SAAS,EAAE,MACpI,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAEtH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAI/D,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,qBAAqB,EAAE,MAAM,+CAA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AO,CAAC,YAAY,CAAC,QAAQ,CAAC,kBAAkB,EAAE,IAAI,qBAAqB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;YACpJ,OAAO,IAAI,SAAS,CAAC,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;QAC5D,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;uGA1MU,4BAA4B;2FAA5B,4BAA4B,syBAK2C,qBAAqB,gECxCzG,gxGAqEA,uqFDpCY,eAAe,oJAAE,kBAAkB,6FAAE,qBAAqB,sGAAE,4BAA4B,2FAAE,gBAAgB;;2FAEzG,4BAA4B;kBANxC,SAAS;+BACE,4BAA4B,WAG7B,CAAC,eAAe,EAAE,kBAAkB,EAAE,qBAAqB,EAAE,4BAA4B,EAAE,gBAAgB,CAAC;qHAOnC,qBAAqB"}
@@ -0,0 +1,211 @@
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 { afterNextRender, Component, computed, effect, ElementRef, inject, Injector, input, output, PendingTasks, signal, untracked, viewChildren } from "@angular/core";
9
+ import { RuntimeRequestException, WindowException, WindowPartTokens } from "@noldova/desktop.window";
10
+ import { HostComment, HostPullRequestThreads, HostThread, ThreadStatus } from "@noldova/git.hosting.protocol";
11
+ import { AvatarSize, ButtonComponent, ButtonSize, ButtonVariant, SpinnerComponent, TextFieldComponent } from "@noldova/ui.components.angular";
12
+ import { MarkdownViewComponent } from "@noldova/ui.components.angular/markdown";
13
+ import { ThreadLine } from "../../models/thread-line.js";
14
+ import { Resources } from "../../../resources.js";
15
+ import { GitPersonAvatarComponent } from "../git-person-avatar/git-person-avatar.component.js";
16
+ import * as i0 from "@angular/core";
17
+ export class GitPullRequestThreadsComponent {
18
+ context = inject(WindowPartTokens.context);
19
+ tasks = inject(PendingTasks);
20
+ injector = inject(Injector);
21
+ attempt = signal(0, /* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
23
+ dates = new Intl.DateTimeFormat(undefined, Resources.commentDateFormat);
24
+ draftFields = viewChildren("draft", { ...(ngDevMode ? { debugName: "draftFields" } : /* istanbul ignore next */ {}), read: ElementRef });
25
+ generation = 0;
26
+ resources = Resources;
27
+ secondary = ButtonVariant.Secondary;
28
+ compact = ButtonSize.Compact;
29
+ small = AvatarSize.Small;
30
+ none = ThreadStatus.None;
31
+ threads = signal([], /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "threads" }] : /* istanbul ignore next */ []));
33
+ hasMore = signal(false, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "hasMore" }] : /* istanbul ignore next */ []));
35
+ isRead = signal(false, /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "isRead" }] : /* istanbul ignore next */ []));
37
+ failure = signal(null, /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
39
+ unfolded = signal(new Set(), /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "unfolded" }] : /* istanbul ignore next */ []));
41
+ drafts = signal(new Map(), /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "drafts" }] : /* istanbul ignore next */ []));
43
+ replying = signal(new Set(), /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "replying" }] : /* istanbul ignore next */ []));
45
+ busy = signal(new Set(), /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
47
+ writeFailures = signal(new Map(), /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "writeFailures" }] : /* istanbul ignore next */ []));
49
+ confirming = signal(null, /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "confirming" }] : /* istanbul ignore next */ []));
51
+ openCount = computed(() => this.threads().filter(t => Resources.openThreadStates.includes(t.state)).length, /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "openCount" }] : /* istanbul ignore next */ []));
53
+ host = input.required(/* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
55
+ reference = input.required(/* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "reference" }] : /* istanbul ignore next */ []));
57
+ isAutoComplete = input(false, /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "isAutoComplete" }] : /* istanbul ignore next */ []));
59
+ references = input(null, /* @ts-ignore */
60
+ ...(ngDevMode ? [{ debugName: "references" }] : /* istanbul ignore next */ []));
61
+ linkOpen = output();
62
+ goToLine = output();
63
+ constructor() {
64
+ effect(onCleanup => {
65
+ this.attempt();
66
+ const reference = this.reference();
67
+ let isCurrent = true;
68
+ onCleanup(() => {
69
+ isCurrent = false;
70
+ });
71
+ untracked(() => {
72
+ this.generation++;
73
+ this.threads.set([]);
74
+ this.hasMore.set(false);
75
+ this.isRead.set(false);
76
+ this.failure.set(null);
77
+ this.unfolded.set(new Set());
78
+ this.drafts.set(new Map());
79
+ this.replying.set(new Set());
80
+ this.busy.set(new Set());
81
+ this.writeFailures.set(new Map());
82
+ this.confirming.set(null);
83
+ void this.readAsync(reference, () => isCurrent);
84
+ });
85
+ });
86
+ }
87
+ retry() {
88
+ this.attempt.update(t => t + 1);
89
+ }
90
+ isFolded(thread) {
91
+ return Resources.doneThreadStates.includes(thread.state) && !this.unfolded().has(thread.id);
92
+ }
93
+ isOpen(thread) {
94
+ return !Resources.doneThreadStates.includes(thread.state);
95
+ }
96
+ lineOf(thread, path, line) {
97
+ return new ThreadLine(thread.id, path, line);
98
+ }
99
+ unfold(thread) {
100
+ this.unfolded.update(t => new Set([...t, thread.id]));
101
+ }
102
+ dateOf(comment) {
103
+ return this.dates.format(comment.publishedAt);
104
+ }
105
+ draftOf(thread) {
106
+ return this.drafts().get(thread.id) ?? "";
107
+ }
108
+ noteDrafts() {
109
+ const drafts = new Map(this.drafts());
110
+ for (const field of this.draftFields())
111
+ drafts.set(Number(field.nativeElement.dataset[Resources.threadData]), field.nativeElement.value);
112
+ this.drafts.set(drafts);
113
+ }
114
+ isReplying(thread) {
115
+ return this.replying().has(thread.id) || this.draftOf(thread).length > 0;
116
+ }
117
+ startReply(thread) {
118
+ this.replying.update(t => new Set([...t, thread.id]));
119
+ afterNextRender(() => this.draftFields().find(t => t.nativeElement.dataset[Resources.threadData] === String(thread.id))?.nativeElement.focus(), { injector: this.injector });
120
+ }
121
+ canReply(thread) {
122
+ return !this.busy().has(thread.id) && this.draftOf(thread).trim().length > 0;
123
+ }
124
+ async replyAsync(thread, method) {
125
+ const body = this.draftOf(thread);
126
+ const reply = { reference: this.reference().toJson(), thread: thread.id, parent: Math.min(...thread.comments.map(t => t.id)), body };
127
+ await this.writeAsync(thread, method, reply, answer => {
128
+ const comment = HostComment.fromJson(answer);
129
+ this.replace(thread.id, t => new HostThread(t.id, t.state, t.path, t.line, [...t.comments, comment]));
130
+ this.drafts.update(t => new Map([...t].filter(([id]) => id !== thread.id)));
131
+ this.replying.update(t => new Set([...t].filter(id => id !== thread.id)));
132
+ });
133
+ }
134
+ askChange(thread, method) {
135
+ if (this.isAutoComplete() && Resources.openThreadStates.includes(thread.state) && this.openCount() === 1) {
136
+ this.confirming.set(thread.id);
137
+ return;
138
+ }
139
+ void this.changeAsync(thread, method);
140
+ }
141
+ confirmChange(thread, method) {
142
+ this.confirming.set(null);
143
+ void this.changeAsync(thread, method);
144
+ }
145
+ cancelChange() {
146
+ this.confirming.set(null);
147
+ }
148
+ async changeAsync(thread, method) {
149
+ const state = this.isOpen(thread) ? ThreadStatus.Resolved : ThreadStatus.Active;
150
+ await this.writeAsync(thread, method, { reference: this.reference().toJson(), thread: thread.id, state }, () => {
151
+ this.unfold(thread);
152
+ this.replace(thread.id, t => new HostThread(t.id, state, t.path, t.line, t.comments));
153
+ });
154
+ }
155
+ replace(id, change) {
156
+ this.threads.update(threads => threads.map(t => t.id === id ? change(t) : t));
157
+ }
158
+ async writeAsync(thread, method, payload, done) {
159
+ const generation = this.generation;
160
+ const finished = this.tasks.add();
161
+ this.busy.update(t => new Set([...t, thread.id]));
162
+ this.writeFailures.update(t => new Map([...t].filter(([id]) => id !== thread.id)));
163
+ try {
164
+ const answer = await this.context.requestAsync(method, payload);
165
+ if (generation === this.generation)
166
+ done(answer);
167
+ }
168
+ catch (error) {
169
+ if (!(error instanceof WindowException))
170
+ throw error;
171
+ this.context.log(Resources.formatHostRequestFailed(this.host().name, method, String(error)));
172
+ if (generation === this.generation)
173
+ this.writeFailures.update(t => new Map([...t, [thread.id, error instanceof RuntimeRequestException ? error.message
174
+ : Resources.formatThreadWriteUnanswered(this.host().name)]]));
175
+ }
176
+ finally {
177
+ if (generation === this.generation)
178
+ this.busy.update(t => new Set([...t].filter(id => id !== thread.id)));
179
+ finished();
180
+ }
181
+ }
182
+ async readAsync(reference, isCurrent) {
183
+ const done = this.tasks.add();
184
+ const host = this.host();
185
+ try {
186
+ const list = HostPullRequestThreads.fromJson(await this.context.requestAsync(host.readThreadsMethod, reference.toJson()));
187
+ if (isCurrent()) {
188
+ this.threads.set(list.threads);
189
+ this.hasMore.set(list.hasMore);
190
+ this.isRead.set(true);
191
+ }
192
+ }
193
+ catch (error) {
194
+ if (!(error instanceof WindowException))
195
+ throw error;
196
+ this.context.log(Resources.formatHostRequestFailed(host.name, host.readThreadsMethod, String(error)));
197
+ if (isCurrent())
198
+ this.failure.set(error instanceof RuntimeRequestException ? error.message : Resources.formatThreadsUnanswered(host.name));
199
+ }
200
+ finally {
201
+ done();
202
+ }
203
+ }
204
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
205
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, 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<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ writeFailure }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\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.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\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.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.answer-failure {\n display: inline-flex;\n flex: 1;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }] });
206
+ }
207
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, decorators: [{
208
+ type: Component,
209
+ args: [{ selector: "nol-git-pull-request-threads", imports: [ButtonComponent, GitPersonAvatarComponent, MarkdownViewComponent, SpinnerComponent, TextFieldComponent], 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<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ writeFailure }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\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.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\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.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.answer-failure {\n display: inline-flex;\n flex: 1;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"] }]
210
+ }], ctorParameters: () => [], propDecorators: { draftFields: [{ type: i0.ViewChildren, args: ["draft", { ...{ read: ElementRef }, isSignal: true }] }], host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], isAutoComplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "isAutoComplete", required: false }] }], references: [{ type: i0.Input, args: [{ isSignal: true, alias: "references", required: false }] }], linkOpen: [{ type: i0.Output, args: ["linkOpen"] }], goToLine: [{ type: i0.Output, args: ["goToLine"] }] } });
211
+ //# sourceMappingURL=git-pull-request-threads.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-pull-request-threads.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EACvJ,MAAM,EAAE,SAAS,EAAE,YAAY,EAAuB,MAAM,eAAe,CAAC;AAE9E,OAAO,EAA2B,uBAAuB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC9H,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAsB,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAiD,gBAAgB,EAAE,kBAAkB,EAAE,MAC/I,gCAAgC,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;;AAQ/F,MAAM,OAAO,8BAA8B;IACxB,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,OAAO,GAA2B,MAAM,CAAS,CAAC;gFAAC,CAAC;IACpD,KA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* LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Component, computed, effect, ErrorHandler, inject, input, output, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { LinkPlace, WindowPartTokens } from "@noldova/desktop.window";
11
+ import { ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent } from "@noldova/ui.components.angular";
12
+ import { GitPullRequestsState } from "../../enums/git-pull-requests-state.js";
13
+ import { GitPullRequests } from "../../services/git-pull-requests.js";
14
+ import { Resources } from "../../../resources.js";
15
+ import * as i0 from "@angular/core";
16
+ export class GitPullRequestsComponent {
17
+ context = inject(WindowPartTokens.context);
18
+ errors = inject(ErrorHandler);
19
+ folder = input.required(/* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
21
+ remote = input.required(/* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "remote" }] : /* istanbul ignore next */ []));
23
+ current = input(null, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
25
+ canSwitch = input(false, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "canSwitch" }] : /* istanbul ignore next */ []));
27
+ switchTo = output();
28
+ resources = Resources;
29
+ states = GitPullRequestsState;
30
+ isOpen = signal(true, /* @ts-ignore */
31
+ ...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
32
+ shown = computed(() => this.remote(), { ...(ngDevMode ? { debugName: "shown" } : /* istanbul ignore next */ {}), equal: (a, b) => a.name === b.name && a.host === b.host && a.path === b.path && a.transport === b.transport });
33
+ host = computed(() => GitPullRequests.of(this.shown()), /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "host" }] : /* istanbul ignore next */ []));
35
+ list = computed(() => this.attempt(() => this.host()?.listFor(this.folder(), this.shown())() ?? null, null), /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
37
+ rows = computed(() => (this.list()?.rows ?? []).slice(0, Resources.shownPullRequests), /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
39
+ constructor() {
40
+ effect(() => {
41
+ this.host();
42
+ this.folder();
43
+ this.shown();
44
+ untracked(() => this.refresh());
45
+ });
46
+ }
47
+ refresh() {
48
+ const host = this.host();
49
+ if (!Object.isNull(host))
50
+ this.attempt(() => host.refresh(this.folder(), this.shown()), undefined);
51
+ }
52
+ toggle() {
53
+ this.isOpen.update(t => !t);
54
+ }
55
+ toneOf(row) {
56
+ if (row.failing > 0)
57
+ return "failed";
58
+ if (row.pending > 0)
59
+ return "pending";
60
+ return row.passed > 0 ? "ok" : "none";
61
+ }
62
+ noteOf(row) {
63
+ return Resources.formatPullRequestNote(row.failing, row.pending, row.approvals, row.isDraft);
64
+ }
65
+ isShown(row) {
66
+ const host = this.host();
67
+ return !Object.isNull(host) && this.attempt(() => host.isShown?.(this.folder(), row) === true, false);
68
+ }
69
+ open(row) {
70
+ const host = this.host();
71
+ if (!Object.isNull(host) && this.attempt(() => host.open?.(this.folder(), row) === true, false))
72
+ return;
73
+ this.openInBrowser(row);
74
+ }
75
+ openInBrowser(row) {
76
+ void this.context.openLinkAsync(row.url, { place: LinkPlace.System }).catch((error) => this.errors.handleError(error));
77
+ }
78
+ copyLink(row) {
79
+ navigator.clipboard.writeText(row.url).catch((error) => this.errors.handleError(error));
80
+ }
81
+ signIn(page) {
82
+ void this.context.runCommandAsync(Resources.openSettingsCommand, { [Resources.settingsPageArgument]: page }).catch((error) => this.errors.handleError(error));
83
+ }
84
+ attempt(run, fallback) {
85
+ try {
86
+ return run();
87
+ }
88
+ catch (error) {
89
+ this.errors.handleError(error);
90
+ return fallback;
91
+ }
92
+ }
93
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
94
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, 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 (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"list()?.failure ?? ''\">{{ list()?.failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\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: contents;\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.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row:not(.section) {\n padding-left: 1.875rem;\n}\n\n.row.section:hover,\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }] });
95
+ }
96
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, decorators: [{
97
+ type: Component,
98
+ args: [{ selector: "nol-git-pull-requests", imports: [ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent], host: { "(window:focus)": "refresh()" }, 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 (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"list()?.failure ?? ''\">{{ list()?.failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\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: contents;\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.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row:not(.section) {\n padding-left: 1.875rem;\n}\n\n.row.section:hover,\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"] }]
99
+ }], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], remote: [{ type: i0.Input, args: [{ isSignal: true, alias: "remote", required: true }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], canSwitch: [{ type: i0.Input, args: [{ isSignal: true, alias: "canSwitch", required: false }] }], switchTo: [{ type: i0.Output, args: ["switchTo"] }] } });
100
+ //# sourceMappingURL=git-pull-requests.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-pull-requests.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AAC/L,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAE/F,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AA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