@noldova/git.window 0.0.18 → 0.0.19

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. package/package.json +10 -10
  2. package/src/app/components/git-account-dialog/git-account-dialog.component.js +3 -3
  3. package/src/app/components/git-accounts/git-accounts.component.js +3 -3
  4. package/src/app/components/git-agents/git-agents.component.js +3 -3
  5. package/src/app/components/git-branch-card/git-branch-card.component.js +3 -3
  6. package/src/app/components/git-branch-drop/git-branch-drop.component.js +3 -3
  7. package/src/app/components/git-bulk-branch-dialog/git-bulk-branch-dialog.component.js +3 -3
  8. package/src/app/components/git-bulk-push-dialog/git-bulk-push-dialog.component.js +3 -3
  9. package/src/app/components/git-clone-dialog/git-clone-dialog.component.js +3 -3
  10. package/src/app/components/git-command-log/git-command-log.component.js +3 -3
  11. package/src/app/components/git-commit-card/git-commit-card.component.js +3 -3
  12. package/src/app/components/git-commit-detail/git-commit-detail.component.js +3 -3
  13. package/src/app/components/git-commit-detail-view/git-commit-detail-view.component.js +3 -3
  14. package/src/app/components/git-commit-document/git-commit-document.component.js +3 -3
  15. package/src/app/components/git-conflict-detail/git-conflict-detail.component.js +3 -3
  16. package/src/app/components/git-conflicts/git-conflicts.component.js +3 -3
  17. package/src/app/components/git-dashboard/git-dashboard.component.js +3 -3
  18. package/src/app/components/git-diff-files/git-diff-files.component.js +3 -3
  19. package/src/app/components/git-discard-dialog/git-discard-dialog.component.js +3 -3
  20. package/src/app/components/git-file-group/git-file-group.component.js +3 -3
  21. package/src/app/components/git-file-layout-button/git-file-layout-button.component.js +3 -3
  22. package/src/app/components/git-force-push-dialog/git-force-push-dialog.component.js +3 -3
  23. package/src/app/components/git-history/git-history.component.js +3 -3
  24. package/src/app/components/git-host-row/git-host-row.component.js +3 -3
  25. package/src/app/components/git-person-avatar/git-person-avatar.component.js +3 -3
  26. package/src/app/components/git-pull-request-commits/git-pull-request-commits.component.js +3 -3
  27. package/src/app/components/git-pull-request-conflicts/git-pull-request-conflicts.component.js +3 -3
  28. package/src/app/components/git-pull-request-files/git-pull-request-files.component.js +3 -3
  29. package/src/app/components/git-pull-request-threads/git-pull-request-threads.component.js +3 -3
  30. package/src/app/components/git-pull-requests/git-pull-requests.component.js +3 -3
  31. package/src/app/components/git-rebase/git-rebase.component.js +3 -3
  32. package/src/app/components/git-rebase-preview/git-rebase-preview.component.js +3 -3
  33. package/src/app/components/git-reference-text/git-reference-text.component.js +3 -3
  34. package/src/app/components/git-repository/git-repository.component.js +3 -3
  35. package/src/app/components/git-repository-scan-dialog/git-repository-scan-dialog.component.js +3 -3
  36. package/src/app/components/git-switch-merge-dialog/git-switch-merge-dialog.component.js +3 -3
  37. package/src/app/components/git-undo-menu/git-undo-menu.component.js +3 -3
  38. package/src/app/components/git-view/git-view.component.js +3 -3
  39. package/src/app/components/git-workspace/git-visible.directive.js +3 -3
  40. package/src/app/components/git-workspace/git-workspace.component.js +3 -3
  41. package/src/app/components/git-workspace-across/git-workspace-across.component.js +3 -3
  42. package/src/app/components/git-workspace-across-view/git-workspace-across-view.component.js +3 -3
  43. package/src/app/components/git-workspaces/git-workspaces.component.js +3 -3
  44. package/src/app/services/git-code-colors.js +3 -3
  45. package/src/app/services/git-view-state.service.js +3 -3
@@ -52,10 +52,10 @@ export class GitRepositoryScanDialogComponent {
52
52
  unticked.add(repository);
53
53
  this.unticked.set(unticked);
54
54
  }
55
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryScanDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitRepositoryScanDialogComponent, isStandalone: true, selector: "nol-git-repository-scan-dialog", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, repositories: { classPropertyName: "repositories", publicName: "repositories", isSignal: true, isRequired: true, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(null)\">\n @if (cut(); as text) {\n <p class=\"cut\">{{ text }}</p>\n }\n <p class=\"text\">{{ resources.scanText }}</p>\n <div class=\"all-row\"><nol-checkbox class=\"all\" [checked]=\"isAllTicked()\" (checkedChange)=\"tickAll($event)\">{{ resources.tickAllLabel }}</nol-checkbox></div>\n <ul class=\"repositories\">\n @for (repository of repositories(); track repository) {\n <li [title]=\"repository\">\n <nol-checkbox class=\"repository\" [checked]=\"!unticked().has(repository)\" (checkedChange)=\"tick(repository, $event)\">\n <span class=\"label\"><span class=\"name\">{{ nameOf(repository) }}</span>@if (placeOf(repository); as place) {<span class=\"place\">{{ place }}</span>}</span>\n </nol-checkbox>\n </li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"open\" [disabled]=\"ticked().length === 0\" (click)=\"answered.emit(ticked())\">{{ resources.openLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(null)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.cut {\n margin: 0 0 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.text {\n margin: 0;\n}\n\n.all-row {\n display: flex;\n margin-top: 0.5rem;\n}\n\n.repositories {\n --rows: 12;\n display: grid;\n gap: 0.25rem;\n max-height: calc(var(--rows) * (1lh + 0.25rem) - 0.25rem);\n margin: 0.25rem 0 0;\n padding: 0;\n overflow-y: auto;\n list-style: none;\n container-type: inline-size;\n}\n\n.repositories li {\n display: flex;\n min-width: 0;\n}\n\n.repository {\n max-width: 100%;\n}\n\n.label {\n display: block;\n max-width: calc(100cqi - var(--nol-checkbox-size) - var(--nol-space-2));\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.place {\n margin-inline-start: 0.5rem;\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: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
55
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRepositoryScanDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
56
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitRepositoryScanDialogComponent, isStandalone: true, selector: "nol-git-repository-scan-dialog", inputs: { folder: { classPropertyName: "folder", publicName: "folder", isSignal: true, isRequired: true, transformFunction: null }, repositories: { classPropertyName: "repositories", publicName: "repositories", isSignal: true, isRequired: true, transformFunction: null }, end: { classPropertyName: "end", publicName: "end", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { answered: "answered" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(null)\">\n @if (cut(); as text) {\n <p class=\"cut\">{{ text }}</p>\n }\n <p class=\"text\">{{ resources.scanText }}</p>\n <div class=\"all-row\"><nol-checkbox class=\"all\" [checked]=\"isAllTicked()\" (checkedChange)=\"tickAll($event)\">{{ resources.tickAllLabel }}</nol-checkbox></div>\n <ul class=\"repositories\">\n @for (repository of repositories(); track repository) {\n <li [title]=\"repository\">\n <nol-checkbox class=\"repository\" [checked]=\"!unticked().has(repository)\" (checkedChange)=\"tick(repository, $event)\">\n <span class=\"label\"><span class=\"name\">{{ nameOf(repository) }}</span>@if (placeOf(repository); as place) {<span class=\"place\">{{ place }}</span>}</span>\n </nol-checkbox>\n </li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"open\" [disabled]=\"ticked().length === 0\" (click)=\"answered.emit(ticked())\">{{ resources.openLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(null)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.cut {\n margin: 0 0 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.text {\n margin: 0;\n}\n\n.all-row {\n display: flex;\n margin-top: 0.5rem;\n}\n\n.repositories {\n --rows: 12;\n display: grid;\n gap: 0.25rem;\n max-height: calc(var(--rows) * (1lh + 0.25rem) - 0.25rem);\n margin: 0.25rem 0 0;\n padding: 0;\n overflow-y: auto;\n list-style: none;\n container-type: inline-size;\n}\n\n.repositories li {\n display: flex;\n min-width: 0;\n}\n\n.repository {\n max-width: 100%;\n}\n\n.label {\n display: block;\n max-width: calc(100cqi - var(--nol-checkbox-size) - var(--nol-space-2));\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.place {\n margin-inline-start: 0.5rem;\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: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
57
57
  }
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitRepositoryScanDialogComponent, decorators: [{
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitRepositoryScanDialogComponent, decorators: [{
59
59
  type: Component,
60
60
  args: [{ selector: "nol-git-repository-scan-dialog", imports: [ButtonComponent, CheckboxComponent, DialogComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"title()\" (dismissed)=\"answered.emit(null)\">\n @if (cut(); as text) {\n <p class=\"cut\">{{ text }}</p>\n }\n <p class=\"text\">{{ resources.scanText }}</p>\n <div class=\"all-row\"><nol-checkbox class=\"all\" [checked]=\"isAllTicked()\" (checkedChange)=\"tickAll($event)\">{{ resources.tickAllLabel }}</nol-checkbox></div>\n <ul class=\"repositories\">\n @for (repository of repositories(); track repository) {\n <li [title]=\"repository\">\n <nol-checkbox class=\"repository\" [checked]=\"!unticked().has(repository)\" (checkedChange)=\"tick(repository, $event)\">\n <span class=\"label\"><span class=\"name\">{{ nameOf(repository) }}</span>@if (placeOf(repository); as place) {<span class=\"place\">{{ place }}</span>}</span>\n </nol-checkbox>\n </li>\n }\n </ul>\n <button nol-button nolDialogAction type=\"button\" class=\"open\" [disabled]=\"ticked().length === 0\" (click)=\"answered.emit(ticked())\">{{ resources.openLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(null)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.cut {\n margin: 0 0 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.text {\n margin: 0;\n}\n\n.all-row {\n display: flex;\n margin-top: 0.5rem;\n}\n\n.repositories {\n --rows: 12;\n display: grid;\n gap: 0.25rem;\n max-height: calc(var(--rows) * (1lh + 0.25rem) - 0.25rem);\n margin: 0.25rem 0 0;\n padding: 0;\n overflow-y: auto;\n list-style: none;\n container-type: inline-size;\n}\n\n.repositories li {\n display: flex;\n min-width: 0;\n}\n\n.repository {\n max-width: 100%;\n}\n\n.label {\n display: block;\n max-width: calc(100cqi - var(--nol-checkbox-size) - var(--nol-space-2));\n overflow: hidden;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.place {\n margin-inline-start: 0.5rem;\n color: var(--nol-text-muted);\n}\n"] }]
61
61
  }], propDecorators: { folder: [{ type: i0.Input, args: [{ isSignal: true, alias: "folder", required: true }] }], repositories: [{ type: i0.Input, args: [{ isSignal: true, alias: "repositories", required: true }] }], end: [{ type: i0.Input, args: [{ isSignal: true, alias: "end", required: false }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
@@ -17,10 +17,10 @@ export class GitSwitchMergeDialogComponent {
17
17
  drop = input.required(/* @ts-ignore */
18
18
  ...(ngDevMode ? [{ debugName: "drop" }] : /* istanbul ignore next */ []));
19
19
  answered = output();
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitSwitchMergeDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.0", type: GitSwitchMergeDialogComponent, isStandalone: true, selector: "nol-git-switch-merge-dialog", inputs: { drop: { classPropertyName: "drop", publicName: "drop", 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.switchMergeTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"switch-merge\" (click)=\"answered.emit(true)\">{{ resources.switchMergeLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitSwitchMergeDialogComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
21
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.3.2", type: GitSwitchMergeDialogComponent, isStandalone: true, selector: "nol-git-switch-merge-dialog", inputs: { drop: { classPropertyName: "drop", publicName: "drop", 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.switchMergeTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"switch-merge\" (click)=\"answered.emit(true)\">{{ resources.switchMergeLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: DialogComponent, selector: "nol-dialog", inputs: ["title", "size"], outputs: ["dismissed"] }] });
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitSwitchMergeDialogComponent, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitSwitchMergeDialogComponent, decorators: [{
24
24
  type: Component,
25
25
  args: [{ selector: "nol-git-switch-merge-dialog", imports: [ButtonComponent, DialogComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<nol-dialog [title]=\"resources.switchMergeTitle\" (dismissed)=\"answered.emit(false)\">\n <p class=\"text\">{{ text() }}</p>\n <button nol-button nolDialogAction type=\"button\" class=\"switch-merge\" (click)=\"answered.emit(true)\">{{ resources.switchMergeLabel }}</button>\n <button nol-button nolDialogAction type=\"button\" class=\"cancel\" [variant]=\"secondary\" (click)=\"answered.emit(false)\">{{ resources.cancelLabel }}</button>\n</nol-dialog>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.text {\n margin: 0;\n}\n"] }]
26
26
  }], propDecorators: { drop: [{ type: i0.Input, args: [{ isSignal: true, alias: "drop", required: true }] }], answered: [{ type: i0.Output, args: ["answered"] }] } });
@@ -48,10 +48,10 @@ export class GitUndoMenuComponent {
48
48
  if (trigger.isOpen() && this.document.activeElement === this.document.body)
49
49
  trigger.openFocusing("mouse");
50
50
  }
51
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", viewQueries: [{ propertyName: "trigger", first: true, predicate: MenuTriggerDirective, 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
51
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitUndoMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
52
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitUndoMenuComponent, isStandalone: true, selector: "nol-git-undo-menu", viewQueries: [{ propertyName: "trigger", first: true, predicate: MenuTriggerDirective, 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<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n", dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside", "nolTooltipAnchor"] }] });
53
53
  }
54
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitUndoMenuComponent, decorators: [{
54
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitUndoMenuComponent, decorators: [{
55
55
  type: Component,
56
56
  args: [{ selector: "nol-git-undo-menu", imports: [IconButtonComponent, MenuComponent, MenuItemComponent, MenuTriggerDirective, TooltipDirective], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<button nol-icon-button type=\"button\" class=\"recent\" [icon]=\"resources.historyIcon\" [label]=\"resources.recentActionsLabel\"\n [nolTooltip]=\"resources.recentActionsLabel\" [nolMenuTriggerFor]=\"actions\" (cdkMenuOpened)=\"read()\"></button>\n<ng-template #actions>\n <nol-menu>\n @for (entry of state.recentActions(); track entry.id) {\n <button nol-menu-item [label]=\"labelOf(entry)\" [description]=\"timeOf(entry)\" [value]=\"canUndo(entry) ? resources.undoLabel : null\"\n [disabled]=\"!canUndo(entry) || state.busy()\" (triggered)=\"undo(entry)\"></button>\n } @empty {\n <button nol-menu-item [label]=\"resources.noRecentActions\" [disabled]=\"true\"></button>\n }\n </nol-menu>\n</ng-template>\n" }]
57
57
  }], ctorParameters: () => [], propDecorators: { trigger: [{ type: i0.ViewChild, args: [i0.forwardRef(() => MenuTriggerDirective), { isSignal: true }] }] } });
@@ -146,10 +146,10 @@ export class GitViewComponent {
146
146
  return null;
147
147
  }
148
148
  }
149
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n @if (look(); as folderLook) {\n <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"folderLook.initializing()\" [attr.aria-busy]=\"folderLook.initializing()\"\n (click)=\"initAsync(folderLook)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(folderLook); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"folderLook.checking()\" [attr.aria-busy]=\"folderLook.checking()\"\n (click)=\"openFound(folderLook, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
149
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
150
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitViewComponent, isStandalone: true, selector: "nol-git-view", providers: [GitViewStateService], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n @if (look(); as folderLook) {\n <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"folderLook.initializing()\" [attr.aria-busy]=\"folderLook.initializing()\"\n (click)=\"initAsync(folderLook)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(folderLook); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"folderLook.checking()\" [attr.aria-busy]=\"folderLook.checking()\"\n (click)=\"openFound(folderLook, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitBranchCardComponent, selector: "nol-git-branch-card", inputs: ["status"] }, { kind: "component", type: GitCommitCardComponent, selector: "nol-git-commit-card", inputs: ["status"] }, { kind: "component", type: GitFileGroupComponent, selector: "nol-git-file-group", inputs: ["group"], outputs: ["openConflict"] }, { kind: "component", type: GitHostRowComponent, selector: "nol-git-host-row", inputs: ["remote", "status", "folder"] }, { kind: "component", type: GitUndoMenuComponent, selector: "nol-git-undo-menu" }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
151
151
  }
152
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitViewComponent, decorators: [{
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitViewComponent, decorators: [{
153
153
  type: Component,
154
154
  args: [{ selector: "nol-git-view", imports: [ButtonComponent, GitBranchCardComponent, GitCommitCardComponent, GitFileGroupComponent, GitHostRowComponent, GitUndoMenuComponent,
155
155
  SpinnerComponent], 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 (empty(); as empty) {\n <div class=\"empty\">\n <span class=\"empty-icon material-symbols-rounded\" aria-hidden=\"true\">{{ empty.icon }}</span>\n <h2 class=\"heading\">{{ empty.heading }}</h2>\n <p class=\"text\">{{ empty.text }}</p>\n @if (offersGit()) {\n <span class=\"actions\">\n <button nol-button type=\"button\" (click)=\"getGitAsync()\"><span nolButtonIcon class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.openLinkIcon }}</span>{{ resources.getGitLabel }}</button>\n <button nol-button type=\"button\" [variant]=\"secondary\" (click)=\"checkAgain()\">{{ resources.checkAgainLabel }}</button>\n </span>\n @if (linkFailed()) {\n <div class=\"notice link-failed\" role=\"alert\">\n <span class=\"notice-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"notice-text\">{{ resources.linkNotOpened }}</span>\n </div>\n }\n }\n @if (look(); as folderLook) {\n <span class=\"actions\">\n <button nol-button type=\"button\" class=\"init-here\" [attr.aria-disabled]=\"folderLook.initializing()\" [attr.aria-busy]=\"folderLook.initializing()\"\n (click)=\"initAsync(folderLook)\">{{ resources.initHereLabel }}</button>\n @if (foundIn(folderLook); as scan) {\n <button nol-button type=\"button\" class=\"open-found\" [variant]=\"secondary\" [attr.aria-disabled]=\"folderLook.checking()\" [attr.aria-busy]=\"folderLook.checking()\"\n (click)=\"openFound(folderLook, scan)\">{{ resources.openFoundLabel }}</button>\n }\n </span>\n }\n </div>\n} @else if (state.status(); as status) {\n <div class=\"body\">\n @if (showsBranch()) {\n <nol-git-branch-card [status]=\"status\" />\n } @else {\n <div class=\"title\">\n <span class=\"title-text\">{{ resources.changesLabel }}</span>\n @if (switching() ?? status.branch; as branch) {\n <span class=\"title-branch\" [title]=\"branch\">{{ resources.formatOnBranch(branch) }}</span>\n }\n <nol-git-undo-menu class=\"title-undo\" />\n </div>\n }\n @if (status.remote; as remote) {\n <nol-git-host-row [remote]=\"remote\" [status]=\"status\" [folder]=\"state.folder() ?? ''\" />\n }\n @if (status.operation; as operation) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.mergeIcon }}</span>\n <span class=\"banner-text\">\n <span class=\"strong\">{{ operationOf(operation, status.branch) }}</span>\n <span class=\"muted\">{{ state.conflicts() === 0 ? resources.formatOperationReady(operation.kind) : resources.formatConflictText(state.conflicts()) }}</span>\n <span class=\"operation-actions\">\n @if (firstConflict(); as path) {\n <button nol-button type=\"button\" class=\"banner-action resolve-conflicts\" (click)=\"openConflict(state.folder() ?? '', path)\">{{ resources.resolveConflictsLabel }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action continue-operation\" [variant]=\"firstConflict() ? secondary : primary\" [disabled]=\"state.busy() || state.conflicts() > 0\"\n (click)=\"continueOperation()\">{{ resources.continueLabels[operation.kind] }}</button>\n @if (!operation.editStop && resources.skipLabels[operation.kind]; as skip) {\n <button nol-button type=\"button\" class=\"banner-action skip-operation\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"skipOperation()\">{{ skip }}</button>\n }\n <button nol-button type=\"button\" class=\"banner-action abort-operation\" [variant]=\"secondary\" (click)=\"abortOperation()\">{{ resources.abortLabels[operation.kind] }}</button>\n </span>\n </span>\n </div>\n }\n @if (state.watchFailure(); as watchFailure) {\n <div class=\"banner\" role=\"status\">\n <span class=\"banner-icon warning material-symbols-rounded\" aria-hidden=\"true\">{{ resources.watchFailedIcon }}</span>\n <span class=\"banner-text\">{{ watchFailure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"followAgain()\">{{ resources.checkAgainLabel }}</button>\n </div>\n }\n @if (state.failure(); as failure) {\n <div class=\"banner\" role=\"alert\">\n <span class=\"banner-icon failed material-symbols-rounded\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"banner-text\">{{ failure }}</span>\n <button nol-button type=\"button\" class=\"banner-action\" [variant]=\"secondary\" (click)=\"dismissFailure()\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @if (state.discarded(); as discarded) {\n <div class=\"banner discarded\" role=\"status\">\n <span class=\"banner-icon material-symbols-rounded\" aria-hidden=\"true\">{{ resources.discardedIcon }}</span>\n <span class=\"banner-text\">{{ resources.formatDiscarded(discarded.paths) }}</span>\n <button nol-button type=\"button\" class=\"banner-action undo\" [variant]=\"secondary\" [disabled]=\"state.busy()\" (click)=\"undoDiscard()\">{{ resources.undoLabel }}</button>\n <button nol-button type=\"button\" class=\"banner-action dismiss\" [variant]=\"secondary\" (click)=\"state.discarded.set(null)\">{{ resources.dismissLabel }}</button>\n </div>\n }\n @for (group of state.groups(); track group.kind) {\n <nol-git-file-group [group]=\"group\" (openConflict)=\"openConflict(state.folder() ?? '', $event)\" />\n } @empty {\n <p class=\"quiet\">{{ resources.noChanges }}</p>\n }\n @if (status.truncated) {\n <p class=\"quiet\">{{ resources.listCut }}</p>\n }\n @if (status.uncheckedLfsFiles > 0) {\n <p class=\"quiet lfs-unchecked\">{{ resources.formatUncheckedLfs(status.uncheckedLfsFiles) }}</p>\n }\n <nol-git-commit-card [status]=\"status\" />\n </div>\n} @else if (state.phase() === phases.Loading) {\n <div class=\"loading\"><nol-spinner [label]=\"resources.readingRepository\" [isDelayed]=\"true\" /></div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n overflow: auto;\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.body,\n.loading {\n display: flex;\n flex: 1 0 auto;\n flex-direction: column;\n gap: 0.75rem;\n box-sizing: border-box;\n padding: 0.75rem;\n}\n\n.body > nol-git-commit-card {\n margin-top: auto;\n}\n\n.title {\n display: flex;\n gap: 0.5rem;\n align-items: center;\n min-width: 0;\n}\n\n.title-text {\n flex: 1 1 auto;\n color: var(--nol-text-strong);\n font-size: 0.9375rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.title-branch {\n overflow: hidden;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n white-space: nowrap;\n text-overflow: ellipsis;\n}\n\n.title-undo {\n display: flex;\n flex: none;\n margin-inline-end: calc((var(--nol-icon) - var(--nol-icon-button-target)) / 2);\n}\n\n.banner {\n display: flex;\n gap: var(--nol-space-2);\n align-items: flex-start;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.banner-icon {\n flex: none;\n margin-top: var(--nol-tab-inset);\n font-size: var(--nol-icon);\n}\n\n.banner-text {\n display: grid;\n flex: 1;\n gap: var(--nol-tab-inset);\n min-width: 0;\n overflow-wrap: anywhere;\n}\n\n.banner-action {\n flex: none;\n}\n\n.operation-actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n margin-top: var(--nol-space-1);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.muted,\n.quiet {\n color: var(--nol-text-muted);\n}\n\n.quiet {\n margin: 0;\n padding: 0 var(--nol-view-padding-inline);\n}\n\n.empty {\n display: grid;\n gap: var(--nol-space-2);\n justify-items: start;\n padding: var(--nol-space-3) var(--nol-space-4);\n}\n\n.empty-icon {\n width: var(--nol-empty-icon);\n height: var(--nol-empty-icon);\n color: var(--nol-text-muted);\n font-size: var(--nol-empty-icon);\n}\n\n.heading {\n margin: 0;\n color: var(--nol-text-strong);\n font-size: inherit;\n font-weight: var(--nol-weight-emphasis);\n line-height: inherit;\n}\n\n.text {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.actions {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2);\n}\n\n.notice {\n display: flex;\n gap: var(--nol-space-2);\n align-items: center;\n padding: var(--nol-space-2) var(--nol-view-padding-inline);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n color: var(--nol-text-muted);\n}\n\n.notice-text {\n flex: 1;\n min-width: 0;\n font-size: var(--nol-text-label);\n overflow-wrap: anywhere;\n}\n\n.notice-icon {\n flex: none;\n color: var(--nol-status-failed);\n}\n"] }]
@@ -17,10 +17,10 @@ export class GitVisibleDirective {
17
17
  observer.observe(inject(ElementRef).nativeElement);
18
18
  inject(DestroyRef).onDestroy(() => observer.disconnect());
19
19
  }
20
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitVisibleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
- static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.0", type: GitVisibleDirective, isStandalone: true, selector: "[nolGitVisible]", outputs: { visibleChange: "visibleChange" }, ngImport: i0 });
20
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitVisibleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
21
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.3.2", type: GitVisibleDirective, isStandalone: true, selector: "[nolGitVisible]", outputs: { visibleChange: "visibleChange" }, ngImport: i0 });
22
22
  }
23
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitVisibleDirective, decorators: [{
23
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitVisibleDirective, decorators: [{
24
24
  type: Directive,
25
25
  args: [{ selector: "[nolGitVisible]" }]
26
26
  }], ctorParameters: () => [], propDecorators: { visibleChange: [{ type: i0.Output, args: ["visibleChange"] }] } });
@@ -441,10 +441,10 @@ export class GitWorkspaceComponent {
441
441
  return fallback;
442
442
  }
443
443
  }
444
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
445
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspaceComponent, isStandalone: true, selector: "nol-git-workspace", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "nameField", first: true, predicate: ["nameField"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addMenuTitle\" [isShowingLabel]=\"true\" [hasMenu]=\"true\"\n [isUnavailable]=\"isScanning()\" [nolMenuTriggerFor]=\"addMenu\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n @if (!sort()) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"open-across\" [icon]=\"resources.workspaceAcrossIcon\" [label]=\"resources.acrossHeading\" [isShowingLabel]=\"true\"\n (click)=\"openAcross()\"></button>\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n @for (header of headers; track header.column) {\n @let sorted = ariaSortOf(header.column);\n <span role=\"columnheader\" [class]=\"header.className\" [attr.aria-sort]=\"sorted\">\n <button type=\"button\" class=\"sort\" (click)=\"sortBy(header.column)\">{{ header.title }}<span class=\"material-symbols-rounded arrow\" [class.unsorted]=\"!sorted\" aria-hidden=\"true\">{{ sorted === resources.descendingSort ? resources.descendingIcon : resources.ascendingIcon }}</span></button>\n </span>\n }\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}@if (twins().has(row.name.toLowerCase())) {<span class=\"place\">{{ row.parent }}</span>}</button>\n </span>\n @if (!row.isRepository()) {\n <span role=\"cell\" class=\"not-repository small\">\n <span class=\"muted\">{{ resources.notRepositoryHeading }}</span>\n <button type=\"button\" class=\"link remove-one\" (click)=\"remove(only(row.folder))\">{{ resources.removeLabel }}</button>\n </span>\n }\n @else if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ fetchedOf(row) }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <div class=\"empty-actions\">\n <button nol-button type=\"button\" class=\"empty-add\" [disabled]=\"isScanning()\" (click)=\"add(addKinds.Local)\">{{ resources.addLocalTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-clone\" [variant]=\"secondary\" (click)=\"add(addKinds.Clone)\">{{ resources.cloneRepositoryTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-init\" [variant]=\"secondary\" (click)=\"add(addKinds.Init)\">{{ resources.initRepositoryTitle }}</button>\n </div>\n }\n </div>\n }\n </div>\n </main>\n</div>\n<ng-template #addMenu>\n <nol-menu>\n <button nol-menu-item class=\"add-local\" [label]=\"resources.addLocalTitle\" [icon]=\"resources.addIcon\" (triggered)=\"add(addKinds.Local)\"></button>\n <button nol-menu-item class=\"add-clone\" [label]=\"resources.cloneRepositoryTitle\" [icon]=\"resources.cloneIcon\" (triggered)=\"add(addKinds.Clone)\"></button>\n <button nol-menu-item class=\"add-init\" [label]=\"resources.initRepositoryTitle\" [icon]=\"resources.initIcon\" (triggered)=\"add(addKinds.Init)\"></button>\n </nol-menu>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.fetched-head,\n.fetched {\n text-align: end;\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sort {\n display: inline-flex;\n align-items: center;\n gap: 0.125rem;\n max-width: 100%;\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.sort:hover {\n color: var(--nol-link);\n}\n\n.sort:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n}\n\n.arrow {\n font-size: 0.875rem;\n}\n\n/* An unsorted header keeps its arrow's space, so a right-aligned title doesn't move when its column is sorted. */\n.arrow.unsorted {\n visibility: hidden;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.place {\n margin-inline-start: 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.not-repository {\n display: flex;\n grid-column: span 2;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.remove-one {\n font-weight: inherit;\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n justify-content: center;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure,\n .not-repository {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { 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: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "directive", type: GitVisibleDirective, selector: "[nolGitVisible]", outputs: ["visibleChange"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
444
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
445
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitWorkspaceComponent, isStandalone: true, selector: "nol-git-workspace", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, viewQueries: [{ propertyName: "nameField", first: true, predicate: ["nameField"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addMenuTitle\" [isShowingLabel]=\"true\" [hasMenu]=\"true\"\n [isUnavailable]=\"isScanning()\" [nolMenuTriggerFor]=\"addMenu\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n @if (!sort()) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"open-across\" [icon]=\"resources.workspaceAcrossIcon\" [label]=\"resources.acrossHeading\" [isShowingLabel]=\"true\"\n (click)=\"openAcross()\"></button>\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n @for (header of headers; track header.column) {\n @let sorted = ariaSortOf(header.column);\n <span role=\"columnheader\" [class]=\"header.className\" [attr.aria-sort]=\"sorted\">\n <button type=\"button\" class=\"sort\" (click)=\"sortBy(header.column)\">{{ header.title }}<span class=\"material-symbols-rounded arrow\" [class.unsorted]=\"!sorted\" aria-hidden=\"true\">{{ sorted === resources.descendingSort ? resources.descendingIcon : resources.ascendingIcon }}</span></button>\n </span>\n }\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}@if (twins().has(row.name.toLowerCase())) {<span class=\"place\">{{ row.parent }}</span>}</button>\n </span>\n @if (!row.isRepository()) {\n <span role=\"cell\" class=\"not-repository small\">\n <span class=\"muted\">{{ resources.notRepositoryHeading }}</span>\n <button type=\"button\" class=\"link remove-one\" (click)=\"remove(only(row.folder))\">{{ resources.removeLabel }}</button>\n </span>\n }\n @else if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ fetchedOf(row) }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <div class=\"empty-actions\">\n <button nol-button type=\"button\" class=\"empty-add\" [disabled]=\"isScanning()\" (click)=\"add(addKinds.Local)\">{{ resources.addLocalTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-clone\" [variant]=\"secondary\" (click)=\"add(addKinds.Clone)\">{{ resources.cloneRepositoryTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-init\" [variant]=\"secondary\" (click)=\"add(addKinds.Init)\">{{ resources.initRepositoryTitle }}</button>\n </div>\n }\n </div>\n }\n </div>\n </main>\n</div>\n<ng-template #addMenu>\n <nol-menu>\n <button nol-menu-item class=\"add-local\" [label]=\"resources.addLocalTitle\" [icon]=\"resources.addIcon\" (triggered)=\"add(addKinds.Local)\"></button>\n <button nol-menu-item class=\"add-clone\" [label]=\"resources.cloneRepositoryTitle\" [icon]=\"resources.cloneIcon\" (triggered)=\"add(addKinds.Clone)\"></button>\n <button nol-menu-item class=\"add-init\" [label]=\"resources.initRepositoryTitle\" [icon]=\"resources.initIcon\" (triggered)=\"add(addKinds.Init)\"></button>\n </nol-menu>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.fetched-head,\n.fetched {\n text-align: end;\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sort {\n display: inline-flex;\n align-items: center;\n gap: 0.125rem;\n max-width: 100%;\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.sort:hover {\n color: var(--nol-link);\n}\n\n.sort:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n}\n\n.arrow {\n font-size: 0.875rem;\n}\n\n/* An unsorted header keeps its arrow's space, so a right-aligned title doesn't move when its column is sorted. */\n.arrow.unsorted {\n visibility: hidden;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.place {\n margin-inline-start: 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.not-repository {\n display: flex;\n grid-column: span 2;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.remove-one {\n font-weight: inherit;\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n justify-content: center;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure,\n .not-repository {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CheckboxComponent, selector: "nol-checkbox", inputs: ["checked", "disabled", "label"], outputs: ["checkedChange"] }, { 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: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "directive", type: GitVisibleDirective, selector: "[nolGitVisible]", outputs: ["visibleChange"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MenuComponent, selector: "nol-menu", inputs: ["minWidth"] }, { kind: "component", type: MenuItemComponent, selector: "button[nol-menu-item]", inputs: ["label", "icon", "checked", "checkbox", "shortcut", "description", "value", "tag", "danger", "isShowingChevron"] }, { kind: "directive", type: MenuTriggerDirective, selector: "[nolMenuTriggerFor]", inputs: ["nolMenuTriggerFor", "nolMenuAlignment"], exportAs: ["nolMenuTriggerFor"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]", inputs: ["large", "quiet"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
446
446
  }
447
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceComponent, decorators: [{
447
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceComponent, decorators: [{
448
448
  type: Component,
449
449
  args: [{ selector: "nol-git-workspace", imports: [ButtonComponent, CheckboxComponent, FormsModule, GitReferenceTextComponent, GitVisibleDirective, IconButtonComponent, MenuComponent, MenuItemComponent,
450
450
  MenuTriggerDirective, TextFieldComponent, ToolbarButtonComponent], template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<div class=\"page\">\n <main class=\"panel\" [attr.aria-label]=\"title()\">\n <div class=\"toolbar\">\n @if (renaming(); as name) {\n @if (workspace(); as current) {\n <input #nameField nol-text-field class=\"name-field\" type=\"text\" name=\"workspaceName\" [attr.aria-label]=\"resources.workspaceNameLabel\" [ngModel]=\"name\"\n (ngModelChange)=\"renaming.set($event)\" (keydown.enter)=\"rename(current)\" (keydown.escape)=\"renaming.set(null)\" (blur)=\"rename(current)\" />\n }\n }\n @else {\n <span class=\"name\">{{ title() }}</span>\n }\n <span class=\"small muted count-text\">{{ resources.formatRepositoryCount(folders().length, chosen().size) }}</span>\n <span class=\"separator\" aria-hidden=\"true\"></span>\n <button type=\"button\" nol-toolbar-button class=\"fetch-all\" [icon]=\"resources.fetchAllIcon\" [label]=\"resources.fetchAllTitle\" [isShowingLabel]=\"true\"\n [isUnavailable]=\"isFetching() || folders().length === 0\" (click)=\"fetchAllAsync()\"></button>\n @if (chosen().size > 0) {\n <button type=\"button\" nol-toolbar-button class=\"pull-chosen\" [icon]=\"resources.pullIcon\" [label]=\"resources.formatPullChosen(chosenBehind().length)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting() || chosenBehind().length === 0\" (click)=\"pullChosenAsync()\"></button>\n <button type=\"button\" nol-toolbar-button class=\"new-branch\" [icon]=\"resources.newBranchIcon\" [label]=\"resources.formatNewBranchIn(chosen().size)\"\n [isShowingLabel]=\"true\" [isUnavailable]=\"isWriting()\" (click)=\"newBranchInChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"add\" [icon]=\"resources.addIcon\" [label]=\"resources.addMenuTitle\" [isShowingLabel]=\"true\" [hasMenu]=\"true\"\n [isUnavailable]=\"isScanning()\" [nolMenuTriggerFor]=\"addMenu\"></button>\n @if (chosen().size > 0) {\n @if (workspace(); as current) {\n @if (!sort()) {\n <button type=\"button\" nol-toolbar-button class=\"move-up\" [icon]=\"resources.moveUpIcon\" [label]=\"resources.moveUpTitle\" (click)=\"moveChosen(current, -1)\"></button>\n <button type=\"button\" nol-toolbar-button class=\"move-down\" [icon]=\"resources.moveDownIcon\" [label]=\"resources.moveDownTitle\" (click)=\"moveChosen(current, 1)\"></button>\n }\n }\n <button type=\"button\" nol-toolbar-button class=\"remove\" [icon]=\"resources.removeIcon\" [label]=\"resources.formatRemoveRepositories(chosen().size)\" [isShowingLabel]=\"true\"\n (click)=\"removeChosen()\"></button>\n }\n <button type=\"button\" nol-toolbar-button class=\"open-across\" [icon]=\"resources.workspaceAcrossIcon\" [label]=\"resources.acrossHeading\" [isShowingLabel]=\"true\"\n (click)=\"openAcross()\"></button>\n <span class=\"grow\"></span>\n @if (workspace(); as current) {\n <button nol-icon-button type=\"button\" class=\"rename\" [icon]=\"resources.renameIcon\" [label]=\"resources.renameWorkspaceTitle\" (click)=\"renaming.set(current.name)\"></button>\n <button nol-icon-button type=\"button\" class=\"remove-workspace\" [icon]=\"resources.deleteIcon\" [label]=\"resources.removeWorkspaceTitle\" (click)=\"removeWorkspace(current)\"></button>\n }\n <label class=\"filter\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.filterIcon }}</span>\n <input #filterField type=\"search\" [placeholder]=\"resources.filterRepositoriesLabel\" [attr.aria-label]=\"resources.filterRepositoriesLabel\" [value]=\"filter()\"\n (input)=\"filter.set(filterField.value)\" />\n </label>\n </div>\n @if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n }\n <div class=\"table\" role=\"table\" [attr.aria-label]=\"title()\">\n <div class=\"tr th\" role=\"row\">\n <span role=\"columnheader\"><span class=\"visually-hidden\">{{ resources.selectRepositoryLabel }}</span></span>\n @for (header of headers; track header.column) {\n @let sorted = ariaSortOf(header.column);\n <span role=\"columnheader\" [class]=\"header.className\" [attr.aria-sort]=\"sorted\">\n <button type=\"button\" class=\"sort\" (click)=\"sortBy(header.column)\">{{ header.title }}<span class=\"material-symbols-rounded arrow\" [class.unsorted]=\"!sorted\" aria-hidden=\"true\">{{ sorted === resources.descendingSort ? resources.descendingIcon : resources.ascendingIcon }}</span></button>\n </span>\n }\n </div>\n @for (row of rows(); track row.folder) {\n @let isChosen = chosen().has(row.folder);\n <div nolGitVisible class=\"tr\" role=\"row\" [class.selected]=\"isChosen\" [title]=\"row.folder\" (visibleChange)=\"follow(row.folder, $event)\">\n <span role=\"cell\">\n <nol-checkbox class=\"select\" [checked]=\"isChosen\" (checkedChange)=\"select(row.folder, $event)\"><span class=\"visually-hidden\">{{ row.name }}</span></nol-checkbox>\n </span>\n <span role=\"cell\" class=\"ic\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.folderIcon }}</span>\n <button type=\"button\" class=\"link name-cell\" [title]=\"row.name\" (click)=\"open(row.folder)\">{{ row.name }}@if (twins().has(row.name.toLowerCase())) {<span class=\"place\">{{ row.parent }}</span>}</button>\n </span>\n @if (!row.isRepository()) {\n <span role=\"cell\" class=\"not-repository small\">\n <span class=\"muted\">{{ resources.notRepositoryHeading }}</span>\n <button type=\"button\" class=\"link remove-one\" (click)=\"remove(only(row.folder))\">{{ resources.removeLabel }}</button>\n </span>\n }\n @else if (row.failure(); as failure) {\n <span role=\"cell\" class=\"failure small\" [title]=\"failure\">{{ failure }}</span>\n }\n @else {\n <span role=\"cell\" class=\"ic branch\">\n @if (row.branch().length > 0) {\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.statusBarBranchIcon }}</span>\n }\n <span class=\"ellipsis\" [title]=\"row.branch()\">{{ row.branch() }}</span>\n </span>\n <span role=\"cell\" class=\"small sync\">{{ row.sync() }}</span>\n }\n <span role=\"cell\" class=\"small changes\" [class.conflicts]=\"row.hasConflicts()\">{{ row.changes() }}</span>\n <span role=\"cell\" class=\"small pull-request\">\n @if (row.pullRequest(); as pullRequest) {\n @let words = around(row.pullRequestText(), pullRequest.label);\n @let linkTitle = resources.formatPullRequestLinkTitle(row.pullRequestText(), pullRequest.title);\n <span class=\"link\" (click)=\"openPullRequest(row, pullRequest)\"><span [title]=\"linkTitle\">{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [folder]=\"row.folder\" [link]=\"pullRequest.url\" /><span [title]=\"linkTitle\">{{ words.after }}</span></span>\n }\n @else {\n {{ row.pullRequestText() }}\n }\n </span>\n <span role=\"cell\" class=\"ic small checks\">\n @if (row.checksTone().length > 0) {\n <span [class]=\"'dot ' + row.checksTone()\" aria-hidden=\"true\"></span>\n }\n {{ row.checks() }}\n </span>\n <span role=\"cell\" class=\"small open\" [title]=\"row.openTitle()\">{{ row.open() }}</span>\n <span role=\"cell\" class=\"small muted fetched\">{{ fetchedOf(row) }}</span>\n </div>\n }\n @empty {\n <div class=\"empty\">\n <p>{{ folders().length === 0 ? resources.noRepositories : resources.noRepositoryMatches }}</p>\n @if (folders().length === 0) {\n <div class=\"empty-actions\">\n <button nol-button type=\"button\" class=\"empty-add\" [disabled]=\"isScanning()\" (click)=\"add(addKinds.Local)\">{{ resources.addLocalTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-clone\" [variant]=\"secondary\" (click)=\"add(addKinds.Clone)\">{{ resources.cloneRepositoryTitle }}</button>\n <button nol-button type=\"button\" class=\"empty-init\" [variant]=\"secondary\" (click)=\"add(addKinds.Init)\">{{ resources.initRepositoryTitle }}</button>\n </div>\n }\n </div>\n }\n </div>\n </main>\n</div>\n<ng-template #addMenu>\n <nol-menu>\n <button nol-menu-item class=\"add-local\" [label]=\"resources.addLocalTitle\" [icon]=\"resources.addIcon\" (triggered)=\"add(addKinds.Local)\"></button>\n <button nol-menu-item class=\"add-clone\" [label]=\"resources.cloneRepositoryTitle\" [icon]=\"resources.cloneIcon\" (triggered)=\"add(addKinds.Clone)\"></button>\n <button nol-menu-item class=\"add-init\" [label]=\"resources.initRepositoryTitle\" [icon]=\"resources.initIcon\" (triggered)=\"add(addKinds.Init)\"></button>\n </nol-menu>\n</ng-template>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n container-type: inline-size;\n box-sizing: border-box;\n height: 100%;\n min-height: 0;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.page {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n height: 100%;\n min-height: 0;\n}\n\n.panel {\n display: flex;\n flex-direction: column;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n background: var(--nol-panel);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.toolbar {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.25rem;\n height: 2.25rem;\n padding: 0 0.75rem 0 0.5rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result {\n flex: none;\n padding: 0.375rem 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n}\n\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.name {\n padding: 0 0.25rem;\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n white-space: nowrap;\n}\n\n.name-field {\n width: 14rem;\n}\n\n.count-text {\n white-space: nowrap;\n}\n\n.separator {\n flex: none;\n width: var(--nol-border-width);\n height: 1rem;\n margin: 0 0.25rem;\n background: var(--nol-border);\n}\n\n.filter {\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.5rem;\n box-sizing: border-box;\n width: 14rem;\n height: 1.625rem;\n padding: 0 0.375rem;\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background: var(--nol-input);\n}\n\n.filter .material-symbols-rounded {\n color: var(--nol-placeholder);\n}\n\n.filter input {\n flex: 1;\n min-width: 0;\n padding: 0;\n border: 0;\n outline: none;\n background: transparent;\n color: var(--nol-text);\n font: inherit;\n}\n\n.filter input::placeholder {\n color: var(--nol-placeholder);\n}\n\n.filter:focus-within {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(-1 * var(--nol-border-width));\n}\n\n.table {\n display: grid;\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.5rem 6.25rem;\n align-content: start;\n column-gap: 0.5rem;\n min-height: 0;\n overflow: auto;\n}\n\n.tr {\n --row-fill: transparent;\n\n box-sizing: border-box;\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n height: 2rem;\n padding: 0 0.75rem;\n border-bottom: var(--nol-border-width) solid var(--nol-border);\n white-space: nowrap;\n}\n\n.tr > * {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.tr:not(.th):hover {\n --row-fill: var(--nol-hover);\n\n background: var(--nol-hover);\n}\n\n.tr.selected,\n.tr.selected:hover {\n --row-fill: var(--nol-selected);\n\n background: var(--nol-selected);\n}\n\n.tr > :nth-child(2) {\n position: sticky;\n left: 0;\n z-index: 1;\n margin-inline-start: -0.75rem;\n padding-inline-start: 0.75rem;\n background: linear-gradient(var(--row-fill), var(--row-fill)), var(--nol-panel);\n}\n\n.fetched-head,\n.fetched {\n text-align: end;\n}\n\n.th {\n height: 1.75rem;\n color: var(--nol-text-strong);\n font-size: 0.75rem;\n font-weight: var(--nol-weight-emphasis);\n}\n\n.ic {\n display: inline-flex;\n align-items: center;\n gap: 0.25rem;\n}\n\n.sort {\n display: inline-flex;\n align-items: center;\n gap: 0.125rem;\n max-width: 100%;\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n cursor: pointer;\n}\n\n.sort:hover {\n color: var(--nol-link);\n}\n\n.sort:focus-visible {\n outline: var(--nol-border-width) solid var(--nol-accent);\n}\n\n.arrow {\n font-size: 0.875rem;\n}\n\n/* An unsorted header keeps its arrow's space, so a right-aligned title doesn't move when its column is sorted. */\n.arrow.unsorted {\n visibility: hidden;\n}\n\n.link {\n min-width: 0;\n overflow: hidden;\n padding: 0;\n border: 0;\n background: none;\n color: var(--nol-text-strong);\n font: inherit;\n font-weight: var(--nol-weight-emphasis);\n text-overflow: ellipsis;\n cursor: pointer;\n}\n\n.link:hover {\n color: var(--nol-link);\n text-decoration: underline;\n}\n\n.place {\n margin-inline-start: 0.5rem;\n color: var(--nol-text-muted);\n}\n\n.ellipsis {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.failure {\n grid-column: span 2;\n color: var(--nol-error);\n}\n\n.not-repository {\n display: flex;\n grid-column: span 2;\n gap: var(--nol-space-2);\n align-items: center;\n min-width: 0;\n}\n\n.remove-one {\n font-weight: inherit;\n}\n\n.conflicts {\n color: var(--nol-warning);\n}\n\n.pull-request .link {\n display: inline-block;\n max-width: 100%;\n white-space: nowrap;\n vertical-align: bottom;\n color: inherit;\n font-weight: inherit;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending {\n background-color: var(--nol-warning);\n}\n\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.empty {\n display: grid;\n grid-column: 1 / -1;\n gap: 0.5rem;\n justify-items: center;\n padding: 1.5rem;\n color: var(--nol-text-muted);\n}\n\n.empty p {\n margin: 0;\n}\n\n.empty-actions {\n display: flex;\n flex-wrap: wrap;\n gap: 0.5rem;\n justify-content: center;\n}\n\n.visually-hidden {\n position: absolute;\n width: 1px;\n height: 1px;\n overflow: hidden;\n clip-path: inset(50%);\n white-space: nowrap;\n}\n\n@container (width < 59rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 8.5rem 5rem 6.25rem;\n }\n\n .open,\n .open-head {\n display: none;\n }\n}\n\n@container (width < 52rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 5rem 6.25rem;\n }\n\n .pull-request,\n .pull-request-head {\n display: none;\n }\n}\n\n@container (width < 43rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5.5rem 5rem 6.25rem;\n }\n\n .changes,\n .changes-head {\n display: none;\n }\n}\n\n@container (width < 37.5rem) {\n .table {\n grid-template-columns: 2.125rem 8rem minmax(8rem, 1fr) 5rem 6.25rem;\n }\n\n .sync,\n .sync-head {\n display: none;\n }\n\n .failure,\n .not-repository {\n grid-column: span 1;\n }\n}\n\n@container (width < 31.5rem) {\n .table {\n grid-template-columns: 2.125rem 6.5rem minmax(6rem, 1fr) 5rem 6.25rem;\n }\n}\n\n@container (max-width: 46.75rem) {\n .toolbar {\n flex-wrap: wrap;\n height: auto;\n min-height: 2.25rem;\n padding-block: 0.25rem;\n }\n}\n"] }]
@@ -118,10 +118,10 @@ export class GitWorkspaceAcrossComponent {
118
118
  this.isWriting.set(false);
119
119
  this.written.emit(targets.map(t => t.folder));
120
120
  }
121
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceAcrossComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
122
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspaceAcrossComponent, isStandalone: true, selector: "nol-git-workspace-across", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, runs: { classPropertyName: "runs", publicName: "runs", isSignal: true, isRequired: true, transformFunction: null }, reviews: { classPropertyName: "reviews", publicName: "reviews", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { repositoryOpened: "repositoryOpened", pullRequestOpened: "pullRequestOpened", reviewOpened: "reviewOpened", written: "written" }, 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 (shared(); as change) {\n <section class=\"card change\" [attr.aria-label]=\"resources.formatSharedBranchTitle(change.rows.length)\">\n <div class=\"card-title\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.sharedBranchIcon }}</span>\n <span class=\"strong grow\">{{ resources.formatSharedBranchTitle(change.rows.length) }}</span>\n </div>\n <p class=\"small card-text\">{{ textOf(change) }}</p>\n <div class=\"card-actions\">\n <button nol-button type=\"button\" class=\"open-all\" [variant]=\"secondary\" [size]=\"compact\" (click)=\"openAll(change)\">{{ resources.formatOpenAll(change.rows.length) }}</button>\n <button nol-button type=\"button\" class=\"push-all\" [variant]=\"secondary\" [size]=\"compact\" [disabled]=\"!canPush(change) || isWriting()\" (click)=\"confirmPush(change)\">{{\n resources.pushAllLabel }}</button>\n </div>\n </section>\n}\n@if (hasNeeds()) {\n <section class=\"section needs\" [attr.aria-label]=\"resources.needsYouHeading\">\n <div class=\"caps\">{{ resources.needsYouHeading }}</div>\n @for (run of waiting(); track run.row.key) {\n <div class=\"row waiting\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ waitingIcon }}</span>\n <span class=\"grow\">{{ resources.formatAgentWaiting(run.repository, run.row.name) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\" (click)=\"openRun(run)\"></button>\n </div>\n }\n @for (review of reviews().rows; track review.row.url) {\n @let words = around(resources.formatReviewRequest(review.row.label, review.repository, review.row.account), review.row.label);\n <div class=\"row review\" (click)=\"reviewOpened.emit(review)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.reviewIcon }}</span>\n <span class=\"grow\"><span>{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [title]=\"review.row.title\" [folder]=\"review.folder\" [link]=\"review.row.url\" /><span>{{ words.after }}</span></span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\"></button>\n </div>\n }\n @if (reviews().hasMore) {\n <p class=\"small muted more\">{{ resources.moreReviews }}</p>\n }\n @for (row of conflicted(); track row.folder) {\n <div class=\"row conflicted\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span>\n <span class=\"grow\">{{ resources.formatRepositoryConflicts(row.name, row.conflicts()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"repositoryOpened.emit(row.folder)\"></button>\n </div>\n }\n @for (row of failing(); track row.folder) {\n <div class=\"row failing\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ resources.formatChecksFailing(row.name, row.branch(), row.failing()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openFailing(row)\"></button>\n </div>\n }\n @for (stack of stacks(); track stack.row.folder + \" \" + stack.bottom.key) {\n <div class=\"row stacked\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.stackIcon }}</span>\n <span class=\"grow\">{{ stackText(stack) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openStack(stack)\"></button>\n </div>\n }\n @if (behind().length > 0) {\n <div class=\"row behind\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.behindIcon }}</span>\n <span class=\"grow\">{{ resources.formatBehindRepositories(behind().length) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.formatPullCount(behind().length)\" [isShowingLabel]=\"true\" [disabled]=\"isWriting()\"\n (click)=\"pullAsync()\"></button>\n </div>\n }\n </section>\n}\n@if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n}\n@if (working().length > 0) {\n <section class=\"section working\" [attr.aria-label]=\"resources.agentsAtWorkHeading\">\n <div class=\"caps\">{{ resources.agentsAtWorkHeading }}</div>\n @for (run of working(); track run.row.key) {\n <button type=\"button\" class=\"row run\" [title]=\"run.row.worktree\" (click)=\"openRun(run)\">\n <span class=\"material-symbols-rounded agent\" aria-hidden=\"true\">{{ resources.agentIcon }}</span>\n <span class=\"grow\">{{ resources.formatRun(run.repository, run.row.name) }}</span>\n @if (run.hasOwnWorktree) {\n <span class=\"small muted\">{{ resources.ownWorktree }}</span>\n }\n </button>\n }\n </section>\n}\n@if (isQuiet()) {\n <p class=\"small muted quiet\">{{ resources.nothingNeedsYou }}</p>\n}\n<span class=\"fill\"></span>\n<p class=\"small muted note\">{{ fetchNote }}</p>\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 box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 0.75rem;\n min-height: 0;\n padding: 0.75rem;\n overflow: auto;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n margin-bottom: 0.25rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.card {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-raised);\n}\n\n.card-title {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.card-text,\n.more,\n.note,\n.quiet,\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.card-actions {\n display: flex;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n margin-inline: -0.5rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row,\n.row.review {\n cursor: pointer;\n}\n\n.row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.agent {\n color: var(--nol-author-8);\n}\n\n.fill {\n flex: 1 1 auto;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
121
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceAcrossComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
122
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitWorkspaceAcrossComponent, isStandalone: true, selector: "nol-git-workspace-across", inputs: { rows: { classPropertyName: "rows", publicName: "rows", isSignal: true, isRequired: true, transformFunction: null }, runs: { classPropertyName: "runs", publicName: "runs", isSignal: true, isRequired: true, transformFunction: null }, reviews: { classPropertyName: "reviews", publicName: "reviews", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { repositoryOpened: "repositoryOpened", pullRequestOpened: "pullRequestOpened", reviewOpened: "reviewOpened", written: "written" }, 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 (shared(); as change) {\n <section class=\"card change\" [attr.aria-label]=\"resources.formatSharedBranchTitle(change.rows.length)\">\n <div class=\"card-title\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.sharedBranchIcon }}</span>\n <span class=\"strong grow\">{{ resources.formatSharedBranchTitle(change.rows.length) }}</span>\n </div>\n <p class=\"small card-text\">{{ textOf(change) }}</p>\n <div class=\"card-actions\">\n <button nol-button type=\"button\" class=\"open-all\" [variant]=\"secondary\" [size]=\"compact\" (click)=\"openAll(change)\">{{ resources.formatOpenAll(change.rows.length) }}</button>\n <button nol-button type=\"button\" class=\"push-all\" [variant]=\"secondary\" [size]=\"compact\" [disabled]=\"!canPush(change) || isWriting()\" (click)=\"confirmPush(change)\">{{\n resources.pushAllLabel }}</button>\n </div>\n </section>\n}\n@if (hasNeeds()) {\n <section class=\"section needs\" [attr.aria-label]=\"resources.needsYouHeading\">\n <div class=\"caps\">{{ resources.needsYouHeading }}</div>\n @for (run of waiting(); track run.row.key) {\n <div class=\"row waiting\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ waitingIcon }}</span>\n <span class=\"grow\">{{ resources.formatAgentWaiting(run.repository, run.row.name) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\" (click)=\"openRun(run)\"></button>\n </div>\n }\n @for (review of reviews().rows; track review.row.url) {\n @let words = around(resources.formatReviewRequest(review.row.label, review.repository, review.row.account), review.row.label);\n <div class=\"row review\" (click)=\"reviewOpened.emit(review)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.reviewIcon }}</span>\n <span class=\"grow\"><span>{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [title]=\"review.row.title\" [folder]=\"review.folder\" [link]=\"review.row.url\" /><span>{{ words.after }}</span></span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\"></button>\n </div>\n }\n @if (reviews().hasMore) {\n <p class=\"small muted more\">{{ resources.moreReviews }}</p>\n }\n @for (row of conflicted(); track row.folder) {\n <div class=\"row conflicted\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span>\n <span class=\"grow\">{{ resources.formatRepositoryConflicts(row.name, row.conflicts()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"repositoryOpened.emit(row.folder)\"></button>\n </div>\n }\n @for (row of failing(); track row.folder) {\n <div class=\"row failing\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ resources.formatChecksFailing(row.name, row.branch(), row.failing()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openFailing(row)\"></button>\n </div>\n }\n @for (stack of stacks(); track stack.row.folder + \" \" + stack.bottom.key) {\n <div class=\"row stacked\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.stackIcon }}</span>\n <span class=\"grow\">{{ stackText(stack) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openStack(stack)\"></button>\n </div>\n }\n @if (behind().length > 0) {\n <div class=\"row behind\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.behindIcon }}</span>\n <span class=\"grow\">{{ resources.formatBehindRepositories(behind().length) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.formatPullCount(behind().length)\" [isShowingLabel]=\"true\" [disabled]=\"isWriting()\"\n (click)=\"pullAsync()\"></button>\n </div>\n }\n </section>\n}\n@if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n}\n@if (working().length > 0) {\n <section class=\"section working\" [attr.aria-label]=\"resources.agentsAtWorkHeading\">\n <div class=\"caps\">{{ resources.agentsAtWorkHeading }}</div>\n @for (run of working(); track run.row.key) {\n <button type=\"button\" class=\"row run\" [title]=\"run.row.worktree\" (click)=\"openRun(run)\">\n <span class=\"material-symbols-rounded agent\" aria-hidden=\"true\">{{ resources.agentIcon }}</span>\n <span class=\"grow\">{{ resources.formatRun(run.repository, run.row.name) }}</span>\n @if (run.hasOwnWorktree) {\n <span class=\"small muted\">{{ resources.ownWorktree }}</span>\n }\n </button>\n }\n </section>\n}\n@if (isQuiet()) {\n <p class=\"small muted quiet\">{{ resources.nothingNeedsYou }}</p>\n}\n<span class=\"fill\"></span>\n<p class=\"small muted note\">{{ fetchNote }}</p>\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 box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 0.75rem;\n min-height: 0;\n padding: 0.75rem;\n overflow: auto;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n margin-bottom: 0.25rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.card {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-raised);\n}\n\n.card-title {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.card-text,\n.more,\n.note,\n.quiet,\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.card-actions {\n display: flex;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n margin-inline: -0.5rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row,\n.row.review {\n cursor: pointer;\n}\n\n.row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.agent {\n color: var(--nol-author-8);\n}\n\n.fill {\n flex: 1 1 auto;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GitReferenceTextComponent, selector: "nol-git-reference-text", inputs: ["text", "folder", "link", "title", "chipTabIndex"] }, { kind: "component", type: ToolbarButtonComponent, selector: "button[nol-toolbar-button]", inputs: ["label", "icon", "isShowingLabel", "pressed", "hasMenu", "isUnavailable", "isPressedWhileOpen", "busy"] }] });
123
123
  }
124
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceAcrossComponent, decorators: [{
124
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceAcrossComponent, decorators: [{
125
125
  type: Component,
126
126
  args: [{ selector: "nol-git-workspace-across", imports: [ButtonComponent, GitReferenceTextComponent, ToolbarButtonComponent], 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 (shared(); as change) {\n <section class=\"card change\" [attr.aria-label]=\"resources.formatSharedBranchTitle(change.rows.length)\">\n <div class=\"card-title\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.sharedBranchIcon }}</span>\n <span class=\"strong grow\">{{ resources.formatSharedBranchTitle(change.rows.length) }}</span>\n </div>\n <p class=\"small card-text\">{{ textOf(change) }}</p>\n <div class=\"card-actions\">\n <button nol-button type=\"button\" class=\"open-all\" [variant]=\"secondary\" [size]=\"compact\" (click)=\"openAll(change)\">{{ resources.formatOpenAll(change.rows.length) }}</button>\n <button nol-button type=\"button\" class=\"push-all\" [variant]=\"secondary\" [size]=\"compact\" [disabled]=\"!canPush(change) || isWriting()\" (click)=\"confirmPush(change)\">{{\n resources.pushAllLabel }}</button>\n </div>\n </section>\n}\n@if (hasNeeds()) {\n <section class=\"section needs\" [attr.aria-label]=\"resources.needsYouHeading\">\n <div class=\"caps\">{{ resources.needsYouHeading }}</div>\n @for (run of waiting(); track run.row.key) {\n <div class=\"row waiting\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ waitingIcon }}</span>\n <span class=\"grow\">{{ resources.formatAgentWaiting(run.repository, run.row.name) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\" (click)=\"openRun(run)\"></button>\n </div>\n }\n @for (review of reviews().rows; track review.row.url) {\n @let words = around(resources.formatReviewRequest(review.row.label, review.repository, review.row.account), review.row.label);\n <div class=\"row review\" (click)=\"reviewOpened.emit(review)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.reviewIcon }}</span>\n <span class=\"grow\"><span>{{ words.before }}</span><nol-git-reference-text [text]=\"words.linked\" [title]=\"review.row.title\" [folder]=\"review.folder\" [link]=\"review.row.url\" /><span>{{ words.after }}</span></span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.reviewLabel\" [isShowingLabel]=\"true\"></button>\n </div>\n }\n @if (reviews().hasMore) {\n <p class=\"small muted more\">{{ resources.moreReviews }}</p>\n }\n @for (row of conflicted(); track row.folder) {\n <div class=\"row conflicted\">\n <span class=\"material-symbols-rounded warning\" aria-hidden=\"true\">{{ resources.conflictIcon }}</span>\n <span class=\"grow\">{{ resources.formatRepositoryConflicts(row.name, row.conflicts()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"repositoryOpened.emit(row.folder)\"></button>\n </div>\n }\n @for (row of failing(); track row.folder) {\n <div class=\"row failing\">\n <span class=\"material-symbols-rounded failed\" aria-hidden=\"true\">{{ resources.failureIcon }}</span>\n <span class=\"grow\">{{ resources.formatChecksFailing(row.name, row.branch(), row.failing()) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openFailing(row)\"></button>\n </div>\n }\n @for (stack of stacks(); track stack.row.folder + \" \" + stack.bottom.key) {\n <div class=\"row stacked\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.stackIcon }}</span>\n <span class=\"grow\">{{ stackText(stack) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.openLabel\" [isShowingLabel]=\"true\" (click)=\"openStack(stack)\"></button>\n </div>\n }\n @if (behind().length > 0) {\n <div class=\"row behind\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.behindIcon }}</span>\n <span class=\"grow\">{{ resources.formatBehindRepositories(behind().length) }}</span>\n <button nol-toolbar-button type=\"button\" [label]=\"resources.formatPullCount(behind().length)\" [isShowingLabel]=\"true\" [disabled]=\"isWriting()\"\n (click)=\"pullAsync()\"></button>\n </div>\n }\n </section>\n}\n@if (result().length > 0) {\n <div class=\"small result\" role=\"status\">\n @for (line of result(); track $index) {\n <p>{{ line }}</p>\n }\n </div>\n}\n@if (working().length > 0) {\n <section class=\"section working\" [attr.aria-label]=\"resources.agentsAtWorkHeading\">\n <div class=\"caps\">{{ resources.agentsAtWorkHeading }}</div>\n @for (run of working(); track run.row.key) {\n <button type=\"button\" class=\"row run\" [title]=\"run.row.worktree\" (click)=\"openRun(run)\">\n <span class=\"material-symbols-rounded agent\" aria-hidden=\"true\">{{ resources.agentIcon }}</span>\n <span class=\"grow\">{{ resources.formatRun(run.repository, run.row.name) }}</span>\n @if (run.hasOwnWorktree) {\n <span class=\"small muted\">{{ resources.ownWorktree }}</span>\n }\n </button>\n }\n </section>\n}\n@if (isQuiet()) {\n <p class=\"small muted quiet\">{{ resources.nothingNeedsYou }}</p>\n}\n<span class=\"fill\"></span>\n<p class=\"small muted note\">{{ fetchNote }}</p>\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 box-sizing: border-box;\n display: flex;\n flex: 1 1 auto;\n flex-direction: column;\n gap: 0.75rem;\n min-height: 0;\n padding: 0.75rem;\n overflow: auto;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.strong {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.small {\n font-size: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n\n.caps {\n margin-bottom: 0.25rem;\n color: var(--nol-text-muted);\n font-size: 0.75rem;\n text-transform: uppercase;\n letter-spacing: 0.02em;\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.card {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.375rem;\n padding: 0.75rem;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background: var(--nol-raised);\n}\n\n.card-title {\n display: flex;\n align-items: center;\n gap: 0.375rem;\n}\n\n.card-text,\n.more,\n.note,\n.quiet,\n.result p {\n margin: 0;\n line-height: var(--nol-line-message);\n}\n\n.card-actions {\n display: flex;\n gap: 0.5rem;\n}\n\n.section {\n display: flex;\n flex: none;\n flex-direction: column;\n gap: 0.125rem;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n margin-inline: -0.5rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row,\n.row.review {\n cursor: pointer;\n}\n\n.row > [nol-toolbar-button]:last-child {\n margin-inline-end: calc(-1 * var(--nol-pill-padding));\n}\n\n.row:hover {\n background: var(--nol-hover);\n}\n\n.warning {\n color: var(--nol-warning);\n}\n\n.failed {\n color: var(--nol-status-failed);\n}\n\n.agent {\n color: var(--nol-author-8);\n}\n\n.fill {\n flex: 1 1 auto;\n}\n"] }]
127
127
  }], propDecorators: { rows: [{ type: i0.Input, args: [{ isSignal: true, alias: "rows", required: true }] }], runs: [{ type: i0.Input, args: [{ isSignal: true, alias: "runs", required: true }] }], reviews: [{ type: i0.Input, args: [{ isSignal: true, alias: "reviews", required: false }] }], repositoryOpened: [{ type: i0.Output, args: ["repositoryOpened"] }], pullRequestOpened: [{ type: i0.Output, args: ["pullRequestOpened"] }], reviewOpened: [{ type: i0.Output, args: ["reviewOpened"] }], written: [{ type: i0.Output, args: ["written"] }] } });
@@ -22,10 +22,10 @@ export class GitWorkspaceAcrossViewComponent {
22
22
  ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
23
23
  instance = input.required(/* @ts-ignore */
24
24
  ...(ngDevMode ? [{ debugName: "instance" }] : /* istanbul ignore next */ []));
25
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceAcrossViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspaceAcrossViewComponent, isStandalone: true, selector: "nol-git-workspace-across-view", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (across of shown(); track across.instance) {\n <nol-git-workspace-across class=\"across\" [attr.aria-label]=\"resources.acrossHeading\" [rows]=\"across.rows\" [runs]=\"across.runs\" [reviews]=\"across.reviews\"\n (repositoryOpened)=\"across.page.open($event)\" (pullRequestOpened)=\"across.page.openPullRequest($event.row, $event.pullRequest)\"\n (reviewOpened)=\"across.page.openReview($event)\" (written)=\"across.page.readWritten($event)\" />\n} @empty {\n <p class=\"muted empty-view\">{{ resources.workspaceAcrossEmpty }}</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 display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: hidden;\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.empty-view {\n margin: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitWorkspaceAcrossComponent, selector: "nol-git-workspace-across", inputs: ["rows", "runs", "reviews"], outputs: ["repositoryOpened", "pullRequestOpened", "reviewOpened", "written"] }] });
25
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceAcrossViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
26
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitWorkspaceAcrossViewComponent, isStandalone: true, selector: "nol-git-workspace-across-view", inputs: { instance: { classPropertyName: "instance", publicName: "instance", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (across of shown(); track across.instance) {\n <nol-git-workspace-across class=\"across\" [attr.aria-label]=\"resources.acrossHeading\" [rows]=\"across.rows\" [runs]=\"across.runs\" [reviews]=\"across.reviews\"\n (repositoryOpened)=\"across.page.open($event)\" (pullRequestOpened)=\"across.page.openPullRequest($event.row, $event.pullRequest)\"\n (reviewOpened)=\"across.page.openReview($event)\" (written)=\"across.page.readWritten($event)\" />\n} @empty {\n <p class=\"muted empty-view\">{{ resources.workspaceAcrossEmpty }}</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 display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: hidden;\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.empty-view {\n margin: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: GitWorkspaceAcrossComponent, selector: "nol-git-workspace-across", inputs: ["rows", "runs", "reviews"], outputs: ["repositoryOpened", "pullRequestOpened", "reviewOpened", "written"] }] });
27
27
  }
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspaceAcrossViewComponent, decorators: [{
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspaceAcrossViewComponent, decorators: [{
29
29
  type: Component,
30
30
  args: [{ selector: "nol-git-workspace-across-view", imports: [GitWorkspaceAcrossComponent], 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@for (across of shown(); track across.instance) {\n <nol-git-workspace-across class=\"across\" [attr.aria-label]=\"resources.acrossHeading\" [rows]=\"across.rows\" [runs]=\"across.runs\" [reviews]=\"across.reviews\"\n (repositoryOpened)=\"across.page.open($event)\" (pullRequestOpened)=\"across.page.openPullRequest($event.row, $event.pullRequest)\"\n (reviewOpened)=\"across.page.openReview($event)\" (written)=\"across.page.readWritten($event)\" />\n} @empty {\n <p class=\"muted empty-view\">{{ resources.workspaceAcrossEmpty }}</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 display: flex;\n flex-direction: column;\n box-sizing: border-box;\n height: 100%;\n min-width: 0;\n overflow: hidden;\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.empty-view {\n margin: 0.75rem;\n}\n\n.muted {\n color: var(--nol-text-muted);\n}\n"] }]
31
31
  }], propDecorators: { instance: [{ type: i0.Input, args: [{ isSignal: true, alias: "instance", required: true }] }] } });
@@ -45,10 +45,10 @@ export class GitWorkspacesComponent {
45
45
  void this.context.runCommandAsync(Resources.openSettingsCommand, { [Resources.settingsPageArgument]: host.signInPage })
46
46
  .catch((error) => this.errors.handleError(error));
47
47
  }
48
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspacesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
49
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.0", type: GitWorkspacesComponent, isStandalone: true, selector: "nol-git-workspaces", 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<nav class=\"panel side\" [attr.aria-label]=\"resources.workspacesHeading\">\n @let page = chosenPage();\n <button type=\"button\" class=\"row open-repositories\" [class.selected]=\"page === null\" [attr.aria-current]=\"page === null ? 'page' : null\"\n (click)=\"openWorkspace(null)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dashboardIcon }}</span>\n <span class=\"grow\">{{ resources.dashboardTitle }}</span>\n <span class=\"count\">{{ recentCount() }}</span>\n </button>\n <nol-section-header [label]=\"resources.workspacesHeading\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <button nolSectionHeaderAction nol-icon-button type=\"button\" class=\"new\" [icon]=\"resources.addIcon\" [label]=\"resources.newWorkspaceTitle\" (click)=\"newWorkspace()\"></button>\n </nol-section-header>\n @for (item of workspaces(); track item.id) {\n @let isChosen = item.id === page;\n <button type=\"button\" class=\"row workspace\" [class.selected]=\"isChosen\" [attr.aria-current]=\"isChosen ? 'page' : null\" (click)=\"openWorkspace(item.id)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceIcon }}</span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"count\">{{ item.folders.length }}</span>\n </button>\n }\n @if (side(); as front) {\n <nol-section-header [label]=\"resources.workspaceViewsHeading\" [uppercase]=\"true\" />\n @for (item of front.views(); track item.view) {\n @let isShown = front.view() === item.view;\n <button type=\"button\" class=\"row view\" [class.selected]=\"isShown\" [attr.aria-current]=\"isShown ? 'page' : null\" (click)=\"chooseView(front, item.view)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceViews[item.view].icon }}</span>\n <span class=\"grow\">{{ resources.workspaceViews[item.view].name }}</span>\n @if (item.count > 0) {\n <span class=\"badge\">{{ item.count }}</span>\n }\n </button>\n }\n @if (front.hosts().length > 0) {\n <nol-section-header [label]=\"resources.workspaceHostsHeading\" [uppercase]=\"true\" />\n @for (item of front.hosts(); track item.key) {\n @if (item.host; as host) {\n <button type=\"button\" class=\"row host\" [title]=\"resources.formatHostSettings(item.name)\" (click)=\"openHost(host)\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </button>\n }\n @else {\n <div class=\"row host\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </div>\n }\n }\n }\n }\n</nav>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.panel {\n --nol-section-header-space-above: 0.5rem;\n\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background: var(--nol-hover);\n}\n\n.row.selected,\n.row.selected:hover {\n background: var(--nol-selected);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.count,\n.muted {\n color: var(--nol-text-muted);\n}\n\n.count,\n.small {\n font-size: 0.75rem;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending,\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.badge {\n box-sizing: border-box;\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }] });
48
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspacesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
49
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.3.2", type: GitWorkspacesComponent, isStandalone: true, selector: "nol-git-workspaces", 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<nav class=\"panel side\" [attr.aria-label]=\"resources.workspacesHeading\">\n @let page = chosenPage();\n <button type=\"button\" class=\"row open-repositories\" [class.selected]=\"page === null\" [attr.aria-current]=\"page === null ? 'page' : null\"\n (click)=\"openWorkspace(null)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dashboardIcon }}</span>\n <span class=\"grow\">{{ resources.dashboardTitle }}</span>\n <span class=\"count\">{{ recentCount() }}</span>\n </button>\n <nol-section-header [label]=\"resources.workspacesHeading\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <button nolSectionHeaderAction nol-icon-button type=\"button\" class=\"new\" [icon]=\"resources.addIcon\" [label]=\"resources.newWorkspaceTitle\" (click)=\"newWorkspace()\"></button>\n </nol-section-header>\n @for (item of workspaces(); track item.id) {\n @let isChosen = item.id === page;\n <button type=\"button\" class=\"row workspace\" [class.selected]=\"isChosen\" [attr.aria-current]=\"isChosen ? 'page' : null\" (click)=\"openWorkspace(item.id)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceIcon }}</span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"count\">{{ item.folders.length }}</span>\n </button>\n }\n @if (side(); as front) {\n <nol-section-header [label]=\"resources.workspaceViewsHeading\" [uppercase]=\"true\" />\n @for (item of front.views(); track item.view) {\n @let isShown = front.view() === item.view;\n <button type=\"button\" class=\"row view\" [class.selected]=\"isShown\" [attr.aria-current]=\"isShown ? 'page' : null\" (click)=\"chooseView(front, item.view)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceViews[item.view].icon }}</span>\n <span class=\"grow\">{{ resources.workspaceViews[item.view].name }}</span>\n @if (item.count > 0) {\n <span class=\"badge\">{{ item.count }}</span>\n }\n </button>\n }\n @if (front.hosts().length > 0) {\n <nol-section-header [label]=\"resources.workspaceHostsHeading\" [uppercase]=\"true\" />\n @for (item of front.hosts(); track item.key) {\n @if (item.host; as host) {\n <button type=\"button\" class=\"row host\" [title]=\"resources.formatHostSettings(item.name)\" (click)=\"openHost(host)\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </button>\n }\n @else {\n <div class=\"row host\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </div>\n }\n }\n }\n }\n</nav>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.panel {\n --nol-section-header-space-above: 0.5rem;\n\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background: var(--nol-hover);\n}\n\n.row.selected,\n.row.selected:hover {\n background: var(--nol-selected);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.count,\n.muted {\n color: var(--nol-text-muted);\n}\n\n.count,\n.small {\n font-size: 0.75rem;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending,\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.badge {\n box-sizing: border-box;\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n"], dependencies: [{ kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: SectionHeaderActionDirective, selector: "[nolSectionHeaderAction]" }, { kind: "component", type: SectionHeaderComponent, selector: "nol-section-header", inputs: ["label", "level", "icon", "collapsible", "uppercase", "quiet", "controls", "actionsShown", "caretPosition", "expanded"], outputs: ["expandedChange"] }] });
50
50
  }
51
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitWorkspacesComponent, decorators: [{
51
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitWorkspacesComponent, decorators: [{
52
52
  type: Component,
53
53
  args: [{ selector: "nol-git-workspaces", imports: [IconButtonComponent, SectionHeaderActionDirective, SectionHeaderComponent], 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<nav class=\"panel side\" [attr.aria-label]=\"resources.workspacesHeading\">\n @let page = chosenPage();\n <button type=\"button\" class=\"row open-repositories\" [class.selected]=\"page === null\" [attr.aria-current]=\"page === null ? 'page' : null\"\n (click)=\"openWorkspace(null)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.dashboardIcon }}</span>\n <span class=\"grow\">{{ resources.dashboardTitle }}</span>\n <span class=\"count\">{{ recentCount() }}</span>\n </button>\n <nol-section-header [label]=\"resources.workspacesHeading\" [uppercase]=\"true\" [actionsShown]=\"true\">\n <button nolSectionHeaderAction nol-icon-button type=\"button\" class=\"new\" [icon]=\"resources.addIcon\" [label]=\"resources.newWorkspaceTitle\" (click)=\"newWorkspace()\"></button>\n </nol-section-header>\n @for (item of workspaces(); track item.id) {\n @let isChosen = item.id === page;\n <button type=\"button\" class=\"row workspace\" [class.selected]=\"isChosen\" [attr.aria-current]=\"isChosen ? 'page' : null\" (click)=\"openWorkspace(item.id)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceIcon }}</span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"count\">{{ item.folders.length }}</span>\n </button>\n }\n @if (side(); as front) {\n <nol-section-header [label]=\"resources.workspaceViewsHeading\" [uppercase]=\"true\" />\n @for (item of front.views(); track item.view) {\n @let isShown = front.view() === item.view;\n <button type=\"button\" class=\"row view\" [class.selected]=\"isShown\" [attr.aria-current]=\"isShown ? 'page' : null\" (click)=\"chooseView(front, item.view)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.workspaceViews[item.view].icon }}</span>\n <span class=\"grow\">{{ resources.workspaceViews[item.view].name }}</span>\n @if (item.count > 0) {\n <span class=\"badge\">{{ item.count }}</span>\n }\n </button>\n }\n @if (front.hosts().length > 0) {\n <nol-section-header [label]=\"resources.workspaceHostsHeading\" [uppercase]=\"true\" />\n @for (item of front.hosts(); track item.key) {\n @if (item.host; as host) {\n <button type=\"button\" class=\"row host\" [title]=\"resources.formatHostSettings(item.name)\" (click)=\"openHost(host)\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </button>\n }\n @else {\n <div class=\"row host\">\n <span [class]=\"'dot ' + item.tone\" aria-hidden=\"true\"></span>\n <span class=\"grow\">{{ item.name }}</span>\n <span class=\"small muted\">{{ item.detail }}</span>\n </div>\n }\n }\n }\n }\n</nav>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n box-sizing: border-box;\n height: 100%;\n overflow: auto;\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.panel {\n --nol-section-header-space-above: 0.5rem;\n\n display: flex;\n flex-direction: column;\n gap: 0.125rem;\n padding: 0.5rem 0.25rem;\n}\n\n.material-symbols-rounded {\n flex: none;\n width: var(--nol-icon);\n height: var(--nol-icon);\n overflow: hidden;\n color: var(--nol-icon-color);\n font-size: var(--nol-icon);\n line-height: 1;\n}\n\n.row {\n box-sizing: border-box;\n display: flex;\n flex: none;\n align-items: center;\n gap: 0.375rem;\n min-width: 0;\n height: 1.625rem;\n padding: 0 0.5rem;\n border: 0;\n border-radius: var(--nol-radius-medium);\n background: transparent;\n color: inherit;\n font: inherit;\n text-align: start;\n white-space: nowrap;\n}\n\nbutton.row {\n cursor: pointer;\n}\n\nbutton.row:hover {\n background: var(--nol-hover);\n}\n\n.row.selected,\n.row.selected:hover {\n background: var(--nol-selected);\n}\n\n.grow {\n flex: 1 1 auto;\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.count,\n.muted {\n color: var(--nol-text-muted);\n}\n\n.count,\n.small {\n font-size: 0.75rem;\n}\n\n.dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n background-color: var(--nol-text-muted);\n}\n\n.dot.ok {\n background-color: var(--nol-status-ok);\n}\n\n.dot.failed {\n background-color: var(--nol-status-failed);\n}\n\n.dot.pending,\n.dot.signed-out {\n background-color: var(--nol-warning);\n}\n\n.badge {\n box-sizing: border-box;\n min-width: 1rem;\n height: 1rem;\n padding: 0 0.25rem;\n border-radius: 0.5rem;\n background: var(--nol-badge);\n color: var(--nol-badge-text);\n font-size: 0.6875rem;\n line-height: 1rem;\n text-align: center;\n}\n"] }]
54
54
  }] });
@@ -46,10 +46,10 @@ export class GitCodeColors {
46
46
  done(language, tokenizer) {
47
47
  this.loaded.update(t => new Map([...t, [language, tokenizer]]));
48
48
  }
49
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCodeColors, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
50
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCodeColors, providedIn: "root" });
49
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCodeColors, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
50
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCodeColors, providedIn: "root" });
51
51
  }
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.0", ngImport: i0, type: GitCodeColors, decorators: [{
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.3.2", ngImport: i0, type: GitCodeColors, decorators: [{
53
53
  type: Injectable,
54
54
  args: [{ providedIn: "root" }]
55
55
  }], ctorParameters: () => [] });