@noldova/git.window 0.0.9 → 0.0.10
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +5 -5
- package/src/app/components/git-accounts/git-accounts.component.js +2 -2
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
- package/src/app/components/git-branch-card/git-branch-card.component.js +2 -2
- package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
- package/src/app/components/git-command-log/git-command-log.component.js +2 -2
- package/src/app/components/git-commit-card/git-commit-card.component.js +5 -15
- package/src/app/components/git-commit-card/git-commit-card.component.js.map +1 -1
- package/src/app/components/git-conflicts/git-conflicts.component.js +2 -2
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-history/git-history.component.js +19 -3
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +20 -4
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +4 -2
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/services/git-view-commands.js +46 -0
- package/src/app/services/git-view-commands.js.map +1 -0
- package/src/app/services/git-view-state.service.js +50 -0
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-window-part.js +4 -1
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/resources.js +17 -0
- package/src/resources.js.map +1 -1
|
@@ -242,10 +242,10 @@ export class GitConflictsComponent {
|
|
|
242
242
|
return Object.isNull(conflict) || kinds.has(conflict.kind);
|
|
243
243
|
}
|
|
244
244
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.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"] }] });
|
|
245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><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
247
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, decorators: [{
|
|
248
248
|
type: Component,
|
|
249
|
-
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\">{{ resources.groupTitles.Conflicts }} {{ conflicted().length }}</h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\">{{ resources.resolvedTitle }} {{ resolved().length }}</h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\">{{ resources.mergedCleanlyTitle }} {{ clean.length }}</h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.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"] }]
|
|
249
|
+
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><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 }] }] } });
|
|
251
251
|
//# sourceMappingURL=git-conflicts.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,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cAAc,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;QAC5B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACrB,OAAO;QACT,IAAI,CAAC;YACH,MAAM,UAAU,GAAkB,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,iBAAiB;gBACrC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,CAAC;QACP,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,QAA4B,EAAE,KAAgC;QACjF,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;uGAjNU,qBAAqB;2FAArB,qBAAqB,4MAJrB,CAAC,mBAAmB,CAAC,kEA6D8C,oBAAoB,gEChGpG,g5WAwJA,gjLDtHY,eAAe,oJAAE,iBAAiB,4FAAE,oBAAoB,iTAAE,sBAAsB;;2FAK/E,qBAAqB;kBAPjC,SAAS;+BACE,mBAAmB,WACpB,CAAC,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,CAAC,aAChF,CAAC,mBAAmB,CAAC;kHA6D8C,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"git-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KA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C,EAAE,CAAC,CAAC;QAC5B,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;YACrB,OAAO;QACT,IAAI,CAAC;YACH,MAAM,UAAU,GAAkB,MAAM,IAAI,CAAC,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,iBAAiB;gBACrC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,CAAC;QACP,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,QAA4B,EAAE,KAAgC;QACjF,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;uGAjNU,qBAAqB;2FAArB,qBAAqB,4MAJrB,CAAC,mBAAmB,CAAC,kEA6D8C,oBAAoB,gEChGpG,6hXAwJA,smLDtHY,eAAe,oJAAE,iBAAiB,4FAAE,oBAAoB,iTAAE,sBAAsB;;2FAK/E,qBAAqB;kBAPjC,SAAS;+BACE,mBAAmB,WACpB,CAAC,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,CAAC,aAChF,CAAC,mBAAmB,CAAC;kHA6D8C,oBAAoB"}
|
|
@@ -59,6 +59,12 @@ export class GitHistoryComponent {
|
|
|
59
59
|
pathsMissed = new Set();
|
|
60
60
|
viewport = viewChild.required(CdkVirtualScrollViewport, /* @ts-ignore */
|
|
61
61
|
...(ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []));
|
|
62
|
+
scroller = viewChild(CdkVirtualScrollViewport, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "scroller" }] : /* istanbul ignore next */ []));
|
|
64
|
+
scrollbar = signal(0, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "scrollbar" }] : /* istanbul ignore next */ []));
|
|
66
|
+
scrollbarWidth = computed(() => `${String(this.scrollbar())}px`, /* @ts-ignore */
|
|
67
|
+
...(ngDevMode ? [{ debugName: "scrollbarWidth" }] : /* istanbul ignore next */ []));
|
|
62
68
|
row = viewChild.required("row", /* @ts-ignore */
|
|
63
69
|
...(ngDevMode ? [{ debugName: "row" }] : /* istanbul ignore next */ []));
|
|
64
70
|
actions = viewChild.required("actions", /* @ts-ignore */
|
|
@@ -208,6 +214,16 @@ export class GitHistoryComponent {
|
|
|
208
214
|
observer.observe(row);
|
|
209
215
|
destroyed.onDestroy(() => observer.disconnect());
|
|
210
216
|
});
|
|
217
|
+
effect(onCleanup => {
|
|
218
|
+
const list = this.scroller()?.elementRef.nativeElement;
|
|
219
|
+
if (Object.isUndefined(list)) {
|
|
220
|
+
this.scrollbar.set(0);
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
const observer = new ResizeObserver(() => this.scrollbar.set(list.offsetWidth - list.clientWidth));
|
|
224
|
+
observer.observe(list);
|
|
225
|
+
onCleanup(() => observer.disconnect());
|
|
226
|
+
});
|
|
211
227
|
}
|
|
212
228
|
trackRow = (_index, row) => row.id;
|
|
213
229
|
imageOf(row) {
|
|
@@ -552,13 +568,13 @@ export class GitHistoryComponent {
|
|
|
552
568
|
this.errors.handleError(error);
|
|
553
569
|
}
|
|
554
570
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
555
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitHistoryComponent, isStandalone: true, selector: "nol-git-history", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "style.--graph-width": "graphWidth()" } }, viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }, { propertyName: "actions", first: true, predicate: ["actions"], descendants: true, isSignal: true }, { propertyName: "field", first: true, predicate: ["field"], 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<div #row class=\"toolbar\">\n <div #actions class=\"actions\" nolToolbar [nolToolbarLabel]=\"resources.toolbarLabel\">\n @for (toolbar of shownToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <span class=\"sep\" aria-hidden=\"true\"></span>\n }\n <div class=\"group\" role=\"group\" [attr.aria-label]=\"toolbar.title\">\n @for (action of toolbar.actions; track action) {\n @let label = labelOf(action);\n <button type=\"button\" nol-toolbar-button nolToolbarItem [attr.data-action]=\"action\" [label]=\"label\" [icon]=\"resources.historyActionIcons[action]\"\n [isShowingLabel]=\"isWide() && resources.labeledHistoryActions.includes(action)\" [isUnavailable]=\"!canRun(action)\"\n [nolTooltip]=\"label\" (click)=\"run(action)\"></button>\n }\n </div>\n }\n @if (hiddenToolbars().length > 0) {\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"more\" [label]=\"resources.moreActionsLabel\" [icon]=\"resources.moreIcon\" [hasMenu]=\"true\"\n [nolMenuTriggerFor]=\"more\" [nolTooltip]=\"resources.moreActionsLabel\"></button>\n }\n </div>\n <div class=\"spacer\"></div>\n <label #field class=\"field\" [class.gone]=\"notRepository() !== null\">\n <span class=\"ms placeholder\">filter_list</span>\n <input #search type=\"search\" [placeholder]=\"resources.filterPlaceholder\" [value]=\"filter()\" (input)=\"filter.set(search.value)\" />\n </label>\n</div>\n<ng-template #more>\n <nol-menu>\n @for (toolbar of hiddenToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (action of toolbar.actions; track action) {\n <button nol-menu-item [attr.data-action]=\"action\" [label]=\"labelOf(action)\" [icon]=\"resources.historyActionIcons[action]\" [disabled]=\"!canRun(action)\"\n (triggered)=\"run(action)\"></button>\n }\n }\n </nol-menu>\n</ng-template>\n@if (notRepository(); as look) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.noFolderIcon }}</span>\n <h2 class=\"heading\">{{ resources.notRepositoryHeading }}</h2>\n <p class=\"text\">{{ look.text() }}</p>\n </div>\n} @else {\n @if (actionFailure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @if (notLoaded(); as message) {\n <p class=\"note not-loaded\" role=\"status\">{{ message }}</p>\n }\n <div class=\"grow-row header\">\n <span class=\"cell\">{{ resources.columnRefs }}</span><span class=\"cell\">{{ resources.columnGraph }}</span><span class=\"cell\">{{ resources.columnMessage }}</span>\n <span class=\"cell\">{{ resources.columnAuthor }}</span><span class=\"cell\">{{ resources.columnDate }}</span>\n </div>\n @if (isLoading()) {\n <p class=\"note\">{{ resources.historyLoading }}</p>\n } @else if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n } @else if (rows().length === 0) {\n <p class=\"note\">{{ resources.historyEmpty }}</p>\n } @else {\n <cdk-virtual-scroll-viewport class=\"list\" [itemSize]=\"resources.graphRowPixels\" [minBufferPx]=\"resources.graphBufferPixels\"\n [maxBufferPx]=\"resources.graphBufferPixels * 2\" role=\"listbox\" tabindex=\"0\" [attr.aria-label]=\"resources.historyListLabel\" [attr.aria-activedescendant]=\"activeOption()\"\n (keydown)=\"move($event)\" (scrolledIndexChange)=\"scrolled($event)\">\n <div *cdkVirtualFor=\"let row of rows(); let index = index; let count = count; trackBy: trackRow\" class=\"grow-row\" role=\"option\"\n [id]=\"resources.formatHistoryOptionId(list, index)\" [attr.aria-posinset]=\"index + 1\" [attr.aria-setsize]=\"hasMore() ? -1 : count\"\n [class.sel]=\"row.id === selectedId()\" [class.dim]=\"!row.matches\" [attr.aria-selected]=\"row.id === selectedId()\" (click)=\"select(row)\">\n <div class=\"cell\">\n @let split = row.chipsWithin(chipLimit());\n @for (chip of split.shown; track chip.title + chip.icon) {\n <span class=\"chip\" [class]=\"chip.isTag ? 'chip ltag' : 'chip l' + row.graph.color\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"\n [attr.draggable]=\"chip.branch !== null\" (dragstart)=\"dragBranch(chip, row)\" (dragover)=\"overBranch($event, chip)\" (drop)=\"dropBranch($event, chip, row)\"\n (dragend)=\"endDrag()\">\n <span class=\"ms chip-icon\">{{ chip.icon }}</span><span class=\"ellipsis\">{{ chip.name }}</span>\n </span>\n }\n @if (split.hidden.length > 0) {\n <span class=\"chip ltag more\" [title]=\"moreTitle(split.hidden)\">{{ resources.formatMoreChips(split.hidden.length) }}</span>\n }\n </div>\n <svg class=\"graph\" aria-hidden=\"true\" [attr.width]=\"graphPixels()\" [attr.height]=\"resources.graphRowPixels\"\n [attr.viewBox]=\"'0 0 ' + graphPixels() + ' ' + resources.graphRowPixels\">\n @for (line of row.graph.lines; track $index) {\n <path [attr.d]=\"path(line)\" [attr.class]=\"'line lane-' + line.color\" />\n }\n @if (row.isChanges) {\n <circle class=\"changes\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'changes lane-' + row.graph.color\" />\n } @else if (row.isHead) {\n <circle class=\"ring\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadRingPixels\"\n [attr.class]=\"'ring lane-' + row.graph.color\" />\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadDotPixels\"\n [attr.class]=\"'fill lane-' + row.graph.color\" />\n } @else {\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'dot lane-' + row.graph.color\" />\n }\n </svg>\n <div class=\"cell\"><span class=\"message\" [class.italic]=\"row.isChanges\"><nol-git-reference-text class=\"line\" [text]=\"row.message\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span></div>\n <div class=\"cell\">\n @if (!row.isChanges) {\n @let picture = imageOf(row);\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + row.avatar\">{{ row.initials }}</span>\n }\n <span class=\"ellipsis\">{{ row.author }}</span>\n }\n </div>\n <div class=\"cell muted\">{{ row.age }}</div>\n </div>\n </cdk-virtual-scroll-viewport>\n @if (dropped(); as shown) {\n <nol-git-branch-drop [drop]=\"shown.drop\" [prediction]=\"shown.prediction\" [checking]=\"shown.checking\" [busy]=\"writable() === null\" [request]=\"shown.request\"\n [left]=\"shown.left\" [top]=\"shown.top\" (requested)=\"requestDropped($event)\" (merged)=\"mergeDropped(shown.drop)\" (switchMerged)=\"switchMergeDropped(shown.drop)\" (rebased)=\"rebaseDropped(shown.drop)\" (closed)=\"dropped.set(null)\" />\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n container: history / inline-size;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n background: var(--nol-panel);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.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.toolbar {\n display: flex;\n overflow: hidden;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.actions,\n.group {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sep {\n width: 1px;\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.spacer {\n flex: 1;\n}\n\n.field {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n flex: 0 1 17rem;\n min-width: 7rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: 0.25rem;\n background: var(--nol-input);\n}\n\n.field input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.field input::placeholder,\n.placeholder {\n color: var(--nol-placeholder);\n}\n\n.grow-row {\n display: grid;\n grid-template-columns: 13rem var(--graph-width) minmax(0, 1fr) 9.5rem 5.5rem;\n align-items: center;\n box-sizing: border-box;\n height: 1.75rem;\n padding: 0 0.5rem;\n white-space: nowrap;\n}\n\n.header {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.list {\n flex: 1;\n min-height: 0;\n outline: none;\n}\n\n.list .grow-row:hover {\n background: var(--nol-hover);\n}\n\n.list .grow-row.sel,\n.list .grow-row.sel:hover {\n background: var(--nol-selected);\n}\n\n.grow-row.dim {\n opacity: 0.4;\n}\n\n.cell {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.message,\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.italic {\n font-style: italic;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\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 color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.chip.more {\n flex: none;\n}\n\n.ltag {\n box-shadow: inset 0 0 0 1px var(--nol-border);\n}\n\n.graph {\n display: block;\n overflow: visible;\n}\n\n.line {\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n}\n\n.dot {\n stroke: var(--nol-panel);\n stroke-width: 2;\n}\n\n.ring,\n.changes {\n fill: var(--nol-panel);\n stroke-width: 2;\n}\n\n.changes {\n stroke-dasharray: 3 2;\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n font-size: 0.625rem;\n font-weight: 500;\n object-fit: cover;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.line.lane-0,\n.ring.lane-0,\n.changes.lane-0 {\n stroke: var(--nol-author-1);\n}\n\n.dot.lane-0,\n.fill.lane-0 {\n fill: var(--nol-author-1);\n}\n\n.l0 {\n background: color-mix(in srgb, var(--nol-author-1) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-1) 55%, transparent);\n}\n\n.line.lane-1,\n.ring.lane-1,\n.changes.lane-1 {\n stroke: var(--nol-author-2);\n}\n\n.dot.lane-1,\n.fill.lane-1 {\n fill: var(--nol-author-2);\n}\n\n.l1 {\n background: color-mix(in srgb, var(--nol-author-2) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-2) 55%, transparent);\n}\n\n.line.lane-2,\n.ring.lane-2,\n.changes.lane-2 {\n stroke: var(--nol-author-3);\n}\n\n.dot.lane-2,\n.fill.lane-2 {\n fill: var(--nol-author-3);\n}\n\n.l2 {\n background: color-mix(in srgb, var(--nol-author-3) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-3) 55%, transparent);\n}\n\n.line.lane-3,\n.ring.lane-3,\n.changes.lane-3 {\n stroke: var(--nol-author-4);\n}\n\n.dot.lane-3,\n.fill.lane-3 {\n fill: var(--nol-author-4);\n}\n\n.l3 {\n background: color-mix(in srgb, var(--nol-author-4) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-4) 55%, transparent);\n}\n\n.line.lane-4,\n.ring.lane-4,\n.changes.lane-4 {\n stroke: var(--nol-author-5);\n}\n\n.dot.lane-4,\n.fill.lane-4 {\n fill: var(--nol-author-5);\n}\n\n.l4 {\n background: color-mix(in srgb, var(--nol-author-5) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-5) 55%, transparent);\n}\n\n.line.lane-5,\n.ring.lane-5,\n.changes.lane-5 {\n stroke: var(--nol-author-6);\n}\n\n.dot.lane-5,\n.fill.lane-5 {\n fill: var(--nol-author-6);\n}\n\n.l5 {\n background: color-mix(in srgb, var(--nol-author-6) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-6) 55%, transparent);\n}\n\n.line.lane-6,\n.ring.lane-6,\n.changes.lane-6 {\n stroke: var(--nol-author-7);\n}\n\n.dot.lane-6,\n.fill.lane-6 {\n fill: var(--nol-author-7);\n}\n\n.l6 {\n background: color-mix(in srgb, var(--nol-author-7) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-7) 55%, transparent);\n}\n\n.line.lane-7,\n.ring.lane-7,\n.changes.lane-7 {\n stroke: var(--nol-author-8);\n}\n\n.dot.lane-7,\n.fill.lane-7 {\n fill: var(--nol-author-8);\n}\n\n.l7 {\n background: color-mix(in srgb, var(--nol-author-8) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-8) 55%, transparent);\n}\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@container history (width < 64rem) {\n .grow-row {\n grid-template-columns: 9rem var(--graph-width) minmax(0, 1fr) 8rem 5.5rem;\n }\n}\n\n@container history (width < 44rem) {\n .grow-row {\n grid-template-columns: 10rem var(--graph-width) minmax(0, 1fr);\n }\n\n .grow-row > :nth-child(n + 4) {\n display: none;\n }\n}\n\n.field.gone {\n display: none;\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: 0.5rem 0.75rem;\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitBranchDropComponent, selector: "nol-git-branch-drop", inputs: ["drop", "prediction", "checking", "request", "busy", "left", "top"], outputs: ["merged", "switchMerged", "rebased", "requested", "closed"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
571
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitHistoryComponent, isStandalone: true, selector: "nol-git-history", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, host: { properties: { "style.--graph-width": "graphWidth()", "style.--git-history-scrollbar": "scrollbarWidth()" } }, viewQueries: [{ propertyName: "viewport", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "scroller", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "row", first: true, predicate: ["row"], descendants: true, isSignal: true }, { propertyName: "actions", first: true, predicate: ["actions"], descendants: true, isSignal: true }, { propertyName: "field", first: true, predicate: ["field"], 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<div #row class=\"toolbar\">\n <div #actions class=\"actions\" nolToolbar [nolToolbarLabel]=\"resources.toolbarLabel\">\n @for (toolbar of shownToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <span class=\"sep\" aria-hidden=\"true\"></span>\n }\n <div class=\"group\" role=\"group\" [attr.aria-label]=\"toolbar.title\">\n @for (action of toolbar.actions; track action) {\n @let label = labelOf(action);\n <button type=\"button\" nol-toolbar-button nolToolbarItem [attr.data-action]=\"action\" [label]=\"label\" [icon]=\"resources.historyActionIcons[action]\"\n [isShowingLabel]=\"isWide() && resources.labeledHistoryActions.includes(action)\" [isUnavailable]=\"!canRun(action)\"\n [nolTooltip]=\"label\" (click)=\"run(action)\"></button>\n }\n </div>\n }\n @if (hiddenToolbars().length > 0) {\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"more\" [label]=\"resources.moreActionsLabel\" [icon]=\"resources.moreIcon\" [hasMenu]=\"true\"\n [nolMenuTriggerFor]=\"more\" [nolTooltip]=\"resources.moreActionsLabel\"></button>\n }\n </div>\n <div class=\"spacer\"></div>\n <label #field class=\"field\" [class.gone]=\"notRepository() !== null\">\n <span class=\"ms placeholder\">filter_list</span>\n <input #search type=\"search\" [placeholder]=\"resources.filterPlaceholder\" [value]=\"filter()\" (input)=\"filter.set(search.value)\" />\n </label>\n</div>\n<ng-template #more>\n <nol-menu>\n @for (toolbar of hiddenToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (action of toolbar.actions; track action) {\n <button nol-menu-item [attr.data-action]=\"action\" [label]=\"labelOf(action)\" [icon]=\"resources.historyActionIcons[action]\" [disabled]=\"!canRun(action)\"\n (triggered)=\"run(action)\"></button>\n }\n }\n </nol-menu>\n</ng-template>\n@if (notRepository(); as look) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.noFolderIcon }}</span>\n <h2 class=\"heading\">{{ resources.notRepositoryHeading }}</h2>\n <p class=\"text\">{{ look.text() }}</p>\n </div>\n} @else {\n @if (actionFailure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @if (notLoaded(); as message) {\n <p class=\"note not-loaded\" role=\"status\">{{ message }}</p>\n }\n <div class=\"grow-row header\">\n <span class=\"cell\">{{ resources.columnRefs }}</span><span class=\"cell\">{{ resources.columnGraph }}</span><span class=\"cell\">{{ resources.columnMessage }}</span>\n <span class=\"cell\">{{ resources.columnAuthor }}</span><span class=\"cell\">{{ resources.columnDate }}</span>\n </div>\n @if (isLoading()) {\n <p class=\"note\">{{ resources.historyLoading }}</p>\n } @else if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n } @else if (rows().length === 0) {\n <p class=\"note\">{{ resources.historyEmpty }}</p>\n } @else {\n <cdk-virtual-scroll-viewport class=\"list\" [itemSize]=\"resources.graphRowPixels\" [minBufferPx]=\"resources.graphBufferPixels\"\n [maxBufferPx]=\"resources.graphBufferPixels * 2\" role=\"listbox\" tabindex=\"0\" [attr.aria-label]=\"resources.historyListLabel\" [attr.aria-activedescendant]=\"activeOption()\"\n (keydown)=\"move($event)\" (scrolledIndexChange)=\"scrolled($event)\">\n <div *cdkVirtualFor=\"let row of rows(); let index = index; let count = count; trackBy: trackRow\" class=\"grow-row\" role=\"option\"\n [id]=\"resources.formatHistoryOptionId(list, index)\" [attr.aria-posinset]=\"index + 1\" [attr.aria-setsize]=\"hasMore() ? -1 : count\"\n [class.sel]=\"row.id === selectedId()\" [class.dim]=\"!row.matches\" [attr.aria-selected]=\"row.id === selectedId()\" (click)=\"select(row)\">\n <div class=\"cell\">\n @let split = row.chipsWithin(chipLimit());\n @for (chip of split.shown; track chip.title + chip.icon) {\n <span class=\"chip\" [class]=\"chip.isTag ? 'chip ltag' : 'chip l' + row.graph.color\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"\n [attr.draggable]=\"chip.branch !== null\" (dragstart)=\"dragBranch(chip, row)\" (dragover)=\"overBranch($event, chip)\" (drop)=\"dropBranch($event, chip, row)\"\n (dragend)=\"endDrag()\">\n <span class=\"ms chip-icon\">{{ chip.icon }}</span><span class=\"ellipsis\">{{ chip.name }}</span>\n </span>\n }\n @if (split.hidden.length > 0) {\n <span class=\"chip ltag more\" [title]=\"moreTitle(split.hidden)\">{{ resources.formatMoreChips(split.hidden.length) }}</span>\n }\n </div>\n <svg class=\"graph\" aria-hidden=\"true\" [attr.width]=\"graphPixels()\" [attr.height]=\"resources.graphRowPixels\"\n [attr.viewBox]=\"'0 0 ' + graphPixels() + ' ' + resources.graphRowPixels\">\n @for (line of row.graph.lines; track $index) {\n <path [attr.d]=\"path(line)\" [attr.class]=\"'line lane-' + line.color\" />\n }\n @if (row.isChanges) {\n <circle class=\"changes\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'changes lane-' + row.graph.color\" />\n } @else if (row.isHead) {\n <circle class=\"ring\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadRingPixels\"\n [attr.class]=\"'ring lane-' + row.graph.color\" />\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadDotPixels\"\n [attr.class]=\"'fill lane-' + row.graph.color\" />\n } @else {\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'dot lane-' + row.graph.color\" />\n }\n </svg>\n <div class=\"cell\"><span class=\"message\" [class.italic]=\"row.isChanges\"><nol-git-reference-text class=\"line\" [text]=\"row.message\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span></div>\n <div class=\"cell\">\n @if (!row.isChanges) {\n @let picture = imageOf(row);\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + row.avatar\">{{ row.initials }}</span>\n }\n <span class=\"ellipsis\">{{ row.author }}</span>\n }\n </div>\n <div class=\"cell muted\">{{ row.age }}</div>\n </div>\n </cdk-virtual-scroll-viewport>\n @if (dropped(); as shown) {\n <nol-git-branch-drop [drop]=\"shown.drop\" [prediction]=\"shown.prediction\" [checking]=\"shown.checking\" [busy]=\"writable() === null\" [request]=\"shown.request\"\n [left]=\"shown.left\" [top]=\"shown.top\" (requested)=\"requestDropped($event)\" (merged)=\"mergeDropped(shown.drop)\" (switchMerged)=\"switchMergeDropped(shown.drop)\" (rebased)=\"rebaseDropped(shown.drop)\" (closed)=\"dropped.set(null)\" />\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n container: history / inline-size;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n background: var(--nol-panel);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.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.toolbar {\n display: flex;\n overflow: hidden;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.actions,\n.group {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sep {\n width: 1px;\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.spacer {\n flex: 1;\n}\n\n.field {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n flex: 0 1 17rem;\n min-width: 7rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: 0.25rem;\n background: var(--nol-input);\n}\n\n.field input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.field input::placeholder,\n.placeholder {\n color: var(--nol-placeholder);\n}\n\n.grow-row {\n display: grid;\n grid-template-columns: 13rem var(--graph-width) minmax(0, 1fr) 9.5rem 5.5rem;\n align-items: center;\n box-sizing: border-box;\n height: 1.75rem;\n padding: 0 max(0px, calc(var(--nol-content-padding-inline) - var(--git-history-scrollbar))) 0 0.5rem;\n white-space: nowrap;\n}\n\n.grow-row > .cell:last-child {\n justify-content: flex-end;\n}\n\n.header {\n flex: none;\n padding-right: var(--nol-content-padding-inline);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.list {\n flex: 1;\n min-height: 0;\n outline: none;\n}\n\n.list .grow-row:hover {\n background: var(--nol-hover);\n}\n\n.list .grow-row.sel,\n.list .grow-row.sel:hover {\n background: var(--nol-selected);\n}\n\n.grow-row.dim {\n opacity: 0.4;\n}\n\n.cell {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.message,\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.italic {\n font-style: italic;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\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 color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.chip.more {\n flex: none;\n}\n\n.ltag {\n box-shadow: inset 0 0 0 1px var(--nol-border);\n}\n\n.graph {\n display: block;\n overflow: visible;\n}\n\n.line {\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n}\n\n.dot {\n stroke: var(--nol-panel);\n stroke-width: 2;\n}\n\n.ring,\n.changes {\n fill: var(--nol-panel);\n stroke-width: 2;\n}\n\n.changes {\n stroke-dasharray: 3 2;\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n font-size: 0.625rem;\n font-weight: 500;\n object-fit: cover;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.line.lane-0,\n.ring.lane-0,\n.changes.lane-0 {\n stroke: var(--nol-author-1);\n}\n\n.dot.lane-0,\n.fill.lane-0 {\n fill: var(--nol-author-1);\n}\n\n.l0 {\n background: color-mix(in srgb, var(--nol-author-1) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-1) 55%, transparent);\n}\n\n.line.lane-1,\n.ring.lane-1,\n.changes.lane-1 {\n stroke: var(--nol-author-2);\n}\n\n.dot.lane-1,\n.fill.lane-1 {\n fill: var(--nol-author-2);\n}\n\n.l1 {\n background: color-mix(in srgb, var(--nol-author-2) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-2) 55%, transparent);\n}\n\n.line.lane-2,\n.ring.lane-2,\n.changes.lane-2 {\n stroke: var(--nol-author-3);\n}\n\n.dot.lane-2,\n.fill.lane-2 {\n fill: var(--nol-author-3);\n}\n\n.l2 {\n background: color-mix(in srgb, var(--nol-author-3) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-3) 55%, transparent);\n}\n\n.line.lane-3,\n.ring.lane-3,\n.changes.lane-3 {\n stroke: var(--nol-author-4);\n}\n\n.dot.lane-3,\n.fill.lane-3 {\n fill: var(--nol-author-4);\n}\n\n.l3 {\n background: color-mix(in srgb, var(--nol-author-4) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-4) 55%, transparent);\n}\n\n.line.lane-4,\n.ring.lane-4,\n.changes.lane-4 {\n stroke: var(--nol-author-5);\n}\n\n.dot.lane-4,\n.fill.lane-4 {\n fill: var(--nol-author-5);\n}\n\n.l4 {\n background: color-mix(in srgb, var(--nol-author-5) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-5) 55%, transparent);\n}\n\n.line.lane-5,\n.ring.lane-5,\n.changes.lane-5 {\n stroke: var(--nol-author-6);\n}\n\n.dot.lane-5,\n.fill.lane-5 {\n fill: var(--nol-author-6);\n}\n\n.l5 {\n background: color-mix(in srgb, var(--nol-author-6) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-6) 55%, transparent);\n}\n\n.line.lane-6,\n.ring.lane-6,\n.changes.lane-6 {\n stroke: var(--nol-author-7);\n}\n\n.dot.lane-6,\n.fill.lane-6 {\n fill: var(--nol-author-7);\n}\n\n.l6 {\n background: color-mix(in srgb, var(--nol-author-7) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-7) 55%, transparent);\n}\n\n.line.lane-7,\n.ring.lane-7,\n.changes.lane-7 {\n stroke: var(--nol-author-8);\n}\n\n.dot.lane-7,\n.fill.lane-7 {\n fill: var(--nol-author-8);\n}\n\n.l7 {\n background: color-mix(in srgb, var(--nol-author-8) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-8) 55%, transparent);\n}\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@container history (width < 64rem) {\n .grow-row {\n grid-template-columns: 9rem var(--graph-width) minmax(0, 1fr) 8rem 5.5rem;\n }\n}\n\n@container history (width < 44rem) {\n .grow-row {\n grid-template-columns: 10rem var(--graph-width) minmax(0, 1fr);\n }\n\n .grow-row > :nth-child(n + 4) {\n display: none;\n }\n}\n\n.field.gone {\n display: none;\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: 0.5rem 0.75rem;\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitBranchDropComponent, selector: "nol-git-branch-drop", inputs: ["drop", "prediction", "checking", "request", "busy", "left", "top"], outputs: ["merged", "switchMerged", "rebased", "requested", "closed"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "component", type: MenuSeparatorComponent, selector: "nol-menu-separator" }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
556
572
|
}
|
|
557
573
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitHistoryComponent, decorators: [{
|
|
558
574
|
type: Component,
|
|
559
575
|
args: [{ selector: "nol-git-history", imports: [
|
|
560
576
|
GitBranchDropComponent, GitReferenceTextComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective, ScrollingModule, ToolbarButtonComponent, ToolbarDirective,
|
|
561
577
|
ToolbarItemDirective, TooltipDirective
|
|
562
|
-
], host: { "[style.--graph-width]": "graphWidth()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div #row class=\"toolbar\">\n <div #actions class=\"actions\" nolToolbar [nolToolbarLabel]=\"resources.toolbarLabel\">\n @for (toolbar of shownToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <span class=\"sep\" aria-hidden=\"true\"></span>\n }\n <div class=\"group\" role=\"group\" [attr.aria-label]=\"toolbar.title\">\n @for (action of toolbar.actions; track action) {\n @let label = labelOf(action);\n <button type=\"button\" nol-toolbar-button nolToolbarItem [attr.data-action]=\"action\" [label]=\"label\" [icon]=\"resources.historyActionIcons[action]\"\n [isShowingLabel]=\"isWide() && resources.labeledHistoryActions.includes(action)\" [isUnavailable]=\"!canRun(action)\"\n [nolTooltip]=\"label\" (click)=\"run(action)\"></button>\n }\n </div>\n }\n @if (hiddenToolbars().length > 0) {\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"more\" [label]=\"resources.moreActionsLabel\" [icon]=\"resources.moreIcon\" [hasMenu]=\"true\"\n [nolMenuTriggerFor]=\"more\" [nolTooltip]=\"resources.moreActionsLabel\"></button>\n }\n </div>\n <div class=\"spacer\"></div>\n <label #field class=\"field\" [class.gone]=\"notRepository() !== null\">\n <span class=\"ms placeholder\">filter_list</span>\n <input #search type=\"search\" [placeholder]=\"resources.filterPlaceholder\" [value]=\"filter()\" (input)=\"filter.set(search.value)\" />\n </label>\n</div>\n<ng-template #more>\n <nol-menu>\n @for (toolbar of hiddenToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (action of toolbar.actions; track action) {\n <button nol-menu-item [attr.data-action]=\"action\" [label]=\"labelOf(action)\" [icon]=\"resources.historyActionIcons[action]\" [disabled]=\"!canRun(action)\"\n (triggered)=\"run(action)\"></button>\n }\n }\n </nol-menu>\n</ng-template>\n@if (notRepository(); as look) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.noFolderIcon }}</span>\n <h2 class=\"heading\">{{ resources.notRepositoryHeading }}</h2>\n <p class=\"text\">{{ look.text() }}</p>\n </div>\n} @else {\n @if (actionFailure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @if (notLoaded(); as message) {\n <p class=\"note not-loaded\" role=\"status\">{{ message }}</p>\n }\n <div class=\"grow-row header\">\n <span class=\"cell\">{{ resources.columnRefs }}</span><span class=\"cell\">{{ resources.columnGraph }}</span><span class=\"cell\">{{ resources.columnMessage }}</span>\n <span class=\"cell\">{{ resources.columnAuthor }}</span><span class=\"cell\">{{ resources.columnDate }}</span>\n </div>\n @if (isLoading()) {\n <p class=\"note\">{{ resources.historyLoading }}</p>\n } @else if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n } @else if (rows().length === 0) {\n <p class=\"note\">{{ resources.historyEmpty }}</p>\n } @else {\n <cdk-virtual-scroll-viewport class=\"list\" [itemSize]=\"resources.graphRowPixels\" [minBufferPx]=\"resources.graphBufferPixels\"\n [maxBufferPx]=\"resources.graphBufferPixels * 2\" role=\"listbox\" tabindex=\"0\" [attr.aria-label]=\"resources.historyListLabel\" [attr.aria-activedescendant]=\"activeOption()\"\n (keydown)=\"move($event)\" (scrolledIndexChange)=\"scrolled($event)\">\n <div *cdkVirtualFor=\"let row of rows(); let index = index; let count = count; trackBy: trackRow\" class=\"grow-row\" role=\"option\"\n [id]=\"resources.formatHistoryOptionId(list, index)\" [attr.aria-posinset]=\"index + 1\" [attr.aria-setsize]=\"hasMore() ? -1 : count\"\n [class.sel]=\"row.id === selectedId()\" [class.dim]=\"!row.matches\" [attr.aria-selected]=\"row.id === selectedId()\" (click)=\"select(row)\">\n <div class=\"cell\">\n @let split = row.chipsWithin(chipLimit());\n @for (chip of split.shown; track chip.title + chip.icon) {\n <span class=\"chip\" [class]=\"chip.isTag ? 'chip ltag' : 'chip l' + row.graph.color\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"\n [attr.draggable]=\"chip.branch !== null\" (dragstart)=\"dragBranch(chip, row)\" (dragover)=\"overBranch($event, chip)\" (drop)=\"dropBranch($event, chip, row)\"\n (dragend)=\"endDrag()\">\n <span class=\"ms chip-icon\">{{ chip.icon }}</span><span class=\"ellipsis\">{{ chip.name }}</span>\n </span>\n }\n @if (split.hidden.length > 0) {\n <span class=\"chip ltag more\" [title]=\"moreTitle(split.hidden)\">{{ resources.formatMoreChips(split.hidden.length) }}</span>\n }\n </div>\n <svg class=\"graph\" aria-hidden=\"true\" [attr.width]=\"graphPixels()\" [attr.height]=\"resources.graphRowPixels\"\n [attr.viewBox]=\"'0 0 ' + graphPixels() + ' ' + resources.graphRowPixels\">\n @for (line of row.graph.lines; track $index) {\n <path [attr.d]=\"path(line)\" [attr.class]=\"'line lane-' + line.color\" />\n }\n @if (row.isChanges) {\n <circle class=\"changes\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'changes lane-' + row.graph.color\" />\n } @else if (row.isHead) {\n <circle class=\"ring\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadRingPixels\"\n [attr.class]=\"'ring lane-' + row.graph.color\" />\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadDotPixels\"\n [attr.class]=\"'fill lane-' + row.graph.color\" />\n } @else {\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'dot lane-' + row.graph.color\" />\n }\n </svg>\n <div class=\"cell\"><span class=\"message\" [class.italic]=\"row.isChanges\"><nol-git-reference-text class=\"line\" [text]=\"row.message\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span></div>\n <div class=\"cell\">\n @if (!row.isChanges) {\n @let picture = imageOf(row);\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + row.avatar\">{{ row.initials }}</span>\n }\n <span class=\"ellipsis\">{{ row.author }}</span>\n }\n </div>\n <div class=\"cell muted\">{{ row.age }}</div>\n </div>\n </cdk-virtual-scroll-viewport>\n @if (dropped(); as shown) {\n <nol-git-branch-drop [drop]=\"shown.drop\" [prediction]=\"shown.prediction\" [checking]=\"shown.checking\" [busy]=\"writable() === null\" [request]=\"shown.request\"\n [left]=\"shown.left\" [top]=\"shown.top\" (requested)=\"requestDropped($event)\" (merged)=\"mergeDropped(shown.drop)\" (switchMerged)=\"switchMergeDropped(shown.drop)\" (rebased)=\"rebaseDropped(shown.drop)\" (closed)=\"dropped.set(null)\" />\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n container: history / inline-size;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n background: var(--nol-panel);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.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.toolbar {\n display: flex;\n overflow: hidden;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.actions,\n.group {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sep {\n width: 1px;\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.spacer {\n flex: 1;\n}\n\n.field {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n flex: 0 1 17rem;\n min-width: 7rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: 0.25rem;\n background: var(--nol-input);\n}\n\n.field input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.field input::placeholder,\n.placeholder {\n color: var(--nol-placeholder);\n}\n\n.grow-row {\n display: grid;\n grid-template-columns: 13rem var(--graph-width) minmax(0, 1fr) 9.5rem 5.5rem;\n align-items: center;\n box-sizing: border-box;\n height: 1.75rem;\n padding: 0 0.5rem;\n white-space: nowrap;\n}\n\n.header {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.list {\n flex: 1;\n min-height: 0;\n outline: none;\n}\n\n.list .grow-row:hover {\n background: var(--nol-hover);\n}\n\n.list .grow-row.sel,\n.list .grow-row.sel:hover {\n background: var(--nol-selected);\n}\n\n.grow-row.dim {\n opacity: 0.4;\n}\n\n.cell {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.message,\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.italic {\n font-style: italic;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\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 color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.chip.more {\n flex: none;\n}\n\n.ltag {\n box-shadow: inset 0 0 0 1px var(--nol-border);\n}\n\n.graph {\n display: block;\n overflow: visible;\n}\n\n.line {\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n}\n\n.dot {\n stroke: var(--nol-panel);\n stroke-width: 2;\n}\n\n.ring,\n.changes {\n fill: var(--nol-panel);\n stroke-width: 2;\n}\n\n.changes {\n stroke-dasharray: 3 2;\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n font-size: 0.625rem;\n font-weight: 500;\n object-fit: cover;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.line.lane-0,\n.ring.lane-0,\n.changes.lane-0 {\n stroke: var(--nol-author-1);\n}\n\n.dot.lane-0,\n.fill.lane-0 {\n fill: var(--nol-author-1);\n}\n\n.l0 {\n background: color-mix(in srgb, var(--nol-author-1) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-1) 55%, transparent);\n}\n\n.line.lane-1,\n.ring.lane-1,\n.changes.lane-1 {\n stroke: var(--nol-author-2);\n}\n\n.dot.lane-1,\n.fill.lane-1 {\n fill: var(--nol-author-2);\n}\n\n.l1 {\n background: color-mix(in srgb, var(--nol-author-2) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-2) 55%, transparent);\n}\n\n.line.lane-2,\n.ring.lane-2,\n.changes.lane-2 {\n stroke: var(--nol-author-3);\n}\n\n.dot.lane-2,\n.fill.lane-2 {\n fill: var(--nol-author-3);\n}\n\n.l2 {\n background: color-mix(in srgb, var(--nol-author-3) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-3) 55%, transparent);\n}\n\n.line.lane-3,\n.ring.lane-3,\n.changes.lane-3 {\n stroke: var(--nol-author-4);\n}\n\n.dot.lane-3,\n.fill.lane-3 {\n fill: var(--nol-author-4);\n}\n\n.l3 {\n background: color-mix(in srgb, var(--nol-author-4) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-4) 55%, transparent);\n}\n\n.line.lane-4,\n.ring.lane-4,\n.changes.lane-4 {\n stroke: var(--nol-author-5);\n}\n\n.dot.lane-4,\n.fill.lane-4 {\n fill: var(--nol-author-5);\n}\n\n.l4 {\n background: color-mix(in srgb, var(--nol-author-5) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-5) 55%, transparent);\n}\n\n.line.lane-5,\n.ring.lane-5,\n.changes.lane-5 {\n stroke: var(--nol-author-6);\n}\n\n.dot.lane-5,\n.fill.lane-5 {\n fill: var(--nol-author-6);\n}\n\n.l5 {\n background: color-mix(in srgb, var(--nol-author-6) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-6) 55%, transparent);\n}\n\n.line.lane-6,\n.ring.lane-6,\n.changes.lane-6 {\n stroke: var(--nol-author-7);\n}\n\n.dot.lane-6,\n.fill.lane-6 {\n fill: var(--nol-author-7);\n}\n\n.l6 {\n background: color-mix(in srgb, var(--nol-author-7) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-7) 55%, transparent);\n}\n\n.line.lane-7,\n.ring.lane-7,\n.changes.lane-7 {\n stroke: var(--nol-author-8);\n}\n\n.dot.lane-7,\n.fill.lane-7 {\n fill: var(--nol-author-8);\n}\n\n.l7 {\n background: color-mix(in srgb, var(--nol-author-8) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-8) 55%, transparent);\n}\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@container history (width < 64rem) {\n .grow-row {\n grid-template-columns: 9rem var(--graph-width) minmax(0, 1fr) 8rem 5.5rem;\n }\n}\n\n@container history (width < 44rem) {\n .grow-row {\n grid-template-columns: 10rem var(--graph-width) minmax(0, 1fr);\n }\n\n .grow-row > :nth-child(n + 4) {\n display: none;\n }\n}\n\n.field.gone {\n display: none;\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: 0.5rem 0.75rem;\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n"] }]
|
|
563
|
-
}], ctorParameters: () => [], propDecorators: { viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], row: [{ type: i0.ViewChild, args: ["row", { isSignal: true }] }], actions: [{ type: i0.ViewChild, args: ["actions", { isSignal: true }] }], field: [{ type: i0.ViewChild, args: ["field", { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
578
|
+
], host: { "[style.--graph-width]": "graphWidth()", "[style.--git-history-scrollbar]": "scrollbarWidth()" }, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div #row class=\"toolbar\">\n <div #actions class=\"actions\" nolToolbar [nolToolbarLabel]=\"resources.toolbarLabel\">\n @for (toolbar of shownToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <span class=\"sep\" aria-hidden=\"true\"></span>\n }\n <div class=\"group\" role=\"group\" [attr.aria-label]=\"toolbar.title\">\n @for (action of toolbar.actions; track action) {\n @let label = labelOf(action);\n <button type=\"button\" nol-toolbar-button nolToolbarItem [attr.data-action]=\"action\" [label]=\"label\" [icon]=\"resources.historyActionIcons[action]\"\n [isShowingLabel]=\"isWide() && resources.labeledHistoryActions.includes(action)\" [isUnavailable]=\"!canRun(action)\"\n [nolTooltip]=\"label\" (click)=\"run(action)\"></button>\n }\n </div>\n }\n @if (hiddenToolbars().length > 0) {\n <button type=\"button\" nol-toolbar-button nolToolbarItem class=\"more\" [label]=\"resources.moreActionsLabel\" [icon]=\"resources.moreIcon\" [hasMenu]=\"true\"\n [nolMenuTriggerFor]=\"more\" [nolTooltip]=\"resources.moreActionsLabel\"></button>\n }\n </div>\n <div class=\"spacer\"></div>\n <label #field class=\"field\" [class.gone]=\"notRepository() !== null\">\n <span class=\"ms placeholder\">filter_list</span>\n <input #search type=\"search\" [placeholder]=\"resources.filterPlaceholder\" [value]=\"filter()\" (input)=\"filter.set(search.value)\" />\n </label>\n</div>\n<ng-template #more>\n <nol-menu>\n @for (toolbar of hiddenToolbars(); track toolbar.title; let first = $first) {\n @if (!first) {\n <nol-menu-separator />\n }\n @for (action of toolbar.actions; track action) {\n <button nol-menu-item [attr.data-action]=\"action\" [label]=\"labelOf(action)\" [icon]=\"resources.historyActionIcons[action]\" [disabled]=\"!canRun(action)\"\n (triggered)=\"run(action)\"></button>\n }\n }\n </nol-menu>\n</ng-template>\n@if (notRepository(); as look) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.noFolderIcon }}</span>\n <h2 class=\"heading\">{{ resources.notRepositoryHeading }}</h2>\n <p class=\"text\">{{ look.text() }}</p>\n </div>\n} @else {\n @if (actionFailure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n }\n @if (notLoaded(); as message) {\n <p class=\"note not-loaded\" role=\"status\">{{ message }}</p>\n }\n <div class=\"grow-row header\">\n <span class=\"cell\">{{ resources.columnRefs }}</span><span class=\"cell\">{{ resources.columnGraph }}</span><span class=\"cell\">{{ resources.columnMessage }}</span>\n <span class=\"cell\">{{ resources.columnAuthor }}</span><span class=\"cell\">{{ resources.columnDate }}</span>\n </div>\n @if (isLoading()) {\n <p class=\"note\">{{ resources.historyLoading }}</p>\n } @else if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n } @else if (rows().length === 0) {\n <p class=\"note\">{{ resources.historyEmpty }}</p>\n } @else {\n <cdk-virtual-scroll-viewport class=\"list\" [itemSize]=\"resources.graphRowPixels\" [minBufferPx]=\"resources.graphBufferPixels\"\n [maxBufferPx]=\"resources.graphBufferPixels * 2\" role=\"listbox\" tabindex=\"0\" [attr.aria-label]=\"resources.historyListLabel\" [attr.aria-activedescendant]=\"activeOption()\"\n (keydown)=\"move($event)\" (scrolledIndexChange)=\"scrolled($event)\">\n <div *cdkVirtualFor=\"let row of rows(); let index = index; let count = count; trackBy: trackRow\" class=\"grow-row\" role=\"option\"\n [id]=\"resources.formatHistoryOptionId(list, index)\" [attr.aria-posinset]=\"index + 1\" [attr.aria-setsize]=\"hasMore() ? -1 : count\"\n [class.sel]=\"row.id === selectedId()\" [class.dim]=\"!row.matches\" [attr.aria-selected]=\"row.id === selectedId()\" (click)=\"select(row)\">\n <div class=\"cell\">\n @let split = row.chipsWithin(chipLimit());\n @for (chip of split.shown; track chip.title + chip.icon) {\n <span class=\"chip\" [class]=\"chip.isTag ? 'chip ltag' : 'chip l' + row.graph.color\" [class.current]=\"chip.isCurrent\" [title]=\"chip.title\"\n [attr.draggable]=\"chip.branch !== null\" (dragstart)=\"dragBranch(chip, row)\" (dragover)=\"overBranch($event, chip)\" (drop)=\"dropBranch($event, chip, row)\"\n (dragend)=\"endDrag()\">\n <span class=\"ms chip-icon\">{{ chip.icon }}</span><span class=\"ellipsis\">{{ chip.name }}</span>\n </span>\n }\n @if (split.hidden.length > 0) {\n <span class=\"chip ltag more\" [title]=\"moreTitle(split.hidden)\">{{ resources.formatMoreChips(split.hidden.length) }}</span>\n }\n </div>\n <svg class=\"graph\" aria-hidden=\"true\" [attr.width]=\"graphPixels()\" [attr.height]=\"resources.graphRowPixels\"\n [attr.viewBox]=\"'0 0 ' + graphPixels() + ' ' + resources.graphRowPixels\">\n @for (line of row.graph.lines; track $index) {\n <path [attr.d]=\"path(line)\" [attr.class]=\"'line lane-' + line.color\" />\n }\n @if (row.isChanges) {\n <circle class=\"changes\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'changes lane-' + row.graph.color\" />\n } @else if (row.isHead) {\n <circle class=\"ring\" [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadRingPixels\"\n [attr.class]=\"'ring lane-' + row.graph.color\" />\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphHeadDotPixels\"\n [attr.class]=\"'fill lane-' + row.graph.color\" />\n } @else {\n <circle [attr.cx]=\"x(row.graph.lane)\" [attr.cy]=\"resources.graphRowPixels / 2\" [attr.r]=\"resources.graphDotPixels\"\n [attr.class]=\"'dot lane-' + row.graph.color\" />\n }\n </svg>\n <div class=\"cell\"><span class=\"message\" [class.italic]=\"row.isChanges\"><nol-git-reference-text class=\"line\" [text]=\"row.message\" [folder]=\"instance()\" [chipTabIndex]=\"-1\" /></span></div>\n <div class=\"cell\">\n @if (!row.isChanges) {\n @let picture = imageOf(row);\n @if (picture !== null) {\n <img class=\"av\" [src]=\"picture\" alt=\"\" />\n } @else {\n <span class=\"av\" [class]=\"'av av-' + row.avatar\">{{ row.initials }}</span>\n }\n <span class=\"ellipsis\">{{ row.author }}</span>\n }\n </div>\n <div class=\"cell muted\">{{ row.age }}</div>\n </div>\n </cdk-virtual-scroll-viewport>\n @if (dropped(); as shown) {\n <nol-git-branch-drop [drop]=\"shown.drop\" [prediction]=\"shown.prediction\" [checking]=\"shown.checking\" [busy]=\"writable() === null\" [request]=\"shown.request\"\n [left]=\"shown.left\" [top]=\"shown.top\" (requested)=\"requestDropped($event)\" (merged)=\"mergeDropped(shown.drop)\" (switchMerged)=\"switchMergeDropped(shown.drop)\" (rebased)=\"rebaseDropped(shown.drop)\" (closed)=\"dropped.set(null)\" />\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n container: history / inline-size;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n background: var(--nol-panel);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: 0.8125rem;\n line-height: 1.125rem;\n}\n\n.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.toolbar {\n display: flex;\n overflow: hidden;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.actions,\n.group {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sep {\n width: 1px;\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.spacer {\n flex: 1;\n}\n\n.field {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n flex: 0 1 17rem;\n min-width: 7rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: 0.25rem;\n background: var(--nol-input);\n}\n\n.field input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.field input::placeholder,\n.placeholder {\n color: var(--nol-placeholder);\n}\n\n.grow-row {\n display: grid;\n grid-template-columns: 13rem var(--graph-width) minmax(0, 1fr) 9.5rem 5.5rem;\n align-items: center;\n box-sizing: border-box;\n height: 1.75rem;\n padding: 0 max(0px, calc(var(--nol-content-padding-inline) - var(--git-history-scrollbar))) 0 0.5rem;\n white-space: nowrap;\n}\n\n.grow-row > .cell:last-child {\n justify-content: flex-end;\n}\n\n.header {\n flex: none;\n padding-right: var(--nol-content-padding-inline);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.list {\n flex: 1;\n min-height: 0;\n outline: none;\n}\n\n.list .grow-row:hover {\n background: var(--nol-hover);\n}\n\n.list .grow-row.sel,\n.list .grow-row.sel:hover {\n background: var(--nol-selected);\n}\n\n.grow-row.dim {\n opacity: 0.4;\n}\n\n.cell {\n display: flex;\n align-items: center;\n gap: 0.25rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.message,\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.italic {\n font-style: italic;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.chip {\n display: inline-flex;\n flex: 0 1 auto;\n align-items: center;\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 color: var(--nol-text-strong);\n font-size: 0.75rem;\n white-space: nowrap;\n}\n\n.chip-icon {\n width: 0.875rem;\n height: 0.875rem;\n font-size: 0.875rem;\n}\n\n.chip.current {\n font-weight: 500;\n}\n\n.chip.more {\n flex: none;\n}\n\n.ltag {\n box-shadow: inset 0 0 0 1px var(--nol-border);\n}\n\n.graph {\n display: block;\n overflow: visible;\n}\n\n.line {\n fill: none;\n stroke-width: 2;\n stroke-linecap: round;\n}\n\n.dot {\n stroke: var(--nol-panel);\n stroke-width: 2;\n}\n\n.ring,\n.changes {\n fill: var(--nol-panel);\n stroke-width: 2;\n}\n\n.changes {\n stroke-dasharray: 3 2;\n}\n\n.av {\n display: inline-flex;\n flex: none;\n align-items: center;\n justify-content: center;\n width: 1.125rem;\n height: 1.125rem;\n border-radius: 50%;\n font-size: 0.625rem;\n font-weight: 500;\n object-fit: cover;\n}\n\n.note {\n margin: 0;\n padding: 0.5rem 0.75rem;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.line.lane-0,\n.ring.lane-0,\n.changes.lane-0 {\n stroke: var(--nol-author-1);\n}\n\n.dot.lane-0,\n.fill.lane-0 {\n fill: var(--nol-author-1);\n}\n\n.l0 {\n background: color-mix(in srgb, var(--nol-author-1) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-1) 55%, transparent);\n}\n\n.line.lane-1,\n.ring.lane-1,\n.changes.lane-1 {\n stroke: var(--nol-author-2);\n}\n\n.dot.lane-1,\n.fill.lane-1 {\n fill: var(--nol-author-2);\n}\n\n.l1 {\n background: color-mix(in srgb, var(--nol-author-2) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-2) 55%, transparent);\n}\n\n.line.lane-2,\n.ring.lane-2,\n.changes.lane-2 {\n stroke: var(--nol-author-3);\n}\n\n.dot.lane-2,\n.fill.lane-2 {\n fill: var(--nol-author-3);\n}\n\n.l2 {\n background: color-mix(in srgb, var(--nol-author-3) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-3) 55%, transparent);\n}\n\n.line.lane-3,\n.ring.lane-3,\n.changes.lane-3 {\n stroke: var(--nol-author-4);\n}\n\n.dot.lane-3,\n.fill.lane-3 {\n fill: var(--nol-author-4);\n}\n\n.l3 {\n background: color-mix(in srgb, var(--nol-author-4) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-4) 55%, transparent);\n}\n\n.line.lane-4,\n.ring.lane-4,\n.changes.lane-4 {\n stroke: var(--nol-author-5);\n}\n\n.dot.lane-4,\n.fill.lane-4 {\n fill: var(--nol-author-5);\n}\n\n.l4 {\n background: color-mix(in srgb, var(--nol-author-5) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-5) 55%, transparent);\n}\n\n.line.lane-5,\n.ring.lane-5,\n.changes.lane-5 {\n stroke: var(--nol-author-6);\n}\n\n.dot.lane-5,\n.fill.lane-5 {\n fill: var(--nol-author-6);\n}\n\n.l5 {\n background: color-mix(in srgb, var(--nol-author-6) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-6) 55%, transparent);\n}\n\n.line.lane-6,\n.ring.lane-6,\n.changes.lane-6 {\n stroke: var(--nol-author-7);\n}\n\n.dot.lane-6,\n.fill.lane-6 {\n fill: var(--nol-author-7);\n}\n\n.l6 {\n background: color-mix(in srgb, var(--nol-author-7) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-7) 55%, transparent);\n}\n\n.line.lane-7,\n.ring.lane-7,\n.changes.lane-7 {\n stroke: var(--nol-author-8);\n}\n\n.dot.lane-7,\n.fill.lane-7 {\n fill: var(--nol-author-8);\n}\n\n.l7 {\n background: color-mix(in srgb, var(--nol-author-8) 18%, transparent);\n box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nol-author-8) 55%, transparent);\n}\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@container history (width < 64rem) {\n .grow-row {\n grid-template-columns: 9rem var(--graph-width) minmax(0, 1fr) 8rem 5.5rem;\n }\n}\n\n@container history (width < 44rem) {\n .grow-row {\n grid-template-columns: 10rem var(--graph-width) minmax(0, 1fr);\n }\n\n .grow-row > :nth-child(n + 4) {\n display: none;\n }\n}\n\n.field.gone {\n display: none;\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: 0.5rem 0.75rem;\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n"] }]
|
|
579
|
+
}], ctorParameters: () => [], propDecorators: { viewport: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], scroller: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], row: [{ type: i0.ViewChild, args: ["row", { isSignal: true }] }], actions: [{ type: i0.ViewChild, args: ["actions", { isSignal: true }] }], field: [{ type: i0.ViewChild, args: ["field", { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
564
580
|
//# sourceMappingURL=git-history.component.js.map
|