@noldova/ui.components.angular 0.0.10 → 0.0.11

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 (68) hide show
  1. package/README.md +4 -3
  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/app/components/avatar/avatar-initials-fitter.d.ts +4 -0
  6. package/app/components/avatar/avatar-initials-fitter.js +35 -4
  7. package/app/components/avatar/avatar-initials-fitter.js.map +1 -1
  8. package/app/components/avatar/avatar.component.d.ts +9 -5
  9. package/app/components/avatar/avatar.component.js +2 -2
  10. package/app/components/avatar/avatar.resources.d.ts +2 -0
  11. package/app/components/avatar/avatar.resources.js +3 -1
  12. package/app/components/avatar/avatar.resources.js.map +1 -1
  13. package/app/components/configuration-table/configuration-table.component.d.ts +8 -1
  14. package/app/components/configuration-table/configuration-table.component.js +10 -4
  15. package/app/components/configuration-table/configuration-table.component.js.map +1 -1
  16. package/app/components/gallery/gallery-configuration-table.component.d.ts +3 -0
  17. package/app/components/gallery/gallery-configuration-table.component.js +5 -2
  18. package/app/components/gallery/gallery-configuration-table.component.js.map +1 -1
  19. package/app/components/gallery/gallery-feed.component.d.ts +0 -25
  20. package/app/components/gallery/gallery-feed.component.js +6 -65
  21. package/app/components/gallery/gallery-feed.component.js.map +1 -1
  22. package/app/components/gallery/gallery-resources.d.ts +13 -0
  23. package/app/components/gallery/gallery-resources.js +5 -3
  24. package/app/components/gallery/gallery-resources.js.map +1 -1
  25. package/app/components/gallery/gallery-virtual-feed.component.d.ts +38 -0
  26. package/app/components/gallery/gallery-virtual-feed.component.js +91 -0
  27. package/app/components/gallery/gallery-virtual-feed.component.js.map +1 -0
  28. package/app/enums/avatar-size.d.ts +3 -3
  29. package/app/enums/configuration-table-density.d.ts +32 -0
  30. package/app/enums/configuration-table-density.js +13 -0
  31. package/app/enums/configuration-table-density.js.map +1 -0
  32. package/app/exceptions/code-highlighting.exception.d.ts +3 -2
  33. package/app/exceptions/code-highlighting.exception.js +2 -2
  34. package/app/exceptions/code-highlighting.exception.js.map +1 -1
  35. package/app/exceptions/diff.exception.d.ts +2 -2
  36. package/app/exceptions/diff.exception.js +2 -2
  37. package/app/exceptions/diff.exception.js.map +1 -1
  38. package/app/exceptions/link-reference.exception.d.ts +2 -2
  39. package/app/exceptions/link-reference.exception.js +2 -2
  40. package/app/exceptions/link-reference.exception.js.map +1 -1
  41. package/app/exceptions/markdown.exception.d.ts +2 -2
  42. package/app/exceptions/markdown.exception.js +2 -2
  43. package/app/exceptions/markdown.exception.js.map +1 -1
  44. package/app/exceptions/theme.exception.d.ts +2 -2
  45. package/app/exceptions/theme.exception.js +2 -2
  46. package/app/exceptions/theme.exception.js.map +1 -1
  47. package/app/exceptions/tree-move.exception.d.ts +2 -2
  48. package/app/exceptions/tree-move.exception.js +2 -2
  49. package/app/exceptions/tree-move.exception.js.map +1 -1
  50. package/app/exceptions/ui-components.exception.d.ts +48 -0
  51. package/app/exceptions/ui-components.exception.js +15 -0
  52. package/app/exceptions/ui-components.exception.js.map +1 -0
  53. package/app/exceptions/virtual-list.exception.d.ts +2 -2
  54. package/app/exceptions/virtual-list.exception.js +2 -2
  55. package/app/exceptions/virtual-list.exception.js.map +1 -1
  56. package/app/models/markdown-link.js +3 -1
  57. package/app/models/markdown-link.js.map +1 -1
  58. package/app/models/mention-value.js +3 -1
  59. package/app/models/mention-value.js.map +1 -1
  60. package/app/services/dialog.service.d.ts +1 -0
  61. package/app/services/dialog.service.js +4 -2
  62. package/app/services/dialog.service.js.map +1 -1
  63. package/app/services/markdown-math.renderer.js +3 -1
  64. package/app/services/markdown-math.renderer.js.map +1 -1
  65. package/package.json +5 -4
  66. package/testing/services/kit-stylesheet-fixture.d.ts +2 -0
  67. package/testing/services/kit-stylesheet-fixture.js +7 -1
  68. package/testing/services/kit-stylesheet-fixture.js.map +1 -1
@@ -0,0 +1,38 @@
1
+ import { type WritableSignal } from "@angular/core";
2
+ import { ButtonVariant } from "../../enums/button-variant.js";
3
+ 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
+ import { MessageAuthor } from "../../models/message-author.js";
8
+ import type { MessageBlock } from "../../models/message-block.js";
9
+ import { GalleryFeedSource } from "./gallery-feed-source.js";
10
+ import { GalleryMessage } from "./gallery-message.js";
11
+ import { GalleryResources } from "./gallery-resources.js";
12
+ import * as i0 from "@angular/core";
13
+ export declare class GalleryVirtualFeedComponent {
14
+ private readonly timeSource;
15
+ private readonly timers;
16
+ private added;
17
+ protected readonly text: typeof GalleryResources.text;
18
+ protected readonly sizes: typeof GallerySize;
19
+ protected readonly kinds: typeof VirtualListKind;
20
+ protected readonly edges: typeof VirtualListEdge;
21
+ protected readonly variants: typeof ButtonVariant;
22
+ protected readonly replies: WritableSignal<number>;
23
+ protected readonly messages: GalleryFeedSource;
24
+ protected readonly slowMessages: GalleryFeedSource;
25
+ protected readonly time: Date;
26
+ protected readonly reviewer: MessageAuthor;
27
+ protected readonly person: MessageAuthor;
28
+ protected readonly continued: readonly MessageBlock[];
29
+ protected readonly focusedFeed: string;
30
+ protected readonly shortMessages: ArrayVirtualListSource<GalleryMessage>;
31
+ protected readonly longMessages: ArrayVirtualListSource<GalleryMessage>;
32
+ protected readonly newestMessages: ArrayVirtualListSource<GalleryMessage>;
33
+ constructor();
34
+ protected addNewest(): void;
35
+ protected streamReply(): void;
36
+ static ɵfac: i0.ɵɵFactoryDeclaration<GalleryVirtualFeedComponent, never>;
37
+ static ɵcmp: i0.ɵɵComponentDeclaration<GalleryVirtualFeedComponent, "nol-gallery-virtual-feed", never, {}, {}, never, never, true, never>;
38
+ }
@@ -0,0 +1,91 @@
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 { NgTemplateOutlet } from "@angular/common";
9
+ import { Component, DestroyRef, inject, signal } from "@angular/core";
10
+ import { ButtonVariant } from "../../enums/button-variant.js";
11
+ import { GallerySize } from "../../enums/gallery-size.js";
12
+ 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
+ import { MessageAuthor } from "../../models/message-author.js";
19
+ import { MessageText } from "../../models/message-text.js";
20
+ import { ButtonComponent } from "../button/button.component.js";
21
+ import { MessageComponent } from "../message/message.component.js";
22
+ import { VirtualListComponent } from "../virtual-list/virtual-list.component.js";
23
+ import { VirtualRowDirective } from "../virtual-list/virtual-row.directive.js";
24
+ import { GalleryCellComponent } from "./gallery-cell.component.js";
25
+ import { GalleryFeedSource } from "./gallery-feed-source.js";
26
+ import { GalleryMessage } from "./gallery-message.js";
27
+ import { GalleryResources } from "./gallery-resources.js";
28
+ import { GallerySpecimenComponent } from "./gallery-specimen.component.js";
29
+ import { GalleryStateDirective } from "./gallery-state.directive.js";
30
+ import * as i0 from "@angular/core";
31
+ export class GalleryVirtualFeedComponent {
32
+ timeSource = inject(ClockTokens.timeSource);
33
+ timers = new Set();
34
+ added = GalleryResources.feedNewestLength;
35
+ text = GalleryResources.text;
36
+ sizes = GallerySize;
37
+ kinds = VirtualListKind;
38
+ edges = VirtualListEdge;
39
+ variants = ButtonVariant;
40
+ replies = signal(0, /* @ts-ignore */
41
+ ...(ngDevMode ? [{ debugName: "replies" }] : /* istanbul ignore next */ []));
42
+ messages = new GalleryFeedSource(GalleryResources.feedLength, GalleryResources.feedReadDelay, Date.now(), this.timeSource);
43
+ slowMessages = new GalleryFeedSource(GalleryResources.feedLength, GalleryResources.feedSlowDelay, Date.now(), this.timeSource);
44
+ time = new Date(Date.now() - GalleryResources.messageAgo);
45
+ reviewer = new MessageAuthor(this.text.messageReviewer, this.text.messageReviewer, MessageAuthorKind.Agent, null, this.text.messageReviewerInitials, GalleryResources.messageReviewerAccent);
46
+ person = new MessageAuthor(this.text.feedAuthors[0], this.text.feedAuthors[0], MessageAuthorKind.Person);
47
+ continued = [new MessageText(this.text.messageContinued)];
48
+ focusedFeed = GalleryResources.focusedFeed;
49
+ shortMessages = new ArrayVirtualListSource([
50
+ new GalleryMessage("first", this.person, this.time, this.continued, MessageStatus.Complete),
51
+ new GalleryMessage("second", this.reviewer, this.time, this.continued, MessageStatus.Complete)
52
+ ], t => t.key, GalleryResources.virtualListEstimate);
53
+ longMessages = new ArrayVirtualListSource([
54
+ new GalleryMessage("long", this.person, this.time, [new MessageText(this.text.feedLongText)], MessageStatus.Complete)
55
+ ], t => t.key, GalleryResources.virtualListEstimate);
56
+ 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);
57
+ constructor() {
58
+ inject(DestroyRef).onDestroy(() => {
59
+ for (const cancel of this.timers)
60
+ cancel();
61
+ });
62
+ }
63
+ addNewest() {
64
+ this.added++;
65
+ this.newestMessages.insert(0, [new GalleryMessage(`newest-${this.added}`, this.reviewer, new Date(), this.continued, MessageStatus.Complete)]);
66
+ }
67
+ streamReply() {
68
+ const index = this.messages.startReply(new Date());
69
+ this.replies.update(t => t + 1);
70
+ const { feedWords } = this.text;
71
+ let step = 0;
72
+ const cancel = this.timeSource.every(() => {
73
+ this.messages.extendReply(index, String(feedWords[step % feedWords.length]));
74
+ step++;
75
+ if (step < GalleryResources.feedReplyWords)
76
+ return;
77
+ cancel();
78
+ this.timers.delete(cancel);
79
+ this.messages.finishReply(index);
80
+ this.replies.update(t => t - 1);
81
+ }, GalleryResources.feedReplyInterval);
82
+ this.timers.add(cancel);
83
+ }
84
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryVirtualFeedComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
85
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: GalleryVirtualFeedComponent, isStandalone: true, selector: "nol-gallery-virtual-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-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: GallerySpecimenComponent, selector: "nol-gallery-specimen", inputs: ["name", "size"] }, { kind: "directive", type: GalleryStateDirective, selector: "[nolGalleryHover], [nolGalleryFocus]", inputs: ["nolGalleryHover", "nolGalleryFocus"] }, { 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"] }] });
86
+ }
87
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: GalleryVirtualFeedComponent, decorators: [{
88
+ type: Component,
89
+ args: [{ selector: "nol-gallery-virtual-feed", imports: [ButtonComponent, GalleryCellComponent, GallerySpecimenComponent, GalleryStateDirective, 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-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"] }]
90
+ }], ctorParameters: () => [] });
91
+ //# sourceMappingURL=gallery-virtual-feed.component.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"gallery-virtual-feed.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-virtual-feed.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/gallery/gallery-virtual-feed.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AACnD,OAAO,EAAE,SAAS,EAAE,UAAU,EAAuB,MAAM,EAAE,MAAM,EAAE,MAAM,eAAe,CAAC;AAE3F,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,EAAE,WAAW,EAAE,MAAM,6BAA6B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,oCAAo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AAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IAC1B,CAAC;uGA1DU,2BAA2B;2FAA3B,2BAA2B,oFCxCxC,23GAsDA,uiCDlBY,eAAe,oJAAE,oBAAoB,kFAAE,wBAAwB,2FAAE,qBAAqB,iIAAE,gBAAgB,wnBAAE,gBAAgB,oJAAE,oBAAoB,uNAAE,mBAAmB;;2FAIpK,2BAA2B;kBANvC,SAAS;+BACE,0BAA0B,WAC3B,CAAC,eAAe,EAAE,oBAAoB,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,gBAAgB,EAAE,gBAAgB,EAAE,oBAAoB,EAAE,mBAAmB,CAAC"}
@@ -22,8 +22,8 @@ export declare enum AvatarSize {
22
22
  Small = "Small",
23
23
  /**
24
24
  * The theme's `icon` size, 1rem by default, for a header or a row that
25
- * sets it beside icons, such as a card's header; its corners are small and
26
- * it shows only the first character of its initials.
25
+ * sets it beside icons, such as a card's header; it shows only the
26
+ * first character of its initials.
27
27
  */
28
28
  Icon = "Icon",
29
29
  /**
@@ -33,7 +33,7 @@ export declare enum AvatarSize {
33
33
  */
34
34
  IconButton = "IconButton",
35
35
  /**
36
- * The theme's `avatar-byline` size, 1.25rem by default, round, for a face
36
+ * The theme's `avatar-byline` size, 1.25rem by default, for a face
37
37
  * beside a name in a line of text, such as an author on a reference card.
38
38
  */
39
39
  Byline = "Byline"
@@ -0,0 +1,32 @@
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
+ /**
9
+ * The spacing of a {@link ConfigurationTableComponent}, from the theme's
10
+ * space steps.
11
+ */
12
+ export declare enum ConfigurationTableDensity {
13
+ /**
14
+ * The heading's row, the explanation and the table 0.75rem apart, the
15
+ * explanation in `text`, and 0.5rem cell padding with the cells lined up
16
+ * on their first line's baseline; the default.
17
+ */
18
+ Normal = "Normal",
19
+ /**
20
+ * For a settings form that needs the table tighter: the heading's row, the
21
+ * explanation and the table 0.25rem apart, as are actions that wrap under
22
+ * an explanation with no heading, the explanation in
23
+ * `text-muted`, the header's cells padded 0.25rem above and below and
24
+ * 0.375rem at their sides, the body's cells 0.375rem on every side, and
25
+ * every cell at the top of its row. The outer side of each row's first and
26
+ * last cells keeps no padding. A row's text and its buttons both start at
27
+ * the row's top, so the text no longer sits level with the buttons'
28
+ * labels; the columns, the hovered row's band and the lines are the
29
+ * normal look's.
30
+ */
31
+ Compact = "Compact"
32
+ }
@@ -0,0 +1,13 @@
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
+ export var ConfigurationTableDensity;
9
+ (function (ConfigurationTableDensity) {
10
+ ConfigurationTableDensity["Normal"] = "Normal";
11
+ ConfigurationTableDensity["Compact"] = "Compact";
12
+ })(ConfigurationTableDensity || (ConfigurationTableDensity = {}));
13
+ //# sourceMappingURL=configuration-table-density.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"configuration-table-density.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/enums/configuration-table-density.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,MAAM,CAAN,IAAY,yBAGX;AAHD,WAAY,yBAAyB;IACnC,8CAAiB,CAAA;IACjB,gDAAmB,CAAA;AACrB,CAAC,EAHW,yBAAyB,KAAzB,yBAAyB,QAGpC"}
@@ -5,13 +5,14 @@
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 { Exception, type ExceptionOptions } from "@noldova/context.exceptions";
8
+ import type { ExceptionOptions } from "@noldova/context.exceptions";
9
+ import { UiComponentsException } from "./ui-components.exception.js";
9
10
  /**
10
11
  * The exception the kit's code highlighter reports to the app's
11
12
  * `ErrorHandler` when its worker fails, or when a grammar fails to load in
12
13
  * the worker.
13
14
  */
14
- export declare class CodeHighlightingException extends Exception {
15
+ export declare class CodeHighlightingException extends UiComponentsException {
15
16
  /**
16
17
  * The exception's name, `"CodeHighlightingException"`, which the class
17
18
  * sets itself so that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class CodeHighlightingException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class CodeHighlightingException extends UiComponentsException {
10
10
  name = "CodeHighlightingException";
11
11
  constructor(message, options) {
12
12
  super(message, options);
@@ -1 +1 @@
1
- {"version":3,"file":"code-highlighting.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/code-highlighting.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAO,yBAA0B,SAAQ,SAAS;IAC7B,IAAI,GAAW,2BAA2B,CAAC;IAEpE,YAAmB,OAAe,EAAE,OAA0B;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
1
+ {"version":3,"file":"code-highlighting.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/code-highlighting.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,yBAA0B,SAAQ,qBAAqB;IACzC,IAAI,GAAW,2BAA2B,CAAC;IAEpE,YAAmB,OAAe,EAAE,OAA0B;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -5,12 +5,12 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception thrown when a diff's data is not valid, such as a hunk whose
11
11
  * lines don't match its ranges or a renamed file with no old path.
12
12
  */
13
- export declare class DiffException extends Exception {
13
+ export declare class DiffException extends UiComponentsException {
14
14
  /**
15
15
  * The exception's name, `"DiffException"`, which the class sets itself so
16
16
  * that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class DiffException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class DiffException extends UiComponentsException {
10
10
  name = "DiffException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"diff.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/diff.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,aAAc,SAAQ,SAAS;IACjB,IAAI,GAAW,eAAe,CAAC;IAExD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"diff.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/diff.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,aAAc,SAAQ,qBAAqB;IAC7B,IAAI,GAAW,eAAe,CAAC;IAExD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -5,13 +5,13 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception thrown when a reference's data is not valid, such as a
11
11
  * negative or non-finite duration, an action with an empty label, address
12
12
  * or glyph, or a reference with no card given a part only its card shows.
13
13
  */
14
- export declare class LinkReferenceException extends Exception {
14
+ export declare class LinkReferenceException extends UiComponentsException {
15
15
  /**
16
16
  * The exception's name, `"LinkReferenceException"`, which the class sets
17
17
  * itself so that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class LinkReferenceException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class LinkReferenceException extends UiComponentsException {
10
10
  name = "LinkReferenceException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"link-reference.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/link-reference.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,sBAAuB,SAAQ,SAAS;IAC1B,IAAI,GAAW,wBAAwB,CAAC;IAEjE,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"link-reference.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/link-reference.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,sBAAuB,SAAQ,qBAAqB;IACtC,IAAI,GAAW,wBAAwB,CAAC;IAEjE,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -5,12 +5,12 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception thrown when an app names a link scheme a Markdown view
11
11
  * can't take, such as `https` or `javascript`.
12
12
  */
13
- export declare class MarkdownException extends Exception {
13
+ export declare class MarkdownException extends UiComponentsException {
14
14
  /**
15
15
  * The exception's name, `"MarkdownException"`, which the class sets itself
16
16
  * so that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class MarkdownException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class MarkdownException extends UiComponentsException {
10
10
  name = "MarkdownException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"markdown.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/markdown.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IACrB,IAAI,GAAW,mBAAmB,CAAC;IAE5D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"markdown.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/markdown.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IACjC,IAAI,GAAW,mBAAmB,CAAC;IAE5D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -5,13 +5,13 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception thrown when a theme cannot be painted because neither it nor
11
11
  * the painter's default theme has a value the kit paints: a color, a look
12
12
  * value or a shape. {@link ThemePainter.paint} throws it.
13
13
  */
14
- export declare class ThemeException extends Exception {
14
+ export declare class ThemeException extends UiComponentsException {
15
15
  /**
16
16
  * The exception's name, `"ThemeException"`, which the class sets itself so
17
17
  * that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class ThemeException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class ThemeException extends UiComponentsException {
10
10
  name = "ThemeException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"theme.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/theme.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,cAAe,SAAQ,SAAS;IAClB,IAAI,GAAW,gBAAgB,CAAC;IAEzD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"theme.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/theme.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,cAAe,SAAQ,qBAAqB;IAC9B,IAAI,GAAW,gBAAgB,CAAC;IAEzD,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -5,13 +5,13 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception thrown when a tree move cannot be applied:
11
11
  * {@link TreeMove.apply} throws it when the moved row is missing, or the new
12
12
  * parent is missing, is the row itself or lies inside it.
13
13
  */
14
- export declare class TreeMoveException extends Exception {
14
+ export declare class TreeMoveException extends UiComponentsException {
15
15
  /**
16
16
  * The exception's name, `"TreeMoveException"`, which the class sets itself so
17
17
  * that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class TreeMoveException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class TreeMoveException extends UiComponentsException {
10
10
  name = "TreeMoveException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"tree-move.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/tree-move.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,iBAAkB,SAAQ,SAAS;IACrB,IAAI,GAAW,mBAAmB,CAAC;IAE5D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"tree-move.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/tree-move.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,iBAAkB,SAAQ,qBAAqB;IACjC,IAAI,GAAW,mBAAmB,CAAC;IAE5D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -0,0 +1,48 @@
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 { Exception, type ExceptionOptions } from "@noldova/context.exceptions";
9
+ /**
10
+ * The base of every exception the kit throws or reports, the one type an app
11
+ * catches to handle any of the kit's failures and only the kit's. It extends
12
+ * context's `Exception`, and each of the kit's exceptions extends it:
13
+ * {@link DiffException}, {@link LinkReferenceException},
14
+ * {@link MarkdownException}, {@link ThemeException},
15
+ * {@link TreeMoveException}, {@link VirtualListException}, and
16
+ * `CodeHighlightingException` from
17
+ * `@noldova/ui.components.angular/code-highlighting`.
18
+ */
19
+ export declare class UiComponentsException extends Exception {
20
+ /**
21
+ * The exception's name, `"UiComponentsException"`, which the class sets
22
+ * itself so that a minified build keeps it; each subclass sets its own.
23
+ */
24
+ readonly name: string;
25
+ /**
26
+ * Creates the exception.
27
+ *
28
+ * @param message A sentence naming what failed.
29
+ * @param options The failure that caused it, as its `cause`, if one did.
30
+ * @example
31
+ * ```ts
32
+ * import { ErrorHandler, Injectable } from "@angular/core";
33
+ * import { UiComponentsException } from "@noldova/ui.components.angular";
34
+ *
35
+ * @Injectable()
36
+ * export class KitErrorHandler implements ErrorHandler {
37
+ * public readonly kitFailures: UiComponentsException[] = [];
38
+ *
39
+ * public handleError(error: unknown): void {
40
+ * if (!(error instanceof UiComponentsException))
41
+ * throw error;
42
+ * this.kitFailures.push(error);
43
+ * }
44
+ * }
45
+ * ```
46
+ */
47
+ constructor(message: string, options?: ExceptionOptions);
48
+ }
@@ -0,0 +1,15 @@
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 { Exception } from "@noldova/context.exceptions";
9
+ export class UiComponentsException extends Exception {
10
+ name = "UiComponentsException";
11
+ constructor(message, options) {
12
+ super(message, options);
13
+ }
14
+ }
15
+ //# sourceMappingURL=ui-components.exception.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ui-components.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/ui-components.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAyB,MAAM,6BAA6B,CAAC;AAE/E,MAAM,OAAO,qBAAsB,SAAQ,SAAS;IACzB,IAAI,GAAW,uBAAuB,CAAC;IAEhE,YAAmB,OAAe,EAAE,OAA0B;QAC5D,KAAK,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;IAC1B,CAAC;CACF"}
@@ -5,13 +5,13 @@
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 { Exception } from "@noldova/context.exceptions";
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
9
  /**
10
10
  * The exception a {@link VirtualListSource} throws for a length, an estimate
11
11
  * or a change that does not fit the list, and that the kit's list reports
12
12
  * when a source answers a read with the wrong number of items.
13
13
  */
14
- export declare class VirtualListException extends Exception {
14
+ export declare class VirtualListException extends UiComponentsException {
15
15
  /**
16
16
  * The exception's name, `"VirtualListException"`, which the class sets
17
17
  * itself so that a minified build keeps it.
@@ -5,8 +5,8 @@
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 { Exception } from "@noldova/context.exceptions";
9
- export class VirtualListException extends Exception {
8
+ import { UiComponentsException } from "./ui-components.exception.js";
9
+ export class VirtualListException extends UiComponentsException {
10
10
  name = "VirtualListException";
11
11
  constructor(message) {
12
12
  super(message);
@@ -1 +1 @@
1
- {"version":3,"file":"virtual-list.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/virtual-list.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,MAAM,6BAA6B,CAAC;AAExD,MAAM,OAAO,oBAAqB,SAAQ,SAAS;IACxB,IAAI,GAAW,sBAAsB,CAAC;IAE/D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
1
+ {"version":3,"file":"virtual-list.exception.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/exceptions/virtual-list.exception.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,oBAAqB,SAAQ,qBAAqB;IACpC,IAAI,GAAW,sBAAsB,CAAC;IAE/D,YAAmB,OAAe;QAChC,KAAK,CAAC,OAAO,CAAC,CAAC;IACjB,CAAC;CACF"}
@@ -52,7 +52,9 @@ export class MarkdownLink {
52
52
  try {
53
53
  return decodeURIComponent(url);
54
54
  }
55
- catch {
55
+ catch (error) {
56
+ if (!(error instanceof URIError))
57
+ throw error;
56
58
  return null;
57
59
  }
58
60
  }
@@ -1 +1 @@
1
- {"version":3,"file":"markdown-link.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/models/markdown-link.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,YAAY;IAChB,MAAM,CAAC,MAAM,CAAC,GAAW,EAAE,UAA+B,mBAAmB,CAAC,IAAI,EAAE,cAAuB,KAAK;QACrH,OAAO,YAAY,CAAC,MAAM,CAAC,GAAG,CAAC,IAAI,WAAW,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,YAAY,CAAC,aAAa,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,QAAQ,CAAC,GAAG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C;QACd,MAAM,KAAK,GAAG,MAAM,CAAC,MAAM,GAAG,MAAM,CAAC,IAAI,CAAC;QAC1C,MAAM,IAAI,GAAG,YAAY,CAAC,MAAM,CAAC,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClD,MAAM,IAAI,GAAG,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,GAAG,CAAC,YAAY,CAAC,MAAM,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC;QACvF,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,qBAAqB,CAAC,sBAAsB,CAAC,IAAI,CAAC,IAAI,CAAC;YAChF,OAAO,IAAI,CAAC;QACd,OAAO,qBAAqB,CAAC,2BAA2B,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,GAAG,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;IAC5H,CAAC;IAEO,MAAM,CAAC,MAAM,CAAC,GAAW;QAC/B,IAAI,CAAC;YACH,OAAO,kBAAkB,CAAC,GAAG,CAAC,CAAC;QACjC,CAAC;QACD,MAAM,CAAC;YACL,OAAO,IAAI,CAAC;QACd,CAAC;IACH,CAAC;CACF"}
1
+ {"version":3,"file":"markdown-link.js","sourceRoot":"","sources":["../../../../../src/noldova.ui.components.angular/src/app/models/markdown-link.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,mBAAmB,EAAE,MAAM,4BAA4B,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAErE,MAAM,OAAO,YAAY;IAChB,MAAM,CAAC,MAAM,CAAC,GAAW,EAAE,UAA+B,mBAAmB,CAAC,IAAI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Whitespace(decoded) ? null : decoded;
79
79
  }
80
- catch {
80
+ catch (error) {
81
+ if (!(error instanceof URIError))
82
+ throw error;
81
83
  return null;
82
84
  }
83
85
  }