@mintplayer/ng-bootstrap 22.4.0 → 22.5.1
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/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +157 -184
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +307 -683
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +4 -4
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +102 -57
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +185 -207
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-navbar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-brand/navbar-brand.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-brand/navbar-brand.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-nav/navbar-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-nav/navbar-nav.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-item/navbar-item.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-item/navbar-item.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-content/navbar-content.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-trigger/navbar-trigger.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/expand-button/expand-button.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/dropdown-toggle/dropdown-toggle.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/nav-link/nav-link.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/mintplayer-ng-bootstrap-navbar.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, ElementRef, inject, input, PLATFORM_ID, signal, TemplateRef, viewChild } from '@angular/core';\nimport { isPlatformServer, NgTemplateOutlet } from '@angular/common';\nimport { BsContainerComponent } from '@mintplayer/ng-bootstrap/container';\nimport { BsUserAgentDirective } from '@mintplayer/ng-bootstrap/user-agent';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { Breakpoint, Color } from '@mintplayer/ng-bootstrap';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-navbar',\n templateUrl: './navbar.component.html',\n styleUrls: ['./navbar.component.scss'],\n imports: [NgTemplateOutlet, BsContainerComponent, BsUserAgentDirective, BsNoNoscriptDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(window:resize)': 'onWindowResize()',\n },\n})\nexport class BsNavbarComponent {\n\n private resizeTimeout: ReturnType<typeof setTimeout> | null = null;\n private ids = inject(BsIdService);\n private platformId = inject(PLATFORM_ID);\n\n /** True only during SSR — drives the noscript-friendly checkbox+label\n * toggler in the template. In the browser, even during hydration, this is\n * false so the original <button> renders.\n */\n readonly isServerSide = isPlatformServer(this.platformId);\n\n constructor() {\n this.onWindowResize();\n }\n\n onWindowResize() {\n this.isResizing.set(true);\n if (typeof window !== 'undefined') {\n this.windowWidth.set(window.innerWidth);\n }\n\n // Clear any existing timeout to debounce\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n\n // Reset isResizing after debounce period\n this.resizeTimeout = setTimeout(() => {\n this.isResizing.set(false);\n }, 300);\n }\n\n readonly nav = viewChild.required<ElementRef>('nav');\n autoclose = input(true);\n ariaLabel = input<string>('Main navigation');\n collapseId = input<string>(this.ids.next('bs-navbar-collapse'));\n /** Stable id for the noscript-friendly toggler-checkbox (label[for] target). */\n readonly togglerCheckboxId = this.ids.next('bs-navbar-toggler');\n\n expandButtonTemplate = signal<TemplateRef<any> | null>(null);\n\n isExpanded = signal<boolean>(false);\n windowWidth = signal<number | null>(null);\n isResizing = signal<boolean>(false);\n\n /**\n * What color to render the navbar.\n *\n * - `null` (default): no background, no theme override — navbar is\n * transparent and follows `<html data-bs-theme>` in both background and\n * text colors.\n * - A `Color` enum value: emits `bg-{name}` and (where appropriate)\n * `data-bs-theme=\"light|dark\"` per the mapping in\n * `docs/issue_324_navbar_modernize_PRD.md` FR-2.\n * - A `string` literal (e.g. `'body-tertiary'`, `'body-secondary'`): emits\n * `bg-{value}` directly without any `data-bs-theme` override. Use this\n * for theme-adaptive backgrounds — `bg-body-tertiary` swaps its color\n * with the page theme automatically via Bootstrap's `--bs-tertiary-bg`.\n */\n color = input<Color | string | null>(null);\n breakpoint = input<Breakpoint | null>('md');\n\n expandAt = computed(() => {\n const breakpoint = this.breakpoint();\n switch (breakpoint) {\n case 'xxl': return 1400;\n case 'xl': return 1200;\n case 'lg': return 992;\n case 'md': return 768;\n case 'sm': return 576;\n case 'xs': return 0;\n default: return null;\n }\n });\n\n isSmallMode = computed(() => {\n const expandAt = this.expandAt();\n const windowWidth = this.windowWidth();\n if (windowWidth === null) {\n return true;\n } else if (!expandAt) {\n return true;\n } else if (windowWidth >= expandAt) {\n return false;\n } else {\n return true;\n }\n });\n\n expandClass = computed(() => {\n const breakpoint = this.breakpoint();\n if (breakpoint === null) {\n return null;\n } else {\n return `navbar-expand-${breakpoint}`;\n }\n });\n\n wAutoClass = computed(() => {\n const breakpoint = this.breakpoint();\n if (breakpoint === null) {\n return null;\n } else {\n return `w-${breakpoint}-auto`;\n }\n });\n\n dNoneClass = computed(() => {\n const breakpoint = this.breakpoint();\n if (breakpoint === null) {\n return null;\n } else {\n return `d-${breakpoint}-none`;\n }\n });\n\n /**\n * Background utility class for the rendered `<nav>` (or none).\n *\n * Bootstrap 5.3+ uses `data-bs-theme` for token resolution (see `dataBsTheme`\n * below); the navbar's *background* is an independent decision driven by the\n * `[color]` input. `null` (the default) emits no class so the navbar stays\n * transparent and inherits whatever background sits behind it — the\n * idiomatic adaptive setup pairs this with `class=\"bg-body-tertiary\"` on\n * the consumer side for a theme-aware tinted background.\n */\n bgClass = computed<string | null>(() => {\n const color = this.color();\n if (color === null) return null;\n if (typeof color === 'string') return `bg-${color}`;\n return `bg-${Color[color]}`;\n });\n\n /**\n * Value for `[attr.data-bs-theme]` on the rendered `<nav>`, or `null` to\n * inherit the page theme. Bootstrap 5.3 deprecated `.navbar-light` /\n * `.navbar-dark` in favour of this attribute — components scope their CSS\n * variables to `[data-bs-theme=\"light|dark\"]`, so setting it on the navbar\n * pins its theme regardless of `<html>`. Omitting it (returning `null`)\n * lets the navbar follow the page's `<html data-bs-theme>` cascade.\n */\n dataBsTheme = computed<'light' | 'dark' | null>(() => {\n const color = this.color();\n if (color === null) return null;\n // String values (e.g. 'body-tertiary') are Bootstrap utility names — the\n // consumer is opting into a theme-aware bg utility and wants the navbar\n // to inherit the page theme.\n if (typeof color === 'string') return null;\n switch (color) {\n case Color.body:\n case Color.transparent:\n return null; // inherit page theme\n case Color.light:\n case Color.white:\n return 'light';\n default:\n return 'dark'; // dark, primary, secondary, success, danger, warning, info\n }\n });\n\n navClassList = computed(() => {\n const expandClass = this.expandClass();\n const bg = this.bgClass();\n const result: string[] = [];\n if (expandClass) result.push(expandClass);\n if (bg) result.push(bg);\n return result;\n });\n\n toggleExpanded() {\n this.isExpanded.update(v => !v);\n }\n}\n","<bs-container>\n <nav #nav class=\"navbar position-fixed\" [class]=\"navClassList()\" [attr.data-bs-theme]=\"dataBsTheme()\" bsUserAgent bsNoNoscript [attr.aria-label]=\"ariaLabel()\">\n <div class=\"container-fluid nav-wrapper\">\n <div class=\"d-flex w-100\" [class]=\"wAutoClass()\">\n <ng-content select=\"bs-navbar-brand\"></ng-content>\n <div class=\"flex-end d-flex tw\" [class]=\"dNoneClass()\">\n @if (isServerSide) {\n <!--\n SSR-only toggler: hidden checkbox + visible label.\n Works as a CSS-only toggle in noscript because:\n - The label[for=…] toggles the checkbox on click,\n regardless of browser focus-on-click behavior\n (Safari + macOS Chrome don't focus buttons on\n click, so a plain :focus-within rule fails).\n - The input is focusable (Tab + Space toggles it),\n so keyboard users get the same behavior.\n - The checkbox's :checked state drives a CSS rule\n on .navbar.noscript that overrides the SSR-baked\n height:0 the @slideUpDown void state emits.\n In the browser, isServerSide is false even during\n hydration so the @else branch's plain <button>\n renders and the JS click handler does the work.\n -->\n <input type=\"checkbox\"\n [id]=\"togglerCheckboxId\"\n class=\"navbar-toggler-checkbox visually-hidden\"\n [checked]=\"isExpanded()\"\n aria-label=\"Toggle navigation\"\n [attr.aria-expanded]=\"isExpanded()\"\n [attr.aria-controls]=\"collapseId()\" />\n <label\n [attr.for]=\"togglerCheckboxId\"\n class=\"align-self-center cursor-pointer mb-0\"\n [class.navbar-toggler]=\"!expandButtonTemplate()\"\n [class.bg-transparent]=\"expandButtonTemplate()\"\n [class.shadow-none]=\"expandButtonTemplate()\"\n [class.border-0]=\"expandButtonTemplate()\"\n aria-hidden=\"true\">\n <ng-container *ngTemplateOutlet=\"expandButtonTemplate() ?? defaultExpandButton; context: { $implicit: isExpanded() }\"></ng-container>\n </label>\n } @else {\n <button (click)=\"toggleExpanded()\"\n class=\"align-self-center\"\n [class.navbar-toggler]=\"!expandButtonTemplate()\"\n [class.bg-transparent]=\"expandButtonTemplate()\"\n [class.shadow-none]=\"expandButtonTemplate()\"\n [class.border-0]=\"expandButtonTemplate()\"\n type=\"button\"\n aria-label=\"Toggle navigation\"\n [attr.aria-expanded]=\"isExpanded()\"\n [attr.aria-controls]=\"collapseId()\">\n <ng-container *ngTemplateOutlet=\"expandButtonTemplate() ?? defaultExpandButton; context: { $implicit: isExpanded() }\"></ng-container>\n </button>\n }\n </div>\n </div>\n <div [id]=\"collapseId()\" style=\"display: contents;\">\n <ng-content></ng-content>\n </div>\n </div>\n </nav>\n</bs-container>\n\n<ng-template #defaultExpandButton>\n <span class=\"navbar-toggler-icon\" aria-hidden=\"true\"></span>\n</ng-template>\n","import { AfterContentChecked, Component, ElementRef, inject, input, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-navbar-brand',\n templateUrl: './navbar-brand.component.html',\n styleUrls: ['./navbar-brand.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.mx-auto]': 'true',\n },\n})\nexport class BsNavbarBrandComponent implements AfterContentChecked {\n private element = inject(ElementRef);\n readonly routerLink = input<any[]>([]);\n\n ngAfterContentChecked() {\n const anchor = this.element.nativeElement.querySelector('a');\n if (anchor) {\n anchor.classList.add('nav-link');\n }\n }\n}\n","<span class=\"navbar-brand mx-auto mx-md-unset\">\n <ng-content></ng-content>\n</span>","import { ChangeDetectionStrategy, Component, computed, inject, input, signal } from '@angular/core';\nimport { SlideUpDownAnimation } from '@mintplayer/ng-animations';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n@Component({\n selector: 'bs-navbar-nav',\n templateUrl: './navbar-nav.component.html',\n styleUrls: ['./navbar-nav.component.scss'],\n animations: [SlideUpDownAnimation],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(window:resize)': 'onWindowResize()',\n },\n})\nexport class BsNavbarNavComponent {\n\n bsNavbar = inject(BsNavbarComponent);\n\n windowWidth = signal<number | null>(null);\n isResizing = signal<boolean>(false);\n collapse = input<boolean>(true);\n\n private resizeTimeout: ReturnType<typeof setTimeout> | null = null;\n\n showNavs = computed(() => {\n const isExpanded = this.bsNavbar.isExpanded();\n const expandAt = this.bsNavbar.expandAt();\n const windowWidth = this.windowWidth();\n\n if (windowWidth === null) {\n return false;\n } else if (expandAt === null) {\n return isExpanded;\n } else if (windowWidth >= expandAt) {\n return true;\n } else {\n return isExpanded;\n }\n });\n\n constructor() {\n this.onWindowResize();\n }\n\n onWindowResize() {\n this.isResizing.set(true);\n if (typeof window !== 'undefined') {\n this.windowWidth.set(window.innerWidth);\n }\n\n // Clear any existing timeout to debounce\n if (this.resizeTimeout) {\n clearTimeout(this.resizeTimeout);\n }\n\n // Reset isResizing after debounce period\n this.resizeTimeout = setTimeout(() => {\n this.isResizing.set(false);\n }, 300);\n }\n}\n","<div class=\"navbar-collapse w-100 show\" [class.collapse]=\"collapse()\" [@slideUpDown]=\"showNavs()\" [@.disabled]=\"isResizing()\">\n <ul class=\"navbar-nav mr-auto\">\n <ng-content></ng-content>\n </ul>\n</div>\n","import { AfterContentChecked, AfterContentInit, ChangeDetectionStrategy, Component, computed, contentChildren, DestroyRef, effect, ElementRef, forwardRef, inject, PLATFORM_ID } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { Router } from '@angular/router';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\nimport { BsNavbarDropdownComponent } from '../navbar-dropdown/navbar-dropdown.component';\n\n/** Duration of the navbar collapse animation in milliseconds */\nconst NAVBAR_ANIMATION_DURATION = 300;\n\n@Component({\n selector: 'bs-navbar-item',\n templateUrl: './navbar-item.component.html',\n styleUrls: ['./navbar-item.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(click)': 'onHostClick($event)',\n },\n})\nexport class BsNavbarItemComponent implements AfterContentInit, AfterContentChecked {\n\n private navbar = inject(BsNavbarComponent);\n element = inject(ElementRef);\n private destroy = inject(DestroyRef);\n private platformId = inject(PLATFORM_ID);\n private router = inject(Router);\n parentDropdown = inject(forwardRef(() => BsNavbarDropdownComponent), { optional: true });\n\n readonly hasDropdown = computed(() => this.dropdowns().length > 0);\n anchorTag: HTMLAnchorElement | null = null;\n readonly dropdowns = contentChildren<BsNavbarDropdownComponent>(forwardRef(() => BsNavbarDropdownComponent));\n\n\n constructor() {\n // Effect handles future isSmallMode changes after content is initialized\n effect(() => {\n const isSmallMode = this.navbar.isSmallMode();\n this.dropdowns().forEach((dropdown) => {\n dropdown.showInOverlay = !isSmallMode;\n });\n });\n }\n\n ngAfterContentInit() {\n // Set initial showInOverlay state after content children are resolved\n // This is needed because the effect runs before @ContentChildren is populated\n const isSmallMode = this.navbar.isSmallMode();\n this.dropdowns().forEach((dropdown) => {\n dropdown.showInOverlay = !isSmallMode;\n });\n }\n\n // `ngAfterContentChecked` only manages classList state on the\n // consumer-authored `<a>` (so consumers don't have to spell out\n // `class=\"nav-link\"` etc.). The click handling moved off the anchor\n // entirely — see `host: { '(click)': 'onHostClick' }` above and the\n // `onHostClick` method below.\n //\n // classList writes here are idempotent + survive SSR hydration (Angular\n // serializes the post-CD DOM state), so we can re-run them every tick\n // without instance flags or DOM-attribute markers. The previous\n // implementation used DOM-attribute markers (`nav-link-class-added`,\n // `close-init-b`, `close-init-a`) which broke on hydration: server\n // HTML carried the marker, client hydration read it as \"already wired\"\n // and skipped attaching the click listeners on the live DOM. The host\n // binding approach sidesteps that class of bug — host bindings serialize\n // and re-bind on hydration the same way template bindings do.\n ngAfterContentChecked() {\n const anchor = this.element.nativeElement.querySelector('li a') as HTMLAnchorElement | null;\n this.anchorTag = anchor;\n if (!anchor) return;\n\n if (this.parentDropdown === null) {\n anchor.classList.add('nav-link');\n } else {\n anchor.classList.add('dropdown-item');\n }\n anchor.classList.add('cursor-pointer');\n\n if (this.hasDropdown()) {\n anchor.classList.add('dropdown-toggle');\n if (isPlatformServer(this.platformId)) {\n // Make the SSR-rendered anchor a no-op for noscript users — the\n // dropdown is revealed by :focus-within instead.\n anchor.href = 'javascript:;';\n }\n } else {\n anchor.classList.remove('dropdown-toggle');\n }\n }\n\n /**\n * Host-bound click handler. Fires for any click that bubbles up through\n * this `<bs-navbar-item>`, including descendant navbar-items inside our\n * projected `<bs-navbar-dropdown>`. We filter to the consumer-authored\n * `<a>` element of THIS item (`this.anchorTag`) so the trigger logic only\n * runs when the user clicked OUR anchor — descendant link clicks are\n * already handled by their own navbar-item's host listener.\n *\n * This replaces the previous `addEventListener` calls in\n * `ngAfterContentChecked`, which were brittle: on SSR the marker\n * attribute (`close-init-b`/`-a`) was serialized into the HTML, on the\n * client the guard read it as \"already wired\" and skipped attaching the\n * listener on the live DOM. Host bindings serialize and re-bind on\n * hydration like template bindings, so no race.\n */\n onHostClick(ev: MouseEvent) {\n const clickedAnchor = (ev.target as Element | null)?.closest('a');\n if (!clickedAnchor || clickedAnchor !== this.anchorTag) return;\n\n if (this.hasDropdown()) {\n ev.preventDefault();\n this.dropdowns().forEach((dropdown) => {\n const newVisible = !dropdown.isVisible();\n dropdown.isVisible.set(newVisible);\n if (!newVisible) {\n dropdown.childDropdowns().forEach((child) => child.isVisible.set(false));\n }\n });\n return;\n }\n\n if (this.dropdowns().length === 0) {\n let d = this.parentDropdown;\n while (d && d.autoclose()) {\n d.isVisible.set(false);\n d = d.parentDropdown;\n }\n if (this.navbar.autoclose()) {\n // Fragment-aware navigation: in small mode, collapse the navbar\n // first, then navigate to the fragment after the collapse animation\n // completes — keeps the scroll position correct since the navbar\n // height has stabilised by then.\n const href = clickedAnchor.getAttribute('href') ?? '';\n const fragmentMatch = href.match(/#(.+)$/);\n const fragment = fragmentMatch ? fragmentMatch[1] : null;\n\n this.navbar.isExpanded.set(false);\n\n if (this.navbar.isSmallMode() && fragment) {\n ev.preventDefault();\n setTimeout(() => {\n this.router.navigateByUrl(href);\n }, NAVBAR_ANIMATION_DURATION);\n }\n }\n }\n }\n}\n","<li [class.nav-item]=\"parentDropdown === null\" [class.dropdown]=\"(dropdowns().length > 0) && (parentDropdown === null)\" [class.dropend]=\"(dropdowns().length > 0) && (parentDropdown !== null)\">\n <ng-content></ng-content>\n</li>","import { DOCUMENT, isPlatformServer } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, contentChildren, computed, DestroyRef, effect, ElementRef, forwardRef, inject, Injector, input, OnDestroy, PLATFORM_ID, signal, SkipSelf, viewChild } from '@angular/core';\nimport { ClickOutsideDirective } from '@mintplayer/ng-click-outside';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\nimport { BsNavbarItemComponent } from '../navbar-item/navbar-item.component';\nimport { DomPortal } from '@angular/cdk/portal';\nimport { OverlayRef } from '@angular/cdk/overlay';\n\n@Component({\n selector: 'bs-navbar-dropdown',\n templateUrl: './navbar-dropdown.component.html',\n styleUrls: ['./navbar-dropdown.component.scss'],\n imports: [BsHasOverlayComponent, BsNoNoscriptDirective, ClickOutsideDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsNavbarDropdownComponent implements OnDestroy {\n\n private navbar = inject(BsNavbarComponent);\n parentDropdown = inject(BsNavbarDropdownComponent, { skipSelf: true, optional: true });\n navbarItem = inject(forwardRef(() => BsNavbarItemComponent), { host: true });\n element = inject<ElementRef<HTMLElement>>(ElementRef);\n private injector = inject(Injector);\n private document = inject(DOCUMENT);\n private platformId = inject(PLATFORM_ID);\n\n private readonly isAttached = signal<boolean>(false);\n private readonly isDestroyed = signal<boolean>(false);\n private domPortal?: DomPortal;\n private overlay?: OverlayRef;\n private pendingShowInOverlay: boolean | null = null;\n\n autoclose = input(true);\n readonly dropdownElement = viewChild.required<ElementRef<HTMLDivElement>>('dd');\n isBrowser = !isPlatformServer(this.platformId);\n\n isVisible = signal<boolean>(false);\n topPos = signal<number | null>(null);\n\n /**\n * Top-level dropdowns render in-place; only nested submenus go through the\n * CDK overlay. The visible-flash bug only affects the overlay path.\n */\n private readonly isOverlayMounted = computed(() => !!this.parentDropdown && this.isBrowser);\n\n /**\n * `.show` is gated on this for overlay-mounted submenus so the user never\n * sees the menu at its stale top-left position. False until updatePosition\n * has run at least once for the current open cycle; reset on close.\n */\n private readonly isPositioned = signal<boolean>(false);\n\n /** What `[class.show]` actually binds to. */\n readonly showClass = computed(() =>\n this.isOverlayMounted()\n ? this.isVisible() && this.isPositioned()\n : this.isVisible()\n );\n\n maxHeight = computed(() => {\n const topPos = this.topPos();\n const w: Window | null = this.document.defaultView;\n if (!topPos) {\n return null;\n } else if (w && this.dropdownElement()) {\n const style = w.getComputedStyle(this.dropdownElement().nativeElement);\n return `calc(100vh - ${topPos}px - ${style.getPropertyValue('padding-top')} - ${style.getPropertyValue('padding-bottom')})`;\n } else {\n return null;\n }\n });\n\n maxHeightOrNull = computed(() => {\n const maxHeight = this.maxHeight();\n const isSmallMode = this.navbar.isSmallMode();\n if (isSmallMode) {\n return null;\n } else if (isPlatformServer(this.platformId)) {\n return this.parentDropdown ? null : maxHeight;\n } else {\n return maxHeight;\n }\n });\n\n constructor() {\n effect(() => {\n const isVisible = this.isVisible();\n if (isVisible) {\n // Overlay was attached at ngAfterContentInit when the connected\n // navbar-item was still inside a closed parent dropdown — its\n // getBoundingClientRect was (0, 0) and the overlay cached top-left.\n // Compute the real position now, before .show flips on, so the user\n // never sees the menu painted at the stale top-left.\n try { this.overlay?.updatePosition(); }\n catch (ex) { }\n this.isPositioned.set(true);\n this.topPos.set(this.element.nativeElement.offsetTop);\n } else {\n this.isPositioned.set(false);\n this.topPos.set(null);\n }\n });\n\n if (!!this.parentDropdown && this.isBrowser) {\n import('@angular/cdk/overlay').then(({ Overlay }) => {\n // Guard against accessing injector after component is destroyed\n if (this.isDestroyed()) {\n return;\n }\n const overlayService = this.injector.get(Overlay);\n this.domPortal = new DomPortal(this.element);\n this.overlay = overlayService.create({\n positionStrategy: overlayService.position()\n .flexibleConnectedTo(this.navbarItem.element)\n .withPositions([\n { originX: 'end', originY: 'top', overlayX: 'start', overlayY: 'top', offsetX: -9, offsetY: -9 }\n ])\n });\n\n // Apply pending showInOverlay state if it was set before overlay was ready\n if (this.pendingShowInOverlay !== null) {\n const pending = this.pendingShowInOverlay;\n this.pendingShowInOverlay = null;\n this.showInOverlay = pending;\n }\n });\n }\n }\n\n ngOnDestroy() {\n this.isDestroyed.set(true);\n this.overlay?.dispose();\n }\n\n public set showInOverlay(value: boolean) {\n if (this.overlay && this.domPortal) {\n if (value && !this.isAttached()) {\n this.overlay.attach(this.domPortal);\n this.isAttached.set(true);\n }\n if (!value && this.isAttached()) {\n this.overlay.detach();\n this.isAttached.set(false);\n }\n } else {\n // Store the value to apply once the overlay is ready\n this.pendingShowInOverlay = value;\n }\n }\n\n get elementsToExclude() {\n return [this.navbarItem.anchorTag].filter((a) => a).map((a) => <HTMLElement>a);\n }\n\n readonly childDropdowns = contentChildren<BsNavbarDropdownComponent>(forwardRef(() => BsNavbarDropdownComponent), { descendants: true });\n}\n","<bs-has-overlay></bs-has-overlay>\n<ul #dd class=\"dropdown-menu me-3\" [class.show]=\"showClass()\" [class.submenu]=\"!!parentDropdown\" [class.overflow-y-auto]=\"isBrowser\" [style.max-height]=\"maxHeightOrNull()\" bsNoNoscript (clickOutside)=\"isVisible.set(false)\" [exclude]=\"elementsToExclude\" aria-labelledby=\"navbarDropdown\">\n <ng-content></ng-content>\n</ul>\n\n<!--\n - Working demo: https://codepen.io/agop/pen/VwwMGR\n - Location must be set through javascript\n - bsNoScript => If noscript, 2nd-level submenus must be shown inside the 1st-level submenu\n -->\n <!--\n - Another option: https://stackblitz.com/edit/web-platform-vmsr4l?file=index.html\n - But this doesn't seem to work here\n -->\n","import { isPlatformServer } from '@angular/common';\nimport { AfterViewInit, Directive, effect, ElementRef, inject, input, OnDestroy, PLATFORM_ID, signal } from '@angular/core';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n@Directive({\n selector: '[bsNavbarContent]',\n})\nexport class BsNavbarContentDirective implements AfterViewInit, OnDestroy {\n\n private element = inject(ElementRef);\n private platformId = inject(PLATFORM_ID);\n\n navbar = input<BsNavbarComponent | undefined>(undefined, { alias: 'bsNavbarContent' });\n private viewInit = signal<boolean>(false);\n resizeObserver: ResizeObserver | null = null;\n initialPadding = 0;\n\n constructor() {\n effect(() => {\n const viewInit = this.viewInit();\n const navbar = this.navbar();\n\n if (viewInit && navbar) {\n if (isPlatformServer(this.platformId)) {\n this.element.nativeElement.style.paddingTop = (this.initialPadding + 58) + 'px';\n } else {\n this.resizeObserver = new ResizeObserver((entries) => {\n const height = navbar.nav().nativeElement.offsetHeight;\n this.element.nativeElement.style.paddingTop = (this.initialPadding + height) + 'px';\n });\n\n const px = getComputedStyle(this.element.nativeElement).getPropertyValue('padding-top');\n const pt = parseInt(px.replace(/px$/, ''));\n this.initialPadding = isNaN(pt) ? 0 : pt;\n if (this.resizeObserver && navbar) {\n this.resizeObserver.observe(navbar.nav().nativeElement);\n }\n }\n }\n });\n }\n\n ngAfterViewInit() {\n this.viewInit.set(true);\n }\n\n ngOnDestroy() {\n const navbar = this.navbar();\n if (navbar) {\n this.resizeObserver?.unobserve(navbar.nav().nativeElement);\n }\n }\n}\n","import { Directive, computed, inject, input, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { NavigationEnd, Router } from '@angular/router';\nimport { filter } from 'rxjs/operators';\n\n/**\n * Marks a navbar dropdown trigger anchor. Replaces both `routerLink` and\n * `routerLinkActive` on a trigger element: toggles the active CSS class when a\n * sub-route under the bound URL is active, but does NOT navigate on click\n * (which `routerLink` would do via its own host listener, even when other\n * click handlers `preventDefault`).\n *\n * @example\n * ```html\n * <a bsNavbarTrigger=\"/overlays\">Overlays</a>\n * ```\n *\n * Items inside the dropdown panel still use real `[routerLink]`s for\n * navigation. Use this directive only for the trigger anchor that opens the\n * dropdown panel.\n */\n@Directive({\n selector: '[bsNavbarTrigger]',\n host: {\n 'href': 'javascript:void(0)',\n '[class.active]': 'isActive()',\n '(click)': '$event.preventDefault()',\n },\n})\nexport class BsNavbarTriggerDirective {\n private router = inject(Router);\n\n readonly bsNavbarTrigger = input.required<string | readonly string[]>();\n\n private currentUrl = signal(this.router.url);\n\n private targetUrl = computed(() => {\n const v = this.bsNavbarTrigger();\n if (Array.isArray(v)) {\n // join with '/', collapse double slashes; ensure leading slash\n const joined = (v as readonly string[]).join('/').replace(/\\/+/g, '/');\n return joined.startsWith('/') ? joined : '/' + joined;\n }\n return v as string;\n });\n\n readonly isActive = computed(() => {\n const url = this.currentUrl();\n const target = this.targetUrl();\n return url === target || url.startsWith(target + '/');\n });\n\n constructor() {\n this.router.events.pipe(\n filter(ev => ev instanceof NavigationEnd),\n takeUntilDestroyed(),\n ).subscribe(() => this.currentUrl.set(this.router.url));\n }\n}\n","import { Directive, inject, TemplateRef } from '@angular/core';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n@Directive({\n selector: '[bsExpandButton]',\n})\nexport class BsExpandButtonDirective {\n\n constructor() {\n const navbar = inject(BsNavbarComponent);\n const templateRef = inject(TemplateRef);\n navbar.expandButtonTemplate.set(templateRef);\n }\n \n public static ngTemplateContextGuard(\n dir: BsExpandButtonDirective,\n ctx: any\n ): ctx is BsExpandButtonContext {\n return true;\n }\n\n}\n\nexport class BsExpandButtonContext {\n public $implicit: boolean = null!;\n}","import { ContentChildren, Directive, ElementRef, forwardRef, inject, QueryList } from '@angular/core';\nimport { BsNavbarItemComponent } from '../navbar-item/navbar-item.component';\nimport { BsNavbarDropdownComponent } from '../navbar-dropdown/navbar-dropdown.component';\n\n@Directive({\n // selector: 'bs-navbar-item > a[routerLink]',\n selector: 'bs-navbar-item',\n queries: {\n childDropdowns: new ContentChildren(forwardRef(() => BsNavbarDropdownComponent))\n },\n})\nexport class DropdownToggleDirective {\n\n private elementRef = inject<ElementRef<HTMLAnchorElement>>(ElementRef);\n private bsNavbarItem = inject<BsNavbarItemComponent>(forwardRef(() => BsNavbarItemComponent));\n\n childDropdowns!: QueryList<BsNavbarDropdownComponent>;\n}","import { Directive, ElementRef, forwardRef, inject } from '@angular/core';\nimport { BsNavbarDropdownComponent } from '../navbar-dropdown/navbar-dropdown.component';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n@Directive({\n selector: 'bs-navbar-item > li > a',\n // Below selector doesn't work well either (does not select the github link)\n // selector: 'bs-navbar-item > a[routerLink]'\n // Below selector seems to target other a's that aren't even remotely inside a bs-navbar-item\n // selector: 'bs-navbar-item:first-child > a'\n host: {\n '[class.cursor-pointer]': 'cursorPointer',\n },\n})\nexport class NavLinkDirective {\n\n private elementRef = inject<ElementRef<HTMLAnchorElement>>(ElementRef);\n private parentNavbar = inject(BsNavbarComponent, { optional: true });\n private parentDropdown = inject<BsNavbarDropdownComponent>(forwardRef(() => BsNavbarDropdownComponent), { optional: true });\n\n cursorPointer: boolean;\n\n constructor() {\n if (this.parentNavbar) {\n if (this.parentDropdown == null) {\n this.elementRef.nativeElement.classList.add('nav-link');\n } else {\n this.elementRef.nativeElement.classList.add('dropdown-item');\n }\n }\n this.cursorPointer = !!this.parentNavbar;\n }\n\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;MAkBa,iBAAiB,CAAA;AAY5B,IAAA,WAAA,GAAA;QAVQ,IAAA,CAAA,aAAa,GAAyC,IAAI;AAC1D,QAAA,IAAA,CAAA,GAAG,GAAG,MAAM,CAAC,WAAW,CAAC;AACzB,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,WAAW,CAAC;AAExC;;;AAGG;AACM,QAAA,IAAA,CAAA,YAAY,GAAG,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC;AAuBhD,QAAA,IAAA,CAAA,GAAG,GAAG,SAAS,CAAC,QAAQ,CAAa,KAAK,CAAC;QACpD,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,IAAI;sFAAC;QACvB,IAAA,CAAA,SAAS,GAAG,KAAK,CAAS,iBAAiB;sFAAC;QAC5C,IAAA,CAAA,UAAU,GAAG,KAAK,CAAS,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,oBAAoB,CAAC;uFAAC;;QAEtD,IAAA,CAAA,iBAAiB,GAAG,IAAI,CAAC,GAAG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AI,IAAI,CAAC,YAAY,EAAE;AACrB,YAAA,IAAI,IAAI,CAAC,cAAc,IAAI,IAAI,EAAE;gBAC/B,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,UAAU,CAAC;YACzD;iBAAO;gBACL,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,SAAS,CAAC,GAAG,CAAC,eAAe,CAAC;YAC9D;QACF;QACA,IAAI,CAAC,aAAa,GAAG,CAAC,CAAC,IAAI,CAAC,YAAY;IAC1C;8GAjBW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAhB,gBAAgB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,yBAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,sBAAA,EAAA,eAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAhB,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAV5B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,yBAAyB;;;;;AAKnC,oBAAA,IAAI,EAAE;AACJ,wBAAA,wBAAwB,EAAE,eAAe;AAC1C,qBAAA;AACF,iBAAA;;;ACbD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-navbar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar/navbar.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-nav/navbar-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-item/navbar-item.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-brand/navbar-brand.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown-label.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-dropdown/navbar-dropdown.component.html","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-toggler-slot/navbar-toggler.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/src/navbar-content/navbar-content.directive.ts","../../../../libs/mintplayer-ng-bootstrap/navbar/mintplayer-ng-bootstrap-navbar.ts"],"sourcesContent":["import { afterNextRender, ChangeDetectionStrategy, Component, computed, CUSTOM_ELEMENTS_SCHEMA, ElementRef, inject, input, output } from '@angular/core';\nimport type { NavbarBreakpoint, NavbarExpandedChangeEventDetail } from '@mintplayer/web-components/navbar';\n\n/**\n * `<bs-navbar>` — Angular wrapper around the `<mp-navbar>` web component.\n *\n * Layout, the responsive collapse behaviour, the pure-CSS no-JS toggle and the\n * theme-aware styling all live in the WC (single source of UI truth). This\n * wrapper only bridges inputs to attributes and projects content into the WC's\n * slots:\n * - mark the brand with `bs-navbar-brand` (→ `slot=\"brand\"`);\n * - left-aligned items go in the default slot;\n * - right-aligned items get `slot=\"end\"`.\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-navbar>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpNavbarDsd`), so it renders with JS off.\n */\n@Component({\n selector: 'bs-navbar',\n templateUrl: './navbar.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsNavbarComponent {\n /** Host element — measured by `[bsNavbarContent]` to offset page content. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** Bootstrap breakpoint the navbar expands at; collapses below it. */\n readonly breakpoint = input<NavbarBreakpoint>('md');\n /** Theme color of the navbar background (e.g. `primary`, `dark`, `body-tertiary`). */\n readonly color = input<string>();\n /** Accessible label for the `<nav>` landmark. */\n readonly ariaLabel = input<string>();\n /** Whether the collapse is (visually) expanded; reflected to the WC. */\n readonly expanded = input(false);\n /** `fixed` pins the bar to the top of the viewport, full width; omit for in-flow. */\n readonly positioning = input<'fixed'>();\n\n /** Fires when the collapse toggles (re-emits the WC's `expandedchange`). */\n readonly expandedchange = output<NavbarExpandedChangeEventDetail>();\n\n /** String-or-absent attributes derived once via signals. */\n protected readonly colorAttr = computed(() => this.color() ?? null);\n protected readonly ariaLabelAttr = computed(() => this.ariaLabel() ?? null);\n protected readonly positioningAttr = computed(() => this.positioning() ?? null);\n /** Presence attribute: `''` when expanded, `null` when collapsed. */\n protected readonly expandedAttr = computed(() => (this.expanded() ? '' : null));\n\n protected onExpandedchange(event: Event) {\n // The WC's `expandedchange` is a general-purpose DOM event (bubbles +\n // composed). The public Angular API is this typed `output()`, so consume\n // the raw event here. Without `stopPropagation` it keeps bubbling to the\n // consumer's `<bs-navbar>` host, where their `(expandedchange)` binding\n // fires a SECOND time with the raw `CustomEvent` (Angular doesn't unwrap\n // `.detail`).\n event.stopPropagation();\n this.expandedchange.emit((event as CustomEvent<NavbarExpandedChangeEventDetail>).detail);\n }\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-navbar> and friends; client-only so\n // SSR stays a bare tag for DSD injection.\n import('@mintplayer/web-components/navbar');\n });\n }\n}\n","<mp-navbar [attr.breakpoint]=\"breakpoint()\" [attr.color]=\"colorAttr()\" [attr.aria-label]=\"ariaLabelAttr()\" [attr.expanded]=\"expandedAttr()\" [attr.positioning]=\"positioningAttr()\" (expandedchange)=\"onExpandedchange($event)\">\n <ng-content></ng-content>\n</mp-navbar>\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\n/**\n * `<bs-navbar-nav>` — groups navbar items into one of the WC's two nav lists.\n *\n * `align=\"start\"` (default) joins the left list, `align=\"end\"` the list pushed\n * to the far edge in wide mode. The host is `display: contents`, so the grouped\n * `<bs-navbar-item>` / `<bs-navbar-dropdown>` children flatten into the WC's\n * `.navbar-nav` flex layout exactly like directly-slotted items — the same\n * mechanism `<mp-navbar>` itself uses for its slots. The WC slot name stays an\n * internal detail (mirrors `bs-navbar-brand` hiding `slot=\"brand\"`).\n *\n * `display: contents` MUST stay static CSS (never applied via JS) so the no-JS\n * SSR path lays out identically from first paint.\n */\n@Component({\n selector: 'bs-navbar-nav',\n template: '<ng-content></ng-content>',\n styles: ':host { display: contents; }',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.slot]': 'slotAttr()',\n },\n})\nexport class BsNavbarNavComponent {\n /** Which nav group the items join: `start` (default) or `end` (pushed to the far edge in wide mode). */\n readonly align = input<'start' | 'end'>('start');\n\n protected readonly slotAttr = computed(() => (this.align() === 'end' ? 'end' : null));\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, CUSTOM_ELEMENTS_SCHEMA, inject, input } from '@angular/core';\nimport { BS_DROPDOWN_MENU_CONTEXT } from '@mintplayer/ng-bootstrap/dropdown-menu';\n\n/**\n * `<bs-navbar-item>` — one navbar entry, uniform at EVERY nesting level.\n *\n * Wraps a consumer light-DOM link: project an `<a routerLink>` / `<a href>` (or\n * a `<button>`) as content. The rendered shape is context-aware:\n *\n * - **Directly in the navbar** (top level, or inside `<bs-navbar-nav>`): wraps\n * the link in `<mp-navbar-item>`, which styles it as a `.nav-link` in its\n * own shadow.\n * - **Inside a dropdown** (`<bs-navbar-dropdown>` / `<bs-dropdown-menu>`,\n * detected via `BS_DROPDOWN_MENU_CONTEXT`): the HOST itself becomes the\n * `.dropdown-item` — the shape `mp-dropdown-menu` queries (roving tabindex,\n * `role=menuitem` on the inner control) and styles via\n * `::slotted(.dropdown-item)`. The link stays a DIRECT child of the host so\n * the menu wrapper's companion `.dropdown-item > a` reset reaches it\n * (`NgTemplateOutlet` through `<ng-container>` adds no wrapper element).\n *\n * `active` / `disabled` bridge to the WC's presence attributes (nav mode) or\n * Bootstrap's item classes + `aria-disabled` (menu mode).\n */\n@Component({\n selector: 'bs-navbar-item',\n template: `\n <ng-template #content><ng-content></ng-content></ng-template>\n @if (inMenu) {\n <ng-container [ngTemplateOutlet]=\"content\" />\n } @else {\n <mp-navbar-item [attr.active]=\"activeAttr()\" [attr.disabled]=\"disabledAttr()\">\n <ng-container [ngTemplateOutlet]=\"content\" />\n </mp-navbar-item>\n }\n `,\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [NgTemplateOutlet],\n host: {\n '[class.dropdown-item]': 'inMenu',\n '[class.active]': 'inMenu && active()',\n '[class.disabled]': 'inMenu && disabled()',\n '[attr.aria-disabled]': \"inMenu && disabled() ? 'true' : null\",\n },\n})\nexport class BsNavbarItemComponent {\n readonly active = input(false);\n readonly disabled = input(false);\n\n /** Menu mode when authored inside a dropdown; fixed per instance. */\n protected readonly inMenu = inject(BS_DROPDOWN_MENU_CONTEXT, { optional: true }) ?? false;\n\n /** Presence attributes: `''` when set, `null` when absent. */\n protected readonly activeAttr = computed(() => (this.active() ? '' : null));\n protected readonly disabledAttr = computed(() => (this.disabled() ? '' : null));\n}\n","import { ChangeDetectionStrategy, Component, CUSTOM_ELEMENTS_SCHEMA } from '@angular/core';\n\n/**\n * `<bs-navbar-brand>` — Angular wrapper around `<mp-navbar-brand>`.\n *\n * Project an `<a routerLink>` / text as the brand. The host sets\n * `slot=\"brand\"` so the wrapper element lands in `<mp-navbar>`'s `brand` slot\n * (mirrors `BsShellSidebarDirective`, which sets `slot=\"sidebar\"`).\n */\n@Component({\n selector: 'bs-navbar-brand',\n template: '<mp-navbar-brand><ng-content></ng-content></mp-navbar-brand>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.slot]': \"'brand'\",\n },\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsNavbarBrandComponent {}\n","import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * Marks the trigger-label template for `<bs-navbar-dropdown>` — any HTML\n * (text, icon + text, badges, …). Rendered into the WC's trigger via\n * `ngTemplateOutlet`; the trigger's accessible name derives from this content,\n * so give an icon-only label an `aria-label`.\n *\n * ```html\n * <bs-navbar-dropdown>\n * <span *bsNavbarDropdownLabel>Products</span>\n * <bs-navbar-item><a routerLink=\"/p1\">Product 1</a></bs-navbar-item>\n * </bs-navbar-dropdown>\n * ```\n */\n@Directive({ selector: '[bsNavbarDropdownLabel]' })\nexport class BsNavbarDropdownLabelDirective {\n readonly templateRef = inject(TemplateRef);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, contentChild, CUSTOM_ELEMENTS_SCHEMA, inject, signal } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { RouterLinkActive } from '@angular/router';\nimport { BS_DROPDOWN_MENU_CONTEXT, BsDropdownMenuComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsNavbarDropdownLabelDirective } from './navbar-dropdown-label.directive';\n\n/**\n * `<bs-navbar-dropdown>` — Angular wrapper around `<mp-navbar-dropdown>`.\n *\n * The trigger content is the `*bsNavbarDropdownLabel` template — any HTML\n * (matches the React/Vue wrappers, which take the WC's `label` slot directly).\n * The dropdown panel (`<bs-dropdown-menu>`) is rendered internally — author\n * the items directly between the tags, uniformly with the rest of the navbar:\n *\n * <bs-navbar-dropdown>\n * <span *bsNavbarDropdownLabel>Basic</span>\n * <bs-navbar-item><a routerLink=\"/basic/alert\">Alert</a></bs-navbar-item>\n * <bs-navbar-dropdown>…</bs-navbar-dropdown> <!-- submenu -->\n * </bs-navbar-dropdown>\n *\n * `BS_DROPDOWN_MENU_CONTEXT` is provided here (element injectors follow the\n * consumer template's nesting, not the projection site — the internally\n * rendered menu is invisible to projected children's injectors), so nested\n * `<bs-navbar-item>`s render their `.dropdown-item` shape.\n *\n * **Active-route trigger highlighting:** a `RouterLinkActive` host directive\n * collects the projected descendant `routerLink`s; when any is active\n * (non-exact — the whole subtree counts, like the legacy `[bsNavbarTrigger]`\n * prefix match) the WC gets its `active` attribute, which recolors the\n * shadow-rendered trigger (primary background for submenu triggers). Nested\n * dropdowns each report their own subtree, so the full trigger chain of the\n * active route highlights. Renders server-side, so it works with JS off.\n *\n * Reveal/positioning and the no-JS `:focus-within` fallback all live in the WC.\n */\n@Component({\n selector: 'bs-navbar-dropdown',\n templateUrl: './navbar-dropdown.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n imports: [NgTemplateOutlet, BsDropdownMenuComponent],\n providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }],\n hostDirectives: [RouterLinkActive],\n})\nexport class BsNavbarDropdownComponent {\n protected readonly label = contentChild.required(BsNavbarDropdownLabelDirective);\n\n /** A projected descendant link's route is active → highlight the trigger. */\n protected readonly routeActive = signal(false);\n\n constructor() {\n const rla = inject(RouterLinkActive, { self: true });\n // No class on this host — the state is bridged to the WC's `active`\n // attribute instead (the trigger lives in the WC's shadow, out of reach\n // of any class-based styling from here).\n rla.routerLinkActive = [];\n rla.isActiveChange.pipe(takeUntilDestroyed()).subscribe((active) => this.routeActive.set(active));\n }\n}\n","<mp-navbar-dropdown [attr.active]=\"routeActive() ? '' : null\">\n <span slot=\"label\"><ng-container [ngTemplateOutlet]=\"label().templateRef\"></ng-container></span>\n <bs-dropdown-menu>\n <ng-content></ng-content>\n </bs-dropdown-menu>\n</mp-navbar-dropdown>\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsNavbarToggler]` — marks an element as the navbar's custom hamburger\n * glyph, replacing the WC's built-in animated 3-bar → X toggler (the `toggler`\n * slot's fallback). The slot name stays an internal detail of the WC.\n *\n * The glyph is a first-class no-JS citizen: DSD slot assignment happens at\n * parse time (no fallback flash), the click reaches the in-shadow checkbox via\n * native label activation, and the open-state arrives as the inherited\n * `--mp-navbar-expanded: 0|1` custom property — derive the morph in CSS, e.g.\n * `transform: rotate(calc(var(--mp-navbar-expanded, 0) * 45deg))`.\n *\n * The host must be NON-interactive: labels do not forward clicks from\n * interactive descendants, so a `<button>`/`<a href>` here would kill the\n * no-JS toggle. Use a `<span>`/`<div>` glyph. (For a programmatic boolean, use\n * `[expanded]`/`(expandedchange)` on `bs-navbar` instead.)\n */\n@Directive({\n selector: '[bsNavbarToggler]',\n host: {\n slot: 'toggler',\n },\n})\nexport class BsNavbarTogglerDirective {}\n","import { afterNextRender, Directive, ElementRef, inject, input, OnDestroy, PLATFORM_ID, Renderer2 } from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\nimport { BsNavbarComponent } from '../navbar/navbar.component';\n\n/**\n * `[bsNavbarContent]` — offsets page content below a `positioning=\"fixed\"`\n * navbar by its LIVE height (replaces hand-maintained `padding-top` constants).\n *\n * <bs-navbar [positioning]=\"'fixed'\" #nav>…</bs-navbar>\n * <div [bsNavbarContent]=\"nav\"><router-outlet /></div>\n *\n * On the client a `ResizeObserver` tracks the bar (theme/viewport changes\n * resize it) and sets `padding-top` = the element's own initial padding + the\n * bar height. On the server — where the bar can't be measured — a fixed 58px\n * approximation is serialized into the HTML so SSR/no-JS pages still clear the\n * bar (same contract as the pre-WC directive).\n */\n@Directive({\n selector: '[bsNavbarContent]',\n})\nexport class BsNavbarContentDirective implements OnDestroy {\n /** The `bs-navbar` to clear — pass its template reference (`#nav`). */\n readonly navbar = input.required<BsNavbarComponent>({ alias: 'bsNavbarContent' });\n\n /** Server-side height approximation (px) — the bar isn't measurable there. */\n static readonly SSR_NAVBAR_HEIGHT = 58;\n\n readonly #element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n readonly #renderer = inject(Renderer2);\n #observer?: ResizeObserver;\n\n constructor() {\n if (isPlatformServer(inject(PLATFORM_ID))) {\n this.#setPadding(BsNavbarContentDirective.SSR_NAVBAR_HEIGHT);\n return;\n }\n afterNextRender(() => {\n // The measurable bar is the WC inside the wrapper host (the host itself\n // is inline and reports no height for a fixed child).\n const bar = this.navbar().elementRef.nativeElement.querySelector('mp-navbar');\n if (!bar) return;\n // Hydration reuses the SSR element, so the 58px approximation this\n // directive wrote server-side is still inline here. Remove it BEFORE\n // measuring, or the author's baseline would double-count it.\n this.#renderer.removeStyle(this.#element, 'padding-top');\n const initial = parseFloat(getComputedStyle(this.#element).paddingTop) || 0;\n this.#observer = new ResizeObserver(() =>\n this.#setPadding(initial + (bar as HTMLElement).offsetHeight),\n );\n this.#observer.observe(bar);\n });\n }\n\n #setPadding(px: number): void {\n this.#renderer.setStyle(this.#element, 'padding-top', `${px}px`);\n }\n\n ngOnDestroy(): void {\n this.#observer?.disconnect();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAGA;;;;;;;;;;;;;;AAcG;MAOU,iBAAiB,CAAA;AAyBlB,IAAA,gBAAgB,CAAC,KAAY,EAAA;;;;;;;QAOrC,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,cAAc,CAAC,IAAI,CAAE,KAAsD,CAAC,MAAM,CAAC;IAC1F;AAEA,IAAA,WAAA,GAAA;;AAlCS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAGxD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAmB,IAAI;uFAAC;;AAE1C,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK;6FAAU;;AAEvB,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAE3B,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAC,KAAK;qFAAC;;AAEvB,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK;mGAAW;;QAG9B,IAAA,CAAA,cAAc,GAAG,MAAM,EAAmC;;QAGhD,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,KAAK,EAAE,IAAI,IAAI;sFAAC;QAChD,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,IAAI,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ACJ;AAEA,IAAA,WAAW,CAAC,EAAU,EAAA;AACpB,QAAA,IAAI,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,EAAE,aAAa,EAAE,CAAA,EAAG,EAAE,CAAA,EAAA,CAAI,CAAC;IAClE;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,SAAS,EAAE,UAAU,EAAE;IAC9B;8GAvCW,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,UAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,IAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACnBD;;AAEG;;;;"}
|
|
@@ -4,7 +4,7 @@ import * as i1 from '@angular/forms';
|
|
|
4
4
|
import { FormsModule } from '@angular/forms';
|
|
5
5
|
import { BsLiveAnnouncerService, BsRovingFocusDirective, BsRovingFocusItemDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
6
6
|
import { BsDropdownDirective, BsDropdownMenuDirective, BsComboboxDirective } from '@mintplayer/ng-bootstrap/dropdown';
|
|
7
|
-
import { BsDropdownMenuComponent,
|
|
7
|
+
import { BsDropdownMenuComponent, BsDropdownItemDirective } from '@mintplayer/ng-bootstrap/dropdown-menu';
|
|
8
8
|
import { BsFormComponent, BsFormControlDirective } from '@mintplayer/ng-bootstrap/form';
|
|
9
9
|
import { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';
|
|
10
10
|
import { BsProgressComponent } from '@mintplayer/ng-bootstrap/progress-bar';
|
|
@@ -99,18 +99,18 @@ class BsTypeaheadComponent {
|
|
|
99
99
|
this.textbox().nativeElement.focus();
|
|
100
100
|
}
|
|
101
101
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTypeaheadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
102
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsTypeaheadComponent, isStandalone: true, selector: "bs-typeahead", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, searchterm: { classPropertyName: "searchterm", publicName: "searchterm", isSignal: true, isRequired: false, transformFunction: null }, isLoadingText: { classPropertyName: "isLoadingText", publicName: "isLoadingText", isSignal: true, isRequired: false, transformFunction: null }, noSuggestionsText: { classPropertyName: "noSuggestionsText", publicName: "noSuggestionsText", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementSingular: { classPropertyName: "resultsAnnouncementSingular", publicName: "resultsAnnouncementSingular", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementPlural: { classPropertyName: "resultsAnnouncementPlural", publicName: "resultsAnnouncementPlural", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", searchterm: "searchtermChange", provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", submitted: "submitted" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true, isSignal: true }, { propertyName: "rovingFocus", first: true, predicate: BsRovingFocusDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <
|
|
102
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.0", type: BsTypeaheadComponent, isStandalone: true, selector: "bs-typeahead", inputs: { isOpen: { classPropertyName: "isOpen", publicName: "isOpen", isSignal: true, isRequired: false, transformFunction: null }, suggestions: { classPropertyName: "suggestions", publicName: "suggestions", isSignal: true, isRequired: false, transformFunction: null }, searchterm: { classPropertyName: "searchterm", publicName: "searchterm", isSignal: true, isRequired: false, transformFunction: null }, isLoadingText: { classPropertyName: "isLoadingText", publicName: "isLoadingText", isSignal: true, isRequired: false, transformFunction: null }, noSuggestionsText: { classPropertyName: "noSuggestionsText", publicName: "noSuggestionsText", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementSingular: { classPropertyName: "resultsAnnouncementSingular", publicName: "resultsAnnouncementSingular", isSignal: true, isRequired: false, transformFunction: null }, resultsAnnouncementPlural: { classPropertyName: "resultsAnnouncementPlural", publicName: "resultsAnnouncementPlural", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isOpen: "isOpenChange", searchterm: "searchtermChange", provideSuggestions: "provideSuggestions", suggestionSelected: "suggestionSelected", submitted: "submitted" }, viewQueries: [{ propertyName: "textbox", first: true, predicate: ["textbox"], descendants: true, isSignal: true }, { propertyName: "rovingFocus", first: true, predicate: BsRovingFocusDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown #dd=\"bsDropdown\" popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <!--\n `mode=\"activedescendant\"` drives the a11y `bsRovingFocus` primitive;\n `menuMode=\"listbox\"` drives the WC-backed `bs-dropdown-menu`. Both\n directives sit on this one element (so roving's `contentChildren` finds\n the option `<li>`s as direct children) \u2014 the menu's mode input is aliased\n to `menuMode` precisely so it doesn't clobber roving's `mode`. The menu\n also mirrors the trigger's generated id + popup role (the `aria-controls`\n target) via the exported `bsDropdown` reference.\n -->\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\" menuMode=\"listbox\"\n [attr.id]=\"dd.menuId() || null\" [attr.role]=\"dd.popupRole()\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li bsDropdownItem [disabled]=\"true\">\n {{ isLoadingText() }}\n </li>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <li bsDropdownItem [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </li>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <li bsDropdownItem bsRovingFocusItem (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </li>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}bs-dropdown-menu{display:block}\n"], dependencies: [{ kind: "ngmodule", type: FormsModule }, { kind: "directive", type: i1.DefaultValueAccessor, selector: "input:not([type=checkbox]):not([ngNoCva])[formControlName],textarea:not([ngNoCva])[formControlName],input:not([type=checkbox]):not([ngNoCva])[formControl],textarea:not([ngNoCva])[formControl],input:not([type=checkbox]):not([ngNoCva])[ngModel],textarea:not([ngNoCva])[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: BsFormComponent, selector: "bs-form", inputs: ["action", "method"], outputs: ["submitted"] }, { kind: "directive", type: BsFormControlDirective, selector: "bs-form input:not(.no-form-control), bs-form textarea:not(.no-form-control)" }, { kind: "directive", type: BsDropdownDirective, selector: "[bsDropdown]", inputs: ["hasBackdrop", "sameWidth", "closeOnClickOutside", "sameDropdownWidth", "isOpen", "popupRole"], outputs: ["isOpenChange"], exportAs: ["bsDropdown"] }, { kind: "directive", type: BsDropdownMenuDirective, selector: "[bsDropdownMenu]" }, { kind: "component", type: BsDropdownMenuComponent, selector: "bs-dropdown-menu", inputs: ["menuMode", "maxHeight", "labelId"], outputs: ["select"] }, { kind: "directive", type: BsDropdownItemDirective, selector: "[bsDropdownItem]", inputs: ["active", "disabled", "value"] }, { kind: "directive", type: BsComboboxDirective, selector: "input[bsCombobox]", inputs: ["bsComboboxAutocomplete", "activeDescendant"], outputs: ["navigate", "activate", "cancel"], exportAs: ["bsCombobox"] }, { kind: "directive", type: BsRovingFocusDirective, selector: "[bsRovingFocus]", inputs: ["orientation", "mode", "wrap"], exportAs: ["bsRovingFocus"] }, { kind: "directive", type: BsRovingFocusItemDirective, selector: "[bsRovingFocusItem]", inputs: ["disabled"], exportAs: ["bsRovingFocusItem"] }, { kind: "component", type: BsProgressComponent, selector: "bs-progress", inputs: ["height", "isIndeterminate", "ariaLabel"] }, { kind: "component", type: BsHasOverlayComponent, selector: "bs-has-overlay" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
103
103
|
}
|
|
104
104
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsTypeaheadComponent, decorators: [{
|
|
105
105
|
type: Component,
|
|
106
106
|
args: [{ selector: 'bs-typeahead', imports: [
|
|
107
107
|
FormsModule,
|
|
108
108
|
BsFormComponent, BsFormControlDirective,
|
|
109
|
-
BsDropdownDirective, BsDropdownMenuDirective, BsDropdownMenuComponent,
|
|
109
|
+
BsDropdownDirective, BsDropdownMenuDirective, BsDropdownMenuComponent, BsDropdownItemDirective,
|
|
110
110
|
BsComboboxDirective,
|
|
111
111
|
BsRovingFocusDirective, BsRovingFocusItemDirective,
|
|
112
112
|
BsProgressComponent, BsHasOverlayComponent,
|
|
113
|
-
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <
|
|
113
|
+
], changeDetection: ChangeDetectionStrategy.OnPush, template: "<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown #dd=\"bsDropdown\" popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <!--\n `mode=\"activedescendant\"` drives the a11y `bsRovingFocus` primitive;\n `menuMode=\"listbox\"` drives the WC-backed `bs-dropdown-menu`. Both\n directives sit on this one element (so roving's `contentChildren` finds\n the option `<li>`s as direct children) \u2014 the menu's mode input is aliased\n to `menuMode` precisely so it doesn't clobber roving's `mode`. The menu\n also mirrors the trigger's generated id + popup role (the `aria-controls`\n target) via the exported `bsDropdown` reference.\n -->\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\" menuMode=\"listbox\"\n [attr.id]=\"dd.menuId() || null\" [attr.role]=\"dd.popupRole()\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li bsDropdownItem [disabled]=\"true\">\n {{ isLoadingText() }}\n </li>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <li bsDropdownItem [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </li>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <li bsDropdownItem bsRovingFocusItem (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </li>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n", styles: ["bs-progress{margin-top:-8px;margin-bottom:6px}bs-dropdown-menu{display:block}\n"] }]
|
|
114
114
|
}], ctorParameters: () => [], propDecorators: { isOpen: [{ type: i0.Input, args: [{ isSignal: true, alias: "isOpen", required: false }] }, { type: i0.Output, args: ["isOpenChange"] }], suggestions: [{ type: i0.Input, args: [{ isSignal: true, alias: "suggestions", required: false }] }], textbox: [{ type: i0.ViewChild, args: ['textbox', { isSignal: true }] }], rovingFocus: [{ type: i0.ViewChild, args: [i0.forwardRef(() => BsRovingFocusDirective), { isSignal: true }] }], searchterm: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchterm", required: false }] }, { type: i0.Output, args: ["searchtermChange"] }], isLoadingText: [{ type: i0.Input, args: [{ isSignal: true, alias: "isLoadingText", required: false }] }], noSuggestionsText: [{ type: i0.Input, args: [{ isSignal: true, alias: "noSuggestionsText", required: false }] }], resultsAnnouncementSingular: [{ type: i0.Input, args: [{ isSignal: true, alias: "resultsAnnouncementSingular", required: false }] }], resultsAnnouncementPlural: [{ type: i0.Input, args: [{ isSignal: true, alias: "resultsAnnouncementPlural", required: false }] }], provideSuggestions: [{ type: i0.Output, args: ["provideSuggestions"] }], suggestionSelected: [{ type: i0.Output, args: ["suggestionSelected"] }], submitted: [{ type: i0.Output, args: ["submitted"] }] } });
|
|
115
115
|
|
|
116
116
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { BsLiveAnnouncerService, BsRovingFocusDirective, BsRovingFocusItemDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsComboboxDirective, BsDropdownDirective, BsDropdownMenuDirective } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuComponent, BsDropdownItemComponent } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsFormComponent, BsFormControlDirective } from '@mintplayer/ng-bootstrap/form';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsProgressComponent } from '@mintplayer/ng-bootstrap/progress-bar';\n\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.component.html',\n styleUrls: ['./typeahead.component.scss'],\n imports: [\n FormsModule,\n BsFormComponent, BsFormControlDirective,\n BsDropdownDirective, BsDropdownMenuDirective, BsDropdownMenuComponent, BsDropdownItemComponent,\n BsComboboxDirective,\n BsRovingFocusDirective, BsRovingFocusItemDirective,\n BsProgressComponent, BsHasOverlayComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTypeaheadComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n isOpen = model(false);\n\n suggestions = input<any[]>([]);\n isLoading = signal<boolean>(false);\n showNoSuggestions = computed(() => this.suggestions().length === 0);\n\n readonly textbox = viewChild.required<ElementRef<HTMLInputElement>>('textbox');\n readonly rovingFocus = viewChild(BsRovingFocusDirective);\n searchterm = model('');\n isLoadingText = input('Loading...');\n noSuggestionsText = input('No suggestions found');\n resultsAnnouncementSingular = input<string>('1 result found');\n resultsAnnouncementPlural = input<(count: number) => string>((count) => `${count} results found`);\n provideSuggestions = output<string>();\n suggestionSelected = output<any>();\n submitted = output<string>();\n\n private requestInFlight = false;\n\n constructor() {\n effect(() => {\n const suggestions = this.suggestions();\n if (suggestions) {\n this.isLoading.set(false);\n if (this.requestInFlight) {\n this.requestInFlight = false;\n this.announceResults(suggestions.length);\n }\n }\n });\n }\n\n private announceResults(count: number) {\n if (count === 0) {\n this.announcer.announce(this.noSuggestionsText());\n } else if (count === 1) {\n this.announcer.announce(this.resultsAnnouncementSingular());\n } else {\n this.announcer.announce(this.resultsAnnouncementPlural()(count));\n }\n }\n\n onProvideSuggestions(value: string) {\n this.searchterm.set(value);\n if (value === '') {\n this.isOpen.set(false);\n this.requestInFlight = false;\n } else {\n this.requestInFlight = true;\n this.isLoading.set(true);\n this.isOpen.set(true);\n this.provideSuggestions.emit(value);\n }\n }\n\n suggestionClicked(suggestion: any) {\n this.searchterm.set(suggestion.text);\n this.isOpen.set(false);\n this.suggestionSelected.emit(suggestion);\n }\n\n onActivate() {\n const rf = this.rovingFocus();\n if (!rf) return;\n const suggestion = this.suggestions()[rf.activeIndex()];\n if (suggestion) {\n this.suggestionClicked(suggestion);\n }\n }\n\n onCancel() {\n // dropdown was already closed by bsCombobox; no extra work needed\n }\n\n onSubmit(event?: Event) {\n // Suppress browser form-submit; we own the Enter semantics here.\n event?.preventDefault();\n this.isOpen.set(false);\n this.submitted.emit(this.searchterm());\n }\n\n public focus() {\n this.textbox().nativeElement.focus();\n }\n}\n","<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <bs-dropdown-item [disabled]=\"true\">\n {{ isLoadingText() }}\n </bs-dropdown-item>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <bs-dropdown-item [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </bs-dropdown-item>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <bs-dropdown-item bsRovingFocusItem (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </bs-dropdown-item>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAuBa,oBAAoB,CAAA;AAsB/B,IAAA,WAAA,GAAA;AArBQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAElD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;QAErB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAQ,EAAE;wFAAC;QAC9B,IAAA,CAAA,SAAS,GAAG,MAAM,CAAU,KAAK;sFAAC;AAClC,QAAA,IAAA,CAAA,iBAAiB,GAAG,QAAQ,CAAC,MAAM,IAAI,CA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,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,6BAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,yBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,2BAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjCzD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-typeahead.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.ts","../../../../libs/mintplayer-ng-bootstrap/typeahead/src/typeahead.component.html","../../../../libs/mintplayer-ng-bootstrap/typeahead/mintplayer-ng-bootstrap-typeahead.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, effect, ElementRef, inject, input, model, output, signal, viewChild } from '@angular/core';\nimport { FormsModule } from '@angular/forms';\nimport { BsLiveAnnouncerService, BsRovingFocusDirective, BsRovingFocusItemDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsComboboxDirective, BsDropdownDirective, BsDropdownMenuDirective } from '@mintplayer/ng-bootstrap/dropdown';\nimport { BsDropdownMenuComponent, BsDropdownItemDirective } from '@mintplayer/ng-bootstrap/dropdown-menu';\nimport { BsFormComponent, BsFormControlDirective } from '@mintplayer/ng-bootstrap/form';\nimport { BsHasOverlayComponent } from '@mintplayer/ng-bootstrap/has-overlay';\nimport { BsProgressComponent } from '@mintplayer/ng-bootstrap/progress-bar';\n\n@Component({\n selector: 'bs-typeahead',\n templateUrl: './typeahead.component.html',\n styleUrls: ['./typeahead.component.scss'],\n imports: [\n FormsModule,\n BsFormComponent, BsFormControlDirective,\n BsDropdownDirective, BsDropdownMenuDirective, BsDropdownMenuComponent, BsDropdownItemDirective,\n BsComboboxDirective,\n BsRovingFocusDirective, BsRovingFocusItemDirective,\n BsProgressComponent, BsHasOverlayComponent,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTypeaheadComponent {\n private announcer = inject(BsLiveAnnouncerService);\n\n isOpen = model(false);\n\n suggestions = input<any[]>([]);\n isLoading = signal<boolean>(false);\n showNoSuggestions = computed(() => this.suggestions().length === 0);\n\n readonly textbox = viewChild.required<ElementRef<HTMLInputElement>>('textbox');\n readonly rovingFocus = viewChild(BsRovingFocusDirective);\n searchterm = model('');\n isLoadingText = input('Loading...');\n noSuggestionsText = input('No suggestions found');\n resultsAnnouncementSingular = input<string>('1 result found');\n resultsAnnouncementPlural = input<(count: number) => string>((count) => `${count} results found`);\n provideSuggestions = output<string>();\n suggestionSelected = output<any>();\n submitted = output<string>();\n\n private requestInFlight = false;\n\n constructor() {\n effect(() => {\n const suggestions = this.suggestions();\n if (suggestions) {\n this.isLoading.set(false);\n if (this.requestInFlight) {\n this.requestInFlight = false;\n this.announceResults(suggestions.length);\n }\n }\n });\n }\n\n private announceResults(count: number) {\n if (count === 0) {\n this.announcer.announce(this.noSuggestionsText());\n } else if (count === 1) {\n this.announcer.announce(this.resultsAnnouncementSingular());\n } else {\n this.announcer.announce(this.resultsAnnouncementPlural()(count));\n }\n }\n\n onProvideSuggestions(value: string) {\n this.searchterm.set(value);\n if (value === '') {\n this.isOpen.set(false);\n this.requestInFlight = false;\n } else {\n this.requestInFlight = true;\n this.isLoading.set(true);\n this.isOpen.set(true);\n this.provideSuggestions.emit(value);\n }\n }\n\n suggestionClicked(suggestion: any) {\n this.searchterm.set(suggestion.text);\n this.isOpen.set(false);\n this.suggestionSelected.emit(suggestion);\n }\n\n onActivate() {\n const rf = this.rovingFocus();\n if (!rf) return;\n const suggestion = this.suggestions()[rf.activeIndex()];\n if (suggestion) {\n this.suggestionClicked(suggestion);\n }\n }\n\n onCancel() {\n // dropdown was already closed by bsCombobox; no extra work needed\n }\n\n onSubmit(event?: Event) {\n // Suppress browser form-submit; we own the Enter semantics here.\n event?.preventDefault();\n this.isOpen.set(false);\n this.submitted.emit(this.searchterm());\n }\n\n public focus() {\n this.textbox().nativeElement.focus();\n }\n}\n","<bs-has-overlay></bs-has-overlay>\n<bs-form>\n <div bsDropdown #dd=\"bsDropdown\" popupRole=\"listbox\" [(isOpen)]=\"isOpen\" [hasBackdrop]=\"false\" [sameDropdownWidth]=\"true\">\n <input type=\"text\"\n #textbox\n [ngModel]=\"searchterm()\"\n (ngModelChange)=\"onProvideSuggestions($event)\"\n bsCombobox\n (activate)=\"onActivate()\"\n (cancel)=\"onCancel()\"\n (keydown.enter)=\"onSubmit($event)\"\n autocomplete=\"off\" />\n <!--\n `mode=\"activedescendant\"` drives the a11y `bsRovingFocus` primitive;\n `menuMode=\"listbox\"` drives the WC-backed `bs-dropdown-menu`. Both\n directives sit on this one element (so roving's `contentChildren` finds\n the option `<li>`s as direct children) — the menu's mode input is aliased\n to `menuMode` precisely so it doesn't clobber roving's `mode`. The menu\n also mirrors the trigger's generated id + popup role (the `aria-controls`\n target) via the exported `bsDropdown` reference.\n -->\n <bs-dropdown-menu *bsDropdownMenu bsRovingFocus mode=\"activedescendant\" menuMode=\"listbox\"\n [attr.id]=\"dd.menuId() || null\" [attr.role]=\"dd.popupRole()\">\n @if (isLoading()) {\n <bs-progress [height]=\"2\" [isIndeterminate]=\"true\"></bs-progress>\n <li bsDropdownItem [disabled]=\"true\">\n {{ isLoadingText() }}\n </li>\n }\n @if (!isLoading()) {\n @if (showNoSuggestions()) {\n <li bsDropdownItem [disabled]=\"true\">\n {{ noSuggestionsText() }}\n </li>\n }\n @for (suggestion of suggestions(); track suggestion) {\n <li bsDropdownItem bsRovingFocusItem (click)=\"suggestionClicked(suggestion)\">\n {{ suggestion.text }}\n </li>\n }\n }\n </bs-dropdown-menu>\n </div>\n</bs-form>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;MAuBa,oBAAoB,CAAA;AAsB/B,IAAA,WAAA,GAAA;AArBQ,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,sBAAsB,CAAC;QAElD,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,KAAK;mFAAC;QAErB,IAAA,CAAA,WAAW,GAAG,KAAK,CAAQ,EAAE;wFAAC;QAC9B,IAAA,CAAA,SAAS,GAAG,MAAM,CAAU,KAAK;sFAAC;AAClC,QAAA,IAAA,CAAA,iBAAiB,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC,MAAM,KAAK,CAAC;8FAAC;AAE1D,QAAA,IAAA,CAAA,OAAO,GAAG,SAAS,CAAC,QAAQ,CAA+B,SAAS,CAAC;QACrE,IAAA,CAAA,WAAW,GAAG,SAAS,CAAC,sBAAsB;wFAAC;QACxD,IAAA,CAAA,UAAU,GAAG,KAAK,CAAC,EAAE;uFAAC;QACtB,IAAA,CAAA,aAAa,GAAG,KAAK,CAAC,YAAY;0FAAC;QACnC,IAAA,CAAA,iBAAiB,GAAG,KAAK,CAAC,sBAAsB;8FAAC;QACjD,IAAA,CAAA,2BAA2B,GAAG,KAAK,CAAS,gBAAgB;wGAAC;QAC7D,IAAA,CAAA,yBAAyB,GAAG,KAAK,CAA4B,CAAC,KAAK,KAAK,CAAA,EAAG,KAAK,CAAA,cAAA,CAAgB;sGAAC;QACjG,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAU;QACrC,I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,CAAA,oBAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,WAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjCzD;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -1,66 +1,111 @@
|
|
|
1
|
-
import * as _mintplayer_ng_bootstrap_dropdown from '@mintplayer/ng-bootstrap/dropdown';
|
|
2
1
|
import * as _angular_core from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { DropdownMode, DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
5
|
+
/**
|
|
6
|
+
* `<bs-dropdown-menu>` — Angular wrapper around the `<mp-dropdown-menu>` web
|
|
7
|
+
* component. This is the single dropdown-menu implementation: it is used
|
|
8
|
+
* standalone (projected through `*bsDropdownMenu` by the `[bsDropdown]` trigger
|
|
9
|
+
* stack), inside `<bs-navbar>`, and as the listbox panel for the combobox /
|
|
10
|
+
* typeahead (`mode="listbox"`).
|
|
11
|
+
*
|
|
12
|
+
* Keyboard navigation, roving tabindex, the ARIA roles and the theme-aware
|
|
13
|
+
* styling all live in the WC (single source of UI truth). This wrapper bridges
|
|
14
|
+
* inputs to attributes and projects `[bsDropdownItem]` / `[bsDropdownDivider]` /
|
|
15
|
+
* `[bsDropdownHeader]` `<li>`s into the WC's default slot.
|
|
16
|
+
*
|
|
17
|
+
* The WC is registered **client-side only** (`afterNextRender`); on the server
|
|
18
|
+
* Angular emits a bare `<mp-dropdown-menu>` tag and the SSR layer injects its
|
|
19
|
+
* Declarative Shadow DOM (see `injectMpDropdownDsd`), so it renders with JS off.
|
|
20
|
+
*
|
|
21
|
+
* This wrapper stays framework-agnostic of the `[bsDropdown]` trigger stack (it
|
|
22
|
+
* lives in a sibling entry point). When projected as a combobox/listbox panel,
|
|
23
|
+
* the consumer sets `mode="listbox"` and mirrors the trigger's `menuId`/
|
|
24
|
+
* `popupRole` onto this host (`[attr.id]`/`[attr.role]`) via the exported
|
|
25
|
+
* `bsDropdown` reference — the same directive the toggle and combobox read.
|
|
26
|
+
*/
|
|
27
|
+
declare class BsDropdownMenuComponent {
|
|
22
28
|
/**
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
29
|
+
* `menu` (default, roving-tabindex nav) | `listbox` (consumer manages focus).
|
|
30
|
+
*
|
|
31
|
+
* Aliased to `menuMode` so it never collides with the `mode` input of the
|
|
32
|
+
* a11y `bsRovingFocus` directive when a combobox/listbox stacks both on this
|
|
33
|
+
* one element (same reason `bsCombobox` aliases its `autocomplete`).
|
|
27
34
|
*/
|
|
28
|
-
|
|
35
|
+
readonly mode: _angular_core.InputSignal<DropdownMode>;
|
|
36
|
+
/** Pixel cap on the menu height; scrolls beyond. */
|
|
37
|
+
readonly maxHeight: _angular_core.InputSignal<number | undefined>;
|
|
38
|
+
/** Id of an external label, set as `aria-labelledby` on the WC's list. */
|
|
39
|
+
readonly labelId: _angular_core.InputSignal<string | undefined>;
|
|
40
|
+
/** Fires when an enabled item is activated (re-emits the WC's `select`). */
|
|
41
|
+
readonly select: _angular_core.OutputEmitterRef<DropdownSelectEventDetail>;
|
|
42
|
+
/** `max-height` attribute is numeric-or-absent; derive once via a signal. */
|
|
43
|
+
protected readonly maxHeightAttr: _angular_core.Signal<string | null>;
|
|
44
|
+
protected readonly labelIdAttr: _angular_core.Signal<string | null>;
|
|
45
|
+
protected onSelect(event: Event): void;
|
|
29
46
|
constructor();
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownItemComponent, never>;
|
|
33
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDropdownItemComponent, "bs-dropdown-item", never, { "isSelected": { "alias": "isSelected"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
47
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownMenuComponent, never>;
|
|
48
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsDropdownMenuComponent, "bs-dropdown-menu", never, { "mode": { "alias": "menuMode"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; "labelId": { "alias": "labelId"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, ["*"], true, never>;
|
|
34
49
|
}
|
|
35
50
|
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
51
|
+
/**
|
|
52
|
+
* DI marker meaning "this content is authored inside a dropdown menu".
|
|
53
|
+
*
|
|
54
|
+
* Provided by `BsDropdownMenuComponent` and `BsNavbarDropdownComponent`;
|
|
55
|
+
* optionally injected by context-aware children (`bs-navbar-item`) to render
|
|
56
|
+
* their `.dropdown-item` shape instead of their nav-link shape, so the same
|
|
57
|
+
* item element works at every nesting level of a navbar.
|
|
58
|
+
*
|
|
59
|
+
* Element injectors follow the CONSUMER template's nesting (not the projection
|
|
60
|
+
* site), so any `<bs-navbar-item>` written between the tags of either provider
|
|
61
|
+
* sees the token — including content projected through `<ng-content>`.
|
|
62
|
+
*/
|
|
63
|
+
declare const BS_DROPDOWN_MENU_CONTEXT: InjectionToken<boolean>;
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* `[bsDropdownItem]` — marks a plain `<li>` as a Bootstrap `.dropdown-item`
|
|
67
|
+
* inside a `<bs-dropdown-menu>`. There is no per-item web component: the item is
|
|
68
|
+
* light-DOM `<li>` slotted into `<mp-dropdown-menu>`, whose shadow styles the box
|
|
69
|
+
* via `::slotted(.dropdown-item)`. A nested `<a>`/`<button>` (e.g. a `routerLink`)
|
|
70
|
+
* is reset by the companion light-DOM stylesheet the menu wrapper ships.
|
|
71
|
+
*
|
|
72
|
+
* Usage: `<li bsDropdownItem><a routerLink="/x">Action</a></li>`.
|
|
73
|
+
*
|
|
74
|
+
* Inputs:
|
|
75
|
+
* - `active` — Bootstrap `.active` appearance (also drives `aria-selected` in
|
|
76
|
+
* a `listbox` menu).
|
|
77
|
+
* - `disabled` — non-interactive; removed from the menu's roving order.
|
|
78
|
+
* - `value` — opaque value carried in the menu's `select` event detail;
|
|
79
|
+
* assigned as a `value` property on the host `<li>` (the WC reads it).
|
|
80
|
+
*/
|
|
81
|
+
declare class BsDropdownItemDirective {
|
|
82
|
+
readonly active: _angular_core.InputSignal<boolean>;
|
|
83
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
84
|
+
/** Opaque value carried in the menu's `select` event detail. */
|
|
85
|
+
readonly value: _angular_core.InputSignal<unknown>;
|
|
86
|
+
constructor();
|
|
87
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownItemDirective, never>;
|
|
88
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDropdownItemDirective, "[bsDropdownItem]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* `[bsDropdownDivider]` — marks an element (typically an `<li>`) as a Bootstrap
|
|
93
|
+
* `.dropdown-divider` inside a `<bs-dropdown-menu>`. Styled by the menu shadow's
|
|
94
|
+
* `::slotted(.dropdown-divider)` rule. Usage: `<li bsDropdownDivider></li>`.
|
|
95
|
+
*/
|
|
96
|
+
declare class BsDropdownDividerDirective {
|
|
97
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownDividerDirective, never>;
|
|
98
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDropdownDividerDirective, "[bsDropdownDivider]", never, {}, {}, never, never, true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* `[bsDropdownHeader]` — marks an element (an `<li>` or a heading) as a Bootstrap
|
|
103
|
+
* `.dropdown-header` inside a `<bs-dropdown-menu>`. Styled by the menu shadow's
|
|
104
|
+
* `::slotted(.dropdown-header)` rule. Usage: `<li bsDropdownHeader>Section</li>`.
|
|
105
|
+
*/
|
|
106
|
+
declare class BsDropdownHeaderDirective {
|
|
107
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownHeaderDirective, never>;
|
|
108
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDropdownHeaderDirective, "[bsDropdownHeader]", never, {}, {}, never, never, true, never>;
|
|
64
109
|
}
|
|
65
110
|
|
|
66
|
-
export {
|
|
111
|
+
export { BS_DROPDOWN_MENU_CONTEXT, BsDropdownDividerDirective, BsDropdownHeaderDirective, BsDropdownItemDirective, BsDropdownMenuComponent };
|