@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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/git.window",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.9",
|
|
4
4
|
"description": "The Git module's window part: the Git view of a folder's branch, changes and commit.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,11 +39,11 @@
|
|
|
39
39
|
"@noldova/code.editor.angular": ">=0.0.2 <0.1.0",
|
|
40
40
|
"@noldova/code.editor.merge.angular": ">=0.0.2 <0.1.0",
|
|
41
41
|
"@noldova/code.editor.textmate": ">=0.0.2 <0.1.0",
|
|
42
|
-
"@noldova/context.core": ">=0.0.
|
|
43
|
-
"@noldova/context.exceptions": ">=0.0.
|
|
44
|
-
"@noldova/context.json": ">=0.0.
|
|
45
|
-
"@noldova/desktop.window": ">=0.0.
|
|
46
|
-
"@noldova/ui.components.angular": ">=0.0.
|
|
42
|
+
"@noldova/context.core": ">=0.0.18 <0.1.0",
|
|
43
|
+
"@noldova/context.exceptions": ">=0.0.18 <0.1.0",
|
|
44
|
+
"@noldova/context.json": ">=0.0.18 <0.1.0",
|
|
45
|
+
"@noldova/desktop.window": ">=0.0.18 <0.1.0",
|
|
46
|
+
"@noldova/ui.components.angular": ">=0.0.44 <0.1.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependenciesMeta": {
|
|
49
49
|
"@angular/cdk": {
|
|
@@ -87,8 +87,8 @@
|
|
|
87
87
|
}
|
|
88
88
|
},
|
|
89
89
|
"dependencies": {
|
|
90
|
-
"@noldova/git.hosting.protocol": "0.0.
|
|
91
|
-
"@noldova/git.protocol": "0.0.
|
|
90
|
+
"@noldova/git.hosting.protocol": "0.0.9",
|
|
91
|
+
"@noldova/git.protocol": "0.0.9"
|
|
92
92
|
},
|
|
93
|
-
"gitHead": "
|
|
93
|
+
"gitHead": "9f5500a19b8eb3c3a4da847dc487d553243402f3"
|
|
94
94
|
}
|
package/src/api/index.d.ts
CHANGED
|
@@ -6,10 +6,10 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
|
-
import type { Injector, InputSignal, OutputEmitterRef, Signal, Type, WritableSignal, ɵɵComponentDeclaration, ɵɵFactoryDeclaration } from "@angular/core";
|
|
9
|
+
import type { InjectionToken, Injector, InputSignal, OutputEmitterRef, Signal, Type, WritableSignal, ɵɵComponentDeclaration, ɵɵFactoryDeclaration } from "@angular/core";
|
|
10
10
|
import { Exception, type ExceptionOptions } from "@noldova/context.exceptions";
|
|
11
11
|
import type { IWindowPart, IWindowPartContext } from "@noldova/desktop.window";
|
|
12
|
-
import type { HostChanges, HostPullRequestFiles, HostReference } from "@noldova/git.hosting.protocol";
|
|
12
|
+
import type { HostAccount, HostChanges, HostPullRequestFiles, HostReference } from "@noldova/git.hosting.protocol";
|
|
13
13
|
import type { DiffScope, GitRemote } from "@noldova/git.protocol";
|
|
14
14
|
import type { ILinkReferenceSource, LinkOpenEvent } from "@noldova/ui.components.angular";
|
|
15
15
|
|
|
@@ -453,10 +453,18 @@ export declare class GitPullRequestRow {
|
|
|
453
453
|
* whose base is another open pull request's head as stacked on it.
|
|
454
454
|
*/
|
|
455
455
|
public readonly baseBranch: string | null;
|
|
456
|
+
/**
|
|
457
|
+
* The name of the host account it was listed for, such as "kim", or `null` when the host signs in one account; Needs you names it after the
|
|
458
|
+
* repository on a review request.
|
|
459
|
+
*/
|
|
460
|
+
public readonly account: string | null;
|
|
456
461
|
|
|
457
|
-
/**
|
|
462
|
+
/**
|
|
463
|
+
* @param baseBranch The branch it merges into, or `null`, the default, when the host doesn't say.
|
|
464
|
+
* @param account The host account it was listed for, or `null`, the default, when the host signs in one account.
|
|
465
|
+
*/
|
|
458
466
|
public constructor(key: string, label: string, title: string, url: string, isDraft: boolean, approvals: number, passed: number, failing: number, pending: number,
|
|
459
|
-
headBranch: string, baseBranch?: string | null);
|
|
467
|
+
headBranch: string, baseBranch?: string | null, account?: string | null);
|
|
460
468
|
}
|
|
461
469
|
|
|
462
470
|
/**
|
|
@@ -484,6 +492,11 @@ export declare class GitPullRequestList {
|
|
|
484
492
|
public readonly failure: string | null;
|
|
485
493
|
/** Whether the host's answer was cut, so there may be more past the rows; review requests set it when the account's search was cut. */
|
|
486
494
|
public readonly hasMore: boolean;
|
|
495
|
+
/**
|
|
496
|
+
* When the host's rate limit for the account resets, as milliseconds since the epoch, on a read that failed because that limit is used up, or `null`.
|
|
497
|
+
* The section then writes the time by the person's time and date format settings, in place of the time in `failure`.
|
|
498
|
+
*/
|
|
499
|
+
public readonly limitedUntil: number | null;
|
|
487
500
|
|
|
488
501
|
/**
|
|
489
502
|
* A read that runs.
|
|
@@ -507,6 +520,15 @@ export declare class GitPullRequestList {
|
|
|
507
520
|
* @param rows The rows the last read gave, which review requests keep showing after a failed read; none by default.
|
|
508
521
|
*/
|
|
509
522
|
public static failed(failure: string, rows?: readonly GitPullRequestRow[]): GitPullRequestList;
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* A read that failed with an error: a runtime failure's message, or the fallback for any other error, and, when the runtime part's failure says
|
|
526
|
+
* the host's rate limit is used up, when it resets, from the `details` field `HostingNames.rateLimitedUntilDetail` of `@noldova/git.hosting.protocol`.
|
|
527
|
+
* @param error What the read threw.
|
|
528
|
+
* @param fallback What the section shows for an error that isn't a runtime failure.
|
|
529
|
+
* @param rows The rows the last read gave, which review requests keep showing after a failed read; none by default.
|
|
530
|
+
*/
|
|
531
|
+
public static failedBy(error: unknown, fallback: string, rows?: readonly GitPullRequestRow[]): GitPullRequestList;
|
|
510
532
|
}
|
|
511
533
|
|
|
512
534
|
/** Where a branch's pull request stands on its host. */
|
|
@@ -639,7 +661,7 @@ export declare enum GitHostCardState {
|
|
|
639
661
|
* ```ts
|
|
640
662
|
* import { GitHostCard, GitHostCardState } from "@noldova/git.window";
|
|
641
663
|
*
|
|
642
|
-
* export const signedIn: GitHostCard = new GitHostCard("
|
|
664
|
+
* export const signedIn: GitHostCard = new GitHostCard("kim", "Device sign-in", GitHostCardState.SignedIn, "Signed in");
|
|
643
665
|
* ```
|
|
644
666
|
*/
|
|
645
667
|
export declare class GitHostCard {
|
|
@@ -655,14 +677,28 @@ export declare class GitHostCard {
|
|
|
655
677
|
/** The chip's text, or the button's while it asks to sign in. */
|
|
656
678
|
public readonly label: string;
|
|
657
679
|
|
|
680
|
+
/**
|
|
681
|
+
* The host's id for the card's account, or `null` for a host with one account; the card's button opens the host's dialog with it as
|
|
682
|
+
* {@link GitHostAccounts.chosenAccount}.
|
|
683
|
+
*/
|
|
684
|
+
public readonly account: string | null;
|
|
685
|
+
|
|
686
|
+
/**
|
|
687
|
+
* The signed-in account the card shows, drawn in place of the host's mark as its picture, or its initial when it has none; `null` for a card
|
|
688
|
+
* without one, which shows the host's mark.
|
|
689
|
+
*/
|
|
690
|
+
public readonly person: HostAccount | null;
|
|
691
|
+
|
|
658
692
|
/**
|
|
659
693
|
* Creates a card.
|
|
660
694
|
* @param title The card's title.
|
|
661
695
|
* @param detail The line under the title.
|
|
662
696
|
* @param state The card's state.
|
|
663
697
|
* @param label The chip's text, or the button's while it asks to sign in.
|
|
698
|
+
* @param account The host's id for the card's account, or `null`, the default, for a host with one account.
|
|
699
|
+
* @param person The signed-in account the card shows, or `null`, the default, for the host's mark.
|
|
664
700
|
*/
|
|
665
|
-
public constructor(title: string, detail: string, state: GitHostCardState, label: string);
|
|
701
|
+
public constructor(title: string, detail: string, state: GitHostCardState, label: string, account?: string | null, person?: HostAccount | null);
|
|
666
702
|
|
|
667
703
|
/** Whether the card ends with a button that opens the host's sign-in rather than a chip: while it is signed out or its sign-in failed. */
|
|
668
704
|
public get asksToSignIn(): boolean;
|
|
@@ -690,7 +726,10 @@ export interface IGitHostAccount {
|
|
|
690
726
|
/** The host's cards, one per account or sign-in, which the page follows as they change. */
|
|
691
727
|
readonly cards: Signal<readonly GitHostCard[]>;
|
|
692
728
|
|
|
693
|
-
/**
|
|
729
|
+
/**
|
|
730
|
+
* The component the host's dialog shows, which draws its own sign-in, account and sign-out, with the providing part's context as `WindowPartTokens.context`
|
|
731
|
+
* and the account it opened on as {@link GitHostAccounts.chosenAccount}.
|
|
732
|
+
*/
|
|
694
733
|
readonly signIn: Type<unknown>;
|
|
695
734
|
|
|
696
735
|
/** The features the host has, each once; the table shows the others as missing. */
|
|
@@ -837,6 +876,12 @@ export declare class GitHostAccounts {
|
|
|
837
876
|
/** The added hosts, in the order they were added. */
|
|
838
877
|
public static readonly accounts: Signal<readonly IProvidedGitHostAccount[]>;
|
|
839
878
|
|
|
879
|
+
/**
|
|
880
|
+
* The account the host's dialog opened on, which its sign-in component injects: the {@link GitHostCard.account} of the card whose button opened
|
|
881
|
+
* it, or `null` when the card has none or the dialog opened from Add an account.
|
|
882
|
+
*/
|
|
883
|
+
public static readonly chosenAccount: InjectionToken<string | null>;
|
|
884
|
+
|
|
840
885
|
/**
|
|
841
886
|
* Adds a host, which the page shows after those added before it, and Settings search finds by its row.
|
|
842
887
|
* @param context The providing window part's context, which the host's dialog component gets.
|
|
@@ -1261,6 +1306,33 @@ export declare class GitRecentRepositories {
|
|
|
1261
1306
|
public static nameOf(folder: string): string;
|
|
1262
1307
|
}
|
|
1263
1308
|
|
|
1309
|
+
/**
|
|
1310
|
+
* The Dashboard, the page of the repositories opened lately, for an app's placeholder to show while no document is open, as the Dashboard tab shows it:
|
|
1311
|
+
* its toolbar, the repositories' table and its rows' reads, opens and writes go through Git's own window part, which must be active in the window, so a
|
|
1312
|
+
* placeholder another module registers shows Git's Dashboard. It takes no inputs; its selector is `nol-git-dashboard`.
|
|
1313
|
+
* @throws GitWindowException when Git's window part isn't active in the window as the component is made.
|
|
1314
|
+
* @example
|
|
1315
|
+
* ```ts
|
|
1316
|
+
* import { ContentPadding, type IWindowPartContext, PlaceholderContribution } from "@noldova/desktop.window";
|
|
1317
|
+
*
|
|
1318
|
+
* export function registerStart(context: IWindowPartContext): void {
|
|
1319
|
+
* context.registerPlaceholder(new PlaceholderContribution("app.start", () => import("@noldova/git.window").then(t => t.GitDashboardComponent),
|
|
1320
|
+
* ContentPadding.None));
|
|
1321
|
+
* }
|
|
1322
|
+
* ```
|
|
1323
|
+
*/
|
|
1324
|
+
export declare class GitDashboardComponent {
|
|
1325
|
+
/**
|
|
1326
|
+
* Angular's factory for the component, as its compiler declares it.
|
|
1327
|
+
*/
|
|
1328
|
+
public static ɵfac: ɵɵFactoryDeclaration<GitDashboardComponent, never>;
|
|
1329
|
+
|
|
1330
|
+
/**
|
|
1331
|
+
* Angular's metadata for the standalone component: its selector and no inputs, as its compiler declares it.
|
|
1332
|
+
*/
|
|
1333
|
+
public static ɵcmp: ɵɵComponentDeclaration<GitDashboardComponent, "nol-git-dashboard", never, Record<string, never>, Record<string, never>, never, never, true, never>;
|
|
1334
|
+
}
|
|
1335
|
+
|
|
1264
1336
|
/**
|
|
1265
1337
|
* The files a diff changes in a repository, as the commit detail shows them: a header with their count and the lines added and removed, a folder tree or
|
|
1266
1338
|
* flat list, and each file's diff under its row once opened. It reads the diff from the repository through `git.diff`, so nothing leaves the machine; a
|
|
@@ -1311,7 +1383,8 @@ export declare class GitDiffFilesComponent {
|
|
|
1311
1383
|
|
|
1312
1384
|
/**
|
|
1313
1385
|
* A detail view beside the documents that shows what the active document of its kind chose, such as a work item or a conflict: the documents follow it
|
|
1314
|
-
* with their choice, it opens
|
|
1386
|
+
* with their choice, it opens a view with instances with `openView`, so the focus stays in the document, or shows a plain view, such as the Commit view,
|
|
1387
|
+
* with `showView`, and the view draws what it shows.
|
|
1315
1388
|
* A module keeps one for each window and view.
|
|
1316
1389
|
* @example
|
|
1317
1390
|
* ```ts
|
|
@@ -1355,6 +1428,17 @@ export declare class GitDetailView<T> {
|
|
|
1355
1428
|
*/
|
|
1356
1429
|
public constructor(context: IWindowPartContext, view: string, instance: string, titleOf: (choice: T) => string, isBroughtForward?: boolean);
|
|
1357
1430
|
|
|
1431
|
+
/**
|
|
1432
|
+
* Makes the detail view for one window over a plain view, which a choice shows with `showView` under the title it was registered with, moving the
|
|
1433
|
+
* focus into it as `showView` does; it has no instance, so `listen` hears nothing and leaving the followed documents gives its group no front back.
|
|
1434
|
+
* @param context The window part's context, which shows the view.
|
|
1435
|
+
* @param view The view's name, a plain view the module registered.
|
|
1436
|
+
* @param instance `null`: a plain view has none.
|
|
1437
|
+
* @param titleOf `null`: the view keeps its registered title.
|
|
1438
|
+
* @param isBroughtForward Whether a followed document coming to the front brings the view forward. `true` when left out.
|
|
1439
|
+
*/
|
|
1440
|
+
public constructor(context: IWindowPartContext, view: string, instance: null, titleOf: null, isBroughtForward?: boolean);
|
|
1441
|
+
|
|
1358
1442
|
/**
|
|
1359
1443
|
* Adds a document's choice while it is open. The document coming to the front with a choice, or showing its first choice while in front, brings the
|
|
1360
1444
|
* view to the front of its group with `openView`; a read again that keeps a choice moves nothing. While the view is open, the person leaving the
|
|
@@ -1362,19 +1446,22 @@ export declare class GitDetailView<T> {
|
|
|
1362
1446
|
* @param choice What the document chose, or `null` for nothing.
|
|
1363
1447
|
* @param active Whether the document is the window's active document, such as `WindowPartTokens.activeDocument`.
|
|
1364
1448
|
* @param injector The document's injector: the document is removed once it is destroyed, and the view reacts in its context.
|
|
1449
|
+
* @param settled Whether the document is done reading, so that it has no choice coming without the person; while it is in front, settled and with no
|
|
1450
|
+
* choice, `bringForward` waits for no next choice. Left out, the document is never settled, and a wait ends only at a choice.
|
|
1365
1451
|
*/
|
|
1366
|
-
public follow(choice: Signal<T | null>, active: Signal<boolean>, injector: Injector): void;
|
|
1452
|
+
public follow(choice: Signal<T | null>, active: Signal<boolean>, injector: Injector, settled?: Signal<boolean>): void;
|
|
1367
1453
|
|
|
1368
1454
|
/**
|
|
1369
|
-
* Opens the view
|
|
1370
|
-
*
|
|
1455
|
+
* Opens the view for a choice the person made, and while it is open brings its tab to the front of its group again, retitled for the choice. A view
|
|
1456
|
+
* with instances leaves the focus in the document; a plain view takes it, as `showView` does.
|
|
1371
1457
|
* @param choice The choice, which titles the tab.
|
|
1372
1458
|
*/
|
|
1373
1459
|
public showInFront(choice: T): void;
|
|
1374
1460
|
|
|
1375
1461
|
/**
|
|
1376
|
-
* Brings the view to the front of its group
|
|
1377
|
-
* the next followed document in front with a choice brings it
|
|
1462
|
+
* Brings the view to the front of its group for the choice of the followed document in front, titled for it; a view with instances leaves the focus
|
|
1463
|
+
* in the document, and a plain view takes it, as `showView` does. With no choice, the next followed document in front with a choice brings it,
|
|
1464
|
+
* unless a followed document in front is settled with none first.
|
|
1378
1465
|
*/
|
|
1379
1466
|
public bringForward(): void;
|
|
1380
1467
|
|
|
@@ -1681,6 +1768,7 @@ export declare class GitPullRequestThreadsComponent {
|
|
|
1681
1768
|
"reference": { "alias": "reference"; "required": true; "isSignal": true };
|
|
1682
1769
|
"isAutoComplete": { "alias": "isAutoComplete"; "required": false; "isSignal": true };
|
|
1683
1770
|
"references": { "alias": "references"; "required": false; "isSignal": true };
|
|
1771
|
+
"login": { "alias": "login"; "required": false; "isSignal": true };
|
|
1684
1772
|
}, { "linkOpen": "linkOpen"; "goToLine": "goToLine" }, never, never, true, never>;
|
|
1685
1773
|
|
|
1686
1774
|
/**
|
|
@@ -1703,6 +1791,12 @@ export declare class GitPullRequestThreadsComponent {
|
|
|
1703
1791
|
*/
|
|
1704
1792
|
public readonly references: InputSignal<ILinkReferenceSource | null>;
|
|
1705
1793
|
|
|
1794
|
+
/**
|
|
1795
|
+
* The signed-in account to reply and change threads as, sent as `login` with each reply and change; `null`, the default, sends none, so the
|
|
1796
|
+
* host writes as the repository's account.
|
|
1797
|
+
*/
|
|
1798
|
+
public readonly login: InputSignal<string | null>;
|
|
1799
|
+
|
|
1706
1800
|
/**
|
|
1707
1801
|
* A link a comment's Markdown asks to open, with the gesture that opened it.
|
|
1708
1802
|
*/
|
package/src/api/index.js
CHANGED
|
@@ -35,6 +35,7 @@ export { GitWorkspaces } from "../app/services/git-workspaces.js";
|
|
|
35
35
|
export { GitRecentRepositories } from "../app/services/git-recent-repositories.js";
|
|
36
36
|
export { GitHistorySelection } from "../app/services/git-history-selection.js";
|
|
37
37
|
export { GitDetailView } from "../app/services/git-detail-view.js";
|
|
38
|
+
export { GitDashboardComponent } from "../app/components/git-dashboard/git-dashboard.component.js";
|
|
38
39
|
export { GitDiffFilesComponent } from "../app/components/git-diff-files/git-diff-files.component.js";
|
|
39
40
|
export { GitPullRequestCommitsComponent } from "../app/components/git-pull-request-commits/git-pull-request-commits.component.js";
|
|
40
41
|
export { GitPullRequestConflictsComponent } from "../app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js";
|
package/src/api/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/noldova.git.window/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWlE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,gCAAgC,EAAE,MAAM,sFAAsF,CAAC;AACxI,OAAO,EAAE,4BAA4B,EAAE,MAAM,8EAA8E,CAAC;AAC5H,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/noldova.git.window/src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,oDAAoD,CAAC;AAChG,OAAO,EAAE,kBAAkB,EAAE,MAAM,2CAA2C,CAAC;AAC/E,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAWlE,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAE1D,OAAO,EAAE,mBAAmB,EAAE,MAAM,wCAAwC,CAAC;AAC7E,OAAO,EAAE,oBAAoB,EAAE,MAAM,yCAAyC,CAAC;AAC/E,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,EAAE,iBAAiB,EAAE,MAAM,uCAAuC,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,0CAA0C,CAAC;AAChF,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,cAAc,EAAE,MAAM,qCAAqC,CAAC;AACrE,OAAO,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,gCAAgC,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAC;AAC1D,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EAAE,iBAAiB,EAAE,MAAM,wCAAwC,CAAC;AAC3E,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,kBAAkB,EAAE,MAAM,yCAAyC,CAAC;AAC7E,OAAO,EAAE,eAAe,EAAE,MAAM,sCAAsC,CAAC;AACvE,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAElE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4CAA4C,CAAC;AACnF,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,aAAa,EAAE,MAAM,oCAAoC,CAAC;AACnE,OAAO,EAAE,qBAAqB,EAAE,MAAM,4DAA4D,CAAC;AACnG,OAAO,EAAE,qBAAqB,EAAE,MAAM,8DAA8D,CAAC;AACrG,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,gCAAgC,EAAE,MAAM,sFAAsF,CAAC;AACxI,OAAO,EAAE,4BAA4B,EAAE,MAAM,8EAA8E,CAAC;AAC5H,OAAO,EAAE,WAAW,EAAE,MAAM,gCAAgC,CAAC;AAC7D,OAAO,EAAE,8BAA8B,EAAE,MAAM,kFAAkF,CAAC;AAClI,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,UAAU,EAAE,MAAM,oCAAoC,CAAC"}
|
|
@@ -9,21 +9,25 @@ import { NgComponentOutlet } from "@angular/common";
|
|
|
9
9
|
import { Component, computed, inject, Injector, input, output } from "@angular/core";
|
|
10
10
|
import { WindowPartTokens } from "@noldova/desktop.window";
|
|
11
11
|
import { DialogComponent } from "@noldova/ui.components.angular";
|
|
12
|
+
import { GitHostAccounts } from "../../services/git-host-accounts.js";
|
|
12
13
|
import * as i0 from "@angular/core";
|
|
13
14
|
export class GitAccountDialogComponent {
|
|
14
15
|
injector = inject(Injector);
|
|
15
|
-
hostInjector = computed(() => Injector.create({ providers: [{ provide: WindowPartTokens.context, useValue: this.account().context }
|
|
16
|
+
hostInjector = computed(() => Injector.create({ providers: [{ provide: WindowPartTokens.context, useValue: this.account().context },
|
|
17
|
+
{ provide: GitHostAccounts.chosenAccount, useValue: this.chosen() }], parent: this.injector }), /* @ts-ignore */
|
|
16
18
|
...(ngDevMode ? [{ debugName: "hostInjector" }] : /* istanbul ignore next */ []));
|
|
17
19
|
account = input.required(/* @ts-ignore */
|
|
18
20
|
...(ngDevMode ? [{ debugName: "account" }] : /* istanbul ignore next */ []));
|
|
19
21
|
title = input.required(/* @ts-ignore */
|
|
20
22
|
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
23
|
+
chosen = input(null, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
21
25
|
closed = output();
|
|
22
26
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAccountDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
23
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitAccountDialogComponent, isStandalone: true, selector: "nol-git-account-dialog", inputs: { account: { classPropertyName: "account", publicName: "account", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"closed.emit()\">\n <ng-container *ngComponentOutlet=\"account().account.signIn; injector: hostInjector()\" />\n</nol-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitAccountDialogComponent, isStandalone: true, selector: "nol-git-account-dialog", inputs: { account: { classPropertyName: "account", publicName: "account", isSignal: true, isRequired: true, transformFunction: null }, title: { classPropertyName: "title", publicName: "title", isSignal: true, isRequired: true, transformFunction: null }, chosen: { classPropertyName: "chosen", publicName: "chosen", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { closed: "closed" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"closed.emit()\">\n <ng-container *ngComponentOutlet=\"account().account.signIn; injector: hostInjector()\" />\n</nol-dialog>\n", dependencies: [{ kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "directive", type: NgComponentOutlet, selector: "[ngComponentOutlet]", inputs: ["ngComponentOutlet", "ngComponentOutletInputs", "ngComponentOutletInjector", "ngComponentOutletEnvironmentInjector", "ngComponentOutletContent", "ngComponentOutletNgModule"], exportAs: ["ngComponentOutlet"] }] });
|
|
24
28
|
}
|
|
25
29
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAccountDialogComponent, decorators: [{
|
|
26
30
|
type: Component,
|
|
27
31
|
args: [{ selector: "nol-git-account-dialog", imports: [DialogComponent, NgComponentOutlet], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"closed.emit()\">\n <ng-container *ngComponentOutlet=\"account().account.signIn; injector: hostInjector()\" />\n</nol-dialog>\n" }]
|
|
28
|
-
}], propDecorators: { account: [{ type: i0.Input, args: [{ isSignal: true, alias: "account", required: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
32
|
+
}], propDecorators: { account: [{ type: i0.Input, args: [{ isSignal: true, alias: "account", required: true }] }], title: [{ type: i0.Input, args: [{ isSignal: true, alias: "title", required: true }] }], chosen: [{ type: i0.Input, args: [{ isSignal: true, alias: "chosen", required: false }] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
29
33
|
//# sourceMappingURL=git-account-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-account-dialog.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-account-dialog/git-account-dialog.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-account-dialog/git-account-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAsC,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;;
|
|
1
|
+
{"version":3,"file":"git-account-dialog.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-account-dialog/git-account-dialog.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-account-dialog/git-account-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACpD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAsC,MAAM,eAAe,CAAC;AAC3I,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,eAAe,EAAE,MAAM,gCAAgC,CAAC;AAGjE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;;AAOtE,MAAM,OAAO,yBAAyB;IACnB,QAAQ,GAAa,MAAM,CAAC,QAAQ,CAAC,CAAC;IAEpC,YAAY,GAAqB,QAAQ,CAAC,GAAG,EAAE,CAChE,QAAQ,CAAC,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,gBAAgB,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,CAAC,OAAO,EAAE,CAAC,OAAO,EAAE;YACnG,EAAE,OAAO,EAAE,eAAe,CAAC,aAAa,EAAE,QAAQ,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;qFAAC,CAAC;IAEpF,OAAO,GAAyC,KAAK,CAAC,QAAQ;gFAA2B,CAAC;IAC1F,KAAK,GAAwB,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACtD,MAAM,GAA+B,KAAK,CAAgB,IAAI;+EAAC,CAAC;IAChE,MAAM,GAA2B,MAAM,EAAQ,CAAC;uGAVrD,yBAAyB;2FAAzB,yBAAyB,4eCrBtC,sVAWA,4CDOY,eAAe,0GAAE,iBAAiB;;2FAGjC,yBAAyB;kBALrC,SAAS;+BACE,wBAAwB,WACzB,CAAC,eAAe,EAAE,iBAAiB,CAAC"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { Component, inject } from "@angular/core";
|
|
9
|
-
import { ButtonComponent, ButtonVariant, ChipComponent, ChipKind, DialogService, IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
|
|
9
|
+
import { AvatarComponent, ButtonComponent, ButtonVariant, ChipComponent, ChipKind, DialogService, IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective } from "@noldova/ui.components.angular";
|
|
10
10
|
import { GitHostCardState } from "../../enums/git-host-card-state.js";
|
|
11
11
|
import { Resources } from "../../../resources.js";
|
|
12
12
|
import { GitHostAccounts } from "../../services/git-host-accounts.js";
|
|
@@ -23,22 +23,26 @@ export class GitAccountsComponent {
|
|
|
23
23
|
chipOf(card) {
|
|
24
24
|
return card.state === GitHostCardState.SignedIn ? ChipKind.On : ChipKind.Status;
|
|
25
25
|
}
|
|
26
|
+
initialOf(person) {
|
|
27
|
+
return person.login.charAt(0).toUpperCase();
|
|
28
|
+
}
|
|
26
29
|
has(provided, feature) {
|
|
27
30
|
return provided.account.features.includes(feature);
|
|
28
31
|
}
|
|
29
|
-
open(provided, title) {
|
|
32
|
+
open(provided, title, chosen = null) {
|
|
30
33
|
const dialog = this.dialogs.open(GitAccountDialogComponent);
|
|
31
34
|
dialog.componentRef?.setInput(Resources.accountInput, provided);
|
|
32
35
|
dialog.componentRef?.setInput(Resources.dialogTitleInput, title);
|
|
36
|
+
dialog.componentRef?.setInput(Resources.chosenAccountInput, chosen);
|
|
33
37
|
dialog.componentInstance?.closed.subscribe(() => {
|
|
34
38
|
dialog.close();
|
|
35
39
|
});
|
|
36
40
|
}
|
|
37
41
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAccountsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
38
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitAccountsComponent, isStandalone: true, selector: "nol-git-accounts", 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 <section class=\"accounts\" [attr.aria-label]=\"resources.accountsTitle\">\n <div class=\"head\">\n <h2 class=\"title\">{{ resources.accountsTitle }}</h2>\n <button type=\"button\" nol-button class=\"add\" [disabled]=\"accounts().length === 0\" [nolMenuTriggerFor]=\"hosts\">\n <span class=\"material-symbols-rounded\" nolButtonIcon aria-hidden=\"true\">{{ resources.addAccountIcon }}</span>{{ resources.addAccount }}\n </button>\n <ng-template #hosts>\n <nol-menu>\n @for (provided of accounts(); track provided) {\n <button nol-menu-item [label]=\"provided.account.host\" (triggered)=\"open(provided, resources.formatSignInTitle(provided.account.host))\"></button>\n }\n </nol-menu>\n </ng-template>\n </div>\n <p class=\"intro\">{{ resources.accountsIntro }}</p>\n @for (provided of accounts(); track provided) {\n <div class=\"host\" [attr.data-setting]=\"rowOf(provided)\">\n @for (card of provided.account.cards(); track $index) {\n <div class=\"card\">\n <span class=\"mark\" [style.background-color]=\"provided.account.markColor\" aria-hidden=\"true\">{{ provided.account.mark }}</span>\n <span class=\"text\">\n <span class=\"card-title\">{{ card.title }}</span>\n <span class=\"detail\">{{ card.detail }}</span>\n </span>\n @if (card.asksToSignIn) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"open(provided, resources.formatSignInTitle(provided.account.host))\">{{ card.label }}</button>\n } @else {\n <span class=\"end\">\n <nol-chip [kind]=\"chipOf(card)\">{{ card.label }}</nol-chip>\n <button type=\"button\" nol-icon-button [icon]=\"resources.manageAccountIcon\" [label]=\"resources.formatManageAccount(provided.account.host)\"\n [nolTooltip]=\"resources.formatManageAccount(provided.account.host)\"\n (click)=\"open(provided, resources.formatAccountRowTitle(provided.account.host))\"></button>\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"intro\">{{ resources.noHosts }}</p>\n }\n </section>\n <section class=\"features\" [attr.aria-label]=\"resources.featuresTitle\">\n <h2 class=\"title\">{{ resources.featuresTitle }}</h2>\n <div class=\"matrix\" role=\"table\" [attr.aria-label]=\"resources.featuresTitle\" [style.--git-host-columns]=\"accounts().length\">\n <div class=\"matrix-row caps\" role=\"row\">\n <span role=\"columnheader\"></span>\n @for (provided of accounts(); track provided) {\n <span role=\"columnheader\">{{ provided.account.column }}</span>\n }\n </div>\n @for (feature of resources.hostFeatures; track feature) {\n <div class=\"matrix-row\" role=\"row\">\n <span role=\"rowheader\">{{ resources.hostFeatureTitles[feature] }}</span>\n @for (provided of accounts(); track provided) {\n <span role=\"cell\" class=\"answer\" [class.yes]=\"has(provided, feature)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ has(provided, feature) ? resources.featureYesIcon : resources.featureNoIcon }}</span>\n <span class=\"answer-text\">{{ has(provided, feature) ? resources.featureYes : resources.featureNo }}</span>\n </span>\n }\n </div>\n }\n </div>\n </section>\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}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--nol-space-4);\n align-items: start;\n}\n\n@container (min-width: 48rem) {\n .page {\n grid-template-columns: minmax(0, 1fr) 26rem;\n }\n}\n\n.accounts,\n.features {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.accounts {\n gap: var(--nol-space-3);\n}\n\n.features {\n gap: var(--nol-space-2);\n}\n\n.head {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n font-size: var(--nol-text-title);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.intro {\n margin: 0;\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.host {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-3);\n}\n\n.card {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) auto;\n gap: var(--nol-space-3);\n align-items: center;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background: var(--nol-panel);\n}\n\n.mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: var(--nol-radius-medium);\n color: var(--nol-button-text);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.card-title,\n.detail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.card-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.detail {\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.end {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.matrix {\n display: flex;\n flex-direction: column;\n}\n\n.matrix-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) repeat(var(--git-host-columns), 4.75rem);\n gap: var(--nol-space-1);\n align-items: center;\n min-height: 1.625rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n font-size: var(--nol-text-small);\n}\n\n.caps {\n font-size: 0.625rem;\n text-transform: uppercase;\n letter-spacing: var(--nol-letter-spacing-caps);\n color: var(--nol-text-muted);\n}\n\n.matrix-row > :not(:first-child) {\n text-align: center;\n}\n\n.answer {\n display: flex;\n justify-content: center;\n color: var(--nol-text-muted);\n}\n\n.answer.yes {\n color: var(--nol-status-ok);\n}\n\n.answer .material-symbols-rounded {\n font-size: 1rem;\n color: inherit;\n}\n\n.answer-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChipComponent, selector: "nol-chip", inputs: ["kind", "count"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitAccountsComponent, isStandalone: true, selector: "nol-git-accounts", 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 <section class=\"accounts\" [attr.aria-label]=\"resources.accountsTitle\">\n <div class=\"head\">\n <h2 class=\"title\">{{ resources.accountsTitle }}</h2>\n <button type=\"button\" nol-button class=\"add\" [disabled]=\"accounts().length === 0\" [nolMenuTriggerFor]=\"hosts\">\n <span class=\"material-symbols-rounded\" nolButtonIcon aria-hidden=\"true\">{{ resources.addAccountIcon }}</span>{{ resources.addAccount }}\n </button>\n <ng-template #hosts>\n <nol-menu>\n @for (provided of accounts(); track provided) {\n <button nol-menu-item [label]=\"provided.account.host\" (triggered)=\"open(provided, resources.formatSignInTitle(provided.account.host))\"></button>\n }\n </nol-menu>\n </ng-template>\n </div>\n <p class=\"intro\">{{ resources.accountsIntro }}</p>\n @for (provided of accounts(); track provided) {\n <div class=\"host\" [attr.data-setting]=\"rowOf(provided)\">\n @for (card of provided.account.cards(); track $index) {\n <div class=\"card\">\n @if (card.person; as person) {\n <span class=\"mark person\" aria-hidden=\"true\">\n <nol-avatar [name]=\"person.login\" [image]=\"person.avatar\" [initials]=\"initialOf(person)\" [colorKey]=\"person.login\" [decorative]=\"true\" />\n </span>\n } @else {\n <span class=\"mark\" [style.background-color]=\"provided.account.markColor\" aria-hidden=\"true\">{{ provided.account.mark }}</span>\n }\n <span class=\"text\">\n <span class=\"card-title\">{{ card.title }}</span>\n <span class=\"detail\">{{ card.detail }}</span>\n </span>\n @if (card.asksToSignIn) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"open(provided, resources.formatSignInTitle(provided.account.host), card.account)\">{{ card.label }}</button>\n } @else {\n <span class=\"end\">\n <nol-chip [kind]=\"chipOf(card)\">{{ card.label }}</nol-chip>\n <button type=\"button\" nol-icon-button [icon]=\"resources.manageAccountIcon\" [label]=\"resources.formatManageAccount(provided.account.host)\"\n [nolTooltip]=\"resources.formatManageAccount(provided.account.host)\"\n (click)=\"open(provided, resources.formatAccountRowTitle(provided.account.host), card.account)\"></button>\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"intro\">{{ resources.noHosts }}</p>\n }\n </section>\n <section class=\"features\" [attr.aria-label]=\"resources.featuresTitle\">\n <h2 class=\"title\">{{ resources.featuresTitle }}</h2>\n <div class=\"matrix\" role=\"table\" [attr.aria-label]=\"resources.featuresTitle\" [style.--git-host-columns]=\"accounts().length\">\n <div class=\"matrix-row caps\" role=\"row\">\n <span role=\"columnheader\"></span>\n @for (provided of accounts(); track provided) {\n <span role=\"columnheader\">{{ provided.account.column }}</span>\n }\n </div>\n @for (feature of resources.hostFeatures; track feature) {\n <div class=\"matrix-row\" role=\"row\">\n <span role=\"rowheader\">{{ resources.hostFeatureTitles[feature] }}</span>\n @for (provided of accounts(); track provided) {\n <span role=\"cell\" class=\"answer\" [class.yes]=\"has(provided, feature)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ has(provided, feature) ? resources.featureYesIcon : resources.featureNoIcon }}</span>\n <span class=\"answer-text\">{{ has(provided, feature) ? resources.featureYes : resources.featureNo }}</span>\n </span>\n }\n </div>\n }\n </div>\n </section>\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}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--nol-space-4);\n align-items: start;\n}\n\n@container (min-width: 48rem) {\n .page {\n grid-template-columns: minmax(0, 1fr) 26rem;\n }\n}\n\n.accounts,\n.features {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.accounts {\n gap: var(--nol-space-3);\n}\n\n.features {\n gap: var(--nol-space-2);\n}\n\n.head {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n font-size: var(--nol-text-title);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.intro {\n margin: 0;\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.host {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-3);\n}\n\n.card {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) auto;\n gap: var(--nol-space-3);\n align-items: center;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background: var(--nol-panel);\n}\n\n.mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: var(--nol-radius-medium);\n color: var(--nol-button-text);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.mark.person {\n flex-shrink: 0;\n}\n\n.text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.card-title,\n.detail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.card-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.detail {\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.end {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.matrix {\n display: flex;\n flex-direction: column;\n}\n\n.matrix-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) repeat(var(--git-host-columns), 4.75rem);\n gap: var(--nol-space-1);\n align-items: center;\n min-height: 1.625rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n font-size: var(--nol-text-small);\n}\n\n.caps {\n font-size: 0.625rem;\n text-transform: uppercase;\n letter-spacing: var(--nol-letter-spacing-caps);\n color: var(--nol-text-muted);\n}\n\n.matrix-row > :not(:first-child) {\n text-align: center;\n}\n\n.answer {\n display: flex;\n justify-content: center;\n color: var(--nol-text-muted);\n}\n\n.answer.yes {\n color: var(--nol-status-ok);\n}\n\n.answer .material-symbols-rounded {\n font-size: 1rem;\n color: inherit;\n}\n\n.answer-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChipComponent, selector: "nol-chip", inputs: ["kind", "count"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
39
43
|
}
|
|
40
44
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAccountsComponent, decorators: [{
|
|
41
45
|
type: Component,
|
|
42
|
-
args: [{ selector: "nol-git-accounts", imports: [ButtonComponent, ChipComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <section class=\"accounts\" [attr.aria-label]=\"resources.accountsTitle\">\n <div class=\"head\">\n <h2 class=\"title\">{{ resources.accountsTitle }}</h2>\n <button type=\"button\" nol-button class=\"add\" [disabled]=\"accounts().length === 0\" [nolMenuTriggerFor]=\"hosts\">\n <span class=\"material-symbols-rounded\" nolButtonIcon aria-hidden=\"true\">{{ resources.addAccountIcon }}</span>{{ resources.addAccount }}\n </button>\n <ng-template #hosts>\n <nol-menu>\n @for (provided of accounts(); track provided) {\n <button nol-menu-item [label]=\"provided.account.host\" (triggered)=\"open(provided, resources.formatSignInTitle(provided.account.host))\"></button>\n }\n </nol-menu>\n </ng-template>\n </div>\n <p class=\"intro\">{{ resources.accountsIntro }}</p>\n @for (provided of accounts(); track provided) {\n <div class=\"host\" [attr.data-setting]=\"rowOf(provided)\">\n @for (card of provided.account.cards(); track $index) {\n <div class=\"card\">\n <span class=\"mark\" [style.background-color]=\"provided.account.markColor\" aria-hidden=\"true\">{{ provided.account.mark }}</span>\n <span class=\"text\">\n <span class=\"card-title\">{{ card.title }}</span>\n <span class=\"detail\">{{ card.detail }}</span>\n </span>\n @if (card.asksToSignIn) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"open(provided, resources.formatSignInTitle(provided.account.host))\">{{ card.label }}</button>\n } @else {\n <span class=\"end\">\n <nol-chip [kind]=\"chipOf(card)\">{{ card.label }}</nol-chip>\n <button type=\"button\" nol-icon-button [icon]=\"resources.manageAccountIcon\" [label]=\"resources.formatManageAccount(provided.account.host)\"\n [nolTooltip]=\"resources.formatManageAccount(provided.account.host)\"\n (click)=\"open(provided, resources.formatAccountRowTitle(provided.account.host))\"></button>\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"intro\">{{ resources.noHosts }}</p>\n }\n </section>\n <section class=\"features\" [attr.aria-label]=\"resources.featuresTitle\">\n <h2 class=\"title\">{{ resources.featuresTitle }}</h2>\n <div class=\"matrix\" role=\"table\" [attr.aria-label]=\"resources.featuresTitle\" [style.--git-host-columns]=\"accounts().length\">\n <div class=\"matrix-row caps\" role=\"row\">\n <span role=\"columnheader\"></span>\n @for (provided of accounts(); track provided) {\n <span role=\"columnheader\">{{ provided.account.column }}</span>\n }\n </div>\n @for (feature of resources.hostFeatures; track feature) {\n <div class=\"matrix-row\" role=\"row\">\n <span role=\"rowheader\">{{ resources.hostFeatureTitles[feature] }}</span>\n @for (provided of accounts(); track provided) {\n <span role=\"cell\" class=\"answer\" [class.yes]=\"has(provided, feature)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ has(provided, feature) ? resources.featureYesIcon : resources.featureNoIcon }}</span>\n <span class=\"answer-text\">{{ has(provided, feature) ? resources.featureYes : resources.featureNo }}</span>\n </span>\n }\n </div>\n }\n </div>\n </section>\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}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--nol-space-4);\n align-items: start;\n}\n\n@container (min-width: 48rem) {\n .page {\n grid-template-columns: minmax(0, 1fr) 26rem;\n }\n}\n\n.accounts,\n.features {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.accounts {\n gap: var(--nol-space-3);\n}\n\n.features {\n gap: var(--nol-space-2);\n}\n\n.head {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n font-size: var(--nol-text-title);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.intro {\n margin: 0;\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.host {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-3);\n}\n\n.card {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) auto;\n gap: var(--nol-space-3);\n align-items: center;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background: var(--nol-panel);\n}\n\n.mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: var(--nol-radius-medium);\n color: var(--nol-button-text);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.card-title,\n.detail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.card-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.detail {\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.end {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.matrix {\n display: flex;\n flex-direction: column;\n}\n\n.matrix-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) repeat(var(--git-host-columns), 4.75rem);\n gap: var(--nol-space-1);\n align-items: center;\n min-height: 1.625rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n font-size: var(--nol-text-small);\n}\n\n.caps {\n font-size: 0.625rem;\n text-transform: uppercase;\n letter-spacing: var(--nol-letter-spacing-caps);\n color: var(--nol-text-muted);\n}\n\n.matrix-row > :not(:first-child) {\n text-align: center;\n}\n\n.answer {\n display: flex;\n justify-content: center;\n color: var(--nol-text-muted);\n}\n\n.answer.yes {\n color: var(--nol-status-ok);\n}\n\n.answer .material-symbols-rounded {\n font-size: 1rem;\n color: inherit;\n}\n\n.answer-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n"] }]
|
|
46
|
+
args: [{ selector: "nol-git-accounts", imports: [AvatarComponent, ButtonComponent, ChipComponent, IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <section class=\"accounts\" [attr.aria-label]=\"resources.accountsTitle\">\n <div class=\"head\">\n <h2 class=\"title\">{{ resources.accountsTitle }}</h2>\n <button type=\"button\" nol-button class=\"add\" [disabled]=\"accounts().length === 0\" [nolMenuTriggerFor]=\"hosts\">\n <span class=\"material-symbols-rounded\" nolButtonIcon aria-hidden=\"true\">{{ resources.addAccountIcon }}</span>{{ resources.addAccount }}\n </button>\n <ng-template #hosts>\n <nol-menu>\n @for (provided of accounts(); track provided) {\n <button nol-menu-item [label]=\"provided.account.host\" (triggered)=\"open(provided, resources.formatSignInTitle(provided.account.host))\"></button>\n }\n </nol-menu>\n </ng-template>\n </div>\n <p class=\"intro\">{{ resources.accountsIntro }}</p>\n @for (provided of accounts(); track provided) {\n <div class=\"host\" [attr.data-setting]=\"rowOf(provided)\">\n @for (card of provided.account.cards(); track $index) {\n <div class=\"card\">\n @if (card.person; as person) {\n <span class=\"mark person\" aria-hidden=\"true\">\n <nol-avatar [name]=\"person.login\" [image]=\"person.avatar\" [initials]=\"initialOf(person)\" [colorKey]=\"person.login\" [decorative]=\"true\" />\n </span>\n } @else {\n <span class=\"mark\" [style.background-color]=\"provided.account.markColor\" aria-hidden=\"true\">{{ provided.account.mark }}</span>\n }\n <span class=\"text\">\n <span class=\"card-title\">{{ card.title }}</span>\n <span class=\"detail\">{{ card.detail }}</span>\n </span>\n @if (card.asksToSignIn) {\n <button type=\"button\" nol-button [variant]=\"secondary\" (click)=\"open(provided, resources.formatSignInTitle(provided.account.host), card.account)\">{{ card.label }}</button>\n } @else {\n <span class=\"end\">\n <nol-chip [kind]=\"chipOf(card)\">{{ card.label }}</nol-chip>\n <button type=\"button\" nol-icon-button [icon]=\"resources.manageAccountIcon\" [label]=\"resources.formatManageAccount(provided.account.host)\"\n [nolTooltip]=\"resources.formatManageAccount(provided.account.host)\"\n (click)=\"open(provided, resources.formatAccountRowTitle(provided.account.host), card.account)\"></button>\n </span>\n }\n </div>\n }\n </div>\n } @empty {\n <p class=\"intro\">{{ resources.noHosts }}</p>\n }\n </section>\n <section class=\"features\" [attr.aria-label]=\"resources.featuresTitle\">\n <h2 class=\"title\">{{ resources.featuresTitle }}</h2>\n <div class=\"matrix\" role=\"table\" [attr.aria-label]=\"resources.featuresTitle\" [style.--git-host-columns]=\"accounts().length\">\n <div class=\"matrix-row caps\" role=\"row\">\n <span role=\"columnheader\"></span>\n @for (provided of accounts(); track provided) {\n <span role=\"columnheader\">{{ provided.account.column }}</span>\n }\n </div>\n @for (feature of resources.hostFeatures; track feature) {\n <div class=\"matrix-row\" role=\"row\">\n <span role=\"rowheader\">{{ resources.hostFeatureTitles[feature] }}</span>\n @for (provided of accounts(); track provided) {\n <span role=\"cell\" class=\"answer\" [class.yes]=\"has(provided, feature)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ has(provided, feature) ? resources.featureYesIcon : resources.featureNoIcon }}</span>\n <span class=\"answer-text\">{{ has(provided, feature) ? resources.featureYes : resources.featureNo }}</span>\n </span>\n }\n </div>\n }\n </div>\n </section>\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}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: var(--nol-space-4);\n align-items: start;\n}\n\n@container (min-width: 48rem) {\n .page {\n grid-template-columns: minmax(0, 1fr) 26rem;\n }\n}\n\n.accounts,\n.features {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.accounts {\n gap: var(--nol-space-3);\n}\n\n.features {\n gap: var(--nol-space-2);\n}\n\n.head {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.title {\n flex: 1 1 auto;\n min-width: 0;\n margin: 0;\n font-size: var(--nol-text-title);\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.intro {\n margin: 0;\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.host {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-3);\n}\n\n.card {\n display: grid;\n grid-template-columns: 2rem minmax(0, 1fr) auto;\n gap: var(--nol-space-3);\n align-items: center;\n padding: var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background: var(--nol-panel);\n}\n\n.mark {\n display: flex;\n align-items: center;\n justify-content: center;\n width: 2rem;\n height: 2rem;\n border-radius: var(--nol-radius-medium);\n color: var(--nol-button-text);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.mark.person {\n flex-shrink: 0;\n}\n\n.text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.card-title,\n.detail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.card-title {\n font-weight: var(--nol-weight-emphasis);\n color: var(--nol-text-strong);\n}\n\n.detail {\n font-size: var(--nol-text-small);\n color: var(--nol-text-muted);\n}\n\n.end {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.matrix {\n display: flex;\n flex-direction: column;\n}\n\n.matrix-row {\n display: grid;\n grid-template-columns: minmax(0, 1fr) repeat(var(--git-host-columns), 4.75rem);\n gap: var(--nol-space-1);\n align-items: center;\n min-height: 1.625rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n font-size: var(--nol-text-small);\n}\n\n.caps {\n font-size: 0.625rem;\n text-transform: uppercase;\n letter-spacing: var(--nol-letter-spacing-caps);\n color: var(--nol-text-muted);\n}\n\n.matrix-row > :not(:first-child) {\n text-align: center;\n}\n\n.answer {\n display: flex;\n justify-content: center;\n color: var(--nol-text-muted);\n}\n\n.answer.yes {\n color: var(--nol-status-ok);\n}\n\n.answer .material-symbols-rounded {\n font-size: 1rem;\n color: inherit;\n}\n\n.answer-text {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n"] }]
|
|
43
47
|
}] });
|
|
44
48
|
//# sourceMappingURL=git-accounts.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-accounts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-accounts/git-accounts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-accounts/git-accounts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAe,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"git-accounts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-accounts/git-accounts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-accounts/git-accounts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,EAAe,MAAM,eAAe,CAAC;AAE/D,OAAO,EAAE,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,aAAa,EAAE,QAAQ,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAC3K,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AAItE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;;AAQlG,MAAM,OAAO,oBAAoB;IACd,OAAO,GAAkB,MAAM,CAAC,aAAa,CAAC,CAAC;IAE7C,SAAS,GAAqB,SAAS,CAAC;IACxC,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,QAAQ,GAA+C,eAAe,CAAC,QAAQ,CAAC;IAEzF,KAAK,CAAC,QAAiC;QAC/C,OAAO,GAAG,SAAS,CAAC,gBAAgB,GAAG,QAAQ,CAAC,OAAO,CAAC,EAAE,EAAE,CAAC;IAC/D,CAAC;IAES,MAAM,CAAC,IAAiB;QAChC,OAAO,IAAI,CAAC,KAAK,KAAK,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC;IAClF,CAAC;IAES,SAAS,CAAC,MAAmB;QACrC,OAAO,MAAM,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC;IAC9C,CAAC;IAES,GAAG,CAAC,QAAiC,EAAE,OAAuB;QACtE,OAAO,QAAQ,CAAC,OAAO,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC;IACrD,CAAC;IAES,IAAI,CAAC,QAAiC,EAAE,KAAa,EAAE,SAAwB,IAAI;QAC3F,MAAM,MAAM,GAAG,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,yBAAyB,CAAC,CAAC;QAC5D,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,YAAY,EAAE,QAAQ,CAAC,CAAC;QAChE,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,gBAAgB,EAAE,KAAK,CAAC,CAAC;QACjE,MAAM,CAAC,YAAY,EAAE,QAAQ,CAAC,SAAS,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC;QACpE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAAC,SAAS,CAAC,GAAG,EAAE;YAC9C,MAAM,CAAC,KAAK,EAAE,CAAC;QACjB,CAAC,CAAC,CAAC;IACL,CAAC;uGA/BU,oBAAoB;2FAApB,oBAAoB,4EC3BjC,+gIA+EA,8kGDxDY,eAAe,0LAAE,eAAe,oJAAE,aAAa,gFAAE,mBAAmB,2MAAE,aAAa,2EAAE,iBAAiB,6LAAE,oBAAoB,oJAAE,gBAAgB;;2FAI7I,oBAAoB;kBANhC,SAAS;+BACE,kBAAkB,WACnB,CAAC,eAAe,EAAE,eAAe,EAAE,aAAa,EAAE,mBAAmB,EAAE,aAAa,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,gBAAgB,CAAC"}
|
|
@@ -5,9 +5,9 @@
|
|
|
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, effect, ErrorHandler, inject, input, signal, untracked } from "@angular/core";
|
|
8
|
+
import { afterNextRender, Component, computed, DestroyRef, effect, ElementRef, ErrorHandler, inject, Injector, input, signal, untracked, viewChild } from "@angular/core";
|
|
9
9
|
import "@noldova/context.core";
|
|
10
|
-
import { WindowPartTokens } from "@noldova/desktop.window";
|
|
10
|
+
import { TimeFormatService, WindowPartTokens } from "@noldova/desktop.window";
|
|
11
11
|
import { Resources } from "../../../resources.js";
|
|
12
12
|
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
13
13
|
import { GitViewStateService } from "../../services/git-view-state.service.js";
|
|
@@ -16,13 +16,18 @@ export class GitCommandLogComponent {
|
|
|
16
16
|
context = inject(WindowPartTokens.context);
|
|
17
17
|
client = new GitRuntimeClient(this.context);
|
|
18
18
|
errors = inject(ErrorHandler);
|
|
19
|
+
injector = inject(Injector);
|
|
20
|
+
times = inject(TimeFormatService);
|
|
21
|
+
list = viewChild("list", /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
19
23
|
reads = 0;
|
|
24
|
+
height = 0;
|
|
20
25
|
resources = Resources;
|
|
21
26
|
log = signal(null, /* @ts-ignore */
|
|
22
27
|
...(ngDevMode ? [{ debugName: "log" }] : /* istanbul ignore next */ []));
|
|
23
28
|
readFailure = signal(null, /* @ts-ignore */
|
|
24
29
|
...(ngDevMode ? [{ debugName: "readFailure" }] : /* istanbul ignore next */ []));
|
|
25
|
-
commands = computed(() =>
|
|
30
|
+
commands = computed(() => this.log()?.commands ?? [], /* @ts-ignore */
|
|
26
31
|
...(ngDevMode ? [{ debugName: "commands" }] : /* istanbul ignore next */ []));
|
|
27
32
|
instance = input.required(/* @ts-ignore */
|
|
28
33
|
...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
|
|
@@ -35,13 +40,30 @@ export class GitCommandLogComponent {
|
|
|
35
40
|
});
|
|
36
41
|
onCleanup(() => void this.unwatchAsync(folder));
|
|
37
42
|
});
|
|
43
|
+
effect(() => {
|
|
44
|
+
this.commands();
|
|
45
|
+
untracked(() => {
|
|
46
|
+
const list = this.list()?.nativeElement;
|
|
47
|
+
const atEnd = Object.isUndefined(list) || GitCommandLogComponent.endsIn(list, list.clientHeight);
|
|
48
|
+
afterNextRender(() => this.keepEnd(atEnd), { injector: this.injector });
|
|
49
|
+
});
|
|
50
|
+
});
|
|
51
|
+
effect(onCleanup => {
|
|
52
|
+
const list = this.list()?.nativeElement;
|
|
53
|
+
if (Object.isUndefined(list))
|
|
54
|
+
return;
|
|
55
|
+
this.height = list.clientHeight;
|
|
56
|
+
const observer = new ResizeObserver(() => this.keepEnd(GitCommandLogComponent.endsIn(list, this.height)));
|
|
57
|
+
observer.observe(list);
|
|
58
|
+
onCleanup(() => observer.disconnect());
|
|
59
|
+
});
|
|
38
60
|
inject(DestroyRef).onDestroy(this.client.onChanged(t => {
|
|
39
61
|
if (t === this.instance())
|
|
40
62
|
void this.readAsync(t);
|
|
41
63
|
}));
|
|
42
64
|
}
|
|
43
65
|
timeOf(command) {
|
|
44
|
-
return
|
|
66
|
+
return this.times.time(command.at);
|
|
45
67
|
}
|
|
46
68
|
iconOf(command) {
|
|
47
69
|
return Object.isNull(command.exitCode) ? Resources.commandStoppedIcon : command.exitCode === 0 ? Resources.commandDoneIcon : Resources.commandFailedIcon;
|
|
@@ -49,6 +71,17 @@ export class GitCommandLogComponent {
|
|
|
49
71
|
toneOf(command) {
|
|
50
72
|
return Object.isNull(command.exitCode) ? "muted" : command.exitCode === 0 ? "ok" : "failure";
|
|
51
73
|
}
|
|
74
|
+
static endsIn(list, height) {
|
|
75
|
+
return list.scrollTop + height >= list.scrollHeight - Resources.commandLogEndSlack;
|
|
76
|
+
}
|
|
77
|
+
keepEnd(atEnd) {
|
|
78
|
+
const list = this.list()?.nativeElement;
|
|
79
|
+
if (Object.isUndefined(list))
|
|
80
|
+
return;
|
|
81
|
+
if (atEnd)
|
|
82
|
+
list.scrollTop = list.scrollHeight;
|
|
83
|
+
this.height = list.clientHeight;
|
|
84
|
+
}
|
|
52
85
|
async watchAsync(folder) {
|
|
53
86
|
try {
|
|
54
87
|
await this.client.watchAsync(folder);
|
|
@@ -82,10 +115,10 @@ export class GitCommandLogComponent {
|
|
|
82
115
|
}
|
|
83
116
|
}
|
|
84
117
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommandLogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommandLogComponent, isStandalone: true, selector: "nol-git-command-log", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<main class=\"panel\" [attr.aria-label]=\"resources.commandLogLabel\">\n
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCommandLogComponent, isStandalone: true, selector: "nol-git-command-log", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<main class=\"panel\" [attr.aria-label]=\"resources.commandLogLabel\">\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (log() !== null && commands().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.commandLogEmpty }}</p>\n } @else {\n <ol #list class=\"commands\">\n @for (command of commands(); track command.id) {\n <li class=\"command\">\n <span class=\"time muted\">{{ timeOf(command) }}</span>\n <span class=\"line mono\" [title]=\"command.line\">{{ command.line }}</span>\n <span class=\"exit\" [class]=\"'exit ' + toneOf(command)\" [title]=\"resources.formatCommandExit(command.exitCode)\">\n <span class=\"exit-icon material-symbols-rounded\" aria-hidden=\"true\">{{ iconOf(command) }}</span>\n <span class=\"exit-text\">{{ resources.formatCommandExit(command.exitCode) }}</span>\n </span>\n <span class=\"duration muted\">{{ resources.formatCommandDuration(command.milliseconds) }}</span>\n </li>\n }\n </ol>\n }\n</main>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n 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.panel {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n}\n\n.exit-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.note {\n margin: 0;\n}\n\n.time,\n.duration {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0;\n}\n\n.commands {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0;\n padding: 0;\n overflow: auto;\n list-style: none;\n}\n\n.command {\n display: grid;\n grid-template-columns: 5.5rem minmax(0, 1fr) 8rem 4rem;\n gap: 0.75rem;\n align-items: center;\n min-height: 1.75rem;\n}\n\n.line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n user-select: text;\n}\n\n.exit {\n display: flex;\n gap: 0.25rem;\n align-items: center;\n min-width: 0;\n}\n\n.exit-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.duration {\n text-align: end;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] });
|
|
86
119
|
}
|
|
87
120
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCommandLogComponent, decorators: [{
|
|
88
121
|
type: Component,
|
|
89
|
-
args: [{ selector: "nol-git-command-log", 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<main class=\"panel\" [attr.aria-label]=\"resources.commandLogLabel\">\n
|
|
90
|
-
}], ctorParameters: () => [], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
122
|
+
args: [{ selector: "nol-git-command-log", 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<main class=\"panel\" [attr.aria-label]=\"resources.commandLogLabel\">\n @if (readFailure(); as failure) {\n <p class=\"note failure\" role=\"alert\">{{ failure }}</p>\n } @else if (log() !== null && commands().length === 0) {\n <p class=\"note muted\" role=\"note\">{{ resources.commandLogEmpty }}</p>\n } @else {\n <ol #list class=\"commands\">\n @for (command of commands(); track command.id) {\n <li class=\"command\">\n <span class=\"time muted\">{{ timeOf(command) }}</span>\n <span class=\"line mono\" [title]=\"command.line\">{{ command.line }}</span>\n <span class=\"exit\" [class]=\"'exit ' + toneOf(command)\" [title]=\"resources.formatCommandExit(command.exitCode)\">\n <span class=\"exit-icon material-symbols-rounded\" aria-hidden=\"true\">{{ iconOf(command) }}</span>\n <span class=\"exit-text\">{{ resources.formatCommandExit(command.exitCode) }}</span>\n </span>\n <span class=\"duration muted\">{{ resources.formatCommandDuration(command.milliseconds) }}</span>\n </li>\n }\n </ol>\n }\n</main>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n 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.panel {\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n}\n\n.exit-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.note {\n margin: 0;\n}\n\n.time,\n.duration {\n font-size: 0.75rem;\n}\n\n.note {\n padding: 0.5rem 0;\n}\n\n.commands {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0;\n padding: 0;\n overflow: auto;\n list-style: none;\n}\n\n.command {\n display: grid;\n grid-template-columns: 5.5rem minmax(0, 1fr) 8rem 4rem;\n gap: 0.75rem;\n align-items: center;\n min-height: 1.75rem;\n}\n\n.line {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n user-select: text;\n}\n\n.exit {\n display: flex;\n gap: 0.25rem;\n align-items: center;\n min-width: 0;\n}\n\n.exit-text {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.duration {\n text-align: end;\n}\n\n.mono {\n font-family: var(--nol-font-mono);\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
123
|
+
}], ctorParameters: () => [], propDecorators: { list: [{ type: i0.ViewChild, args: ["list", { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
91
124
|
//# sourceMappingURL=git-command-log.component.js.map
|