@noldova/git.window 0.0.18 → 0.0.20
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 +11 -11
- package/src/app/components/git-account-dialog/git-account-dialog.component.js +3 -3
- package/src/app/components/git-accounts/git-accounts.component.js +3 -3
- package/src/app/components/git-accounts/git-accounts.component.js.map +1 -1
- package/src/app/components/git-agents/git-agents.component.js +3 -3
- package/src/app/components/git-branch-card/git-branch-card.component.js +6 -4
- package/src/app/components/git-branch-card/git-branch-card.component.js.map +1 -1
- package/src/app/components/git-branch-drop/git-branch-drop.component.js +3 -3
- package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +3 -3
- package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +3 -3
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +3 -3
- package/src/app/components/git-command-log/git-command-log.component.js +3 -3
- package/src/app/components/git-commit-card/git-commit-card.component.js +3 -3
- package/src/app/components/git-commit-detail/git-commit-detail.component.js +3 -3
- package/src/app/components/git-commit-detail/git-commit-detail.component.js.map +1 -1
- package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -3
- package/src/app/components/git-commit-document/git-commit-document.component.js +3 -3
- package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +3 -3
- package/src/app/components/git-conflicts/git-conflicts.component.js +3 -3
- package/src/app/components/git-dashboard/git-dashboard.component.js +3 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
- package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +3 -3
- package/src/app/components/git-file-group/git-file-group.component.js +3 -3
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +3 -3
- package/src/app/components/git-file-layout-button/git-file-layout-button.component.js.map +1 -1
- package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +3 -3
- package/src/app/components/git-history/git-history.component.js +3 -3
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-host-row/git-host-row.component.js +3 -3
- package/src/app/components/git-person-avatar/git-person-avatar.component.js +3 -3
- package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
- package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +3 -3
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +3 -3
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +3 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +3 -3
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
- package/src/app/components/git-rebase/git-rebase.component.js +3 -3
- package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +3 -3
- package/src/app/components/git-reference-text/git-reference-text.component.js +3 -3
- package/src/app/components/git-repository/git-repository.component.js +3 -3
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +3 -3
- package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +3 -3
- package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -3
- package/src/app/components/git-undo-menu/git-undo-menu.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +3 -3
- package/src/app/components/git-workspace/git-visible.directive.js +3 -3
- package/src/app/components/git-workspace/git-workspace.component.js +3 -3
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/components/git-workspace-across/git-workspace-across.component.js +3 -3
- package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +3 -3
- package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
- package/src/app/services/git-code-colors.js +3 -3
- package/src/app/services/git-last-write-undo.js +10 -0
- package/src/app/services/git-last-write-undo.js.map +1 -1
- package/src/app/services/git-view-state.service.js +15 -4
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/resources.js +3 -0
- 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.20",
|
|
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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"registry": "https://registry.npmjs.org/"
|
|
32
32
|
},
|
|
33
33
|
"peerDependencies": {
|
|
34
|
-
"@angular/cdk": ">=22.3.
|
|
35
|
-
"@angular/common": ">=22.3.
|
|
36
|
-
"@angular/core": ">=22.3.
|
|
37
|
-
"@angular/forms": ">=22.3.
|
|
34
|
+
"@angular/cdk": ">=22.3.2 <23.0.0",
|
|
35
|
+
"@angular/common": ">=22.3.2 <23.0.0",
|
|
36
|
+
"@angular/core": ">=22.3.2 <23.0.0",
|
|
37
|
+
"@angular/forms": ">=22.3.2 <23.0.0",
|
|
38
38
|
"@noldova/code.editor": ">=0.0.3 <0.1.0",
|
|
39
39
|
"@noldova/code.editor.angular": ">=0.0.3 <0.1.0",
|
|
40
40
|
"@noldova/code.editor.merge.angular": ">=0.0.3 <0.1.0",
|
|
@@ -42,9 +42,9 @@
|
|
|
42
42
|
"@noldova/context.core": ">=0.0.18 <0.1.0",
|
|
43
43
|
"@noldova/context.exceptions": ">=0.0.18 <0.1.0",
|
|
44
44
|
"@noldova/context.json": ">=0.0.18 <0.1.0",
|
|
45
|
-
"@noldova/desktop.protocol": ">=0.0.
|
|
46
|
-
"@noldova/desktop.window": ">=0.0.
|
|
47
|
-
"@noldova/ui.components.angular": ">=0.0.
|
|
45
|
+
"@noldova/desktop.protocol": ">=0.0.30 <0.1.0",
|
|
46
|
+
"@noldova/desktop.window": ">=0.0.30 <0.1.0",
|
|
47
|
+
"@noldova/ui.components.angular": ">=0.0.56 <0.1.0"
|
|
48
48
|
},
|
|
49
49
|
"peerDependenciesMeta": {
|
|
50
50
|
"@angular/cdk": {
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@noldova/git.hosting.protocol": "0.0.
|
|
95
|
-
"@noldova/git.protocol": "0.0.
|
|
94
|
+
"@noldova/git.hosting.protocol": "0.0.20",
|
|
95
|
+
"@noldova/git.protocol": "0.0.20"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "a1331ddc8da08a9bb8640578242ef3ae6f200b39"
|
|
98
98
|
}
|
|
@@ -23,10 +23,10 @@ export class GitAccountDialogComponent {
|
|
|
23
23
|
chosen = input(null, /* @ts-ignore */
|
|
24
24
|
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
25
25
|
closed = output();
|
|
26
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
27
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.
|
|
26
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAccountDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
27
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", 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"] }] });
|
|
28
28
|
}
|
|
29
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
29
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAccountDialogComponent, decorators: [{
|
|
30
30
|
type: Component,
|
|
31
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" }]
|
|
32
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"] }] } });
|
|
@@ -38,10 +38,10 @@ export class GitAccountsComponent {
|
|
|
38
38
|
dialog.close();
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
42
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAccountsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", 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 margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\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", "radius"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAccountsComponent, decorators: [{
|
|
45
45
|
type: Component,
|
|
46
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 margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\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"] }]
|
|
47
47
|
}] });
|
|
@@ -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;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,iqGDxDY,eAAe,0LAAE,eAAe,oJAAE,aAAa,gFAAE,mBAAmB,2MAAE,aAAa,
|
|
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,iqGDxDY,eAAe,0LAAE,eAAe,oJAAE,aAAa,gFAAE,mBAAmB,2MAAE,aAAa,qFAAE,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"}
|
|
@@ -43,10 +43,10 @@ export class GitAgentsComponent {
|
|
|
43
43
|
return fallback;
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
47
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
46
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAgentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitAgentsComponent, isStandalone: true, selector: "nol-git-agents", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (hasProvider()) {\n <nol-section-header [label]=\"resources.agentsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n @if (worktrees() > 0) {\n <span nolSectionHeaderDetail class=\"worktrees\">{{ resources.formatAgentWorktrees(worktrees()) }}</span>\n }\n </nol-section-header>\n @if (isOpen()) {\n @for (run of runs(); track run.row.key) {\n <button type=\"button\" class=\"row run\" [title]=\"run.row.worktree\" (click)=\"open(run)\">\n <span class=\"ms agent\">{{ resources.agentIcon }}</span>\n <span class=\"grow name\">{{ run.row.name }}</span>\n <span [class]=\"'ms state ' + run.row.state\" role=\"img\" [attr.aria-label]=\"labelOf(run.row.state)\">{{ iconOf(run.row.state) }}</span>\n </button>\n } @empty {\n <div class=\"row small muted note\">{{ resources.agentsEmpty }}</div>\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.note:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.agent {\n color: var(--nol-author-8);\n}\n\n.state.WaitingForYou {\n color: var(--nol-warning);\n}\n\n.state.Done {\n color: var(--nol-status-ok);\n}\n\n.state.Failed {\n color: var(--nol-status-failed);\n}\n\n.state.Working {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }] });
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitAgentsComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{ selector: "nol-git-agents", imports: [SectionHeaderComponent, SectionHeaderDetailDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (hasProvider()) {\n <nol-section-header [label]=\"resources.agentsLabel\" [uppercase]=\"true\" [collapsible]=\"true\" [caretPosition]=\"caretStart\" [(expanded)]=\"isOpen\">\n @if (worktrees() > 0) {\n <span nolSectionHeaderDetail class=\"worktrees\">{{ resources.formatAgentWorktrees(worktrees()) }}</span>\n }\n </nol-section-header>\n @if (isOpen()) {\n @for (run of runs(); track run.row.key) {\n <button type=\"button\" class=\"row run\" [title]=\"run.row.worktree\" (click)=\"open(run)\">\n <span class=\"ms agent\">{{ resources.agentIcon }}</span>\n <span class=\"grow name\">{{ run.row.name }}</span>\n <span [class]=\"'ms state ' + run.row.state\" role=\"img\" [attr.aria-label]=\"labelOf(run.row.state)\">{{ iconOf(run.row.state) }}</span>\n </button>\n } @empty {\n <div class=\"row small muted note\">{{ resources.agentsEmpty }}</div>\n }\n }\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: contents;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.note:hover {\n background: transparent;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n text-align: start;\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.agent {\n color: var(--nol-author-8);\n}\n\n.state.WaitingForYou {\n color: var(--nol-warning);\n}\n\n.state.Done {\n color: var(--nol-status-ok);\n}\n\n.state.Failed {\n color: var(--nol-status-failed);\n}\n\n.state.Working {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
52
52
|
}], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }] } });
|
|
@@ -46,8 +46,10 @@ export class GitBranchCardComponent {
|
|
|
46
46
|
effect(() => this.filter()?.nativeElement.focus());
|
|
47
47
|
}
|
|
48
48
|
toggle() {
|
|
49
|
-
if (this.state.busy())
|
|
49
|
+
if (this.state.busy()) {
|
|
50
|
+
void this.state.sayRunningAsync(this.resources.switchBranchLabel);
|
|
50
51
|
return;
|
|
52
|
+
}
|
|
51
53
|
if (this.isOpen()) {
|
|
52
54
|
this.close();
|
|
53
55
|
return;
|
|
@@ -117,10 +119,10 @@ export class GitBranchCardComponent {
|
|
|
117
119
|
close() {
|
|
118
120
|
this.isOpen.set(false);
|
|
119
121
|
}
|
|
120
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
121
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitBranchCardComponent, isStandalone: true, selector: "nol-git-branch-card", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "document:pointerdown": "closeOutside($event)", "focusout": "closeOnLeave($event)", "keydown.escape": "escape($event)" } }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filter", first: true, predicate: ["filter"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"line\">\n <button #trigger type=\"button\" class=\"name\" [class.open]=\"isOpen()\" [attr.aria-expanded]=\"isOpen()\" aria-haspopup=\"listbox\" [attr.aria-label]=\"resources.formatSwitchBranch(name())\"\n [nolTooltip]=\"resources.switchBranchLabel\" [attr.aria-disabled]=\"state.busy()\" (click)=\"toggle()\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n <span class=\"branch\" data-truncates [nolTooltip]=\"name()\" [nolTooltipTruncated]=\"true\">{{ name() }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isOpen() ? resources.menuOpenIcon : resources.menuClosedIcon }}</span>\n </button>\n <nol-git-undo-menu class=\"recent-actions\" />\n <span class=\"spacer\"></span>\n @if (status().branch !== null) {\n @if (upstream(); as upstream) {\n <button nol-button type=\"button\" class=\"pull\" [variant]=\"secondary\" [disabled]=\"!state.canPull()\"\n [nolTooltip]=\"resources.formatPullHooks(state.pullHooks())\" (pointerenter)=\"loadPullHooks()\" (focus)=\"loadPullHooks()\" (click)=\"pull()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.pullIcon }}</span>{{ resources.formatPull(upstream.behind) }}\n </button>\n <button nol-button type=\"button\" class=\"push\" [variant]=\"secondary\" [disabled]=\"!state.canPush()\" (click)=\"push()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.pushIcon }}</span>{{ resources.formatPush(upstream.ahead) }}\n </button>\n } @else {\n <button nol-button type=\"button\" class=\"push\" [variant]=\"secondary\" [disabled]=\"!state.canPush()\" (click)=\"push()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.publishIcon }}</span>{{ resources.publishLabel }}\n </button>\n }\n }\n</div>\n<div class=\"upstream\">\n @if (upstream(); as upstream) {\n @if (upstream.gone) {\n <span>{{ resources.formatUpstreamGone(upstream.name) }}</span>\n } @else {\n <span>{{ upstream.name }}</span>\n <span>{{ resources.formatAheadBehind(upstream.ahead, upstream.behind) }}</span>\n }\n } @else {\n <span>{{ resources.noUpstream }}</span>\n }\n</div>\n@if (isOpen()) {\n <div class=\"menu\">\n <input #filter class=\"filter\" type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" aria-controls=\"git-branch-list\"\n [attr.aria-label]=\"resources.branchPickerLabel\" [attr.aria-activedescendant]=\"items().length > 0 ? resources.formatBranchOptionId(active()) : null\"\n [placeholder]=\"resources.branchPickerLabel\" [ngModel]=\"query()\" (ngModelChange)=\"find($event)\" (keydown)=\"onKey($event)\" />\n <div id=\"git-branch-list\" class=\"list\" role=\"listbox\" [attr.aria-label]=\"resources.branchPickerLabel\">\n @for (item of items(); track resources.formatBranchItemKey(item.kind, item.title); let index = $index) {\n @let previous = items()[index - 1];\n @if (item.kind !== kinds.Create && previous?.kind !== item.kind) {\n @if (previous?.kind === kinds.Create) {\n <div class=\"separator\" role=\"presentation\"></div>\n }\n <div class=\"label\" role=\"presentation\">{{ item.kind === kinds.Local ? resources.localBranchesLabel : resources.remoteBranchesLabel }}</div>\n }\n <div [id]=\"resources.formatBranchOptionId(index)\" class=\"item\" role=\"option\" [class.active]=\"index === active()\" [class.current]=\"item.isCurrent\"\n [attr.aria-selected]=\"index === active()\" (pointerdown)=\"$event.preventDefault()\" (pointerenter)=\"chosen.set(index)\" (click)=\"choose(item)\">\n <span class=\"material-symbols-rounded\" [class.hidden]=\"item.kind !== kinds.Create && !item.isCurrent\" aria-hidden=\"true\">{{ item.kind === kinds.Create ? resources.createBranchIcon : resources.currentBranchIcon }}</span>\n <span class=\"title\" data-truncates [nolTooltip]=\"item.title\" [nolTooltipTruncated]=\"true\">{{ item.title }}</span>\n </div>\n }\n </div>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: grid;\n gap: var(--nol-tab-part-gap);\n min-width: 0;\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.line {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.name {\n display: inline-flex;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-pointer-target);\n margin-left: calc(var(--nol-space-1) * -1);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n color: var(--nol-text);\n font: inherit;\n}\n\n.name:hover:not([aria-disabled=\"true\"]),\n.name.open {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.branch {\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.recent-actions {\n display: flex;\n flex: none;\n}\n\n.spacer {\n flex: 1;\n}\n\n.pull,\n.push {\n flex: none;\n}\n\n.upstream {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n align-items: center;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.octicon {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.menu {\n position: absolute;\n z-index: 2;\n top: calc(var(--nol-space-2) + var(--nol-button-height) + var(--nol-tab-part-gap));\n right: var(--nol-space-1);\n left: var(--nol-space-1);\n padding: var(--nol-menu-padding);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n}\n\n.filter {\n box-sizing: border-box;\n width: calc(100% - var(--nol-space-1));\n height: var(--nol-field-height);\n margin: var(--nol-tab-inset) var(--nol-tab-inset) var(--nol-space-1);\n padding: 0 var(--nol-field-padding);\n border: var(--nol-border-width) solid var(--nol-accent);\n border-radius: var(--nol-radius-small);\n outline: none;\n background-color: var(--nol-input);\n color: var(--nol-text);\n font: inherit;\n}\n\n.filter::placeholder {\n color: var(--nol-placeholder);\n}\n\n.list {\n max-height: var(--nol-list-max-height);\n overflow-y: auto;\n}\n\n.item {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n height: var(--nol-menu-item-height);\n padding: 0 var(--nol-menu-item-padding);\n border-radius: var(--nol-radius-small);\n white-space: nowrap;\n cursor: pointer;\n}\n\n.item:hover:not(.active) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.item.current,\n.item.active {\n --nol-text-muted: var(--nol-list-active-text);\n\n background-color: var(--nol-list-active);\n color: var(--nol-list-active-text);\n}\n\n.item.active {\n @media (forced-colors: active) {\n --nol-text: HighlightText;\n --nol-text-muted: HighlightText;\n --nol-menu-text: HighlightText;\n --nol-icon-color: HighlightText;\n --nol-list-active-text: HighlightText;\n\n background-color: Highlight;\n color: HighlightText;\n forced-color-adjust: none;\n }\n}\n\n.item .hidden {\n visibility: hidden;\n}\n\n.item .title {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label {\n padding: var(--nol-menu-label-padding);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.separator {\n height: var(--nol-border-width);\n margin: var(--nol-menu-separator-spacing) 0;\n background-color: var(--nol-menu-separator);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { 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: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
122
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBranchCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
123
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitBranchCardComponent, isStandalone: true, selector: "nol-git-branch-card", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "document:pointerdown": "closeOutside($event)", "focusout": "closeOnLeave($event)", "keydown.escape": "escape($event)" } }, viewQueries: [{ propertyName: "trigger", first: true, predicate: ["trigger"], descendants: true, isSignal: true }, { propertyName: "filter", first: true, predicate: ["filter"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"line\">\n <button #trigger type=\"button\" class=\"name\" [class.open]=\"isOpen()\" [attr.aria-expanded]=\"isOpen()\" aria-haspopup=\"listbox\" [attr.aria-label]=\"resources.formatSwitchBranch(name())\"\n [nolTooltip]=\"resources.switchBranchLabel\" [attr.aria-disabled]=\"state.busy()\" (click)=\"toggle()\">\n <svg class=\"octicon\" viewBox=\"0 0 16 16\" aria-hidden=\"true\"><path [attr.d]=\"resources.branchIconPath\" /></svg>\n <span class=\"branch\" data-truncates [nolTooltip]=\"name()\" [nolTooltipTruncated]=\"true\">{{ name() }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isOpen() ? resources.menuOpenIcon : resources.menuClosedIcon }}</span>\n </button>\n <nol-git-undo-menu class=\"recent-actions\" />\n <span class=\"spacer\"></span>\n @if (status().branch !== null) {\n @if (upstream(); as upstream) {\n <button nol-button type=\"button\" class=\"pull\" [variant]=\"secondary\" [disabled]=\"!state.canPull()\"\n [nolTooltip]=\"resources.formatPullHooks(state.pullHooks())\" (pointerenter)=\"loadPullHooks()\" (focus)=\"loadPullHooks()\" (click)=\"pull()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.pullIcon }}</span>{{ resources.formatPull(upstream.behind) }}\n </button>\n <button nol-button type=\"button\" class=\"push\" [variant]=\"secondary\" [disabled]=\"!state.canPush()\" (click)=\"push()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.pushIcon }}</span>{{ resources.formatPush(upstream.ahead) }}\n </button>\n } @else {\n <button nol-button type=\"button\" class=\"push\" [variant]=\"secondary\" [disabled]=\"!state.canPush()\" (click)=\"push()\">\n <span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.publishIcon }}</span>{{ resources.publishLabel }}\n </button>\n }\n }\n</div>\n<div class=\"upstream\">\n @if (upstream(); as upstream) {\n @if (upstream.gone) {\n <span>{{ resources.formatUpstreamGone(upstream.name) }}</span>\n } @else {\n <span>{{ upstream.name }}</span>\n <span>{{ resources.formatAheadBehind(upstream.ahead, upstream.behind) }}</span>\n }\n } @else {\n <span>{{ resources.noUpstream }}</span>\n }\n</div>\n@if (isOpen()) {\n <div class=\"menu\">\n <input #filter class=\"filter\" type=\"text\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" aria-controls=\"git-branch-list\"\n [attr.aria-label]=\"resources.branchPickerLabel\" [attr.aria-activedescendant]=\"items().length > 0 ? resources.formatBranchOptionId(active()) : null\"\n [placeholder]=\"resources.branchPickerLabel\" [ngModel]=\"query()\" (ngModelChange)=\"find($event)\" (keydown)=\"onKey($event)\" />\n <div id=\"git-branch-list\" class=\"list\" role=\"listbox\" [attr.aria-label]=\"resources.branchPickerLabel\">\n @for (item of items(); track resources.formatBranchItemKey(item.kind, item.title); let index = $index) {\n @let previous = items()[index - 1];\n @if (item.kind !== kinds.Create && previous?.kind !== item.kind) {\n @if (previous?.kind === kinds.Create) {\n <div class=\"separator\" role=\"presentation\"></div>\n }\n <div class=\"label\" role=\"presentation\">{{ item.kind === kinds.Local ? resources.localBranchesLabel : resources.remoteBranchesLabel }}</div>\n }\n <div [id]=\"resources.formatBranchOptionId(index)\" class=\"item\" role=\"option\" [class.active]=\"index === active()\" [class.current]=\"item.isCurrent\"\n [attr.aria-selected]=\"index === active()\" (pointerdown)=\"$event.preventDefault()\" (pointerenter)=\"chosen.set(index)\" (click)=\"choose(item)\">\n <span class=\"material-symbols-rounded\" [class.hidden]=\"item.kind !== kinds.Create && !item.isCurrent\" aria-hidden=\"true\">{{ item.kind === kinds.Create ? resources.createBranchIcon : resources.currentBranchIcon }}</span>\n <span class=\"title\" data-truncates [nolTooltip]=\"item.title\" [nolTooltipTruncated]=\"true\">{{ item.title }}</span>\n </div>\n }\n </div>\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: grid;\n gap: var(--nol-tab-part-gap);\n min-width: 0;\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.line {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.name {\n display: inline-flex;\n gap: var(--nol-space-1);\n align-items: center;\n min-width: 0;\n min-height: var(--nol-pointer-target);\n margin-left: calc(var(--nol-space-1) * -1);\n padding: 0 var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n color: var(--nol-text);\n font: inherit;\n}\n\n.name:hover:not([aria-disabled=\"true\"]),\n.name.open {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.branch {\n overflow: hidden;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.recent-actions {\n display: flex;\n flex: none;\n}\n\n.spacer {\n flex: 1;\n}\n\n.pull,\n.push {\n flex: none;\n}\n\n.upstream {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n align-items: center;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.octicon {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n fill: currentcolor;\n}\n\n.menu {\n position: absolute;\n z-index: 2;\n top: calc(var(--nol-space-2) + var(--nol-button-height) + var(--nol-tab-part-gap));\n right: var(--nol-space-1);\n left: var(--nol-space-1);\n padding: var(--nol-menu-padding);\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-menu-text);\n}\n\n.filter {\n box-sizing: border-box;\n width: calc(100% - var(--nol-space-1));\n height: var(--nol-field-height);\n margin: var(--nol-tab-inset) var(--nol-tab-inset) var(--nol-space-1);\n padding: 0 var(--nol-field-padding);\n border: var(--nol-border-width) solid var(--nol-accent);\n border-radius: var(--nol-radius-small);\n outline: none;\n background-color: var(--nol-input);\n color: var(--nol-text);\n font: inherit;\n}\n\n.filter::placeholder {\n color: var(--nol-placeholder);\n}\n\n.list {\n max-height: var(--nol-list-max-height);\n overflow-y: auto;\n}\n\n.item {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n height: var(--nol-menu-item-height);\n padding: 0 var(--nol-menu-item-padding);\n border-radius: var(--nol-radius-small);\n white-space: nowrap;\n cursor: pointer;\n}\n\n.item:hover:not(.active) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.item.current,\n.item.active {\n --nol-text-muted: var(--nol-list-active-text);\n\n background-color: var(--nol-list-active);\n color: var(--nol-list-active-text);\n}\n\n.item.active {\n @media (forced-colors: active) {\n --nol-text: HighlightText;\n --nol-text-muted: HighlightText;\n --nol-menu-text: HighlightText;\n --nol-icon-color: HighlightText;\n --nol-list-active-text: HighlightText;\n\n background-color: Highlight;\n color: HighlightText;\n forced-color-adjust: none;\n }\n}\n\n.item .hidden {\n visibility: hidden;\n}\n\n.item .title {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label {\n padding: var(--nol-menu-label-padding);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.separator {\n height: var(--nol-border-width);\n margin: var(--nol-menu-separator-spacing) 0;\n background-color: var(--nol-menu-separator);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { 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: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
122
124
|
}
|
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBranchCardComponent, decorators: [{
|
|
124
126
|
type: Component,
|
|
125
127
|
args: [{ selector: "nol-git-branch-card", imports: [ButtonComponent, FormsModule, GitUndoMenuComponent, TooltipDirective], host: {
|
|
126
128
|
"(document:pointerdown)": "closeOutside($event)",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-branch-card.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-branch-card/git-branch-card.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-branch-card/git-branch-card.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAe,SAAS,EACzG,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAElG,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,iBAAiB,EAAE,MAAM,sCAAsC,CAAC;AACzE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,oBAAoB,EAAE,MAAM,6CAA6C,CAAC;;;AAanF,MAAM,OAAO,sBAAsB;IAChB,OAAO,GAA4B,MAAM,CAAC,UAAU,CAAC,CAAC;IACtD,OAAO,GAA0C,SAAS,CAAC,QAAQ,CAAgC,SAAS;gFAAC,CAAC;IAC9G,MAAM,GAAqD,SAAS,CAA+B,QAAQ;+EAAC,CAAC;IAE3G,SAAS,GAAqB,SAAS,CAAC;IACxC,KAAK,GAA6B,iBAAiB,CAAC;IACpD,SAAS,GAAkB,aAAa,CAAC,SAAS,CAAC;IACnD,KAAK,GAAwB,MAAM,CAAC,mBAAmB,CAAC,CAAC;IACzD,MAAM,GAA4B,MAAM,CAAC,KAAK;+EAAC,CAAC;IAChD,KAAK,GAA2B,MAAM,CAAC,EAAE;8EAAC,CAAC;IAC3C,MAAM,GAAkC,MAAM,CAAC,IAAI;+EAAC,CAAC;IACrD,IAAI,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,MAAM,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,eAAe,CAAC;6EAAC,CAAC;IAC9H,QAAQ,GAAkC,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,QAAQ;iFAAC,CAAC;IACjF,KAAK,GAAyC,QAAQ,CAAC,GAAG,EAAE,CAAC,iBAAiB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,EAAE,CAAC;8EAAC,CAAC;IACpI,MAAM,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC;+EAAC,CAAC;IAEnH,MAAM,GAA2B,KAAK,CAAC,QAAQ;+EAAa,CAAC;IAE7E;QACE,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,aAAa,CAAC,KAAK,EAAE,CAAC,CAAC;IACrD,CAAC;IAES,MAAM;QACd,IAAI,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE;
|
|
1
|
+
{"version":3,"file":"git-branch-card.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-branch-card/git-branch-card.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-branch-card/git-branch-card.component.html"],"names":[],"mappings":"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"}
|
|
@@ -74,10 +74,10 @@ export class GitBranchDropComponent {
|
|
|
74
74
|
event.preventDefault();
|
|
75
75
|
this.closed.emit();
|
|
76
76
|
}
|
|
77
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
78
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
77
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBranchDropComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
78
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitBranchDropComponent, isStandalone: true, selector: "nol-git-branch-drop", inputs: { drop: { classPropertyName: "drop", publicName: "drop", isSignal: true, isRequired: true, transformFunction: null }, prediction: { classPropertyName: "prediction", publicName: "prediction", isSignal: true, isRequired: true, transformFunction: null }, checking: { classPropertyName: "checking", publicName: "checking", isSignal: true, isRequired: true, transformFunction: null }, request: { classPropertyName: "request", publicName: "request", isSignal: true, isRequired: true, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: true, transformFunction: null }, left: { classPropertyName: "left", publicName: "left", isSignal: true, isRequired: true, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { merged: "merged", switchMerged: "switchMerged", rebased: "rebased", requested: "requested", closed: "closed" }, viewQueries: [{ propertyName: "box", first: true, predicate: ["box"], descendants: true, isSignal: true }], ngImport: i0, template: "<div class=\"backdrop\" (click)=\"closed.emit()\" (contextmenu)=\"close($event)\"></div>\n<div #box class=\"drop\" role=\"dialog\" [attr.aria-label]=\"resources.formatDropTitle(drop().source, drop().target)\" [style.left.px]=\"left()\" [style.top.px]=\"top()\"\n (keydown.escape)=\"close($event)\">\n @if (heading(); as shown) {\n <div class=\"heading\" [class]=\"'heading ' + shown.tone\" role=\"status\">\n <span class=\"ms\" aria-hidden=\"true\">{{ shown.icon }}</span><span class=\"strong\">{{ shown.text }}</span>\n </div>\n }\n <p class=\"detail\">{{ detail() }}</p>\n @let merge = mergeLabel();\n <button type=\"button\" class=\"option merge\" [class.switching]=\"!drop().canMerge\" [disabled]=\"!(drop().canMerge || drop().canSwitchAndMerge) || busy()\"\n [title]=\"drop().canMerge || drop().canSwitchAndMerge ? merge : resources.formatDropMergeNeedsSwitch(drop().target)\"\n (click)=\"drop().canMerge ? merged.emit() : switchMerged.emit()\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span><span class=\"grow\">{{ merge }}</span>\n </button>\n <button type=\"button\" class=\"option rebase\" [disabled]=\"!drop().canRebase\"\n [title]=\"drop().canRebase ? resources.formatDropRebase(drop().source, drop().target) : resources.formatDropRebaseNeedsSwitch(drop().source)\" (click)=\"rebased.emit()\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.dropRebaseIcon }}</span><span class=\"grow\">{{ resources.formatDropRebase(drop().source, drop().target) }}</span>\n </button>\n @let requestUrl = request();\n <button type=\"button\" class=\"option request\" [disabled]=\"requestUrl === null\"\n [title]=\"requestUrl === null ? resources.formatDropRequestNeedsHost(drop().source, drop().target) : resources.formatDropRequest(drop().target)\"\n (click)=\"requestUrl !== null && requested.emit(requestUrl)\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.dropRequestIcon }}</span><span class=\"grow\">{{ resources.formatDropRequest(drop().target) }}</span>\n </button>\n</div>\n", styles: [".backdrop {\n position: fixed;\n z-index: 10;\n inset: 0;\n}\n\n.drop {\n display: flex;\n position: fixed;\n z-index: 11;\n flex-direction: column;\n box-sizing: border-box;\n gap: 0.5rem;\n width: 24rem;\n max-width: calc(100vw - 1rem);\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.5rem;\n background: var(--nol-menu);\n box-shadow: 0 0 0.75rem rgb(0 0 0 / 22%);\n}\n\n.heading {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.heading.ok .ms {\n color: var(--nol-status-ok);\n}\n\n.heading.warning .ms {\n color: var(--nol-warning);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 600;\n}\n\n.detail {\n margin: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.option {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.option:enabled:hover,\n.option:focus-visible {\n background: var(--nol-hover);\n}\n\n.option:disabled {\n color: var(--nol-text-muted);\n cursor: default;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n"] });
|
|
79
79
|
}
|
|
80
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
80
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBranchDropComponent, decorators: [{
|
|
81
81
|
type: Component,
|
|
82
82
|
args: [{ selector: "nol-git-branch-drop", template: "<div class=\"backdrop\" (click)=\"closed.emit()\" (contextmenu)=\"close($event)\"></div>\n<div #box class=\"drop\" role=\"dialog\" [attr.aria-label]=\"resources.formatDropTitle(drop().source, drop().target)\" [style.left.px]=\"left()\" [style.top.px]=\"top()\"\n (keydown.escape)=\"close($event)\">\n @if (heading(); as shown) {\n <div class=\"heading\" [class]=\"'heading ' + shown.tone\" role=\"status\">\n <span class=\"ms\" aria-hidden=\"true\">{{ shown.icon }}</span><span class=\"strong\">{{ shown.text }}</span>\n </div>\n }\n <p class=\"detail\">{{ detail() }}</p>\n @let merge = mergeLabel();\n <button type=\"button\" class=\"option merge\" [class.switching]=\"!drop().canMerge\" [disabled]=\"!(drop().canMerge || drop().canSwitchAndMerge) || busy()\"\n [title]=\"drop().canMerge || drop().canSwitchAndMerge ? merge : resources.formatDropMergeNeedsSwitch(drop().target)\"\n (click)=\"drop().canMerge ? merged.emit() : switchMerged.emit()\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span><span class=\"grow\">{{ merge }}</span>\n </button>\n <button type=\"button\" class=\"option rebase\" [disabled]=\"!drop().canRebase\"\n [title]=\"drop().canRebase ? resources.formatDropRebase(drop().source, drop().target) : resources.formatDropRebaseNeedsSwitch(drop().source)\" (click)=\"rebased.emit()\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.dropRebaseIcon }}</span><span class=\"grow\">{{ resources.formatDropRebase(drop().source, drop().target) }}</span>\n </button>\n @let requestUrl = request();\n <button type=\"button\" class=\"option request\" [disabled]=\"requestUrl === null\"\n [title]=\"requestUrl === null ? resources.formatDropRequestNeedsHost(drop().source, drop().target) : resources.formatDropRequest(drop().target)\"\n (click)=\"requestUrl !== null && requested.emit(requestUrl)\">\n <span class=\"ms\" aria-hidden=\"true\">{{ resources.dropRequestIcon }}</span><span class=\"grow\">{{ resources.formatDropRequest(drop().target) }}</span>\n </button>\n</div>\n", styles: [".backdrop {\n position: fixed;\n z-index: 10;\n inset: 0;\n}\n\n.drop {\n display: flex;\n position: fixed;\n z-index: 11;\n flex-direction: column;\n box-sizing: border-box;\n gap: 0.5rem;\n width: 24rem;\n max-width: calc(100vw - 1rem);\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: 0.5rem;\n background: var(--nol-menu);\n box-shadow: 0 0 0.75rem rgb(0 0 0 / 22%);\n}\n\n.heading {\n display: flex;\n align-items: center;\n gap: 0.5rem;\n}\n\n.heading.ok .ms {\n color: var(--nol-status-ok);\n}\n\n.heading.warning .ms {\n color: var(--nol-warning);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: 600;\n}\n\n.detail {\n margin: 0;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.option {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.option:enabled:hover,\n.option:focus-visible {\n background: var(--nol-hover);\n}\n\n.option:disabled {\n color: var(--nol-text-muted);\n cursor: default;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.ms {\n display: inline-block;\n flex: none;\n overflow: hidden;\n width: 1rem;\n height: 1rem;\n color: var(--nol-icon-color);\n font-family: \"Material Symbols Rounded\";\n font-size: 1rem;\n font-weight: 400;\n font-style: normal;\n line-height: 1;\n white-space: nowrap;\n font-feature-settings: \"liga\";\n}\n"] }]
|
|
83
83
|
}], ctorParameters: () => [], propDecorators: { box: [{ type: i0.ViewChild, args: ["box", { isSignal: true }] }], drop: [{ type: i0.Input, args: [{ isSignal: true, alias: "drop", required: true }] }], prediction: [{ type: i0.Input, args: [{ isSignal: true, alias: "prediction", required: true }] }], checking: [{ type: i0.Input, args: [{ isSignal: true, alias: "checking", required: true }] }], request: [{ type: i0.Input, args: [{ isSignal: true, alias: "request", required: true }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: true }] }], left: [{ type: i0.Input, args: [{ isSignal: true, alias: "left", required: true }] }], top: [{ type: i0.Input, args: [{ isSignal: true, alias: "top", required: true }] }], merged: [{ type: i0.Output, args: ["merged"] }], switchMerged: [{ type: i0.Output, args: ["switchMerged"] }], rebased: [{ type: i0.Output, args: ["rebased"] }], requested: [{ type: i0.Output, args: ["requested"] }], closed: [{ type: i0.Output, args: ["closed"] }] } });
|
|
@@ -28,10 +28,10 @@ export class GitBulkBranchDialogComponent {
|
|
|
28
28
|
if (this.isName())
|
|
29
29
|
this.answered.emit(this.name());
|
|
30
30
|
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBulkBranchDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitBulkBranchDialogComponent, isStandalone: true, selector: "nol-git-bulk-branch-dialog", inputs: { repositories: { classPropertyName: "repositories", publicName: "repositories", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(null)\">\n <input nol-text-field class=\"name\" type=\"text\" name=\"branch\" [attr.aria-label]=\"resources.branchNameLabel\" [placeholder]=\"resources.branchNameLabel\"\n [attr.aria-invalid]=\"name().length > 0 && !isName()\" [ngModel]=\"name()\" (ngModelChange)=\"name.set($event)\" (keydown.enter)=\"create()\" />\n @if (name().length > 0 && !isName()) {\n <p class=\"small refused\" role=\"alert\">{{ resources.branchNameRefused }}</p>\n }\n <p class=\"text\">{{ resources.newBranchText }}</p>\n <ul class=\"targets\">\n @for (repository of repositories(); track $index) {\n <li>{{ repository }}</li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"create\" [disabled]=\"!isName()\" (click)=\"create()\">{{ resources.createLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(null)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.name {\n display: block;\n box-sizing: border-box;\n width: 100%;\n}\n\n.refused {\n margin: 0.25rem 0 0;\n color: var(--nol-error);\n}\n\n.text {\n margin: 0.75rem 0 0;\n}\n\n.targets {\n display: grid;\n gap: 0.25rem;\n margin: 0.5rem 0 0;\n padding-inline-start: 1.25rem;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { 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: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }] });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBulkBranchDialogComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: "nol-git-bulk-branch-dialog", imports: [ButtonComponent, DialogComponent, FormsModule, TextFieldComponent], 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)=\"answered.emit(null)\">\n <input nol-text-field class=\"name\" type=\"text\" name=\"branch\" [attr.aria-label]=\"resources.branchNameLabel\" [placeholder]=\"resources.branchNameLabel\"\n [attr.aria-invalid]=\"name().length > 0 && !isName()\" [ngModel]=\"name()\" (ngModelChange)=\"name.set($event)\" (keydown.enter)=\"create()\" />\n @if (name().length > 0 && !isName()) {\n <p class=\"small refused\" role=\"alert\">{{ resources.branchNameRefused }}</p>\n }\n <p class=\"text\">{{ resources.newBranchText }}</p>\n <ul class=\"targets\">\n @for (repository of repositories(); track $index) {\n <li>{{ repository }}</li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"create\" [disabled]=\"!isName()\" (click)=\"create()\">{{ resources.createLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(null)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.name {\n display: block;\n box-sizing: border-box;\n width: 100%;\n}\n\n.refused {\n margin: 0.25rem 0 0;\n color: var(--nol-error);\n}\n\n.text {\n margin: 0.75rem 0 0;\n}\n\n.targets {\n display: grid;\n gap: 0.25rem;\n margin: 0.5rem 0 0;\n padding-inline-start: 1.25rem;\n}\n"] }]
|
|
37
37
|
}], propDecorators: { repositories: [{ type: i0.Input, args: [{ isSignal: true, alias: "repositories", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
@@ -24,10 +24,10 @@ export class GitBulkPushDialogComponent {
|
|
|
24
24
|
lines = computed(() => this.targets().map(t => Object.isNull(t.upstream) ? Resources.formatPushSkipped(t.repository, t.branch)
|
|
25
25
|
: Resources.formatPushTarget(t.repository, t.branch, t.upstream, GitWorkspaceOverview.placeOf(t.remote))), /* @ts-ignore */
|
|
26
26
|
...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
27
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
28
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBulkPushDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
28
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitBulkPushDialogComponent, isStandalone: true, selector: "nol-git-bulk-push-dialog", inputs: { branch: { classPropertyName: "branch", publicName: "branch", isSignal: true, isRequired: true, transformFunction: null }, targets: { classPropertyName: "targets", publicName: "targets", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ resources.pushAllText }}</p>\n <ul class=\"targets\">\n @for (line of lines(); track $index) {\n <li>{{ line }}</li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"push\" (click)=\"answered.emit(true)\">{{ resources.pushLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n\n.targets {\n display: grid;\n gap: 0.25rem;\n margin: 0.5rem 0 0;\n padding-inline-start: 1.25rem;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
|
|
29
29
|
}
|
|
30
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitBulkPushDialogComponent, decorators: [{
|
|
31
31
|
type: Component,
|
|
32
32
|
args: [{ selector: "nol-git-bulk-push-dialog", imports: [ButtonComponent, DialogComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ resources.pushAllText }}</p>\n <ul class=\"targets\">\n @for (line of lines(); track $index) {\n <li>{{ line }}</li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"push\" (click)=\"answered.emit(true)\">{{ resources.pushLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n\n.targets {\n display: grid;\n gap: 0.25rem;\n margin: 0.5rem 0 0;\n padding-inline-start: 1.25rem;\n}\n"] }]
|
|
33
33
|
}], propDecorators: { branch: [{ type: i0.Input, args: [{ isSignal: true, alias: "branch", required: true }] }], targets: [{ type: i0.Input, args: [{ isSignal: true, alias: "targets", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
@@ -275,10 +275,10 @@ export class GitCloneDialogComponent {
|
|
|
275
275
|
static isCancelled(error) {
|
|
276
276
|
return error instanceof RuntimeRequestException && error.code === DesktopCode.Cancelled;
|
|
277
277
|
}
|
|
278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
279
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCloneDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
279
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitCloneDialogComponent, isStandalone: true, selector: "nol-git-clone-dialog", inputs: { context: { classPropertyName: "context", publicName: "context", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.cloneTitle\" [size]=\"size\" (dismissed)=\"dismiss()\">\n @if (options().length > 1) {\n <nol-choice-pills class=\"sources\" [options]=\"options()\" [value]=\"source()?.key ?? resources.cloneUrlSource\" [label]=\"resources.cloneSourceLabel\"\n (valueChange)=\"choose($event)\" />\n }\n @if (source(); as current) {\n <div class=\"search\">\n <input nol-text-field class=\"filter\" type=\"search\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [placeholder]=\"resources.filterRepositoriesLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"filter()\" (ngModelChange)=\"filter.set($event)\" (keydown)=\"onKey($event)\" />\n <button nol-icon-button type=\"button\" class=\"refresh\" [icon]=\"resources.refreshIcon\" [label]=\"resources.refreshRepositoriesLabel\"\n [nolTooltip]=\"resources.refreshRepositoriesLabel\" [disabled]=\"isReading() || cloning() !== null\" (click)=\"refresh(current)\"></button>\n </div>\n <div class=\"repositories\" role=\"listbox\" tabindex=\"-1\" [id]=\"listId\" [attr.aria-label]=\"current.label\">\n @for (group of groups(); track group.owner) {\n <div role=\"group\" class=\"group\" [attr.aria-labelledby]=\"group.id\">\n <div role=\"presentation\" class=\"small owner\" [id]=\"group.id\">{{ group.owner }}</div>\n @for (repository of group.rows; track repository.url; let index = $index) {\n <div role=\"option\" class=\"repository\" [id]=\"resources.formatCloneOptionId(listId, group.first + index)\" [class.picked]=\"picked()?.url === repository.url\"\n [attr.aria-selected]=\"picked()?.url === repository.url\" [attr.aria-disabled]=\"cloning() !== null\" [title]=\"repository.url\" (pointerdown)=\"$event.preventDefault()\"\n (click)=\"pick(repository)\">\n <span class=\"name\">{{ group.nameOf(repository) }}</span>\n @if (repository.isFork) {\n <span class=\"small muted fork\">{{ resources.forkLabel }}</span>\n }\n @if (repository.isPrivate) {\n <span class=\"small muted private\">{{ resources.privateLabel }}</span>\n }\n </div>\n }\n </div>\n }\n </div>\n @if (status(); as text) {\n <p class=\"small muted status\">{{ text }}</p>\n }\n } @else {\n <input nol-text-field class=\"url\" type=\"text\" name=\"url\" [attr.aria-label]=\"resources.cloneUrlLabel\" [placeholder]=\"resources.cloneUrlLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"typed()\" (ngModelChange)=\"typed.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n <p class=\"small muted hint\">{{ resources.cloneUrlHint }}</p>\n }\n <div class=\"destination\">\n <label class=\"small label\" [for]=\"pathId\">{{ resources.clonePathLabel }}</label>\n <input nol-text-field class=\"path\" type=\"text\" name=\"path\" [id]=\"pathId\" [placeholder]=\"resources.clonePathPlaceholder\" [attr.aria-invalid]=\"pathProblem() !== null\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"path()\" (ngModelChange)=\"path.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n <button nol-button type=\"button\" class=\"choose\" [variant]=\"secondary\" [disabled]=\"cloning() !== null\" (click)=\"chooseParentAsync()\">{{ resources.chooseLabel }}</button>\n </div>\n @if (pathProblem(); as text) {\n <p class=\"small refused\" role=\"alert\">{{ text }}</p>\n }\n @if (cloning() !== null) {\n <nol-progress class=\"progress\" [label]=\"progressText()\" [value]=\"progress() === null ? null : (progress()?.percent ?? 0) / 100\" />\n <p class=\"small muted progress-text\" aria-live=\"polite\">{{ progressText() }}</p>\n }\n <button nol-button nolDialogAction type=\"button\" class=\"clone\" [disabled]=\"!canClone()\" (click)=\"cloneAsync()\">{{ resources.cloneLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.sources {\n margin-bottom: 0.75rem;\n}\n\n.search {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.5rem;\n align-items: center;\n}\n\n.filter,\n.url,\n.path {\n width: 100%;\n}\n\n.repositories {\n --rows: 8;\n display: grid;\n align-content: start;\n height: clamp(calc(3 * 1.75rem), calc(100dvh - 23.5rem), calc(var(--rows) * 1.75rem));\n margin-top: 0.5rem;\n overflow-y: auto;\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.owner {\n display: flex;\n align-items: center;\n height: 1.75rem;\n padding: 0 0.5rem;\n overflow: hidden;\n font-weight: 600;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.repository {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.75rem;\n padding: 0 0.5rem;\n cursor: pointer;\n}\n\n.repository:hover:not([aria-disabled=\"true\"]) {\n background: var(--nol-hover);\n}\n\n.repository.picked {\n background: var(--nol-selected);\n}\n\n.name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.fork,\n.private {\n flex: none;\n}\n\n.fork,\n.name + .private {\n margin-inline-start: auto;\n}\n\n.status,\n.hint {\n margin: 0.25rem 0 0;\n}\n\n.destination {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.75rem;\n}\n\n.refused {\n margin: 0.25rem 0 0;\n color: var(--nol-error);\n}\n\n.progress {\n margin-top: 0.75rem;\n}\n\n.progress-text {\n margin: 0.25rem 0 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChoicePillsComponent, selector: "nol-choice-pills", inputs: ["options", "value", "label", "describedBy", "iconOnly"], outputs: ["valueChange"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { 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: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: ProgressComponent, selector: "nol-progress", inputs: ["label", "value"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
|
|
280
280
|
}
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCloneDialogComponent, decorators: [{
|
|
282
282
|
type: Component,
|
|
283
283
|
args: [{ selector: "nol-git-clone-dialog", imports: [ButtonComponent, ChoicePillsComponent, DialogComponent, FormsModule, IconButtonComponent, ProgressComponent, TextFieldComponent, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.cloneTitle\" [size]=\"size\" (dismissed)=\"dismiss()\">\n @if (options().length > 1) {\n <nol-choice-pills class=\"sources\" [options]=\"options()\" [value]=\"source()?.key ?? resources.cloneUrlSource\" [label]=\"resources.cloneSourceLabel\"\n (valueChange)=\"choose($event)\" />\n }\n @if (source(); as current) {\n <div class=\"search\">\n <input nol-text-field class=\"filter\" type=\"search\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [placeholder]=\"resources.filterRepositoriesLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"filter()\" (ngModelChange)=\"filter.set($event)\" (keydown)=\"onKey($event)\" />\n <button nol-icon-button type=\"button\" class=\"refresh\" [icon]=\"resources.refreshIcon\" [label]=\"resources.refreshRepositoriesLabel\"\n [nolTooltip]=\"resources.refreshRepositoriesLabel\" [disabled]=\"isReading() || cloning() !== null\" (click)=\"refresh(current)\"></button>\n </div>\n <div class=\"repositories\" role=\"listbox\" tabindex=\"-1\" [id]=\"listId\" [attr.aria-label]=\"current.label\">\n @for (group of groups(); track group.owner) {\n <div role=\"group\" class=\"group\" [attr.aria-labelledby]=\"group.id\">\n <div role=\"presentation\" class=\"small owner\" [id]=\"group.id\">{{ group.owner }}</div>\n @for (repository of group.rows; track repository.url; let index = $index) {\n <div role=\"option\" class=\"repository\" [id]=\"resources.formatCloneOptionId(listId, group.first + index)\" [class.picked]=\"picked()?.url === repository.url\"\n [attr.aria-selected]=\"picked()?.url === repository.url\" [attr.aria-disabled]=\"cloning() !== null\" [title]=\"repository.url\" (pointerdown)=\"$event.preventDefault()\"\n (click)=\"pick(repository)\">\n <span class=\"name\">{{ group.nameOf(repository) }}</span>\n @if (repository.isFork) {\n <span class=\"small muted fork\">{{ resources.forkLabel }}</span>\n }\n @if (repository.isPrivate) {\n <span class=\"small muted private\">{{ resources.privateLabel }}</span>\n }\n </div>\n }\n </div>\n }\n </div>\n @if (status(); as text) {\n <p class=\"small muted status\">{{ text }}</p>\n }\n } @else {\n <input nol-text-field class=\"url\" type=\"text\" name=\"url\" [attr.aria-label]=\"resources.cloneUrlLabel\" [placeholder]=\"resources.cloneUrlLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"typed()\" (ngModelChange)=\"typed.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n <p class=\"small muted hint\">{{ resources.cloneUrlHint }}</p>\n }\n <div class=\"destination\">\n <label class=\"small label\" [for]=\"pathId\">{{ resources.clonePathLabel }}</label>\n <input nol-text-field class=\"path\" type=\"text\" name=\"path\" [id]=\"pathId\" [placeholder]=\"resources.clonePathPlaceholder\" [attr.aria-invalid]=\"pathProblem() !== null\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"path()\" (ngModelChange)=\"path.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n <button nol-button type=\"button\" class=\"choose\" [variant]=\"secondary\" [disabled]=\"cloning() !== null\" (click)=\"chooseParentAsync()\">{{ resources.chooseLabel }}</button>\n </div>\n @if (pathProblem(); as text) {\n <p class=\"small refused\" role=\"alert\">{{ text }}</p>\n }\n @if (cloning() !== null) {\n <nol-progress class=\"progress\" [label]=\"progressText()\" [value]=\"progress() === null ? null : (progress()?.percent ?? 0) / 100\" />\n <p class=\"small muted progress-text\" aria-live=\"polite\">{{ progressText() }}</p>\n }\n <button nol-button nolDialogAction type=\"button\" class=\"clone\" [disabled]=\"!canClone()\" (click)=\"cloneAsync()\">{{ resources.cloneLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.sources {\n margin-bottom: 0.75rem;\n}\n\n.search {\n display: grid;\n grid-template-columns: minmax(0, 1fr) auto;\n gap: 0.5rem;\n align-items: center;\n}\n\n.filter,\n.url,\n.path {\n width: 100%;\n}\n\n.repositories {\n --rows: 8;\n display: grid;\n align-content: start;\n height: clamp(calc(3 * 1.75rem), calc(100dvh - 23.5rem), calc(var(--rows) * 1.75rem));\n margin-top: 0.5rem;\n overflow-y: auto;\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.owner {\n display: flex;\n align-items: center;\n height: 1.75rem;\n padding: 0 0.5rem;\n overflow: hidden;\n font-weight: 600;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.repository {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.75rem;\n padding: 0 0.5rem;\n cursor: pointer;\n}\n\n.repository:hover:not([aria-disabled=\"true\"]) {\n background: var(--nol-hover);\n}\n\n.repository.picked {\n background: var(--nol-selected);\n}\n\n.name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.fork,\n.private {\n flex: none;\n}\n\n.fork,\n.name + .private {\n margin-inline-start: auto;\n}\n\n.status,\n.hint {\n margin: 0.25rem 0 0;\n}\n\n.destination {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.75rem;\n}\n\n.refused {\n margin: 0.25rem 0 0;\n color: var(--nol-error);\n}\n\n.progress {\n margin-top: 0.75rem;\n}\n\n.progress-text {\n margin: 0.25rem 0 0;\n}\n"] }]
|
|
284
284
|
}], ctorParameters: () => [], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
@@ -114,10 +114,10 @@ export class GitCommandLogComponent {
|
|
|
114
114
|
this.readFailure.set(GitViewStateService.messageOf(error));
|
|
115
115
|
}
|
|
116
116
|
}
|
|
117
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.
|
|
118
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.
|
|
117
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommandLogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
118
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", 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 padding-block: var(--nol-view-padding-block);\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: var(--nol-view-padding-block) var(--nol-content-padding-inline);\n}\n\n.commands {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0;\n padding: 0 var(--nol-content-padding-inline);\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"] });
|
|
119
119
|
}
|
|
120
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.
|
|
120
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCommandLogComponent, decorators: [{
|
|
121
121
|
type: Component,
|
|
122
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 padding-block: var(--nol-view-padding-block);\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: var(--nol-view-padding-block) var(--nol-content-padding-inline);\n}\n\n.commands {\n flex: 1 1 auto;\n min-height: 0;\n margin: 0;\n padding: 0 var(--nol-content-padding-inline);\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
123
|
}], ctorParameters: () => [], propDecorators: { list: [{ type: i0.ViewChild, args: ["list", { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|