@mintplayer/ng-bootstrap 22.32.0 → 22.34.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/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +3 -166
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -140
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +33 -63
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +23 -30
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +37 -22
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs +25 -9
- package/fesm2022/mintplayer-ng-bootstrap-button-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +5 -9
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +157 -219
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +12 -14
- 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 +8 -8
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +313 -212
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +25 -15
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +7 -7
- 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 +15 -27
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +6 -10
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +7 -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 +9 -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 +18 -32
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +52 -38
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs +64 -119
- package/fesm2022/mintplayer-ng-bootstrap-grid.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +23 -38
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +44 -44
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +201 -18
- 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 -261
- package/fesm2022/mintplayer-ng-bootstrap-modal.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +13 -15
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs +3 -4
- package/fesm2022/mintplayer-ng-bootstrap-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs +30 -18
- package/fesm2022/mintplayer-ng-bootstrap-navbar-toggler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +20 -90
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +52 -401
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +27 -50
- 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 +8 -10
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +26 -54
- 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 +56 -267
- 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 +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +8 -16
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +232 -169
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +85 -47
- 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 +49 -65
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +16 -24
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +48 -181
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -9
- 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 +7 -9
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +7 -7
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +35 -40
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +61 -101
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +29 -23
- 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 +13 -17
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +103 -152
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +50 -157
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +10 -12
- 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 +159 -234
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +2 -22
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +2 -81
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +51 -86
- package/types/mintplayer-ng-bootstrap-alert.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-badge.d.ts +12 -12
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +29 -8
- package/types/mintplayer-ng-bootstrap-button-group.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +1 -5
- package/types/mintplayer-ng-bootstrap-card.d.ts +93 -78
- 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 +143 -91
- package/types/mintplayer-ng-bootstrap-close.d.ts +16 -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 +2 -6
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +2 -4
- 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-form.d.ts +32 -11
- package/types/mintplayer-ng-bootstrap-grid.d.ts +38 -31
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +11 -22
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +28 -14
- package/types/mintplayer-ng-bootstrap-machine.d.ts +101 -4
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +18 -5
- package/types/mintplayer-ng-bootstrap-modal.d.ts +43 -86
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-nav.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-navbar-toggler.d.ts +21 -6
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +15 -42
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +35 -112
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +4 -3
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +22 -35
- package/types/mintplayer-ng-bootstrap-parallax.d.ts +14 -4
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +5 -6
- package/types/mintplayer-ng-bootstrap-placeholder.d.ts +17 -16
- package/types/mintplayer-ng-bootstrap-playlist-toggler.d.ts +22 -6
- package/types/mintplayer-ng-bootstrap-popover.d.ts +35 -61
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +80 -68
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +34 -19
- 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 +35 -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 -51
- package/types/mintplayer-ng-bootstrap-select.d.ts +8 -7
- package/types/mintplayer-ng-bootstrap-shell.d.ts +40 -63
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +4 -6
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +3 -3
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +23 -19
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +61 -57
- package/types/mintplayer-ng-bootstrap-table.d.ts +21 -12
- 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 +3 -7
- package/types/mintplayer-ng-bootstrap-toast.d.ts +92 -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/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-dropdown-divider.mjs +0 -30
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-divider.mjs.map +0 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +0 -169
- 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-dropdown-divider.d.ts +0 -9
- 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,67 +1,133 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject, ElementRef, input,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, computed, ElementRef, input, booleanAttribute, model, ChangeDetectionStrategy, Component, signal, PLATFORM_ID, afterNextRender, forwardRef, Directive } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective, provideCoreContext, coreContextToken } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { radioCore, radioScopedStyles, ownsRadio, radioGroupCore, RADIO_GROUP, radioGroupName } from '@mintplayer/ui-core/radio';
|
|
4
5
|
import { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';
|
|
5
|
-
import { isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
6
|
-
import { radioGroupName, connectRadioGroup, radioClasses, connectRadio } from '@mintplayer/ui-core/radio';
|
|
7
|
-
import { BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';
|
|
8
6
|
import * as i1 from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
9
7
|
import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';
|
|
8
|
+
import { isPlatformBrowser } from '@angular/common';
|
|
10
9
|
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
11
10
|
import { preHydrationChoice } from '@mintplayer/ui-core/forms';
|
|
11
|
+
import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
|
|
12
12
|
|
|
13
|
+
/*
|
|
14
|
+
* The Angular extension of the generated `bs-radio` (#458 D10 escape hatch): a
|
|
15
|
+
* form control's validity reaches the radio's ARIA and its message.
|
|
16
|
+
*/
|
|
17
|
+
const hostDirectives$1 = [{ directive: BsControlValidityDirective, inputs: ['errorMessages'] }];
|
|
18
|
+
function extendInputs$1(inputs) {
|
|
19
|
+
const validity = inject(BsControlValidityDirective, { self: true });
|
|
20
|
+
return computed(() => {
|
|
21
|
+
const value = inputs();
|
|
22
|
+
return {
|
|
23
|
+
...value,
|
|
24
|
+
invalid: value.invalid || validity.invalid(),
|
|
25
|
+
required: value.required || validity.required(),
|
|
26
|
+
errorText: value.errorText ?? validity.errorText(),
|
|
27
|
+
};
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
// GENERATED from the radio manifest (radio) by @mintplayer/nx-component-compiler. Do not edit.
|
|
13
32
|
/**
|
|
14
|
-
*
|
|
15
|
-
* value is the selected radio's `value()`. Bind `[formControl]` /
|
|
16
|
-
* `[(ngModel)]` on the element carrying it.
|
|
33
|
+
* A native `<input type=radio>` in Bootstrap's `.form-check` or `.btn-check` markup (#458).
|
|
17
34
|
*
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* with JavaScript off (#437). This directive only carries the value, the
|
|
22
|
-
* disabled state and the touched signal.
|
|
23
|
-
*
|
|
24
|
-
* `<bs-radio-group>` is the element form and takes `role="radiogroup"`; name
|
|
25
|
-
* it with `aria-label` / `aria-labelledby`. On another host (a `<tbody>`, a
|
|
26
|
-
* `<bs-button-group>`) the attribute form adds no role, because the host keeps
|
|
27
|
-
* its own; radios that are not descendants wire in with `[group]="g"`.
|
|
35
|
+
* Inside a radio group it takes the group's `name` and selection, so the browser supplies
|
|
36
|
+
* one-of-N, the single tab stop and arrow-key selection, with JavaScript off as well. An
|
|
37
|
+
* `aria-label` on the component, or `inputLabel`, names the input.
|
|
28
38
|
*/
|
|
29
|
-
class
|
|
39
|
+
class BsRadioComponent {
|
|
40
|
+
#core;
|
|
30
41
|
constructor() {
|
|
31
|
-
|
|
32
|
-
this.
|
|
33
|
-
|
|
42
|
+
/** The host element. */
|
|
43
|
+
this.elementRef = inject(ElementRef);
|
|
44
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
45
|
+
this.hostAttrs = useHostAttrs();
|
|
46
|
+
this.type = input('radio', /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
48
|
+
this.color = input('secondary', /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
50
|
+
this.inline = input(false, { ...(ngDevMode ? { debugName: "inline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
51
|
+
this.value = input(null, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.checked = model(false, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
34
55
|
this.name = input(null, /* @ts-ignore */
|
|
35
56
|
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
36
|
-
|
|
37
|
-
this.required = input(false, /*
|
|
38
|
-
...(ngDevMode ?
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
this.
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
57
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
58
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
59
|
+
this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
60
|
+
this.errorText = input(null, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
62
|
+
this.inputLabel = input(null, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
64
|
+
this.#core = useCore(radioCore, { inputs: extendInputs$1(() => ({ type: this.type(), color: this.color(), inline: this.inline(), value: this.value(), checked: this.checked(), name: this.name(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel() })), idPrefix: 'bs-radio', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'radio' }), models: { checked: this.checked } });
|
|
65
|
+
/** The template's props. */
|
|
66
|
+
this.props = this.#core.props;
|
|
67
|
+
useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
|
|
68
|
+
useScopedStyles('radio', radioScopedStyles);
|
|
69
|
+
}
|
|
70
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRadioComponent, isStandalone: true, selector: "bs-radio", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", 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 }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange" }, hostDirectives: [{ directive: i1.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"radio\" [mpProps]=\"p_view.input\" [checked]=\"p_view.checked\" [mpHostAttrs]=\"hostAttrs\">\n<label data-mps=\"radio\" [mpProps]=\"p_view.label\">\n <ng-content />\n</label>\n@if (p_view.feedback) {\n <div data-mps=\"radio\" [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"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
72
|
+
}
|
|
73
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioComponent, decorators: [{
|
|
74
|
+
type: Component,
|
|
75
|
+
args: [{ selector: 'bs-radio', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives$1, template: "<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"radio\" [mpProps]=\"p_view.input\" [checked]=\"p_view.checked\" [mpHostAttrs]=\"hostAttrs\">\n<label data-mps=\"radio\" [mpProps]=\"p_view.label\">\n <ng-content />\n</label>\n@if (p_view.feedback) {\n <div data-mps=\"radio\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
|
|
76
|
+
}], ctorParameters: () => [], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], inline: [{ type: i0.Input, args: [{ isSignal: true, alias: "inline", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", 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 }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }] } });
|
|
77
|
+
|
|
78
|
+
/**
|
|
79
|
+
* The `ControlValueAccessor` of a radio group, shared by the generated
|
|
80
|
+
* `bs-radio-group` and the attribute form `[bsRadioGroup]` (a host directive of
|
|
81
|
+
* both). The value is the picked radio's `value`. It reacts only to the radios
|
|
82
|
+
* of its own group: a radio list nested in a table cell is its own group and
|
|
83
|
+
* never changes this one (`ownsRadio`).
|
|
84
|
+
*/
|
|
85
|
+
class BsRadioGroupValueAccessor {
|
|
86
|
+
constructor() {
|
|
87
|
+
this.host = inject(ElementRef).nativeElement;
|
|
88
|
+
/** A form control is bound: its value drives the group, over the group's own `value`. */
|
|
89
|
+
this.bound = signal(false, /* @ts-ignore */
|
|
90
|
+
...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
|
|
91
|
+
/** The selection as the form control or the user last set it. */
|
|
92
|
+
this.viewValue = signal(null, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
|
|
94
|
+
this.disabled = signal(false, /* @ts-ignore */
|
|
95
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
96
|
+
this.onChange = () => undefined;
|
|
97
|
+
this.onTouched = () => undefined;
|
|
98
|
+
/** The owner's own write-back of a pick (`[(value)]`), next to the form control's. */
|
|
99
|
+
this.onPick = () => undefined;
|
|
53
100
|
this.adoptPreHydrationChoice();
|
|
54
101
|
}
|
|
55
|
-
|
|
102
|
+
registerOnChange(fn) {
|
|
103
|
+
this.bound.set(true);
|
|
104
|
+
this.onChange = fn;
|
|
105
|
+
}
|
|
106
|
+
registerOnTouched(fn) {
|
|
107
|
+
this.onTouched = fn;
|
|
108
|
+
}
|
|
109
|
+
setDisabledState(isDisabled) {
|
|
110
|
+
this.disabled.set(isDisabled);
|
|
111
|
+
}
|
|
112
|
+
writeValue(value) {
|
|
113
|
+
this.viewValue.set(value ?? null);
|
|
114
|
+
}
|
|
115
|
+
onNativeChange(event) {
|
|
116
|
+
if (ownsRadio(this.host, event.target))
|
|
117
|
+
this.select(event.target.value);
|
|
118
|
+
}
|
|
56
119
|
select(value) {
|
|
57
|
-
this.
|
|
58
|
-
this.
|
|
120
|
+
this.viewValue.set(value);
|
|
121
|
+
this.onChange(value);
|
|
122
|
+
this.onPick(value);
|
|
59
123
|
}
|
|
60
124
|
/**
|
|
61
125
|
* A radio picked in the server-rendered page before hydration would be reverted
|
|
62
|
-
* by the `
|
|
63
|
-
*
|
|
64
|
-
* writes in a microtask after the first render)
|
|
126
|
+
* by the `checked` bindings. Read it while the host holds the server DOM, and
|
|
127
|
+
* replay it as the user's pick once the form directives have written their
|
|
128
|
+
* initial value (ngModel writes in a microtask after the first render) and the
|
|
129
|
+
* group's core has attached: a real `change`, so every listener (this accessor,
|
|
130
|
+
* the core and its model) takes the one path a live pick takes.
|
|
65
131
|
*/
|
|
66
132
|
adoptPreHydrationChoice() {
|
|
67
133
|
if (!isPlatformBrowser(inject(PLATFORM_ID)))
|
|
@@ -69,149 +135,146 @@ class BsRadioGroupDirective {
|
|
|
69
135
|
const picked = preHydrationChoice(this.host);
|
|
70
136
|
if (picked === null)
|
|
71
137
|
return;
|
|
72
|
-
afterNextRender(() => queueMicrotask(() =>
|
|
138
|
+
afterNextRender(() => queueMicrotask(() => {
|
|
139
|
+
const radio = [...this.host.querySelectorAll('input[type=radio]')]
|
|
140
|
+
.find((input) => input.value === picked && ownsRadio(this.host, input));
|
|
141
|
+
if (!radio)
|
|
142
|
+
return;
|
|
143
|
+
radio.checked = true;
|
|
144
|
+
radio.dispatchEvent(new Event('change', { bubbles: true }));
|
|
145
|
+
}));
|
|
73
146
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
77
|
-
registerOnTouched(fn) {
|
|
78
|
-
this.onTouched = fn;
|
|
79
|
-
}
|
|
80
|
-
writeValue(value) {
|
|
81
|
-
this.selected.set(value ?? null);
|
|
82
|
-
}
|
|
83
|
-
setDisabledState(isDisabled) {
|
|
84
|
-
this.formDisabled.set(isDisabled);
|
|
85
|
-
}
|
|
86
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
87
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsRadioGroupDirective, isStandalone: true, selector: "[bsRadioGroup], bs-radio-group", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "focusout": "onTouched?.()" }, properties: { "attr.role": "groupAttrs()['role']", "attr.aria-required": "groupAttrs()[\"aria-required\"]", "attr.aria-disabled": "groupAttrs()[\"aria-disabled\"]" } }, providers: [{
|
|
88
|
-
provide: NG_VALUE_ACCESSOR,
|
|
89
|
-
useExisting: forwardRef(() => BsRadioGroupDirective),
|
|
90
|
-
multi: true,
|
|
91
|
-
}], exportAs: ["bsRadioGroup"], ngImport: i0 }); }
|
|
147
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
148
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsRadioGroupValueAccessor, isStandalone: true, selector: "[bsRadioGroupAccessor]", host: { listeners: { "change": "onNativeChange($event)", "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRadioGroupValueAccessor), multi: true }], ngImport: i0 }); }
|
|
92
149
|
}
|
|
93
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
150
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupValueAccessor, decorators: [{
|
|
94
151
|
type: Directive,
|
|
95
152
|
args: [{
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
providers: [{
|
|
99
|
-
provide: NG_VALUE_ACCESSOR,
|
|
100
|
-
useExisting: forwardRef(() => BsRadioGroupDirective),
|
|
101
|
-
multi: true,
|
|
102
|
-
}],
|
|
153
|
+
// Applied as a host directive only.
|
|
154
|
+
selector: '[bsRadioGroupAccessor]',
|
|
155
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRadioGroupValueAccessor), multi: true }],
|
|
103
156
|
host: {
|
|
104
|
-
'
|
|
105
|
-
'
|
|
106
|
-
'
|
|
107
|
-
'(focusout)': 'onTouched?.()',
|
|
157
|
+
// A native radio's change bubbles to the group's element.
|
|
158
|
+
'(change)': 'onNativeChange($event)',
|
|
159
|
+
'(focusout)': 'onTouched()',
|
|
108
160
|
},
|
|
109
161
|
}]
|
|
110
|
-
}], ctorParameters: () => []
|
|
162
|
+
}], ctorParameters: () => [] });
|
|
163
|
+
|
|
164
|
+
/*
|
|
165
|
+
* The Angular extension of the generated `bs-radio-group` (#458 D10 escape
|
|
166
|
+
* hatch): Angular forms. A bound form control
|
|
167
|
+
* drives the selection, and a disabled control disables the group.
|
|
168
|
+
*/
|
|
169
|
+
const hostDirectives = [BsRadioGroupValueAccessor];
|
|
170
|
+
function extendInputs(inputs) {
|
|
171
|
+
const accessor = inject(BsRadioGroupValueAccessor, { self: true });
|
|
172
|
+
return computed(() => {
|
|
173
|
+
const value = inputs();
|
|
174
|
+
return {
|
|
175
|
+
...value,
|
|
176
|
+
value: accessor.bound() ? accessor.viewValue() : value.value,
|
|
177
|
+
disabled: value.disabled || accessor.disabled(),
|
|
178
|
+
};
|
|
179
|
+
});
|
|
180
|
+
}
|
|
111
181
|
|
|
182
|
+
// GENERATED from the radio manifest (radio-group) by @mintplayer/nx-component-compiler. Do not edit.
|
|
112
183
|
/**
|
|
113
|
-
* A
|
|
114
|
-
*
|
|
115
|
-
*
|
|
116
|
-
* one-of-N, the single tab stop and arrow move-and-select, with JavaScript
|
|
117
|
-
* off as well. The consumer's `aria-*` / `id` / `tabindex` on `<bs-radio>`
|
|
118
|
-
* land on the input.
|
|
184
|
+
* A `role=radiogroup` element around radios (#458). It hands them one `name`, so they are native
|
|
185
|
+
* radios of one set. `value` is two-way. Name it with `aria-label` / `aria-labelledby`. A radio
|
|
186
|
+
* list nested inside (a table cell) is its own group: each group reacts only to its own radios.
|
|
119
187
|
*/
|
|
120
|
-
class
|
|
188
|
+
class BsRadioGroupComponent {
|
|
189
|
+
#core;
|
|
121
190
|
constructor() {
|
|
122
|
-
|
|
123
|
-
this.
|
|
124
|
-
this.
|
|
125
|
-
|
|
126
|
-
this.
|
|
127
|
-
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
128
|
-
/** Button colour of a `toggle_button`; ignored by `radio`. */
|
|
129
|
-
this.color = input('secondary', /* @ts-ignore */
|
|
130
|
-
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
131
|
-
this.isToggled = model(false, /* @ts-ignore */
|
|
132
|
-
...(ngDevMode ? [{ debugName: "isToggled" }] : /* istanbul ignore next */ []));
|
|
133
|
-
this.value = input(null, /* @ts-ignore */
|
|
191
|
+
/** The host element. */
|
|
192
|
+
this.elementRef = inject(ElementRef);
|
|
193
|
+
this.name = input(null, /* @ts-ignore */
|
|
194
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
195
|
+
this.value = model(null, /* @ts-ignore */
|
|
134
196
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
135
|
-
this.disabled = input(false, /*
|
|
197
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
198
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
199
|
+
this.#core = useCore(radioGroupCore, { inputs: extendInputs(() => ({ name: this.name(), value: this.value(), disabled: this.disabled(), required: this.required() })), idPrefix: 'bs-radio-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'radio' }), models: { value: this.value } });
|
|
200
|
+
/** What this component hands its content. */
|
|
201
|
+
this.provided = this.#core.provided;
|
|
202
|
+
/** The template's props. */
|
|
203
|
+
this.props = this.#core.props;
|
|
204
|
+
useScopedStyles(bootstrapForms.key, bootstrapForms.css, { order: bootstrapForms.order });
|
|
205
|
+
useScopedStyles('radio', radioScopedStyles);
|
|
206
|
+
}
|
|
207
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
208
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsRadioGroupComponent, isStandalone: true, selector: "bs-radio-group", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", 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 } }, outputs: { value: "valueChange" }, providers: [provideCoreContext(RADIO_GROUP, BsRadioGroupComponent)], hostDirectives: [{ directive: BsRadioGroupValueAccessor }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
209
|
+
}
|
|
210
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupComponent, decorators: [{
|
|
211
|
+
type: Component,
|
|
212
|
+
args: [{ selector: 'bs-radio-group', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, providers: [provideCoreContext(RADIO_GROUP, BsRadioGroupComponent)], hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
213
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }] } });
|
|
214
|
+
|
|
215
|
+
// GENERATED from the radio manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
216
|
+
|
|
217
|
+
/**
|
|
218
|
+
* The attribute form of a radio group (Angular only, #458 M3): put it on a host
|
|
219
|
+
* you already have (a `<tbody>` whose rows each hold a radio, a `<div>` in a table
|
|
220
|
+
* cell, a `<bs-button-group>`). The `<bs-radio>` descendants take its `name` and
|
|
221
|
+
* selection through DI, so the nearest group wins: a radio list in a cell is its
|
|
222
|
+
* own group, and the row selection around it is another. Bind `[formControl]` /
|
|
223
|
+
* `[(ngModel)]` / `[(value)]` on the same element.
|
|
224
|
+
*
|
|
225
|
+
* It adds no role: the host keeps its own (a `rowgroup`, a `group`). Use
|
|
226
|
+
* `<bs-radio-group>` where the set needs `role="radiogroup"`.
|
|
227
|
+
*/
|
|
228
|
+
class BsRadioGroupDirective {
|
|
229
|
+
constructor() {
|
|
230
|
+
this.accessor = inject(BsRadioGroupValueAccessor, { self: true });
|
|
231
|
+
this.id = inject(BsIdService).next('bs-radio-group');
|
|
232
|
+
/** The radios' shared name; generated when omitted, so native grouping always forms. */
|
|
233
|
+
this.name = input(null, /* @ts-ignore */
|
|
234
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
235
|
+
/** Marks the set required: `aria-required` on the host and `required` on every radio. */
|
|
236
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
237
|
+
/** The selected radio's value, when no form control is bound. */
|
|
238
|
+
this.value = model(null, /* @ts-ignore */
|
|
239
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
240
|
+
this.disabled = computed(() => this.accessor.disabled(), /* @ts-ignore */
|
|
136
241
|
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
this.inputLabel = input(null, /* @ts-ignore */
|
|
145
|
-
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
146
|
-
/** Explicit `[group]` input wins over the DI-injected ancestor. */
|
|
147
|
-
this.resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null, /* @ts-ignore */
|
|
148
|
-
...(ngDevMode ? [{ debugName: "resolvedGroup" }] : /* istanbul ignore next */ []));
|
|
149
|
-
/** In a group the selection is the group's value; alone, `isToggled`. */
|
|
150
|
-
this.checked = computed(() => {
|
|
151
|
-
const group = this.resolvedGroup();
|
|
152
|
-
return group ? group.value() !== null && group.value() === this.value() : this.isToggled();
|
|
153
|
-
}, /* @ts-ignore */
|
|
154
|
-
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
155
|
-
this.state = computed(() => ({
|
|
156
|
-
type: this.type(),
|
|
157
|
-
checked: this.checked(),
|
|
158
|
-
disabled: this.disabled() || !!this.resolvedGroup()?.disabled(),
|
|
159
|
-
required: this.validity.required() || !!this.resolvedGroup()?.required(),
|
|
160
|
-
invalid: this.validity.invalid(),
|
|
161
|
-
// `<bs-radio>` has no `[name]` input: the group owns it.
|
|
162
|
-
name: this.resolvedGroup()?.groupName() ?? null,
|
|
163
|
-
value: this.value(),
|
|
164
|
-
errorText: this.validity.errorText(),
|
|
242
|
+
/** What the radios read. */
|
|
243
|
+
this.provided = computed(() => ({
|
|
244
|
+
grouped: true,
|
|
245
|
+
name: this.name() ?? radioGroupName(this.id),
|
|
246
|
+
value: this.accessor.bound() ? this.accessor.viewValue() : this.value(),
|
|
247
|
+
disabled: this.disabled(),
|
|
248
|
+
required: this.required(),
|
|
165
249
|
}), /* @ts-ignore */
|
|
166
|
-
...(ngDevMode ? [{ debugName: "
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
this.bags = computed(() => {
|
|
170
|
-
const { 'aria-describedby': describedBy, ...aria } = this.hostAria;
|
|
171
|
-
const bags = connectRadio(this.state(), this.id, describedBy);
|
|
172
|
-
const label = this.inputLabel();
|
|
173
|
-
const inputBag = {
|
|
174
|
-
...bags.input,
|
|
175
|
-
...aria,
|
|
176
|
-
...(label === null ? {} : { 'aria-label': label }),
|
|
177
|
-
'aria-describedby': bags.input['aria-describedby'],
|
|
178
|
-
};
|
|
179
|
-
return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };
|
|
180
|
-
}, /* @ts-ignore */
|
|
181
|
-
...(ngDevMode ? [{ debugName: "bags" }] : /* istanbul ignore next */ []));
|
|
182
|
-
// #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps="radio").
|
|
183
|
-
useBootstrap(bootstrapForms);
|
|
184
|
-
// Keep `[(isToggled)]` honest in a group, where a sibling's selection unchecks this radio.
|
|
185
|
-
effect(() => {
|
|
186
|
-
if (this.resolvedGroup())
|
|
187
|
-
this.isToggled.set(this.checked());
|
|
188
|
-
});
|
|
250
|
+
...(ngDevMode ? [{ debugName: "provided" }] : /* istanbul ignore next */ []));
|
|
251
|
+
// Keep [(value)] honest: a pick writes back.
|
|
252
|
+
this.accessor.onPick = (value) => this.value.set(value);
|
|
189
253
|
}
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
const checked = ev.target.checked;
|
|
193
|
-
const group = this.resolvedGroup();
|
|
194
|
-
if (group)
|
|
195
|
-
group.select(this.value());
|
|
196
|
-
else
|
|
197
|
-
this.isToggled.set(checked);
|
|
198
|
-
}
|
|
199
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
200
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsRadioComponent, isStandalone: true, selector: "bs-radio", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, isToggled: { classPropertyName: "isToggled", publicName: "isToggled", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, group: { classPropertyName: "group", publicName: "group", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isToggled: "isToggledChange" }, host: { classAttribute: "d-inline-block" }, hostDirectives: [{ directive: i1.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "@if (classes().root; as rootClass) {\n <label data-mps=\"radio\" [class]=\"rootClass\">\n <input data-mps=\"radio\" type=\"radio\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"radio\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"radio\" type=\"radio\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"radio\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"radio\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
254
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
255
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.8", type: BsRadioGroupDirective, isStandalone: true, selector: "[bsRadioGroup]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange" }, host: { properties: { "attr.data-radio-group": "''", "attr.aria-required": "required() ? 'true' : null", "attr.aria-disabled": "disabled() ? 'true' : null" } }, providers: [{ provide: coreContextToken(RADIO_GROUP), useFactory: () => inject(BsRadioGroupDirective).provided }], exportAs: ["bsRadioGroup"], hostDirectives: [{ directive: BsRadioGroupValueAccessor }], ngImport: i0 }); }
|
|
201
256
|
}
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
203
|
-
type:
|
|
204
|
-
args: [{
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
257
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsRadioGroupDirective, decorators: [{
|
|
258
|
+
type: Directive,
|
|
259
|
+
args: [{
|
|
260
|
+
selector: '[bsRadioGroup]',
|
|
261
|
+
exportAs: 'bsRadioGroup',
|
|
262
|
+
hostDirectives: [BsRadioGroupValueAccessor],
|
|
263
|
+
providers: [{ provide: coreContextToken(RADIO_GROUP), useFactory: () => inject(BsRadioGroupDirective).provided }],
|
|
264
|
+
host: {
|
|
265
|
+
// RADIO_GROUP_ATTR, literal for the AOT compiler: the radios find their group by it.
|
|
266
|
+
'[attr.data-radio-group]': "''",
|
|
267
|
+
'[attr.aria-required]': "required() ? 'true' : null",
|
|
268
|
+
'[attr.aria-disabled]': "disabled() ? 'true' : null",
|
|
269
|
+
},
|
|
270
|
+
}]
|
|
271
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }] } });
|
|
272
|
+
|
|
273
|
+
// Generated from @mintplayer/ui-core/radio (#458 M3, D10): bs-radio, bs-radio-group.
|
|
211
274
|
|
|
212
275
|
/**
|
|
213
276
|
* Generated bundle index. Do not edit.
|
|
214
277
|
*/
|
|
215
278
|
|
|
216
|
-
export { BsRadioComponent, BsRadioGroupDirective };
|
|
279
|
+
export { BsRadioComponent, BsRadioGroupComponent, BsRadioGroupDirective, BsRadioGroupValueAccessor };
|
|
217
280
|
//# sourceMappingURL=mintplayer-ng-bootstrap-radio.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-radio.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/radio/src/directives/radio-group/radio-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/component/radio.component.html","../../../../libs/mintplayer-ng-bootstrap/radio/mintplayer-ng-bootstrap-radio.ts"],"sourcesContent":["import { afterNextRender, computed, Directive, ElementRef, forwardRef, inject, input, PLATFORM_ID, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { connectRadioGroup, radioGroupName } from '@mintplayer/ui-core/radio';\nimport { preHydrationChoice } from '@mintplayer/ui-core/forms';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * Groups N `<bs-radio>` descendants into a single-select FormControl whose\n * value is the selected radio's `value()`. Bind `[formControl]` /\n * `[(ngModel)]` on the element carrying it.\n *\n * The group hands its `name` to every radio (generated when none is given),\n * so they are native radios of ONE set in one node tree: the browser supplies\n * exclusivity, the single tab stop, arrow move-and-select and posinset, also\n * with JavaScript off (#437). This directive only carries the value, the\n * disabled state and the touched signal.\n *\n * `<bs-radio-group>` is the element form and takes `role=\"radiogroup\"`; name\n * it with `aria-label` / `aria-labelledby`. On another host (a `<tbody>`, a\n * `<bs-button-group>`) the attribute form adds no role, because the host keeps\n * its own; radios that are not descendants wire in with `[group]=\"g\"`.\n */\n@Directive({\n selector: '[bsRadioGroup], bs-radio-group',\n exportAs: 'bsRadioGroup',\n providers: [{\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => BsRadioGroupDirective),\n multi: true,\n }],\n host: {\n '[attr.role]': 'groupAttrs()[\\'role\\']',\n '[attr.aria-required]': 'groupAttrs()[\"aria-required\"]',\n '[attr.aria-disabled]': 'groupAttrs()[\"aria-disabled\"]',\n '(focusout)': 'onTouched?.()',\n },\n})\nexport class BsRadioGroupDirective implements ControlValueAccessor {\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly isElementHost = this.host.localName === 'bs-radio-group';\n private readonly id = inject(BsIdService).next('bs-radio-group');\n\n readonly name = input<string | null>(null);\n /** Marks the set required: `aria-required` on the group and `required` on every radio. */\n readonly required = input<boolean>(false);\n\n /** The radios' shared `name`; one is generated so native grouping always forms. */\n readonly groupName = computed(() => this.name() ?? radioGroupName(this.id));\n\n private readonly selected = signal<string | null>(null);\n readonly value = this.selected.asReadonly();\n\n private readonly formDisabled = signal(false);\n readonly disabled = this.formDisabled.asReadonly();\n\n protected readonly groupAttrs = computed(() => {\n const attrs = connectRadioGroup({ required: this.required(), disabled: this.disabled() });\n return this.isElementHost ? attrs : { ...attrs, role: null };\n });\n\n private onValueChange?: (value: string | null) => void;\n // protected, not private: the focusout host binding compiles outside the\n // class body under AOT and cannot reach a private member.\n protected onTouched?: () => void;\n\n constructor() {\n this.adoptPreHydrationChoice();\n }\n\n /** Called by a radio whose native input became checked. */\n select(value: string | null) {\n this.selected.set(value);\n this.onValueChange?.(value);\n }\n\n /**\n * A radio picked in the server-rendered page before hydration would be reverted\n * by the `[checked]` bindings. Read it while the host holds the server DOM, and\n * report it once the form directives have written their initial value (ngModel\n * writes in a microtask after the first render).\n */\n private adoptPreHydrationChoice(): void {\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const picked = preHydrationChoice(this.host);\n if (picked === null) return;\n afterNextRender(() => queueMicrotask(() => this.select(picked)));\n }\n\n registerOnChange(fn: (_: string | null) => void) {\n this.onValueChange = fn;\n }\n\n registerOnTouched(fn: () => void) {\n this.onTouched = fn;\n }\n\n writeValue(value: string | null) {\n this.selected.set(value ?? null);\n }\n\n setDisabledState(isDisabled: boolean) {\n this.formDisabled.set(isDisabled);\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n effect,\n ElementRef,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { useBootstrap } from '@mintplayer/ng-bootstrap/machine';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n connectRadio,\n radioClasses,\n type RadioInputBag,\n type RadioState,\n} from '@mintplayer/ui-core/radio';\nimport type { ToggleButtonColor } from '@mintplayer/ui-core/checkbox';\nimport { BsIdService, takeHostAria } from '@mintplayer/ng-bootstrap/a11y';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport { MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';\nimport { BsRadioGroupDirective } from '../directives/radio-group/radio-group.directive';\nimport { BsRadioType } from '../types/radio-type';\n\n/**\n * A native `<input type=radio>` in Bootstrap's `.form-check` / `.btn-check`\n * markup, rendered by this component's own template (#437). Inside a\n * `[bsRadioGroup]` it takes the group's `name`, so the browser supplies the\n * one-of-N, the single tab stop and arrow move-and-select, with JavaScript\n * off as well. The consumer's `aria-*` / `id` / `tabindex` on `<bs-radio>`\n * land on the input.\n */\n@Component({\n hostDirectives: [{\n directive: BsControlValidityDirective,\n inputs: ['errorMessages'],\n }],\n selector: 'bs-radio',\n templateUrl: './radio.component.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'class': 'd-inline-block',\n },\n})\nexport class BsRadioComponent {\n\n private readonly parentGroup = inject(BsRadioGroupDirective, { optional: true, skipSelf: true });\n private readonly validity = inject(BsControlValidityDirective, { self: true });\n private readonly hostAria = takeHostAria(inject(ElementRef).nativeElement);\n private readonly id = inject(BsIdService).next('bs-radio');\n\n type = input<BsRadioType>('radio');\n /** Button colour of a `toggle_button`; ignored by `radio`. */\n color = input<ToggleButtonColor>('secondary');\n isToggled = model<boolean>(false);\n value = input<string | null>(null);\n disabled = input<boolean>(false);\n group = input<BsRadioGroupDirective | null>(null);\n /**\n * The input's accessible name when it has no visible label (a radio in a table\n * row). Host aria-* are read once at creation, so a bound [attr.aria-label]\n * would not follow; this input does.\n */\n inputLabel = input<string | null>(null);\n\n /** Explicit `[group]` input wins over the DI-injected ancestor. */\n readonly resolvedGroup = computed(() => this.group() ?? this.parentGroup ?? null);\n\n /** In a group the selection is the group's value; alone, `isToggled`. */\n readonly checked = computed(() => {\n const group = this.resolvedGroup();\n return group ? group.value() !== null && group.value() === this.value() : this.isToggled();\n });\n\n private readonly state = computed<RadioState>(() => ({\n type: this.type(),\n checked: this.checked(),\n disabled: this.disabled() || !!this.resolvedGroup()?.disabled(),\n required: this.validity.required() || !!this.resolvedGroup()?.required(),\n invalid: this.validity.invalid(),\n // `<bs-radio>` has no `[name]` input: the group owns it.\n name: this.resolvedGroup()?.groupName() ?? null,\n value: this.value(),\n errorText: this.validity.errorText(),\n }));\n\n readonly classes = computed(() => radioClasses(this.type(), this.color(), this.state().invalid));\n\n readonly bags = computed(() => {\n const { 'aria-describedby': describedBy, ...aria } = this.hostAria;\n const bags = connectRadio(this.state(), this.id, describedBy);\n const label = this.inputLabel();\n const inputBag: RadioInputBag = {\n ...bags.input,\n ...aria,\n ...(label === null ? {} : { 'aria-label': label }),\n 'aria-describedby': bags.input['aria-describedby'],\n };\n return { ...bags, input: inputBag, labelFor: bags.labelFor === null ? null : String(inputBag['id']) };\n });\n\n constructor() {\n // #452: the forms partial ships with this component, scoped to the elements it stamps (data-mps=\"radio\").\n useBootstrap(bootstrapForms);\n // Keep `[(isToggled)]` honest in a group, where a sibling's selection unchecks this radio.\n effect(() => {\n if (this.resolvedGroup()) this.isToggled.set(this.checked());\n });\n }\n\n /** A native radio fires `change` only when it becomes checked: by click, Space or an arrow key. */\n onChange(ev: Event) {\n const checked = (ev.target as HTMLInputElement).checked;\n const group = this.resolvedGroup();\n if (group) group.select(this.value());\n else this.isToggled.set(checked);\n }\n\n}\n","@if (classes().root; as rootClass) {\n <label data-mps=\"radio\" [class]=\"rootClass\">\n <input data-mps=\"radio\" type=\"radio\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <span data-mps=\"radio\" [class]=\"classes().label\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></span>\n </label>\n} @else {\n <input data-mps=\"radio\" type=\"radio\" [class]=\"classes().input\" [mpProps]=\"bags().input\" [checked]=\"checked()\" [attr.checked]=\"checked() ? '' : null\" (change)=\"onChange($event)\">\n <label data-mps=\"radio\" [class]=\"classes().label\" [attr.for]=\"bags().labelFor\"><ng-container [ngTemplateOutlet]=\"content\"></ng-container></label>\n}\n@if (bags().feedback; as feedback) {\n <div data-mps=\"radio\" [mpProps]=\"feedback.attrs\">{{ feedback.text }}</div>\n}\n<ng-template #content><ng-content></ng-content></ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA;;;;;;;;;;;;;;;AAeG;MAgBU,qBAAqB,CAAA;AA6BhC,IAAA,WAAA,GAAA;AA3BiB,QAAA,IAAA,CAAA,IAAI,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC,aAA4B;QACtD,IAAA,CAAA,aAAa,GAAG,IAAI,CAAC,IAAI,CAAC,SAAS,KAAK,gBAAgB;QACxD,IAAA,CAAA,EAAE,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,gBAAgB,CAAC;QAEvD,IAAA,CAAA,IAAI,GAAG,KAAK,CAAgB,IAAI;iFAAC;;QAEjC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;;AAGhC,QAAA,IAAA,CAAA,SAAS,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,IAAI,EAAE,IAAI,cAAc,CAAC,IAAI,CAAC,EAAE,CAAC;sFAAC;QAE1D,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAgB,IAAI;qFAAC;AAC9C,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,UAAU,EAAE;QAE1B,IAAA,CAAA,YAAY,GAAG,MAAM,CAAC,KAAK;yFAAC;AACpC,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE;AAE/B,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAK;YAC5C,MAAM,KAAK,GAAG,iBAAiB,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;AACzF,YAAA,OAAO,IAAI,CAAC,aAAa,GAAG,KAAK,GAAG,EAAE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AAA,OAAA,EAEX,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,eAAA,EAC5B,uBAAuB,CAAC,MAAM,EAAA,IAAA,EACzC;AACJ,wBAAA,OAAO,EAAE,gBAAgB;AAC1B,qBAAA,EAAA,QAAA,EAAA,m9BAAA,EAAA;;;AE7CH;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-radio.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/radio/src/radio.angular.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/generated/radio.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/generated/radio.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/radio/src/radio-group.accessor.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/radio-group.angular.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/generated/radio-group.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/generated/radio-group.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/radio/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/directives/radio-group/radio-group.directive.ts","../../../../libs/mintplayer-ng-bootstrap/radio/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/radio/mintplayer-ng-bootstrap-radio.ts"],"sourcesContent":["import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y/forms';\nimport type { RadioInputs } from '@mintplayer/ui-core/radio';\n\n/*\n * The Angular extension of the generated `bs-radio` (#458 D10 escape hatch): a\n * form control's validity reaches the radio's ARIA and its message.\n */\n\nexport const hostDirectives = [{ directive: BsControlValidityDirective, inputs: ['errorMessages'] }];\n\nexport function extendInputs(inputs: () => RadioInputs): () => RadioInputs {\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<RadioInputs>(() => {\n const value = inputs();\n return {\n ...value,\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the radio manifest (radio) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { radioCore, type RadioInputs, radioScopedStyles } from '@mintplayer/ui-core/radio';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../radio.angular';\n\n/**\n * A native `<input type=radio>` in Bootstrap's `.form-check` or `.btn-check` markup (#458).\n *\n * Inside a radio group it takes the group's `name` and selection, so the browser supplies\n * one-of-N, the single tab stop and arrow-key selection, with JavaScript off as well. An\n * `aria-label` on the component, or `inputLabel`, names the input.\n */\n@Component({\n selector: 'bs-radio',\n templateUrl: './radio.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsRadioComponent {\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 type = input<RadioInputs['type']>('radio');\n readonly color = input<RadioInputs['color']>('secondary');\n readonly inline = input<RadioInputs['inline'], unknown>(false, { transform: booleanAttribute });\n readonly value = input<RadioInputs['value']>(null);\n readonly checked = model<RadioInputs['checked']>(false);\n readonly name = input<RadioInputs['name']>(null);\n readonly disabled = input<RadioInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<RadioInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<RadioInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<RadioInputs['errorText']>(null);\n readonly inputLabel = input<RadioInputs['inputLabel']>(null);\n\n readonly #core = useCore(radioCore, { inputs: ext_extendInputs(() => ({ type: this.type(), color: this.color(), inline: this.inline(), value: this.value(), checked: this.checked(), name: this.name(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel() })), idPrefix: 'bs-radio', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'radio' }), models: {checked: this.checked } });\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('radio', radioScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<input data-mps=\"radio\" [mpProps]=\"p_view.input\" [checked]=\"p_view.checked\" [mpHostAttrs]=\"hostAttrs\">\n<label data-mps=\"radio\" [mpProps]=\"p_view.label\">\n <ng-content />\n</label>\n@if (p_view.feedback) {\n <div data-mps=\"radio\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","import { afterNextRender, Directive, ElementRef, forwardRef, inject, PLATFORM_ID, signal } from '@angular/core';\nimport { isPlatformBrowser } from '@angular/common';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { preHydrationChoice } from '@mintplayer/ui-core/forms';\nimport { ownsRadio } from '@mintplayer/ui-core/radio';\n\n/**\n * The `ControlValueAccessor` of a radio group, shared by the generated\n * `bs-radio-group` and the attribute form `[bsRadioGroup]` (a host directive of\n * both). The value is the picked radio's `value`. It reacts only to the radios\n * of its own group: a radio list nested in a table cell is its own group and\n * never changes this one (`ownsRadio`).\n */\n@Directive({\n // Applied as a host directive only.\n selector: '[bsRadioGroupAccessor]',\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsRadioGroupValueAccessor), multi: true }],\n host: {\n // A native radio's change bubbles to the group's element.\n '(change)': 'onNativeChange($event)',\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsRadioGroupValueAccessor implements ControlValueAccessor {\n private readonly host = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n\n /** A form control is bound: its value drives the group, over the group's own `value`. */\n readonly bound = signal(false);\n /** The selection as the form control or the user last set it. */\n readonly viewValue = signal<string | null>(null);\n readonly disabled = signal(false);\n\n private onChange: (value: string | null) => void = () => undefined;\n onTouched: () => void = () => undefined;\n /** The owner's own write-back of a pick (`[(value)]`), next to the form control's. */\n onPick: (value: string) => void = () => undefined;\n\n constructor() {\n this.adoptPreHydrationChoice();\n }\n\n registerOnChange(fn: (value: string | null) => 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: string | null): void {\n this.viewValue.set(value ?? null);\n }\n\n onNativeChange(event: Event): void {\n if (ownsRadio(this.host, event.target)) this.select(event.target.value);\n }\n\n private select(value: string): void {\n this.viewValue.set(value);\n this.onChange(value);\n this.onPick(value);\n }\n\n /**\n * A radio picked in the server-rendered page before hydration would be reverted\n * by the `checked` bindings. Read it while the host holds the server DOM, and\n * replay it as the user's pick once the form directives have written their\n * initial value (ngModel writes in a microtask after the first render) and the\n * group's core has attached: a real `change`, so every listener (this accessor,\n * the core and its model) takes the one path a live pick takes.\n */\n private adoptPreHydrationChoice(): void {\n if (!isPlatformBrowser(inject(PLATFORM_ID))) return;\n const picked = preHydrationChoice(this.host);\n if (picked === null) return;\n afterNextRender(() =>\n queueMicrotask(() => {\n const radio = [...this.host.querySelectorAll<HTMLInputElement>('input[type=radio]')]\n .find((input) => input.value === picked && ownsRadio(this.host, input));\n if (!radio) return;\n radio.checked = true;\n radio.dispatchEvent(new Event('change', { bubbles: true }));\n }),\n );\n }\n}\n","import { computed, inject } from '@angular/core';\nimport type { RadioGroupInputs } from '@mintplayer/ui-core/radio';\nimport { BsRadioGroupValueAccessor } from './radio-group.accessor';\n\n/*\n * The Angular extension of the generated `bs-radio-group` (#458 D10 escape\n * hatch): Angular forms. A bound form control\n * drives the selection, and a disabled control disables the group.\n */\n\nexport const hostDirectives = [BsRadioGroupValueAccessor];\n\nexport function extendInputs(inputs: () => RadioGroupInputs): () => RadioGroupInputs {\n const accessor = inject(BsRadioGroupValueAccessor, { self: true });\n return computed<RadioGroupInputs>(() => {\n const value = inputs();\n return {\n ...value,\n value: accessor.bound() ? accessor.viewValue() : value.value,\n disabled: value.disabled || accessor.disabled(),\n };\n });\n}\n","// GENERATED from the radio manifest (radio-group) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { provideCoreContext, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { RADIO_GROUP, radioGroupCore, type RadioGroupInputs, radioScopedStyles } from '@mintplayer/ui-core/radio';\nimport { bootstrapForms } from '@mintplayer/ui-core/bootstrap/forms';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../radio-group.angular';\n\n/**\n * A `role=radiogroup` element around radios (#458). It hands them one `name`, so they are native\n * radios of one set. `value` is two-way. Name it with `aria-label` / `aria-labelledby`. A radio\n * list nested inside (a table cell) is its own group: each group reacts only to its own radios.\n */\n@Component({\n selector: 'bs-radio-group',\n templateUrl: './radio-group.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [provideCoreContext(RADIO_GROUP, BsRadioGroupComponent)],\n hostDirectives: ext_hostDirectives,\n})\nexport class BsRadioGroupComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly name = input<RadioGroupInputs['name']>(null);\n readonly value = model<RadioGroupInputs['value']>(null);\n readonly disabled = input<RadioGroupInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<RadioGroupInputs['required'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(radioGroupCore, { inputs: ext_extendInputs(() => ({ name: this.name(), value: this.value(), disabled: this.disabled(), required: this.required() })), idPrefix: 'bs-radio-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'radio' }), models: {value: this.value } });\n /** What this component hands its content. */\n readonly provided = this.#core.provided;\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('radio', radioScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/radio/src/templates/radio-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the radio manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsRadioComponent } from './radio.component.generated';\nexport { BsRadioGroupComponent } from './radio-group.component.generated';\n","import { booleanAttribute, computed, Directive, inject, input, model } from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { coreContextToken } from '@mintplayer/ng-bootstrap/machine';\nimport { RADIO_GROUP, radioGroupName, type RadioGroupContext } from '@mintplayer/ui-core/radio';\nimport { BsRadioGroupValueAccessor } from '../../radio-group.accessor';\n\n/**\n * The attribute form of a radio group (Angular only, #458 M3): put it on a host\n * you already have (a `<tbody>` whose rows each hold a radio, a `<div>` in a table\n * cell, a `<bs-button-group>`). The `<bs-radio>` descendants take its `name` and\n * selection through DI, so the nearest group wins: a radio list in a cell is its\n * own group, and the row selection around it is another. Bind `[formControl]` /\n * `[(ngModel)]` / `[(value)]` on the same element.\n *\n * It adds no role: the host keeps its own (a `rowgroup`, a `group`). Use\n * `<bs-radio-group>` where the set needs `role=\"radiogroup\"`.\n */\n@Directive({\n selector: '[bsRadioGroup]',\n exportAs: 'bsRadioGroup',\n hostDirectives: [BsRadioGroupValueAccessor],\n providers: [{ provide: coreContextToken(RADIO_GROUP), useFactory: () => inject(BsRadioGroupDirective).provided }],\n host: {\n // RADIO_GROUP_ATTR, literal for the AOT compiler: the radios find their group by it.\n '[attr.data-radio-group]': \"''\",\n '[attr.aria-required]': \"required() ? 'true' : null\",\n '[attr.aria-disabled]': \"disabled() ? 'true' : null\",\n },\n})\nexport class BsRadioGroupDirective {\n private readonly accessor = inject(BsRadioGroupValueAccessor, { self: true });\n private readonly id = inject(BsIdService).next('bs-radio-group');\n\n /** The radios' shared name; generated when omitted, so native grouping always forms. */\n readonly name = input<string | null>(null);\n /** Marks the set required: `aria-required` on the host and `required` on every radio. */\n readonly required = input(false, { transform: booleanAttribute });\n /** The selected radio's value, when no form control is bound. */\n readonly value = model<string | null>(null);\n\n readonly disabled = computed(() => this.accessor.disabled());\n\n /** What the radios read. */\n readonly provided = computed<RadioGroupContext>(() => ({\n grouped: true,\n name: this.name() ?? radioGroupName(this.id),\n value: this.accessor.bound() ? this.accessor.viewValue() : this.value(),\n disabled: this.disabled(),\n required: this.required(),\n }));\n\n constructor() {\n // Keep [(value)] honest: a pick writes back.\n this.accessor.onPick = (value) => this.value.set(value);\n }\n}\n","// Generated from @mintplayer/ui-core/radio (#458 M3, D10): bs-radio, bs-radio-group.\nexport * from './generated';\nexport * from './directives';\nexport { BsRadioGroupValueAccessor } from './radio-group.accessor';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["hostDirectives","extendInputs","ext_extendInputs","ext_hostDirectives","i1.BsRadioGroupValueAccessor"],"mappings":";;;;;;;;;;;;AAIA;;;AAGG;AAEI,MAAMA,gBAAc,GAAG,CAAC,EAAE,SAAS,EAAE,0BAA0B,EAAE,MAAM,EAAE,CAAC,eAAe,CAAC,EAAE,CAAC;AAE9F,SAAUC,cAAY,CAAC,MAAyB,EAAA;AACpD,IAAA,MAAM,QAAQ,GAAG,MAAM,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACnE,OAAO,QAAQ,CAAc,MAAK;AAChC,QAAA,MAAM,KAAK,GAAG,MAAM,EAAE;QACtB,OAAO;AACL,YAAA,GAAG,KAAK;YACR,OAAO,EAAE,KA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