@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,76 +1,50 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { inject,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, model, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { alertCore, alertScopedStyles } from '@mintplayer/ui-core/alert';
|
|
5
|
+
import { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';
|
|
6
|
+
import { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';
|
|
5
7
|
|
|
8
|
+
// GENERATED from the alert manifest (alert) by @mintplayer/nx-component-compiler. Do not edit.
|
|
9
|
+
/**
|
|
10
|
+
* Bootstrap's contextual alert. `visible` is two-way; `dismissible` adds a close button named by
|
|
11
|
+
* `closeLabel` that hides it and keeps focus on the page. `announce` opts in to `role="alert"`.
|
|
12
|
+
*/
|
|
6
13
|
class BsAlertComponent {
|
|
14
|
+
#core;
|
|
7
15
|
constructor() {
|
|
8
|
-
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
...(ngDevMode ? [{ debugName: "
|
|
12
|
-
|
|
13
|
-
this.
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
this.
|
|
17
|
-
...(ngDevMode ? [{ debugName: "
|
|
18
|
-
this
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
* to the previous one at the end of a page.
|
|
25
|
-
*/
|
|
26
|
-
rescueFocus() {
|
|
27
|
-
const host = this.hostRef.nativeElement;
|
|
28
|
-
if (!host.contains(document.activeElement))
|
|
29
|
-
return;
|
|
30
|
-
const tabbables = Array.from(document.querySelectorAll('a[href], button:not([disabled]), input:not([disabled]), select:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])')).filter((el) => !host.contains(el));
|
|
31
|
-
const after = tabbables.find((el) => host.compareDocumentPosition(el) & Node.DOCUMENT_POSITION_FOLLOWING);
|
|
32
|
-
(after ?? tabbables[tabbables.length - 1])?.focus();
|
|
33
|
-
}
|
|
34
|
-
onAfterOpenedOrClosed(isVisible) {
|
|
35
|
-
// During SSR prerender, the FadeInOut `done` callback can fire after
|
|
36
|
-
// Angular has torn down the route's application — emitting on a
|
|
37
|
-
// destroyed OutputRef hits NG0953 on every prerendered page.
|
|
38
|
-
if (this.destroyRef.destroyed)
|
|
39
|
-
return;
|
|
40
|
-
this.afterOpenedOrClosed.emit(isVisible);
|
|
16
|
+
/** The host element. */
|
|
17
|
+
this.elementRef = inject(ElementRef);
|
|
18
|
+
this.color = input('primary', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
20
|
+
this.announce = input(false, { ...(ngDevMode ? { debugName: "announce" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.dismissible = input(false, { ...(ngDevMode ? { debugName: "dismissible" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
22
|
+
this.closeLabel = input('Close', /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "closeLabel" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.visible = model(true, /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.#core = useCore(alertCore, { inputs: () => ({ color: this.color(), announce: this.announce(), dismissible: this.dismissible(), closeLabel: this.closeLabel(), visible: this.visible() }), idPrefix: 'bs-alert', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'alert' }), models: { visible: this.visible } });
|
|
27
|
+
/** The template's props. */
|
|
28
|
+
this.props = this.#core.props;
|
|
29
|
+
useScopedStyles(bootstrapAlert.key, bootstrapAlert.css, { order: bootstrapAlert.order });
|
|
30
|
+
useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order });
|
|
31
|
+
useScopedStyles('alert', alertScopedStyles);
|
|
41
32
|
}
|
|
42
33
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
43
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: {
|
|
34
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAlertComponent, isStandalone: true, selector: "bs-alert", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, announce: { classPropertyName: "announce", publicName: "announce", isSignal: true, isRequired: false, transformFunction: null }, dismissible: { classPropertyName: "dismissible", publicName: "dismissible", isSignal: true, isRequired: false, transformFunction: null }, closeLabel: { classPropertyName: "closeLabel", publicName: "closeLabel", isSignal: true, isRequired: false, transformFunction: null }, visible: { classPropertyName: "visible", publicName: "visible", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { visible: "visibleChange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
44
35
|
}
|
|
45
36
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertComponent, decorators: [{
|
|
46
37
|
type: Component,
|
|
47
|
-
args: [{ selector: 'bs-alert',
|
|
48
|
-
}], propDecorators: {
|
|
38
|
+
args: [{ selector: 'bs-alert', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n" }]
|
|
39
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], announce: [{ type: i0.Input, args: [{ isSignal: true, alias: "announce", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], closeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeLabel", required: false }] }], visible: [{ type: i0.Input, args: [{ isSignal: true, alias: "visible", required: false }] }, { type: i0.Output, args: ["visibleChange"] }] } });
|
|
49
40
|
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
/** Accessible name of the icon-only close button. Override to translate. */
|
|
54
|
-
this.ariaLabel = input('Close', /* @ts-ignore */
|
|
55
|
-
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
56
|
-
}
|
|
57
|
-
closeAlert() {
|
|
58
|
-
// Order matters: the rescue must read focus while the button still exists.
|
|
59
|
-
this.alert.rescueFocus();
|
|
60
|
-
this.alert.isVisible.set(false);
|
|
61
|
-
return false;
|
|
62
|
-
}
|
|
63
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
64
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsAlertCloseComponent, isStandalone: true, selector: "bs-alert-close", inputs: { ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">\u00D7</span>\n</button>\n", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
65
|
-
}
|
|
66
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAlertCloseComponent, decorators: [{
|
|
67
|
-
type: Component,
|
|
68
|
-
args: [{ selector: 'bs-alert-close', changeDetection: ChangeDetectionStrategy.OnPush, template: "<button type=\"button\" class=\"btn float-end\" [attr.aria-label]=\"ariaLabel()\" (click)=\"closeAlert()\">\n <span class=\"text-dark\" aria-hidden=\"true\">\u00D7</span>\n</button>\n", styles: ["button{top:0;right:0;border:0;position:absolute;padding:.75rem 1.25rem!important;background:transparent}\n"] }]
|
|
69
|
-
}], propDecorators: { ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }] } });
|
|
41
|
+
// GENERATED from the alert manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
42
|
+
|
|
43
|
+
// Generated from @mintplayer/ui-core/alert (#458 D10).
|
|
70
44
|
|
|
71
45
|
/**
|
|
72
46
|
* Generated bundle index. Do not edit.
|
|
73
47
|
*/
|
|
74
48
|
|
|
75
|
-
export {
|
|
49
|
+
export { BsAlertComponent };
|
|
76
50
|
//# sourceMappingURL=mintplayer-ng-bootstrap-alert.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-alert.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/alert.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/alert.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/alert/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/alert/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/alert/mintplayer-ng-bootstrap-alert.ts"],"sourcesContent":["// GENERATED from the alert manifest (alert) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { alertCore, type AlertInputs, alertScopedStyles } from '@mintplayer/ui-core/alert';\nimport { bootstrapAlert } from '@mintplayer/ui-core/bootstrap/alert';\nimport { bootstrapClose } from '@mintplayer/ui-core/bootstrap/close';\n\n/**\n * Bootstrap's contextual alert. `visible` is two-way; `dismissible` adds a close button named by\n * `closeLabel` that hides it and keeps focus on the page. `announce` opts in to `role=\"alert\"`.\n */\n@Component({\n selector: 'bs-alert',\n templateUrl: './alert.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsAlertComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<AlertInputs['color']>('primary');\n readonly announce = input<AlertInputs['announce'], unknown>(false, { transform: booleanAttribute });\n readonly dismissible = input<AlertInputs['dismissible'], unknown>(false, { transform: booleanAttribute });\n readonly closeLabel = input<AlertInputs['closeLabel']>('Close');\n readonly visible = model<AlertInputs['visible']>(true);\n\n readonly #core = useCore(alertCore, { inputs: () => ({ color: this.color(), announce: this.announce(), dismissible: this.dismissible(), closeLabel: this.closeLabel(), visible: this.visible() }), idPrefix: 'bs-alert', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'alert' }), models: { visible: this.visible } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapAlert.key, bootstrapAlert.css, { order: bootstrapAlert.order }); useScopedStyles(bootstrapClose.key, bootstrapClose.css, { order: bootstrapClose.order }); useScopedStyles('alert', alertScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/alert/src/templates/alert.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<ng-content />\n@if (p_view.dismiss) {\n <button data-mps=\"alert\" [mpProps]=\"p_view.dismiss\"></button>\n}\n","// GENERATED from the alert manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsAlertComponent } from './alert.component.generated';\n","// Generated from @mintplayer/ui-core/alert (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,41 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input,
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { badgeCore, badgeScopedStyles } from '@mintplayer/ui-core/badge';
|
|
5
|
+
import { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';
|
|
4
6
|
|
|
5
|
-
//
|
|
6
|
-
|
|
7
|
-
// with the text colour color-contrast() picks (black on warning, info and light).
|
|
8
|
-
// It exists for the eight theme colours only; the other three pair a background
|
|
9
|
-
// with a text utility, the way `<bs-card [color]>` colours them.
|
|
10
|
-
const pairedColorClasses = {
|
|
11
|
-
[Color.body]: 'bg-body text-body',
|
|
12
|
-
[Color.white]: 'bg-white text-black',
|
|
13
|
-
[Color.transparent]: 'bg-transparent text-reset',
|
|
14
|
-
};
|
|
7
|
+
// GENERATED from the badge manifest (badge) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's badge: a `.badge` around its content in a `color`, with a visually hidden `unit` that says what a number counts. */
|
|
15
9
|
class BsBadgeComponent {
|
|
10
|
+
#core;
|
|
16
11
|
constructor() {
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
* What the number counts ('unread messages'): a bare '3' badge is
|
|
22
|
-
* meaningless out of visual context. Appended visually hidden.
|
|
23
|
-
*/
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
this.color = input('primary', /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
24
16
|
this.unit = input(null, /* @ts-ignore */
|
|
25
17
|
...(ngDevMode ? [{ debugName: "unit" }] : /* istanbul ignore next */ []));
|
|
26
|
-
|
|
27
|
-
this
|
|
28
|
-
|
|
29
|
-
this.
|
|
30
|
-
|
|
18
|
+
this.decorative = input(false, { ...(ngDevMode ? { debugName: "decorative" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
19
|
+
this.#core = useCore(badgeCore, { inputs: () => ({ color: this.color(), unit: this.unit(), decorative: this.decorative() }), idPrefix: 'bs-badge', hostBag: (props) => ({ ...props.root, 'data-mps': 'badge' }) });
|
|
20
|
+
/** The template's props. */
|
|
21
|
+
this.props = this.#core.props;
|
|
22
|
+
useScopedStyles(bootstrapBadge.key, bootstrapBadge.css, { order: bootstrapBadge.order });
|
|
23
|
+
useScopedStyles('badge', badgeScopedStyles);
|
|
31
24
|
}
|
|
32
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
33
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: {
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsBadgeComponent, isStandalone: true, selector: "bs-badge", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, unit: { classPropertyName: "unit", publicName: "unit", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
34
27
|
}
|
|
35
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBadgeComponent, decorators: [{
|
|
36
29
|
type: Component,
|
|
37
|
-
args: [{ selector: 'bs-badge', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
38
|
-
}], propDecorators: {
|
|
30
|
+
args: [{ selector: 'bs-badge', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n" }]
|
|
31
|
+
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], unit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unit", required: false }] }], decorative: [{ type: i0.Input, args: [{ isSignal: true, alias: "decorative", required: false }] }] } });
|
|
32
|
+
|
|
33
|
+
// GENERATED from the badge manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
34
|
+
|
|
35
|
+
// Generated from @mintplayer/ui-core/badge (#458 D10).
|
|
39
36
|
|
|
40
37
|
/**
|
|
41
38
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.component.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/badge.
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-badge.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/badge.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/badge.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/badge/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/badge/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/badge/mintplayer-ng-bootstrap-badge.ts"],"sourcesContent":["// GENERATED from the badge manifest (badge) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { badgeCore, type BadgeInputs, badgeScopedStyles } from '@mintplayer/ui-core/badge';\nimport { bootstrapBadge } from '@mintplayer/ui-core/bootstrap/badge';\n\n/** Bootstrap's badge: a `.badge` around its content in a `color`, with a visually hidden `unit` that says what a number counts. */\n@Component({\n selector: 'bs-badge',\n templateUrl: './badge.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBadgeComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly color = input<BadgeInputs['color']>('primary');\n readonly unit = input<BadgeInputs['unit']>(null);\n readonly decorative = input<BadgeInputs['decorative'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(badgeCore, { inputs: () => ({ color: this.color(), unit: this.unit(), decorative: this.decorative() }), idPrefix: 'bs-badge', hostBag: (props) => ({ ...props.root, 'data-mps': 'badge' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBadge.key, bootstrapBadge.css, { order: bootstrapBadge.order }); useScopedStyles('badge', badgeScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/badge/src/templates/badge.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_unit = props().unit;\n<ng-content />\n@if (p_unit) {\n <span data-mps=\"badge\" class=\"visually-hidden\">\n {{ p_unit }}\n </span>\n}\n","// GENERATED from the badge manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsBadgeComponent } from './badge.component.generated';\n","// Generated from @mintplayer/ui-core/badge (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,gBAAgB,CAAA;AAQlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAVS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,KAAK,GAAG,KAAK,CAAuB,SAAS;kFAAC;QAC9C,IAAA,CAAA,IAAI,GAAG,KAAK,CAAsB,IAAI;iFAAC;QACvC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;AAE9F,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,UAAU,EAAE,IAAI,CAAC,UAAU,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;AAEnM,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,cAAc,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,cAAc,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,OAAO,EAAE,iBAAiB,CAAC;IACvI;8GAdW,gBAAgB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAhB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,gBAAgB,ocCb7B,6RAQA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDKa,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,OAAA,EAEX,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6RAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,37 +1,59 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, input, ChangeDetectionStrategy, Component, booleanAttribute } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { breadcrumbCore, breadcrumbScopedStyles, breadcrumbItemCore } from '@mintplayer/ui-core/breadcrumb';
|
|
5
|
+
import { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';
|
|
3
6
|
|
|
7
|
+
// GENERATED from the breadcrumb manifest (breadcrumb) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's breadcrumb: a `<nav>` landmark named by `label` around an ordered list of `breadcrumb-item`s. */
|
|
4
9
|
class BsBreadcrumbComponent {
|
|
10
|
+
#core;
|
|
5
11
|
constructor() {
|
|
6
|
-
/**
|
|
7
|
-
this.
|
|
8
|
-
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
15
|
+
this.hostAttrs = useHostAttrs();
|
|
16
|
+
this.label = input('Breadcrumb', /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
18
|
+
this.#core = useCore(breadcrumbCore, { inputs: () => ({ label: this.label() }), idPrefix: 'bs-breadcrumb', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'breadcrumb' }) });
|
|
19
|
+
/** The template's props. */
|
|
20
|
+
this.props = this.#core.props;
|
|
21
|
+
useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order });
|
|
22
|
+
useScopedStyles('breadcrumb', breadcrumbScopedStyles);
|
|
9
23
|
}
|
|
10
24
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
11
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: {
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbComponent, isStandalone: true, selector: "bs-breadcrumb", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
12
26
|
}
|
|
13
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbComponent, decorators: [{
|
|
14
28
|
type: Component,
|
|
15
|
-
args: [{ selector: 'bs-breadcrumb', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
16
|
-
}], propDecorators: {
|
|
29
|
+
args: [{ selector: 'bs-breadcrumb', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n" }]
|
|
30
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }] } });
|
|
17
31
|
|
|
32
|
+
// GENERATED from the breadcrumb manifest (breadcrumb-item) by @mintplayer/nx-component-compiler. Do not edit.
|
|
33
|
+
/** One step of a breadcrumb: put a link in it, or plain text for the `active` (current) page. */
|
|
18
34
|
class BsBreadcrumbItemComponent {
|
|
35
|
+
#core;
|
|
19
36
|
constructor() {
|
|
20
|
-
|
|
21
|
-
|
|
37
|
+
/** The host element. */
|
|
38
|
+
this.elementRef = inject(ElementRef);
|
|
39
|
+
this.active = input(false, { ...(ngDevMode ? { debugName: "active" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
40
|
+
this.#core = useCore(breadcrumbItemCore, { inputs: () => ({ active: this.active() }), idPrefix: 'bs-breadcrumb-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'breadcrumb', role: 'listitem' }) });
|
|
41
|
+
/** The template's props. */
|
|
42
|
+
this.props = this.#core.props;
|
|
43
|
+
useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order });
|
|
44
|
+
useScopedStyles('breadcrumb', breadcrumbScopedStyles);
|
|
22
45
|
}
|
|
23
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbItemComponent, isStandalone: true, selector: "bs-breadcrumb-item", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } },
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsBreadcrumbItemComponent, isStandalone: true, selector: "bs-breadcrumb-item", inputs: { active: { classPropertyName: "active", publicName: "active", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
25
48
|
}
|
|
26
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsBreadcrumbItemComponent, decorators: [{
|
|
27
50
|
type: Component,
|
|
28
|
-
args: [{ selector: 'bs-breadcrumb-item', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
}], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
51
|
+
args: [{ selector: 'bs-breadcrumb-item', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
52
|
+
}], ctorParameters: () => [], propDecorators: { active: [{ type: i0.Input, args: [{ isSignal: true, alias: "active", required: false }] }] } });
|
|
53
|
+
|
|
54
|
+
// GENERATED from the breadcrumb manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
55
|
+
|
|
56
|
+
// Generated from @mintplayer/ui-core/breadcrumb (#458 D10).
|
|
35
57
|
|
|
36
58
|
/**
|
|
37
59
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-breadcrumb.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb-item.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/breadcrumb-item.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/breadcrumb/mintplayer-ng-bootstrap-breadcrumb.ts"],"sourcesContent":["// GENERATED from the breadcrumb manifest (breadcrumb) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { breadcrumbCore, type BreadcrumbInputs, breadcrumbScopedStyles } from '@mintplayer/ui-core/breadcrumb';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n/** Bootstrap's breadcrumb: a `<nav>` landmark named by `label` around an ordered list of `breadcrumb-item`s. */\n@Component({\n selector: 'bs-breadcrumb',\n templateUrl: './breadcrumb.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbComponent {\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 label = input<BreadcrumbInputs['label']>('Breadcrumb');\n\n readonly #core = useCore(breadcrumbCore, { inputs: () => ({ label: this.label() }), idPrefix: 'bs-breadcrumb', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'breadcrumb' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order }); useScopedStyles('breadcrumb', breadcrumbScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<nav data-mps=\"breadcrumb\" [mpProps]=\"p_view.nav\" [mpHostAttrs]=\"hostAttrs\">\n <ol data-mps=\"breadcrumb\" [mpProps]=\"p_view.list\">\n <ng-content />\n </ol>\n</nav>\n","// GENERATED from the breadcrumb manifest (breadcrumb-item) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { breadcrumbItemCore, type BreadcrumbItemInputs, breadcrumbScopedStyles } from '@mintplayer/ui-core/breadcrumb';\nimport { bootstrapBreadcrumb } from '@mintplayer/ui-core/bootstrap/breadcrumb';\n\n/** One step of a breadcrumb: put a link in it, or plain text for the `active` (current) page. */\n@Component({\n selector: 'bs-breadcrumb-item',\n templateUrl: './breadcrumb-item.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsBreadcrumbItemComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly active = input<BreadcrumbItemInputs['active'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(breadcrumbItemCore, { inputs: () => ({ active: this.active() }), idPrefix: 'bs-breadcrumb-item', hostBag: (props) => ({ ...props.root, 'data-mps': 'breadcrumb', role: 'listitem' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapBreadcrumb.key, bootstrapBreadcrumb.css, { order: bootstrapBreadcrumb.order }); useScopedStyles('breadcrumb', breadcrumbScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/breadcrumb/src/templates/breadcrumb-item.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the breadcrumb manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsBreadcrumbComponent } from './breadcrumb.component.generated';\nexport { BsBreadcrumbItemComponent } from './breadcrumb-item.component.generated';\n","// Generated from @mintplayer/ui-core/breadcrumb (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"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"}
|
|
@@ -1,18 +1,38 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { buttonGroupCore, buttonGroupScopedStyles } from '@mintplayer/ui-core/button-group';
|
|
5
|
+
import { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';
|
|
3
6
|
|
|
7
|
+
// GENERATED from the button-group manifest (button-group) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/** Bootstrap's button group: a `role="group"` `.btn-group` named by `label`. It joins direct `.btn` children and buttons rendered inside a hosted child (a toggle button) alike. */
|
|
4
9
|
class BsButtonGroupComponent {
|
|
10
|
+
#core;
|
|
5
11
|
constructor() {
|
|
6
|
-
|
|
7
|
-
|
|
12
|
+
/** The host element. */
|
|
13
|
+
this.elementRef = inject(ElementRef);
|
|
14
|
+
this.label = input(null, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
16
|
+
this.vertical = input(false, { ...(ngDevMode ? { debugName: "vertical" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
17
|
+
this.size = input(null, /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
19
|
+
this.#core = useCore(buttonGroupCore, { inputs: () => ({ label: this.label(), vertical: this.vertical(), size: this.size() }), idPrefix: 'bs-button-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'button-group' }) });
|
|
20
|
+
/** The template's props. */
|
|
21
|
+
this.props = this.#core.props;
|
|
22
|
+
useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order });
|
|
23
|
+
useScopedStyles('button-group', buttonGroupScopedStyles);
|
|
8
24
|
}
|
|
9
25
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
10
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: {
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsButtonGroupComponent, isStandalone: true, selector: "bs-button-group", inputs: { label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, vertical: { classPropertyName: "vertical", publicName: "vertical", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/button-group/src/templates/button-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
11
27
|
}
|
|
12
28
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsButtonGroupComponent, decorators: [{
|
|
13
29
|
type: Component,
|
|
14
|
-
args: [{ selector: 'bs-button-group', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
15
|
-
}], propDecorators: {
|
|
30
|
+
args: [{ selector: 'bs-button-group', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/button-group/src/templates/button-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
31
|
+
}], ctorParameters: () => [], propDecorators: { label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], vertical: [{ type: i0.Input, args: [{ isSignal: true, alias: "vertical", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }] } });
|
|
32
|
+
|
|
33
|
+
// GENERATED from the button-group manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
34
|
+
|
|
35
|
+
// Generated from @mintplayer/ui-core/button-group (#458 D10).
|
|
16
36
|
|
|
17
37
|
/**
|
|
18
38
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-button-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-group/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-button-group.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/button-group/src/generated/button-group.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/button-group/src/generated/button-group.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/button-group/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/button-group/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/button-group/mintplayer-ng-bootstrap-button-group.ts"],"sourcesContent":["// GENERATED from the button-group manifest (button-group) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { buttonGroupCore, type ButtonGroupInputs, buttonGroupScopedStyles } from '@mintplayer/ui-core/button-group';\nimport { bootstrapButtonGroup } from '@mintplayer/ui-core/bootstrap/button-group';\n\n/** Bootstrap's button group: a `role=\"group\"` `.btn-group` named by `label`. It joins direct `.btn` children and buttons rendered inside a hosted child (a toggle button) alike. */\n@Component({\n selector: 'bs-button-group',\n templateUrl: './button-group.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsButtonGroupComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly label = input<ButtonGroupInputs['label']>(null);\n readonly vertical = input<ButtonGroupInputs['vertical'], unknown>(false, { transform: booleanAttribute });\n readonly size = input<ButtonGroupInputs['size']>(null);\n\n readonly #core = useCore(buttonGroupCore, { inputs: () => ({ label: this.label(), vertical: this.vertical(), size: this.size() }), idPrefix: 'bs-button-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'button-group' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapButtonGroup.key, bootstrapButtonGroup.css, { order: bootstrapButtonGroup.order }); useScopedStyles('button-group', buttonGroupScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/button-group/src/templates/button-group.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the button-group manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsButtonGroupComponent } from './button-group.component.generated';\n","// Generated from @mintplayer/ui-core/button-group (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;MAOa,sBAAsB,CAAA;AAQxB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAVS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,KAAK,GAAG,KAAK,CAA6B,IAAI;kFAAC;QAC/C,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAyC,KAAK,gFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAChG,IAAA,CAAA,IAAI,GAAG,KAAK,CAA4B,IAAI;iFAAC;AAE7C,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,eAAe,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,iBAAiB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,EAAE,UAAU,EAAE,cAAc,EAAE,CAAC,EAAE,CAAC;;AAEnN,QAAA,IAAA,CAAA,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC,KAAK;AAGzC,QAAA,eAAe,CAAC,oBAAoB,CAAC,GAAG,EAAE,oBAAoB,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,oBAAoB,CAAC,KAAK,EAAE,CAAC;AAAE,QAAA,eAAe,CAAC,cAAc,EAAE,uBAAuB,CAAC;IACtK;8GAdW,sBAAsB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAtB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,sBAAsB,qcCbnC,uKAEA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDWa,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBANlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,iBAAiB,EAAA,OAAA,EAElB,EAAE,EAAA,eAAA,EACM,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,uKAAA,EAAA;;;AEXjD;;ACAA;;ACAA;;AAEG;;;;"}
|