@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,56 @@
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, ErrorHandler, inject, Injector, input } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowPartTokens } from "@noldova/desktop.window";
11
+ import { LinkOpenEvent, LinkReferenceChipComponent, LinkReferenceWorkItemStateComponent } from "@noldova/ui.components.angular";
12
+ import { GitReferencePart } from "../../models/git-reference-part.js";
13
+ import { GitLinkReferences } from "../../services/git-link-references.js";
14
+ import * as i0 from "@angular/core";
15
+ export class GitReferenceTextComponent {
16
+ context = inject(WindowPartTokens.context);
17
+ errors = inject(ErrorHandler);
18
+ injector = inject(Injector);
19
+ text = input.required(/* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
21
+ folder = input.required(/* @ts-ignore */
22
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
23
+ link = input(null, /* @ts-ignore */
24
+ ...(ngDevMode ? [{ debugName: "link" }] : /* istanbul ignore next */ []));
25
+ title = input(null, /* @ts-ignore */
26
+ ...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
27
+ chipTabIndex = input(null, /* @ts-ignore */
28
+ ...(ngDevMode ? [{ debugName: "chipTabIndex" }] : /* istanbul ignore next */ []));
29
+ parts = computed(() => {
30
+ const source = GitLinkReferences.of(this.folder());
31
+ const link = this.link();
32
+ return Object.isNull(link) ? GitReferencePart.of(this.text(), source) : GitReferencePart.linked(this.text(), link, source);
33
+ }, /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "parts" }] : /* istanbul ignore next */ []));
35
+ chipOf(part) {
36
+ return part.reference?.() ?? null;
37
+ }
38
+ activate(event, url) {
39
+ event.preventDefault();
40
+ if (!Object.isNull(this.link()))
41
+ return;
42
+ event.stopPropagation();
43
+ this.open(new LinkOpenEvent(url, event));
44
+ }
45
+ open(opened) {
46
+ if (!GitLinkReferences.opens(this.folder(), opened.url, this.injector))
47
+ void this.context.openLinkAsync(opened.url, { gesture: opened.gesture }).catch((error) => this.errors.handleError(error));
48
+ }
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitReferenceTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitReferenceTextComponent, isStandalone: true, selector: "nol-git-reference-text", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, chipTabIndex: { classPropertyName: "chipTabIndex", publicName: "chipTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (part of parts(); track $index) {\n @if (part.url; as url) {\n @if (chipOf(part); as reference) {\n <a nol-link-reference-chip title=\"\" [reference]=\"reference\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\" (linkActivate)=\"open($event)\"></a>\n @if (reference.workItemState; as state) {{{ ' ' }}<nol-link-reference-work-item-state [state]=\"state\" />}\n @if (reference.title === null && title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n @else {\n <a class=\"reference\" [class.linked]=\"link() !== null\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\">{{ part.reference?.()?.reference ?? part.text }}</a>\n @if (title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n } @else {\n <span>{{ part.text }}</span>\n }\n}\n", styles: [".reference {\n color: var(--nol-link);\n text-decoration: none;\n}\n\n.reference:hover {\n text-decoration: underline;\n}\n\n.reference.linked {\n color: inherit;\n}\n\n:host(.line) {\n display: flex;\n align-items: baseline;\n min-width: 0;\n}\n\n:host(.line) > span,\n:host(.line) > .reference {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n\n:host(.line) > a[nol-link-reference-chip],\n:host(.line) > a[nol-link-reference-chip] ~ * {\n flex-shrink: 1000;\n}\n\n:host(.line) > a[nol-link-reference-chip] {\n min-width: calc(var(--nol-reference-mark) + var(--nol-icon) + 2 * var(--nol-space-1) + 1em);\n}\n\n:host(.line) > a[nol-link-reference-chip] ~ nol-link-reference-work-item-state {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference", "isInline"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceWorkItemStateComponent, selector: "nol-link-reference-work-item-state", inputs: ["state"] }] });
51
+ }
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitReferenceTextComponent, decorators: [{
53
+ type: Component,
54
+ args: [{ selector: "nol-git-reference-text", imports: [LinkReferenceChipComponent, LinkReferenceWorkItemStateComponent], template: "@for (part of parts(); track $index) {\n @if (part.url; as url) {\n @if (chipOf(part); as reference) {\n <a nol-link-reference-chip title=\"\" [reference]=\"reference\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\" (linkActivate)=\"open($event)\"></a>\n @if (reference.workItemState; as state) {{{ ' ' }}<nol-link-reference-work-item-state [state]=\"state\" />}\n @if (reference.title === null && title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n @else {\n <a class=\"reference\" [class.linked]=\"link() !== null\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\">{{ part.reference?.()?.reference ?? part.text }}</a>\n @if (title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n } @else {\n <span>{{ part.text }}</span>\n }\n}\n", styles: [".reference {\n color: var(--nol-link);\n text-decoration: none;\n}\n\n.reference:hover {\n text-decoration: underline;\n}\n\n.reference.linked {\n color: inherit;\n}\n\n:host(.line) {\n display: flex;\n align-items: baseline;\n min-width: 0;\n}\n\n:host(.line) > span,\n:host(.line) > .reference {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n\n:host(.line) > a[nol-link-reference-chip],\n:host(.line) > a[nol-link-reference-chip] ~ * {\n flex-shrink: 1000;\n}\n\n:host(.line) > a[nol-link-reference-chip] {\n min-width: calc(var(--nol-reference-mark) + var(--nol-icon) + 2 * var(--nol-space-1) + 1em);\n}\n\n:host(.line) > a[nol-link-reference-chip] ~ nol-link-reference-work-item-state {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n"] }]
55
+ }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], chipTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipTabIndex", required: false }] }] } });
56
+ //# sourceMappingURL=git-reference-text.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-reference-text.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-reference-text/git-reference-text.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-reference-text/git-reference-text.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,S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,MAAM,CAAC,CAAC;IAC7H,CAAC;8EAAC,CAAC;IAEO,MAAM,CAAC,IAAsB;QACrC,OAAO,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,IAAI,CAAC;IACpC,CAAC;IAES,QAAQ,CAAC,KAAiB,EAAE,GAAW;QAC/C,KAAK,CAAC,cAAc,EAAE,CAAC;QACvB,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC;YAC7B,OAAO;QACT,KAAK,CAAC,eAAe,EAAE,CAAC;QACxB,IAAI,CAAC,IAAI,CAAC,IAAI,aAAa,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;IAC3C,CAAC;IAES,IAAI,CAAC,MAAqB;QAClC,IAAI,CAAC,iBAAiB,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,CAAC;YACpE,KAAK,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,GAAG,EAAE,EAAE,OAAO,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IACvI,CAAC;uGApCU,yBAAyB;2FAAzB,yBAAyB,ssBCtBtC,m4BAeA,k2BDGY,0BAA0B,iJAAE,mCAAmC;;2FAI9D,yBAAyB;kBANrC,SAAS;+BACE,wBAAwB,WACzB,CAAC,0BAA0B,EAAE,mCAAmC,CAAC"}
@@ -0,0 +1,289 @@
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, effect, ErrorHandler, inject, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowPartTokens } from "@noldova/desktop.window";
11
+ import { ContextMenuTriggerDirective, DialogService, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, SpinnerComponent, TextFieldComponent, TooltipDirective } from "@noldova/ui.components.angular";
12
+ import { FormsModule } from "@angular/forms";
13
+ import { GitBranchView } from "../../models/git-branch-view.js";
14
+ import { GitAgentsComponent } from "../git-agents/git-agents.component.js";
15
+ import { GitPullRequestsComponent } from "../git-pull-requests/git-pull-requests.component.js";
16
+ import { GitCommitDetails } from "../../services/git-commit-details.js";
17
+ import { GitFolder } from "../../services/git-folder.js";
18
+ import { GitNewBranch } from "../../services/git-new-branch.js";
19
+ import { GitPendingSwitch } from "../../services/git-pending-switch.js";
20
+ import { GitRepositoryLinks } from "../../services/git-repository-links.js";
21
+ import { GitBranchTree } from "../../services/git-branch-tree.js";
22
+ import { GitRuntimeClient } from "../../services/git-runtime-client.js";
23
+ import { GitViewStateService } from "../../services/git-view-state.service.js";
24
+ import { GitViewing } from "../../services/git-viewing.js";
25
+ import { Resources } from "../../../resources.js";
26
+ import { GitTrackCounts } from "../../models/git-track-counts.js";
27
+ import * as i0 from "@angular/core";
28
+ import * as i1 from "@angular/forms";
29
+ export class GitRepositoryComponent {
30
+ context = inject(WindowPartTokens.context);
31
+ client = new GitRuntimeClient(this.context);
32
+ errors = inject(ErrorHandler);
33
+ dialogs = inject(DialogService);
34
+ status = signal(null, /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
36
+ branches = signal(null, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "branches" }] : /* istanbul ignore next */ []));
38
+ tracks = computed(() => new Map(this.branches()?.tracks.map(t => [t.branch, t])), /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "tracks" }] : /* istanbul ignore next */ []));
40
+ worktrees = signal(null, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "worktrees" }] : /* istanbul ignore next */ []));
42
+ items = signal(null, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
44
+ opened = signal(new Set([Resources.branchesLabel]), /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "opened" }] : /* istanbul ignore next */ []));
46
+ reading = 0;
47
+ renaming = signal(null, /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "renaming" }] : /* istanbul ignore next */ []));
49
+ newName = signal("", /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "newName" }] : /* istanbul ignore next */ []));
51
+ resources = Resources;
52
+ folder = GitFolder.folder;
53
+ failure = signal(null, /* @ts-ignore */
54
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
55
+ busy = signal(false, /* @ts-ignore */
56
+ ...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
57
+ isReading = computed(() => Object.isNull(this.branches()) && Object.isNull(this.failure()), /* @ts-ignore */
58
+ ...(ngDevMode ? [{ debugName: "isReading" }] : /* istanbul ignore next */ []));
59
+ readingIndent = Resources.rowInsetRem + Resources.treeStepRem;
60
+ changes = computed(() => this.status()?.entries.length ?? 0, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "changes" }] : /* istanbul ignore next */ []));
62
+ links = computed(() => {
63
+ const remote = this.status()?.remote ?? null;
64
+ return Object.isNull(remote) ? [] : GitRepositoryLinks.of(remote);
65
+ }, /* @ts-ignore */
66
+ ...(ngDevMode ? [{ debugName: "links" }] : /* istanbul ignore next */ []));
67
+ showsLink = computed(() => this.links().some(t => t.isActive()), /* @ts-ignore */
68
+ ...(ngDevMode ? [{ debugName: "showsLink" }] : /* istanbul ignore next */ []));
69
+ showsCommit = computed(() => !Object.isNull(GitViewing.commitOf(this.folder())), /* @ts-ignore */
70
+ ...(ngDevMode ? [{ debugName: "showsCommit" }] : /* istanbul ignore next */ []));
71
+ switching = computed(() => GitPendingSwitch.branchOf(this.folder()), /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "switching" }] : /* istanbul ignore next */ []));
73
+ current = computed(() => this.switching() ?? this.branches()?.current ?? null, /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
75
+ switchable = computed(() => this.busy() ? null : this.status(), /* @ts-ignore */
76
+ ...(ngDevMode ? [{ debugName: "switchable" }] : /* istanbul ignore next */ []));
77
+ ahead = computed(() => this.status()?.upstream?.ahead ?? 0, /* @ts-ignore */
78
+ ...(ngDevMode ? [{ debugName: "ahead" }] : /* istanbul ignore next */ []));
79
+ behind = computed(() => this.status()?.upstream?.behind ?? 0, /* @ts-ignore */
80
+ ...(ngDevMode ? [{ debugName: "behind" }] : /* istanbul ignore next */ []));
81
+ localRows = computed(() => GitBranchTree.localRowsOf(Resources.localTreeKey, this.branches()?.branches ?? [], this.opened()), /* @ts-ignore */
82
+ ...(ngDevMode ? [{ debugName: "localRows" }] : /* istanbul ignore next */ []));
83
+ remotes = computed(() => this.branches()?.remotes ?? [], /* @ts-ignore */
84
+ ...(ngDevMode ? [{ debugName: "remotes" }] : /* istanbul ignore next */ []));
85
+ remoteRows = computed(() => GitBranchTree.remoteRowsOf(this.remotes(), this.branches()?.remoteBranches ?? [], this.opened()), /* @ts-ignore */
86
+ ...(ngDevMode ? [{ debugName: "remoteRows" }] : /* istanbul ignore next */ []));
87
+ remotesOpen = computed(() => this.opened().has(Resources.remotesLabel), /* @ts-ignore */
88
+ ...(ngDevMode ? [{ debugName: "remotesOpen" }] : /* istanbul ignore next */ []));
89
+ remoteTracks = signal(new Map(), /* @ts-ignore */
90
+ ...(ngDevMode ? [{ debugName: "remoteTracks" }] : /* istanbul ignore next */ []));
91
+ remoteReading = 0;
92
+ worktreeFolders = computed(() => (this.worktrees()?.worktrees ?? []).map(t => t.path), /* @ts-ignore */
93
+ ...(ngDevMode ? [{ debugName: "worktreeFolders" }] : /* istanbul ignore next */ []));
94
+ constructor() {
95
+ effect(onCleanup => {
96
+ const folder = this.folder();
97
+ this.status.set(null);
98
+ this.branches.set(null);
99
+ this.worktrees.set(null);
100
+ this.items.set(null);
101
+ this.failure.set(null);
102
+ if (Object.isNull(folder))
103
+ return;
104
+ untracked(() => {
105
+ void this.readAsync(folder);
106
+ void this.client.watchAsync(folder).catch((error) => this.report(error));
107
+ });
108
+ onCleanup(() => void this.client.unwatchAsync(folder).catch((error) => this.report(error)));
109
+ });
110
+ effect(() => {
111
+ const folder = this.folder();
112
+ const branches = this.branches();
113
+ const reading = ++this.remoteReading;
114
+ if (Object.isNull(branches))
115
+ this.remoteTracks.set(new Map());
116
+ if (Object.isNull(folder) || Object.isNull(branches) || !this.remotesOpen())
117
+ return;
118
+ untracked(() => void this.readRemoteTracksAsync(folder, reading));
119
+ });
120
+ inject(DestroyRef).onDestroy(this.client.onChanged(folder => {
121
+ if (folder === this.folder())
122
+ void this.readAsync(folder);
123
+ }));
124
+ }
125
+ countsOf(branch, isCurrent) {
126
+ if (isCurrent)
127
+ return new GitTrackCounts(this.ahead(), this.behind());
128
+ const track = this.tracks().get(branch);
129
+ return Object.isUndefined(track) ? GitTrackCounts.NONE : new GitTrackCounts(track.ahead, track.behind);
130
+ }
131
+ remoteCountsOf(branch) {
132
+ const track = this.remoteTracks().get(branch);
133
+ return Object.isUndefined(track) ? GitTrackCounts.NONE : new GitTrackCounts(track.ahead, track.behind);
134
+ }
135
+ indentOf(row) {
136
+ return Resources.rowInsetRem + row.depth * Resources.treeStepRem;
137
+ }
138
+ isViewed(branch, isRemote) {
139
+ const view = GitViewing.branchOf(this.folder());
140
+ return !Object.isNull(view) && view.branch === branch && view.isRemote === isRemote;
141
+ }
142
+ isTagViewed(tag) {
143
+ const view = GitViewing.branchOf(this.folder());
144
+ return !Object.isNull(view) && view.branch === "" && view.commitId === tag.id;
145
+ }
146
+ viewTag(folder, tag) {
147
+ GitViewing.branch.set(new GitBranchView(folder, "", false, tag.id));
148
+ this.history(folder);
149
+ }
150
+ view(folder, branch, isRemote) {
151
+ GitViewing.branch.set(new GitBranchView(folder, branch, isRemote));
152
+ this.history(folder);
153
+ }
154
+ isOpen(section) {
155
+ return this.opened().has(section);
156
+ }
157
+ toggle(section) {
158
+ const opened = new Set(this.opened());
159
+ if (!opened.delete(section))
160
+ opened.add(section);
161
+ this.opened.set(opened);
162
+ }
163
+ showChanges() {
164
+ GitViewing.showChanges(this.folder());
165
+ this.context.showView(Resources.viewName);
166
+ }
167
+ showHistory(folder) {
168
+ const viewed = GitViewing.branchOf(folder);
169
+ const head = this.status()?.head ?? null;
170
+ if (!Object.isNull(viewed) && viewed.branch !== "")
171
+ GitViewing.branch.set(new GitBranchView(folder, viewed.branch, viewed.isRemote));
172
+ else if (!Object.isNull(head))
173
+ GitViewing.branch.set(new GitBranchView(folder, "", false, head));
174
+ GitCommitDetails.of(this.context).bringForward();
175
+ this.history(folder);
176
+ }
177
+ history(folder) {
178
+ this.context.openDocument(Resources.historyDocumentName, folder, Resources.formatHistoryTitle(folder));
179
+ }
180
+ switchTo(folder, name) {
181
+ const status = this.switchable();
182
+ if (Object.isNull(status) || name === this.current())
183
+ return;
184
+ void this.switchAsync(folder, name, status.fingerprint);
185
+ }
186
+ async switchAsync(folder, name, basedOn) {
187
+ await GitPendingSwitch.runAsync(folder, name, async () => { await this.writeAsync(folder, () => this.client.switchBranchAsync(folder, name, basedOn)); });
188
+ }
189
+ startRename(branch) {
190
+ this.failure.set(null);
191
+ this.renaming.set(branch);
192
+ this.newName.set(branch);
193
+ }
194
+ cancelRename() {
195
+ this.renaming.set(null);
196
+ }
197
+ async renameAsync(folder, branch, newName) {
198
+ const status = this.switchable();
199
+ const name = newName.trim();
200
+ if (Object.isNull(status) || name.length === 0)
201
+ return;
202
+ if (name === branch) {
203
+ this.renaming.set(null);
204
+ return;
205
+ }
206
+ if (await this.writeAsync(folder, () => this.client.renameBranchAsync(folder, branch, name, status.fingerprint)))
207
+ this.renaming.set(null);
208
+ }
209
+ async newBranchAsync(folder, status) {
210
+ const name = await GitNewBranch.askAsync(this.dialogs, Resources.formatHistoryTitle(folder));
211
+ if (!Object.isNull(name))
212
+ await this.writeAsync(folder, () => this.client.createBranchAsync(folder, name, status.fingerprint));
213
+ }
214
+ fetchAll(folder, status) {
215
+ void this.writeAsync(folder, () => this.client.fetchAsync(folder, status.fingerprint, true));
216
+ }
217
+ deleteBranch(folder, branch, status) {
218
+ void this.writeAsync(folder, () => this.client.deleteBranchAsync(folder, branch, status.fingerprint));
219
+ }
220
+ deleteTag(folder, tag, status) {
221
+ void this.writeAsync(folder, () => this.client.deleteTagAsync(folder, tag, status.fingerprint));
222
+ }
223
+ async writeAsync(folder, write) {
224
+ this.busy.set(true);
225
+ this.failure.set(null);
226
+ let done = false;
227
+ try {
228
+ await write();
229
+ done = true;
230
+ }
231
+ catch (error) {
232
+ this.report(error);
233
+ if (GitRuntimeClient.isFailure(error))
234
+ this.failure.set(GitViewStateService.messageOf(error));
235
+ }
236
+ finally {
237
+ this.busy.set(false);
238
+ if (folder === this.folder())
239
+ await this.readAsync(folder);
240
+ }
241
+ return done;
242
+ }
243
+ async readAsync(folder) {
244
+ const reading = ++this.reading;
245
+ try {
246
+ const [status, branches, worktrees, items] = await Promise.all([
247
+ this.client.statusAsync(folder), this.client.branchesAsync(folder), this.client.worktreesAsync(folder), this.client.repositoryItemsAsync(folder)
248
+ ]);
249
+ if (reading !== this.reading)
250
+ return;
251
+ this.status.set(status);
252
+ this.branches.set(branches);
253
+ this.worktrees.set(worktrees);
254
+ this.items.set(items);
255
+ }
256
+ catch (error) {
257
+ if (reading !== this.reading)
258
+ return;
259
+ this.report(error);
260
+ if (GitRuntimeClient.isFailure(error))
261
+ this.failure.set(GitRuntimeClient.failureOf(error)?.message ?? Resources.historyFailed);
262
+ }
263
+ }
264
+ async readRemoteTracksAsync(folder, reading) {
265
+ try {
266
+ const remote = await this.client.remoteTracksAsync(folder);
267
+ if (reading === this.remoteReading)
268
+ this.remoteTracks.set(new Map(remote.tracks.map(t => [t.branch, t])));
269
+ }
270
+ catch (error) {
271
+ if (reading !== this.remoteReading)
272
+ return;
273
+ this.remoteTracks.set(new Map());
274
+ this.report(error);
275
+ }
276
+ }
277
+ report(error) {
278
+ if (!GitRuntimeClient.isFailure(error))
279
+ this.errors.handleError(error);
280
+ }
281
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
282
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRepositoryComponent, isStandalone: true, selector: "nol-git-repository", 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 (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <div class=\"row heading section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.branchesLabel)\" (click)=\"toggle(resources.branchesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.branchesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.branchesLabel }}</span>\n </button>\n <button type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\" [nolTooltip]=\"resources.newBranchLabel\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </div>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.remotesLabel)\" (click)=\"toggle(resources.remotesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.remotesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.remotesLabel }}</span>\n </button>\n <span class=\"small muted\">{{ remotes().join(\", \") }}</span>\n </div>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n }\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.tagsLabel)\" (click)=\"toggle(resources.tagsLabel)\">\n <span class=\"ms\">{{ isOpen(resources.tagsLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.tagsLabel }}</span>\n </button>\n @if ((items()?.tags ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.tags ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.stashesLabel)\" (click)=\"toggle(resources.stashesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.stashesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.stashesLabel }}</span>\n </button>\n @if ((items()?.stashes ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.stashes ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.worktreesLabel)\" (click)=\"toggle(resources.worktreesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.worktreesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.worktreesLabel }}</span>\n </button>\n @if (worktreeFolders().length > 0) {\n <span class=\"small muted\">{{ worktreeFolders().length }}</span>\n }\n </div>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.submodulesLabel)\" (click)=\"toggle(resources.submodulesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.submodulesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.submodulesLabel }}</span>\n </button>\n @if ((items()?.submodules ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.submodules ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\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 box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\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.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\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.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\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.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.row.section {\n margin-top: 0.5rem;\n}\n\n.row.heading:hover {\n background: transparent;\n}\n\n.row.nested {\n padding-left: 1.75rem;\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.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\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.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: GitAgentsComponent, selector: "nol-git-agents", inputs: ["folder"] }, { kind: "component", type: GitPullRequestsComponent, selector: "nol-git-pull-requests", inputs: ["folder", "remote", "current", "canSwitch"], outputs: ["switchTo"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { 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" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
283
+ }
284
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, decorators: [{
285
+ type: Component,
286
+ args: [{ selector: "nol-git-repository", imports: [ContextMenuTriggerDirective, FormsModule, GitAgentsComponent, GitPullRequestsComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent,
287
+ SpinnerComponent, TextFieldComponent, TooltipDirective], 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 (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <div class=\"row heading section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.branchesLabel)\" (click)=\"toggle(resources.branchesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.branchesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.branchesLabel }}</span>\n </button>\n <button type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\" [nolTooltip]=\"resources.newBranchLabel\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </div>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.remotesLabel)\" (click)=\"toggle(resources.remotesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.remotesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.remotesLabel }}</span>\n </button>\n <span class=\"small muted\">{{ remotes().join(\", \") }}</span>\n </div>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n }\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.tagsLabel)\" (click)=\"toggle(resources.tagsLabel)\">\n <span class=\"ms\">{{ isOpen(resources.tagsLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.tagsLabel }}</span>\n </button>\n @if ((items()?.tags ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.tags ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.stashesLabel)\" (click)=\"toggle(resources.stashesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.stashesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.stashesLabel }}</span>\n </button>\n @if ((items()?.stashes ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.stashes ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.worktreesLabel)\" (click)=\"toggle(resources.worktreesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.worktreesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.worktreesLabel }}</span>\n </button>\n @if (worktreeFolders().length > 0) {\n <span class=\"small muted\">{{ worktreeFolders().length }}</span>\n }\n </div>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.submodulesLabel)\" (click)=\"toggle(resources.submodulesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.submodulesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.submodulesLabel }}</span>\n </button>\n @if ((items()?.submodules ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.submodules ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\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 box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\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.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\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.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\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.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.row.section {\n margin-top: 0.5rem;\n}\n\n.row.heading:hover {\n background: transparent;\n}\n\n.row.nested {\n padding-left: 1.75rem;\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.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\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.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"] }]
288
+ }], ctorParameters: () => [] });
289
+ //# sourceMappingURL=git-repository.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-repository.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AACnJ,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EACtK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OA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;2FAAtB,sBAAsB,8ECxCnC,0zZAkNA,o2GD/KY,2BAA2B,oJAAE,WAAW,+pCAAE,kBAAkB,+EAAE,wBAAwB,+IAAE,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,sBAAsB,+DAC7K,gBAAgB,2EAAE,kBAAkB,+GAAE,gBAAgB;;2FAI7C,sBAAsB;kBAPlC,SAAS;+BACE,oBAAoB,WACrB,CAAC,2BAA2B,EAAE,WAAW,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB;wBAC7K,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC"}
@@ -0,0 +1,27 @@
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, input, output } from "@angular/core";
9
+ import { ButtonComponent, ButtonVariant, DialogComponent } from "@noldova/ui.components.angular";
10
+ import { Resources } from "../../../resources.js";
11
+ import * as i0 from "@angular/core";
12
+ export class GitSwitchMergeDialogComponent {
13
+ resources = Resources;
14
+ secondary = ButtonVariant.Secondary;
15
+ text = computed(() => Resources.formatSwitchMergeText(this.drop().source, this.drop().target), /* @ts-ignore */
16
+ ...(ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []));
17
+ drop = input.required(/* @ts-ignore */
18
+ ...(ngDevMode ? [{ debugName: "drop" }] : /* istanbul ignore next */ []));
19
+ answered = output();
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitSwitchMergeDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitSwitchMergeDialogComponent, isStandalone: true, selector: "nol-git-switch-merge-dialog", inputs: { drop: { classPropertyName: "drop", publicName: "drop", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, 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-dialog [title]=\"resources.switchMergeTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"switch-merge\" (click)=\"answered.emit(true)\">{{ resources.switchMergeLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\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.text {\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: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
22
+ }
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitSwitchMergeDialogComponent, decorators: [{
24
+ type: Component,
25
+ args: [{ selector: "nol-git-switch-merge-dialog", imports: [ButtonComponent, DialogComponent], 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-dialog [title]=\"resources.switchMergeTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"switch-merge\" (click)=\"answered.emit(true)\">{{ resources.switchMergeLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\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.text {\n margin: 0;\n}\n"] }]
26
+ }], propDecorators: { drop: [{ type: i0.Input, args: [{ isSignal: true, alias: "drop", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
27
+ //# sourceMappingURL=git-switch-merge-dialog.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-switch-merge-dialog.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAsC,MAAM,eAAe,CAAC;AACzH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;;AAQlD,MAAM,OAAO,6BAA6B;IACrB,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,IAAI,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,qBAAqB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,MAAM,CAAC;6EAAC,CAAC;IAElH,IAAI,GAA+B,KAAK,CAAC,QAAQ;6EAAiB,CAAC;IACnE,QAAQ,GAA8B,MAAM,EAAW,CAAC;uGAN7D,6BAA6B;2FAA7B,6BAA6B,0PCpB1C,onBAaA,wQDGY,eAAe,oJAAE,eAAe;;2FAI/B,6BAA6B;kBANzC,SAAS;+BACE,6BAA6B,WAC9B,CAAC,eAAe,EAAE,eAAe,CAAC"}
@@ -0,0 +1,40 @@
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, ErrorHandler, inject } from "@angular/core";
9
+ import { UndoMode } from "@noldova/git.protocol";
10
+ import { IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
11
+ import { Resources } from "../../../resources.js";
12
+ import { GitViewStateService } from "../../services/git-view-state.service.js";
13
+ import * as i0 from "@angular/core";
14
+ export class GitUndoMenuComponent {
15
+ errors = inject(ErrorHandler);
16
+ resources = Resources;
17
+ state = inject(GitViewStateService);
18
+ read() {
19
+ this.state.readRecentActionsAsync().catch((error) => this.errors.handleError(error));
20
+ }
21
+ labelOf(entry) {
22
+ return Resources.formatRecentAction(entry.method, entry.branch);
23
+ }
24
+ timeOf(entry) {
25
+ return new Date(entry.at).toLocaleString(Resources.dateLocale, Resources.authoredFormat);
26
+ }
27
+ canUndo(entry) {
28
+ return entry.undo !== UndoMode.None;
29
+ }
30
+ undo(entry) {
31
+ void this.state.undoEntryAsync(entry);
32
+ }
33
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
34
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (click)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { 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: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
35
+ }
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, decorators: [{
37
+ type: Component,
38
+ args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (click)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
39
+ }] });
40
+ //# sourceMappingURL=git-undo-menu.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-undo-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAwB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE/I,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;;AAO/E,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAE1C,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAElE,IAAI;QACZ,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAChG,CAAC;IAES,OAAO,CAAC,KAAsB;QACtC,OAAO,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClE,CAAC;I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