@mintplayer/ng-bootstrap 22.22.0 → 22.23.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.
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +29 -2
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +30 -11
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/package.json +1 -1
- package/types/mintplayer-ng-bootstrap-observe-size.d.ts +8 -1
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +3 -1
|
@@ -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(
|
|
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(
|
|
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,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);
|
|
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
|
|
158
|
-
//
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
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.
|
|
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\">▾</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\">▾</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
|
-
|
|
337
|
-
|
|
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\">▾</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\">▾</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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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\">▾</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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AA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,SAAA,EAAA,IAAA,EAAA,CACnC,YAAY,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,CAC/B,eAAe,EAAA,EAAA,GAAE,EAAE,IAAI,EAAE,UAAU,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7DzE;;AAEG;;;;"}
|
package/package.json
CHANGED
|
@@ -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
|
-
|
|
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>;
|