@mintplayer/ng-bootstrap 22.31.0 → 22.33.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/README.md +12 -11
- package/_bootstrap.scss +2 -4
- package/a11y/forms/package.json +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs +120 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y-forms.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -273
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +72 -139
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +34 -60
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +24 -27
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +39 -17
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +26 -6
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +4 -8
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +169 -240
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +9 -8
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +6 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -40
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +316 -211
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +26 -12
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +5 -5
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +87 -676
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +52 -119
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +16 -24
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +201 -197
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +11 -19
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +64 -123
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +19 -29
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs +8 -4
- package/fesm2022/mintplayer-ng-bootstrap-for.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +54 -35
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +72 -99
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -36
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +45 -28
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +214 -19
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +27 -12
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs +61 -245
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +92 -0
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +31 -15
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +49 -77
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +53 -393
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +11 -9
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +29 -49
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs +21 -12
- package/fesm2022/mintplayer-ng-bootstrap-parallax.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +12 -12
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +27 -49
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs +29 -15
- package/fesm2022/mintplayer-ng-bootstrap-playlist-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +57 -253
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +60 -335
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +48 -57
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +11 -15
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +235 -168
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +86 -44
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +80 -137
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs +29 -326
- package/fesm2022/mintplayer-ng-bootstrap-resizable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -22
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -171
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +12 -10
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +52 -108
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +9 -9
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +25 -11
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +37 -32
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -99
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +31 -30
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs +67 -306
- package/fesm2022/mintplayer-ng-bootstrap-tile-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +14 -15
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +109 -143
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +51 -154
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +9 -11
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +11 -13
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +160 -232
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/nav/package.json +4 -0
- package/package.json +11 -28
- package/types/mintplayer-ng-bootstrap-a11y-forms.d.ts +64 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +3 -142
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +21 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +13 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +31 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +15 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +102 -76
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +24 -17
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +144 -92
- package/types/mintplayer-ng-bootstrap-close.d.ts +17 -5
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-color-picker.d.ts +42 -226
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +35 -17
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +23 -35
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +3 -7
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +3 -5
- package/types/mintplayer-ng-bootstrap-dock.d.ts +6 -8
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +122 -54
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +10 -20
- package/types/mintplayer-ng-bootstrap-file-upload.d.ts +62 -44
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +12 -15
- package/types/mintplayer-ng-bootstrap-for.d.ts +5 -5
- package/types/mintplayer-ng-bootstrap-form.d.ts +33 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +42 -21
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +31 -10
- package/types/mintplayer-ng-bootstrap-machine.d.ts +107 -5
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -84
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +52 -0
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +27 -38
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +5 -4
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -34
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +6 -7
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +36 -59
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +35 -18
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +12 -20
- package/types/mintplayer-ng-bootstrap-radio.d.ts +112 -84
- package/types/mintplayer-ng-bootstrap-range.d.ts +36 -13
- package/types/mintplayer-ng-bootstrap-rating.d.ts +33 -42
- package/types/mintplayer-ng-bootstrap-resizable.d.ts +24 -114
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +21 -37
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +19 -27
- package/types/mintplayer-ng-bootstrap-scrollspy.d.ts +26 -50
- package/types/mintplayer-ng-bootstrap-select.d.ts +9 -8
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +5 -7
- package/types/mintplayer-ng-bootstrap-spinner.d.ts +14 -7
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -13
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +23 -18
- package/types/mintplayer-ng-bootstrap-tile-manager.d.ts +94 -154
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +23 -25
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +4 -8
- package/types/mintplayer-ng-bootstrap-toast.d.ts +94 -55
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +34 -33
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +14 -16
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +12 -13
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +109 -133
- package/calendar-month/package.json +0 -4
- package/container/package.json +0 -4
- package/dropdown-divider/package.json +0 -4
- package/dropdown-menu/package.json +0 -4
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs +0 -136
- package/fesm2022/mintplayer-ng-bootstrap-calendar-month.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs +0 -18
- package/fesm2022/mintplayer-ng-bootstrap-container.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs +0 -23
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -161
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs +0 -32
- package/fesm2022/mintplayer-ng-bootstrap-has-overlay.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs +0 -31
- package/fesm2022/mintplayer-ng-bootstrap-no-noscript.mjs.map +0 -1
- package/has-overlay/package.json +0 -4
- package/no-noscript/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-calendar-month.d.ts +0 -54
- package/types/mintplayer-ng-bootstrap-container.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-dropdown-divider.d.ts +0 -8
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +0 -94
- package/types/mintplayer-ng-bootstrap-has-overlay.d.ts +0 -22
- package/types/mintplayer-ng-bootstrap-no-noscript.d.ts +0 -11
|
@@ -1,193 +1,70 @@
|
|
|
1
|
-
import { DOCUMENT } from '@angular/common';
|
|
2
1
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject,
|
|
2
|
+
import { inject, ElementRef, input, numberAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { scrollspyCore, scrollspyScopedStyles } from '@mintplayer/ui-core/scrollspy';
|
|
4
5
|
import { ROUTER_CONFIGURATION } from '@angular/router';
|
|
5
6
|
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
return [0, 0];
|
|
13
|
-
}
|
|
14
|
-
else if (Array.isArray(this.routerConfig.scrollOffset)) {
|
|
15
|
-
return this.routerConfig.scrollOffset;
|
|
16
|
-
}
|
|
17
|
-
else {
|
|
18
|
-
return this.routerConfig.scrollOffset();
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollOffsetService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
22
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollOffsetService, providedIn: 'root' }); }
|
|
23
|
-
}
|
|
24
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollOffsetService, decorators: [{
|
|
25
|
-
type: Injectable,
|
|
26
|
-
args: [{
|
|
27
|
-
providedIn: 'root'
|
|
28
|
-
}]
|
|
29
|
-
}] });
|
|
30
|
-
|
|
31
|
-
class BsScrollspyDirective {
|
|
32
|
-
constructor() {
|
|
33
|
-
this.element = inject(ElementRef);
|
|
34
|
-
}
|
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollspyDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
36
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsScrollspyDirective, isStandalone: true, selector: "[bsScrollspy]", ngImport: i0 }); }
|
|
37
|
-
}
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollspyDirective, decorators: [{
|
|
39
|
-
type: Directive,
|
|
40
|
-
args: [{
|
|
41
|
-
selector: '[bsScrollspy]',
|
|
42
|
-
}]
|
|
43
|
-
}] });
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
* The section the reader is in: the last one whose top has passed the trigger line, or the
|
|
47
|
-
* first when none has yet. -1 when there are no sections.
|
|
7
|
+
/*
|
|
8
|
+
* The Angular extension of the generated `bs-scrollspy` (PRD #437 D10 escape
|
|
9
|
+
* hatch): without an `offset` of its own, the trigger line sits where the
|
|
10
|
+
* router's `scrollOffset` puts an anchor (`withInMemoryScrolling`), so the
|
|
11
|
+
* active section and a clicked entry agree with the router's fragment
|
|
12
|
+
* scrolling under a fixed navbar. Without a router the offset is 0.
|
|
48
13
|
*/
|
|
49
|
-
function
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
14
|
+
function extendInputs(inputs) {
|
|
15
|
+
const scrollOffset = inject(ROUTER_CONFIGURATION, { optional: true })?.scrollOffset;
|
|
16
|
+
const routerOffset = () => {
|
|
17
|
+
if (!scrollOffset)
|
|
18
|
+
return 0;
|
|
19
|
+
return (Array.isArray(scrollOffset) ? scrollOffset : scrollOffset())[1];
|
|
20
|
+
};
|
|
21
|
+
return () => {
|
|
22
|
+
const value = inputs();
|
|
23
|
+
return value.offset ? value : { ...value, offset: routerOffset() };
|
|
24
|
+
};
|
|
53
25
|
}
|
|
26
|
+
|
|
27
|
+
// GENERATED from the scrollspy manifest (scrollspy) by @mintplayer/nx-component-compiler. Do not edit.
|
|
54
28
|
/**
|
|
55
|
-
*
|
|
56
|
-
*
|
|
57
|
-
*
|
|
58
|
-
* @param headerTop the section's current top, in viewport coordinates
|
|
59
|
-
* @param originTop where the trigger line sits: the container's top, or the fixed offset
|
|
60
|
-
* @param currentScroll the scroll position now
|
|
29
|
+
* A table of contents beside the content that follows the reader. The sections are the content's
|
|
30
|
+
* elements marked `data-scrollspy`; the active one is `aria-current="location"`. The list is built once
|
|
31
|
+
* hydrated (no-JS tier 2).
|
|
61
32
|
*/
|
|
62
|
-
function sectionScrollTop(headerTop, originTop, currentScroll) {
|
|
63
|
-
return headerTop - originTop + currentScroll + 1;
|
|
64
|
-
}
|
|
65
33
|
class BsScrollspyComponent {
|
|
34
|
+
#core;
|
|
66
35
|
constructor() {
|
|
67
|
-
|
|
68
|
-
this.
|
|
69
|
-
|
|
36
|
+
/** The host element. */
|
|
37
|
+
this.elementRef = inject(ElementRef);
|
|
38
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
39
|
+
this.hostAttrs = useHostAttrs();
|
|
40
|
+
/** Names the section navigation; a consumer `aria-label` wins. */
|
|
41
|
+
this.label = input('Section navigation', /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
43
|
+
/** The element that scrolls; null finds the nearest scrolling ancestor, else the window. */
|
|
70
44
|
this.scrollContainer = input(null, /* @ts-ignore */
|
|
71
45
|
...(ngDevMode ? [{ debugName: "scrollContainer" }] : /* istanbul ignore next */ []));
|
|
72
|
-
/**
|
|
73
|
-
this.
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
...(ngDevMode ? [{ debugName: "contentInit" }] : /* istanbul ignore next */ []));
|
|
79
|
-
this.directives = contentChildren(BsScrollspyDirective, { ...(ngDevMode ? { debugName: "directives" } : /* istanbul ignore next */ {}), descendants: true });
|
|
80
|
-
this.anchors = viewChildren('anchor', /* @ts-ignore */
|
|
81
|
-
...(ngDevMode ? [{ debugName: "anchors" }] : /* istanbul ignore next */ []));
|
|
82
|
-
this.activeDirective = signal(null, /* @ts-ignore */
|
|
83
|
-
...(ngDevMode ? [{ debugName: "activeDirective" }] : /* istanbul ignore next */ []));
|
|
84
|
-
this.resolvedScrollTarget = computed(() => {
|
|
85
|
-
if (typeof window === 'undefined')
|
|
86
|
-
return null;
|
|
87
|
-
if (!this.viewInit())
|
|
88
|
-
return null;
|
|
89
|
-
const explicit = this.scrollContainer();
|
|
90
|
-
if (explicit)
|
|
91
|
-
return explicit;
|
|
92
|
-
return this.findScrollableAncestor(this.hostRef.nativeElement) ?? window;
|
|
93
|
-
}, /* @ts-ignore */
|
|
94
|
-
...(ngDevMode ? [{ debugName: "resolvedScrollTarget" }] : /* istanbul ignore next */ []));
|
|
95
|
-
effect(() => {
|
|
96
|
-
const viewInit = this.viewInit();
|
|
97
|
-
const contentInit = this.contentInit();
|
|
98
|
-
if (viewInit && contentInit) {
|
|
99
|
-
this.scrollToCurrentInSpy();
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
effect((onCleanup) => {
|
|
103
|
-
const target = this.resolvedScrollTarget();
|
|
104
|
-
this.directives();
|
|
105
|
-
if (!target)
|
|
106
|
-
return;
|
|
107
|
-
const handler = () => {
|
|
108
|
-
this.setActiveDirective();
|
|
109
|
-
this.scrollToCurrentInSpy();
|
|
110
|
-
};
|
|
111
|
-
target.addEventListener('scroll', handler, { passive: true });
|
|
112
|
-
handler();
|
|
113
|
-
onCleanup(() => target.removeEventListener('scroll', handler));
|
|
114
|
-
});
|
|
115
|
-
}
|
|
116
|
-
ngAfterViewInit() {
|
|
117
|
-
this.viewInit.set(true);
|
|
118
|
-
}
|
|
119
|
-
ngAfterContentInit() {
|
|
120
|
-
this.contentInit.set(true);
|
|
121
|
-
}
|
|
122
|
-
setActiveDirective() {
|
|
123
|
-
const directives = this.directives();
|
|
124
|
-
const tops = directives.map((d) => d.element.nativeElement.getBoundingClientRect().y);
|
|
125
|
-
this.activeDirective.set(directives[activeSectionIndex(tops, this.getTriggerY())] ?? null);
|
|
126
|
-
}
|
|
127
|
-
scrollToCurrentInSpy() {
|
|
128
|
-
if ((typeof window !== 'undefined') && (window.innerWidth >= 768)) {
|
|
129
|
-
if (this.activeDirective()) {
|
|
130
|
-
const index = this.directives().findIndex((v) => v === this.activeDirective());
|
|
131
|
-
const anchor = this.anchors()[index];
|
|
132
|
-
if (anchor && anchor.nativeElement.parentElement) {
|
|
133
|
-
// Optional-chain so jsdom (no scrollIntoView impl) does not crash
|
|
134
|
-
// when the effect calls this synchronously during component init.
|
|
135
|
-
anchor.nativeElement.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
scrollToHeader(directive) {
|
|
141
|
-
if (typeof window === 'undefined')
|
|
142
|
-
return;
|
|
143
|
-
const target = this.resolvedScrollTarget();
|
|
144
|
-
if (!target)
|
|
145
|
-
return;
|
|
146
|
-
const header = directive.element.nativeElement;
|
|
147
|
-
const headerTop = header.getBoundingClientRect().top;
|
|
148
|
-
// `instanceof HTMLElement` narrows TS to HTMLElement in the true branch
|
|
149
|
-
// and is robust in jsdom (which implements HTMLElement). The previous
|
|
150
|
-
// `instanceof Window` check failed in jsdom due to a realm mismatch.
|
|
151
|
-
if (target instanceof HTMLElement) {
|
|
152
|
-
target.scrollTo({ top: sectionScrollTop(headerTop, target.getBoundingClientRect().top, target.scrollTop), behavior: 'smooth' });
|
|
153
|
-
}
|
|
154
|
-
else {
|
|
155
|
-
const offsetY = this.scrollOffsetService.getScrollOffset()[1];
|
|
156
|
-
window.scrollTo({ top: sectionScrollTop(headerTop, offsetY, window.scrollY), behavior: 'smooth' });
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
getTriggerY() {
|
|
160
|
-
const target = this.resolvedScrollTarget();
|
|
161
|
-
// +1 in both branches so a directive landing exactly on the trigger line
|
|
162
|
-
// (e.g. right after scrollToHeader completes) is counted as "above" it,
|
|
163
|
-
// matching the +1 that scrollToHeader adds when computing the scroll target.
|
|
164
|
-
if (target instanceof HTMLElement) {
|
|
165
|
-
return target.getBoundingClientRect().top + 1;
|
|
166
|
-
}
|
|
167
|
-
return this.scrollOffsetService.getScrollOffset()[1] + 1;
|
|
168
|
-
}
|
|
169
|
-
findScrollableAncestor(el) {
|
|
170
|
-
// Walk the element + its ancestors. The host itself participates so a
|
|
171
|
-
// consumer can opt in by setting overflow-y: auto on <bs-scrollspy>.
|
|
172
|
-
// We rely only on the declared overflow style (no scrollHeight check) —
|
|
173
|
-
// a container declared overflow: auto is the consumer's intended scroll
|
|
174
|
-
// target whether or not the content currently exceeds the box.
|
|
175
|
-
if (!el)
|
|
176
|
-
return null;
|
|
177
|
-
const overflowY = getComputedStyle(el).overflowY;
|
|
178
|
-
return overflowY === 'auto' || overflowY === 'scroll' ? el : this.findScrollableAncestor(el.parentElement);
|
|
46
|
+
/** Pixels between the viewport top and the trigger line when the window scrolls (a fixed navbar). */
|
|
47
|
+
this.offset = input(0, { ...(ngDevMode ? { debugName: "offset" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
48
|
+
this.#core = useCore(scrollspyCore, { inputs: extendInputs(() => ({ label: this.label(), scrollContainer: this.scrollContainer(), offset: this.offset() })), idPrefix: 'bs-scrollspy', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'scrollspy' }) });
|
|
49
|
+
/** The template's props. */
|
|
50
|
+
this.props = this.#core.props;
|
|
51
|
+
useScopedStyles('scrollspy', scrollspyScopedStyles);
|
|
179
52
|
}
|
|
180
53
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollspyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
181
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsScrollspyComponent, isStandalone: true, selector: "bs-scrollspy", inputs: {
|
|
54
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsScrollspyComponent, isStandalone: true, selector: "bs-scrollspy", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, scrollContainer: { classPropertyName: "scrollContainer", publicName: "scrollContainer", isSignal: true, isRequired: false, transformFunction: null }, offset: { classPropertyName: "offset", publicName: "offset", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/scrollspy/src/templates/scrollspy.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"scrollspy\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ul data-mps=\"scrollspy\" [mpProps]=\"p_view.list\">\n @for (entry of p_view.entries; track entry.key) {\n <li data-mps=\"scrollspy\">\n <button data-mps=\"scrollspy\" [mpProps]=\"entry.button\">\n {{ entry.text }}\n </button>\n </li>\n }\n </ul>\n</nav>\n<div data-mps=\"scrollspy\" [mpProps]=\"p_view.content\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
182
55
|
}
|
|
183
56
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsScrollspyComponent, decorators: [{
|
|
184
57
|
type: Component,
|
|
185
|
-
args: [{ selector: 'bs-scrollspy', changeDetection: ChangeDetectionStrategy.OnPush, template: "<nav
|
|
186
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
58
|
+
args: [{ selector: 'bs-scrollspy', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/scrollspy/src/templates/scrollspy.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"scrollspy\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ul data-mps=\"scrollspy\" [mpProps]=\"p_view.list\">\n @for (entry of p_view.entries; track entry.key) {\n <li data-mps=\"scrollspy\">\n <button data-mps=\"scrollspy\" [mpProps]=\"entry.button\">\n {{ entry.text }}\n </button>\n </li>\n }\n </ul>\n</nav>\n<div data-mps=\"scrollspy\" [mpProps]=\"p_view.content\">\n <ng-content />\n</div>\n" }]
|
|
59
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], scrollContainer: [{ type: i0.Input, args: [{ isSignal: true, alias: "scrollContainer", required: false }] }], offset: [{ type: i0.Input, args: [{ isSignal: true, alias: "offset", required: false }] }] } });
|
|
60
|
+
|
|
61
|
+
// GENERATED from the scrollspy manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
62
|
+
|
|
63
|
+
// Generated from @mintplayer/ui-core/scrollspy (PRD #437 D10).
|
|
187
64
|
|
|
188
65
|
/**
|
|
189
66
|
* Generated bundle index. Do not edit.
|
|
190
67
|
*/
|
|
191
68
|
|
|
192
|
-
export {
|
|
69
|
+
export { BsScrollspyComponent };
|
|
193
70
|
//# sourceMappingURL=mintplayer-ng-bootstrap-scrollspy.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-scrollspy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/services/scroll-offset/scroll-offset.service.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/directives/scrollspy.directive.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/component/scrollspy.component.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/component/scrollspy.component.html","../../../../libs/mintplayer-ng-bootstrap/scrollspy/mintplayer-ng-bootstrap-scrollspy.ts"],"sourcesContent":["import { inject, Injectable } from '@angular/core';\nimport { ExtraOptions, ROUTER_CONFIGURATION } from '@angular/router';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class BsScrollOffsetService {\n\n private routerConfig = inject<ExtraOptions>(ROUTER_CONFIGURATION);\n\n getScrollOffset(): [number, number] {\n if (!this.routerConfig.scrollOffset) {\n return [0, 0];\n } else if (Array.isArray(this.routerConfig.scrollOffset)) {\n return this.routerConfig.scrollOffset\n } else {\n return this.routerConfig.scrollOffset();\n }\n }\n}\n","import { Directive, ElementRef, inject } from '@angular/core';\n\n@Directive({\n selector: '[bsScrollspy]',\n})\nexport class BsScrollspyDirective {\n element = inject(ElementRef);\n}\n","import { DOCUMENT } from '@angular/common';\nimport { AfterContentInit, AfterViewInit, ChangeDetectionStrategy, Component, computed, contentChildren, effect, ElementRef, inject, input, signal, viewChildren } from '@angular/core';\nimport { BsScrollOffsetService } from '../services/scroll-offset/scroll-offset.service';\nimport { BsScrollspyDirective } from '../directives/scrollspy.directive';\n\ntype ScrollTarget = HTMLElement | Window;\n\n/**\n * The section the reader is in: the last one whose top has passed the trigger line, or the\n * first when none has yet. -1 when there are no sections.\n */\nexport function activeSectionIndex(sectionTops: readonly number[], triggerY: number): number {\n if (sectionTops.length === 0) return -1;\n return sectionTops.reduce((active, top, index) => (top < triggerY ? index : active), 0);\n}\n\n/**\n * The scroll position that puts a section's top 1px past the trigger line. The extra pixel\n * makes the section count as passed (see getTriggerY), so it becomes the active one.\n *\n * @param headerTop the section's current top, in viewport coordinates\n * @param originTop where the trigger line sits: the container's top, or the fixed offset\n * @param currentScroll the scroll position now\n */\nexport function sectionScrollTop(headerTop: number, originTop: number, currentScroll: number): number {\n return headerTop - originTop + currentScroll + 1;\n}\n\n@Component({\n selector: 'bs-scrollspy',\n templateUrl: './scrollspy.component.html',\n styleUrls: ['./scrollspy.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsScrollspyComponent implements AfterViewInit, AfterContentInit {\n\n private scrollOffsetService = inject(BsScrollOffsetService);\n private hostRef = inject<ElementRef<HTMLElement>>(ElementRef);\n doc = inject<Document>(DOCUMENT);\n\n readonly scrollContainer = input<HTMLElement | null>(null);\n /** Accessible name of the section navigation. Override to translate. */\n readonly ariaLabel = input('Section navigation');\n\n private viewInit = signal<boolean>(false);\n private contentInit = signal<boolean>(false);\n\n readonly directives = contentChildren(BsScrollspyDirective, { descendants: true });\n readonly anchors = viewChildren<ElementRef<HTMLButtonElement>>('anchor');\n\n activeDirective = signal<BsScrollspyDirective | null>(null);\n\n private resolvedScrollTarget = computed<ScrollTarget | null>(() => {\n if (typeof window === 'undefined') return null;\n if (!this.viewInit()) return null;\n const explicit = this.scrollContainer();\n if (explicit) return explicit;\n return this.findScrollableAncestor(this.hostRef.nativeElement) ?? window;\n });\n\n constructor() {\n effect(() => {\n const viewInit = this.viewInit();\n const contentInit = this.contentInit();\n if (viewInit && contentInit) {\n this.scrollToCurrentInSpy();\n }\n });\n\n effect((onCleanup) => {\n const target = this.resolvedScrollTarget();\n this.directives();\n if (!target) return;\n\n const handler = () => {\n this.setActiveDirective();\n this.scrollToCurrentInSpy();\n };\n target.addEventListener('scroll', handler, { passive: true });\n handler();\n\n onCleanup(() => target.removeEventListener('scroll', handler));\n });\n }\n\n ngAfterViewInit() {\n this.viewInit.set(true);\n }\n\n ngAfterContentInit() {\n this.contentInit.set(true);\n }\n\n setActiveDirective() {\n const directives = this.directives();\n const tops = directives.map((d) => d.element.nativeElement.getBoundingClientRect().y);\n this.activeDirective.set(directives[activeSectionIndex(tops, this.getTriggerY())] ?? null);\n }\n\n scrollToCurrentInSpy() {\n if ((typeof window !== 'undefined') && (window.innerWidth >= 768)) {\n if (this.activeDirective()) {\n const index = this.directives().findIndex((v) => v === this.activeDirective());\n const anchor = this.anchors()[index];\n if (anchor && anchor.nativeElement.parentElement) {\n // Optional-chain so jsdom (no scrollIntoView impl) does not crash\n // when the effect calls this synchronously during component init.\n anchor.nativeElement.scrollIntoView?.({ block: 'nearest', inline: 'nearest' });\n }\n }\n }\n }\n\n scrollToHeader(directive: BsScrollspyDirective) {\n if (typeof window === 'undefined') return;\n const target = this.resolvedScrollTarget();\n if (!target) return;\n\n const header = directive.element.nativeElement;\n const headerTop = header.getBoundingClientRect().top;\n\n // `instanceof HTMLElement` narrows TS to HTMLElement in the true branch\n // and is robust in jsdom (which implements HTMLElement). The previous\n // `instanceof Window` check failed in jsdom due to a realm mismatch.\n if (target instanceof HTMLElement) {\n target.scrollTo({ top: sectionScrollTop(headerTop, target.getBoundingClientRect().top, target.scrollTop), behavior: 'smooth' });\n } else {\n const offsetY = this.scrollOffsetService.getScrollOffset()[1];\n window.scrollTo({ top: sectionScrollTop(headerTop, offsetY, window.scrollY), behavior: 'smooth' });\n }\n }\n\n private getTriggerY(): number {\n const target = this.resolvedScrollTarget();\n // +1 in both branches so a directive landing exactly on the trigger line\n // (e.g. right after scrollToHeader completes) is counted as \"above\" it,\n // matching the +1 that scrollToHeader adds when computing the scroll target.\n if (target instanceof HTMLElement) {\n return target.getBoundingClientRect().top + 1;\n }\n return this.scrollOffsetService.getScrollOffset()[1] + 1;\n }\n\n private findScrollableAncestor(el: HTMLElement | null): HTMLElement | null {\n // Walk the element + its ancestors. The host itself participates so a\n // consumer can opt in by setting overflow-y: auto on <bs-scrollspy>.\n // We rely only on the declared overflow style (no scrollHeight check) —\n // a container declared overflow: auto is the consumer's intended scroll\n // target whether or not the content currently exceeds the box.\n if (!el) return null;\n const overflowY = getComputedStyle(el).overflowY;\n return overflowY === 'auto' || overflowY === 'scroll' ? el : this.findScrollableAncestor(el.parentElement);\n }\n}\n","<nav class=\"spy\" [attr.aria-label]=\"ariaLabel()\">\n <ul class=\"text-muted\">\n @for (dir of directives(); track dir; let i = $index) {\n <li>\n <button type=\"button\"\n [attr.data-index]=\"i\"\n class=\"btn btn-link cursor-pointer p-0 text-start text-decoration-none\"\n [class]=\"'nav' + dir.element.nativeElement.tagName\"\n [class.fw-bold]=\"activeDirective()?.element === dir.element\"\n [attr.aria-current]=\"activeDirective()?.element === dir.element ? 'location' : null\"\n (click)=\"scrollToHeader(dir)\"\n #anchor>\n {{ dir.element.nativeElement.textContent }}\n </button>\n </li>\n }\n </ul>\n</nav>\n<div class=\"content\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;MAMa,qBAAqB,CAAA;AAHlC,IAAA,WAAA,GAAA;AAKU,QAAA,IAAA,CAAA,YAAY,GAAG,MAAM,CAAe,oBAAoB,CAAC;AAWlE,IAAA;IATC,eAAe,GAAA;AACb,QAAA,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;AACnC,YAAA,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;QACf;aAAO,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,YAAY,CAAC,EAAE;AACxD,YAAA,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY;QACvC;aAAO;AACL,YAAA,OAAO,IAAI,CAAC,YAAY,CAAC,YAAY,EAAE;QACzC;IACF;8GAZW,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;AAArB,IAAA,SAAA,IAAA,CAAA,KAAA,GAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,qBAAqB,cAFpB,MAAM,EAAA,CAAA,CAAA;;2FAEP,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBAHjC,UAAU;AAAC,YAAA,IAAA,EAAA,CAAA;AACV,oBAAA,UAAU,EAAE;AACb,iBAAA;;;MCAY,oBAAoB,CAAA;AAHjC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,UAAU,CAAC;AAC7B,IAAA;8GAFY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CA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,EAAA,EAAA,cAAA,EAAA,EAAA,eAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,SAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,WAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,UAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,oBAAoB,QAAE,EAAE,WAAW,EAAE,IAAI,EAAE,kEAClB,QAAQ,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhDzE;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-scrollspy.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/scrollspy.angular.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/generated/scrollspy.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/generated/scrollspy.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/scrollspy/mintplayer-ng-bootstrap-scrollspy.ts"],"sourcesContent":["import { inject } from '@angular/core';\nimport { ROUTER_CONFIGURATION } from '@angular/router';\nimport type { ScrollspyInputs } from '@mintplayer/ui-core/scrollspy';\n\n/*\n * The Angular extension of the generated `bs-scrollspy` (PRD #437 D10 escape\n * hatch): without an `offset` of its own, the trigger line sits where the\n * router's `scrollOffset` puts an anchor (`withInMemoryScrolling`), so the\n * active section and a clicked entry agree with the router's fragment\n * scrolling under a fixed navbar. Without a router the offset is 0.\n */\nexport function extendInputs(inputs: () => ScrollspyInputs): () => ScrollspyInputs {\n const scrollOffset = inject(ROUTER_CONFIGURATION, { optional: true })?.scrollOffset;\n const routerOffset = (): number => {\n if (!scrollOffset) return 0;\n return (Array.isArray(scrollOffset) ? scrollOffset : scrollOffset())[1];\n };\n return () => {\n const value = inputs();\n return value.offset ? value : { ...value, offset: routerOffset() };\n };\n}\n","// GENERATED from the scrollspy manifest (scrollspy) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, numberAttribute } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { scrollspyCore, type ScrollspyInputs, scrollspyScopedStyles } from '@mintplayer/ui-core/scrollspy';\nimport { extendInputs as ext_extendInputs } from '../scrollspy.angular';\n\n/**\n * A table of contents beside the content that follows the reader. The sections are the content's\n * elements marked `data-scrollspy`; the active one is `aria-current=\"location\"`. The list is built once\n * hydrated (no-JS tier 2).\n */\n@Component({\n selector: 'bs-scrollspy',\n templateUrl: './scrollspy.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsScrollspyComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n /** Names the section navigation; a consumer `aria-label` wins. */\n readonly label = input<ScrollspyInputs['label']>('Section navigation');\n /** The element that scrolls; null finds the nearest scrolling ancestor, else the window. */\n readonly scrollContainer = input<ScrollspyInputs['scrollContainer']>(null);\n /** Pixels between the viewport top and the trigger line when the window scrolls (a fixed navbar). */\n readonly offset = input<ScrollspyInputs['offset'], unknown>(0, { transform: (v: unknown) => numberAttribute(v) as ScrollspyInputs['offset'] });\n\n readonly #core = useCore(scrollspyCore, { inputs: ext_extendInputs(() => ({ label: this.label(), scrollContainer: this.scrollContainer(), offset: this.offset() })), idPrefix: 'bs-scrollspy', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'scrollspy' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('scrollspy', scrollspyScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/scrollspy/src/templates/scrollspy.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"scrollspy\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ul data-mps=\"scrollspy\" [mpProps]=\"p_view.list\">\n @for (entry of p_view.entries; track entry.key) {\n <li data-mps=\"scrollspy\">\n <button data-mps=\"scrollspy\" [mpProps]=\"entry.button\">\n {{ entry.text }}\n </button>\n </li>\n }\n </ul>\n</nav>\n<div data-mps=\"scrollspy\" [mpProps]=\"p_view.content\">\n <ng-content />\n</div>\n","// GENERATED from the scrollspy manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsScrollspyComponent } from './scrollspy.component.generated';\n","// Generated from @mintplayer/ui-core/scrollspy (PRD #437 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs"],"mappings":";;;;;;AAIA;;;;;;AAMG;AACG,SAAU,YAAY,CAAC,MAA6B,EAAA;AACxD,IAAA,MAAM,YAAY,GAAG,MAAM,CAAC,oBAAoB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,EAAE,YAAY;IACnF,MAAM,YAAY,GAAG,MAAa;AAChC,QAAA,IAAI,CAAC,YAAY;AAAE,YAAA,OAAO,CAAC;QAC3B,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,YAAY,CAAC,GAAG,YAAY,GAAG,YAAY,EAAE,EAAE,CAAC,CAAC;AACzE,IAAA,C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-
import { inject, ElementRef, input, signal, computed, forwardRef, Directive, Renderer2, effect, TemplateRef, booleanAttribute, numberAttribute, model,
|
|
2
|
+
import { inject, ElementRef, input, signal, computed, forwardRef, Directive, Renderer2, effect, TemplateRef, booleanAttribute, numberAttribute, model, contentChild, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
3
|
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
-
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
5
|
import { syncSelection, selectCore, selectScopedStyles } from '@mintplayer/ui-core/select';
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
|
|
7
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
8
|
+
import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
8
9
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
9
10
|
|
|
10
11
|
/**
|
|
@@ -225,6 +226,8 @@ class BsSelectComponent {
|
|
|
225
226
|
constructor() {
|
|
226
227
|
/** The host element. */
|
|
227
228
|
this.elementRef = inject(ElementRef);
|
|
229
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
230
|
+
this.hostAttrs = useHostAttrs();
|
|
228
231
|
this.size = input('md', /* @ts-ignore */
|
|
229
232
|
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
230
233
|
this.multiple = input(false, { ...(ngDevMode ? { debugName: "multiple" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
@@ -244,25 +247,24 @@ class BsSelectComponent {
|
|
|
244
247
|
...(ngDevMode ? [{ debugName: "values" }] : /* istanbul ignore next */ []));
|
|
245
248
|
this.options = input(/* @ts-ignore */
|
|
246
249
|
...(ngDevMode ? [undefined, { debugName: "options" }] : /* istanbul ignore next */ []));
|
|
247
|
-
/** The user picked: the value, and every value of a multiple select. */
|
|
248
|
-
this.valuechange = output();
|
|
249
250
|
this.optionSlot = contentChild(BsSelectOptionDirective, /* @ts-ignore */
|
|
250
251
|
...(ngDevMode ? [{ debugName: "optionSlot" }] : /* istanbul ignore next */ []));
|
|
251
252
|
/** The template's named slots. */
|
|
252
253
|
this.slots = computed(() => ({ option: this.optionSlot()?.templateRef }), /* @ts-ignore */
|
|
253
254
|
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
254
|
-
this.#core = useCore(selectCore, { inputs: extendInputs(() => ({ size: this.size(), multiple: this.multiple(), numberVisible: this.numberVisible(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value(), values: this.values(), options: this.options() })), idPrefix: 'bs-select',
|
|
255
|
+
this.#core = useCore(selectCore, { inputs: extendInputs(() => ({ size: this.size(), multiple: this.multiple(), numberVisible: this.numberVisible(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value(), values: this.values(), options: this.options() })), idPrefix: 'bs-select', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'select' }), models: { value: this.value, values: this.values } });
|
|
255
256
|
/** The template's props. */
|
|
256
257
|
this.props = this.#core.props;
|
|
258
|
+
useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
|
|
257
259
|
useScopedStyles('select', selectScopedStyles);
|
|
258
260
|
}
|
|
259
261
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
260
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", values: "valuesChange"
|
|
262
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSelectComponent, isStandalone: true, selector: "bs-select", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, multiple: { classPropertyName: "multiple", publicName: "multiple", isSignal: true, isRequired: false, transformFunction: null }, numberVisible: { classPropertyName: "numberVisible", publicName: "numberVisible", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, values: { classPropertyName: "values", publicName: "values", isSignal: true, isRequired: false, transformFunction: null }, options: { classPropertyName: "options", publicName: "options", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", values: "valuesChange" }, queries: [{ propertyName: "optionSlot", first: true, predicate: BsSelectOptionDirective, descendants: true, isSignal: true }], hostDirectives: [{ directive: BsSelectValueAccessor, inputs: ["compareWith", "compareWith"] }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\" [mpHostAttrs]=\"hostAttrs\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
261
263
|
}
|
|
262
264
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSelectComponent, decorators: [{
|
|
263
265
|
type: Component,
|
|
264
|
-
args: [{ selector: 'bs-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit:
|
|
265
|
-
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], numberVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberVisible", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }],
|
|
266
|
+
args: [{ selector: 'bs-select', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\" [mpHostAttrs]=\"hostAttrs\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
|
|
267
|
+
}], ctorParameters: () => [], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], multiple: [{ type: i0.Input, args: [{ isSignal: true, alias: "multiple", required: false }] }], numberVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numberVisible", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], values: [{ type: i0.Input, args: [{ isSignal: true, alias: "values", required: false }] }, { type: i0.Output, args: ["valuesChange"] }], options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: false }] }], optionSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsSelectOptionDirective), { isSignal: true }] }] } });
|
|
266
268
|
|
|
267
269
|
// GENERATED from the select manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
268
270
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/select/src/value-accessors/select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/select/mintplayer-ng-bootstrap-select.ts"],"sourcesContent":["import { computed, Directive, effect, ElementRef, forwardRef, inject, input, OnDestroy, Renderer2, signal, type Signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { syncSelection } from '@mintplayer/ui-core/select';\n\n/**\n * The `ControlValueAccessor` of `bs-select` (a host directive of the generated\n * component, see `select.angular.ts`). The select's value space is strings; an\n * `<option [ngValue]>` maps any value (an object, compared with `compareWith`)\n * to a stable `\"<id>: <value>\"` string, the way Angular's own\n * `SelectControlValueAccessor` does.\n */\n@Directive({\n selector: 'bs-select',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSelectValueAccessor), multi: true }],\n host: {\n // The native change bubbles out of the light-DOM <select>.\n '(change)': 'onNativeChange($event)',\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSelectValueAccessor implements ControlValueAccessor {\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n readonly compareWith = input<(value1: unknown, value2: unknown) => boolean>(Object.is);\n\n /** A form control drives the select: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n /** The form control's value, as the select's string. */\n readonly viewValue = signal<string | null>(null);\n readonly disabled = signal(false);\n /** The string the select shows, from the form control or the `value` input (set by `extendInputs`). */\n selected: Signal<string | null> = computed(() => this.viewValue());\n\n private value: unknown = null;\n private readonly optionMap = new Map<string, unknown>();\n private idCounter = 0;\n private onChange: (value: unknown) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n registerOnChange(fn: (value: unknown) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n writeValue(value: unknown): void {\n this.value = value;\n const valueString = value == null ? null : this.buildValueString(this.getOptionId(value), value);\n this.viewValue.set(valueString);\n // An option can get its value after the first render; re-select right away.\n const select = this.element.querySelector('select');\n if (select && !select.multiple) syncSelection(select, false, valueString, []);\n }\n\n onNativeChange(event: Event): void {\n const select = event.target;\n if (!(select instanceof HTMLSelectElement) || select.multiple) return;\n const valueString = select.value || null;\n this.viewValue.set(valueString);\n this.value = this.getOptionValue(valueString);\n this.onChange(this.value);\n }\n\n registerOption(): string {\n return (this.idCounter++).toString();\n }\n\n setOption(id: string, value: unknown): void {\n this.optionMap.set(id, value);\n this.writeValue(this.value);\n }\n\n removeOption(id: string): void {\n this.optionMap.delete(id);\n this.writeValue(this.value);\n }\n\n /** Re-select after an option's plain value changed. */\n refresh(): void {\n this.writeValue(this.value);\n }\n\n buildValueString(id: string | null, value: unknown): string {\n if (id == null) return `${value}`;\n const shown = value && typeof value === 'object' ? 'Object' : value;\n return `${id}: ${shown}`.slice(0, 50);\n }\n\n /** The id of the registered option whose value matches, or null when none does. */\n private getOptionId(value: unknown): string | null {\n const compare = this.compareWith();\n return [...this.optionMap.keys()].find((id) => compare(this.optionMap.get(id), value)) ?? null;\n }\n\n /**\n * An empty selection (a `<option value=\"\">` placeholder) reaches the model as\n * `null`; a plain `value` option is never registered and passes its string.\n */\n private getOptionValue(valueString: string | null): unknown {\n const id = valueString == null ? null : valueString.split(':')[0];\n return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n }\n}\n\n/**\n * Every `<option>` in a template that imports it: inside a `bs-select`, an\n * `[ngValue]` (any value) or a `[value]` (a string). It writes the `selected`\n * attribute for the selected option, so the server-rendered page shows the\n * selection with JavaScript off.\n */\n@Directive({\n selector: 'option',\n host: { '[attr.selected]': \"isSelected() ? '' : null\" },\n})\nexport class BsSelectOption implements OnDestroy {\n private readonly element = inject<ElementRef<HTMLOptionElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly select = inject(BsSelectValueAccessor, { optional: true, host: true });\n private readonly id = this.select?.registerOption() ?? '';\n\n readonly ngValue = input<unknown>(undefined);\n readonly value = input<string | undefined>(undefined);\n\n private readonly valueString = signal<string | null>(null);\n protected readonly isSelected = computed(() => !!this.select && this.valueString() !== null && this.select.selected() === this.valueString());\n\n constructor() {\n effect(() => {\n const ngValue = this.ngValue();\n if (ngValue === undefined || !this.select) return;\n this.setValue(this.select.buildValueString(this.id, ngValue));\n this.select.setOption(this.id, ngValue);\n });\n effect(() => {\n const value = this.value();\n if (value === undefined) return;\n this.setValue(value);\n this.select?.refresh();\n });\n }\n\n private setValue(value: string): void {\n // The attribute, so the server-rendered option carries it too.\n this.renderer.setAttribute(this.element, 'value', value);\n this.valueString.set(value);\n }\n\n ngOnDestroy(): void {\n this.select?.removeOption(this.id);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { SelectInputs } from '@mintplayer/ui-core/select';\nimport { BsSelectValueAccessor } from './value-accessors/select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state, and its validity reaches the select's ARIA and message.\n */\n\nexport const hostDirectives = [\n { directive: BsSelectValueAccessor, inputs: ['compareWith'] },\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SelectInputs): () => SelectInputs {\n const accessor = inject(BsSelectValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n const merged = computed<SelectInputs>(() => {\n const value = inputs();\n const bound = accessor.bound();\n return {\n ...value,\n value: bound ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n accessor.selected = computed(() => merged().value);\n return merged;\n}\n","// GENERATED from the select manifest (select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type SelectChangeEventDetail, selectCore, type SelectInputs, type SelectOption, selectScopedStyles } from '@mintplayer/ui-core/select';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../select.angular';\n\n/** The `option` slot of `<bs-select>`: `<ng-template bsSelectOption>` or `*bsSelectOption`. */\n@Directive({ selector: '[bsSelectOption]' })\nexport class BsSelectOptionDirective {\n readonly templateRef = inject<TemplateRef<{ option: SelectOption } & { $implicit: { option: SelectOption } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsSelectOptionDirective, ctx: unknown): ctx is { option: SelectOption } & { $implicit: { option: SelectOption } } {\n return true;\n }\n}\n\n/**\n * Bootstrap `.form-select` around a native `<select>` (#437): it works and submits with JavaScript off.\n *\n * Give it `options`, or put `<option>` / `<optgroup>` children inside. `value` (or `values` when\n * `multiple`) is two-way. An `aria-label` on the component names the select; so does `inputLabel`.\n * The `option` slot renders rich option content where the engine supports customizable select.\n */\n@Component({\n selector: 'bs-select',\n templateUrl: './select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly size = input<SelectInputs['size']>('md');\n readonly multiple = input<SelectInputs['multiple'], unknown>(false, { transform: booleanAttribute });\n readonly numberVisible = input<SelectInputs['numberVisible'], unknown>(undefined, { transform: (v: unknown) => numberAttribute(v) as SelectInputs['numberVisible'] });\n readonly disabled = input<SelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SelectInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SelectInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SelectInputs['errorText']>();\n readonly name = input<SelectInputs['name']>();\n readonly inputLabel = input<SelectInputs['inputLabel']>();\n readonly value = model<SelectInputs['value']>(null);\n readonly values = model<SelectInputs['values']>([]);\n readonly options = input<SelectInputs['options']>();\n /** The user picked: the value, and every value of a multiple select. */\n readonly valuechange = output<SelectChangeEventDetail>();\n\n private readonly optionSlot = contentChild(BsSelectOptionDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ option: this.optionSlot()?.templateRef }));\n readonly #core = useCore(selectCore, { inputs: ext_extendInputs(() => ({ size: this.size(), multiple: this.multiple(), numberVisible: this.numberVisible(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value(), values: this.values(), options: this.options() })), idPrefix: 'bs-select', outputs: { valueChange: this.valuechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'select' }), models: { value: this.value, values: this.values } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('select', selectScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: { option: o.option }, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSelectComponent, BsSelectOptionDirective } from './select.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;AAIA;;;;;;AAMG;MAUU,qBAAqB,CAAA;AATlC,IAAA,WAAA,GAAA;AAUmB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AAE3E,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgD,MAAM,CAAC,EAAE;wFAAC;;QAG7E,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;;QAErB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAgB,IAAI;sFAAC;QACvC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;;QAEjC,IAAA,CAAA,QAAQ,GAA0B,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE;qFAAC;QAE1D,IAAA,CAAA,KAAK,GAAY,IAAI;AACZ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gB,2EAAE,gBAAgB,EAAA,QAAA,EAAA,oBAAA,EAAA,MAAA,EAAA,CAAA,yBAAA,EAAA,kBAAA,EAAA,0BAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIjC,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAP7B,SAAS;+BACE,WAAW,EAAA,OAAA,EAEZ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC5B,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,41DAAA,EAAA;+3CAqBS,uBAAuB,CAAA,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEjDpE;;ACAA;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-select.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/select/src/value-accessors/select-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/select.angular.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/select.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/select.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/select/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/select/mintplayer-ng-bootstrap-select.ts"],"sourcesContent":["import { computed, Directive, effect, ElementRef, forwardRef, inject, input, OnDestroy, Renderer2, signal, type Signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { syncSelection } from '@mintplayer/ui-core/select';\n\n/**\n * The `ControlValueAccessor` of `bs-select` (a host directive of the generated\n * component, see `select.angular.ts`). The select's value space is strings; an\n * `<option [ngValue]>` maps any value (an object, compared with `compareWith`)\n * to a stable `\"<id>: <value>\"` string, the way Angular's own\n * `SelectControlValueAccessor` does.\n */\n@Directive({\n selector: 'bs-select',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSelectValueAccessor), multi: true }],\n host: {\n // The native change bubbles out of the light-DOM <select>.\n '(change)': 'onNativeChange($event)',\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSelectValueAccessor implements ControlValueAccessor {\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n readonly compareWith = input<(value1: unknown, value2: unknown) => boolean>(Object.is);\n\n /** A form control drives the select: its `viewValue` wins over the `value` input. */\n readonly bound = signal(false);\n /** The form control's value, as the select's string. */\n readonly viewValue = signal<string | null>(null);\n readonly disabled = signal(false);\n /** The string the select shows, from the form control or the `value` input (set by `extendInputs`). */\n selected: Signal<string | null> = computed(() => this.viewValue());\n\n private value: unknown = null;\n private readonly optionMap = new Map<string, unknown>();\n private idCounter = 0;\n private onChange: (value: unknown) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n registerOnChange(fn: (value: unknown) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n\n writeValue(value: unknown): void {\n this.value = value;\n const valueString = value == null ? null : this.buildValueString(this.getOptionId(value), value);\n this.viewValue.set(valueString);\n // An option can get its value after the first render; re-select right away.\n const select = this.element.querySelector('select');\n if (select && !select.multiple) syncSelection(select, false, valueString, []);\n }\n\n onNativeChange(event: Event): void {\n const select = event.target;\n if (!(select instanceof HTMLSelectElement) || select.multiple) return;\n const valueString = select.value || null;\n this.viewValue.set(valueString);\n this.value = this.getOptionValue(valueString);\n this.onChange(this.value);\n }\n\n registerOption(): string {\n return (this.idCounter++).toString();\n }\n\n setOption(id: string, value: unknown): void {\n this.optionMap.set(id, value);\n this.writeValue(this.value);\n }\n\n removeOption(id: string): void {\n this.optionMap.delete(id);\n this.writeValue(this.value);\n }\n\n /** Re-select after an option's plain value changed. */\n refresh(): void {\n this.writeValue(this.value);\n }\n\n buildValueString(id: string | null, value: unknown): string {\n if (id == null) return `${value}`;\n const shown = value && typeof value === 'object' ? 'Object' : value;\n return `${id}: ${shown}`.slice(0, 50);\n }\n\n /** The id of the registered option whose value matches, or null when none does. */\n private getOptionId(value: unknown): string | null {\n const compare = this.compareWith();\n return [...this.optionMap.keys()].find((id) => compare(this.optionMap.get(id), value)) ?? null;\n }\n\n /**\n * An empty selection (a `<option value=\"\">` placeholder) reaches the model as\n * `null`; a plain `value` option is never registered and passes its string.\n */\n private getOptionValue(valueString: string | null): unknown {\n const id = valueString == null ? null : valueString.split(':')[0];\n return id !== null && this.optionMap.has(id) ? this.optionMap.get(id) : valueString;\n }\n}\n\n/**\n * Every `<option>` in a template that imports it: inside a `bs-select`, an\n * `[ngValue]` (any value) or a `[value]` (a string). It writes the `selected`\n * attribute for the selected option, so the server-rendered page shows the\n * selection with JavaScript off.\n */\n@Directive({\n selector: 'option',\n host: { '[attr.selected]': \"isSelected() ? '' : null\" },\n})\nexport class BsSelectOption implements OnDestroy {\n private readonly element = inject<ElementRef<HTMLOptionElement>>(ElementRef).nativeElement;\n private readonly renderer = inject(Renderer2);\n private readonly select = inject(BsSelectValueAccessor, { optional: true, host: true });\n private readonly id = this.select?.registerOption() ?? '';\n\n readonly ngValue = input<unknown>(undefined);\n readonly value = input<string | undefined>(undefined);\n\n private readonly valueString = signal<string | null>(null);\n protected readonly isSelected = computed(() => !!this.select && this.valueString() !== null && this.select.selected() === this.valueString());\n\n constructor() {\n effect(() => {\n const ngValue = this.ngValue();\n if (ngValue === undefined || !this.select) return;\n this.setValue(this.select.buildValueString(this.id, ngValue));\n this.select.setOption(this.id, ngValue);\n });\n effect(() => {\n const value = this.value();\n if (value === undefined) return;\n this.setValue(value);\n this.select?.refresh();\n });\n }\n\n private setValue(value: string): void {\n // The attribute, so the server-rendered option carries it too.\n this.renderer.setAttribute(this.element, 'value', value);\n this.valueString.set(value);\n }\n\n ngOnDestroy(): void {\n this.select?.removeOption(this.id);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { SelectInputs } from '@mintplayer/ui-core/select';\nimport { BsSelectValueAccessor } from './value-accessors/select-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-select` (PRD #437 D10 escape\n * hatch): Angular forms. A bound form control drives the value and the\n * disabled state, and its validity reaches the select's ARIA and message.\n */\n\nexport const hostDirectives = [\n { directive: BsSelectValueAccessor, inputs: ['compareWith'] },\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SelectInputs): () => SelectInputs {\n const accessor = inject(BsSelectValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n const merged = computed<SelectInputs>(() => {\n const value = inputs();\n const bound = accessor.bound();\n return {\n ...value,\n value: bound ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n accessor.selected = computed(() => merged().value);\n return merged;\n}\n","// GENERATED from the select manifest (select) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, numberAttribute } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { selectCore, type SelectInputs, type SelectOption, selectScopedStyles } from '@mintplayer/ui-core/select';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../select.angular';\n\n/** The `option` slot of `<bs-select>`: `<ng-template bsSelectOption>` or `*bsSelectOption`. */\n@Directive({ selector: '[bsSelectOption]' })\nexport class BsSelectOptionDirective {\n readonly templateRef = inject<TemplateRef<{ option: SelectOption } & { $implicit: { option: SelectOption }['option'] }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsSelectOptionDirective, ctx: unknown): ctx is { option: SelectOption } & { $implicit: { option: SelectOption }['option'] } {\n return true;\n }\n}\n\n/**\n * Bootstrap `.form-select` around a native `<select>` (#437): it works and submits with JavaScript off.\n *\n * Give it `options`, or put `<option>` / `<optgroup>` children inside. `value` (or `values` when\n * `multiple`) is two-way. An `aria-label` on the component names the select; so does `inputLabel`.\n * The `option` slot renders rich option content where the engine supports customizable select.\n */\n@Component({\n selector: 'bs-select',\n templateUrl: './select.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSelectComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n /** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */\n protected readonly hostAttrs = useHostAttrs();\n\n readonly size = input<SelectInputs['size']>('md');\n readonly multiple = input<SelectInputs['multiple'], unknown>(false, { transform: booleanAttribute });\n readonly numberVisible = input<SelectInputs['numberVisible'], unknown>(undefined, { transform: (v: unknown) => numberAttribute(v) as SelectInputs['numberVisible'] });\n readonly disabled = input<SelectInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SelectInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SelectInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SelectInputs['errorText']>();\n readonly name = input<SelectInputs['name']>();\n readonly inputLabel = input<SelectInputs['inputLabel']>();\n readonly value = model<SelectInputs['value']>(null);\n readonly values = model<SelectInputs['values']>([]);\n readonly options = input<SelectInputs['options']>();\n\n private readonly optionSlot = contentChild(BsSelectOptionDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ option: this.optionSlot()?.templateRef }));\n readonly #core = useCore(selectCore, { inputs: ext_extendInputs(() => ({ size: this.size(), multiple: this.multiple(), numberVisible: this.numberVisible(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), name: this.name(), inputLabel: this.inputLabel(), value: this.value(), values: this.values(), options: this.options() })), idPrefix: 'bs-select', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'select' }), models: { value: this.value, values: this.values } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order }); useScopedStyles('select', selectScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/select/src/templates/select.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<select data-mps=\"select\" [mpProps]=\"p_view.select\" [mpHostAttrs]=\"hostAttrs\">\n @if (p_view.rich && slots().option) {\n <button data-mps=\"select\" type=\"button\">\n <selectedcontent></selectedcontent>\n </button>\n }\n @if (p_view.items) {\n @for (item of p_view.items; track item.key) {\n @if (item.group) {\n <optgroup data-mps=\"select\" [mpProps]=\"item.group\">\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n </optgroup>\n } @else {\n @for (o of item.options; track o.key) {\n <option data-mps=\"select\" [mpProps]=\"o.bag\">\n @if (p_view.rich) {\n @if (slots().option; as slot_option) {\n <ng-container [ngTemplateOutlet]=\"slot_option\" [ngTemplateOutletContext]=\"{ $implicit: o.option, option: o.option }\" />\n } @else {\n {{ o.option.label }}\n }\n } @else {\n {{ o.option.label }}\n }\n </option>\n }\n }\n }\n } @else {\n <ng-content />\n }\n</select>\n@if (p_view.showFeedback) {\n <div data-mps=\"select\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the select manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSelectComponent, BsSelectOptionDirective } from './select.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSelectValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;;;AAIA;;;;;;AAMG;MAUU,qBAAqB,CAAA;AATlC,IAAA,WAAA,GAAA;AAUmB,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC,CAAC,aAAa;AAE3E,QAAA,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgD,MAAM,CAAC,EAAE;wFAAC;;QAG7E,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;;QAErB,IAAA,CAAA,SAAS,GAAG,MAAM,CAAgB,IAAI;sFAAC;QACvC,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;;QAEjC,IAAA,CAAA,QAAQ,GAA0B,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE;qFAAC;QAE1D,IAAA,CAAA,KAAK,GAAY,IAAI;AACZ,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,GAAG,EAAmB;QAC/C,IAAA,CAAA,SAAS,GAAG,CAAC;AACb,QAAA,IAAA,CAAA,QAAQ,GAA6B,MAAM,SAAS;AAC5D,QAAA,IAAA,CAAA,SAAS,GAAe,MAAM,SAAS;AAwExC,IAAA;AAtEC,IAAA,gBAAgB,CAAC,EAA4B,EAAA;AAC3C,QAAA,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC;AACpB,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE;IACpB;AAEA,IAAA,iBAAiB,CAAC,EAAc,EAAA;AAC9B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE;IACrB;AAEA,IAAA,gBAAgB,CAAC,UAAmB,EAAA;AAClC,QAAA,IAAI,CAAC,QAAQ,CAAC,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