@noldova/ui.components.angular 0.0.3 → 0.0.6
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 +4 -4
- package/app/components/gallery/gallery-menu.component.js.map +1 -1
- 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 +3 -1
- package/app/components/gallery/gallery-resources.js +3 -1
- 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-split-button.component.js.map +1 -1
- 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.d.ts +10 -1
- package/app/components/menu/menu-item.component.js +7 -5
- 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.d.ts +4 -4
- package/app/components/section-header/section-header.component.js +4 -4
- 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/models/default-theme.js +1 -0
- package/app/models/default-theme.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
|
@@ -99,10 +99,10 @@ export class MarkdownViewNodesComponent {
|
|
|
99
99
|
if (event.button === Resources.middleButton)
|
|
100
100
|
this.activate(event, href);
|
|
101
101
|
}
|
|
102
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
103
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.5", type: MarkdownViewNodesComponent, isStandalone: true, selector: "[nol-markdown-nodes]", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkActivate: "linkActivate", linkMenu: "linkMenu" }, 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@if (runs(); as shownRuns) {\n @for (run of shownRuns; track $index) {\n @if (top()) {<div class=\"nol-markdown-block-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></div>}\n @else {<span class=\"nol-markdown-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span>}\n }\n}\n@else {\n @for (node of nodes(); track $index) {\n @if (node.kind === kinds.Image && image(); as template) {\n <span class=\"nol-markdown-image\"><ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ src: node.href, alt: node.text, title: node.title }\" /></span>\n }\n @else if (textKinds.has(node.kind) && mentions().marksNames) {\n @for (part of mentions().partsOf(node); track $index) {\n @if (part.mention; as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ part.text }}</span>}\n @else {{{ part.text }}}\n }\n }\n @else if (textKinds.has(node.kind)) {{{ node.text }}}\n @else if (inlineKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.SoftBreak) {<br>}\n @case (kinds.HardBreak) {<br>}\n @case (kinds.Emphasis) {<em nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></em>}\n @case (kinds.Strong) {<strong nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></strong>}\n @case (kinds.Strikethrough) {<s nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></s>}\n @case (kinds.InlineCode) {<code nol-inline-code>{{ node.text }}</code>}\n @case (kinds.Math) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.MathDisplay) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.Link) {\n @if (mentionIdOf(node); as id) {\n @if (mentionOf(id); as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ textOf(node) }}</span>}\n @else {{{ textOf(node) }}}\n }\n @else if (referenceOf(node); as reference) {\n <a class=\"nol-markdown-link\" nol-link-reference-chip [reference]=\"reference\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n @if (reference.workItemState; as workItemState) {\n {{ ' ' }}<nol-link-reference-work-item-state [state]=\"workItemState\" />\n }\n }\n @else if (pathOf(node); as path) {\n <a class=\"nol-markdown-link nol-markdown-file-link\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\" (auxclick)=\"activateAuxiliary($event, node.href)\"\n (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\"><span class=\"nol-markdown-file-mark\"><nol-file-badge [fileName]=\"fileNameOf(node)\" [isFolder]=\"folderLinks().has(path)\" /></span><span class=\"nol-markdown-file-text\" nol-markdown-nodes\n [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span></a>\n }\n @else if (isShownAsLink(node)) {\n <a class=\"nol-markdown-link\" nol-markdown-nodes [nodes]=\"node.children\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n }\n @else {<span nol-markdown-nodes [nodes]=\"node.children\"></span>}\n }\n }\n }\n @else if (tableKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.Table) {\n <div class=\"nol-markdown-table\"><table nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></table></div>\n }\n @case (kinds.TableHead) {\n <thead nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></thead>\n }\n @case (kinds.TableBody) {\n <tbody nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tbody>\n }\n @case (kinds.TableRow) {\n <tr nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tr>\n }\n @case (kinds.TableHeaderCell) {\n <th [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></th>\n }\n @case (kinds.TableCell) {\n <td [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></td>\n }\n }\n }\n @else {\n @switch (node.kind) {\n @case (kinds.Paragraph) {\n <p class=\"nol-markdown-paragraph\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Heading) {\n <p class=\"nol-markdown-heading\" role=\"heading\" [attr.aria-level]=\"node.value\" [attr.data-level]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\"\n (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Quote) {\n <blockquote class=\"nol-markdown-quote\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></blockquote>\n }\n @case (kinds.BulletList) {\n <ul class=\"nol-markdown-list\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ul>\n }\n @case (kinds.OrderedList) {\n <ol class=\"nol-markdown-list\" [start]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ol>\n }\n @case (kinds.ListItem) {\n <li class=\"nol-markdown-item\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></li>\n }\n @case (kinds.TaskItem) {\n <li class=\"nol-markdown-item nol-markdown-task\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"><span class=\"nol-markdown-task-mark\"\n role=\"img\" [class.nol-markdown-task-done]=\"node.value === 1\" [attr.aria-label]=\"taskLabels[node.value]\">@if (node.value === 1) {<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"\n focusable=\"false\"><mask [attr.id]=\"checkId + $index\"><circle cx=\"8\" cy=\"8\" r=\"8\" fill=\"white\" /><path d=\"M4.75 8.25 7 10.5 11.25 6\" fill=\"none\" stroke=\"black\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></mask><circle cx=\"8\" cy=\"8\" r=\"8\" [attr.mask]=\"'url(#' + checkId + $index + ')'\" /></svg>} @else {<svg\n viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7.25\" pathLength=\"16\" /></svg>}</span></li>\n }\n @case (kinds.Code) {\n <nol-code-block #codeBlock class=\"nol-markdown-code\" [code]=\"node.text\" [language]=\"node.language\" [maxHeight]=\"codeHeight\" [streaming]=\"streaming() && node.value === 1\"\n [runnable]=\"shellRunner.isOn() && node.value === 0\" (run)=\"shellRunner.run($event)\" />\n <nol-shell-run-output [codeBlock]=\"codeBlock\" [area]=\"shellRunner.area\" />\n }\n @case (kinds.Rule) {\n <hr class=\"nol-markdown-rule\">\n }\n @case (kinds.Plain) {\n <p class=\"nol-markdown-plain\">{{ node.text }}</p>\n }\n }\n }\n }\n}\n", dependencies: [{ kind: "component", type: MarkdownViewNodesComponent, selector: "[nol-markdown-nodes]", inputs: ["nodes", "top"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: InlineCodeComponent, selector: "code[nol-inline-code]" }, { kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceWorkItemStateComponent, selector: "nol-link-reference-work-item-state", inputs: ["state"] }, { kind: "component", type: MarkdownMathComponent, selector: "span[nol-markdown-math]", inputs: ["nol-markdown-math"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ShellRunOutputComponent, selector: "nol-shell-run-output", inputs: ["codeBlock", "area"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
102
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MarkdownViewNodesComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
103
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: MarkdownViewNodesComponent, isStandalone: true, selector: "[nol-markdown-nodes]", inputs: { nodes: { classPropertyName: "nodes", publicName: "nodes", isSignal: true, isRequired: true, transformFunction: null }, top: { classPropertyName: "top", publicName: "top", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkActivate: "linkActivate", linkMenu: "linkMenu" }, 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@if (runs(); as shownRuns) {\n @for (run of shownRuns; track $index) {\n @if (top()) {<div class=\"nol-markdown-block-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></div>}\n @else {<span class=\"nol-markdown-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span>}\n }\n}\n@else {\n @for (node of nodes(); track $index) {\n @if (node.kind === kinds.Image && image(); as template) {\n <span class=\"nol-markdown-image\"><ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ src: node.href, alt: node.text, title: node.title }\" /></span>\n }\n @else if (textKinds.has(node.kind) && mentions().marksNames) {\n @for (part of mentions().partsOf(node); track $index) {\n @if (part.mention; as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ part.text }}</span>}\n @else {{{ part.text }}}\n }\n }\n @else if (textKinds.has(node.kind)) {{{ node.text }}}\n @else if (inlineKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.SoftBreak) {<br>}\n @case (kinds.HardBreak) {<br>}\n @case (kinds.Emphasis) {<em nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></em>}\n @case (kinds.Strong) {<strong nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></strong>}\n @case (kinds.Strikethrough) {<s nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></s>}\n @case (kinds.InlineCode) {<code nol-inline-code>{{ node.text }}</code>}\n @case (kinds.Math) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.MathDisplay) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.Link) {\n @if (mentionIdOf(node); as id) {\n @if (mentionOf(id); as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ textOf(node) }}</span>}\n @else {{{ textOf(node) }}}\n }\n @else if (referenceOf(node); as reference) {\n <a class=\"nol-markdown-link\" nol-link-reference-chip [reference]=\"reference\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n @if (reference.workItemState; as workItemState) {\n {{ ' ' }}<nol-link-reference-work-item-state [state]=\"workItemState\" />\n }\n }\n @else if (pathOf(node); as path) {\n <a class=\"nol-markdown-link nol-markdown-file-link\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\" (auxclick)=\"activateAuxiliary($event, node.href)\"\n (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\"><span class=\"nol-markdown-file-mark\"><nol-file-badge [fileName]=\"fileNameOf(node)\" [isFolder]=\"folderLinks().has(path)\" /></span><span class=\"nol-markdown-file-text\" nol-markdown-nodes\n [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span></a>\n }\n @else if (isShownAsLink(node)) {\n <a class=\"nol-markdown-link\" nol-markdown-nodes [nodes]=\"node.children\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n }\n @else {<span nol-markdown-nodes [nodes]=\"node.children\"></span>}\n }\n }\n }\n @else if (tableKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.Table) {\n <div class=\"nol-markdown-table\"><table nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></table></div>\n }\n @case (kinds.TableHead) {\n <thead nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></thead>\n }\n @case (kinds.TableBody) {\n <tbody nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tbody>\n }\n @case (kinds.TableRow) {\n <tr nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tr>\n }\n @case (kinds.TableHeaderCell) {\n <th [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></th>\n }\n @case (kinds.TableCell) {\n <td [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></td>\n }\n }\n }\n @else {\n @switch (node.kind) {\n @case (kinds.Paragraph) {\n <p class=\"nol-markdown-paragraph\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Heading) {\n <p class=\"nol-markdown-heading\" role=\"heading\" [attr.aria-level]=\"node.value\" [attr.data-level]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\"\n (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Quote) {\n <blockquote class=\"nol-markdown-quote\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></blockquote>\n }\n @case (kinds.BulletList) {\n <ul class=\"nol-markdown-list\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ul>\n }\n @case (kinds.OrderedList) {\n <ol class=\"nol-markdown-list\" [start]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ol>\n }\n @case (kinds.ListItem) {\n <li class=\"nol-markdown-item\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></li>\n }\n @case (kinds.TaskItem) {\n <li class=\"nol-markdown-item nol-markdown-task\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"><span class=\"nol-markdown-task-mark\"\n role=\"img\" [class.nol-markdown-task-done]=\"node.value === 1\" [attr.aria-label]=\"taskLabels[node.value]\">@if (node.value === 1) {<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"\n focusable=\"false\"><mask [attr.id]=\"checkId + $index\"><circle cx=\"8\" cy=\"8\" r=\"8\" fill=\"white\" /><path d=\"M4.75 8.25 7 10.5 11.25 6\" fill=\"none\" stroke=\"black\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></mask><circle cx=\"8\" cy=\"8\" r=\"8\" [attr.mask]=\"'url(#' + checkId + $index + ')'\" /></svg>} @else {<svg\n viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7.25\" pathLength=\"16\" /></svg>}</span></li>\n }\n @case (kinds.Code) {\n <nol-code-block #codeBlock class=\"nol-markdown-code\" [code]=\"node.text\" [language]=\"node.language\" [maxHeight]=\"codeHeight\" [streaming]=\"streaming() && node.value === 1\"\n [runnable]=\"shellRunner.isOn() && node.value === 0\" (run)=\"shellRunner.run($event)\" />\n <nol-shell-run-output [codeBlock]=\"codeBlock\" [area]=\"shellRunner.area\" />\n }\n @case (kinds.Rule) {\n <hr class=\"nol-markdown-rule\">\n }\n @case (kinds.Plain) {\n <p class=\"nol-markdown-plain\">{{ node.text }}</p>\n }\n }\n }\n }\n}\n", dependencies: [{ kind: "component", type: MarkdownViewNodesComponent, selector: "[nol-markdown-nodes]", inputs: ["nodes", "top"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { kind: "component", type: FileBadgeComponent, selector: "nol-file-badge", inputs: ["fileName", "isFolder"] }, { kind: "component", type: InlineCodeComponent, selector: "code[nol-inline-code]" }, { kind: "component", type: LinkReferenceChipComponent, selector: "a[nol-link-reference-chip]", inputs: ["reference"], outputs: ["linkActivate", "linkMenu"] }, { kind: "component", type: LinkReferenceWorkItemStateComponent, selector: "nol-link-reference-work-item-state", inputs: ["state"] }, { kind: "component", type: MarkdownMathComponent, selector: "span[nol-markdown-math]", inputs: ["nol-markdown-math"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: ShellRunOutputComponent, selector: "nol-shell-run-output", inputs: ["codeBlock", "area"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
104
104
|
}
|
|
105
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
105
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MarkdownViewNodesComponent, decorators: [{
|
|
106
106
|
type: Component,
|
|
107
107
|
args: [{ selector: "[nol-markdown-nodes]", imports: [CodeBlockComponent, FileBadgeComponent, InlineCodeComponent, LinkReferenceChipComponent, LinkReferenceWorkItemStateComponent, MarkdownMathComponent, NgTemplateOutlet, ShellRunOutputComponent], encapsulation: ViewEncapsulation.None, 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@if (runs(); as shownRuns) {\n @for (run of shownRuns; track $index) {\n @if (top()) {<div class=\"nol-markdown-block-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></div>}\n @else {<span class=\"nol-markdown-run\" nol-markdown-nodes [nodes]=\"run\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span>}\n }\n}\n@else {\n @for (node of nodes(); track $index) {\n @if (node.kind === kinds.Image && image(); as template) {\n <span class=\"nol-markdown-image\"><ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ src: node.href, alt: node.text, title: node.title }\" /></span>\n }\n @else if (textKinds.has(node.kind) && mentions().marksNames) {\n @for (part of mentions().partsOf(node); track $index) {\n @if (part.mention; as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ part.text }}</span>}\n @else {{{ part.text }}}\n }\n }\n @else if (textKinds.has(node.kind)) {{{ node.text }}}\n @else if (inlineKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.SoftBreak) {<br>}\n @case (kinds.HardBreak) {<br>}\n @case (kinds.Emphasis) {<em nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></em>}\n @case (kinds.Strong) {<strong nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></strong>}\n @case (kinds.Strikethrough) {<s nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></s>}\n @case (kinds.InlineCode) {<code nol-inline-code>{{ node.text }}</code>}\n @case (kinds.Math) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.MathDisplay) {<span [nol-markdown-math]=\"node\"></span>}\n @case (kinds.Link) {\n @if (mentionIdOf(node); as id) {\n @if (mentionOf(id); as mention) {<span class=\"nol-markdown-mention\" [class.nol-markdown-mention-unavailable]=\"mention.unavailable\">{{ textOf(node) }}</span>}\n @else {{{ textOf(node) }}}\n }\n @else if (referenceOf(node); as reference) {\n <a class=\"nol-markdown-link\" nol-link-reference-chip [reference]=\"reference\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n @if (reference.workItemState; as workItemState) {\n {{ ' ' }}<nol-link-reference-work-item-state [state]=\"workItemState\" />\n }\n }\n @else if (pathOf(node); as path) {\n <a class=\"nol-markdown-link nol-markdown-file-link\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\" (auxclick)=\"activateAuxiliary($event, node.href)\"\n (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\"><span class=\"nol-markdown-file-mark\"><nol-file-badge [fileName]=\"fileNameOf(node)\" [isFolder]=\"folderLinks().has(path)\" /></span><span class=\"nol-markdown-file-text\" nol-markdown-nodes\n [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></span></a>\n }\n @else if (isShownAsLink(node)) {\n <a class=\"nol-markdown-link\" nol-markdown-nodes [nodes]=\"node.children\" [href]=\"node.href\" draggable=\"false\" (click)=\"activate($event, node.href)\"\n (auxclick)=\"activateAuxiliary($event, node.href)\" (keydown)=\"activateKey($event, node.href)\" (contextmenu)=\"openMenu($event, node.href)\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></a>\n }\n @else {<span nol-markdown-nodes [nodes]=\"node.children\"></span>}\n }\n }\n }\n @else if (tableKinds.has(node.kind)) {\n @switch (node.kind) {\n @case (kinds.Table) {\n <div class=\"nol-markdown-table\"><table nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></table></div>\n }\n @case (kinds.TableHead) {\n <thead nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></thead>\n }\n @case (kinds.TableBody) {\n <tbody nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tbody>\n }\n @case (kinds.TableRow) {\n <tr nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></tr>\n }\n @case (kinds.TableHeaderCell) {\n <th [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></th>\n }\n @case (kinds.TableCell) {\n <td [style.text-align]=\"node.align\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></td>\n }\n }\n }\n @else {\n @switch (node.kind) {\n @case (kinds.Paragraph) {\n <p class=\"nol-markdown-paragraph\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Heading) {\n <p class=\"nol-markdown-heading\" role=\"heading\" [attr.aria-level]=\"node.value\" [attr.data-level]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\"\n (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></p>\n }\n @case (kinds.Quote) {\n <blockquote class=\"nol-markdown-quote\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></blockquote>\n }\n @case (kinds.BulletList) {\n <ul class=\"nol-markdown-list\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ul>\n }\n @case (kinds.OrderedList) {\n <ol class=\"nol-markdown-list\" [start]=\"node.value\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></ol>\n }\n @case (kinds.ListItem) {\n <li class=\"nol-markdown-item\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"></li>\n }\n @case (kinds.TaskItem) {\n <li class=\"nol-markdown-item nol-markdown-task\" nol-markdown-nodes [nodes]=\"node.children\" (linkActivate)=\"linkActivate.emit($event)\" (linkMenu)=\"linkMenu.emit($event)\"><span class=\"nol-markdown-task-mark\"\n role=\"img\" [class.nol-markdown-task-done]=\"node.value === 1\" [attr.aria-label]=\"taskLabels[node.value]\">@if (node.value === 1) {<svg viewBox=\"0 0 16 16\" aria-hidden=\"true\"\n focusable=\"false\"><mask [attr.id]=\"checkId + $index\"><circle cx=\"8\" cy=\"8\" r=\"8\" fill=\"white\" /><path d=\"M4.75 8.25 7 10.5 11.25 6\" fill=\"none\" stroke=\"black\"\n stroke-width=\"1.5\" stroke-linecap=\"round\" stroke-linejoin=\"round\" /></mask><circle cx=\"8\" cy=\"8\" r=\"8\" [attr.mask]=\"'url(#' + checkId + $index + ')'\" /></svg>} @else {<svg\n viewBox=\"0 0 16 16\" aria-hidden=\"true\" focusable=\"false\"><circle cx=\"8\" cy=\"8\" r=\"7.25\" pathLength=\"16\" /></svg>}</span></li>\n }\n @case (kinds.Code) {\n <nol-code-block #codeBlock class=\"nol-markdown-code\" [code]=\"node.text\" [language]=\"node.language\" [maxHeight]=\"codeHeight\" [streaming]=\"streaming() && node.value === 1\"\n [runnable]=\"shellRunner.isOn() && node.value === 0\" (run)=\"shellRunner.run($event)\" />\n <nol-shell-run-output [codeBlock]=\"codeBlock\" [area]=\"shellRunner.area\" />\n }\n @case (kinds.Rule) {\n <hr class=\"nol-markdown-rule\">\n }\n @case (kinds.Plain) {\n <p class=\"nol-markdown-plain\">{{ node.text }}</p>\n }\n }\n }\n }\n}\n" }]
|
|
108
108
|
}], propDecorators: { nodes: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodes", required: true }] }], top: [{ type: i0.Input, args: [{ isSignal: true, alias: "top", required: false }] }], linkActivate: [{ type: i0.Output, args: ["linkActivate"] }], linkMenu: [{ type: i0.Output, args: ["linkMenu"] }] } });
|
|
@@ -142,8 +142,8 @@ export class MarkdownViewComponent {
|
|
|
142
142
|
if (Object.isNull(MarkdownLink.fileOf(menu.url)))
|
|
143
143
|
this.linkMenu.emit(menu);
|
|
144
144
|
}
|
|
145
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
146
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.
|
|
145
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MarkdownViewComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
146
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.2.6", type: MarkdownViewComponent, isStandalone: true, selector: "nol-markdown-view", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, streaming: { classPropertyName: "streaming", publicName: "streaming", isSignal: true, isRequired: false, transformFunction: null }, entering: { classPropertyName: "entering", publicName: "entering", isSignal: true, isRequired: false, transformFunction: null }, paced: { classPropertyName: "paced", publicName: "paced", 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 }, 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 }, shellRunStates: { classPropertyName: "shellRunStates", publicName: "shellRunStates", isSignal: true, isRequired: false, transformFunction: null }, shellRunOutputs: { classPropertyName: "shellRunOutputs", publicName: "shellRunOutputs", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { linkActivate: "linkActivate", linkOpen: "linkOpen", linkMenu: "linkMenu", fileActivate: "fileActivate", filePathsChange: "filePathsChange", shellRun: "shellRun" }, host: { classAttribute: "nol-markdown-view" }, providers: [{ provide: MarkdownViewTokens.mentions, useFactory: () => {
|
|
147
147
|
const view = inject(MarkdownViewComponent);
|
|
148
148
|
return computed(() => new MarkdownMentions(view.mentions(), view.mentionNames()));
|
|
149
149
|
} }, { provide: MarkdownViewTokens.images, useFactory: () => new MarkdownImages() },
|
|
@@ -156,7 +156,7 @@ export class MarkdownViewComponent {
|
|
|
156
156
|
return new MarkdownShellRunner(computed(() => view.shellRuns() && !view.streaming()), t => view.shellRun.emit(t), inject(ElementRef).nativeElement);
|
|
157
157
|
} }, { provide: ShellRunBlocks, useFactory: () => inject(ShellRunBlocks, { skipSelf: true, optional: true }) ?? new ShellRunBlocks() }], queries: [{ propertyName: "image", first: true, predicate: MessageImageDirective, isSignal: true }, { propertyName: "shellRunOutput", first: true, predicate: ShellRunOutputDirective, 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-markdown-blocks\" nol-markdown-nodes [nodes]=\"nodes()\" [top]=\"true\" (linkActivate)=\"activate($event)\" (linkMenu)=\"openMenu($event)\"></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-markdown-view {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n color: var(--nol-text);\n font-size: var(--nol-text-message);\n line-height: var(--nol-line-message);\n overflow-wrap: anywhere;\n}\n\n.nol-markdown-blocks,\n.nol-markdown-block-run {\n display: contents;\n}\n\n.nol-markdown-view :where(.nol-markdown-paragraph, .nol-markdown-heading, .nol-markdown-quote, .nol-markdown-list, .nol-markdown-rule, .nol-markdown-plain) {\n margin: 0;\n}\n\n.nol-markdown-quote {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n}\n\n.nol-markdown-item > :where(:not(:first-child)) {\n margin-block-start: var(--nol-space-2);\n}\n\n.nol-markdown-task {\n position: relative;\n list-style: none;\n}\n\n.nol-markdown-task-mark {\n position: absolute;\n inset-block-start: calc((1lh - var(--nol-icon)) / 2);\n inset-inline-end: calc(100% + var(--nol-space-1));\n display: flex;\n width: var(--nol-icon);\n height: var(--nol-icon);\n color: var(--nol-text-muted);\n\n @media (forced-colors: active) {\n color: CanvasText;\n }\n}\n\n.nol-markdown-task-mark + * {\n margin-block-start: 0;\n}\n\n.nol-markdown-task-mark svg {\n display: block;\n width: 100%;\n height: 100%;\n fill: currentColor;\n forced-color-adjust: none;\n}\n\n.nol-markdown-task-mark:not(.nol-markdown-task-done) svg {\n fill: none;\n stroke: currentColor;\n stroke-width: 1.5;\n stroke-dasharray: 1.25 0.75;\n}\n\n.nol-markdown-heading {\n color: var(--nol-text-strong);\n font-weight: var(--nol-weight-emphasis);\n line-height: 1.25;\n}\n\n.nol-markdown-block-run > .nol-markdown-heading {\n margin-block-start: var(--nol-space-3);\n}\n\n.nol-markdown-block-run:first-child > .nol-markdown-heading:first-child {\n margin-block-start: 0;\n}\n\n.nol-markdown-quote {\n padding-inline-start: var(--nol-space-3);\n border-inline-start: calc(var(--nol-border-width) * 3) solid var(--nol-border);\n color: var(--nol-text-muted);\n}\n\n.nol-markdown-list {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n padding-inline-start: var(--nol-space-6);\n}\n\n.nol-markdown-rule {\n width: 100%;\n height: 0;\n border: none;\n border-top: var(--nol-border-width) solid var(--nol-border);\n}\n\n.nol-markdown-link {\n color: var(--nol-link);\n text-decoration: underline;\n text-underline-offset: 0.15em;\n}\n\n.nol-markdown-file-mark {\n display: inline-flex;\n align-items: center;\n height: 1lh;\n margin-inline-end: var(--nol-space-1);\n vertical-align: top;\n}\n\n.nol-markdown-file-link {\n text-wrap-mode: nowrap;\n}\n\n.nol-markdown-file-text {\n text-wrap-mode: wrap;\n}\n\n.nol-markdown-image {\n display: inline-block;\n max-width: 100%;\n}\n\n.nol-markdown-image > * {\n max-width: 100%;\n}\n\n.nol-markdown-table {\n max-width: 100%;\n overflow-x: auto;\n}\n\n.nol-markdown-table table {\n border-collapse: collapse;\n}\n\n.nol-markdown-table :where(th, td) {\n padding: var(--nol-space-1) var(--nol-space-2);\n border: var(--nol-border-width) solid var(--nol-border);\n text-align: start;\n vertical-align: top;\n overflow-wrap: normal;\n}\n\n.nol-markdown-table th,\n.nol-markdown-view strong {\n color: var(--nol-text-strong);\n}\n\n:is(.nol-markdown-quote, .nol-markdown-link) :is(.nol-markdown-heading, th, strong) {\n color: inherit;\n}\n\n.nol-markdown-table th,\n.nol-markdown-view strong {\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-markdown-plain {\n white-space: pre-wrap;\n}\n\n.nol-markdown-mention {\n color: var(--nol-mention);\n font-weight: var(--nol-weight-emphasis);\n}\n\n.nol-markdown-view [hidden] {\n display: none;\n}\n\n.nol-markdown-mention-unavailable {\n opacity: 0.5;\n}\n\n.nol-markdown-math-display {\n display: block;\n max-width: 100%;\n overflow-x: auto;\n overflow-y: hidden;\n}\n\n.nol-markdown-math-display > .katex-display {\n margin: 0;\n}\n\n.nol-markdown-paragraph .nol-markdown-math-display {\n margin-block: var(--nol-space-2);\n}\n\n@media (forced-colors: active) {\n .nol-markdown-link {\n color: LinkText;\n }\n}\n"], dependencies: [{ kind: "component", type: MarkdownViewNodesComponent, selector: "[nol-markdown-nodes]", inputs: ["nodes", "top"], outputs: ["linkActivate", "linkMenu"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
158
158
|
}
|
|
159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
159
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MarkdownViewComponent, decorators: [{
|
|
160
160
|
type: Component,
|
|
161
161
|
args: [{ selector: "nol-markdown-view", imports: [MarkdownViewNodesComponent], encapsulation: ViewEncapsulation.None, providers: [{ provide: MarkdownViewTokens.mentions, useFactory: () => {
|
|
162
162
|
const view = inject(MarkdownViewComponent);
|
|
@@ -275,10 +275,10 @@ export class MentionFieldDirective {
|
|
|
275
275
|
this.opened?.overlay.dispose();
|
|
276
276
|
this.opened = null;
|
|
277
277
|
}
|
|
278
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
279
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.
|
|
278
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MentionFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
279
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.2.6", type: MentionFieldDirective, isStandalone: true, selector: "textarea[nolMentionField]", inputs: { candidates: { classPropertyName: "candidates", publicName: "nolMentionField", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "nolMentionFieldLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "nolMentionValue", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { mentioned: "nolMentioned", value: "nolMentionValueChange" }, host: { attributes: { "role": "combobox", "aria-autocomplete": "list" }, listeners: { "input": "edit($event)", "click": "follow()", "keyup": "followKey($event)", "blur": "close()", "pointerdown": "forgetFocus()", "selectionchange": "keepOutOfChips()", "scroll": "backdrop.scroll()" }, properties: { "attr.aria-expanded": "isOpen()", "attr.aria-controls": "isOpen() ? listId : null", "attr.aria-activedescendant": "activeId()" }, classAttribute: "nol-mention-field" }, ngImport: i0 });
|
|
280
280
|
}
|
|
281
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
281
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MentionFieldDirective, decorators: [{
|
|
282
282
|
type: Directive,
|
|
283
283
|
args: [{
|
|
284
284
|
selector: "textarea[nolMentionField]",
|
|
@@ -49,10 +49,10 @@ export class MentionListComponent {
|
|
|
49
49
|
else if (bottom > list.scrollTop + list.clientHeight)
|
|
50
50
|
list.scrollTop = bottom - list.clientHeight;
|
|
51
51
|
}
|
|
52
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
53
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
52
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MentionListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: MentionListComponent, isStandalone: true, selector: "nol-mention-list", inputs: { choices: { classPropertyName: "choices", publicName: "choices", isSignal: true, isRequired: true, transformFunction: null }, active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: true, transformFunction: null }, listId: { classPropertyName: "listId", publicName: "listId", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null } }, outputs: { chosen: "chosen" }, host: { attributes: { "role": "listbox" }, listeners: { "mousedown": "$event.preventDefault()" }, properties: { "id": "listId()", "attr.aria-label": "label()" }, classAttribute: "nol-mention-list" }, ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n@for (row of rows(); track row.candidate.id; let index = $index) {\n @if (row.section; as section) {\n <div class=\"nol-mention-section\" aria-hidden=\"true\">{{ section }}</div>\n }\n <div class=\"nol-mention-option\" role=\"option\" [id]=\"row.id\" [attr.aria-selected]=\"index === active()\" [attr.aria-label]=\"row.name\"\n [class.nol-mention-option-unavailable]=\"row.candidate.unavailable\" (click)=\"chosen.emit(row.candidate)\">\n <nol-avatar [name]=\"row.candidate.name\" [image]=\"row.candidate.image\" [initials]=\"row.candidate.initials\" [color]=\"row.candidate.color\" [colorKey]=\"row.candidate.id\"\n [filledColor]=\"row.candidate.avatarColor\" [size]=\"small\" [decorative]=\"true\" />\n <span class=\"nol-mention-name\" data-truncates>{{ row.candidate.name }}</span>\n @if (row.candidate.note; as note) {\n <span class=\"nol-mention-note\" data-truncates>{{ note }}</span>\n }\n </div>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n:host {\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n max-height: var(--nol-mention-list-height);\n padding: var(--nol-space-1);\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 color: var(--nol-menu-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.nol-mention-section {\n padding: var(--nol-menu-label-padding);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n}\n\n.nol-mention-option {\n position: relative;\n isolation: isolate;\n display: flex;\n flex: none;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n min-height: calc(var(--nol-mention-row-height) + var(--nol-row-gap));\n padding: calc(var(--nol-space-1) + var(--nol-tab-inset)) var(--nol-space-2);\n cursor: pointer;\n}\n\n.nol-mention-option::before {\n position: absolute;\n z-index: -1;\n inset-block: var(--nol-tab-inset);\n inset-inline: 0;\n border-radius: var(--nol-radius-small);\n content: \"\";\n}\n\n.nol-mention-option:is(:hover, [data-nol-state=\"Hover\"])::before {\n background-color: var(--nol-hover);\n\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-mention-option[aria-selected=\"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-muted: HighlightText;\n\n color: HighlightText;\n forced-color-adjust: none;\n\n &::before {\n background-color: Highlight;\n }\n }\n}\n\n.nol-mention-option-unavailable {\n opacity: 0.5;\n}\n\n.nol-mention-name,\n.nol-mention-note {\n min-width: 0;\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-mention-name:has(+ .nol-mention-note) {\n flex: none;\n max-width: calc(100% - var(--nol-avatar-small) - var(--nol-space-2));\n}\n\n.nol-mention-note {\n margin-inline-start: calc(var(--nol-space-2) * -1);\n color: var(--nol-text-muted);\n\n &::before {\n content: \"\";\n padding-inline-start: var(--nol-space-2);\n }\n}\n"], dependencies: [{ kind: "component", type: AvatarComponent, selector: "nol-avatar", inputs: ["name", "image", "initials", "color", "colorKey", "size", "label", "decorative", "unavailable", "filled", "filledColor"] }] });
|
|
54
54
|
}
|
|
55
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MentionListComponent, decorators: [{
|
|
56
56
|
type: Component,
|
|
57
57
|
args: [{ selector: "nol-mention-list", imports: [AvatarComponent], host: {
|
|
58
58
|
"class": "nol-mention-list",
|
|
@@ -82,10 +82,10 @@ export class ContextMenuTriggerDirective extends CdkMenuTriggerBase {
|
|
|
82
82
|
}
|
|
83
83
|
this.menuStack.closeAll();
|
|
84
84
|
}
|
|
85
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
86
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
85
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ContextMenuTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
86
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: ContextMenuTriggerDirective, isStandalone: true, selector: "[nolContextMenuTriggerFor]", inputs: { menuTemplateRef: ["nolContextMenuTriggerFor", "menuTemplateRef"] }, host: { listeners: { "contextmenu": "openAtPointer($event)", "keydown": "openFromKeyboard($event)" }, properties: { "attr.data-cdk-menu-stack-id": "null" } }, providers: [{ provide: MENU_STACK, useClass: MenuStack }], exportAs: ["nolContextMenuTriggerFor"], usesInheritance: true, ngImport: i0 });
|
|
87
87
|
}
|
|
88
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
88
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ContextMenuTriggerDirective, decorators: [{
|
|
89
89
|
type: Directive,
|
|
90
90
|
args: [{
|
|
91
91
|
selector: "[nolContextMenuTriggerFor]",
|
|
@@ -12,10 +12,10 @@ export class KeptOpenMenuItemDirective extends CdkMenuItem {
|
|
|
12
12
|
trigger() {
|
|
13
13
|
super.trigger({ keepOpen: 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: KeptOpenMenuItemDirective, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: KeptOpenMenuItemDirective, isStandalone: true, selector: "[nolKeptOpenMenuItem]", providers: [{ provide: CdkMenuItem, useExisting: forwardRef(() => KeptOpenMenuItemDirective) }], usesInheritance: true, 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: KeptOpenMenuItemDirective, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{
|
|
21
21
|
selector: "[nolKeptOpenMenuItem]",
|
|
@@ -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",
|
|
@@ -92,6 +92,15 @@ export declare class MenuItemComponent {
|
|
|
92
92
|
* `CanvasText`, and `HighlightText` while selected. False when not bound.
|
|
93
93
|
*/
|
|
94
94
|
readonly danger: import("@angular/core").InputSignal<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Whether a row that opens a submenu shows its chevron at its end, true,
|
|
97
|
+
* the default; false leaves it out, so the row's value or shortcut ends at
|
|
98
|
+
* the row's end padding, as a Zoom row showing the page's zoom does. The
|
|
99
|
+
* row still opens its submenu with the pointer, Enter and the arrow key
|
|
100
|
+
* toward its side, and screen readers still hear that it opens a menu. A
|
|
101
|
+
* row without a submenu has no chevron either way.
|
|
102
|
+
*/
|
|
103
|
+
readonly isShowingChevron: import("@angular/core").InputSignal<boolean>;
|
|
95
104
|
/**
|
|
96
105
|
* Creates the row, which Angular does for each `button[nol-menu-item]`
|
|
97
106
|
* element.
|
|
@@ -123,5 +132,5 @@ export declare class MenuItemComponent {
|
|
|
123
132
|
*/
|
|
124
133
|
constructor();
|
|
125
134
|
static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
|
|
126
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "button[nol-menu-item]", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "checkbox": { "alias": "checkbox"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "danger": { "alias": "danger"; "required": false; "isSignal": true; }; }, {}, never, ["[nolMenuItemLead]"], true, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
135
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "button[nol-menu-item]", never, { "label": { "alias": "label"; "required": true; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "checkbox": { "alias": "checkbox"; "required": false; "isSignal": true; }; "shortcut": { "alias": "shortcut"; "required": false; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "tag": { "alias": "tag"; "required": false; "isSignal": true; }; "danger": { "alias": "danger"; "required": false; "isSignal": true; }; "isShowingChevron": { "alias": "isShowingChevron"; "required": false; "isSignal": true; }; }, {}, never, ["[nolMenuItemLead]"], true, [{ directive: typeof i1.CdkMenuItem; inputs: { "cdkMenuItemDisabled": "disabled"; }; outputs: { "cdkMenuItemTriggered": "triggered"; }; }]>;
|
|
127
136
|
}
|
|
@@ -50,6 +50,8 @@ export class MenuItemComponent {
|
|
|
50
50
|
...(ngDevMode ? [{ debugName: "tag" }] : /* istanbul ignore next */ []));
|
|
51
51
|
danger = input(false, /* @ts-ignore */
|
|
52
52
|
...(ngDevMode ? [{ debugName: "danger" }] : /* istanbul ignore next */ []));
|
|
53
|
+
isShowingChevron = input(true, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "isShowingChevron" }] : /* istanbul ignore next */ []));
|
|
53
55
|
constructor() {
|
|
54
56
|
const item = inject(CdkMenuItem, { self: true });
|
|
55
57
|
effect(() => item.typeaheadLabel = this.label());
|
|
@@ -77,15 +79,15 @@ export class MenuItemComponent {
|
|
|
77
79
|
focus.stopMonitoring(host);
|
|
78
80
|
});
|
|
79
81
|
}
|
|
80
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
81
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
82
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
83
|
+
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 }, isShowingChevron: { classPropertyName: "isShowingChevron", publicName: "isShowingChevron", 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 && isShowingChevron()) {\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
84
|
}
|
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: MenuItemComponent, decorators: [{
|
|
84
86
|
type: Component,
|
|
85
87
|
args: [{ selector: "button[nol-menu-item]", imports: [ChipComponent, TooltipDirective], providers: [ElementDirectionality.provide()], hostDirectives: [{ directive: CdkMenuItem, inputs: ["cdkMenuItemDisabled: disabled"], outputs: ["cdkMenuItemTriggered: triggered"] }], host: {
|
|
86
88
|
"[attr.role]": "checked() === null ? partResources.menuItemRole : checkbox() ? partResources.menuItemCheckboxRole : partResources.menuItemRadioRole",
|
|
87
89
|
"[attr.aria-checked]": "checked()",
|
|
88
90
|
"[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"] }]
|
|
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
|
+
}, 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 && isShowingChevron()) {\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"] }]
|
|
92
|
+
}], 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 }] }], isShowingChevron: [{ type: i0.Input, args: [{ isSignal: true, alias: "isShowingChevron", required: false }] }] } });
|
|
91
93
|
//# 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,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnG,cAAc,GAAgB,WAAW,CAAC,GAAG,CAAC;IAC9C,YAAY,GAA4B,MAAM,CAAC,KAAK;qFAAC,CAAC;IACtD,aAAa,GAA4B,MAAM,CAAC,KAAK;sFAAC,CAAC;IACvD,cAAc,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;uFAAC,CAAC;IAEpH,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACjC,IAAI,GAAG,KAAK,CAAgB,IAAI;6EAAC,CAAC;IAClC,OAAO,GAAG,KAAK,CAAiB,IAAI;gFAAC,CAAC;IACtC,QAAQ,GAAG,KAAK,CAAU,KAAK;iFAAC,CAAC;IACjC,QAAQ,GAAG,KAAK,CAAgB,IAAI;iFAAC,CAAC;IACtC,WAAW,GAAG,KAAK,CAAgB,IAAI;oFAAC,CAAC;IACzC,KAAK,GAAG,KAAK,CAAgB,IAAI;8EAAC,CAAC;IACnC,GAAG,GAAG,KAAK,CAAgB,IAAI;4EAAC,CAAC;IACjC,MAAM,GAAG,KAAK,CAAU,KAAK;+EAAC,CAAC;
|
|
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,MAAM,CAAC,MAAM,CAAC,oBAAoB,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;IACnG,cAAc,GAAgB,WAAW,CAAC,GAAG,CAAC;IAC9C,YAAY,GAA4B,MAAM,CAAC,KAAK;qFAAC,CAAC;IACtD,aAAa,GAA4B,MAAM,CAAC,KAAK;sFAAC,CAAC;IACvD,cAAc,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,mBAAmB,CAAC,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,CAAC,WAAW,EAAE,CAAC;uFAAC,CAAC;IAEpH,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACjC,IAAI,GAAG,KAAK,CAAgB,IAAI;6EAAC,CAAC;IAClC,OAAO,GAAG,KAAK,CAAiB,IAAI;gFAAC,CAAC;IACtC,QAAQ,GAAG,KAAK,CAAU,KAAK;iFAAC,CAAC;IACjC,QAAQ,GAAG,KAAK,CAAgB,IAAI;iFAAC,CAAC;IACtC,WAAW,GAAG,KAAK,CAAgB,IAAI;oFAAC,CAAC;IACzC,KAAK,GAAG,KAAK,CAAgB,IAAI;8EAAC,CAAC;IACnC,GAAG,GAAG,KAAK,CAAgB,IAAI;4EAAC,CAAC;IACjC,MAAM,GAAG,KAAK,CAAU,KAAK;+EAAC,CAAC;IAC/B,gBAAgB,GAAG,KAAK,CAAU,IAAI;yFAAC,CAAC;IAExD;QACE,MAAM,IAAI,GAAG,MAAM,CAAC,WAAW,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,EAAE,CAAC,CAAC;QACjD,MAAM,IAAI,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,CAAC;QACvE,MAAM,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAC;QAClC,MAAM,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC;QACnC,MAAM,QAAQ,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;QAC/C,MAAM,YAAY,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,SAAS,CAAC,MAAM,CAAC,EAAE;YAC1D,MAAM,KAAK,GAAG,MAAM,KAAK,SAAS,CAAC,mBAAmB;mBACjD,CAAC,MAAM,KAAK,SAAS,CAAC,kBAAkB,IAAI,QAAQ,CAAC,kBAAkB,KAAK,SAAS,CAAC,gBAAgB,CAAC,CAAC;YAC7G,IAAI,CAAC,YAAY,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;YAC7B,IAAI,KAAK;gBACP,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,UAAU,EAAE,CAAC,IAAI,EAAE,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;QAClE,CAAC,CAAC,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,CAAC,OAAO,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;QACjD,MAAM,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;QACnC,eAAe,CAAC,GAAG,EAAE;YACnB,IAAI,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC;gBACrB,OAAO;YACT,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,OAAO,CAAC,IAAI,CACpC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,EACrB,SAAS,CAAC,CAAC,KAA6B,EAAE,EAAE,CAAC,KAAK,CAAC,GAAG,KAAK,CAAC,OAAO,EAAE,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,cAAc,EAAE,IAAI,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EACpJ,GAAG,CAAC,GAAG,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;uGArDU,iBAAiB;2FAAjB,iBAAiB,8jDARjB,CAAC,qBAAqB,CAAC,OAAO,EAAE,CAAC,yGAS+C,gBAAgB,2LCzC7G,wxDAwCA,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)"
|