@noldova/git.window 0.0.8 → 0.0.10
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-branch-card/git-branch-card.component.js +2 -2
- package/src/app/components/git-branch-card/git-branch-card.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-card/git-commit-card.component.js +5 -15
- package/src/app/components/git-commit-card/git-commit-card.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 +116 -16
- 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 +23 -5
- 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 +39 -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-commands.js +46 -0
- package/src/app/services/git-view-commands.js.map +1 -0
- package/src/app/services/git-view-state.service.js +53 -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 +16 -6
- 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 +83 -17
- package/src/resources.js.map +1 -1
package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-pull-request-commits.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"git-pull-request-commits.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-commits/git-pull-request-commits.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EAAE,MAAM,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxK,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACxH,OAAO,EAA8B,sBAAsB,EAAsB,MAAM,+BAA+B,CAAC;AACvH,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAGlG,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,mBAAmB,EAAE,MAAM,yCAAyC,CAAC;A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AI,CAAC,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;YAClG,CAAC;QACH,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,CAAC,KAAK,YAAY,eAAe,CAAC;gBACrC,MAAM,KAAK,CAAC;YACd,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,uBAAuB,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,CAAC,iBAAiB,EAAE,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;YACpH,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,CAAC,kCAAkC,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;QACrF,CAAC;gBACO,CAAC;YACP,IAAI,SAAS,EAAE;gBACb,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC5B,IAAI,EAAE,CAAC;QACT,CAAC;IACH,CAAC;uGAjGU,8BAA8B;2FAA9B,8BAA8B,6eCzB3C,q4CAmCA,wqDDZY,eAAe,oJAAE,gBAAgB;;2FAEhC,8BAA8B;kBAN1C,SAAS;+BACE,8BAA8B,WAG/B,CAAC,eAAe,EAAE,gBAAgB,CAAC"}
|
|
@@ -6,10 +6,12 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { afterNextRender, Component, computed, effect, ElementRef, inject, Injector, input, output, PendingTasks, signal, untracked, viewChildren } from "@angular/core";
|
|
9
|
-
import
|
|
9
|
+
import "@noldova/context.core";
|
|
10
|
+
import { TimeFormatService, WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
10
11
|
import { HostComment, HostPullRequestThreads, HostThread, ThreadStatus } from "@noldova/git.hosting.protocol";
|
|
11
12
|
import { AvatarSize, ButtonComponent, ButtonSize, ButtonVariant, SpinnerComponent, TextFieldComponent } from "@noldova/ui.components.angular";
|
|
12
13
|
import { MarkdownViewComponent } from "@noldova/ui.components.angular/markdown";
|
|
14
|
+
import { GitHostFailure } from "../../models/git-host-failure.js";
|
|
13
15
|
import { ThreadLine } from "../../models/thread-line.js";
|
|
14
16
|
import { Resources } from "../../../resources.js";
|
|
15
17
|
import { GitPersonAvatarComponent } from "../git-person-avatar/git-person-avatar.component.js";
|
|
@@ -20,7 +22,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
20
22
|
injector = inject(Injector);
|
|
21
23
|
attempt = signal(0, /* @ts-ignore */
|
|
22
24
|
...(ngDevMode ? [{ debugName: "attempt" }] : /* istanbul ignore next */ []));
|
|
23
|
-
dates =
|
|
25
|
+
dates = inject(TimeFormatService);
|
|
24
26
|
draftFields = viewChildren("draft", { ...(ngDevMode ? { debugName: "draftFields" } : /* istanbul ignore next */ {}), read: ElementRef });
|
|
25
27
|
generation = 0;
|
|
26
28
|
resources = Resources;
|
|
@@ -58,6 +60,8 @@ export class GitPullRequestThreadsComponent {
|
|
|
58
60
|
...(ngDevMode ? [{ debugName: "isAutoComplete" }] : /* istanbul ignore next */ []));
|
|
59
61
|
references = input(null, /* @ts-ignore */
|
|
60
62
|
...(ngDevMode ? [{ debugName: "references" }] : /* istanbul ignore next */ []));
|
|
63
|
+
login = input(null, /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "login" }] : /* istanbul ignore next */ []));
|
|
61
65
|
linkOpen = output();
|
|
62
66
|
goToLine = output();
|
|
63
67
|
constructor() {
|
|
@@ -84,6 +88,9 @@ export class GitPullRequestThreadsComponent {
|
|
|
84
88
|
});
|
|
85
89
|
});
|
|
86
90
|
}
|
|
91
|
+
textOf(failure) {
|
|
92
|
+
return failure.textOf(this.host().name, this.dates);
|
|
93
|
+
}
|
|
87
94
|
retry() {
|
|
88
95
|
this.attempt.update(t => t + 1);
|
|
89
96
|
}
|
|
@@ -100,7 +107,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
100
107
|
this.unfolded.update(t => new Set([...t, thread.id]));
|
|
101
108
|
}
|
|
102
109
|
dateOf(comment) {
|
|
103
|
-
return this.dates.
|
|
110
|
+
return this.dates.shortDateTime(comment.publishedAt);
|
|
104
111
|
}
|
|
105
112
|
draftOf(thread) {
|
|
106
113
|
return this.drafts().get(thread.id) ?? "";
|
|
@@ -123,7 +130,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
123
130
|
}
|
|
124
131
|
async replyAsync(thread, method) {
|
|
125
132
|
const body = this.draftOf(thread);
|
|
126
|
-
const reply = { reference: this.reference().toJson(), thread: thread.id, parent: Math.min(...thread.comments.map(t => t.id)), body };
|
|
133
|
+
const reply = { reference: this.reference().toJson(), thread: thread.id, parent: Math.min(...thread.comments.map(t => t.id)), body, ...this.loginField() };
|
|
127
134
|
await this.writeAsync(thread, method, reply, answer => {
|
|
128
135
|
const comment = HostComment.fromJson(answer);
|
|
129
136
|
this.replace(thread.id, t => new HostThread(t.id, t.state, t.path, t.line, [...t.comments, comment]));
|
|
@@ -147,11 +154,15 @@ export class GitPullRequestThreadsComponent {
|
|
|
147
154
|
}
|
|
148
155
|
async changeAsync(thread, method) {
|
|
149
156
|
const state = this.isOpen(thread) ? ThreadStatus.Resolved : ThreadStatus.Active;
|
|
150
|
-
await this.writeAsync(thread, method, { reference: this.reference().toJson(), thread: thread.id, state }, () => {
|
|
157
|
+
await this.writeAsync(thread, method, { reference: this.reference().toJson(), thread: thread.id, state, ...this.loginField() }, () => {
|
|
151
158
|
this.unfold(thread);
|
|
152
159
|
this.replace(thread.id, t => new HostThread(t.id, state, t.path, t.line, t.comments));
|
|
153
160
|
});
|
|
154
161
|
}
|
|
162
|
+
loginField() {
|
|
163
|
+
const login = this.login();
|
|
164
|
+
return Object.isNull(login) ? {} : { login };
|
|
165
|
+
}
|
|
155
166
|
replace(id, change) {
|
|
156
167
|
this.threads.update(threads => threads.map(t => t.id === id ? change(t) : t));
|
|
157
168
|
}
|
|
@@ -170,8 +181,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
170
181
|
throw error;
|
|
171
182
|
this.context.log(Resources.formatHostRequestFailed(this.host().name, method, String(error)));
|
|
172
183
|
if (generation === this.generation)
|
|
173
|
-
this.writeFailures.update(t => new Map([...t, [thread.id, error
|
|
174
|
-
: Resources.formatThreadWriteUnanswered(this.host().name)]]));
|
|
184
|
+
this.writeFailures.update(t => new Map([...t, [thread.id, GitHostFailure.of(error, Resources.formatThreadWriteUnanswered(this.host().name))]]));
|
|
175
185
|
}
|
|
176
186
|
finally {
|
|
177
187
|
if (generation === this.generation)
|
|
@@ -195,17 +205,17 @@ export class GitPullRequestThreadsComponent {
|
|
|
195
205
|
throw error;
|
|
196
206
|
this.context.log(Resources.formatHostRequestFailed(host.name, host.readThreadsMethod, String(error)));
|
|
197
207
|
if (isCurrent())
|
|
198
|
-
this.failure.set(error
|
|
208
|
+
this.failure.set(GitHostFailure.of(error, Resources.formatThreadsUnanswered(host.name)));
|
|
199
209
|
}
|
|
200
210
|
finally {
|
|
201
211
|
done();
|
|
202
212
|
}
|
|
203
213
|
}
|
|
204
214
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
205
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ writeFailure }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.answer-failure {\n display: inline-flex;\n flex: 1;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }] });
|
|
215
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ textOf(writeFailure) }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.answer-failure {\n display: inline-flex;\n flex: 1;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }] });
|
|
206
216
|
}
|
|
207
217
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestThreadsComponent, decorators: [{
|
|
208
218
|
type: Component,
|
|
209
|
-
args: [{ selector: "nol-git-pull-request-threads", imports: [ButtonComponent, GitPersonAvatarComponent, MarkdownViewComponent, SpinnerComponent, TextFieldComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ writeFailure }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-
|
|
210
|
-
}], ctorParameters: () => [], propDecorators: { draftFields: [{ type: i0.ViewChildren, args: ["draft", { ...{ read: ElementRef }, isSignal: true }] }], host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], isAutoComplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "isAutoComplete", required: false }] }], references: [{ type: i0.Input, args: [{ isSignal: true, alias: "references", required: false }] }], linkOpen: [{ type: i0.Output, args: ["linkOpen"] }], goToLine: [{ type: i0.Output, args: ["goToLine"] }] } });
|
|
219
|
+
args: [{ selector: "nol-git-pull-request-threads", imports: [ButtonComponent, GitPersonAvatarComponent, MarkdownViewComponent, SpinnerComponent, TextFieldComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <div class=\"threads-head\">\n <h2 class=\"threads-title\">{{ resources.commentsTitle }}</h2>\n @if (threads().length > 0) {\n <span class=\"small muted\">{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </div>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (writeFailures().get(thread.id); as writeFailure) {\n <span class=\"answer-failure\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>{{ textOf(writeFailure) }}\n </span>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head,\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-title {\n flex: 1;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-strong);\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.answer-failure {\n display: inline-flex;\n flex: 1;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n color: var(--nol-text-muted);\n overflow-wrap: anywhere;\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"] }]
|
|
220
|
+
}], ctorParameters: () => [], propDecorators: { draftFields: [{ type: i0.ViewChildren, args: ["draft", { ...{ read: ElementRef }, isSignal: true }] }], host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], isAutoComplete: [{ type: i0.Input, args: [{ isSignal: true, alias: "isAutoComplete", required: false }] }], references: [{ type: i0.Input, args: [{ isSignal: true, alias: "references", required: false }] }], login: [{ type: i0.Input, args: [{ isSignal: true, alias: "login", required: false }] }], linkOpen: [{ type: i0.Output, args: ["linkOpen"] }], goToLine: [{ type: i0.Output, args: ["goToLine"] }] } });
|
|
211
221
|
//# sourceMappingURL=git-pull-request-threads.component.js.map
|
package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-pull-request-threads.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EACvJ,MAAM,EAAE,SAAS,EAAE,YAAY,EAAuB,MAAM,eAAe,CAAC;AAE9E,OAAO,EAA2B,uBAAuB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC9H,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAsB,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAiD,gBAAgB,EAAE,kBAAkB,EAAE,MAC/I,gCAAgC,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;;AAQ/F,MAAM,OAAO,8BAA8B;IACxB,OAAO,GAAuB,MAAM,CAAC,gBAAg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AAqB,EAAE,gBAAgB,EAAE,kBAAkB,CAAC;sGAQjB,OAAO,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
1
|
+
{"version":3,"file":"git-pull-request-threads.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-request-threads/git-pull-request-threads.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAyB,YAAY,EACvJ,MAAM,EAAE,SAAS,EAAE,YAAY,EAAuB,MAAM,eAAe,CAAC;AAC9E,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAA2B,iBAAiB,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACxH,OAAO,EAAE,WAAW,EAAE,sBAAsB,EAAsB,UAAU,EAAE,YAAY,EAAE,MAAM,+BAA+B,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,EAAE,aAAa,EAAiD,gBAAgB,EAAE,kBAAkB,EAAE,MAC/I,gCAAgC,CAAC;AACxC,OAAO,EAAE,qBAAqB,EAAE,MAAM,yCAAyC,CAAC;AAGhF,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;;AAQ/F,MAAM,OAAO,8BAA8B;IACxB,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IAC3C,QAAQ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AAE,CAAC;QACT,CAAC;IACH,CAAC;uGAhNU,8BAA8B;2FAA9B,8BAA8B,02BAMwE,UAAU,6CCpC7H,gwMA6GA,8jGDjFY,eAAe,oJAAE,wBAAwB,2HAAE,qBAAqB,kXAAE,gBAAgB,2EAAE,kBAAkB;;2FAErG,8BAA8B;kBAN1C,SAAS;+BACE,8BAA8B,WAG/B,CAAC,eAAe,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,kBAAkB,CAAC;sGAQjB,OAAO,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Component, computed, effect, ErrorHandler, inject, input, output, signal, untracked } 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 { ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent } from "@noldova/ui.components.angular";
|
|
12
12
|
import { GitPullRequestsState } from "../../enums/git-pull-requests-state.js";
|
|
13
13
|
import { GitPullRequests } from "../../services/git-pull-requests.js";
|
|
@@ -16,6 +16,7 @@ import * as i0 from "@angular/core";
|
|
|
16
16
|
export class GitPullRequestsComponent {
|
|
17
17
|
context = inject(WindowPartTokens.context);
|
|
18
18
|
errors = inject(ErrorHandler);
|
|
19
|
+
dates = inject(TimeFormatService);
|
|
19
20
|
folder = input.required(/* @ts-ignore */
|
|
20
21
|
...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
|
|
21
22
|
remote = input.required(/* @ts-ignore */
|
|
@@ -44,6 +45,9 @@ export class GitPullRequestsComponent {
|
|
|
44
45
|
untracked(() => this.refresh());
|
|
45
46
|
});
|
|
46
47
|
}
|
|
48
|
+
limitedText(hostName, until) {
|
|
49
|
+
return Resources.formatRateLimited(hostName, this.dates.dateTime(until));
|
|
50
|
+
}
|
|
47
51
|
refresh() {
|
|
48
52
|
const host = this.host();
|
|
49
53
|
if (!Object.isNull(host))
|
|
@@ -91,10 +95,10 @@ export class GitPullRequestsComponent {
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
94
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"
|
|
98
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row:not(.section) {\n padding-left: 1.875rem;\n}\n\n.row.section:hover,\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }] });
|
|
95
99
|
}
|
|
96
100
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitPullRequestsComponent, decorators: [{
|
|
97
101
|
type: Component,
|
|
98
|
-
args: [{ selector: "nol-git-pull-requests", imports: [ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent], host: { "(window:focus)": "refresh()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"
|
|
102
|
+
args: [{ selector: "nol-git-pull-requests", imports: [ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent], host: { "(window:focus)": "refresh()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.pullRequestsLabel }}</span>\n </button>\n <span class=\"small muted host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </div>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row,\n.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row:not(.section) {\n padding-left: 1.875rem;\n}\n\n.row.section:hover,\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"] }]
|
|
99
103
|
}], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], remote: [{ type: i0.Input, args: [{ isSignal: true, alias: "remote", required: true }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], canSwitch: [{ type: i0.Input, args: [{ isSignal: true, alias: "canSwitch", required: false }] }], switchTo: [{ type: i0.Output, args: ["switchTo"] }] } });
|
|
100
104
|
//# sourceMappingURL=git-pull-requests.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-pull-requests.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AAC/L,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,SAAS,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"git-pull-requests.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-pull-requests/git-pull-requests.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAyB,MAAM,EAAe,SAAS,EAAuB,MAAM,eAAe,CAAC;AAC/L,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,SAAS,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM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
383
383
|
void work.catch((error) => this.errors.handleError(error));
|
|
384
384
|
}
|
|
385
385
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
386
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
386
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
387
387
|
}
|
|
388
388
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRebaseComponent, decorators: [{
|
|
389
389
|
type: Component,
|
|
390
|
-
args: [{ selector: "nol-git-rebase", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, SelectComponent, TextFieldComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"] }]
|
|
390
|
+
args: [{ selector: "nol-git-rebase", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, SelectComponent, TextFieldComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"] }]
|
|
391
391
|
}], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
392
392
|
//# sourceMappingURL=git-rebase.component.js.map
|