@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,251 @@
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, Injector, input, signal, untracked, viewChild } from "@angular/core";
9
+ import { CodeTextComponent } from "@noldova/code.editor.angular";
10
+ import { ConflictState, MergeEditorComponent } from "@noldova/code.editor.merge.angular";
11
+ import "@noldova/context.core";
12
+ import { WindowPartTokens } from "@noldova/desktop.window";
13
+ import { ConflictKind, ConflictResolution, FileState, OperationKind, PredictionAction } from "@noldova/git.protocol";
14
+ import { ButtonComponent, ButtonVariant, ToolbarButtonComponent } from "@noldova/ui.components.angular";
15
+ import { GitResolvedBy } from "../../enums/git-resolved-by.js";
16
+ import { GitConflictDetail } from "../../models/git-conflict-detail.js";
17
+ import { GitFirstConflictsRead } from "../../models/git-first-conflicts-read.js";
18
+ import { GitOperationName } from "../../models/git-operation-name.js";
19
+ import { Resources } from "../../../resources.js";
20
+ import { GitCodeColors } from "../../services/git-code-colors.js";
21
+ import { GitConflictDetails } from "../../services/git-conflict-details.js";
22
+ import { GitFolder } from "../../services/git-folder.js";
23
+ import { GitResolving } from "../../services/git-resolving.js";
24
+ import { GitRuntimeClient } from "../../services/git-runtime-client.js";
25
+ import { GitViewStateService } from "../../services/git-view-state.service.js";
26
+ import { GitResolvedFile } from "../../models/git-resolved-file.js";
27
+ import * as i0 from "@angular/core";
28
+ export class GitConflictsComponent {
29
+ static NO_OURS = new Set([ConflictKind.BothDeleted, ConflictKind.AddedByThem, ConflictKind.DeletedByUs]);
30
+ static NO_THEIRS = new Set([ConflictKind.BothDeleted, ConflictKind.AddedByUs, ConflictKind.DeletedByThem]);
31
+ static WHOLE_FILE = {
32
+ Ours: GitResolvedBy.Ours, Theirs: GitResolvedBy.Theirs, Delete: GitResolvedBy.Deleted
33
+ };
34
+ static PREDICTIONS = {
35
+ [OperationKind.Merge]: PredictionAction.Merge, [OperationKind.CherryPick]: PredictionAction.CherryPick, [OperationKind.Revert]: PredictionAction.Revert
36
+ };
37
+ errors = inject(ErrorHandler);
38
+ colors = inject(GitCodeColors);
39
+ client = new GitRuntimeClient(inject(WindowPartTokens.context));
40
+ reads = 0;
41
+ markerReads = 0;
42
+ firstConflictsKey = null;
43
+ firstConflicts = signal([], /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "firstConflicts" }] : /* istanbul ignore next */ []));
45
+ resources = Resources;
46
+ resolutions = ConflictResolution;
47
+ secondary = ButtonVariant.Secondary;
48
+ state = inject(GitViewStateService);
49
+ status = computed(() => this.state.folder() === this.instance() ? this.state.status() : null, /* @ts-ignore */
50
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
51
+ conflicted = computed(() => this.status()?.entries.filter(t => !Object.isNull(t.conflict)).map(t => t.path) ?? [], /* @ts-ignore */
52
+ ...(ngDevMode ? [{ debugName: "conflicted" }] : /* istanbul ignore next */ []));
53
+ resolved = computed(() => {
54
+ const conflicted = new Set(this.conflicted());
55
+ const recorded = GitResolving.resolutionsOf(this.instance());
56
+ return [...new Set([...this.firstConflicts(), ...recorded.keys()])].filter(path => !conflicted.has(path)).map(path => {
57
+ const by = recorded.get(path);
58
+ return new GitResolvedFile(path, Object.isUndefined(by) ? "" : Resources.resolutionNotes[by]);
59
+ });
60
+ }, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "resolved" }] : /* istanbul ignore next */ []));
62
+ selected = signal(null, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "selected" }] : /* istanbul ignore next */ []));
64
+ current = computed(() => {
65
+ const picked = this.selected() ?? GitResolving.pathOf(this.instance());
66
+ return !Object.isNull(picked) && this.conflicted().includes(picked) ? picked : this.conflicted()[0] ?? null;
67
+ }, /* @ts-ignore */
68
+ ...(ngDevMode ? [{ debugName: "current" }] : /* istanbul ignore next */ []));
69
+ conflict = signal(null, /* @ts-ignore */
70
+ ...(ngDevMode ? [{ debugName: "conflict" }] : /* istanbul ignore next */ []));
71
+ readFailure = signal(null, /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "readFailure" }] : /* istanbul ignore next */ []));
73
+ hasOurs = computed(() => !GitConflictsComponent.lacks(this.conflict(), GitConflictsComponent.NO_OURS), /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "hasOurs" }] : /* istanbul ignore next */ []));
75
+ hasTheirs = computed(() => !GitConflictsComponent.lacks(this.conflict(), GitConflictsComponent.NO_THEIRS), /* @ts-ignore */
76
+ ...(ngDevMode ? [{ debugName: "hasTheirs" }] : /* istanbul ignore next */ []));
77
+ merges = computed(() => {
78
+ const conflict = this.conflict();
79
+ return !Object.isNull(conflict) && !Object.isNull(conflict.ours) && !Object.isNull(conflict.theirs);
80
+ }, /* @ts-ignore */
81
+ ...(ngDevMode ? [{ debugName: "merges" }] : /* istanbul ignore next */ []));
82
+ unresolved = signal(null, /* @ts-ignore */
83
+ ...(ngDevMode ? [{ debugName: "unresolved" }] : /* istanbul ignore next */ []));
84
+ conflictStates = signal([], /* @ts-ignore */
85
+ ...(ngDevMode ? [{ debugName: "conflictStates" }] : /* istanbul ignore next */ []));
86
+ resultNote = computed(() => Resources.formatResultNote(this.conflictStates().map(t => t !== ConflictState.Unresolved)), /* @ts-ignore */
87
+ ...(ngDevMode ? [{ debugName: "resultNote" }] : /* istanbul ignore next */ []));
88
+ language = computed(() => this.colors.languageOf(this.current()), /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
90
+ showsBase = signal(false, /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "showsBase" }] : /* istanbul ignore next */ []));
92
+ conflictCount = signal(0, /* @ts-ignore */
93
+ ...(ngDevMode ? [{ debugName: "conflictCount" }] : /* istanbul ignore next */ []));
94
+ fileProgress = computed(() => {
95
+ const unresolved = this.unresolved();
96
+ const count = this.conflictCount();
97
+ return Object.isNull(unresolved) || count === 0 ? "" : Resources.formatConflictProgress(count - unresolved, count);
98
+ }, /* @ts-ignore */
99
+ ...(ngDevMode ? [{ debugName: "fileProgress" }] : /* istanbul ignore next */ []));
100
+ editor = viewChild(MergeEditorComponent, /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "editor" }] : /* istanbul ignore next */ []));
102
+ markersUnreadable = computed(() => Object.isNull(this.editor()?.result()), /* @ts-ignore */
103
+ ...(ngDevMode ? [{ debugName: "markersUnreadable" }] : /* istanbul ignore next */ []));
104
+ activeConflict = computed(() => this.editor()?.activeConflict() ?? null, /* @ts-ignore */
105
+ ...(ngDevMode ? [{ debugName: "activeConflict" }] : /* istanbul ignore next */ []));
106
+ leftoverMarkers = signal(null, /* @ts-ignore */
107
+ ...(ngDevMode ? [{ debugName: "leftoverMarkers" }] : /* istanbul ignore next */ []));
108
+ markerFailure = signal(null, /* @ts-ignore */
109
+ ...(ngDevMode ? [{ debugName: "markerFailure" }] : /* istanbul ignore next */ []));
110
+ detail = computed(() => Object.isNull(this.current()) ? null
111
+ : new GitConflictDetail(this.activeConflict(), this.language(), this.leftoverMarkers(), this.markerFailure()), /* @ts-ignore */
112
+ ...(ngDevMode ? [{ debugName: "detail" }] : /* istanbul ignore next */ []));
113
+ showsAllClean = signal(false, /* @ts-ignore */
114
+ ...(ngDevMode ? [{ debugName: "showsAllClean" }] : /* istanbul ignore next */ []));
115
+ progress = computed(() => Resources.formatResolvedCount(this.resolved().length, this.resolved().length + this.conflicted().length), /* @ts-ignore */
116
+ ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
117
+ instance = input.required(/* @ts-ignore */
118
+ ...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
119
+ constructor() {
120
+ effect(() => {
121
+ const path = this.current();
122
+ this.status();
123
+ untracked(() => void this.readAsync(path));
124
+ });
125
+ effect(() => {
126
+ const status = this.status();
127
+ if (!Object.isNull(status) && Object.isNull(status.operation))
128
+ untracked(() => GitResolving.forget(this.instance()));
129
+ });
130
+ effect(() => {
131
+ const operation = this.status()?.operation ?? null;
132
+ untracked(() => void this.readFirstConflictsAsync(operation));
133
+ });
134
+ effect(() => {
135
+ const status = this.status();
136
+ const conflicted = new Set(this.conflicted());
137
+ if (!Object.isNullOrUndefined(status?.operation))
138
+ untracked(() => void this.checkMarkersAsync(conflicted));
139
+ });
140
+ const active = inject(WindowPartTokens.activeDocument);
141
+ inject(DestroyRef).onDestroy(GitFolder.follow(this.instance, active));
142
+ const details = GitConflictDetails.of(inject(WindowPartTokens.context));
143
+ details.follow(this.detail, active, inject(Injector));
144
+ }
145
+ cleanOf(status) {
146
+ const resolved = new Set(this.resolved().map(t => t.path));
147
+ return status.entries.filter(t => Object.isNull(t.conflict) && t.index !== FileState.Unmodified && t.index !== FileState.Untracked && !resolved.has(t.path))
148
+ .map(t => t.path);
149
+ }
150
+ hiddenOf(clean) {
151
+ return this.showsAllClean() ? 0 : Math.max(clean.length - Resources.shownCleanFiles, 0);
152
+ }
153
+ operationText(operation, branch) {
154
+ return Resources.formatOperation(Resources.operations[operation.kind], GitOperationName.of(operation), branch);
155
+ }
156
+ nameOf(path) {
157
+ return path.slice(path.lastIndexOf(Resources.slash) + 1);
158
+ }
159
+ folderOf(path) {
160
+ return path.slice(0, Math.max(path.lastIndexOf(Resources.slash), 0));
161
+ }
162
+ pick(path) {
163
+ if (path === this.current() && !Object.isNull(this.readFailure()))
164
+ void this.readAsync(path);
165
+ this.selected.set(path);
166
+ }
167
+ resolve(conflict, resolution, text = null) {
168
+ const by = GitConflictsComponent.resolvedBy(resolution, this.conflictStates());
169
+ void this.state.resolveConflictAsync(conflict.path, resolution, text).then(() => {
170
+ if (Object.isNull(this.state.failure()))
171
+ GitResolving.record(this.instance(), conflict.path, by);
172
+ }).catch((error) => this.errors.handleError(error));
173
+ }
174
+ static resolvedBy(resolution, states) {
175
+ if (resolution !== ConflictResolution.Text)
176
+ return GitConflictsComponent.WHOLE_FILE[resolution];
177
+ return states.length > 0 && states.every(t => t === ConflictState.BothOursFirst || t === ConflictState.BothTheirsFirst) ? GitResolvedBy.Both : GitResolvedBy.Edited;
178
+ }
179
+ continue() {
180
+ void this.state.continueOperationAsync().catch((error) => this.errors.handleError(error));
181
+ }
182
+ abort() {
183
+ void this.state.abortOperationAsync().catch((error) => this.errors.handleError(error));
184
+ }
185
+ async readAsync(path) {
186
+ const read = ++this.reads;
187
+ this.readFailure.set(null);
188
+ if (Object.isNull(path)) {
189
+ this.conflict.set(null);
190
+ return;
191
+ }
192
+ if (this.conflict()?.path !== path) {
193
+ this.conflict.set(null);
194
+ this.conflictCount.set(0);
195
+ this.conflictStates.set([]);
196
+ }
197
+ try {
198
+ const conflict = await this.state.conflictAsync(path);
199
+ if (read === this.reads)
200
+ this.conflict.set(conflict);
201
+ }
202
+ catch (error) {
203
+ if (read === this.reads)
204
+ this.readFailure.set(GitViewStateService.messageOf(error));
205
+ }
206
+ }
207
+ async checkMarkersAsync(conflicted) {
208
+ const read = ++this.markerReads;
209
+ try {
210
+ const check = await this.state.markerCheckAsync();
211
+ if (read !== this.markerReads)
212
+ return;
213
+ this.leftoverMarkers.set(check.paths.filter(t => !conflicted.has(t)));
214
+ this.markerFailure.set(null);
215
+ }
216
+ catch (error) {
217
+ if (read !== this.markerReads)
218
+ return;
219
+ this.leftoverMarkers.set(null);
220
+ this.markerFailure.set(GitViewStateService.messageOf(error));
221
+ }
222
+ }
223
+ async readFirstConflictsAsync(operation) {
224
+ const action = Object.isNull(operation) ? undefined : GitConflictsComponent.PREDICTIONS[operation.kind];
225
+ const from = operation?.from ?? "";
226
+ const read = !Object.isUndefined(action) && Resources.objectIdPattern.test(from) ? new GitFirstConflictsRead(action, `${action} ${from}`) : null;
227
+ if ((read?.key ?? null) === this.firstConflictsKey)
228
+ return;
229
+ this.firstConflictsKey = read?.key ?? null;
230
+ this.firstConflicts.set([]);
231
+ if (Object.isNull(read))
232
+ return;
233
+ try {
234
+ const prediction = await this.client.predictAsync(this.instance(), from, read.action);
235
+ if (read.key === this.firstConflictsKey)
236
+ this.firstConflicts.set(prediction.paths);
237
+ }
238
+ catch {
239
+ }
240
+ }
241
+ static lacks(conflict, kinds) {
242
+ return Object.isNull(conflict) || kinds.has(conflict.kind);
243
+ }
244
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
245
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</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 --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
246
+ }
247
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, decorators: [{
248
+ type: Component,
249
+ args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], 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 (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</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 --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
250
+ }], ctorParameters: () => [], propDecorators: { editor: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MergeEditorComponent), { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
251
+ //# sourceMappingURL=git-conflicts.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACjM,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAuB,aAAa,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC9G,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EACL,YAAY,EAAE,kBAAkB,EAAE,SAAS,EAAgG,aAAa,EAAE,gBAAgB,EAC3K,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExG,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,a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BAAoB,iTAAE,sBAAsB;;2FAK/E,qBAAqB;kBAPjC,SAAS;+BACE,mBAAmB,WACpB,CAAC,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,CAAC,aAChF,CAAC,mBAAmB,CAAC;kHA6D8C,oBAAoB"}
@@ -0,0 +1,178 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { afterNextRender, Component, computed, effect, ElementRef, ErrorHandler, inject, Injector, input, signal, untracked } from "@angular/core";
9
+ import "@noldova/context.core";
10
+ import { WindowPartTokens } from "@noldova/desktop.window";
11
+ import { DiffTotals, LineKind } from "@noldova/git.protocol";
12
+ import { FileBadgeComponent } from "@noldova/ui.components.angular";
13
+ import { GitDiffRowKind } from "../../enums/git-diff-row-kind.js";
14
+ import { GitFileLayout } from "../../enums/git-file-layout.js";
15
+ import { GitCodeSpan } from "../../models/git-code-span.js";
16
+ import { GitDiffRow } from "../../models/git-diff-row.js";
17
+ import { GitCodeColors } from "../../services/git-code-colors.js";
18
+ import { GitCommitFiles } from "../../services/git-commit-files.js";
19
+ import { GitRuntimeClient } from "../../services/git-runtime-client.js";
20
+ import { GitViewStateService } from "../../services/git-view-state.service.js";
21
+ import { Resources } from "../../../resources.js";
22
+ import { GitFileLayoutButtonComponent } from "../git-file-layout-button/git-file-layout-button.component.js";
23
+ import { GitMarkedLine } from "../../models/git-marked-line.js";
24
+ import * as i0 from "@angular/core";
25
+ export class GitDiffFilesComponent {
26
+ context = inject(WindowPartTokens.context);
27
+ client = new GitRuntimeClient(this.context);
28
+ errors = inject(ErrorHandler);
29
+ colors = inject(GitCodeColors);
30
+ host = inject(ElementRef).nativeElement;
31
+ injector = inject(Injector);
32
+ state = inject(GitViewStateService, { optional: true });
33
+ reading = 0;
34
+ resources = Resources;
35
+ lineKinds = GitDiffRowKind;
36
+ chosen = computed(() => this.layout() ?? this.state?.fileLayout ?? null, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
38
+ diff = signal(null, /* @ts-ignore */
39
+ ...(ngDevMode ? [{ debugName: "diff" }] : /* istanbul ignore next */ []));
40
+ files = signal([], /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "files" }] : /* istanbul ignore next */ []));
42
+ failure = signal(null, /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
44
+ closed = signal(new Set(), /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "closed" }] : /* istanbul ignore next */ []));
46
+ open = signal(new Set(), /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
48
+ rows = computed(() => GitCommitFiles.rowsOf(this.files(), this.chosen()?.() ?? GitFileLayout.Folders, this.closed()), /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
50
+ totals = computed(() => {
51
+ const whole = this.diff()?.totals ?? null;
52
+ if (!Object.isNull(whole))
53
+ return whole;
54
+ const { added, removed } = GitCommitFiles.totalsOf(this.files());
55
+ return new DiffTotals(this.files().length, added, removed);
56
+ }, /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "totals" }] : /* istanbul ignore next */ []));
58
+ marked = signal(null, /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "marked" }] : /* istanbul ignore next */ []));
60
+ openLines = computed(() => new Map(this.files().filter(t => this.open().has(t.path)).map(t => [t.path, GitDiffRow.rowsOf(t)])), /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "openLines" }] : /* istanbul ignore next */ []));
62
+ openCodes = computed(() => {
63
+ const lines = this.openLines();
64
+ const codes = new Map();
65
+ for (const row of this.rows()) {
66
+ const rows = lines.get(row.key);
67
+ if (!row.isFolder && !Object.isUndefined(rows))
68
+ codes.set(row.key, GitCodeSpan.rowsOf(rows, this.colors.tokenizerOf(row.key), this.colors.tokenTypes));
69
+ }
70
+ return codes;
71
+ }, /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "openCodes" }] : /* istanbul ignore next */ []));
73
+ isRead = computed(() => !Object.isNull(this.diff()) || !Object.isNull(this.failure()), /* @ts-ignore */
74
+ ...(ngDevMode ? [{ debugName: "isRead" }] : /* istanbul ignore next */ []));
75
+ folder = input.required(/* @ts-ignore */
76
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
77
+ scope = input.required(/* @ts-ignore */
78
+ ...(ngDevMode ? [{ debugName: "scope" }] : /* istanbul ignore next */ []));
79
+ layout = input(null, /* @ts-ignore */
80
+ ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
81
+ constructor() {
82
+ effect(() => {
83
+ const folder = this.folder();
84
+ const scope = this.scope();
85
+ untracked(() => {
86
+ void this.readAsync(folder, scope);
87
+ });
88
+ });
89
+ }
90
+ insetOf(depth) {
91
+ return depth === 0 ? null : Resources.rowStartRem + depth * Resources.commitFileStepRem;
92
+ }
93
+ nameOf(path) {
94
+ return path.slice(path.lastIndexOf("/") + 1);
95
+ }
96
+ titleOf(row) {
97
+ return row.from.length > 0 ? `${row.key}${Resources.formatMovedFrom(row.from)}` : row.key;
98
+ }
99
+ toggle(folder) {
100
+ const closed = new Set(this.closed());
101
+ if (!closed.delete(folder))
102
+ closed.add(folder);
103
+ this.closed.set(closed);
104
+ }
105
+ holds(path) {
106
+ return this.files().some(t => t.path === path);
107
+ }
108
+ reveal(path, line = null) {
109
+ const parts = path.split(Resources.slash);
110
+ const folders = new Set(parts.slice(1).map((_, i) => parts.slice(0, i + 1).join(Resources.slash)));
111
+ this.closed.set(new Set([...this.closed()].filter(t => !folders.has(t))));
112
+ this.open.set(new Set([...this.open(), path]));
113
+ const file = this.files().find(t => t.path === path);
114
+ const index = Object.isNull(line) || Object.isUndefined(file) ? -1 : GitDiffFilesComponent.rowIndexOf(file, line);
115
+ this.marked.set(index < 0 ? null : new GitMarkedLine(path, index));
116
+ afterNextRender(() => {
117
+ const marked = this.host.querySelector(".marked-line");
118
+ if (!Object.isNull(marked)) {
119
+ marked.scrollIntoView({ block: "center" });
120
+ return;
121
+ }
122
+ for (const row of this.host.querySelectorAll(".file-row:not(.folder)"))
123
+ if (row.title === path)
124
+ row.scrollIntoView({ block: "nearest" });
125
+ }, { injector: this.injector });
126
+ }
127
+ isMarked(path, index) {
128
+ return this.marked()?.isAt(path, index) ?? false;
129
+ }
130
+ static rowIndexOf(file, line) {
131
+ let index = 0;
132
+ for (const hunk of file.hunks) {
133
+ index++;
134
+ const at = hunk.lines.findIndex(t => t.kind !== LineKind.Removed && t.newNumber === line);
135
+ if (at >= 0)
136
+ return index + at;
137
+ index += hunk.lines.length;
138
+ }
139
+ return -1;
140
+ }
141
+ toggleFile(path) {
142
+ const open = new Set(this.open());
143
+ if (!open.delete(path))
144
+ open.add(path);
145
+ this.open.set(open);
146
+ }
147
+ async readAsync(folder, scope) {
148
+ const reading = ++this.reading;
149
+ this.diff.set(null);
150
+ this.files.set([]);
151
+ this.failure.set(null);
152
+ this.open.set(new Set());
153
+ this.marked.set(null);
154
+ try {
155
+ const diff = await this.client.diffAsync(folder, scope);
156
+ if (reading === this.reading) {
157
+ this.diff.set(diff);
158
+ this.files.set(diff.files);
159
+ }
160
+ }
161
+ catch (error) {
162
+ if (reading !== this.reading)
163
+ return;
164
+ if (!GitRuntimeClient.isFailure(error)) {
165
+ this.errors.handleError(error);
166
+ return;
167
+ }
168
+ this.failure.set(GitRuntimeClient.failureOf(error)?.message ?? Resources.historyFailed);
169
+ }
170
+ }
171
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitDiffFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitDiffFilesComponent, isStandalone: true, selector: "nol-git-diff-files", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <div class=\"files-header\">\n <span class=\"caps grow\">{{ resources.formatFilesChanged(totals().files) }}</span>\n <span class=\"small added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"small removed\">{{ resources.removedSign }}{{ totals().removed }}</span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n }\n </div>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"insetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</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: contents;\n}\n\n.files-header,\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.files-header {\n gap: 0.375rem;\n height: 1.625rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem 0 0.25rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: center;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"], dependencies: [{ kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }] });
173
+ }
174
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitDiffFilesComponent, decorators: [{
175
+ type: Component,
176
+ args: [{ selector: "nol-git-diff-files", imports: [FileBadgeComponent, GitFileLayoutButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <div class=\"files-header\">\n <span class=\"caps grow\">{{ resources.formatFilesChanged(totals().files) }}</span>\n <span class=\"small added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"small removed\">{{ resources.removedSign }}{{ totals().removed }}</span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button class=\"layout\" [layout]=\"layout\" />\n }\n </div>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"insetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</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: contents;\n}\n\n.files-header,\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.files-header {\n gap: 0.375rem;\n height: 1.625rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem 0 0.25rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: center;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"] }]
177
+ }], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }] } });
178
+ //# sourceMappingURL=git-diff-files.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-diff-files.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAe,SAAS,EAClJ,MAAM,eAAe,CAAC;AACvB,OAAO,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