@noldova/git.window 0.0.28 → 0.0.30

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 (31) hide show
  1. package/package.json +21 -9
  2. package/src/app/components/git-diff-document/git-diff-document.component.js +213 -0
  3. package/src/app/components/git-diff-document/git-diff-document.component.js.map +1 -0
  4. package/src/app/components/git-diff-files/git-diff-files.component.js +1 -1
  5. package/src/app/components/git-diff-files/git-diff-files.component.js.map +1 -1
  6. package/src/app/components/git-file-group/git-file-group.component.js +4 -3
  7. package/src/app/components/git-file-group/git-file-group.component.js.map +1 -1
  8. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +1 -1
  9. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js.map +1 -1
  10. package/src/app/components/git-view/git-view.component.js +7 -2
  11. package/src/app/components/git-view/git-view.component.js.map +1 -1
  12. package/src/app/models/git-change-bars.js +33 -0
  13. package/src/app/models/git-change-bars.js.map +1 -0
  14. package/src/app/models/git-change-lines.js +38 -0
  15. package/src/app/models/git-change-lines.js.map +1 -0
  16. package/src/app/models/git-change-revert.js +35 -0
  17. package/src/app/models/git-change-revert.js.map +1 -0
  18. package/src/app/models/git-diff-target.js +32 -0
  19. package/src/app/models/git-diff-target.js.map +1 -0
  20. package/src/app/models/git-diff-view.js +25 -0
  21. package/src/app/models/git-diff-view.js.map +1 -0
  22. package/src/app/services/git-diff-documents.js +15 -0
  23. package/src/app/services/git-diff-documents.js.map +1 -0
  24. package/src/app/services/git-runtime-client.js +7 -1
  25. package/src/app/services/git-runtime-client.js.map +1 -1
  26. package/src/app/services/git-view-state.service.js +3 -3
  27. package/src/app/services/git-view-state.service.js.map +1 -1
  28. package/src/app/services/git-window-part.js +1 -0
  29. package/src/app/services/git-window-part.js.map +1 -1
  30. package/src/resources.js +32 -0
  31. 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.28",
3
+ "version": "0.0.30",
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",
@@ -35,16 +35,19 @@
35
35
  "@angular/common": ">=22.3.2 <23.0.0",
36
36
  "@angular/core": ">=22.3.2 <23.0.0",
37
37
  "@angular/forms": ">=22.3.2 <23.0.0",
38
- "@noldova/code.editor": ">=0.0.3 <0.1.0",
39
- "@noldova/code.editor.angular": ">=0.0.3 <0.1.0",
40
- "@noldova/code.editor.merge.angular": ">=0.0.3 <0.1.0",
41
- "@noldova/code.editor.textmate": ">=0.0.3 <0.1.0",
38
+ "@noldova/code.editor": ">=0.0.4 <0.1.0",
39
+ "@noldova/code.editor.angular": ">=0.0.4 <0.1.0",
40
+ "@noldova/code.editor.diff": ">=0.0.4 <0.1.0",
41
+ "@noldova/code.editor.diff.angular": ">=0.0.4 <0.1.0",
42
+ "@noldova/code.editor.merge.angular": ">=0.0.4 <0.1.0",
43
+ "@noldova/code.editor.textmate": ">=0.0.4 <0.1.0",
44
+ "@noldova/context.collections": ">=0.0.20 <0.1.0",
42
45
  "@noldova/context.core": ">=0.0.20 <0.1.0",
43
46
  "@noldova/context.exceptions": ">=0.0.20 <0.1.0",
44
47
  "@noldova/context.json": ">=0.0.20 <0.1.0",
45
48
  "@noldova/desktop.protocol": ">=0.0.36 <0.1.0",
46
49
  "@noldova/desktop.window": ">=0.0.36 <0.1.0",
47
- "@noldova/ui.components.angular": ">=0.0.60 <0.1.0"
50
+ "@noldova/ui.components.angular": ">=0.0.62 <0.1.0"
48
51
  },
49
52
  "peerDependenciesMeta": {
50
53
  "@angular/cdk": {
@@ -65,12 +68,21 @@
65
68
  "@noldova/code.editor.angular": {
66
69
  "optional": true
67
70
  },
71
+ "@noldova/code.editor.diff": {
72
+ "optional": true
73
+ },
74
+ "@noldova/code.editor.diff.angular": {
75
+ "optional": true
76
+ },
68
77
  "@noldova/code.editor.merge.angular": {
69
78
  "optional": true
70
79
  },
71
80
  "@noldova/code.editor.textmate": {
72
81
  "optional": true
73
82
  },
83
+ "@noldova/context.collections": {
84
+ "optional": true
85
+ },
74
86
  "@noldova/context.core": {
75
87
  "optional": true
76
88
  },
@@ -91,8 +103,8 @@
91
103
  }
92
104
  },
93
105
  "dependencies": {
94
- "@noldova/git.hosting.protocol": "0.0.28",
95
- "@noldova/git.protocol": "0.0.28"
106
+ "@noldova/git.hosting.protocol": "0.0.30",
107
+ "@noldova/git.protocol": "0.0.30"
96
108
  },
97
- "gitHead": "b945c710d0c4beeb3967877631b42fe6776be565"
109
+ "gitHead": "632420bd2c61470e030a44f128fce8e610a52088"
98
110
  }
@@ -0,0 +1,213 @@
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 { Component, computed, DestroyRef, effect, ErrorHandler, inject, input, signal, untracked, viewChild } from "@angular/core";
9
+ import { TextDocument, UndoHistory } from "@noldova/code.editor";
10
+ import { DocumentDiff } from "@noldova/code.editor.diff";
11
+ import { DiffEditorComponent, DiffLayout } from "@noldova/code.editor.diff.angular";
12
+ import "@noldova/context.core";
13
+ import { WindowPartTokens } from "@noldova/desktop.window";
14
+ import { DiffScopeKind, FailureCode } from "@noldova/git.protocol";
15
+ import { ButtonComponent, ButtonVariant, ToolbarButtonComponent } from "@noldova/ui.components.angular";
16
+ import { GitChangeBars } from "../../models/git-change-bars.js";
17
+ import { GitChangeLines } from "../../models/git-change-lines.js";
18
+ import { GitChangeRevert } from "../../models/git-change-revert.js";
19
+ import { GitDiffTarget } from "../../models/git-diff-target.js";
20
+ import { GitDiffView } from "../../models/git-diff-view.js";
21
+ import { Resources } from "../../../resources.js";
22
+ import { GitCodeColors } from "../../services/git-code-colors.js";
23
+ import { GitFolder } from "../../services/git-folder.js";
24
+ import { GitRuntimeClient } from "../../services/git-runtime-client.js";
25
+ import { GitViewStateService } from "../../services/git-view-state.service.js";
26
+ import * as i0 from "@angular/core";
27
+ export class GitDiffDocumentComponent {
28
+ errors = inject(ErrorHandler);
29
+ colors = inject(GitCodeColors);
30
+ client = new GitRuntimeClient(inject(WindowPartTokens.context));
31
+ reads = 0;
32
+ isSaving = false;
33
+ isDirty = false;
34
+ loaded = "";
35
+ saving = Promise.resolve(true);
36
+ unlisten = null;
37
+ resume = null;
38
+ resources = Resources;
39
+ sideBySide = DiffLayout.SideBySide;
40
+ secondary = ButtonVariant.Secondary;
41
+ state = inject(GitViewStateService);
42
+ target = computed(() => GitDiffTarget.fromInstance(this.instance()), /* @ts-ignore */
43
+ ...(ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []));
44
+ view = signal(null, /* @ts-ignore */
45
+ ...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
46
+ binary = signal(false, /* @ts-ignore */
47
+ ...(ngDevMode ? [{ debugName: "binary" }] : /* istanbul ignore next */ []));
48
+ missing = signal(false, /* @ts-ignore */
49
+ ...(ngDevMode ? [{ debugName: "missing" }] : /* istanbul ignore next */ []));
50
+ readFailure = signal(null, /* @ts-ignore */
51
+ ...(ngDevMode ? [{ debugName: "readFailure" }] : /* istanbul ignore next */ []));
52
+ changedOnDisk = signal(false, /* @ts-ignore */
53
+ ...(ngDevMode ? [{ debugName: "changedOnDisk" }] : /* istanbul ignore next */ []));
54
+ canStage = computed(() => !this.changedOnDisk(), /* @ts-ignore */
55
+ ...(ngDevMode ? [{ debugName: "canStage" }] : /* istanbul ignore next */ []));
56
+ language = computed(() => this.colors.languageOf(this.target().path), /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "language" }] : /* istanbul ignore next */ []));
58
+ originalLabel = computed(() => this.target().staged ? Resources.headLabel : Resources.indexLabel, /* @ts-ignore */
59
+ ...(ngDevMode ? [{ debugName: "originalLabel" }] : /* istanbul ignore next */ []));
60
+ modifiedLabel = computed(() => this.target().staged ? Resources.indexLabel : Resources.workingTreeLabel, /* @ts-ignore */
61
+ ...(ngDevMode ? [{ debugName: "modifiedLabel" }] : /* istanbul ignore next */ []));
62
+ status = computed(() => this.state.folder() === this.target().folder ? this.state.status() : null, /* @ts-ignore */
63
+ ...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
64
+ editor = viewChild(DiffEditorComponent, /* @ts-ignore */
65
+ ...(ngDevMode ? [{ debugName: "editor" }] : /* istanbul ignore next */ []));
66
+ instance = input.required(/* @ts-ignore */
67
+ ...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
68
+ constructor() {
69
+ effect(() => {
70
+ const target = this.target();
71
+ this.status();
72
+ untracked(() => {
73
+ this.resumeSave();
74
+ void this.readAsync(target);
75
+ });
76
+ });
77
+ const folder = computed(() => this.target().folder, /* @ts-ignore */
78
+ ...(ngDevMode ? [{ debugName: "folder" }] : /* istanbul ignore next */ []));
79
+ const destroy = inject(DestroyRef);
80
+ destroy.onDestroy(GitFolder.follow(folder, inject(WindowPartTokens.activeDocument)));
81
+ destroy.onDestroy(() => this.drop());
82
+ }
83
+ previous() {
84
+ this.editor()?.previousChange();
85
+ }
86
+ next() {
87
+ this.editor()?.nextChange();
88
+ }
89
+ act(view, event) {
90
+ if (event.action.id !== Resources.revertChangeAction) {
91
+ void this.stageAsync(this.target(), event.change);
92
+ return;
93
+ }
94
+ view.history.seal();
95
+ view.history.apply(GitChangeRevert.of(view.diff, event.change, Date.now()));
96
+ view.history.seal();
97
+ }
98
+ reload() {
99
+ this.changedOnDisk.set(false);
100
+ void this.readAsync(this.target(), true);
101
+ }
102
+ async readAsync(target, isReload = false) {
103
+ if (!isReload && this.isHeld())
104
+ return;
105
+ const read = ++this.reads;
106
+ try {
107
+ const texts = await this.client.fileTextsAsync(target.folder, target.path, target.staged);
108
+ if (read !== this.reads || (!isReload && this.isHeld()))
109
+ return;
110
+ this.readFailure.set(null);
111
+ this.binary.set(texts.binary);
112
+ const wasMissing = this.missing();
113
+ this.missing.set(texts.missing);
114
+ const view = this.view();
115
+ if (Object.isNull(view) || wasMissing !== texts.missing || !view.shows(texts.original, texts.modified))
116
+ this.show(target, texts);
117
+ }
118
+ catch (error) {
119
+ if (read === this.reads)
120
+ this.readFailure.set(GitViewStateService.messageOf(error));
121
+ }
122
+ }
123
+ show(target, texts) {
124
+ this.drop();
125
+ this.loaded = texts.modified;
126
+ this.saving = Promise.resolve(true);
127
+ const diff = new DocumentDiff(TextDocument.fromText(texts.original), TextDocument.fromText(texts.modified));
128
+ this.unlisten = target.staged || texts.missing ? null : diff.modified.onChange(() => this.save(target, diff));
129
+ this.view.set(new GitDiffView(diff, new UndoHistory(diff.modified), new GitChangeBars(diff, target.staged, this.canStage, !texts.missing)));
130
+ }
131
+ drop() {
132
+ this.unlisten?.();
133
+ this.unlisten = null;
134
+ this.view()?.diff[Symbol.dispose]();
135
+ }
136
+ isHeld() {
137
+ return this.isSaving || this.isDirty || this.changedOnDisk();
138
+ }
139
+ resumeSave() {
140
+ const resume = this.resume;
141
+ this.resume = null;
142
+ resume?.();
143
+ }
144
+ save(target, diff) {
145
+ if (this.changedOnDisk())
146
+ return;
147
+ this.isDirty = true;
148
+ if (!this.isSaving)
149
+ this.saving = this.saveAsync(target, diff);
150
+ }
151
+ async stageAsync(target, change) {
152
+ try {
153
+ if (!await this.saveFirstAsync())
154
+ return;
155
+ const diff = await this.state.diffAsync(target.staged ? DiffScopeKind.Staged : DiffScopeKind.Worktree);
156
+ const file = diff.files.find(t => t.path === target.path);
157
+ const lines = Object.isUndefined(file) ? [] : GitChangeLines.of(file, change);
158
+ if (lines.length > 0)
159
+ await this.state.stageLinesAsync(target.path, lines, target.staged, true);
160
+ }
161
+ catch (error) {
162
+ this.errors.handleError(error);
163
+ }
164
+ }
165
+ async saveFirstAsync() {
166
+ let isSaved = await this.saving;
167
+ if (!Object.isNull(this.resume)) {
168
+ await this.state.refreshAsync();
169
+ this.resumeSave();
170
+ isSaved = await this.saving;
171
+ }
172
+ if (isSaved)
173
+ await this.state.refreshAsync();
174
+ return isSaved;
175
+ }
176
+ async saveAsync(target, diff) {
177
+ this.isSaving = true;
178
+ try {
179
+ while (this.isDirty) {
180
+ const status = this.status();
181
+ if (Object.isNull(status)) {
182
+ this.resume = () => {
183
+ this.saving = this.saveAsync(target, diff);
184
+ };
185
+ return false;
186
+ }
187
+ this.isDirty = false;
188
+ const text = diff.modified.text();
189
+ await this.client.saveFileAsync(target.folder, target.path, text, this.loaded, status.fingerprint);
190
+ this.loaded = text;
191
+ }
192
+ return true;
193
+ }
194
+ catch (error) {
195
+ this.isDirty = false;
196
+ if (GitRuntimeClient.failureOf(error)?.code === FailureCode.Stale)
197
+ this.changedOnDisk.set(true);
198
+ else
199
+ this.errors.handleError(error);
200
+ return false;
201
+ }
202
+ finally {
203
+ this.isSaving = false;
204
+ }
205
+ }
206
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiffDocumentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
207
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitDiffDocumentComponent, isStandalone: true, selector: "nol-git-diff-document", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: DiffEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n<div class=\"head\">\n <span class=\"path muted\">{{ target().path }}</span>\n <span class=\"sides muted\">{{ resources.formatDiffSides(originalLabel(), modifiedLabel()) }}</span>\n <span class=\"actions\">\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousChangeIcon\" [label]=\"resources.previousChangeLabel\" [disabled]=\"view() === null\"\n (click)=\"previous()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextChangeIcon\" [label]=\"resources.nextChangeLabel\" [disabled]=\"view() === null\"\n (click)=\"next()\"></button>\n </span>\n</div>\n@if (changedOnDisk()) {\n <div class=\"changed\" role=\"alert\">\n <span class=\"changed-text\">{{ resources.fileChangedNote }}</span>\n <button nol-button type=\"button\" class=\"reload\" [variant]=\"secondary\" (click)=\"reload()\">{{ resources.reloadLabel }}</button>\n </div>\n}\n@if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n} @else if (binary()) {\n <p class=\"quiet\">{{ resources.binaryDiffNote }}</p>\n} @else if (view(); as view) {\n <noldova-diff-editor class=\"diff\" [diff]=\"view.diff\" [history]=\"view.history\" [language]=\"language()\" [layout]=\"sideBySide\"\n [originalLabel]=\"originalLabel()\" [modifiedLabel]=\"modifiedLabel()\" [readOnly]=\"target().staged || missing()\" [bars]=\"view.bars\" (barAction)=\"act(view, $event)\" />\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:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n gap: 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.path {\n overflow: hidden;\n min-width: 0;\n text-overflow: ellipsis;\n}\n\n.sides {\n flex: none;\n}\n\n.actions {\n display: flex;\n flex: none;\n gap: 0.25rem;\n margin-inline-start: auto;\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.changed {\n display: flex;\n box-sizing: border-box;\n flex: none;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n background-color: color-mix(in srgb, var(--nol-warning) 12%, transparent);\n}\n\n.changed-text {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.reload {\n flex: none;\n}\n\n.diff {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.failure,\n.quiet {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.quiet {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DiffEditorComponent, selector: "noldova-diff-editor", inputs: ["diff", "history", "originalHistory", "language", "layout", "originalLabel", "modifiedLabel", "readOnly", "originalReadOnly", "bars"], outputs: ["barAction", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
208
+ }
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitDiffDocumentComponent, decorators: [{
210
+ type: Component,
211
+ args: [{ selector: "nol-git-diff-document", imports: [ButtonComponent, DiffEditorComponent, ToolbarButtonComponent], providers: [GitViewStateService], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n<div class=\"head\">\n <span class=\"path muted\">{{ target().path }}</span>\n <span class=\"sides muted\">{{ resources.formatDiffSides(originalLabel(), modifiedLabel()) }}</span>\n <span class=\"actions\">\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousChangeIcon\" [label]=\"resources.previousChangeLabel\" [disabled]=\"view() === null\"\n (click)=\"previous()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextChangeIcon\" [label]=\"resources.nextChangeLabel\" [disabled]=\"view() === null\"\n (click)=\"next()\"></button>\n </span>\n</div>\n@if (changedOnDisk()) {\n <div class=\"changed\" role=\"alert\">\n <span class=\"changed-text\">{{ resources.fileChangedNote }}</span>\n <button nol-button type=\"button\" class=\"reload\" [variant]=\"secondary\" (click)=\"reload()\">{{ resources.reloadLabel }}</button>\n </div>\n}\n@if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n} @else if (binary()) {\n <p class=\"quiet\">{{ resources.binaryDiffNote }}</p>\n} @else if (view(); as view) {\n <noldova-diff-editor class=\"diff\" [diff]=\"view.diff\" [history]=\"view.history\" [language]=\"language()\" [layout]=\"sideBySide\"\n [originalLabel]=\"originalLabel()\" [modifiedLabel]=\"modifiedLabel()\" [readOnly]=\"target().staged || missing()\" [bars]=\"view.bars\" (barAction)=\"act(view, $event)\" />\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:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n gap: 0.5rem;\n align-items: center;\n min-height: 2rem;\n padding: 0.125rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.path {\n overflow: hidden;\n min-width: 0;\n text-overflow: ellipsis;\n}\n\n.sides {\n flex: none;\n}\n\n.actions {\n display: flex;\n flex: none;\n gap: 0.25rem;\n margin-inline-start: auto;\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.changed {\n display: flex;\n box-sizing: border-box;\n flex: none;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n background-color: color-mix(in srgb, var(--nol-warning) 12%, transparent);\n}\n\n.changed-text {\n flex: 1 1 auto;\n min-width: 0;\n}\n\n.reload {\n flex: none;\n}\n\n.diff {\n flex: 1 1 auto;\n min-height: 0;\n}\n\n.failure,\n.quiet {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.quiet {\n color: var(--nol-text-muted);\n}\n"] }]
212
+ }], ctorParameters: () => [], propDecorators: { editor: [{ type: i0.ViewChild, args: [i0.forwardRef(() => DiffEditorComponent), { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
213
+ //# sourceMappingURL=git-diff-document.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"git-diff-document.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-diff-document/git-diff-document.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-diff-document/git-diff-document.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,EAAE,SAAS,EACnH,MAAM,eAAe,CAAC;AAC7C,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AACjE,OAAO,EAAE,YAAY,EAAmB,MAAM,2BAA2B,CAAC;AAC1E,OAAO,EAA2B,mBAAmB,EAAE,UAAU,EAAE,MAAM,mCAAmC,CAAC;AAC7G,OAAO,uBAAuB,CAAC;AAC/B,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAiB,aAAa,EAAE,WAAW,EAAmD,MAAM,uBAAuB,CAAC;AACnI,OAAO,EAAE,eAAe,EAAE,aAAa,EAAE,sBAAsB,EAAE,MAAM,gCAAgC,CAAC;AAExG,OAAO,EAA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CAAC,aAAa,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,IAAI,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,CAAC,CAAC;gBACnG,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC;YACrB,CAAC;YAED,OAAO,IAAI,CAAC;QACd,CAAC;QAAC,OAAO,KAAK,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC;YACrB,IAAI,gBAAgB,CAAC,SAAS,CAAC,KAAK,CAAC,EAAE,IAAI,KAAK,WAAW,CAAC,KAAK;gBAC/D,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;;gBAE7B,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC,CAAC;YAEjC,OAAO,KAAK,CAAC;QACf,CAAC;gBAAS,CAAC;YACT,IAAI,CAAC,QAAQ,GAAG,KAAK,CAAC;QACxB,CAAC;IACH,CAAC;uGAnLU,wBAAwB;2FAAxB,wBAAwB,gNAJxB,CAAC,mBAAmB,CAAC,kEA+B6C,mBAAmB,gEC/DlG,smDA+BA,ioDDAY,eAAe,oJAAE,mBAAmB,8PAAE,sBAAsB;;2FAK3D,wBAAwB;kBAPpC,SAAS;+BACE,uBAAuB,WACxB,CAAC,eAAe,EAAE,mBAAmB,EAAE,sBAAsB,CAAC,aAC5D,CAAC,mBAAmB,CAAC;kHA+B6C,mBAAmB"}
@@ -45,7 +45,7 @@ export class GitDiffFilesComponent {
45
45
  ...(ngDevMode ? [{ debugName: "closed" }] : /* istanbul ignore next */ []));
46
46
  open = signal(new Set(), /* @ts-ignore */
47
47
  ...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
48
- rows = computed(() => GitCommitFiles.rowsOf(this.files(), this.chosen()?.() ?? GitFileLayout.Folders, this.closed()), /* @ts-ignore */
48
+ rows = computed(() => GitCommitFiles.rowsOf(this.files(), this.chosen()?.() ?? GitFileLayout.Tree, this.closed()), /* @ts-ignore */
49
49
  ...(ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []));
50
50
  totals = computed(() => {
51
51
  const whole = this.diff()?.totals ?? null;
@@ -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,4BAA4B,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAExJ,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,4BAA4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AA4B,EAAE,sBAAsB,EAAE,4BAA4B,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,EAAE,sBAAsB,EAAE,4BAA4B,EAAE,MAAM,gCAAgC,CAAC;AAExJ,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAE/D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC;AACpE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;AAC/E,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,4BAA4B,EAAE,MAAM,+DAA+D,CAAC;AAC7G,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;;AAQhE,MAAM,OAAO,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ignore */
71
71
  ...(ngDevMode ? [{ debugName: "group" }] : /* istanbul ignore next */ []));
72
72
  openConflict = output();
73
+ openDiff = output();
73
74
  constructor() {
74
75
  inject(DestroyRef).onDestroy(FocusKeeper.keep(inject(ElementRef).nativeElement));
75
76
  effect(() => {
@@ -171,11 +172,11 @@ export class GitFileGroupComponent {
171
172
  return next;
172
173
  }
173
174
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
174
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitFileGroupComponent, isStandalone: true, selector: "nol-git-file-group", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { openConflict: "openConflict" }, 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-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggle(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\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: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\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.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\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 container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\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.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.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"], 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: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
175
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitFileGroupComponent, isStandalone: true, selector: "nol-git-file-group", inputs: { group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { openConflict: "openConflict", openDiff: "openDiff" }, 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-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openDiff.emit(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\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: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\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.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\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 container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\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.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.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"], 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: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { 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]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
175
176
  }
176
177
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitFileGroupComponent, decorators: [{
177
178
  type: Component,
178
179
  args: [{ selector: "nol-git-file-group", imports: [FileBadgeComponent, GitFileLayoutButtonComponent, IconButtonComponent, NgTemplateOutlet, SectionHeaderActionDirective, SectionHeaderComponent,
179
- SectionHeaderDetailDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [attr.aria-expanded]=\"isOpen\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggle(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\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: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\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.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\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 container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\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.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.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"] }]
180
- }], ctorParameters: () => [], propDecorators: { group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: true }] }], openConflict: [{ type: i0.Output, args: ["openConflict"] }] } });
180
+ SectionHeaderDetailDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-section-header [label]=\"resources.groupTitles[group().kind]\" [level]=\"3\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <span nolSectionHeaderDetail class=\"count\">{{ group().rows.length }}</span>\n <nol-git-file-layout-button nolSectionHeaderAction class=\"layout\" [layout]=\"state.fileLayout\" />\n @if (group().kind !== kinds.Conflicts) {\n <button nolSectionHeaderAction type=\"button\" class=\"move-all\" [disabled]=\"state.busy()\" (click)=\"moveAll()\">\n {{ group().kind === kinds.Staged ? resources.unstageAllLabel : resources.stageAllLabel }}\n </button>\n }\n</nol-section-header>\n<ul class=\"files\">\n @for (item of items(); track item.key) {\n @if (item.row; as row) {\n @let isOpen = open().has(row.key);\n @let moveLabel = row.group === kinds.Staged ? resources.formatUnstage(row.path) : resources.formatStage(row.path);\n <li>\n <div class=\"file\" [class.open]=\"isOpen\">\n @if (row.group === kinds.Conflicts) {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openConflict.emit(row.path)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n } @else {\n <button type=\"button\" class=\"name\" [nolTooltip]=\"row.path\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\" (click)=\"openDiff.emit(row)\">\n <ng-container [ngTemplateOutlet]=\"nameOf\" [ngTemplateOutletContext]=\"{ $implicit: row, name: item.name }\" />\n </button>\n }\n <span class=\"actions\">\n @if (isOpen) {\n @let wrapLabel = wrapped().has(row.key) ? resources.unwrapLinesLabel : resources.wrapLinesLabel;\n <button nol-icon-button type=\"button\" class=\"wrap\" [icon]=\"resources.wrapIcon\" [pressed]=\"wrapped().has(row.key)\" [label]=\"wrapLabel\" [nolTooltip]=\"wrapLabel\"\n (click)=\"toggleWrap(row)\"></button>\n }\n @if (row.group !== kinds.Conflicts) {\n @let diffLabel = isOpen ? resources.hideDiffLabel : resources.showDiffLabel;\n <button nol-icon-button type=\"button\" class=\"expand\" [icon]=\"isOpen ? resources.collapseIcon : resources.expandIcon\" [label]=\"diffLabel\" [nolTooltip]=\"diffLabel\"\n [attr.aria-expanded]=\"isOpen\" (click)=\"toggle(row)\"></button>\n }\n @if (row.group === kinds.Changes) {\n @let discardLabel = resources.formatDiscard(row.path);\n <button nol-icon-button type=\"button\" class=\"discard\" [icon]=\"resources.discardIcon\" [label]=\"discardLabel\" [nolTooltip]=\"discardLabel\"\n [disabled]=\"state.busy()\" (click)=\"discardAsync(row)\"></button>\n }\n <button nol-icon-button type=\"button\" class=\"move\" [icon]=\"row.group === kinds.Staged ? resources.unstageIcon : resources.stageIcon\" [label]=\"moveLabel\"\n [nolTooltip]=\"moveLabel\" [disabled]=\"state.busy()\" (click)=\"move(row)\"></button>\n </span>\n </div>\n @if (isOpen) {\n <div class=\"diff\" [class.wrapped]=\"wrapped().has(row.key)\">\n @let chosenLines = chosenOf(row);\n @let codes = codesOf(row);\n @for (line of rowsOf(row); track $index) {\n @if (line.line !== null) {\n <button type=\"button\" class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.chosen]=\"chosenLines.has(line.line)\" [attr.aria-pressed]=\"chosenLines.has(line.line)\" (click)=\"choose(row, line.line)\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</button>\n } @else if (line.hunk.length > 0) {\n @let hunkLines = linesOf(row, line);\n @let hunkLabel = hunkLabelOf(row, line);\n <div class=\"line meta-line hunk\">\n <span class=\"hunk-text\" data-truncates [nolTooltip]=\"line.text\" [nolTooltipTruncated]=\"true\">{{ line.text }}</span>\n <button type=\"button\" class=\"hunk-action\" [disabled]=\"state.busy()\" (click)=\"stageLines(row, hunkLines)\">{{ hunkLabel }}</button>\n </div>\n } @else {\n <div class=\"line\" [class.added-line]=\"line.kind === lineKinds.Added\" [class.removed-line]=\"line.kind === lineKinds.Removed\"\n [class.meta-line]=\"line.kind === lineKinds.Meta\">@for (span of codes[$index] ?? []; track $index) {@if (span.className === \"\") {{{ span.text }}} @else {<span [class]=\"span.className\">{{ span.text }}</span>}}</div>\n }\n }\n </div>\n }\n </li>\n } @else {\n @let isClosed = closed().has(item.folder);\n <li>\n <button type=\"button\" class=\"folder\" [nolTooltip]=\"item.folder\" [attr.aria-expanded]=\"!isClosed\" [style.padding-inline-start.rem]=\"insetOf(item.depth)\"\n (click)=\"toggleFolder(item.folder)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ isClosed ? resources.sectionClosedIcon : resources.sectionOpenIcon }}</span>\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <span class=\"path\">{{ item.name }}</span>\n </button>\n </li>\n }\n }\n @if (hiddenCount() > 0) {\n <li>\n <button type=\"button\" class=\"more\" (click)=\"showsAll.set(true)\">{{ resources.formatMoreFiles(hiddenCount()) }}</button>\n </li>\n }\n</ul>\n\n<ng-template #nameOf let-row let-name=\"name\">\n <nol-file-badge [fileName]=\"row.fileName\" />\n <span class=\"path\">@if (name !== row.fileName) {<span class=\"directory\">{{ row.directory }}</span>}{{ row.fileName }}</span>\n @if (row.kind; as kind) {\n <span class=\"kind\">{{ kind }}</span>\n } @else if (row.counts; as counts) {\n <span class=\"counts\"><span class=\"added\">{{ resources.addedPrefix }}{{ counts.added }}</span>@if (row.tone !== tones.Untracked) {<span class=\"removed\">{{ resources.removedSign }}{{ counts.removed }}</span>}</span>\n }\n <span class=\"state\" [attr.data-tone]=\"row.tone\">{{ row.letter }}</span>\n</ng-template>\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: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n min-width: 0;\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.move-all {\n height: 1.5rem;\n margin-inline-end: calc(var(--nol-space-1) - 0.375rem);\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n letter-spacing: 0;\n text-transform: none;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.move-all:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.move-all:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.files {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n gap: 0.125rem;\n margin: 0 calc(-1 * var(--git-row-outset));\n padding: 0;\n list-style: none;\n}\n\n.file {\n position: relative;\n display: flex;\n gap: 0.375rem;\n align-items: center;\n min-height: 1.625rem;\n padding: 0 var(--git-row-outset) 0 0;\n border-radius: 0.375rem;\n}\n\n.actions {\n position: absolute;\n inset-block: 0;\n inset-inline-end: calc(var(--git-row-outset) + (var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n display: flex;\n gap: 0.375rem;\n align-items: center;\n padding-inline-start: 0.375rem;\n border-radius: inherit;\n background-color: inherit;\n}\n\n.file:not(:hover, :focus-within, .open) > .actions {\n display: none;\n}\n\n.file.open {\n background-color: var(--nol-selected);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.file:is(:hover, :focus-within):not(.open) {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.name {\n display: flex;\n flex: 1;\n gap: var(--nol-space-2);\n align-items: center;\n align-self: stretch;\n min-width: 0;\n padding: 0 0 0 0.5rem;\n border: 0;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n}\n\n.folder {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n box-sizing: border-box;\n width: 100%;\n height: 1.625rem;\n padding: 0 0.25rem 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: none;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n cursor: pointer;\n}\n\n.folder:hover {\n background-color: var(--nol-hover);\n}\n\n.folder .material-symbols-rounded {\n flex: none;\n width: 1rem;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.more {\n display: block;\n width: 100%;\n min-height: var(--nol-section-header-height);\n padding: 0 0 0 var(--nol-nested-row-indent);\n border: 0;\n background: none;\n color: var(--nol-text-muted);\n font: inherit;\n text-align: start;\n}\n\n.more:hover {\n background-color: var(--nol-hover);\n\n @media (forced-colors: active) {\n &:not(:focus-visible) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n }\n}\n\n.state {\n flex: none;\n width: var(--nol-icon);\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-align: end;\n}\n\n.added {\n color: var(--nol-added);\n}\n\n.state[data-tone=\"Removed\"],\n.removed {\n color: var(--nol-removed);\n}\n\n.state[data-tone=\"Conflict\"] {\n color: var(--nol-status-failed);\n}\n\n.path {\n flex: 1;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.directory,\n.kind {\n color: var(--nol-text-muted);\n}\n\n.counts,\n.kind {\n flex: none;\n font-size: 0.75rem;\n font-variant-numeric: tabular-nums;\n}\n\n.removed {\n margin-inline-start: var(--nol-count-gap);\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 container-type: inline-size;\n margin: 0.25rem var(--git-row-outset);\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.wrapped {\n grid-template-columns: minmax(0, 1fr);\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.line {\n padding-inline: 0.5rem;\n}\n\nbutton.line {\n display: block;\n margin: 0;\n border: 0;\n background-color: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: inherit;\n cursor: pointer;\n}\n\n.line.chosen {\n box-shadow: inset 0.1875rem 0 0 var(--nol-accent);\n}\n\n.hunk {\n display: flex;\n position: sticky;\n inset-inline-start: 0;\n box-sizing: border-box;\n inline-size: 100cqi;\n align-items: center;\n gap: 0.5rem;\n}\n\n.hunk-text {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.hunk-action {\n flex: none;\n margin-inline: auto -0.375rem;\n padding: 0 0.375rem;\n border: 0;\n border-radius: 0.25rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n white-space: nowrap;\n cursor: pointer;\n}\n\n.hunk-action:hover:not(:disabled) {\n background-color: var(--nol-toolbar-hover);\n}\n\n.hunk-action:disabled {\n opacity: 0.5;\n cursor: default;\n}\n\n.line.added-line {\n background-color: var(--nol-added-background);\n}\n\n.line.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"] }]
181
+ }], ctorParameters: () => [], propDecorators: { group: [{ type: i0.Input, args: [{ isSignal: true, alias: "group", required: true }] }], openConflict: [{ type: i0.Output, args: ["openConflict"] }], openDiff: [{ type: i0.Output, args: ["openDiff"] }] } });
181
182
  //# sourceMappingURL=git-file-group.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-file-group.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-file-group/git-file-group.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-file-group/git-file-group.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,EAAE,KAAK,EAAoB,MAAM,EAAsC,MAAM,EAC7J,SAAS,EAAuB,MAAM,eAAe,CAAC;AACxD,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,4BAA4B,EAAE,sBAAsB,EAAE,4BAA4B,EACjJ,gBAAgB,EAAE,MAAM,gCAAgC,CAAC;AAE3D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,oCAAoC,CAAC;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,WAAW,EAAE,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,UAAU,EAAE,MAAM,8BAA8B,CAAC;AAI1D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,yBAAyB,EAAE,MAAM,uDAAuD,CAAC;AAClG,OAAO,EAAE,WAAW,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rF,CAAC;QACD,IAAI,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,KAAK,OAAO;YACxC,OAAO;QACT,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACzD,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC;IAEO,MAAM,CAAC,OAAO,CAAI,OAAuB,EAAE,GAAM;QACvD,MAAM,IAAI,GAAW,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;uGA3JU,qBAAqB;2FAArB,qBAAqB,4PCxClC,69MA0GA,g+MDvEY,kBAAkB,6FAAE,4BAA4B,2FAAE,mBAAmB,2MAAE,gBAAgB,oJAAE,4BAA4B,qEAAE,sBAAsB,8NACrJ,4BAA4B,qEAAE,gBAAgB;;2FAIrC,qBAAqB;kBAPjC,SAAS;+BACE,oBAAoB,WACrB,CAAC,kBAAkB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,sBAAsB;wBACrJ,4BAA4B,EAAE,gBAAgB,CAAC"}
1
+ {"version":3,"file":"git-file-group.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-file-group/git-file-group.component.ts","../../../../../../../../src/noldova.git.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,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;IAC9E,CAAC;IAEO,MAAM,CAAC,OAAO,CAAI,OAAuB,EAAE,GAAM;QACvD,MAAM,IAAI,GAAW,IAAI,GAAG,CAAC,OAAO,CAAC,CAAC;QACtC,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC;YACnB,IAAI,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;QAChB,OAAO,IAAI,CAAC;IACd,CAAC;uGA5JU,qBAAqB;2FAArB,qBAAqB,kRCxClC,u7MAyGA,g+MDtEY,kBAAkB,6FAAE,4BAA4B,2FAAE,mBAAmB,2MAAE,gBAAgB,oJAAE,4BAA4B,qEAAE,sBAAsB,8NACrJ,4BAA4B,qEAAE,gBAAgB;;2FAIrC,qBAAqB;kBAPjC,SAAS;+BACE,oBAAoB,WACrB,CAAC,kBAAkB,EAAE,4BAA4B,EAAE,mBAAmB,EAAE,gBAAgB,EAAE,4BAA4B,EAAE,sBAAsB;wBACrJ,4BAA4B,EAAE,gBAAgB,CAAC"}
@@ -45,7 +45,7 @@ export class GitPullRequestFilesComponent {
45
45
  ...(ngDevMode ? [{ debugName: "isFetching" }] : /* istanbul ignore next */ []));
46
46
  fetchFailure = signal(null, /* @ts-ignore */
47
47
  ...(ngDevMode ? [{ debugName: "fetchFailure" }] : /* istanbul ignore next */ []));
48
- layout = signal(GitFileLayout.Folders, /* @ts-ignore */
48
+ layout = signal(GitFileLayout.Tree, /* @ts-ignore */
49
49
  ...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
50
50
  closed = signal(new Set(), /* @ts-ignore */
51
51
  ...(ngDevMode ? [{ debugName: "closed" }] : /* istanbul ignore next */ []));