@noldova/git.window 0.0.17 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/api/index.d.ts +53 -4
- 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 +3 -3
- package/src/app/components/git-accounts/git-accounts.component.js +3 -3
- package/src/app/components/git-agents/git-agents.component.js +3 -3
- package/src/app/components/git-branch-card/git-branch-card.component.js +3 -3
- package/src/app/components/git-branch-drop/git-branch-drop.component.js +3 -3
- package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +3 -3
- package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +3 -3
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +6 -10
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js.map +1 -1
- package/src/app/components/git-command-log/git-command-log.component.js +3 -3
- package/src/app/components/git-commit-card/git-commit-card.component.js +3 -3
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +3 -3
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -3
- package/src/app/components/git-commit-document/git-commit-document.component.js +3 -3
- package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +3 -3
- package/src/app/components/git-conflicts/git-conflicts.component.js +5 -5
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-dashboard/git-dashboard.component.js +3 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
- package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +3 -3
- package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +3 -3
- package/src/app/components/git-history/git-history.component.js +29 -15
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-host-row/git-host-row.component.js +3 -3
- package/src/app/components/git-person-avatar/git-person-avatar.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +3 -3
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +3 -3
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +11 -12
- 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 +3 -3
- package/src/app/components/git-rebase/git-rebase.component.js +3 -3
- package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +3 -3
- package/src/app/components/git-reference-text/git-reference-text.component.js +3 -3
- package/src/app/components/git-repository/git-repository.component.js +19 -17
- 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 +3 -3
- package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +3 -3
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -3
- package/src/app/components/git-view/git-view.component.js +4 -17
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-visible.directive.js +3 -3
- package/src/app/components/git-workspace/git-workspace.component.js +59 -7
- 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 +3 -3
- package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +3 -3
- package/src/app/components/git-workspaces/git-workspaces.component.js +4 -4
- package/src/app/enums/git-workspace-column.js +19 -0
- package/src/app/enums/git-workspace-column.js.map +1 -0
- package/src/app/models/git-force-push-offer.js +20 -3
- package/src/app/models/git-force-push-offer.js.map +1 -1
- package/src/app/models/git-workspace-header.js +31 -0
- package/src/app/models/git-workspace-header.js.map +1 -0
- package/src/app/models/git-workspace-overview.js +11 -0
- package/src/app/models/git-workspace-overview.js.map +1 -1
- package/src/app/models/git-workspace-page-sort.js +32 -0
- package/src/app/models/git-workspace-page-sort.js.map +1 -0
- package/src/app/models/git-workspace-row.js +7 -2
- package/src/app/models/git-workspace-row.js.map +1 -1
- package/src/app/models/git-workspace-sort.js +81 -0
- package/src/app/models/git-workspace-sort.js.map +1 -0
- package/src/app/services/git-action-notices.js +36 -0
- package/src/app/services/git-action-notices.js.map +1 -0
- package/src/app/services/git-code-colors.js +3 -3
- package/src/app/services/git-recent-repositories.js +18 -6
- package/src/app/services/git-recent-repositories.js.map +1 -1
- package/src/app/services/git-view-commands.js +46 -3
- package/src/app/services/git-view-commands.js.map +1 -1
- package/src/app/services/git-view-state.service.js +63 -75
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-window-part.js +4 -1
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-workspace-sorts.js +43 -0
- package/src/app/services/git-workspace-sorts.js.map +1 -0
- package/src/app/services/git-workspaces.js +3 -0
- package/src/app/services/git-workspaces.js.map +1 -1
- package/src/resources.js +49 -0
- package/src/resources.js.map +1 -1
package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js
CHANGED
|
@@ -113,10 +113,10 @@ export class GitPullRequestConflictsComponent {
|
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
117
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestConflictsComponent, isStandalone: true, selector: "nol-git-pull-request-conflicts", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, changes: { classPropertyName: "changes", publicName: "changes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\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}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestConflictsComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{ selector: "nol-git-pull-request-conflicts", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\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}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
122
122
|
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], changes: [{ type: i0.Input, args: [{ isSignal: true, alias: "changes", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
|
|
@@ -218,10 +218,10 @@ export class GitPullRequestFilesComponent {
|
|
|
218
218
|
return null;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
222
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestFilesComponent, isStandalone: true, selector: "nol-git-pull-request-files", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, answer: { classPropertyName: "answer", publicName: "answer", isSignal: true, isRequired: false, transformFunction: null }, reveal: { classPropertyName: "reveal", publicName: "reveal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { counted: "counted", unrevealed: "unrevealed" }, viewQueries: [{ propertyName: "diffFiles", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <nol-section-header [label]=\"resources.formatFilesChanged(list.files.length)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n </nol-section-header>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\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: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--nol-space-1)) 0;\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\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.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
223
223
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestFilesComponent, decorators: [{
|
|
225
225
|
type: Component,
|
|
226
226
|
args: [{ selector: "nol-git-pull-request-files", imports: [ButtonComponent, FileBadgeComponent, GitDiffFilesComponent, GitFileLayoutButtonComponent, SectionHeaderActionDirective, SectionHeaderComponent,
|
|
227
227
|
SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <nol-section-header [label]=\"resources.formatFilesChanged(list.files.length)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n </nol-section-header>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\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: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--nol-space-1)) 0;\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\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.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
@@ -13,11 +13,13 @@ import { AvatarSize, ButtonComponent, ButtonSize, ButtonVariant, SectionHeaderCo
|
|
|
13
13
|
import { MarkdownViewComponent } from "@noldova/ui.components.angular/markdown";
|
|
14
14
|
import { GitHostFailure } from "../../models/git-host-failure.js";
|
|
15
15
|
import { ThreadLine } from "../../models/thread-line.js";
|
|
16
|
+
import { GitActionNotices } from "../../services/git-action-notices.js";
|
|
16
17
|
import { Resources } from "../../../resources.js";
|
|
17
18
|
import { GitPersonAvatarComponent } from "../git-person-avatar/git-person-avatar.component.js";
|
|
18
19
|
import * as i0 from "@angular/core";
|
|
19
20
|
export class GitPullRequestThreadsComponent {
|
|
20
21
|
context = inject(WindowPartTokens.context);
|
|
22
|
+
notices = new GitActionNotices(this.context, Resources.gitModule);
|
|
21
23
|
tasks = inject(PendingTasks);
|
|
22
24
|
injector = inject(Injector);
|
|
23
25
|
attempt = signal(0, /* @ts-ignore */
|
|
@@ -46,8 +48,6 @@ export class GitPullRequestThreadsComponent {
|
|
|
46
48
|
...(ngDevMode ? [{ debugName: "replying" }] : /* istanbul ignore next */ []));
|
|
47
49
|
busy = signal(new Set(), /* @ts-ignore */
|
|
48
50
|
...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
|
|
49
|
-
writeFailures = signal(new Map(), /* @ts-ignore */
|
|
50
|
-
...(ngDevMode ? [{ debugName: "writeFailures" }] : /* istanbul ignore next */ []));
|
|
51
51
|
confirming = signal(null, /* @ts-ignore */
|
|
52
52
|
...(ngDevMode ? [{ debugName: "confirming" }] : /* istanbul ignore next */ []));
|
|
53
53
|
openCount = computed(() => this.threads().filter(t => Resources.openThreadStates.includes(t.state)).length, /* @ts-ignore */
|
|
@@ -82,7 +82,6 @@ export class GitPullRequestThreadsComponent {
|
|
|
82
82
|
this.drafts.set(new Map());
|
|
83
83
|
this.replying.set(new Set());
|
|
84
84
|
this.busy.set(new Set());
|
|
85
|
-
this.writeFailures.set(new Map());
|
|
86
85
|
this.confirming.set(null);
|
|
87
86
|
void this.readAsync(reference, () => isCurrent);
|
|
88
87
|
});
|
|
@@ -131,7 +130,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
131
130
|
async replyAsync(thread, method) {
|
|
132
131
|
const body = this.draftOf(thread);
|
|
133
132
|
const reply = { reference: this.reference().toJson(), thread: thread.id, parent: Math.min(...thread.comments.map(t => t.id)), body, ...this.loginField() };
|
|
134
|
-
await this.writeAsync(thread, method, reply, answer => {
|
|
133
|
+
await this.writeAsync(Resources.replyAction, thread, method, reply, answer => {
|
|
135
134
|
const comment = HostComment.fromJson(answer);
|
|
136
135
|
this.replace(thread.id, t => new HostThread(t.id, t.state, t.path, t.line, [...t.comments, comment]));
|
|
137
136
|
this.drafts.update(t => new Map([...t].filter(([id]) => id !== thread.id)));
|
|
@@ -154,7 +153,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
154
153
|
}
|
|
155
154
|
async changeAsync(thread, method) {
|
|
156
155
|
const state = this.isOpen(thread) ? ThreadStatus.Resolved : ThreadStatus.Active;
|
|
157
|
-
await this.writeAsync(thread, method, { reference: this.reference().toJson(), thread: thread.id, state, ...this.loginField() }, () => {
|
|
156
|
+
await this.writeAsync(state === ThreadStatus.Resolved ? Resources.resolveThread : Resources.reactivateThread, thread, method, { reference: this.reference().toJson(), thread: thread.id, state, ...this.loginField() }, () => {
|
|
158
157
|
this.unfold(thread);
|
|
159
158
|
this.replace(thread.id, t => new HostThread(t.id, state, t.path, t.line, t.comments));
|
|
160
159
|
});
|
|
@@ -166,11 +165,11 @@ export class GitPullRequestThreadsComponent {
|
|
|
166
165
|
replace(id, change) {
|
|
167
166
|
this.threads.update(threads => threads.map(t => t.id === id ? change(t) : t));
|
|
168
167
|
}
|
|
169
|
-
|
|
168
|
+
// A refused or unanswered write posts an error notification titled by the action.
|
|
169
|
+
async writeAsync(action, thread, method, payload, done) {
|
|
170
170
|
const generation = this.generation;
|
|
171
171
|
const finished = this.tasks.add();
|
|
172
172
|
this.busy.update(t => new Set([...t, thread.id]));
|
|
173
|
-
this.writeFailures.update(t => new Map([...t].filter(([id]) => id !== thread.id)));
|
|
174
173
|
try {
|
|
175
174
|
const answer = await this.context.requestAsync(method, payload);
|
|
176
175
|
if (generation === this.generation)
|
|
@@ -181,7 +180,7 @@ export class GitPullRequestThreadsComponent {
|
|
|
181
180
|
throw error;
|
|
182
181
|
this.context.log(Resources.formatHostRequestFailed(this.host().name, method, String(error)));
|
|
183
182
|
if (generation === this.generation)
|
|
184
|
-
this.
|
|
183
|
+
await this.notices.failAsync(action, this.textOf(GitHostFailure.of(error, Resources.formatThreadWriteUnanswered(this.host().name))));
|
|
185
184
|
}
|
|
186
185
|
finally {
|
|
187
186
|
if (generation === this.generation)
|
|
@@ -211,12 +210,12 @@ export class GitPullRequestThreadsComponent {
|
|
|
211
210
|
done();
|
|
212
211
|
}
|
|
213
212
|
}
|
|
214
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
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 <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (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 margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.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: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }] });
|
|
213
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestThreadsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
214
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestThreadsComponent, isStandalone: true, selector: "nol-git-pull-request-threads", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, isAutoComplete: { classPropertyName: "isAutoComplete", publicName: "isAutoComplete", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkOpen: "linkOpen", goToLine: "goToLine" }, viewQueries: [{ propertyName: "draftFields", predicate: ["draft"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head {\n margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitPersonAvatarComponent, selector: "nol-git-person-avatar", inputs: ["host", "reference", "login", "image", "size"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }] });
|
|
216
215
|
}
|
|
217
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
216
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestThreadsComponent, decorators: [{
|
|
218
217
|
type: Component,
|
|
219
218
|
args: [{ selector: "nol-git-pull-request-threads", imports: [ButtonComponent, GitPersonAvatarComponent, MarkdownViewComponent, SectionHeaderComponent, SectionHeaderDetailDirective, SpinnerComponent,
|
|
220
|
-
TextFieldComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (
|
|
219
|
+
TextFieldComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"threads\" [attr.aria-label]=\"resources.commentsTitle\">\n <nol-section-header class=\"threads-head\" [label]=\"resources.commentsTitle\" [level]=\"2\">\n @if (threads().length > 0) {\n <span nolSectionHeaderDetail>{{ resources.formatOpenThreads(openCount()) }}</span>\n }\n </nol-section-header>\n @if (failure(); as failure) {\n <div class=\"threads-notice\" role=\"alert\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ textOf(failure) }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n } @else if (isRead()) {\n @if (hasMore()) {\n <p class=\"small muted threads-more\">{{ resources.formatOlderComments(host().name) }}</p>\n }\n @for (thread of threads(); track thread.id) {\n <article class=\"thread\" [attr.aria-busy]=\"busy().has(thread.id)\">\n @if (thread.path !== null || thread.state !== none) {\n <div class=\"thread-head\">\n <span class=\"material-symbols-rounded thread-icon\" aria-hidden=\"true\">{{ resources.threadIcon }}</span>\n <span class=\"place\" [attr.title]=\"thread.path\">@if (thread.state !== none) {<span class=\"thread-state\" [class.open]=\"resources.openThreadStates.includes(thread.state)\">{{ resources.threadLabels[thread.state] }}</span>}{{ resources.formatThreadPlace(thread.state !== none, thread.path, thread.line) }}</span>\n @if (thread.path; as path) {\n @if (thread.line; as line) {\n <button type=\"button\" nol-button class=\"go-to-line\" [variant]=\"secondary\" [size]=\"compact\"\n (click)=\"goToLine.emit(lineOf(thread, path, line))\">{{ resources.goToLine }}</button>\n }\n }\n </div>\n }\n @if (isFolded(thread)) {\n @for (first of thread.comments.slice(0, 1); track first.id) {\n <button type=\"button\" class=\"fold\" aria-expanded=\"false\" (click)=\"unfold(thread)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.unfoldIcon }}</span>\n <span class=\"name\">{{ first.author.name ?? first.author.login }}</span>\n <span class=\"grow muted\">{{ first.body }}</span>\n <span class=\"small muted\">{{ resources.formatCommentCount(thread.comments.length) }}</span>\n </button>\n }\n } @else {\n @for (comment of thread.comments; track comment.id) {\n <div class=\"comment\" [class.reply]=\"comment.parent !== null\">\n <nol-git-person-avatar [host]=\"host()\" [reference]=\"reference()\" [login]=\"comment.author.login\" [image]=\"comment.author.avatar\" [size]=\"small\" />\n <div class=\"comment-main\">\n <div class=\"comment-meta\">\n <span class=\"name\">{{ comment.author.name ?? comment.author.login }}</span>\n <span class=\"small muted\">{{ dateOf(comment) }}</span>\n </div>\n <nol-markdown-view [text]=\"comment.body\" [references]=\"references()\" (linkOpen)=\"linkOpen.emit($event)\" />\n </div>\n </div>\n }\n @if (host().replyToThreadMethod !== null || host().changeThreadMethod !== null) {\n <div class=\"answer\">\n @if (host().replyToThreadMethod !== null && isReplying(thread)) {\n <textarea #draft nol-text-field rows=\"2\" class=\"draft\" [attr.data-thread]=\"thread.id\" [attr.aria-label]=\"resources.replyLabel\"\n [placeholder]=\"resources.replyPlaceholder\" [value]=\"draftOf(thread)\" [disabled]=\"busy().has(thread.id)\" (input)=\"noteDrafts()\"></textarea>\n }\n @if (host().changeThreadMethod; as changeMethod) {\n @if (confirming() === thread.id) {\n <div class=\"change-confirm\" role=\"alert\">\n <span class=\"grow\">{{ resources.autoCompleteResolveConfirm }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" class=\"cancel\" (click)=\"cancelChange()\">{{ resources.cancelAction }}</button>\n <button type=\"button\" nol-button class=\"confirm\" (click)=\"confirmChange(thread, changeMethod)\">{{ resources.resolveAnyway }}</button>\n </div>\n }\n }\n <div class=\"answer-actions\">\n @if (host().changeThreadMethod; as changeMethod) {\n <button type=\"button\" nol-button class=\"change\" [variant]=\"secondary\" [disabled]=\"busy().has(thread.id)\" (click)=\"askChange(thread, changeMethod)\">\n {{ isOpen(thread) ? resources.resolveThread : resources.reactivateThread }}\n </button>\n }\n @if (host().replyToThreadMethod; as replyMethod) {\n @if (isReplying(thread)) {\n <button type=\"button\" nol-button class=\"send\" [disabled]=\"!canReply(thread)\" (click)=\"replyAsync(thread, replyMethod)\">{{ resources.replyAction }}</button>\n } @else {\n <button type=\"button\" nol-button class=\"start-reply\" [disabled]=\"busy().has(thread.id)\" (click)=\"startReply(thread)\">{{ resources.replyAction }}</button>\n }\n }\n </div>\n </div>\n }\n }\n </article>\n } @empty {\n <p class=\"muted\">{{ resources.noComments }}</p>\n }\n } @else {\n <div class=\"threads-notice\" role=\"status\">\n <nol-spinner />\n <span class=\"grow\">{{ resources.formatThreadsReading(host().name) }}</span>\n </div>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.threads {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.threads-head {\n margin-inline: calc(-1 * var(--nol-space-2));\n}\n\n.threads-notice,\n.thread-head,\n.fold,\n.comment-meta {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.threads-notice {\n color: var(--nol-text-muted);\n}\n\n.failed {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.thread {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.thread-icon {\n flex: none;\n color: var(--nol-text-muted);\n}\n\n.go-to-line {\n flex: none;\n}\n\n.place {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.thread-state {\n color: var(--nol-text-muted);\n}\n\n.thread-state.open {\n color: var(--nol-text);\n}\n\n.fold {\n min-height: var(--nol-button-height);\n margin-inline: calc(-1 * var(--nol-space-2));\n padding: 0 var(--nol-space-2);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.fold:hover {\n background-color: var(--nol-hover);\n}\n\n.comment {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n min-width: 0;\n}\n\n.comment.reply {\n padding-inline-start: var(--nol-space-4);\n}\n\n.comment-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.answer {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-start: var(--nol-space-4);\n}\n\n.draft {\n box-sizing: border-box;\n width: 100%;\n resize: vertical;\n}\n\n.answer-actions {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n justify-content: flex-end;\n min-width: 0;\n}\n\n.change-confirm {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n font-size: var(--nol-text-label);\n}\n\n.name {\n flex: none;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-strong);\n}\n\n.grow {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.small {\n font-size: var(--nol-text-label);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\np {\n margin: 0;\n}\n"] }]
|
|
221
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"] }] } });
|
|
222
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;AAC9E,OAAO,uBAAuB,C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ova.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,sBAAsB,EAAE,4BAA4B,EAClK,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAC/E,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,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,wBAAwB,EAAE,MAAM,qDAAqD,CAAC;;AAS/F,MAAM,OAAO,8BAA8B;IACxB,OAAO,GAAuB,MAAM,CAAC,gBAAgB,CAAC,OAAO,CAAC,CAAC;IAC/D,OAAO,GAAqB,IAAI,gBAAgB,CAAC,IAAI,CAAC,OAAO,EAAE,SAAS,CAAC,SAAS,CAAC,CAAC;IACpF,KAAK,GAAiB,MAAM,CAAC,YAAY,CAAC,CAAC;IA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WAG/B,CAAC,eAAe,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,gBAAgB;wBAChJ,kBAAkB,CAAC;sGAS2E,OAAO,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
@@ -92,10 +92,10 @@ export class GitPullRequestsComponent {
|
|
|
92
92
|
return fallback;
|
|
93
93
|
}
|
|
94
94
|
}
|
|
95
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
96
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
96
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestsComponent, isStandalone: true, selector: "nol-git-pull-requests", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, current: { classPropertyName: "current", publicName: "current", isSignal: true, isRequired: false, transformFunction: null }, canSwitch: { classPropertyName: "canSwitch", publicName: "canSwitch", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { switchTo: "switchTo" }, host: { listeners: { "window:focus": "refresh()" } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <nol-section-header [label]=\"resources.pullRequestsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n <span nolSectionHeaderDetail class=\"host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </nol-section-header>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row {\n padding-left: 1.875rem;\n}\n\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"], dependencies: [{ kind: "directive", type: ContextMenuTriggerDirective, selector: "[nolContextMenuTriggerFor]", inputs: ["nolContextMenuTriggerFor"], exportAs: ["nolContextMenuTriggerFor"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }] });
|
|
97
97
|
}
|
|
98
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
98
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestsComponent, decorators: [{
|
|
99
99
|
type: Component,
|
|
100
100
|
args: [{ selector: "nol-git-pull-requests", imports: [ContextMenuTriggerDirective, MenuComponent, MenuItemComponent, MenuSeparatorComponent, SectionHeaderComponent, SectionHeaderDetailDirective], host: { "(window:focus)": "refresh()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (host(); as provider) {\n <nol-section-header [label]=\"resources.pullRequestsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n <span nolSectionHeaderDetail class=\"host\">{{ resources.formatPullRequestsHost(provider.hostName, list()?.rows?.length ?? 0) }}</span>\n </nol-section-header>\n @if (isOpen()) {\n @switch (list()?.state ?? states.Reading) {\n @case (states.SignedOut) {\n <button type=\"button\" class=\"row link\" (click)=\"signIn(provider.signInPage)\">{{ resources.pullRequestsSignIn }}</button>\n }\n @case (states.Failed) {\n @let until = list()?.limitedUntil ?? null;\n @let failure = until === null ? list()?.failure ?? '' : limitedText(provider.hostName, until);\n <div class=\"row failure\" role=\"alert\">\n <span class=\"grow note\" [title]=\"failure\">{{ failure }}</span>\n <button type=\"button\" class=\"retry\" (click)=\"refresh()\">{{ resources.tryAgainLabel }}</button>\n </div>\n }\n @default {\n @for (row of rows(); track row.url) {\n <button type=\"button\" class=\"row pull-request\" [class.sel]=\"isShown(row)\" [attr.aria-current]=\"isShown(row) ? 'true' : null\" (click)=\"open(row)\"\n [nolContextMenuTriggerFor]=\"pullRequestMenu\">\n <span [class]=\"'dot ' + toneOf(row)\"></span>\n <span class=\"grow title\" [title]=\"row.title\">{{ resources.formatPullRequestRowText(row.label, row.title) }}</span>\n <span class=\"small muted\">{{ noteOf(row) }}</span>\n </button>\n <ng-template #pullRequestMenu>\n <nol-menu>\n <button nol-menu-item data-action=\"switch\" [label]=\"resources.switchLabel\" [icon]=\"resources.switchIcon\" [disabled]=\"!canSwitch() || row.headBranch === current()\"\n (triggered)=\"switchTo.emit(row.headBranch)\"></button>\n <nol-menu-separator />\n <button nol-menu-item data-action=\"open\" [label]=\"resources.openInBrowserLabel\" [icon]=\"resources.openLinkIcon\" (triggered)=\"openInBrowser(row)\"></button>\n <button nol-menu-item data-action=\"copy\" [label]=\"resources.copyLinkLabel\" [icon]=\"resources.copyLinkIcon\" (triggered)=\"copyLink(row)\"></button>\n </nol-menu>\n </ng-template>\n } @empty {\n <div class=\"row small muted note\">{{ list()?.state === states.Ready ? resources.pullRequestsEmpty : resources.pullRequestsReading }}</div>\n }\n }\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.sel,\n.row.sel:hover {\n background: var(--nol-selected);\n}\n\n.row {\n padding-left: 1.875rem;\n}\n\n.row.note:hover,\n.row.failure:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n margin-inline: 0 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.link {\n color: var(--nol-link);\n}\n\n.failure .note {\n color: var(--nol-error);\n}\n\n.retry {\n flex: none;\n padding: 0;\n border: 0;\n background: transparent;\n color: var(--nol-link);\n font: inherit;\n cursor: pointer;\n}\n"] }]
|
|
101
101
|
}], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], remote: [{ type: i0.Input, args: [{ isSignal: true, alias: "remote", required: true }] }], current: [{ type: i0.Input, args: [{ isSignal: true, alias: "current", required: false }] }], canSwitch: [{ type: i0.Input, args: [{ isSignal: true, alias: "canSwitch", required: false }] }], switchTo: [{ type: i0.Output, args: ["switchTo"] }] } });
|
|
@@ -382,10 +382,10 @@ export class GitRebaseComponent {
|
|
|
382
382
|
run(work) {
|
|
383
383
|
void work.catch((error) => this.errors.handleError(error));
|
|
384
384
|
}
|
|
385
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
386
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
385
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebaseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
386
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitRebaseComponent, isStandalone: true, selector: "nol-git-rebase", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: SelectComponent, selector: "nol-select", inputs: ["options", "value", "label", "describedBy", "disabled"], outputs: ["valueChange"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
387
387
|
}
|
|
388
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
388
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRebaseComponent, decorators: [{
|
|
389
389
|
type: Component,
|
|
390
390
|
args: [{ selector: "nol-git-rebase", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, SelectComponent, TextFieldComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"layout\">\n <main class=\"panel steps-panel\" [attr.aria-label]=\"resources.rebaseScreenLabel\">\n <header class=\"head\">\n <div class=\"title-row\">\n <span class=\"title-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>\n <h1 class=\"title strong\">{{ heading() }}</h1>\n @if (showsAiFeatures()) {\n <button nol-toolbar-button type=\"button\" class=\"tidy-up\" [icon]=\"resources.tidyUpIcon\" [label]=\"resources.tidyUpLabel\" [isShowingLabel]=\"true\" disabled\n [title]=\"resources.notBuiltYet\"></button>\n }\n </div>\n <p class=\"hint muted\">{{ resources.rebaseHint }}</p>\n </header>\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (target() === null) {\n <p class=\"note muted\" role=\"note\">{{ resources.rebaseNoTarget }}</p>\n } @else if (plan(); as plan) {\n @if (rows().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.emptyRebase }}</p>\n } @else {\n <div class=\"step columns muted\" aria-hidden=\"true\"><span></span><span>{{ resources.actionColumn }}</span><span>{{ resources.commitColumn }}</span><span>{{ resources.messageColumn }}</span><span>{{ resources.checkColumn }}</span></div>\n <div #steps class=\"steps\" role=\"list\" (dragover)=\"follow($event, steps)\" (drop)=\"drop($event)\">\n @for (item of items(); track item.row.commit.id; let index = $index) {\n @let row = item.row;\n @let check = item.check;\n @if (dropAt() === index) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n <div #step class=\"step\" role=\"listitem\" tabindex=\"0\" draggable=\"true\" [attr.data-row]=\"index\" [attr.aria-current]=\"index === selected() ? 'true' : null\"\n [class.selected]=\"index === selected()\" [class.dropped]=\"row.action === 'Drop'\" [class.folded]=\"row.folds\" [class.lifted]=\"dragged() === index\"\n (focus)=\"select(index)\" (click)=\"select(index)\" (keydown)=\"keydown($event, index)\"\n (dragstart)=\"dragStart($event, index, step)\" (dragover)=\"dragOver($event, index)\" (dragend)=\"dragEnd()\">\n <span class=\"handle material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"row.action\" (valueChange)=\"setAction(index, $event)\" />\n <span class=\"id mono muted\">{{ shortOf(row.commit.id) }}</span>\n @if (row.takesMessage && index === selected()) {\n <input nol-text-field class=\"message-field\" type=\"text\" [attr.aria-label]=\"resources.rebaseMessageLabel\" [ngModel]=\"subjectOf(row.message ?? row.commit.message)\"\n (ngModelChange)=\"setSubject(index, $event)\" />\n } @else {\n <span class=\"message\" [title]=\"row.message ?? row.commit.message\"><nol-git-reference-text [text]=\"subjectOf(row.message ?? row.commit.message)\" [folder]=\"instance()\"\n [chipTabIndex]=\"-1\" /></span>\n }\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"check.tone\" aria-hidden=\"true\">{{ check.icon }}</span><span class=\"check-text\">{{ check.text }}</span></span>\n </div>\n }\n @if (dropAt() === rows().length) {\n <div class=\"drop-line\" aria-hidden=\"true\"></div>\n }\n @for (item of lifted(); track item.row.commit.id) {\n <div class=\"step lift\" aria-hidden=\"true\" inert [class.dropped]=\"item.row.action === 'Drop'\" [style.top.px]=\"liftTop()\">\n <span class=\"handle material-symbols-rounded\">{{ resources.dragIcon }}</span>\n <nol-select class=\"action\" [label]=\"resources.actionColumn\" [options]=\"actions\" [value]=\"item.row.action\" />\n <span class=\"id mono muted\">{{ shortOf(item.row.commit.id) }}</span>\n <span class=\"message\"><nol-git-reference-text [text]=\"subjectOf(item.row.message ?? item.row.commit.message)\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span>\n <span class=\"check\"><span class=\"check-icon material-symbols-rounded\" [class]=\"item.check.tone\">{{ item.check.icon }}</span><span class=\"check-text\">{{ item.check.text\n }}</span></span>\n </div>\n }\n </div>\n }\n <div class=\"spacer\"></div>\n <footer class=\"options\">\n <div class=\"option\">\n <nol-checkbox class=\"move-stacked\" [checked]=\"moveStacked() && plan.stacked.length > 0\" [disabled]=\"plan.stacked.length === 0\" (checkedChange)=\"moveStacked.set($event)\">{{ resources.moveStackedLabel }}</nol-checkbox>\n @if (plan.stacked.length > 0) {\n <span class=\"option-note muted\">{{ resources.formatStackedFollow(plan.stacked) }}</span>\n }\n </div>\n <div class=\"option\">\n <nol-checkbox class=\"fold-fixups\" [checked]=\"foldFixups()\" (checkedChange)=\"setFold(plan, $event)\">{{ resources.foldFixupsLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.undoBackTitle\">\n <nol-checkbox class=\"undo-back\" [checked]=\"true\" [disabled]=\"true\">{{ resources.undoBackLabel }}</nol-checkbox>\n </div>\n <div class=\"option\" [title]=\"resources.notBuiltYet\">\n <nol-checkbox class=\"run-tests\" [checked]=\"false\" [disabled]=\"true\">{{ resources.runTestsLabel }}</nol-checkbox>\n <span class=\"option-note muted\">{{ resources.runTestsNote }}</span>\n </div>\n @if (!valid()) {\n <p class=\"note failure\" role=\"alert\">{{ resources.foldFirstRefusal }}</p>\n }\n @if (state.failure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"start-row\">\n <span class=\"summary muted\">{{ summary() }}</span>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n @if (start(); as ready) {\n <button nol-button type=\"button\" class=\"start\" (click)=\"startRebase(ready)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n } @else {\n <button nol-button type=\"button\" class=\"start\" disabled>\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.startIcon }}</span>{{ resources.startRebaseLabel }}</button>\n }\n </div>\n </footer>\n }\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container: rebase / size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.layout {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.head {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.25rem;\n padding: 0.75rem 0.75rem 0.5rem;\n}\n\n.title-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.title-icon,\n.handle,\n.check-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.title-icon {\n color: var(--nol-icon-color);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n overflow: hidden;\n font-size: 0.9375rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.hint,\n.note {\n margin: 0;\n}\n\n.hint,\n.columns,\n.check-text,\n.option-note,\n.summary {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0.75rem;\n}\n\n.steps {\n position: relative;\n flex: 0 1 auto;\n min-height: 0;\n overflow: auto;\n}\n\n.step {\n display: grid;\n grid-template-columns: 1.25rem 7rem 4.5rem minmax(5.5rem, 1fr) minmax(0, 12rem);\n gap: 0.5rem;\n align-items: center;\n min-height: 2.25rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.step.columns {\n min-height: 1.75rem;\n}\n\n.step.columns > * {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.steps .step:hover {\n background-color: var(--nol-hover);\n}\n\n.steps .step.selected {\n background-color: var(--nol-selected);\n}\n\n.step.folded {\n padding-left: 2.5rem;\n}\n\n.step.lifted {\n opacity: 0.35;\n}\n\n.step.lift {\n position: absolute;\n right: 0;\n left: 0;\n z-index: 2;\n margin: 0 0.5rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.375rem;\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n transform: translate(0.75rem, 0.125rem) rotate(-0.4deg);\n pointer-events: none;\n}\n\n.step.dropped .message {\n color: var(--nol-text-muted);\n text-decoration: line-through;\n}\n\n.handle {\n color: var(--nol-text-muted);\n cursor: grab;\n}\n\n.message,\n.check-text {\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.message-field {\n min-width: 0;\n}\n\n.check {\n display: inline-flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n overflow: hidden;\n}\n\n.drop-line {\n position: relative;\n height: 2px;\n margin: -1px 0.75rem;\n background-color: var(--nol-accent);\n}\n\n.drop-line::before {\n position: absolute;\n top: -3px;\n left: -4px;\n width: 8px;\n height: 8px;\n border-radius: 50%;\n background-color: var(--nol-accent);\n content: \"\";\n}\n\n.spacer {\n flex: 1 1 auto;\n}\n\n.options {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.5rem;\n padding: 0.75rem;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.option {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.options .note {\n padding: 0;\n}\n\n.title-row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.start-row {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.25rem;\n}\n\n.summary {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n@container rebase (height < 34rem) {\n .steps-panel {\n overflow-y: auto;\n }\n\n .steps {\n flex: none;\n overflow: visible;\n }\n}\n\n@container rebase (width < 40rem) {\n .title {\n white-space: normal;\n }\n}\n\n@container rebase (width < 45rem) {\n .check-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n }\n}\n"] }]
|
|
391
391
|
}], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|