@noldova/git.window 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- 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 +3 -3
- package/src/app/components/git-workspace/git-visible.directive.js +3 -3
- package/src/app/components/git-workspace/git-workspace.component.js +3 -3
- 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 +3 -3
- package/src/app/services/git-code-colors.js +3 -3
- package/src/app/services/git-view-state.service.js +3 -3
|
@@ -253,10 +253,10 @@ export class GitCommitDetailComponent {
|
|
|
253
253
|
return fallback;
|
|
254
254
|
}
|
|
255
255
|
}
|
|
256
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
257
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommitDetailComponent, isStandalone: true, selector: "nol-git-commit-detail", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, commit: { classPropertyName: "commit", publicName: "commit", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "files", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.id-row > [nol-icon-button]:last-child {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
256
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
257
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitCommitDetailComponent, isStandalone: true, selector: "nol-git-commit-detail", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, commit: { classPropertyName: "commit", publicName: "commit", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "files", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.id-row > [nol-icon-button]:last-child {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],[formArray],form:not([ngNoForm]),[ngForm]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "directive", type: i1.NgForm, selector: "form:not([ngNoForm]):not([formGroup]):not([formArray]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "revealBurst", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
258
258
|
}
|
|
259
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
259
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDetailComponent, decorators: [{
|
|
260
260
|
type: Component,
|
|
261
261
|
args: [{ selector: "nol-git-commit-detail", imports: [ButtonComponent, FileBadgeComponent, FormsModule, GitDiffFilesComponent, GitReferenceTextComponent, IconButtonComponent, MarkdownViewComponent,
|
|
262
262
|
MenuComponent, MenuItemComponent, MenuTriggerDirective, TextFieldComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<section class=\"detail\" [attr.aria-label]=\"label()\">\n <div class=\"id-row\">\n <span class=\"mono muted grow\">{{ id() }}</span>\n <button nol-icon-button type=\"button\" [icon]=\"resources.copyIcon\" [label]=\"resources.copyIdLabel\" [nolTooltip]=\"resources.copyIdLabel\" (click)=\"copyId()\"></button>\n <button nol-icon-button type=\"button\" class=\"more\" [icon]=\"resources.moreIcon\" [label]=\"resources.moreActionsLabel\" [nolTooltip]=\"resources.moreActionsLabel\"\n [nolMenuTriggerFor]=\"moreActions\"></button>\n </div>\n <ng-template #moreActions>\n <nol-menu>\n <button nol-menu-item data-action=\"copy-id\" [label]=\"resources.copyIdLabel\" [icon]=\"resources.copyIcon\" (triggered)=\"copyId()\"></button>\n <button nol-menu-item data-action=\"branch-here\" [label]=\"resources.createBranchHereLabel\" [icon]=\"resources.branchMenuIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(false)\"></button>\n <button nol-menu-item data-action=\"tag-here\" [label]=\"resources.createTagHereLabel\" [icon]=\"resources.tagIcon\" [disabled]=\"!writable()\"\n (triggered)=\"startBranch(true)\"></button>\n </nol-menu>\n </ng-template>\n <div class=\"subject\"><nol-git-reference-text [text]=\"commit().commit.subject\" [folder]=\"folder()\" /></div>\n @if (more(); as more) {\n @if (more.body.length > 0) {\n <div class=\"message\"><nol-markdown-view [text]=\"more.body\" [references]=\"references()\" (linkOpen)=\"openLink($event)\" />@if (more.truncated) {<span class=\"muted\">{{ resources.messageCut }}</span>}</div>\n }\n }\n <div class=\"people\">\n <div class=\"author\">\n @let picture = image();\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + avatar()\">{{ initials() }}</span>\n }\n <div class=\"grow\">\n <div class=\"strong\">{{ commit().commit.author }}</div>\n <div class=\"small muted when\">{{ authored() }}@if (committed(); as committed) {{{ resources.peopleSeparator }}<span class=\"committed\">{{ committed }}</span>}</div>\n </div>\n </div>\n @if (signature(); as signature) {\n <div class=\"signature small\" [attr.data-state]=\"signature.state\" [attr.title]=\"signature.key\"><span class=\"ms signature-icon\">{{ resources.signatureIcons[signature.state]\n }}</span><span class=\"signature-text\">{{ signatureLineOf(signature) }}</span></div>\n }\n <div class=\"parents small\">\n <span class=\"muted\">{{ resources.parentLabel }}</span>\n @for (parent of commit().commit.parents; track parent) {\n @let short = parent.slice(0, resources.shortIdLength);\n <button type=\"button\" class=\"mono link\" [title]=\"resources.formatShowParent(short)\" (click)=\"showParent(parent)\">{{ short }}</button>\n } @empty {\n <span>{{ resources.noParent }}</span>\n }\n @if (chips().length > 0) {\n <span class=\"muted\">{{ resources.inLabel }}</span>\n @for (chip of chips(); track chip.name + chip.icon) {\n <span class=\"chip\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"><span class=\"ellipsis\">{{ chip.name }}</span></span>\n }\n }\n </div>\n </div>\n <div class=\"actions\">\n @if (mergeable()) {\n <button nol-button type=\"button\" class=\"merge\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.mergeTitle\" (click)=\"mergeAsync()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>{{ resources.mergeLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"cherry-pick\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.cherryPickTitle\" (click)=\"pickAsync(false)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cherryPickIcon }}</span>{{ resources.cherryPickLabel }}</button>\n <button nol-button type=\"button\" class=\"revert\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.revertTitle\" (click)=\"pickAsync(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.revertIcon }}</span>{{ resources.revertLabel }}</button>\n <button nol-button type=\"button\" class=\"rebase-here\" [variant]=\"secondary\" [disabled]=\"state.busy()\" [title]=\"resources.rebaseHereTitle\" (click)=\"startRebase()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.rebaseIcon }}</span>{{ resources.rebaseHereLabel }}</button>\n <button nol-button type=\"button\" class=\"branch-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.branchHereTitle\" (click)=\"startBranch(false)\">\n <svg nolButtonIcon class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>{{ resources.branchHereLabel }}</button>\n <button nol-button type=\"button\" class=\"tag-here\" [variant]=\"secondary\" [disabled]=\"!writable()\" [title]=\"resources.tagHereTitle\" (click)=\"startBranch(true)\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.tagIcon }}</span>{{ resources.tagHereLabel }}</button>\n @if (showsAiFeatures()) {\n <button nol-button type=\"button\" class=\"explain\" [variant]=\"secondary\" disabled [title]=\"resources.notBuiltYet\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.explainIcon }}</span>{{ resources.explainLabel }}</button>\n }\n </div>\n @if (predicted().length > 0) {\n <div class=\"predictions\" role=\"status\">\n @for (line of predicted(); track line.text) {\n <p class=\"prediction\">{{ line.text }}</p>\n @if (line.paths.length > 0) {\n <div class=\"prediction-files\">\n @for (path of line.paths; track path) {\n @let name = path.slice(path.lastIndexOf(resources.slash) + 1);\n @if (files().holds(path)) {\n <button type=\"button\" class=\"prediction-file\" [title]=\"path\" (click)=\"files().reveal(path)\"><nol-file-badge [fileName]=\"name\" /><span\n class=\"prediction-file-name\">{{ name }}</span></button>\n } @else {\n <span class=\"prediction-file\" [title]=\"path\"><nol-file-badge [fileName]=\"name\" /><span class=\"prediction-file-name\">{{ name }}</span></span>\n }\n }\n @if (line.more > 0) {\n <span class=\"prediction-more\">{{ resources.formatMorePaths(line.more) }}</span>\n }\n </div>\n }\n }\n </div>\n }\n @if (branchName() !== null) {\n <form class=\"branch-form\" (submit)=\"$event.preventDefault(); createBranchAsync(branchName() ?? '')\">\n @let nameLabel = tagging() ? resources.tagNameLabel : resources.branchNameLabel;\n <input nol-text-field class=\"branch-name\" type=\"text\" autofocus [attr.aria-label]=\"nameLabel\" [placeholder]=\"nameLabel\"\n [ngModel]=\"branchName()\" (ngModelChange)=\"branchName.set($event)\" name=\"branch\" (keydown.escape)=\"cancelBranch()\" />\n <button nol-button type=\"submit\" class=\"create\" [disabled]=\"!writable() || (branchName() ?? '').trim().length === 0\">{{ resources.createLabel }}</button>\n <button nol-button type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancelBranch()\">{{ resources.cancelLabel }}</button>\n </form>\n }\n @if (state.failure(); as refusal) {\n <p class=\"note error\" role=\"alert\">{{ refusal }}</p>\n }\n <nol-git-diff-files [folder]=\"folder()\" [scope]=\"scope()\" />\n @if (pullRequest(); as card) {\n @let found = comments();\n <div class=\"pull-request\" [attr.data-state]=\"card.state\" (click)=\"openPullRequest(card)\">\n <span class=\"pull-request-head\"><span class=\"ms pull-request-icon\">{{ resources.commitPullRequestIcon }}</span><span class=\"pull-request-title\"><nol-git-reference-text\n [text]=\"card.row.label\" [title]=\"card.row.title\" [folder]=\"folder()\" [link]=\"card.row.url\" /></span><span\n class=\"small pull-request-state\">{{ card.stateLabel }}</span></span>\n @if (card.note.length > 0 || found !== null) {\n <span class=\"small muted pull-request-note\">{{ card.note }}@if (found !== null) {@if (card.note.length > 0) {<span>{{ resources.peopleSeparator }}</span>}<button type=\"button\"\n class=\"pull-request-comments\" (click)=\"$event.stopPropagation(); openComments(found.url)\">{{ found.text }}</button>}</span>\n }\n </div>\n } @else if (comments(); as found) {\n <button type=\"button\" class=\"small link comments\" (click)=\"openComments(found.url)\"><span class=\"ms\">{{ resources.commitCommentsIcon }}</span><span>{{ found.text\n }}</span></button>\n }\n</section>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n min-width: 0;\n}\n\n.detail {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.id-row,\n.author,\n.parents {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.id-row {\n gap: 0.25rem;\n}\n\n.id-row > [nol-icon-button]:last-child {\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.chip {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n overflow: hidden;\n gap: 0.25rem;\n height: 1.25rem;\n padding: 0 0.375rem;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.subject {\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: 500;\n line-height: 1.25rem;\n overflow-wrap: anywhere;\n}\n\n.message {\n color: var(--nol-text);\n font-size: 0.8125rem;\n line-height: 1.6;\n overflow-wrap: anywhere;\n}\n\n.branch-form {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n}\n\n.branch-name {\n flex: 1;\n min-width: 0;\n}\n\n.people {\n display: flex;\n flex-direction: column;\n gap: 0.5rem;\n}\n\n.author {\n gap: 0.5rem;\n}\n\n.parents {\n flex-wrap: wrap;\n gap: 0.375rem;\n}\n\n.signature {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.ms.signature-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.signature[data-state=\"Verified\"] .signature-icon {\n color: var(--nol-status-ok);\n}\n\n.signature[data-state=\"Unverified\"] .signature-icon {\n color: var(--nol-warning);\n}\n\n.signature-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n}\n\n.predictions {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.prediction {\n margin: 0;\n}\n\n.prediction-files {\n display: flex;\n flex-wrap: wrap;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n}\n\n.prediction-file {\n display: inline-flex;\n align-items: center;\n max-width: 100%;\n min-width: 0;\n box-sizing: border-box;\n gap: 0.25rem;\n height: 1.25rem;\n margin: 0;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n box-shadow: inset 0 0 0 1px var(--nol-border);\n background: transparent;\n color: var(--nol-text-strong);\n font: inherit;\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\nbutton.prediction-file {\n cursor: pointer;\n}\n\nbutton.prediction-file:hover {\n background: var(--nol-hover);\n}\n\n.prediction-file-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 500;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.link {\n color: var(--nol-link);\n}\n\nbutton.link {\n padding: 0;\n border: 0;\n background: none;\n font: inherit;\n cursor: pointer;\n}\n\nbutton.link:hover {\n text-decoration: underline;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.octicon {\n width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.5rem;\n height: 1.5rem;\n border-radius: 50%;\n font-size: 0.6875rem;\n font-weight: 500;\n object-fit: cover;\n}\n.av-default {\n background: var(--nol-avatar-default);\n color: var(--nol-avatar-default-text);\n}\n\n.av-teal {\n background: var(--nol-avatar-teal);\n color: var(--nol-avatar-teal-text);\n}\n\n.av-amber {\n background: var(--nol-avatar-amber);\n color: var(--nol-avatar-amber-text);\n}\n\n.av-violet {\n background: var(--nol-avatar-violet);\n color: var(--nol-avatar-violet-text);\n}\n\n.av-green {\n background: var(--nol-avatar-green);\n color: var(--nol-avatar-green-text);\n}\n\n.av-pink {\n background: var(--nol-avatar-pink);\n color: var(--nol-avatar-pink-text);\n}\n\n.av-cyan {\n background: var(--nol-avatar-cyan);\n color: var(--nol-avatar-cyan-text);\n}\n\n.av-orange {\n background: var(--nol-avatar-orange);\n color: var(--nol-avatar-orange-text);\n}\n\n.comments {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n align-self: flex-start;\n margin-top: auto;\n}\n\n.link.comments {\n font-size: 0.75rem;\n}\n\n.pull-request-comments {\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.pull-request-comments:hover {\n text-decoration: underline;\n}\n\n.pull-request {\n display: flex;\n flex-direction: column;\n gap: 0.375rem;\n box-sizing: border-box;\n width: 100%;\n margin-top: auto;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background: var(--nol-raised);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.pull-request-head {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-width: 0;\n}\n\n.pull-request-title {\n flex: 1 1 auto;\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: 500;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.pull-request[data-state=\"Merged\"] .pull-request-state {\n color: var(--nol-status-ok);\n}\n\n.pull-request[data-state=\"Closed\"] .pull-request-state {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
@@ -15,10 +15,10 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
export class GitCommitDetailViewComponent {
|
|
16
16
|
resources = Resources;
|
|
17
17
|
shown = GitCommitDetails.of(inject(WindowPartTokens.context)).shown;
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
19
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDetailViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitCommitDetailViewComponent, isStandalone: true, selector: "nol-git-commit-detail-view", providers: [GitViewStateService], ngImport: i0, template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitCommitDetailComponent, selector: "nol-git-commit-detail", inputs: ["folder", "commit"] }] });
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDetailViewComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{ selector: "nol-git-commit-detail-view", imports: [GitCommitDetailComponent], providers: [GitViewStateService], template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
24
24
|
}] });
|
|
@@ -27,10 +27,10 @@ export class GitCommitDocumentComponent {
|
|
|
27
27
|
untracked(() => this.context.updateDocument(Resources.commitDocumentName, folder, { title }));
|
|
28
28
|
});
|
|
29
29
|
}
|
|
30
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
31
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
30
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDocumentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
31
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitCommitDocumentComponent, isStandalone: true, selector: "nol-git-commit-document", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], ngImport: i0, template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitCommitDetailComponent, selector: "nol-git-commit-detail", inputs: ["folder", "commit"] }] });
|
|
32
32
|
}
|
|
33
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommitDocumentComponent, decorators: [{
|
|
34
34
|
type: Component,
|
|
35
35
|
args: [{ selector: "nol-git-commit-document", imports: [GitCommitDetailComponent], providers: [GitViewStateService], template: "@if (shown(); as view) {\n <nol-git-commit-detail [folder]=\"view.folder\" [commit]=\"view.commit\" />\n} @else {\n <p class=\"muted empty-view\">{{ resources.commitDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
36
36
|
}], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
@@ -16,10 +16,10 @@ export class GitConflictDetailComponent {
|
|
|
16
16
|
detail = GitConflictDetails.of(inject(WindowPartTokens.context)).shown;
|
|
17
17
|
instance = input.required(/* @ts-ignore */
|
|
18
18
|
...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
20
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitConflictDetailComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
20
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitConflictDetailComponent, isStandalone: true, selector: "nol-git-conflict-detail", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (detail(); as shown) {\n <section class=\"detail\" [attr.aria-label]=\"resources.conflictDetailLabel\">\n @if (shown.active; as active) {\n <div class=\"detail-head\">\n <h2 class=\"detail-title\">{{ resources.formatConflictTitle(active.index + 1, active.count) }}</h2>\n <span class=\"detail-lines\">{{ resources.formatConflictLines(active.firstLine + 1, active.lastLine + 1) }}</span>\n </div>\n <div class=\"base\">\n <h3 class=\"checklist-title\">{{ resources.baseTitle }}</h3>\n @if (active.base === null) {\n <p class=\"base-note\">{{ resources.noBaseNote }}</p>\n } @else {\n <noldova-code-text class=\"base-text\" [text]=\"active.base\" [language]=\"shown.language\" />\n }\n </div>\n }\n <div class=\"checklist\">\n <h2 class=\"checklist-title\">{{ resources.beforeCommitTitle }}</h2>\n @if (shown.leftoverMarkers; as leftover) {\n @if (leftover.length === 0) {\n <p class=\"check markers\"><span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"check-text\">{{ resources.noMarkersLeft }}</span></p>\n } @else {\n <p class=\"check markers\"><span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"check-text\">{{\n resources.formatMarkersLeft(leftover) }}</span></p>\n }\n } @else if (shown.markerFailure; as failure) {\n <p class=\"check markers\"><span class=\"file-icon failure material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span><span class=\"check-text\">{{\n resources.formatMarkerCheckFailed(failure) }}</span></p>\n }\n </div>\n <p class=\"detail-note\">{{ resources.rerereNote }}</p>\n </section>\n} @else {\n <p class=\"muted empty-view\">{{ resources.conflictDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n 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.detail {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n min-height: 100%;\n padding: 0.75rem;\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.detail-head {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.detail-title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.detail-lines,\n.base-note {\n margin: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.base,\n.checklist {\n display: flex;\n flex-direction: column;\n}\n\n.base {\n gap: 0.25rem;\n}\n\n.checklist {\n gap: 0.375rem;\n}\n\n.base-text {\n min-height: 1.25rem;\n margin: 0;\n padding: 0.25rem 0.5rem;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-code);\n color: var(--nol-text-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n white-space: pre;\n}\n\n.checklist-title {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.check {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n margin: 0;\n}\n\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.detail-note {\n margin: auto 0 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n line-height: 1.6;\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.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }] });
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitConflictDetailComponent, decorators: [{
|
|
23
23
|
type: Component,
|
|
24
24
|
args: [{ selector: "nol-git-conflict-detail", imports: [CodeTextComponent], template: "@if (detail(); as shown) {\n <section class=\"detail\" [attr.aria-label]=\"resources.conflictDetailLabel\">\n @if (shown.active; as active) {\n <div class=\"detail-head\">\n <h2 class=\"detail-title\">{{ resources.formatConflictTitle(active.index + 1, active.count) }}</h2>\n <span class=\"detail-lines\">{{ resources.formatConflictLines(active.firstLine + 1, active.lastLine + 1) }}</span>\n </div>\n <div class=\"base\">\n <h3 class=\"checklist-title\">{{ resources.baseTitle }}</h3>\n @if (active.base === null) {\n <p class=\"base-note\">{{ resources.noBaseNote }}</p>\n } @else {\n <noldova-code-text class=\"base-text\" [text]=\"active.base\" [language]=\"shown.language\" />\n }\n </div>\n }\n <div class=\"checklist\">\n <h2 class=\"checklist-title\">{{ resources.beforeCommitTitle }}</h2>\n @if (shown.leftoverMarkers; as leftover) {\n @if (leftover.length === 0) {\n <p class=\"check markers\"><span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"check-text\">{{ resources.noMarkersLeft }}</span></p>\n } @else {\n <p class=\"check markers\"><span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"check-text\">{{\n resources.formatMarkersLeft(leftover) }}</span></p>\n }\n } @else if (shown.markerFailure; as failure) {\n <p class=\"check markers\"><span class=\"file-icon failure material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span><span class=\"check-text\">{{\n resources.formatMarkerCheckFailed(failure) }}</span></p>\n }\n </div>\n <p class=\"detail-note\">{{ resources.rerereNote }}</p>\n </section>\n} @else {\n <p class=\"muted empty-view\">{{ resources.conflictDetailEmpty }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: auto;\n 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.detail {\n display: flex;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n min-height: 100%;\n padding: 0.75rem;\n}\n\n.empty-view {\n margin: var(--nol-space-3);\n}\n\n.detail-head {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n}\n\n.detail-title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.detail-lines,\n.base-note {\n margin: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.base,\n.checklist {\n display: flex;\n flex-direction: column;\n}\n\n.base {\n gap: 0.25rem;\n}\n\n.checklist {\n gap: 0.375rem;\n}\n\n.base-text {\n min-height: 1.25rem;\n margin: 0;\n padding: 0.25rem 0.5rem;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-code);\n color: var(--nol-text-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n white-space: pre;\n}\n\n.checklist-title {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.check {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n margin: 0;\n}\n\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.detail-note {\n margin: auto 0 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n line-height: 1.6;\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.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
25
25
|
}], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
@@ -241,10 +241,10 @@ export class GitConflictsComponent {
|
|
|
241
241
|
static lacks(conflict, kinds) {
|
|
242
242
|
return Object.isNull(conflict) || kinds.has(conflict.kind);
|
|
243
243
|
}
|
|
244
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (resolving()) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n @if (status.operation; as operation) {\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n } @else {\n <span class=\"operation-text\"><span class=\"strong\">{{ resources.formatLooseConflicts(status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n }\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
244
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (resolving()) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n @if (status.operation; as operation) {\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n } @else {\n <span class=\"operation-text\"><span class=\"strong\">{{ resources.formatLooseConflicts(status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n }\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
246
246
|
}
|
|
247
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
247
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitConflictsComponent, decorators: [{
|
|
248
248
|
type: Component,
|
|
249
249
|
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (resolving()) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n @if (status.operation; as operation) {\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n } @else {\n <span class=\"operation-text\"><span class=\"strong\">{{ resources.formatLooseConflicts(status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n }\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
250
250
|
}], ctorParameters: () => [], propDecorators: { editor: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MergeEditorComponent), { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
@@ -14,13 +14,13 @@ import { GitWorkspaceComponent } from "../git-workspace/git-workspace.component.
|
|
|
14
14
|
import * as i0 from "@angular/core";
|
|
15
15
|
export class GitDashboardComponent {
|
|
16
16
|
instance = Resources.openRepositoriesInstance;
|
|
17
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
18
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.
|
|
17
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDashboardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
18
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.3.2", type: GitDashboardComponent, isStandalone: true, selector: "nol-git-dashboard", providers: [
|
|
19
19
|
{ provide: WindowPartTokens.context, useFactory: () => GitWindowContext.current() },
|
|
20
20
|
{ provide: WindowPartTokens.activeDocument, useValue: signal(true) }
|
|
21
21
|
], 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<nol-git-workspace [instance]=\"instance\" />\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 height: 100%;\n min-height: 0;\n}\n"], dependencies: [{ kind: "component", type: GitWorkspaceComponent, selector: "nol-git-workspace", inputs: ["instance"] }] });
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDashboardComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: "nol-git-dashboard", imports: [GitWorkspaceComponent], providers: [
|
|
26
26
|
{ provide: WindowPartTokens.context, useFactory: () => GitWindowContext.current() },
|
|
@@ -171,10 +171,10 @@ export class GitDiffFilesComponent {
|
|
|
171
171
|
this.failure.set(GitRuntimeClient.failureOf(error)?.message ?? Resources.historyFailed);
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
175
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiffFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitDiffFilesComponent, isStandalone: true, selector: "nol-git-diff-files", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <nol-section-header [label]=\"resources.formatFilesChanged(totals().files)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"totals\"><span class=\"added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"removed\">{{ resources.removedSign }}{{ totals().removed }}</span></span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n }\n </nol-section-header>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"diffInsetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: contents;\n}\n\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.totals {\n display: inline-flex;\n gap: 0.375rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: calc(100% + 2 * var(--git-row-outset));\n height: 1.625rem;\n margin-inline: calc(-1 * var(--git-row-outset));\n padding: 0 var(--git-row-outset);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: end;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"], dependencies: [{ kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { 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: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }] });
|
|
176
176
|
}
|
|
177
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
177
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiffFilesComponent, decorators: [{
|
|
178
178
|
type: Component,
|
|
179
179
|
args: [{ selector: "nol-git-diff-files", imports: [FileBadgeComponent, GitFileLayoutButtonComponent, SectionHeaderActionDirective, SectionHeaderComponent, SectionHeaderDetailDirective], 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 message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <nol-section-header [label]=\"resources.formatFilesChanged(totals().files)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"totals\"><span class=\"added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"removed\">{{ resources.removedSign }}{{ totals().removed }}</span></span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n }\n </nol-section-header>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"diffInsetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: contents;\n}\n\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.totals {\n display: inline-flex;\n gap: 0.375rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: calc(100% + 2 * var(--git-row-outset));\n height: 1.625rem;\n margin-inline: calc(-1 * var(--git-row-outset));\n padding: 0 var(--git-row-outset);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: end;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"] }]
|
|
180
180
|
}], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }] } });
|
|
@@ -19,10 +19,10 @@ export class GitDiscardDialogComponent {
|
|
|
19
19
|
undoable = input.required(/* @ts-ignore */
|
|
20
20
|
...(ngDevMode ? [{ debugName: "undoable" }] : /* istanbul ignore next */ []));
|
|
21
21
|
answered = output();
|
|
22
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.
|
|
22
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiscardDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", type: GitDiscardDialogComponent, isStandalone: true, selector: "nol-git-discard-dialog", inputs: { path: { classPropertyName: "path", publicName: "path", isSignal: true, isRequired: true, transformFunction: null }, untracked: { classPropertyName: "untracked", publicName: "untracked", isSignal: true, isRequired: true, transformFunction: null }, undoable: { classPropertyName: "undoable", publicName: "undoable", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, 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<nol-dialog [title]=\"resources.discardTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ untracked() ? resources.formatDiscardUntracked(path(), undoable()) : resources.formatDiscardTracked(path(), undoable()) }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"discard\" (click)=\"answered.emit(true)\">{{ resources.discardLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\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.text {\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: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
|
|
24
24
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiscardDialogComponent, decorators: [{
|
|
26
26
|
type: Component,
|
|
27
27
|
args: [{ selector: "nol-git-discard-dialog", imports: [ButtonComponent, DialogComponent], 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<nol-dialog [title]=\"resources.discardTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ untracked() ? resources.formatDiscardUntracked(path(), undoable()) : resources.formatDiscardTracked(path(), undoable()) }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"discard\" (click)=\"answered.emit(true)\">{{ resources.discardLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\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.text {\n margin: 0;\n}\n"] }]
|
|
28
28
|
}], propDecorators: { path: [{ type: i0.Input, args: [{ isSignal: true, alias: "path", required: true }] }], untracked: [{ type: i0.Input, args: [{ isSignal: true, alias: "untracked", required: true }] }], undoable: [{ type: i0.Input, args: [{ isSignal: true, alias: "undoable", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|