@mintplayer/ng-bootstrap 22.27.0 → 22.29.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/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +150 -813
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +220 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +217 -416
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +112 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- package/src/styles/utilities/width.scss +0 -14
package/_bootstrap.scss
CHANGED
|
@@ -1,107 +1,10 @@
|
|
|
1
1
|
// --mp-color-mode (PRD dark-mode D6): the token component sheets query with
|
|
2
2
|
// `@container style(--mp-color-mode: dark)`. Must stay the first statement.
|
|
3
3
|
@use '@mintplayer/web-components/theming/color-mode.css';
|
|
4
|
-
//
|
|
5
|
-
|
|
4
|
+
// The Bootstrap baseline, in @layer mp.bootstrap (PRD #437 §6). Shared with the
|
|
5
|
+
// React and Vue libraries; see libs/mintplayer-ui-core/styles/bootstrap.scss.
|
|
6
|
+
@use '@mintplayer/ui-core/styles/bootstrap';
|
|
6
7
|
// CDK a11y utility styles: BsLiveAnnouncerService wraps CDK's LiveAnnouncer,
|
|
7
8
|
// whose injected live region carries .cdk-visually-hidden — without these
|
|
8
9
|
// rules every announcement renders as visible text at the page edge.
|
|
9
|
-
@
|
|
10
|
-
@import './src/styles/utilities/cursor.scss';
|
|
11
|
-
@import './src/styles/utilities/white-space.scss';
|
|
12
|
-
@import './src/styles/utilities/overflow.scss';
|
|
13
|
-
@import './src/styles/utilities/width.scss';
|
|
14
|
-
|
|
15
|
-
// Finally import the bootstrap
|
|
16
|
-
// @import "~bootstrap/scss/bootstrap.scss";
|
|
17
|
-
|
|
18
|
-
// @import "bootstrap/scss/mixins/banner";
|
|
19
|
-
// @include bsBanner("");
|
|
20
|
-
|
|
21
|
-
// @import 'node_modules/@angular/cdk/overlay-prebuilt';
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
// scss-docs-start import-stack
|
|
25
|
-
// Configuration
|
|
26
|
-
// @import "~bootstrap/scss/functions";
|
|
27
|
-
// @import "~bootstrap/scss/variables";
|
|
28
|
-
// @import "../../../../../../../bootstrap/scss/variables-dark";
|
|
29
|
-
// @import "~bootstrap/scss/maps";
|
|
30
|
-
// @import "~bootstrap/scss/mixins";
|
|
31
|
-
@import "bootstrap/scss/utilities";
|
|
32
|
-
|
|
33
|
-
// Layout & components
|
|
34
|
-
|
|
35
|
-
// The [data-bs-theme=dark] token block below is pruned by Angular's critical-CSS
|
|
36
|
-
// inliner (beasties), because the static index.html carries no data-bs-theme.
|
|
37
|
-
// Beasties' include markers cannot keep it (PRD dark-mode D5c, measured): the
|
|
38
|
-
// production minifier strips plain comments, and beasties ignores the loud
|
|
39
|
-
// comment form that survives. Apps must therefore set
|
|
40
|
-
// optimization.styles.inlineCritical to false; see the ng demo's project.json
|
|
41
|
-
// and `nx run ng-bootstrap-demo:check-critical-css`.
|
|
42
|
-
@import "bootstrap/scss/root";
|
|
43
|
-
@import "bootstrap/scss/reboot";
|
|
44
|
-
@import "bootstrap/scss/type";
|
|
45
|
-
@import "bootstrap/scss/images";
|
|
46
|
-
// @import "~bootstrap/scss/containers";
|
|
47
|
-
// @import "~bootstrap/scss/grid";
|
|
48
|
-
// @import "~bootstrap/scss/tables";
|
|
49
|
-
// @import "~bootstrap/scss/forms";
|
|
50
|
-
@import "bootstrap/scss/buttons";
|
|
51
|
-
|
|
52
|
-
// Re-bind .btn-primary / .btn-outline-primary scoped variables to var(--bs-primary)
|
|
53
|
-
// so runtime mutations of --bs-primary propagate to buttons. Bootstrap's
|
|
54
|
-
// button-variant mixin emits color literals into the scoped --bs-btn-* vars,
|
|
55
|
-
// which is why the unpatched rules ignore --bs-primary changes at runtime.
|
|
56
|
-
.btn-primary {
|
|
57
|
-
--bs-btn-bg: var(--bs-primary);
|
|
58
|
-
--bs-btn-border-color: var(--bs-primary);
|
|
59
|
-
--bs-btn-hover-bg: color-mix(in srgb, var(--bs-primary), #000 15%);
|
|
60
|
-
--bs-btn-hover-border-color: color-mix(in srgb, var(--bs-primary), #000 20%);
|
|
61
|
-
--bs-btn-active-bg: color-mix(in srgb, var(--bs-primary), #000 20%);
|
|
62
|
-
--bs-btn-active-border-color: color-mix(in srgb, var(--bs-primary), #000 25%);
|
|
63
|
-
--bs-btn-disabled-bg: var(--bs-primary);
|
|
64
|
-
--bs-btn-disabled-border-color: var(--bs-primary);
|
|
65
|
-
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
.btn-outline-primary {
|
|
69
|
-
--bs-btn-color: var(--bs-primary);
|
|
70
|
-
--bs-btn-border-color: var(--bs-primary);
|
|
71
|
-
--bs-btn-hover-bg: var(--bs-primary);
|
|
72
|
-
--bs-btn-hover-border-color: var(--bs-primary);
|
|
73
|
-
--bs-btn-active-bg: var(--bs-primary);
|
|
74
|
-
--bs-btn-active-border-color: var(--bs-primary);
|
|
75
|
-
--bs-btn-disabled-color: var(--bs-primary);
|
|
76
|
-
--bs-btn-disabled-border-color: var(--bs-primary);
|
|
77
|
-
--bs-btn-focus-shadow-rgb: var(--bs-primary-rgb);
|
|
78
|
-
}
|
|
79
|
-
// @import "~bootstrap/scss/transitions";
|
|
80
|
-
// @import "~bootstrap/scss/dropdown";
|
|
81
|
-
// @import "~bootstrap/scss/button-group";
|
|
82
|
-
// @import "~bootstrap/scss/nav";
|
|
83
|
-
// @import "~bootstrap/scss/navbar";
|
|
84
|
-
// @import "~bootstrap/scss/card";
|
|
85
|
-
// // @import "~bootstrap/scss/accordion";
|
|
86
|
-
// @import "~bootstrap/scss/breadcrumb";
|
|
87
|
-
// @import "~bootstrap/scss/pagination";
|
|
88
|
-
// @import "~bootstrap/scss/badge";
|
|
89
|
-
// @import "~bootstrap/scss/alert";
|
|
90
|
-
// @import "~bootstrap/scss/progress";
|
|
91
|
-
// @import "~bootstrap/scss/list-group";
|
|
92
|
-
// @import "~bootstrap/scss/close";
|
|
93
|
-
// @import "~bootstrap/scss/toasts";
|
|
94
|
-
// @import "~bootstrap/scss/modal";
|
|
95
|
-
// @import "~bootstrap/scss/tooltip";
|
|
96
|
-
// @import "~bootstrap/scss/popover";
|
|
97
|
-
// @import "~bootstrap/scss/carousel";
|
|
98
|
-
// @import "bootstrap/scss/spinners";
|
|
99
|
-
// @import "~bootstrap/scss/offcanvas";
|
|
100
|
-
// @import "~bootstrap/scss/placeholders";
|
|
101
|
-
|
|
102
|
-
// Helpers
|
|
103
|
-
@import "bootstrap/scss/helpers";
|
|
104
|
-
|
|
105
|
-
// Utilities
|
|
106
|
-
@import "bootstrap/scss/utilities/api";
|
|
107
|
-
// scss-docs-end import-stack
|
|
10
|
+
@use '@angular/cdk/a11y-prebuilt';
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Injectable, inject, ElementRef, PLATFORM_ID, DestroyRef, afterNextRender, Directive, forwardRef, input, signal, computed, contentChildren, effect, Injector } from '@angular/core';
|
|
3
3
|
import { isPlatformServer } from '@angular/common';
|
|
4
|
-
import { firstEnabledIndex, lastEnabledIndex, nextEnabledIndex
|
|
4
|
+
import { firstEnabledIndex, lastEnabledIndex, nextEnabledIndex } from '@mintplayer/ui-core/roving';
|
|
5
5
|
import { ConfigurableFocusTrapFactory, InteractivityChecker, LiveAnnouncer } from '@angular/cdk/a11y';
|
|
6
|
+
import { dismissStack } from '@mintplayer/ui-core/overlay';
|
|
6
7
|
import { NgControl, Validators } from '@angular/forms';
|
|
7
8
|
|
|
8
9
|
/**
|
|
@@ -324,7 +325,7 @@ class BsRovingFocusDirective {
|
|
|
324
325
|
}
|
|
325
326
|
/**
|
|
326
327
|
* Index math delegates to the shared pure functions in
|
|
327
|
-
* @mintplayer/
|
|
328
|
+
* @mintplayer/ui-core/roving — this directive and the WC RovingFocus
|
|
328
329
|
* controller had independently identical copies that had ALREADY drifted
|
|
329
330
|
* (wrap-vs-clamp default). One implementation, two adapters. The directive
|
|
330
331
|
* keeps its own signals and discovery: those are Angular/light-DOM concerns
|
|
@@ -513,7 +514,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
513
514
|
* true. The top-most overlay consumes Escape; lower frames stay open.
|
|
514
515
|
*
|
|
515
516
|
* **This is now a facade, and that matters.** The state lives in
|
|
516
|
-
* `@mintplayer/
|
|
517
|
+
* `@mintplayer/ui-core/overlay`'s `dismissStack`, shared with
|
|
517
518
|
* `OverlayController`. It used to be a private array here, and the web
|
|
518
519
|
* components had their own — so an Angular overlay wrapping a web-component
|
|
519
520
|
* overlay (`bs-tree-select` inside `bs-modal`, the ordinary case) had one frame
|
|
@@ -561,22 +562,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
561
562
|
}] });
|
|
562
563
|
|
|
563
564
|
/**
|
|
564
|
-
*
|
|
565
|
-
*
|
|
566
|
-
*
|
|
567
|
-
*
|
|
568
|
-
* maps them to `aria-invalid`/`aria-required`/`aria-errormessage` +
|
|
569
|
-
* `aria-describedby` on its inner role-bearing input, which is the node screen
|
|
570
|
-
* readers actually read.
|
|
565
|
+
* Reads the host form control's validity: `invalid` (only once touched —
|
|
566
|
+
* Bootstrap's own convention, and untouched pristine forms must not scream),
|
|
567
|
+
* `required` (from the control's validators) and, when `[errorMessages]`
|
|
568
|
+
* supplies one, the message for the first active error.
|
|
571
569
|
*
|
|
572
|
-
*
|
|
573
|
-
*
|
|
574
|
-
* `
|
|
570
|
+
* A front that renders its own template injects this directive and reads the
|
|
571
|
+
* signals into its core's attribute bags, so `aria-invalid` /
|
|
572
|
+
* `aria-errormessage` / `aria-describedby` land on the role-bearing node it
|
|
573
|
+
* owns. A wrapper that still renders an `mp-*` element as its template root
|
|
574
|
+
* (#437, until that component converts) gets the same state mirrored as the
|
|
575
|
+
* WC's `invalid` / `required` / `error-text` attributes instead.
|
|
575
576
|
*
|
|
576
577
|
* NgControl is resolved lazily via the injector: injecting it in the
|
|
577
578
|
* constructor recurses (NgControl resolution needs the value accessor being
|
|
578
|
-
* constructed). ngDoCheck keeps the
|
|
579
|
-
* exactly the cadence Angular updates control state at (PRD 11a)
|
|
579
|
+
* constructed). ngDoCheck keeps the state live at every CD pass, which is
|
|
580
|
+
* exactly the cadence Angular updates control state at (PRD 11a); it runs
|
|
581
|
+
* before the host's own view is checked, so the signals are fresh for it.
|
|
580
582
|
*/
|
|
581
583
|
class BsControlValidityDirective {
|
|
582
584
|
constructor() {
|
|
@@ -586,33 +588,47 @@ class BsControlValidityDirective {
|
|
|
586
588
|
* Validation messages by `NgControl` error key, e.g.
|
|
587
589
|
* `{ required: 'Pick a fruit.', minlength: 'Too short.' }`.
|
|
588
590
|
*
|
|
589
|
-
* The message for the first active error
|
|
590
|
-
*
|
|
591
|
-
*
|
|
592
|
-
* the
|
|
591
|
+
* The message for the first active error becomes the control's error
|
|
592
|
+
* message node. A key with no message simply produces no message, so a
|
|
593
|
+
* consumer can spell out the errors worth announcing and leave the rest to
|
|
594
|
+
* the visible form summary.
|
|
593
595
|
*/
|
|
594
596
|
this.errorMessages = input(null, /* @ts-ignore */
|
|
595
597
|
...(ngDevMode ? [{ debugName: "errorMessages" }] : /* istanbul ignore next */ []));
|
|
598
|
+
this.invalidState = signal(false, /* @ts-ignore */
|
|
599
|
+
...(ngDevMode ? [{ debugName: "invalidState" }] : /* istanbul ignore next */ []));
|
|
600
|
+
this.requiredState = signal(false, /* @ts-ignore */
|
|
601
|
+
...(ngDevMode ? [{ debugName: "requiredState" }] : /* istanbul ignore next */ []));
|
|
602
|
+
this.errorTextState = signal(null, /* @ts-ignore */
|
|
603
|
+
...(ngDevMode ? [{ debugName: "errorTextState" }] : /* istanbul ignore next */ []));
|
|
604
|
+
/** The control is invalid AND touched. */
|
|
605
|
+
this.invalid = this.invalidState.asReadonly();
|
|
606
|
+
this.required = this.requiredState.asReadonly();
|
|
607
|
+
/** Tied to `invalid`: `aria-errormessage` is only defined while the control is `aria-invalid`. */
|
|
608
|
+
this.errorText = this.errorTextState.asReadonly();
|
|
596
609
|
}
|
|
597
610
|
ngDoCheck() {
|
|
598
611
|
if (this.ngControl === undefined) {
|
|
599
612
|
this.ngControl = this.injector.get(NgControl, null);
|
|
600
613
|
}
|
|
601
614
|
const control = this.ngControl;
|
|
602
|
-
|
|
603
|
-
if (!control || !target)
|
|
615
|
+
if (!control)
|
|
604
616
|
return;
|
|
605
617
|
const invalid = !!control.invalid && !!control.touched;
|
|
606
|
-
this.mirror(target, 'invalid', invalid ? '' : null);
|
|
607
618
|
// requiredTrue is the checkbox-shaped required; hasValidator compares by
|
|
608
619
|
// reference, so both spellings must be probed.
|
|
609
620
|
const required = (control.control?.hasValidator(Validators.required) ?? false) ||
|
|
610
621
|
(control.control?.hasValidator(Validators.requiredTrue) ?? false);
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
622
|
+
const errorText = invalid ? this.activeMessage(control) : null;
|
|
623
|
+
this.invalidState.set(invalid);
|
|
624
|
+
this.requiredState.set(required);
|
|
625
|
+
this.errorTextState.set(errorText);
|
|
626
|
+
const target = this.host.nativeElement.firstElementChild;
|
|
627
|
+
if (target?.localName.includes('-')) {
|
|
628
|
+
this.mirror(target, 'invalid', invalid ? '' : null);
|
|
629
|
+
this.mirror(target, 'required', required ? '' : null);
|
|
630
|
+
this.mirror(target, 'error-text', errorText);
|
|
631
|
+
}
|
|
616
632
|
}
|
|
617
633
|
/**
|
|
618
634
|
* The message for the first of the control's active errors that has one.
|
|
@@ -630,8 +646,7 @@ class BsControlValidityDirective {
|
|
|
630
646
|
/**
|
|
631
647
|
* Writes only on a real change. `ngDoCheck` runs on every CD pass, and an
|
|
632
648
|
* unconditional `setAttribute` fires the WC's `attributeChangedCallback` even
|
|
633
|
-
* when the value is identical — which
|
|
634
|
-
* attributes have to be live to be correct.
|
|
649
|
+
* when the value is identical — which schedules a Lit render.
|
|
635
650
|
*/
|
|
636
651
|
mirror(target, name, value) {
|
|
637
652
|
if (value === null) {
|
|
@@ -652,9 +667,26 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
652
667
|
}]
|
|
653
668
|
}], propDecorators: { errorMessages: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorMessages", required: false }] }] } });
|
|
654
669
|
|
|
670
|
+
/**
|
|
671
|
+
* Collects a front's host attributes that belong on its role-bearing inner
|
|
672
|
+
* node: `aria-*` are copied (harmless on a roleless host), `id` and `tabindex`
|
|
673
|
+
* are moved, so the id is not duplicated and the host is not a second tab stop.
|
|
674
|
+
*
|
|
675
|
+
* Call it in the constructor: host attributes are present by then on both the
|
|
676
|
+
* server and the client, so the SSR output already carries them where AT reads
|
|
677
|
+
* them, and hydration sees identical DOM.
|
|
678
|
+
*/
|
|
679
|
+
function takeHostAria(host) {
|
|
680
|
+
const bag = Object.fromEntries(Array.from(host.attributes)
|
|
681
|
+
.filter(({ name }) => name.startsWith('aria-') || name === 'id' || name === 'tabindex')
|
|
682
|
+
.map(({ name, value }) => [name, value]));
|
|
683
|
+
['id', 'tabindex'].filter((name) => name in bag).map((name) => host.removeAttribute(name));
|
|
684
|
+
return bag;
|
|
685
|
+
}
|
|
686
|
+
|
|
655
687
|
/**
|
|
656
688
|
* Generated bundle index. Do not edit.
|
|
657
689
|
*/
|
|
658
690
|
|
|
659
|
-
export { BsControlValidityDirective, BsForwardAriaDirective, BsIdService, BsLiveAnnouncerService, BsOverlayFocusDirective, BsOverlayStackService, BsRovingFocusDirective, BsRovingFocusItemDirective };
|
|
691
|
+
export { BsControlValidityDirective, BsForwardAriaDirective, BsIdService, BsLiveAnnouncerService, BsOverlayFocusDirective, BsOverlayStackService, BsRovingFocusDirective, BsRovingFocusItemDirective, takeHostAria };
|
|
660
692
|
//# sourceMappingURL=mintplayer-ng-bootstrap-a11y.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-a11y.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/a11y/src/service/id.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/forward-aria/forward-aria.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/roving-focus/roving-focus-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/roving-focus/roving-focus.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/overlay-focus/overlay-focus.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/live-announcer/live-announcer.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/overlay-stack/overlay-stack.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/control-validity/control-validity.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/mintplayer-ng-bootstrap-a11y.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n/**\n * App-wide unique ID generator for ARIA wiring (`aria-controls`,\n * `aria-labelledby`, `aria-activedescendant`, etc.).\n *\n * Why a service instead of `crypto.randomUUID()` or per-component counters:\n * IDs need to stay short and human-readable in DevTools, and per-component\n * counters collide when the same component is instantiated more than once on\n * a page (two `bs-dropdown`s would each assign `bs-dropdown-1`). The shared\n * counter guarantees uniqueness across the whole app without UUID noise.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsIdService {\n private counter = 0;\n\n /** Returns `${prefix}-N` where N monotonically increases for the lifetime of the app. */\n next(prefix: string): string {\n return `${prefix}-${++this.counter}`;\n }\n}\n","import {\n afterNextRender,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n OnInit,\n PLATFORM_ID,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n/**\n * Makes a nested-host wrapper **transparent to ARIA**: a consumer's `aria-*`,\n * `role`, `id` and `tabindex` written on the `bs-*` element reach the `mp-*`\n * custom element inside it.\n *\n * Apply to the wrapper's inner custom element, which is its template root:\n *\n * ```html\n * <mp-checkbox #checkbox bsForwardAria (change)=\"onChange($event)\">\n * ```\n *\n * **The problem it solves.** Every `bs-*` wrapper renders the real control as a\n * *child*, so a consumer's `aria-label` lands on an element with no role, where\n * ARIA prohibits naming — nothing reaches the control and it stays nameless.\n * `tabindex` is worse than useless: it makes the wrapper focusable, putting a\n * dead tab stop in front of the real control. This replaces three ad-hoc idioms\n * that had grown up around the problem (`bs-checkbox`/`bs-radio`'s\n * `MutationObserver`, `bs-carousel`/`bs-navbar`'s bespoke `[ariaLabel]` input,\n * `bs-select`'s `Renderer2` call) with one directive, so the next wrapper does\n * not invent a fourth.\n *\n * **Copy versus move, and why they differ.** `aria-*` attributes are *copied* and\n * kept live — they carry state (`aria-expanded`, `aria-invalid`) that must be\n * correct at every moment, and duplicating them on an unexposed host is harmless.\n * `role`, `id` and `tabindex` are **moved**, because leaving them would be\n * actively wrong: two elements with one `id` is invalid and breaks every IDREF\n * pointing at it, and a duplicated `tabindex` is the dead-tab-stop defect itself.\n * The host then takes `role=\"presentation\"` so it contributes no extra generic\n * node of its own.\n *\n * **Known limit, stated because it is a real gap and not a rounding error.**\n * Adding any of the three moved attributes later *is* tracked — an addition is an\n * observable mutation. **Removing one after it has been moved is not**, because\n * the attribute is no longer on the host for its removal to be observed. In\n * practice `role`/`id`/`tabindex` are structural and set once, while the\n * attributes that genuinely change at runtime are `aria-*`, which are copied and\n * fully live. If a component ever needs a removable forwarded `tabindex`, give it\n * an explicit input rather than widening this directive.\n */\n@Directive({\n selector: '[bsForwardAria]',\n})\nexport class BsForwardAriaDirective implements OnInit {\n private readonly target = inject(ElementRef).nativeElement as HTMLElement;\n /**\n * The wrapper host. `skipSelf` walks from this element's node injector to its\n * parent's, which for a component's template root is the component host — no\n * DOM walking and no assumption about nesting depth.\n */\n private readonly host = inject(ElementRef, { skipSelf: true }).nativeElement as HTMLElement;\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n\n /** Moved rather than copied — see the class comment. */\n private static readonly MOVED = ['role', 'id', 'tabindex'] as const;\n\n /**\n * The role this directive writes on the host itself, which must therefore never\n * be treated as a *consumer's* role and moved inward.\n *\n * Checked by **value** rather than tracked in an instance flag, and that\n * distinction is the whole fix for an SSR defect: the server pass runs this\n * directive and serialises `role=\"presentation\"` into the HTML, so the client\n * gets a **fresh instance** whose flag is `false` staring at a host that already\n * carries the marker. It moved the marker onto the custom element — making the\n * real component presentational and discarding the name just forwarded to it.\n * A flag cannot survive rehydration; a value check needs nothing to survive.\n *\n * Only `presentation` is claimed, not `none`. They are synonyms to ARIA, but a\n * consumer writing `role=\"none\"` is making a deliberate statement about the\n * *inner* element and it is still forwarded; `presentation` on a wrapper asks for\n * exactly what this directive already does, so there is nothing to forward.\n */\n private static readonly HOST_ROLE = 'presentation';\n\n constructor() {\n // Attribute *bindings* from the consumer's template are written during the\n // consumer's change detection, which is not guaranteed to have run by\n // ngOnInit. A second pass after render catches those. Both passes are\n // idempotent, so running both costs nothing.\n afterNextRender(() => {\n this.forward();\n this.observe();\n });\n }\n\n /**\n * Runs on the server too, unlike the `MutationObserver`. That matters: the\n * no-JS and SSR tiers are part of this library's contract, and an\n * accessible name that only appears after hydration is absent exactly when a\n * screen reader first reads the page.\n */\n ngOnInit(): void {\n this.forward();\n }\n\n private forward(): void {\n for (const { name, value } of Array.from(this.host.attributes)) {\n if (name.startsWith('aria-')) {\n this.target.setAttribute(name, value);\n }\n }\n\n for (const name of BsForwardAriaDirective.MOVED) {\n const value = this.host.getAttribute(name);\n if (value === null) continue;\n // Our own marker, whether this instance wrote it or a server pass did.\n if (name === 'role' && value === BsForwardAriaDirective.HOST_ROLE) continue;\n this.target.setAttribute(name, value);\n this.host.removeAttribute(name);\n }\n\n // Only after any consumer role has been moved off it, so this never wins\n // over what the consumer asked for. Idempotent: a second pass — including the\n // first client pass after SSR — finds the marker already present.\n if (!this.host.hasAttribute('role')) {\n this.host.setAttribute('role', BsForwardAriaDirective.HOST_ROLE);\n }\n }\n\n private observe(): void {\n if (isPlatformServer(this.platformId)) return;\n\n const observer = new MutationObserver(() => this.forward());\n observer.observe(this.host, { attributes: true });\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n}\n","import { afterNextRender, computed, Directive, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { BsIdService } from '../service/id.service';\nimport { BsRovingFocusDirective } from './roving-focus.directive';\n\n/**\n * One marker per focusable child of a `bsRovingFocus` container.\n *\n * - Sets the host `tabindex` (0 if active, -1 otherwise).\n * - Toggles the `.bs-rovingfocus-active` class so SCSS can paint a highlight\n * on the active item.\n * - Auto-generates an `id` if the host doesn't already have one, so other\n * ARIA references always have a stable target. Honours an\n * externally-supplied id when present.\n *\n * Consumers normally don't interact with this directive directly — they\n * just stamp it on each list/menu/option element inside `bsRovingFocus`.\n */\n@Directive({\n selector: '[bsRovingFocusItem]',\n exportAs: 'bsRovingFocusItem',\n host: {\n '[attr.tabindex]': 'tabindex()',\n '[class.bs-rovingfocus-active]': 'isActive()',\n '(focus)': 'onFocus()',\n },\n})\nexport class BsRovingFocusItemDirective {\n private parent = inject(forwardRef(() => BsRovingFocusDirective));\n elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n\n readonly disabled = input(false);\n\n /**\n * The host element's id. Honoured if set externally (e.g. by a sibling\n * component's [attr.id] host binding); otherwise generated in afterNextRender\n * so an ARIA reference to the item has a stable target.\n *\n * Backed by a signal so a consumer computed that reads it re-runs when the id\n * is resolved post-mount. A plain `nativeElement.id` getter would be silently\n * cached during the first computation and never re-read.\n */\n private readonly _itemId = signal<string>('');\n get itemId(): string {\n return this._itemId();\n }\n\n readonly index = computed(() => this.parent.items().indexOf(this));\n readonly isActive = computed(() => this.index() === this.parent.activeIndex());\n\n readonly tabindex = computed(() => (this.isActive() ? 0 : -1));\n\n constructor() {\n // After the first render, all sibling host bindings on this element have applied.\n // If no other directive (e.g. BsDropdownItemComponent) supplied an id, generate one.\n // Then publish the resolved id to the signal so reactive consumers see it.\n afterNextRender(() => {\n if (!this.elementRef.nativeElement.id) {\n this.elementRef.nativeElement.id = this.ids.next('bs-rovingitem');\n }\n this._itemId.set(this.elementRef.nativeElement.id);\n });\n }\n\n onFocus(): void {\n this.parent.setActiveItem(this);\n }\n}\n","import { computed, contentChildren, Directive, ElementRef, inject, input, signal } from '@angular/core';\nimport { firstEnabledIndex, lastEnabledIndex, nextEnabledIndex } from '@mintplayer/web-components/a11y';\nimport { BsRovingFocusItemDirective } from './roving-focus-item.directive';\n\nexport type BsRovingFocusOrientation = 'vertical' | 'horizontal' | 'both';\n\n/**\n * APG roving-tabindex container.\n *\n * Place on a list/menu/tablist; mark each focusable child with\n * `bsRovingFocusItem`. Arrow keys, Home, and End move the active item; the\n * directive auto-handles disabled items, wrap-around, and orientation. Only\n * the active item has `tabindex=\"0\"`; real DOM focus moves.\n *\n * The former `activedescendant` mode (focus parked on a combobox input) was\n * removed with the typeahead's move to its headless core (#436 D10): the\n * typeahead core owns that keyboard model, and nothing else used the mode.\n *\n * Consumers that need to react to the active item externally read\n * `activeIndex()` (signal).\n */\n@Directive({\n selector: '[bsRovingFocus]',\n exportAs: 'bsRovingFocus',\n host: {\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class BsRovingFocusDirective {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<BsRovingFocusOrientation>('vertical');\n readonly wrap = input(true);\n\n readonly items = contentChildren(BsRovingFocusItemDirective);\n readonly activeIndex = signal(0);\n\n focusFirst(): void {\n this.moveTo(this.firstEnabledIndex());\n }\n\n focusLast(): void {\n this.moveTo(this.lastEnabledIndex());\n }\n\n next(): void {\n this.step(+1);\n }\n\n prev(): void {\n this.step(-1);\n }\n\n setActiveItem(item: BsRovingFocusItemDirective): void {\n const idx = this.items().indexOf(item);\n if (idx < 0) return;\n if (item.disabled()) return;\n this.activeIndex.set(idx);\n }\n\n onKeydown(event: KeyboardEvent): void {\n // Don't intercept browser/OS chords (Alt+Arrow=back, Ctrl+Home=top of doc, Cmd+Arrow=word jump on macOS).\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const orient = this.orientation();\n let consumed = true;\n switch (event.key) {\n case 'ArrowDown':\n if (orient === 'horizontal') { consumed = false; break; }\n this.next();\n break;\n case 'ArrowUp':\n if (orient === 'horizontal') { consumed = false; break; }\n this.prev();\n break;\n case 'ArrowRight':\n if (orient === 'vertical') { consumed = false; break; }\n this.next();\n break;\n case 'ArrowLeft':\n if (orient === 'vertical') { consumed = false; break; }\n this.prev();\n break;\n case 'Home':\n this.focusFirst();\n break;\n case 'End':\n this.focusLast();\n break;\n default:\n consumed = false;\n }\n if (consumed) event.preventDefault();\n }\n\n /**\n * Index math delegates to the shared pure functions in\n * @mintplayer/web-components/a11y — this directive and the WC RovingFocus\n * controller had independently identical copies that had ALREADY drifted\n * (wrap-vs-clamp default). One implementation, two adapters. The directive\n * keeps its own signals and discovery: those are Angular/light-DOM concerns\n * the WC controller rightly lacks.\n *\n * Public so consumers can detect edges without re-implementing the\n * disabled-aware scan.\n */\n firstEnabledIndex(): number {\n const items = this.items();\n return firstEnabledIndex(items.length, (i) => items[i].disabled());\n }\n\n lastEnabledIndex(): number {\n const items = this.items();\n return lastEnabledIndex(items.length, (i) => items[i].disabled());\n }\n\n private step(delta: 1 | -1): void {\n const items = this.items();\n const next = nextEnabledIndex(\n items.length,\n this.activeIndex(),\n delta,\n this.wrap(),\n (i) => items[i].disabled(),\n );\n if (next >= 0) this.moveTo(next);\n }\n\n private moveTo(index: number): void {\n if (index < 0) return;\n this.activeIndex.set(index);\n if (this.elementRef.nativeElement.contains(document.activeElement)) {\n this.items()[index]?.elementRef.nativeElement.focus();\n }\n }\n}\n","import { ConfigurableFocusTrap, ConfigurableFocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';\nimport { DestroyRef, Directive, effect, ElementRef, inject, input } from '@angular/core';\n\nexport type BsOverlayInitialFocus = HTMLElement | 'first' | 'self' | 'none';\n\n/**\n * Activates a CDK focus trap on the host element while `bsOverlayFocus` is true,\n * captures the trigger before activation, and returns focus to it on deactivation.\n *\n * Initial focus inside the trap defaults to the first tabbable descendant; pass\n * an explicit HTMLElement, 'self' (focus the host), or 'none' to opt out.\n *\n * Background `inert` / `aria-hidden` is intentionally not handled here — it is\n * the consuming component's job (a modal hides app-root, a popover does not).\n */\n@Directive({\n selector: '[bsOverlayFocus]',\n exportAs: 'bsOverlayFocus',\n})\nexport class BsOverlayFocusDirective {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private trapFactory = inject(ConfigurableFocusTrapFactory);\n private interactivityChecker = inject(InteractivityChecker);\n private destroyRef = inject(DestroyRef);\n\n readonly active = input(true, { alias: 'bsOverlayFocus' });\n readonly initialFocus = input<BsOverlayInitialFocus>('first');\n readonly returnFocus = input(true);\n\n private trap: ConfigurableFocusTrap | null = null;\n private restoreTo: HTMLElement | null = null;\n\n constructor() {\n effect(() => {\n if (this.active()) this.engage();\n else this.disengage();\n });\n\n this.destroyRef.onDestroy(() => this.disengage());\n }\n\n private engage(): void {\n if (this.trap) return;\n\n this.restoreTo = (typeof document !== 'undefined' && document.activeElement instanceof HTMLElement)\n ? document.activeElement\n : null;\n\n this.trap = this.trapFactory.create(this.elementRef.nativeElement);\n\n const target = this.initialFocus();\n if (target instanceof HTMLElement) {\n target.focus({ preventScroll: true });\n } else if (target === 'self') {\n this.elementRef.nativeElement.focus({ preventScroll: true });\n } else if (target === 'first') {\n this.focusFirstTabbable();\n }\n // 'none' — caller manages focus\n }\n\n private focusFirstTabbable(): void {\n // Walk the host's subtree and let CDK decide what's focusable — handles\n // disabled fieldsets, inert ancestors, and the long tail of edge cases\n // the inline selector would have to re-implement.\n //\n // `isFocusable({ ignoreVisibility: true })` because jsdom doesn't lay\n // elements out, so CDK's default visibility check (`getClientRects()`)\n // would reject everything in tests; in real browsers visible elements\n // pass either way. Tabindex < 0 is filtered manually so the host (which\n // we set `tabindex=\"-1\"` on for the focus trap) doesn't get selected.\n const root = this.elementRef.nativeElement;\n const walker = (root.ownerDocument ?? document).createTreeWalker(root, NodeFilter.SHOW_ELEMENT);\n let node: Node | null = walker.currentNode;\n while (node) {\n if (\n node instanceof HTMLElement\n && node.tabIndex >= 0\n // `:disabled` catches both own `disabled` and the inherited form of\n // it from an ancestor `<fieldset disabled>` — CDK's isFocusable only\n // looks at own attributes.\n && !node.matches(':disabled')\n && this.interactivityChecker.isFocusable(node, { ignoreVisibility: true })\n ) {\n node.focus({ preventScroll: true });\n return;\n }\n node = walker.nextNode();\n }\n }\n\n private disengage(): void {\n if (!this.trap) return;\n\n this.trap.destroy();\n this.trap = null;\n\n if (this.returnFocus() && this.restoreTo && typeof document !== 'undefined' && document.contains(this.restoreTo)) {\n // preventScroll so closing an overlay never yanks the page back to the\n // trigger's position — the user's scroll position is their choice.\n this.restoreTo.focus({ preventScroll: true });\n }\n this.restoreTo = null;\n }\n}\n","import { LiveAnnouncer, AriaLivePoliteness } from '@angular/cdk/a11y';\nimport { inject, Injectable } from '@angular/core';\n\n/**\n * Thin wrapper over CDK's LiveAnnouncer that dedupes consecutive identical\n * messages — typeahead-style \"5 results\" announcements often re-fire with the\n * same content and screen readers re-read them, which is noise.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsLiveAnnouncerService {\n private cdk = inject(LiveAnnouncer);\n private last: { message: string; politeness: AriaLivePoliteness } | null = null;\n\n announce(message: string, politeness: AriaLivePoliteness = 'polite', durationMs?: number): Promise<void> {\n if (this.last && this.last.message === message && this.last.politeness === politeness) {\n return Promise.resolve();\n }\n this.last = { message, politeness };\n return this.cdk.announce(message, politeness, durationMs);\n }\n\n clear(): void {\n this.last = null;\n this.cdk.clear();\n }\n}\n","import { Injectable } from '@angular/core';\nimport { dismissStack } from '@mintplayer/web-components/a11y';\n\n/**\n * Angular facade over the document's single dismiss stack, so each overlay can\n * decide whether its global Escape listener should fire.\n *\n * The problem: popover, tooltip, dropdown-menu, priority-nav, and modal each\n * bind a `(document:keydown.escape)` (or equivalent host listener) that closes\n * the overlay unconditionally. With nesting (popover-under-modal,\n * tooltip-under-popover), a single Escape closes both because both handlers\n * fire on the same event.\n *\n * The fix: every overlay calls `push()` when it opens and `release(token)`\n * when it closes; its Escape handler runs only when `isTop(token)` returns\n * true. The top-most overlay consumes Escape; lower frames stay open.\n *\n * **This is now a facade, and that matters.** The state lives in\n * `@mintplayer/web-components/a11y`'s `dismissStack`, shared with\n * `OverlayController`. It used to be a private array here, and the web\n * components had their own — so an Angular overlay wrapping a web-component\n * overlay (`bs-tree-select` inside `bs-modal`, the ordinary case) had one frame\n * on each stack, both believed they were top-most, and one Escape closed both.\n * Angular keeps the DI ergonomics; there is exactly one array.\n *\n * Identity is a per-call `symbol` token rather than a string, so two opens of\n * the same directive don't collide and a stale token can't accidentally match\n * a future frame.\n *\n * **What this does NOT promise:**\n * - **Visual z-order.** The stack tracks logical open-order (the sequence of\n * `push()` calls). A consumer that manually reorders overlays in the DOM\n * could see Escape close a logically-deeper overlay. We don't support that.\n * - **Coordination with non-overlay listeners.** A consumer's own\n * `keydown.escape` listener that doesn't ask the stack will still fire.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsOverlayStackService {\n /** Allocate a new frame on top of the stack and return its token. */\n push(): symbol {\n return dismissStack.push('bs-overlay-frame');\n }\n\n /**\n * Remove `token` from the stack. Releasing a non-top token is allowed —\n * it's how an inner overlay closes itself programmatically without an\n * Escape press (e.g. a popover closed by clicking its trigger again).\n */\n release(token: symbol): void {\n dismissStack.release(token);\n }\n\n /** True if `token` is the top of the stack. */\n isTop(token: symbol): boolean {\n return dismissStack.isTop(token);\n }\n\n /** Token at the top of the stack, or null if empty. */\n peek(): symbol | null {\n return dismissStack.peek();\n }\n}\n","import { Directive, DoCheck, ElementRef, Injector, inject, input } from '@angular/core';\nimport { NgControl, Validators } from '@angular/forms';\n\n/**\n * Mirrors the host form control's validity onto the wrapped web component:\n * `invalid` (only once touched — Bootstrap's own convention, and untouched\n * pristine forms must not scream), `required` (from the control's\n * validators) and, when `[errorMessages]` supplies one, `error-text`. The WC\n * maps them to `aria-invalid`/`aria-required`/`aria-errormessage` +\n * `aria-describedby` on its inner role-bearing input, which is the node screen\n * readers actually read.\n *\n * The attribute lands on the wrapper's first element child — every nested\n * host wrapper renders its `mp-*` element as the template root — NOT on the\n * `bs-*` host, which has no role for AT to read it from.\n *\n * NgControl is resolved lazily via the injector: injecting it in the\n * constructor recurses (NgControl resolution needs the value accessor being\n * constructed). ngDoCheck keeps the mirror live at every CD pass, which is\n * exactly the cadence Angular updates control state at (PRD 11a).\n */\n@Directive({\n selector: '[bsControlValidity]',\n})\nexport class BsControlValidityDirective implements DoCheck {\n private readonly injector = inject(Injector);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n /** undefined = not resolved yet; null = no form control on this host. */\n private ngControl: NgControl | null | undefined;\n\n /**\n * Validation messages by `NgControl` error key, e.g.\n * `{ required: 'Pick a fruit.', minlength: 'Too short.' }`.\n *\n * The message for the first active error is written to the WC's `error-text`,\n * which renders it inside the shadow root and points the real control at it.\n * A key with no message simply produces no message, so a consumer can spell out\n * the errors worth announcing and leave the rest to the visible form summary.\n */\n readonly errorMessages = input<Record<string, string> | null>(null);\n\n ngDoCheck(): void {\n if (this.ngControl === undefined) {\n this.ngControl = this.injector.get(NgControl, null);\n }\n const control = this.ngControl;\n const target = this.host.nativeElement.firstElementChild;\n if (!control || !target) return;\n\n const invalid = !!control.invalid && !!control.touched;\n this.mirror(target, 'invalid', invalid ? '' : null);\n\n // requiredTrue is the checkbox-shaped required; hasValidator compares by\n // reference, so both spellings must be probed.\n const required =\n (control.control?.hasValidator(Validators.required) ?? false) ||\n (control.control?.hasValidator(Validators.requiredTrue) ?? false);\n this.mirror(target, 'required', required ? '' : null);\n\n // Tied to the same predicate as `invalid`, not just to `control.invalid`:\n // `aria-errormessage` is only defined while the control is `aria-invalid`, so\n // a message on an untouched control would be a reference to nothing.\n this.mirror(target, 'error-text', invalid ? this.activeMessage(control) : null);\n }\n\n /**\n * The message for the first of the control's active errors that has one.\n * Validators report in the order they were composed, so a required-then-pattern\n * field announces \"required\" until it has a value — the order the user meets\n * them in.\n */\n private activeMessage(control: NgControl): string | null {\n const messages = this.errorMessages();\n if (!messages) return null;\n const key = Object.keys(control.errors ?? {}).find((error) => error in messages);\n return key ? messages[key] : null;\n }\n\n /**\n * Writes only on a real change. `ngDoCheck` runs on every CD pass, and an\n * unconditional `setAttribute` fires the WC's `attributeChangedCallback` even\n * when the value is identical — which now schedules a Lit render, because these\n * attributes have to be live to be correct.\n */\n private mirror(target: Element, name: string, value: string | null): void {\n if (value === null) {\n if (target.hasAttribute(name)) target.removeAttribute(name);\n } else if (target.getAttribute(name) !== value) {\n target.setA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,CAAC,CAAC,IAAI,CAAC,CAAC,KAAK,KAAK,KAAK,IAAI,QAAQ,CAAC;AAChF,QAAA,OAAO,GAAG,GAAG,QAAQ,CAAC,GAAG,CAAC,GAAG,IAAI;IACnC;AAEA;;;;;AAKG;AACK,IAAA,MAAM,CAAC,MAAe,EAAE,IAAY,EAAE,KAAoB,EAAA;AAChE,QAAA,IAAI,KAAK,KAAK,IAAI,EAAE;AAClB,YAAA,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC;AAAE,gBAAA,MAAM,CAAC,eAAe,CAAC,IAAI,CAAC;QAC7D;aAAO,IAAI,MAAM,CAAC,YAAY,CAAC,IAAI,CAAC,KAAK,KAAK,EAAE;AAC9C,YAAA,MAAM,CAAC,YAAY,CAAC,IAAI,EAAE,KAAK,CAAC;QAClC;IACF;8GAlEW,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,aAAA,EAAA,EAAA,iBAAA,EAAA,eAAA,EAAA,UAAA,EAAA,eAAA,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;;;ACvBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-a11y.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/a11y/src/service/id.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/forward-aria/forward-aria.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/roving-focus/roving-focus-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/roving-focus/roving-focus.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/overlay-focus/overlay-focus.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/live-announcer/live-announcer.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/overlay-stack/overlay-stack.service.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/control-validity/control-validity.directive.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/src/host-aria/take-host-aria.ts","../../../../libs/mintplayer-ng-bootstrap/a11y/mintplayer-ng-bootstrap-a11y.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n/**\n * App-wide unique ID generator for ARIA wiring (`aria-controls`,\n * `aria-labelledby`, `aria-activedescendant`, etc.).\n *\n * Why a service instead of `crypto.randomUUID()` or per-component counters:\n * IDs need to stay short and human-readable in DevTools, and per-component\n * counters collide when the same component is instantiated more than once on\n * a page (two `bs-dropdown`s would each assign `bs-dropdown-1`). The shared\n * counter guarantees uniqueness across the whole app without UUID noise.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsIdService {\n private counter = 0;\n\n /** Returns `${prefix}-N` where N monotonically increases for the lifetime of the app. */\n next(prefix: string): string {\n return `${prefix}-${++this.counter}`;\n }\n}\n","import {\n afterNextRender,\n DestroyRef,\n Directive,\n ElementRef,\n inject,\n OnInit,\n PLATFORM_ID,\n} from '@angular/core';\nimport { isPlatformServer } from '@angular/common';\n\n/**\n * Makes a nested-host wrapper **transparent to ARIA**: a consumer's `aria-*`,\n * `role`, `id` and `tabindex` written on the `bs-*` element reach the `mp-*`\n * custom element inside it.\n *\n * Apply to the wrapper's inner custom element, which is its template root:\n *\n * ```html\n * <mp-checkbox #checkbox bsForwardAria (change)=\"onChange($event)\">\n * ```\n *\n * **The problem it solves.** Every `bs-*` wrapper renders the real control as a\n * *child*, so a consumer's `aria-label` lands on an element with no role, where\n * ARIA prohibits naming — nothing reaches the control and it stays nameless.\n * `tabindex` is worse than useless: it makes the wrapper focusable, putting a\n * dead tab stop in front of the real control. This replaces three ad-hoc idioms\n * that had grown up around the problem (`bs-checkbox`/`bs-radio`'s\n * `MutationObserver`, `bs-carousel`/`bs-navbar`'s bespoke `[ariaLabel]` input,\n * `bs-select`'s `Renderer2` call) with one directive, so the next wrapper does\n * not invent a fourth.\n *\n * **Copy versus move, and why they differ.** `aria-*` attributes are *copied* and\n * kept live — they carry state (`aria-expanded`, `aria-invalid`) that must be\n * correct at every moment, and duplicating them on an unexposed host is harmless.\n * `role`, `id` and `tabindex` are **moved**, because leaving them would be\n * actively wrong: two elements with one `id` is invalid and breaks every IDREF\n * pointing at it, and a duplicated `tabindex` is the dead-tab-stop defect itself.\n * The host then takes `role=\"presentation\"` so it contributes no extra generic\n * node of its own.\n *\n * **Known limit, stated because it is a real gap and not a rounding error.**\n * Adding any of the three moved attributes later *is* tracked — an addition is an\n * observable mutation. **Removing one after it has been moved is not**, because\n * the attribute is no longer on the host for its removal to be observed. In\n * practice `role`/`id`/`tabindex` are structural and set once, while the\n * attributes that genuinely change at runtime are `aria-*`, which are copied and\n * fully live. If a component ever needs a removable forwarded `tabindex`, give it\n * an explicit input rather than widening this directive.\n */\n@Directive({\n selector: '[bsForwardAria]',\n})\nexport class BsForwardAriaDirective implements OnInit {\n private readonly target = inject(ElementRef).nativeElement as HTMLElement;\n /**\n * The wrapper host. `skipSelf` walks from this element's node injector to its\n * parent's, which for a component's template root is the component host — no\n * DOM walking and no assumption about nesting depth.\n */\n private readonly host = inject(ElementRef, { skipSelf: true }).nativeElement as HTMLElement;\n private readonly platformId = inject(PLATFORM_ID);\n private readonly destroyRef = inject(DestroyRef);\n\n /** Moved rather than copied — see the class comment. */\n private static readonly MOVED = ['role', 'id', 'tabindex'] as const;\n\n /**\n * The role this directive writes on the host itself, which must therefore never\n * be treated as a *consumer's* role and moved inward.\n *\n * Checked by **value** rather than tracked in an instance flag, and that\n * distinction is the whole fix for an SSR defect: the server pass runs this\n * directive and serialises `role=\"presentation\"` into the HTML, so the client\n * gets a **fresh instance** whose flag is `false` staring at a host that already\n * carries the marker. It moved the marker onto the custom element — making the\n * real component presentational and discarding the name just forwarded to it.\n * A flag cannot survive rehydration; a value check needs nothing to survive.\n *\n * Only `presentation` is claimed, not `none`. They are synonyms to ARIA, but a\n * consumer writing `role=\"none\"` is making a deliberate statement about the\n * *inner* element and it is still forwarded; `presentation` on a wrapper asks for\n * exactly what this directive already does, so there is nothing to forward.\n */\n private static readonly HOST_ROLE = 'presentation';\n\n constructor() {\n // Attribute *bindings* from the consumer's template are written during the\n // consumer's change detection, which is not guaranteed to have run by\n // ngOnInit. A second pass after render catches those. Both passes are\n // idempotent, so running both costs nothing.\n afterNextRender(() => {\n this.forward();\n this.observe();\n });\n }\n\n /**\n * Runs on the server too, unlike the `MutationObserver`. That matters: the\n * no-JS and SSR tiers are part of this library's contract, and an\n * accessible name that only appears after hydration is absent exactly when a\n * screen reader first reads the page.\n */\n ngOnInit(): void {\n this.forward();\n }\n\n private forward(): void {\n for (const { name, value } of Array.from(this.host.attributes)) {\n if (name.startsWith('aria-')) {\n this.target.setAttribute(name, value);\n }\n }\n\n for (const name of BsForwardAriaDirective.MOVED) {\n const value = this.host.getAttribute(name);\n if (value === null) continue;\n // Our own marker, whether this instance wrote it or a server pass did.\n if (name === 'role' && value === BsForwardAriaDirective.HOST_ROLE) continue;\n this.target.setAttribute(name, value);\n this.host.removeAttribute(name);\n }\n\n // Only after any consumer role has been moved off it, so this never wins\n // over what the consumer asked for. Idempotent: a second pass — including the\n // first client pass after SSR — finds the marker already present.\n if (!this.host.hasAttribute('role')) {\n this.host.setAttribute('role', BsForwardAriaDirective.HOST_ROLE);\n }\n }\n\n private observe(): void {\n if (isPlatformServer(this.platformId)) return;\n\n const observer = new MutationObserver(() => this.forward());\n observer.observe(this.host, { attributes: true });\n this.destroyRef.onDestroy(() => observer.disconnect());\n }\n}\n","import { afterNextRender, computed, Directive, ElementRef, forwardRef, inject, input, signal } from '@angular/core';\nimport { BsIdService } from '../service/id.service';\nimport { BsRovingFocusDirective } from './roving-focus.directive';\n\n/**\n * One marker per focusable child of a `bsRovingFocus` container.\n *\n * - Sets the host `tabindex` (0 if active, -1 otherwise).\n * - Toggles the `.bs-rovingfocus-active` class so SCSS can paint a highlight\n * on the active item.\n * - Auto-generates an `id` if the host doesn't already have one, so other\n * ARIA references always have a stable target. Honours an\n * externally-supplied id when present.\n *\n * Consumers normally don't interact with this directive directly — they\n * just stamp it on each list/menu/option element inside `bsRovingFocus`.\n */\n@Directive({\n selector: '[bsRovingFocusItem]',\n exportAs: 'bsRovingFocusItem',\n host: {\n '[attr.tabindex]': 'tabindex()',\n '[class.bs-rovingfocus-active]': 'isActive()',\n '(focus)': 'onFocus()',\n },\n})\nexport class BsRovingFocusItemDirective {\n private parent = inject(forwardRef(() => BsRovingFocusDirective));\n elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private ids = inject(BsIdService);\n\n readonly disabled = input(false);\n\n /**\n * The host element's id. Honoured if set externally (e.g. by a sibling\n * component's [attr.id] host binding); otherwise generated in afterNextRender\n * so an ARIA reference to the item has a stable target.\n *\n * Backed by a signal so a consumer computed that reads it re-runs when the id\n * is resolved post-mount. A plain `nativeElement.id` getter would be silently\n * cached during the first computation and never re-read.\n */\n private readonly _itemId = signal<string>('');\n get itemId(): string {\n return this._itemId();\n }\n\n readonly index = computed(() => this.parent.items().indexOf(this));\n readonly isActive = computed(() => this.index() === this.parent.activeIndex());\n\n readonly tabindex = computed(() => (this.isActive() ? 0 : -1));\n\n constructor() {\n // After the first render, all sibling host bindings on this element have applied.\n // If no other directive (e.g. BsDropdownItemComponent) supplied an id, generate one.\n // Then publish the resolved id to the signal so reactive consumers see it.\n afterNextRender(() => {\n if (!this.elementRef.nativeElement.id) {\n this.elementRef.nativeElement.id = this.ids.next('bs-rovingitem');\n }\n this._itemId.set(this.elementRef.nativeElement.id);\n });\n }\n\n onFocus(): void {\n this.parent.setActiveItem(this);\n }\n}\n","import { computed, contentChildren, Directive, ElementRef, inject, input, signal } from '@angular/core';\nimport { firstEnabledIndex, lastEnabledIndex, nextEnabledIndex } from '@mintplayer/ui-core/roving';\nimport { BsRovingFocusItemDirective } from './roving-focus-item.directive';\n\nexport type BsRovingFocusOrientation = 'vertical' | 'horizontal' | 'both';\n\n/**\n * APG roving-tabindex container.\n *\n * Place on a list/menu/tablist; mark each focusable child with\n * `bsRovingFocusItem`. Arrow keys, Home, and End move the active item; the\n * directive auto-handles disabled items, wrap-around, and orientation. Only\n * the active item has `tabindex=\"0\"`; real DOM focus moves.\n *\n * The former `activedescendant` mode (focus parked on a combobox input) was\n * removed with the typeahead's move to its headless core (#436 D10): the\n * typeahead core owns that keyboard model, and nothing else used the mode.\n *\n * Consumers that need to react to the active item externally read\n * `activeIndex()` (signal).\n */\n@Directive({\n selector: '[bsRovingFocus]',\n exportAs: 'bsRovingFocus',\n host: {\n '(keydown)': 'onKeydown($event)',\n },\n})\nexport class BsRovingFocusDirective {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<BsRovingFocusOrientation>('vertical');\n readonly wrap = input(true);\n\n readonly items = contentChildren(BsRovingFocusItemDirective);\n readonly activeIndex = signal(0);\n\n focusFirst(): void {\n this.moveTo(this.firstEnabledIndex());\n }\n\n focusLast(): void {\n this.moveTo(this.lastEnabledIndex());\n }\n\n next(): void {\n this.step(+1);\n }\n\n prev(): void {\n this.step(-1);\n }\n\n setActiveItem(item: BsRovingFocusItemDirective): void {\n const idx = this.items().indexOf(item);\n if (idx < 0) return;\n if (item.disabled()) return;\n this.activeIndex.set(idx);\n }\n\n onKeydown(event: KeyboardEvent): void {\n // Don't intercept browser/OS chords (Alt+Arrow=back, Ctrl+Home=top of doc, Cmd+Arrow=word jump on macOS).\n if (event.altKey || event.ctrlKey || event.metaKey) return;\n const orient = this.orientation();\n let consumed = true;\n switch (event.key) {\n case 'ArrowDown':\n if (orient === 'horizontal') { consumed = false; break; }\n this.next();\n break;\n case 'ArrowUp':\n if (orient === 'horizontal') { consumed = false; break; }\n this.prev();\n break;\n case 'ArrowRight':\n if (orient === 'vertical') { consumed = false; break; }\n this.next();\n break;\n case 'ArrowLeft':\n if (orient === 'vertical') { consumed = false; break; }\n this.prev();\n break;\n case 'Home':\n this.focusFirst();\n break;\n case 'End':\n this.focusLast();\n break;\n default:\n consumed = false;\n }\n if (consumed) event.preventDefault();\n }\n\n /**\n * Index math delegates to the shared pure functions in\n * @mintplayer/ui-core/roving — this directive and the WC RovingFocus\n * controller had independently identical copies that had ALREADY drifted\n * (wrap-vs-clamp default). One implementation, two adapters. The directive\n * keeps its own signals and discovery: those are Angular/light-DOM concerns\n * the WC controller rightly lacks.\n *\n * Public so consumers can detect edges without re-implementing the\n * disabled-aware scan.\n */\n firstEnabledIndex(): number {\n const items = this.items();\n return firstEnabledIndex(items.length, (i) => items[i].disabled());\n }\n\n lastEnabledIndex(): number {\n const items = this.items();\n return lastEnabledIndex(items.length, (i) => items[i].disabled());\n }\n\n private step(delta: 1 | -1): void {\n const items = this.items();\n const next = nextEnabledIndex(\n items.length,\n this.activeIndex(),\n delta,\n this.wrap(),\n (i) => items[i].disabled(),\n );\n if (next >= 0) this.moveTo(next);\n }\n\n private moveTo(index: number): void {\n if (index < 0) return;\n this.activeIndex.set(index);\n if (this.elementRef.nativeElement.contains(document.activeElement)) {\n this.items()[index]?.elementRef.nativeElement.focus();\n }\n }\n}\n","import { ConfigurableFocusTrap, ConfigurableFocusTrapFactory, InteractivityChecker } from '@angular/cdk/a11y';\nimport { DestroyRef, Directive, effect, ElementRef, inject, input } from '@angular/core';\n\nexport type BsOverlayInitialFocus = HTMLElement | 'first' | 'self' | 'none';\n\n/**\n * Activates a CDK focus trap on the host element while `bsOverlayFocus` is true,\n * captures the trigger before activation, and returns focus to it on deactivation.\n *\n * Initial focus inside the trap defaults to the first tabbable descendant; pass\n * an explicit HTMLElement, 'self' (focus the host), or 'none' to opt out.\n *\n * Background `inert` / `aria-hidden` is intentionally not handled here — it is\n * the consuming component's job (a modal hides app-root, a popover does not).\n */\n@Directive({\n selector: '[bsOverlayFocus]',\n exportAs: 'bsOverlayFocus',\n})\nexport class BsOverlayFocusDirective {\n private elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n private trapFactory = inject(ConfigurableFocusTrapFactory);\n private interactivityChecker = inject(InteractivityChecker);\n private destroyRef = inject(DestroyRef);\n\n readonly active = input(true, { alias: 'bsOverlayFocus' });\n readonly initialFocus = input<BsOverlayInitialFocus>('first');\n readonly returnFocus = input(true);\n\n private trap: ConfigurableFocusTrap | null = null;\n private restoreTo: HTMLElement | null = null;\n\n constructor() {\n effect(() => {\n if (this.active()) this.engage();\n else this.disengage();\n });\n\n this.destroyRef.onDestroy(() => this.disengage());\n }\n\n private engage(): void {\n if (this.trap) return;\n\n this.restoreTo = (typeof document !== 'undefined' && document.activeElement instanceof HTMLElement)\n ? document.activeElement\n : null;\n\n this.trap = this.trapFactory.create(this.elementRef.nativeElement);\n\n const target = this.initialFocus();\n if (target instanceof HTMLElement) {\n target.focus({ preventScroll: true });\n } else if (target === 'self') {\n this.elementRef.nativeElement.focus({ preventScroll: true });\n } else if (target === 'first') {\n this.focusFirstTabbable();\n }\n // 'none' — caller manages focus\n }\n\n private focusFirstTabbable(): void {\n // Walk the host's subtree and let CDK decide what's focusable — handles\n // disabled fieldsets, inert ancestors, and the long tail of edge cases\n // the inline selector would have to re-implement.\n //\n // `isFocusable({ ignoreVisibility: true })` because jsdom doesn't lay\n // elements out, so CDK's default visibility check (`getClientRects()`)\n // would reject everything in tests; in real browsers visible elements\n // pass either way. Tabindex < 0 is filtered manually so the host (which\n // we set `tabindex=\"-1\"` on for the focus trap) doesn't get selected.\n const root = this.elementRef.nativeElement;\n const walker = (root.ownerDocument ?? document).createTreeWalker(root, NodeFilter.SHOW_ELEMENT);\n let node: Node | null = walker.currentNode;\n while (node) {\n if (\n node instanceof HTMLElement\n && node.tabIndex >= 0\n // `:disabled` catches both own `disabled` and the inherited form of\n // it from an ancestor `<fieldset disabled>` — CDK's isFocusable only\n // looks at own attributes.\n && !node.matches(':disabled')\n && this.interactivityChecker.isFocusable(node, { ignoreVisibility: true })\n ) {\n node.focus({ preventScroll: true });\n return;\n }\n node = walker.nextNode();\n }\n }\n\n private disengage(): void {\n if (!this.trap) return;\n\n this.trap.destroy();\n this.trap = null;\n\n if (this.returnFocus() && this.restoreTo && typeof document !== 'undefined' && document.contains(this.restoreTo)) {\n // preventScroll so closing an overlay never yanks the page back to the\n // trigger's position — the user's scroll position is their choice.\n this.restoreTo.focus({ preventScroll: true });\n }\n this.restoreTo = null;\n }\n}\n","import { LiveAnnouncer, AriaLivePoliteness } from '@angular/cdk/a11y';\nimport { inject, Injectable } from '@angular/core';\n\n/**\n * Thin wrapper over CDK's LiveAnnouncer that dedupes consecutive identical\n * messages — typeahead-style \"5 results\" announcements often re-fire with the\n * same content and screen readers re-read them, which is noise.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsLiveAnnouncerService {\n private cdk = inject(LiveAnnouncer);\n private last: { message: string; politeness: AriaLivePoliteness } | null = null;\n\n announce(message: string, politeness: AriaLivePoliteness = 'polite', durationMs?: number): Promise<void> {\n if (this.last && this.last.message === message && this.last.politeness === politeness) {\n return Promise.resolve();\n }\n this.last = { message, politeness };\n return this.cdk.announce(message, politeness, durationMs);\n }\n\n clear(): void {\n this.last = null;\n this.cdk.clear();\n }\n}\n","import { Injectable } from '@angular/core';\nimport { dismissStack } from '@mintplayer/ui-core/overlay';\n\n/**\n * Angular facade over the document's single dismiss stack, so each overlay can\n * decide whether its global Escape listener should fire.\n *\n * The problem: popover, tooltip, dropdown-menu, priority-nav, and modal each\n * bind a `(document:keydown.escape)` (or equivalent host listener) that closes\n * the overlay unconditionally. With nesting (popover-under-modal,\n * tooltip-under-popover), a single Escape closes both because both handlers\n * fire on the same event.\n *\n * The fix: every overlay calls `push()` when it opens and `release(token)`\n * when it closes; its Escape handler runs only when `isTop(token)` returns\n * true. The top-most overlay consumes Escape; lower frames stay open.\n *\n * **This is now a facade, and that matters.** The state lives in\n * `@mintplayer/ui-core/overlay`'s `dismissStack`, shared with\n * `OverlayController`. It used to be a private array here, and the web\n * components had their own — so an Angular overlay wrapping a web-component\n * overlay (`bs-tree-select` inside `bs-modal`, the ordinary case) had one frame\n * on each stack, both believed they were top-most, and one Escape closed both.\n * Angular keeps the DI ergonomics; there is exactly one array.\n *\n * Identity is a per-call `symbol` token rather than a string, so two opens of\n * the same directive don't collide and a stale token can't accidentally match\n * a future frame.\n *\n * **What this does NOT promise:**\n * - **Visual z-order.** The stack tracks logical open-order (the sequence of\n * `push()` calls). A consumer that manually reorders overlays in the DOM\n * could see Escape close a logically-deeper overlay. We don't support that.\n * - **Coordination with non-overlay listeners.** A consumer's own\n * `keydown.escape` listener that doesn't ask the stack will still fire.\n */\n@Injectable({ providedIn: 'root' })\nexport class BsOverlayStackService {\n /** Allocate a new frame on top of the stack and return its token. */\n push(): symbol {\n return dismissStack.push('bs-overlay-frame');\n }\n\n /**\n * Remove `token` from the stack. Releasing a non-top token is allowed —\n * it's how an inner overlay closes itself programmatically without an\n * Escape press (e.g. a popover closed by clicking its trigger again).\n */\n release(token: symbol): void {\n dismissStack.release(token);\n }\n\n /** True if `token` is the top of the stack. */\n isTop(token: symbol): boolean {\n return dismissStack.isTop(token);\n }\n\n /** Token at the top of the stack, or null if empty. */\n peek(): symbol | null {\n return dismissStack.peek();\n }\n}\n","import { Directive, DoCheck, ElementRef, Injector, inject, input, signal } from '@angular/core';\nimport { NgControl, Validators } from '@angular/forms';\n\n/**\n * Reads the host form control's validity: `invalid` (only once touched —\n * Bootstrap's own convention, and untouched pristine forms must not scream),\n * `required` (from the control's validators) and, when `[errorMessages]`\n * supplies one, the message for the first active error.\n *\n * A front that renders its own template injects this directive and reads the\n * signals into its core's attribute bags, so `aria-invalid` /\n * `aria-errormessage` / `aria-describedby` land on the role-bearing node it\n * owns. A wrapper that still renders an `mp-*` element as its template root\n * (#437, until that component converts) gets the same state mirrored as the\n * WC's `invalid` / `required` / `error-text` attributes instead.\n *\n * NgControl is resolved lazily via the injector: injecting it in the\n * constructor recurses (NgControl resolution needs the value accessor being\n * constructed). ngDoCheck keeps the state live at every CD pass, which is\n * exactly the cadence Angular updates control state at (PRD 11a); it runs\n * before the host's own view is checked, so the signals are fresh for it.\n */\n@Directive({\n selector: '[bsControlValidity]',\n})\nexport class BsControlValidityDirective implements DoCheck {\n private readonly injector = inject(Injector);\n private readonly host = inject(ElementRef) as ElementRef<HTMLElement>;\n /** undefined = not resolved yet; null = no form control on this host. */\n private ngControl: NgControl | null | undefined;\n\n /**\n * Validation messages by `NgControl` error key, e.g.\n * `{ required: 'Pick a fruit.', minlength: 'Too short.' }`.\n *\n * The message for the first active error becomes the control's error\n * message node. A key with no message simply produces no message, so a\n * consumer can spell out the errors worth announcing and leave the rest to\n * the visible form summary.\n */\n readonly errorMessages = input<Record<string, string> | null>(null);\n\n private readonly invalidState = signal(false);\n private readonly requiredState = signal(false);\n private readonly errorTextState = signal<string | null>(null);\n\n /** The control is invalid AND touched. */\n readonly invalid = this.invalidState.asReadonly();\n readonly required = this.requiredState.asReadonly();\n /** Tied to `invalid`: `aria-errormessage` is only defined while the control is `aria-invalid`. */\n readonly errorText = this.errorTextState.asReadonly();\n\n ngDoCheck(): void {\n if (this.ngControl === undefined) {\n this.ngControl = this.injector.get(NgControl, null);\n }\n const control = this.ngControl;\n if (!control) return;\n\n const invalid = !!control.invalid && !!control.touched;\n // requiredTrue is the checkbox-shaped required; hasValidator compares by\n // reference, so both spellings must be probed.\n const required =\n (control.control?.hasValidator(Validators.required) ?? false) ||\n (control.control?.hasValidator(Validators.requiredTrue) ?? false);\n const errorText = invalid ? this.activeMessage(control) : null;\n\n this.invalidState.set(invalid);\n this.requiredState.set(required);\n this.errorTextState.set(errorText);\n\n const target = this.host.nativeElement.firstElementChild;\n if (target?.localName.includes('-')) {\n this.mirror(target, 'invalid', invalid ? '' : null);\n this.mirror(target, 'required', required ? '' : null);\n this.mirror(target, 'error-text', errorText);\n }\n }\n\n /**\n * The message for the first of the control's active errors that has one.\n * Validators report in the order they were composed, so a required-then-pattern\n * field announces \"required\" until it has a value — the order the user meets\n * them in.\n */\n private activeMessage(control: NgControl): string | null {\n const messages = this.errorMessages();\n if (!messages) return null;\n const key = Object.keys(control.errors ?? {}).find((error) => error in messages);\n return key ? messages[key] : null;\n }\n\n /**\n * Writes only on a real change. `ngDoCheck` runs on every CD pass, and an\n * unconditional `setAttribute` fires the WC's `attributeChangedCallback` even\n * when the value is identical — which schedules a Lit render.\n */\n private mirror(target: Element, name: string, value: string | null): void {\n if (value === null) {\n if (target.hasAttribute(name)) target.removeAttribute(name);\n } else if (target.getAttribute(name) !== value) {\n target.setAttribute(name, value);\n }\n }\n}\n","/**\n * Collects a front's host attributes that belong on its role-bearing inner\n * node: `aria-*` are copied (harmless on a roleless host), `id` and `tabindex`\n * are moved, so the id is not duplicated and the host is not a second tab stop.\n *\n * Call it in the constructor: host attributes are present by then on both the\n * server and the client, so the SSR output already carries them where AT reads\n * them, and hydration sees identical DOM.\n */\nexport function takeHostAria(host: HTMLElement): Record<string, string> {\n const bag: Record<string, string> = Object.fromEntries(\n Array.from(host.attributes)\n .filter(({ name }) => name.startsWith('aria-') || name === 'id' || name === 'tabindex')\n .map(({ name, value }) => [name, value]),\n );\n ['id', 'tabindex'].filter((name) => name in bag).map((name) => host.removeAttribute(name));\n return bag;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEA;;;;;;;;;AASG;MAEU,WAAW,CAAA;AADxB,IAAA,WAAA,GAAA;QAEU,IAAA,CAAA,OAAO,GAAG,CAAC;AAMpB,IAAA;;AAHC,IAAA,IAAI,CAAC,MAAc,EAAA;QACjB,OAAO,CAAA,EAAG,MAAM,CAAA,CAAA,EAAI,EAAE,IAAI,CAAC,O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