@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,9 +1,22 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterViewInit } from '@angular/core';
|
|
2
3
|
|
|
3
|
-
declare class BsFloatingLabelComponent {
|
|
4
|
+
declare class BsFloatingLabelComponent implements AfterViewInit {
|
|
5
|
+
private readonly hostRef;
|
|
4
6
|
constructor();
|
|
7
|
+
/**
|
|
8
|
+
* Associate the projected `<label>` with the projected control.
|
|
9
|
+
*
|
|
10
|
+
* Bootstrap's floating-label pattern *looks* labelled with no association at
|
|
11
|
+
* all — the label floats over the control purely via CSS — so the visual
|
|
12
|
+
* result gives no hint that a screen reader announces an unnamed textbox.
|
|
13
|
+
* `label`/`for` is the native mechanism and everything here is light DOM, so
|
|
14
|
+
* a generated id is all that is missing. Consumer-authored `for`/`id` are
|
|
15
|
+
* left untouched.
|
|
16
|
+
*/
|
|
17
|
+
ngAfterViewInit(): void;
|
|
5
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsFloatingLabelComponent, never>;
|
|
6
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsFloatingLabelComponent, "bs-floating-label", never, {}, {}, never, ["input", "label"], true, never>;
|
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsFloatingLabelComponent, "bs-floating-label", never, {}, {}, never, ["input,select,textarea", "label"], true, never>;
|
|
7
20
|
}
|
|
8
21
|
|
|
9
22
|
export { BsFloatingLabelComponent };
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class BsListGroupItemComponent {
|
|
4
|
+
readonly active: i0.InputSignal<boolean>;
|
|
5
|
+
readonly disabled: i0.InputSignal<boolean>;
|
|
4
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsListGroupItemComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BsListGroupItemComponent, "bs-list-group-item", never, {}, {}, never, ["*"], true, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BsListGroupItemComponent, "bs-list-group-item", never, { "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
6
8
|
}
|
|
7
9
|
|
|
8
10
|
declare class BsListGroupComponent {
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import * as
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
2
|
|
|
3
3
|
declare class BsMarqueeComponent {
|
|
4
|
-
readonly ariaLabel:
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
readonly ariaLabel: _angular_core.InputSignal<string | null>;
|
|
5
|
+
/** WCAG 2.2.2: moving content needs a pause affordance. */
|
|
6
|
+
readonly paused: _angular_core.WritableSignal<boolean>;
|
|
7
|
+
togglePaused(): void;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsMarqueeComponent, never>;
|
|
9
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsMarqueeComponent, "bs-marquee", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
7
10
|
}
|
|
8
11
|
|
|
9
12
|
export { BsMarqueeComponent };
|
|
@@ -26,7 +26,6 @@ declare class BsNavbarComponent {
|
|
|
26
26
|
/** Theme color of the navbar background (e.g. `primary`, `dark`, `body-tertiary`). */
|
|
27
27
|
readonly color: _angular_core.InputSignal<string | undefined>;
|
|
28
28
|
/** Accessible label for the `<nav>` landmark. */
|
|
29
|
-
readonly ariaLabel: _angular_core.InputSignal<string | undefined>;
|
|
30
29
|
/** Whether the collapse is (visually) expanded; reflected to the WC. */
|
|
31
30
|
readonly expanded: _angular_core.InputSignal<boolean>;
|
|
32
31
|
/** `fixed` pins the bar to the top of the viewport, full width; omit for in-flow. */
|
|
@@ -35,14 +34,13 @@ declare class BsNavbarComponent {
|
|
|
35
34
|
readonly expandedchange: _angular_core.OutputEmitterRef<NavbarExpandedChangeEventDetail>;
|
|
36
35
|
/** String-or-absent attributes derived once via signals. */
|
|
37
36
|
protected readonly colorAttr: _angular_core.Signal<string | null>;
|
|
38
|
-
protected readonly ariaLabelAttr: _angular_core.Signal<string | null>;
|
|
39
37
|
protected readonly positioningAttr: _angular_core.Signal<"fixed" | null>;
|
|
40
38
|
/** Presence attribute: `''` when expanded, `null` when collapsed. */
|
|
41
39
|
protected readonly expandedAttr: _angular_core.Signal<"" | null>;
|
|
42
40
|
protected onExpandedchange(event: Event): void;
|
|
43
41
|
constructor();
|
|
44
42
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsNavbarComponent, never>;
|
|
45
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsNavbarComponent, "bs-navbar", never, { "breakpoint": { "alias": "breakpoint"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "
|
|
43
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsNavbarComponent, "bs-navbar", never, { "breakpoint": { "alias": "breakpoint"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "expanded": { "alias": "expanded"; "required": false; "isSignal": true; }; "positioning": { "alias": "positioning"; "required": false; "isSignal": true; }; }, { "expandedchange": "expandedchange"; }, never, ["*"], true, never>;
|
|
46
44
|
}
|
|
47
45
|
|
|
48
46
|
/**
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { AfterViewInit, OnDestroy } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
interface Size {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
declare class BsObserveSizeDirective implements AfterViewInit, OnDestroy {
|
|
10
|
+
private element;
|
|
11
|
+
private platformId;
|
|
12
|
+
private observer?;
|
|
13
|
+
constructor();
|
|
14
|
+
size: _angular_core.WritableSignal<Size | undefined>;
|
|
15
|
+
width: _angular_core.Signal<number | undefined>;
|
|
16
|
+
height: _angular_core.Signal<number | undefined>;
|
|
17
|
+
ngAfterViewInit(): void;
|
|
18
|
+
ngOnDestroy(): void;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsObserveSizeDirective, never>;
|
|
20
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsObserveSizeDirective, "[bsObserveSize]", ["bsObserveSize"], {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export { BsObserveSizeDirective };
|
|
24
|
+
export type { Size };
|
|
@@ -36,6 +36,12 @@ declare class BsOffcanvasComponent {
|
|
|
36
36
|
isVisibleChange: _angular_core.OutputEmitterRef<boolean>;
|
|
37
37
|
backdropClick: _angular_core.OutputEmitterRef<MouseEvent>;
|
|
38
38
|
onBackdropClick(ev: MouseEvent): void;
|
|
39
|
+
/**
|
|
40
|
+
* Escape closes — the dialog pattern's universal exit, and the panel traps
|
|
41
|
+
* focus while open (bsOverlayFocus), so without this a keyboard user had no
|
|
42
|
+
* way out at all.
|
|
43
|
+
*/
|
|
44
|
+
onEscape(): void;
|
|
39
45
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsOffcanvasComponent, never>;
|
|
40
46
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsOffcanvasComponent, "bs-offcanvas-holder", never, {}, { "isVisibleChange": "isVisibleChange"; "backdropClick": "backdropClick"; }, never, never, true, never>;
|
|
41
47
|
}
|
|
@@ -30,7 +30,7 @@ declare class BsOtpInputComponent {
|
|
|
30
30
|
readonly size: _angular_core.InputSignal<OtpInputSize>;
|
|
31
31
|
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
32
32
|
readonly invalid: _angular_core.InputSignal<boolean>;
|
|
33
|
-
readonly
|
|
33
|
+
readonly inputLabel: _angular_core.InputSignal<string | null>;
|
|
34
34
|
readonly value: _angular_core.ModelSignal<string | undefined>;
|
|
35
35
|
readonly complete: _angular_core.OutputEmitterRef<string>;
|
|
36
36
|
readonly elementRef: _angular_core.Signal<ElementRef<MintOtpInputElement>>;
|
|
@@ -44,7 +44,7 @@ declare class BsOtpInputComponent {
|
|
|
44
44
|
/** Reset the value to empty string. */
|
|
45
45
|
clear(): void;
|
|
46
46
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsOtpInputComponent, never>;
|
|
47
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsOtpInputComponent, "bs-otp-input", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "case": { "alias": "case"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "
|
|
47
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsOtpInputComponent, "bs-otp-input", never, { "groups": { "alias": "groups"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "case": { "alias": "case"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "complete": "complete"; }, never, never, true, [{ directive: typeof BsOtpInputValueAccessor; inputs: {}; outputs: {}; }]>;
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
export { BsOtpInputComponent, BsOtpInputValueAccessor };
|
|
@@ -14,13 +14,11 @@ declare class BsPaginationComponent {
|
|
|
14
14
|
readonly showArrows: _angular_core.InputSignal<boolean>;
|
|
15
15
|
/** Page number size. */
|
|
16
16
|
readonly size: _angular_core.InputSignal<Size>;
|
|
17
|
-
/** Accessible name on the surrounding `<nav>` landmark. */
|
|
18
|
-
readonly ariaLabel: _angular_core.InputSignal<string>;
|
|
19
17
|
protected readonly paginationRef: _angular_core.Signal<ElementRef<MpPagination> | undefined>;
|
|
20
18
|
constructor();
|
|
21
19
|
onPageChange(event: Event): void;
|
|
22
20
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsPaginationComponent, never>;
|
|
23
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsPaginationComponent, "bs-pagination", never, { "pageNumbers": { "alias": "pageNumbers"; "required": false; "isSignal": true; }; "selectedPageNumber": { "alias": "selectedPageNumber"; "required": false; "isSignal": true; }; "numberOfBoxes": { "alias": "numberOfBoxes"; "required": false; "isSignal": true; }; "showArrows": { "alias": "showArrows"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; };
|
|
21
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsPaginationComponent, "bs-pagination", never, { "pageNumbers": { "alias": "pageNumbers"; "required": false; "isSignal": true; }; "selectedPageNumber": { "alias": "selectedPageNumber"; "required": false; "isSignal": true; }; "numberOfBoxes": { "alias": "numberOfBoxes"; "required": false; "isSignal": true; }; "showArrows": { "alias": "showArrows"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, { "selectedPageNumber": "selectedPageNumberChange"; }, never, never, true, never>;
|
|
24
22
|
}
|
|
25
23
|
|
|
26
24
|
type PageNumberType = number | '...';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { TemplateRef } from '@angular/core';
|
|
3
3
|
import { Breakpoint } from '@mintplayer/ng-bootstrap';
|
|
4
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
4
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
5
5
|
|
|
6
6
|
declare class BsPriorityNavItemDirective {
|
|
7
7
|
templateRef: TemplateRef<any>;
|
|
@@ -16,12 +16,15 @@ declare class BsProgressBarComponent {
|
|
|
16
16
|
color: _angular_core.InputSignal<Color>;
|
|
17
17
|
striped: _angular_core.InputSignal<boolean>;
|
|
18
18
|
animated: _angular_core.InputSignal<boolean>;
|
|
19
|
-
|
|
19
|
+
/** Accessible name for the progressbar. Override for localisation. */
|
|
20
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
21
|
+
/** Human reading of the value ('3 of 5 steps') when the raw number misleads. */
|
|
22
|
+
valueText: _angular_core.InputSignal<string | null>;
|
|
20
23
|
percentage: _angular_core.Signal<number>;
|
|
21
24
|
width: _angular_core.Signal<string>;
|
|
22
25
|
colorClassComputed: _angular_core.Signal<string>;
|
|
23
26
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsProgressBarComponent, never>;
|
|
24
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsProgressBarComponent, "bs-progress-bar", never, { "minimum": { "alias": "minimum"; "required": false; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
27
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsProgressBarComponent, "bs-progress-bar", never, { "minimum": { "alias": "minimum"; "required": false; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "animated": { "alias": "animated"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "valueText": { "alias": "valueText"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
25
28
|
}
|
|
26
29
|
|
|
27
30
|
export { BsProgressBarComponent, BsProgressComponent };
|
|
@@ -1,25 +1,28 @@
|
|
|
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 { MpRadio } from '@mintplayer/web-components/radio';
|
|
5
|
+
import * as i1 from '@mintplayer/ng-bootstrap/a11y';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Groups N `<bs-radio>` children into a single-select FormControl whose
|
|
8
9
|
* value is the selected radio's `value()`. The group owns the shared
|
|
9
|
-
* `[name]` (radios don't carry their own).
|
|
10
|
+
* `[name]` (radios don't carry their own). Acts as its own
|
|
11
|
+
* `ControlValueAccessor` — bind `[formControl]` / `[(ngModel)]` on the
|
|
12
|
+
* element carrying `[bsRadioGroup]`.
|
|
10
13
|
*
|
|
11
|
-
*
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
* `[(ngModel)]` on the element carrying `[bsRadioGroup]`.
|
|
14
|
+
* Host it on `<mp-radio-group>` where the markup allows: the WC supplies
|
|
15
|
+
* `role="radiogroup"`, the roving tab stop, arrow move-and-select and
|
|
16
|
+
* exclusivity, and this directive is only the CVA bridge (it listens for
|
|
17
|
+
* the WC's `group-change`, which is the ONLY signal a keyboard-driven
|
|
18
|
+
* selection produces — the WC checks radios programmatically, so no
|
|
19
|
+
* `change` bubbles). On any other host (a `<tbody>`, a `<bs-button-group>`)
|
|
20
|
+
* the WC element cannot be used, and this directive coordinates the
|
|
21
|
+
* one-of-N itself on bubbled `change` — shadow roots keep the browser's
|
|
22
|
+
* native auto-uncheck from ever firing across `<mp-radio>` boundaries.
|
|
21
23
|
*/
|
|
22
24
|
declare class BsRadioGroupDirective implements ControlValueAccessor {
|
|
25
|
+
private readonly host;
|
|
23
26
|
readonly name: _angular_core.InputSignal<string | null>;
|
|
24
27
|
readonly radios: _angular_core.Signal<readonly BsRadioComponent[]>;
|
|
25
28
|
/** Most-recently-written form value. An effect syncs each child's
|
|
@@ -29,8 +32,10 @@ declare class BsRadioGroupDirective implements ControlValueAccessor {
|
|
|
29
32
|
* populates. */
|
|
30
33
|
private readonly currentValue;
|
|
31
34
|
private onValueChange?;
|
|
32
|
-
|
|
35
|
+
protected onTouched?: () => void;
|
|
33
36
|
constructor();
|
|
37
|
+
/** Keyboard/pointer selection routed through an `<mp-radio-group>` host. */
|
|
38
|
+
onGroupChange(ev: Event): void;
|
|
34
39
|
onChildChange(ev: Event): void;
|
|
35
40
|
registerOnChange(fn: (_: string | null) => void): void;
|
|
36
41
|
registerOnTouched(fn: () => void): void;
|
|
@@ -42,10 +47,7 @@ declare class BsRadioGroupDirective implements ControlValueAccessor {
|
|
|
42
47
|
|
|
43
48
|
type BsRadioType = 'radio' | 'toggle_button';
|
|
44
49
|
|
|
45
|
-
declare class BsRadioComponent
|
|
46
|
-
private readonly hostRef;
|
|
47
|
-
private readonly platformId;
|
|
48
|
-
private readonly destroyRef;
|
|
50
|
+
declare class BsRadioComponent {
|
|
49
51
|
private readonly parentGroup;
|
|
50
52
|
/** Reference to the underlying `<mp-radio>` WC. Read by `[bsRadioGroup]`
|
|
51
53
|
* to write the WC's `checked` property — shadow DOM blocks the browser's
|
|
@@ -62,18 +64,8 @@ declare class BsRadioComponent implements AfterViewInit {
|
|
|
62
64
|
readonly nameResult: _angular_core.Signal<string | null>;
|
|
63
65
|
constructor();
|
|
64
66
|
onChange(ev: Event): void;
|
|
65
|
-
ngAfterViewInit(): void;
|
|
66
|
-
/**
|
|
67
|
-
* Mirror every `aria-*` attribute from the host element onto the inner
|
|
68
|
-
* `<mp-radio>`. ATs read the accessible name from the focused element
|
|
69
|
-
* (the inner input, which the WC mirrors aria-* to internally) — surfacing
|
|
70
|
-
* host-level `[attr.aria-…]` bindings on the wrapper means hopping them
|
|
71
|
-
* through the WC. A MutationObserver keeps the mirror in sync with
|
|
72
|
-
* runtime aria attribute changes.
|
|
73
|
-
*/
|
|
74
|
-
private mirrorAriaAttributesToRadio;
|
|
75
67
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRadioComponent, never>;
|
|
76
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRadioComponent, "bs-radio", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; }, never, ["*"], true,
|
|
68
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRadioComponent, "bs-radio", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; }, never, ["*"], true, [{ directive: typeof i1.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
77
69
|
}
|
|
78
70
|
|
|
79
71
|
export { BsRadioComponent, BsRadioGroupDirective };
|
|
@@ -3,18 +3,35 @@ import { ElementRef } from '@angular/core';
|
|
|
3
3
|
|
|
4
4
|
declare class BsRatingComponent {
|
|
5
5
|
constructor();
|
|
6
|
+
/** Accessible name for the radiogroup. Override for localisation. */
|
|
7
|
+
ariaLabel: _angular_core.InputSignal<string>;
|
|
8
|
+
/**
|
|
9
|
+
* Per-star accessible name. A formatter, not a prefix/suffix pair, because
|
|
10
|
+
* word order differs across languages and an interpolated middle cannot be
|
|
11
|
+
* expressed any other way.
|
|
12
|
+
*/
|
|
13
|
+
starLabel: _angular_core.InputSignal<(star: number, maximum: number) => string>;
|
|
6
14
|
maximum: _angular_core.InputSignal<number>;
|
|
7
15
|
value: _angular_core.ModelSignal<number>;
|
|
8
16
|
previewValue: _angular_core.WritableSignal<number | null>;
|
|
9
17
|
starsChange: _angular_core.OutputEmitterRef<number>;
|
|
10
18
|
readonly starButtons: _angular_core.Signal<readonly ElementRef<HTMLButtonElement>[]>;
|
|
19
|
+
/**
|
|
20
|
+
* Exactly one star must stay tabbable or the whole widget leaves the tab
|
|
21
|
+
* order: with no value set, the old binding gave EVERY star tabindex="-1"
|
|
22
|
+
* and the rating could never be entered by keyboard (the audit's bs-rating
|
|
23
|
+
* Critical, and the reason RovingFocus's first-enabled fallback exists).
|
|
24
|
+
*/
|
|
25
|
+
readonly starTabIndexes: _angular_core.Signal<(0 | -1)[]>;
|
|
26
|
+
/** Hoisted per the computed-over-inline-expression rule. */
|
|
27
|
+
readonly starLabels: _angular_core.Signal<string[]>;
|
|
11
28
|
stars: _angular_core.Signal<boolean[]>;
|
|
12
29
|
hoverValue(index: number): void;
|
|
13
30
|
selectValue(index: number): void;
|
|
14
31
|
onMouseLeave(): void;
|
|
15
32
|
onKeydown(event: KeyboardEvent): void;
|
|
16
33
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsRatingComponent, never>;
|
|
17
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRatingComponent, "bs-rating", never, { "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "starsChange": "starsChange"; }, never, never, true, never>;
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsRatingComponent, "bs-rating", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "starLabel": { "alias": "starLabel"; "required": false; "isSignal": true; }; "maximum": { "alias": "maximum"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "starsChange": "starsChange"; }, never, never, true, never>;
|
|
18
35
|
}
|
|
19
36
|
|
|
20
37
|
export { BsRatingComponent };
|
|
@@ -2,6 +2,7 @@ import * as _angular_core from '@angular/core';
|
|
|
2
2
|
import { OnDestroy, ElementRef } from '@angular/core';
|
|
3
3
|
import { MpSelect } from '@mintplayer/web-components/select';
|
|
4
4
|
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
5
6
|
|
|
6
7
|
type BsSelectSize = 'sm' | 'md' | 'lg';
|
|
7
8
|
|
|
@@ -47,7 +48,6 @@ declare class BsSelectOption implements OnDestroy {
|
|
|
47
48
|
}
|
|
48
49
|
|
|
49
50
|
declare class BsSelectComponent {
|
|
50
|
-
private renderer;
|
|
51
51
|
constructor();
|
|
52
52
|
identifier: _angular_core.InputSignal<number>;
|
|
53
53
|
/** Reference to the underlying `<mp-select>` WC. Read by
|
|
@@ -58,9 +58,8 @@ declare class BsSelectComponent {
|
|
|
58
58
|
multiple: _angular_core.InputSignal<boolean>;
|
|
59
59
|
numberVisible: _angular_core.InputSignal<number | null>;
|
|
60
60
|
disabled: _angular_core.InputSignal<boolean>;
|
|
61
|
-
ariaLabel: _angular_core.InputSignal<string | null>;
|
|
62
61
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSelectComponent, never>;
|
|
63
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSelectComponent, "bs-select", never, { "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "numberVisible": { "alias": "numberVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "
|
|
62
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSelectComponent, "bs-select", never, { "identifier": { "alias": "identifier"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "numberVisible": { "alias": "numberVisible"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, [{ directive: typeof BsSelectValueAccessor; inputs: { "compareWith": "compareWith"; }; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
64
63
|
}
|
|
65
64
|
|
|
66
65
|
export { BsSelectComponent, BsSelectOption, BsSelectValueAccessor };
|
|
@@ -1,36 +1,37 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { Signature, MpSignaturePadElement } from '@mintplayer/web-components/signature-pad';
|
|
4
|
+
export { Point, Signature, Stroke } from '@mintplayer/web-components/signature-pad';
|
|
3
5
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
readonly
|
|
23
|
-
readonly
|
|
24
|
-
readonly
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
6
|
+
/**
|
|
7
|
+
* `<bs-signature-pad>` — Angular wrapper around the `<mp-signature-pad>` web
|
|
8
|
+
* component. The WC owns drawing, the typed-signature alternative, Undo/Clear
|
|
9
|
+
* and ARIA; this wrapper bridges the `signature` two-way model and forwards
|
|
10
|
+
* the optional label overrides.
|
|
11
|
+
*/
|
|
12
|
+
declare class BsSignaturePadComponent {
|
|
13
|
+
readonly width: _angular_core.InputSignal<number>;
|
|
14
|
+
readonly height: _angular_core.InputSignal<number>;
|
|
15
|
+
readonly inputLabel: _angular_core.InputSignal<string | null>;
|
|
16
|
+
readonly typeLabel: _angular_core.InputSignal<string | null>;
|
|
17
|
+
readonly undoLabel: _angular_core.InputSignal<string | null>;
|
|
18
|
+
readonly clearLabel: _angular_core.InputSignal<string | null>;
|
|
19
|
+
/**
|
|
20
|
+
* Shows the typed alternative; named identically to bs-color-picker's input.
|
|
21
|
+
* ON by default — it is the only keyboard path — so turning it off is a
|
|
22
|
+
* deliberate draw-only decision.
|
|
23
|
+
*/
|
|
24
|
+
readonly showAccessibilityToggle: _angular_core.InputSignal<boolean>;
|
|
25
|
+
readonly signature: _angular_core.ModelSignal<Signature>;
|
|
26
|
+
readonly elementRef: _angular_core.Signal<ElementRef<MpSignaturePadElement>>;
|
|
27
|
+
constructor();
|
|
28
|
+
protected onSignatureChange(event: Event): void;
|
|
29
|
+
/** Remove the most recent stroke. */
|
|
30
|
+
undo(): void;
|
|
31
|
+
/** Wipe strokes and typed text. */
|
|
32
|
+
clear(): void;
|
|
31
33
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSignaturePadComponent, never>;
|
|
32
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSignaturePadComponent, "bs-signature-pad", never, { "
|
|
34
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSignaturePadComponent, "bs-signature-pad", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "typeLabel": { "alias": "typeLabel"; "required": false; "isSignal": true; }; "undoLabel": { "alias": "undoLabel"; "required": false; "isSignal": true; }; "clearLabel": { "alias": "clearLabel"; "required": false; "isSignal": true; }; "showAccessibilityToggle": { "alias": "showAccessibilityToggle"; "required": false; "isSignal": true; }; "signature": { "alias": "signature"; "required": false; "isSignal": true; }; }, { "signature": "signatureChange"; }, never, never, true, never>;
|
|
33
35
|
}
|
|
34
36
|
|
|
35
37
|
export { BsSignaturePadComponent };
|
|
36
|
-
export type { Point, Signature, Stroke };
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { Direction, SplitterResizeEventDetail, MpSplitter, ResizeKey } from '@mintplayer/web-components/splitter';
|
|
4
|
+
export * from '@mintplayer/web-components/splitter';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* `<bs-splitter>` — Angular wrapper around the `<mp-splitter>` web component.
|
|
8
|
+
*
|
|
9
|
+
* Panes are plain content children; the WC slots each direct child into its
|
|
10
|
+
* own resizable panel and inserts draggable/keyboard-operable dividers
|
|
11
|
+
* between them. Nest splitters to build dock-style layouts:
|
|
12
|
+
*
|
|
13
|
+
* <bs-splitter>
|
|
14
|
+
* <div>Left</div>
|
|
15
|
+
* <bs-splitter orientation="vertical" [minPanelSize]="80">
|
|
16
|
+
* <div>Top</div>
|
|
17
|
+
* <div>Bottom</div>
|
|
18
|
+
* </bs-splitter>
|
|
19
|
+
* </bs-splitter>
|
|
20
|
+
*
|
|
21
|
+
* Each wrapper claims exactly the events of its own `<mp-splitter>`: the
|
|
22
|
+
* target guard keeps a nested splitter's bubbled events from being re-emitted
|
|
23
|
+
* by the outer wrapper, and `stopPropagation()` *after* the guard ensures a
|
|
24
|
+
* claimed event is delivered once, as a typed output only. The stop is
|
|
25
|
+
* required: Angular registers BOTH a DOM listener and the output subscription
|
|
26
|
+
* for an element event binding, so a consumer's `(resizing)` handler would
|
|
27
|
+
* otherwise also receive the identically-named bubbling CustomEvent raw.
|
|
28
|
+
* Unclaimed events (from a nested raw `<mp-splitter>`) bubble on untouched.
|
|
29
|
+
*
|
|
30
|
+
* Before the custom element upgrades (or with JS off), a `:not(:defined)`
|
|
31
|
+
* fallback stylesheet renders the panes as a static flex layout with visible
|
|
32
|
+
* divider chrome, so server-rendered pages don't flash unstyled content.
|
|
33
|
+
*/
|
|
34
|
+
declare class BsSplitterComponent {
|
|
35
|
+
/** Axis along which the panes are laid out (and resized). */
|
|
36
|
+
readonly orientation: _angular_core.InputSignal<Direction>;
|
|
37
|
+
/** Minimum pane size in px a divider can shrink a pane to (WC default 50). */
|
|
38
|
+
readonly minPanelSize: _angular_core.InputSignal<number | null>;
|
|
39
|
+
/** Widen the invisible divider hit area for touch use. */
|
|
40
|
+
readonly touchMode: _angular_core.InputSignal<boolean>;
|
|
41
|
+
/** A divider drag started. Detail: current `{ sizes, orientation }`. */
|
|
42
|
+
readonly resizeStart: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
43
|
+
/** Fires on every drag-preview frame with the in-flight sizes. */
|
|
44
|
+
readonly resizing: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
45
|
+
/** Drag or keyboard resize committed. Detail: final `{ sizes, orientation }`. */
|
|
46
|
+
readonly resizeEnd: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
47
|
+
protected readonly element: _angular_core.Signal<ElementRef<MpSplitter> | undefined>;
|
|
48
|
+
protected readonly minPanelSizeAttr: _angular_core.Signal<string | null>;
|
|
49
|
+
protected readonly touchModeAttr: _angular_core.Signal<"" | null>;
|
|
50
|
+
/** Current pane sizes in px, in document order. */
|
|
51
|
+
getPanelSizes(): number[];
|
|
52
|
+
/** Programmatically distribute pane sizes (px, one entry per pane). */
|
|
53
|
+
setPanelSizes(sizes: number[]): void;
|
|
54
|
+
/**
|
|
55
|
+
* Drive a keyboard-style resize on divider `dividerIndex` (arrows ±10%,
|
|
56
|
+
* `fine` = ±1%, Home/End to the limits).
|
|
57
|
+
*/
|
|
58
|
+
resizeDividerBy(dividerIndex: number, key: ResizeKey, fine?: boolean): void;
|
|
59
|
+
protected onResizeStart(event: Event): void;
|
|
60
|
+
protected onResizing(event: Event): void;
|
|
61
|
+
protected onResizeEnd(event: Event): void;
|
|
62
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSplitterComponent, never>;
|
|
63
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterComponent, "bs-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "minPanelSize": { "alias": "minPanelSize"; "required": false; "isSignal": true; }; "touchMode": { "alias": "touchMode"; "required": false; "isSignal": true; }; }, { "resizeStart": "resizeStart"; "resizing": "resizing"; "resizeEnd": "resizeEnd"; }, never, ["*"], true, never>;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export { BsSplitterComponent };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { AfterViewInit, Injector } from '@angular/core';
|
|
3
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
3
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
4
4
|
|
|
5
5
|
declare class BsStickyFooterParentDirective {
|
|
6
6
|
marginBottom?: number;
|
|
@@ -8,7 +8,9 @@ declare class BsToastComponent {
|
|
|
8
8
|
isVisible: i0.InputSignal<boolean>;
|
|
9
9
|
/** SR announcement urgency. 'assertive' for time-critical (errors), 'polite' for everything else. */
|
|
10
10
|
politeness: i0.InputSignal<BsToastPoliteness>;
|
|
11
|
-
readonly
|
|
11
|
+
private readonly announcer;
|
|
12
|
+
private readonly host;
|
|
13
|
+
constructor();
|
|
12
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsToastComponent, never>;
|
|
13
15
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsToastComponent, "bs-toast", never, { "isVisible": { "alias": "isVisible"; "required": false; "isSignal": true; }; "politeness": { "alias": "politeness"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
14
16
|
}
|
|
@@ -13,6 +13,14 @@ declare class BsTooltipDirective implements OnDestroy {
|
|
|
13
13
|
private readonly tooltipId;
|
|
14
14
|
private stackToken;
|
|
15
15
|
constructor(overlay: Overlay, templateRef: TemplateRef<any>, parentInjector: Injector, parent: ElementRef);
|
|
16
|
+
/**
|
|
17
|
+
* WCAG 1.4.13 "hoverable": the pointer must be able to travel INTO the
|
|
18
|
+
* tooltip (to select/zoom its text) without it vanishing. Hide on a short
|
|
19
|
+
* delay; entering the overlay cancels it, leaving the overlay hides.
|
|
20
|
+
*/
|
|
21
|
+
private hideTimer;
|
|
22
|
+
private scheduleHide;
|
|
23
|
+
private cancelScheduledHide;
|
|
16
24
|
readonly bsTooltip: i0.InputSignal<Position>;
|
|
17
25
|
private injector;
|
|
18
26
|
private portal;
|
|
@@ -5,6 +5,12 @@ import { BsRovingFocusDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
|
5
5
|
declare class BsTypeaheadComponent {
|
|
6
6
|
private announcer;
|
|
7
7
|
isOpen: _angular_core.ModelSignal<boolean>;
|
|
8
|
+
/**
|
|
9
|
+
* Accessible name for the text input. Optional — a consumer wrapping the
|
|
10
|
+
* typeahead in bs-floating-label gets a real <label> association instead —
|
|
11
|
+
* but without either the control is unnamed.
|
|
12
|
+
*/
|
|
13
|
+
inputLabel: _angular_core.InputSignal<string | null>;
|
|
8
14
|
suggestions: _angular_core.InputSignal<any[]>;
|
|
9
15
|
isLoading: _angular_core.WritableSignal<boolean>;
|
|
10
16
|
showNoSuggestions: _angular_core.Signal<boolean>;
|
|
@@ -28,7 +34,7 @@ declare class BsTypeaheadComponent {
|
|
|
28
34
|
onSubmit(event?: Event): void;
|
|
29
35
|
focus(): void;
|
|
30
36
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTypeaheadComponent, never>;
|
|
31
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTypeaheadComponent, "bs-typeahead", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "searchterm": { "alias": "searchterm"; "required": false; "isSignal": true; }; "isLoadingText": { "alias": "isLoadingText"; "required": false; "isSignal": true; }; "noSuggestionsText": { "alias": "noSuggestionsText"; "required": false; "isSignal": true; }; "resultsAnnouncementSingular": { "alias": "resultsAnnouncementSingular"; "required": false; "isSignal": true; }; "resultsAnnouncementPlural": { "alias": "resultsAnnouncementPlural"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "searchterm": "searchtermChange"; "provideSuggestions": "provideSuggestions"; "suggestionSelected": "suggestionSelected"; "submitted": "submitted"; }, never, never, true, never>;
|
|
37
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTypeaheadComponent, "bs-typeahead", never, { "isOpen": { "alias": "isOpen"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "suggestions": { "alias": "suggestions"; "required": false; "isSignal": true; }; "searchterm": { "alias": "searchterm"; "required": false; "isSignal": true; }; "isLoadingText": { "alias": "isLoadingText"; "required": false; "isSignal": true; }; "noSuggestionsText": { "alias": "noSuggestionsText"; "required": false; "isSignal": true; }; "resultsAnnouncementSingular": { "alias": "resultsAnnouncementSingular"; "required": false; "isSignal": true; }; "resultsAnnouncementPlural": { "alias": "resultsAnnouncementPlural"; "required": false; "isSignal": true; }; }, { "isOpen": "isOpenChange"; "searchterm": "searchtermChange"; "provideSuggestions": "provideSuggestions"; "suggestionSelected": "suggestionSelected"; "submitted": "submitted"; }, never, never, true, never>;
|
|
32
38
|
}
|
|
33
39
|
|
|
34
40
|
export { BsTypeaheadComponent };
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { isPlatformBrowser } from '@angular/common';
|
|
2
|
-
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, PLATFORM_ID, DestroyRef, signal, Directive } from '@angular/core';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Tracks `(prefers-reduced-motion: reduce)` live and exposes the result as a
|
|
7
|
-
* signal. Designed to be composed onto a host component via `hostDirectives`
|
|
8
|
-
* so the host can `inject(BsReducedMotionDirective)` and read `matches()` to
|
|
9
|
-
* gate animations / auto-advance / non-essential motion. SSR-safe — on the
|
|
10
|
-
* server (or in environments without `matchMedia`) the signal stays `false`.
|
|
11
|
-
*
|
|
12
|
-
* Usage:
|
|
13
|
-
* @Component({
|
|
14
|
-
* // ...
|
|
15
|
-
* hostDirectives: [BsReducedMotionDirective],
|
|
16
|
-
* })
|
|
17
|
-
* export class MyComponent {
|
|
18
|
-
* private readonly reducedMotion = inject(BsReducedMotionDirective);
|
|
19
|
-
* readonly animationsDisabled = computed(() => this.reducedMotion.matches());
|
|
20
|
-
* }
|
|
21
|
-
*
|
|
22
|
-
* Or attach as a template attribute and read via a template reference:
|
|
23
|
-
* <div bsReducedMotion #rm="bsReducedMotion">
|
|
24
|
-
* <span *ngIf="!rm.matches()">animated content</span>
|
|
25
|
-
* </div>
|
|
26
|
-
*/
|
|
27
|
-
class BsReducedMotionDirective {
|
|
28
|
-
constructor() {
|
|
29
|
-
this.platformId = inject(PLATFORM_ID);
|
|
30
|
-
this.destroyRef = inject(DestroyRef);
|
|
31
|
-
this._matches = signal(false, /* @ts-ignore */
|
|
32
|
-
...(ngDevMode ? [{ debugName: "_matches" }] : /* istanbul ignore next */ []));
|
|
33
|
-
this.matches = this._matches.asReadonly();
|
|
34
|
-
if (isPlatformBrowser(this.platformId) &&
|
|
35
|
-
typeof window !== 'undefined' &&
|
|
36
|
-
typeof window.matchMedia === 'function') {
|
|
37
|
-
const mql = window.matchMedia('(prefers-reduced-motion: reduce)');
|
|
38
|
-
this._matches.set(mql.matches);
|
|
39
|
-
const listener = (e) => this._matches.set(e.matches);
|
|
40
|
-
mql.addEventListener('change', listener);
|
|
41
|
-
this.destroyRef.onDestroy(() => mql.removeEventListener('change', listener));
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsReducedMotionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
45
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.0", type: BsReducedMotionDirective, isStandalone: true, selector: "[bsReducedMotion]", exportAs: ["bsReducedMotion"], ngImport: i0 }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsReducedMotionDirective, decorators: [{
|
|
48
|
-
type: Directive,
|
|
49
|
-
args: [{
|
|
50
|
-
selector: '[bsReducedMotion]',
|
|
51
|
-
exportAs: 'bsReducedMotion',
|
|
52
|
-
}]
|
|
53
|
-
}], ctorParameters: () => [] });
|
|
54
|
-
|
|
55
|
-
/**
|
|
56
|
-
* Generated bundle index. Do not edit.
|
|
57
|
-
*/
|
|
58
|
-
|
|
59
|
-
export { BsReducedMotionDirective };
|
|
60
|
-
//# sourceMappingURL=mintplayer-ng-bootstrap-reduced-motion.mjs.map
|