@noldova/ui.components.angular 0.0.10 → 0.0.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (142) hide show
  1. package/README.md +7 -4
  2. package/api/index.d.ts +2 -0
  3. package/api/index.js +2 -0
  4. package/api/index.js.map +1 -1
  5. package/api/testing.d.ts +1 -0
  6. package/api/testing.js.map +1 -1
  7. package/app/components/avatar/avatar-initials-fitter.d.ts +4 -0
  8. package/app/components/avatar/avatar-initials-fitter.js +35 -4
  9. package/app/components/avatar/avatar-initials-fitter.js.map +1 -1
  10. package/app/components/avatar/avatar.component.d.ts +9 -5
  11. package/app/components/avatar/avatar.component.js +2 -2
  12. package/app/components/avatar/avatar.resources.d.ts +2 -0
  13. package/app/components/avatar/avatar.resources.js +3 -1
  14. package/app/components/avatar/avatar.resources.js.map +1 -1
  15. package/app/components/configuration-table/configuration-table.component.d.ts +8 -1
  16. package/app/components/configuration-table/configuration-table.component.js +10 -4
  17. package/app/components/configuration-table/configuration-table.component.js.map +1 -1
  18. package/app/components/diff-view/diff-view.component.d.ts +1 -0
  19. package/app/components/diff-view/diff-view.component.js +10 -3
  20. package/app/components/diff-view/diff-view.component.js.map +1 -1
  21. package/app/components/gallery/gallery-configuration-table.component.d.ts +3 -0
  22. package/app/components/gallery/gallery-configuration-table.component.js +5 -2
  23. package/app/components/gallery/gallery-configuration-table.component.js.map +1 -1
  24. package/app/components/gallery/gallery-content.component.d.ts +0 -30
  25. package/app/components/gallery/gallery-content.component.js +10 -79
  26. package/app/components/gallery/gallery-content.component.js.map +1 -1
  27. package/app/components/gallery/gallery-diff-view.component.d.ts +23 -0
  28. package/app/components/gallery/gallery-diff-view.component.js +74 -0
  29. package/app/components/gallery/gallery-diff-view.component.js.map +1 -0
  30. package/app/components/gallery/gallery-feed.component.d.ts +0 -25
  31. package/app/components/gallery/gallery-feed.component.js +6 -65
  32. package/app/components/gallery/gallery-feed.component.js.map +1 -1
  33. package/app/components/gallery/gallery-mention-field.component.d.ts +18 -0
  34. package/app/components/gallery/gallery-mention-field.component.js +45 -0
  35. package/app/components/gallery/gallery-mention-field.component.js.map +1 -0
  36. package/app/components/gallery/gallery-navigation.component.d.ts +0 -4
  37. package/app/components/gallery/gallery-navigation.component.js +4 -16
  38. package/app/components/gallery/gallery-navigation.component.js.map +1 -1
  39. package/app/components/gallery/gallery-overlays.component.d.ts +0 -13
  40. package/app/components/gallery/gallery-overlays.component.js +6 -32
  41. package/app/components/gallery/gallery-overlays.component.js.map +1 -1
  42. package/app/components/gallery/gallery-permission-card.component.d.ts +13 -0
  43. package/app/components/gallery/gallery-permission-card.component.js +31 -0
  44. package/app/components/gallery/gallery-permission-card.component.js.map +1 -0
  45. package/app/components/gallery/gallery-plan.component.d.ts +11 -0
  46. package/app/components/gallery/gallery-plan.component.js +28 -0
  47. package/app/components/gallery/gallery-plan.component.js.map +1 -0
  48. package/app/components/gallery/gallery-popover.component.d.ts +11 -0
  49. package/app/components/gallery/gallery-popover.component.js +30 -0
  50. package/app/components/gallery/gallery-popover.component.js.map +1 -0
  51. package/app/components/gallery/gallery-resources.d.ts +13 -0
  52. package/app/components/gallery/gallery-resources.js +5 -3
  53. package/app/components/gallery/gallery-resources.js.map +1 -1
  54. package/app/components/gallery/gallery-status-colors.component.d.ts +8 -0
  55. package/app/components/gallery/gallery-status-colors.component.js +23 -0
  56. package/app/components/gallery/gallery-status-colors.component.js.map +1 -0
  57. package/app/components/gallery/gallery-terminal-colors.component.d.ts +11 -0
  58. package/app/components/gallery/gallery-terminal-colors.component.js +26 -0
  59. package/app/components/gallery/gallery-terminal-colors.component.js.map +1 -0
  60. package/app/components/gallery/gallery-tool-call.component.d.ts +12 -0
  61. package/app/components/gallery/gallery-tool-call.component.js +31 -0
  62. package/app/components/gallery/gallery-tool-call.component.js.map +1 -0
  63. package/app/components/gallery/gallery-toolbar.component.d.ts +9 -0
  64. package/app/components/gallery/gallery-toolbar.component.js +30 -0
  65. package/app/components/gallery/gallery-toolbar.component.js.map +1 -0
  66. package/app/components/gallery/gallery-virtual-feed.component.d.ts +38 -0
  67. package/app/components/gallery/gallery-virtual-feed.component.js +91 -0
  68. package/app/components/gallery/gallery-virtual-feed.component.js.map +1 -0
  69. package/app/components/tool-call/tool-call.component.d.ts +2 -0
  70. package/app/components/tool-call/tool-call.component.js +15 -4
  71. package/app/components/tool-call/tool-call.component.js.map +1 -1
  72. package/app/components/virtual-list/virtual-list.component.d.ts +3 -1
  73. package/app/components/virtual-list/virtual-list.component.js +21 -4
  74. package/app/components/virtual-list/virtual-list.component.js.map +1 -1
  75. package/app/components/virtual-list/virtual-list.resources.d.ts +1 -1
  76. package/app/components/virtual-list/virtual-list.resources.js +2 -1
  77. package/app/components/virtual-list/virtual-list.resources.js.map +1 -1
  78. package/app/enums/avatar-size.d.ts +3 -3
  79. package/app/enums/configuration-table-density.d.ts +32 -0
  80. package/app/enums/configuration-table-density.js +13 -0
  81. package/app/enums/configuration-table-density.js.map +1 -0
  82. package/app/exceptions/code-highlighting.exception.d.ts +3 -2
  83. package/app/exceptions/code-highlighting.exception.js +2 -2
  84. package/app/exceptions/code-highlighting.exception.js.map +1 -1
  85. package/app/exceptions/diff.exception.d.ts +2 -2
  86. package/app/exceptions/diff.exception.js +2 -2
  87. package/app/exceptions/diff.exception.js.map +1 -1
  88. package/app/exceptions/link-reference.exception.d.ts +2 -2
  89. package/app/exceptions/link-reference.exception.js +2 -2
  90. package/app/exceptions/link-reference.exception.js.map +1 -1
  91. package/app/exceptions/markdown.exception.d.ts +2 -2
  92. package/app/exceptions/markdown.exception.js +2 -2
  93. package/app/exceptions/markdown.exception.js.map +1 -1
  94. package/app/exceptions/theme.exception.d.ts +2 -2
  95. package/app/exceptions/theme.exception.js +2 -2
  96. package/app/exceptions/theme.exception.js.map +1 -1
  97. package/app/exceptions/tree-move.exception.d.ts +2 -2
  98. package/app/exceptions/tree-move.exception.js +2 -2
  99. package/app/exceptions/tree-move.exception.js.map +1 -1
  100. package/app/exceptions/ui-components.exception.d.ts +48 -0
  101. package/app/exceptions/ui-components.exception.js +15 -0
  102. package/app/exceptions/ui-components.exception.js.map +1 -0
  103. package/app/exceptions/virtual-list.exception.d.ts +2 -2
  104. package/app/exceptions/virtual-list.exception.js +2 -2
  105. package/app/exceptions/virtual-list.exception.js.map +1 -1
  106. package/app/models/code-tokenizer.d.ts +1 -0
  107. package/app/models/code-tokenizer.js +2 -1
  108. package/app/models/code-tokenizer.js.map +1 -1
  109. package/app/models/default-theme.js +10 -0
  110. package/app/models/default-theme.js.map +1 -1
  111. package/app/models/markdown-link.js +3 -1
  112. package/app/models/markdown-link.js.map +1 -1
  113. package/app/models/mention-value.js +3 -1
  114. package/app/models/mention-value.js.map +1 -1
  115. package/app/models/row-answer.d.ts +16 -0
  116. package/app/models/row-answer.js +28 -0
  117. package/app/models/row-answer.js.map +1 -0
  118. package/app/services/dialog.service.d.ts +1 -0
  119. package/app/services/dialog.service.js +4 -2
  120. package/app/services/dialog.service.js.map +1 -1
  121. package/app/services/markdown-math.renderer.js +3 -1
  122. package/app/services/markdown-math.renderer.js.map +1 -1
  123. package/package.json +5 -4
  124. package/resources.d.ts +2 -0
  125. package/resources.js +12 -0
  126. package/resources.js.map +1 -1
  127. package/styles/base.css +2 -0
  128. package/styles/theme.css +10 -0
  129. package/testing/interfaces/i-pointer-hover-options.d.ts +18 -0
  130. package/testing/interfaces/i-pointer-hover-options.js +8 -0
  131. package/testing/interfaces/i-pointer-hover-options.js.map +1 -0
  132. package/testing/models/fixture-theme.js +10 -0
  133. package/testing/models/fixture-theme.js.map +1 -1
  134. package/testing/services/appearance-fixture.d.ts +6 -2
  135. package/testing/services/appearance-fixture.js +39 -3
  136. package/testing/services/appearance-fixture.js.map +1 -1
  137. package/testing/services/kit-stylesheet-fixture.d.ts +2 -0
  138. package/testing/services/kit-stylesheet-fixture.js +7 -1
  139. package/testing/services/kit-stylesheet-fixture.js.map +1 -1
  140. package/testing/services/pointer-fixture.d.ts +4 -1
  141. package/testing/services/pointer-fixture.js +2 -2
  142. package/testing/services/pointer-fixture.js.map +1 -1
@@ -6,97 +6,28 @@
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
8
  import { Component } from "@angular/core";
9
- import { DiffFileStatus } from "../../enums/diff-file-status.js";
10
- import { DiffLayout } from "../../enums/diff-layout.js";
11
- import { DiffReviewState } from "../../enums/diff-review-state.js";
12
- import { GallerySize } from "../../enums/gallery-size.js";
13
- import { DiffAddedLine } from "../../models/diff-added-line.js";
14
- import { DiffBinary } from "../../models/diff-binary.js";
15
- import { DiffCollapseLimit } from "../../models/diff-collapse-limit.js";
16
- import { DiffContextLine } from "../../models/diff-context-line.js";
17
- import { DiffFile } from "../../models/diff-file.js";
18
- import { DiffFileReview } from "../../models/diff-file-review.js";
19
- import { DiffHunk } from "../../models/diff-hunk.js";
20
- import { DiffHunks } from "../../models/diff-hunks.js";
21
- import { DiffPending } from "../../models/diff-pending.js";
22
- import { DiffReadFailure } from "../../models/diff-read-failure.js";
23
- import { DiffRemovedLine } from "../../models/diff-removed-line.js";
24
- import { CodeBlockComponent } from "../code-block/code-block.component.js";
25
- import { DiffViewComponent } from "../diff-view/diff-view.component.js";
26
- import { MarkdownViewComponent } from "../markdown-view/markdown-view.component.js";
27
- import { PermissionCardComponent } from "../permission-card/permission-card.component.js";
28
- import { PlanComponent } from "../plan/plan.component.js";
29
- import { ToolCallOutputDirective } from "../tool-call/tool-call-output.directive.js";
30
- import { ToolCallComponent } from "../tool-call/tool-call.component.js";
31
9
  import { GalleryAvatarComponent } from "./gallery-avatar.component.js";
32
10
  import { GalleryCardComponent } from "./gallery-card.component.js";
33
- import { GalleryCellComponent } from "./gallery-cell.component.js";
34
11
  import { GalleryCodeBlockComponent } from "./gallery-code-block.component.js";
12
+ import { GalleryDiffViewComponent } from "./gallery-diff-view.component.js";
35
13
  import { GalleryFileBadgeComponent } from "./gallery-file-badge.component.js";
36
14
  import { GalleryInlineCodeComponent } from "./gallery-inline-code.component.js";
37
15
  import { GalleryMarkdownViewComponent } from "./gallery-markdown-view.component.js";
38
- import { GalleryPermissionCards } from "./gallery-permission-cards.js";
39
- import { GalleryPlans } from "./gallery-plans.js";
40
- import { GalleryPressDirective } from "./gallery-press.directive.js";
41
- import { GalleryResources } from "./gallery-resources.js";
42
- import { GallerySpecimenComponent } from "./gallery-specimen.component.js";
43
- import { GalleryStateDirective } from "./gallery-state.directive.js";
16
+ import { GalleryPermissionCardComponent } from "./gallery-permission-card.component.js";
17
+ import { GalleryPlanComponent } from "./gallery-plan.component.js";
18
+ import { GalleryStatusColorsComponent } from "./gallery-status-colors.component.js";
19
+ import { GalleryTerminalColorsComponent } from "./gallery-terminal-colors.component.js";
44
20
  import { GalleryTerminalOutputComponent } from "./gallery-terminal-output.component.js";
45
- import { GalleryToolCalls } from "./gallery-tool-calls.js";
21
+ import { GalleryToolCallComponent } from "./gallery-tool-call.component.js";
46
22
  import * as i0 from "@angular/core";
47
23
  export class GalleryContentComponent {
48
- static text = GalleryResources.text;
49
- static service = new DiffFile("notes", GalleryContentComponent.text.diffPath, null, DiffFileStatus.Modified, 2, 1, GalleryContentComponent.text.diffLanguage, new DiffHunks([new DiffHunk("h1", 12, 3, 12, 4, [
50
- new DiffContextLine(12, 12, GalleryContentComponent.text.diffContext),
51
- new DiffRemovedLine(13, GalleryContentComponent.text.diffRemoved),
52
- new DiffAddedLine(13, GalleryContentComponent.text.diffAdded),
53
- new DiffAddedLine(14, GalleryContentComponent.text.diffAddedNext),
54
- new DiffContextLine(14, 15, GalleryContentComponent.text.diffClosing)
55
- ], GalleryContentComponent.text.diffSection)]));
56
- text = GalleryResources.text;
57
- sizes = GallerySize;
58
- calls = new GalleryToolCalls(new Date());
59
- toggle = GalleryResources.toolCallToggle;
60
- terminalColors = GalleryResources.terminalColors;
61
- terminalSurfaces = [["window", this.text.terminalWindowCaption], ["panel", this.text.terminalPanelCaption]];
62
- statusSurfaces = [["window", this.text.statusWindowCaption], ["panel", this.text.statusPanelCaption]];
63
- plans = new GalleryPlans();
64
- permissions = new GalleryPermissionCards(new Date());
65
- option = GalleryResources.permissionOption;
66
- alwaysAllow = GalleryResources.permissionAlwaysAllow;
67
- sideBySide = DiffLayout.SideBySide;
68
- diffFiles = [
69
- GalleryContentComponent.service,
70
- new DiffFile("store", this.text.diffNewPath, this.text.diffOldPath, DiffFileStatus.Renamed, 0, 0, this.text.diffLanguage, new DiffHunks([])),
71
- new DiffFile("icon", this.text.diffImagePath, null, DiffFileStatus.Added, 0, 0, null, new DiffBinary())
72
- ];
73
- diffStates = [
74
- GalleryContentComponent.service,
75
- new DiffFile("reminders", this.text.diffLazyPath, null, DiffFileStatus.Modified, 4, 2, this.text.diffLanguage, new DiffPending()),
76
- new DiffFile("archive", this.text.diffFailedPath, null, DiffFileStatus.Deleted, 0, 12, this.text.diffLanguage, new DiffReadFailure(this.text.diffFailure))
77
- ];
78
- diffLong = [
79
- new DiffFile("long", this.text.diffLongPath, null, DiffFileStatus.Added, 1, 0, this.text.diffLanguage, new DiffHunks([new DiffHunk("h1", 0, 0, 1, 1, [new DiffAddedLine(1, this.text.diffLongLine)])]))
80
- ];
81
- diffReviews = new Map([
82
- ["notes", new DiffFileReview(new Map([["h1", DiffReviewState.Accepted]]))],
83
- ["store", new DiffFileReview(new Map(), DiffReviewState.Rejected)]
84
- ]);
85
- diffHeldLimit = new DiffCollapseLimit(1, 1000);
86
- diffPartial = [
87
- new DiffFile("notes", this.text.diffPath, null, DiffFileStatus.Modified, 3, 2, this.text.diffLanguage, new DiffHunks([...GalleryContentComponent.service.content.hunks, new DiffHunk("h2", 30, 1, 31, 1, [
88
- new DiffRemovedLine(30, this.text.diffRemovedLater),
89
- new DiffAddedLine(31, this.text.diffAddedLater)
90
- ], this.text.diffSection)]))
91
- ];
92
- diffCollapsed = new Set(["notes"]);
93
24
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryContentComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
94
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: GalleryContentComponent, isStandalone: true, selector: "nol-gallery-content", 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-gallery-avatar />\n\n<nol-gallery-card />\n\n<nol-gallery-code-block />\n\n<nol-gallery-specimen [name]=\"text.diffView\" [size]=\"sizes.Full\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffSideBySideCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [layout]=\"sideBySide\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffPartlyReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffPartial\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffCollapsedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [collapsed]=\"diffCollapsed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReadOnlyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" [readOnly]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffNoOpeningCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [readOnly]=\"true\" [canOpenFiles]=\"false\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffStatesCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffStates\" [collapseLimit]=\"diffHeldLimit\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffEmptyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"[]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-diff-view nolGalleryFocus=\".nol-diff-cell-changed\" [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" />\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.diffWrappedCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" [wrapped]=\"true\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-file-badge />\n\n<nol-gallery-inline-code />\n\n<nol-gallery-markdown-view />\n\n<nol-gallery-specimen [name]=\"text.terminal\" [size]=\"sizes.Full\" noHover noFocus noLongText>\n @for (surface of terminalSurfaces; track surface[0]) {\n <nol-gallery-cell [caption]=\"surface[1]\">\n <div class=\"nol-gallery-terminal\" [style.background]=\"'var(--nol-' + surface[0] + ')'\">\n @for (color of terminalColors; track color) {\n <span class=\"nol-gallery-terminal-color\"><span class=\"nol-gallery-terminal-swatch\" [style.background]=\"'var(--nol-terminal-ansi-' + color + ')'\"></span>{{ color }}</span>\n }\n </div>\n </nol-gallery-cell>\n }\n <nol-gallery-cell [caption]=\"text.terminalTextCaption\">\n <div class=\"nol-gallery-terminal\">\n <span>{{ text.terminalText }}<span class=\"nol-gallery-terminal-cursor\">{{ text.terminalCursor }}</span><span class=\"nol-gallery-terminal-selection\">{{ text.terminalSelected }}</span></span>\n </div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-terminal-output />\n\n<nol-gallery-specimen [name]=\"text.statusColors\" noHover noFocus noLongText>\n @for (surface of statusSurfaces; track surface[0]) {\n <nol-gallery-cell [caption]=\"surface[1]\">\n <div class=\"nol-gallery-status\" [style.background]=\"'var(--nol-' + surface[0] + ')'\">\n @for (status of text.statuses; track status.token) {\n <span class=\"nol-gallery-status-row\"><span class=\"nol-gallery-status-dot\" [style.background]=\"'var(--nol-' + status.token + ')'\"></span>{{ status.label }}</span>\n }\n </div>\n </nol-gallery-cell>\n }\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.toolCall\" [size]=\"sizes.Full\">\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-tool-call [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallRunningCaption\"><nol-tool-call [call]=\"calls.running\" [views]=\"calls.runningViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallQueuedCaption\"><nol-tool-call [call]=\"calls.queued\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallPermissionCaption\"><nol-tool-call [call]=\"calls.awaiting\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallAnswerCaption\"><nol-tool-call [call]=\"calls.answering\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNoteCaption\"><nol-tool-call [call]=\"calls.noted\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNoteBareCaption\"><nol-tool-call [call]=\"calls.notedBare\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallCancelledCaption\"><nol-tool-call [call]=\"calls.cancelled\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallDeniedCaption\"><nol-tool-call [call]=\"calls.denied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNothingCaption\"><nol-tool-call [call]=\"calls.nothing\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNestedCaption\"><nol-tool-call [call]=\"calls.nested\" [views]=\"calls.nestedViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNestedClosedCaption\"><nol-tool-call [call]=\"calls.nestedClosed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLongOutputCaption\"><nol-tool-call [call]=\"calls.longOutput\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallAllLinesCaption\"><nol-tool-call [call]=\"calls.allLines\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallControlCaption\">\n <nol-tool-call [call]=\"calls.control\" [views]=\"calls.openViews\">\n <ng-template nolToolCallOutput let-call><nol-code-block [language]=\"text.toolCallDiff\" [code]=\"call.output ?? text.toolCallNoDiff\" /></ng-template>\n </nol-tool-call>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLoadingCaption\"><nol-tool-call [call]=\"calls.loading\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><nol-tool-call [nolGalleryHover]=\"toggle\" [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-tool-call [nolGalleryFocus]=\"toggle\" [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallFailedCaption\"><nol-tool-call [call]=\"calls.failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLoadFailedCaption\"><nol-tool-call [call]=\"calls.loadFailed\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-tool-call class=\"nol-gallery-narrow\" [call]=\"calls.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.planSection\" [size]=\"sizes.Full\" noHover noFocus>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-plan [plan]=\"plans.working\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planTypedCaption\"><nol-markdown-view [text]=\"text.planTyped\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planDoneCaption\"><nol-plan [plan]=\"plans.done\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planNotStartedCaption\"><nol-plan [plan]=\"plans.notStarted\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-plan class=\"nol-gallery-narrow\" [plan]=\"plans.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.permissionCard\" [size]=\"sizes.Full\">\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-permission-card [request]=\"permissions.pending\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionMediumCaption\"><nol-permission-card [request]=\"permissions.medium\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionHighCaption\"><nol-permission-card [request]=\"permissions.high\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionConfirmCaption\"><nol-permission-card [nolGalleryPress]=\"alwaysAllow\" [request]=\"permissions.confirming\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAppOptionsCaption\"><nol-permission-card [request]=\"permissions.appOptions\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionSendingCaption\"><nol-permission-card [request]=\"permissions.sending\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionSendFailedCaption\"><nol-permission-card [request]=\"permissions.sendFailed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAllowedOnceCaption\"><nol-permission-card [request]=\"permissions.allowedOnce\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAlwaysAllowedCaption\"><nol-permission-card [request]=\"permissions.alwaysAllowed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionDeniedCaption\"><nol-permission-card [request]=\"permissions.denied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAlwaysDeniedCaption\"><nol-permission-card [request]=\"permissions.alwaysDenied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionUnscopedCaption\"><nol-permission-card [request]=\"permissions.unscoped\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionExpiredCaption\"><nol-permission-card [request]=\"permissions.expired\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionWithdrawnCaption\"><nol-permission-card [request]=\"permissions.withdrawn\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionLongDetailsCaption\"><nol-permission-card [request]=\"permissions.longDetails\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionExpandedCaption\"><nol-permission-card [request]=\"permissions.expanded\" [detailsExpanded]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><nol-permission-card [nolGalleryHover]=\"option\" [request]=\"permissions.hover\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-permission-card [nolGalleryFocus]=\"option\" [request]=\"permissions.focus\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-permission-card class=\"nol-gallery-narrow\" [request]=\"permissions.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"], dependencies: [{ kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { kind: "component", type: DiffViewComponent, selector: "nol-diff-view", inputs: ["files", "label", "layout", "wrapped", "readOnly", "canOpenFiles", "reviews", "collapsed", "revealed", "collapseLimit", "hasShortcuts"], outputs: ["layoutChange", "wrappedChange", "collapsedChange", "revealedChange", "reviewRequested", "fileOpenRequested", "contextRequested", "fileExpanded", "lineCommentRequested"] }, { kind: "component", type: GalleryAvatarComponent, selector: "nol-gallery-avatar" }, { kind: "component", type: GalleryCardComponent, selector: "nol-gallery-card" }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GalleryCodeBlockComponent, selector: "nol-gallery-code-block" }, { kind: "component", type: GalleryFileBadgeComponent, selector: "nol-gallery-file-badge" }, { kind: "component", type: GalleryInlineCodeComponent, selector: "nol-gallery-inline-code" }, { kind: "component", type: GalleryMarkdownViewComponent, selector: "nol-gallery-markdown-view" }, { kind: "directive", type: GalleryPressDirective, selector: "[nolGalleryPress]", inputs: ["nolGalleryPress"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { kind: "component", type: GalleryTerminalOutputComponent, selector: "nol-gallery-terminal-output" }, { kind: "component", type: MarkdownViewComponent, selector: "nol-markdown-view", inputs: ["text", "streaming", "entering", "paced", "mentions", "mentionNames", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math", "shellRunStates", "shellRunOutputs"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun"] }, { kind: "component", type: PermissionCardComponent, selector: "nol-permission-card", inputs: ["request", "detailsExpanded", "detailLines"], outputs: ["detailsExpandedChange", "decide"] }, { kind: "component", type: PlanComponent, selector: "nol-plan", inputs: ["plan", "framed"] }, { kind: "component", type: ToolCallComponent, selector: "nol-tool-call", inputs: ["call", "views", "outputLines", "childrenStep", "titleTooltip", "cancelLabel", "shownTitles"], outputs: ["viewsChange", "cancel", "openTarget", "outputRequest"] }, { kind: "directive", type: ToolCallOutputDirective, selector: "ng-template[nolToolCallOutput]" }] });
25
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryContentComponent, isStandalone: true, selector: "nol-gallery-content", 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-gallery-avatar />\n\n<nol-gallery-card />\n\n<nol-gallery-code-block />\n\n<nol-gallery-diff-view />\n\n<nol-gallery-file-badge />\n\n<nol-gallery-inline-code />\n\n<nol-gallery-markdown-view />\n\n<nol-gallery-terminal-colors />\n\n<nol-gallery-terminal-output />\n\n<nol-gallery-status-colors />\n\n<nol-gallery-tool-call />\n\n<nol-gallery-plan />\n\n<nol-gallery-permission-card />\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"], dependencies: [{ kind: "component", type: GalleryAvatarComponent, selector: "nol-gallery-avatar" }, { kind: "component", type: GalleryCardComponent, selector: "nol-gallery-card" }, { kind: "component", type: GalleryCodeBlockComponent, selector: "nol-gallery-code-block" }, { kind: "component", type: GalleryDiffViewComponent, selector: "nol-gallery-diff-view" }, { kind: "component", type: GalleryFileBadgeComponent, selector: "nol-gallery-file-badge" }, { kind: "component", type: GalleryInlineCodeComponent, selector: "nol-gallery-inline-code" }, { kind: "component", type: GalleryMarkdownViewComponent, selector: "nol-gallery-markdown-view" }, { kind: "component", type: GalleryPermissionCardComponent, selector: "nol-gallery-permission-card" }, { kind: "component", type: GalleryPlanComponent, selector: "nol-gallery-plan" }, { kind: "component", type: GalleryStatusColorsComponent, selector: "nol-gallery-status-colors" }, { kind: "component", type: GalleryTerminalColorsComponent, selector: "nol-gallery-terminal-colors" }, { kind: "component", type: GalleryTerminalOutputComponent, selector: "nol-gallery-terminal-output" }, { kind: "component", type: GalleryToolCallComponent, selector: "nol-gallery-tool-call" }] });
95
26
  }
96
27
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryContentComponent, decorators: [{
97
28
  type: Component,
98
- args: [{ selector: "nol-gallery-content", imports: [CodeBlockComponent, DiffViewComponent, GalleryAvatarComponent, GalleryCardComponent, GalleryCellComponent, GalleryCodeBlockComponent, GalleryFileBadgeComponent, GalleryInlineCodeComponent,
99
- GalleryMarkdownViewComponent, GalleryPressDirective, GallerySpecimenComponent, GalleryStateDirective, GalleryTerminalOutputComponent, MarkdownViewComponent, PermissionCardComponent, PlanComponent,
100
- ToolCallComponent, ToolCallOutputDirective], 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-gallery-avatar />\n\n<nol-gallery-card />\n\n<nol-gallery-code-block />\n\n<nol-gallery-specimen [name]=\"text.diffView\" [size]=\"sizes.Full\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffSideBySideCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [layout]=\"sideBySide\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffPartlyReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffPartial\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffCollapsedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [collapsed]=\"diffCollapsed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReadOnlyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" [readOnly]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffNoOpeningCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [readOnly]=\"true\" [canOpenFiles]=\"false\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffStatesCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffStates\" [collapseLimit]=\"diffHeldLimit\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffEmptyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"[]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-diff-view nolGalleryFocus=\".nol-diff-cell-changed\" [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" />\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.diffWrappedCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" [wrapped]=\"true\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-file-badge />\n\n<nol-gallery-inline-code />\n\n<nol-gallery-markdown-view />\n\n<nol-gallery-specimen [name]=\"text.terminal\" [size]=\"sizes.Full\" noHover noFocus noLongText>\n @for (surface of terminalSurfaces; track surface[0]) {\n <nol-gallery-cell [caption]=\"surface[1]\">\n <div class=\"nol-gallery-terminal\" [style.background]=\"'var(--nol-' + surface[0] + ')'\">\n @for (color of terminalColors; track color) {\n <span class=\"nol-gallery-terminal-color\"><span class=\"nol-gallery-terminal-swatch\" [style.background]=\"'var(--nol-terminal-ansi-' + color + ')'\"></span>{{ color }}</span>\n }\n </div>\n </nol-gallery-cell>\n }\n <nol-gallery-cell [caption]=\"text.terminalTextCaption\">\n <div class=\"nol-gallery-terminal\">\n <span>{{ text.terminalText }}<span class=\"nol-gallery-terminal-cursor\">{{ text.terminalCursor }}</span><span class=\"nol-gallery-terminal-selection\">{{ text.terminalSelected }}</span></span>\n </div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-terminal-output />\n\n<nol-gallery-specimen [name]=\"text.statusColors\" noHover noFocus noLongText>\n @for (surface of statusSurfaces; track surface[0]) {\n <nol-gallery-cell [caption]=\"surface[1]\">\n <div class=\"nol-gallery-status\" [style.background]=\"'var(--nol-' + surface[0] + ')'\">\n @for (status of text.statuses; track status.token) {\n <span class=\"nol-gallery-status-row\"><span class=\"nol-gallery-status-dot\" [style.background]=\"'var(--nol-' + status.token + ')'\"></span>{{ status.label }}</span>\n }\n </div>\n </nol-gallery-cell>\n }\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.toolCall\" [size]=\"sizes.Full\">\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-tool-call [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallRunningCaption\"><nol-tool-call [call]=\"calls.running\" [views]=\"calls.runningViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallQueuedCaption\"><nol-tool-call [call]=\"calls.queued\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallPermissionCaption\"><nol-tool-call [call]=\"calls.awaiting\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallAnswerCaption\"><nol-tool-call [call]=\"calls.answering\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNoteCaption\"><nol-tool-call [call]=\"calls.noted\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNoteBareCaption\"><nol-tool-call [call]=\"calls.notedBare\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallCancelledCaption\"><nol-tool-call [call]=\"calls.cancelled\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallDeniedCaption\"><nol-tool-call [call]=\"calls.denied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNothingCaption\"><nol-tool-call [call]=\"calls.nothing\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNestedCaption\"><nol-tool-call [call]=\"calls.nested\" [views]=\"calls.nestedViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallNestedClosedCaption\"><nol-tool-call [call]=\"calls.nestedClosed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLongOutputCaption\"><nol-tool-call [call]=\"calls.longOutput\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallAllLinesCaption\"><nol-tool-call [call]=\"calls.allLines\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallControlCaption\">\n <nol-tool-call [call]=\"calls.control\" [views]=\"calls.openViews\">\n <ng-template nolToolCallOutput let-call><nol-code-block [language]=\"text.toolCallDiff\" [code]=\"call.output ?? text.toolCallNoDiff\" /></ng-template>\n </nol-tool-call>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLoadingCaption\"><nol-tool-call [call]=\"calls.loading\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><nol-tool-call [nolGalleryHover]=\"toggle\" [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-tool-call [nolGalleryFocus]=\"toggle\" [call]=\"calls.read\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallFailedCaption\"><nol-tool-call [call]=\"calls.failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.toolCallLoadFailedCaption\"><nol-tool-call [call]=\"calls.loadFailed\" [views]=\"calls.openViews\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-tool-call class=\"nol-gallery-narrow\" [call]=\"calls.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.planSection\" [size]=\"sizes.Full\" noHover noFocus>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-plan [plan]=\"plans.working\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planTypedCaption\"><nol-markdown-view [text]=\"text.planTyped\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planDoneCaption\"><nol-plan [plan]=\"plans.done\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.planNotStartedCaption\"><nol-plan [plan]=\"plans.notStarted\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-plan class=\"nol-gallery-narrow\" [plan]=\"plans.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.permissionCard\" [size]=\"sizes.Full\">\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-permission-card [request]=\"permissions.pending\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionMediumCaption\"><nol-permission-card [request]=\"permissions.medium\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionHighCaption\"><nol-permission-card [request]=\"permissions.high\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionConfirmCaption\"><nol-permission-card [nolGalleryPress]=\"alwaysAllow\" [request]=\"permissions.confirming\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAppOptionsCaption\"><nol-permission-card [request]=\"permissions.appOptions\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionSendingCaption\"><nol-permission-card [request]=\"permissions.sending\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionSendFailedCaption\"><nol-permission-card [request]=\"permissions.sendFailed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAllowedOnceCaption\"><nol-permission-card [request]=\"permissions.allowedOnce\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAlwaysAllowedCaption\"><nol-permission-card [request]=\"permissions.alwaysAllowed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionDeniedCaption\"><nol-permission-card [request]=\"permissions.denied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionAlwaysDeniedCaption\"><nol-permission-card [request]=\"permissions.alwaysDenied\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionUnscopedCaption\"><nol-permission-card [request]=\"permissions.unscoped\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionExpiredCaption\"><nol-permission-card [request]=\"permissions.expired\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionWithdrawnCaption\"><nol-permission-card [request]=\"permissions.withdrawn\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionLongDetailsCaption\"><nol-permission-card [request]=\"permissions.longDetails\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.permissionExpandedCaption\"><nol-permission-card [request]=\"permissions.expanded\" [detailsExpanded]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.hover\"><nol-permission-card [nolGalleryHover]=\"option\" [request]=\"permissions.hover\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-permission-card [nolGalleryFocus]=\"option\" [request]=\"permissions.focus\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-permission-card class=\"nol-gallery-narrow\" [request]=\"permissions.long\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"] }]
29
+ args: [{ selector: "nol-gallery-content", imports: [GalleryAvatarComponent, GalleryCardComponent, GalleryCodeBlockComponent, GalleryDiffViewComponent, GalleryFileBadgeComponent, GalleryInlineCodeComponent,
30
+ GalleryMarkdownViewComponent, GalleryPermissionCardComponent, GalleryPlanComponent, GalleryStatusColorsComponent, GalleryTerminalColorsComponent, GalleryTerminalOutputComponent,
31
+ GalleryToolCallComponent], 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-gallery-avatar />\n\n<nol-gallery-card />\n\n<nol-gallery-code-block />\n\n<nol-gallery-diff-view />\n\n<nol-gallery-file-badge />\n\n<nol-gallery-inline-code />\n\n<nol-gallery-markdown-view />\n\n<nol-gallery-terminal-colors />\n\n<nol-gallery-terminal-output />\n\n<nol-gallery-status-colors />\n\n<nol-gallery-tool-call />\n\n<nol-gallery-plan />\n\n<nol-gallery-permission-card />\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"] }]
101
32
  }] });
102
33
  //# sourceMappingURL=gallery-content.component.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"gallery-content.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-content.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/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,iYAAE,sBAAsB,+DAAE,oBAAoB,6DAAE,oBAAoB,kFAAE,yBAAyB,mEAAE,yBAAyB,mEAAE,0BAA0B,oEACnM,4BAA4B,sEAAE,qBAAqB,2FAAE,wBAAwB,2FAAE,qBAAqB,iIAAE,8BAA8B,wEAAE,qBAAqB,mWAAE,uBAAuB,qKAAE,aAAa,iFACnM,iBAAiB,qOAAE,uBAAuB;;2FAIjC,uBAAuB;kBARnC,SAAS;+BACE,qBAAqB,WACtB,CAAC,kBAAkB,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,yBAAyB,EAAE,0BAA0B;wBACnM,4BAA4B,EAAE,qBAAqB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,8BAA8B,EAAE,qBAAqB,EAAE,uBAAuB,EAAE,aAAa;wBACnM,iBAAiB,EAAE,uBAAuB,CAAC"}
1
+ {"version":3,"file":"gallery-content.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-content.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-content.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;AACvE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAE,yBAAyB,EAAE,MAAM,mCAAmC,CAAC;AAC9E,OAAO,EAAE,0BAA0B,EAAE,MAAM,oCAAoC,CAAC;AAChF,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,4BAA4B,EAAE,MAAM,sCAAsC,CAAC;AACpF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,8BAA8B,EAAE,MAAM,wCAAwC,CAAC;AACxF,OAAO,EAAE,wBAAwB,EAAE,MAAM,kCAAkC,CAAC;;AAU5E,MAAM,OAAO,uBAAuB;uGAAvB,uBAAuB;2FAAvB,uBAAuB,+EChCpC,ijBAiCA,s/DDPY,sBAAsB,+DAAE,oBAAoB,6DAAE,yBAAyB,mEAAE,wBAAwB,kEAAE,yBAAyB,mEAAE,0BAA0B,oEAChK,4BAA4B,sEAAE,8BAA8B,wEAAE,oBAAoB,6DAAE,4BAA4B,sEAAE,8BAA8B,wEAAE,8BAA8B,wEAChL,wBAAwB;;2FAIf,uBAAuB;kBARnC,SAAS;+BACE,qBAAqB,WACtB,CAAC,sBAAsB,EAAE,oBAAoB,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,0BAA0B;wBAChK,4BAA4B,EAAE,8BAA8B,EAAE,oBAAoB,EAAE,4BAA4B,EAAE,8BAA8B,EAAE,8BAA8B;wBAChL,wBAAwB,CAAC"}
@@ -0,0 +1,23 @@
1
+ import { DiffLayout } from "../../enums/diff-layout.js";
2
+ import { GallerySize } from "../../enums/gallery-size.js";
3
+ import { DiffCollapseLimit } from "../../models/diff-collapse-limit.js";
4
+ import { DiffFile } from "../../models/diff-file.js";
5
+ import { DiffFileReview } from "../../models/diff-file-review.js";
6
+ import { GalleryResources } from "./gallery-resources.js";
7
+ import * as i0 from "@angular/core";
8
+ export declare class GalleryDiffViewComponent {
9
+ private static readonly text;
10
+ private static readonly service;
11
+ protected readonly text: typeof GalleryResources.text;
12
+ protected readonly sizes: typeof GallerySize;
13
+ protected readonly sideBySide: DiffLayout;
14
+ protected readonly diffFiles: readonly DiffFile[];
15
+ protected readonly diffStates: readonly DiffFile[];
16
+ protected readonly diffLong: readonly DiffFile[];
17
+ protected readonly diffReviews: ReadonlyMap<string, DiffFileReview>;
18
+ protected readonly diffHeldLimit: DiffCollapseLimit;
19
+ protected readonly diffPartial: readonly DiffFile[];
20
+ protected readonly diffCollapsed: ReadonlySet<string>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<GalleryDiffViewComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<GalleryDiffViewComponent, "nol-gallery-diff-view", never, {}, {}, never, never, true, never>;
23
+ }
@@ -0,0 +1,74 @@
1
+ /**
2
+ * @license
3
+ * Copyright (c) Noldova.
4
+ *
5
+ * This source code is licensed under the license found in the
6
+ * LICENSE file in the root directory of this source tree.
7
+ */
8
+ import { Component } from "@angular/core";
9
+ import { DiffFileStatus } from "../../enums/diff-file-status.js";
10
+ import { DiffLayout } from "../../enums/diff-layout.js";
11
+ import { DiffReviewState } from "../../enums/diff-review-state.js";
12
+ import { GallerySize } from "../../enums/gallery-size.js";
13
+ import { DiffAddedLine } from "../../models/diff-added-line.js";
14
+ import { DiffBinary } from "../../models/diff-binary.js";
15
+ import { DiffCollapseLimit } from "../../models/diff-collapse-limit.js";
16
+ import { DiffContextLine } from "../../models/diff-context-line.js";
17
+ import { DiffFile } from "../../models/diff-file.js";
18
+ import { DiffFileReview } from "../../models/diff-file-review.js";
19
+ import { DiffHunk } from "../../models/diff-hunk.js";
20
+ import { DiffHunks } from "../../models/diff-hunks.js";
21
+ import { DiffPending } from "../../models/diff-pending.js";
22
+ import { DiffReadFailure } from "../../models/diff-read-failure.js";
23
+ import { DiffRemovedLine } from "../../models/diff-removed-line.js";
24
+ import { DiffViewComponent } from "../diff-view/diff-view.component.js";
25
+ import { GalleryCellComponent } from "./gallery-cell.component.js";
26
+ import { GalleryResources } from "./gallery-resources.js";
27
+ import { GallerySpecimenComponent } from "./gallery-specimen.component.js";
28
+ import { GalleryStateDirective } from "./gallery-state.directive.js";
29
+ import * as i0 from "@angular/core";
30
+ export class GalleryDiffViewComponent {
31
+ static text = GalleryResources.text;
32
+ static service = new DiffFile("notes", GalleryDiffViewComponent.text.diffPath, null, DiffFileStatus.Modified, 2, 1, GalleryDiffViewComponent.text.diffLanguage, new DiffHunks([new DiffHunk("h1", 12, 3, 12, 4, [
33
+ new DiffContextLine(12, 12, GalleryDiffViewComponent.text.diffContext),
34
+ new DiffRemovedLine(13, GalleryDiffViewComponent.text.diffRemoved),
35
+ new DiffAddedLine(13, GalleryDiffViewComponent.text.diffAdded),
36
+ new DiffAddedLine(14, GalleryDiffViewComponent.text.diffAddedNext),
37
+ new DiffContextLine(14, 15, GalleryDiffViewComponent.text.diffClosing)
38
+ ], GalleryDiffViewComponent.text.diffSection)]));
39
+ text = GalleryResources.text;
40
+ sizes = GallerySize;
41
+ sideBySide = DiffLayout.SideBySide;
42
+ diffFiles = [
43
+ GalleryDiffViewComponent.service,
44
+ new DiffFile("store", this.text.diffNewPath, this.text.diffOldPath, DiffFileStatus.Renamed, 0, 0, this.text.diffLanguage, new DiffHunks([])),
45
+ new DiffFile("icon", this.text.diffImagePath, null, DiffFileStatus.Added, 0, 0, null, new DiffBinary())
46
+ ];
47
+ diffStates = [
48
+ GalleryDiffViewComponent.service,
49
+ new DiffFile("reminders", this.text.diffLazyPath, null, DiffFileStatus.Modified, 4, 2, this.text.diffLanguage, new DiffPending()),
50
+ new DiffFile("archive", this.text.diffFailedPath, null, DiffFileStatus.Deleted, 0, 12, this.text.diffLanguage, new DiffReadFailure(this.text.diffFailure))
51
+ ];
52
+ diffLong = [
53
+ new DiffFile("long", this.text.diffLongPath, null, DiffFileStatus.Added, 1, 0, this.text.diffLanguage, new DiffHunks([new DiffHunk("h1", 0, 0, 1, 1, [new DiffAddedLine(1, this.text.diffLongLine)])]))
54
+ ];
55
+ diffReviews = new Map([
56
+ ["notes", new DiffFileReview(new Map([["h1", DiffReviewState.Accepted]]))],
57
+ ["store", new DiffFileReview(new Map(), DiffReviewState.Rejected)]
58
+ ]);
59
+ diffHeldLimit = new DiffCollapseLimit(1, 1000);
60
+ diffPartial = [
61
+ new DiffFile("notes", this.text.diffPath, null, DiffFileStatus.Modified, 3, 2, this.text.diffLanguage, new DiffHunks([...GalleryDiffViewComponent.service.content.hunks, new DiffHunk("h2", 30, 1, 31, 1, [
62
+ new DiffRemovedLine(30, this.text.diffRemovedLater),
63
+ new DiffAddedLine(31, this.text.diffAddedLater)
64
+ ], this.text.diffSection)]))
65
+ ];
66
+ diffCollapsed = new Set(["notes"]);
67
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryDiffViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
68
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryDiffViewComponent, isStandalone: true, selector: "nol-gallery-diff-view", 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-gallery-specimen [name]=\"text.diffView\" [size]=\"sizes.Full\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffSideBySideCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [layout]=\"sideBySide\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffPartlyReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffPartial\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffCollapsedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [collapsed]=\"diffCollapsed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReadOnlyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" [readOnly]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffNoOpeningCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [readOnly]=\"true\" [canOpenFiles]=\"false\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffStatesCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffStates\" [collapseLimit]=\"diffHeldLimit\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffEmptyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"[]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-diff-view nolGalleryFocus=\".nol-diff-cell-changed\" [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" />\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.diffWrappedCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" [wrapped]=\"true\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"], dependencies: [{ kind: "component", type: DiffViewComponent, selector: "nol-diff-view", inputs: ["files", "label", "layout", "wrapped", "readOnly", "canOpenFiles", "reviews", "collapsed", "revealed", "collapseLimit", "hasShortcuts"], outputs: ["layoutChange", "wrappedChange", "collapsedChange", "revealedChange", "reviewRequested", "fileOpenRequested", "contextRequested", "fileExpanded", "lineCommentRequested"] }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }] });
69
+ }
70
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryDiffViewComponent, decorators: [{
71
+ type: Component,
72
+ args: [{ selector: "nol-gallery-diff-view", imports: [DiffViewComponent, GalleryCellComponent, GallerySpecimenComponent, GalleryStateDirective], 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-gallery-specimen [name]=\"text.diffView\" [size]=\"sizes.Full\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffSideBySideCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [layout]=\"sideBySide\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffPartlyReviewedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffPartial\" [reviews]=\"diffReviews\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffCollapsedCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [collapsed]=\"diffCollapsed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffReadOnlyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [reviews]=\"diffReviews\" [readOnly]=\"true\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffNoOpeningCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffFiles\" [readOnly]=\"true\" [canOpenFiles]=\"false\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffStatesCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"diffStates\" [collapseLimit]=\"diffHeldLimit\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.diffEmptyCaption\"><nol-diff-view [label]=\"text.diffLabel\" [files]=\"[]\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\"><nol-diff-view nolGalleryFocus=\".nol-diff-cell-changed\" [label]=\"text.diffLabel\" [files]=\"diffFiles\" /></nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" />\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.diffWrappedCaption\">\n <nol-diff-view class=\"nol-gallery-narrow\" [label]=\"text.diffLabel\" [files]=\"diffLong\" [wrapped]=\"true\" />\n </nol-gallery-cell>\n</nol-gallery-specimen>\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: grid;\n gap: var(--nol-space-6);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n\n.nol-gallery-content-run {\n width: 100%;\n}\n\n.nol-gallery-content-card {\n width: 12.5rem;\n}\n\n.nol-gallery-content-paragraph {\n margin: 0;\n}\n\n.nol-gallery-files {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.nol-gallery-file {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n min-width: 0;\n font-size: var(--nol-text-panel);\n overflow-wrap: anywhere;\n}\n\n.nol-gallery-terminal {\n display: flex;\n flex-wrap: wrap;\n gap: var(--nol-space-2) var(--nol-space-4);\n padding: var(--nol-space-3);\n background: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n}\n\n.nol-gallery-terminal-color {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-terminal-swatch {\n width: 1rem;\n height: 1rem;\n}\n\n.nol-gallery-status {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-3);\n color: var(--nol-text);\n}\n\n.nol-gallery-status-row {\n display: inline-flex;\n align-items: center;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-status-dot {\n flex: none;\n width: 0.5rem;\n height: 0.5rem;\n border-radius: 50%;\n forced-color-adjust: none;\n}\n\n.nol-gallery-terminal-cursor {\n background: var(--nol-terminal-cursor);\n}\n\n.nol-gallery-terminal-selection {\n background: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n\n.nol-gallery-content-message {\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n}\n"] }]
73
+ }] });
74
+ //# sourceMappingURL=gallery-diff-view.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gallery-diff-view.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-diff-view.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-diff-view.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,eAAe,CAAC;AAE1C,OAAO,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACjE,OAAO,EAAE,UAAU,EAAE,MAAM,4BAA4B,CAAC;AACxD,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,aAAa,EAAE,MAAM,iCAAiC,CAAC;AAChE,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAC;AACxE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AACpE,OAAO,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC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gBACnD,IAAI,aAAa,CAAC,EAAE,EAAE,IAAI,CAAC,IAAI,CAAC,cAAc,CAAC;aAChD,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC;KAC/B,CAAC;IACiB,aAAa,GAAwB,IAAI,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC;uGAxChE,wBAAwB;2FAAxB,wBAAwB,iFCrCrC,u0EA0BA,s/DDOY,iBAAiB,iYAAE,oBAAoB,kFAAE,wBAAwB,2FAAE,qBAAqB;;2FAIvF,wBAAwB;kBANpC,SAAS;+BACE,uBAAuB,WACxB,CAAC,iBAAiB,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,qBAAqB,CAAC"}
@@ -1,34 +1,16 @@
1
- import { type WritableSignal } from "@angular/core";
2
- import { ButtonVariant } from "../../enums/button-variant.js";
3
1
  import { GallerySize } from "../../enums/gallery-size.js";
4
- import { VirtualListEdge } from "../../enums/virtual-list-edge.js";
5
- import { VirtualListKind } from "../../enums/virtual-list-kind.js";
6
- import { ArrayVirtualListSource } from "../../models/array-virtual-list-source.js";
7
2
  import type { LinkReference } from "../../models/link-reference.js";
8
3
  import type { LinkReferenceState } from "../../models/link-reference-state.js";
9
4
  import { MessageAuthor } from "../../models/message-author.js";
10
5
  import type { MessageBlock } from "../../models/message-block.js";
11
- import { GalleryFeedSource } from "./gallery-feed-source.js";
12
- import { GalleryMessage } from "./gallery-message.js";
13
6
  import { GalleryReferences } from "./gallery-references.js";
14
7
  import { GalleryResources } from "./gallery-resources.js";
15
8
  import * as i0 from "@angular/core";
16
9
  export declare class GalleryFeedComponent {
17
- private readonly timeSource;
18
- private readonly timers;
19
- private added;
20
10
  protected readonly text: typeof GalleryResources.text;
21
11
  protected readonly sizes: typeof GallerySize;
22
- protected readonly kinds: typeof VirtualListKind;
23
- protected readonly edges: typeof VirtualListEdge;
24
- protected readonly variants: typeof ButtonVariant;
25
- protected readonly replies: WritableSignal<number>;
26
- protected readonly messages: GalleryFeedSource;
27
- protected readonly slowMessages: GalleryFeedSource;
28
12
  protected readonly time: Date;
29
13
  protected readonly reviewer: MessageAuthor;
30
- protected readonly person: MessageAuthor;
31
- protected readonly continued: readonly MessageBlock[];
32
14
  protected readonly references: GalleryReferences;
33
15
  protected readonly referenced: readonly MessageBlock[];
34
16
  protected readonly runs: readonly MessageBlock[];
@@ -47,13 +29,6 @@ export declare class GalleryFeedComponent {
47
29
  protected readonly commitState: LinkReferenceState;
48
30
  protected readonly open: LinkReferenceState;
49
31
  protected readonly failed: LinkReferenceState;
50
- protected readonly focusedFeed: string;
51
- protected readonly shortMessages: ArrayVirtualListSource<GalleryMessage>;
52
- protected readonly longMessages: ArrayVirtualListSource<GalleryMessage>;
53
- protected readonly newestMessages: ArrayVirtualListSource<GalleryMessage>;
54
- constructor();
55
- protected addNewest(): void;
56
- protected streamReply(): void;
57
32
  static ɵfac: i0.ɵɵFactoryDeclaration<GalleryFeedComponent, never>;
58
33
  static ɵcmp: i0.ɵɵComponentDeclaration<GalleryFeedComponent, "nol-gallery-feed", never, {}, {}, never, never, true, never>;
59
34
  }
@@ -5,50 +5,27 @@
5
5
  * This source code is licensed under the license found in the
6
6
  * LICENSE file in the root directory of this source tree.
7
7
  */
8
- import { NgTemplateOutlet } from "@angular/common";
9
- import { Component, DestroyRef, inject, signal } from "@angular/core";
10
- import { ButtonVariant } from "../../enums/button-variant.js";
8
+ import { Component } from "@angular/core";
11
9
  import { GallerySize } from "../../enums/gallery-size.js";
12
10
  import { MessageAuthorKind } from "../../enums/message-author-kind.js";
13
- import { MessageStatus } from "../../enums/message-status.js";
14
- import { VirtualListEdge } from "../../enums/virtual-list-edge.js";
15
- import { VirtualListKind } from "../../enums/virtual-list-kind.js";
16
- import { ArrayVirtualListSource } from "../../models/array-virtual-list-source.js";
17
- import { ClockTokens } from "../../models/clock-tokens.js";
18
11
  import { MessageAuthor } from "../../models/message-author.js";
19
12
  import { MessageText } from "../../models/message-text.js";
20
- import { ButtonComponent } from "../button/button.component.js";
21
13
  import { LinkReferenceCardComponent } from "../link-reference/link-reference-card.component.js";
22
14
  import { LinkReferenceChipComponent } from "../link-reference/link-reference-chip.component.js";
23
15
  import { MessageComponent } from "../message/message.component.js";
24
- import { VirtualListComponent } from "../virtual-list/virtual-list.component.js";
25
- import { VirtualRowDirective } from "../virtual-list/virtual-row.directive.js";
26
16
  import { GalleryCellComponent } from "./gallery-cell.component.js";
27
- import { GalleryFeedSource } from "./gallery-feed-source.js";
28
- import { GalleryMessage } from "./gallery-message.js";
29
17
  import { GalleryMessageComponent } from "./gallery-message.component.js";
30
18
  import { GalleryReferences } from "./gallery-references.js";
31
19
  import { GalleryResources } from "./gallery-resources.js";
32
20
  import { GallerySpecimenComponent } from "./gallery-specimen.component.js";
33
21
  import { GalleryStateDirective } from "./gallery-state.directive.js";
22
+ import { GalleryVirtualFeedComponent } from "./gallery-virtual-feed.component.js";
34
23
  import * as i0 from "@angular/core";
35
24
  export class GalleryFeedComponent {
36
- timeSource = inject(ClockTokens.timeSource);
37
- timers = new Set();
38
- added = GalleryResources.feedNewestLength;
39
25
  text = GalleryResources.text;
40
26
  sizes = GallerySize;
41
- kinds = VirtualListKind;
42
- edges = VirtualListEdge;
43
- variants = ButtonVariant;
44
- replies = signal(0, /* @ts-ignore */
45
- ...(ngDevMode ? [{ debugName: "replies" }] : /* istanbul ignore next */ []));
46
- messages = new GalleryFeedSource(GalleryResources.feedLength, GalleryResources.feedReadDelay, Date.now(), this.timeSource);
47
- slowMessages = new GalleryFeedSource(GalleryResources.feedLength, GalleryResources.feedSlowDelay, Date.now(), this.timeSource);
48
27
  time = new Date(Date.now() - GalleryResources.messageAgo);
49
28
  reviewer = new MessageAuthor(this.text.messageReviewer, this.text.messageReviewer, MessageAuthorKind.Agent, null, this.text.messageReviewerInitials, GalleryResources.messageReviewerAccent);
50
- person = new MessageAuthor(this.text.feedAuthors[0], this.text.feedAuthors[0], MessageAuthorKind.Person);
51
- continued = [new MessageText(this.text.messageContinued)];
52
29
  references = new GalleryReferences();
53
30
  referenced = [new MessageText(this.text.referenceStatesText)];
54
31
  runs = [new MessageText(this.text.referenceRunsText)];
@@ -67,48 +44,12 @@ export class GalleryFeedComponent {
67
44
  commitState = GalleryReferences.commitState;
68
45
  open = GalleryReferences.open;
69
46
  failed = GalleryReferences.failed;
70
- focusedFeed = GalleryResources.focusedFeed;
71
- shortMessages = new ArrayVirtualListSource([
72
- new GalleryMessage("first", this.person, this.time, this.continued, MessageStatus.Complete),
73
- new GalleryMessage("second", this.reviewer, this.time, this.continued, MessageStatus.Complete)
74
- ], t => t.key, GalleryResources.virtualListEstimate);
75
- longMessages = new ArrayVirtualListSource([
76
- new GalleryMessage("long", this.person, this.time, [new MessageText(this.text.feedLongText)], MessageStatus.Complete)
77
- ], t => t.key, GalleryResources.virtualListEstimate);
78
- newestMessages = new ArrayVirtualListSource(Array.from({ length: GalleryResources.feedNewestLength }, (_, t) => new GalleryMessage(`newest-${GalleryResources.feedNewestLength - t}`, t % 2 === 0 ? this.reviewer : this.person, new Date(this.time.getTime() - t * GalleryResources.feedNewestStep), this.continued, MessageStatus.Complete)), t => t.key, GalleryResources.virtualListEstimate);
79
- constructor() {
80
- inject(DestroyRef).onDestroy(() => {
81
- for (const cancel of this.timers)
82
- cancel();
83
- });
84
- }
85
- addNewest() {
86
- this.added++;
87
- this.newestMessages.insert(0, [new GalleryMessage(`newest-${this.added}`, this.reviewer, new Date(), this.continued, MessageStatus.Complete)]);
88
- }
89
- streamReply() {
90
- const index = this.messages.startReply(new Date());
91
- this.replies.update(t => t + 1);
92
- const { feedWords } = this.text;
93
- let step = 0;
94
- const cancel = this.timeSource.every(() => {
95
- this.messages.extendReply(index, String(feedWords[step % feedWords.length]));
96
- step++;
97
- if (step < GalleryResources.feedReplyWords)
98
- return;
99
- cancel();
100
- this.timers.delete(cancel);
101
- this.messages.finishReply(index);
102
- this.replies.update(t => t - 1);
103
- }, GalleryResources.feedReplyInterval);
104
- this.timers.add(cancel);
105
- }
106
47
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryFeedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
107
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryFeedComponent, isStandalone: true, selector: "nol-gallery-feed", 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-gallery-message />\n\n<nol-gallery-specimen [name]=\"text.referenceChips\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.referenceStates\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"referenced\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRuns\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"runs\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMoreKinds\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"moreKinds\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMarks\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"marked\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceReadingCaption\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"reading\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referencePullCard\"><nol-link-reference-card [reference]=\"pullRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceIssueCard\"><nol-link-reference-card [reference]=\"issue\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRunCard\"><nol-link-reference-card [reference]=\"run\" [state]=\"failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMergeCard\"><nol-link-reference-card [reference]=\"mergeRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceWorkItemCard\"><nol-link-reference-card [reference]=\"workItem\" [state]=\"bug\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceCommitCard\"><nol-link-reference-card [reference]=\"commit\" [state]=\"commitState\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <a class=\"nol-markdown-link\" nol-link-reference-chip nolGalleryFocus=\"\" [reference]=\"pullRequest\" [href]=\"pullUrl\" (click)=\"$event.preventDefault()\"></a>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <div class=\"nol-gallery-message nol-gallery-narrow\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"longReference\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.virtualFeed\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\">\n <div class=\"nol-gallery-feed\">\n <nol-virtual-list class=\"nol-gallery-feed-list\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"messages\" [busy]=\"replies() > 0\">\n <ng-template [nolVirtualRow]=\"messages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" (click)=\"streamReply()\">{{ text.virtualFeedStream }}</button>\n </div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.virtualFeedSlow\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-slow\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"slowMessages\">\n <ng-template [nolVirtualRow]=\"slowMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.virtualFeedNewest\">\n <div class=\"nol-gallery-feed\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-newest\" [kind]=\"kinds.Feed\" [latest]=\"edges.Start\" [label]=\"text.virtualFeedLabel\" [source]=\"newestMessages\">\n <ng-template [nolVirtualRow]=\"newestMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" (click)=\"addNewest()\">{{ text.virtualFeedAdd }}</button>\n </div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-short\" [nolGalleryFocus]=\"focusedFeed\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"shortMessages\">\n <ng-template [nolVirtualRow]=\"shortMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-short nol-gallery-narrow\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"longMessages\">\n <ng-template [nolVirtualRow]=\"longMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <ng-template #row let-message let-labelId=\"labelId\">\n <nol-message [author]=\"message.author\" [time]=\"message.time\" [blocks]=\"message.blocks\" [status]=\"message.status\" [key]=\"message.key\" [labelId]=\"labelId\" />\n </ng-template>\n</nol-gallery-specimen>\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}\n\n.nol-gallery-feed {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n justify-items: start;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-feed-list {\n width: 30rem;\n max-width: 100%;\n height: 24rem;\n}\n\n.nol-gallery-feed-short {\n height: 10rem;\n}\n\n.nol-gallery-message {\n display: block;\n width: 30rem;\n max-width: 100%;\n}\n\n.nol-gallery-message-slot {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-message-image {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 12rem;\n height: 4rem;\n border: var(--nol-border-width) dashed var(--nol-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GalleryMessageComponent, selector: "nol-gallery-message" }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { kind: "component", type: LinkReferenceCardComponent, selector: "nol-link-reference-card", inputs: ["reference", "state"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: MessageComponent, selector: "nol-message", inputs: ["author", "authorDescription", "time", "blocks", "status", "error", "key", "continuation", "selected", "selectionLook", "header", "footer", "actionsTop", "actionsEnd", "flashStart", "labelId", "collapsedHeight", "layout", "timeFormat", "twentyFourHour", "mentions", "mentionNames", "fileLinks", "linkSchemes", "copyText", "folderLinks", "references", "shellRuns", "shellRunStates", "shellRunOutputs", "math"], outputs: ["copied", "retry", "attachmentOpen", "linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun", "contextMenuRequest"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: VirtualListComponent, selector: "nol-virtual-list", inputs: ["source", "label", "kind", "selected", "position", "busy", "readAhead", "latest"], outputs: ["activated", "positionChange", "jumped", "failed"] }, { kind: "directive", type: VirtualRowDirective, selector: "ng-template[nolVirtualRow]", inputs: ["nolVirtualRow", "nolVirtualRowDescribed", "nolVirtualRowHidden"] }] });
48
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryFeedComponent, isStandalone: true, selector: "nol-gallery-feed", 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-gallery-message />\n\n<nol-gallery-specimen [name]=\"text.referenceChips\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.referenceStates\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"referenced\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRuns\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"runs\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMoreKinds\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"moreKinds\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMarks\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"marked\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceReadingCaption\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"reading\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referencePullCard\"><nol-link-reference-card [reference]=\"pullRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceIssueCard\"><nol-link-reference-card [reference]=\"issue\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRunCard\"><nol-link-reference-card [reference]=\"run\" [state]=\"failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMergeCard\"><nol-link-reference-card [reference]=\"mergeRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceWorkItemCard\"><nol-link-reference-card [reference]=\"workItem\" [state]=\"bug\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceCommitCard\"><nol-link-reference-card [reference]=\"commit\" [state]=\"commitState\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <a class=\"nol-markdown-link\" nol-link-reference-chip nolGalleryFocus=\"\" [reference]=\"pullRequest\" [href]=\"pullUrl\" (click)=\"$event.preventDefault()\"></a>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <div class=\"nol-gallery-message nol-gallery-narrow\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"longReference\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-virtual-feed />\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}\n\n.nol-gallery-feed {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n justify-items: start;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-feed-list {\n width: 30rem;\n max-width: 100%;\n height: 24rem;\n}\n\n.nol-gallery-feed-short {\n height: 10rem;\n}\n\n.nol-gallery-message {\n display: block;\n width: 30rem;\n max-width: 100%;\n}\n\n.nol-gallery-message-slot {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-message-image {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 12rem;\n height: 4rem;\n border: var(--nol-border-width) dashed var(--nol-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n"], dependencies: [{ kind: "component", type: GalleryCellComponent, selector: "nol-gallery-cell", inputs: ["caption"] }, { kind: "component", type: GalleryMessageComponent, selector: "nol-gallery-message" }, { kind: "component", type: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { kind: "component", type: GalleryVirtualFeedComponent, selector: "nol-gallery-virtual-feed" }, { kind: "component", type: LinkReferenceCardComponent, selector: "nol-link-reference-card", inputs: ["reference", "state"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: MessageComponent, selector: "nol-message", inputs: ["author", "authorDescription", "time", "blocks", "status", "error", "key", "continuation", "selected", "selectionLook", "header", "footer", "actionsTop", "actionsEnd", "flashStart", "labelId", "collapsedHeight", "layout", "timeFormat", "twentyFourHour", "mentions", "mentionNames", "fileLinks", "linkSchemes", "copyText", "folderLinks", "references", "shellRuns", "shellRunStates", "shellRunOutputs", "math"], outputs: ["copied", "retry", "attachmentOpen", "linkActivate", "linkOpen", "linkMenu", "fileActivate", "filePathsChange", "shellRun", "contextMenuRequest"] }] });
108
49
  }
109
50
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryFeedComponent, decorators: [{
110
51
  type: Component,
111
- args: [{ selector: "nol-gallery-feed", imports: [ButtonComponent, GalleryCellComponent, GalleryMessageComponent, GallerySpecimenComponent, GalleryStateDirective, LinkReferenceCardComponent, LinkReferenceChipComponent,
112
- MessageComponent, NgTemplateOutlet, VirtualListComponent, VirtualRowDirective], 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-gallery-message />\n\n<nol-gallery-specimen [name]=\"text.referenceChips\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.referenceStates\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"referenced\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRuns\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"runs\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMoreKinds\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"moreKinds\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMarks\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"marked\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceReadingCaption\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"reading\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referencePullCard\"><nol-link-reference-card [reference]=\"pullRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceIssueCard\"><nol-link-reference-card [reference]=\"issue\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRunCard\"><nol-link-reference-card [reference]=\"run\" [state]=\"failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMergeCard\"><nol-link-reference-card [reference]=\"mergeRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceWorkItemCard\"><nol-link-reference-card [reference]=\"workItem\" [state]=\"bug\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceCommitCard\"><nol-link-reference-card [reference]=\"commit\" [state]=\"commitState\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <a class=\"nol-markdown-link\" nol-link-reference-chip nolGalleryFocus=\"\" [reference]=\"pullRequest\" [href]=\"pullUrl\" (click)=\"$event.preventDefault()\"></a>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <div class=\"nol-gallery-message nol-gallery-narrow\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"longReference\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-specimen [name]=\"text.virtualFeed\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.defaultState\">\n <div class=\"nol-gallery-feed\">\n <nol-virtual-list class=\"nol-gallery-feed-list\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"messages\" [busy]=\"replies() > 0\">\n <ng-template [nolVirtualRow]=\"messages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" (click)=\"streamReply()\">{{ text.virtualFeedStream }}</button>\n </div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.virtualFeedSlow\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-slow\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"slowMessages\">\n <ng-template [nolVirtualRow]=\"slowMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.virtualFeedNewest\">\n <div class=\"nol-gallery-feed\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-newest\" [kind]=\"kinds.Feed\" [latest]=\"edges.Start\" [label]=\"text.virtualFeedLabel\" [source]=\"newestMessages\">\n <ng-template [nolVirtualRow]=\"newestMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n <button type=\"button\" nol-button [variant]=\"variants.Secondary\" (click)=\"addNewest()\">{{ text.virtualFeedAdd }}</button>\n </div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-short\" [nolGalleryFocus]=\"focusedFeed\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"shortMessages\">\n <ng-template [nolVirtualRow]=\"shortMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <nol-virtual-list class=\"nol-gallery-feed-list nol-gallery-feed-short nol-gallery-narrow\" [kind]=\"kinds.Feed\" [label]=\"text.virtualFeedLabel\" [source]=\"longMessages\">\n <ng-template [nolVirtualRow]=\"longMessages\" let-message let-labelId=\"labelId\">\n <ng-container [ngTemplateOutlet]=\"row\" [ngTemplateOutletContext]=\"{ $implicit: message, labelId }\" />\n </ng-template>\n </nol-virtual-list>\n </nol-gallery-cell>\n <ng-template #row let-message let-labelId=\"labelId\">\n <nol-message [author]=\"message.author\" [time]=\"message.time\" [blocks]=\"message.blocks\" [status]=\"message.status\" [key]=\"message.key\" [labelId]=\"labelId\" />\n </ng-template>\n</nol-gallery-specimen>\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}\n\n.nol-gallery-feed {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n justify-items: start;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-feed-list {\n width: 30rem;\n max-width: 100%;\n height: 24rem;\n}\n\n.nol-gallery-feed-short {\n height: 10rem;\n}\n\n.nol-gallery-message {\n display: block;\n width: 30rem;\n max-width: 100%;\n}\n\n.nol-gallery-message-slot {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-message-image {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 12rem;\n height: 4rem;\n border: var(--nol-border-width) dashed var(--nol-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n"] }]
113
- }], ctorParameters: () => [] });
52
+ args: [{ selector: "nol-gallery-feed", imports: [GalleryCellComponent, GalleryMessageComponent, GallerySpecimenComponent, GalleryStateDirective, GalleryVirtualFeedComponent, LinkReferenceCardComponent,
53
+ LinkReferenceChipComponent, MessageComponent], 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-gallery-message />\n\n<nol-gallery-specimen [name]=\"text.referenceChips\" [size]=\"sizes.Wide\" noHover>\n <nol-gallery-cell [caption]=\"text.referenceStates\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"referenced\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRuns\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"runs\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMoreKinds\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"moreKinds\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMarks\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"marked\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceReadingCaption\">\n <div class=\"nol-gallery-message\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"reading\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referencePullCard\"><nol-link-reference-card [reference]=\"pullRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceIssueCard\"><nol-link-reference-card [reference]=\"issue\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceRunCard\"><nol-link-reference-card [reference]=\"run\" [state]=\"failed\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceMergeCard\"><nol-link-reference-card [reference]=\"mergeRequest\" [state]=\"open\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceWorkItemCard\"><nol-link-reference-card [reference]=\"workItem\" [state]=\"bug\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.referenceCommitCard\"><nol-link-reference-card [reference]=\"commit\" [state]=\"commitState\" /></nol-gallery-cell>\n <nol-gallery-cell [caption]=\"text.focus\">\n <a class=\"nol-markdown-link\" nol-link-reference-chip nolGalleryFocus=\"\" [reference]=\"pullRequest\" [href]=\"pullUrl\" (click)=\"$event.preventDefault()\"></a>\n </nol-gallery-cell>\n <nol-gallery-cell long [caption]=\"text.longCaption\">\n <div class=\"nol-gallery-message nol-gallery-narrow\"><nol-message [author]=\"reviewer\" [time]=\"time\" [blocks]=\"longReference\" [references]=\"references\" /></div>\n </nol-gallery-cell>\n</nol-gallery-specimen>\n\n<nol-gallery-virtual-feed />\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}\n\n.nol-gallery-feed {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n justify-items: start;\n gap: var(--nol-space-2);\n}\n\n.nol-gallery-feed-list {\n width: 30rem;\n max-width: 100%;\n height: 24rem;\n}\n\n.nol-gallery-feed-short {\n height: 10rem;\n}\n\n.nol-gallery-message {\n display: block;\n width: 30rem;\n max-width: 100%;\n}\n\n.nol-gallery-message-slot {\n margin: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-message-image {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n width: 12rem;\n height: 4rem;\n border: var(--nol-border-width) dashed var(--nol-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text-muted);\n}\n\n.nol-gallery-narrow {\n max-width: 12rem;\n}\n"] }]
54
+ }] });
114
55
  //# sourceMappingURL=gallery-feed.component.js.map