@noldova/git.window 0.0.9 → 0.0.11

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 (75) hide show
  1. package/package.json +10 -6
  2. package/src/api/index.d.ts +6 -1
  3. package/src/app/components/git-accounts/git-accounts.component.js +2 -2
  4. package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
  5. package/src/app/components/git-agents/git-agents.component.js +4 -5
  6. package/src/app/components/git-agents/git-agents.component.js.map +1 -1
  7. package/src/app/components/git-branch-card/git-branch-card.component.js +2 -2
  8. package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
  9. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +210 -0
  10. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js.map +1 -0
  11. package/src/app/components/git-command-log/git-command-log.component.js +2 -2
  12. package/src/app/components/git-commit-card/git-commit-card.component.js +5 -15
  13. package/src/app/components/git-commit-card/git-commit-card.component.js.map +1 -1
  14. package/src/app/components/git-conflicts/git-conflicts.component.js +2 -2
  15. package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
  16. package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
  17. package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
  18. package/src/app/components/git-file-group/git-file-group.component.js +4 -3
  19. package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
  20. package/src/app/components/git-history/git-history.component.js +49 -9
  21. package/src/app/components/git-history/git-history.component.js.map +1 -1
  22. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +4 -3
  23. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -1
  24. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +4 -3
  25. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
  26. package/src/app/components/git-pull-requests/git-pull-requests.component.js +4 -6
  27. package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
  28. package/src/app/components/git-repository/git-repository.component.js +6 -4
  29. package/src/app/components/git-repository/git-repository.component.js.map +1 -1
  30. package/src/app/components/git-undo-menu/git-undo-menu.component.js +20 -4
  31. package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
  32. package/src/app/components/git-view/git-view.component.js +18 -3
  33. package/src/app/components/git-view/git-view.component.js.map +1 -1
  34. package/src/app/components/git-workspace/git-workspace.component.js +52 -4
  35. package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
  36. package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
  37. package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
  38. package/src/app/enums/git-add-kind.js +14 -0
  39. package/src/app/enums/git-add-kind.js.map +1 -0
  40. package/src/app/enums/git-host-feature.js +1 -0
  41. package/src/app/enums/git-host-feature.js.map +1 -1
  42. package/src/app/models/git-clone-source.js +29 -0
  43. package/src/app/models/git-clone-source.js.map +1 -0
  44. package/src/app/models/git-folder-look.js +6 -0
  45. package/src/app/models/git-folder-look.js.map +1 -1
  46. package/src/app/services/git-add-requests.js +20 -0
  47. package/src/app/services/git-add-requests.js.map +1 -0
  48. package/src/app/services/git-clone-folders.js +37 -0
  49. package/src/app/services/git-clone-folders.js.map +1 -0
  50. package/src/app/services/git-clone-sources.js +20 -0
  51. package/src/app/services/git-clone-sources.js.map +1 -0
  52. package/src/app/services/git-folder-keys.js +27 -0
  53. package/src/app/services/git-folder-keys.js.map +1 -0
  54. package/src/app/services/git-folder-looks.js +30 -1
  55. package/src/app/services/git-folder-looks.js.map +1 -1
  56. package/src/app/services/git-folder-watch.js +50 -0
  57. package/src/app/services/git-folder-watch.js.map +1 -0
  58. package/src/app/services/git-history-asks.js +2 -1
  59. package/src/app/services/git-history-asks.js.map +1 -1
  60. package/src/app/services/git-repository-scans.js +8 -3
  61. package/src/app/services/git-repository-scans.js.map +1 -1
  62. package/src/app/services/git-runtime-client.js +25 -1
  63. package/src/app/services/git-runtime-client.js.map +1 -1
  64. package/src/app/services/git-view-commands.js +46 -0
  65. package/src/app/services/git-view-commands.js.map +1 -0
  66. package/src/app/services/git-view-state.service.js +54 -2
  67. package/src/app/services/git-view-state.service.js.map +1 -1
  68. package/src/app/services/git-viewing.js +2 -1
  69. package/src/app/services/git-viewing.js.map +1 -1
  70. package/src/app/services/git-window-part.js +16 -2
  71. package/src/app/services/git-window-part.js.map +1 -1
  72. package/src/app/services/git-workspace-pages.js +14 -2
  73. package/src/app/services/git-workspace-pages.js.map +1 -1
  74. package/src/resources.js +91 -4
  75. package/src/resources.js.map +1 -1
@@ -8,7 +8,7 @@
8
8
  import { Component, computed, DestroyRef, effect, ErrorHandler, inject, signal, untracked } from "@angular/core";
9
9
  import "@noldova/context.core";
10
10
  import { WindowPartTokens } from "@noldova/desktop.window";
11
- import { ContextMenuTriggerDirective, DialogService, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, SpinnerComponent, TextFieldComponent, TooltipDirective } from "@noldova/ui.components.angular";
11
+ import { ContextMenuTriggerDirective, DialogService, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, SectionHeaderActionDirective, SectionHeaderCaretPosition, SectionHeaderComponent, SectionHeaderDetailDirective, SpinnerComponent, TextFieldComponent, TooltipDirective } from "@noldova/ui.components.angular";
12
12
  import { FormsModule } from "@angular/forms";
13
13
  import { GitBranchMenuItem } from "../../models/git-branch-menu-item.js";
14
14
  import { GitBranchView } from "../../models/git-branch-view.js";
@@ -23,6 +23,7 @@ import { GitBranchTree } from "../../services/git-branch-tree.js";
23
23
  import { GitRuntimeClient } from "../../services/git-runtime-client.js";
24
24
  import { GitViewStateService } from "../../services/git-view-state.service.js";
25
25
  import { GitViewing } from "../../services/git-viewing.js";
26
+ import { GitWorkspacePages } from "../../services/git-workspace-pages.js";
26
27
  import { Resources } from "../../../resources.js";
27
28
  import { GitTrackCounts } from "../../models/git-track-counts.js";
28
29
  import * as i0 from "@angular/core";
@@ -50,6 +51,7 @@ export class GitRepositoryComponent {
50
51
  newName = signal("", /* @ts-ignore */
51
52
  ...(ngDevMode ? [{ debugName: "newName" }] : /* istanbul ignore next */ []));
52
53
  resources = Resources;
54
+ caretStart = SectionHeaderCaretPosition.Start;
53
55
  folder = GitFolder.folder;
54
56
  failure = signal(null, /* @ts-ignore */
55
57
  ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
@@ -181,7 +183,7 @@ export class GitRepositoryComponent {
181
183
  this.history(folder);
182
184
  }
183
185
  history(folder) {
184
- this.context.openDocument(Resources.historyDocumentName, folder, Resources.formatHistoryTitle(folder));
186
+ GitWorkspacePages.openRepository(this.context, folder, this.errors);
185
187
  }
186
188
  localNameOf(branch) {
187
189
  return GitBranchMenuItem.localNameOf(branch, this.remotes());
@@ -291,11 +293,11 @@ export class GitRepositoryComponent {
291
293
  this.errors.handleError(error);
292
294
  }
293
295
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
294
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRepositoryComponent, isStandalone: true, selector: "nol-git-repository", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n @if (isRepository()) {\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n }\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (isRepository()) {\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <div class=\"row heading section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.branchesLabel)\" (click)=\"toggle(resources.branchesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.branchesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.branchesLabel }}</span>\n </button>\n <button type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\" [nolTooltip]=\"resources.newBranchLabel\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </div>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.remotesLabel)\" (click)=\"toggle(resources.remotesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.remotesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.remotesLabel }}</span>\n </button>\n <span class=\"small muted\">{{ remotes().join(\", \") }}</span>\n </div>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n @let local = localNameOf(row.branch);\n <div class=\"remote\">\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\"\n (dblclick)=\"switchTo(path, local)\" [nolContextMenuTriggerFor]=\"remoteMenu\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n <span class=\"actions\">\n <button type=\"button\" nol-icon-button class=\"switch\" [icon]=\"resources.switchIcon\" [label]=\"resources.formatSwitchToBranch(local)\" [nolTooltip]=\"resources.switchLabel\"\n [disabled]=\"switchable() === null || local === current()\" (click)=\"switchTo(path, local)\"></button>\n </span>\n </div>\n <ng-template #remoteMenu>\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"switchable() === null || local === current()\" (triggered)=\"switchTo(path, local)\"></button>\n </nol-menu>\n </ng-template>\n }\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.tagsLabel)\" (click)=\"toggle(resources.tagsLabel)\">\n <span class=\"ms\">{{ isOpen(resources.tagsLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.tagsLabel }}</span>\n </button>\n @if ((items()?.tags ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.tags ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.stashesLabel)\" (click)=\"toggle(resources.stashesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.stashesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.stashesLabel }}</span>\n </button>\n @if ((items()?.stashes ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.stashes ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.worktreesLabel)\" (click)=\"toggle(resources.worktreesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.worktreesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.worktreesLabel }}</span>\n </button>\n @if (worktreeFolders().length > 0) {\n <span class=\"small muted\">{{ worktreeFolders().length }}</span>\n }\n </div>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.submodulesLabel)\" (click)=\"toggle(resources.submodulesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.submodulesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.submodulesLabel }}</span>\n </button>\n @if ((items()?.submodules ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.submodules ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\n}\n\n.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.row.section {\n margin-top: 0.5rem;\n}\n\n.row.heading:hover {\n background: transparent;\n}\n\n.row > [nol-icon-button] {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.remote {\n position: relative;\n}\n\n.remote > .actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(0.5rem + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: 0.375rem;\n background-color: var(--nol-hover);\n}\n\n.remote:not(:hover, :focus-within) > .actions {\n display: none;\n}\n\n.remote:is(:hover, :focus-within) > .row:not(.sel) {\n background: var(--nol-hover);\n}\n\n.remote:is(:hover, :focus-within) > .row > .count {\n visibility: hidden;\n}\n\n.remote:has(> .row.sel) > .actions {\n background-color: var(--nol-selected);\n}\n\n.row.nested {\n padding-left: 1.75rem;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: GitAgentsComponent, selector: "nol-git-agents", inputs: ["folder"] }, { kind: "component", type: GitPullRequestsComponent, selector: "nol-git-pull-requests", inputs: ["folder", "remote", "current", "canSwitch"], outputs: ["switchTo"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
296
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRepositoryComponent, isStandalone: true, selector: "nol-git-repository", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n @if (isRepository()) {\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n }\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (isRepository()) {\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <nol-section-header class=\"branches\" [label]=\"resources.branchesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.branchesLabel)\"\n (expandedChange)=\"toggle(resources.branchesLabel)\" [actionsShown]=\"true\">\n <button nolSectionHeaderAction type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\"\n [nolTooltip]=\"resources.newBranchLabel\" [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </nol-section-header>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <nol-section-header [label]=\"resources.remotesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.remotesLabel)\"\n (expandedChange)=\"toggle(resources.remotesLabel)\">\n <span nolSectionHeaderDetail>{{ remotes().join(\", \") }}</span>\n </nol-section-header>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n @let local = localNameOf(row.branch);\n <div class=\"remote\">\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\"\n (dblclick)=\"switchTo(path, local)\" [nolContextMenuTriggerFor]=\"remoteMenu\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n <span class=\"actions\">\n <button type=\"button\" nol-icon-button class=\"switch\" [icon]=\"resources.switchIcon\" [label]=\"resources.formatSwitchToBranch(local)\" [nolTooltip]=\"resources.switchLabel\"\n [disabled]=\"switchable() === null || local === current()\" (click)=\"switchTo(path, local)\"></button>\n </span>\n </div>\n <ng-template #remoteMenu>\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"switchable() === null || local === current()\" (triggered)=\"switchTo(path, local)\"></button>\n </nol-menu>\n </ng-template>\n }\n }\n }\n\n <nol-section-header [label]=\"resources.tagsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.tagsLabel)\"\n (expandedChange)=\"toggle(resources.tagsLabel)\">\n @if ((items()?.tags ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.tags ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <nol-section-header [label]=\"resources.stashesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.stashesLabel)\"\n (expandedChange)=\"toggle(resources.stashesLabel)\">\n @if ((items()?.stashes ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.stashes ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <nol-section-header [label]=\"resources.worktreesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.worktreesLabel)\"\n (expandedChange)=\"toggle(resources.worktreesLabel)\">\n @if (worktreeFolders().length > 0) {\n <span nolSectionHeaderDetail>{{ worktreeFolders().length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <nol-section-header [label]=\"resources.submodulesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.submodulesLabel)\"\n (expandedChange)=\"toggle(resources.submodulesLabel)\">\n @if ((items()?.submodules ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.submodules ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n --nol-section-header-space-above: 0;\n --nol-section-header-caret: calc(var(--nol-icon) + 0.125rem);\n\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.branches {\n --nol-section-header-space-above: 0.5rem;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.head > .fetch-all {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.remote {\n position: relative;\n}\n\n.remote > .actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(0.5rem + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: 0.375rem;\n background-color: var(--nol-hover);\n}\n\n.remote:not(:hover, :focus-within) > .actions {\n display: none;\n}\n\n.remote:is(:hover, :focus-within) > .row:not(.sel) {\n background: var(--nol-hover);\n}\n\n.remote:is(:hover, :focus-within) > .row > .count {\n visibility: hidden;\n}\n\n.remote:has(> .row.sel) > .actions {\n background-color: var(--nol-selected);\n}\n\n.row.nested {\n padding-left: 1.75rem;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: GitAgentsComponent, selector: "nol-git-agents", inputs: ["folder"] }, { kind: "component", type: GitPullRequestsComponent, selector: "nol-git-pull-requests", inputs: ["folder", "remote", "current", "canSwitch"], outputs: ["switchTo"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
295
297
  }
296
298
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, decorators: [{
297
299
  type: Component,
298
300
  args: [{ selector: "nol-git-repository", imports: [ContextMenuTriggerDirective, FormsModule, GitAgentsComponent, GitPullRequestsComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent,
299
- SpinnerComponent, TextFieldComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n @if (isRepository()) {\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n }\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (isRepository()) {\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <div class=\"row heading section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.branchesLabel)\" (click)=\"toggle(resources.branchesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.branchesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.branchesLabel }}</span>\n </button>\n <button type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\" [nolTooltip]=\"resources.newBranchLabel\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </div>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.remotesLabel)\" (click)=\"toggle(resources.remotesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.remotesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.remotesLabel }}</span>\n </button>\n <span class=\"small muted\">{{ remotes().join(\", \") }}</span>\n </div>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n @let local = localNameOf(row.branch);\n <div class=\"remote\">\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\"\n (dblclick)=\"switchTo(path, local)\" [nolContextMenuTriggerFor]=\"remoteMenu\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n <span class=\"actions\">\n <button type=\"button\" nol-icon-button class=\"switch\" [icon]=\"resources.switchIcon\" [label]=\"resources.formatSwitchToBranch(local)\" [nolTooltip]=\"resources.switchLabel\"\n [disabled]=\"switchable() === null || local === current()\" (click)=\"switchTo(path, local)\"></button>\n </span>\n </div>\n <ng-template #remoteMenu>\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"switchable() === null || local === current()\" (triggered)=\"switchTo(path, local)\"></button>\n </nol-menu>\n </ng-template>\n }\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.tagsLabel)\" (click)=\"toggle(resources.tagsLabel)\">\n <span class=\"ms\">{{ isOpen(resources.tagsLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.tagsLabel }}</span>\n </button>\n @if ((items()?.tags ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.tags ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.stashesLabel)\" (click)=\"toggle(resources.stashesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.stashesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.stashesLabel }}</span>\n </button>\n @if ((items()?.stashes ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.stashes ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.worktreesLabel)\" (click)=\"toggle(resources.worktreesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.worktreesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.worktreesLabel }}</span>\n </button>\n @if (worktreeFolders().length > 0) {\n <span class=\"small muted\">{{ worktreeFolders().length }}</span>\n }\n </div>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <div class=\"row heading\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen(resources.submodulesLabel)\" (click)=\"toggle(resources.submodulesLabel)\">\n <span class=\"ms\">{{ isOpen(resources.submodulesLabel) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.submodulesLabel }}</span>\n </button>\n @if ((items()?.submodules ?? []).length > 0) {\n <span class=\"small muted\">{{ (items()?.submodules ?? []).length }}</span>\n }\n </div>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\n}\n\n.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.row.section {\n margin-top: 0.5rem;\n}\n\n.row.heading:hover {\n background: transparent;\n}\n\n.row > [nol-icon-button] {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.remote {\n position: relative;\n}\n\n.remote > .actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(0.5rem + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: 0.375rem;\n background-color: var(--nol-hover);\n}\n\n.remote:not(:hover, :focus-within) > .actions {\n display: none;\n}\n\n.remote:is(:hover, :focus-within) > .row:not(.sel) {\n background: var(--nol-hover);\n}\n\n.remote:is(:hover, :focus-within) > .row > .count {\n visibility: hidden;\n}\n\n.remote:has(> .row.sel) > .actions {\n background-color: var(--nol-selected);\n}\n\n.row.nested {\n padding-left: 1.75rem;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"] }]
301
+ SectionHeaderActionDirective, SectionHeaderComponent, SectionHeaderDetailDirective, SpinnerComponent, TextFieldComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (folder(); as path) {\n @let writableStatus = switchable();\n <nav class=\"panel\" [attr.aria-label]=\"resources.repositoryLabel\">\n <div class=\"row head\">\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <div class=\"strong grow name\">{{ resources.formatHistoryTitle(path) }}</div>\n @if (isRepository()) {\n <button type=\"button\" nol-icon-button class=\"fetch-all\" [icon]=\"resources.syncIcon\" [label]=\"resources.fetchAllLabel\" [nolTooltip]=\"resources.fetchAllRemotesTitle\"\n [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && fetchAll(path, writableStatus)\"></button>\n }\n <div class=\"small muted grow path\" [title]=\"path\">{{ path }}</div>\n </div>\n @if (isRepository()) {\n @if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @let changesSelected = !showsLink() && !showsCommit();\n @let historySelected = !showsLink() && showsCommit();\n <button type=\"button\" class=\"row changes\" [class.sel]=\"changesSelected\" [attr.aria-current]=\"changesSelected ? 'true' : null\" (click)=\"showChanges()\">\n <span class=\"ms\">{{ resources.changesIcon }}</span><span class=\"grow\">{{ resources.changesLabel }}</span>\n @if (changes() > 0) {\n <span class=\"badge\">{{ changes() }}</span>\n }\n </button>\n <button type=\"button\" class=\"row history\" [class.sel]=\"historySelected\" [attr.aria-current]=\"historySelected ? 'true' : null\" (click)=\"showHistory(path)\">\n <span class=\"ms\">{{ resources.historyIcon }}</span><span class=\"grow\">{{ resources.historyLabel }}</span>\n </button>\n @for (link of links(); track link.key) {\n <button type=\"button\" class=\"row link\" [class.sel]=\"link.isActive()\" [attr.aria-current]=\"link.isActive() ? 'true' : null\" (click)=\"link.open()\">\n <span class=\"ms\">{{ link.icon }}</span><span class=\"grow\">{{ link.label }}</span>\n </button>\n }\n\n <nol-section-header class=\"branches\" [label]=\"resources.branchesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.branchesLabel)\"\n (expandedChange)=\"toggle(resources.branchesLabel)\" [actionsShown]=\"true\">\n <button nolSectionHeaderAction type=\"button\" nol-icon-button class=\"new-branch\" [icon]=\"resources.createBranchIcon\" [label]=\"resources.newBranchLabel\"\n [nolTooltip]=\"resources.newBranchLabel\" [disabled]=\"writableStatus === null\" (click)=\"writableStatus !== null && newBranchAsync(path, writableStatus)\"></button>\n </nol-section-header>\n @if (isOpen(resources.branchesLabel)) {\n @if (isReading()) {\n <div class=\"row reading\" [style.padding-left.rem]=\"readingIndent\"><nol-spinner [label]=\"resources.readingBranches\" [isDelayed]=\"true\" /></div>\n }\n @for (row of localRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key.slice(resources.localTreeKey.length)\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n </button>\n } @else {\n @let isCurrent = row.branch === current();\n @if (renaming() === row.branch) {\n <form class=\"row rename\" [style.padding-left.rem]=\"indentOf(row)\" (submit)=\"$event.preventDefault(); renameAsync(path, row.branch, newName())\">\n <input nol-text-field class=\"grow\" type=\"text\" autofocus name=\"newName\" [attr.aria-label]=\"resources.formatRenameLabel(row.branch)\"\n [ngModel]=\"newName()\" (ngModelChange)=\"newName.set($event)\" (keydown.escape)=\"cancelRename()\" (blur)=\"cancelRename()\" />\n </form>\n } @else {\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, false)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.branch\"\n [disabled]=\"busy() && !isCurrent\" (click)=\"view(path, row.branch, false)\" (dblclick)=\"switchTo(path, row.branch)\"\n [nolContextMenuTriggerFor]=\"branchMenu\">\n @if (!isCurrent) {\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n } @else if (switching() === null) {\n <span class=\"ms current\">{{ resources.currentBranchIcon }}</span>\n } @else {\n <span class=\"ms current spin\" role=\"status\" [attr.aria-label]=\"resources.switchingLabel\">{{ resources.switchingIcon }}</span>\n }\n <span class=\"grow\" [class.strong]=\"isCurrent\">{{ row.name }}</span>\n @let counts = countsOf(row.branch, isCurrent);\n @if (counts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatAheadTitle(counts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ counts.ahead }}</span>\n }\n @if (counts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatBehindTitle(counts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ counts.behind }}</span>\n }\n </button>\n <ng-template #branchMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"isCurrent\" (triggered)=\"switchTo(path, row.branch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.renameLabel\" [icon]=\"resources.renameIcon\" (triggered)=\"startRename(row.branch)\"></button>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" [disabled]=\"isCurrent\" (triggered)=\"deleteBranch(path, row.branch, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n }\n }\n\n <nol-git-agents [folder]=\"path\" />\n\n @if (status()?.remote; as remote) {\n <nol-git-pull-requests [folder]=\"path\" [remote]=\"remote\" [current]=\"current()\" [canSwitch]=\"switchable() !== null\" (switchTo)=\"switchTo(path, $event)\" />\n }\n\n <nol-section-header [label]=\"resources.remotesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.remotesLabel)\"\n (expandedChange)=\"toggle(resources.remotesLabel)\">\n <span nolSectionHeaderDetail>{{ remotes().join(\", \") }}</span>\n </nol-section-header>\n @if (isOpen(resources.remotesLabel)) {\n @for (row of remoteRows(); track row.key) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"row\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" [attr.aria-expanded]=\"isOpen(row.key)\" (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ isOpen(row.key) ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"ms\">{{ row.depth === 1 ? resources.remoteIcon : resources.folderIcon }}</span>\n <span class=\"grow\">{{ row.name }}</span>\n @if (row.depth === 1) {\n <span class=\"small muted\">{{ row.count }}</span>\n }\n </button>\n } @else {\n @let local = localNameOf(row.branch);\n <div class=\"remote\">\n <button type=\"button\" class=\"row\" [class.sel]=\"isViewed(row.branch, true)\" [style.padding-left.rem]=\"indentOf(row)\" [title]=\"row.key\" (click)=\"view(path, row.branch, true)\"\n (dblclick)=\"switchTo(path, local)\" [nolContextMenuTriggerFor]=\"remoteMenu\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg><span class=\"grow\">{{ row.name }}</span>\n @let remoteCounts = remoteCountsOf(row.branch);\n @if (remoteCounts.ahead > 0) {\n <span class=\"small count ahead\" [title]=\"resources.formatRemoteAheadTitle(remoteCounts.ahead)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.aheadArrow }}</span>{{ remoteCounts.ahead }}</span>\n }\n @if (remoteCounts.behind > 0) {\n <span class=\"small count behind\" [title]=\"resources.formatRemoteBehindTitle(remoteCounts.behind)\"><span class=\"arrow\" aria-hidden=\"true\">{{ resources.behindArrow }}</span>{{ remoteCounts.behind }}</span>\n }\n </button>\n <span class=\"actions\">\n <button type=\"button\" nol-icon-button class=\"switch\" [icon]=\"resources.switchIcon\" [label]=\"resources.formatSwitchToBranch(local)\" [nolTooltip]=\"resources.switchLabel\"\n [disabled]=\"switchable() === null || local === current()\" (click)=\"switchTo(path, local)\"></button>\n </span>\n </div>\n <ng-template #remoteMenu>\n <nol-menu>\n <button nol-menu-item [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"switchable() === null || local === current()\" (triggered)=\"switchTo(path, local)\"></button>\n </nol-menu>\n </ng-template>\n }\n }\n }\n\n <nol-section-header [label]=\"resources.tagsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.tagsLabel)\"\n (expandedChange)=\"toggle(resources.tagsLabel)\">\n @if ((items()?.tags ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.tags ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.tagsLabel)) {\n @for (tag of items()?.tags ?? []; track tag.name) {\n <button type=\"button\" class=\"row nested\" [class.sel]=\"isTagViewed(tag)\" [attr.aria-current]=\"isTagViewed(tag) ? 'true' : null\" [title]=\"tag.name\"\n (click)=\"viewTag(path, tag)\" [nolContextMenuTriggerFor]=\"tagMenu\"><span class=\"ms\">{{ resources.tagIcon }}</span><span class=\"grow\">{{ tag.name }}</span></button>\n <ng-template #tagMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.deleteLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"deleteTag(path, tag.name, status)\"></button>\n </nol-menu>\n }\n </ng-template>\n }\n }\n\n <nol-section-header [label]=\"resources.stashesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.stashesLabel)\"\n (expandedChange)=\"toggle(resources.stashesLabel)\">\n @if ((items()?.stashes ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.stashes ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.stashesLabel)) {\n @for (stash of items()?.stashes ?? []; track stash.id) {\n <div class=\"row nested\" [title]=\"stash.message\"><span class=\"ms\">{{ resources.stashIcon }}</span><span class=\"grow\">{{ stash.message }}</span></div>\n }\n }\n\n <nol-section-header [label]=\"resources.worktreesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.worktreesLabel)\"\n (expandedChange)=\"toggle(resources.worktreesLabel)\">\n @if (worktreeFolders().length > 0) {\n <span nolSectionHeaderDetail>{{ worktreeFolders().length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.worktreesLabel)) {\n @for (worktree of worktreeFolders(); track worktree) {\n <div class=\"row nested\" [title]=\"worktree\"><span class=\"ms\">{{ resources.worktreeIcon }}</span><span class=\"grow\">{{ worktree }}</span></div>\n }\n }\n\n\n <nol-section-header [label]=\"resources.submodulesLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [expanded]=\"isOpen(resources.submodulesLabel)\"\n (expandedChange)=\"toggle(resources.submodulesLabel)\">\n @if ((items()?.submodules ?? []).length > 0) {\n <span nolSectionHeaderDetail>{{ (items()?.submodules ?? []).length }}</span>\n }\n </nol-section-header>\n @if (isOpen(resources.submodulesLabel)) {\n @for (submodule of items()?.submodules ?? []; track submodule.path) {\n <div class=\"row nested\" [title]=\"submodule.path\"><span class=\"ms\">{{ resources.submoduleIcon }}</span><span class=\"grow\">{{ submodule.path }}</span></div>\n }\n }\n }\n </nav>\n} @else {\n <p class=\"note\">{{ resources.noFolderText }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.panel {\n --nol-section-header-space-above: 0;\n --nol-section-header-caret: calc(var(--nol-icon) + 0.125rem);\n\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.branches {\n --nol-section-header-space-above: 0.5rem;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n flex: none;\n box-sizing: border-box;\n width: 1rem;\n height: 1rem;\n padding: 0.09375rem;\n fill: var(--nol-icon-color);\n}\n\n.ms.current {\n color: var(--nol-author-1);\n}\n\n.ms.spin {\n animation: spin 1s linear infinite;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n@keyframes spin {\n to {\n transform: rotate(1turn);\n }\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row.rename {\n height: auto;\n padding-block: 0.125rem;\n}\n\n.rename input {\n min-width: 0;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row.head {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n grid-template-rows: 1.625rem auto;\n column-gap: 0.375rem;\n row-gap: 0;\n height: auto;\n padding-bottom: 0.25rem;\n}\n\n.row.head .path {\n grid-column: 2 / 4;\n}\n\n.row.head:hover {\n background: transparent;\n}\n\n.head > .fetch-all {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.remote {\n position: relative;\n}\n\n.remote > .actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(0.5rem + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: 0.375rem;\n background-color: var(--nol-hover);\n}\n\n.remote:not(:hover, :focus-within) > .actions {\n display: none;\n}\n\n.remote:is(:hover, :focus-within) > .row:not(.sel) {\n background: var(--nol-hover);\n}\n\n.remote:is(:hover, :focus-within) > .row > .count {\n visibility: hidden;\n}\n\n.remote:has(> .row.sel) > .actions {\n background-color: var(--nol-selected);\n}\n\n.row.nested {\n padding-left: 1.75rem;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.badge {\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n box-sizing: border-box;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.count.ahead {\n color: var(--nol-status-ok);\n}\n\n.count.behind {\n color: var(--nol-accent);\n}\n"] }]
300
302
  }], ctorParameters: () => [] });
301
303
  //# sourceMappingURL=git-repository.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-repository.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AACnJ,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,kBAAkB,EACtK,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAG7C,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AAGzE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;AAC/F,OAAO,EAAE,gBAAgB,EAAE,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YACb,IAAI,OAAO,KAAK,IAAI,CAAC,aAAa;gBAChC,OAAO;YACT,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC;YACjC,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACrB,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAc;QAC3B,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC;YACpC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;IACnC,CAAC;uGAxQU,sBAAsB;2FAAtB,sBAAsB,8ECzCnC,upcAmOA,ynID/LY,2BAA2B,oJAAE,WAAW,+pCAAE,kBAAkB,+EAAE,wBAAwB,+IAAE,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,sBAAsB,+DAC7K,gBAAgB,2EAAE,kBAAkB,+GAAE,gBAAgB;;2FAI7C,sBAAsB;kBAPlC,SAAS;+BACE,oBAAoB,WACrB,CAAC,2BAA2B,EAAE,WAAW,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB;wBAC7K,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC"}
1
+ {"version":3,"file":"git-repository.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-repository/git-repository.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AACnJ,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAE,2BAA2B,EAAE,aAAa,EAAE,mBAAmB,EA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W,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,sBAAsB;wBAC7K,4BAA4B,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC"}
@@ -5,7 +5,7 @@
5
5
  * This source code is licensed under the license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- import { Component, ErrorHandler, inject } from "@angular/core";
8
+ import { afterRenderEffect, Component, DOCUMENT, ErrorHandler, inject, viewChild } from "@angular/core";
9
9
  import { TimeFormatService } from "@noldova/desktop.window";
10
10
  import { UndoMode } from "@noldova/git.protocol";
11
11
  import { IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
@@ -15,8 +15,19 @@ import * as i0 from "@angular/core";
15
15
  export class GitUndoMenuComponent {
16
16
  errors = inject(ErrorHandler);
17
17
  dates = inject(TimeFormatService);
18
+ document = inject(DOCUMENT);
19
+ trigger = viewChild.required(MenuTriggerDirective, /* @ts-ignore */
20
+ ...(ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []));
18
21
  resources = Resources;
19
22
  state = inject(GitViewStateService);
23
+ constructor() {
24
+ afterRenderEffect({
25
+ write: () => {
26
+ this.state.recentActions();
27
+ this.keepFocus();
28
+ }
29
+ });
30
+ }
20
31
  read() {
21
32
  this.state.readRecentActionsAsync().catch((error) => this.errors.handleError(error));
22
33
  }
@@ -32,11 +43,16 @@ export class GitUndoMenuComponent {
32
43
  undo(entry) {
33
44
  void this.state.undoEntryAsync(entry);
34
45
  }
46
+ keepFocus() {
47
+ const trigger = this.trigger();
48
+ if (trigger.isOpen() && this.document.activeElement === this.document.body)
49
+ trigger.openFocusing("mouse");
50
+ }
35
51
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
36
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (click)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
52
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", viewQueries: [{ propertyName: "trigger", first: true, predicate: MenuTriggerDirective, 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
37
53
  }
38
54
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, decorators: [{
39
55
  type: Component,
40
- args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (click)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
41
- }] });
56
+ args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
57
+ }], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MenuTriggerDirective), { isSignal: true }] }] } });
42
58
  //# sourceMappingURL=git-undo-menu.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-undo-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAwB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE/I,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;;AAO/E,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5C,KAAK,GAAsB,MAAM,CAAC,iBAAiB,CAAC,CAAC;IAEnD,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IAElE,IAAI;QACZ,IAAI,CAAC,KAAK,CAAC,sBAAsB,EAAE,CAAC,KAAK,CAAC,CAAC,KAAc,EAAE,EAAE,CAAC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC,CAAC;IAChG,CAAC;IAES,OAAO,CAAC,KAAsB;QACtC,OAAO,SAAS,CAAC,kBAAkB,CAAC,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAClE,CAAC;IAES,MAAM,CAAC,KAAsB;QACrC,OAAO,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,CAAC;IAES,OAAO,CAAC,KAAsB;QACtC,OAAO,KAAK,CAAC,IAAI,KAAK,QAAQ,CAAC,IAAI,CAAC;IACtC,CAAC;IAES,IAAI,CAAC,KAAsB;QACnC,KAAK,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC;IACxC,CAAC;uGAzBU,oBAAoB;2FAApB,oBAAoB,6ECrBjC,m4BAoBA,4CDFY,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,oBAAoB,oJAAE,gBAAgB;;2FAG5F,oBAAoB;kBALhC,SAAS;+BACE,mBAAmB,WACpB,CAAC,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC"}
1
+ {"version":3,"file":"git-undo-menu.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-undo-menu/git-undo-menu.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAe,SAAS,EAAE,MAAM,eAAe,CAAC;AACrH,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAwB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACvE,OAAO,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE/I,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;;AAO/E,MAAM,OAAO,oBAAoB;IACd,MAAM,GAAiB,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IAAI,CAAC,QAAQ,CAAC,IAAI;YACxE,OAAO,CAAC,YAAY,CAAC,OAAO,CAAC,CAAC;IAClC,CAAC;uGA1CU,oBAAoB;2FAApB,oBAAoB,sHAI6C,oBAAoB,gECzBlG,24BAoBA,4CDFY,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,oBAAoB,oJAAE,gBAAgB;;2FAG5F,oBAAoB;kBALhC,SAAS;+BACE,mBAAmB,WACpB,CAAC,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC;mHAO5B,oBAAoB"}
@@ -19,6 +19,7 @@ import { GitPendingSwitch } from "../../services/git-pending-switch.js";
19
19
  import { GitRepositoryScans } from "../../services/git-repository-scans.js";
20
20
  import { GitResolving } from "../../services/git-resolving.js";
21
21
  import { GitRuntimeClient } from "../../services/git-runtime-client.js";
22
+ import { GitViewCommands } from "../../services/git-view-commands.js";
22
23
  import { GitViewOptions } from "../../services/git-view-options.js";
23
24
  import { GitViewStateService } from "../../services/git-view-state.service.js";
24
25
  import { GitBranchCardComponent } from "../git-branch-card/git-branch-card.component.js";
@@ -46,16 +47,18 @@ export class GitViewComponent {
46
47
  ...(ngDevMode ? [{ debugName: "linkFailed" }] : /* istanbul ignore next */ []));
47
48
  firstConflict = computed(() => this.state.groups().filter(t => t.kind === GitFileGroupKind.Conflicts).flatMap(t => t.rows)[0]?.path ?? null, /* @ts-ignore */
48
49
  ...(ngDevMode ? [{ debugName: "firstConflict" }] : /* istanbul ignore next */ []));
50
+ foundIn = (look) => GitRepositoryScans.foundIn(look);
49
51
  offersGit = computed(() => this.state.phase() === GitViewPhase.GitMissing || this.state.phase() === GitViewPhase.GitTooOld, /* @ts-ignore */
50
52
  ...(ngDevMode ? [{ debugName: "offersGit" }] : /* istanbul ignore next */ []));
51
53
  look = signal(null, /* @ts-ignore */
52
54
  ...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
53
55
  lookFolder = computed(() => this.state.phase() === GitViewPhase.NotRepository ? this.state.readFolder() : null, /* @ts-ignore */
54
56
  ...(ngDevMode ? [{ debugName: "lookFolder" }] : /* istanbul ignore next */ []));
55
- offer = (scan) => GitRepositoryScans.offerToDashboard(this.dialogs, this.context, this.state.readFolder(), scan);
57
+ offer = (folder, scan) => GitRepositoryScans.offerAsTabs(this.dialogs, this.context, this.errors, folder, scan);
56
58
  constructor() {
57
59
  const destroyed = inject(DestroyRef);
58
60
  destroyed.onDestroy(FocusKeeper.keep(inject(ElementRef).nativeElement));
61
+ destroyed.onDestroy(GitViewCommands.attach(this.state));
59
62
  effect(() => {
60
63
  const folder = this.lookFolder();
61
64
  untracked(() => this.lookUnder(folder));
@@ -111,6 +114,18 @@ export class GitViewComponent {
111
114
  continueOperation() {
112
115
  void this.state.continueOperationAsync().catch((error) => this.errors.handleError(error));
113
116
  }
117
+ openFound(look, scan) {
118
+ void GitFolderLooks.offerKeptAsync(look, scan, new GitRuntimeClient(this.context), this.offer);
119
+ }
120
+ async initAsync(look) {
121
+ try {
122
+ if (await GitFolderLooks.initAsync(look, new GitRuntimeClient(this.context)))
123
+ await this.state.followAgainAsync();
124
+ }
125
+ catch (error) {
126
+ this.errors.handleError(error);
127
+ }
128
+ }
114
129
  skipOperation() {
115
130
  void this.state.skipOperationAsync().catch((error) => this.errors.handleError(error));
116
131
  }
@@ -144,11 +159,11 @@ export class GitViewComponent {
144
159
  }
145
160
  }
146
161
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
147
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
162
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n @if (look(); as folderLook) {\n <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"folderLook.initializing()\" [attr.aria-busy]=\"folderLook.initializing()\"\n (click)=\"initAsync(folderLook)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(folderLook); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"folderLook.checking()\" [attr.aria-busy]=\"folderLook.checking()\"\n (click)=\"openFound(folderLook, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
148
163
  }
149
164
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, decorators: [{
150
165
  type: Component,
151
166
  args: [{ selector: "nol-git-view", imports: [ButtonComponent, GitBranchCardComponent, GitCommitCardComponent, GitFileGroupComponent, GitHostRowComponent, GitUndoMenuComponent,
152
- SpinnerComponent], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"] }]
167
+ SpinnerComponent], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n @if (look(); as folderLook) {\n <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"folderLook.initializing()\" [attr.aria-busy]=\"folderLook.initializing()\"\n (click)=\"initAsync(folderLook)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(folderLook); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"folderLook.checking()\" [attr.aria-busy]=\"folderLook.checking()\"\n (click)=\"openFound(folderLook, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"] }]
153
168
  }], ctorParameters: () => [] });
154
169
  //# sourceMappingURL=git-view.component.js.map