@noldova/ui.components.angular 0.0.3 → 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 +2 -2
- 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.js +3 -3
- 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-dialog.component.js +3 -3
- 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-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.js +3 -3
- 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/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/testing/services/clipboard-writer-fixture.js +3 -3
|
@@ -16,10 +16,10 @@ export class MenuGroupActionDirective {
|
|
|
16
16
|
const button = inject(IconButtonComponent, { self: true });
|
|
17
17
|
effect(() => item.typeaheadLabel = button.label());
|
|
18
18
|
}
|
|
19
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
20
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuGroupActionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: MenuGroupActionDirective, isStandalone: true, selector: "button[nol-icon-button][nolMenuGroupAction]", host: { classAttribute: "nol-menu-group-action" }, hostDirectives: [{ directive: i1.KeptOpenMenuItemDirective, inputs: ["cdkMenuItemDisabled", "disabled"], outputs: ["cdkMenuItemTriggered", "triggered"] }], ngImport: i0 });
|
|
21
21
|
}
|
|
22
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuGroupActionDirective, decorators: [{
|
|
23
23
|
type: Directive,
|
|
24
24
|
args: [{
|
|
25
25
|
selector: "button[nol-icon-button][nolMenuGroupAction]",
|
|
@@ -73,10 +73,10 @@ export class MenuGroupComponent {
|
|
|
73
73
|
rows.scrollTop = Math.min(Math.max(this.settled, top + item.height - rows.clientHeight), top);
|
|
74
74
|
this.settled = rows.scrollTop;
|
|
75
75
|
}
|
|
76
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
77
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
76
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
77
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: MenuGroupComponent, isStandalone: true, selector: "nol-menu-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, maxRows: { classPropertyName: "maxRows", publicName: "maxRows", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "group" }, properties: { "attr.aria-labelledby": "labelId" } }, queries: [{ propertyName: "items", predicate: CdkMenuItem, read: ElementRef, isSignal: true }], viewQueries: [{ propertyName: "rows", first: true, predicate: ["rows"], 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<div class=\"nol-menu-label\" aria-hidden=\"true\" [id]=\"labelId\">{{ label() }}</div>\n<ng-content select=\"[nolMenuGroupAction]\" />\n<div #rows class=\"nol-menu-group-rows\" (scroll)=\"settle()\" (focusin)=\"reveal($event)\"><ng-content /></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:host {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n}\n\n.nol-menu-label {\n grid-row: 1;\n}\n\n:host(:has(> .nol-menu-group-action)) .nol-menu-label {\n padding-inline-end: calc(var(--nol-menu-item-inset) + var(--nol-menu-item-padding) + var(--nol-icon-button) + var(--nol-space-2));\n}\n\n.nol-menu-group-rows {\n display: contents;\n}\n\n.nol-menu-group-scrolls {\n display: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n grid-auto-rows: min-content;\n overflow-x: hidden;\n overflow-y: auto;\n overscroll-behavior: contain;\n scrollbar-gutter: stable;\n}\n"] });
|
|
78
78
|
}
|
|
79
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
79
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuGroupComponent, decorators: [{
|
|
80
80
|
type: Component,
|
|
81
81
|
args: [{ selector: "nol-menu-group", host: {
|
|
82
82
|
"role": "group",
|
|
@@ -77,15 +77,15 @@ export class MenuItemComponent {
|
|
|
77
77
|
focus.stopMonitoring(host);
|
|
78
78
|
});
|
|
79
79
|
}
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
80
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
81
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: MenuItemComponent, isStandalone: true, selector: "button[nol-menu-item]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, checkbox: { classPropertyName: "checkbox", publicName: "checkbox", isSignal: true, isRequired: false, transformFunction: null }, shortcut: { classPropertyName: "shortcut", publicName: "shortcut", isSignal: true, isRequired: false, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, tag: { classPropertyName: "tag", publicName: "tag", isSignal: true, isRequired: false, transformFunction: null }, danger: { classPropertyName: "danger", publicName: "danger", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "checked() === null ? partResources.menuItemRole : checkbox() ? partResources.menuItemCheckboxRole : partResources.menuItemRadioRole", "attr.aria-checked": "checked()", "class.nol-menu-item-danger": "danger()" } }, providers: [ElementDirectionality.provide()], viewQueries: [{ propertyName: "keyTooltip", first: true, predicate: ["body"], descendants: true, read: TooltipDirective, isSignal: true }], 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@if (icon(); as glyph) {\n <span class=\"nol-menu-item-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n<span class=\"nol-menu-item-lead\"><ng-content select=\"[nolMenuItemLead]\" /></span>\n<span #body class=\"nol-menu-item-body\" [nolTooltip]=\"keyTooltipText()\" [nolTooltipSide]=\"keyTooltipSide\"\n [nolTooltipBeside]=\"partResources.menuSelector\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"!isKeyFocused() || isSubmenuOpen()\">\n@if (tag(); as text) {\n <span class=\"nol-menu-item-heading\">\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n <nol-chip class=\"nol-menu-item-tag\" [kind]=\"tagKind\">{{ text }}</nol-chip>\n </span>\n} @else {\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n}\n@if (description(); as text) {\n <span class=\"nol-menu-item-description\" data-truncates [nolTooltip]=\"text\" [nolTooltipTruncated]=\"true\">{{ text }}</span>\n}\n<span class=\"nol-menu-item-trail\">\n@if (value(); as chosen) {\n <span class=\"nol-menu-item-value\">{{ chosen }}</span>\n}\n@if (shortcut(); as keys) {\n <span class=\"nol-menu-item-shortcut\">{{ keys }}</span>\n}\n@if (checked() !== null) {\n <span class=\"nol-menu-item-check material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.checkedGlyph }}</span>\n}\n@if (hasSubmenu) {\n <span class=\"nol-menu-item-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.submenuGlyph }}</span>\n}\n</span>\n</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: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n min-height: calc(var(--nol-menu-item-height) + var(--nol-row-gap));\n padding-block: var(--nol-tab-inset);\n padding-inline: calc(var(--nol-menu-item-inset) + var(--nol-menu-item-padding));\n border: 0;\n background: none;\n color: var(--nol-menu-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n outline: none;\n}\n\n:where(:host) {\n margin: 0;\n}\n\n:host(.nol-menu-item-danger) {\n color: var(--nol-error);\n}\n\n:host::before {\n position: absolute;\n z-index: -1;\n inset-block: var(--nol-tab-inset);\n inset-inline: var(--nol-menu-item-inset);\n border-radius: var(--nol-radius-medium);\n content: \"\";\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:is(:hover, [data-nol-state=\"Hover\"]), [aria-expanded=\"true\"]))::before,\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n background-color: var(--nol-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 :host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n@media (forced-colors: active) {\n :host(:not([aria-disabled=\"true\"])[aria-expanded=\"true\"])::before,\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-context(.nol-menu-pointer-still):hover:not(:is(:focus-visible, [data-nol-state=\"Focus\"]), [aria-expanded=\"true\"])::before {\n background-color: transparent;\n}\n\n:host([aria-current=\"true\"]) {\n --nol-text-muted: var(--nol-menu-text);\n\n &::before {\n background-color: var(--nol-selected);\n }\n\n @media (forced-colors: active) {\n --nol-text: HighlightText;\n --nol-text-muted: HighlightText;\n --nol-menu-text: HighlightText;\n --nol-icon-color: HighlightText;\n --nol-list-highlight: HighlightText;\n --nol-list-active-text: HighlightText;\n --nol-spinner-forced-arc: HighlightText;\n --nol-spinner-forced-ring: HighlightText;\n\n color: HighlightText;\n forced-color-adjust: none;\n\n &::before {\n background-color: Highlight;\n }\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\n@media (forced-colors: active) {\n :host([aria-current=\"true\"][aria-disabled=\"true\"]) {\n --nol-text: GrayText;\n --nol-text-muted: GrayText;\n --nol-menu-text: GrayText;\n --nol-icon-color: GrayText;\n --nol-list-highlight: GrayText;\n --nol-list-active-text: GrayText;\n --nol-spinner-forced-arc: Highlight;\n --nol-spinner-forced-ring: GrayText;\n\n color: GrayText;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"])::before {\n background-color: Canvas;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-check,\n.nol-menu-item-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n:host([aria-checked=\"false\"]) .nol-menu-item-check {\n visibility: hidden;\n}\n\n.nol-menu-item-chevron:dir(rtl) {\n rotate: 180deg;\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-lead {\n grid-column: 1;\n margin-inline-end: var(--nol-menu-item-padding);\n}\n\n.nol-menu-item-lead {\n display: inline-flex;\n}\n\n.nol-menu-item-lead:empty {\n display: none;\n}\n\n:host(:has(> .nol-menu-item-lead:not(:empty))) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body {\n display: grid;\n grid-column: 2;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n min-width: 0;\n}\n\n.nol-menu-item-label,\n.nol-menu-item-heading {\n grid-column: 1;\n grid-row: 1;\n}\n\n.nol-menu-item-heading {\n display: flex;\n align-items: center;\n gap: var(--nol-menu-item-padding);\n min-width: 0;\n}\n\n.nol-menu-item-tag {\n flex: none;\n max-width: calc(100% - var(--nol-menu-item-padding));\n}\n\n.nol-menu-item-description {\n grid-column: 1;\n grid-row: 2;\n color: var(--nol-text-muted);\n}\n\n:host(:has(> .nol-menu-item-body > .nol-menu-item-description)) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body:has(> .nol-menu-item-description) > .nol-menu-item-trail {\n grid-row: 1 / span 2;\n}\n\n.nol-menu-item-trail {\n display: flex;\n grid-column: 2;\n align-items: center;\n justify-content: flex-end;\n gap: var(--nol-menu-item-padding);\n margin-inline-start: var(--nol-menu-trail-gap);\n}\n\n.nol-menu-item-value,\n.nol-menu-item-shortcut {\n flex: none;\n color: var(--nol-text-muted);\n}\n"], dependencies: [{ kind: "component", type: ChipComponent, selector: "nol-chip", inputs: ["kind", "count"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }] });
|
|
82
82
|
}
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
84
84
|
type: Component,
|
|
85
85
|
args: [{ selector: "button[nol-menu-item]", imports: [ChipComponent, TooltipDirective], providers: [ElementDirectionality.provide()], hostDirectives: [{ directive: CdkMenuItem, inputs: ["cdkMenuItemDisabled: disabled"], outputs: ["cdkMenuItemTriggered: triggered"] }], host: {
|
|
86
86
|
"[attr.role]": "checked() === null ? partResources.menuItemRole : checkbox() ? partResources.menuItemCheckboxRole : partResources.menuItemRadioRole",
|
|
87
87
|
"[attr.aria-checked]": "checked()",
|
|
88
88
|
"[class.nol-menu-item-danger]": "danger()"
|
|
89
|
-
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (icon(); as glyph) {\n <span class=\"nol-menu-item-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n<span class=\"nol-menu-item-lead\"><ng-content select=\"[nolMenuItemLead]\" /></span>\n<span #body class=\"nol-menu-item-body\" [nolTooltip]=\"keyTooltipText()\" [nolTooltipSide]=\"keyTooltipSide\"\n [nolTooltipBeside]=\"partResources.menuSelector\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"!isKeyFocused() || isSubmenuOpen()\">\n@if (tag(); as text) {\n <span class=\"nol-menu-item-heading\">\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n <nol-chip class=\"nol-menu-item-tag\" [kind]=\"tagKind\">{{ text }}</nol-chip>\n </span>\n} @else {\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n}\n@if (description(); as text) {\n <span class=\"nol-menu-item-description\" data-truncates [nolTooltip]=\"text\" [nolTooltipTruncated]=\"true\">{{ text }}</span>\n}\n<span class=\"nol-menu-item-trail\">\n@if (value(); as chosen) {\n <span class=\"nol-menu-item-value\">{{ chosen }}</span>\n}\n@if (shortcut(); as keys) {\n <span class=\"nol-menu-item-shortcut\">{{ keys }}</span>\n}\n@if (checked() !== null) {\n <span class=\"nol-menu-item-check material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.checkedGlyph }}</span>\n}\n@if (hasSubmenu) {\n <span class=\"nol-menu-item-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.submenuGlyph }}</span>\n}\n</span>\n</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: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n min-height: calc(var(--nol-menu-item-height) + var(--nol-row-gap));\n padding-block: var(--nol-tab-inset);\n padding-inline: calc(var(--nol-menu-item-inset) + var(--nol-menu-item-padding));\n border: 0;\n background: none;\n color: var(--nol-menu-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n outline: none;\n}\n\n:where(:host) {\n margin: 0;\n}\n\n:host(.nol-menu-item-danger) {\n color: var(--nol-error);\n}\n\n:host::before {\n position: absolute;\n z-index: -1;\n inset-block: var(--nol-tab-inset);\n inset-inline: var(--nol-menu-item-inset);\n border-radius: var(--nol-radius-medium);\n content: \"\";\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:is(:hover, [data-nol-state=\"Hover\"]), [aria-expanded=\"true\"]))::before,\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n background-color: var(--nol-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 :host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n@media (forced-colors: active) {\n :host(:not([aria-disabled=\"true\"])[aria-expanded=\"true\"])::before,\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-context(.nol-menu-pointer-still):hover:not(:is(:focus-visible, [data-nol-state=\"Focus\"]), [aria-expanded=\"true\"])::before {\n background-color: transparent;\n}\n\n:host([aria-current=\"true\"]) {\n --nol-text-muted: var(--nol-menu-text);\n\n &::before {\n background-color: var(--nol-selected);\n }\n\n @media (forced-colors: active) {\n --nol-text: HighlightText;\n --nol-text-muted: HighlightText;\n --nol-menu-text: HighlightText;\n --nol-icon-color: HighlightText;\n --nol-list-highlight: HighlightText;\n --nol-list-active-text: HighlightText;\n\n color: HighlightText;\n forced-color-adjust: none;\n\n &::before {\n background-color: Highlight;\n }\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\n@media (forced-colors: active) {\n :host([aria-current=\"true\"][aria-disabled=\"true\"]) {\n --nol-text: GrayText;\n --nol-text-muted: GrayText;\n --nol-menu-text: GrayText;\n --nol-icon-color: GrayText;\n --nol-list-highlight: GrayText;\n --nol-list-active-text: GrayText;\n\n color: GrayText;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"])::before {\n background-color: Canvas;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-check,\n.nol-menu-item-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n:host([aria-checked=\"false\"]) .nol-menu-item-check {\n visibility: hidden;\n}\n\n.nol-menu-item-chevron:dir(rtl) {\n rotate: 180deg;\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-lead {\n grid-column: 1;\n margin-inline-end: var(--nol-menu-item-padding);\n}\n\n.nol-menu-item-lead {\n display: inline-flex;\n}\n\n.nol-menu-item-lead:empty {\n display: none;\n}\n\n:host(:has(> .nol-menu-item-lead:not(:empty))) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body {\n display: grid;\n grid-column: 2;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n min-width: 0;\n}\n\n.nol-menu-item-label,\n.nol-menu-item-heading {\n grid-column: 1;\n grid-row: 1;\n}\n\n.nol-menu-item-heading {\n display: flex;\n align-items: center;\n gap: var(--nol-menu-item-padding);\n min-width: 0;\n}\n\n.nol-menu-item-tag {\n flex: none;\n max-width: calc(100% - var(--nol-menu-item-padding));\n}\n\n.nol-menu-item-description {\n grid-column: 1;\n grid-row: 2;\n color: var(--nol-text-muted);\n}\n\n:host(:has(> .nol-menu-item-body > .nol-menu-item-description)) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body:has(> .nol-menu-item-description) > .nol-menu-item-trail {\n grid-row: 1 / span 2;\n}\n\n.nol-menu-item-trail {\n display: flex;\n grid-column: 2;\n align-items: center;\n justify-content: flex-end;\n gap: var(--nol-menu-item-padding);\n margin-inline-start: var(--nol-menu-trail-gap);\n}\n\n.nol-menu-item-value,\n.nol-menu-item-shortcut {\n flex: none;\n color: var(--nol-text-muted);\n}\n"] }]
|
|
89
|
+
}, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@if (icon(); as glyph) {\n <span class=\"nol-menu-item-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n<span class=\"nol-menu-item-lead\"><ng-content select=\"[nolMenuItemLead]\" /></span>\n<span #body class=\"nol-menu-item-body\" [nolTooltip]=\"keyTooltipText()\" [nolTooltipSide]=\"keyTooltipSide\"\n [nolTooltipBeside]=\"partResources.menuSelector\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"!isKeyFocused() || isSubmenuOpen()\">\n@if (tag(); as text) {\n <span class=\"nol-menu-item-heading\">\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n <nol-chip class=\"nol-menu-item-tag\" [kind]=\"tagKind\">{{ text }}</nol-chip>\n </span>\n} @else {\n <span class=\"nol-menu-item-label\" data-truncates [nolTooltip]=\"label()\" [nolTooltipTruncated]=\"true\">{{ label() }}</span>\n}\n@if (description(); as text) {\n <span class=\"nol-menu-item-description\" data-truncates [nolTooltip]=\"text\" [nolTooltipTruncated]=\"true\">{{ text }}</span>\n}\n<span class=\"nol-menu-item-trail\">\n@if (value(); as chosen) {\n <span class=\"nol-menu-item-value\">{{ chosen }}</span>\n}\n@if (shortcut(); as keys) {\n <span class=\"nol-menu-item-shortcut\">{{ keys }}</span>\n}\n@if (checked() !== null) {\n <span class=\"nol-menu-item-check material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.checkedGlyph }}</span>\n}\n@if (hasSubmenu) {\n <span class=\"nol-menu-item-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.submenuGlyph }}</span>\n}\n</span>\n</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: grid;\n grid-column: 1 / -1;\n grid-template-columns: subgrid;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n min-height: calc(var(--nol-menu-item-height) + var(--nol-row-gap));\n padding-block: var(--nol-tab-inset);\n padding-inline: calc(var(--nol-menu-item-inset) + var(--nol-menu-item-padding));\n border: 0;\n background: none;\n color: var(--nol-menu-text);\n font: inherit;\n text-align: start;\n white-space: nowrap;\n outline: none;\n}\n\n:where(:host) {\n margin: 0;\n}\n\n:host(.nol-menu-item-danger) {\n color: var(--nol-error);\n}\n\n:host::before {\n position: absolute;\n z-index: -1;\n inset-block: var(--nol-tab-inset);\n inset-inline: var(--nol-menu-item-inset);\n border-radius: var(--nol-radius-medium);\n content: \"\";\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:is(:hover, [data-nol-state=\"Hover\"]), [aria-expanded=\"true\"]))::before,\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n background-color: var(--nol-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 :host(:is(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n@media (forced-colors: active) {\n :host(:not([aria-disabled=\"true\"])[aria-expanded=\"true\"])::before,\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-context(.nol-menu-pointer-still):hover:not(:is(:focus-visible, [data-nol-state=\"Focus\"]), [aria-expanded=\"true\"])::before {\n background-color: transparent;\n}\n\n:host([aria-current=\"true\"]) {\n --nol-text-muted: var(--nol-menu-text);\n\n &::before {\n background-color: var(--nol-selected);\n }\n\n @media (forced-colors: active) {\n --nol-text: HighlightText;\n --nol-text-muted: HighlightText;\n --nol-menu-text: HighlightText;\n --nol-icon-color: HighlightText;\n --nol-list-highlight: HighlightText;\n --nol-list-active-text: HighlightText;\n --nol-spinner-forced-arc: HighlightText;\n --nol-spinner-forced-ring: HighlightText;\n\n color: HighlightText;\n forced-color-adjust: none;\n\n &::before {\n background-color: Highlight;\n }\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\n@media (forced-colors: active) {\n :host([aria-current=\"true\"][aria-disabled=\"true\"]) {\n --nol-text: GrayText;\n --nol-text-muted: GrayText;\n --nol-menu-text: GrayText;\n --nol-icon-color: GrayText;\n --nol-list-highlight: GrayText;\n --nol-list-active-text: GrayText;\n --nol-spinner-forced-arc: Highlight;\n --nol-spinner-forced-ring: GrayText;\n\n color: GrayText;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"])::before {\n background-color: Canvas;\n }\n\n :host([aria-current=\"true\"][aria-disabled=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"]))::before {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-check,\n.nol-menu-item-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n:host([aria-checked=\"false\"]) .nol-menu-item-check {\n visibility: hidden;\n}\n\n.nol-menu-item-chevron:dir(rtl) {\n rotate: 180deg;\n}\n\n.nol-menu-item-icon,\n.nol-menu-item-lead {\n grid-column: 1;\n margin-inline-end: var(--nol-menu-item-padding);\n}\n\n.nol-menu-item-lead {\n display: inline-flex;\n}\n\n.nol-menu-item-lead:empty {\n display: none;\n}\n\n:host(:has(> .nol-menu-item-lead:not(:empty))) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body {\n display: grid;\n grid-column: 2;\n grid-template-columns: minmax(0, 1fr) auto;\n align-items: center;\n min-width: 0;\n}\n\n.nol-menu-item-label,\n.nol-menu-item-heading {\n grid-column: 1;\n grid-row: 1;\n}\n\n.nol-menu-item-heading {\n display: flex;\n align-items: center;\n gap: var(--nol-menu-item-padding);\n min-width: 0;\n}\n\n.nol-menu-item-tag {\n flex: none;\n max-width: calc(100% - var(--nol-menu-item-padding));\n}\n\n.nol-menu-item-description {\n grid-column: 1;\n grid-row: 2;\n color: var(--nol-text-muted);\n}\n\n:host(:has(> .nol-menu-item-body > .nol-menu-item-description)) {\n padding-block: calc(var(--nol-space-1) + var(--nol-tab-inset));\n}\n\n.nol-menu-item-body:has(> .nol-menu-item-description) > .nol-menu-item-trail {\n grid-row: 1 / span 2;\n}\n\n.nol-menu-item-trail {\n display: flex;\n grid-column: 2;\n align-items: center;\n justify-content: flex-end;\n gap: var(--nol-menu-item-padding);\n margin-inline-start: var(--nol-menu-trail-gap);\n}\n\n.nol-menu-item-value,\n.nol-menu-item-shortcut {\n flex: none;\n color: var(--nol-text-muted);\n}\n"] }]
|
|
90
90
|
}], ctorParameters: () => [], propDecorators: { keyTooltip: [{ type: i0.ViewChild, args: ["body", { ...{ read: TooltipDirective }, isSignal: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }], checkbox: [{ type: i0.Input, args: [{ isSignal: true, alias: "checkbox", required: false }] }], shortcut: [{ type: i0.Input, args: [{ isSignal: true, alias: "shortcut", required: false }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], tag: [{ type: i0.Input, args: [{ isSignal: true, alias: "tag", required: false }] }], danger: [{ type: i0.Input, args: [{ isSignal: true, alias: "danger", required: false }] }] } });
|
|
91
91
|
//# sourceMappingURL=menu-item.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"menu-item.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/menu/menu-item.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/menu/menu-item.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAuB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAoD,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EACvJ,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;AAE7D,OAAO,uBAAuB,CAAC;AAE/B,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,0CAA0C,CAAC;AACjF,OAAO,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;;;AAenE,MAAM,OAAO,iBAAiB;IACX,UAAU,GAA6B,SAAS,CAAC,QAAQ,CAAC,MAAM,kFAAI,IAAI,EAAE,gBAAgB,GAAG,CAAC;IAE5F,aAAa,GAA6B,iBAAiB,CAAC;IAC5D,OAAO,GAAa,QAAQ,CAAC,MAAM,CAAC;IACpC,UAAU,GAAY,CAAC,MAAM,CAAC,M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G,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,EACvC,SAAS,CAAC,CAAC,OAAuB,EAAE,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,CACvD,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;YACjD,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,MAAM,CAAC,WAAW,EAAE,CAAC,CAAC;QAChD,CAAC,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QACjB,OAAO,CAAC,SAAS,CAAC,GAAG,EAAE;YACrB,YAAY,CAAC,WAAW,EAAE,CAAC;YAC3B,KAAK,CAAC,cAAc,CAAC,IAAI,CAAC,CAAC;QAC7B,CAAC,CAAC,CAAC;IACL,CAAC;uGApDU,iBAAiB;2FAAjB,iBAAiB,q6CARjB,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,yGAS+C,gBAAgB,2LCzC7G,kwDAwCA,
|
|
1
|
+
{"version":3,"file":"menu-item.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/menu/menu-item.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/menu/menu-item.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,EAAE,OAAO,EAAE,WAAW,EAAuB,MAAM,mBAAmB,CAAC;AAC9E,OAAO,EACL,SAAS,EAAE,UAAU,EAAE,UAAU,EAAE,QAAQ,EAAoD,eAAe,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EACvJ,SAAS,EACV,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,GAAG,EAAE,KAAK,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,MAAM,CAAC;A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AAiB;2FAAjB,iBAAiB,q6CARjB,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,yGAS+C,gBAAgB,2LCzC7G,kwDAwCA,i3KDTY,aAAa,gFAAE,gBAAgB;;2FAS9B,iBAAiB;kBAb7B,SAAS;+BACE,uBAAuB,WAGxB,CAAC,aAAa,EAAE,gBAAgB,CAAC,aAC/B,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,kBAC5B,CAAC,EAAE,SAAS,EAAE,WAAW,EAAE,MAAM,EAAE,CAAC,+BAA+B,CAAC,EAAE,OAAO,EAAE,CAAC,iCAAiC,CAAC,EAAE,CAAC,QAC/H;wBACJ,aAAa,EAAE,qIAAqI;wBACpJ,qBAAqB,EAAE,WAAW;wBAClC,8BAA8B,EAAE,UAAU;qBAC3C;kGAG0E,MAAM,OAAE,EAAE,IAAI,EAAE,gBAAgB,EAAE"}
|
|
@@ -11,10 +11,10 @@ import * as i0 from "@angular/core";
|
|
|
11
11
|
export class MenuOpensOnDirective {
|
|
12
12
|
opensOn = input.required({ ...(ngDevMode ? { debugName: "opensOn" } : /* istanbul ignore next */ {}), alias: "nolMenuOpensOn" });
|
|
13
13
|
item = inject(CdkMenuItem, { self: true, optional: true });
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
15
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuOpensOnDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: MenuOpensOnDirective, isStandalone: true, selector: "[nolMenuOpensOn]", inputs: { opensOn: { classPropertyName: "opensOn", publicName: "nolMenuOpensOn", isSignal: true, isRequired: true, transformFunction: null } }, 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: MenuOpensOnDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: "[nolMenuOpensOn]"
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import { Component } from "@angular/core";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export class MenuSeparatorComponent {
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
12
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuSeparatorComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: MenuSeparatorComponent, isStandalone: true, selector: "nol-menu-separator", host: { attributes: { "role": "separator" } }, 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", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: block;\n grid-column: 1 / -1;\n height: var(--nol-border-width);\n margin-block: var(--nol-menu-separator-spacing);\n background-color: var(--nol-menu-separator);\n\n @media (forced-colors: active) {\n background-color: CanvasText;\n }\n}\n"] });
|
|
13
13
|
}
|
|
14
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
14
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuSeparatorComponent, decorators: [{
|
|
15
15
|
type: Component,
|
|
16
16
|
args: [{ selector: "nol-menu-separator", host: {
|
|
17
17
|
"role": "separator"
|
|
@@ -64,11 +64,11 @@ export class MenuTriggerDirective extends CdkMenuTrigger {
|
|
|
64
64
|
return new DOMRect(edges.left, row.top, edges.width, row.height);
|
|
65
65
|
});
|
|
66
66
|
}
|
|
67
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
68
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
67
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
68
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: MenuTriggerDirective, isStandalone: true, selector: "[nolMenuTriggerFor]", inputs: { menuTemplateRef: { classPropertyName: "menuTemplateRef", publicName: "nolMenuTriggerFor", isSignal: false, isRequired: false, transformFunction: null }, alignment: { classPropertyName: "alignment", publicName: "nolMenuAlignment", isSignal: true, isRequired: false, transformFunction: null } }, providers: [{ provide: CdkMenuTrigger, useExisting: forwardRef(() => MenuTriggerDirective) }, { provide: MENU_STACK, useFactory: () => MenuTriggerDirective.stack() },
|
|
69
69
|
ElementDirectionality.provide()], exportAs: ["nolMenuTriggerFor"], usesInheritance: true, ngImport: i0 });
|
|
70
70
|
}
|
|
71
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
71
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuTriggerDirective, decorators: [{
|
|
72
72
|
type: Directive,
|
|
73
73
|
args: [{
|
|
74
74
|
selector: "[nolMenuTriggerFor]",
|
|
@@ -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 }] }] } });
|