@mintplayer/ng-bootstrap 22.22.0 → 22.24.0

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.
@@ -10,9 +10,9 @@ import { NgTemplateOutlet } from '@angular/common';
10
10
  *
11
11
  * Renders an inner `<mp-card>` — the single card web component, which owns the
12
12
  * card chrome (border / radius / background) in its shadow DOM. Projected
13
- * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled via
14
- * the WC's `::slotted()` rules (header / body / footer / img) plus the global
15
- * typography sheet (title / text). This is what makes the card render
13
+ * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled by
14
+ * the WC's card-anchored document sheet (header / body / footer / img / title /
15
+ * text). This is what makes the card render
16
16
  * correctly even when itself slotted inside another web component.
17
17
  */
18
18
  class BsCardComponent {
@@ -327,16 +327,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
327
327
 
328
328
  class BsCardGroupComponent {
329
329
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
330
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardGroupComponent, isStandalone: true, selector: "bs-card-group", host: { classAttribute: "card-group" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
330
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardGroupComponent, isStandalone: true, selector: "bs-card-group", host: { classAttribute: "card-group" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
331
331
  }
332
332
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, decorators: [{
333
333
  type: Component,
334
- args: [{
335
- selector: 'bs-card-group',
336
- template: '<ng-content></ng-content>',
337
- host: { class: 'card-group' },
338
- changeDetection: ChangeDetectionStrategy.OnPush,
339
- }]
334
+ args: [{ selector: 'bs-card-group', template: '<ng-content></ng-content>', host: { class: 'card-group' }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
340
335
  }] });
341
336
 
342
337
  // Angular wrappers (M2). The legacy `card/` + `card-header/` directories
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-card.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card/bs-card.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-header/bs-card-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-body/bs-card-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-footer/bs-card-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-title/bs-card-title.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-subtitle/bs-card-subtitle.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-text/bs-card-text.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-link/bs-card-link.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-img/bs-card-img.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-group/bs-card-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/card/mintplayer-ng-bootstrap-card.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n// Side-effect import registers <mp-card>.\nimport '@mintplayer/web-components/card';\n\n/**\n * Angular wrapper for the Bootstrap card root.\n *\n * Renders an inner `<mp-card>` — the single card web component, which owns the\n * card chrome (border / radius / background) in its shadow DOM. Projected\n * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled via\n * the WC's `::slotted()` rules (header / body / footer / img) plus the global\n * typography sheet (title / text). This is what makes the card render\n * correctly even when itself slotted inside another web component.\n */\n@Component({\n selector: 'bs-card',\n template: `<mp-card [attr.color]=\"colorName()\" [attr.outline]=\"outline() ? '' : null\"><ng-content></ng-content></mp-card>`,\n styles: [':host { display: block; }'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardComponent {\n readonly color = input<Color | undefined>(undefined);\n readonly outline = input(false);\n\n protected readonly colorName = computed(() => {\n const c = this.color();\n return c === undefined ? null : Color[c];\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport {\n applyHeaderNavStyle,\n applyTextBgClass,\n isNavTargetNode,\n type CardHeaderNavStyle,\n} from '@mintplayer/web-components/card';\n\n/**\n * Card header.\n *\n * `[navStyle]` decorates a slotted `<nav>` / `<ul>` with\n * `card-header-tabs` / `card-header-pills` so Bootstrap's `_card.scss`\n * tab/pill integration kicks in. The class lands on the first nav/ul\n * descendant, and a MutationObserver re-applies it when the consumer\n * swaps the slotted markup (e.g. an `@if` that flips the nav in or out).\n */\n@Component({\n selector: 'bs-card-header',\n template: '<ng-content></ng-content>',\n host: { class: 'card-header' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardHeaderComponent {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly color = input<Color | undefined>(undefined);\n readonly navStyle = input<CardHeaderNavStyle | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const c = this.color();\n const name = c === undefined ? null : Color[c];\n applyTextBgClass(this.el.nativeElement, name);\n });\n\n effect(() => {\n applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);\n });\n\n // Slotted navs may appear after the component is created (Angular @if,\n // structural directives). Re-apply the nav-style class on child changes\n // so a late-rendered nav still picks up `card-header-tabs` / `-pills`.\n // Scope to direct children only: the slotted nav must be a direct child\n // for Bootstrap's `.card-header-tabs` styling to apply; deep subtree\n // mutations (Angular re-renders of nested content) would otherwise\n // trigger a full `querySelector` walk on every keystroke.\n if (typeof MutationObserver !== 'undefined') {\n const observer = new MutationObserver((records) => {\n const navAffected = records.some((r) =>\n [...Array.from(r.addedNodes), ...Array.from(r.removedNodes)].some(isNavTargetNode),\n );\n if (!navAffected) return;\n applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);\n });\n observer.observe(this.el.nativeElement, { childList: true, subtree: false });\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * Card body — explicit wrapper. No auto-padding workaround like the previous\n * implementation: Bootstrap's `.card-body` padding applies as upstream\n * specifies. Consumers wanting unpadded content can use a raw `<div>` inside\n * `<bs-card>` instead.\n */\n@Component({\n selector: 'bs-card-body',\n template: '<ng-content></ng-content>',\n host: { class: 'card-body' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardBodyComponent {}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { applyTextBgClass } from '@mintplayer/web-components/card';\n\n@Component({\n selector: 'bs-card-footer',\n template: '<ng-content></ng-content>',\n host: { class: 'card-footer' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardFooterComponent {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<Color | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const c = this.color();\n const name = c === undefined ? null : Color[c];\n applyTextBgClass(this.el.nativeElement, name);\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n selector: 'bs-card-title',\n // role=heading + aria-level rather than swapping real h1-h6 tags: the tag\n // cannot change dynamically without destroying projected content, and the\n // computed pair is exactly equivalent in the accessibility tree.\n template: '<ng-content></ng-content>',\n host: {\n class: 'card-title',\n role: 'heading',\n '[attr.aria-level]': 'level()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardTitleComponent {\n /** Heading level in the page outline. Cards default to a section-level 5, matching Bootstrap's visual h5. */\n readonly level = input(5);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-subtitle',\n template: '<ng-content></ng-content>',\n host: { class: 'card-subtitle' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardSubtitleComponent {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-text',\n template: '<ng-content></ng-content>',\n host: { class: 'card-text' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardTextComponent {}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\n/**\n * Card link. The inner `<a>` carries `.card-link` (so Bootstrap's hover /\n * spacing styling and the `+` adjacency rule both apply). For the adjacency\n * margin between sibling `<bs-card-link>` wrappers, see the compensating\n * CSS in `mp-card.element.scss`.\n */\n@Component({\n selector: 'bs-card-link',\n template: '<a class=\"card-link\" [attr.href]=\"hrefAttr()\"><ng-content></ng-content></a>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardLinkComponent {\n readonly href = input<string | undefined>(undefined);\n\n // Coalesce `undefined` to `null` so Angular drops the attribute entirely\n // when the input is unset. Hoisted out of the template per the workspace's\n // \"computed over inline expression\" memory rule.\n readonly hrefAttr = computed(() => this.href() ?? null);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport type { CardImagePosition } from '@mintplayer/web-components/card';\n\n/**\n * Card image. `position` switches the rendered shape; `src` and `alt` map\n * to the underlying `<img>`. Overlay form additionally wraps slotted content\n * in `<div class=\"card-img-overlay\">`.\n *\n * The host element carries the `card-img-*` class so Bootstrap's\n * `.card-group > .card > .card-img-top` corner-rounding selectors match\n * (the inner `<img>` would otherwise be a grandchild of `.card`). The inner\n * `<img>` carries the same class so Bootstrap's `width: 100%` sizing rule\n * applies; the host's border-radius is paired with `overflow: hidden` (in\n * `mp-card.element.scss`) so the img's straight corners get clipped.\n *\n * Projection uses `*ngTemplateOutlet` instead of inlining `<ng-content>` in\n * each `@case`: multiple `<ng-content>` slots in conditional branches silently\n * drop the projected children. One `<ng-content>` inside a `<ng-template>`\n * works around the limitation, at the cost of importing `NgTemplateOutlet`.\n */\n@Component({\n selector: 'bs-card-img',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #projected><ng-content></ng-content></ng-template>\n <ng-template #imgTpl>\n <img [class]=\"imgClass()\" [attr.src]=\"srcAttr()\" [attr.alt]=\"altAttr()\" />\n </ng-template>\n\n @switch (position()) {\n @case ('overlay') {\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n <div class=\"card-img-overlay\">\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n </div>\n }\n @case ('bottom') {\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n }\n @default {\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n }\n }\n `,\n host: { '[class]': 'hostClass()' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardImgComponent {\n readonly position = input<CardImagePosition>('top');\n readonly src = input<string | undefined>(undefined);\n readonly alt = input<string | undefined>(undefined);\n\n readonly hostClass = computed(() => {\n switch (this.position()) {\n case 'overlay':\n return 'card-img';\n case 'bottom':\n return 'card-img-bottom';\n default:\n return 'card-img-top';\n }\n });\n\n // The inner <img> carries the same card-img-* class so Bootstrap's\n // `width: 100%` rule sizes the actual image element.\n readonly imgClass = computed(() => this.hostClass());\n\n // `?? null` so an absent src removes the attribute instead of leaving an\n // empty `src=\"\"` on the DOM.\n readonly srcAttr = computed(() => this.src() ?? null);\n // alt is the opposite case: an <img> with NO alt attribute is announced by\n // its filename, while alt=\"\" marks it decorative and silences it. Absent\n // input therefore means decorative, never unlabelled.\n readonly altAttr = computed(() => this.alt() ?? '');\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-group',\n template: '<ng-content></ng-content>',\n host: { class: 'card-group' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardGroupComponent {}\n","// Angular wrappers (M2). The legacy `card/` + `card-header/` directories\n// have been removed; consumers continue to import `BsCardComponent` and\n// `BsCardHeaderComponent` via the same `@mintplayer/ng-bootstrap/card`\n// secondary entry — only the internal file paths moved.\nexport * from './lib/components/bs-card/bs-card.component';\nexport * from './lib/components/bs-card-header/bs-card-header.component';\nexport * from './lib/components/bs-card-body/bs-card-body.component';\nexport * from './lib/components/bs-card-footer/bs-card-footer.component';\nexport * from './lib/components/bs-card-title/bs-card-title.component';\nexport * from './lib/components/bs-card-subtitle/bs-card-subtitle.component';\nexport * from './lib/components/bs-card-text/bs-card-text.component';\nexport * from './lib/components/bs-card-link/bs-card-link.component';\nexport * from './lib/components/bs-card-img/bs-card-img.component';\nexport * from './lib/components/bs-card-group/bs-card-group.component';\n\n// Lit web-component layer + public types — now sourced from the\n// framework-agnostic @mintplayer/web-components/card sub-entry.\nexport * from '@mintplayer/web-components/card';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAWA;;;;;;;;;AASG;MAQU,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;QAQW,IAAA,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;;;;;;;;;;;;;AAsBT,EAAA,CAAA;AACD,oBAAA,IAAI,EAAE,EAAE,SAAS,EAAE,aAAa,EAAE;oBAClC,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;MCzCY,oBAAoB,CAAA;8GAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,oBAAoB,iHAJrB,2BAA2B,EAAA,QAAA,EAAA,IAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAI1B,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBANhC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,eAAe;AACzB,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,IAAI,EAAE,EAAE,KAAK,EAAE,YAAY,EAAE;oBAC7B,eAAe,EAAE,uBAAuB,CAAC,MAAM;AAChD,iBAAA;;;ACPD;AACA;AACA;AACA;;ACHA;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-card.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card/bs-card.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-header/bs-card-header.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-body/bs-card-body.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-footer/bs-card-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-title/bs-card-title.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-subtitle/bs-card-subtitle.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-text/bs-card-text.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-link/bs-card-link.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-img/bs-card-img.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/lib/components/bs-card-group/bs-card-group.component.ts","../../../../libs/mintplayer-ng-bootstrap/card/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/card/mintplayer-ng-bootstrap-card.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n// Side-effect import registers <mp-card>.\nimport '@mintplayer/web-components/card';\n\n/**\n * Angular wrapper for the Bootstrap card root.\n *\n * Renders an inner `<mp-card>` — the single card web component, which owns the\n * card chrome (border / radius / background) in its shadow DOM. Projected\n * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled by\n * the WC's card-anchored document sheet (header / body / footer / img / title /\n * text). This is what makes the card render\n * correctly even when itself slotted inside another web component.\n */\n@Component({\n selector: 'bs-card',\n template: `<mp-card [attr.color]=\"colorName()\" [attr.outline]=\"outline() ? '' : null\"><ng-content></ng-content></mp-card>`,\n styles: [':host { display: block; }'],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardComponent {\n readonly color = input<Color | undefined>(undefined);\n readonly outline = input(false);\n\n protected readonly colorName = computed(() => {\n const c = this.color();\n return c === undefined ? null : Color[c];\n });\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n DestroyRef,\n ElementRef,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport {\n applyHeaderNavStyle,\n applyTextBgClass,\n isNavTargetNode,\n type CardHeaderNavStyle,\n} from '@mintplayer/web-components/card';\n\n/**\n * Card header.\n *\n * `[navStyle]` decorates a slotted `<nav>` / `<ul>` with\n * `card-header-tabs` / `card-header-pills` so Bootstrap's `_card.scss`\n * tab/pill integration kicks in. The class lands on the first nav/ul\n * descendant, and a MutationObserver re-applies it when the consumer\n * swaps the slotted markup (e.g. an `@if` that flips the nav in or out).\n */\n@Component({\n selector: 'bs-card-header',\n template: '<ng-content></ng-content>',\n host: { class: 'card-header' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardHeaderComponent {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly destroyRef = inject(DestroyRef);\n\n readonly color = input<Color | undefined>(undefined);\n readonly navStyle = input<CardHeaderNavStyle | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const c = this.color();\n const name = c === undefined ? null : Color[c];\n applyTextBgClass(this.el.nativeElement, name);\n });\n\n effect(() => {\n applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);\n });\n\n // Slotted navs may appear after the component is created (Angular @if,\n // structural directives). Re-apply the nav-style class on child changes\n // so a late-rendered nav still picks up `card-header-tabs` / `-pills`.\n // Scope to direct children only: the slotted nav must be a direct child\n // for Bootstrap's `.card-header-tabs` styling to apply; deep subtree\n // mutations (Angular re-renders of nested content) would otherwise\n // trigger a full `querySelector` walk on every keystroke.\n if (typeof MutationObserver !== 'undefined') {\n const observer = new MutationObserver((records) => {\n const navAffected = records.some((r) =>\n [...Array.from(r.addedNodes), ...Array.from(r.removedNodes)].some(isNavTargetNode),\n );\n if (!navAffected) return;\n applyHeaderNavStyle(this.el.nativeElement, this.navStyle() ?? null);\n });\n observer.observe(this.el.nativeElement, { childList: true, subtree: false });\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n }\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n/**\n * Card body — explicit wrapper. No auto-padding workaround like the previous\n * implementation: Bootstrap's `.card-body` padding applies as upstream\n * specifies. Consumers wanting unpadded content can use a raw `<div>` inside\n * `<bs-card>` instead.\n */\n@Component({\n selector: 'bs-card-body',\n template: '<ng-content></ng-content>',\n host: { class: 'card-body' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardBodyComponent {}\n","import {\n ChangeDetectionStrategy,\n Component,\n ElementRef,\n effect,\n inject,\n input,\n} from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\nimport { applyTextBgClass } from '@mintplayer/web-components/card';\n\n@Component({\n selector: 'bs-card-footer',\n template: '<ng-content></ng-content>',\n host: { class: 'card-footer' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardFooterComponent {\n private readonly el = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<Color | undefined>(undefined);\n\n constructor() {\n effect(() => {\n const c = this.color();\n const name = c === undefined ? null : Color[c];\n applyTextBgClass(this.el.nativeElement, name);\n });\n }\n}\n","import { ChangeDetectionStrategy, Component, input } from '@angular/core';\n\n@Component({\n selector: 'bs-card-title',\n // role=heading + aria-level rather than swapping real h1-h6 tags: the tag\n // cannot change dynamically without destroying projected content, and the\n // computed pair is exactly equivalent in the accessibility tree.\n template: '<ng-content></ng-content>',\n host: {\n class: 'card-title',\n role: 'heading',\n '[attr.aria-level]': 'level()',\n },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardTitleComponent {\n /** Heading level in the page outline. Cards default to a section-level 5, matching Bootstrap's visual h5. */\n readonly level = input(5);\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-subtitle',\n template: '<ng-content></ng-content>',\n host: { class: 'card-subtitle' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardSubtitleComponent {}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-text',\n template: '<ng-content></ng-content>',\n host: { class: 'card-text' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardTextComponent {}\n","import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\n\n/**\n * Card link. The inner `<a>` carries `.card-link` (so Bootstrap's hover /\n * spacing styling and the `+` adjacency rule both apply). For the adjacency\n * margin between sibling `<bs-card-link>` wrappers, see the compensating\n * CSS in `mp-card.element.scss`.\n */\n@Component({\n selector: 'bs-card-link',\n template: '<a class=\"card-link\" [attr.href]=\"hrefAttr()\"><ng-content></ng-content></a>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardLinkComponent {\n readonly href = input<string | undefined>(undefined);\n\n // Coalesce `undefined` to `null` so Angular drops the attribute entirely\n // when the input is unset. Hoisted out of the template per the workspace's\n // \"computed over inline expression\" memory rule.\n readonly hrefAttr = computed(() => this.href() ?? null);\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport type { CardImagePosition } from '@mintplayer/web-components/card';\n\n/**\n * Card image. `position` switches the rendered shape; `src` and `alt` map\n * to the underlying `<img>`. Overlay form additionally wraps slotted content\n * in `<div class=\"card-img-overlay\">`.\n *\n * The host element carries the `card-img-*` class so Bootstrap's\n * `.card-group > .card > .card-img-top` corner-rounding selectors match\n * (the inner `<img>` would otherwise be a grandchild of `.card`). The inner\n * `<img>` carries the same class so Bootstrap's `width: 100%` sizing rule\n * applies; the host's border-radius is paired with `overflow: hidden` (in\n * `mp-card.element.scss`) so the img's straight corners get clipped.\n *\n * Projection uses `*ngTemplateOutlet` instead of inlining `<ng-content>` in\n * each `@case`: multiple `<ng-content>` slots in conditional branches silently\n * drop the projected children. One `<ng-content>` inside a `<ng-template>`\n * works around the limitation, at the cost of importing `NgTemplateOutlet`.\n */\n@Component({\n selector: 'bs-card-img',\n imports: [NgTemplateOutlet],\n template: `\n <ng-template #projected><ng-content></ng-content></ng-template>\n <ng-template #imgTpl>\n <img [class]=\"imgClass()\" [attr.src]=\"srcAttr()\" [attr.alt]=\"altAttr()\" />\n </ng-template>\n\n @switch (position()) {\n @case ('overlay') {\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n <div class=\"card-img-overlay\">\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n </div>\n }\n @case ('bottom') {\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n }\n @default {\n <ng-container *ngTemplateOutlet=\"imgTpl\"></ng-container>\n <ng-container *ngTemplateOutlet=\"projected\"></ng-container>\n }\n }\n `,\n host: { '[class]': 'hostClass()' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardImgComponent {\n readonly position = input<CardImagePosition>('top');\n readonly src = input<string | undefined>(undefined);\n readonly alt = input<string | undefined>(undefined);\n\n readonly hostClass = computed(() => {\n switch (this.position()) {\n case 'overlay':\n return 'card-img';\n case 'bottom':\n return 'card-img-bottom';\n default:\n return 'card-img-top';\n }\n });\n\n // The inner <img> carries the same card-img-* class so Bootstrap's\n // `width: 100%` rule sizes the actual image element.\n readonly imgClass = computed(() => this.hostClass());\n\n // `?? null` so an absent src removes the attribute instead of leaving an\n // empty `src=\"\"` on the DOM.\n readonly srcAttr = computed(() => this.src() ?? null);\n // alt is the opposite case: an <img> with NO alt attribute is announced by\n // its filename, while alt=\"\" marks it decorative and silences it. Absent\n // input therefore means decorative, never unlabelled.\n readonly altAttr = computed(() => this.alt() ?? '');\n}\n","import { ChangeDetectionStrategy, Component } from '@angular/core';\n\n@Component({\n selector: 'bs-card-group',\n template: '<ng-content></ng-content>',\n // The group wraps cards, so mp-card's card-anchored document sheet cannot\n // reach it (#432); the host is an inline custom element without this.\n styles: ':host { display: block; }',\n host: { class: 'card-group' },\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCardGroupComponent {}\n","// Angular wrappers (M2). The legacy `card/` + `card-header/` directories\n// have been removed; consumers continue to import `BsCardComponent` and\n// `BsCardHeaderComponent` via the same `@mintplayer/ng-bootstrap/card`\n// secondary entry — only the internal file paths moved.\nexport * from './lib/components/bs-card/bs-card.component';\nexport * from './lib/components/bs-card-header/bs-card-header.component';\nexport * from './lib/components/bs-card-body/bs-card-body.component';\nexport * from './lib/components/bs-card-footer/bs-card-footer.component';\nexport * from './lib/components/bs-card-title/bs-card-title.component';\nexport * from './lib/components/bs-card-subtitle/bs-card-subtitle.component';\nexport * from './lib/components/bs-card-text/bs-card-text.component';\nexport * from './lib/components/bs-card-link/bs-card-link.component';\nexport * from './lib/components/bs-card-img/bs-card-img.component';\nexport * from './lib/components/bs-card-group/bs-card-group.component';\n\n// Lit web-component layer + public types — now sourced from the\n// framework-agnostic @mintplayer/web-components/card sub-entry.\nexport * from '@mintplayer/web-components/card';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAWA;;;;;;;;;AASG;MAQU,eAAe,CAAA;AAP5B,IAAA,WAAA,GAAA;QAQW,IAAA,CAAA,KAAK,GAAG,KAAK,CAAoB,SAAS;kFAAC;QAC3C,IAAA,CAAA,OAAO,GAAG,KAAK,CAAC,KAAK;oFAAC;AAEZ,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAK;AAC3C,YAAA,MAAM,CAAC,GAAG,IAAI,CAAC,KAAK,EAAE;AACtB,YAAA,OAAO,CAAC,KAAK,SAAS,GAAG,IAAI,GAAG,KAAK,CAAC,CAAC,CAAC;QAC1C,CAAC;sFAAC;AACH,IAAA;8GARY,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,qUALhB,CAAA,8GAAA,CAAgH,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA,eAA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,EAI/B,EAAE,KAAK,EAAE,YAAY,EAAE,EAAA,eAAA,EACZ,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;;;ACTjD;AACA;AACA;AACA;;ACHA;;AAEG;;;;"}
@@ -2,6 +2,30 @@ import { isPlatformServer } from '@angular/common';
2
2
  import * as i0 from '@angular/core';
3
3
  import { inject, ElementRef, PLATFORM_ID, signal, computed, Directive } from '@angular/core';
4
4
 
5
+ /**
6
+ * The element's content-box size, fractional: the same quantity a ResizeObserver reports as
7
+ * `contentRect`, so the first value matches every later one. `clientWidth` would not: it is an
8
+ * integer and includes the padding, so a padded element jumped by its padding on the first
9
+ * observation, and a sub-pixel width flipped by a rounding step (issue #428).
10
+ */
11
+ function contentBoxSize(el) {
12
+ const cs = getComputedStyle(el);
13
+ const px = (...values) => values.reduce((sum, v) => sum + (parseFloat(v) || 0), 0);
14
+ const paddingX = px(cs.paddingLeft, cs.paddingRight);
15
+ const paddingY = px(cs.paddingTop, cs.paddingBottom);
16
+ const borderBox = cs.boxSizing === 'border-box';
17
+ const axis = (used, client, padding, border) => {
18
+ const value = parseFloat(used);
19
+ // `auto` for a non-replaced inline element: fall back to the integer client size.
20
+ if (Number.isNaN(value))
21
+ return Math.max(0, client - padding);
22
+ return Math.max(0, borderBox ? value - padding - border : value);
23
+ };
24
+ return {
25
+ width: axis(cs.width, el.clientWidth, paddingX, px(cs.borderLeftWidth, cs.borderRightWidth)),
26
+ height: axis(cs.height, el.clientHeight, paddingY, px(cs.borderTopWidth, cs.borderBottomWidth)),
27
+ };
28
+ }
5
29
  class BsObserveSizeDirective {
6
30
  constructor() {
7
31
  this.element = inject(ElementRef);
@@ -19,9 +43,12 @@ class BsObserveSizeDirective {
19
43
  }
20
44
  }
21
45
  ngAfterViewInit() {
46
+ // The server has no layout (and no getComputedStyle): leave the size unmeasured.
47
+ if (isPlatformServer(this.platformId))
48
+ return;
22
49
  const el = this.element.nativeElement;
23
50
  this.observer?.observe(el);
24
- this.size.set({ width: el.clientWidth, height: el.clientHeight });
51
+ this.size.set(contentBoxSize(el));
25
52
  }
26
53
  ngOnDestroy() {
27
54
  if (this.observer) {
@@ -44,5 +71,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
44
71
  * Generated bundle index. Do not edit.
45
72
  */
46
73
 
47
- export { BsObserveSizeDirective };
74
+ export { BsObserveSizeDirective, contentBoxSize };
48
75
  //# sourceMappingURL=mintplayer-ng-bootstrap-observe-size.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-observe-size.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/observe-size/src/observe-size.directive.ts","../../../../libs/mintplayer-ng-bootstrap/observe-size/mintplayer-ng-bootstrap-observe-size.ts"],"sourcesContent":["import { isPlatformServer } from '@angular/common';\nimport { AfterViewInit, computed, Directive, ElementRef, inject, OnDestroy, PLATFORM_ID, signal } from '@angular/core';\nimport { Size } from './size';\n\n@Directive({\n selector: '[bsObserveSize]',\n exportAs: 'bsObserveSize'\n})\nexport class BsObserveSizeDirective implements AfterViewInit, OnDestroy {\n private element = inject(ElementRef);\n private platformId = inject(PLATFORM_ID);\n\n private observer?: ResizeObserver;\n\n constructor() {\n if (!isPlatformServer(this.platformId) && typeof ResizeObserver !== 'undefined') {\n this.observer = new ResizeObserver((entries) => {\n this.size.set(entries[0].contentRect);\n });\n }\n }\n\n size = signal<Size | undefined>(undefined);\n width = computed(() => this.size()?.width);\n height = computed(() => this.size()?.height);\n\n ngAfterViewInit() {\n const el: HTMLElement = this.element.nativeElement;\n this.observer?.observe(el);\n this.size.set({ width: el.clientWidth, height: el.clientHeight });\n }\n\n ngOnDestroy() {\n if (this.observer) {\n this.observer.unobserve(this.element.nativeElement);\n this.observer.disconnect();\n }\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MAQa,sBAAsB,CAAA;AAMjC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,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE;AACX,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-observe-size.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/observe-size/src/observe-size.directive.ts","../../../../libs/mintplayer-ng-bootstrap/observe-size/mintplayer-ng-bootstrap-observe-size.ts"],"sourcesContent":["import { isPlatformServer } from '@angular/common';\nimport { AfterViewInit, computed, Directive, ElementRef, inject, OnDestroy, PLATFORM_ID, signal } from '@angular/core';\nimport { Size } from './size';\n\n/**\n * The element's content-box size, fractional: the same quantity a ResizeObserver reports as\n * `contentRect`, so the first value matches every later one. `clientWidth` would not: it is an\n * integer and includes the padding, so a padded element jumped by its padding on the first\n * observation, and a sub-pixel width flipped by a rounding step (issue #428).\n */\nexport function contentBoxSize(el: HTMLElement): Size {\n const cs = getComputedStyle(el);\n const px = (...values: string[]) => values.reduce((sum, v) => sum + (parseFloat(v) || 0), 0);\n const paddingX = px(cs.paddingLeft, cs.paddingRight);\n const paddingY = px(cs.paddingTop, cs.paddingBottom);\n const borderBox = cs.boxSizing === 'border-box';\n const axis = (used: string, client: number, padding: number, border: number) => {\n const value = parseFloat(used);\n // `auto` for a non-replaced inline element: fall back to the integer client size.\n if (Number.isNaN(value)) return Math.max(0, client - padding);\n return Math.max(0, borderBox ? value - padding - border : value);\n };\n return {\n width: axis(cs.width, el.clientWidth, paddingX, px(cs.borderLeftWidth, cs.borderRightWidth)),\n height: axis(cs.height, el.clientHeight, paddingY, px(cs.borderTopWidth, cs.borderBottomWidth)),\n };\n}\n\n@Directive({\n selector: '[bsObserveSize]',\n exportAs: 'bsObserveSize'\n})\nexport class BsObserveSizeDirective implements AfterViewInit, OnDestroy {\n private element = inject(ElementRef);\n private platformId = inject(PLATFORM_ID);\n\n private observer?: ResizeObserver;\n\n constructor() {\n if (!isPlatformServer(this.platformId) && typeof ResizeObserver !== 'undefined') {\n this.observer = new ResizeObserver((entries) => {\n this.size.set(entries[0].contentRect);\n });\n }\n }\n\n size = signal<Size | undefined>(undefined);\n width = computed(() => this.size()?.width);\n height = computed(() => this.size()?.height);\n\n ngAfterViewInit() {\n // The server has no layout (and no getComputedStyle): leave the size unmeasured.\n if (isPlatformServer(this.platformId)) return;\n const el: HTMLElement = this.element.nativeElement;\n this.observer?.observe(el);\n this.size.set(contentBoxSize(el));\n }\n\n ngOnDestroy() {\n if (this.observer) {\n this.observer.unobserve(this.element.nativeElement);\n this.observer.disconnect();\n }\n }\n}","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAIA;;;;;AAKG;AACG,SAAU,cAAc,CAAC,EAAe,EAAA;AAC5C,IAAA,MAAM,EAAE,GAAG,gBAAgB,CAAC,EAAE,CAAC;AAC/B,IAAA,MAAM,EAAE,GAAG,CAAC,GAAG,MAAgB,KAAK,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,EAAE,CAAC,KAAK,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,CAAC;AAC5F,IAAA,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,CAAC,WAAW,EAAE,EAAE,CAAC,YAAY,CAAC;AACpD,IAAA,MAAM,QAAQ,GAAG,EAAE,CAAC,EAAE,CAAC,UAAU,EAAE,EAAE,CAAC,aAAa,CAAC;AACpD,IAAA,MAAM,SAAS,GAAG,EAAE,CAAC,SAAS,KAAK,YAAY;IAC/C,MAAM,IAAI,G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IAAI,CAAC,QAAQ,GAAG,IAAI,cAAc,CAAC,CAAC,OAAO,KAAI;AAC7C,gBAAA,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,WAAW,CAAC;AACvC,YAAA,CAAC,CAAC;QACJ;IACF;IAMA,eAAe,GAAA;;AAEb,QAAA,IAAI,gBAAgB,CAAC,IAAI,CAAC,UAAU,CAAC;YAAE;AACvC,QAAA,MAAM,EAAE,GAAgB,IAAI,CAAC,OAAO,CAAC,aAAa;AAClD,QAAA,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,EAAE,CAAC;QAC1B,IAAI,CAAC,IAAI,CAAC,GAAG,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC;IACnC;IAEA,WAAW,GAAA;AACT,QAAA,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC;AACnD,YAAA,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;QAC5B;IACF;8GA/BW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAtB,sBAAsB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,CAAA,eAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAtB,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBAJlC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,iBAAiB;AAC3B,oBAAA,QAAQ,EAAE;AACX,iBAAA;;;AC/BD;;AAEG;;;;"}
@@ -51,6 +51,14 @@ function computeOverflowOrder(items, fromEnd) {
51
51
  })
52
52
  .map(({ item }) => item);
53
53
  }
54
+ /**
55
+ * How far a width may exceed the strip and still count as fitting. The item widths come from a
56
+ * separate measure strip and the strip width from the live one, and each is rounded on its own
57
+ * (float32 layout values, Firefox's 1/60px app units), so a row of items laid out at exactly its
58
+ * own width can measure a hair wider than itself. Half a pixel is above every such rounding error
59
+ * and below one device pixel at a DPR of 2. Issue #428.
60
+ */
61
+ const SUBPIXEL_TOLERANCE = 0.5;
54
62
  /**
55
63
  * The ids of the items that do not fit. When every item fits there is no More toggle, so N
56
64
  * items take N-1 gaps. Once one overflows the toggle appears: with K items kicked out, the
@@ -61,10 +69,10 @@ function computeOverflowIds({ stripWidth, moreWidth, gap, widths, order }) {
61
69
  if (stripWidth === 0 || widths.size === 0)
62
70
  return new Set();
63
71
  const sumWidths = [...widths.values()].reduce((a, b) => a + b, 0);
64
- if (sumWidths + gap * Math.max(0, widths.size - 1) <= stripWidth)
72
+ if (sumWidths + gap * Math.max(0, widths.size - 1) <= stripWidth + SUBPIXEL_TOLERANCE)
65
73
  return new Set();
66
74
  const result = order.reduce((acc, id) => {
67
- if (acc.done || acc.visibleSum + moreWidth + gap * acc.visibleCount <= stripWidth) {
75
+ if (acc.done || acc.visibleSum + moreWidth + gap * acc.visibleCount <= stripWidth + SUBPIXEL_TOLERANCE) {
68
76
  return { ...acc, done: true };
69
77
  }
70
78
  return {
@@ -154,11 +162,12 @@ class BsPriorityNavComponent {
154
162
  this.stripSizer = viewChild.required('stripSize', /* @ts-ignore */
155
163
  ...(ngDevMode ? [{ debugName: "stripSizer" }] : /* istanbul ignore next */ []));
156
164
  this.stripElement = viewChild.required('stripSize', { ...(ngDevMode ? { debugName: "stripElement" } : /* istanbul ignore next */ {}), read: ElementRef });
157
- // More button width. Optional on purpose: the button exists only in the JS branch of the
158
- // template (the server renders a label instead), so this query is empty on the server.
159
- this.moreSizer = viewChild('moreSize', /* @ts-ignore */
160
- ...(ngDevMode ? [{ debugName: "moreSizer" }] : /* istanbul ignore next */ []));
161
- this.moreButton = viewChild('moreSize', { ...(ngDevMode ? { debugName: "moreButton" } : /* istanbul ignore next */ {}), read: ElementRef });
165
+ // More toggle width, from the slot around the real button (measured even while idle, padding
166
+ // included). Optional on purpose: the button exists only in the JS branch of the template (the
167
+ // server renders a label instead), so this query is empty on the server.
168
+ this.moreMeasure = viewChild('moreSize', /* @ts-ignore */
169
+ ...(ngDevMode ? [{ debugName: "moreMeasure" }] : /* istanbul ignore next */ []));
170
+ this.moreButton = viewChild('moreButton', { ...(ngDevMode ? { debugName: "moreButton" } : /* istanbul ignore next */ {}), read: ElementRef });
162
171
  this.overflowPanel = viewChild('overflowPanel', { ...(ngDevMode ? { debugName: "overflowPanel" } : /* istanbul ignore next */ {}), read: ElementRef });
163
172
  // Open/closed state for the More menu (JS path)
164
173
  this.isMoreOpen = signal(false, /* @ts-ignore */
@@ -215,6 +224,15 @@ class BsPriorityNavComponent {
215
224
  return Number.isFinite(raw) ? raw : 0;
216
225
  }, /* @ts-ignore */
217
226
  ...(ngDevMode ? [{ debugName: "itemGap" }] : /* istanbul ignore next */ []));
227
+ this.moreWidth = computed(() => this.moreMeasure()?.width(), /* @ts-ignore */
228
+ ...(ngDevMode ? [{ debugName: "moreWidth" }] : /* istanbul ignore next */ []));
229
+ // Feeds `:host { min-width: var(--priority-nav-more-width, 0) }`: the host may shrink below its
230
+ // items, so a shrink-wrapped nav can collapse, but never below the More toggle.
231
+ this.hostMinWidth = computed(() => {
232
+ const width = this.items().length > 0 ? this.moreWidth() : undefined;
233
+ return width === undefined ? null : `${width}px`;
234
+ }, /* @ts-ignore */
235
+ ...(ngDevMode ? [{ debugName: "hostMinWidth" }] : /* istanbul ignore next */ []));
218
236
  this.overflowingIds = computed(() => {
219
237
  if (this.isServerSide)
220
238
  return new Set();
@@ -223,7 +241,7 @@ class BsPriorityNavComponent {
223
241
  }
224
242
  return computeOverflowIds({
225
243
  stripWidth: this.stripSizer().width() ?? 0,
226
- moreWidth: this.moreSizer()?.width() ?? 0,
244
+ moreWidth: this.moreWidth() ?? 0,
227
245
  gap: this.itemGap(),
228
246
  widths: this.itemWidths(),
229
247
  order: this.overflowOrder().map((item) => item.id),
@@ -325,7 +343,7 @@ class BsPriorityNavComponent {
325
343
  }
326
344
  }
327
345
  static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPriorityNavComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
328
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsPriorityNavComponent, isStandalone: true, selector: "bs-priority-nav", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, moreLabelTemplate: { classPropertyName: "moreLabelTemplate", publicName: "moreLabelTemplate", isSignal: true, isRequired: false, transformFunction: null }, collapseAt: { classPropertyName: "collapseAt", publicName: "collapseAt", isSignal: true, isRequired: false, transformFunction: null }, overflowFrom: { classPropertyName: "overflowFrom", publicName: "overflowFrom", isSignal: true, isRequired: false, transformFunction: null }, hideEmptyMore: { classPropertyName: "hideEmptyMore", publicName: "hideEmptyMore", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflowChange: "overflowChange" }, host: { listeners: { "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()", "window:resize": "onWindowResize()" } }, queries: [{ propertyName: "items", predicate: BsPriorityNavItemDirective, isSignal: true }], viewQueries: [{ propertyName: "measureSizers", predicate: ["measureItem"], descendants: true, isSignal: true }, { propertyName: "stripSizer", first: true, predicate: ["stripSize"], descendants: true, isSignal: true }, { propertyName: "stripElement", first: true, predicate: ["stripSize"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "moreSizer", first: true, predicate: ["moreSize"], descendants: true, isSignal: true }, { propertyName: "moreButton", first: true, predicate: ["moreSize"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "overflowPanel", first: true, predicate: ["overflowPanel"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal \u2014 a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone \u2014 a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button bsObserveSize #moreSize=\"bsObserveSize\" type=\"button\"\n class=\"priority-nav-more-toggle\"\n [class.priority-nav-hidden]=\"!showMoreButton()\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n", styles: [":host{display:block}.priority-nav{position:relative}.priority-nav-measure-wrapper{position:absolute;top:0;left:0;width:0;height:0;overflow:hidden;pointer-events:none}.priority-nav-measure{visibility:hidden;display:flex;flex-wrap:nowrap;align-items:center}.priority-nav-measure .priority-nav-measure-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-strip{display:flex;flex-wrap:nowrap;align-items:center;overflow:hidden}.priority-nav-strip .priority-nav-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-hidden,.priority-nav-overflow-hidden{display:none!important}.priority-nav-more-toggle{flex-shrink:0;display:inline-flex;align-items:center;gap:.25rem;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;color:inherit;font:inherit}.priority-nav-more-toggle:focus-visible{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav-more-toggle .priority-nav-caret{font-size:.75em;line-height:1}.priority-nav-overflow{display:none;position:absolute;top:100%;right:0;z-index:1000;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;background-color:var(--bs-body-bg, #fff);border:var(--bs-border-width, 1px) solid var(--bs-border-color, rgba(0, 0, 0, .175));border-radius:var(--bs-border-radius, .375rem);box-shadow:0 .5rem 1rem #00000026}.priority-nav-overflow .priority-nav-overflow-item{display:block;padding:.25rem 1rem}.priority-nav-overflow-open{display:block}.priority-nav-overflow-align-start{left:0;right:auto}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-sm{display:none}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-md{display:none}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-lg{display:none}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xl{display:none}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xxl{display:none}}.priority-nav.noscript .priority-nav-overflow .priority-nav-overflow-item{display:none}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-sm{display:block}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-md{display:block}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-lg{display:block}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xl{display:block}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xxl{display:block}}.priority-nav.noscript>input.priority-nav-more-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.priority-nav.noscript>input.priority-nav-more-checkbox:focus-visible~.priority-nav-strip .priority-nav-more-toggle-noscript{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav.noscript>input.priority-nav-more-checkbox.noscript:checked~.priority-nav-overflow{display:block}.priority-nav.noscript .priority-nav-more-toggle-noscript{cursor:pointer;-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsNoNoscriptDirective, selector: "[bsNoNoscript]" }, { kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
346
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsPriorityNavComponent, isStandalone: true, selector: "bs-priority-nav", inputs: { moreLabel: { classPropertyName: "moreLabel", publicName: "moreLabel", isSignal: true, isRequired: false, transformFunction: null }, moreLabelTemplate: { classPropertyName: "moreLabelTemplate", publicName: "moreLabelTemplate", isSignal: true, isRequired: false, transformFunction: null }, collapseAt: { classPropertyName: "collapseAt", publicName: "collapseAt", isSignal: true, isRequired: false, transformFunction: null }, overflowFrom: { classPropertyName: "overflowFrom", publicName: "overflowFrom", isSignal: true, isRequired: false, transformFunction: null }, hideEmptyMore: { classPropertyName: "hideEmptyMore", publicName: "hideEmptyMore", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { overflowChange: "overflowChange" }, host: { listeners: { "document:click": "onDocumentClick($event)", "document:keydown.escape": "onEscape()", "window:resize": "onWindowResize()" }, properties: { "style.--priority-nav-more-width": "hostMinWidth()" } }, queries: [{ propertyName: "items", predicate: BsPriorityNavItemDirective, isSignal: true }], viewQueries: [{ propertyName: "measureSizers", predicate: ["measureItem"], descendants: true, isSignal: true }, { propertyName: "stripSizer", first: true, predicate: ["stripSize"], descendants: true, isSignal: true }, { propertyName: "stripElement", first: true, predicate: ["stripSize"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "moreMeasure", first: true, predicate: ["moreSize"], descendants: true, isSignal: true }, { propertyName: "moreButton", first: true, predicate: ["moreButton"], descendants: true, read: ElementRef, isSignal: true }, { propertyName: "overflowPanel", first: true, predicate: ["overflowPanel"], descendants: true, read: ElementRef, isSignal: true }], ngImport: i0, template: "<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal \u2014 a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone \u2014 a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- The slot is what gets measured: its content box is the\n button's border box, so the toggle's padding, the browser's\n button styles and any consumer CSS on the toggle all count.\n With nothing to show it is taken out of flow and made\n invisible, never display:none, which would measure 0 exactly\n when the first overflow decision needs the width. -->\n <span bsObserveSize #moreSize=\"bsObserveSize\"\n class=\"priority-nav-more-slot\"\n [class.priority-nav-more-slot-idle]=\"!showMoreButton()\">\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button #moreButton type=\"button\"\n class=\"priority-nav-more-toggle\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n </span>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n", styles: [":host{display:block;min-width:var(--priority-nav-more-width, 0)}.priority-nav{position:relative}.priority-nav-measure-wrapper{height:0;overflow:hidden;pointer-events:none}.priority-nav-measure{visibility:hidden;display:flex;flex-wrap:nowrap;align-items:center}.priority-nav-measure .priority-nav-measure-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-strip{display:flex;flex-wrap:nowrap;align-items:center;overflow:hidden}.priority-nav-strip .priority-nav-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-hidden,.priority-nav-overflow-hidden{display:none!important}.priority-nav-more-slot{display:inline-flex;flex-shrink:0}.priority-nav-more-slot-idle{position:absolute;top:0;left:0;visibility:hidden;pointer-events:none}.priority-nav-more-toggle{flex-shrink:0;display:inline-flex;align-items:center;gap:.25rem;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;color:inherit;font:inherit}.priority-nav-more-toggle:focus-visible{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav-more-toggle .priority-nav-caret{font-size:.75em;line-height:1}.priority-nav-overflow{display:none;position:absolute;top:100%;right:0;z-index:1000;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;background-color:var(--bs-body-bg, #fff);border:var(--bs-border-width, 1px) solid var(--bs-border-color, rgba(0, 0, 0, .175));border-radius:var(--bs-border-radius, .375rem);box-shadow:0 .5rem 1rem #00000026}.priority-nav-overflow .priority-nav-overflow-item{display:block;padding:.25rem 1rem}.priority-nav-overflow-open{display:block}.priority-nav-overflow-align-start{left:0;right:auto}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-sm{display:none}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-md{display:none}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-lg{display:none}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xl{display:none}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xxl{display:none}}.priority-nav.noscript .priority-nav-overflow .priority-nav-overflow-item{display:none}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-sm{display:block}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-md{display:block}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-lg{display:block}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xl{display:block}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xxl{display:block}}.priority-nav.noscript>input.priority-nav-more-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.priority-nav.noscript>input.priority-nav-more-checkbox:focus-visible~.priority-nav-strip .priority-nav-more-toggle-noscript{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav.noscript>input.priority-nav-more-checkbox.noscript:checked~.priority-nav-overflow{display:block}.priority-nav.noscript .priority-nav-more-toggle-noscript{cursor:pointer;-webkit-user-select:none;user-select:none}\n"], dependencies: [{ kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: BsNoNoscriptDirective, selector: "[bsNoNoscript]" }, { kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
329
347
  }
330
348
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsPriorityNavComponent, decorators: [{
331
349
  type: Component,
@@ -333,8 +351,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
333
351
  '(document:click)': 'onDocumentClick($event)',
334
352
  '(document:keydown.escape)': 'onEscape()',
335
353
  '(window:resize)': 'onWindowResize()',
336
- }, template: "<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal \u2014 a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone \u2014 a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button bsObserveSize #moreSize=\"bsObserveSize\" type=\"button\"\n class=\"priority-nav-more-toggle\"\n [class.priority-nav-hidden]=\"!showMoreButton()\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n", styles: [":host{display:block}.priority-nav{position:relative}.priority-nav-measure-wrapper{position:absolute;top:0;left:0;width:0;height:0;overflow:hidden;pointer-events:none}.priority-nav-measure{visibility:hidden;display:flex;flex-wrap:nowrap;align-items:center}.priority-nav-measure .priority-nav-measure-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-strip{display:flex;flex-wrap:nowrap;align-items:center;overflow:hidden}.priority-nav-strip .priority-nav-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-hidden,.priority-nav-overflow-hidden{display:none!important}.priority-nav-more-toggle{flex-shrink:0;display:inline-flex;align-items:center;gap:.25rem;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;color:inherit;font:inherit}.priority-nav-more-toggle:focus-visible{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav-more-toggle .priority-nav-caret{font-size:.75em;line-height:1}.priority-nav-overflow{display:none;position:absolute;top:100%;right:0;z-index:1000;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;background-color:var(--bs-body-bg, #fff);border:var(--bs-border-width, 1px) solid var(--bs-border-color, rgba(0, 0, 0, .175));border-radius:var(--bs-border-radius, .375rem);box-shadow:0 .5rem 1rem #00000026}.priority-nav-overflow .priority-nav-overflow-item{display:block;padding:.25rem 1rem}.priority-nav-overflow-open{display:block}.priority-nav-overflow-align-start{left:0;right:auto}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-sm{display:none}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-md{display:none}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-lg{display:none}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xl{display:none}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xxl{display:none}}.priority-nav.noscript .priority-nav-overflow .priority-nav-overflow-item{display:none}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-sm{display:block}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-md{display:block}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-lg{display:block}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xl{display:block}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xxl{display:block}}.priority-nav.noscript>input.priority-nav-more-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.priority-nav.noscript>input.priority-nav-more-checkbox:focus-visible~.priority-nav-strip .priority-nav-more-toggle-noscript{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav.noscript>input.priority-nav-more-checkbox.noscript:checked~.priority-nav-overflow{display:block}.priority-nav.noscript .priority-nav-more-toggle-noscript{cursor:pointer;-webkit-user-select:none;user-select:none}\n"] }]
337
- }], ctorParameters: () => [], propDecorators: { moreLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabel", required: false }] }], moreLabelTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabelTemplate", required: false }] }], collapseAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAt", required: false }] }], overflowFrom: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowFrom", required: false }] }], hideEmptyMore: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideEmptyMore", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], overflowChange: [{ type: i0.Output, args: ["overflowChange"] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsPriorityNavItemDirective), { isSignal: true }] }], measureSizers: [{ type: i0.ViewChildren, args: ['measureItem', { isSignal: true }] }], stripSizer: [{ type: i0.ViewChild, args: ['stripSize', { isSignal: true }] }], stripElement: [{ type: i0.ViewChild, args: ['stripSize', { ...{ read: ElementRef }, isSignal: true }] }], moreSizer: [{ type: i0.ViewChild, args: ['moreSize', { isSignal: true }] }], moreButton: [{ type: i0.ViewChild, args: ['moreSize', { ...{ read: ElementRef }, isSignal: true }] }], overflowPanel: [{ type: i0.ViewChild, args: ['overflowPanel', { ...{ read: ElementRef }, isSignal: true }] }] } });
354
+ '[style.--priority-nav-more-width]': 'hostMinWidth()',
355
+ }, template: "<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal \u2014 a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone \u2014 a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- The slot is what gets measured: its content box is the\n button's border box, so the toggle's padding, the browser's\n button styles and any consumer CSS on the toggle all count.\n With nothing to show it is taken out of flow and made\n invisible, never display:none, which would measure 0 exactly\n when the first overflow decision needs the width. -->\n <span bsObserveSize #moreSize=\"bsObserveSize\"\n class=\"priority-nav-more-slot\"\n [class.priority-nav-more-slot-idle]=\"!showMoreButton()\">\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button #moreButton type=\"button\"\n class=\"priority-nav-more-toggle\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n </span>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n", styles: [":host{display:block;min-width:var(--priority-nav-more-width, 0)}.priority-nav{position:relative}.priority-nav-measure-wrapper{height:0;overflow:hidden;pointer-events:none}.priority-nav-measure{visibility:hidden;display:flex;flex-wrap:nowrap;align-items:center}.priority-nav-measure .priority-nav-measure-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-strip{display:flex;flex-wrap:nowrap;align-items:center;overflow:hidden}.priority-nav-strip .priority-nav-item{display:inline-flex;align-items:center;flex-shrink:0}.priority-nav-hidden,.priority-nav-overflow-hidden{display:none!important}.priority-nav-more-slot{display:inline-flex;flex-shrink:0}.priority-nav-more-slot-idle{position:absolute;top:0;left:0;visibility:hidden;pointer-events:none}.priority-nav-more-toggle{flex-shrink:0;display:inline-flex;align-items:center;gap:.25rem;padding:.5rem .75rem;border:none;background:transparent;cursor:pointer;color:inherit;font:inherit}.priority-nav-more-toggle:focus-visible{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav-more-toggle .priority-nav-caret{font-size:.75em;line-height:1}.priority-nav-overflow{display:none;position:absolute;top:100%;right:0;z-index:1000;min-width:10rem;padding:.5rem 0;margin:.125rem 0 0;background-color:var(--bs-body-bg, #fff);border:var(--bs-border-width, 1px) solid var(--bs-border-color, rgba(0, 0, 0, .175));border-radius:var(--bs-border-radius, .375rem);box-shadow:0 .5rem 1rem #00000026}.priority-nav-overflow .priority-nav-overflow-item{display:block;padding:.25rem 1rem}.priority-nav-overflow-open{display:block}.priority-nav-overflow-align-start{left:0;right:auto}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-sm{display:none}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-md{display:none}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-lg{display:none}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xl{display:none}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-strip .priority-nav-item-hide-below-xxl{display:none}}.priority-nav.noscript .priority-nav-overflow .priority-nav-overflow-item{display:none}@media(max-width:575.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-sm{display:block}}@media(max-width:767.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-md{display:block}}@media(max-width:991.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-lg{display:block}}@media(max-width:1199.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xl{display:block}}@media(max-width:1399.98px){.priority-nav.noscript .priority-nav-overflow .priority-nav-item-hide-below-xxl{display:block}}.priority-nav.noscript>input.priority-nav-more-checkbox{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}.priority-nav.noscript>input.priority-nav-more-checkbox:focus-visible~.priority-nav-strip .priority-nav-more-toggle-noscript{outline:2px solid var(--bs-primary, #0d6efd);outline-offset:2px}.priority-nav.noscript>input.priority-nav-more-checkbox.noscript:checked~.priority-nav-overflow{display:block}.priority-nav.noscript .priority-nav-more-toggle-noscript{cursor:pointer;-webkit-user-select:none;user-select:none}\n"] }]
356
+ }], ctorParameters: () => [], propDecorators: { moreLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabel", required: false }] }], moreLabelTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "moreLabelTemplate", required: false }] }], collapseAt: [{ type: i0.Input, args: [{ isSignal: true, alias: "collapseAt", required: false }] }], overflowFrom: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowFrom", required: false }] }], hideEmptyMore: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideEmptyMore", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], overflowChange: [{ type: i0.Output, args: ["overflowChange"] }], items: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsPriorityNavItemDirective), { isSignal: true }] }], measureSizers: [{ type: i0.ViewChildren, args: ['measureItem', { isSignal: true }] }], stripSizer: [{ type: i0.ViewChild, args: ['stripSize', { isSignal: true }] }], stripElement: [{ type: i0.ViewChild, args: ['stripSize', { ...{ read: ElementRef }, isSignal: true }] }], moreMeasure: [{ type: i0.ViewChild, args: ['moreSize', { isSignal: true }] }], moreButton: [{ type: i0.ViewChild, args: ['moreButton', { ...{ read: ElementRef }, isSignal: true }] }], overflowPanel: [{ type: i0.ViewChild, args: ['overflowPanel', { ...{ read: ElementRef }, isSignal: true }] }] } });
338
357
 
339
358
  /**
340
359
  * Generated bundle index. Do not edit.
@@ -1 +1 @@
1
- {"version":3,"file":"mintplayer-ng-bootstrap-priority-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav-item/priority-nav-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow-activation.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.html","../../../../libs/mintplayer-ng-bootstrap/priority-nav/mintplayer-ng-bootstrap-priority-nav.ts"],"sourcesContent":["import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\n\n@Directive({\n selector: '[bsPriorityNavItem]',\n})\nexport class BsPriorityNavItemDirective {\n templateRef = inject(TemplateRef);\n\n priority = input<number | null>(null, { alias: 'bsPriorityNavItem' });\n hideBelow = input<Breakpoint | null>(null, { alias: 'bsPriorityNavItemHideBelow' });\n\n readonly id: number = ++BsPriorityNavItemDirective.idCounter;\n private static idCounter = 0;\n}\n","/**\n * The priority-nav overflow math, as pure functions over numbers so it can be tested without\n * layout. The component feeds them the measured widths.\n */\n\n/**\n * Orders items in overflow order: the first item returned is the first to overflow.\n *\n * A LOWER priority number means MORE important (priority 1 stays visible longest). Items\n * without a priority are least important and overflow before any prioritized item. Ties are\n * broken by declaration order: the last-declared overflows first when overflowing from the\n * end, the first-declared when overflowing from the start.\n */\nexport function computeOverflowOrder<T extends { priority: number | null }>(items: readonly T[], fromEnd: boolean): T[] {\n return items\n .map((item, index) => ({ item, index }))\n .sort((a, b) => {\n const pa = a.item.priority;\n const pb = b.item.priority;\n if (pa === null && pb !== null) return -1;\n if (pa !== null && pb === null) return 1;\n if (pa !== null && pb !== null && pa !== pb) return pb - pa;\n return fromEnd ? b.index - a.index : a.index - b.index;\n })\n .map(({ item }) => item);\n}\n\nexport interface OverflowLayout {\n /** Width of the visible strip. 0 means not measured yet. */\n stripWidth: number;\n /** Width of the More toggle. */\n moreWidth: number;\n /** The strip's column gap. */\n gap: number;\n /** Measured width per item id. */\n widths: ReadonlyMap<number, number>;\n /** Item ids in overflow order (see computeOverflowOrder). */\n order: readonly number[];\n}\n\n/**\n * The ids of the items that do not fit. When every item fits there is no More toggle, so N\n * items take N-1 gaps. Once one overflows the toggle appears: with K items kicked out, the\n * strip holds N-K items plus the toggle, so N-K gaps. Items are kicked in overflow order until\n * the rest and the toggle fit.\n */\nexport function computeOverflowIds({ stripWidth, moreWidth, gap, widths, order }: OverflowLayout): Set<number> {\n if (stripWidth === 0 || widths.size === 0) return new Set();\n\n const sumWidths = [...widths.values()].reduce((a, b) => a + b, 0);\n if (sumWidths + gap * Math.max(0, widths.size - 1) <= stripWidth) return new Set();\n\n const result = order.reduce(\n (acc, id) => {\n if (acc.done || acc.visibleSum + moreWidth + gap * acc.visibleCount <= stripWidth) {\n return { ...acc, done: true };\n }\n return {\n visibleSum: acc.visibleSum - (widths.get(id) ?? 0),\n visibleCount: acc.visibleCount - 1,\n ids: [...acc.ids, id],\n done: false,\n };\n },\n { visibleSum: sumWidths, visibleCount: widths.size, ids: [] as number[], done: false },\n );\n return new Set(result.ids);\n}\n","/**\n * Whether a click inside the overflow panel was an item ACTION, which should close the panel.\n *\n * The first interactive element on the event path, between the target and the panel, decides:\n * - a link, button or menuitem-like role closes the panel, because activating it did something;\n * - unless it opens a menu of its own (`aria-haspopup`, `aria-expanded`, `<summary>`), or is\n * disabled, in which case the user is not done with the panel;\n * - a form control or label keeps the panel open, as does a click that hits no interactive\n * element at all (padding, plain text).\n *\n * Walks `composedPath()`, not `target.closest()`: a nested web component's trigger lives in its\n * shadow root, where `closest()` from the retargeted host would never see it.\n */\nexport function isClosingActivation(path: readonly EventTarget[], panel: Element): boolean {\n const end = path.indexOf(panel);\n if (end < 0) return false;\n const control = path\n .slice(0, end)\n .find((target): target is Element => target instanceof Element && target.matches(INTERACTIVE));\n if (!control || !control.matches(ACTION)) return false;\n\n const popup = control.getAttribute('aria-haspopup');\n if (popup !== null && popup !== 'false') return false;\n if (control.hasAttribute('aria-expanded')) return false;\n if (control.getAttribute('aria-disabled') === 'true') return false;\n return !control.matches(':disabled');\n}\n\nconst ACTION = [\n 'a[href]',\n 'button',\n '[role=button]',\n '[role=link]',\n '[role=menuitem]',\n '[role=menuitemcheckbox]',\n '[role=menuitemradio]',\n].join(',');\n\n/** Everything that stops the walk: the actions, plus the controls that must keep the panel open. */\nconst INTERACTIVE = [ACTION, 'summary', 'input', 'select', 'textarea', 'label'].join(',');\n","import { isPlatformServer, NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef,\n inject, input, output, PLATFORM_ID, signal, TemplateRef, viewChild, viewChildren\n} from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\nimport { BsPriorityNavItemDirective } from '../priority-nav-item/priority-nav-item.directive';\nimport { computeOverflowIds, computeOverflowOrder } from './overflow';\nimport { isClosingActivation } from './overflow-activation';\n\n@Component({\n selector: 'bs-priority-nav',\n templateUrl: './priority-nav.component.html',\n styleUrls: ['./priority-nav.component.scss'],\n imports: [NgClass, NgTemplateOutlet, BsNoNoscriptDirective, BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:click)': 'onDocumentClick($event)',\n '(document:keydown.escape)': 'onEscape()',\n '(window:resize)': 'onWindowResize()',\n },\n})\nexport class BsPriorityNavComponent {\n private platformId = inject(PLATFORM_ID);\n private element = inject(ElementRef);\n private overlayStack = inject(BsOverlayStackService);\n private stackToken: symbol | null = null;\n\n isServerSide = isPlatformServer(this.platformId);\n\n private static counter = 0;\n uid = `pn-${++BsPriorityNavComponent.counter}`;\n\n // Inputs\n moreLabel = input('More');\n moreLabelTemplate = input<TemplateRef<{ $implicit: boolean }> | null>(null);\n collapseAt = input<Breakpoint | null>(null);\n overflowFrom = input<'start' | 'end'>('end');\n hideEmptyMore = input(true);\n ariaLabel = input<string>('Navigation');\n\n // Outputs\n overflowChange = output<BsPriorityNavItemDirective[]>();\n\n // Children\n readonly items = contentChildren(BsPriorityNavItemDirective);\n\n // Per-item width measurements (from the off-screen measure strip)\n private measureSizers = viewChildren<BsObserveSizeDirective>('measureItem');\n // Visible strip width and its element (for reading computed `column-gap`)\n stripSizer = viewChild.required<BsObserveSizeDirective>('stripSize');\n private stripElement = viewChild.required('stripSize', { read: ElementRef });\n // More button width. Optional on purpose: the button exists only in the JS branch of the\n // template (the server renders a label instead), so this query is empty on the server.\n moreSizer = viewChild<BsObserveSizeDirective>('moreSize');\n private moreButton = viewChild('moreSize', { read: ElementRef });\n private overflowPanel = viewChild('overflowPanel', { read: ElementRef });\n\n // Open/closed state for the More menu (JS path)\n isMoreOpen = signal(false);\n windowWidth = signal<number>(0);\n\n collapseAtPx = computed(() => {\n switch (this.collapseAt()) {\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 forceCollapse = computed(() => {\n const bp = this.collapseAtPx();\n if (bp === null) return false;\n const w = this.windowWidth();\n return w > 0 && w < bp;\n });\n\n // Items in overflow order (see computeOverflowOrder for the priority convention).\n overflowOrder = computed(() => {\n const entries = this.items().map((item) => ({ item, priority: item.priority() }));\n return computeOverflowOrder(entries, this.overflowFrom() === 'end').map(({ item }) => item);\n });\n\n // Per-item width map (from measure strip, indexed by item id, in items() order)\n itemWidths = computed<Map<number, number>>(() => {\n if (this.isServerSide) return new Map();\n const sizers = this.measureSizers();\n return new Map(this.items()\n .map((item, i) => [item.id, sizers[i]?.width()] as const)\n .filter((entry): entry is readonly [number, number] => entry[1] !== undefined));\n });\n\n // The strip's `column-gap` (or `gap`) value in pixels. Read from computed\n // style so consumers' `gap` declarations get factored into the overflow math\n // — without this, items overflow late or layout-shift when a gap is set.\n // Re-read whenever the strip width changes (covers media-query gap changes\n // that piggy-back on the same breakpoint).\n itemGap = computed(() => {\n if (this.isServerSide) return 0;\n this.stripSizer().width();\n const cs = getComputedStyle(this.stripElement().nativeElement as HTMLElement);\n const raw = parseFloat(cs.columnGap || cs.gap || '0');\n return Number.isFinite(raw) ? raw : 0;\n });\n\n overflowingIds = computed<Set<number>>(() => {\n if (this.isServerSide) return new Set();\n if (this.forceCollapse()) {\n return new Set(this.items().map(i => i.id));\n }\n return computeOverflowIds({\n stripWidth: this.stripSizer().width() ?? 0,\n moreWidth: this.moreSizer()?.width() ?? 0,\n gap: this.itemGap(),\n widths: this.itemWidths(),\n order: this.overflowOrder().map((item) => item.id),\n });\n });\n\n hasAnyOverflow = computed(() => this.overflowingIds().size > 0);\n showMoreButton = computed(() => !this.hideEmptyMore() || this.hasAnyOverflow());\n\n // When every item is overflowing the toggle ends up at the start edge of\n // the strip (no inline items push it). Anchor the dropdown to that side\n // so it stays visually attached to the toggle.\n fullyCollapsed = computed(() => {\n const items = this.items();\n return items.length > 0 && this.overflowingIds().size === items.length;\n });\n\n // Derived per-item view used by all three rendering passes (measure strip,\n // inline strip, overflow menu). Pre-computes the breakpoint class string and\n // the JS-mode-only hide flags so the template can stay purely declarative —\n // no method calls, no inline `!isServerSide` guards. The SSR/noscript path\n // relies on CSS media queries instead of these flags, so both `hideInline`\n // and `hideInOverflow` are forced to false on the server.\n itemsWithMeta = computed(() => {\n const items = this.items();\n const overflowing = this.overflowingIds();\n const ssr = this.isServerSide;\n return items.map(item => {\n const bp = item.hideBelow();\n const isOverflowing = overflowing.has(item.id);\n return {\n item,\n hideBelowClass: bp ? `priority-nav-item-hide-below-${bp}` : '',\n hideInline: !ssr && isOverflowing,\n hideInOverflow: !ssr && !isOverflowing,\n };\n });\n });\n\n constructor() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n\n effect(() => {\n const overflowing = this.overflowingIds();\n const overflowingItems = this.items().filter(i => overflowing.has(i.id));\n this.overflowChange.emit(overflowingItems);\n });\n\n effect(() => {\n const open = this.isMoreOpen();\n if (open && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!open && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n }\n\n onWindowResize() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n }\n\n toggleMore() {\n this.isMoreOpen.update(v => !v);\n }\n\n onEscape() {\n if (this.isMoreOpen() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.closeMore();\n }\n }\n\n /** Closes the panel after an item ACTION; see `isClosingActivation` for what counts as one. */\n onOverflowClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n const panel = this.overflowPanel()?.nativeElement;\n if (panel && isClosingActivation(event.composedPath(), panel)) {\n this.closeMore();\n }\n }\n\n /**\n * Closing hides the panel, so focus inside it would fall to `<body>`. It goes back to the More\n * button instead, but only if it is still in the panel: an action that already moved focus\n * elsewhere (a dialog it opened) keeps it.\n */\n private closeMore() {\n const panel = this.overflowPanel()?.nativeElement;\n const focusInPanel = !!panel && panel.contains(panel.ownerDocument.activeElement);\n this.isMoreOpen.set(false);\n if (focusInPanel) this.moreButton()?.nativeElement.focus();\n }\n\n onDocumentClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n if (!this.element.nativeElement.contains(event.target as Node)) {\n this.isMoreOpen.set(false);\n }\n }\n\n}\n","<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal — a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone — a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button bsObserveSize #moreSize=\"bsObserveSize\" type=\"button\"\n class=\"priority-nav-more-toggle\"\n [class.priority-nav-hidden]=\"!showMoreButton()\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAMa,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;QAEjC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAgB,IAAI,gFAAI,KAAK,EAAE,mBAAmB,EAAA,CAAG;QACrE,IAAA,CAAA,SAAS,GAAG,KAAK,CAAoB,IAAI,iFAAI,KAAK,EAAE,4BAA4B,EAAA,CAAG;AAE1E,QAAA,IAAA,CAAA,EAAE,GAAW,EAAE,0BAA0B,CAAC,SAAS;AAE7D,IAAA;aADgB,IAAA,CAAA,SAAS,GAAG,CAAH,CAAK;8GAPlB,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,MAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,SAAA,EAAA,EAAA,iBAAA,EAAA,WAAA,EAAA,UAAA,EAAA,4BAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBAHtC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACLD;;;AAGG;AAEH;;;;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AA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAElB,WAAW,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACzB,WAAW,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAG7B,UAAU,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACzB,UAAU,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,aAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CAC7B,eAAe,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE3DzE;;AAEG;;;;"}
1
+ {"version":3,"file":"mintplayer-ng-bootstrap-priority-nav.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav-item/priority-nav-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/overflow-activation.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.ts","../../../../libs/mintplayer-ng-bootstrap/priority-nav/src/priority-nav/priority-nav.component.html","../../../../libs/mintplayer-ng-bootstrap/priority-nav/mintplayer-ng-bootstrap-priority-nav.ts"],"sourcesContent":["import { Directive, inject, input, TemplateRef } from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\n\n@Directive({\n selector: '[bsPriorityNavItem]',\n})\nexport class BsPriorityNavItemDirective {\n templateRef = inject(TemplateRef);\n\n priority = input<number | null>(null, { alias: 'bsPriorityNavItem' });\n hideBelow = input<Breakpoint | null>(null, { alias: 'bsPriorityNavItemHideBelow' });\n\n readonly id: number = ++BsPriorityNavItemDirective.idCounter;\n private static idCounter = 0;\n}\n","/**\n * The priority-nav overflow math, as pure functions over numbers so it can be tested without\n * layout. The component feeds them the measured widths.\n */\n\n/**\n * Orders items in overflow order: the first item returned is the first to overflow.\n *\n * A LOWER priority number means MORE important (priority 1 stays visible longest). Items\n * without a priority are least important and overflow before any prioritized item. Ties are\n * broken by declaration order: the last-declared overflows first when overflowing from the\n * end, the first-declared when overflowing from the start.\n */\nexport function computeOverflowOrder<T extends { priority: number | null }>(items: readonly T[], fromEnd: boolean): T[] {\n return items\n .map((item, index) => ({ item, index }))\n .sort((a, b) => {\n const pa = a.item.priority;\n const pb = b.item.priority;\n if (pa === null && pb !== null) return -1;\n if (pa !== null && pb === null) return 1;\n if (pa !== null && pb !== null && pa !== pb) return pb - pa;\n return fromEnd ? b.index - a.index : a.index - b.index;\n })\n .map(({ item }) => item);\n}\n\n/**\n * How far a width may exceed the strip and still count as fitting. The item widths come from a\n * separate measure strip and the strip width from the live one, and each is rounded on its own\n * (float32 layout values, Firefox's 1/60px app units), so a row of items laid out at exactly its\n * own width can measure a hair wider than itself. Half a pixel is above every such rounding error\n * and below one device pixel at a DPR of 2. Issue #428.\n */\nexport const SUBPIXEL_TOLERANCE = 0.5;\n\nexport interface OverflowLayout {\n /** Width of the visible strip. 0 means not measured yet. */\n stripWidth: number;\n /** Width of the More toggle. */\n moreWidth: number;\n /** The strip's column gap. */\n gap: number;\n /** Measured width per item id. */\n widths: ReadonlyMap<number, number>;\n /** Item ids in overflow order (see computeOverflowOrder). */\n order: readonly number[];\n}\n\n/**\n * The ids of the items that do not fit. When every item fits there is no More toggle, so N\n * items take N-1 gaps. Once one overflows the toggle appears: with K items kicked out, the\n * strip holds N-K items plus the toggle, so N-K gaps. Items are kicked in overflow order until\n * the rest and the toggle fit.\n */\nexport function computeOverflowIds({ stripWidth, moreWidth, gap, widths, order }: OverflowLayout): Set<number> {\n if (stripWidth === 0 || widths.size === 0) return new Set();\n\n const sumWidths = [...widths.values()].reduce((a, b) => a + b, 0);\n if (sumWidths + gap * Math.max(0, widths.size - 1) <= stripWidth + SUBPIXEL_TOLERANCE) return new Set();\n\n const result = order.reduce(\n (acc, id) => {\n if (acc.done || acc.visibleSum + moreWidth + gap * acc.visibleCount <= stripWidth + SUBPIXEL_TOLERANCE) {\n return { ...acc, done: true };\n }\n return {\n visibleSum: acc.visibleSum - (widths.get(id) ?? 0),\n visibleCount: acc.visibleCount - 1,\n ids: [...acc.ids, id],\n done: false,\n };\n },\n { visibleSum: sumWidths, visibleCount: widths.size, ids: [] as number[], done: false },\n );\n return new Set(result.ids);\n}\n","/**\n * Whether a click inside the overflow panel was an item ACTION, which should close the panel.\n *\n * The first interactive element on the event path, between the target and the panel, decides:\n * - a link, button or menuitem-like role closes the panel, because activating it did something;\n * - unless it opens a menu of its own (`aria-haspopup`, `aria-expanded`, `<summary>`), or is\n * disabled, in which case the user is not done with the panel;\n * - a form control or label keeps the panel open, as does a click that hits no interactive\n * element at all (padding, plain text).\n *\n * Walks `composedPath()`, not `target.closest()`: a nested web component's trigger lives in its\n * shadow root, where `closest()` from the retargeted host would never see it.\n */\nexport function isClosingActivation(path: readonly EventTarget[], panel: Element): boolean {\n const end = path.indexOf(panel);\n if (end < 0) return false;\n const control = path\n .slice(0, end)\n .find((target): target is Element => target instanceof Element && target.matches(INTERACTIVE));\n if (!control || !control.matches(ACTION)) return false;\n\n const popup = control.getAttribute('aria-haspopup');\n if (popup !== null && popup !== 'false') return false;\n if (control.hasAttribute('aria-expanded')) return false;\n if (control.getAttribute('aria-disabled') === 'true') return false;\n return !control.matches(':disabled');\n}\n\nconst ACTION = [\n 'a[href]',\n 'button',\n '[role=button]',\n '[role=link]',\n '[role=menuitem]',\n '[role=menuitemcheckbox]',\n '[role=menuitemradio]',\n].join(',');\n\n/** Everything that stops the walk: the actions, plus the controls that must keep the panel open. */\nconst INTERACTIVE = [ACTION, 'summary', 'input', 'select', 'textarea', 'label'].join(',');\n","import { isPlatformServer, NgClass, NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef,\n inject, input, output, PLATFORM_ID, signal, TemplateRef, viewChild, viewChildren\n} from '@angular/core';\nimport { Breakpoint } from '@mintplayer/ng-bootstrap';\nimport { BsOverlayStackService } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsNoNoscriptDirective } from '@mintplayer/ng-bootstrap/no-noscript';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\nimport { BsPriorityNavItemDirective } from '../priority-nav-item/priority-nav-item.directive';\nimport { computeOverflowIds, computeOverflowOrder } from './overflow';\nimport { isClosingActivation } from './overflow-activation';\n\n@Component({\n selector: 'bs-priority-nav',\n templateUrl: './priority-nav.component.html',\n styleUrls: ['./priority-nav.component.scss'],\n imports: [NgClass, NgTemplateOutlet, BsNoNoscriptDirective, BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(document:click)': 'onDocumentClick($event)',\n '(document:keydown.escape)': 'onEscape()',\n '(window:resize)': 'onWindowResize()',\n '[style.--priority-nav-more-width]': 'hostMinWidth()',\n },\n})\nexport class BsPriorityNavComponent {\n private platformId = inject(PLATFORM_ID);\n private element = inject(ElementRef);\n private overlayStack = inject(BsOverlayStackService);\n private stackToken: symbol | null = null;\n\n isServerSide = isPlatformServer(this.platformId);\n\n private static counter = 0;\n uid = `pn-${++BsPriorityNavComponent.counter}`;\n\n // Inputs\n moreLabel = input('More');\n moreLabelTemplate = input<TemplateRef<{ $implicit: boolean }> | null>(null);\n collapseAt = input<Breakpoint | null>(null);\n overflowFrom = input<'start' | 'end'>('end');\n hideEmptyMore = input(true);\n ariaLabel = input<string>('Navigation');\n\n // Outputs\n overflowChange = output<BsPriorityNavItemDirective[]>();\n\n // Children\n readonly items = contentChildren(BsPriorityNavItemDirective);\n\n // Per-item width measurements (from the off-screen measure strip)\n private measureSizers = viewChildren<BsObserveSizeDirective>('measureItem');\n // Visible strip width and its element (for reading computed `column-gap`)\n stripSizer = viewChild.required<BsObserveSizeDirective>('stripSize');\n private stripElement = viewChild.required('stripSize', { read: ElementRef });\n // More toggle width, from the slot around the real button (measured even while idle, padding\n // included). Optional on purpose: the button exists only in the JS branch of the template (the\n // server renders a label instead), so this query is empty on the server.\n private moreMeasure = viewChild<BsObserveSizeDirective>('moreSize');\n private moreButton = viewChild('moreButton', { read: ElementRef });\n private overflowPanel = viewChild('overflowPanel', { read: ElementRef });\n\n // Open/closed state for the More menu (JS path)\n isMoreOpen = signal(false);\n windowWidth = signal<number>(0);\n\n collapseAtPx = computed(() => {\n switch (this.collapseAt()) {\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 forceCollapse = computed(() => {\n const bp = this.collapseAtPx();\n if (bp === null) return false;\n const w = this.windowWidth();\n return w > 0 && w < bp;\n });\n\n // Items in overflow order (see computeOverflowOrder for the priority convention).\n overflowOrder = computed(() => {\n const entries = this.items().map((item) => ({ item, priority: item.priority() }));\n return computeOverflowOrder(entries, this.overflowFrom() === 'end').map(({ item }) => item);\n });\n\n // Per-item width map (from measure strip, indexed by item id, in items() order)\n itemWidths = computed<Map<number, number>>(() => {\n if (this.isServerSide) return new Map();\n const sizers = this.measureSizers();\n return new Map(this.items()\n .map((item, i) => [item.id, sizers[i]?.width()] as const)\n .filter((entry): entry is readonly [number, number] => entry[1] !== undefined));\n });\n\n // The strip's `column-gap` (or `gap`) value in pixels. Read from computed\n // style so consumers' `gap` declarations get factored into the overflow math\n // — without this, items overflow late or layout-shift when a gap is set.\n // Re-read whenever the strip width changes (covers media-query gap changes\n // that piggy-back on the same breakpoint).\n itemGap = computed(() => {\n if (this.isServerSide) return 0;\n this.stripSizer().width();\n const cs = getComputedStyle(this.stripElement().nativeElement as HTMLElement);\n const raw = parseFloat(cs.columnGap || cs.gap || '0');\n return Number.isFinite(raw) ? raw : 0;\n });\n\n moreWidth = computed(() => this.moreMeasure()?.width());\n\n // Feeds `:host { min-width: var(--priority-nav-more-width, 0) }`: the host may shrink below its\n // items, so a shrink-wrapped nav can collapse, but never below the More toggle.\n hostMinWidth = computed(() => {\n const width = this.items().length > 0 ? this.moreWidth() : undefined;\n return width === undefined ? null : `${width}px`;\n });\n\n overflowingIds = computed<Set<number>>(() => {\n if (this.isServerSide) return new Set();\n if (this.forceCollapse()) {\n return new Set(this.items().map(i => i.id));\n }\n return computeOverflowIds({\n stripWidth: this.stripSizer().width() ?? 0,\n moreWidth: this.moreWidth() ?? 0,\n gap: this.itemGap(),\n widths: this.itemWidths(),\n order: this.overflowOrder().map((item) => item.id),\n });\n });\n\n hasAnyOverflow = computed(() => this.overflowingIds().size > 0);\n showMoreButton = computed(() => !this.hideEmptyMore() || this.hasAnyOverflow());\n\n // When every item is overflowing the toggle ends up at the start edge of\n // the strip (no inline items push it). Anchor the dropdown to that side\n // so it stays visually attached to the toggle.\n fullyCollapsed = computed(() => {\n const items = this.items();\n return items.length > 0 && this.overflowingIds().size === items.length;\n });\n\n // Derived per-item view used by all three rendering passes (measure strip,\n // inline strip, overflow menu). Pre-computes the breakpoint class string and\n // the JS-mode-only hide flags so the template can stay purely declarative —\n // no method calls, no inline `!isServerSide` guards. The SSR/noscript path\n // relies on CSS media queries instead of these flags, so both `hideInline`\n // and `hideInOverflow` are forced to false on the server.\n itemsWithMeta = computed(() => {\n const items = this.items();\n const overflowing = this.overflowingIds();\n const ssr = this.isServerSide;\n return items.map(item => {\n const bp = item.hideBelow();\n const isOverflowing = overflowing.has(item.id);\n return {\n item,\n hideBelowClass: bp ? `priority-nav-item-hide-below-${bp}` : '',\n hideInline: !ssr && isOverflowing,\n hideInOverflow: !ssr && !isOverflowing,\n };\n });\n });\n\n constructor() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n\n effect(() => {\n const overflowing = this.overflowingIds();\n const overflowingItems = this.items().filter(i => overflowing.has(i.id));\n this.overflowChange.emit(overflowingItems);\n });\n\n effect(() => {\n const open = this.isMoreOpen();\n if (open && this.stackToken === null) {\n this.stackToken = this.overlayStack.push();\n } else if (!open && this.stackToken !== null) {\n this.overlayStack.release(this.stackToken);\n this.stackToken = null;\n }\n });\n }\n\n onWindowResize() {\n if (!this.isServerSide) {\n this.windowWidth.set(window.innerWidth);\n }\n }\n\n toggleMore() {\n this.isMoreOpen.update(v => !v);\n }\n\n onEscape() {\n if (this.isMoreOpen() && this.stackToken !== null && this.overlayStack.isTop(this.stackToken)) {\n this.closeMore();\n }\n }\n\n /** Closes the panel after an item ACTION; see `isClosingActivation` for what counts as one. */\n onOverflowClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n const panel = this.overflowPanel()?.nativeElement;\n if (panel && isClosingActivation(event.composedPath(), panel)) {\n this.closeMore();\n }\n }\n\n /**\n * Closing hides the panel, so focus inside it would fall to `<body>`. It goes back to the More\n * button instead, but only if it is still in the panel: an action that already moved focus\n * elsewhere (a dialog it opened) keeps it.\n */\n private closeMore() {\n const panel = this.overflowPanel()?.nativeElement;\n const focusInPanel = !!panel && panel.contains(panel.ownerDocument.activeElement);\n this.isMoreOpen.set(false);\n if (focusInPanel) this.moreButton()?.nativeElement.focus();\n }\n\n onDocumentClick(event: MouseEvent) {\n if (event.button !== 0 || !this.isMoreOpen()) return;\n if (!this.element.nativeElement.contains(event.target as Node)) {\n this.isMoreOpen.set(false);\n }\n }\n\n}\n","<nav class=\"priority-nav\" [class.noscript]=\"isServerSide\" [attr.aria-label]=\"ariaLabel()\" bsNoNoscript>\n @if (isServerSide) {\n <!-- The checkbox IS the disclosure control: clipped (not display:none)\n so Tab reaches it, Space toggles it natively, and its checked\n state is a live, self-updating expanded signal — a static\n aria-expanded here would lie after the first toggle (PRD 11a). -->\n <input type=\"checkbox\" [id]=\"uid + '-more'\" class=\"priority-nav-more-checkbox\" bsNoNoscript\n [attr.aria-controls]=\"uid + '-overflow'\">\n }\n\n @if (!isServerSide) {\n <!-- inert (not just aria-hidden): the clone's links/buttons must be\n unreachable by Tab too, or focus lands on nodes the reader is\n required not to announce. Measurement needs geometry, which inert\n preserves (display:none would zero every measure). -->\n <div class=\"priority-nav-measure-wrapper\" aria-hidden=\"true\" inert>\n <div class=\"priority-nav-measure\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span #measureItem=\"bsObserveSize\" bsObserveSize class=\"priority-nav-measure-item\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n </div>\n }\n\n <div bsObserveSize #stripSize=\"bsObserveSize\" class=\"priority-nav-strip\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-item\"\n [class.priority-nav-hidden]=\"entry.hideInline\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n\n @if (isServerSide) {\n <!-- Visual skin + accessible name for the clipped checkbox; the\n fake role=\"button\"/tabindex pair is gone — a label does not\n activate on Enter, so it claimed a keyboard it did not have. -->\n <label [for]=\"uid + '-more'\" class=\"priority-nav-more-toggle priority-nav-more-toggle-noscript\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: false }\"></ng-container>\n </label>\n } @else {\n <!-- The slot is what gets measured: its content box is the\n button's border box, so the toggle's padding, the browser's\n button styles and any consumer CSS on the toggle all count.\n With nothing to show it is taken out of flow and made\n invisible, never display:none, which would measure 0 exactly\n when the first overflow decision needs the width. -->\n <span bsObserveSize #moreSize=\"bsObserveSize\"\n class=\"priority-nav-more-slot\"\n [class.priority-nav-more-slot-idle]=\"!showMoreButton()\">\n <!-- Disclosure pattern: aria-expanded on the button; no\n aria-haspopup (that token means menu/dialog, and the overflow\n is a plain disclosure list). -->\n <button #moreButton type=\"button\"\n class=\"priority-nav-more-toggle\"\n (click)=\"toggleMore()\"\n [attr.aria-controls]=\"uid + '-overflow'\"\n [attr.aria-expanded]=\"isMoreOpen()\">\n <ng-container *ngTemplateOutlet=\"moreLabelTemplate() ?? defaultMoreLabel; context: { $implicit: isMoreOpen() }\"></ng-container>\n </button>\n </span>\n }\n </div>\n\n <!-- No role=\"menu\"/\"menuitem\": this is a disclosure overflow list (APG\n disclosure navigation), and a menu role would demand a focus-managed\n menuitem keyboard model the projected links neither need nor have. -->\n <div #overflowPanel\n [id]=\"uid + '-overflow'\"\n class=\"priority-nav-overflow\"\n (click)=\"onOverflowClick($event)\"\n [class.priority-nav-overflow-open]=\"!isServerSide && isMoreOpen()\"\n [class.priority-nav-overflow-align-start]=\"!isServerSide && fullyCollapsed()\">\n @for (entry of itemsWithMeta(); track entry.item.id) {\n <span class=\"priority-nav-overflow-item\"\n [class.priority-nav-overflow-hidden]=\"entry.hideInOverflow\"\n [ngClass]=\"entry.hideBelowClass\">\n <ng-container *ngTemplateOutlet=\"entry.item.templateRef\"></ng-container>\n </span>\n }\n </div>\n</nav>\n\n<ng-template #defaultMoreLabel let-isOpen>\n <span class=\"priority-nav-more-label\">{{ moreLabel() }}</span>\n <span class=\"priority-nav-caret\" aria-hidden=\"true\">&#9662;</span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAMa,0BAA0B,CAAA;AAHvC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAC,WAAW,CAAC;Q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.24.0",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
7
7
  "type": "git",
@@ -424,7 +424,7 @@
424
424
  "@mintplayer/ng-animations": "^22.0.0",
425
425
  "@mintplayer/pagination": "^2.3.0",
426
426
  "@mintplayer/ng-focus-on-load": "^22.0.0",
427
- "@mintplayer/web-components": "^2.19.0",
427
+ "@mintplayer/web-components": "^2.20.0",
428
428
  "lit": "^3.3.0"
429
429
  },
430
430
  "dependencies": {
@@ -8,9 +8,9 @@ export * from '@mintplayer/web-components/card';
8
8
  *
9
9
  * Renders an inner `<mp-card>` — the single card web component, which owns the
10
10
  * card chrome (border / radius / background) in its shadow DOM. Projected
11
- * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled via
12
- * the WC's `::slotted()` rules (header / body / footer / img) plus the global
13
- * typography sheet (title / text). This is what makes the card render
11
+ * `<bs-card-*>` content lands in `<mp-card>`'s default slot and is styled by
12
+ * the WC's card-anchored document sheet (header / body / footer / img / title /
13
+ * text). This is what makes the card render
14
14
  * correctly even when itself slotted inside another web component.
15
15
  */
16
16
  declare class BsCardComponent {
@@ -6,6 +6,13 @@ interface Size {
6
6
  height: number;
7
7
  }
8
8
 
9
+ /**
10
+ * The element's content-box size, fractional: the same quantity a ResizeObserver reports as
11
+ * `contentRect`, so the first value matches every later one. `clientWidth` would not: it is an
12
+ * integer and includes the padding, so a padded element jumped by its padding on the first
13
+ * observation, and a sub-pixel width flipped by a rounding step (issue #428).
14
+ */
15
+ declare function contentBoxSize(el: HTMLElement): Size;
9
16
  declare class BsObserveSizeDirective implements AfterViewInit, OnDestroy {
10
17
  private element;
11
18
  private platformId;
@@ -20,5 +27,5 @@ declare class BsObserveSizeDirective implements AfterViewInit, OnDestroy {
20
27
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsObserveSizeDirective, "[bsObserveSize]", ["bsObserveSize"], {}, {}, never, never, true, never>;
21
28
  }
22
29
 
23
- export { BsObserveSizeDirective };
30
+ export { BsObserveSizeDirective, contentBoxSize };
24
31
  export type { Size };
@@ -34,7 +34,7 @@ declare class BsPriorityNavComponent {
34
34
  private measureSizers;
35
35
  stripSizer: _angular_core.Signal<BsObserveSizeDirective>;
36
36
  private stripElement;
37
- moreSizer: _angular_core.Signal<BsObserveSizeDirective | undefined>;
37
+ private moreMeasure;
38
38
  private moreButton;
39
39
  private overflowPanel;
40
40
  isMoreOpen: _angular_core.WritableSignal<boolean>;
@@ -44,6 +44,8 @@ declare class BsPriorityNavComponent {
44
44
  overflowOrder: _angular_core.Signal<BsPriorityNavItemDirective[]>;
45
45
  itemWidths: _angular_core.Signal<Map<number, number>>;
46
46
  itemGap: _angular_core.Signal<number>;
47
+ moreWidth: _angular_core.Signal<number | undefined>;
48
+ hostMinWidth: _angular_core.Signal<string | null>;
47
49
  overflowingIds: _angular_core.Signal<Set<number>>;
48
50
  hasAnyOverflow: _angular_core.Signal<boolean>;
49
51
  showMoreButton: _angular_core.Signal<boolean>;