@mintplayer/ng-bootstrap 22.6.0 → 22.7.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 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +255 -44
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +24 -4
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +12 -3
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +9 -4
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +21 -7
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +5 -6
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +39 -35
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -4
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +80 -31
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -7
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +27 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +25 -3
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +15 -3
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +9 -3
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +11 -12
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -2
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +4 -7
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +2 -3
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +24 -5
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +8 -3
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -3
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +5 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +33 -4
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -12
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +76 -58
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -10
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +29 -6
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +4 -3
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +10 -3
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +1 -5
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +184 -32
- package/types/mintplayer-ng-bootstrap-alert.d.ts +18 -8
- package/types/mintplayer-ng-bootstrap-badge.d.ts +8 -1
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-card.d.ts +4 -2
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +11 -16
- package/types/mintplayer-ng-bootstrap-close.d.ts +6 -4
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-copy.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +16 -18
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +7 -0
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +15 -2
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +7 -4
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +1 -3
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +6 -0
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +2 -2
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -3
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +5 -2
- package/types/mintplayer-ng-bootstrap-radio.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-rating.d.ts +18 -1
- package/types/mintplayer-ng-bootstrap-select.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +31 -30
- package/types/mintplayer-ng-bootstrap-toast.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +8 -0
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +7 -1
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +0 -60
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +0 -1
- package/reduced-motion/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, ElementRef, DoCheck } from '@angular/core';
|
|
3
3
|
import { AriaLivePoliteness } from '@angular/cdk/a11y';
|
|
4
4
|
|
|
5
5
|
/**
|
|
@@ -16,8 +16,91 @@ declare class BsIdService {
|
|
|
16
16
|
private counter;
|
|
17
17
|
/** Returns `${prefix}-N` where N monotonically increases for the lifetime of the app. */
|
|
18
18
|
next(prefix: string): string;
|
|
19
|
-
static ɵfac:
|
|
20
|
-
static ɵprov:
|
|
19
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsIdService, never>;
|
|
20
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsIdService>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Makes a nested-host wrapper **transparent to ARIA**: a consumer's `aria-*`,
|
|
25
|
+
* `role`, `id` and `tabindex` written on the `bs-*` element reach the `mp-*`
|
|
26
|
+
* custom element inside it.
|
|
27
|
+
*
|
|
28
|
+
* Apply to the wrapper's inner custom element, which is its template root:
|
|
29
|
+
*
|
|
30
|
+
* ```html
|
|
31
|
+
* <mp-checkbox #checkbox bsForwardAria (change)="onChange($event)">
|
|
32
|
+
* ```
|
|
33
|
+
*
|
|
34
|
+
* **The problem it solves.** Every `bs-*` wrapper renders the real control as a
|
|
35
|
+
* *child*, so a consumer's `aria-label` lands on an element with no role, where
|
|
36
|
+
* ARIA prohibits naming — nothing reaches the control and it stays nameless.
|
|
37
|
+
* `tabindex` is worse than useless: it makes the wrapper focusable, putting a
|
|
38
|
+
* dead tab stop in front of the real control. This replaces three ad-hoc idioms
|
|
39
|
+
* that had grown up around the problem (`bs-checkbox`/`bs-radio`'s
|
|
40
|
+
* `MutationObserver`, `bs-carousel`/`bs-navbar`'s bespoke `[ariaLabel]` input,
|
|
41
|
+
* `bs-select`'s `Renderer2` call) with one directive, so the next wrapper does
|
|
42
|
+
* not invent a fourth.
|
|
43
|
+
*
|
|
44
|
+
* **Copy versus move, and why they differ.** `aria-*` attributes are *copied* and
|
|
45
|
+
* kept live — they carry state (`aria-expanded`, `aria-invalid`) that must be
|
|
46
|
+
* correct at every moment, and duplicating them on an unexposed host is harmless.
|
|
47
|
+
* `role`, `id` and `tabindex` are **moved**, because leaving them would be
|
|
48
|
+
* actively wrong: two elements with one `id` is invalid and breaks every IDREF
|
|
49
|
+
* pointing at it, and a duplicated `tabindex` is the dead-tab-stop defect itself.
|
|
50
|
+
* The host then takes `role="presentation"` so it contributes no extra generic
|
|
51
|
+
* node of its own.
|
|
52
|
+
*
|
|
53
|
+
* **Known limit, stated because it is a real gap and not a rounding error.**
|
|
54
|
+
* Adding any of the three moved attributes later *is* tracked — an addition is an
|
|
55
|
+
* observable mutation. **Removing one after it has been moved is not**, because
|
|
56
|
+
* the attribute is no longer on the host for its removal to be observed. In
|
|
57
|
+
* practice `role`/`id`/`tabindex` are structural and set once, while the
|
|
58
|
+
* attributes that genuinely change at runtime are `aria-*`, which are copied and
|
|
59
|
+
* fully live. If a component ever needs a removable forwarded `tabindex`, give it
|
|
60
|
+
* an explicit input rather than widening this directive.
|
|
61
|
+
*/
|
|
62
|
+
declare class BsForwardAriaDirective implements OnInit {
|
|
63
|
+
private readonly target;
|
|
64
|
+
/**
|
|
65
|
+
* The wrapper host. `skipSelf` walks from this element's node injector to its
|
|
66
|
+
* parent's, which for a component's template root is the component host — no
|
|
67
|
+
* DOM walking and no assumption about nesting depth.
|
|
68
|
+
*/
|
|
69
|
+
private readonly host;
|
|
70
|
+
private readonly platformId;
|
|
71
|
+
private readonly destroyRef;
|
|
72
|
+
/** Moved rather than copied — see the class comment. */
|
|
73
|
+
private static readonly MOVED;
|
|
74
|
+
/**
|
|
75
|
+
* The role this directive writes on the host itself, which must therefore never
|
|
76
|
+
* be treated as a *consumer's* role and moved inward.
|
|
77
|
+
*
|
|
78
|
+
* Checked by **value** rather than tracked in an instance flag, and that
|
|
79
|
+
* distinction is the whole fix for an SSR defect: the server pass runs this
|
|
80
|
+
* directive and serialises `role="presentation"` into the HTML, so the client
|
|
81
|
+
* gets a **fresh instance** whose flag is `false` staring at a host that already
|
|
82
|
+
* carries the marker. It moved the marker onto the custom element — making the
|
|
83
|
+
* real component presentational and discarding the name just forwarded to it.
|
|
84
|
+
* A flag cannot survive rehydration; a value check needs nothing to survive.
|
|
85
|
+
*
|
|
86
|
+
* Only `presentation` is claimed, not `none`. They are synonyms to ARIA, but a
|
|
87
|
+
* consumer writing `role="none"` is making a deliberate statement about the
|
|
88
|
+
* *inner* element and it is still forwarded; `presentation` on a wrapper asks for
|
|
89
|
+
* exactly what this directive already does, so there is nothing to forward.
|
|
90
|
+
*/
|
|
91
|
+
private static readonly HOST_ROLE;
|
|
92
|
+
constructor();
|
|
93
|
+
/**
|
|
94
|
+
* Runs on the server too, unlike the `MutationObserver`. That matters: the
|
|
95
|
+
* no-JS and SSR tiers are part of this library's contract, and an
|
|
96
|
+
* accessible name that only appears after hydration is absent exactly when a
|
|
97
|
+
* screen reader first reads the page.
|
|
98
|
+
*/
|
|
99
|
+
ngOnInit(): void;
|
|
100
|
+
private forward;
|
|
101
|
+
private observe;
|
|
102
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsForwardAriaDirective, never>;
|
|
103
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsForwardAriaDirective, "[bsForwardAria]", never, {}, {}, never, never, true, never>;
|
|
21
104
|
}
|
|
22
105
|
|
|
23
106
|
/**
|
|
@@ -40,7 +123,7 @@ declare class BsRovingFocusItemDirective {
|
|
|
40
123
|
private parent;
|
|
41
124
|
elementRef: ElementRef<HTMLElement>;
|
|
42
125
|
private ids;
|
|
43
|
-
readonly disabled:
|
|
126
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
44
127
|
/**
|
|
45
128
|
* The host element's id. Honoured if set externally (e.g. by a sibling
|
|
46
129
|
* component's [attr.id] host binding); otherwise generated in afterNextRender
|
|
@@ -54,13 +137,13 @@ declare class BsRovingFocusItemDirective {
|
|
|
54
137
|
*/
|
|
55
138
|
private readonly _itemId;
|
|
56
139
|
get itemId(): string;
|
|
57
|
-
readonly index:
|
|
58
|
-
readonly isActive:
|
|
59
|
-
readonly tabindex:
|
|
140
|
+
readonly index: i0.Signal<any>;
|
|
141
|
+
readonly isActive: i0.Signal<boolean>;
|
|
142
|
+
readonly tabindex: i0.Signal<0 | -1>;
|
|
60
143
|
constructor();
|
|
61
144
|
onFocus(): void;
|
|
62
|
-
static ɵfac:
|
|
63
|
-
static ɵdir:
|
|
145
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsRovingFocusItemDirective, never>;
|
|
146
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsRovingFocusItemDirective, "[bsRovingFocusItem]", ["bsRovingFocusItem"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
64
147
|
}
|
|
65
148
|
|
|
66
149
|
type BsRovingFocusOrientation = 'vertical' | 'horizontal' | 'both';
|
|
@@ -85,25 +168,35 @@ type BsRovingFocusMode = 'tabindex' | 'activedescendant';
|
|
|
85
168
|
*/
|
|
86
169
|
declare class BsRovingFocusDirective {
|
|
87
170
|
private elementRef;
|
|
88
|
-
readonly orientation:
|
|
89
|
-
readonly mode:
|
|
90
|
-
readonly wrap:
|
|
91
|
-
readonly items:
|
|
92
|
-
readonly activeIndex:
|
|
93
|
-
readonly activeDescendantId:
|
|
171
|
+
readonly orientation: i0.InputSignal<BsRovingFocusOrientation>;
|
|
172
|
+
readonly mode: i0.InputSignal<BsRovingFocusMode>;
|
|
173
|
+
readonly wrap: i0.InputSignal<boolean>;
|
|
174
|
+
readonly items: i0.Signal<readonly BsRovingFocusItemDirective[]>;
|
|
175
|
+
readonly activeIndex: i0.WritableSignal<number>;
|
|
176
|
+
readonly activeDescendantId: i0.Signal<string | null>;
|
|
94
177
|
focusFirst(): void;
|
|
95
178
|
focusLast(): void;
|
|
96
179
|
next(): void;
|
|
97
180
|
prev(): void;
|
|
98
181
|
setActiveItem(item: BsRovingFocusItemDirective): void;
|
|
99
182
|
onKeydown(event: KeyboardEvent): void;
|
|
100
|
-
/**
|
|
183
|
+
/**
|
|
184
|
+
* Index math delegates to the shared pure functions in
|
|
185
|
+
* @mintplayer/web-components/a11y — this directive and the WC RovingFocus
|
|
186
|
+
* controller had independently identical copies that had ALREADY drifted
|
|
187
|
+
* (wrap-vs-clamp default). One implementation, two adapters. The directive
|
|
188
|
+
* keeps its own signals, discovery and activedescendant mode: those are
|
|
189
|
+
* Angular/light-DOM concerns the WC controller rightly lacks.
|
|
190
|
+
*
|
|
191
|
+
* Public so consumers (e.g. BsComboboxDirective's TAB handling) can detect
|
|
192
|
+
* edges without re-implementing the disabled-aware scan.
|
|
193
|
+
*/
|
|
101
194
|
firstEnabledIndex(): number;
|
|
102
195
|
lastEnabledIndex(): number;
|
|
103
196
|
private step;
|
|
104
197
|
private moveTo;
|
|
105
|
-
static ɵfac:
|
|
106
|
-
static ɵdir:
|
|
198
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsRovingFocusDirective, never>;
|
|
199
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsRovingFocusDirective, "[bsRovingFocus]", ["bsRovingFocus"], { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; }, {}, ["items"], never, true, never>;
|
|
107
200
|
}
|
|
108
201
|
|
|
109
202
|
type BsOverlayInitialFocus = HTMLElement | 'first' | 'self' | 'none';
|
|
@@ -122,17 +215,17 @@ declare class BsOverlayFocusDirective {
|
|
|
122
215
|
private trapFactory;
|
|
123
216
|
private interactivityChecker;
|
|
124
217
|
private destroyRef;
|
|
125
|
-
readonly active:
|
|
126
|
-
readonly initialFocus:
|
|
127
|
-
readonly returnFocus:
|
|
218
|
+
readonly active: i0.InputSignal<boolean>;
|
|
219
|
+
readonly initialFocus: i0.InputSignal<BsOverlayInitialFocus>;
|
|
220
|
+
readonly returnFocus: i0.InputSignal<boolean>;
|
|
128
221
|
private trap;
|
|
129
222
|
private restoreTo;
|
|
130
223
|
constructor();
|
|
131
224
|
private engage;
|
|
132
225
|
private focusFirstTabbable;
|
|
133
226
|
private disengage;
|
|
134
|
-
static ɵfac:
|
|
135
|
-
static ɵdir:
|
|
227
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsOverlayFocusDirective, never>;
|
|
228
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsOverlayFocusDirective, "[bsOverlayFocus]", ["bsOverlayFocus"], { "active": { "alias": "bsOverlayFocus"; "required": false; "isSignal": true; }; "initialFocus": { "alias": "initialFocus"; "required": false; "isSignal": true; }; "returnFocus": { "alias": "returnFocus"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
136
229
|
}
|
|
137
230
|
|
|
138
231
|
/**
|
|
@@ -145,13 +238,13 @@ declare class BsLiveAnnouncerService {
|
|
|
145
238
|
private last;
|
|
146
239
|
announce(message: string, politeness?: AriaLivePoliteness, durationMs?: number): Promise<void>;
|
|
147
240
|
clear(): void;
|
|
148
|
-
static ɵfac:
|
|
149
|
-
static ɵprov:
|
|
241
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsLiveAnnouncerService, never>;
|
|
242
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsLiveAnnouncerService>;
|
|
150
243
|
}
|
|
151
244
|
|
|
152
245
|
/**
|
|
153
|
-
*
|
|
154
|
-
* its global Escape listener should fire.
|
|
246
|
+
* Angular facade over the document's single dismiss stack, so each overlay can
|
|
247
|
+
* decide whether its global Escape listener should fire.
|
|
155
248
|
*
|
|
156
249
|
* The problem: popover, tooltip, dropdown-menu, priority-nav, and modal each
|
|
157
250
|
* bind a `(document:keydown.escape)` (or equivalent host listener) that closes
|
|
@@ -163,6 +256,14 @@ declare class BsLiveAnnouncerService {
|
|
|
163
256
|
* when it closes; its Escape handler runs only when `isTop(token)` returns
|
|
164
257
|
* true. The top-most overlay consumes Escape; lower frames stay open.
|
|
165
258
|
*
|
|
259
|
+
* **This is now a facade, and that matters.** The state lives in
|
|
260
|
+
* `@mintplayer/web-components/a11y`'s `dismissStack`, shared with
|
|
261
|
+
* `OverlayController`. It used to be a private array here, and the web
|
|
262
|
+
* components had their own — so an Angular overlay wrapping a web-component
|
|
263
|
+
* overlay (`bs-tree-select` inside `bs-modal`, the ordinary case) had one frame
|
|
264
|
+
* on each stack, both believed they were top-most, and one Escape closed both.
|
|
265
|
+
* Angular keeps the DI ergonomics; there is exactly one array.
|
|
266
|
+
*
|
|
166
267
|
* Identity is a per-call `symbol` token rather than a string, so two opens of
|
|
167
268
|
* the same directive don't collide and a stale token can't accidentally match
|
|
168
269
|
* a future frame.
|
|
@@ -175,7 +276,6 @@ declare class BsLiveAnnouncerService {
|
|
|
175
276
|
* `keydown.escape` listener that doesn't ask the stack will still fire.
|
|
176
277
|
*/
|
|
177
278
|
declare class BsOverlayStackService {
|
|
178
|
-
private stack;
|
|
179
279
|
/** Allocate a new frame on top of the stack and return its token. */
|
|
180
280
|
push(): symbol;
|
|
181
281
|
/**
|
|
@@ -188,9 +288,61 @@ declare class BsOverlayStackService {
|
|
|
188
288
|
isTop(token: symbol): boolean;
|
|
189
289
|
/** Token at the top of the stack, or null if empty. */
|
|
190
290
|
peek(): symbol | null;
|
|
191
|
-
static ɵfac:
|
|
192
|
-
static ɵprov:
|
|
291
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsOverlayStackService, never>;
|
|
292
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<BsOverlayStackService>;
|
|
293
|
+
}
|
|
294
|
+
|
|
295
|
+
/**
|
|
296
|
+
* Mirrors the host form control's validity onto the wrapped web component:
|
|
297
|
+
* `invalid` (only once touched — Bootstrap's own convention, and untouched
|
|
298
|
+
* pristine forms must not scream), `required` (from the control's
|
|
299
|
+
* validators) and, when `[errorMessages]` supplies one, `error-text`. The WC
|
|
300
|
+
* maps them to `aria-invalid`/`aria-required`/`aria-errormessage` +
|
|
301
|
+
* `aria-describedby` on its inner role-bearing input, which is the node screen
|
|
302
|
+
* readers actually read.
|
|
303
|
+
*
|
|
304
|
+
* The attribute lands on the wrapper's first element child — every nested
|
|
305
|
+
* host wrapper renders its `mp-*` element as the template root — NOT on the
|
|
306
|
+
* `bs-*` host, which has no role for AT to read it from.
|
|
307
|
+
*
|
|
308
|
+
* NgControl is resolved lazily via the injector: injecting it in the
|
|
309
|
+
* constructor recurses (NgControl resolution needs the value accessor being
|
|
310
|
+
* constructed). ngDoCheck keeps the mirror live at every CD pass, which is
|
|
311
|
+
* exactly the cadence Angular updates control state at (PRD 11a).
|
|
312
|
+
*/
|
|
313
|
+
declare class BsControlValidityDirective implements DoCheck {
|
|
314
|
+
private readonly injector;
|
|
315
|
+
private readonly host;
|
|
316
|
+
/** undefined = not resolved yet; null = no form control on this host. */
|
|
317
|
+
private ngControl;
|
|
318
|
+
/**
|
|
319
|
+
* Validation messages by `NgControl` error key, e.g.
|
|
320
|
+
* `{ required: 'Pick a fruit.', minlength: 'Too short.' }`.
|
|
321
|
+
*
|
|
322
|
+
* The message for the first active error is written to the WC's `error-text`,
|
|
323
|
+
* which renders it inside the shadow root and points the real control at it.
|
|
324
|
+
* A key with no message simply produces no message, so a consumer can spell out
|
|
325
|
+
* the errors worth announcing and leave the rest to the visible form summary.
|
|
326
|
+
*/
|
|
327
|
+
readonly errorMessages: i0.InputSignal<Record<string, string> | null>;
|
|
328
|
+
ngDoCheck(): void;
|
|
329
|
+
/**
|
|
330
|
+
* The message for the first of the control's active errors that has one.
|
|
331
|
+
* Validators report in the order they were composed, so a required-then-pattern
|
|
332
|
+
* field announces "required" until it has a value — the order the user meets
|
|
333
|
+
* them in.
|
|
334
|
+
*/
|
|
335
|
+
private activeMessage;
|
|
336
|
+
/**
|
|
337
|
+
* Writes only on a real change. `ngDoCheck` runs on every CD pass, and an
|
|
338
|
+
* unconditional `setAttribute` fires the WC's `attributeChangedCallback` even
|
|
339
|
+
* when the value is identical — which now schedules a Lit render, because these
|
|
340
|
+
* attributes have to be live to be correct.
|
|
341
|
+
*/
|
|
342
|
+
private mirror;
|
|
343
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsControlValidityDirective, never>;
|
|
344
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsControlValidityDirective, "[bsControlValidity]", never, { "errorMessages": { "alias": "errorMessages"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
193
345
|
}
|
|
194
346
|
|
|
195
|
-
export { BsIdService, BsLiveAnnouncerService, BsOverlayFocusDirective, BsOverlayStackService, BsRovingFocusDirective, BsRovingFocusItemDirective };
|
|
347
|
+
export { BsControlValidityDirective, BsForwardAriaDirective, BsIdService, BsLiveAnnouncerService, BsOverlayFocusDirective, BsOverlayStackService, BsRovingFocusDirective, BsRovingFocusItemDirective };
|
|
196
348
|
export type { BsOverlayInitialFocus, BsRovingFocusMode, BsRovingFocusOrientation };
|
|
@@ -1,22 +1,32 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { Color } from '@mintplayer/ng-bootstrap';
|
|
3
3
|
|
|
4
4
|
declare class BsAlertComponent {
|
|
5
5
|
private destroyRef;
|
|
6
|
-
|
|
6
|
+
private hostRef;
|
|
7
|
+
type: _angular_core.InputSignal<Color>;
|
|
8
|
+
/** Opt-in role="alert" for genuinely dynamic alerts (defaults off — static banners must not interrupt). */
|
|
9
|
+
readonly announce: _angular_core.InputSignal<boolean>;
|
|
7
10
|
colors: typeof Color;
|
|
8
|
-
isVisible:
|
|
9
|
-
|
|
11
|
+
isVisible: _angular_core.ModelSignal<boolean>;
|
|
12
|
+
/**
|
|
13
|
+
* Dismissing destroys the close button the user just pressed, which drops
|
|
14
|
+
* focus to <body> — their next keystroke goes nowhere. Re-home it on the next
|
|
15
|
+
* tabbable after the alert (reading order continues naturally), falling back
|
|
16
|
+
* to the previous one at the end of a page.
|
|
17
|
+
*/
|
|
18
|
+
rescueFocus(): void;
|
|
19
|
+
afterOpenedOrClosed: _angular_core.OutputEmitterRef<boolean>;
|
|
10
20
|
onAfterOpenedOrClosed(isVisible: boolean): void;
|
|
11
|
-
static ɵfac:
|
|
12
|
-
static ɵcmp:
|
|
21
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAlertComponent, never>;
|
|
22
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAlertComponent, "bs-alert", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "announce": { "alias": "announce"; "required": false; "isSignal": true; }; "isVisible": { "alias": "isVisible"; "required": false; "isSignal": true; }; }, { "isVisible": "isVisibleChange"; "afterOpenedOrClosed": "afterOpenedOrClosed"; }, never, ["*"], true, never>;
|
|
13
23
|
}
|
|
14
24
|
|
|
15
25
|
declare class BsAlertCloseComponent {
|
|
16
26
|
private alert;
|
|
17
27
|
closeAlert(): boolean;
|
|
18
|
-
static ɵfac:
|
|
19
|
-
static ɵcmp:
|
|
28
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAlertCloseComponent, never>;
|
|
29
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAlertCloseComponent, "bs-alert-close", never, {}, {}, never, never, true, never>;
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
export { BsAlertCloseComponent, BsAlertComponent };
|
|
@@ -4,9 +4,16 @@ import { Color } from '@mintplayer/ng-bootstrap';
|
|
|
4
4
|
declare class BsBadgeComponent {
|
|
5
5
|
colors: typeof Color;
|
|
6
6
|
type: _angular_core.InputSignal<Color>;
|
|
7
|
+
/**
|
|
8
|
+
* What the number counts ('unread messages'): a bare '3' badge is
|
|
9
|
+
* meaningless out of visual context. Appended visually hidden.
|
|
10
|
+
*/
|
|
11
|
+
unit: _angular_core.InputSignal<string | null>;
|
|
12
|
+
/** Purely decorative badges leave the accessibility tree entirely. */
|
|
13
|
+
decorative: _angular_core.InputSignal<boolean>;
|
|
7
14
|
colorClass: _angular_core.Signal<string>;
|
|
8
15
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsBadgeComponent, never>;
|
|
9
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsBadgeComponent, "bs-badge", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
16
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsBadgeComponent, "bs-badge", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "unit": { "alias": "unit"; "required": false; "isSignal": true; }; "decorative": { "alias": "decorative"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
10
17
|
}
|
|
11
18
|
|
|
12
19
|
export { BsBadgeComponent };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class BsBreadcrumbComponent {
|
|
4
|
+
/** Accessible name for the breadcrumb landmark. Override for localisation. */
|
|
5
|
+
ariaLabel: i0.InputSignal<string>;
|
|
4
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsBreadcrumbComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumbComponent, "bs-breadcrumb", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsBreadcrumbComponent, "bs-breadcrumb", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
declare class BsBreadcrumbItemComponent {
|
|
@@ -60,8 +60,10 @@ declare class BsCardFooterComponent {
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
declare class BsCardTitleComponent {
|
|
63
|
+
/** Heading level in the page outline. Cards default to a section-level 5, matching Bootstrap's visual h5. */
|
|
64
|
+
readonly level: i0.InputSignal<number>;
|
|
63
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsCardTitleComponent, never>;
|
|
64
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsCardTitleComponent, "bs-card-title", never, {}, {}, never, ["*"], true, never>;
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsCardTitleComponent, "bs-card-title", never, { "level": { "alias": "level"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
65
67
|
}
|
|
66
68
|
|
|
67
69
|
declare class BsCardSubtitleComponent {
|
|
@@ -111,7 +113,7 @@ declare class BsCardImgComponent {
|
|
|
111
113
|
readonly hostClass: i0.Signal<"card-img" | "card-img-bottom" | "card-img-top">;
|
|
112
114
|
readonly imgClass: i0.Signal<"card-img" | "card-img-bottom" | "card-img-top">;
|
|
113
115
|
readonly srcAttr: i0.Signal<string | null>;
|
|
114
|
-
readonly altAttr: i0.Signal<string
|
|
116
|
+
readonly altAttr: i0.Signal<string>;
|
|
115
117
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsCardImgComponent, never>;
|
|
116
118
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsCardImgComponent, "bs-card-img", never, { "position": { "alias": "position"; "required": false; "isSignal": true; }; "src": { "alias": "src"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
117
119
|
}
|
|
@@ -7,7 +7,7 @@ import { CarouselAnimation, CarouselOrientation, MpCarousel } from '@mintplayer/
|
|
|
7
7
|
*
|
|
8
8
|
* Slides are plain content children (no structural directive):
|
|
9
9
|
*
|
|
10
|
-
* <bs-carousel animation="fade" [indicators]="true" [interval]="4000"
|
|
10
|
+
* <bs-carousel animation="fade" [indicators]="true" [interval]="4000" aria-label="Photos">
|
|
11
11
|
* <img src="a.png" alt="…">
|
|
12
12
|
* <img src="b.png" alt="…">
|
|
13
13
|
* </bs-carousel>
|
|
@@ -37,7 +37,6 @@ declare class BsCarouselComponent {
|
|
|
37
37
|
/** Arrow/Home/End navigation on the focused viewport. */
|
|
38
38
|
readonly keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
39
39
|
/** Accessible label for the carousel region. */
|
|
40
|
-
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
41
40
|
/** Two-way: whether autoplay is paused. */
|
|
42
41
|
readonly paused: _angular_core.ModelSignal<boolean>;
|
|
43
42
|
/** The committed slide index changed. */
|
|
@@ -63,7 +62,7 @@ declare class BsCarouselComponent {
|
|
|
63
62
|
protected onAnimationStart(event: Event): void;
|
|
64
63
|
protected onAnimationEnd(event: Event): void;
|
|
65
64
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
|
|
66
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "
|
|
65
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; }, { "paused": "pausedChange"; "slideChange": "slideChange"; "animationStart": "animationStart"; "animationEnd": "animationEnd"; }, never, ["*"], true, never>;
|
|
67
66
|
}
|
|
68
67
|
|
|
69
68
|
export { BsCarouselComponent };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
3
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
4
|
import { MpCheckbox } from '@mintplayer/web-components/checkbox';
|
|
5
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Groups N `<bs-checkbox>` children into a multi-select FormControl whose
|
|
@@ -16,7 +17,12 @@ import { MpCheckbox } from '@mintplayer/web-components/checkbox';
|
|
|
16
17
|
* `change` events from the children to recompute the array on every toggle.
|
|
17
18
|
*/
|
|
18
19
|
declare class BsCheckboxGroupDirective implements ControlValueAccessor {
|
|
20
|
+
private readonly host;
|
|
19
21
|
readonly name: _angular_core.InputSignal<string | null>;
|
|
22
|
+
/** Accessible name for the group (written as `aria-label`). A bare
|
|
23
|
+
* `role="group"` is announced as nothing at all; the label is what makes
|
|
24
|
+
* the grouping audible ("Toppings, group"). */
|
|
25
|
+
readonly label: _angular_core.InputSignal<string | null>;
|
|
20
26
|
readonly checkboxes: _angular_core.Signal<readonly BsCheckboxComponent[]>;
|
|
21
27
|
/** Most-recently-written form value. An effect syncs each child's
|
|
22
28
|
* `isToggled` (and the WC's `checked` property) whenever this OR the
|
|
@@ -25,7 +31,7 @@ declare class BsCheckboxGroupDirective implements ControlValueAccessor {
|
|
|
25
31
|
* query populates. */
|
|
26
32
|
private readonly currentValue;
|
|
27
33
|
private onValueChange?;
|
|
28
|
-
|
|
34
|
+
protected onTouched?: () => void;
|
|
29
35
|
constructor();
|
|
30
36
|
onChildChange(): void;
|
|
31
37
|
registerOnChange(fn: (_: string[]) => void): void;
|
|
@@ -33,7 +39,7 @@ declare class BsCheckboxGroupDirective implements ControlValueAccessor {
|
|
|
33
39
|
writeValue(value: string[] | null): void;
|
|
34
40
|
setDisabledState(isDisabled: boolean): void;
|
|
35
41
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxGroupDirective, never>;
|
|
36
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxGroupDirective, "[bsCheckboxGroup]", ["bsCheckboxGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; }, {}, ["checkboxes"], never, true, never>;
|
|
42
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxGroupDirective, "[bsCheckboxGroup]", ["bsCheckboxGroup"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; }, {}, ["checkboxes"], never, true, never>;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
45
|
type BsCheckboxType = 'checkbox' | 'switch' | 'toggle_button';
|
|
@@ -57,10 +63,7 @@ declare class BsCheckboxValueAccessor implements ControlValueAccessor {
|
|
|
57
63
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxValueAccessor, "bs-checkbox", never, {}, {}, never, never, true, never>;
|
|
58
64
|
}
|
|
59
65
|
|
|
60
|
-
declare class BsCheckboxComponent
|
|
61
|
-
private readonly hostRef;
|
|
62
|
-
private readonly platformId;
|
|
63
|
-
private readonly destroyRef;
|
|
66
|
+
declare class BsCheckboxComponent {
|
|
64
67
|
private readonly parentGroup;
|
|
65
68
|
/** Reference to the underlying `<mp-checkbox>` WC. Read by
|
|
66
69
|
* `BsCheckboxValueAccessor` and `[bsCheckboxGroup]` to write the WC's
|
|
@@ -78,16 +81,8 @@ declare class BsCheckboxComponent implements AfterViewInit {
|
|
|
78
81
|
readonly nameResult: _angular_core.Signal<string | null>;
|
|
79
82
|
constructor();
|
|
80
83
|
onChange(ev: Event): void;
|
|
81
|
-
ngAfterViewInit(): void;
|
|
82
|
-
/**
|
|
83
|
-
* Mirror every `aria-*` attribute from the host element onto the inner
|
|
84
|
-
* `<mp-checkbox>`. Keeps consumer-set `[attr.aria-…]` bindings reachable
|
|
85
|
-
* to assistive tech (the WC mirrors them onto its own inner <input>).
|
|
86
|
-
* A MutationObserver keeps the mirror in sync with runtime changes.
|
|
87
|
-
*/
|
|
88
|
-
private mirrorAriaAttributesToCheckbox;
|
|
89
84
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxComponent, never>;
|
|
90
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }]>;
|
|
85
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
91
86
|
}
|
|
92
87
|
|
|
93
88
|
export { BsCheckboxComponent, BsCheckboxGroupDirective, BsCheckboxValueAccessor };
|
|
@@ -1,10 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class BsCloseComponent {
|
|
4
|
-
|
|
4
|
+
/** Accessible name for the close button. Override for localisation. */
|
|
5
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
6
|
+
click: _angular_core.OutputEmitterRef<void>;
|
|
5
7
|
onClose(ev: MouseEvent): void;
|
|
6
|
-
static ɵfac:
|
|
7
|
-
static ɵcmp:
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCloseComponent, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCloseComponent, "bs-close", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, { "click": "click"; }, never, never, true, never>;
|
|
8
10
|
}
|
|
9
11
|
|
|
10
12
|
export { BsCloseComponent };
|
|
@@ -8,8 +8,11 @@ declare class BsContextMenuDirective {
|
|
|
8
8
|
private viewContainerRef;
|
|
9
9
|
private element;
|
|
10
10
|
constructor(overlay: Overlay, templateRef: TemplateRef<any>, viewContainerRef: ViewContainerRef, element: ElementRef);
|
|
11
|
+
private openAt;
|
|
11
12
|
private overlayRef;
|
|
12
13
|
private templatePortal;
|
|
14
|
+
private returnTarget;
|
|
15
|
+
onEscape(): void;
|
|
13
16
|
clickAnywhere(ev: MouseEvent): void;
|
|
14
17
|
onBlur(): void;
|
|
15
18
|
private close;
|
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
|
|
3
3
|
declare class BsCopyDirective {
|
|
4
4
|
private doc;
|
|
5
|
+
private announcer;
|
|
5
6
|
readonly bsCopy: _angular_core.InputSignal<string | null>;
|
|
6
7
|
readonly bsCopied: _angular_core.OutputEmitterRef<string>;
|
|
7
8
|
click(event: MouseEvent): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
2
|
import { InjectionToken } from '@angular/core';
|
|
3
3
|
import { DropdownMode, DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';
|
|
4
4
|
|
|
@@ -32,20 +32,18 @@ declare class BsDropdownMenuComponent {
|
|
|
32
32
|
* a11y `bsRovingFocus` directive when a combobox/listbox stacks both on this
|
|
33
33
|
* one element (same reason `bsCombobox` aliases its `autocomplete`).
|
|
34
34
|
*/
|
|
35
|
-
readonly mode:
|
|
35
|
+
readonly mode: i0.InputSignal<DropdownMode>;
|
|
36
36
|
/** Pixel cap on the menu height; scrolls beyond. */
|
|
37
|
-
readonly maxHeight:
|
|
37
|
+
readonly maxHeight: i0.InputSignal<number | undefined>;
|
|
38
38
|
/** Id of an external label, set as `aria-labelledby` on the WC's list. */
|
|
39
|
-
readonly labelId: _angular_core.InputSignal<string | undefined>;
|
|
40
39
|
/** Fires when an enabled item is activated (re-emits the WC's `select`). */
|
|
41
|
-
readonly select:
|
|
40
|
+
readonly select: i0.OutputEmitterRef<DropdownSelectEventDetail>;
|
|
42
41
|
/** `max-height` attribute is numeric-or-absent; derive once via a signal. */
|
|
43
|
-
protected readonly maxHeightAttr:
|
|
44
|
-
protected readonly labelIdAttr: _angular_core.Signal<string | null>;
|
|
42
|
+
protected readonly maxHeightAttr: i0.Signal<string | null>;
|
|
45
43
|
protected onSelect(event: Event): void;
|
|
46
44
|
constructor();
|
|
47
|
-
static ɵfac:
|
|
48
|
-
static ɵcmp:
|
|
45
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownMenuComponent, never>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsDropdownMenuComponent, "bs-dropdown-menu", never, { "mode": { "alias": "menuMode"; "required": false; "isSignal": true; }; "maxHeight": { "alias": "maxHeight"; "required": false; "isSignal": true; }; }, { "select": "select"; }, never, ["*"], true, never>;
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
/**
|
|
@@ -79,13 +77,13 @@ declare const BS_DROPDOWN_MENU_CONTEXT: InjectionToken<boolean>;
|
|
|
79
77
|
* assigned as a `value` property on the host `<li>` (the WC reads it).
|
|
80
78
|
*/
|
|
81
79
|
declare class BsDropdownItemDirective {
|
|
82
|
-
readonly active:
|
|
83
|
-
readonly disabled:
|
|
80
|
+
readonly active: i0.InputSignal<boolean>;
|
|
81
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
84
82
|
/** Opaque value carried in the menu's `select` event detail. */
|
|
85
|
-
readonly value:
|
|
83
|
+
readonly value: i0.InputSignal<unknown>;
|
|
86
84
|
constructor();
|
|
87
|
-
static ɵfac:
|
|
88
|
-
static ɵdir:
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownItemDirective, never>;
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownItemDirective, "[bsDropdownItem]", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
89
87
|
}
|
|
90
88
|
|
|
91
89
|
/**
|
|
@@ -94,8 +92,8 @@ declare class BsDropdownItemDirective {
|
|
|
94
92
|
* `::slotted(.dropdown-divider)` rule. Usage: `<li bsDropdownDivider></li>`.
|
|
95
93
|
*/
|
|
96
94
|
declare class BsDropdownDividerDirective {
|
|
97
|
-
static ɵfac:
|
|
98
|
-
static ɵdir:
|
|
95
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownDividerDirective, never>;
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownDividerDirective, "[bsDropdownDivider]", never, {}, {}, never, never, true, never>;
|
|
99
97
|
}
|
|
100
98
|
|
|
101
99
|
/**
|
|
@@ -104,8 +102,8 @@ declare class BsDropdownDividerDirective {
|
|
|
104
102
|
* `::slotted(.dropdown-header)` rule. Usage: `<li bsDropdownHeader>Section</li>`.
|
|
105
103
|
*/
|
|
106
104
|
declare class BsDropdownHeaderDirective {
|
|
107
|
-
static ɵfac:
|
|
108
|
-
static ɵdir:
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BsDropdownHeaderDirective, never>;
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BsDropdownHeaderDirective, "[bsDropdownHeader]", never, {}, {}, never, never, true, never>;
|
|
109
107
|
}
|
|
110
108
|
|
|
111
109
|
export { BS_DROPDOWN_MENU_CONTEXT, BsDropdownDividerDirective, BsDropdownHeaderDirective, BsDropdownItemDirective, BsDropdownMenuComponent };
|
|
@@ -28,6 +28,13 @@ declare class BsDropdownToggleDirective {
|
|
|
28
28
|
constructor(dropdown: BsDropdownDirective, toggleButton: ElementRef);
|
|
29
29
|
toggleButton: ElementRef;
|
|
30
30
|
onClick(): void;
|
|
31
|
+
/**
|
|
32
|
+
* APG menu button: ArrowDown opens the menu AND moves focus into it, so the
|
|
33
|
+
* next arrow press navigates items instead of scrolling the page. Focus entry
|
|
34
|
+
* goes through the roving directive when one is present — it owns which item
|
|
35
|
+
* is the tab stop.
|
|
36
|
+
*/
|
|
37
|
+
onArrowDown(event: Event): void;
|
|
31
38
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsDropdownToggleDirective, never>;
|
|
32
39
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsDropdownToggleDirective, "[bsDropdownToggle]", never, {}, {}, never, never, true, never>;
|
|
33
40
|
}
|