@noldova/git.window 0.0.10 → 0.0.12

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.
Files changed (64) hide show
  1. package/package.json +10 -6
  2. package/src/api/index.d.ts +6 -1
  3. package/src/app/components/git-agents/git-agents.component.js +4 -5
  4. package/src/app/components/git-agents/git-agents.component.js.map +1 -1
  5. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +212 -0
  6. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js.map +1 -0
  7. package/src/app/components/git-conflicts/git-conflicts.component.js +6 -6
  8. package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
  9. package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
  10. package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
  11. package/src/app/components/git-file-group/git-file-group.component.js +4 -3
  12. package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
  13. package/src/app/components/git-history/git-history.component.js +32 -8
  14. package/src/app/components/git-history/git-history.component.js.map +1 -1
  15. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +4 -3
  16. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -1
  17. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +4 -3
  18. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js.map +1 -1
  19. package/src/app/components/git-pull-requests/git-pull-requests.component.js +4 -6
  20. package/src/app/components/git-pull-requests/git-pull-requests.component.js.map +1 -1
  21. package/src/app/components/git-repository/git-repository.component.js +19 -4
  22. package/src/app/components/git-repository/git-repository.component.js.map +1 -1
  23. package/src/app/components/git-view/git-view.component.js +16 -3
  24. package/src/app/components/git-view/git-view.component.js.map +1 -1
  25. package/src/app/components/git-workspace/git-workspace.component.js +53 -4
  26. package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
  27. package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
  28. package/src/app/components/git-workspaces/git-workspaces.component.js.map +1 -1
  29. package/src/app/enums/git-add-kind.js +14 -0
  30. package/src/app/enums/git-add-kind.js.map +1 -0
  31. package/src/app/enums/git-host-feature.js +1 -0
  32. package/src/app/enums/git-host-feature.js.map +1 -1
  33. package/src/app/models/git-clone-source.js +29 -0
  34. package/src/app/models/git-clone-source.js.map +1 -0
  35. package/src/app/models/git-folder-look.js +6 -0
  36. package/src/app/models/git-folder-look.js.map +1 -1
  37. package/src/app/services/git-add-requests.js +20 -0
  38. package/src/app/services/git-add-requests.js.map +1 -0
  39. package/src/app/services/git-clone-folders.js +37 -0
  40. package/src/app/services/git-clone-folders.js.map +1 -0
  41. package/src/app/services/git-clone-sources.js +20 -0
  42. package/src/app/services/git-clone-sources.js.map +1 -0
  43. package/src/app/services/git-folder-keys.js +27 -0
  44. package/src/app/services/git-folder-keys.js.map +1 -0
  45. package/src/app/services/git-folder-looks.js +30 -1
  46. package/src/app/services/git-folder-looks.js.map +1 -1
  47. package/src/app/services/git-folder-watch.js +50 -0
  48. package/src/app/services/git-folder-watch.js.map +1 -0
  49. package/src/app/services/git-history-asks.js +2 -1
  50. package/src/app/services/git-history-asks.js.map +1 -1
  51. package/src/app/services/git-repository-scans.js +8 -3
  52. package/src/app/services/git-repository-scans.js.map +1 -1
  53. package/src/app/services/git-runtime-client.js +34 -1
  54. package/src/app/services/git-runtime-client.js.map +1 -1
  55. package/src/app/services/git-view-state.service.js +4 -2
  56. package/src/app/services/git-view-state.service.js.map +1 -1
  57. package/src/app/services/git-viewing.js +2 -1
  58. package/src/app/services/git-viewing.js.map +1 -1
  59. package/src/app/services/git-window-part.js +12 -1
  60. package/src/app/services/git-window-part.js.map +1 -1
  61. package/src/app/services/git-workspace-pages.js +14 -2
  62. package/src/app/services/git-workspace-pages.js.map +1 -1
  63. package/src/resources.js +85 -6
  64. 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.10",
3
+ "version": "0.0.12",
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.window": ">=0.0.19 <0.1.0",
46
- "@noldova/ui.components.angular": ">=0.0.44 <0.1.0"
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.10",
91
- "@noldova/git.protocol": "0.0.10"
94
+ "@noldova/git.hosting.protocol": "0.0.12",
95
+ "@noldova/git.protocol": "0.0.12"
92
96
  },
93
- "gitHead": "eedb612e4e62dc05d714de998def800b222028a3"
97
+ "gitHead": "20d594ec9f183a11399993db53d2e6510e31e41f"
94
98
  }
@@ -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 <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.agentsLabel }}</span>\n </button>\n @if (worktrees() > 0) {\n <span class=\"small muted worktrees\">{{ resources.formatAgentWorktrees(worktrees()) }}</span>\n }\n </div>\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.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\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}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.section:hover,\n.row.note:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\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.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\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"] });
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 <div class=\"row section\">\n <button type=\"button\" class=\"toggle\" [attr.aria-expanded]=\"isOpen()\" (click)=\"toggle()\">\n <span class=\"ms\">{{ isOpen() ? resources.sectionOpenIcon : resources.sectionClosedIcon }}</span>\n <span class=\"caps grow\">{{ resources.agentsLabel }}</span>\n </button>\n @if (worktrees() > 0) {\n <span class=\"small muted worktrees\">{{ resources.formatAgentWorktrees(worktrees()) }}</span>\n }\n </div>\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.toggle {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n white-space: nowrap;\n}\n\n.row {\n box-sizing: border-box;\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}\n\nbutton.row {\n cursor: pointer;\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.row.section:hover,\n.row.note:hover {\n background: transparent;\n}\n\n.toggle {\n flex: 1 1 auto;\n height: 100%;\n padding: 0;\n border: 0;\n background: transparent;\n color: inherit;\n font: inherit;\n cursor: pointer;\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.caps {\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\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"] }]
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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CAAC,CAAC,CAAC;IAC9B,CAAC;IAES,MAAM,CAAC,KAAoB;QACnC,OAAO,SAAS,CAAC,eAAe,CAAC,KAAK,CAAC,CAAC;IAC1C,CAAC;IAES,OAAO,CAAC,KAAoB;QACpC,OAAO,SAAS,CAAC,gBAAgB,CAAC,KAAK,CAAC,CAAC;IAC3C,CAAC;IAES,IAAI,CAAC,GAAe;QAC5B,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;uGApCU,kBAAkB;2FAAlB,kBAAkB,gNC1B/B,+sCA8BA;;2FDJa,kBAAkB;kBAL9B,SAAS;+BACE,gBAAgB"}
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,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE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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,212 @@
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, input, 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 } 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
+ context = input.required(/* @ts-ignore */
27
+ ...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
28
+ answered = output();
29
+ dates = inject(TimeFormatService);
30
+ host = inject(ElementRef).nativeElement;
31
+ injector = inject(Injector);
32
+ client = computed(() => new GitRuntimeClient(this.context()), /* @ts-ignore */
33
+ ...(ngDevMode ? [{ debugName: "client" }] : /* istanbul ignore next */ []));
34
+ lists = signal(new Map(), /* @ts-ignore */
35
+ ...(ngDevMode ? [{ debugName: "lists" }] : /* istanbul ignore next */ []));
36
+ list = computed(() => this.lists().get(this.chosen()) ?? null, /* @ts-ignore */
37
+ ...(ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []));
38
+ isClosed = false;
39
+ resources = Resources;
40
+ listId = Resources.formatCloneListId(++GitCloneDialogComponent.lists);
41
+ secondary = ButtonVariant.Secondary;
42
+ size = DialogSize.Medium;
43
+ cloning = signal(null, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "cloning" }] : /* istanbul ignore next */ []));
45
+ sources = computed(() => GitCloneSources.of(GitHostAccounts.accounts()), /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "sources" }] : /* istanbul ignore next */ []));
47
+ options = computed(() => {
48
+ const isCloning = !Object.isNull(this.cloning());
49
+ return [new SelectOption(Resources.cloneUrlSource, Resources.cloneUrlTitle, null, isCloning), ...this.sources().map(t => new SelectOption(t.key, t.label, null, isCloning))];
50
+ }, /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
52
+ chosen = signal(Resources.cloneUrlSource, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "chosen" }] : /* istanbul ignore next */ []));
54
+ source = computed(() => this.sources().find(t => t.key === this.chosen()) ?? null, /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []));
56
+ typed = signal("", /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "typed" }] : /* istanbul ignore next */ []));
58
+ filter = signal("", /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "filter" }] : /* istanbul ignore next */ []));
60
+ picked = signal(null, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "picked" }] : /* istanbul ignore next */ []));
62
+ rows = computed(() => {
63
+ const list = this.list();
64
+ const text = this.filter().trim().toLowerCase();
65
+ return list instanceof HostRepositoryList ? list.rows.filter(t => t.name.toLowerCase().includes(text)) : [];
66
+ }, /* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
68
+ activeId = computed(() => {
69
+ const index = this.rows().findIndex(t => t === this.picked());
70
+ return index < 0 ? null : Resources.formatCloneOptionId(this.listId, index);
71
+ }, /* @ts-ignore */
72
+ ...(ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []));
73
+ status = computed(() => {
74
+ const list = this.list();
75
+ if (Object.isNull(list))
76
+ return Resources.cloneListReading;
77
+ if (Object.isString(list))
78
+ return list;
79
+ if (!list.isSignedIn)
80
+ return Resources.cloneListSignedOut;
81
+ if (list.rows.length === 0)
82
+ return Resources.cloneListEmpty;
83
+ if (this.rows().length === 0)
84
+ return list.hasMore ? Resources.formatCloneListNoMatchesMore(list.rows.length) : Resources.cloneListNoMatches;
85
+ return list.hasMore ? Resources.formatCloneListMore(list.rows.length) : null;
86
+ }, /* @ts-ignore */
87
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
88
+ url = computed(() => Object.isNull(this.source()) ? this.typed().trim() : this.picked()?.url ?? "", /* @ts-ignore */
89
+ ...(ngDevMode ? [{ debugName: "url" }] : /* istanbul ignore next */ []));
90
+ name = linkedSignal(() => GitCloneFolders.nameOf(this.url()), /* @ts-ignore */
91
+ ...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
92
+ parent = GitCloneFolders.parent;
93
+ isName = computed(() => GitCloneFolders.isName(this.name()), /* @ts-ignore */
94
+ ...(ngDevMode ? [{ debugName: "isName" }] : /* istanbul ignore next */ []));
95
+ folder = computed(() => {
96
+ const parent = this.parent();
97
+ return Object.isNull(parent) || this.name().length === 0 || !this.isName() ? null : GitCloneFolders.join(parent, this.name());
98
+ }, /* @ts-ignore */
99
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
100
+ progress = signal(null, /* @ts-ignore */
101
+ ...(ngDevMode ? [{ debugName: "progress" }] : /* istanbul ignore next */ []));
102
+ progressText = computed(() => {
103
+ const progress = this.progress();
104
+ return Object.isNull(progress) ? Resources.cloneStarting : Resources.formatClonePhase(progress.phase, progress.percent);
105
+ }, /* @ts-ignore */
106
+ ...(ngDevMode ? [{ debugName: "progressText" }] : /* istanbul ignore next */ []));
107
+ failure = signal(null, /* @ts-ignore */
108
+ ...(ngDevMode ? [{ debugName: "failure" }] : /* istanbul ignore next */ []));
109
+ canClone = computed(() => this.url().length > 0 && !Object.isNull(this.folder()) && Object.isNull(this.cloning()), /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "canClone" }] : /* istanbul ignore next */ []));
111
+ choose(key) {
112
+ this.chosen.set(key);
113
+ this.picked.set(null);
114
+ this.failure.set(null);
115
+ const source = this.source();
116
+ if (!Object.isNull(source) && !this.lists().has(source.key))
117
+ void this.readAsync(source);
118
+ }
119
+ pick(repository) {
120
+ if (!Object.isNull(this.cloning()))
121
+ return;
122
+ this.picked.set(repository);
123
+ this.failure.set(null);
124
+ }
125
+ onKey(event) {
126
+ if (event.key === "Enter") {
127
+ event.preventDefault();
128
+ void this.cloneAsync();
129
+ return;
130
+ }
131
+ if (event.key !== "ArrowDown" && event.key !== "ArrowUp")
132
+ return;
133
+ event.preventDefault();
134
+ const rows = this.rows();
135
+ const index = rows.findIndex(t => t === this.picked());
136
+ const next = event.key === "ArrowUp" && index < 0 ? rows.at(-1) : rows[(index + (event.key === "ArrowDown" ? 1 : rows.length - 1)) % rows.length];
137
+ if (Object.isUndefined(next))
138
+ return;
139
+ this.pick(next);
140
+ const id = Resources.formatCloneOptionId(this.listId, rows.indexOf(next));
141
+ afterNextRender(() => this.host.querySelector(`#${id}`)?.scrollIntoView({ block: "nearest" }), { injector: this.injector });
142
+ }
143
+ async chooseParentAsync() {
144
+ const parent = await this.context().chooseFolderAsync();
145
+ if (!Object.isNull(parent))
146
+ GitCloneFolders.remember(parent);
147
+ }
148
+ async cloneAsync() {
149
+ const folder = this.folder();
150
+ if (!this.canClone() || Object.isNull(folder))
151
+ return;
152
+ const id = crypto.randomUUID();
153
+ this.cloning.set(id);
154
+ this.progress.set(null);
155
+ this.failure.set(null);
156
+ const stop = this.client().onCloneProgress(t => {
157
+ if (t.progress === id)
158
+ this.progress.set(t);
159
+ });
160
+ try {
161
+ await this.client().cloneAsync(this.url(), folder, id);
162
+ if (!this.isClosed)
163
+ this.answered.emit(folder);
164
+ }
165
+ catch (error) {
166
+ if (!GitCloneDialogComponent.isCancelled(error))
167
+ this.failure.set(GitViewStateService.messageOf(error));
168
+ }
169
+ finally {
170
+ stop();
171
+ this.cloning.set(null);
172
+ }
173
+ }
174
+ cancel() {
175
+ const id = this.cloning();
176
+ if (Object.isNull(id)) {
177
+ this.close();
178
+ return;
179
+ }
180
+ this.client().cancelCloneAsync(id).catch((error) => this.context().log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
181
+ }
182
+ dismiss() {
183
+ const id = this.cloning();
184
+ if (!Object.isNull(id))
185
+ this.client().cancelCloneAsync(id).catch((error) => this.context().log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
186
+ this.close();
187
+ }
188
+ close() {
189
+ this.isClosed = true;
190
+ this.answered.emit(null);
191
+ }
192
+ async readAsync(source) {
193
+ let answer;
194
+ try {
195
+ answer = await source.readAsync();
196
+ }
197
+ catch (error) {
198
+ answer = GitHostFailure.of(error, Resources.cloneListFailed).textOf(source.host, this.dates);
199
+ }
200
+ this.lists.update(t => new Map([...t, [source.key, answer]]));
201
+ }
202
+ static isCancelled(error) {
203
+ return error instanceof RuntimeRequestException && error.code === DesktopCode.Cancelled;
204
+ }
205
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
206
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", 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 <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"] }] });
207
+ }
208
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, decorators: [{
209
+ type: Component,
210
+ 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"] }]
211
+ }], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
212
+ //# 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,KAAK,EAAoB,YAAY,EAAE,MAAM,EAAyB,MAAM,EAEjJ,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,MAAM,yBAAyB,CAAC;AAC9G,OAAO,EAAuB,kBAAkB,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,oBAAoB,EAAE,eAAe,EAAE,UAAU,EAAE,iBAAiB,EAAE,YAAY,EACzH,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAE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