@noldova/ui.components.angular 0.0.2 → 0.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/app/components/avatar/avatar-initials-fitter.js +3 -3
- package/app/components/avatar/avatar.component.js +3 -3
- package/app/components/button/button.component.js +4 -4
- package/app/components/card/card.component.js +3 -3
- package/app/components/checkbox/checkbox.component.js +3 -3
- package/app/components/chip/chip.component.js +3 -3
- package/app/components/choice-pills/choice-pills.component.js +3 -3
- package/app/components/choice-row/choice-row.component.js +3 -3
- package/app/components/code-block/code-block.component.js +3 -3
- package/app/components/code-block/shell-run-output.component.js +3 -3
- package/app/components/code-block/shell-run-output.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-action.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-fill.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-row-actions.directive.js +3 -3
- package/app/components/configuration-table/configuration-table-share.directive.js +3 -3
- package/app/components/configuration-table/configuration-table.component.js +3 -3
- package/app/components/configuration-table/configuration-table.directive.js +3 -3
- package/app/components/dialog/dialog-description.directive.js +3 -3
- package/app/components/dialog/dialog.component.d.ts +5 -3
- package/app/components/dialog/dialog.component.js +7 -4
- package/app/components/dialog/dialog.component.js.map +1 -1
- package/app/components/diff-view/diff-code.directive.js +3 -3
- package/app/components/diff-view/diff-view.component.js +3 -3
- package/app/components/docking-guide/docking-guide.component.js +3 -3
- package/app/components/docking-plate/docking-plate.component.js +3 -3
- package/app/components/field-message/field-message.component.js +3 -3
- package/app/components/file-badge/file-badge.component.js +3 -3
- package/app/components/gallery/gallery-avatar.component.js +3 -3
- package/app/components/gallery/gallery-button.component.js +3 -3
- package/app/components/gallery/gallery-card.component.js +3 -3
- package/app/components/gallery/gallery-cell.component.js +3 -3
- package/app/components/gallery/gallery-checkbox.component.js +3 -3
- package/app/components/gallery/gallery-chip.component.js +3 -3
- package/app/components/gallery/gallery-choice-pills.component.js +3 -3
- package/app/components/gallery/gallery-choice-row.component.js +3 -3
- package/app/components/gallery/gallery-code-block.component.js +3 -3
- package/app/components/gallery/gallery-configuration-table.component.js +3 -3
- package/app/components/gallery/gallery-content.component.js +3 -3
- package/app/components/gallery/gallery-content.component.js.map +1 -1
- package/app/components/gallery/gallery-dialog.component.d.ts +1 -0
- package/app/components/gallery/gallery-dialog.component.js +5 -4
- package/app/components/gallery/gallery-dialog.component.js.map +1 -1
- package/app/components/gallery/gallery-feed.component.js +3 -3
- package/app/components/gallery/gallery-file-badge.component.js +3 -3
- package/app/components/gallery/gallery-forms.component.js +3 -3
- package/app/components/gallery/gallery-group-header.component.js +3 -3
- package/app/components/gallery/gallery-icon-button.component.js +3 -3
- package/app/components/gallery/gallery-inline-code.component.js +3 -3
- package/app/components/gallery/gallery-markdown-view.component.js +3 -3
- package/app/components/gallery/gallery-menu.component.js +3 -3
- package/app/components/gallery/gallery-message.component.js +3 -3
- package/app/components/gallery/gallery-meter.component.js +3 -3
- package/app/components/gallery/gallery-navigation.component.js +3 -3
- package/app/components/gallery/gallery-overlays.component.js +3 -3
- package/app/components/gallery/gallery-panel-card.component.js +3 -3
- package/app/components/gallery/gallery-press.directive.js +3 -3
- package/app/components/gallery/gallery-progress.component.js +3 -3
- package/app/components/gallery/gallery-quick-input.component.js +3 -3
- package/app/components/gallery/gallery-radio.component.js +3 -3
- package/app/components/gallery/gallery-refusing-clipboard.directive.js +3 -3
- package/app/components/gallery/gallery-refusing-clipboard.js +3 -3
- package/app/components/gallery/gallery-resources.d.ts +1 -0
- package/app/components/gallery/gallery-resources.js +1 -0
- package/app/components/gallery/gallery-resources.js.map +1 -1
- package/app/components/gallery/gallery-sash.component.js +3 -3
- package/app/components/gallery/gallery-scope.directive.js +3 -3
- package/app/components/gallery/gallery-section-header.component.js +3 -3
- package/app/components/gallery/gallery-select.component.js +3 -3
- package/app/components/gallery/gallery-specimen.component.js +3 -3
- package/app/components/gallery/gallery-spinner.component.js +3 -3
- package/app/components/gallery/gallery-split-button.component.js +3 -3
- package/app/components/gallery/gallery-state.directive.js +3 -3
- package/app/components/gallery/gallery-switch.component.js +3 -3
- package/app/components/gallery/gallery-tab.component.js +3 -3
- package/app/components/gallery/gallery-terminal-output.component.js +3 -3
- package/app/components/gallery/gallery-text-field.component.js +3 -3
- package/app/components/gallery/gallery-toolbar-button.component.js +3 -3
- package/app/components/gallery/gallery-tooltip.component.js +3 -3
- package/app/components/gallery/gallery-tree.component.js +3 -3
- package/app/components/gallery/gallery-view-badge.component.js +3 -3
- package/app/components/gallery/gallery-virtual-list.component.js +3 -3
- package/app/components/gallery/gallery.component.js +3 -3
- package/app/components/group-header/group-header.component.js +3 -3
- package/app/components/icon-button/icon-button.component.js +4 -4
- package/app/components/icon-button/icon-button.component.js.map +1 -1
- package/app/components/inline-code/inline-code.component.js +3 -3
- package/app/components/link-reference/link-reference-card.component.js +3 -3
- package/app/components/link-reference/link-reference-chip.component.js +3 -3
- package/app/components/link-reference/link-reference-image.component.js +3 -3
- package/app/components/link-reference/link-reference-work-item-state.component.js +3 -3
- package/app/components/markdown-view/markdown-math.component.js +3 -3
- package/app/components/markdown-view/markdown-view-nodes.component.js +3 -3
- package/app/components/markdown-view/markdown-view.component.js +3 -3
- package/app/components/mention-field/mention-field.directive.js +3 -3
- package/app/components/mention-field/mention-list.component.js +3 -3
- package/app/components/menu/context-menu-trigger.directive.js +3 -3
- package/app/components/menu/kept-open-menu-item.directive.js +3 -3
- package/app/components/menu/menu-group-action.directive.js +3 -3
- package/app/components/menu/menu-group.component.js +3 -3
- package/app/components/menu/menu-item.component.js +4 -4
- package/app/components/menu/menu-item.component.js.map +1 -1
- package/app/components/menu/menu-opens-on.directive.js +3 -3
- package/app/components/menu/menu-separator.component.js +3 -3
- package/app/components/menu/menu-trigger.directive.js +3 -3
- package/app/components/menu/menu.component.js +3 -3
- package/app/components/menu-bar/menu-bar-item.component.js +3 -3
- package/app/components/menu-bar/menu-bar.component.js +3 -3
- package/app/components/message/message-action.directive.js +3 -3
- package/app/components/message/message-footer-end.directive.js +3 -3
- package/app/components/message/message-image.directive.js +3 -3
- package/app/components/message/message-run.component.js +3 -3
- package/app/components/message/message-slot.directive.js +3 -3
- package/app/components/message/message.component.js +3 -3
- package/app/components/meter/meter.component.js +3 -3
- package/app/components/panel-card/panel-card.component.js +3 -3
- package/app/components/permission-card/permission-card.component.d.ts +19 -7
- package/app/components/permission-card/permission-card.component.js +19 -10
- package/app/components/permission-card/permission-card.component.js.map +1 -1
- package/app/components/permission-card/permission-card.resources.d.ts +3 -0
- package/app/components/permission-card/permission-card.resources.js +7 -0
- package/app/components/permission-card/permission-card.resources.js.map +1 -1
- package/app/components/plan/plan.component.js +3 -3
- package/app/components/popover/popover-trigger.directive.js +3 -3
- package/app/components/popover/popover.directive.js +3 -3
- package/app/components/progress/progress.component.js +3 -3
- package/app/components/progress/reveal-delay.directive.js +3 -3
- package/app/components/quick-input/quick-input.component.js +4 -4
- package/app/components/quick-input/quick-input.component.js.map +1 -1
- package/app/components/radio/radio-group.component.js +3 -3
- package/app/components/radio/radio.component.js +3 -3
- package/app/components/sash/sash.component.js +3 -3
- package/app/components/section-header/section-header.component.js +3 -3
- package/app/components/select/select.component.js +3 -3
- package/app/components/spinner/spinner.component.js +4 -4
- package/app/components/split-button/split-button.component.js +3 -3
- package/app/components/switch/switch.component.js +3 -3
- package/app/components/tab/tab.component.js +4 -4
- package/app/components/tab/tab.component.js.map +1 -1
- package/app/components/terminal-output/terminal-output.component.js +3 -3
- package/app/components/text-field/text-field-box.component.js +3 -3
- package/app/components/text-field/text-field-end.directive.js +3 -3
- package/app/components/text-field/text-field.component.js +3 -3
- package/app/components/tool-call/tool-call-output.directive.js +3 -3
- package/app/components/tool-call/tool-call.component.js +3 -3
- package/app/components/toolbar/toolbar-item.directive.js +3 -3
- package/app/components/toolbar/toolbar.directive.js +3 -3
- package/app/components/toolbar-button/toolbar-button.component.js +4 -4
- package/app/components/toolbar-button/toolbar-button.component.js.map +1 -1
- package/app/components/tooltip/tooltip.component.js +3 -3
- package/app/components/tooltip/tooltip.directive.js +3 -3
- package/app/components/tree/tree-row.directive.js +3 -3
- package/app/components/tree/tree.component.js +3 -3
- package/app/components/view-badge/view-badge.component.js +3 -3
- package/app/components/virtual-list/virtual-list.component.js +4 -4
- package/app/components/virtual-list/virtual-list.component.js.map +1 -1
- package/app/components/virtual-list/virtual-row.directive.js +3 -3
- package/app/enums/dialog-size.d.ts +7 -1
- package/app/enums/dialog-size.js +1 -0
- package/app/enums/dialog-size.js.map +1 -1
- package/app/models/default-theme.js +1 -0
- package/app/models/default-theme.js.map +1 -1
- package/app/models/permission-requester.d.ts +12 -8
- package/app/models/permission-requester.js +3 -2
- package/app/models/permission-requester.js.map +1 -1
- package/app/services/announcer.js +3 -3
- package/app/services/appearance.service.js +3 -3
- package/app/services/code-highlighter.js +3 -3
- package/app/services/code-highlights.js +3 -3
- package/app/services/dialog.service.js +3 -3
- package/app/services/diff-highlights.js +3 -3
- package/app/services/duration-formatter.js +3 -3
- package/app/services/markdown-math.renderer.js +3 -3
- package/app/services/markdown.parser.js +3 -3
- package/app/services/overlay-bounds.service.js +3 -3
- package/app/services/pending-permissions.js +3 -3
- package/app/services/scroll-reveal.service.js +3 -3
- package/app/services/shared-clock.js +3 -3
- package/app/services/tooltip-pace.js +3 -3
- package/package.json +7 -7
- package/resources.js +1 -0
- package/resources.js.map +1 -1
- package/styles/theme.css +1 -0
- package/testing/models/fixture-theme.js +1 -0
- package/testing/models/fixture-theme.js.map +1 -1
- package/testing/services/clipboard-writer-fixture.js +3 -3
|
@@ -93,10 +93,10 @@ export class MenuComponent {
|
|
|
93
93
|
document.addEventListener(Resources.pointermoveEvent, release, true);
|
|
94
94
|
inject(DestroyRef).onDestroy(stop);
|
|
95
95
|
}
|
|
96
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
97
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: MenuComponent, isStandalone: true, selector: "nol-menu", inputs: { minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.nol-menu-pointer-still": "isPointerStill()", "style.min-width": "minWidthStyle()" } }, queries: [{ propertyName: "items", predicate: MenuItemComponent, descendants: true, isSignal: true }, { propertyName: "menuItems", predicate: MenuItemComponent, descendants: true, read: CdkMenuItem, isSignal: true }, { propertyName: "marks", predicate: MenuOpensOnDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: i1.CdkMenu }, { directive: i1.CdkTargetMenuAim }], 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<ng-content />\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 grid-template-columns: auto minmax(0, 1fr);\n grid-auto-rows: min-content;\n align-content: start;\n box-sizing: border-box;\n min-height: 0;\n max-width: calc(100cqw - var(--nol-space-4));\n padding-block: var(--nol-menu-padding);\n overflow-x: hidden;\n overflow-y: auto;\n border: var(--nol-border-width) solid var(--nol-menu-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-menu);\n box-shadow: var(--nol-shadow-large);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n outline: none;\n}\n"] });
|
|
98
98
|
}
|
|
99
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
99
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuComponent, decorators: [{
|
|
100
100
|
type: Component,
|
|
101
101
|
args: [{ selector: "nol-menu", hostDirectives: [CdkMenu, CdkTargetMenuAim], host: {
|
|
102
102
|
"[class.nol-menu-pointer-still]": "isPointerStill()",
|
|
@@ -17,10 +17,10 @@ export class MenuBarItemComponent {
|
|
|
17
17
|
constructor() {
|
|
18
18
|
effect(() => this.item.typeaheadLabel = this.label());
|
|
19
19
|
}
|
|
20
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
21
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
21
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.6", type: MenuBarItemComponent, isStandalone: true, selector: "button[nol-menu-bar-item]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, host: { listeners: { "focus": "bar.setActiveMenuItem(item)" } }, hostDirectives: [{ directive: i1.CdkMenuItem, inputs: ["cdkMenuItemDisabled", "disabled"], outputs: ["cdkMenuItemTriggered", "triggered"] }], 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<span class=\"nol-menu-bar-item-label\">{{ label() }}</span>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n position: relative;\n isolation: isolate;\n display: inline-flex;\n flex: none;\n align-items: center;\n box-sizing: border-box;\n min-height: var(--nol-pointer-target);\n padding: 0 var(--nol-pill-padding);\n border: 0;\n background: none;\n color: inherit;\n font: inherit;\n font-size: var(--nol-text-panel);\n font-weight: 400;\n line-height: var(--nol-line-panel);\n white-space: nowrap;\n outline: none;\n}\n\n:where(:host) {\n margin: 0;\n}\n\n:host::before {\n position: absolute;\n z-index: -1;\n inset-block: calc((var(--nol-pointer-target) - var(--nol-icon-button)) / 2);\n inset-inline: 0;\n border-radius: var(--nol-radius-small);\n content: \"\";\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:is(:hover, [data-nol-state=\"Hover\"]), [aria-expanded=\"true\"]))::before {\n background-color: var(--nol-toolbar-hover);\n}\n\n@media (forced-colors: active) {\n :host(:not([aria-disabled=\"true\"]):is(:is(:hover, [data-nol-state=\"Hover\"]), [aria-expanded=\"true\"]))::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n}\n\n@media (forced-colors: active) {\n :host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n:host([aria-disabled=\"true\"]) {\n cursor: default;\n}\n\n:host([aria-disabled=\"true\"]) > * {\n opacity: 0.5;\n}\n\n@media (forced-colors: active) {\n :host([aria-disabled=\"true\"]),\n :host([aria-disabled=\"true\"]) * {\n color: GrayText;\n }\n}\n"] });
|
|
22
22
|
}
|
|
23
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuBarItemComponent, decorators: [{
|
|
24
24
|
type: Component,
|
|
25
25
|
args: [{ selector: "button[nol-menu-bar-item]", hostDirectives: [{ directive: CdkMenuItem, inputs: ["cdkMenuItemDisabled: disabled"], outputs: ["cdkMenuItemTriggered: triggered"] }], host: {
|
|
26
26
|
"(focus)": "bar.setActiveMenuItem(item)"
|
|
@@ -13,10 +13,10 @@ import * as i1 from "@angular/cdk/menu";
|
|
|
13
13
|
export class MenuBarComponent {
|
|
14
14
|
label = input(null, /* @ts-ignore */
|
|
15
15
|
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.6", type: MenuBarComponent, isStandalone: true, selector: "nol-menu-bar", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-label": "label()" } }, providers: [ElementDirectionality.provide()], hostDirectives: [{ directive: i1.CdkMenuBar }], 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<ng-content />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n align-items: center;\n min-width: 0;\n white-space: nowrap;\n}\n"] });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuBarComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{ selector: "nol-menu-bar", providers: [ElementDirectionality.provide()], hostDirectives: [CdkMenuBar], host: {
|
|
22
22
|
"[attr.aria-label]": "label()"
|
|
@@ -11,10 +11,10 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
import * as i1 from "../toolbar/toolbar-item.directive.js";
|
|
12
12
|
export class MessageActionDirective {
|
|
13
13
|
item = inject(ToolbarItemDirective);
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
15
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: MessageActionDirective, isStandalone: true, selector: "[nolMessageAction]", hostDirectives: [{ directive: i1.ToolbarItemDirective }], ngImport: i0 });
|
|
16
16
|
}
|
|
17
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
17
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageActionDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: "[nolMessageAction]",
|
|
@@ -10,10 +10,10 @@ import { MessageFooterPlacement } from "../../enums/message-footer-placement.js"
|
|
|
10
10
|
import * as i0 from "@angular/core";
|
|
11
11
|
export class MessageFooterEndDirective {
|
|
12
12
|
placement = input(MessageFooterPlacement.AfterTime, { ...(ngDevMode ? { debugName: "placement" } : /* istanbul ignore next */ {}), alias: "nolMessageFooterEndPlacement" });
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
14
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageFooterEndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: MessageFooterEndDirective, isStandalone: true, selector: "[nolMessageFooterEnd]", inputs: { placement: { classPropertyName: "placement", publicName: "nolMessageFooterEndPlacement", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-nol-placement": "placement()" } }, ngImport: i0 });
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageFooterEndDirective, decorators: [{
|
|
17
17
|
type: Directive,
|
|
18
18
|
args: [{
|
|
19
19
|
selector: "[nolMessageFooterEnd]",
|
|
@@ -12,10 +12,10 @@ export class MessageImageDirective {
|
|
|
12
12
|
static ngTemplateContextGuard(_, _context) {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageImageDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: MessageImageDirective, isStandalone: true, selector: "ng-template[nolMessageImage]", ngImport: i0 });
|
|
17
17
|
}
|
|
18
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
18
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageImageDirective, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{ selector: "ng-template[nolMessageImage]" }]
|
|
21
21
|
}] });
|
|
@@ -102,10 +102,10 @@ export class MessageRunComponent {
|
|
|
102
102
|
measure() {
|
|
103
103
|
this.isLong.set(this.content().nativeElement.getBoundingClientRect().height > this.limit().nativeElement.getBoundingClientRect().height);
|
|
104
104
|
}
|
|
105
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
106
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
105
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageRunComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
106
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: MessageRunComponent, isStandalone: true, selector: "nol-message-run", inputs: { blocks: { classPropertyName: "blocks", publicName: "blocks", isSignal: true, isRequired: true, transformFunction: null }, streaming: { classPropertyName: "streaming", publicName: "streaming", isSignal: true, isRequired: false, transformFunction: null }, collapsible: { classPropertyName: "collapsible", publicName: "collapsible", isSignal: true, isRequired: false, transformFunction: null }, mentions: { classPropertyName: "mentions", publicName: "mentions", isSignal: true, isRequired: false, transformFunction: null }, mentionNames: { classPropertyName: "mentionNames", publicName: "mentionNames", isSignal: true, isRequired: false, transformFunction: null }, entering: { classPropertyName: "entering", publicName: "entering", isSignal: true, isRequired: false, transformFunction: null }, fileLinks: { classPropertyName: "fileLinks", publicName: "fileLinks", isSignal: true, isRequired: false, transformFunction: null }, linkSchemes: { classPropertyName: "linkSchemes", publicName: "linkSchemes", isSignal: true, isRequired: false, transformFunction: null }, folderLinks: { classPropertyName: "folderLinks", publicName: "folderLinks", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, shellRuns: { classPropertyName: "shellRuns", publicName: "shellRuns", isSignal: true, isRequired: false, transformFunction: null }, math: { classPropertyName: "math", publicName: "math", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkActivate: "linkActivate", linkOpen: "linkOpen", linkMenu: "linkMenu", fileActivate: "fileActivate", shellRun: "shellRun" }, host: { classAttribute: "nol-message-run" }, providers: [{ provide: MarkdownViewTokens.codeHeight, useValue: MessageRunResources.messageCodeHeight }], viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }, { propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "limit", first: true, predicate: ["limit"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<span class=\"nol-message-run-limit\" aria-hidden=\"true\"><span class=\"nol-message-run-limit-height\" #limit></span></span>\n<div class=\"nol-message-run-body\" #body [id]=\"bodyId\" [class.nol-message-collapsed]=\"isCollapsed()\" [class.nol-message-clipped]=\"isCollapsed() && canCollapse()\"\n (focusin)=\"reveal($event)\">\n <div class=\"nol-message-run-content\" #content>\n @for (block of blocks(); track $index) {\n @if (isText(block)) {\n <nol-markdown-view [class.nol-message-interim]=\"block.interim\" [text]=\"block.text\" [streaming]=\"streaming() && $last && !block.interim\" [paced]=\"streaming()\" [entering]=\"entering().has(block)\"\n [mentions]=\"mentions()\" [mentionNames]=\"mentionNames()\" [fileLinks]=\"fileLinks()\" [folderLinks]=\"folderLinks()\" [references]=\"references()\" [linkSchemes]=\"linkSchemes()\" [shellRuns]=\"shellRuns() && !streaming()\" [math]=\"math()\" (linkActivate)=\"linkActivate.emit($event)\" (linkOpen)=\"linkOpen.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"\n (fileActivate)=\"fileActivate.emit($event)\" (shellRun)=\"shellRun.emit($event)\" />\n } @else if (isCode(block)) {\n <nol-code-block #codeBlock [code]=\"block.code\" [language]=\"block.language\" [maxHeight]=\"partResources.messageCodeHeight\" [streaming]=\"streaming() && $last\"\n [runnable]=\"shellRuns() && !streaming()\" (run)=\"shellRun.emit($event)\" />\n <nol-shell-run-output [codeBlock]=\"codeBlock\" [area]=\"content\" />\n }\n }\n </div>\n</div>\n@if (canCollapse()) {\n <button type=\"button\" nol-button class=\"nol-message-more\" data-nol-resizes-row [variant]=\"variants.Secondary\" [attr.aria-expanded]=\"isExpanded()\" [attr.aria-controls]=\"bodyId\"\n (click)=\"toggle()\">{{ isExpanded() ? resources.messageShowLessLabel : resources.messageShowMoreLabel }}</button>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-message-run {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n position: relative;\n min-width: 0;\n}\n\n.nol-message-run-limit {\n position: absolute;\n width: 0;\n height: 0;\n overflow: hidden;\n visibility: hidden;\n pointer-events: none;\n}\n\n.nol-message-run-limit-height {\n display: block;\n height: var(--nol-message-collapsed-height);\n}\n\n.nol-message-run-body {\n min-width: 0;\n}\n\n.nol-message-collapsed {\n max-height: var(--nol-message-collapsed-height);\n overflow: hidden;\n}\n\n.nol-message-clipped {\n scroll-padding-block-end: var(--nol-space-6);\n mask-image: linear-gradient(to bottom, black calc(100% - var(--nol-space-6)), transparent);\n}\n\n.nol-message-run-content {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-markdown-view.nol-message-interim {\n padding-inline-start: var(--nol-space-3);\n border-inline-start: calc(var(--nol-border-width) * 2) solid var(--nol-border);\n color: var(--nol-text-muted);\n}\n\n.nol-message-more {\n align-self: flex-start;\n}\n\n@media (forced-colors: active) {\n .nol-message-clipped {\n mask-image: none;\n }\n}\n"], dependencies: [{ kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { 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: ShellRunOutputComponent, selector: "nol-shell-run-output", inputs: ["codeBlock", "area"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
107
107
|
}
|
|
108
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
108
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageRunComponent, decorators: [{
|
|
109
109
|
type: Component,
|
|
110
110
|
args: [{ selector: "nol-message-run", imports: [ButtonComponent, CodeBlockComponent, MarkdownViewComponent, ShellRunOutputComponent], encapsulation: ViewEncapsulation.None, providers: [{ provide: MarkdownViewTokens.codeHeight, useValue: MessageRunResources.messageCodeHeight }], host: {
|
|
111
111
|
"class": "nol-message-run"
|
|
@@ -10,10 +10,10 @@ import * as i0 from "@angular/core";
|
|
|
10
10
|
export class MessageSlotDirective {
|
|
11
11
|
template = inject(TemplateRef);
|
|
12
12
|
id = input.required({ ...(ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {}), alias: "nolMessageSlot" });
|
|
13
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
14
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
13
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageSlotDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: MessageSlotDirective, isStandalone: true, selector: "ng-template[nolMessageSlot]", inputs: { id: { classPropertyName: "id", publicName: "nolMessageSlot", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0 });
|
|
15
15
|
}
|
|
16
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
16
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageSlotDirective, decorators: [{
|
|
17
17
|
type: Directive,
|
|
18
18
|
args: [{ selector: "ng-template[nolMessageSlot]" }]
|
|
19
19
|
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "nolMessageSlot", required: true }] }] } });
|
|
@@ -384,11 +384,11 @@ export class MessageComponent {
|
|
|
384
384
|
this.cancelCopy?.();
|
|
385
385
|
this.cancelCopy = null;
|
|
386
386
|
}
|
|
387
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
388
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.5", type: MessageComponent, isStandalone: true, selector: "nol-message", inputs: { author: { classPropertyName: "author", publicName: "author", isSignal: true, isRequired: true, transformFunction: null }, authorDescription: { classPropertyName: "authorDescription", publicName: "authorDescription", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: true, transformFunction: null }, blocks: { classPropertyName: "blocks", publicName: "blocks", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, continuation: { classPropertyName: "continuation", publicName: "continuation", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectionLook: { classPropertyName: "selectionLook", publicName: "selectionLook", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, actionsTop: { classPropertyName: "actionsTop", publicName: "actionsTop", isSignal: true, isRequired: false, transformFunction: null }, actionsEnd: { classPropertyName: "actionsEnd", publicName: "actionsEnd", isSignal: true, isRequired: false, transformFunction: null }, flashStart: { classPropertyName: "flashStart", publicName: "flashStart", isSignal: true, isRequired: false, transformFunction: null }, labelId: { classPropertyName: "labelId", publicName: "labelId", isSignal: true, isRequired: false, transformFunction: null }, collapsedHeight: { classPropertyName: "collapsedHeight", publicName: "collapsedHeight", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, timeFormat: { classPropertyName: "timeFormat", publicName: "timeFormat", isSignal: true, isRequired: false, transformFunction: null }, twentyFourHour: { classPropertyName: "twentyFourHour", publicName: "twentyFourHour", isSignal: true, isRequired: false, transformFunction: null }, mentions: { classPropertyName: "mentions", publicName: "mentions", isSignal: true, isRequired: false, transformFunction: null }, mentionNames: { classPropertyName: "mentionNames", publicName: "mentionNames", isSignal: true, isRequired: false, transformFunction: null }, fileLinks: { classPropertyName: "fileLinks", publicName: "fileLinks", isSignal: true, isRequired: false, transformFunction: null }, linkSchemes: { classPropertyName: "linkSchemes", publicName: "linkSchemes", isSignal: true, isRequired: false, transformFunction: null }, copyText: { classPropertyName: "copyText", publicName: "copyText", isSignal: true, isRequired: false, transformFunction: null }, folderLinks: { classPropertyName: "folderLinks", publicName: "folderLinks", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, shellRuns: { classPropertyName: "shellRuns", publicName: "shellRuns", isSignal: true, isRequired: false, transformFunction: null }, shellRunStates: { classPropertyName: "shellRunStates", publicName: "shellRunStates", isSignal: true, isRequired: false, transformFunction: null }, shellRunOutputs: { classPropertyName: "shellRunOutputs", publicName: "shellRunOutputs", isSignal: true, isRequired: false, transformFunction: null }, math: { classPropertyName: "math", publicName: "math", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied", retry: "retry", attachmentOpen: "attachmentOpen", linkActivate: "linkActivate", linkOpen: "linkOpen", linkMenu: "linkMenu", fileActivate: "fileActivate", filePathsChange: "filePathsChange", shellRun: "shellRun", contextMenuRequest: "contextMenuRequest" }, host: { listeners: { "keydown.escape": "leave($event)", "keydown": "requestMenuFromKeyboard($event)", "keyup": "releaseMenuKey($event)", "contextmenu": "requestMenu($event)", "animationstart": "continueFlash($event)" }, properties: { "class.nol-message-bubble": "isBubble()", "class.nol-message-column": "isColumn()", "class.nol-message-headless": "isHeadless()", "class.nol-message-continuation": "isContinued()", "class.nol-message-selected": "selected()", "class.nol-message-raised-selection": "isRaisedSelection()", "class.nol-message-flashing": "flashStart() !== null", "class.nol-message-system": "author().kind === authorKinds.System", "style.--nol-message-collapsed-height": "collapsedLength()", "style.--nol-message-action-count": "actionItems().length + 1", "style.--nol-message-actions-top": "actionsTop()", "style.--nol-message-actions-end": "actionsEnd()" }, classAttribute: "nol-message" }, providers: [{ provide: MarkdownViewTokens.images, useFactory: () => new MarkdownImages() }], queries: [{ propertyName: "slots", predicate: MessageSlotDirective, isSignal: true }, { propertyName: "actions", predicate: MessageActionDirective, isSignal: true }, { propertyName: "footerEnds", predicate: MessageFooterEndDirective, isSignal: true }, { propertyName: "image", first: true, predicate: MessageImageDirective, isSignal: true }, { propertyName: "shellRunOutput", first: true, predicate: ShellRunOutputDirective, isSignal: true }], viewQueries: [{ propertyName: "tools", first: true, predicate: ["tools"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #timeTemplate>\n <time class=\"nol-message-time\" tabindex=\"0\" [attr.datetime]=\"isoTime()\" [attr.aria-label]=\"absoluteTime()\" [nolTooltip]=\"absoluteTime()\">{{ shownTime() }}</time>\n</ng-template>\n<ng-template #actionsTemplate>\n <div class=\"nol-message-actions\" nolToolbar [nolToolbarLabel]=\"partResources.messageActionsLabel\" [nolToolbarItems]=\"actionItems()\">\n <ng-content select=\"[nolMessageAction]\" />\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-message-copy\" [class.nol-message-copied]=\"isCopied()\" [icon]=\"copyGlyph()\" [label]=\"copyLabel()\"\n [nolTooltip]=\"copyLabel()\" (click)=\"copy()\"></button>\n </div>\n</ng-template>\n<ng-template #footerEndTemplate>\n <div class=\"nol-message-footer-end\">\n <ng-content select=\"[nolMessageFooterEnd]\" />\n </div>\n</ng-template>\n<ng-template #footerTemplate>\n <div class=\"nol-message-footer\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n <ng-container *ngTemplateOutlet=\"timeTemplate\" />\n @if (hasFooterEnd()) {\n <ng-container *ngTemplateOutlet=\"footerEndTemplate\" />\n }\n </div>\n</ng-template>\n<ng-template #avatarTemplate>\n <nol-avatar class=\"nol-message-avatar\" [name]=\"author().name\" [image]=\"author().avatar\" [initials]=\"author().initials\" [color]=\"author().accent\" [decorative]=\"true\"\n [size]=\"isColumn() ? avatarSizes.Small : avatarSizes.Normal\" [filledColor]=\"author().avatarColor\" [unavailable]=\"author().unavailable\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\" />\n</ng-template>\n@if (isRow()) {\n <div class=\"nol-message-gutter\">\n @if (!continuation()) {\n <ng-container *ngTemplateOutlet=\"avatarTemplate\" />\n }\n </div>\n}\n<div class=\"nol-message-main\">\n <span class=\"nol-message-label\" hidden [attr.id]=\"labelId()\">{{ label() }}</span>\n @if (isRow() && !continuation()) {\n <div class=\"nol-message-header\">\n <span class=\"nol-message-author\" [class.nol-message-author-unavailable]=\"author().unavailable\" data-truncates [attr.tabindex]=\"authorDescription() ? 0 : null\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\">{{ author().name }}</span>\n <ng-container *ngTemplateOutlet=\"timeTemplate\" />\n </div>\n } @else if (isColumn() && !isBubble() && header()) {\n <div class=\"nol-message-header\">\n @if (author().kind !== authorKinds.System) {\n <ng-container *ngTemplateOutlet=\"avatarTemplate\" />\n }\n <span class=\"nol-message-author\" [class.nol-message-author-unavailable]=\"author().unavailable\" data-truncates [attr.tabindex]=\"authorDescription() ? 0 : null\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\">{{ author().name }}</span>\n <ng-content select=\"[nolMessageHeader]\" />\n @if (!hasFooter()) {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n </div>\n } @else if (isColumn() && !isBubble() && !hasFooter()) {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n <div class=\"nol-message-content\">\n @if (isEmpty()) {\n @if (!isStreaming()) {\n <p class=\"nol-message-empty\">{{ partResources.messageEmptyText }}</p>\n }\n } @else {\n @for (part of parts(); track part.key) {\n @if (part.isRun) {\n <nol-message-run [blocks]=\"part.blocks\" [streaming]=\"isStreaming()\" [collapsible]=\"!isColumn()\" [entering]=\"entering()\" [mentions]=\"mentions()\"\n [mentionNames]=\"mentionNames()\" [fileLinks]=\"fileLinks()\" [folderLinks]=\"folderLinks()\" [references]=\"references()\" [linkSchemes]=\"linkSchemes()\" [shellRuns]=\"shellRuns()\" [math]=\"math()\" (linkActivate)=\"linkActivate.emit($event)\" (linkOpen)=\"linkOpen.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"\n (fileActivate)=\"fileActivate.emit($event)\" (shellRun)=\"shellRun.emit($event)\" />\n } @else {\n @for (block of part.blocks; track $index) {\n @if (isAttachment(block) && block.picture; as picture) {\n <button type=\"button\" class=\"nol-message-picture\" [attr.data-nol-attachment]=\"block.id\" [attr.aria-label]=\"block.name\" [nolTooltip]=\"block.tooltip ?? ''\" [nolTooltipDisabled]=\"!block.tooltip\"\n [style.--nol-message-picture-width]=\"picture.width + 'px'\" [style.--nol-message-picture-ratio]=\"picture.ratio\" (click)=\"attachmentOpen.emit(block.id)\">\n <img class=\"nol-message-picture-image\" [src]=\"picture.source\" alt=\"\" [width]=\"picture.width\" [height]=\"picture.height\">\n </button>\n } @else if (isAttachment(block)) {\n <button type=\"button\" class=\"nol-message-attachment\" [attr.data-nol-attachment]=\"block.id\" [nolTooltip]=\"block.tooltip ?? ''\" [nolTooltipDisabled]=\"!block.tooltip\" (click)=\"attachmentOpen.emit(block.id)\">\n @if (block.preview; as preview) {\n <img class=\"nol-message-attachment-preview\" [src]=\"preview\" alt=\"\">\n } @else {\n <span class=\"nol-message-attachment-mark\"><nol-file-badge [fileName]=\"block.name\" /></span>\n }\n <span class=\"nol-message-attachment-text\">\n <span class=\"nol-message-attachment-name\" data-truncates>{{ block.name }}</span>\n <span class=\"nol-message-attachment-size\">{{ sizeOf(block) }}</span>\n </span>\n </button>\n } @else if (isSlot(block)) {\n @if (slotOf(block.id); as slot) {\n <ng-container *ngTemplateOutlet=\"slot\" />\n }\n }\n }\n }\n }\n }\n </div>\n @if (isBubble() && hasFooter()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n }\n @if (!isColumn()) {\n @switch (status()) {\n @case (statuses.Streaming) {\n <div class=\"nol-message-status\">\n <nol-spinner [isDelayed]=\"false\" />\n <span>{{ partResources.messageStreamingLabel }}</span>\n </div>\n }\n @case (statuses.Cancelled) {\n <div class=\"nol-message-status\">\n <span class=\"material-symbols-rounded nol-message-status-glyph\" aria-hidden=\"true\">{{ partResources.messageCancelledGlyph }}</span>\n <span>{{ partResources.messageCancelledLabel }}</span>\n </div>\n }\n @case (statuses.Error) {\n <div class=\"nol-message-error\">\n <span class=\"material-symbols-rounded nol-message-status-glyph\" aria-hidden=\"true\">{{ partResources.messageErrorGlyph }}</span>\n <span class=\"nol-message-error-text\">{{ errorText() }}</span>\n @if (retries.isListened()) {\n <button type=\"button\" nol-button class=\"nol-message-retry\" [variant]=\"variants.Secondary\" (click)=\"retries.emit()\">{{ partResources.messageRetryLabel }}</button>\n }\n </div>\n }\n }\n }\n @if (isColumn() && !isBubble()) {\n @if (hasFooter()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n }\n } @else if (isRow()) {\n @if (hasFooterEnd()) {\n <div #tools class=\"nol-message-tools\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n <ng-container *ngTemplateOutlet=\"footerEndTemplate\" />\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n }\n</div>\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.nol-message {\n --nol-message-actions-top: initial;\n --nol-message-actions-end: initial;\n\n display: flex;\n gap: var(--nol-space-3);\n position: relative;\n box-sizing: border-box;\n min-width: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n border-inline-start: calc(var(--nol-border-width) * 3) solid transparent;\n color: var(--nol-text);\n font-size: var(--nol-text-message);\n}\n\n.nol-message-continuation {\n padding-top: 0;\n}\n\n.nol-message-column {\n padding: var(--nol-space-6) 0 0;\n border-inline-start-width: 0;\n}\n\n.nol-message-column.nol-message-bubble .nol-message-content {\n max-width: 70%;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-main {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-header {\n grid-area: 1 / 1;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-content {\n grid-area: 2 / 1;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-footer {\n grid-area: 3 / 1;\n}\n\n.nol-message-column .nol-message-header {\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-1) var(--nol-space-3);\n padding-inline-end: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-message-column .nol-message-author {\n color: inherit;\n font-weight: 400;\n}\n\n.nol-message-column :is(.nol-message-header, .nol-message-time) {\n font-size: var(--nol-text-panel);\n}\n\n.nol-message-column.nol-message-system .nol-message-content {\n color: var(--nol-text);\n}\n\n.nol-message-column.nol-message-selected {\n box-shadow: inset calc(var(--nol-border-width) * 3) 0 var(--nol-accent);\n}\n\n.nol-message-column.nol-message-selected:dir(rtl) {\n box-shadow: inset calc(var(--nol-border-width) * -3) 0 var(--nol-accent);\n}\n\n.nol-message-author-unavailable {\n opacity: 0.5;\n}\n\n.nol-message-copied .nol-icon-button-glyph {\n color: var(--nol-added);\n animation: nol-copied-pop 200ms ease-out;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n.nol-message-bubble {\n padding-inline-end: 0;\n}\n\n.nol-message-bubble .nol-message-main {\n align-items: flex-end;\n gap: var(--nol-space-1);\n}\n\n.nol-message-bubble .nol-message-content {\n box-sizing: border-box;\n max-width: calc((100% + var(--nol-space-3) + var(--nol-border-width) * 3) * 0.7);\n padding: var(--nol-space-3) var(--nol-space-4);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.nol-message-footer {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n opacity: 0;\n transition: opacity 120ms linear;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n}\n\n.nol-message-footer .nol-message-time {\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-message-footer .nol-message-actions,\n.nol-message-tools .nol-message-actions {\n position: static;\n opacity: 1;\n}\n\n.nol-message-header .nol-message-actions {\n position: static;\n margin-block: calc((var(--nol-line-panel) - var(--nol-icon-button-target)) / 2);\n transition: opacity 120ms linear;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n}\n\n.nol-message-footer-end {\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.nol-message-footer-end > [data-nol-placement=\"End\"] {\n margin-inline-start: auto;\n}\n\n.nol-message-tools {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n position: absolute;\n top: var(--nol-space-1);\n inset-inline-end: var(--nol-space-2);\n opacity: 0;\n}\n\n.nol-message:has(.nol-message-tools) .nol-message-header {\n padding-inline-end: calc(var(--nol-message-tools-width, 0px) + var(--nol-space-2));\n}\n\n.nol-message-selected {\n border-inline-start-color: var(--nol-accent);\n background-color: var(--nol-selected);\n}\n\n.nol-message-selected.nol-message-raised-selection {\n border-inline-start-color: transparent;\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-raised);\n box-shadow: none;\n}\n\n.nol-message-column.nol-message-selected.nol-message-raised-selection {\n box-shadow: none;\n}\n\n.nol-message-flashing:not(.nol-message-bubble) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, transparent);\n}\n\n.nol-message-flashing.nol-message-selected:not(.nol-message-bubble, .nol-message-column) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-selected));\n}\n\n.nol-message-flashing.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-raised));\n}\n\n.nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before {\n content: \"\";\n grid-area: 1 / 1 / 3 / 2;\n margin: calc(var(--nol-space-3) * -1) calc(var(--nol-space-4) * -1);\n border-radius: var(--nol-radius-medium);\n pointer-events: none;\n}\n\n.nol-message-column.nol-message-headless:not(.nol-message-bubble) .nol-message-content {\n grid-row: 1;\n}\n\n.nol-message-column.nol-message-headless:not(.nol-message-bubble) .nol-message-footer {\n grid-row: 2;\n}\n\n.nol-message-flashing.nol-message-column.nol-message-headless:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before {\n grid-row: 1;\n}\n\n.nol-message-flashing.nol-message-bubble .nol-message-content {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-raised));\n}\n\n.nol-message-flashing:not(.nol-message-bubble, .nol-message-column),\n.nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble),\n.nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before,\n.nol-message-flashing.nol-message-bubble .nol-message-content {\n animation: nol-message-flash 1.6s ease-out var(--nol-message-flash-delay, 0ms);\n\n @media (prefers-reduced-motion: reduce) {\n animation-timing-function: step-end;\n }\n}\n\n@keyframes nol-message-flash {\n from {\n background-color: var(--nol-message-flash);\n }\n}\n\n@keyframes nol-message-flash-outline {\n from {\n opacity: 1;\n }\n}\n\n.nol-message-gutter {\n display: flex;\n flex: none;\n flex-direction: column;\n width: var(--nol-avatar);\n}\n\n.nol-message-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.nol-message-header {\n display: flex;\n align-items: baseline;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-end: calc(var(--nol-message-action-count, 1) * (var(--nol-icon-button-target) + var(--nol-space-1)) + var(--nol-space-1));\n}\n\n.nol-message-author {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-message-time {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-system .nol-message-content {\n color: var(--nol-text-muted);\n}\n\n.nol-message-content {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n user-select: text;\n}\n\n.nol-message-empty {\n margin: 0;\n color: var(--nol-text-muted);\n font-style: italic;\n}\n\n.nol-message-attachment {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n max-width: 100%;\n padding: var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-panel);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n align-self: flex-start;\n}\n\n.nol-message-attachment:is(:hover, [data-nol-state=\"Hover\"]) {\n background-color: var(--nol-hover);\n}\n\n.nol-message-attachment:is(:hover, [data-nol-state=\"Hover\"]):not(:focus-visible, [data-nol-state=\"Focus\"]) {\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-message-picture {\n position: relative;\n display: block;\n box-sizing: border-box;\n width: max(var(--nol-pointer-target), min(var(--nol-message-picture-width), var(--nol-message-picture-height) * var(--nol-message-picture-ratio)));\n max-width: 100%;\n min-height: var(--nol-pointer-target);\n max-height: max(var(--nol-pointer-target), var(--nol-message-picture-height));\n aspect-ratio: var(--nol-message-picture-ratio);\n padding: 0;\n border: 0;\n border-radius: var(--nol-radius-medium);\n overflow: hidden;\n background-color: transparent;\n cursor: zoom-in;\n align-self: flex-start;\n}\n\n.nol-message-picture::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: inherit;\n pointer-events: none;\n\n @media (forced-colors: active) {\n border-color: CanvasText;\n }\n}\n\n.nol-message-picture:is(:hover, [data-nol-state=\"Hover\"]):not(:focus-visible, [data-nol-state=\"Focus\"]) {\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-message-picture-image {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n}\n\n.nol-message-attachment-preview {\n width: 3rem;\n height: 3rem;\n flex: none;\n border-radius: var(--nol-radius-small);\n object-fit: cover;\n}\n\n.nol-message-attachment-mark {\n display: flex;\n flex: none;\n align-self: flex-start;\n align-items: center;\n height: 1lh;\n}\n\n.nol-message-attachment-text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.nol-message-attachment-size {\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-status,\n.nol-message-error {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-error {\n flex-wrap: wrap;\n color: var(--nol-text);\n}\n\n.nol-message-error .nol-message-status-glyph {\n color: var(--nol-error);\n}\n\n.nol-message-selected :is(.nol-message-time, .nol-message-empty, .nol-message-status, .nol-markdown-quote, .nol-markdown-view.nol-message-interim),\n.nol-message-selected.nol-message-column .nol-message-header,\n.nol-message-selected.nol-message-system .nol-message-content {\n color: var(--nol-text);\n}\n\n.nol-message-actions {\n display: flex;\n gap: var(--nol-space-1);\n position: absolute;\n top: var(--nol-message-actions-top, var(--nol-space-1));\n inset-inline-end: var(--nol-message-actions-end, var(--nol-space-2));\n opacity: 0;\n}\n\n.nol-message:is(:hover, :focus-within, :has([data-nol-state=\"Hover\"], [data-nol-state=\"Focus\"])) :is(.nol-message-actions, .nol-message-footer, .nol-message-tools),\n.nol-message:has(:is(.nol-message-actions, .nol-message-footer, .nol-message-tools) [aria-expanded=\"true\"]) :is(.nol-message-actions, .nol-message-footer, .nol-message-tools),\n:is(:focus-within, [data-nol-state=\"Focus\"]) > .nol-message :is(.nol-message-actions, .nol-message-footer, .nol-message-tools) {\n opacity: 1;\n}\n\n:is(.nol-message-footer, .nol-message-tools):has(> .nol-message-footer-end > [data-nol-placement=\"End\"]) {\n opacity: 1;\n}\n\n@media (hover: none) {\n :is(.nol-message-actions, .nol-message-footer, .nol-message-tools) {\n opacity: 1;\n }\n}\n\n@media (forced-colors: active) {\n .nol-message {\n border-inline-start-color: Canvas;\n }\n\n .nol-message-selected {\n border-inline-start-color: Highlight;\n }\n\n .nol-message-selected.nol-message-raised-selection {\n border-inline-start-color: Canvas;\n }\n\n .nol-message-column.nol-message-selected,\n .nol-message-selected.nol-message-raised-selection {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * -2);\n }\n\n .nol-message-bubble .nol-message-content {\n outline: var(--nol-border-width) solid CanvasText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column),\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble),\n .nol-message-flashing.nol-message-bubble .nol-message-content {\n animation: none;\n }\n\n .nol-message-flashing.nol-message-bubble .nol-message-content {\n position: relative;\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-bubble .nol-message-content::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before,\n .nol-message-flashing.nol-message-bubble .nol-message-content::after {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * -2);\n opacity: 0;\n pointer-events: none;\n animation: nol-message-flash-outline 1.6s ease-out var(--nol-message-flash-delay, 0ms);\n\n @media (prefers-reduced-motion: reduce) {\n animation-timing-function: step-end;\n }\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after {\n inset-inline-start: calc(var(--nol-border-width) * -3);\n }\n\n .nol-message-flashing.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after {\n outline-offset: calc(var(--nol-border-width) * -4);\n }\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MessageRunComponent, selector: "nol-message-run", inputs: ["blocks", "streaming", "collapsible", "mentions", "mentionNames", "entering", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "shellRun"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], viewProviders: [{ provide: MarkdownFilePaths, useFactory: () => new MarkdownFilePaths() },
|
|
387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
388
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: MessageComponent, isStandalone: true, selector: "nol-message", inputs: { author: { classPropertyName: "author", publicName: "author", isSignal: true, isRequired: true, transformFunction: null }, authorDescription: { classPropertyName: "authorDescription", publicName: "authorDescription", isSignal: true, isRequired: false, transformFunction: null }, time: { classPropertyName: "time", publicName: "time", isSignal: true, isRequired: true, transformFunction: null }, blocks: { classPropertyName: "blocks", publicName: "blocks", isSignal: true, isRequired: true, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, error: { classPropertyName: "error", publicName: "error", isSignal: true, isRequired: false, transformFunction: null }, key: { classPropertyName: "key", publicName: "key", isSignal: true, isRequired: false, transformFunction: null }, continuation: { classPropertyName: "continuation", publicName: "continuation", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, selectionLook: { classPropertyName: "selectionLook", publicName: "selectionLook", isSignal: true, isRequired: false, transformFunction: null }, header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, footer: { classPropertyName: "footer", publicName: "footer", isSignal: true, isRequired: false, transformFunction: null }, actionsTop: { classPropertyName: "actionsTop", publicName: "actionsTop", isSignal: true, isRequired: false, transformFunction: null }, actionsEnd: { classPropertyName: "actionsEnd", publicName: "actionsEnd", isSignal: true, isRequired: false, transformFunction: null }, flashStart: { classPropertyName: "flashStart", publicName: "flashStart", isSignal: true, isRequired: false, transformFunction: null }, labelId: { classPropertyName: "labelId", publicName: "labelId", isSignal: true, isRequired: false, transformFunction: null }, collapsedHeight: { classPropertyName: "collapsedHeight", publicName: "collapsedHeight", isSignal: true, isRequired: false, transformFunction: null }, layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, timeFormat: { classPropertyName: "timeFormat", publicName: "timeFormat", isSignal: true, isRequired: false, transformFunction: null }, twentyFourHour: { classPropertyName: "twentyFourHour", publicName: "twentyFourHour", isSignal: true, isRequired: false, transformFunction: null }, mentions: { classPropertyName: "mentions", publicName: "mentions", isSignal: true, isRequired: false, transformFunction: null }, mentionNames: { classPropertyName: "mentionNames", publicName: "mentionNames", isSignal: true, isRequired: false, transformFunction: null }, fileLinks: { classPropertyName: "fileLinks", publicName: "fileLinks", isSignal: true, isRequired: false, transformFunction: null }, linkSchemes: { classPropertyName: "linkSchemes", publicName: "linkSchemes", isSignal: true, isRequired: false, transformFunction: null }, copyText: { classPropertyName: "copyText", publicName: "copyText", isSignal: true, isRequired: false, transformFunction: null }, folderLinks: { classPropertyName: "folderLinks", publicName: "folderLinks", isSignal: true, isRequired: false, transformFunction: null }, references: { classPropertyName: "references", publicName: "references", isSignal: true, isRequired: false, transformFunction: null }, shellRuns: { classPropertyName: "shellRuns", publicName: "shellRuns", isSignal: true, isRequired: false, transformFunction: null }, shellRunStates: { classPropertyName: "shellRunStates", publicName: "shellRunStates", isSignal: true, isRequired: false, transformFunction: null }, shellRunOutputs: { classPropertyName: "shellRunOutputs", publicName: "shellRunOutputs", isSignal: true, isRequired: false, transformFunction: null }, math: { classPropertyName: "math", publicName: "math", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { copied: "copied", retry: "retry", attachmentOpen: "attachmentOpen", linkActivate: "linkActivate", linkOpen: "linkOpen", linkMenu: "linkMenu", fileActivate: "fileActivate", filePathsChange: "filePathsChange", shellRun: "shellRun", contextMenuRequest: "contextMenuRequest" }, host: { listeners: { "keydown.escape": "leave($event)", "keydown": "requestMenuFromKeyboard($event)", "keyup": "releaseMenuKey($event)", "contextmenu": "requestMenu($event)", "animationstart": "continueFlash($event)" }, properties: { "class.nol-message-bubble": "isBubble()", "class.nol-message-column": "isColumn()", "class.nol-message-headless": "isHeadless()", "class.nol-message-continuation": "isContinued()", "class.nol-message-selected": "selected()", "class.nol-message-raised-selection": "isRaisedSelection()", "class.nol-message-flashing": "flashStart() !== null", "class.nol-message-system": "author().kind === authorKinds.System", "style.--nol-message-collapsed-height": "collapsedLength()", "style.--nol-message-action-count": "actionItems().length + 1", "style.--nol-message-actions-top": "actionsTop()", "style.--nol-message-actions-end": "actionsEnd()" }, classAttribute: "nol-message" }, providers: [{ provide: MarkdownViewTokens.images, useFactory: () => new MarkdownImages() }], queries: [{ propertyName: "slots", predicate: MessageSlotDirective, isSignal: true }, { propertyName: "actions", predicate: MessageActionDirective, isSignal: true }, { propertyName: "footerEnds", predicate: MessageFooterEndDirective, isSignal: true }, { propertyName: "image", first: true, predicate: MessageImageDirective, isSignal: true }, { propertyName: "shellRunOutput", first: true, predicate: ShellRunOutputDirective, isSignal: true }], viewQueries: [{ propertyName: "tools", first: true, predicate: ["tools"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-template #timeTemplate>\n <time class=\"nol-message-time\" tabindex=\"0\" [attr.datetime]=\"isoTime()\" [attr.aria-label]=\"absoluteTime()\" [nolTooltip]=\"absoluteTime()\">{{ shownTime() }}</time>\n</ng-template>\n<ng-template #actionsTemplate>\n <div class=\"nol-message-actions\" nolToolbar [nolToolbarLabel]=\"partResources.messageActionsLabel\" [nolToolbarItems]=\"actionItems()\">\n <ng-content select=\"[nolMessageAction]\" />\n <button type=\"button\" nol-icon-button nolToolbarItem class=\"nol-message-copy\" [class.nol-message-copied]=\"isCopied()\" [icon]=\"copyGlyph()\" [label]=\"copyLabel()\"\n [nolTooltip]=\"copyLabel()\" (click)=\"copy()\"></button>\n </div>\n</ng-template>\n<ng-template #footerEndTemplate>\n <div class=\"nol-message-footer-end\">\n <ng-content select=\"[nolMessageFooterEnd]\" />\n </div>\n</ng-template>\n<ng-template #footerTemplate>\n <div class=\"nol-message-footer\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n <ng-container *ngTemplateOutlet=\"timeTemplate\" />\n @if (hasFooterEnd()) {\n <ng-container *ngTemplateOutlet=\"footerEndTemplate\" />\n }\n </div>\n</ng-template>\n<ng-template #avatarTemplate>\n <nol-avatar class=\"nol-message-avatar\" [name]=\"author().name\" [image]=\"author().avatar\" [initials]=\"author().initials\" [color]=\"author().accent\" [decorative]=\"true\"\n [size]=\"isColumn() ? avatarSizes.Small : avatarSizes.Normal\" [filledColor]=\"author().avatarColor\" [unavailable]=\"author().unavailable\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\" />\n</ng-template>\n@if (isRow()) {\n <div class=\"nol-message-gutter\">\n @if (!continuation()) {\n <ng-container *ngTemplateOutlet=\"avatarTemplate\" />\n }\n </div>\n}\n<div class=\"nol-message-main\">\n <span class=\"nol-message-label\" hidden [attr.id]=\"labelId()\">{{ label() }}</span>\n @if (isRow() && !continuation()) {\n <div class=\"nol-message-header\">\n <span class=\"nol-message-author\" [class.nol-message-author-unavailable]=\"author().unavailable\" data-truncates [attr.tabindex]=\"authorDescription() ? 0 : null\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\">{{ author().name }}</span>\n <ng-container *ngTemplateOutlet=\"timeTemplate\" />\n </div>\n } @else if (isColumn() && !isBubble() && header()) {\n <div class=\"nol-message-header\">\n @if (author().kind !== authorKinds.System) {\n <ng-container *ngTemplateOutlet=\"avatarTemplate\" />\n }\n <span class=\"nol-message-author\" [class.nol-message-author-unavailable]=\"author().unavailable\" data-truncates [attr.tabindex]=\"authorDescription() ? 0 : null\"\n [nolTooltip]=\"author().name\" [nolTooltipDescription]=\"authorDescription()\" [nolTooltipDisabled]=\"!authorDescription()\">{{ author().name }}</span>\n <ng-content select=\"[nolMessageHeader]\" />\n @if (!hasFooter()) {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n </div>\n } @else if (isColumn() && !isBubble() && !hasFooter()) {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n <div class=\"nol-message-content\">\n @if (isEmpty()) {\n @if (!isStreaming()) {\n <p class=\"nol-message-empty\">{{ partResources.messageEmptyText }}</p>\n }\n } @else {\n @for (part of parts(); track part.key) {\n @if (part.isRun) {\n <nol-message-run [blocks]=\"part.blocks\" [streaming]=\"isStreaming()\" [collapsible]=\"!isColumn()\" [entering]=\"entering()\" [mentions]=\"mentions()\"\n [mentionNames]=\"mentionNames()\" [fileLinks]=\"fileLinks()\" [folderLinks]=\"folderLinks()\" [references]=\"references()\" [linkSchemes]=\"linkSchemes()\" [shellRuns]=\"shellRuns()\" [math]=\"math()\" (linkActivate)=\"linkActivate.emit($event)\" (linkOpen)=\"linkOpen.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"\n (fileActivate)=\"fileActivate.emit($event)\" (shellRun)=\"shellRun.emit($event)\" />\n } @else {\n @for (block of part.blocks; track $index) {\n @if (isAttachment(block) && block.picture; as picture) {\n <button type=\"button\" class=\"nol-message-picture\" [attr.data-nol-attachment]=\"block.id\" [attr.aria-label]=\"block.name\" [nolTooltip]=\"block.tooltip ?? ''\" [nolTooltipDisabled]=\"!block.tooltip\"\n [style.--nol-message-picture-width]=\"picture.width + 'px'\" [style.--nol-message-picture-ratio]=\"picture.ratio\" (click)=\"attachmentOpen.emit(block.id)\">\n <img class=\"nol-message-picture-image\" [src]=\"picture.source\" alt=\"\" [width]=\"picture.width\" [height]=\"picture.height\">\n </button>\n } @else if (isAttachment(block)) {\n <button type=\"button\" class=\"nol-message-attachment\" [attr.data-nol-attachment]=\"block.id\" [nolTooltip]=\"block.tooltip ?? ''\" [nolTooltipDisabled]=\"!block.tooltip\" (click)=\"attachmentOpen.emit(block.id)\">\n @if (block.preview; as preview) {\n <img class=\"nol-message-attachment-preview\" [src]=\"preview\" alt=\"\">\n } @else {\n <span class=\"nol-message-attachment-mark\"><nol-file-badge [fileName]=\"block.name\" /></span>\n }\n <span class=\"nol-message-attachment-text\">\n <span class=\"nol-message-attachment-name\" data-truncates>{{ block.name }}</span>\n <span class=\"nol-message-attachment-size\">{{ sizeOf(block) }}</span>\n </span>\n </button>\n } @else if (isSlot(block)) {\n @if (slotOf(block.id); as slot) {\n <ng-container *ngTemplateOutlet=\"slot\" />\n }\n }\n }\n }\n }\n }\n </div>\n @if (isBubble() && hasFooter()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n }\n @if (!isColumn()) {\n @switch (status()) {\n @case (statuses.Streaming) {\n <div class=\"nol-message-status\">\n <nol-spinner [isDelayed]=\"false\" />\n <span>{{ partResources.messageStreamingLabel }}</span>\n </div>\n }\n @case (statuses.Cancelled) {\n <div class=\"nol-message-status\">\n <span class=\"material-symbols-rounded nol-message-status-glyph\" aria-hidden=\"true\">{{ partResources.messageCancelledGlyph }}</span>\n <span>{{ partResources.messageCancelledLabel }}</span>\n </div>\n }\n @case (statuses.Error) {\n <div class=\"nol-message-error\">\n <span class=\"material-symbols-rounded nol-message-status-glyph\" aria-hidden=\"true\">{{ partResources.messageErrorGlyph }}</span>\n <span class=\"nol-message-error-text\">{{ errorText() }}</span>\n @if (retries.isListened()) {\n <button type=\"button\" nol-button class=\"nol-message-retry\" [variant]=\"variants.Secondary\" (click)=\"retries.emit()\">{{ partResources.messageRetryLabel }}</button>\n }\n </div>\n }\n }\n }\n @if (isColumn() && !isBubble()) {\n @if (hasFooter()) {\n <ng-container *ngTemplateOutlet=\"footerTemplate\" />\n }\n } @else if (isRow()) {\n @if (hasFooterEnd()) {\n <div #tools class=\"nol-message-tools\">\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n <ng-container *ngTemplateOutlet=\"footerEndTemplate\" />\n </div>\n } @else {\n <ng-container *ngTemplateOutlet=\"actionsTemplate\" />\n }\n }\n</div>\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.nol-message {\n --nol-message-actions-top: initial;\n --nol-message-actions-end: initial;\n\n display: flex;\n gap: var(--nol-space-3);\n position: relative;\n box-sizing: border-box;\n min-width: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n border-inline-start: calc(var(--nol-border-width) * 3) solid transparent;\n color: var(--nol-text);\n font-size: var(--nol-text-message);\n}\n\n.nol-message-continuation {\n padding-top: 0;\n}\n\n.nol-message-column {\n padding: var(--nol-space-6) 0 0;\n border-inline-start-width: 0;\n}\n\n.nol-message-column.nol-message-bubble .nol-message-content {\n max-width: 70%;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-main {\n display: grid;\n grid-template-columns: minmax(0, 1fr);\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-header {\n grid-area: 1 / 1;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-content {\n grid-area: 2 / 1;\n}\n\n.nol-message-column:not(.nol-message-bubble) .nol-message-footer {\n grid-area: 3 / 1;\n}\n\n.nol-message-column .nol-message-header {\n flex-wrap: wrap;\n align-items: center;\n gap: var(--nol-space-1) var(--nol-space-3);\n padding-inline-end: 0;\n color: var(--nol-text-muted);\n}\n\n.nol-message-column .nol-message-author {\n color: inherit;\n font-weight: 400;\n}\n\n.nol-message-column :is(.nol-message-header, .nol-message-time) {\n font-size: var(--nol-text-panel);\n}\n\n.nol-message-column.nol-message-system .nol-message-content {\n color: var(--nol-text);\n}\n\n.nol-message-column.nol-message-selected {\n box-shadow: inset calc(var(--nol-border-width) * 3) 0 var(--nol-accent);\n}\n\n.nol-message-column.nol-message-selected:dir(rtl) {\n box-shadow: inset calc(var(--nol-border-width) * -3) 0 var(--nol-accent);\n}\n\n.nol-message-author-unavailable {\n opacity: 0.5;\n}\n\n.nol-message-copied .nol-icon-button-glyph {\n color: var(--nol-added);\n animation: nol-copied-pop 200ms ease-out;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n.nol-message-bubble {\n padding-inline-end: 0;\n}\n\n.nol-message-bubble .nol-message-main {\n align-items: flex-end;\n gap: var(--nol-space-1);\n}\n\n.nol-message-bubble .nol-message-content {\n box-sizing: border-box;\n max-width: calc((100% + var(--nol-space-3) + var(--nol-border-width) * 3) * 0.7);\n padding: var(--nol-space-3) var(--nol-space-4);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-raised);\n}\n\n.nol-message-footer {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n opacity: 0;\n transition: opacity 120ms linear;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n}\n\n.nol-message-footer .nol-message-time {\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-message-footer .nol-message-actions,\n.nol-message-tools .nol-message-actions {\n position: static;\n opacity: 1;\n}\n\n.nol-message-header .nol-message-actions {\n position: static;\n margin-block: calc((var(--nol-line-panel) - var(--nol-icon-button-target)) / 2);\n transition: opacity 120ms linear;\n\n @media (prefers-reduced-motion: reduce) {\n transition: none;\n }\n}\n\n.nol-message-footer-end {\n display: flex;\n flex: 1 0 auto;\n align-items: center;\n gap: var(--nol-space-1);\n}\n\n.nol-message-footer-end > [data-nol-placement=\"End\"] {\n margin-inline-start: auto;\n}\n\n.nol-message-tools {\n display: flex;\n align-items: center;\n gap: var(--nol-space-1);\n position: absolute;\n top: var(--nol-space-1);\n inset-inline-end: var(--nol-space-2);\n opacity: 0;\n}\n\n.nol-message:has(.nol-message-tools) .nol-message-header {\n padding-inline-end: calc(var(--nol-message-tools-width, 0px) + var(--nol-space-2));\n}\n\n.nol-message-selected {\n border-inline-start-color: var(--nol-accent);\n background-color: var(--nol-selected);\n}\n\n.nol-message-selected.nol-message-raised-selection {\n border-inline-start-color: transparent;\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-raised);\n box-shadow: none;\n}\n\n.nol-message-column.nol-message-selected.nol-message-raised-selection {\n box-shadow: none;\n}\n\n.nol-message-flashing:not(.nol-message-bubble) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, transparent);\n}\n\n.nol-message-flashing.nol-message-selected:not(.nol-message-bubble, .nol-message-column) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-selected));\n}\n\n.nol-message-flashing.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble) {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-raised));\n}\n\n.nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before {\n content: \"\";\n grid-area: 1 / 1 / 3 / 2;\n margin: calc(var(--nol-space-3) * -1) calc(var(--nol-space-4) * -1);\n border-radius: var(--nol-radius-medium);\n pointer-events: none;\n}\n\n.nol-message-column.nol-message-headless:not(.nol-message-bubble) .nol-message-content {\n grid-row: 1;\n}\n\n.nol-message-column.nol-message-headless:not(.nol-message-bubble) .nol-message-footer {\n grid-row: 2;\n}\n\n.nol-message-flashing.nol-message-column.nol-message-headless:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before {\n grid-row: 1;\n}\n\n.nol-message-flashing.nol-message-bubble .nol-message-content {\n --nol-message-flash: color-mix(in srgb, var(--nol-accent) 18%, var(--nol-raised));\n}\n\n.nol-message-flashing:not(.nol-message-bubble, .nol-message-column),\n.nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble),\n.nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before,\n.nol-message-flashing.nol-message-bubble .nol-message-content {\n animation: nol-message-flash 1.6s ease-out var(--nol-message-flash-delay, 0ms);\n\n @media (prefers-reduced-motion: reduce) {\n animation-timing-function: step-end;\n }\n}\n\n@keyframes nol-message-flash {\n from {\n background-color: var(--nol-message-flash);\n }\n}\n\n@keyframes nol-message-flash-outline {\n from {\n opacity: 1;\n }\n}\n\n.nol-message-gutter {\n display: flex;\n flex: none;\n flex-direction: column;\n width: var(--nol-avatar);\n}\n\n.nol-message-main {\n display: flex;\n flex: 1;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.nol-message-header {\n display: flex;\n align-items: baseline;\n gap: var(--nol-space-2);\n min-width: 0;\n padding-inline-end: calc(var(--nol-message-action-count, 1) * (var(--nol-icon-button-target) + var(--nol-space-1)) + var(--nol-space-1));\n}\n\n.nol-message-author {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-message-time {\n flex: none;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-system .nol-message-content {\n color: var(--nol-text-muted);\n}\n\n.nol-message-content {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n user-select: text;\n}\n\n.nol-message-empty {\n margin: 0;\n color: var(--nol-text-muted);\n font-style: italic;\n}\n\n.nol-message-attachment {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n max-width: 100%;\n padding: var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n background-color: var(--nol-panel);\n color: inherit;\n font: inherit;\n text-align: start;\n cursor: pointer;\n align-self: flex-start;\n}\n\n.nol-message-attachment:is(:hover, [data-nol-state=\"Hover\"]) {\n background-color: var(--nol-hover);\n}\n\n.nol-message-attachment:is(:hover, [data-nol-state=\"Hover\"]):not(:focus-visible, [data-nol-state=\"Focus\"]) {\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-message-picture {\n position: relative;\n display: block;\n box-sizing: border-box;\n width: max(var(--nol-pointer-target), min(var(--nol-message-picture-width), var(--nol-message-picture-height) * var(--nol-message-picture-ratio)));\n max-width: 100%;\n min-height: var(--nol-pointer-target);\n max-height: max(var(--nol-pointer-target), var(--nol-message-picture-height));\n aspect-ratio: var(--nol-message-picture-ratio);\n padding: 0;\n border: 0;\n border-radius: var(--nol-radius-medium);\n overflow: hidden;\n background-color: transparent;\n cursor: zoom-in;\n align-self: flex-start;\n}\n\n.nol-message-picture::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: inherit;\n pointer-events: none;\n\n @media (forced-colors: active) {\n border-color: CanvasText;\n }\n}\n\n.nol-message-picture:is(:hover, [data-nol-state=\"Hover\"]):not(:focus-visible, [data-nol-state=\"Focus\"]) {\n @media (forced-colors: active) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-message-picture-image {\n display: block;\n width: 100%;\n height: 100%;\n object-fit: scale-down;\n}\n\n.nol-message-attachment-preview {\n width: 3rem;\n height: 3rem;\n flex: none;\n border-radius: var(--nol-radius-small);\n object-fit: cover;\n}\n\n.nol-message-attachment-mark {\n display: flex;\n flex: none;\n align-self: flex-start;\n align-items: center;\n height: 1lh;\n}\n\n.nol-message-attachment-text {\n display: flex;\n flex-direction: column;\n min-width: 0;\n}\n\n.nol-message-attachment-size {\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-status,\n.nol-message-error {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-message-error {\n flex-wrap: wrap;\n color: var(--nol-text);\n}\n\n.nol-message-error .nol-message-status-glyph {\n color: var(--nol-error);\n}\n\n.nol-message-selected :is(.nol-message-time, .nol-message-empty, .nol-message-status, .nol-markdown-quote, .nol-markdown-view.nol-message-interim),\n.nol-message-selected.nol-message-column .nol-message-header,\n.nol-message-selected.nol-message-system .nol-message-content {\n color: var(--nol-text);\n}\n\n.nol-message-actions {\n display: flex;\n gap: var(--nol-space-1);\n position: absolute;\n top: var(--nol-message-actions-top, var(--nol-space-1));\n inset-inline-end: var(--nol-message-actions-end, var(--nol-space-2));\n opacity: 0;\n}\n\n.nol-message:is(:hover, :focus-within, :has([data-nol-state=\"Hover\"], [data-nol-state=\"Focus\"])) :is(.nol-message-actions, .nol-message-footer, .nol-message-tools),\n.nol-message:has(:is(.nol-message-actions, .nol-message-footer, .nol-message-tools) [aria-expanded=\"true\"]) :is(.nol-message-actions, .nol-message-footer, .nol-message-tools),\n:is(:focus-within, [data-nol-state=\"Focus\"]) > .nol-message :is(.nol-message-actions, .nol-message-footer, .nol-message-tools) {\n opacity: 1;\n}\n\n:is(.nol-message-footer, .nol-message-tools):has(> .nol-message-footer-end > [data-nol-placement=\"End\"]) {\n opacity: 1;\n}\n\n@media (hover: none) {\n :is(.nol-message-actions, .nol-message-footer, .nol-message-tools) {\n opacity: 1;\n }\n}\n\n@media (forced-colors: active) {\n .nol-message {\n border-inline-start-color: Canvas;\n }\n\n .nol-message-selected {\n border-inline-start-color: Highlight;\n }\n\n .nol-message-selected.nol-message-raised-selection {\n border-inline-start-color: Canvas;\n }\n\n .nol-message-column.nol-message-selected,\n .nol-message-selected.nol-message-raised-selection {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * -2);\n }\n\n .nol-message-bubble .nol-message-content {\n outline: var(--nol-border-width) solid CanvasText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column),\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble),\n .nol-message-flashing.nol-message-bubble .nol-message-content {\n animation: none;\n }\n\n .nol-message-flashing.nol-message-bubble .nol-message-content {\n position: relative;\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-bubble .nol-message-content::after {\n content: \"\";\n position: absolute;\n inset: 0;\n border-radius: inherit;\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-column:not(.nol-message-bubble, .nol-message-selected.nol-message-raised-selection) .nol-message-main::before,\n .nol-message-flashing.nol-message-bubble .nol-message-content::after {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * -2);\n opacity: 0;\n pointer-events: none;\n animation: nol-message-flash-outline 1.6s ease-out var(--nol-message-flash-delay, 0ms);\n\n @media (prefers-reduced-motion: reduce) {\n animation-timing-function: step-end;\n }\n }\n\n .nol-message-flashing:not(.nol-message-bubble, .nol-message-column)::after {\n inset-inline-start: calc(var(--nol-border-width) * -3);\n }\n\n .nol-message-flashing.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after,\n .nol-message-flashing.nol-message-column.nol-message-selected.nol-message-raised-selection:not(.nol-message-bubble)::after {\n outline-offset: calc(var(--nol-border-width) * -4);\n }\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }, { kind: "component", type: ButtonComponent, selector: "button[nol-button], a[nol-button]", inputs: ["variant", "overlay", "backdrop", "danger", "size", "busy"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "component", type: MessageRunComponent, selector: "nol-message-run", inputs: ["blocks", "streaming", "collapsible", "mentions", "mentionNames", "entering", "fileLinks", "linkSchemes", "folderLinks", "references", "shellRuns", "math"], outputs: ["linkActivate", "linkOpen", "linkMenu", "fileActivate", "shellRun"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "directive", type: ToolbarDirective, selector: "[nolToolbar]", inputs: ["nolToolbarOrientation", "nolToolbarLabel", "nolToolbarWrap", "nolToolbarStart", "nolToolbarItems"] }, { kind: "directive", type: ToolbarItemDirective, selector: "[nolToolbarItem]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], viewProviders: [{ provide: MarkdownFilePaths, useFactory: () => new MarkdownFilePaths() },
|
|
389
389
|
{ provide: MarkdownViewTokens.filePaths, useExisting: MarkdownFilePaths }, { provide: ShellRunBlocks, useFactory: () => new ShellRunBlocks() }], encapsulation: i0.ViewEncapsulation.None });
|
|
390
390
|
}
|
|
391
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
391
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MessageComponent, decorators: [{
|
|
392
392
|
type: Component,
|
|
393
393
|
args: [{ selector: "nol-message", imports: [AvatarComponent, ButtonComponent, FileBadgeComponent, IconButtonComponent, MessageRunComponent, NgTemplateOutlet, SpinnerComponent, ToolbarDirective, ToolbarItemDirective, TooltipDirective], encapsulation: ViewEncapsulation.None, providers: [{ provide: MarkdownViewTokens.images, useFactory: () => new MarkdownImages() }], viewProviders: [{ provide: MarkdownFilePaths, useFactory: () => new MarkdownFilePaths() },
|
|
394
394
|
{ provide: MarkdownViewTokens.filePaths, useExisting: MarkdownFilePaths }, { provide: ShellRunBlocks, useFactory: () => new ShellRunBlocks() }], host: {
|
|
@@ -38,10 +38,10 @@ export class MeterComponent {
|
|
|
38
38
|
}
|
|
39
39
|
});
|
|
40
40
|
}
|
|
41
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
42
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
41
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MeterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
42
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: MeterComponent, isStandalone: true, selector: "nol-meter", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, warning: { classPropertyName: "warning", publicName: "warning", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "meter" }, properties: { "attr.aria-label": "label()", "attr.aria-valuemin": "minimum", "attr.aria-valuemax": "maximum", "attr.aria-valuenow": "fraction()", "attr.aria-valuetext": "valueText()", "class.nol-meter-warning": "warning()", "style.--nol-meter-fraction": "fraction()" } }, viewQueries: [{ propertyName: "text", first: true, predicate: ["text"], descendants: true, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<span class=\"nol-meter-track\"><span class=\"nol-meter-fill\"></span></span>\n<span #text class=\"nol-meter-text\"><ng-content /></span>\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 --nol-meter-color: var(--nol-progress);\n\n display: inline-flex;\n align-items: center;\n gap: var(--nol-meter-gap);\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-panel);\n white-space: nowrap;\n}\n\n:host(.nol-meter-warning) {\n --nol-meter-color: var(--nol-warning);\n\n color: var(--nol-warning);\n}\n\n.nol-meter-track {\n display: block;\n flex: none;\n width: var(--nol-meter);\n height: var(--nol-meter-height);\n overflow: hidden;\n border-radius: calc(var(--nol-meter-height) / 2);\n background: color-mix(in srgb, var(--nol-meter-color) 25%, transparent);\n\n @media (forced-colors: active) {\n outline: var(--nol-border-width) solid CanvasText;\n background: Canvas;\n forced-color-adjust: none;\n }\n}\n\n.nol-meter-fill {\n display: block;\n width: calc(var(--nol-meter-fraction) * 100%);\n height: 100%;\n border-radius: inherit;\n background: var(--nol-meter-color);\n\n @media (forced-colors: active) {\n background: CanvasText;\n forced-color-adjust: none;\n }\n}\n\n.nol-meter-text {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.nol-meter-text:empty {\n display: none;\n}\n"] });
|
|
43
43
|
}
|
|
44
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
44
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MeterComponent, decorators: [{
|
|
45
45
|
type: Component,
|
|
46
46
|
args: [{ selector: "nol-meter", host: {
|
|
47
47
|
"role": "meter",
|
|
@@ -13,10 +13,10 @@ export class PanelCardComponent {
|
|
|
13
13
|
...(ngDevMode ? [{ debugName: "isShell" }] : /* istanbul ignore next */ []));
|
|
14
14
|
surface = input(PanelSurface.Panel, /* @ts-ignore */
|
|
15
15
|
...(ngDevMode ? [{ debugName: "surface" }] : /* istanbul ignore next */ []));
|
|
16
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
17
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PanelCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
17
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.2.6", type: PanelCardComponent, isStandalone: true, selector: "nol-panel-card", inputs: { surface: { classPropertyName: "surface", publicName: "surface", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.nol-panel-card-shell": "isShell()" } }, 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<ng-content />\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n min-width: 0;\n min-height: 0;\n overflow: hidden;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-large);\n background-color: var(--nol-panel);\n color: var(--nol-text);\n}\n\n:host(.nol-panel-card-shell) {\n background-color: var(--nol-window);\n}\n"] });
|
|
18
18
|
}
|
|
19
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: PanelCardComponent, decorators: [{
|
|
20
20
|
type: Component,
|
|
21
21
|
args: [{ selector: "nol-panel-card", host: {
|
|
22
22
|
"[class.nol-panel-card-shell]": "isShell()"
|
|
@@ -22,10 +22,12 @@ import * as i0 from "@angular/core";
|
|
|
22
22
|
* none when the request leaves it unknown, and the minutes left before the
|
|
23
23
|
* request expires, updated each minute and formatted for `LOCALE_ID`. The
|
|
24
24
|
* description and the details follow, the details as plain code in the mono
|
|
25
|
-
* font. Details longer than
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
25
|
+
* font. Details longer than {@link PermissionCardComponent.detailLines},
|
|
26
|
+
* 3 lines by default, show that many lines and a Show all button, and then
|
|
27
|
+
* scroll inside the card; details as long or shorter show whole. The
|
|
28
|
+
* requester's line, its name and kind, or its name alone when it has no
|
|
29
|
+
* kind, isn't shown, since the card sits in the requester's message, but is
|
|
30
|
+
* in the card's description.
|
|
29
31
|
*
|
|
30
32
|
* The options are equal secondary buttons at the end of the card, a kit
|
|
31
33
|
* toolbar, one tab stop whose arrow keys move
|
|
@@ -49,7 +51,7 @@ import * as i0 from "@angular/core";
|
|
|
49
51
|
* Once it fails to send, ends or is decided, the outcome replaces the
|
|
50
52
|
* options, and focus that was on them moves to the card. When a pending
|
|
51
53
|
* request first shows, the card announces it through the {@link Announcer},
|
|
52
|
-
* as Permission request from, the requester and the heading: assertively
|
|
54
|
+
* as Permission request from, the requester's line and the heading: assertively
|
|
53
55
|
* when no other card is pending, and politely when one is. Each card keeps
|
|
54
56
|
* its own state, so several can be pending at once.
|
|
55
57
|
*/
|
|
@@ -84,10 +86,12 @@ export declare class PermissionCardComponent {
|
|
|
84
86
|
protected readonly confirmOption: Signal<PermissionOption | null>;
|
|
85
87
|
protected readonly defaultIndex: Signal<number>;
|
|
86
88
|
protected readonly riskClass: Signal<string | null>;
|
|
89
|
+
protected readonly requesterText: Signal<string>;
|
|
87
90
|
protected readonly describedBy: Signal<string>;
|
|
88
91
|
protected readonly expiryText: Signal<string | null>;
|
|
89
|
-
protected readonly
|
|
92
|
+
protected readonly lines: Signal<readonly string[]>;
|
|
90
93
|
protected readonly isCut: Signal<boolean>;
|
|
94
|
+
protected readonly scrollLines: Signal<number>;
|
|
91
95
|
protected readonly shownDetails: Signal<string>;
|
|
92
96
|
/**
|
|
93
97
|
* The request the card shows.
|
|
@@ -100,6 +104,14 @@ export declare class PermissionCardComponent {
|
|
|
100
104
|
* looks as it did. False when not bound.
|
|
101
105
|
*/
|
|
102
106
|
readonly detailsExpanded: import("@angular/core").ModelSignal<boolean>;
|
|
107
|
+
/**
|
|
108
|
+
* How many lines of details show before the Show all button; details with
|
|
109
|
+
* that many lines or fewer show whole. Once Show all is pressed, the details
|
|
110
|
+
* scroll inside a block as high as the larger of 12 lines and this count.
|
|
111
|
+
* A value is rounded down to a whole number of at least 1, and one that
|
|
112
|
+
* isn't a finite number counts as 3. 3 when not bound.
|
|
113
|
+
*/
|
|
114
|
+
readonly detailLines: import("@angular/core").InputSignalWithTransform<number, number>;
|
|
103
115
|
/**
|
|
104
116
|
* Emits the id of the option the person chose, once they confirmed it
|
|
105
117
|
* when the card asks, and again when they press Retry; once for each
|
|
@@ -166,5 +178,5 @@ export declare class PermissionCardComponent {
|
|
|
166
178
|
private hasFocus;
|
|
167
179
|
private optionButton;
|
|
168
180
|
static ɵfac: i0.ɵɵFactoryDeclaration<PermissionCardComponent, never>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionCardComponent, "nol-permission-card", never, { "request": { "alias": "request"; "required": true; "isSignal": true; }; "detailsExpanded": { "alias": "detailsExpanded"; "required": false; "isSignal": true; }; }, { "detailsExpanded": "detailsExpandedChange"; "decide": "decide"; }, never, never, true, never>;
|
|
181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PermissionCardComponent, "nol-permission-card", never, { "request": { "alias": "request"; "required": true; "isSignal": true; }; "detailsExpanded": { "alias": "detailsExpanded"; "required": false; "isSignal": true; }; "detailLines": { "alias": "detailLines"; "required": false; "isSignal": true; }; }, { "detailsExpanded": "detailsExpandedChange"; "decide": "decide"; }, never, never, true, never>;
|
|
170
182
|
}
|