@mintplayer/ng-bootstrap 22.5.1 → 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 +129 -74
- 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 +83 -248
- 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-observe-size.mjs +48 -0
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs.map +1 -0
- 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 +3 -3
- 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 +107 -0
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.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/observe-size/package.json +4 -0
- package/package.json +9 -6
- package/splitter/package.json +4 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +184 -32
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +88 -27
- 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 +56 -109
- 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-observe-size.d.ts +24 -0
- 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-priority-nav.d.ts +1 -1
- 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-splitter.d.ts +66 -0
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +1 -1
- 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,39 +1,100 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import
|
|
2
|
+
import { TemplateRef, ElementRef } from '@angular/core';
|
|
3
|
+
import { MpAccordion } from '@mintplayer/web-components/accordion';
|
|
4
|
+
export * from '@mintplayer/web-components/accordion';
|
|
3
5
|
|
|
6
|
+
/**
|
|
7
|
+
* `*bsAccordionTabHeader` — declares the header content of the enclosing
|
|
8
|
+
* `<bs-accordion-tab>`.
|
|
9
|
+
*
|
|
10
|
+
* It is a template rather than projected content because the header has to
|
|
11
|
+
* end up as a direct child of `<mp-accordion>` (named slots accept nothing
|
|
12
|
+
* else) while being authored inside the tab it belongs to. The parent
|
|
13
|
+
* accordion renders each captured template into the matching header slot.
|
|
14
|
+
*
|
|
15
|
+
* Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former
|
|
16
|
+
* `<bs-accordion-tab-header>` component.
|
|
17
|
+
*
|
|
18
|
+
* <bs-accordion>
|
|
19
|
+
* <bs-accordion-tab>
|
|
20
|
+
* <ng-container *bsAccordionTabHeader>Profile</ng-container>
|
|
21
|
+
* Body content here
|
|
22
|
+
* </bs-accordion-tab>
|
|
23
|
+
* </bs-accordion>
|
|
24
|
+
*/
|
|
25
|
+
declare class BsAccordionTabHeaderDirective {
|
|
26
|
+
readonly template: TemplateRef<any>;
|
|
27
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabHeaderDirective, never>;
|
|
28
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsAccordionTabHeaderDirective, "[bsAccordionTabHeader]", never, {}, {}, never, never, true, never>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.
|
|
33
|
+
*
|
|
34
|
+
* This host element IS the tab marker the web component reads: it carries
|
|
35
|
+
* `accordion-tab`, its index slot and the tab's state, and its projected
|
|
36
|
+
* children become the tab body. There is no separate `<mp-accordion-tab>`
|
|
37
|
+
* here — an Angular component can only render inside its own host, which
|
|
38
|
+
* would put that element one level too deep to be slotted.
|
|
39
|
+
*
|
|
40
|
+
* The header is declared with `*bsAccordionTabHeader` and rendered by the
|
|
41
|
+
* parent accordion (see `BsAccordionComponent`).
|
|
42
|
+
*/
|
|
4
43
|
declare class BsAccordionTabComponent {
|
|
5
|
-
accordion: BsAccordionComponent;
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
readonly
|
|
9
|
-
|
|
10
|
-
|
|
44
|
+
readonly accordion: BsAccordionComponent;
|
|
45
|
+
/** Two-way: whether this tab is open. */
|
|
46
|
+
readonly isActive: _angular_core.ModelSignal<boolean>;
|
|
47
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
48
|
+
readonly headerTemplate: _angular_core.Signal<BsAccordionTabHeaderDirective | undefined>;
|
|
49
|
+
/** Position among its siblings — the tab's identity for slots and events. */
|
|
50
|
+
readonly index: _angular_core.Signal<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Open or close this tab through the web component, so single-open
|
|
53
|
+
* exclusivity and the nested-accordion collapse both apply — unlike
|
|
54
|
+
* writing `isActive` directly.
|
|
55
|
+
*/
|
|
11
56
|
setActive(value: boolean): void;
|
|
12
57
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabComponent, never>;
|
|
13
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; }, { "isActive": "isActiveChange"; }, ["
|
|
58
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabComponent, "bs-accordion-tab", never, { "isActive": { "alias": "isActive"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "isActive": "isActiveChange"; }, ["headerTemplate"], ["*"], true, never>;
|
|
14
59
|
}
|
|
15
60
|
|
|
61
|
+
/**
|
|
62
|
+
* `<bs-accordion>` — Angular wrapper around the `<mp-accordion>` web component.
|
|
63
|
+
*
|
|
64
|
+
* <bs-accordion [multi]="true">
|
|
65
|
+
* <bs-accordion-tab [(isActive)]="open">
|
|
66
|
+
* <ng-container *bsAccordionTabHeader>Profile</ng-container>
|
|
67
|
+
* Body content
|
|
68
|
+
* </bs-accordion-tab>
|
|
69
|
+
* </bs-accordion>
|
|
70
|
+
*
|
|
71
|
+
* Each tab's header is HOISTED out of the tab and rendered here, as a sibling
|
|
72
|
+
* of the tab's own marker element. Named slots only accept direct children of
|
|
73
|
+
* the shadow host, and an Angular component can only render inside its own
|
|
74
|
+
* host element — so a header authored inside `<bs-accordion-tab>` could never
|
|
75
|
+
* reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it
|
|
76
|
+
* as a template that this component renders in the right place.
|
|
77
|
+
*
|
|
78
|
+
* The WC owns interaction, ARIA, animation and the no-JS tier; this wrapper
|
|
79
|
+
* bridges inputs to attributes and the toggle event back into each tab's
|
|
80
|
+
* `isActive` model.
|
|
81
|
+
*/
|
|
16
82
|
declare class BsAccordionComponent {
|
|
17
|
-
|
|
18
|
-
|
|
83
|
+
/** Allow several tabs to stay open at once (checkbox machine with JS off). */
|
|
84
|
+
readonly multi: _angular_core.InputSignal<boolean>;
|
|
85
|
+
/** Paint the open header with the Bootstrap active background. */
|
|
86
|
+
readonly highlightActiveTab: _angular_core.InputSignal<boolean>;
|
|
19
87
|
readonly tabPages: _angular_core.Signal<readonly BsAccordionTabComponent[]>;
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
88
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpAccordion> | undefined>;
|
|
89
|
+
protected readonly multiAttr: _angular_core.Signal<"" | null>;
|
|
90
|
+
protected readonly highlightActiveTabAttr: _angular_core.Signal<"" | null>;
|
|
91
|
+
/** Close every open tab, and every accordion nested inside them. */
|
|
92
|
+
closeAll(): void;
|
|
93
|
+
/** Drive a tab through the WC so nested accordions collapse with it. */
|
|
94
|
+
setActive(index: number, active: boolean): void;
|
|
95
|
+
protected onTabToggle(event: Event): void;
|
|
27
96
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionComponent, never>;
|
|
28
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "
|
|
29
|
-
}
|
|
30
|
-
|
|
31
|
-
declare class BsAccordionTabHeaderComponent {
|
|
32
|
-
accordionTab: BsAccordionTabComponent;
|
|
33
|
-
headerClicked(event: Event): void;
|
|
34
|
-
headerKeydown(event: KeyboardEvent): void;
|
|
35
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsAccordionTabHeaderComponent, never>;
|
|
36
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionTabHeaderComponent, "bs-accordion-tab-header", never, {}, {}, never, ["*"], true, never>;
|
|
97
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsAccordionComponent, "bs-accordion", never, { "multi": { "alias": "multi"; "required": false; "isSignal": true; }; "highlightActiveTab": { "alias": "highlightActiveTab"; "required": false; "isSignal": true; }; }, {}, ["tabPages"], ["*"], true, never>;
|
|
37
98
|
}
|
|
38
99
|
|
|
39
|
-
export { BsAccordionComponent, BsAccordionTabComponent,
|
|
100
|
+
export { BsAccordionComponent, BsAccordionTabComponent, BsAccordionTabHeaderDirective };
|
|
@@ -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
|
}
|
|
@@ -1,121 +1,68 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import { BsSwipeContainerDirective } from '@mintplayer/ng-swiper/swiper';
|
|
5
|
-
import * as i1 from '@mintplayer/ng-bootstrap/reduced-motion';
|
|
6
|
-
|
|
7
|
-
declare class BsCarouselImageDirective {
|
|
8
|
-
private templateRef;
|
|
9
|
-
private carousel;
|
|
10
|
-
private element;
|
|
11
|
-
itemTemplate: TemplateRef<any>;
|
|
12
|
-
id: number;
|
|
13
|
-
isFirst: boolean;
|
|
14
|
-
constructor();
|
|
15
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImageDirective, never>;
|
|
16
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImageDirective, "*[bsCarouselImage]", never, {}, {}, never, never, true, never>;
|
|
17
|
-
}
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { CarouselAnimation, CarouselOrientation, MpCarousel } from '@mintplayer/web-components/carousel';
|
|
18
4
|
|
|
19
5
|
/**
|
|
20
|
-
*
|
|
21
|
-
*
|
|
6
|
+
* `<bs-carousel>` — Angular wrapper around the `<mp-carousel>` web component.
|
|
7
|
+
*
|
|
8
|
+
* Slides are plain content children (no structural directive):
|
|
9
|
+
*
|
|
10
|
+
* <bs-carousel animation="fade" [indicators]="true" [interval]="4000" aria-label="Photos">
|
|
11
|
+
* <img src="a.png" alt="…">
|
|
12
|
+
* <img src="b.png" alt="…">
|
|
13
|
+
* </bs-carousel>
|
|
22
14
|
*
|
|
23
|
-
*
|
|
24
|
-
*
|
|
25
|
-
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
15
|
+
* Track layout, gestures, keyboard, ARIA, the radio-driven no-JS tier and the
|
|
16
|
+
* height contract all live in the WC (single source of UI truth); this wrapper
|
|
17
|
+
* only bridges inputs to attributes and re-emits the WC's typed events. A
|
|
18
|
+
* custom play/pause control can be projected with `slot="play-pause"` — wire
|
|
19
|
+
* it to `togglePaused()` (or listen to `pausedChange`).
|
|
20
|
+
*
|
|
21
|
+
* The WC is registered **client-side only** (`afterNextRender`); on the server
|
|
22
|
+
* Angular emits a bare `<mp-carousel>` tag and the SSR layer injects its
|
|
23
|
+
* Declarative Shadow DOM (see `injectMpCarouselDsd`), so the carousel renders
|
|
24
|
+
* — and navigates — with JS off.
|
|
28
25
|
*/
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
/**
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
readonly
|
|
52
|
-
|
|
53
|
-
readonly
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
private isDestroyed;
|
|
57
|
-
indicators: _angular_core.InputSignal<boolean>;
|
|
58
|
-
keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
59
|
-
orientation: _angular_core.InputSignal<"horizontal" | "vertical">;
|
|
60
|
-
animation: _angular_core.InputSignal<"fade" | "slide" | "none">;
|
|
61
|
-
interval: _angular_core.InputSignal<number | null>;
|
|
62
|
-
wrap: _angular_core.InputSignal<boolean>;
|
|
63
|
-
ariaLabel: _angular_core.InputSignal<string | null>;
|
|
64
|
-
paused: _angular_core.ModelSignal<boolean>;
|
|
65
|
-
/**
|
|
66
|
-
* Template projected via `*bsCarouselPlayPause`. When set, the carousel
|
|
67
|
-
* renders it in a control row above the slides. Per APG, auto-advancing
|
|
68
|
-
* carousels must expose a play/pause control — this is how consumers
|
|
69
|
-
* provide one without us imposing a button style.
|
|
70
|
-
*/
|
|
71
|
-
readonly playPauseTemplate: _angular_core.WritableSignal<TemplateRef<BsCarouselPlayPauseContext> | null>;
|
|
72
|
-
slideChange: _angular_core.OutputEmitterRef<number>;
|
|
73
|
-
animationStart: _angular_core.OutputEmitterRef<void>;
|
|
74
|
-
animationEnd: _angular_core.OutputEmitterRef<void>;
|
|
75
|
-
imageCount: _angular_core.Signal<number>;
|
|
76
|
-
readonly innerElement: _angular_core.Signal<ElementRef<HTMLDivElement> | undefined>;
|
|
77
|
-
readonly swipeContainer: _angular_core.Signal<BsSwipeContainerDirective | undefined>;
|
|
78
|
-
slideHeight: _angular_core.Signal<number>;
|
|
79
|
-
firstImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
80
|
-
lastImageTemplate: _angular_core.Signal<TemplateRef<any> | null>;
|
|
81
|
-
readonly animationsDisabled: _angular_core.WritableSignal<boolean>;
|
|
82
|
-
/**
|
|
83
|
-
* `aria-live` value for the slide viewport. Stays `off` while
|
|
84
|
-
* auto-advance is actually rotating — otherwise the SR would re-read the
|
|
85
|
-
* active slide every interval — and switches to `polite` whenever the
|
|
86
|
-
* rotation is paused (by `paused`, missing/zero `interval`, or
|
|
87
|
-
* `prefers-reduced-motion`), so manual prev/next/indicator clicks get
|
|
88
|
-
* announced.
|
|
89
|
-
*/
|
|
90
|
-
readonly slideAriaLive: _angular_core.Signal<"off" | "polite">;
|
|
26
|
+
declare class BsCarouselComponent {
|
|
27
|
+
/** Slide transition: `slide` (default), `fade`, or `none`. */
|
|
28
|
+
readonly animation: _angular_core.InputSignal<CarouselAnimation>;
|
|
29
|
+
/** Slide axis; vertical also pins every slide to the tallest one. */
|
|
30
|
+
readonly orientation: _angular_core.InputSignal<CarouselOrientation>;
|
|
31
|
+
/** Show the indicator dots. */
|
|
32
|
+
readonly indicators: _angular_core.InputSignal<boolean>;
|
|
33
|
+
/** Auto-advance interval in ms; `null`/`0` disables autoplay. */
|
|
34
|
+
readonly interval: _angular_core.InputSignal<number | null>;
|
|
35
|
+
/** Wrap around at the ends (buttons, keyboard AND swipe). */
|
|
36
|
+
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
37
|
+
/** Arrow/Home/End navigation on the focused viewport. */
|
|
38
|
+
readonly keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
39
|
+
/** Accessible label for the carousel region. */
|
|
40
|
+
/** Two-way: whether autoplay is paused. */
|
|
41
|
+
readonly paused: _angular_core.ModelSignal<boolean>;
|
|
42
|
+
/** The committed slide index changed. */
|
|
43
|
+
readonly slideChange: _angular_core.OutputEmitterRef<number>;
|
|
44
|
+
readonly animationStart: _angular_core.OutputEmitterRef<void>;
|
|
45
|
+
readonly animationEnd: _angular_core.OutputEmitterRef<void>;
|
|
46
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpCarousel> | undefined>;
|
|
47
|
+
/** Presence/string-or-absent attributes derived once via signals. */
|
|
48
|
+
protected readonly indicatorsAttr: _angular_core.Signal<"" | null>;
|
|
49
|
+
protected readonly intervalAttr: _angular_core.Signal<string | null>;
|
|
50
|
+
protected readonly wrapAttr: _angular_core.Signal<"false" | null>;
|
|
51
|
+
protected readonly keyboardEventsAttr: _angular_core.Signal<"false" | null>;
|
|
52
|
+
protected readonly pausedAttr: _angular_core.Signal<"" | null>;
|
|
91
53
|
constructor();
|
|
92
|
-
/** Resume auto-advance. No-op if `interval` is unset or reduce-motion is on. */
|
|
93
|
-
play(): void;
|
|
94
|
-
/** Pause auto-advance. Manual prev/next/goto still work. */
|
|
95
|
-
pause(): void;
|
|
96
|
-
/** Toggle the paused state. Used as the `toggle` callback in `BsCarouselPlayPauseContext`. */
|
|
97
|
-
togglePaused: () => void;
|
|
98
|
-
private clearAutoAdvance;
|
|
99
54
|
previous(): void;
|
|
100
55
|
next(): void;
|
|
101
56
|
goto(index: number): void;
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
57
|
+
play(): void;
|
|
58
|
+
pause(): void;
|
|
59
|
+
togglePaused: () => void;
|
|
60
|
+
protected onSlideChange(event: Event): void;
|
|
61
|
+
protected onPausedChange(event: Event): void;
|
|
62
|
+
protected onAnimationStart(event: Event): void;
|
|
63
|
+
protected onAnimationEnd(event: Event): void;
|
|
108
64
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
|
|
109
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "
|
|
110
|
-
}
|
|
111
|
-
|
|
112
|
-
declare class BsCarouselImgDirective {
|
|
113
|
-
private image;
|
|
114
|
-
fetchPriority: 'high' | 'low' | 'auto';
|
|
115
|
-
constructor();
|
|
116
|
-
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselImgDirective, never>;
|
|
117
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselImgDirective, "img", never, {}, {}, never, never, true, never>;
|
|
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>;
|
|
118
66
|
}
|
|
119
67
|
|
|
120
|
-
export { BsCarouselComponent
|
|
121
|
-
export type { BsCarouselPlayPauseContext };
|
|
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
|
}
|