@noldova/git.window 0.0.18 → 0.0.19

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 (45) hide show
  1. package/package.json +10 -10
  2. package/src/app/components/git-account-dialog/git-account-dialog.component.js +3 -3
  3. package/src/app/components/git-accounts/git-accounts.component.js +3 -3
  4. package/src/app/components/git-agents/git-agents.component.js +3 -3
  5. package/src/app/components/git-branch-card/git-branch-card.component.js +3 -3
  6. package/src/app/components/git-branch-drop/git-branch-drop.component.js +3 -3
  7. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +3 -3
  8. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +3 -3
  9. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +3 -3
  10. package/src/app/components/git-command-log/git-command-log.component.js +3 -3
  11. package/src/app/components/git-commit-card/git-commit-card.component.js +3 -3
  12. package/src/app/components/git-commit-detail/git-commit-detail.component.js +3 -3
  13. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -3
  14. package/src/app/components/git-commit-document/git-commit-document.component.js +3 -3
  15. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +3 -3
  16. package/src/app/components/git-conflicts/git-conflicts.component.js +3 -3
  17. package/src/app/components/git-dashboard/git-dashboard.component.js +3 -3
  18. package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
  19. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +3 -3
  20. package/src/app/components/git-file-group/git-file-group.component.js +3 -3
  21. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +3 -3
  22. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +3 -3
  23. package/src/app/components/git-history/git-history.component.js +3 -3
  24. package/src/app/components/git-host-row/git-host-row.component.js +3 -3
  25. package/src/app/components/git-person-avatar/git-person-avatar.component.js +3 -3
  26. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
  27. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +3 -3
  28. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +3 -3
  29. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +3 -3
  30. package/src/app/components/git-pull-requests/git-pull-requests.component.js +3 -3
  31. package/src/app/components/git-rebase/git-rebase.component.js +3 -3
  32. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +3 -3
  33. package/src/app/components/git-reference-text/git-reference-text.component.js +3 -3
  34. package/src/app/components/git-repository/git-repository.component.js +3 -3
  35. package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +3 -3
  36. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +3 -3
  37. package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -3
  38. package/src/app/components/git-view/git-view.component.js +3 -3
  39. package/src/app/components/git-workspace/git-visible.directive.js +3 -3
  40. package/src/app/components/git-workspace/git-workspace.component.js +3 -3
  41. package/src/app/components/git-workspace-across/git-workspace-across.component.js +3 -3
  42. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +3 -3
  43. package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
  44. package/src/app/services/git-code-colors.js +3 -3
  45. package/src/app/services/git-view-state.service.js +3 -3
@@ -210,10 +210,10 @@ export class GitPullRequestThreadsComponent {
210
210
  done();
211
211
  }
212
212
  }
213
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
214
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head {\n margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: 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: ["large", "quiet"] }] });
213
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestThreadsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
214
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head {\n margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: 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: ["large", "quiet"] }] });
215
215
  }
216
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, decorators: [{
216
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestThreadsComponent, decorators: [{
217
217
  type: Component,
218
218
  args: [{ selector: "nol-git-pull-request-threads", imports: [ButtonComponent, GitPersonAvatarComponent, MarkdownViewComponent, SectionHeaderComponent, SectionHeaderDetailDirective, SpinnerComponent,
219
219
  TextFieldComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head {\n margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"] }]
@@ -92,10 +92,10 @@ export class GitPullRequestsComponent {
92
92
  return fallback;
93
93
  }
94
94
  }
95
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
96
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <nol-section-header [label]=\"resources.pullRequestsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n <span nolSectionHeaderDetail class=\"host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </nol-section-header>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n 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:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row {\n padding-left: 1.875rem;\n}\n\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { 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]" }] });
95
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
96
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <nol-section-header [label]=\"resources.pullRequestsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n <span nolSectionHeaderDetail class=\"host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </nol-section-header>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n 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:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row {\n padding-left: 1.875rem;\n}\n\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { 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]" }] });
97
97
  }
98
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, decorators: [{
98
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestsComponent, decorators: [{
99
99
  type: Component,
100
100
  args: [{ selector: "nol-git-pull-requests", imports: [ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent, SectionHeaderComponent, SectionHeaderDetailDirective], host: { "(window:focus)": "refresh()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <nol-section-header [label]=\"resources.pullRequestsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n <span nolSectionHeaderDetail class=\"host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </nol-section-header>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n 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:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row {\n padding-left: 1.875rem;\n}\n\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"] }]
101
101
  }], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], remote: [{ type: i0.Input, args: [{ isSignal: true, alias: "remote", required: true }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], canSwitch: [{ type: i0.Input, args: [{ isSignal: true, alias: "canSwitch", required: false }] }], switchTo: [{ type: i0.Output, args: ["switchTo"] }] } });
@@ -382,10 +382,10 @@ export class GitRebaseComponent {
382
382
  run(work) {
383
383
  void work.catch((error) => this.errors.handleError(error));
384
384
  }
385
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
386
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, 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<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\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 container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
385
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
386
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, 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<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\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 container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { 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.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
387
387
  }
388
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebaseComponent, decorators: [{
388
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebaseComponent, decorators: [{
389
389
  type: Component,
390
390
  args: [{ selector: "nol-git-rebase", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, SelectComponent, TextFieldComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\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 container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"] }]
391
391
  }], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
@@ -24,10 +24,10 @@ export class GitRebasePreviewComponent {
24
24
  GitResolving.open(folder, path);
25
25
  this.context.openDocument(Resources.conflictsDocumentName, folder, Resources.formatConflictsTitle(folder));
26
26
  }
27
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebasePreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRebasePreviewComponent, isStandalone: true, selector: "nol-git-rebase-preview", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (preview(); as preview) {\n <section class=\"preview\" [attr.aria-label]=\"resources.rebasePreviewLabel\">\n <section class=\"now\">\n <h3 class=\"caps\">{{ resources.nowLabel }}</h3>\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n <div class=\"node indented muted\">{{ resources.formatCommitsFrom(preview.count, preview.base) }}</div>\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ resources.formatAheadOfBase(preview.plan.ontoAhead) }}</span></div>\n </section>\n <section class=\"after\">\n <h3 class=\"caps\">{{ resources.afterLabel }}</h3>\n @for (name of preview.stacked; track name) {\n <div class=\"node\"><span class=\"dot stacked-dot\"></span><span class=\"chip\">{{ name }}</span><span class=\"muted\">{{ resources.movedTooLabel }}</span></div>\n }\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n @for (subject of preview.after; track $index) {\n <div class=\"node indented result\"><nol-git-reference-text [text]=\"subject\" [folder]=\"preview.folder\" /></div>\n }\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ preview.ontoCommit }}</span></div>\n </section>\n @if (preview.stop; as stop) {\n <div class=\"stop-card\" role=\"status\">\n <div class=\"stop-title\"><span class=\"check-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.warningIcon }}</span><span class=\"strong\">{{ resources.formatStepStops(stop.step) }}</span></div>\n <p class=\"stop-text\">{{ resources.formatStepStopsNote(stop.paths, preview.onto, stop.commit) }}</p>\n @let stoppedAt = preview.stopped;\n <div><button nol-button type=\"button\" class=\"show-conflict\" [variant]=\"secondary\" [disabled]=\"stoppedAt === null\"\n [title]=\"stoppedAt === null ? resources.showConflictWaits : resources.showConflictLabel\"\n (click)=\"stoppedAt !== null && showConflict(preview.folder, stoppedAt)\">{{ resources.showConflictLabel }}</button></div>\n </div>\n }\n <div class=\"spacer\"></div>\n @if (preview.plan.pushed) {\n <p class=\"pushed muted\">{{ resources.pushedNote }}</p>\n }\n </section>\n} @else {\n <p class=\"muted empty-view\">{{ resources.rebasePreviewEmpty }}</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 min-width: 0;\n overflow: auto;\n background-color: var(--nol-panel);\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.preview {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n box-sizing: border-box;\n min-height: 100%;\n padding: 0.75rem;\n}\n\n.empty-view {\n margin: 0.75rem;\n}\n\n.now,\n.after {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.caps,\n.node,\n.pushed,\n.stop-text {\n font-size: 0.75rem;\n}\n\n.caps {\n margin: 0 0 0.25rem;\n color: var(--nol-text-muted);\n font-weight: normal;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.now {\n gap: 0.25rem;\n}\n\n.now .caps {\n margin: 0;\n}\n\n.node {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.625rem;\n white-space: nowrap;\n}\n\n.node > .muted {\n flex: 0 100 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.node.indented {\n padding-left: 1.125rem;\n}\n\n.result {\n overflow: hidden;\n color: var(--nol-text);\n text-overflow: ellipsis;\n}\n\n.dot {\n flex: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.branch-dot {\n background-color: var(--nol-author-1);\n}\n\n.onto-dot {\n background-color: var(--nol-author-3);\n}\n\n.stacked-dot {\n background-color: var(--nol-author-2);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n height: 1.25rem;\n padding: 0 0.375rem;\n overflow: hidden;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.stop-card {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-raised);\n}\n\n.stop-title {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n}\n\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.stop-text,\n.pushed {\n margin: 0;\n line-height: 1.6;\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }] });
27
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebasePreviewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
28
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitRebasePreviewComponent, isStandalone: true, selector: "nol-git-rebase-preview", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (preview(); as preview) {\n <section class=\"preview\" [attr.aria-label]=\"resources.rebasePreviewLabel\">\n <section class=\"now\">\n <h3 class=\"caps\">{{ resources.nowLabel }}</h3>\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n <div class=\"node indented muted\">{{ resources.formatCommitsFrom(preview.count, preview.base) }}</div>\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ resources.formatAheadOfBase(preview.plan.ontoAhead) }}</span></div>\n </section>\n <section class=\"after\">\n <h3 class=\"caps\">{{ resources.afterLabel }}</h3>\n @for (name of preview.stacked; track name) {\n <div class=\"node\"><span class=\"dot stacked-dot\"></span><span class=\"chip\">{{ name }}</span><span class=\"muted\">{{ resources.movedTooLabel }}</span></div>\n }\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n @for (subject of preview.after; track $index) {\n <div class=\"node indented result\"><nol-git-reference-text [text]=\"subject\" [folder]=\"preview.folder\" /></div>\n }\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ preview.ontoCommit }}</span></div>\n </section>\n @if (preview.stop; as stop) {\n <div class=\"stop-card\" role=\"status\">\n <div class=\"stop-title\"><span class=\"check-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.warningIcon }}</span><span class=\"strong\">{{ resources.formatStepStops(stop.step) }}</span></div>\n <p class=\"stop-text\">{{ resources.formatStepStopsNote(stop.paths, preview.onto, stop.commit) }}</p>\n @let stoppedAt = preview.stopped;\n <div><button nol-button type=\"button\" class=\"show-conflict\" [variant]=\"secondary\" [disabled]=\"stoppedAt === null\"\n [title]=\"stoppedAt === null ? resources.showConflictWaits : resources.showConflictLabel\"\n (click)=\"stoppedAt !== null && showConflict(preview.folder, stoppedAt)\">{{ resources.showConflictLabel }}</button></div>\n </div>\n }\n <div class=\"spacer\"></div>\n @if (preview.plan.pushed) {\n <p class=\"pushed muted\">{{ resources.pushedNote }}</p>\n }\n </section>\n} @else {\n <p class=\"muted empty-view\">{{ resources.rebasePreviewEmpty }}</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 min-width: 0;\n overflow: auto;\n background-color: var(--nol-panel);\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.preview {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n box-sizing: border-box;\n min-height: 100%;\n padding: 0.75rem;\n}\n\n.empty-view {\n margin: 0.75rem;\n}\n\n.now,\n.after {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.caps,\n.node,\n.pushed,\n.stop-text {\n font-size: 0.75rem;\n}\n\n.caps {\n margin: 0 0 0.25rem;\n color: var(--nol-text-muted);\n font-weight: normal;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.now {\n gap: 0.25rem;\n}\n\n.now .caps {\n margin: 0;\n}\n\n.node {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.625rem;\n white-space: nowrap;\n}\n\n.node > .muted {\n flex: 0 100 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.node.indented {\n padding-left: 1.125rem;\n}\n\n.result {\n overflow: hidden;\n color: var(--nol-text);\n text-overflow: ellipsis;\n}\n\n.dot {\n flex: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.branch-dot {\n background-color: var(--nol-author-1);\n}\n\n.onto-dot {\n background-color: var(--nol-author-3);\n}\n\n.stacked-dot {\n background-color: var(--nol-author-2);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n height: 1.25rem;\n padding: 0 0.375rem;\n overflow: hidden;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.stop-card {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-raised);\n}\n\n.stop-title {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n}\n\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.stop-text,\n.pushed {\n margin: 0;\n line-height: 1.6;\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }] });
29
29
  }
30
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebasePreviewComponent, decorators: [{
30
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebasePreviewComponent, decorators: [{
31
31
  type: Component,
32
32
  args: [{ selector: "nol-git-rebase-preview", imports: [ButtonComponent, GitReferenceTextComponent], 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 (preview(); as preview) {\n <section class=\"preview\" [attr.aria-label]=\"resources.rebasePreviewLabel\">\n <section class=\"now\">\n <h3 class=\"caps\">{{ resources.nowLabel }}</h3>\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n <div class=\"node indented muted\">{{ resources.formatCommitsFrom(preview.count, preview.base) }}</div>\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ resources.formatAheadOfBase(preview.plan.ontoAhead) }}</span></div>\n </section>\n <section class=\"after\">\n <h3 class=\"caps\">{{ resources.afterLabel }}</h3>\n @for (name of preview.stacked; track name) {\n <div class=\"node\"><span class=\"dot stacked-dot\"></span><span class=\"chip\">{{ name }}</span><span class=\"muted\">{{ resources.movedTooLabel }}</span></div>\n }\n <div class=\"node\"><span class=\"dot branch-dot\"></span><span class=\"chip\">{{ preview.branch }}</span></div>\n @for (subject of preview.after; track $index) {\n <div class=\"node indented result\"><nol-git-reference-text [text]=\"subject\" [folder]=\"preview.folder\" /></div>\n }\n <div class=\"node\"><span class=\"dot onto-dot\"></span><span class=\"chip\">{{ preview.onto }}</span><span class=\"muted\">{{ preview.ontoCommit }}</span></div>\n </section>\n @if (preview.stop; as stop) {\n <div class=\"stop-card\" role=\"status\">\n <div class=\"stop-title\"><span class=\"check-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.warningIcon }}</span><span class=\"strong\">{{ resources.formatStepStops(stop.step) }}</span></div>\n <p class=\"stop-text\">{{ resources.formatStepStopsNote(stop.paths, preview.onto, stop.commit) }}</p>\n @let stoppedAt = preview.stopped;\n <div><button nol-button type=\"button\" class=\"show-conflict\" [variant]=\"secondary\" [disabled]=\"stoppedAt === null\"\n [title]=\"stoppedAt === null ? resources.showConflictWaits : resources.showConflictLabel\"\n (click)=\"stoppedAt !== null && showConflict(preview.folder, stoppedAt)\">{{ resources.showConflictLabel }}</button></div>\n </div>\n }\n <div class=\"spacer\"></div>\n @if (preview.plan.pushed) {\n <p class=\"pushed muted\">{{ resources.pushedNote }}</p>\n }\n </section>\n} @else {\n <p class=\"muted empty-view\">{{ resources.rebasePreviewEmpty }}</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 min-width: 0;\n overflow: auto;\n background-color: var(--nol-panel);\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.preview {\n display: flex;\n flex-direction: column;\n gap: 1rem;\n box-sizing: border-box;\n min-height: 100%;\n padding: 0.75rem;\n}\n\n.empty-view {\n margin: 0.75rem;\n}\n\n.now,\n.after {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.caps,\n.node,\n.pushed,\n.stop-text {\n font-size: 0.75rem;\n}\n\n.caps {\n margin: 0 0 0.25rem;\n color: var(--nol-text-muted);\n font-weight: normal;\n letter-spacing: 0.02em;\n text-transform: uppercase;\n}\n\n.now {\n gap: 0.25rem;\n}\n\n.now .caps {\n margin: 0;\n}\n\n.node {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.625rem;\n white-space: nowrap;\n}\n\n.node > .muted {\n flex: 0 100 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.node.indented {\n padding-left: 1.125rem;\n}\n\n.result {\n overflow: hidden;\n color: var(--nol-text);\n text-overflow: ellipsis;\n}\n\n.dot {\n flex: none;\n width: 10px;\n height: 10px;\n border-radius: 50%;\n}\n\n.branch-dot {\n background-color: var(--nol-author-1);\n}\n\n.onto-dot {\n background-color: var(--nol-author-3);\n}\n\n.stacked-dot {\n background-color: var(--nol-author-2);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\n min-width: 0;\n height: 1.25rem;\n padding: 0 0.375rem;\n overflow: hidden;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.stop-card {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-raised);\n}\n\n.stop-title {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n}\n\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.stop-text,\n.pushed {\n margin: 0;\n line-height: 1.6;\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
33
33
  }], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
@@ -46,10 +46,10 @@ export class GitReferenceTextComponent {
46
46
  if (!GitLinkReferences.opens(this.folder(), opened.url, this.injector))
47
47
  void this.context.openLinkAsync(opened.url, { gesture: opened.gesture }).catch((error) => this.errors.handleError(error));
48
48
  }
49
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitReferenceTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitReferenceTextComponent, isStandalone: true, selector: "nol-git-reference-text", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, chipTabIndex: { classPropertyName: "chipTabIndex", publicName: "chipTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (part of parts(); track $index) {\n @if (part.url; as url) {\n @if (chipOf(part); as reference) {\n <a nol-link-reference-chip title=\"\" [reference]=\"reference\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\" (linkActivate)=\"open($event)\"></a>\n @if (reference.workItemState; as state) {{{ ' ' }}<nol-link-reference-work-item-state [state]=\"state\" />}\n @if (reference.title === null && title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n @else {\n <a class=\"reference\" [class.linked]=\"link() !== null\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\">{{ part.reference?.()?.reference ?? part.text }}</a>\n @if (title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n } @else {\n <span>{{ part.text }}</span>\n }\n}\n", styles: [".reference {\n color: var(--nol-link);\n text-decoration: none;\n}\n\n.reference:hover {\n text-decoration: underline;\n}\n\n.reference.linked {\n color: inherit;\n}\n\n:host(.line) {\n display: flex;\n align-items: baseline;\n min-width: 0;\n}\n\n:host(.line) > span,\n:host(.line) > .reference {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n\n:host(.line) > a[nol-link-reference-chip],\n:host(.line) > a[nol-link-reference-chip] ~ * {\n flex-shrink: 1000;\n}\n\n:host(.line) > a[nol-link-reference-chip] {\n min-width: calc(var(--nol-reference-mark) + var(--nol-icon) + 2 * var(--nol-space-1) + 1em);\n}\n\n:host(.line) > a[nol-link-reference-chip] ~ nol-link-reference-work-item-state {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference", "isInline"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceWorkItemStateComponent, selector: "nol-link-reference-work-item-state", inputs: ["state"] }] });
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitReferenceTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
50
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitReferenceTextComponent, isStandalone: true, selector: "nol-git-reference-text", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, link: { classPropertyName: "link", publicName: "link", isSignal: true, isRequired: false, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: false, transformFunction: null }, chipTabIndex: { classPropertyName: "chipTabIndex", publicName: "chipTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "@for (part of parts(); track $index) {\n @if (part.url; as url) {\n @if (chipOf(part); as reference) {\n <a nol-link-reference-chip title=\"\" [reference]=\"reference\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\" (linkActivate)=\"open($event)\"></a>\n @if (reference.workItemState; as state) {{{ ' ' }}<nol-link-reference-work-item-state [state]=\"state\" />}\n @if (reference.title === null && title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n @else {\n <a class=\"reference\" [class.linked]=\"link() !== null\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\">{{ part.reference?.()?.reference ?? part.text }}</a>\n @if (title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n } @else {\n <span>{{ part.text }}</span>\n }\n}\n", styles: [".reference {\n color: var(--nol-link);\n text-decoration: none;\n}\n\n.reference:hover {\n text-decoration: underline;\n}\n\n.reference.linked {\n color: inherit;\n}\n\n:host(.line) {\n display: flex;\n align-items: baseline;\n min-width: 0;\n}\n\n:host(.line) > span,\n:host(.line) > .reference {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n\n:host(.line) > a[nol-link-reference-chip],\n:host(.line) > a[nol-link-reference-chip] ~ * {\n flex-shrink: 1000;\n}\n\n:host(.line) > a[nol-link-reference-chip] {\n min-width: calc(var(--nol-reference-mark) + var(--nol-icon) + 2 * var(--nol-space-1) + 1em);\n}\n\n:host(.line) > a[nol-link-reference-chip] ~ nol-link-reference-work-item-state {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n"], dependencies: [{ kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference", "isInline"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceWorkItemStateComponent, selector: "nol-link-reference-work-item-state", inputs: ["state"] }] });
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitReferenceTextComponent, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitReferenceTextComponent, decorators: [{
53
53
  type: Component,
54
54
  args: [{ selector: "nol-git-reference-text", imports: [LinkReferenceChipComponent, LinkReferenceWorkItemStateComponent], template: "@for (part of parts(); track $index) {\n @if (part.url; as url) {\n @if (chipOf(part); as reference) {\n <a nol-link-reference-chip title=\"\" [reference]=\"reference\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\" (linkActivate)=\"open($event)\"></a>\n @if (reference.workItemState; as state) {{{ ' ' }}<nol-link-reference-work-item-state [state]=\"state\" />}\n @if (reference.title === null && title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n @else {\n <a class=\"reference\" [class.linked]=\"link() !== null\" [href]=\"url\" [attr.tabindex]=\"chipTabIndex()\" (click)=\"activate($event, url)\">{{ part.reference?.()?.reference ?? part.text }}</a>\n @if (title(); as words) {{{ ' ' }}<span [title]=\"words\">{{ words }}</span>}\n }\n } @else {\n <span>{{ part.text }}</span>\n }\n}\n", styles: [".reference {\n color: var(--nol-link);\n text-decoration: none;\n}\n\n.reference:hover {\n text-decoration: underline;\n}\n\n.reference.linked {\n color: inherit;\n}\n\n:host(.line) {\n display: flex;\n align-items: baseline;\n min-width: 0;\n}\n\n:host(.line) > span,\n:host(.line) > .reference {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: pre;\n}\n\n:host(.line) > a[nol-link-reference-chip],\n:host(.line) > a[nol-link-reference-chip] ~ * {\n flex-shrink: 1000;\n}\n\n:host(.line) > a[nol-link-reference-chip] {\n min-width: calc(var(--nol-reference-mark) + var(--nol-icon) + 2 * var(--nol-space-1) + 1em);\n}\n\n:host(.line) > a[nol-link-reference-chip] ~ nol-link-reference-work-item-state {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n"] }]
55
55
  }], propDecorators: { text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: true }] }], folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], link: [{ type: i0.Input, args: [{ isSignal: true, alias: "link", required: false }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: false }] }], chipTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "chipTabIndex", required: false }] }] } });
@@ -310,10 +310,10 @@ export class GitRepositoryComponent {
310
310
  if (!GitRuntimeClient.isFailure(error))
311
311
  this.errors.handleError(error);
312
312
  }
313
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
314
- 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 @if (takesView) {\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 }\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 <button type=\"button\" class=\"row nested stash\" [title]=\"stash.message\" [nolContextMenuTriggerFor]=\"stashMenu\"><span class=\"ms\">{{ resources.stashIcon }}</span><span\n class=\"grow\">{{ stash.message }}</span></button>\n <ng-template #stashMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.applyStashLabel\" [icon]=\"resources.applyStashIcon\" (triggered)=\"applyStash(path, stash.id, status)\"></button>\n <button nol-menu-item [label]=\"resources.popStashLabel\" [icon]=\"resources.popStashIcon\" (triggered)=\"popStash(path, stash.id, status)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.dropStashLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"dropStash(path, stash.id, status)\"></button>\n </nol-menu>\n }\n </ng-template>\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: ["large", "quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
313
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRepositoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
314
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", 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 @if (takesView) {\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 }\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 <button type=\"button\" class=\"row nested stash\" [title]=\"stash.message\" [nolContextMenuTriggerFor]=\"stashMenu\"><span class=\"ms\">{{ resources.stashIcon }}</span><span\n class=\"grow\">{{ stash.message }}</span></button>\n <ng-template #stashMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.applyStashLabel\" [icon]=\"resources.applyStashIcon\" (triggered)=\"applyStash(path, stash.id, status)\"></button>\n <button nol-menu-item [label]=\"resources.popStashLabel\" [icon]=\"resources.popStashIcon\" (triggered)=\"popStash(path, stash.id, status)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.dropStashLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"dropStash(path, stash.id, status)\"></button>\n </nol-menu>\n }\n </ng-template>\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: ["large", "quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
315
315
  }
316
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryComponent, decorators: [{
316
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRepositoryComponent, decorators: [{
317
317
  type: Component,
318
318
  args: [{ selector: "nol-git-repository", imports: [ContextMenuTriggerDirective, FormsModule, GitAgentsComponent, GitPullRequestsComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent,
319
319
  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 @if (takesView) {\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 }\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 <button type=\"button\" class=\"row nested stash\" [title]=\"stash.message\" [nolContextMenuTriggerFor]=\"stashMenu\"><span class=\"ms\">{{ resources.stashIcon }}</span><span\n class=\"grow\">{{ stash.message }}</span></button>\n <ng-template #stashMenu>\n @if (switchable(); as status) {\n <nol-menu>\n <button nol-menu-item [label]=\"resources.applyStashLabel\" [icon]=\"resources.applyStashIcon\" (triggered)=\"applyStash(path, stash.id, status)\"></button>\n <button nol-menu-item [label]=\"resources.popStashLabel\" [icon]=\"resources.popStashIcon\" (triggered)=\"popStash(path, stash.id, status)\"></button>\n <nol-menu-separator />\n <button nol-menu-item [label]=\"resources.dropStashLabel\" [icon]=\"resources.deleteIcon\" (triggered)=\"dropStash(path, stash.id, status)\"></button>\n </nol-menu>\n }\n </ng-template>\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"] }]