@noldova/git.window 0.0.11 → 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.
- package/package.json +4 -4
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +13 -11
- package/src/app/components/git-clone-dialog/git-clone-dialog.component.js.map +1 -1
- package/src/app/components/git-conflicts/git-conflicts.component.js +6 -6
- package/src/app/components/git-conflicts/git-conflicts.component.js.map +1 -1
- package/src/app/components/git-repository/git-repository.component.js +15 -2
- package/src/app/components/git-repository/git-repository.component.js.map +1 -1
- package/src/app/components/git-workspace/git-workspace.component.js +1 -0
- package/src/app/components/git-workspace/git-workspace.component.js.map +1 -1
- package/src/app/services/git-runtime-client.js +9 -0
- package/src/app/services/git-runtime-client.js.map +1 -1
- package/src/resources.js +11 -2
- package/src/resources.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@noldova/git.window",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.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",
|
|
@@ -91,8 +91,8 @@
|
|
|
91
91
|
}
|
|
92
92
|
},
|
|
93
93
|
"dependencies": {
|
|
94
|
-
"@noldova/git.hosting.protocol": "0.0.
|
|
95
|
-
"@noldova/git.protocol": "0.0.
|
|
94
|
+
"@noldova/git.hosting.protocol": "0.0.12",
|
|
95
|
+
"@noldova/git.protocol": "0.0.12"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "20d594ec9f183a11399993db53d2e6510e31e41f"
|
|
98
98
|
}
|
|
@@ -5,11 +5,11 @@
|
|
|
5
5
|
* This source code is licensed under the license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
import { afterNextRender, Component, computed, ElementRef, inject, Injector, linkedSignal, output, signal } from "@angular/core";
|
|
8
|
+
import { afterNextRender, Component, computed, ElementRef, inject, Injector, input, linkedSignal, output, signal } from "@angular/core";
|
|
9
9
|
import { FormsModule } from "@angular/forms";
|
|
10
10
|
import "@noldova/context.core";
|
|
11
11
|
import { FailureCode as DesktopCode } from "@noldova/desktop.protocol";
|
|
12
|
-
import { RuntimeRequestException, TimeFormatService
|
|
12
|
+
import { RuntimeRequestException, TimeFormatService } from "@noldova/desktop.window";
|
|
13
13
|
import { HostRepositoryList } from "@noldova/git.hosting.protocol";
|
|
14
14
|
import { ButtonComponent, ButtonVariant, ChoicePillsComponent, DialogComponent, DialogSize, ProgressComponent, SelectOption, TextFieldComponent } from "@noldova/ui.components.angular";
|
|
15
15
|
import { Resources } from "../../../resources.js";
|
|
@@ -23,12 +23,14 @@ import * as i0 from "@angular/core";
|
|
|
23
23
|
import * as i1 from "@angular/forms";
|
|
24
24
|
export class GitCloneDialogComponent {
|
|
25
25
|
static lists = 0;
|
|
26
|
+
context = input.required(/* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "context" }] : /* istanbul ignore next */ []));
|
|
26
28
|
answered = output();
|
|
27
|
-
context = inject(WindowPartTokens.context);
|
|
28
29
|
dates = inject(TimeFormatService);
|
|
29
30
|
host = inject(ElementRef).nativeElement;
|
|
30
31
|
injector = inject(Injector);
|
|
31
|
-
client = new GitRuntimeClient(this.context)
|
|
32
|
+
client = computed(() => new GitRuntimeClient(this.context()), /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "client" }] : /* istanbul ignore next */ []));
|
|
32
34
|
lists = signal(new Map(), /* @ts-ignore */
|
|
33
35
|
...(ngDevMode ? [{ debugName: "lists" }] : /* istanbul ignore next */ []));
|
|
34
36
|
list = computed(() => this.lists().get(this.chosen()) ?? null, /* @ts-ignore */
|
|
@@ -139,7 +141,7 @@ export class GitCloneDialogComponent {
|
|
|
139
141
|
afterNextRender(() => this.host.querySelector(`#${id}`)?.scrollIntoView({ block: "nearest" }), { injector: this.injector });
|
|
140
142
|
}
|
|
141
143
|
async chooseParentAsync() {
|
|
142
|
-
const parent = await this.context.chooseFolderAsync();
|
|
144
|
+
const parent = await this.context().chooseFolderAsync();
|
|
143
145
|
if (!Object.isNull(parent))
|
|
144
146
|
GitCloneFolders.remember(parent);
|
|
145
147
|
}
|
|
@@ -151,12 +153,12 @@ export class GitCloneDialogComponent {
|
|
|
151
153
|
this.cloning.set(id);
|
|
152
154
|
this.progress.set(null);
|
|
153
155
|
this.failure.set(null);
|
|
154
|
-
const stop = this.client.onCloneProgress(t => {
|
|
156
|
+
const stop = this.client().onCloneProgress(t => {
|
|
155
157
|
if (t.progress === id)
|
|
156
158
|
this.progress.set(t);
|
|
157
159
|
});
|
|
158
160
|
try {
|
|
159
|
-
await this.client.cloneAsync(this.url(), folder, id);
|
|
161
|
+
await this.client().cloneAsync(this.url(), folder, id);
|
|
160
162
|
if (!this.isClosed)
|
|
161
163
|
this.answered.emit(folder);
|
|
162
164
|
}
|
|
@@ -175,12 +177,12 @@ export class GitCloneDialogComponent {
|
|
|
175
177
|
this.close();
|
|
176
178
|
return;
|
|
177
179
|
}
|
|
178
|
-
this.client.cancelCloneAsync(id).catch((error) => this.context.log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
180
|
+
this.client().cancelCloneAsync(id).catch((error) => this.context().log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
179
181
|
}
|
|
180
182
|
dismiss() {
|
|
181
183
|
const id = this.cloning();
|
|
182
184
|
if (!Object.isNull(id))
|
|
183
|
-
this.client.cancelCloneAsync(id).catch((error) => this.context.log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
185
|
+
this.client().cancelCloneAsync(id).catch((error) => this.context().log(Resources.formatCloneCancelFailed(GitViewStateService.messageOf(error))));
|
|
184
186
|
this.close();
|
|
185
187
|
}
|
|
186
188
|
close() {
|
|
@@ -201,10 +203,10 @@ export class GitCloneDialogComponent {
|
|
|
201
203
|
return error instanceof RuntimeRequestException && error.code === DesktopCode.Cancelled;
|
|
202
204
|
}
|
|
203
205
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
204
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitCloneDialogComponent, isStandalone: true, selector: "nol-git-clone-dialog", outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.cloneTitle\" [size]=\"size\" (dismissed)=\"dismiss()\">\n @if (options().length > 1) {\n <nol-choice-pills class=\"sources\" [options]=\"options()\" [value]=\"source()?.key ?? resources.cloneUrlSource\" [label]=\"resources.cloneSourceLabel\"\n (valueChange)=\"choose($event)\" />\n }\n @if (source(); as current) {\n <input nol-text-field class=\"filter\" type=\"search\" role=\"combobox\" aria-autocomplete=\"list\" aria-expanded=\"true\" [attr.aria-controls]=\"listId\"\n [attr.aria-activedescendant]=\"activeId()\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [placeholder]=\"resources.filterRepositoriesLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"filter()\" (ngModelChange)=\"filter.set($event)\" (keydown)=\"onKey($event)\" />\n <div class=\"repositories\" role=\"listbox\" tabindex=\"-1\" [id]=\"listId\" [attr.aria-label]=\"current.label\">\n @for (repository of rows(); track repository.url; let index = $index) {\n <div role=\"option\" class=\"repository\" [id]=\"resources.formatCloneOptionId(listId, index)\" [class.picked]=\"picked() === repository\"\n [attr.aria-selected]=\"picked() === repository\" [attr.aria-disabled]=\"cloning() !== null\" [title]=\"repository.url\" (pointerdown)=\"$event.preventDefault()\"\n (click)=\"pick(repository)\">\n <span class=\"name\">{{ repository.name }}</span>\n @if (repository.isPrivate) {\n <span class=\"small muted private\">{{ resources.privateLabel }}</span>\n }\n </div>\n }\n </div>\n @if (status(); as text) {\n <p class=\"small muted status\">{{ text }}</p>\n }\n } @else {\n <input nol-text-field class=\"url\" type=\"text\" name=\"url\" [attr.aria-label]=\"resources.cloneUrlLabel\" [placeholder]=\"resources.cloneUrlLabel\"\n [disabled]=\"cloning() !== null\" [ngModel]=\"typed()\" (ngModelChange)=\"typed.set($event); failure.set(null)\" (keydown.enter)=\"cloneAsync()\" />\n <p class=\"small muted hint\">{{ resources.cloneUrlHint }}</p>\n }\n <div class=\"destination\">\n <span class=\"small label\">{{ resources.cloneParentLabel }}</span>\n <span class=\"parent\" [class.muted]=\"parent() === null\" [title]=\"parent() ?? ''\">{{ parent() ?? resources.cloneParentNone }}</span>\n <button nol-button type=\"button\" class=\"choose\" [variant]=\"secondary\" [disabled]=\"cloning() !== null\" (click)=\"chooseParentAsync()\">{{ resources.chooseLabel }}</button>\n <label class=\"small label\" for=\"git-clone-name\">{{ resources.cloneNameLabel }}</label>\n <input nol-text-field id=\"git-clone-name\" class=\"name-field\" type=\"text\" name=\"name\" [attr.aria-invalid]=\"!isName()\" [disabled]=\"cloning() !== null\"\n [ngModel]=\"name()\" (ngModelChange)=\"name.set($event)\" (keydown.enter)=\"cloneAsync()\" />\n </div>\n @if (!isName()) {\n <p class=\"small refused\" role=\"alert\">{{ resources.cloneNameRefused }}</p>\n }\n @if (cloning() !== null) {\n <nol-progress class=\"progress\" [label]=\"progressText()\" [value]=\"progress() === null ? null : (progress()?.percent ?? 0) / 100\" />\n <p class=\"small muted progress-text\" aria-live=\"polite\">{{ progressText() }}</p>\n }\n @if (failure(); as text) {\n <p class=\"small refused failure\" role=\"alert\">{{ text }}</p>\n }\n <button nol-button nolDialogAction type=\"button\" class=\"clone\" [disabled]=\"!canClone()\" (click)=\"cloneAsync()\">{{ resources.cloneLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"cancel()\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.sources {\n margin-bottom: 0.75rem;\n}\n\n.filter,\n.url {\n width: 100%;\n}\n\n.repositories {\n --rows: 8;\n display: grid;\n align-content: start;\n height: clamp(calc(3 * 1.75rem), calc(100dvh - 23.5rem), calc(var(--rows) * 1.75rem));\n margin-top: 0.5rem;\n overflow-y: auto;\n border: var(--nol-border-width) solid var(--nol-widget-border);\n border-radius: var(--nol-radius-medium);\n}\n\n.repository {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n height: 1.75rem;\n padding: 0 0.5rem;\n cursor: pointer;\n}\n\n.repository:hover:not([aria-disabled=\"true\"]) {\n background: var(--nol-hover);\n}\n\n.repository.picked {\n background: var(--nol-selected);\n}\n\n.name {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.private {\n flex: none;\n margin-inline-start: auto;\n}\n\n.status,\n.hint {\n margin: 0.25rem 0 0;\n}\n\n.destination {\n display: grid;\n grid-template-columns: auto minmax(0, 1fr) auto;\n gap: 0.5rem;\n align-items: center;\n margin-top: 0.75rem;\n}\n\n.parent {\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.name-field {\n grid-column: 2 / -1;\n width: 100%;\n}\n\n.refused {\n margin: 0.25rem 0 0;\n color: var(--nol-error);\n}\n\n.progress {\n margin-top: 0.75rem;\n}\n\n.progress-text {\n margin: 0.25rem 0 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: ChoicePillsComponent, selector: "nol-choice-pills", inputs: ["options", "value", "label", "describedBy", "iconOnly"], outputs: ["valueChange"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }, { kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: ProgressComponent, selector: "nol-progress", inputs: ["label", "value"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["quiet"] }] });
|
|
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"] }] });
|
|
205
207
|
}
|
|
206
208
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCloneDialogComponent, decorators: [{
|
|
207
209
|
type: Component,
|
|
208
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"] }]
|
|
209
|
-
}], propDecorators: { answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
211
|
+
}], propDecorators: { context: [{ type: i0.Input, args: [{ isSignal: true, alias: "context", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
|
|
210
212
|
//# sourceMappingURL=git-clone-dialog.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-clone-dialog.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-clone-dialog/git-clone-dialog.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-clone-dialog/git-clone-dialog.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EACL,eAAe,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,EAAyB,MAAM,
|
|
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;AAE7D,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAElE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAC;AACtE,OAAO,EAAE,gBAAgB,EAAE,MAAM,sCAAsC,CAAC;AACxE,OAAO,EAAE,mBAAmB,EAAE,MAAM,0CAA0C,CAAC;;;AAQ/E,MAAM,OAAO,uBAAuB;IAC1B,MAAM,CAAC,KAAK,GAAW,CAAC,CAAC;IAEjB,OAAO,GAAoC,KAAK,CAAC,QAAQ;gFAAsB,CAAC;IAChF,QAAQ,GAAoC,MAAM,EA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,KAAc;QACvC,OAAO,KAAK,YAAY,uBAAuB,IAAI,KAAK,CAAC,IAAI,KAAK,WAAW,CAAC,SAAS,CAAC;IAC1F,CAAC;uGA1KU,uBAAuB;2FAAvB,uBAAuB,4PCpCpC,syHA0DA,2kDD1BY,eAAe,oJAAE,oBAAoB,yJAAE,eAAe,yGAAE,WAAW,ysBAAE,iBAAiB,qFAAE,kBAAkB;;2FAIzG,uBAAuB;kBANnC,SAAS;+BACE,sBAAsB,WACvB,CAAC,eAAe,EAAE,oBAAoB,EAAE,eAAe,EAAE,WAAW,EAAE,iBAAiB,EAAE,kBAAkB,CAAC"}
|
|
@@ -50,6 +50,8 @@ export class GitConflictsComponent {
|
|
|
50
50
|
...(ngDevMode ? [{ debugName: "status" }] : /* istanbul ignore next */ []));
|
|
51
51
|
conflicted = computed(() => this.status()?.entries.filter(t => !Object.isNull(t.conflict)).map(t => t.path) ?? [], /* @ts-ignore */
|
|
52
52
|
...(ngDevMode ? [{ debugName: "conflicted" }] : /* istanbul ignore next */ []));
|
|
53
|
+
resolving = computed(() => !Object.isNullOrUndefined(this.status()?.operation) || this.conflicted().length > 0, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "resolving" }] : /* istanbul ignore next */ []));
|
|
53
55
|
resolved = computed(() => {
|
|
54
56
|
const conflicted = new Set(this.conflicted());
|
|
55
57
|
const recorded = GitResolving.resolutionsOf(this.instance());
|
|
@@ -123,8 +125,7 @@ export class GitConflictsComponent {
|
|
|
123
125
|
untracked(() => void this.readAsync(path));
|
|
124
126
|
});
|
|
125
127
|
effect(() => {
|
|
126
|
-
|
|
127
|
-
if (!Object.isNull(status) && Object.isNull(status.operation))
|
|
128
|
+
if (!Object.isNull(this.status()) && !this.resolving())
|
|
128
129
|
untracked(() => GitResolving.forget(this.instance()));
|
|
129
130
|
});
|
|
130
131
|
effect(() => {
|
|
@@ -132,9 +133,8 @@ export class GitConflictsComponent {
|
|
|
132
133
|
untracked(() => void this.readFirstConflictsAsync(operation));
|
|
133
134
|
});
|
|
134
135
|
effect(() => {
|
|
135
|
-
const status = this.status();
|
|
136
136
|
const conflicted = new Set(this.conflicted());
|
|
137
|
-
if (
|
|
137
|
+
if (this.resolving())
|
|
138
138
|
untracked(() => void this.checkMarkersAsync(conflicted));
|
|
139
139
|
});
|
|
140
140
|
const active = inject(WindowPartTokens.activeDocument);
|
|
@@ -242,10 +242,10 @@ export class GitConflictsComponent {
|
|
|
242
242
|
return Object.isNull(conflict) || kinds.has(conflict.kind);
|
|
243
243
|
}
|
|
244
244
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
245
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\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.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 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.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\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: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
245
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitConflictsComponent, isStandalone: true, selector: "nol-git-conflicts", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, providers: [GitViewStateService], viewQueries: [{ propertyName: "editor", first: true, predicate: MergeEditorComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (status(); as status) {\n @if (resolving()) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n @if (status.operation; as operation) {\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n } @else {\n <span class=\"operation-text\"><span class=\"strong\">{{ resources.formatLooseConflicts(status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n }\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\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.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 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.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\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: CodeTextComponent, selector: "noldova-code-text", inputs: ["text", "language"] }, { kind: "component", type: MergeEditorComponent, selector: "noldova-merge-editor", inputs: ["base", "ours", "theirs", "merged", "language", "oursLabel", "theirsLabel", "readOnly", "toolbar", "panels", "showBase"], outputs: ["resultChange", "conflictsChange", "activeConflictChange", "markersFailed", "keySequencePending"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
|
|
246
246
|
}
|
|
247
247
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitConflictsComponent, decorators: [{
|
|
248
248
|
type: Component,
|
|
249
|
-
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, 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\n@if (status(); as status) {\n @if (status.operation; as operation) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\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.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 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.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
249
|
+
args: [{ selector: "nol-git-conflicts", imports: [ButtonComponent, CodeTextComponent, MergeEditorComponent, 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\n@if (status(); as status) {\n @if (resolving()) {\n <div class=\"operation\" role=\"status\">\n <span class=\"operation-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n @if (status.operation; as operation) {\n <span class=\"operation-text\"><span class=\"strong\">{{ operationText(operation, status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n <span class=\"operation-actions\">\n <button nol-button type=\"button\" class=\"abort\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"abort()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.abortOperationIcon }}</span>{{ resources.abortLabels[operation.kind] }}</button>\n <button nol-button type=\"button\" class=\"continue\" [disabled]=\"state.busy() || conflicted().length > 0\" (click)=\"continue()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.continueOperationIcon }}</span>{{ resources.continueLabels[operation.kind] }}</button>\n </span>\n } @else {\n <span class=\"operation-text\"><span class=\"strong\">{{ resources.formatLooseConflicts(status.branch) }}</span><span class=\"muted\"> \u00B7 {{ progress() }}</span></span>\n }\n </div>\n @if (state.failure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n }\n <div class=\"body\">\n <nav class=\"files\" [attr.aria-label]=\"resources.conflictFilesLabel\">\n <h2 class=\"group\"><span>{{ resources.groupTitles.Conflicts }}</span>&ngsp;<span class=\"count\">{{ conflicted().length }}</span></h2>\n @for (path of conflicted(); track path) {\n <button type=\"button\" class=\"file conflicted\" [class.selected]=\"path === current()\" [attr.aria-current]=\"path === current() ? 'true' : null\" [title]=\"path\"\n (click)=\"pick(path)\">\n <span class=\"file-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n @if (path === current() && fileProgress().length > 0) {\n <span class=\"note progress\">{{ fileProgress() }}</span>\n }\n </button>\n }\n @if (resolved().length > 0) {\n <h2 class=\"group\"><span>{{ resources.resolvedTitle }}</span>&ngsp;<span class=\"count\">{{ resolved().length }}</span></h2>\n @for (item of resolved(); track item.path) {\n <div class=\"file resolved\" [title]=\"item.path\">\n <span class=\"file-icon ok material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resolvedIcon }}</span><span class=\"name\">{{ nameOf(item.path) }}</span><span\n class=\"folder\">{{ folderOf(item.path) }}</span><span class=\"note\">{{ item.note }}</span>\n </div>\n }\n }\n @let clean = cleanOf(status);\n @if (clean.length > 0) {\n <h2 class=\"group\"><span>{{ resources.mergedCleanlyTitle }}</span>&ngsp;<span class=\"count\">{{ clean.length }}</span></h2>\n @let hidden = hiddenOf(clean);\n @for (path of clean.slice(0, clean.length - hidden); track path) {\n <div class=\"file clean\" [title]=\"path\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.cleanFileIcon }}</span><span class=\"name\">{{ nameOf(path) }}</span><span\n class=\"folder\">{{ folderOf(path) }}</span>\n </div>\n }\n @if (hidden > 0) {\n <button type=\"button\" class=\"file more\" (click)=\"showsAllClean.set(true)\">\n <span class=\"file-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.moreIcon }}</span><span class=\"name\">{{ resources.formatMoreCleanFiles(hidden) }}</span>\n </button>\n }\n }\n </nav>\n <main class=\"sides\" [attr.aria-label]=\"current() ?? resources.conflictsTitle\">\n @if (conflict(); as conflict) {\n @if (conflict.reused) {\n <p class=\"note-line\" role=\"note\">{{ resources.reusedNote }}</p>\n }\n @if (conflict.binary) {\n <p class=\"note-line\" role=\"note\">{{ resources.binaryNote }}</p>\n }\n @if (merges()) {\n <noldova-merge-editor #editor class=\"merge\" [base]=\"conflict.base\" [ours]=\"conflict.ours\" [theirs]=\"conflict.theirs\" [merged]=\"conflict.merged\"\n [oursLabel]=\"conflict.oursLabel\" [theirsLabel]=\"conflict.theirsLabel\" [readOnly]=\"state.busy()\" [toolbar]=\"false\" [panels]=\"true\" [showBase]=\"showsBase()\" [language]=\"language()\"\n (conflictsChange)=\"conflictStates.set($event.toArray()); conflictCount.set($event.count()); unresolved.set(editor.result() === null ? null : editor.unresolvedCount())\"\n (markersFailed)=\"unresolved.set(null)\">\n <div nolMergeOursHead class=\"pane-head ours\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n </div>\n <div nolMergeTheirsHead class=\"pane-head theirs\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n </div>\n <div nolMergeBaseHead class=\"pane-head base-pane\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.baseIcon }}</span><span class=\"strong\">{{ resources.baseTitle }}</span><span\n class=\"muted label\">{{ resources.baseNote }}</span>\n </div>\n <div nolMergeResultHead class=\"pane-head result\">\n <span class=\"pane-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.resultIcon }}</span><span class=\"strong\">{{ resources.resultLabel }}</span><span\n class=\"muted label\">{{ resultNote() }}</span>\n <button nol-toolbar-button type=\"button\" class=\"show-base\" [label]=\"resources.showBaseLabel\" [pressed]=\"showsBase()\" (click)=\"showsBase.set(!showsBase())\"></button>\n <button nol-toolbar-button type=\"button\" class=\"previous\" [icon]=\"resources.previousConflictIcon\" [label]=\"resources.previousConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.previousConflict()\"></button>\n <button nol-toolbar-button type=\"button\" class=\"next\" [icon]=\"resources.nextConflictIcon\" [label]=\"resources.nextConflictLabel\" [isShowingLabel]=\"true\"\n (click)=\"editor.nextConflict()\"></button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"state.busy() || unresolved() !== 0\"\n (click)=\"resolve(conflict, resolutions.Text, editor.result())\">{{ resources.markResolvedLabel }}</button>\n </div>\n </noldova-merge-editor>\n @if (markersUnreadable()) {\n <div class=\"merge-actions\">\n <button nol-button type=\"button\" class=\"take-ours\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\">{{ resources.takeOursLabel }}</button>\n <button nol-button type=\"button\" class=\"take-theirs\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\">{{ resources.takeTheirsLabel }}</button>\n <button nol-button type=\"button\" class=\"mark-resolved\" [disabled]=\"true\">{{ resources.markResolvedLabel }}</button>\n </div>\n }\n } @else {\n <div class=\"panes\">\n <section class=\"pane ours\" [attr.aria-label]=\"resources.oursLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.oursLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.oursLabel }}</span>@if (resources.formatSideCommit(conflict.oursLabel, conflict.oursCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasOurs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-ours\" [label]=\"resources.takeOursLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Ours)\"></button>\n }\n </div>\n @if (!hasOurs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.ours !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.ours\" [language]=\"language()\" />\n }\n </section>\n <section class=\"pane theirs\" [attr.aria-label]=\"resources.theirsLabel\">\n <div class=\"pane-head\">\n <span class=\"bar\" aria-hidden=\"true\"></span><span class=\"strong\">{{ resources.theirsLabel }}</span><span class=\"muted label side-label\"><span class=\"side-name\">{{ conflict.theirsLabel }}</span>@if (resources.formatSideCommit(conflict.theirsLabel, conflict.theirsCommit); as commit) {<span class=\"side-commit\">{{ commit }}</span>}</span>\n @if (hasTheirs()) {\n <button nol-toolbar-button type=\"button\" class=\"take-theirs\" [label]=\"resources.takeTheirsLabel\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Theirs)\"></button>\n }\n </div>\n @if (!hasTheirs()) {\n <p class=\"pane-note\">{{ resources.deletedOnThisSide }}</p>\n } @else if (conflict.theirs !== null) {\n <noldova-code-text class=\"code\" [text]=\"conflict.theirs\" [language]=\"language()\" />\n }\n </section>\n </div>\n @if (!hasOurs() || !hasTheirs()) {\n <div class=\"whole-file\">\n <button nol-button type=\"button\" class=\"delete\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"resolve(conflict, resolutions.Delete)\">{{ resources.deleteFileLabel }}</button>\n </div>\n }\n }\n } @else if (readFailure(); as failure) {\n <p class=\"failure\" role=\"alert\">{{ failure }}</p>\n } @else if (conflicted().length === 0) {\n <p class=\"quiet\">{{ resources.formatConflictText(0) }}</p>\n }\n </main>\n </div>\n } @else {\n <p class=\"quiet\">{{ resources.noOperation }}</p>\n }\n} @else if (state.folder() !== instance()) {\n <p class=\"quiet\">{{ resources.otherFolderNote }}</p>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n --ours: var(--nol-author-3);\n --theirs: var(--nol-author-5);\n\n display: flex;\n container-type: inline-size;\n flex-direction: column;\n gap: 0.25rem;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n padding: 0 0.25rem 0.25rem;\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.operation {\n display: flex;\n flex: none;\n flex-wrap: wrap;\n gap: 0.75rem;\n align-items: center;\n padding: 0.5rem 0.75rem;\n border: var(--nol-border-width) solid color-mix(in srgb, var(--nol-warning) 45%, transparent);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.operation-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n margin-left: auto;\n}\n\n.operation-icon,\n.file-icon {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.clean .file-icon {\n color: var(--nol-icon-color);\n}\n\n.operation-text {\n flex: 1 1 10rem;\n min-width: 0;\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.body {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: 15rem minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.files,\n.pane {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: auto;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n}\n\n.files {\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.group {\n display: flex;\n align-items: center;\n height: 1.625rem;\n margin: 0;\n padding: 0 0.5rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n font-weight: normal;\n letter-spacing: var(--nol-letter-spacing-caps);\n text-transform: uppercase;\n}\n\n.group > .count {\n margin-inline-start: auto;\n}\n\n.group:not(:first-child) {\n margin-top: 0.5rem;\n}\n\n.file {\n display: flex;\n gap: 0.375rem;\n align-items: center;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: 0.375rem;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.file {\n cursor: pointer;\n}\n\nbutton.file:hover {\n background-color: var(--nol-hover);\n}\n\n.file.selected,\n.file.selected:hover {\n background-color: var(--nol-selected);\n}\n\n.name {\n flex: 0 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.folder {\n flex: 1 1 0;\n min-width: 0;\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-overflow: ellipsis;\n}\n\n.note {\n flex: none;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n}\n\n.file.more,\n.file.more .file-icon {\n color: var(--nol-text-muted);\n}\n\n.sides {\n display: flex;\n flex-direction: column;\n gap: 0.25rem;\n min-width: 0;\n min-height: 0;\n}\n\n.panes {\n display: grid;\n flex: 1 1 auto;\n grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);\n gap: 0.25rem;\n min-height: 0;\n}\n\n.pane-head {\n display: flex;\n box-sizing: border-box;\n flex: none;\n flex-wrap: wrap;\n gap: 0.25rem 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.pane-head > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.bar {\n flex: none;\n width: 0.1875rem;\n height: 1rem;\n border-radius: 0.125rem;\n}\n\n.ours .bar {\n background-color: var(--ours);\n}\n\n.theirs .bar {\n background-color: var(--theirs);\n}\n\n.label {\n flex: 1 1 4rem;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.label + * {\n margin-left: auto;\n}\n\n.side-label {\n display: flex;\n min-width: 5.5rem;\n}\n\n.side-name {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.side-commit {\n flex: none;\n white-space: pre;\n}\n\n.code {\n flex: 1 1 auto;\n margin: 0;\n padding: 0.25rem 0.75rem;\n overflow: auto;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: 0.8125rem;\n line-height: 1.25rem;\n}\n\n.pane-note,\n.note-line,\n.quiet,\n.failure {\n margin: 0;\n padding: 0.5rem 0.75rem;\n}\n\n.pane-note,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.note-line {\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n@container (max-width: 60rem) {\n .body {\n grid-template-columns: minmax(0, 1fr);\n grid-auto-rows: max-content;\n overflow: auto;\n }\n\n .files {\n overflow: visible;\n }\n\n .sides {\n height: 22rem;\n }\n}\n\n.merge-actions {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.merge {\n --nol-merge-editor-gap: 0.25rem;\n\n flex: 1 1 auto;\n order: 1;\n min-height: 0;\n}\n\n.pane-icon {\n flex: none;\n color: var(--nol-icon-color);\n font-size: 1rem;\n}\n\n.whole-file {\n display: flex;\n flex: none;\n gap: 0.5rem;\n justify-content: flex-end;\n}\n\n.failure {\n color: var(--nol-status-failed);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.ok {\n color: var(--nol-status-ok);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
|
|
250
250
|
}], ctorParameters: () => [], propDecorators: { editor: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MergeEditorComponent), { isSignal: true }] }], instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
|
|
251
251
|
//# sourceMappingURL=git-conflicts.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACjM,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAuB,aAAa,EAAE,oBAAoB,EAAE,MAAM,oCAA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,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;YACrG,IAAI,IAAI,CAAC,GAAG,KAAK,IAAI,CAAC,iBAAiB;gBACrC,IAAI,CAAC,cAAc,CAAC,GAAG,CAAC,UAAU,CAAC,KAAK,CAAC,CAAC;QAC9C,CAAC;QACD,MAAM,CAAC;QACP,CAAC;IACH,CAAC;IAEO,MAAM,CAAC,KAAK,CAAC,QAA4B,EAAE,KAAgC;QACjF,OAAO,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,IAAI,KAAK,CAAC,GAAG,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;uGAjNU,qBAAqB;2FAArB,qBAAqB,4MAJrB,CAAC,mBAAmB,CAAC,kEA6D8C,oBAAoB,gEChGpG,6hXAwJA,smLDtHY,eAAe,oJAAE,iBAAiB,4FAAE,oBAAoB,iTAAE,sBAAsB;;2FAK/E,qBAAqB;kBAPjC,SAAS;+BACE,mBAAmB,WACpB,CAAC,eAAe,EAAE,iBAAiB,EAAE,oBAAoB,EAAE,sBAAsB,CAAC,aAChF,CAAC,mBAAmB,CAAC;kHA6D8C,oBAAoB"}
|
|
1
|
+
{"version":3,"file":"git-conflicts.component.js","sourceRoot":"","sources":["../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.ts","../../../../../../../../src/noldova.git.window/src/app/components/git-conflicts/git-conflicts.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAiC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAuB,MAAM,eAAe,CAAC;AACjM,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAuB,aAAa,EAAE,oBAAoB,EAAE,MAAM,oCAAoC,CAAC;AAC9G,OAAO,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