@noldova/git.window 0.0.18 → 0.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -10
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +3 -3
- package/src/app/components/git-accounts/git-accounts.component.js +3 -3
- package/src/app/components/git-agents/git-agents.component.js +3 -3
- package/src/app/components/git-branch-card/git-branch-card.component.js +3 -3
- package/src/app/components/git-branch-drop/git-branch-drop.component.js +3 -3
- package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +3 -3
- package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +3 -3
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +3 -3
- package/src/app/components/git-command-log/git-command-log.component.js +3 -3
- package/src/app/components/git-commit-card/git-commit-card.component.js +3 -3
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +3 -3
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -3
- package/src/app/components/git-commit-document/git-commit-document.component.js +3 -3
- package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +3 -3
- package/src/app/components/git-conflicts/git-conflicts.component.js +3 -3
- package/src/app/components/git-dashboard/git-dashboard.component.js +3 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
- package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +3 -3
- package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +3 -3
- package/src/app/components/git-history/git-history.component.js +3 -3
- package/src/app/components/git-host-row/git-host-row.component.js +3 -3
- package/src/app/components/git-person-avatar/git-person-avatar.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +3 -3
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +3 -3
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +3 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +3 -3
- package/src/app/components/git-rebase/git-rebase.component.js +3 -3
- package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +3 -3
- package/src/app/components/git-reference-text/git-reference-text.component.js +3 -3
- package/src/app/components/git-repository/git-repository.component.js +3 -3
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +3 -3
- package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +3 -3
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -3
- package/src/app/components/git-view/git-view.component.js +3 -3
- package/src/app/components/git-workspace/git-visible.directive.js +3 -3
- package/src/app/components/git-workspace/git-workspace.component.js +3 -3
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +3 -3
- package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +3 -3
- package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
- package/src/app/services/git-code-colors.js +3 -3
- package/src/app/services/git-view-state.service.js +3 -3
|
@@ -170,10 +170,10 @@ export class GitFileGroupComponent {
|
|
|
170
170
|
next.add(key);
|
|
171
171
|
return next;
|
|
172
172
|
}
|
|
173
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
174
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitFileGroupComponent, isStandalone: true, selector: "nol-git-file-group", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { openConflict: "openConflict" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggle(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
173
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
174
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitFileGroupComponent, isStandalone: true, selector: "nol-git-file-group", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { openConflict: "openConflict" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggle(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
175
175
|
}
|
|
176
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
176
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileGroupComponent, decorators: [{
|
|
177
177
|
type: Component,
|
|
178
178
|
args: [{ selector: "nol-git-file-group", imports: [FileBadgeComponent, GitFileLayoutButtonComponent, IconButtonComponent, NgTemplateOutlet, SectionHeaderActionDirective, SectionHeaderComponent,
|
|
179
179
|
SectionHeaderDetailDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggle(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n"] }]
|
|
@@ -13,10 +13,10 @@ export class GitFileLayoutButtonComponent {
|
|
|
13
13
|
resources = Resources;
|
|
14
14
|
layout = input.required(/* @ts-ignore */
|
|
15
15
|
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileLayoutButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitFileLayoutButtonComponent, isStandalone: true, selector: "nol-git-file-layout-button", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"layout\" [icon]=\"resources.fileLayoutIcons[layout()()]\" [label]=\"resources.fileLayoutLabel\"\n [nolTooltip]=\"resources.fileLayoutLabel\" [nolMenuTriggerFor]=\"layouts\"></button>\n<ng-template #layouts>\n <nol-menu>\n @for (choice of resources.fileLayouts; track choice) {\n <button nol-menu-item [label]=\"resources.fileLayoutLabels[choice]\" [icon]=\"resources.fileLayoutIcons[choice]\" [checked]=\"layout()() === choice\"\n (triggered)=\"layout().set(choice)\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileLayoutButtonComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{ selector: "nol-git-file-layout-button", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"layout\" [icon]=\"resources.fileLayoutIcons[layout()()]\" [label]=\"resources.fileLayoutLabel\"\n [nolTooltip]=\"resources.fileLayoutLabel\" [nolMenuTriggerFor]=\"layouts\"></button>\n<ng-template #layouts>\n <nol-menu>\n @for (choice of resources.fileLayouts; track choice) {\n <button nol-menu-item [label]=\"resources.fileLayoutLabels[choice]\" [icon]=\"resources.fileLayoutIcons[choice]\" [checked]=\"layout()() === choice\"\n (triggered)=\"layout().set(choice)\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
|
|
22
22
|
}], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: true }] }] } });
|
|
@@ -20,10 +20,10 @@ export class GitForcePushDialogComponent {
|
|
|
20
20
|
offer = input.required(/* @ts-ignore */
|
|
21
21
|
...(ngDevMode ? [{ debugName: "offer" }] : /* istanbul ignore next */ []));
|
|
22
22
|
answered = output();
|
|
23
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
24
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.
|
|
23
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitForcePushDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
24
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", type: GitForcePushDialogComponent, isStandalone: true, selector: "nol-git-force-push-dialog", inputs: { offer: { classPropertyName: "offer", publicName: "offer", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.forcePushTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"force\" (click)=\"answered.emit(true)\">{{ resources.forcePushLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
|
|
25
25
|
}
|
|
26
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitForcePushDialogComponent, decorators: [{
|
|
27
27
|
type: Component,
|
|
28
28
|
args: [{ selector: "nol-git-force-push-dialog", imports: [ButtonComponent, DialogComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.forcePushTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"force\" (click)=\"answered.emit(true)\">{{ resources.forcePushLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n"] }]
|
|
29
29
|
}], propDecorators: { offer: [{ type: i0.Input, args: [{ isSignal: true, alias: "offer", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
@@ -611,10 +611,10 @@ export class GitHistoryComponent {
|
|
|
611
611
|
return Resources.undoCommitNoCommitTitle;
|
|
612
612
|
return !Object.isNull(status.upstream) && !status.upstream.gone && status.upstream.ahead === 0 ? Resources.undoCommitPushedTitle : null;
|
|
613
613
|
}
|
|
614
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
615
|
-
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]=\"tooltipOf(action)\" (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 <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"look.initializing()\" [attr.aria-busy]=\"look.initializing()\"\n (click)=\"initAsync(look)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(look); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"look.checking()\" [attr.aria-busy]=\"look.checking()\"\n (click)=\"openFound(look, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n </div>\n} @else {\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.empty .actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\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: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { 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", "nolTooltipAnchor"] }] });
|
|
614
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitHistoryComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
615
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", 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]=\"tooltipOf(action)\" (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 <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"look.initializing()\" [attr.aria-busy]=\"look.initializing()\"\n (click)=\"initAsync(look)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(look); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"look.checking()\" [attr.aria-busy]=\"look.checking()\"\n (click)=\"openFound(look, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n </div>\n} @else {\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.empty .actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\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: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { 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", "nolTooltipAnchor"] }] });
|
|
616
616
|
}
|
|
617
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
617
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitHistoryComponent, decorators: [{
|
|
618
618
|
type: Component,
|
|
619
619
|
args: [{ selector: "nol-git-history", imports: [
|
|
620
620
|
ButtonComponent, GitBranchDropComponent, GitReferenceTextComponent, MenuComponent, MenuItemComponent, MenuSeparatorComponent, MenuTriggerDirective, ScrollingModule, ToolbarButtonComponent, ToolbarDirective,
|
|
@@ -51,10 +51,10 @@ export class GitHostRowComponent {
|
|
|
51
51
|
return Resources.otherTransport;
|
|
52
52
|
}
|
|
53
53
|
}
|
|
54
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
55
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
54
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitHostRowComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
55
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitHostRowComponent, isStandalone: true, selector: "nol-git-host-row", inputs: { remote: { classPropertyName: "remote", publicName: "remote", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (row(); as row) {\n <ng-container *ngComponentOutlet=\"row.component; inputs: inputs(); injector: row.injector\" />\n} @else {\n <div class=\"plain\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.plainRemoteIcon }}</span>\n <span class=\"plain-text\">{{ plainLine() }}</span>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.plain {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.plain-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n"], dependencies: [{ kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
56
56
|
}
|
|
57
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
57
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitHostRowComponent, decorators: [{
|
|
58
58
|
type: Component,
|
|
59
59
|
args: [{ selector: "nol-git-host-row", imports: [NgComponentOutlet], 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 (row(); as row) {\n <ng-container *ngComponentOutlet=\"row.component; inputs: inputs(); injector: row.injector\" />\n} @else {\n <div class=\"plain\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.plainRemoteIcon }}</span>\n <span class=\"plain-text\">{{ plainLine() }}</span>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.plain {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.plain-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n"] }]
|
|
60
60
|
}], propDecorators: { remote: [{ type: i0.Input, args: [{ isSignal: true, alias: "remote", required: true }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: true }] }], folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }] } });
|
|
@@ -34,10 +34,10 @@ export class GitPersonAvatarComponent {
|
|
|
34
34
|
observer.observe(inject(ElementRef).nativeElement);
|
|
35
35
|
inject(DestroyRef).onDestroy(() => observer.disconnect());
|
|
36
36
|
}
|
|
37
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPersonAvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", type: GitPersonAvatarComponent, isStandalone: true, selector: "nol-git-person-avatar", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, login: { classPropertyName: "login", publicName: "login", isSignal: true, isRequired: true, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }] });
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPersonAvatarComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: "nol-git-person-avatar", imports: [AvatarComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-avatar [name]=\"login()\" [image]=\"shown()\" [size]=\"size()\" [decorative]=\"true\" />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: inline-flex;\n flex: none;\n}\n"] }]
|
|
43
43
|
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], login: [{ type: i0.Input, args: [{ isSignal: true, alias: "login", required: true }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
@@ -108,10 +108,10 @@ export class GitPullRequestCommitsComponent {
|
|
|
108
108
|
done();
|
|
109
109
|
}
|
|
110
110
|
}
|
|
111
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
112
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
111
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestCommitsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
112
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestCommitsComponent, isStandalone: true, selector: "nol-git-pull-request-commits", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
113
113
|
}
|
|
114
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestCommitsComponent, decorators: [{
|
|
115
115
|
type: Component,
|
|
116
116
|
args: [{ selector: "nol-git-pull-request-commits", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestCommitsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestCommitsLabel\">\n @for (commit of list.commits; track $index) {\n <button type=\"button\" class=\"row\" (click)=\"open(commit)\">\n <span class=\"sha\">{{ shortOf(commit) }}</span>\n <span class=\"subject\">{{ commit.subject }}</span>\n <span class=\"byline\">{{ commit.author }} \u00B7 {{ ageOf(commit) }}</span>\n </button>\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoCommits }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestCommitsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.row:hover {\n background-color: var(--nol-hover);\n}\n\n.sha {\n flex: none;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n}\n\n.subject {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.byline {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
117
117
|
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
|
package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js
CHANGED
|
@@ -113,10 +113,10 @@ export class GitPullRequestConflictsComponent {
|
|
|
113
113
|
return null;
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
117
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
116
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestConflictsComponent, isStandalone: true, selector: "nol-git-pull-request-conflicts", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, changes: { classPropertyName: "changes", publicName: "changes", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { counted: "counted" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
118
118
|
}
|
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestConflictsComponent, decorators: [{
|
|
120
120
|
type: Component,
|
|
121
121
|
args: [{ selector: "nol-git-pull-request-conflicts", imports: [ButtonComponent, SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestConflictsReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestConflictsLabel\">\n @for (path of list.paths; track $index) {\n @if (folder(); as folder) {\n <button type=\"button\" class=\"row\" [title]=\"path\" [attr.aria-label]=\"resources.formatOpenPullRequestConflict(path)\" (click)=\"open(folder)\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </button>\n } @else {\n <div class=\"row\" [title]=\"path\">\n <span class=\"material-symbols-rounded icon\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"path\">{{ path }}</span>\n </div>\n }\n } @empty {\n <p class=\"empty\">{{ resources.pullRequestNoConflicts }}</p>\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.pullRequestConflictsCapped }}</p>\n }\n </section>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background-color: var(--nol-hover);\n}\n\n.icon {\n flex: none;\n color: var(--nol-status-failed);\n font-size: var(--nol-icon);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|
|
122
122
|
}], ctorParameters: () => [], propDecorators: { host: [{ type: i0.Input, args: [{ isSignal: true, alias: "host", required: true }] }], reference: [{ type: i0.Input, args: [{ isSignal: true, alias: "reference", required: true }] }], url: [{ type: i0.Input, args: [{ isSignal: true, alias: "url", required: true }] }], changes: [{ type: i0.Input, args: [{ isSignal: true, alias: "changes", required: true }] }], counted: [{ type: i0.Output, args: ["counted"] }] } });
|
|
@@ -218,10 +218,10 @@ export class GitPullRequestFilesComponent {
|
|
|
218
218
|
return null;
|
|
219
219
|
}
|
|
220
220
|
}
|
|
221
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
222
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
221
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
222
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitPullRequestFilesComponent, isStandalone: true, selector: "nol-git-pull-request-files", inputs: { host: { classPropertyName: "host", publicName: "host", isSignal: true, isRequired: true, transformFunction: null }, reference: { classPropertyName: "reference", publicName: "reference", isSignal: true, isRequired: true, transformFunction: null }, url: { classPropertyName: "url", publicName: "url", isSignal: true, isRequired: true, transformFunction: null }, answer: { classPropertyName: "answer", publicName: "answer", isSignal: true, isRequired: false, transformFunction: null }, reveal: { classPropertyName: "reveal", publicName: "reveal", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { counted: "counted", unrevealed: "unrevealed" }, viewQueries: [{ propertyName: "diffFiles", first: true, predicate: GitDiffFilesComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <nol-section-header [label]=\"resources.formatFilesChanged(list.files.length)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n </nol-section-header>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--nol-space-1)) 0;\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitDiffFilesComponent, selector: "nol-git-diff-files", inputs: ["folder", "scope", "layout"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
223
223
|
}
|
|
224
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
224
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitPullRequestFilesComponent, decorators: [{
|
|
225
225
|
type: Component,
|
|
226
226
|
args: [{ selector: "nol-git-pull-request-files", imports: [ButtonComponent, FileBadgeComponent, GitDiffFilesComponent, GitFileLayoutButtonComponent, SectionHeaderActionDirective, SectionHeaderComponent,
|
|
227
227
|
SpinnerComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as failure) {\n <div class=\"notice\" role=\"alert\">\n <span class=\"material-symbols-rounded notice-icon\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ failure }}</span>\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"retry()\">{{ resources.tryAgainLabel }}</button>\n </div>\n} @else if (isReading()) {\n <div class=\"notice\" role=\"status\">\n <nol-spinner />\n <span class=\"notice-text\">{{ resources.formatPullRequestFilesReading(host().name) }}</span>\n </div>\n} @else if (list(); as list) {\n @let local = folder();\n @if (local !== null && scope(); as scope) {\n <section class=\"local\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n <nol-git-diff-files [folder]=\"local\" [scope]=\"scope\" [layout]=\"layout\" />\n </section>\n } @else {\n <section class=\"list\" [attr.aria-label]=\"resources.pullRequestFilesLabel\">\n @if (list.files.length > 0) {\n @if (folder(); as folder) {\n @if (list.commonCommit !== null) {\n <div class=\"hint\">\n <span class=\"hint-text\">{{ fetchFailure() ?? resources.pullRequestFilesFetchHint }}</span>\n <button type=\"button\" nol-button class=\"fetch\" [variant]=\"secondary\" [disabled]=\"isFetching()\" (click)=\"fetch(folder)\">{{ resources.fetchOfferLabel }}</button>\n </div>\n }\n } @else {\n <p class=\"hint\"><span class=\"hint-text\">{{ resources.pullRequestFilesOpenHint }}</span></p>\n }\n }\n @if (list.files.length > 0) {\n <nol-section-header [label]=\"resources.formatFilesChanged(list.files.length)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n </nol-section-header>\n } @else {\n <p class=\"empty\">{{ resources.pullRequestNoFiles }}</p>\n }\n @for (entry of rows(); track $index) {\n @if (entry.item; as file) {\n <div class=\"row\" [title]=\"file.path\" [style.padding-inline-start.rem]=\"insetOf(entry.depth)\">\n <nol-file-badge [fileName]=\"nameOf(file.path)\" />\n <span class=\"path\">{{ entry.name }}@if (file.previousPath; as previous) {<span class=\"from\">{{ resources.formatPullRequestFileMovedFrom(previous) }}</span>}</span>\n <span class=\"letter\">{{ letterOf(file) }}</span>\n </div>\n } @else {\n <button type=\"button\" class=\"row folder\" [title]=\"entry.folder\" [attr.aria-expanded]=\"!closed().has(entry.folder)\"\n [style.padding-inline-start.rem]=\"insetOf(entry.depth)\" (click)=\"toggle(entry.folder)\">\n <span class=\"ms\">{{ closed().has(entry.folder) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ entry.name }}</span>\n </button>\n }\n }\n @if (list.hasMore) {\n <p class=\"cap\">{{ resources.formatPullRequestFilesCapped(list.files.length) }}</p>\n }\n </section>\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n min-width: 0;\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n\n.list {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.local {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.hint {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n margin: 0 0 var(--nol-space-2);\n padding: var(--nol-space-1) var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.hint-text {\n flex: 1;\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--nol-space-1)) 0;\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.row {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n min-height: var(--nol-button-height);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n color: var(--nol-text-muted);\n font-family: var(--nol-font-mono);\n text-align: center;\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.from {\n color: var(--nol-text-muted);\n}\n\n.empty,\n.cap {\n margin: 0;\n padding: var(--nol-space-1);\n color: var(--nol-text-muted);\n}\n\n.cap {\n font-size: var(--nol-text-label);\n}\n"] }]
|