@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
|
@@ -132,10 +132,10 @@ export class TabComponent {
|
|
|
132
132
|
this.isSettled = true;
|
|
133
133
|
report();
|
|
134
134
|
}
|
|
135
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
136
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.5", type: TabComponent, isStandalone: true, selector: "nol-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, waiting: { classPropertyName: "waiting", publicName: "waiting", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeCount: { classPropertyName: "badgeCount", publicName: "badgeCount", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, imageGlyph: { classPropertyName: "imageGlyph", publicName: "imageGlyph", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, leadingSpinner: { classPropertyName: "leadingSpinner", publicName: "leadingSpinner", isSignal: true, isRequired: false, transformFunction: null }, marker: { classPropertyName: "marker", publicName: "marker", isSignal: true, isRequired: false, transformFunction: null }, underline: { classPropertyName: "underline", publicName: "underline", isSignal: true, isRequired: false, transformFunction: null }, editing: { classPropertyName: "editing", publicName: "editing", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate", close: "close", labelKept: "labelKept", labelCancelled: "labelCancelled" }, host: { attributes: { "role": "tab" }, listeners: { "click": "activate.emit()", "keydown.enter": "activate.emit()", "keydown.space": "onSpace($event)", "keydown.delete": "requestClose()", "mousedown": "onMouseDown($event)", "auxclick": "onAuxiliaryClick($event)" }, properties: { "attr.aria-label": "accessibleName()", "attr.aria-selected": "selected()", "attr.aria-busy": "working() && !waiting() || null", "attr.aria-description": "preview() ? partResources.previewDescription : null", "attr.tabindex": "selected() ? 0 : -1", "class.nol-tab-selected": "selected()", "class.nol-tab-preview": "preview()", "class.nol-tab-working": "working() && !hasLeadingSpinner()", "class.nol-tab-underlined": "underline() !== null", "class.nol-tab-waiting": "waiting()", "class.nol-tab-editing": "editing()" }, classAttribute: "nol-tab" }, providers: [{ provide: TooltipDefaults, useValue: TabResources.tabTooltip }], viewQueries: [{ propertyName: "fieldElement", first: true, predicate: ["field"], descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TooltipDirective, inputs: ["nolTooltip", "label"] }], 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-tab-pill\">\n @if (marker(); as marker) {\n <span class=\"nol-tab-marker nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [nolTooltip]=\"marker.label\" [nolTooltipSide]=\"partResources.tabTooltip.side\">{{ marker.glyph }}</span>\n }\n @if (hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-leading nol-tab-leading-spinner\" aria-hidden=\"true\" />\n } @else if (status(); as status) {\n <span class=\"nol-tab-leading nol-tab-status nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [attr.data-nol-tone]=\"status.tone\">{{ status.glyph }}</span>\n } @else if (hasImage()) {\n <span class=\"nol-tab-leading nol-tab-image\" [class.nol-tab-image-loaded]=\"isImageLoaded()\">\n @if (shownImageGlyph(); as glyph) {\n <span class=\"nol-tab-image-glyph nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n @if (image(); as source) {\n <img class=\"nol-tab-image-picture\" alt=\"\" draggable=\"false\" [src]=\"source\" (load)=\"isImageLoaded.set(true)\" (error)=\"isImageLoaded.set(false)\" />\n }\n </span>\n } @else if (icon(); as glyph) {\n <span class=\"nol-tab-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n <span class=\"nol-tab-label\" data-truncates>{{ label() }}@if (editing()) {<input #field nol-text-field class=\"nol-tab-field\" type=\"text\" spellcheck=\"false\" [attr.aria-label]=\"partResources.tabTitleFieldLabel\"\n (keydown)=\"onFieldKeyDown($event)\" (blur)=\"keep()\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\" (auxclick)=\"$event.stopPropagation()\" />}</span>\n @if (badge() !== null) {\n <nol-view-badge class=\"nol-tab-badge\" [count]=\"badgeCount()\" />\n }\n @if (closable() || waiting() || working() && !hasLeadingSpinner()) {\n <span class=\"nol-tab-action\">\n @if (waiting()) {\n <span class=\"nol-tab-waiting-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.tabWaitingGlyph }}</span>\n } @else if (working() && !hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-spinner\" aria-hidden=\"true\" />\n }\n @if (closable()) {\n <button type=\"button\" class=\"nol-tab-close\" tabindex=\"-1\" [attr.aria-label]=\"closeLabel()\" (click)=\"onCloseClick($event)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.closeGlyph }}</span>\n </button>\n }\n </span>\n }\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.nol-tab {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: var(--nol-tab-max-width);\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n color: var(--nol-text-tab);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n outline: none;\n user-select: none;\n}\n\n.nol-tab.nol-tab-selected {\n color: var(--nol-text);\n}\n\n.nol-tab-pill {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n\n @media (forced-colors: active) {\n max-width: calc(100% + 2 * var(--nol-tab-inset));\n margin-inline: calc(var(--nol-tab-inset) * -1);\n padding-inline: var(--nol-tab-inset);\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab-pill {\n min-height: var(--nol-tab-pill);\n padding-inline: var(--nol-pill-padding);\n border-radius: var(--nol-radius-small);\n\n @media (forced-colors: active) {\n max-width: 100%;\n margin-inline: 0;\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\n background-color: var(--nol-hover);\n}\n\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\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[data-nol-tab-shape=\"pill\"] .nol-tab.nol-tab-selected .nol-tab-pill {\n --nol-text-muted: var(--nol-text);\n background-color: var(--nol-selected);\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 background-color: Highlight;\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-pill {\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 background-color: Highlight;\n }\n}\n\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-pill {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * 2);\n }\n}\n\n.nol-tab-icon {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-marker,\n.nol-tab-leading {\n flex: none;\n margin-inline-end: var(--nol-tab-part-gap);\n}\n\n.nol-tab .nol-tab-glyph {\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n font-size: var(--nol-tab-image);\n line-height: 1;\n}\n\n.nol-tab-marker {\n color: var(--nol-accent);\n}\n\n.nol-tab-status {\n color: inherit;\n}\n\n.nol-tab-status[data-nol-tone=\"Ok\"] {\n color: var(--nol-status-ok);\n}\n\n.nol-tab-status[data-nol-tone=\"Failed\"] {\n color: var(--nol-status-failed);\n}\n\n.nol-tab-image {\n display: grid;\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-image > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-image-picture {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border-radius: var(--nol-tab-image-radius);\n object-fit: contain;\n visibility: hidden;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: visible;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-leading-spinner {\n --nol-spinner: var(--nol-tab-spinner);\n --nol-spinner-ring: var(--nol-tab-spinner);\n --nol-spinner-stroke: var(--nol-tab-spinner-stroke);\n}\n\n.nol-tab.nol-tab-underlined .nol-tab-pill {\n box-shadow: inset 0 calc(var(--nol-tab-underline) * -1) 0 var(--nol-accent);\n}\n\n@media (forced-colors: active) {\n .nol-tab-marker,\n .nol-tab-status[data-nol-tone] {\n color: inherit;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: visible;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: hidden;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill {\n position: relative;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill::after {\n content: \"\";\n position: absolute;\n inset: auto 0 0;\n height: var(--nol-tab-underline);\n background-color: Highlight;\n forced-color-adjust: none;\n }\n\n .nol-tab.nol-tab-selected.nol-tab-underlined .nol-tab-pill::after {\n background-color: HighlightText;\n }\n}\n\n.nol-tab-badge {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-tab.nol-tab-preview .nol-tab-label {\n font-style: italic;\n}\n\n.nol-tab.nol-tab-editing .nol-tab-label {\n position: relative;\n overflow: visible;\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-label > .nol-tab-field {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 0;\n border: 0;\n border-radius: 0;\n outline: var(--nol-border-width) solid var(--nol-accent);\n background-color: var(--nol-input);\n color: var(--nol-input-text);\n font: inherit;\n user-select: text;\n visibility: visible;\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n forced-color-adjust: auto;\n }\n}\n\n.nol-tab-action {\n display: grid;\n flex: none;\n margin-inline: var(--nol-space-1) calc((var(--nol-icon) - var(--nol-tab-action-slot)) / 2);\n place-items: center;\n width: var(--nol-tab-action-slot);\n height: var(--nol-tab-action-slot);\n}\n\n.nol-tab-action > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close {\n display: grid;\n place-items: center;\n --nol-tab-close-target: max(var(--nol-pointer-target), var(--nol-tab-action-slot));\n\n box-sizing: border-box;\n width: var(--nol-tab-close-target);\n height: var(--nol-tab-close-target);\n margin: calc((var(--nol-tab-action-slot) - var(--nol-tab-close-target)) / 2);\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n visibility: hidden;\n}\n\n.nol-tab-close::before {\n content: \"\";\n grid-area: 1 / 1;\n width: var(--nol-tab-close);\n height: var(--nol-tab-close);\n border-radius: var(--nol-radius-small);\n}\n\n.nol-tab-close > span {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n background-color: var(--nol-toolbar-hover);\n}\n\n@media (forced-colors: active) {\n .nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-close,\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-close,\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-close {\n visibility: visible;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):not(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-close {\n visibility: hidden;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):is(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-action:has(> .nol-tab-close) > :is(.nol-tab-spinner, .nol-tab-waiting-glyph) {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-spinner {\n width: var(--nol-icon);\n height: var(--nol-icon);\n}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: ViewBadgeComponent, selector: "nol-view-badge", inputs: ["count"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
135
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
136
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TabComponent, isStandalone: true, selector: "nol-tab", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, selected: { classPropertyName: "selected", publicName: "selected", isSignal: true, isRequired: false, transformFunction: null }, preview: { classPropertyName: "preview", publicName: "preview", isSignal: true, isRequired: false, transformFunction: null }, working: { classPropertyName: "working", publicName: "working", isSignal: true, isRequired: false, transformFunction: null }, waiting: { classPropertyName: "waiting", publicName: "waiting", isSignal: true, isRequired: false, transformFunction: null }, closable: { classPropertyName: "closable", publicName: "closable", isSignal: true, isRequired: false, transformFunction: null }, badge: { classPropertyName: "badge", publicName: "badge", isSignal: true, isRequired: false, transformFunction: null }, badgeCount: { classPropertyName: "badgeCount", publicName: "badgeCount", isSignal: true, isRequired: false, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, imageGlyph: { classPropertyName: "imageGlyph", publicName: "imageGlyph", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: false, transformFunction: null }, leadingSpinner: { classPropertyName: "leadingSpinner", publicName: "leadingSpinner", isSignal: true, isRequired: false, transformFunction: null }, marker: { classPropertyName: "marker", publicName: "marker", isSignal: true, isRequired: false, transformFunction: null }, underline: { classPropertyName: "underline", publicName: "underline", isSignal: true, isRequired: false, transformFunction: null }, editing: { classPropertyName: "editing", publicName: "editing", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activate: "activate", close: "close", labelKept: "labelKept", labelCancelled: "labelCancelled" }, host: { attributes: { "role": "tab" }, listeners: { "click": "activate.emit()", "keydown.enter": "activate.emit()", "keydown.space": "onSpace($event)", "keydown.delete": "requestClose()", "mousedown": "onMouseDown($event)", "auxclick": "onAuxiliaryClick($event)" }, properties: { "attr.aria-label": "accessibleName()", "attr.aria-selected": "selected()", "attr.aria-busy": "working() && !waiting() || null", "attr.aria-description": "preview() ? partResources.previewDescription : null", "attr.tabindex": "selected() ? 0 : -1", "class.nol-tab-selected": "selected()", "class.nol-tab-preview": "preview()", "class.nol-tab-working": "working() && !hasLeadingSpinner()", "class.nol-tab-underlined": "underline() !== null", "class.nol-tab-waiting": "waiting()", "class.nol-tab-editing": "editing()" }, classAttribute: "nol-tab" }, providers: [{ provide: TooltipDefaults, useValue: TabResources.tabTooltip }], viewQueries: [{ propertyName: "fieldElement", first: true, predicate: ["field"], descendants: true, read: ElementRef, isSignal: true }], hostDirectives: [{ directive: i1.TooltipDirective, inputs: ["nolTooltip", "label"] }], 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-tab-pill\">\n @if (marker(); as marker) {\n <span class=\"nol-tab-marker nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [nolTooltip]=\"marker.label\" [nolTooltipSide]=\"partResources.tabTooltip.side\">{{ marker.glyph }}</span>\n }\n @if (hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-leading nol-tab-leading-spinner\" aria-hidden=\"true\" />\n } @else if (status(); as status) {\n <span class=\"nol-tab-leading nol-tab-status nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [attr.data-nol-tone]=\"status.tone\">{{ status.glyph }}</span>\n } @else if (hasImage()) {\n <span class=\"nol-tab-leading nol-tab-image\" [class.nol-tab-image-loaded]=\"isImageLoaded()\">\n @if (shownImageGlyph(); as glyph) {\n <span class=\"nol-tab-image-glyph nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n @if (image(); as source) {\n <img class=\"nol-tab-image-picture\" alt=\"\" draggable=\"false\" [src]=\"source\" (load)=\"isImageLoaded.set(true)\" (error)=\"isImageLoaded.set(false)\" />\n }\n </span>\n } @else if (icon(); as glyph) {\n <span class=\"nol-tab-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n <span class=\"nol-tab-label\" data-truncates>{{ label() }}@if (editing()) {<input #field nol-text-field class=\"nol-tab-field\" type=\"text\" spellcheck=\"false\" [attr.aria-label]=\"partResources.tabTitleFieldLabel\"\n (keydown)=\"onFieldKeyDown($event)\" (blur)=\"keep()\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\" (auxclick)=\"$event.stopPropagation()\" />}</span>\n @if (badge() !== null) {\n <nol-view-badge class=\"nol-tab-badge\" [count]=\"badgeCount()\" />\n }\n @if (closable() || waiting() || working() && !hasLeadingSpinner()) {\n <span class=\"nol-tab-action\">\n @if (waiting()) {\n <span class=\"nol-tab-waiting-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.tabWaitingGlyph }}</span>\n } @else if (working() && !hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-spinner\" aria-hidden=\"true\" />\n }\n @if (closable()) {\n <button type=\"button\" class=\"nol-tab-close\" tabindex=\"-1\" [attr.aria-label]=\"closeLabel()\" (click)=\"onCloseClick($event)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.closeGlyph }}</span>\n </button>\n }\n </span>\n }\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.nol-tab {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: var(--nol-tab-max-width);\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n color: var(--nol-text-tab);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n outline: none;\n user-select: none;\n}\n\n.nol-tab.nol-tab-selected {\n color: var(--nol-text);\n}\n\n.nol-tab-pill {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n\n @media (forced-colors: active) {\n max-width: calc(100% + 2 * var(--nol-tab-inset));\n margin-inline: calc(var(--nol-tab-inset) * -1);\n padding-inline: var(--nol-tab-inset);\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab-pill {\n min-height: var(--nol-tab-pill);\n padding-inline: var(--nol-pill-padding);\n border-radius: var(--nol-radius-small);\n\n @media (forced-colors: active) {\n max-width: 100%;\n margin-inline: 0;\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\n background-color: var(--nol-hover);\n}\n\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\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[data-nol-tab-shape=\"pill\"] .nol-tab.nol-tab-selected .nol-tab-pill {\n --nol-text-muted: var(--nol-text);\n background-color: var(--nol-selected);\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 background-color: Highlight;\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-pill {\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 background-color: Highlight;\n }\n}\n\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-pill {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * 2);\n }\n}\n\n.nol-tab-icon {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-marker,\n.nol-tab-leading {\n flex: none;\n margin-inline-end: var(--nol-tab-part-gap);\n}\n\n.nol-tab .nol-tab-glyph {\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n font-size: var(--nol-tab-image);\n line-height: 1;\n}\n\n.nol-tab-marker {\n color: var(--nol-accent);\n}\n\n.nol-tab-status {\n color: inherit;\n}\n\n.nol-tab-status[data-nol-tone=\"Ok\"] {\n color: var(--nol-status-ok);\n}\n\n.nol-tab-status[data-nol-tone=\"Failed\"] {\n color: var(--nol-status-failed);\n}\n\n.nol-tab-image {\n display: grid;\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-image > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-image-picture {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border-radius: var(--nol-tab-image-radius);\n object-fit: contain;\n visibility: hidden;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: visible;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-leading-spinner {\n --nol-spinner: var(--nol-tab-spinner);\n --nol-spinner-ring: var(--nol-tab-spinner);\n --nol-spinner-stroke: var(--nol-tab-spinner-stroke);\n}\n\n.nol-tab.nol-tab-underlined .nol-tab-pill {\n box-shadow: inset 0 calc(var(--nol-tab-underline) * -1) 0 var(--nol-accent);\n}\n\n@media (forced-colors: active) {\n .nol-tab-marker,\n .nol-tab-status[data-nol-tone] {\n color: inherit;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: visible;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: hidden;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill {\n position: relative;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill::after {\n content: \"\";\n position: absolute;\n inset: auto 0 0;\n height: var(--nol-tab-underline);\n background-color: Highlight;\n forced-color-adjust: none;\n }\n\n .nol-tab.nol-tab-selected.nol-tab-underlined .nol-tab-pill::after {\n background-color: HighlightText;\n }\n}\n\n.nol-tab-badge {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-tab.nol-tab-preview .nol-tab-label {\n font-style: italic;\n}\n\n.nol-tab.nol-tab-editing .nol-tab-label {\n position: relative;\n overflow: visible;\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-label > .nol-tab-field {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 0;\n border: 0;\n border-radius: 0;\n outline: var(--nol-border-width) solid var(--nol-accent);\n background-color: var(--nol-input);\n color: var(--nol-input-text);\n font: inherit;\n user-select: text;\n visibility: visible;\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n forced-color-adjust: auto;\n }\n}\n\n.nol-tab-action {\n display: grid;\n flex: none;\n margin-inline: var(--nol-space-1) calc((var(--nol-icon) - var(--nol-tab-action-slot)) / 2);\n place-items: center;\n width: var(--nol-tab-action-slot);\n height: var(--nol-tab-action-slot);\n}\n\n.nol-tab-action > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close {\n display: grid;\n place-items: center;\n --nol-tab-close-target: max(var(--nol-pointer-target), var(--nol-tab-action-slot));\n\n box-sizing: border-box;\n width: var(--nol-tab-close-target);\n height: var(--nol-tab-close-target);\n margin: calc((var(--nol-tab-action-slot) - var(--nol-tab-close-target)) / 2);\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n visibility: hidden;\n}\n\n.nol-tab-close::before {\n content: \"\";\n grid-area: 1 / 1;\n width: var(--nol-tab-close);\n height: var(--nol-tab-close);\n border-radius: var(--nol-radius-small);\n}\n\n.nol-tab-close > span {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n background-color: var(--nol-toolbar-hover);\n}\n\n@media (forced-colors: active) {\n .nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-close,\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-close,\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-close {\n visibility: visible;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):not(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-close {\n visibility: hidden;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):is(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-action:has(> .nol-tab-close) > :is(.nol-tab-spinner, .nol-tab-waiting-glyph) {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-spinner {\n width: var(--nol-icon);\n height: var(--nol-icon);\n}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "component", type: TextFieldComponent, selector: "input[nol-text-field], textarea[nol-text-field]" }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }, { kind: "component", type: ViewBadgeComponent, selector: "nol-view-badge", inputs: ["count"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
137
137
|
}
|
|
138
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
138
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TabComponent, decorators: [{
|
|
139
139
|
type: Component,
|
|
140
140
|
args: [{ selector: "nol-tab", imports: [SpinnerComponent, TextFieldComponent, TooltipDirective, ViewBadgeComponent], encapsulation: ViewEncapsulation.None, providers: [{ provide: TooltipDefaults, useValue: TabResources.tabTooltip }], hostDirectives: [{ directive: TooltipDirective, inputs: ["nolTooltip: label"] }], host: {
|
|
141
141
|
"class": "nol-tab",
|
|
@@ -157,6 +157,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.5", ngImpor
|
|
|
157
157
|
"(keydown.delete)": "requestClose()",
|
|
158
158
|
"(mousedown)": "onMouseDown($event)",
|
|
159
159
|
"(auxclick)": "onAuxiliaryClick($event)"
|
|
160
|
-
}, 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-tab-pill\">\n @if (marker(); as marker) {\n <span class=\"nol-tab-marker nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [nolTooltip]=\"marker.label\" [nolTooltipSide]=\"partResources.tabTooltip.side\">{{ marker.glyph }}</span>\n }\n @if (hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-leading nol-tab-leading-spinner\" aria-hidden=\"true\" />\n } @else if (status(); as status) {\n <span class=\"nol-tab-leading nol-tab-status nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [attr.data-nol-tone]=\"status.tone\">{{ status.glyph }}</span>\n } @else if (hasImage()) {\n <span class=\"nol-tab-leading nol-tab-image\" [class.nol-tab-image-loaded]=\"isImageLoaded()\">\n @if (shownImageGlyph(); as glyph) {\n <span class=\"nol-tab-image-glyph nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n @if (image(); as source) {\n <img class=\"nol-tab-image-picture\" alt=\"\" draggable=\"false\" [src]=\"source\" (load)=\"isImageLoaded.set(true)\" (error)=\"isImageLoaded.set(false)\" />\n }\n </span>\n } @else if (icon(); as glyph) {\n <span class=\"nol-tab-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n <span class=\"nol-tab-label\" data-truncates>{{ label() }}@if (editing()) {<input #field nol-text-field class=\"nol-tab-field\" type=\"text\" spellcheck=\"false\" [attr.aria-label]=\"partResources.tabTitleFieldLabel\"\n (keydown)=\"onFieldKeyDown($event)\" (blur)=\"keep()\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\" (auxclick)=\"$event.stopPropagation()\" />}</span>\n @if (badge() !== null) {\n <nol-view-badge class=\"nol-tab-badge\" [count]=\"badgeCount()\" />\n }\n @if (closable() || waiting() || working() && !hasLeadingSpinner()) {\n <span class=\"nol-tab-action\">\n @if (waiting()) {\n <span class=\"nol-tab-waiting-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.tabWaitingGlyph }}</span>\n } @else if (working() && !hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-spinner\" aria-hidden=\"true\" />\n }\n @if (closable()) {\n <button type=\"button\" class=\"nol-tab-close\" tabindex=\"-1\" [attr.aria-label]=\"closeLabel()\" (click)=\"onCloseClick($event)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.closeGlyph }}</span>\n </button>\n }\n </span>\n }\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.nol-tab {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: var(--nol-tab-max-width);\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n color: var(--nol-text-tab);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n outline: none;\n user-select: none;\n}\n\n.nol-tab.nol-tab-selected {\n color: var(--nol-text);\n}\n\n.nol-tab-pill {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n\n @media (forced-colors: active) {\n max-width: calc(100% + 2 * var(--nol-tab-inset));\n margin-inline: calc(var(--nol-tab-inset) * -1);\n padding-inline: var(--nol-tab-inset);\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab-pill {\n min-height: var(--nol-tab-pill);\n padding-inline: var(--nol-pill-padding);\n border-radius: var(--nol-radius-small);\n\n @media (forced-colors: active) {\n max-width: 100%;\n margin-inline: 0;\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\n background-color: var(--nol-hover);\n}\n\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\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[data-nol-tab-shape=\"pill\"] .nol-tab.nol-tab-selected .nol-tab-pill {\n --nol-text-muted: var(--nol-text);\n background-color: var(--nol-selected);\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 background-color: Highlight;\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-pill {\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 background-color: Highlight;\n }\n}\n\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-pill {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * 2);\n }\n}\n\n.nol-tab-icon {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-marker,\n.nol-tab-leading {\n flex: none;\n margin-inline-end: var(--nol-tab-part-gap);\n}\n\n.nol-tab .nol-tab-glyph {\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n font-size: var(--nol-tab-image);\n line-height: 1;\n}\n\n.nol-tab-marker {\n color: var(--nol-accent);\n}\n\n.nol-tab-status {\n color: inherit;\n}\n\n.nol-tab-status[data-nol-tone=\"Ok\"] {\n color: var(--nol-status-ok);\n}\n\n.nol-tab-status[data-nol-tone=\"Failed\"] {\n color: var(--nol-status-failed);\n}\n\n.nol-tab-image {\n display: grid;\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-image > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-image-picture {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border-radius: var(--nol-tab-image-radius);\n object-fit: contain;\n visibility: hidden;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: visible;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-leading-spinner {\n --nol-spinner: var(--nol-tab-spinner);\n --nol-spinner-ring: var(--nol-tab-spinner);\n --nol-spinner-stroke: var(--nol-tab-spinner-stroke);\n}\n\n.nol-tab.nol-tab-underlined .nol-tab-pill {\n box-shadow: inset 0 calc(var(--nol-tab-underline) * -1) 0 var(--nol-accent);\n}\n\n@media (forced-colors: active) {\n .nol-tab-marker,\n .nol-tab-status[data-nol-tone] {\n color: inherit;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: visible;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: hidden;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill {\n position: relative;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill::after {\n content: \"\";\n position: absolute;\n inset: auto 0 0;\n height: var(--nol-tab-underline);\n background-color: Highlight;\n forced-color-adjust: none;\n }\n\n .nol-tab.nol-tab-selected.nol-tab-underlined .nol-tab-pill::after {\n background-color: HighlightText;\n }\n}\n\n.nol-tab-badge {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-tab.nol-tab-preview .nol-tab-label {\n font-style: italic;\n}\n\n.nol-tab.nol-tab-editing .nol-tab-label {\n position: relative;\n overflow: visible;\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-label > .nol-tab-field {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 0;\n border: 0;\n border-radius: 0;\n outline: var(--nol-border-width) solid var(--nol-accent);\n background-color: var(--nol-input);\n color: var(--nol-input-text);\n font: inherit;\n user-select: text;\n visibility: visible;\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n forced-color-adjust: auto;\n }\n}\n\n.nol-tab-action {\n display: grid;\n flex: none;\n margin-inline: var(--nol-space-1) calc((var(--nol-icon) - var(--nol-tab-action-slot)) / 2);\n place-items: center;\n width: var(--nol-tab-action-slot);\n height: var(--nol-tab-action-slot);\n}\n\n.nol-tab-action > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close {\n display: grid;\n place-items: center;\n --nol-tab-close-target: max(var(--nol-pointer-target), var(--nol-tab-action-slot));\n\n box-sizing: border-box;\n width: var(--nol-tab-close-target);\n height: var(--nol-tab-close-target);\n margin: calc((var(--nol-tab-action-slot) - var(--nol-tab-close-target)) / 2);\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n visibility: hidden;\n}\n\n.nol-tab-close::before {\n content: \"\";\n grid-area: 1 / 1;\n width: var(--nol-tab-close);\n height: var(--nol-tab-close);\n border-radius: var(--nol-radius-small);\n}\n\n.nol-tab-close > span {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n background-color: var(--nol-toolbar-hover);\n}\n\n@media (forced-colors: active) {\n .nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-close,\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-close,\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-close {\n visibility: visible;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):not(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-close {\n visibility: hidden;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):is(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-action:has(> .nol-tab-close) > :is(.nol-tab-spinner, .nol-tab-waiting-glyph) {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-spinner {\n width: var(--nol-icon);\n height: var(--nol-icon);\n}\n"] }]
|
|
160
|
+
}, 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-tab-pill\">\n @if (marker(); as marker) {\n <span class=\"nol-tab-marker nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [nolTooltip]=\"marker.label\" [nolTooltipSide]=\"partResources.tabTooltip.side\">{{ marker.glyph }}</span>\n }\n @if (hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-leading nol-tab-leading-spinner\" aria-hidden=\"true\" />\n } @else if (status(); as status) {\n <span class=\"nol-tab-leading nol-tab-status nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\" [attr.data-nol-tone]=\"status.tone\">{{ status.glyph }}</span>\n } @else if (hasImage()) {\n <span class=\"nol-tab-leading nol-tab-image\" [class.nol-tab-image-loaded]=\"isImageLoaded()\">\n @if (shownImageGlyph(); as glyph) {\n <span class=\"nol-tab-image-glyph nol-tab-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n @if (image(); as source) {\n <img class=\"nol-tab-image-picture\" alt=\"\" draggable=\"false\" [src]=\"source\" (load)=\"isImageLoaded.set(true)\" (error)=\"isImageLoaded.set(false)\" />\n }\n </span>\n } @else if (icon(); as glyph) {\n <span class=\"nol-tab-icon material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n }\n <span class=\"nol-tab-label\" data-truncates>{{ label() }}@if (editing()) {<input #field nol-text-field class=\"nol-tab-field\" type=\"text\" spellcheck=\"false\" [attr.aria-label]=\"partResources.tabTitleFieldLabel\"\n (keydown)=\"onFieldKeyDown($event)\" (blur)=\"keep()\" (click)=\"$event.stopPropagation()\" (mousedown)=\"$event.stopPropagation()\" (auxclick)=\"$event.stopPropagation()\" />}</span>\n @if (badge() !== null) {\n <nol-view-badge class=\"nol-tab-badge\" [count]=\"badgeCount()\" />\n }\n @if (closable() || waiting() || working() && !hasLeadingSpinner()) {\n <span class=\"nol-tab-action\">\n @if (waiting()) {\n <span class=\"nol-tab-waiting-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.tabWaitingGlyph }}</span>\n } @else if (working() && !hasLeadingSpinner()) {\n <nol-spinner class=\"nol-tab-spinner\" aria-hidden=\"true\" />\n }\n @if (closable()) {\n <button type=\"button\" class=\"nol-tab-close\" tabindex=\"-1\" [attr.aria-label]=\"closeLabel()\" (click)=\"onCloseClick($event)\">\n <span class=\"material-symbols-rounded\" aria-hidden=\"true\">{{ resources.closeGlyph }}</span>\n </button>\n }\n </span>\n }\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.nol-tab {\n display: inline-flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: var(--nol-tab-max-width);\n min-height: var(--nol-tab-height);\n padding-inline: var(--nol-tab-inset);\n color: var(--nol-text-tab);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n outline: none;\n user-select: none;\n}\n\n.nol-tab.nol-tab-selected {\n color: var(--nol-text);\n}\n\n.nol-tab-pill {\n display: flex;\n align-items: center;\n box-sizing: border-box;\n min-width: 0;\n max-width: 100%;\n\n @media (forced-colors: active) {\n max-width: calc(100% + 2 * var(--nol-tab-inset));\n margin-inline: calc(var(--nol-tab-inset) * -1);\n padding-inline: var(--nol-tab-inset);\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab-pill {\n min-height: var(--nol-tab-pill);\n padding-inline: var(--nol-pill-padding);\n border-radius: var(--nol-radius-small);\n\n @media (forced-colors: active) {\n max-width: 100%;\n margin-inline: 0;\n }\n}\n\n[data-nol-tab-shape=\"pill\"] .nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\n background-color: var(--nol-hover);\n}\n\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-pill {\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[data-nol-tab-shape=\"pill\"] .nol-tab.nol-tab-selected .nol-tab-pill {\n --nol-text-muted: var(--nol-text);\n background-color: var(--nol-selected);\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 background-color: Highlight;\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-pill {\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 background-color: Highlight;\n }\n}\n\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-pill {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n outline-offset: calc(var(--nol-border-width) * 2);\n }\n}\n\n.nol-tab-icon {\n flex: none;\n margin-inline-end: var(--nol-space-1);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-marker,\n.nol-tab-leading {\n flex: none;\n margin-inline-end: var(--nol-tab-part-gap);\n}\n\n.nol-tab .nol-tab-glyph {\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n font-size: var(--nol-tab-image);\n line-height: 1;\n}\n\n.nol-tab-marker {\n color: var(--nol-accent);\n}\n\n.nol-tab-status {\n color: inherit;\n}\n\n.nol-tab-status[data-nol-tone=\"Ok\"] {\n color: var(--nol-status-ok);\n}\n\n.nol-tab-status[data-nol-tone=\"Failed\"] {\n color: var(--nol-status-failed);\n}\n\n.nol-tab-image {\n display: grid;\n width: var(--nol-tab-image);\n height: var(--nol-tab-image);\n color: var(--nol-icon-color);\n}\n\n.nol-tab-image > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-image-picture {\n box-sizing: border-box;\n width: 100%;\n height: 100%;\n border-radius: var(--nol-tab-image-radius);\n object-fit: contain;\n visibility: hidden;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: visible;\n}\n\n.nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-leading-spinner {\n --nol-spinner: var(--nol-tab-spinner);\n --nol-spinner-ring: var(--nol-tab-spinner);\n --nol-spinner-stroke: var(--nol-tab-spinner-stroke);\n}\n\n.nol-tab.nol-tab-underlined .nol-tab-pill {\n box-shadow: inset 0 calc(var(--nol-tab-underline) * -1) 0 var(--nol-accent);\n}\n\n@media (forced-colors: active) {\n .nol-tab-marker,\n .nol-tab-status[data-nol-tone] {\n color: inherit;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-glyph {\n visibility: visible;\n }\n\n .nol-tab-image-loaded > .nol-tab-image-picture {\n visibility: hidden;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill {\n position: relative;\n }\n\n .nol-tab.nol-tab-underlined .nol-tab-pill::after {\n content: \"\";\n position: absolute;\n inset: auto 0 0;\n height: var(--nol-tab-underline);\n background-color: Highlight;\n forced-color-adjust: none;\n }\n\n .nol-tab.nol-tab-selected.nol-tab-underlined .nol-tab-pill::after {\n background-color: HighlightText;\n }\n}\n\n.nol-tab-badge {\n flex: none;\n margin-inline-start: var(--nol-space-1);\n}\n\n.nol-tab.nol-tab-preview .nol-tab-label {\n font-style: italic;\n}\n\n.nol-tab.nol-tab-editing .nol-tab-label {\n position: relative;\n overflow: visible;\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-label > .nol-tab-field {\n position: absolute;\n inset: 0;\n width: 100%;\n height: 100%;\n min-height: 0;\n padding: 0;\n border: 0;\n border-radius: 0;\n outline: var(--nol-border-width) solid var(--nol-accent);\n background-color: var(--nol-input);\n color: var(--nol-input-text);\n font: inherit;\n user-select: text;\n visibility: visible;\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n forced-color-adjust: auto;\n }\n}\n\n.nol-tab-action {\n display: grid;\n flex: none;\n margin-inline: var(--nol-space-1) calc((var(--nol-icon) - var(--nol-tab-action-slot)) / 2);\n place-items: center;\n width: var(--nol-tab-action-slot);\n height: var(--nol-tab-action-slot);\n}\n\n.nol-tab-action > * {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close {\n display: grid;\n place-items: center;\n --nol-tab-close-target: max(var(--nol-pointer-target), var(--nol-tab-action-slot));\n\n box-sizing: border-box;\n width: var(--nol-tab-close-target);\n height: var(--nol-tab-close-target);\n margin: calc((var(--nol-tab-action-slot) - var(--nol-tab-close-target)) / 2);\n padding: 0;\n border: 0;\n background: none;\n color: inherit;\n visibility: hidden;\n}\n\n.nol-tab-close::before {\n content: \"\";\n grid-area: 1 / 1;\n width: var(--nol-tab-close);\n height: var(--nol-tab-close);\n border-radius: var(--nol-radius-small);\n}\n\n.nol-tab-close > span {\n grid-area: 1 / 1;\n}\n\n.nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n background-color: var(--nol-toolbar-hover);\n}\n\n@media (forced-colors: active) {\n .nol-tab-close:is(:hover, [data-nol-state=\"Hover\"])::before {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tab.nol-tab-selected .nol-tab-close,\n.nol-tab:is(:hover, [data-nol-state=\"Hover\"]) .nol-tab-close,\n.nol-tab:is(:focus-visible, [data-nol-state=\"Focus\"]) .nol-tab-close {\n visibility: visible;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):not(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-close {\n visibility: hidden;\n}\n\n.nol-tab:is(.nol-tab-working, .nol-tab-waiting):is(:is(:hover, [data-nol-state=\"Hover\"]), :is(:focus-visible, [data-nol-state=\"Focus\"])) .nol-tab-action:has(> .nol-tab-close) > :is(.nol-tab-spinner, .nol-tab-waiting-glyph) {\n visibility: hidden;\n}\n\n.nol-tab .nol-tab-spinner {\n width: var(--nol-icon);\n height: var(--nol-icon);\n}\n"] }]
|
|
161
161
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], selected: [{ type: i0.Input, args: [{ isSignal: true, alias: "selected", required: false }] }], preview: [{ type: i0.Input, args: [{ isSignal: true, alias: "preview", required: false }] }], working: [{ type: i0.Input, args: [{ isSignal: true, alias: "working", required: false }] }], waiting: [{ type: i0.Input, args: [{ isSignal: true, alias: "waiting", required: false }] }], closable: [{ type: i0.Input, args: [{ isSignal: true, alias: "closable", required: false }] }], badge: [{ type: i0.Input, args: [{ isSignal: true, alias: "badge", required: false }] }], badgeCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "badgeCount", required: false }] }], image: [{ type: i0.Input, args: [{ isSignal: true, alias: "image", required: false }] }], imageGlyph: [{ type: i0.Input, args: [{ isSignal: true, alias: "imageGlyph", required: false }] }], status: [{ type: i0.Input, args: [{ isSignal: true, alias: "status", required: false }] }], leadingSpinner: [{ type: i0.Input, args: [{ isSignal: true, alias: "leadingSpinner", required: false }] }], marker: [{ type: i0.Input, args: [{ isSignal: true, alias: "marker", required: false }] }], underline: [{ type: i0.Input, args: [{ isSignal: true, alias: "underline", required: false }] }], editing: [{ type: i0.Input, args: [{ isSignal: true, alias: "editing", required: false }] }], activate: [{ type: i0.Output, args: ["activate"] }], close: [{ type: i0.Output, args: ["close"] }], labelKept: [{ type: i0.Output, args: ["labelKept"] }], labelCancelled: [{ type: i0.Output, args: ["labelCancelled"] }], fieldElement: [{ type: i0.ViewChild, args: ["field", { ...{ read: ElementRef }, isSignal: true }] }] } });
|
|
162
162
|
//# sourceMappingURL=tab.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tab.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/tab/tab.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/tab/tab.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAe,iBAAiB,EAAuB,iBAAiB,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,YAAY,EAAE,MAAM,EAAE,SAAS,EAC9J,SAAS,EAAE,MAAM,eAAe,CAAC;AAInC,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AACnE,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;AAC3E,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,kBAAkB,EAAE,MAAM,uCAAuC,CAAC;;;AAgC3E,MAAM,OAAO,YAAY;IACJ,SAAS,GAAqB,SAAS,CAAC;IACxC,aAAa,GAAwB,YAAY,CAAC;IAClD,UAAU,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;mFAAC,CAAC;IACpF,cAAc,GAAmB,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,WAAW,EAAE,IAAI,CAAC,MAAM,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,CAAC;YACrC,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC;aACI,IAAI,KAAK,CAAC,GAAG,KAAK,SAAS,CAAC,SAAS,EAAE,CAAC;YAC3C,KAAK,CAAC,cAAc,EAAE,CAAC;YACvB,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,cAAc,CAAC,IAAI,EAAE,CAAC,CAAC;QAChD,CAAC;IACH,CAAC;IAES,IAAI;QACZ,MAAM,KAAK,GAAG,IAAI,CAAC,YAAY,EAAE,EAAE,aAAa,CAAC;QACjD,IAAI,IAAI,CAAC,OAAO,EAAE,IAAI,CAAC,MAAM,CAAC,WAAW,CAAC,KAAK,CAAC;YAC9C,IAAI,CAAC,MAAM,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;IAC/D,CAAC;IAES,YAAY;QACpB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;IACtB,CAAC;IAEO,MAAM,CAAC,MAAkB;QAC/B,IAAI,IAAI,CAAC,SAAS;YAChB,OAAO;QACT,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,MAAM,EAAE,CAAC;IACX,CAAC;uGA1GU,YAAY;2FAAZ,YAAY,29FAxBZ,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,QAAQ,EAAE,YAAY,CAAC,UAAU,EAAE,CAAC,4GAyDiC,UAAU,oICpFzH,woFAgDA,
|
|
1
|
+
{"version":3,"file":"tab.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/tab/tab.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/tab/tab.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAA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B,EAAE,YAAY;wBACxC,yBAAyB,EAAE,WAAW;wBACtC,yBAAyB,EAAE,mCAAmC;wBAC9D,4BAA4B,EAAE,sBAAsB;wBACpD,yBAAyB,EAAE,WAAW;wBACtC,yBAAyB,EAAE,WAAW;wBACtC,SAAS,EAAE,iBAAiB;wBAC5B,iBAAiB,EAAE,iBAAiB;wBACpC,iBAAiB,EAAE,iBAAiB;wBACpC,kBAAkB,EAAE,gBAAgB;wBACpC,aAAa,EAAE,qBAAqB;wBACpC,YAAY,EAAE,0BAA0B;qBACzC;2yDAmC2F,OAAO,OAAE,EAAE,IAAI,EAAE,UAAU,EAAE"}
|
|
@@ -67,10 +67,10 @@ export class TerminalOutputComponent {
|
|
|
67
67
|
const factor = Number.parseFloat(getComputedStyle(this.body().nativeElement).getPropertyValue(TerminalOutputResources.terminalOutputLineHeightToken));
|
|
68
68
|
return Math.floor(Math.ceil(height * devicePixelRatio) * factor) / devicePixelRatio;
|
|
69
69
|
}
|
|
70
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
71
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
70
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TerminalOutputComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
71
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TerminalOutputComponent, isStandalone: true, selector: "nol-terminal-output", inputs: { lines: { classPropertyName: "lines", publicName: "lines", isSignal: true, isRequired: true, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.--nol-terminal-output-row": "row()" }, classAttribute: "nol-terminal-output" }, viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }, { propertyName: "sample", first: true, predicate: ["sample"], descendants: true, isSignal: true }, { propertyName: "glyphs", first: true, predicate: ["glyphs"], 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<pre #body class=\"nol-terminal-output-body\" [style.max-height.rem]=\"maxHeight()\" (scroll)=\"see(body)\">@for (segment of segments(); track $index) {<span [style]=\"segment.style\">{{ segment.text }}</span>}</pre>\n<span #sample class=\"nol-terminal-output-sample\" aria-hidden=\"true\"><span #glyphs>{{ partResources.terminalOutputRowSample }}</span></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.nol-terminal-output {\n position: relative;\n display: block;\n min-width: 0;\n}\n\n.nol-terminal-output-sample {\n position: absolute;\n inset-block-start: 0;\n inset-inline-start: 0;\n visibility: hidden;\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-terminal);\n line-height: normal;\n pointer-events: none;\n}\n\n.nol-terminal-output-body {\n box-sizing: border-box;\n margin: 0;\n padding: 0.375rem var(--nol-space-2);\n overflow-y: auto;\n background-color: var(--nol-terminal-background);\n color: var(--nol-terminal-foreground);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-terminal);\n line-height: var(--nol-terminal-output-row, var(--nol-line-terminal));\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.nol-terminal-output-body ::selection,\n.nol-terminal-output-body::selection {\n background-color: var(--nol-terminal-selection);\n color: var(--nol-terminal-selection-foreground);\n}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
72
72
|
}
|
|
73
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TerminalOutputComponent, decorators: [{
|
|
74
74
|
type: Component,
|
|
75
75
|
args: [{ selector: "nol-terminal-output", encapsulation: ViewEncapsulation.None, host: {
|
|
76
76
|
"class": "nol-terminal-output",
|
|
@@ -28,10 +28,10 @@ export class TextFieldBoxComponent {
|
|
|
28
28
|
this.host.style.removeProperty(TextFieldBoxResources.textFieldEndWidthProperty);
|
|
29
29
|
});
|
|
30
30
|
}
|
|
31
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
32
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
31
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TextFieldBoxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
32
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TextFieldBoxComponent, isStandalone: true, selector: "nol-text-field-box", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null } }, host: { classAttribute: "nol-text-field-box" }, queries: [{ propertyName: "end", first: true, predicate: TextFieldEndDirective, read: ElementRef, isSignal: true }], ngImport: i0, template: "<!--\n@license\nCopyright (c) Noldova.\n\nThis source code is licensed under the license found in the\nLICENSE file in the root directory of this source tree.\n-->\n\n<ng-content />\n@if (icon(); as glyph) {\n <span class=\"nol-text-field-start material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-text-field-box {\n --nol-text-field-box-inset: max(0px, (var(--nol-field-height) - var(--nol-border-width) * 2 - var(--nol-icon-button-target)) / 2);\n\n display: inline-grid;\n grid-template-columns: minmax(0, 1fr) auto;\n box-sizing: border-box;\n width: var(--nol-text-field-width);\n max-width: 100%;\n min-width: 0;\n}\n\n.nol-text-field-box > input.nol-text-field {\n grid-area: 1 / 1 / 2 / 3;\n width: auto;\n padding-inline-end: calc(var(--nol-field-padding) + var(--nol-icon-button-target) + var(--nol-text-field-box-inset));\n}\n\n.nol-text-field-box:has(> .nol-text-field-start) {\n --nol-text-field-box-start: calc(var(--nol-icon) + var(--nol-space-2));\n}\n\n.nol-text-field-box:has(> .nol-text-field-start) > input.nol-text-field {\n padding-inline-start: calc(var(--nol-field-padding) + var(--nol-text-field-box-start));\n}\n\n.nol-text-field-box > .nol-text-field-start {\n grid-area: 1 / 1;\n align-self: center;\n justify-self: start;\n margin-inline: calc(var(--nol-border-width) + var(--nol-field-padding));\n color: var(--nol-text-muted);\n pointer-events: none;\n}\n\n.nol-text-field-box:has(> .nol-text-field-start):not(:has(> .nol-icon-button, > .nol-text-field-end)) > input.nol-text-field {\n padding-inline-end: var(--nol-field-padding);\n}\n\n.nol-text-field-box:has(> input.nol-text-field:disabled) > .nol-text-field-start {\n opacity: 0.5;\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n}\n\n.nol-text-field-box > .nol-icon-button {\n grid-area: 1 / 2;\n align-self: center;\n margin-inline-end: calc(var(--nol-border-width) + var(--nol-text-field-box-inset));\n}\n\n.nol-text-field-box:has(> .nol-text-field-end) {\n --nol-text-field-box-text-minimum: 4rem;\n\n container-type: inline-size;\n}\n\n.nol-text-field-box:has(> .nol-text-field-end) > input.nol-text-field {\n padding-inline-end: calc(var(--nol-field-padding) + var(--nol-space-2) + var(--nol-text-field-end-width, 0px));\n}\n\n.nol-text-field-box > .nol-text-field-end {\n grid-area: 1 / 2;\n align-self: center;\n overflow: hidden;\n min-width: 0;\n max-width: max(0px, 100cqi - var(--nol-border-width) * 2 - var(--nol-field-padding) * 2 - var(--nol-text-field-box-start, 0px) - var(--nol-space-2)\n - var(--nol-text-field-box-text-minimum));\n margin-inline-end: calc(var(--nol-border-width) + var(--nol-field-padding));\n color: var(--nol-text-muted);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n white-space: nowrap;\n text-overflow: ellipsis;\n pointer-events: none;\n}\n\n.nol-text-field-box:has(> input.nol-text-field:disabled) > .nol-text-field-end {\n opacity: 0.5;\n\n @media (forced-colors: active) {\n color: GrayText;\n }\n}\n\n.nol-text-field-box:has(> .nol-icon-button:is(:focus-visible, [data-nol-state=\"Focus\"])) > input.nol-text-field:not([aria-invalid=\"true\"]) {\n border-color: var(--nol-accent);\n}\n\n@media (forced-colors: active) {\n .nol-text-field-box > input.nol-text-field[aria-invalid=\"true\"] {\n padding-inline-end: calc(var(--nol-field-padding) + var(--nol-icon-button-target) + var(--nol-text-field-box-inset) - var(--nol-border-width) * 2);\n }\n\n .nol-text-field-box:has(> .nol-text-field-start) > input.nol-text-field[aria-invalid=\"true\"] {\n padding-inline-start: calc(var(--nol-field-padding) + var(--nol-text-field-box-start) - var(--nol-border-width));\n }\n\n .nol-text-field-box:has(> .nol-text-field-start):not(:has(> .nol-icon-button, > .nol-text-field-end)) > input.nol-text-field[aria-invalid=\"true\"] {\n padding-inline-end: calc(var(--nol-field-padding) - var(--nol-border-width));\n }\n\n .nol-text-field-box:has(> .nol-text-field-end) > input.nol-text-field[aria-invalid=\"true\"] {\n padding-inline-end: calc(var(--nol-field-padding) + var(--nol-space-2) + var(--nol-text-field-end-width, 0px) - var(--nol-border-width));\n }\n\n .nol-text-field-box > input.nol-text-field[aria-invalid=\"true\"] ~ .nol-icon-button::before {\n width: calc(var(--nol-icon-button) - var(--nol-border-width) * 2);\n height: calc(var(--nol-icon-button) - var(--nol-border-width) * 2);\n }\n\n .nol-text-field-box:has(> .nol-icon-button:is(:focus-visible, [data-nol-state=\"Focus\"])) > input.nol-text-field {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
33
33
|
}
|
|
34
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TextFieldBoxComponent, decorators: [{
|
|
35
35
|
type: Component,
|
|
36
36
|
args: [{ selector: "nol-text-field-box", encapsulation: ViewEncapsulation.None, host: {
|
|
37
37
|
"class": "nol-text-field-box"
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import { Directive } from "@angular/core";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export class TextFieldEndDirective {
|
|
11
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
12
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TextFieldEndDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
12
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: TextFieldEndDirective, isStandalone: true, selector: "[nolTextFieldEnd]", host: { attributes: { "data-truncates": "" }, classAttribute: "nol-text-field-end" }, ngImport: i0 });
|
|
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: TextFieldEndDirective, decorators: [{
|
|
15
15
|
type: Directive,
|
|
16
16
|
args: [{
|
|
17
17
|
selector: "[nolTextFieldEnd]",
|
|
@@ -8,10 +8,10 @@
|
|
|
8
8
|
import { Component } from "@angular/core";
|
|
9
9
|
import * as i0 from "@angular/core";
|
|
10
10
|
export class TextFieldComponent {
|
|
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: TextFieldComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
12
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.2.6", type: TextFieldComponent, isStandalone: true, selector: "input[nol-text-field], textarea[nol-text-field]", host: { classAttribute: "nol-text-field" }, 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 box-sizing: border-box;\n width: var(--nol-text-field-width);\n max-width: 100%;\n min-width: 0;\n min-height: var(--nol-field-height);\n padding: 0 var(--nol-field-padding);\n border: var(--nol-border-width) solid var(--nol-input-border);\n border-radius: var(--nol-radius-small);\n background-color: var(--nol-input);\n color: var(--nol-input-text);\n font: inherit;\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n cursor: text;\n}\n\n:where(:host) {\n margin: 0;\n}\n\n:host(textarea) {\n padding-block: var(--nol-field-padding);\n resize: vertical;\n vertical-align: top;\n}\n\n:host::placeholder {\n color: var(--nol-placeholder);\n opacity: 1;\n}\n\n:host(:is(:focus, [data-nol-state=\"Focus\"])) {\n border-color: var(--nol-accent);\n outline: none;\n\n @media (forced-colors: active) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n:host([aria-invalid=\"true\"]) {\n border-color: var(--nol-error);\n\n @media (forced-colors: active) {\n padding-inline: calc(var(--nol-field-padding) - var(--nol-border-width));\n border-width: calc(var(--nol-border-width) * 2);\n border-style: dashed;\n border-color: CanvasText;\n }\n}\n\n:host(textarea[aria-invalid=\"true\"]) {\n @media (forced-colors: active) {\n padding-block: calc(var(--nol-field-padding) - var(--nol-border-width));\n }\n}\n\n:host(:disabled) {\n opacity: 0.5;\n cursor: default;\n\n @media (forced-colors: active) {\n border-color: GrayText;\n color: GrayText;\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: TextFieldComponent, decorators: [{
|
|
15
15
|
type: Component,
|
|
16
16
|
args: [{ selector: "input[nol-text-field], textarea[nol-text-field]", host: {
|
|
17
17
|
"class": "nol-text-field"
|
|
@@ -12,10 +12,10 @@ export class ToolCallOutputDirective {
|
|
|
12
12
|
static ngTemplateContextGuard(_, _context) {
|
|
13
13
|
return true;
|
|
14
14
|
}
|
|
15
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
16
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
15
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolCallOutputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: ToolCallOutputDirective, isStandalone: true, selector: "ng-template[nolToolCallOutput]", 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: ToolCallOutputDirective, decorators: [{
|
|
19
19
|
type: Directive,
|
|
20
20
|
args: [{ selector: "ng-template[nolToolCallOutput]" }]
|
|
21
21
|
}] });
|
|
@@ -327,10 +327,10 @@ export class ToolCallComponent {
|
|
|
327
327
|
static isPending(state) {
|
|
328
328
|
return state === ToolCallOutputState.Loading || state === ToolCallOutputState.Failed;
|
|
329
329
|
}
|
|
330
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
331
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.5", type: ToolCallComponent, isStandalone: true, selector: "nol-tool-call", inputs: { call: { classPropertyName: "call", publicName: "call", isSignal: true, isRequired: true, transformFunction: null }, views: { classPropertyName: "views", publicName: "views", isSignal: true, isRequired: false, transformFunction: null }, outputLines: { classPropertyName: "outputLines", publicName: "outputLines", isSignal: true, isRequired: false, transformFunction: null }, childrenStep: { classPropertyName: "childrenStep", publicName: "childrenStep", isSignal: true, isRequired: false, transformFunction: null }, titleTooltip: { classPropertyName: "titleTooltip", publicName: "titleTooltip", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, shownTitles: { classPropertyName: "shownTitles", publicName: "shownTitles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { views: "viewsChange", cancel: "cancel", openTarget: "openTarget", outputRequest: "outputRequest" }, host: { properties: { "class.nol-tool-call-expanded": "isExpanded() && !isStatic()", "class.nol-tool-call-static": "isStatic()", "class.nol-tool-call-fold-extras": "fit() >= 1", "class.nol-tool-call-fold-status": "fit() >= 2", "class.nol-tool-call-fold-kind": "fit() >= 3", "class.nol-tool-call-unindented": "isCapped()" }, classAttribute: "nol-tool-call" }, queries: [{ propertyName: "ownOutput", first: true, predicate: ToolCallOutputDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "outputArea", first: true, predicate: ["output"], descendants: true, isSignal: true }, { propertyName: "retryButton", first: true, predicate: ["retryButton"], descendants: true, isSignal: true }, { propertyName: "childList", first: true, predicate: ["children"], descendants: true, isSignal: true }, { propertyName: "titleText", first: true, predicate: ["title"], descendants: true, isSignal: true }, { propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "nestedCards", predicate: ToolCallComponent, 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 #header class=\"nol-tool-call-header\">\n @if (isStatic()) {\n <span class=\"nol-tool-call-toggle\" tabindex=\"-1\" [id]=\"id + '-toggle'\" [attr.aria-describedby]=\"id + '-state'\" [nolTooltip]=\"call().title\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"titleTooltip() === null\"\n [nolTooltipSide]=\"titleSide()\" [nolTooltipBeside]=\"titleBeside()\">\n <ng-container [ngTemplateOutlet]=\"heading\" />\n </span>\n } @else {\n <button type=\"button\" class=\"nol-tool-call-toggle\" data-nol-resizes-row [id]=\"id + '-toggle'\" [attr.aria-expanded]=\"isExpanded()\" [attr.aria-controls]=\"id + '-body'\" [attr.aria-describedby]=\"id + '-state'\"\n [nolTooltip]=\"call().title\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"titleTooltip() === null\" [nolTooltipSide]=\"titleSide()\"\n [nolTooltipBeside]=\"titleBeside()\" (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"heading\" />\n </button>\n }\n <ng-template #heading>\n <span class=\"nol-tool-call-twistie material-symbols-rounded\" aria-hidden=\"true\">{{ resources.twistieGlyph }}</span>\n <span class=\"nol-tool-call-kind material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallKindGlyphs[call().kind] }}</span>\n <span #title class=\"nol-tool-call-title\" data-truncates>{{ shownTitle() }}</span>\n </ng-template>\n @if (target(); as target) {\n <button type=\"button\" class=\"nol-tool-call-target\" [attr.aria-label]=\"partResources.formatToolCallOpenTarget(target.text)\" [nolTooltip]=\"target.text\" [nolTooltipTruncated]=\"true\"\n (click)=\"openTarget.emit(call())\"><span class=\"nol-tool-call-target-head\" data-truncates>{{ target.head }}</span><span class=\"nol-tool-call-target-tail\">{{ target.tail }}</span></button>\n }\n <span class=\"nol-tool-call-state\" [class]=\"partResources.toolCallStatusClasses[call().status]\" [id]=\"id + '-state'\">\n @if (isRunning()) {\n <nol-spinner class=\"nol-tool-call-spinner\" />\n } @else {\n <span class=\"nol-tool-call-status-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallStatusGlyphs[call().status] }}</span>\n }\n <span class=\"nol-tool-call-status\">{{ partResources.toolCallStatusLabels[call().status] }}</span>\n @if (durationText(); as duration) {\n <span class=\"nol-tool-call-duration\">{{ duration }}</span>\n }\n @if (showsDepth()) {\n <span class=\"nol-tool-call-depth\">{{ partResources.formatToolCallDepth(depth) }}</span>\n }\n @if (!isExpanded() && call().children.length > 0) {\n <span class=\"nol-tool-call-nested\">{{ partResources.formatToolCallNested(call().children.length) }}</span>\n }\n </span>\n @if (call().isCancellable) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-cancel\" [icon]=\"partResources.toolCallCancelGlyph\" [label]=\"partResources.formatToolCallCancel(cancelLabel(), call().title)\"\n [nolTooltip]=\"cancelLabel()\" (click)=\"cancel.emit(call())\"></button>\n }\n</div>\n<div class=\"nol-tool-call-body\" role=\"region\" [id]=\"id + '-body'\" [attr.aria-labelledby]=\"id + '-toggle'\" [hidden]=\"!isExpanded() || !hasBody()\">\n @if (isExpanded()) {\n @if (call().error; as error) {\n <p class=\"nol-tool-call-error\"><span class=\"nol-tool-call-error-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallErrorGlyph }}</span><span>{{ error }}</span></p>\n }\n @if (call().input; as input) {\n <div class=\"nol-tool-call-section nol-tool-call-input\">\n <div class=\"nol-tool-call-section-header\">\n <span class=\"nol-tool-call-section-label\">{{ partResources.toolCallInputLabel }}</span>\n @if (input.fields.length > 0) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-copy\" [class.nol-tool-call-copied]=\"inputCopy() === copyStates.Copied\" [icon]=\"resources.copyGlyphs[inputCopy()]\"\n [label]=\"partResources.toolCallCopyInputLabels[inputCopy()]\" [nolTooltip]=\"partResources.toolCallCopyInputLabels[inputCopy()]\" (click)=\"copy(input.text, inputCopy)\"></button>\n }\n </div>\n @if (input.fields.length > 0) {\n <dl class=\"nol-tool-call-fields\">\n @for (field of input.fields; track $index) {\n <div class=\"nol-tool-call-field\"><dt>{{ field.key }}</dt><dd>{{ field.value }}</dd></div>\n }\n </dl>\n } @else {\n <nol-code-block [code]=\"input.text\" [language]=\"input.language\" />\n }\n </div>\n }\n @if (hasOutput()) {\n <div class=\"nol-tool-call-section nol-tool-call-result\">\n <div class=\"nol-tool-call-section-header\">\n <span class=\"nol-tool-call-section-label\">{{ partResources.toolCallOutputLabel }}</span>\n @if (call().output; as text) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-copy\" [class.nol-tool-call-copied]=\"outputCopy() === copyStates.Copied\" [icon]=\"resources.copyGlyphs[outputCopy()]\"\n [label]=\"partResources.toolCallCopyOutputLabels[outputCopy()]\" [nolTooltip]=\"partResources.toolCallCopyOutputLabels[outputCopy()]\" (click)=\"copy(text, outputCopy)\"></button>\n }\n </div>\n @if (control(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: call() }\" />\n } @else if (lines().length > 0) {\n <pre #output class=\"nol-tool-call-output\" [class.nol-tool-call-output-scrolls]=\"isScrolling()\" [attr.tabindex]=\"isScrolling() ? 0 : null\" [attr.role]=\"isScrolling() ? 'region' : null\"\n [attr.aria-label]=\"isScrolling() ? partResources.toolCallOutputLabel : null\" (scroll)=\"follow(output)\" (keydown)=\"keepKey($event)\">{{ shownOutput() }}</pre>\n @if (isCut()) {\n <button type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"showAllLines()\">{{ partResources.formatToolCallShowAllLines(lines().length) }}</button>\n }\n } @else if (call().outputState === states.Loading) {\n <div class=\"nol-tool-call-loading\"><nol-spinner /><span>{{ partResources.toolCallOutputLoading }}</span></div>\n } @else {\n <div class=\"nol-tool-call-load-failed\">\n <span>{{ partResources.toolCallOutputFailed }}</span>\n <button #retryButton type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"retry(retryButton)\">{{ partResources.toolCallRetryLabel }}</button>\n </div>\n }\n </div>\n }\n @if (call().children.length > 0) {\n <div #children class=\"nol-tool-call-children\" [class.nol-tool-call-children-flat]=\"isFlat()\" role=\"group\" [attr.aria-label]=\"partResources.formatToolCallChildren(call().title)\">\n @for (child of shownChildren(); track child.id) {\n <nol-tool-call [call]=\"child\" [(views)]=\"views\" [outputLines]=\"outputLines()\" [childrenStep]=\"childrenStep()\" [shownTitles]=\"shownTitles()\" [titleTooltip]=\"titleTooltip()\" [cancelLabel]=\"cancelLabel()\" (cancel)=\"cancel.emit($event)\"\n (openTarget)=\"openTarget.emit($event)\" (outputRequest)=\"outputRequest.emit($event)\" />\n }\n @if (moreChildren() > 0) {\n <button type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"showMore()\">{{ partResources.formatToolCallShowMore(moreChildren()) }}</button>\n }\n </div>\n }\n }\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-tool-call {\n --nol-tool-call-first-line: max(var(--nol-pointer-target), var(--nol-line-panel));\n\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.nol-tool-call-header {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n min-width: 0;\n min-height: var(--nol-code-header-height);\n padding-inline: var(--nol-space-1) calc(var(--nol-space-3) - (var(--nol-icon-button-target) - var(--nol-icon)) / 2);\n}\n\n.nol-tool-call-toggle {\n display: flex;\n position: relative;\n flex: 0 1 auto;\n align-items: center;\n gap: var(--nol-space-1);\n min-width: 0;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.nol-tool-call-toggle:is(:hover, [data-nol-state=\"Hover\"]),\n.nol-tool-call-target:is(:hover, [data-nol-state=\"Hover\"]),\n.nol-tool-call-more:is(:hover, [data-nol-state=\"Hover\"]) {\n background-color: var(--nol-hover);\n}\n\n@media (forced-colors: active) {\n button.nol-tool-call-toggle:is(:hover, [data-nol-state=\"Hover\"]),\n .nol-tool-call-target:is(:hover, [data-nol-state=\"Hover\"]),\n .nol-tool-call-more:is(:hover, [data-nol-state=\"Hover\"]) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tool-call-twistie,\n.nol-tool-call-kind,\n.nol-tool-call-status-glyph,\n.nol-tool-call-error-glyph {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.nol-tool-call-twistie,\n.nol-tool-call-kind {\n color: var(--nol-icon-color);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header .nol-tool-call-twistie {\n rotate: 90deg;\n}\n\n.nol-tool-call-static > .nol-tool-call-header .nol-tool-call-twistie {\n visibility: hidden;\n}\n\n:dir(rtl) .nol-tool-call:not(.nol-tool-call-expanded) > .nol-tool-call-header .nol-tool-call-twistie {\n rotate: 180deg;\n}\n\n.nol-tool-call-title,\n.nol-tool-call-target-head,\n.nol-tool-call-target-tail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-tool-call-title {\n min-width: 0;\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header {\n align-items: flex-start;\n padding-block: calc((var(--nol-code-header-height) - var(--nol-tool-call-first-line)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-toggle {\n box-sizing: border-box;\n align-items: flex-start;\n padding-block: calc((var(--nol-tool-call-first-line) - var(--nol-line-panel)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-toggle > :is(.nol-tool-call-twistie, .nol-tool-call-kind) {\n margin-block: calc((var(--nol-line-panel) - var(--nol-icon)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header .nol-tool-call-title {\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > :is(.nol-tool-call-target, .nol-tool-call-state) {\n min-height: var(--nol-tool-call-first-line);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-cancel {\n margin-block: calc((var(--nol-tool-call-first-line) - var(--nol-icon-button-target)) / 2);\n}\n\n.nol-tool-call-target {\n display: flex;\n flex: 0 1000 auto;\n align-items: center;\n min-width: 0;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: var(--nol-link);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n direction: ltr;\n unicode-bidi: isolate;\n}\n\n.nol-tool-call-target-head {\n flex: 0 1000 auto;\n min-width: 0;\n}\n\n.nol-tool-call-target-tail {\n flex: 0 1 auto;\n min-width: 0;\n}\n\n.nol-tool-call-state {\n display: flex;\n position: relative;\n flex: none;\n align-items: center;\n gap: var(--nol-space-1);\n margin-inline-start: auto;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n white-space: nowrap;\n}\n\n.nol-tool-call-succeeded .nol-tool-call-status-glyph {\n color: var(--nol-added);\n}\n\n.nol-tool-call-failed .nol-tool-call-status-glyph,\n.nol-tool-call-error-glyph {\n color: var(--nol-error);\n}\n\n.nol-tool-call-duration,\n.nol-tool-call-depth,\n.nol-tool-call-nested {\n padding-inline-start: var(--nol-space-1);\n border-inline-start: var(--nol-border-width) solid var(--nol-card-border);\n font-variant-numeric: tabular-nums;\n}\n\n.nol-tool-call-fold-extras > .nol-tool-call-header > .nol-tool-call-state > :is(.nol-tool-call-duration, .nol-tool-call-depth, .nol-tool-call-nested),\n.nol-tool-call-fold-status > .nol-tool-call-header > .nol-tool-call-state > .nol-tool-call-status,\n.nol-tool-call-fold-kind > .nol-tool-call-header > .nol-tool-call-toggle > .nol-tool-call-kind {\n position: absolute;\n inset-inline-end: 0;\n opacity: 0;\n pointer-events: none;\n}\n\n.nol-tool-call-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-2) var(--nol-space-3) var(--nol-space-3);\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-tool-call-body[hidden] {\n display: none;\n}\n\n.nol-tool-call-error {\n display: flex;\n gap: var(--nol-space-1);\n margin: 0;\n overflow-wrap: anywhere;\n}\n\n.nol-tool-call-error-glyph {\n line-height: inherit;\n}\n\n.nol-tool-call-section {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-tool-call-section-header {\n display: flex;\n align-items: center;\n min-height: var(--nol-icon-button-target);\n margin-inline-end: calc((var(--nol-icon-button-target) - var(--nol-icon)) / -2);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-tool-call-section-label {\n flex: auto;\n}\n\n.nol-tool-call-copied .nol-icon-button-glyph {\n color: var(--nol-added);\n animation: nol-copied-pop 200ms ease-out;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n.nol-tool-call-fields {\n display: grid;\n grid-template-columns: max-content minmax(0, 1fr);\n gap: var(--nol-space-1) var(--nol-space-3);\n margin: 0;\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n}\n\n.nol-tool-call-field {\n display: contents;\n}\n\n.nol-tool-call-field > dt {\n color: var(--nol-text-muted);\n}\n\n.nol-tool-call-field > dd {\n margin: 0;\n overflow-wrap: anywhere;\n white-space: pre-wrap;\n}\n\n.nol-tool-call-output {\n box-sizing: border-box;\n margin: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-small);\n outline: none;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n overflow-wrap: anywhere;\n white-space: pre-wrap;\n}\n\n.nol-tool-call-output-scrolls {\n max-height: calc(var(--nol-text-code) * var(--nol-line-code) * 20 + var(--nol-space-2) * 2);\n overflow-y: auto;\n}\n\n.nol-tool-call-output:is(:focus-visible, [data-nol-state=\"Focus\"]) {\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 .nol-tool-call-output:is(:focus-visible, [data-nol-state=\"Focus\"]) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-tool-call-more {\n align-self: flex-start;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n margin-inline-start: calc(var(--nol-space-1) * -1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: var(--nol-link);\n font: inherit;\n}\n\n.nol-tool-call-loading,\n.nol-tool-call-load-failed {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n color: var(--nol-text-muted);\n}\n\n.nol-tool-call-load-failed > .nol-tool-call-more {\n align-self: auto;\n margin-inline-start: 0;\n}\n\n.nol-tool-call-children {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.nol-tool-call-children-flat,\n.nol-tool-call-unindented {\n margin-inline: calc((var(--nol-space-3) + var(--nol-border-width)) * -1);\n}\n\n.nol-tool-call-unindented {\n width: calc(100% + (var(--nol-space-3) + var(--nol-border-width)) * 2);\n}\n"], dependencies: [{ kind: "component", type: ToolCallComponent, selector: "nol-tool-call", inputs: ["call", "views", "outputLines", "childrenStep", "titleTooltip", "cancelLabel", "shownTitles"], outputs: ["viewsChange", "cancel", "openTarget", "outputRequest"] }, { kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
330
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolCallComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
331
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: ToolCallComponent, isStandalone: true, selector: "nol-tool-call", inputs: { call: { classPropertyName: "call", publicName: "call", isSignal: true, isRequired: true, transformFunction: null }, views: { classPropertyName: "views", publicName: "views", isSignal: true, isRequired: false, transformFunction: null }, outputLines: { classPropertyName: "outputLines", publicName: "outputLines", isSignal: true, isRequired: false, transformFunction: null }, childrenStep: { classPropertyName: "childrenStep", publicName: "childrenStep", isSignal: true, isRequired: false, transformFunction: null }, titleTooltip: { classPropertyName: "titleTooltip", publicName: "titleTooltip", isSignal: true, isRequired: false, transformFunction: null }, cancelLabel: { classPropertyName: "cancelLabel", publicName: "cancelLabel", isSignal: true, isRequired: false, transformFunction: null }, shownTitles: { classPropertyName: "shownTitles", publicName: "shownTitles", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { views: "viewsChange", cancel: "cancel", openTarget: "openTarget", outputRequest: "outputRequest" }, host: { properties: { "class.nol-tool-call-expanded": "isExpanded() && !isStatic()", "class.nol-tool-call-static": "isStatic()", "class.nol-tool-call-fold-extras": "fit() >= 1", "class.nol-tool-call-fold-status": "fit() >= 2", "class.nol-tool-call-fold-kind": "fit() >= 3", "class.nol-tool-call-unindented": "isCapped()" }, classAttribute: "nol-tool-call" }, queries: [{ propertyName: "ownOutput", first: true, predicate: ToolCallOutputDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "outputArea", first: true, predicate: ["output"], descendants: true, isSignal: true }, { propertyName: "retryButton", first: true, predicate: ["retryButton"], descendants: true, isSignal: true }, { propertyName: "childList", first: true, predicate: ["children"], descendants: true, isSignal: true }, { propertyName: "titleText", first: true, predicate: ["title"], descendants: true, isSignal: true }, { propertyName: "header", first: true, predicate: ["header"], descendants: true, isSignal: true }, { propertyName: "nestedCards", predicate: ToolCallComponent, 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 #header class=\"nol-tool-call-header\">\n @if (isStatic()) {\n <span class=\"nol-tool-call-toggle\" tabindex=\"-1\" [id]=\"id + '-toggle'\" [attr.aria-describedby]=\"id + '-state'\" [nolTooltip]=\"call().title\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"titleTooltip() === null\"\n [nolTooltipSide]=\"titleSide()\" [nolTooltipBeside]=\"titleBeside()\">\n <ng-container [ngTemplateOutlet]=\"heading\" />\n </span>\n } @else {\n <button type=\"button\" class=\"nol-tool-call-toggle\" data-nol-resizes-row [id]=\"id + '-toggle'\" [attr.aria-expanded]=\"isExpanded()\" [attr.aria-controls]=\"id + '-body'\" [attr.aria-describedby]=\"id + '-state'\"\n [nolTooltip]=\"call().title\" [nolTooltipTruncated]=\"true\" [nolTooltipDisabled]=\"titleTooltip() === null\" [nolTooltipSide]=\"titleSide()\"\n [nolTooltipBeside]=\"titleBeside()\" (click)=\"toggle()\">\n <ng-container [ngTemplateOutlet]=\"heading\" />\n </button>\n }\n <ng-template #heading>\n <span class=\"nol-tool-call-twistie material-symbols-rounded\" aria-hidden=\"true\">{{ resources.twistieGlyph }}</span>\n <span class=\"nol-tool-call-kind material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallKindGlyphs[call().kind] }}</span>\n <span #title class=\"nol-tool-call-title\" data-truncates>{{ shownTitle() }}</span>\n </ng-template>\n @if (target(); as target) {\n <button type=\"button\" class=\"nol-tool-call-target\" [attr.aria-label]=\"partResources.formatToolCallOpenTarget(target.text)\" [nolTooltip]=\"target.text\" [nolTooltipTruncated]=\"true\"\n (click)=\"openTarget.emit(call())\"><span class=\"nol-tool-call-target-head\" data-truncates>{{ target.head }}</span><span class=\"nol-tool-call-target-tail\">{{ target.tail }}</span></button>\n }\n <span class=\"nol-tool-call-state\" [class]=\"partResources.toolCallStatusClasses[call().status]\" [id]=\"id + '-state'\">\n @if (isRunning()) {\n <nol-spinner class=\"nol-tool-call-spinner\" />\n } @else {\n <span class=\"nol-tool-call-status-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallStatusGlyphs[call().status] }}</span>\n }\n <span class=\"nol-tool-call-status\">{{ partResources.toolCallStatusLabels[call().status] }}</span>\n @if (durationText(); as duration) {\n <span class=\"nol-tool-call-duration\">{{ duration }}</span>\n }\n @if (showsDepth()) {\n <span class=\"nol-tool-call-depth\">{{ partResources.formatToolCallDepth(depth) }}</span>\n }\n @if (!isExpanded() && call().children.length > 0) {\n <span class=\"nol-tool-call-nested\">{{ partResources.formatToolCallNested(call().children.length) }}</span>\n }\n </span>\n @if (call().isCancellable) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-cancel\" [icon]=\"partResources.toolCallCancelGlyph\" [label]=\"partResources.formatToolCallCancel(cancelLabel(), call().title)\"\n [nolTooltip]=\"cancelLabel()\" (click)=\"cancel.emit(call())\"></button>\n }\n</div>\n<div class=\"nol-tool-call-body\" role=\"region\" [id]=\"id + '-body'\" [attr.aria-labelledby]=\"id + '-toggle'\" [hidden]=\"!isExpanded() || !hasBody()\">\n @if (isExpanded()) {\n @if (call().error; as error) {\n <p class=\"nol-tool-call-error\"><span class=\"nol-tool-call-error-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolCallErrorGlyph }}</span><span>{{ error }}</span></p>\n }\n @if (call().input; as input) {\n <div class=\"nol-tool-call-section nol-tool-call-input\">\n <div class=\"nol-tool-call-section-header\">\n <span class=\"nol-tool-call-section-label\">{{ partResources.toolCallInputLabel }}</span>\n @if (input.fields.length > 0) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-copy\" [class.nol-tool-call-copied]=\"inputCopy() === copyStates.Copied\" [icon]=\"resources.copyGlyphs[inputCopy()]\"\n [label]=\"partResources.toolCallCopyInputLabels[inputCopy()]\" [nolTooltip]=\"partResources.toolCallCopyInputLabels[inputCopy()]\" (click)=\"copy(input.text, inputCopy)\"></button>\n }\n </div>\n @if (input.fields.length > 0) {\n <dl class=\"nol-tool-call-fields\">\n @for (field of input.fields; track $index) {\n <div class=\"nol-tool-call-field\"><dt>{{ field.key }}</dt><dd>{{ field.value }}</dd></div>\n }\n </dl>\n } @else {\n <nol-code-block [code]=\"input.text\" [language]=\"input.language\" />\n }\n </div>\n }\n @if (hasOutput()) {\n <div class=\"nol-tool-call-section nol-tool-call-result\">\n <div class=\"nol-tool-call-section-header\">\n <span class=\"nol-tool-call-section-label\">{{ partResources.toolCallOutputLabel }}</span>\n @if (call().output; as text) {\n <button type=\"button\" nol-icon-button class=\"nol-tool-call-copy\" [class.nol-tool-call-copied]=\"outputCopy() === copyStates.Copied\" [icon]=\"resources.copyGlyphs[outputCopy()]\"\n [label]=\"partResources.toolCallCopyOutputLabels[outputCopy()]\" [nolTooltip]=\"partResources.toolCallCopyOutputLabels[outputCopy()]\" (click)=\"copy(text, outputCopy)\"></button>\n }\n </div>\n @if (control(); as template) {\n <ng-container [ngTemplateOutlet]=\"template\" [ngTemplateOutletContext]=\"{ $implicit: call() }\" />\n } @else if (lines().length > 0) {\n <pre #output class=\"nol-tool-call-output\" [class.nol-tool-call-output-scrolls]=\"isScrolling()\" [attr.tabindex]=\"isScrolling() ? 0 : null\" [attr.role]=\"isScrolling() ? 'region' : null\"\n [attr.aria-label]=\"isScrolling() ? partResources.toolCallOutputLabel : null\" (scroll)=\"follow(output)\" (keydown)=\"keepKey($event)\">{{ shownOutput() }}</pre>\n @if (isCut()) {\n <button type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"showAllLines()\">{{ partResources.formatToolCallShowAllLines(lines().length) }}</button>\n }\n } @else if (call().outputState === states.Loading) {\n <div class=\"nol-tool-call-loading\"><nol-spinner /><span>{{ partResources.toolCallOutputLoading }}</span></div>\n } @else {\n <div class=\"nol-tool-call-load-failed\">\n <span>{{ partResources.toolCallOutputFailed }}</span>\n <button #retryButton type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"retry(retryButton)\">{{ partResources.toolCallRetryLabel }}</button>\n </div>\n }\n </div>\n }\n @if (call().children.length > 0) {\n <div #children class=\"nol-tool-call-children\" [class.nol-tool-call-children-flat]=\"isFlat()\" role=\"group\" [attr.aria-label]=\"partResources.formatToolCallChildren(call().title)\">\n @for (child of shownChildren(); track child.id) {\n <nol-tool-call [call]=\"child\" [(views)]=\"views\" [outputLines]=\"outputLines()\" [childrenStep]=\"childrenStep()\" [shownTitles]=\"shownTitles()\" [titleTooltip]=\"titleTooltip()\" [cancelLabel]=\"cancelLabel()\" (cancel)=\"cancel.emit($event)\"\n (openTarget)=\"openTarget.emit($event)\" (outputRequest)=\"outputRequest.emit($event)\" />\n }\n @if (moreChildren() > 0) {\n <button type=\"button\" class=\"nol-tool-call-more\" data-nol-resizes-row (click)=\"showMore()\">{{ partResources.formatToolCallShowMore(moreChildren()) }}</button>\n }\n </div>\n }\n }\n</div>\n", styles: ["/**\n * @license\n * Copyright (c) Noldova.\n *\n * This source code is licensed under the license found in the\n * LICENSE file in the root directory of this source tree.\n */\n\n.nol-tool-call {\n --nol-tool-call-first-line: max(var(--nol-pointer-target), var(--nol-line-panel));\n\n display: flex;\n flex-direction: column;\n box-sizing: border-box;\n width: 100%;\n min-width: 0;\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-medium);\n color: var(--nol-text);\n font-size: var(--nol-text-panel);\n line-height: var(--nol-line-panel);\n}\n\n.nol-tool-call-header {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n box-sizing: border-box;\n min-width: 0;\n min-height: var(--nol-code-header-height);\n padding-inline: var(--nol-space-1) calc(var(--nol-space-3) - (var(--nol-icon-button-target) - var(--nol-icon)) / 2);\n}\n\n.nol-tool-call-toggle {\n display: flex;\n position: relative;\n flex: 0 1 auto;\n align-items: center;\n gap: var(--nol-space-1);\n min-width: 0;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: inherit;\n font: inherit;\n text-align: start;\n}\n\nbutton.nol-tool-call-toggle:is(:hover, [data-nol-state=\"Hover\"]),\n.nol-tool-call-target:is(:hover, [data-nol-state=\"Hover\"]),\n.nol-tool-call-more:is(:hover, [data-nol-state=\"Hover\"]) {\n background-color: var(--nol-hover);\n}\n\n@media (forced-colors: active) {\n button.nol-tool-call-toggle:is(:hover, [data-nol-state=\"Hover\"]),\n .nol-tool-call-target:is(:hover, [data-nol-state=\"Hover\"]),\n .nol-tool-call-more:is(:hover, [data-nol-state=\"Hover\"]) {\n outline: var(--nol-border-width) dashed Highlight;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-tool-call-twistie,\n.nol-tool-call-kind,\n.nol-tool-call-status-glyph,\n.nol-tool-call-error-glyph {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.nol-tool-call-twistie,\n.nol-tool-call-kind {\n color: var(--nol-icon-color);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header .nol-tool-call-twistie {\n rotate: 90deg;\n}\n\n.nol-tool-call-static > .nol-tool-call-header .nol-tool-call-twistie {\n visibility: hidden;\n}\n\n:dir(rtl) .nol-tool-call:not(.nol-tool-call-expanded) > .nol-tool-call-header .nol-tool-call-twistie {\n rotate: 180deg;\n}\n\n.nol-tool-call-title,\n.nol-tool-call-target-head,\n.nol-tool-call-target-tail {\n overflow: hidden;\n text-overflow: ellipsis;\n white-space: nowrap;\n}\n\n.nol-tool-call-title {\n min-width: 0;\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header {\n align-items: flex-start;\n padding-block: calc((var(--nol-code-header-height) - var(--nol-tool-call-first-line)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-toggle {\n box-sizing: border-box;\n align-items: flex-start;\n padding-block: calc((var(--nol-tool-call-first-line) - var(--nol-line-panel)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-toggle > :is(.nol-tool-call-twistie, .nol-tool-call-kind) {\n margin-block: calc((var(--nol-line-panel) - var(--nol-icon)) / 2);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header .nol-tool-call-title {\n white-space: pre-wrap;\n overflow-wrap: anywhere;\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > :is(.nol-tool-call-target, .nol-tool-call-state) {\n min-height: var(--nol-tool-call-first-line);\n}\n\n.nol-tool-call-expanded > .nol-tool-call-header > .nol-tool-call-cancel {\n margin-block: calc((var(--nol-tool-call-first-line) - var(--nol-icon-button-target)) / 2);\n}\n\n.nol-tool-call-target {\n display: flex;\n flex: 0 1000 auto;\n align-items: center;\n min-width: 0;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: var(--nol-link);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n direction: ltr;\n unicode-bidi: isolate;\n}\n\n.nol-tool-call-target-head {\n flex: 0 1000 auto;\n min-width: 0;\n}\n\n.nol-tool-call-target-tail {\n flex: 0 1 auto;\n min-width: 0;\n}\n\n.nol-tool-call-state {\n display: flex;\n position: relative;\n flex: none;\n align-items: center;\n gap: var(--nol-space-1);\n margin-inline-start: auto;\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n white-space: nowrap;\n}\n\n.nol-tool-call-succeeded .nol-tool-call-status-glyph {\n color: var(--nol-added);\n}\n\n.nol-tool-call-failed .nol-tool-call-status-glyph,\n.nol-tool-call-error-glyph {\n color: var(--nol-error);\n}\n\n.nol-tool-call-duration,\n.nol-tool-call-depth,\n.nol-tool-call-nested {\n padding-inline-start: var(--nol-space-1);\n border-inline-start: var(--nol-border-width) solid var(--nol-card-border);\n font-variant-numeric: tabular-nums;\n}\n\n.nol-tool-call-fold-extras > .nol-tool-call-header > .nol-tool-call-state > :is(.nol-tool-call-duration, .nol-tool-call-depth, .nol-tool-call-nested),\n.nol-tool-call-fold-status > .nol-tool-call-header > .nol-tool-call-state > .nol-tool-call-status,\n.nol-tool-call-fold-kind > .nol-tool-call-header > .nol-tool-call-toggle > .nol-tool-call-kind {\n position: absolute;\n inset-inline-end: 0;\n opacity: 0;\n pointer-events: none;\n}\n\n.nol-tool-call-body {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n padding: var(--nol-space-2) var(--nol-space-3) var(--nol-space-3);\n border-top: var(--nol-border-width) solid var(--nol-card-border);\n}\n\n.nol-tool-call-body[hidden] {\n display: none;\n}\n\n.nol-tool-call-error {\n display: flex;\n gap: var(--nol-space-1);\n margin: 0;\n overflow-wrap: anywhere;\n}\n\n.nol-tool-call-error-glyph {\n line-height: inherit;\n}\n\n.nol-tool-call-section {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-1);\n min-width: 0;\n}\n\n.nol-tool-call-section-header {\n display: flex;\n align-items: center;\n min-height: var(--nol-icon-button-target);\n margin-inline-end: calc((var(--nol-icon-button-target) - var(--nol-icon)) / -2);\n color: var(--nol-text-muted);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-label);\n}\n\n.nol-tool-call-section-label {\n flex: auto;\n}\n\n.nol-tool-call-copied .nol-icon-button-glyph {\n color: var(--nol-added);\n animation: nol-copied-pop 200ms ease-out;\n\n @media (prefers-reduced-motion: reduce) {\n animation: none;\n }\n}\n\n.nol-tool-call-fields {\n display: grid;\n grid-template-columns: max-content minmax(0, 1fr);\n gap: var(--nol-space-1) var(--nol-space-3);\n margin: 0;\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n}\n\n.nol-tool-call-field {\n display: contents;\n}\n\n.nol-tool-call-field > dt {\n color: var(--nol-text-muted);\n}\n\n.nol-tool-call-field > dd {\n margin: 0;\n overflow-wrap: anywhere;\n white-space: pre-wrap;\n}\n\n.nol-tool-call-output {\n box-sizing: border-box;\n margin: 0;\n padding: var(--nol-space-2) var(--nol-space-3);\n border: var(--nol-border-width) solid var(--nol-card-border);\n border-radius: var(--nol-radius-small);\n outline: none;\n background-color: var(--nol-code);\n font-family: var(--nol-font-mono);\n font-size: var(--nol-text-code);\n line-height: var(--nol-line-code);\n overflow-wrap: anywhere;\n white-space: pre-wrap;\n}\n\n.nol-tool-call-output-scrolls {\n max-height: calc(var(--nol-text-code) * var(--nol-line-code) * 20 + var(--nol-space-2) * 2);\n overflow-y: auto;\n}\n\n.nol-tool-call-output:is(:focus-visible, [data-nol-state=\"Focus\"]) {\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 .nol-tool-call-output:is(:focus-visible, [data-nol-state=\"Focus\"]) {\n outline: calc(var(--nol-border-width) * 2) solid Highlight;\n }\n}\n\n.nol-tool-call-more {\n align-self: flex-start;\n min-height: var(--nol-pointer-target);\n padding-inline: var(--nol-space-1);\n margin-inline-start: calc(var(--nol-space-1) * -1);\n border: 0;\n border-radius: var(--nol-radius-hover);\n background: none;\n color: var(--nol-link);\n font: inherit;\n}\n\n.nol-tool-call-loading,\n.nol-tool-call-load-failed {\n display: flex;\n align-items: center;\n gap: var(--nol-space-2);\n color: var(--nol-text-muted);\n}\n\n.nol-tool-call-load-failed > .nol-tool-call-more {\n align-self: auto;\n margin-inline-start: 0;\n}\n\n.nol-tool-call-children {\n display: flex;\n flex-direction: column;\n gap: var(--nol-space-2);\n min-width: 0;\n}\n\n.nol-tool-call-children-flat,\n.nol-tool-call-unindented {\n margin-inline: calc((var(--nol-space-3) + var(--nol-border-width)) * -1);\n}\n\n.nol-tool-call-unindented {\n width: calc(100% + (var(--nol-space-3) + var(--nol-border-width)) * 2);\n}\n"], dependencies: [{ kind: "component", type: ToolCallComponent, selector: "nol-tool-call", inputs: ["call", "views", "outputLines", "childrenStep", "titleTooltip", "cancelLabel", "shownTitles"], outputs: ["viewsChange", "cancel", "openTarget", "outputRequest"] }, { kind: "component", type: CodeBlockComponent, selector: "nol-code-block", inputs: ["code", "language", "wrapped", "maxHeight", "streaming", "runnable", "runState"], outputs: ["wrappedChange", "run"] }, { kind: "component", type: IconButtonComponent, selector: "button[nol-icon-button]", inputs: ["icon", "label", "pressed", "filled", "overlay", "backdrop", "buttonHeight", "danger", "tabAction", "busy", "busyPressable"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }, { kind: "directive", type: TooltipDirective, selector: "[nolTooltip]", inputs: ["nolTooltip", "nolTooltipDescription", "nolTooltipSide", "nolTooltipDisabled", "nolTooltipTruncated", "nolTooltipBeside"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
332
332
|
}
|
|
333
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolCallComponent, decorators: [{
|
|
334
334
|
type: Component,
|
|
335
335
|
args: [{ selector: "nol-tool-call", imports: [CodeBlockComponent, IconButtonComponent, NgTemplateOutlet, SpinnerComponent, TooltipDirective], encapsulation: ViewEncapsulation.None, host: {
|
|
336
336
|
"class": "nol-tool-call",
|
|
@@ -11,10 +11,10 @@ export class ToolbarItemDirective {
|
|
|
11
11
|
focus() {
|
|
12
12
|
this.element.focus();
|
|
13
13
|
}
|
|
14
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
15
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.
|
|
14
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
15
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.2.6", type: ToolbarItemDirective, isStandalone: true, selector: "[nolToolbarItem]", host: { properties: { "attr.tabindex": "tabIndex()" } }, 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: ToolbarItemDirective, decorators: [{
|
|
18
18
|
type: Directive,
|
|
19
19
|
args: [{
|
|
20
20
|
selector: "[nolToolbarItem]",
|
|
@@ -57,10 +57,10 @@ export class ToolbarDirective {
|
|
|
57
57
|
return;
|
|
58
58
|
this.keys.onKeydown(event);
|
|
59
59
|
}
|
|
60
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
61
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.2.
|
|
60
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
61
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.2.6", type: ToolbarDirective, isStandalone: true, selector: "[nolToolbar]", inputs: { orientation: { classPropertyName: "orientation", publicName: "nolToolbarOrientation", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "nolToolbarLabel", isSignal: true, isRequired: false, transformFunction: null }, isWrapping: { classPropertyName: "isWrapping", publicName: "nolToolbarWrap", isSignal: true, isRequired: false, transformFunction: null }, start: { classPropertyName: "start", publicName: "nolToolbarStart", isSignal: true, isRequired: false, transformFunction: null }, addedItems: { classPropertyName: "addedItems", publicName: "nolToolbarItems", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "toolbar" }, listeners: { "focusin": "follow($event)", "keydown": "move($event)" }, properties: { "attr.aria-orientation": "ariaOrientation()", "attr.aria-label": "label()" } }, queries: [{ propertyName: "ownItems", predicate: ToolbarItemDirective, descendants: true, isSignal: true }], ngImport: i0 });
|
|
62
62
|
}
|
|
63
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
63
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarDirective, decorators: [{
|
|
64
64
|
type: Directive,
|
|
65
65
|
args: [{
|
|
66
66
|
selector: "[nolToolbar]",
|
|
@@ -31,10 +31,10 @@ export class ToolbarButtonComponent {
|
|
|
31
31
|
constructor() {
|
|
32
32
|
BusyGuard.watch(inject(ElementRef).nativeElement, () => this.busy());
|
|
33
33
|
}
|
|
34
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
35
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
34
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarButtonComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: ToolbarButtonComponent, isStandalone: true, selector: "button[nol-toolbar-button]", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, isShowingLabel: { classPropertyName: "isShowingLabel", publicName: "isShowingLabel", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, hasMenu: { classPropertyName: "hasMenu", publicName: "hasMenu", isSignal: true, isRequired: false, transformFunction: null }, isUnavailable: { classPropertyName: "isUnavailable", publicName: "isUnavailable", isSignal: true, isRequired: false, transformFunction: null }, busy: { classPropertyName: "busy", publicName: "busy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "class.nol-toolbar-button-icon-only": "icon() !== null && !isShowingLabel()", "attr.aria-label": "label()", "attr.aria-pressed": "pressed() ?? null", "attr.aria-haspopup": "hasMenu() ? partResources.menuPopup : null", "attr.aria-disabled": "isUnavailable() ? resources.trueValue : null", "class.nol-toolbar-button-busy": "busy()", "attr.aria-busy": "busy() ? resources.trueValue : null" }, classAttribute: "nol-toolbar-button" }, 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-toolbar-button-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n@if (icon() === null || isShowingLabel()) {\n <span class=\"nol-toolbar-button-label\" data-truncates>{{ label() }}</span>\n}\n@if (hasMenu()) {\n <span class=\"nol-toolbar-button-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolbarChevronGlyph }}</span>\n}\n@if (busy()) {\n <nol-spinner class=\"nol-toolbar-button-spinner\" [isDelayed]=\"false\" />\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: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n box-sizing: border-box;\n gap: 0.125rem;\n min-width: var(--nol-toolbar-button);\n max-width: 100%;\n height: var(--nol-toolbar-button);\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n color: var(--nol-icon-color);\n font: inherit;\n white-space: nowrap;\n vertical-align: middle;\n outline: none;\n}\n\n:host(.nol-toolbar-button-icon-only) {\n padding: 0;\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])),\n:host([aria-pressed=\"true\"]) {\n background-color: var(--nol-toolbar-hover);\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])) {\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:host([aria-pressed=\"true\"]) {\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 background-color: Highlight;\n }\n}\n\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\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\n:host([aria-disabled=\"true\"][aria-pressed=\"true\"]) {\n background-color: color-mix(in srgb, var(--nol-toolbar-hover) 50%, transparent);\n}\n\n@media (forced-colors: active) {\n :host([aria-disabled=\"true\"][aria-pressed=\"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 background-color: Canvas;\n }\n\n :host([aria-disabled=\"true\"][aria-pressed=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-toolbar-button-glyph,\n.nol-toolbar-button-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.nol-toolbar-button-label {\n color: var(--nol-text);\n}\n\n:host(.nol-toolbar-button-busy) {\n --nol-progress: currentColor;\n\n position: relative;\n}\n\n:host(.nol-toolbar-button-busy) > :not(.nol-toolbar-button-spinner) {\n opacity: 0;\n}\n\n.nol-toolbar-button-spinner {\n position: absolute;\n inset: 0;\n margin: auto;\n}\n"], dependencies: [{ kind: "component", type: SpinnerComponent, selector: "nol-spinner", inputs: ["label"] }] });
|
|
36
36
|
}
|
|
37
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
37
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: ToolbarButtonComponent, decorators: [{
|
|
38
38
|
type: Component,
|
|
39
39
|
args: [{ selector: "button[nol-toolbar-button]", imports: [SpinnerComponent], host: {
|
|
40
40
|
"class": "nol-toolbar-button",
|
|
@@ -45,6 +45,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.5", ngImpor
|
|
|
45
45
|
"[attr.aria-disabled]": "isUnavailable() ? resources.trueValue : null",
|
|
46
46
|
"[class.nol-toolbar-button-busy]": "busy()",
|
|
47
47
|
"[attr.aria-busy]": "busy() ? resources.trueValue : null"
|
|
48
|
-
}, 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-toolbar-button-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n@if (icon() === null || isShowingLabel()) {\n <span class=\"nol-toolbar-button-label\" data-truncates>{{ label() }}</span>\n}\n@if (hasMenu()) {\n <span class=\"nol-toolbar-button-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolbarChevronGlyph }}</span>\n}\n@if (busy()) {\n <nol-spinner class=\"nol-toolbar-button-spinner\" [isDelayed]=\"false\" />\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: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n box-sizing: border-box;\n gap: 0.125rem;\n min-width: var(--nol-toolbar-button);\n max-width: 100%;\n height: var(--nol-toolbar-button);\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n color: var(--nol-icon-color);\n font: inherit;\n white-space: nowrap;\n vertical-align: middle;\n outline: none;\n}\n\n:host(.nol-toolbar-button-icon-only) {\n padding: 0;\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])),\n:host([aria-pressed=\"true\"]) {\n background-color: var(--nol-toolbar-hover);\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])) {\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:host([aria-pressed=\"true\"]) {\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 background-color: Highlight;\n }\n}\n\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\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\n:host([aria-disabled=\"true\"][aria-pressed=\"true\"]) {\n background-color: color-mix(in srgb, var(--nol-toolbar-hover) 50%, transparent);\n}\n\n@media (forced-colors: active) {\n :host([aria-disabled=\"true\"][aria-pressed=\"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 background-color: Canvas;\n }\n\n :host([aria-disabled=\"true\"][aria-pressed=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-toolbar-button-glyph,\n.nol-toolbar-button-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.nol-toolbar-button-label {\n color: var(--nol-text);\n}\n\n:host(.nol-toolbar-button-busy) {\n --nol-progress: currentColor;\n\n position: relative;\n}\n\n:host(.nol-toolbar-button-busy) > :not(.nol-toolbar-button-spinner) {\n opacity: 0;\n}\n\n.nol-toolbar-button-spinner {\n position: absolute;\n inset: 0;\n margin: auto;\n}\n"] }]
|
|
48
|
+
}, 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-toolbar-button-glyph material-symbols-rounded\" aria-hidden=\"true\">{{ glyph }}</span>\n}\n@if (icon() === null || isShowingLabel()) {\n <span class=\"nol-toolbar-button-label\" data-truncates>{{ label() }}</span>\n}\n@if (hasMenu()) {\n <span class=\"nol-toolbar-button-chevron material-symbols-rounded\" aria-hidden=\"true\">{{ partResources.toolbarChevronGlyph }}</span>\n}\n@if (busy()) {\n <nol-spinner class=\"nol-toolbar-button-spinner\" [isDelayed]=\"false\" />\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: inline-flex;\n align-items: center;\n justify-content: center;\n flex: none;\n box-sizing: border-box;\n gap: 0.125rem;\n min-width: var(--nol-toolbar-button);\n max-width: 100%;\n height: var(--nol-toolbar-button);\n padding: 0 var(--nol-pill-padding);\n border: 0;\n border-radius: var(--nol-radius-small);\n background: none;\n color: var(--nol-icon-color);\n font: inherit;\n white-space: nowrap;\n vertical-align: middle;\n outline: none;\n}\n\n:host(.nol-toolbar-button-icon-only) {\n padding: 0;\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])),\n:host([aria-pressed=\"true\"]) {\n background-color: var(--nol-toolbar-hover);\n}\n\n:host(:not([aria-disabled=\"true\"]):is(:hover, [data-nol-state=\"Hover\"])) {\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:host([aria-pressed=\"true\"]) {\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 background-color: Highlight;\n }\n}\n\n:host(:is(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid var(--nol-accent);\n outline-offset: calc(var(--nol-border-width) * -1);\n\n @media (forced-colors: active) {\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\n:host([aria-disabled=\"true\"][aria-pressed=\"true\"]) {\n background-color: color-mix(in srgb, var(--nol-toolbar-hover) 50%, transparent);\n}\n\n@media (forced-colors: active) {\n :host([aria-disabled=\"true\"][aria-pressed=\"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 background-color: Canvas;\n }\n\n :host([aria-disabled=\"true\"][aria-pressed=\"true\"]:not(:focus-visible, [data-nol-state=\"Focus\"])) {\n outline: var(--nol-border-width) solid GrayText;\n outline-offset: calc(var(--nol-border-width) * -1);\n }\n}\n\n.nol-toolbar-button-glyph,\n.nol-toolbar-button-chevron {\n flex: none;\n font-size: var(--nol-icon);\n}\n\n.nol-toolbar-button-label {\n color: var(--nol-text);\n}\n\n:host(.nol-toolbar-button-busy) {\n --nol-progress: currentColor;\n\n position: relative;\n}\n\n:host(.nol-toolbar-button-busy) > :not(.nol-toolbar-button-spinner) {\n opacity: 0;\n}\n\n.nol-toolbar-button-spinner {\n position: absolute;\n inset: 0;\n margin: auto;\n}\n"] }]
|
|
49
49
|
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], isShowingLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "isShowingLabel", required: false }] }], pressed: [{ type: i0.Input, args: [{ isSignal: true, alias: "pressed", required: false }] }], hasMenu: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasMenu", required: false }] }], isUnavailable: [{ type: i0.Input, args: [{ isSignal: true, alias: "isUnavailable", required: false }] }], busy: [{ type: i0.Input, args: [{ isSignal: true, alias: "busy", required: false }] }] } });
|
|
50
50
|
//# sourceMappingURL=toolbar-button.component.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"toolbar-button.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/toolbar-button/toolbar-button.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/toolbar-button/toolbar-button.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAkBvE,MAAM,OAAO,sBAAsB;IACd,SAAS,GAAqB,SAAS,CAAC;IACxC,aAAa,GAAkC,sBAAsB,CAAC;IAEzE,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACjC,IAAI,GAAG,KAAK,CAAgB,IAAI;6EAAC,CAAC;IAClC,cAAc,GAAG,KAAK,CAAU,KAAK;uFAAC,CAAC;IACvC,OAAO,GAAG,KAAK;2FAAW,CAAC;IAC3B,OAAO,GAAG,KAAK,CAAU,KAAK;gFAAC,CAAC;IAChC,aAAa,GAAG,KAAK,CAAU,KAAK;sFAAC,CAAC;IACtC,IAAI,GAAG,KAAK,CAAU,KAAK;6EAAC,CAAC;IAE7C;QACE,SAAS,CAAC,KAAK,CAAC,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC;uGAdU,sBAAsB;2FAAtB,sBAAsB,s6CC/BnC,qrBAoBA,
|
|
1
|
+
{"version":3,"file":"toolbar-button.component.js","sourceRoot":"","sources":["../../../../../../src/noldova.ui.components.angular/src/app/components/toolbar-button/toolbar-button.component.ts","../../../../../../src/noldova.ui.components.angular/src/app/components/toolbar-button/toolbar-button.component.html"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,EAAE,SAAS,EAAE,UAAU,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,eAAe,CAAC;AAErE,OAAO,EAAE,SAAS,EAAE,MAAM,8BAA8B,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,uBAAuB,CAAC;AAClD,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,EAAE,sBAAsB,EAAE,MAAM,+BAA+B,CAAC;;AAkBvE,MAAM,OAAO,sBAAsB;IACd,SAAS,GAAqB,SAAS,CAAC;IACxC,aAAa,GAAkC,sBAAsB,CAAC;IAEzE,KAAK,GAAG,KAAK,CAAC,QAAQ;8EAAU,CAAC;IACjC,IAAI,GAAG,KAAK,CAAgB,IAAI;6EAAC,CAAC;IAClC,cAAc,GAAG,KAAK,CAAU,KAAK;uFAAC,CAAC;IACvC,OAAO,GAAG,KAAK;2FAAW,CAAC;IAC3B,OAAO,GAAG,KAAK,CAAU,KAAK;gFAAC,CAAC;IAChC,aAAa,GAAG,KAAK,CAAU,KAAK;sFAAC,CAAC;IACtC,IAAI,GAAG,KAAK,CAAU,KAAK;6EAAC,CAAC;IAE7C;QACE,SAAS,CAAC,KAAK,CAAC,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa,EAAE,GAAG,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,CAAC,CAAC;IAChG,CAAC;uGAdU,sBAAsB;2FAAtB,sBAAsB,s6CC/BnC,qrBAoBA,66GDHY,gBAAgB;;2FAcf,sBAAsB;kBAhBlC,SAAS;+BACE,4BAA4B,WAC7B,CAAC,gBAAgB,CAAC,QAGrB;wBACJ,OAAO,EAAE,oBAAoB;wBAC7B,sCAAsC,EAAE,sCAAsC;wBAC9E,mBAAmB,EAAE,SAAS;wBAC9B,qBAAqB,EAAE,mBAAmB;wBAC1C,sBAAsB,EAAE,4CAA4C;wBACpE,sBAAsB,EAAE,8CAA8C;wBACtE,iCAAiC,EAAE,QAAQ;wBAC3C,kBAAkB,EAAE,qCAAqC;qBAC1D"}
|
|
@@ -15,10 +15,10 @@ export class TooltipComponent {
|
|
|
15
15
|
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
16
16
|
isDescribed = computed(() => (this.description() ?? String.empty).length > 0, /* @ts-ignore */
|
|
17
17
|
...(ngDevMode ? [{ debugName: "isDescribed" }] : /* istanbul ignore next */ []));
|
|
18
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.
|
|
19
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.
|
|
18
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
19
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.2.6", type: TooltipComponent, isStandalone: true, selector: "nol-tooltip", inputs: { text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "tooltip" }, properties: { "class.nol-tooltip-described": "isDescribed()" }, classAttribute: "nol-tooltip" }, 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 (isDescribed()) {\n <span class=\"nol-tooltip-title\">{{ text() }}</span>\n <span class=\"nol-tooltip-description\">{{ description() }}</span>\n} @else {\n {{ text() }}\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 box-sizing: border-box;\n max-width: min(var(--nol-tooltip-width), calc(100cqw - var(--nol-space-4)));\n padding: var(--nol-tooltip-padding);\n border: var(--nol-border-width) solid var(--nol-hover-widget-border);\n border-radius: var(--nol-radius-hover);\n background-color: var(--nol-hover-widget);\n box-shadow: var(--nol-shadow-large);\n color: var(--nol-text);\n font-family: var(--nol-font-sans);\n font-size: var(--nol-text-label);\n line-height: var(--nol-line-tooltip);\n overflow-wrap: anywhere;\n}\n\n:host(.nol-tooltip-described) {\n max-width: min(var(--nol-tooltip-description-width), calc(100cqw - var(--nol-space-4)));\n padding: var(--nol-tooltip-description-padding);\n}\n\n.nol-tooltip-title,\n.nol-tooltip-description {\n display: block;\n}\n\n.nol-tooltip-description {\n color: var(--nol-text-muted);\n}\n"] });
|
|
20
20
|
}
|
|
21
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.2.6", ngImport: i0, type: TooltipComponent, decorators: [{
|
|
22
22
|
type: Component,
|
|
23
23
|
args: [{ selector: "nol-tooltip", host: {
|
|
24
24
|
"class": "nol-tooltip",
|