@noldova/git.window 0.0.10 → 0.0.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +10 -6
- package/src/api/index.d.ts +6 -1
- package/src/app/components/git-agents/git-agents.component.js +4 -5
- package/src/app/components/git-agents/git-agents.component.js.map +1 -1
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +210 -0
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js.map +1 -0
- package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
- package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
- package/src/app/components/git-file-group/git-file-group.component.js +4 -3
- package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
- package/src/app/components/git-history/git-history.component.js +32 -8
- package/src/app/components/git-history/git-history.component.js.map +1 -1
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +4 -3
- package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -1
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +4 -3
- package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
- package/src/app/components/git-pull-requests/git-pull-requests.component.js +4 -6
- package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
- package/src/app/components/git-repository/git-repository.component.js +6 -4
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-view/git-view.component.js +16 -3
- package/src/app/components/git-view/git-view.component.js.map +1 -1
- package/src/app/components/git-workspace/git-workspace.component.js +52 -4
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
- package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
- package/src/app/enums/git-add-kind.js +14 -0
- package/src/app/enums/git-add-kind.js.map +1 -0
- package/src/app/enums/git-host-feature.js +1 -0
- package/src/app/enums/git-host-feature.js.map +1 -1
- package/src/app/models/git-clone-source.js +29 -0
- package/src/app/models/git-clone-source.js.map +1 -0
- package/src/app/models/git-folder-look.js +6 -0
- package/src/app/models/git-folder-look.js.map +1 -1
- package/src/app/services/git-add-requests.js +20 -0
- package/src/app/services/git-add-requests.js.map +1 -0
- package/src/app/services/git-clone-folders.js +37 -0
- package/src/app/services/git-clone-folders.js.map +1 -0
- package/src/app/services/git-clone-sources.js +20 -0
- package/src/app/services/git-clone-sources.js.map +1 -0
- package/src/app/services/git-folder-keys.js +27 -0
- package/src/app/services/git-folder-keys.js.map +1 -0
- package/src/app/services/git-folder-looks.js +30 -1
- package/src/app/services/git-folder-looks.js.map +1 -1
- package/src/app/services/git-folder-watch.js +50 -0
- package/src/app/services/git-folder-watch.js.map +1 -0
- package/src/app/services/git-history-asks.js +2 -1
- package/src/app/services/git-history-asks.js.map +1 -1
- package/src/app/services/git-repository-scans.js +8 -3
- package/src/app/services/git-repository-scans.js.map +1 -1
- package/src/app/services/git-runtime-client.js +25 -1
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/app/services/git-view-state.service.js +4 -2
- package/src/app/services/git-view-state.service.js.map +1 -1
- package/src/app/services/git-viewing.js +2 -1
- package/src/app/services/git-viewing.js.map +1 -1
- package/src/app/services/git-window-part.js +12 -1
- package/src/app/services/git-window-part.js.map +1 -1
- package/src/app/services/git-workspace-pages.js +14 -2
- package/src/app/services/git-workspace-pages.js.map +1 -1
- package/src/resources.js +74 -4
- 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.11",
|
|
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",
|
|
@@ -42,8 +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.
|
|
46
|
-
"@noldova/
|
|
45
|
+
"@noldova/desktop.protocol": ">=0.0.20 <0.1.0",
|
|
46
|
+
"@noldova/desktop.window": ">=0.0.20 <0.1.0",
|
|
47
|
+
"@noldova/ui.components.angular": ">=0.0.47 <0.1.0"
|
|
47
48
|
},
|
|
48
49
|
"peerDependenciesMeta": {
|
|
49
50
|
"@angular/cdk": {
|
|
@@ -79,6 +80,9 @@
|
|
|
79
80
|
"@noldova/context.json": {
|
|
80
81
|
"optional": true
|
|
81
82
|
},
|
|
83
|
+
"@noldova/desktop.protocol": {
|
|
84
|
+
"optional": true
|
|
85
|
+
},
|
|
82
86
|
"@noldova/desktop.window": {
|
|
83
87
|
"optional": true
|
|
84
88
|
},
|
|
@@ -87,8 +91,8 @@
|
|
|
87
91
|
}
|
|
88
92
|
},
|
|
89
93
|
"dependencies": {
|
|
90
|
-
"@noldova/git.hosting.protocol": "0.0.
|
|
91
|
-
"@noldova/git.protocol": "0.0.
|
|
94
|
+
"@noldova/git.hosting.protocol": "0.0.11",
|
|
95
|
+
"@noldova/git.protocol": "0.0.11"
|
|
92
96
|
},
|
|
93
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "747f8d7d5643e472496a423fe756322dad2ce808"
|
|
94
98
|
}
|
package/src/api/index.d.ts
CHANGED
|
@@ -638,7 +638,12 @@ export declare enum GitHostFeature {
|
|
|
638
638
|
/** Creating a branch from a work item. */
|
|
639
639
|
BranchFromItem = "BranchFromItem",
|
|
640
640
|
/** Completing a pull request by itself once its policies pass. */
|
|
641
|
-
AutoComplete = "AutoComplete"
|
|
641
|
+
AutoComplete = "AutoComplete",
|
|
642
|
+
/**
|
|
643
|
+
* Listing a signed-in account's repositories in the Clone dialog: the host's module, the part of its {@link IGitHostAccount.id} before the dot, answers
|
|
644
|
+
* `<module id>.readRepositories` from the hosting protocol for an account id its cards name.
|
|
645
|
+
*/
|
|
646
|
+
CloneList = "CloneList"
|
|
642
647
|
}
|
|
643
648
|
|
|
644
649
|
/**
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { Component, computed, ErrorHandler, inject, input, signal } from "@angular/core";
|
|
9
|
+
import { SectionHeaderCaretPosition, SectionHeaderComponent, SectionHeaderDetailDirective } from "@noldova/ui.components.angular";
|
|
9
10
|
import { GitAgentState } from "../../enums/git-agent-state.js";
|
|
10
11
|
import { GitAgents } from "../../services/git-agents.js";
|
|
11
12
|
import { Resources } from "../../../resources.js";
|
|
@@ -17,15 +18,13 @@ export class GitAgentsComponent {
|
|
|
17
18
|
resources = Resources;
|
|
18
19
|
isOpen = signal(true, /* @ts-ignore */
|
|
19
20
|
...(ngDevMode ? [{ debugName: "isOpen" }] : /* istanbul ignore next */ []));
|
|
21
|
+
caretStart = SectionHeaderCaretPosition.Start;
|
|
20
22
|
hasProvider = computed(() => GitAgents.all().length > 0, /* @ts-ignore */
|
|
21
23
|
...(ngDevMode ? [{ debugName: "hasProvider" }] : /* istanbul ignore next */ []));
|
|
22
24
|
runs = computed(() => GitAgents.all().flatMap(provider => this.attempt(() => provider.listFor(this.folder())() ?? [], []).map(row => ({ provider, row }))), /* @ts-ignore */
|
|
23
25
|
...(ngDevMode ? [{ debugName: "runs" }] : /* istanbul ignore next */ []));
|
|
24
26
|
worktrees = computed(() => new Set(this.runs().map(t => t.row.worktree)).size, /* @ts-ignore */
|
|
25
27
|
...(ngDevMode ? [{ debugName: "worktrees" }] : /* istanbul ignore next */ []));
|
|
26
|
-
toggle() {
|
|
27
|
-
this.isOpen.update(t => !t);
|
|
28
|
-
}
|
|
29
28
|
iconOf(state) {
|
|
30
29
|
return Resources.agentStateIcons[state];
|
|
31
30
|
}
|
|
@@ -45,10 +44,10 @@ export class GitAgentsComponent {
|
|
|
45
44
|
}
|
|
46
45
|
}
|
|
47
46
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAgentsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
48
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", 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 <
|
|
47
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", 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]" }] });
|
|
49
48
|
}
|
|
50
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitAgentsComponent, decorators: [{
|
|
51
50
|
type: Component,
|
|
52
|
-
args: [{ selector: "nol-git-agents", 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 <
|
|
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"] }]
|
|
53
52
|
}], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }] } });
|
|
54
53
|
//# sourceMappingURL=git-agents.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-agents.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-agents/git-agents.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-agents/git-agents.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAoC,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"git-agents.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-agents/git-agents.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-agents/git-agents.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAoC,MAAM,eAAe,CAAC;AAC7I,OAAO,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAElI,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG/D,OAAO,EAAE,SAA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5B,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,EAAE,SAAS,CAAC,CAAC;IAC3E,CAAC;IAEO,OAAO,CAAI,GAAY,EAAE,QAAW;QAC1C,IAAI,CAAC;YACH,OAAO,GAAG,EAAE,CAAC;QACf,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAC/B,OAAO,QAAQ,CAAC;QAClB,CAAC;IACH,CAAC;uGAjCU,kBAAkB;2FAAlB,kBAAkB,gNC5B/B,okCA0BA,+gDDFY,sBAAsB,8NAAE,4BAA4B;;2FAInD,kBAAkB;kBAN9B,SAAS;+BACE,gBAAgB,WACjB,CAAC,sBAAsB,EAAE,4BAA4B,CAAC"}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @license
|
|
3
|
+
* Copyright (c) Noldova.
|
|
4
|
+
*
|
|
5
|
+
* This source code is licensed under the license found in the
|
|
6
|
+
* LICENSE file in the root directory of this source tree.
|
|
7
|
+
*/
|
|
8
|
+
import { afterNextRender, Component, computed, ElementRef, inject, Injector, linkedSignal, output, signal } from "@angular/core";
|
|
9
|
+
import { FormsModule } from "@angular/forms";
|
|
10
|
+
import "@noldova/context.core";
|
|
11
|
+
import { FailureCode as DesktopCode } from "@noldova/desktop.protocol";
|
|
12
|
+
import { RuntimeRequestException, TimeFormatService, WindowPartTokens } from "@noldova/desktop.window";
|
|
13
|
+
import { HostRepositoryList } from "@noldova/git.hosting.protocol";
|
|
14
|
+
import { ButtonComponent, ButtonVariant, ChoicePillsComponent, DialogComponent, DialogSize, ProgressComponent, SelectOption, TextFieldComponent } from "@noldova/ui.components.angular";
|
|
15
|
+
import { Resources } from "../../../resources.js";
|
|
16
|
+
import { GitHostFailure } from "../../models/git-host-failure.js";
|
|
17
|
+
import { GitCloneFolders } from "../../services/git-clone-folders.js";
|
|
18
|
+
import { GitCloneSources } from "../../services/git-clone-sources.js";
|
|
19
|
+
import { GitHostAccounts } from "../../services/git-host-accounts.js";
|
|
20
|
+
import { GitRuntimeClient } from "../../services/git-runtime-client.js";
|
|
21
|
+
import { GitViewStateService } from "../../services/git-view-state.service.js";
|
|
22
|
+
import * as i0 from "@angular/core";
|
|
23
|
+
import * as i1 from "@angular/forms";
|
|
24
|
+
export class GitCloneDialogComponent {
|
|
25
|
+
static lists = 0;
|
|
26
|
+
answered = output();
|
|
27
|
+
context = inject(WindowPartTokens.context);
|
|
28
|
+
dates = inject(TimeFormatService);
|
|
29
|
+
host = inject(ElementRef).nativeElement;
|
|
30
|
+
injector = inject(Injector);
|
|
31
|
+
client = new GitRuntimeClient(this.context);
|
|
32
|
+
lists = signal(new Map(), /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "lists" }] : /* istanbul ignore next */ []));
|
|
34
|
+
list = computed(() => this.lists().get(this.chosen()) ?? null, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
|
|
36
|
+
isClosed = false;
|
|
37
|
+
resources = Resources;
|
|
38
|
+
listId = Resources.formatCloneListId(++GitCloneDialogComponent.lists);
|
|
39
|
+
secondary = ButtonVariant.Secondary;
|
|
40
|
+
size = DialogSize.Medium;
|
|
41
|
+
cloning = signal(null, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "cloning" }] : /* istanbul ignore next */ []));
|
|
43
|
+
sources = computed(() => GitCloneSources.of(GitHostAccounts.accounts()), /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "sources" }] : /* istanbul ignore next */ []));
|
|
45
|
+
options = computed(() => {
|
|
46
|
+
const isCloning = !Object.isNull(this.cloning());
|
|
47
|
+
return [new SelectOption(Resources.cloneUrlSource, Resources.cloneUrlTitle, null, isCloning), ...this.sources().map(t => new SelectOption(t.key, t.label, null, isCloning))];
|
|
48
|
+
}, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
50
|
+
chosen = signal(Resources.cloneUrlSource, /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
|
|
52
|
+
source = computed(() => this.sources().find(t => t.key === this.chosen()) ?? null, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
|
|
54
|
+
typed = signal("", /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "typed" }] : /* istanbul ignore next */ []));
|
|
56
|
+
filter = signal("", /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
|
|
58
|
+
picked = signal(null, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "picked" }] : /* istanbul ignore next */ []));
|
|
60
|
+
rows = computed(() => {
|
|
61
|
+
const list = this.list();
|
|
62
|
+
const text = this.filter().trim().toLowerCase();
|
|
63
|
+
return list instanceof HostRepositoryList ? list.rows.filter(t => t.name.toLowerCase().includes(text)) : [];
|
|
64
|
+
}, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
|
|
66
|
+
activeId = computed(() => {
|
|
67
|
+
const index = this.rows().findIndex(t => t === this.picked());
|
|
68
|
+
return index < 0 ? null : Resources.formatCloneOptionId(this.listId, index);
|
|
69
|
+
}, /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
|
|
71
|
+
status = computed(() => {
|
|
72
|
+
const list = this.list();
|
|
73
|
+
if (Object.isNull(list))
|
|
74
|
+
return Resources.cloneListReading;
|
|
75
|
+
if (Object.isString(list))
|
|
76
|
+
return list;
|
|
77
|
+
if (!list.isSignedIn)
|
|
78
|
+
return Resources.cloneListSignedOut;
|
|
79
|
+
if (list.rows.length === 0)
|
|
80
|
+
return Resources.cloneListEmpty;
|
|
81
|
+
if (this.rows().length === 0)
|
|
82
|
+
return list.hasMore ? Resources.formatCloneListNoMatchesMore(list.rows.length) : Resources.cloneListNoMatches;
|
|
83
|
+
return list.hasMore ? Resources.formatCloneListMore(list.rows.length) : null;
|
|
84
|
+
}, /* @ts-ignore */
|
|
85
|
+
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
86
|
+
url = computed(() => Object.isNull(this.source()) ? this.typed().trim() : this.picked()?.url ?? "", /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
|
|
88
|
+
name = linkedSignal(() => GitCloneFolders.nameOf(this.url()), /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
90
|
+
parent = GitCloneFolders.parent;
|
|
91
|
+
isName = computed(() => GitCloneFolders.isName(this.name()), /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "isName" }] : /* istanbul ignore next */ []));
|
|
93
|
+
folder = computed(() => {
|
|
94
|
+
const parent = this.parent();
|
|
95
|
+
return Object.isNull(parent) || this.name().length === 0 || !this.isName() ? null : GitCloneFolders.join(parent, this.name());
|
|
96
|
+
}, /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
|
|
98
|
+
progress = signal(null, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
|
|
100
|
+
progressText = computed(() => {
|
|
101
|
+
const progress = this.progress();
|
|
102
|
+
return Object.isNull(progress) ? Resources.cloneStarting : Resources.formatClonePhase(progress.phase, progress.percent);
|
|
103
|
+
}, /* @ts-ignore */
|
|
104
|
+
...(ngDevMode ? [{ debugName: "progressText" }] : /* istanbul ignore next */ []));
|
|
105
|
+
failure = signal(null, /* @ts-ignore */
|
|
106
|
+
...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
|
|
107
|
+
canClone = computed(() => this.url().length > 0 && !Object.isNull(this.folder()) && Object.isNull(this.cloning()), /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "canClone" }] : /* istanbul ignore next */ []));
|
|
109
|
+
choose(key) {
|
|
110
|
+
this.chosen.set(key);
|
|
111
|
+
this.picked.set(null);
|
|
112
|
+
this.failure.set(null);
|
|
113
|
+
const source = this.source();
|
|
114
|
+
if (!Object.isNull(source) && !this.lists().has(source.key))
|
|
115
|
+
void this.readAsync(source);
|
|
116
|
+
}
|
|
117
|
+
pick(repository) {
|
|
118
|
+
if (!Object.isNull(this.cloning()))
|
|
119
|
+
return;
|
|
120
|
+
this.picked.set(repository);
|
|
121
|
+
this.failure.set(null);
|
|
122
|
+
}
|
|
123
|
+
onKey(event) {
|
|
124
|
+
if (event.key === "Enter") {
|
|
125
|
+
event.preventDefault();
|
|
126
|
+
void this.cloneAsync();
|
|
127
|
+
return;
|
|
128
|
+
}
|
|
129
|
+
if (event.key !== "ArrowDown" && event.key !== "ArrowUp")
|
|
130
|
+
return;
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
const rows = this.rows();
|
|
133
|
+
const index = rows.findIndex(t => t === this.picked());
|
|
134
|
+
const next = event.key === "ArrowUp" && index < 0 ? rows.at(-1) : rows[(index + (event.key === "ArrowDown" ? 1 : rows.length - 1)) % rows.length];
|
|
135
|
+
if (Object.isUndefined(next))
|
|
136
|
+
return;
|
|
137
|
+
this.pick(next);
|
|
138
|
+
const id = Resources.formatCloneOptionId(this.listId, rows.indexOf(next));
|
|
139
|
+
afterNextRender(() => this.host.querySelector(`#${id}`)?.scrollIntoView({ block: "nearest" }), { injector: this.injector });
|
|
140
|
+
}
|
|
141
|
+
async chooseParentAsync() {
|
|
142
|
+
const parent = await this.context.chooseFolderAsync();
|
|
143
|
+
if (!Object.isNull(parent))
|
|
144
|
+
GitCloneFolders.remember(parent);
|
|
145
|
+
}
|
|
146
|
+
async cloneAsync() {
|
|
147
|
+
const folder = this.folder();
|
|
148
|
+
if (!this.canClone() || Object.isNull(folder))
|
|
149
|
+
return;
|
|
150
|
+
const id = crypto.randomUUID();
|
|
151
|
+
this.cloning.set(id);
|
|
152
|
+
this.progress.set(null);
|
|
153
|
+
this.failure.set(null);
|
|
154
|
+
const stop = this.client.onCloneProgress(t => {
|
|
155
|
+
if (t.progress === id)
|
|
156
|
+
this.progress.set(t);
|
|
157
|
+
});
|
|
158
|
+
try {
|
|
159
|
+
await this.client.cloneAsync(this.url(), folder, id);
|
|
160
|
+
if (!this.isClosed)
|
|
161
|
+
this.answered.emit(folder);
|
|
162
|
+
}
|
|
163
|
+
catch (error) {
|
|
164
|
+
if (!GitCloneDialogComponent.isCancelled(error))
|
|
165
|
+
this.failure.set(GitViewStateService.messageOf(error));
|
|
166
|
+
}
|
|
167
|
+
finally {
|
|
168
|
+
stop();
|
|
169
|
+
this.cloning.set(null);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
cancel() {
|
|
173
|
+
const id = this.cloning();
|
|
174
|
+
if (Object.isNull(id)) {
|
|
175
|
+
this.close();
|
|
176
|
+
return;
|
|
177
|
+
}
|
|
178
|
+
this.client.cancelCloneAsync(id).catch((error) => this.context.log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
179
|
+
}
|
|
180
|
+
dismiss() {
|
|
181
|
+
const id = this.cloning();
|
|
182
|
+
if (!Object.isNull(id))
|
|
183
|
+
this.client.cancelCloneAsync(id).catch((error) => this.context.log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
184
|
+
this.close();
|
|
185
|
+
}
|
|
186
|
+
close() {
|
|
187
|
+
this.isClosed = true;
|
|
188
|
+
this.answered.emit(null);
|
|
189
|
+
}
|
|
190
|
+
async readAsync(source) {
|
|
191
|
+
let answer;
|
|
192
|
+
try {
|
|
193
|
+
answer = await source.readAsync();
|
|
194
|
+
}
|
|
195
|
+
catch (error) {
|
|
196
|
+
answer = GitHostFailure.of(error, Resources.cloneListFailed).textOf(source.host, this.dates);
|
|
197
|
+
}
|
|
198
|
+
this.lists.update(t => new Map([...t, [source.key, answer]]));
|
|
199
|
+
}
|
|
200
|
+
static isCancelled(error) {
|
|
201
|
+
return error instanceof RuntimeRequestException && error.code === DesktopCode.Cancelled;
|
|
202
|
+
}
|
|
203
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCloneDialogComponent, isStandalone: true, selector: "nol-git-clone-dialog", 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 <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 <div class=\"repositories\" role=\"listbox\" tabindex=\"-1\" [id]=\"listId\" [attr.aria-label]=\"current.label\">\n @for (repository of rows(); track repository.url; let index = $index) {\n <div role=\"option\" class=\"repository\" [id]=\"resources.formatCloneOptionId(listId, index)\" [class.picked]=\"picked() === repository\"\n [attr.aria-selected]=\"picked() === repository\" [attr.aria-disabled]=\"cloning() !== null\" [title]=\"repository.url\" (pointerdown)=\"$event.preventDefault()\"\n (click)=\"pick(repository)\">\n <span class=\"name\">{{ repository.name }}</span>\n @if (repository.isPrivate) {\n <span class=\"small muted private\">{{ resources.privateLabel }}</span>\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); failure.set(null)\" (keydown.enter)=\"cloneAsync()\" />\n <p class=\"small muted hint\">{{ resources.cloneUrlHint }}</p>\n }\n <div class=\"destination\">\n <span class=\"small label\">{{ resources.cloneParentLabel }}</span>\n <span class=\"parent\" [class.muted]=\"parent() === null\" [title]=\"parent() ?? ''\">{{ parent() ?? resources.cloneParentNone }}</span>\n <button nol-button type=\"button\" class=\"choose\" [variant]=\"secondary\" [disabled]=\"cloning() !== null\" (click)=\"chooseParentAsync()\">{{ resources.chooseLabel }}</button>\n <label class=\"small label\" for=\"git-clone-name\">{{ resources.cloneNameLabel }}</label>\n <input nol-text-field id=\"git-clone-name\" class=\"name-field\" type=\"text\" name=\"name\" [attr.aria-invalid]=\"!isName()\" [disabled]=\"cloning() !== null\"\n [ngModel]=\"name()\" (ngModelChange)=\"name.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n </div>\n @if (!isName()) {\n <p class=\"small refused\" role=\"alert\">{{ resources.cloneNameRefused }}</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 @if (failure(); as text) {\n <p class=\"small refused failure\" role=\"alert\">{{ text }}</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.filter,\n.url {\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.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.private {\n flex: none;\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.parent {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.name-field {\n grid-column: 2 / -1;\n width: 100%;\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: ProgressComponent, selector: "nol-progress", inputs: ["label", "value"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }] });
|
|
205
|
+
}
|
|
206
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, decorators: [{
|
|
207
|
+
type: Component,
|
|
208
|
+
args: [{ selector: "nol-git-clone-dialog", imports: [ButtonComponent, ChoicePillsComponent, DialogComponent, FormsModule, ProgressComponent, 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]=\"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 <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 <div class=\"repositories\" role=\"listbox\" tabindex=\"-1\" [id]=\"listId\" [attr.aria-label]=\"current.label\">\n @for (repository of rows(); track repository.url; let index = $index) {\n <div role=\"option\" class=\"repository\" [id]=\"resources.formatCloneOptionId(listId, index)\" [class.picked]=\"picked() === repository\"\n [attr.aria-selected]=\"picked() === repository\" [attr.aria-disabled]=\"cloning() !== null\" [title]=\"repository.url\" (pointerdown)=\"$event.preventDefault()\"\n (click)=\"pick(repository)\">\n <span class=\"name\">{{ repository.name }}</span>\n @if (repository.isPrivate) {\n <span class=\"small muted private\">{{ resources.privateLabel }}</span>\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); failure.set(null)\" (keydown.enter)=\"cloneAsync()\" />\n <p class=\"small muted hint\">{{ resources.cloneUrlHint }}</p>\n }\n <div class=\"destination\">\n <span class=\"small label\">{{ resources.cloneParentLabel }}</span>\n <span class=\"parent\" [class.muted]=\"parent() === null\" [title]=\"parent() ?? ''\">{{ parent() ?? resources.cloneParentNone }}</span>\n <button nol-button type=\"button\" class=\"choose\" [variant]=\"secondary\" [disabled]=\"cloning() !== null\" (click)=\"chooseParentAsync()\">{{ resources.chooseLabel }}</button>\n <label class=\"small label\" for=\"git-clone-name\">{{ resources.cloneNameLabel }}</label>\n <input nol-text-field id=\"git-clone-name\" class=\"name-field\" type=\"text\" name=\"name\" [attr.aria-invalid]=\"!isName()\" [disabled]=\"cloning() !== null\"\n [ngModel]=\"name()\" (ngModelChange)=\"name.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n </div>\n @if (!isName()) {\n <p class=\"small refused\" role=\"alert\">{{ resources.cloneNameRefused }}</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 @if (failure(); as text) {\n <p class=\"small refused failure\" role=\"alert\">{{ text }}</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.filter,\n.url {\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.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.private {\n flex: none;\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.parent {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.name-field {\n grid-column: 2 / -1;\n width: 100%;\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"] }]
|
|
209
|
+
}], propDecorators: { answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
210
|
+
//# sourceMappingURL=git-clone-dialog.component.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"git-clone-dialog.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-clone-dialog/git-clone-dialog.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-clone-dialog/git-clone-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAyB,MAAM,EACxH,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAC7C,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,WAAW,IAAI,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACvE,OAAO,EAA2B,uBAAuB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAChI,OAAO,EAAuB,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,aAAa,EAA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KAAK,CAAC,SAAS,CAAC,MAAsB;QAC5C,IAAI,MAAmC,CAAC;QACxC,IAAI,CAAC;YACH,MAAM,GAAG,MAAM,MAAM,CAAC,SAAS,EAAE,CAAC;QACpC,CAAC;QACD,OAAO,KAAK,EAAE,CAAC;YACb,MAAM,GAAG,cAAc,CAAC,EAAE,CAAC,KAAK,EAAE,SAAS,CAAC,eAAe,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QAC/F,CAAC;QACD,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;IAChE,CAAC;IAEO,MAAM,CAAC,WAAW,CAAC,KAAc;QACvC,OAAO,KAAK,YAAY,uBAAuB,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC,SAAS,CAAC;IAC1F,CAAC;uGA1KU,uBAAuB;2FAAvB,uBAAuB,mHCnCpC,syHA0DA,2kDD3BY,eAAe,oJAAE,oBAAoB,yJAAE,eAAe,yGAAE,WAAW,ysBAAE,iBAAiB,qFAAE,kBAAkB;;2FAIzG,uBAAuB;kBANnC,SAAS;+BACE,sBAAsB,WACvB,CAAC,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,CAAC"}
|
|
@@ -9,7 +9,7 @@ import { afterNextRender, Component, computed, effect, ElementRef, ErrorHandler,
|
|
|
9
9
|
import "@noldova/context.core";
|
|
10
10
|
import { WindowPartTokens } from "@noldova/desktop.window";
|
|
11
11
|
import { DiffTotals, LineKind } from "@noldova/git.protocol";
|
|
12
|
-
import { FileBadgeComponent } from "@noldova/ui.components.angular";
|
|
12
|
+
import { FileBadgeComponent, SectionHeaderActionDirective, SectionHeaderComponent, SectionHeaderDetailDirective } from "@noldova/ui.components.angular";
|
|
13
13
|
import { GitDiffRowKind } from "../../enums/git-diff-row-kind.js";
|
|
14
14
|
import { GitFileLayout } from "../../enums/git-file-layout.js";
|
|
15
15
|
import { GitCodeSpan } from "../../models/git-code-span.js";
|
|
@@ -172,10 +172,10 @@ export class GitDiffFilesComponent {
|
|
|
172
172
|
}
|
|
173
173
|
}
|
|
174
174
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitDiffFilesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
175
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitDiffFilesComponent, isStandalone: true, selector: "nol-git-diff-files", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <
|
|
175
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitDiffFilesComponent, isStandalone: true, selector: "nol-git-diff-files", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, scope: { classPropertyName: "scope", publicName: "scope", isSignal: true, isRequired: true, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <nol-section-header [label]=\"resources.formatFilesChanged(totals().files)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"totals\"><span class=\"added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"removed\">{{ resources.removedSign }}{{ totals().removed }}</span></span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n }\n </nol-section-header>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"diffInsetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: contents;\n}\n\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.totals {\n display: inline-flex;\n gap: 0.375rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: calc(100% + 2 * var(--git-row-outset));\n height: 1.625rem;\n margin-inline: calc(-1 * var(--git-row-outset));\n padding: 0 var(--git-row-outset);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: end;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\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.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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"], dependencies: [{ kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: GitFileLayoutButtonComponent, selector: "nol-git-file-layout-button", inputs: ["layout"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }, { kind: "directive", type: SectionHeaderDetailDirective, selector: "[nolSectionHeaderDetail]" }] });
|
|
176
176
|
}
|
|
177
177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitDiffFilesComponent, decorators: [{
|
|
178
178
|
type: Component,
|
|
179
|
-
args: [{ selector: "nol-git-diff-files", imports: [FileBadgeComponent, GitFileLayoutButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <
|
|
179
|
+
args: [{ selector: "nol-git-diff-files", imports: [FileBadgeComponent, GitFileLayoutButtonComponent, SectionHeaderActionDirective, 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 (failure(); as message) {\n <p class=\"note error\" role=\"alert\">{{ message }}</p>\n} @else if (diff(); as diff) {\n <div class=\"files\">\n <nol-section-header [label]=\"resources.formatFilesChanged(totals().files)\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"totals\"><span class=\"added\">{{ resources.addedPrefix }}{{ totals().added }}</span>\n <span class=\"removed\">{{ resources.removedSign }}{{ totals().removed }}</span></span>\n @if (chosen(); as layout) {\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"layout\" />\n }\n </nol-section-header>\n @for (row of rows(); track row.key + row.isFolder) {\n @if (row.isFolder) {\n <button type=\"button\" class=\"file-row folder\" [title]=\"row.key\" [attr.aria-expanded]=\"!closed().has(row.key)\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggle(row.key)\">\n <span class=\"ms\">{{ closed().has(row.key) ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"ms\">{{ resources.folderIcon }}</span>\n <span class=\"grow ellipsis\">{{ row.name }}</span>\n </button>\n } @else {\n @let isOpen = open().has(row.key);\n <button type=\"button\" class=\"file-row\" [class.open]=\"isOpen\" [title]=\"titleOf(row)\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(row.depth)\"\n (click)=\"toggleFile(row.key)\">\n <nol-file-badge [fileName]=\"row.name\" />\n <span class=\"grow ellipsis\">{{ row.name }}@if (row.from.length > 0) {<span class=\"muted\">{{ resources.formatMovedFrom(nameOf(row.from)) }}</span>}</span>\n @if (row.added !== null && row.added > 0) {\n <span class=\"small added\">{{ resources.addedPrefix }}{{ row.added }}</span>\n }\n @if (row.removed !== null && row.removed > 0) {\n <span class=\"small removed\">{{ resources.removedSign }}{{ row.removed }}</span>\n }\n <span class=\"small muted letter\">{{ row.letter }}</span>\n </button>\n @if (isOpen) {\n <div class=\"diff\" [style.margin-inline-start.rem]=\"diffInsetOf(row.depth)\">\n @let codes = openCodes().get(row.key) ?? [];\n @for (line of openLines().get(row.key) ?? []; track $index) {\n <div [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\"\n [class.marked-line]=\"isMarked(row.key, $index)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n </div>\n }\n }\n }\n @if (diff.truncated || diff.omittedFiles > 0) {\n <p class=\"note\">{{ resources.commitFilesCut }}</p>\n }\n </div>\n} @else {\n <p class=\"note\">{{ resources.commitFilesLoading }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --git-row-outset: 0.5rem;\n\n display: contents;\n}\n\n.file-row {\n display: flex;\n align-items: center;\n min-width: 0;\n}\n\n.files {\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n}\n\nnol-section-header {\n margin-inline: calc(-1 * var(--git-row-outset));\n}\n\nnol-git-file-layout-button {\n display: flex;\n}\n\n.totals {\n display: inline-flex;\n gap: 0.375rem;\n}\n\n.file-row {\n box-sizing: border-box;\n gap: 0.375rem;\n width: calc(100% + 2 * var(--git-row-outset));\n height: 1.625rem;\n margin-inline: calc(-1 * var(--git-row-outset));\n padding: 0 var(--git-row-outset);\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: inherit;\n font: inherit;\n white-space: nowrap;\n}\n\n.file-row:hover {\n background: var(--nol-hover);\n}\n\n.folder {\n cursor: pointer;\n}\n\n.added {\n color: var(--nol-added);\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n color: var(--nol-removed);\n font-variant-numeric: tabular-nums;\n}\n\n.letter {\n flex: none;\n min-width: 1rem;\n text-align: end;\n white-space: nowrap;\n}\n\n.diff {\n display: grid;\n grid-template-columns: minmax(max-content, 1fr);\n max-height: var(--nol-diff-view-max-height);\n overflow: auto;\n margin: 0.25rem 0;\n padding: 0.25rem 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: 0.375rem;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n white-space: pre;\n}\n\n.diff > div {\n padding-inline: 0.5rem;\n}\n\n.added-line {\n background-color: var(--nol-added-background);\n}\n\n.removed-line {\n background-color: var(--nol-removed-background);\n}\n\n.token-comment {\n color: var(--nol-code-comment);\n}\n\n.token-keyword {\n color: var(--nol-code-keyword);\n}\n\n.token-keyword-control {\n color: var(--nol-code-control);\n}\n\n.token-string {\n color: var(--nol-code-string);\n}\n\n.token-number {\n color: var(--nol-code-number);\n}\n\n.token-type {\n color: var(--nol-code-type);\n}\n\n.token-function {\n color: var(--nol-code-function);\n}\n\n.token-variable {\n color: var(--nol-code-variable);\n}\n\n.token-string-regexp {\n color: var(--nol-code-regex);\n}\n\n.token-meta {\n color: var(--nol-code-meta);\n}\n\n.meta-line {\n background-color: var(--nol-code-header);\n color: var(--nol-text-muted);\n}\n\n.marked-line {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\nbutton.file-row {\n cursor: pointer;\n}\n\n.ellipsis {\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\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.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.note {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.note.error {\n color: var(--nol-error);\n}\n\n.file-row.open,\n.file-row.open:hover {\n background: var(--nol-selected);\n}\n\n@media (forced-colors: active) {\n .marked-line {\n outline: var(--nol-border-width) solid Highlight;\n outline-offset: calc(-1 * var(--nol-border-width));\n }\n}\n"] }]
|
|
180
180
|
}], ctorParameters: () => [], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], scope: [{ type: i0.Input, args: [{ isSignal: true, alias: "scope", required: true }] }], layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }] } });
|
|
181
181
|
//# sourceMappingURL=git-diff-files.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-diff-files.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAe,SAAS,EAClJ,MAAM,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAiC,UAAU,EAAgB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;
|
|
1
|
+
{"version":3,"file":"git-diff-files.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-diff-files/git-diff-files.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAoB,MAAM,EAAe,SAAS,EAClJ,MAAM,eAAe,CAAC;AACvB,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAA2B,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACpF,OAAO,EAAiC,UAAU,EAAgB,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAC1G,OAAO,EAAE,kBAAkB,EAAE,4BAA4B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