@noldova/git.window 0.0.7 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +9 -9
- package/src/api/index.d.ts +107 -13
- package/src/api/index.js +1 -0
- package/src/api/index.js.map +1 -1
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +7 -3
- package/src/app/components/git-account-dialog/git-account-dialog.component.js.map +1 -1
- package/src/app/components/git-accounts/git-accounts.component.js +8 -4
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
- package/src/app/components/git-command-log/git-command-log.component.js +40 -7
- package/src/app/components/git-command-log/git-command-log.component.js.map +1 -1
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +6 -5
- package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -1
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -5
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js.map +1 -1
- package/src/app/components/git-conflicts/git-conflicts.component.js +2 -2
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-dashboard/git-dashboard.component.js +30 -0
- package/src/app/components/git-dashboard/git-dashboard.component.js.map +1 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js +6 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
- package/src/app/components/git-history/git-history.component.js +99 -15
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js.map +1 -1
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +21 -11
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +7 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
- package/src/app/components/git-rebase/git-rebase.component.js +2 -2
- package/src/app/components/git-rebase/git-rebase.component.js.map +1 -1
- package/src/app/components/git-repository/git-repository.component.js +16 -4
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +62 -0
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js.map +1 -0
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -1
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +37 -7
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-workspace.component.js +65 -15
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +2 -2
- package/src/app/components/git-workspace-across/git-workspace-across.component.js.map +1 -1
- package/src/app/components/git-workspaces/git-workspaces.component.js +2 -2
- package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
- package/src/app/exceptions/git-window-inactive.exception.js +16 -0
- package/src/app/exceptions/git-window-inactive.exception.js.map +1 -0
- package/src/app/models/git-branch-menu-item.js.map +1 -1
- package/src/app/models/git-detail-page.js +3 -1
- package/src/app/models/git-detail-page.js.map +1 -1
- package/src/app/models/git-folder-look.js +20 -0
- package/src/app/models/git-folder-look.js.map +1 -0
- package/src/app/models/git-host-card.js +5 -1
- package/src/app/models/git-host-card.js.map +1 -1
- package/src/app/models/git-host-failure.js +29 -0
- package/src/app/models/git-host-failure.js.map +1 -0
- package/src/app/models/git-pull-request-list.js +8 -1
- package/src/app/models/git-pull-request-list.js.map +1 -1
- package/src/app/models/git-pull-request-row.js +3 -1
- package/src/app/models/git-pull-request-row.js.map +1 -1
- package/src/app/models/git-repository-summary.js +3 -1
- package/src/app/models/git-repository-summary.js.map +1 -1
- package/src/app/models/git-status-bar-items.js +3 -1
- package/src/app/models/git-status-bar-items.js.map +1 -1
- package/src/app/models/git-workspace-overview.js +8 -0
- package/src/app/models/git-workspace-overview.js.map +1 -1
- package/src/app/models/git-workspace-row.js +5 -5
- package/src/app/models/git-workspace-row.js.map +1 -1
- package/src/app/services/commit-labels.js +2 -4
- package/src/app/services/commit-labels.js.map +1 -1
- package/src/app/services/git-commit-details.js +1 -1
- package/src/app/services/git-commit-details.js.map +1 -1
- package/src/app/services/git-detail-view.js +21 -7
- package/src/app/services/git-detail-view.js.map +1 -1
- package/src/app/services/git-folder-looks.js +44 -0
- package/src/app/services/git-folder-looks.js.map +1 -0
- package/src/app/services/git-history-rows.js +5 -4
- package/src/app/services/git-history-rows.js.map +1 -1
- package/src/app/services/git-host-accounts.js +2 -1
- package/src/app/services/git-host-accounts.js.map +1 -1
- package/src/app/services/git-repository-scans.js +41 -0
- package/src/app/services/git-repository-scans.js.map +1 -0
- package/src/app/services/git-repository-summaries.js +2 -1
- package/src/app/services/git-repository-summaries.js.map +1 -1
- package/src/app/services/git-runtime-client.js +13 -1
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/app/services/git-status-bar.js +13 -7
- package/src/app/services/git-status-bar.js.map +1 -1
- package/src/app/services/git-view-state.service.js +3 -0
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-window-context.js +25 -0
- package/src/app/services/git-window-context.js.map +1 -0
- package/src/app/services/git-window-part.js +12 -5
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-workspace-across-views.js +4 -1
- package/src/app/services/git-workspace-across-views.js.map +1 -1
- package/src/app/services/git-workspace-pages.js +0 -2
- package/src/app/services/git-workspace-pages.js.map +1 -1
- package/src/resources.js +66 -17
- package/src/resources.js.map +1 -1
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { Component, computed, DestroyRef, ElementRef, ErrorHandler, inject, signal } from "@angular/core";
|
|
8
|
+
import { Component, computed, DestroyRef, effect, ElementRef, ErrorHandler, inject, signal, untracked } from "@angular/core";
|
|
9
9
|
import { WindowException, WindowPartTokens } from "@noldova/desktop.window";
|
|
10
10
|
import { ButtonComponent, ButtonVariant, DialogService, SpinnerComponent } from "@noldova/ui.components.angular";
|
|
11
11
|
import { GitFileGroupKind } from "../../enums/git-file-group-kind.js";
|
|
@@ -14,8 +14,11 @@ import { GitEmptyState } from "../../models/git-empty-state.js";
|
|
|
14
14
|
import { GitOperationName } from "../../models/git-operation-name.js";
|
|
15
15
|
import { Resources } from "../../../resources.js";
|
|
16
16
|
import { FocusKeeper } from "../../services/focus-keeper.js";
|
|
17
|
+
import { GitFolderLooks } from "../../services/git-folder-looks.js";
|
|
17
18
|
import { GitPendingSwitch } from "../../services/git-pending-switch.js";
|
|
19
|
+
import { GitRepositoryScans } from "../../services/git-repository-scans.js";
|
|
18
20
|
import { GitResolving } from "../../services/git-resolving.js";
|
|
21
|
+
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
19
22
|
import { GitViewOptions } from "../../services/git-view-options.js";
|
|
20
23
|
import { GitViewStateService } from "../../services/git-view-state.service.js";
|
|
21
24
|
import { GitBranchCardComponent } from "../git-branch-card/git-branch-card.component.js";
|
|
@@ -32,11 +35,12 @@ export class GitViewComponent {
|
|
|
32
35
|
phases = GitViewPhase;
|
|
33
36
|
errors = inject(ErrorHandler);
|
|
34
37
|
secondary = ButtonVariant.Secondary;
|
|
38
|
+
primary = ButtonVariant.Primary;
|
|
35
39
|
state = inject(GitViewStateService);
|
|
36
40
|
showsBranch = GitViewOptions.showsBranch;
|
|
37
41
|
switching = computed(() => GitPendingSwitch.branchOf(this.state.folder()), /* @ts-ignore */
|
|
38
42
|
...(ngDevMode ? [{ debugName: "switching" }] : /* istanbul ignore next */ []));
|
|
39
|
-
empty = computed(() => this.emptyOf(this.state.phase()), /* @ts-ignore */
|
|
43
|
+
empty = computed(() => this.emptyOf(this.state.phase(), this.look()?.text() ?? ""), /* @ts-ignore */
|
|
40
44
|
...(ngDevMode ? [{ debugName: "empty" }] : /* istanbul ignore next */ []));
|
|
41
45
|
linkFailed = signal(false, /* @ts-ignore */
|
|
42
46
|
...(ngDevMode ? [{ debugName: "linkFailed" }] : /* istanbul ignore next */ []));
|
|
@@ -44,8 +48,19 @@ export class GitViewComponent {
|
|
|
44
48
|
...(ngDevMode ? [{ debugName: "firstConflict" }] : /* istanbul ignore next */ []));
|
|
45
49
|
offersGit = computed(() => this.state.phase() === GitViewPhase.GitMissing || this.state.phase() === GitViewPhase.GitTooOld, /* @ts-ignore */
|
|
46
50
|
...(ngDevMode ? [{ debugName: "offersGit" }] : /* istanbul ignore next */ []));
|
|
51
|
+
look = signal(null, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "look" }] : /* istanbul ignore next */ []));
|
|
53
|
+
lookFolder = computed(() => this.state.phase() === GitViewPhase.NotRepository ? this.state.readFolder() : null, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "lookFolder" }] : /* istanbul ignore next */ []));
|
|
55
|
+
offer = (scan) => GitRepositoryScans.offerToDashboard(this.dialogs, this.context, this.state.readFolder(), scan);
|
|
47
56
|
constructor() {
|
|
48
|
-
inject(DestroyRef)
|
|
57
|
+
const destroyed = inject(DestroyRef);
|
|
58
|
+
destroyed.onDestroy(FocusKeeper.keep(inject(ElementRef).nativeElement));
|
|
59
|
+
effect(() => {
|
|
60
|
+
const folder = this.lookFolder();
|
|
61
|
+
untracked(() => this.lookUnder(folder));
|
|
62
|
+
});
|
|
63
|
+
destroyed.onDestroy(() => this.lookUnder(null));
|
|
49
64
|
}
|
|
50
65
|
async getGitAsync() {
|
|
51
66
|
this.linkFailed.set(false);
|
|
@@ -93,12 +108,27 @@ export class GitViewComponent {
|
|
|
93
108
|
abortOperation() {
|
|
94
109
|
void this.state.abortOperationAsync().catch((error) => this.errors.handleError(error));
|
|
95
110
|
}
|
|
96
|
-
|
|
111
|
+
continueOperation() {
|
|
112
|
+
void this.state.continueOperationAsync().catch((error) => this.errors.handleError(error));
|
|
113
|
+
}
|
|
114
|
+
skipOperation() {
|
|
115
|
+
void this.state.skipOperationAsync().catch((error) => this.errors.handleError(error));
|
|
116
|
+
}
|
|
117
|
+
lookUnder(folder) {
|
|
118
|
+
const look = this.look();
|
|
119
|
+
if (!Object.isNull(look))
|
|
120
|
+
GitFolderLooks.leave(look, this.offer);
|
|
121
|
+
this.look.set(Object.isNull(folder) ? null : GitFolderLooks.join(folder, new GitRuntimeClient(this.context), this.offer, error => {
|
|
122
|
+
if (!GitRuntimeClient.isFailure(error))
|
|
123
|
+
this.errors.handleError(error);
|
|
124
|
+
}));
|
|
125
|
+
}
|
|
126
|
+
emptyOf(phase, lookText) {
|
|
97
127
|
switch (phase) {
|
|
98
128
|
case GitViewPhase.NoFolder:
|
|
99
129
|
return new GitEmptyState(Resources.noFolderIcon, Resources.noFolderHeading, Resources.noFolderText);
|
|
100
130
|
case GitViewPhase.NotRepository:
|
|
101
|
-
return new GitEmptyState(Resources.noFolderIcon, Resources.notRepositoryHeading,
|
|
131
|
+
return new GitEmptyState(Resources.noFolderIcon, Resources.notRepositoryHeading, lookText);
|
|
102
132
|
case GitViewPhase.FolderUnreadable:
|
|
103
133
|
return new GitEmptyState(Resources.folderUnreadableIcon, Resources.folderUnreadableHeading, Resources.formatFolderUnreadableText(this.state.readFolder()));
|
|
104
134
|
case GitViewPhase.GitMissing:
|
|
@@ -114,11 +144,11 @@ export class GitViewComponent {
|
|
|
114
144
|
}
|
|
115
145
|
}
|
|
116
146
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
117
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\"><span class=\"strong\">{{ operationOf(operation, status.branch) }}</span><span class=\"muted\">{{ resources.formatConflictText(state.conflicts()) }}</span></span>\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
147
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
118
148
|
}
|
|
119
149
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, decorators: [{
|
|
120
150
|
type: Component,
|
|
121
151
|
args: [{ selector: "nol-git-view", imports: [ButtonComponent, GitBranchCardComponent, GitCommitCardComponent, GitFileGroupComponent, GitHostRowComponent, GitUndoMenuComponent,
|
|
122
|
-
SpinnerComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\"
|
|
152
|
+
SpinnerComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n @if (state.forcePushOffer(); as offer) {\n <button nol-button type=\"button\" class=\"banner-action force-push\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"forcePush(offer)\">{{ resources.forcePushOfferLabel }}</button>\n }\n @if (state.fetchOffered()) {\n <button nol-button type=\"button\" class=\"banner-action fetch\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"fetch()\">{{ resources.fetchOfferLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></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 position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\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}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n gap: var(--nol-space-2);\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 font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"] }]
|
|
123
153
|
}], ctorParameters: () => [] });
|
|
124
154
|
//# sourceMappingURL=git-view.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAe,MAAM,EAAuB,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"git-view.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-view/git-view.component.html"],"names":[],"mappings":"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"}
|
|
@@ -8,7 +8,8 @@
|
|
|
8
8
|
import { Component, computed, DestroyRef, effect, ElementRef, ErrorHandler, inject, Injector, input, signal, untracked, viewChild } from "@angular/core";
|
|
9
9
|
import { FormsModule } from "@angular/forms";
|
|
10
10
|
import "@noldova/context.core";
|
|
11
|
-
import { LinkPlace, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
|
+
import { LinkPlace, TimeFormatService, WindowPartTokens } from "@noldova/desktop.window";
|
|
12
|
+
import { ScanEnd } from "@noldova/git.protocol";
|
|
12
13
|
import { ButtonComponent, CheckboxComponent, DialogService, IconButtonComponent, TextFieldComponent, ToolbarButtonComponent } from "@noldova/ui.components.angular";
|
|
13
14
|
import { Resources } from "../../../resources.js";
|
|
14
15
|
import { GitAgentState } from "../../enums/git-agent-state.js";
|
|
@@ -23,6 +24,7 @@ import { GitWorkspaceSide } from "../../models/git-workspace-side.js";
|
|
|
23
24
|
import { GitAgents } from "../../services/git-agents.js";
|
|
24
25
|
import { GitPullRequests } from "../../services/git-pull-requests.js";
|
|
25
26
|
import { GitRecentRepositories } from "../../services/git-recent-repositories.js";
|
|
27
|
+
import { GitRepositoryScans } from "../../services/git-repository-scans.js";
|
|
26
28
|
import { GitRepositorySummaries } from "../../services/git-repository-summaries.js";
|
|
27
29
|
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
28
30
|
import { GitWorkspaceAcrossViews } from "../../services/git-workspace-across-views.js";
|
|
@@ -50,6 +52,8 @@ export class GitWorkspaceComponent {
|
|
|
50
52
|
...(ngDevMode ? [{ debugName: "isFetching" }] : /* istanbul ignore next */ []));
|
|
51
53
|
isWriting = signal(false, /* @ts-ignore */
|
|
52
54
|
...(ngDevMode ? [{ debugName: "isWriting" }] : /* istanbul ignore next */ []));
|
|
55
|
+
isScanning = signal(false, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "isScanning" }] : /* istanbul ignore next */ []));
|
|
53
57
|
result = signal([], /* @ts-ignore */
|
|
54
58
|
...(ngDevMode ? [{ debugName: "result" }] : /* istanbul ignore next */ []));
|
|
55
59
|
renaming = signal(null, /* @ts-ignore */
|
|
@@ -74,7 +78,12 @@ export class GitWorkspaceComponent {
|
|
|
74
78
|
...(ngDevMode ? [{ debugName: "chosenRows" }] : /* istanbul ignore next */ []));
|
|
75
79
|
chosenBehind = computed(() => GitWorkspaceOverview.behindOf(this.chosenRows()), /* @ts-ignore */
|
|
76
80
|
...(ngDevMode ? [{ debugName: "chosenBehind" }] : /* istanbul ignore next */ []));
|
|
77
|
-
|
|
81
|
+
chosenView = signal(null, /* @ts-ignore */
|
|
82
|
+
...(ngDevMode ? [{ debugName: "chosenView" }] : /* istanbul ignore next */ []));
|
|
83
|
+
view = computed(() => {
|
|
84
|
+
const view = this.chosenView();
|
|
85
|
+
return this.views().some(t => t.view === view) ? view : null;
|
|
86
|
+
}, /* @ts-ignore */
|
|
78
87
|
...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
79
88
|
rows = computed(() => {
|
|
80
89
|
const filter = this.filter().trim().toLowerCase();
|
|
@@ -82,7 +91,8 @@ export class GitWorkspaceComponent {
|
|
|
82
91
|
return this.allRows().filter(t => (filter.length === 0 || t.folder.toLowerCase().includes(filter)) && (Object.isNull(view) || t.views().has(view)));
|
|
83
92
|
}, /* @ts-ignore */
|
|
84
93
|
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
85
|
-
views = computed(() => Object.values(GitWorkspaceView).
|
|
94
|
+
views = computed(() => Object.values(GitWorkspaceView).filter(view => view !== GitWorkspaceView.AgentsAtWork || GitAgents.all().length > 0)
|
|
95
|
+
.map(view => new GitWorkspaceViewCount(view, this.allRows().filter(t => t.views().has(view)).length)), /* @ts-ignore */
|
|
86
96
|
...(ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []));
|
|
87
97
|
hosts = computed(() => GitWorkspaceHost.listOf(this.allRows(), t => GitPullRequests.of(t)), /* @ts-ignore */
|
|
88
98
|
...(ngDevMode ? [{ debugName: "hosts" }] : /* istanbul ignore next */ []));
|
|
@@ -95,7 +105,9 @@ export class GitWorkspaceComponent {
|
|
|
95
105
|
summaries = new GitRepositorySummaries(this.context);
|
|
96
106
|
pullRequests = new GitWorkspacePullRequests(this.errors);
|
|
97
107
|
dialogs = inject(DialogService);
|
|
98
|
-
|
|
108
|
+
dates = inject(TimeFormatService);
|
|
109
|
+
client = new GitRuntimeClient(this.context);
|
|
110
|
+
bulk = new GitWorkspaceBulk(this.client, this.errors);
|
|
99
111
|
watched = new Set();
|
|
100
112
|
made = new Map();
|
|
101
113
|
focused = signal(0, /* @ts-ignore */
|
|
@@ -116,6 +128,10 @@ export class GitWorkspaceComponent {
|
|
|
116
128
|
field?.focus();
|
|
117
129
|
field?.select();
|
|
118
130
|
});
|
|
131
|
+
effect(() => {
|
|
132
|
+
if (!Object.isNull(this.chosenView()) && Object.isNull(this.view()))
|
|
133
|
+
untracked(() => this.chosenView.set(null));
|
|
134
|
+
});
|
|
119
135
|
effect(() => {
|
|
120
136
|
const shown = new Set(this.rows().map(t => t.folder));
|
|
121
137
|
untracked(() => {
|
|
@@ -179,13 +195,35 @@ export class GitWorkspaceComponent {
|
|
|
179
195
|
}
|
|
180
196
|
async addRepositoryAsync() {
|
|
181
197
|
const folder = await this.context.chooseFolderAsync();
|
|
182
|
-
const workspace = this.workspace();
|
|
183
198
|
if (Object.isNull(folder))
|
|
184
199
|
return;
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
200
|
+
this.isScanning.set(true);
|
|
201
|
+
this.result.set([Resources.formatScanning(folder)]);
|
|
202
|
+
let scan;
|
|
203
|
+
try {
|
|
204
|
+
scan = await this.client.scanRepositoriesAsync(folder);
|
|
205
|
+
}
|
|
206
|
+
catch (error) {
|
|
207
|
+
this.result.set([]);
|
|
208
|
+
this.errors.handleError(error);
|
|
209
|
+
return;
|
|
210
|
+
}
|
|
211
|
+
finally {
|
|
212
|
+
this.isScanning.set(false);
|
|
213
|
+
}
|
|
214
|
+
this.result.set(GitWorkspaceOverview.scanLinesOf(folder, scan));
|
|
215
|
+
if (scan.end === ScanEnd.Repository)
|
|
216
|
+
this.addFolders([folder]);
|
|
217
|
+
else if (scan.repositories.length > 0)
|
|
218
|
+
GitRepositoryScans.offer(this.dialogs, folder, scan, t => this.addFolders(t));
|
|
219
|
+
}
|
|
220
|
+
addFolders(folders) {
|
|
221
|
+
const workspace = this.workspace();
|
|
222
|
+
for (const folder of folders)
|
|
223
|
+
if (Object.isNull(workspace))
|
|
224
|
+
GitRecentRepositories.remember(folder);
|
|
225
|
+
else
|
|
226
|
+
GitWorkspaces.addFolder(workspace.id, folder);
|
|
189
227
|
}
|
|
190
228
|
select(folder, isSelected) {
|
|
191
229
|
const selected = new Set(this.selected());
|
|
@@ -196,12 +234,18 @@ export class GitWorkspaceComponent {
|
|
|
196
234
|
this.selected.set(selected);
|
|
197
235
|
}
|
|
198
236
|
removeChosen() {
|
|
237
|
+
this.remove(this.chosen());
|
|
238
|
+
this.selected.set(new Set());
|
|
239
|
+
}
|
|
240
|
+
remove(folders) {
|
|
199
241
|
const workspace = this.workspace();
|
|
200
242
|
if (Object.isNull(workspace))
|
|
201
|
-
GitRecentRepositories.forget(
|
|
243
|
+
GitRecentRepositories.forget(folders);
|
|
202
244
|
else
|
|
203
|
-
GitWorkspaces.removeFolders(workspace.id,
|
|
204
|
-
|
|
245
|
+
GitWorkspaces.removeFolders(workspace.id, folders);
|
|
246
|
+
}
|
|
247
|
+
only(folder) {
|
|
248
|
+
return new Set([folder]);
|
|
205
249
|
}
|
|
206
250
|
moveChosen(workspace, by) {
|
|
207
251
|
GitWorkspaces.moveFolders(workspace.id, this.chosen(), by);
|
|
@@ -209,6 +253,12 @@ export class GitWorkspaceComponent {
|
|
|
209
253
|
open(folder) {
|
|
210
254
|
GitWorkspacePages.openRepository(this.context, folder);
|
|
211
255
|
}
|
|
256
|
+
fetchedOf(row) {
|
|
257
|
+
return GitWorkspaceRow.fetchedOf(row.summary(), new Date(), this.dates);
|
|
258
|
+
}
|
|
259
|
+
openAcross() {
|
|
260
|
+
GitWorkspaceAcrossViews.open(this.context);
|
|
261
|
+
}
|
|
212
262
|
openPullRequest(row, pullRequest) {
|
|
213
263
|
if (this.pullRequests.open(row.folder, row.summary(), pullRequest))
|
|
214
264
|
return;
|
|
@@ -220,7 +270,7 @@ export class GitWorkspaceComponent {
|
|
|
220
270
|
void this.context.openLinkAsync(review.row.url, { place: LinkPlace.System }).catch((error) => this.errors.handleError(error));
|
|
221
271
|
}
|
|
222
272
|
chooseView(view) {
|
|
223
|
-
this.
|
|
273
|
+
this.chosenView.set(view);
|
|
224
274
|
if (!Object.isNull(view))
|
|
225
275
|
void this.summaries.refreshAllAsync(this.folders());
|
|
226
276
|
}
|
|
@@ -292,10 +342,10 @@ export class GitWorkspaceComponent {
|
|
|
292
342
|
}
|
|
293
343
|
}
|
|
294
344
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
295
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspaceComponent, isStandalone: true, selector: "nol-git-workspace", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "nameField", first: true, predicate: ["nameField"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addRepositoryTitle\" [isShowingLabel]=\"true\"\n (click)=\"addRepositoryAsync()\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n <span role=\"columnheader\">{{ resources.repositoryColumn }}</span>\n <span role=\"columnheader\">{{ resources.branchColumn }}</span>\n <span role=\"columnheader\" class=\"sync-head\">{{ resources.syncColumn }}</span>\n <span role=\"columnheader\" class=\"changes-head\">{{ resources.changesColumn }}</span>\n <span role=\"columnheader\" class=\"pull-request-head\">{{ resources.pullRequestColumn }}</span>\n <span role=\"columnheader\">{{ resources.checksColumn }}</span>\n <span role=\"columnheader\" class=\"open-head\">{{ resources.openColumn }}</span>\n <span role=\"columnheader\">{{ resources.fetchedColumn }}</span>\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}</button>\n </span>\n @if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ row.fetched() }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <button nol-button type=\"button\" (click)=\"addRepositoryAsync()\">{{ resources.addRepositoryTitle }}</button>\n }\n </div>\n }\n </div>\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n height: 2.25rem;\n padding: 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter 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.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "directive", type: GitVisibleDirective, selector: "[nolGitVisible]", outputs: ["visibleChange"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
345
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspaceComponent, isStandalone: true, selector: "nol-git-workspace", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "nameField", first: true, predicate: ["nameField"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addRepositoryTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isScanning()\" (click)=\"addRepositoryAsync()\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"open-across\" [icon]=\"resources.workspaceAcrossIcon\" [label]=\"resources.acrossHeading\" [isShowingLabel]=\"true\"\n (click)=\"openAcross()\"></button>\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n <span role=\"columnheader\">{{ resources.repositoryColumn }}</span>\n <span role=\"columnheader\">{{ resources.branchColumn }}</span>\n <span role=\"columnheader\" class=\"sync-head\">{{ resources.syncColumn }}</span>\n <span role=\"columnheader\" class=\"changes-head\">{{ resources.changesColumn }}</span>\n <span role=\"columnheader\" class=\"pull-request-head\">{{ resources.pullRequestColumn }}</span>\n <span role=\"columnheader\">{{ resources.checksColumn }}</span>\n <span role=\"columnheader\" class=\"open-head\">{{ resources.openColumn }}</span>\n <span role=\"columnheader\" class=\"fetched-head\">{{ resources.fetchedColumn }}</span>\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}</button>\n </span>\n @if (!row.isRepository()) {\n <span role=\"cell\" class=\"not-repository small\">\n <span class=\"muted\">{{ resources.notRepositoryHeading }}</span>\n <button type=\"button\" class=\"link remove-one\" (click)=\"remove(only(row.folder))\">{{ resources.removeLabel }}</button>\n </span>\n }\n @else if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ fetchedOf(row) }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <button nol-button type=\"button\" [disabled]=\"isScanning()\" (click)=\"addRepositoryAsync()\">{{ resources.addRepositoryTitle }}</button>\n }\n </div>\n }\n </div>\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\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.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter 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.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.fetched-head,\n.fetched {\n text-align: end;\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.not-repository {\n display: flex;\n grid-column: span 2;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.remove-one {\n font-weight: inherit;\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure,\n .not-repository {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "directive", type: GitVisibleDirective, selector: "[nolGitVisible]", outputs: ["visibleChange"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
296
346
|
}
|
|
297
347
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceComponent, decorators: [{
|
|
298
348
|
type: Component,
|
|
299
|
-
args: [{ selector: "nol-git-workspace", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, GitVisibleDirective, IconButtonComponent, TextFieldComponent, ToolbarButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addRepositoryTitle\" [isShowingLabel]=\"true\"\n (click)=\"addRepositoryAsync()\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n <span role=\"columnheader\">{{ resources.repositoryColumn }}</span>\n <span role=\"columnheader\">{{ resources.branchColumn }}</span>\n <span role=\"columnheader\" class=\"sync-head\">{{ resources.syncColumn }}</span>\n <span role=\"columnheader\" class=\"changes-head\">{{ resources.changesColumn }}</span>\n <span role=\"columnheader\" class=\"pull-request-head\">{{ resources.pullRequestColumn }}</span>\n <span role=\"columnheader\">{{ resources.checksColumn }}</span>\n <span role=\"columnheader\" class=\"open-head\">{{ resources.openColumn }}</span>\n <span role=\"columnheader\">{{ resources.fetchedColumn }}</span>\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}</button>\n </span>\n @if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ row.fetched() }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <button nol-button type=\"button\" (click)=\"addRepositoryAsync()\">{{ resources.addRepositoryTitle }}</button>\n }\n </div>\n }\n </div>\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n height: 2.25rem;\n padding: 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter 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.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"] }]
|
|
349
|
+
args: [{ selector: "nol-git-workspace", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, GitVisibleDirective, IconButtonComponent, TextFieldComponent, ToolbarButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addRepositoryTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isScanning()\" (click)=\"addRepositoryAsync()\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"open-across\" [icon]=\"resources.workspaceAcrossIcon\" [label]=\"resources.acrossHeading\" [isShowingLabel]=\"true\"\n (click)=\"openAcross()\"></button>\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n <span role=\"columnheader\">{{ resources.repositoryColumn }}</span>\n <span role=\"columnheader\">{{ resources.branchColumn }}</span>\n <span role=\"columnheader\" class=\"sync-head\">{{ resources.syncColumn }}</span>\n <span role=\"columnheader\" class=\"changes-head\">{{ resources.changesColumn }}</span>\n <span role=\"columnheader\" class=\"pull-request-head\">{{ resources.pullRequestColumn }}</span>\n <span role=\"columnheader\">{{ resources.checksColumn }}</span>\n <span role=\"columnheader\" class=\"open-head\">{{ resources.openColumn }}</span>\n <span role=\"columnheader\" class=\"fetched-head\">{{ resources.fetchedColumn }}</span>\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}</button>\n </span>\n @if (!row.isRepository()) {\n <span role=\"cell\" class=\"not-repository small\">\n <span class=\"muted\">{{ resources.notRepositoryHeading }}</span>\n <button type=\"button\" class=\"link remove-one\" (click)=\"remove(only(row.folder))\">{{ resources.removeLabel }}</button>\n </span>\n }\n @else if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ fetchedOf(row) }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <button nol-button type=\"button\" [disabled]=\"isScanning()\" (click)=\"addRepositoryAsync()\">{{ resources.addRepositoryTitle }}</button>\n }\n </div>\n }\n </div>\n </main>\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\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.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter 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.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.fetched-head,\n.fetched {\n text-align: end;\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.not-repository {\n display: flex;\n grid-column: span 2;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.remove-one {\n font-weight: inherit;\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure,\n .not-repository {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"] }]
|
|
300
350
|
}], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }], nameField: [{ type: i0.ViewChild, args: ["nameField", { ...{ read: (ElementRef) }, isSignal: true }] }] } });
|
|
301
351
|
//# sourceMappingURL=git-workspace.component.js.map
|