@noldova/git.window 0.0.7 → 0.0.9
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.
- package/package.json +9 -9
- package/src/api/index.d.ts +107 -13
- package/src/api/index.js +1 -0
- package/src/api/index.js.map +1 -1
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +7 -3
- package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -1
- package/src/app/components/git-accounts/git-accounts.component.js +8 -4
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
- package/src/app/components/git-command-log/git-command-log.component.js +40 -7
- package/src/app/components/git-command-log/git-command-log.component.js.map +1 -1
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +6 -5
- package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -1
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -5
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -1
- package/src/app/components/git-conflicts/git-conflicts.component.js +2 -2
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-dashboard/git-dashboard.component.js +30 -0
- package/src/app/components/git-dashboard/git-dashboard.component.js.map +1 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js +6 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
- package/src/app/components/git-history/git-history.component.js +99 -15
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -1
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +21 -11
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +7 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
- package/src/app/components/git-rebase/git-rebase.component.js +2 -2
- package/src/app/components/git-rebase/git-rebase.component.js.map +1 -1
- package/src/app/components/git-repository/git-repository.component.js +16 -4
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +62 -0
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js.map +1 -0
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -1
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +37 -7
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-workspace.component.js +65 -15
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +2 -2
- package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -1
- package/src/app/components/git-workspaces/git-workspaces.component.js +2 -2
- package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
- package/src/app/exceptions/git-window-inactive.exception.js +16 -0
- package/src/app/exceptions/git-window-inactive.exception.js.map +1 -0
- package/src/app/models/git-branch-menu-item.js.map +1 -1
- package/src/app/models/git-detail-page.js +3 -1
- package/src/app/models/git-detail-page.js.map +1 -1
- package/src/app/models/git-folder-look.js +20 -0
- package/src/app/models/git-folder-look.js.map +1 -0
- package/src/app/models/git-host-card.js +5 -1
- package/src/app/models/git-host-card.js.map +1 -1
- package/src/app/models/git-host-failure.js +29 -0
- package/src/app/models/git-host-failure.js.map +1 -0
- package/src/app/models/git-pull-request-list.js +8 -1
- package/src/app/models/git-pull-request-list.js.map +1 -1
- package/src/app/models/git-pull-request-row.js +3 -1
- package/src/app/models/git-pull-request-row.js.map +1 -1
- package/src/app/models/git-repository-summary.js +3 -1
- package/src/app/models/git-repository-summary.js.map +1 -1
- package/src/app/models/git-status-bar-items.js +3 -1
- package/src/app/models/git-status-bar-items.js.map +1 -1
- package/src/app/models/git-workspace-overview.js +8 -0
- package/src/app/models/git-workspace-overview.js.map +1 -1
- package/src/app/models/git-workspace-row.js +5 -5
- package/src/app/models/git-workspace-row.js.map +1 -1
- package/src/app/services/commit-labels.js +2 -4
- package/src/app/services/commit-labels.js.map +1 -1
- package/src/app/services/git-commit-details.js +1 -1
- package/src/app/services/git-commit-details.js.map +1 -1
- package/src/app/services/git-detail-view.js +21 -7
- package/src/app/services/git-detail-view.js.map +1 -1
- package/src/app/services/git-folder-looks.js +44 -0
- package/src/app/services/git-folder-looks.js.map +1 -0
- package/src/app/services/git-history-rows.js +5 -4
- package/src/app/services/git-history-rows.js.map +1 -1
- package/src/app/services/git-host-accounts.js +2 -1
- package/src/app/services/git-host-accounts.js.map +1 -1
- package/src/app/services/git-repository-scans.js +41 -0
- package/src/app/services/git-repository-scans.js.map +1 -0
- package/src/app/services/git-repository-summaries.js +2 -1
- package/src/app/services/git-repository-summaries.js.map +1 -1
- package/src/app/services/git-runtime-client.js +13 -1
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/app/services/git-status-bar.js +13 -7
- package/src/app/services/git-status-bar.js.map +1 -1
- package/src/app/services/git-view-state.service.js +3 -0
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-window-context.js +25 -0
- package/src/app/services/git-window-context.js.map +1 -0
- package/src/app/services/git-window-part.js +12 -5
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-workspace-across-views.js +4 -1
- package/src/app/services/git-workspace-across-views.js.map +1 -1
- package/src/app/services/git-workspace-pages.js +0 -2
- package/src/app/services/git-workspace-pages.js.map +1 -1
- package/src/resources.js +66 -17
- package/src/resources.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-command-log.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-command-log/git-command-log.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-command-log/git-command-log.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,
|
|
1
|
+
{"version":3,"file":"git-command-log.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-command-log/git-command-log.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-command-log/git-command-log.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,EAAE,SAAS,EAC1J,MAAM,eAAe,CAAC;AAC7C,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAGvG,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;;AAO/E,MAAM,OAAO,sBAAsB;IAChB,OAAO,GAAuB,MAAM,CAAqB,gBAAgB,CAAC,OAAO,CAAC,CAAC;IACnF,MAAM,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC9D,MAAM,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC5C,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IACtC,KAAK,GAAsB,MAAM,CAAC,iBAAiB,CAAC,CAAC;IACrD,IAAI,GAAgD,SAAS,CAA0B,MAAM;6EAAC,CAAC;IACxG,KAAK,GAAG,CAAC,CAAC;IACV,MAAM,GAAG,CAAC,CAAC;IAEA,SAAS,GAAqB,SA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,KAAK,CAAC;QAClC,IAAI,CAAC;YACH,MAAM,GAAG,GAAkB,MAAM,IAAI,CAAC,MAAM,CAAC,eAAe,CAAC,MAAM,CAAC,CAAC;YACrE,IAAI,IAAI,KAAK,IAAI,CAAC,KAAK,EAAE,CAAC;gBACxB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;gBAClB,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;YAC7B,CAAC;QACH,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC;gBACpC,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;iBAC5B,IAAI,IAAI,KAAK,IAAI,CAAC,KAAK;gBAC1B,IAAI,CAAC,WAAW,CAAC,GAAG,CAAC,mBAAmB,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,CAAC;QAC/D,CAAC;IACH,CAAC;uGA3GU,sBAAsB;2FAAtB,sBAAsB,yUCvBnC,0wCA6BA;;2FDNa,sBAAsB;kBALlC,SAAS;+BACE,qBAAqB;4FAUyE,MAAM"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Component, computed, DestroyRef, effect, ErrorHandler, inject, Injector, input, signal, untracked, viewChild } from "@angular/core";
|
|
9
9
|
import "@noldova/context.core";
|
|
10
|
-
import { LinkPlace, WindowPartTokens } from "@noldova/desktop.window";
|
|
10
|
+
import { LinkPlace, TimeFormatService, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
11
|
import { DiffScope, DiffScopeKind, PredictionAction, RefKind, SignatureState } from "@noldova/git.protocol";
|
|
12
12
|
import { FormsModule } from "@angular/forms";
|
|
13
13
|
import { ButtonComponent, ButtonVariant, FileBadgeComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TextFieldComponent, TooltipDirective } from "@noldova/ui.components.angular";
|
|
@@ -39,6 +39,7 @@ export class GitCommitDetailComponent {
|
|
|
39
39
|
client = new GitRuntimeClient(this.context);
|
|
40
40
|
errors = inject(ErrorHandler);
|
|
41
41
|
injector = inject(Injector);
|
|
42
|
+
dates = inject(TimeFormatService);
|
|
42
43
|
state = inject(GitViewStateService);
|
|
43
44
|
resources = Resources;
|
|
44
45
|
showsAiFeatures = GitViewOptions.showsAiFeatures;
|
|
@@ -115,13 +116,13 @@ export class GitCommitDetailComponent {
|
|
|
115
116
|
...(ngDevMode ? [{ debugName: "avatar" }] : /* istanbul ignore next */ []));
|
|
116
117
|
image = computed(() => GitAvatars.imageOf(this.folder(), this.commit().email, this.commit().commit.id), /* @ts-ignore */
|
|
117
118
|
...(ngDevMode ? [{ debugName: "image" }] : /* istanbul ignore next */ []));
|
|
118
|
-
authored = computed(() => Resources.formatAuthored(
|
|
119
|
+
authored = computed(() => Resources.formatAuthored(this.dates.shortDateTime(this.commit().commit.authoredAt)), /* @ts-ignore */
|
|
119
120
|
...(ngDevMode ? [{ debugName: "authored" }] : /* istanbul ignore next */ []));
|
|
120
121
|
committed = computed(() => {
|
|
121
122
|
const more = this.more();
|
|
122
123
|
if (Object.isNull(more) || more.committer === this.commit().commit.author)
|
|
123
124
|
return null;
|
|
124
|
-
return Resources.formatCommitted(more.committer,
|
|
125
|
+
return Resources.formatCommitted(more.committer, this.dates.shortDateTime(more.committedAt));
|
|
125
126
|
}, /* @ts-ignore */
|
|
126
127
|
...(ngDevMode ? [{ debugName: "committed" }] : /* istanbul ignore next */ []));
|
|
127
128
|
scope = computed(() => {
|
|
@@ -253,11 +254,11 @@ export class GitCommitDetailComponent {
|
|
|
253
254
|
}
|
|
254
255
|
}
|
|
255
256
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommitDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
256
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommitDetailComponent, isStandalone: true, selector: "nol-git-commit-detail", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, commit: { classPropertyName: "commit", publicName: "commit", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "files", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\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: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\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}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\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.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\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 width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\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: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { 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: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { 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: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommitDetailComponent, isStandalone: true, selector: "nol-git-commit-detail", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, commit: { classPropertyName: "commit", publicName: "commit", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "files", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\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: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.id-row > [nol-icon-button]:last-child {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\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}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\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.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\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 width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\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: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { 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: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { 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: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
257
258
|
}
|
|
258
259
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommitDetailComponent, decorators: [{
|
|
259
260
|
type: Component,
|
|
260
261
|
args: [{ selector: "nol-git-commit-detail", imports: [ButtonComponent, FileBadgeComponent, FormsModule, GitDiffFilesComponent, GitReferenceTextComponent, IconButtonComponent, MarkdownViewComponent,
|
|
261
|
-
MenuComponent, MenuItemComponent, MenuTriggerDirective, 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<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\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: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\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}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\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.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\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 width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
262
|
+
MenuComponent, MenuItemComponent, MenuTriggerDirective, 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<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\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: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.id-row > [nol-icon-button]:last-child {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\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}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\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.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\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 width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
262
263
|
}], ctorParameters: () => [], propDecorators: { files: [{ type: i0.ViewChild, args: [i0.forwardRef(() => GitDiffFilesComponent), { isSignal: true }] }], folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], commit: [{ type: i0.Input, args: [{ isSignal: true, alias: "commit", required: true }] }] } });
|
|
263
264
|
//# sourceMappingURL=git-commit-detail.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-commit-detail.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail/git-commit-detail.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail/git-commit-detail.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAe,SAAS,EAAE,SAAS,EAC5I,MAAM,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC/F,OAAO,EACL,SAAS,EAAE,aAAa,EAAsF,gBAAgB,EAAE,OAAO,EAAE,cAAc,EACxJ,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,EACL,eAAe,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAiD,aAAa,EAAE,iBAAiB,EACxJ,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,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,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,IAAI,EAAE,MAAM,CAAC,SAAS,CAAC,CAAC,CAAC;IAChH,CAAC;IAEO,OAAO,CAAI,GAAY,EAAE,QAAW;QAC1C,IAAI,CAAC;YACH,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO,QAAQ,CAAC;QAClB,CAAC;IACH,CAAC;uGA1NU,wBAAwB;2FAAxB,wBAAwB,wXA0D0C,qBAAqB,gEChHpG,qgSAuIA,svMDtFY,eAAe,oJAAE,kBAAkB,4FAAE,WAAW,+pCAAE,qBAAqB,sGAAE,yBAAyB,gIAAE,mBAAmB,2MAAE,qBAAqB,kXACtJ,aAAa,2EAAE,iBAAiB,6LAAE,oBAAoB,oJAAE,kBAAkB,+GAAE,gBAAgB;;2FAInF,wBAAwB;kBAPpC,SAAS;+BACE,uBAAuB,WACxB,CAAC,eAAe,EAAE,kBAAkB,EAAE,WAAW,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,qBAAqB;wBACtJ,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC;iHA8DlB,qBAAqB"}
|
|
1
|
+
{"version":3,"file":"git-commit-detail.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail/git-commit-detail.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail/git-commit-detail.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAA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EAAE,kBAAkB,EAAE,WAAW,EAAE,qBAAqB,EAAE,yBAAyB,EAAE,mBAAmB,EAAE,qBAAqB;wBACtJ,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,kBAAkB,EAAE,gBAAgB,CAAC;iHA+DlB,qBAAqB"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { Component, inject
|
|
8
|
+
import { Component, inject } from "@angular/core";
|
|
9
9
|
import { WindowPartTokens } from "@noldova/desktop.window";
|
|
10
10
|
import { Resources } from "../../../resources.js";
|
|
11
11
|
import { GitCommitDetails } from "../../services/git-commit-details.js";
|
|
@@ -15,13 +15,11 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
export class GitCommitDetailViewComponent {
|
|
16
16
|
resources = Resources;
|
|
17
17
|
shown = GitCommitDetails.of(inject(WindowPartTokens.context)).shown;
|
|
18
|
-
instance = input.required(/* @ts-ignore */
|
|
19
|
-
...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
|
|
20
18
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommitDetailViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommitDetailViewComponent, isStandalone: true, selector: "nol-git-commit-detail-view",
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommitDetailViewComponent, isStandalone: true, selector: "nol-git-commit-detail-view", providers: [GitViewStateService], ngImport: i0, template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</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: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitCommitDetailComponent, selector: "nol-git-commit-detail", inputs: ["folder", "commit"] }] });
|
|
22
20
|
}
|
|
23
21
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommitDetailViewComponent, decorators: [{
|
|
24
22
|
type: Component,
|
|
25
23
|
args: [{ selector: "nol-git-commit-detail-view", imports: [GitCommitDetailComponent], providers: [GitViewStateService], template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</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: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
26
|
-
}]
|
|
24
|
+
}] });
|
|
27
25
|
//# sourceMappingURL=git-commit-detail-view.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-commit-detail-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail-view/git-commit-detail-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail-view/git-commit-detail-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"git-commit-detail-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail-view/git-commit-detail-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-commit-detail-view/git-commit-detail-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAe,MAAM,eAAe,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAG3D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;;AAS/F,MAAM,OAAO,4BAA4B;IACpB,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAAiC,gBAAgB,CAAC,EAAE,CAAC,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC,CAAC,KAAK,CAAC;uGAF1G,4BAA4B;2FAA5B,4BAA4B,yEAJ5B,CAAC,mBAAmB,CAAC,0BCpBlC,gMAKA,umBDcY,wBAAwB;;2FAKvB,4BAA4B;kBAPxC,SAAS;+BACE,4BAA4B,WAC7B,CAAC,wBAAwB,CAAC,aACxB,CAAC,mBAAmB,CAAC"}
|
|
@@ -242,10 +242,10 @@ export class GitConflictsComponent {
|
|
|
242
242
|
return Object.isNull(conflict) || kinds.has(conflict.kind);
|
|
243
243
|
}
|
|
244
244
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
246
246
|
}
|
|
247
247
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, decorators: [{
|
|
248
248
|
type: Component,
|
|
249
|
-
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
249
|
+
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
250
250
|
}], ctorParameters: () => [], propDecorators: { editor: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MergeEditorComponent), { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
251
251
|
//# sourceMappingURL=git-conflicts.component.js.map
|