@mintplayer/ng-bootstrap 22.32.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/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 +4 -8
- 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 +6 -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 +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 +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 +12 -24
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +5 -9
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +5 -7
- 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 +199 -16
- 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 +9 -11
- 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 +7 -15
- 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 +47 -63
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +14 -22
- 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 +8 -8
- 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 +5 -7
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.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 +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 +9 -13
- 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 +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 +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 +95 -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,53 +1,48 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, ChangeDetectionStrategy, Component, Directive } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { stickyFooterCore, stickyFooterScopedStyles, stickyFooterParentCore } from '@mintplayer/ui-core/sticky-footer';
|
|
4
5
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
*/
|
|
6
|
+
// GENERATED from the sticky-footer manifest (sticky-footer) by @mintplayer/nx-component-compiler. Do not edit.
|
|
7
|
+
/** A `<footer>` pinned to the bottom of its `stickyFooterParent` while the content is shorter than `--mp-sticky-footer-min-height` (default `100dvh`). */
|
|
8
|
+
class BsStickyFooterComponent {
|
|
9
|
+
#core;
|
|
10
|
+
constructor() {
|
|
11
|
+
/** The host element. */
|
|
12
|
+
this.elementRef = inject(ElementRef);
|
|
13
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
14
|
+
this.hostAttrs = useHostAttrs();
|
|
15
|
+
this.#core = useCore(stickyFooterCore, { inputs: () => ({}), idPrefix: 'bs-sticky-footer', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'sticky-footer' }) });
|
|
16
|
+
/** The template's props. */
|
|
17
|
+
this.props = this.#core.props;
|
|
18
|
+
useScopedStyles('sticky-footer', stickyFooterScopedStyles);
|
|
19
|
+
}
|
|
20
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
21
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
22
|
+
}
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
|
|
24
|
+
type: Component,
|
|
25
|
+
args: [{ selector: 'bs-sticky-footer', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n" }]
|
|
26
|
+
}], ctorParameters: () => [] });
|
|
27
|
+
|
|
28
|
+
// GENERATED from the sticky-footer manifest (sticky-footer-parent) by @mintplayer/nx-component-compiler. Do not edit.
|
|
29
|
+
/** Makes the element a flex column at least `--mp-sticky-footer-min-height` tall, so the sticky footer inside it ends up at the bottom. */
|
|
11
30
|
class BsStickyFooterParentDirective {
|
|
12
31
|
constructor() {
|
|
13
|
-
this.
|
|
14
|
-
|
|
32
|
+
this.core = useCore(stickyFooterParentCore, { inputs: () => ({}), idPrefix: 'bs-sticky-footer-parent', hostBag: (props) => ({ ...props, 'data-mps': 'sticky-footer' }) });
|
|
33
|
+
useScopedStyles('sticky-footer', stickyFooterScopedStyles);
|
|
15
34
|
}
|
|
16
35
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
17
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]",
|
|
36
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsStickyFooterParentDirective, isStandalone: true, selector: "[bsStickyFooterParent]", ngImport: i0 }); }
|
|
18
37
|
}
|
|
19
38
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterParentDirective, decorators: [{
|
|
20
39
|
type: Directive,
|
|
21
|
-
args: [{
|
|
22
|
-
|
|
23
|
-
host: {
|
|
24
|
-
'[style.margin-bottom.px]': 'marginBottom()',
|
|
25
|
-
},
|
|
26
|
-
}]
|
|
27
|
-
}] });
|
|
40
|
+
args: [{ selector: '[bsStickyFooterParent]' }]
|
|
41
|
+
}], ctorParameters: () => [] });
|
|
28
42
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
this.injector = injector;
|
|
33
|
-
this.sizeObserver = viewChild.required('sizeObserver', /* @ts-ignore */
|
|
34
|
-
...(ngDevMode ? [{ debugName: "sizeObserver" }] : /* istanbul ignore next */ []));
|
|
35
|
-
}
|
|
36
|
-
ngAfterViewInit() {
|
|
37
|
-
effect(() => {
|
|
38
|
-
const height = this.sizeObserver().height();
|
|
39
|
-
if (height !== undefined) {
|
|
40
|
-
this.parent.marginBottom.set(height);
|
|
41
|
-
}
|
|
42
|
-
}, { injector: this.injector });
|
|
43
|
-
}
|
|
44
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, deps: [{ token: BsStickyFooterParentDirective }, { token: i0.Injector }], target: i0.ɵɵFactoryTarget.Component }); }
|
|
45
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsStickyFooterComponent, isStandalone: true, selector: "bs-sticky-footer", viewQueries: [{ propertyName: "sizeObserver", first: true, predicate: ["sizeObserver"], descendants: true, isSignal: true }], ngImport: i0, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"], dependencies: [{ kind: "directive", type: BsObserveSizeDirective, selector: "[bsObserveSize]", exportAs: ["bsObserveSize"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
46
|
-
}
|
|
47
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsStickyFooterComponent, decorators: [{
|
|
48
|
-
type: Component,
|
|
49
|
-
args: [{ selector: 'bs-sticky-footer', imports: [BsObserveSizeDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>", styles: [".footer{bottom:0;left:0;right:0}::ng-deep html{position:relative;min-height:100%}\n"] }]
|
|
50
|
-
}], ctorParameters: () => [{ type: BsStickyFooterParentDirective }, { type: i0.Injector }], propDecorators: { sizeObserver: [{ type: i0.ViewChild, args: ['sizeObserver', { isSignal: true }] }] } });
|
|
43
|
+
// GENERATED from the sticky-footer manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
44
|
+
|
|
45
|
+
// Generated from @mintplayer/ui-core/sticky-footer (#458 D10).
|
|
51
46
|
|
|
52
47
|
/**
|
|
53
48
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/sticky-footer-parent.directive.generated.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["// GENERATED from the sticky-footer manifest (sticky-footer) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { stickyFooterCore, stickyFooterScopedStyles } from '@mintplayer/ui-core/sticky-footer';\n\n/** A `<footer>` pinned to the bottom of its `stickyFooterParent` while the content is shorter than `--mp-sticky-footer-min-height` (default `100dvh`). */\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent {\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 #core = useCore(stickyFooterCore, { inputs: () => ({ }), idPrefix: 'bs-sticky-footer', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'sticky-footer' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('sticky-footer', stickyFooterScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/sticky-footer/src/templates/sticky-footer.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<footer data-mps=\"sticky-footer\" [mpProps]=\"p_view.footer\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</footer>\n","// GENERATED from the sticky-footer manifest (sticky-footer-parent) by @mintplayer/nx-component-compiler. Do not edit.\nimport { Directive } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { stickyFooterParentCore, stickyFooterScopedStyles } from '@mintplayer/ui-core/sticky-footer';\n\n/** Makes the element a flex column at least `--mp-sticky-footer-min-height` tall, so the sticky footer inside it ends up at the bottom. */\n@Directive({ selector: '[bsStickyFooterParent]' })\nexport class BsStickyFooterParentDirective {\n\n protected readonly core = useCore(stickyFooterParentCore, { inputs: () => ({ }), idPrefix: 'bs-sticky-footer-parent', hostBag: (props) => ({ ...props, 'data-mps': 'sticky-footer' }) });\n\n constructor() {\n useScopedStyles('sticky-footer', stickyFooterScopedStyles);\n }\n}\n","// GENERATED from the sticky-footer manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsStickyFooterComponent } from './sticky-footer.component.generated';\nexport { BsStickyFooterParentDirective } from './sticky-footer-parent.directive.generated';\n","// Generated from @mintplayer/ui-core/sticky-footer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AC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,gTAAA,EAAA;;;AEVjD;AAKA;MAEa,6BAA6B,CAAA;AAIxC,IAAA,WAAA,GAAA;AAFmB,QAAA,IAAA,CAAA,IAAI,GAAG,OAAO,CAAC,sBAAsB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAI,CAAC,EAAE,QAAQ,EAAE,yBAAyB,EAAE,OAAO,EAAE,CAAC,KAAK,MAAM,EAAE,GAAG,KAAK,EAAE,UAAU,EAAE,eAAe,EAAE,CAAC,EAAE,CAAC;AAGvL,QAAA,eAAe,CAAC,eAAe,EAAE,wBAAwB,CAAC;IAC5D;8GANW,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA7B,6BAA6B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,wBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBADzC,SAAS;mBAAC,EAAE,QAAQ,EAAE,wBAAwB,EAAE;;;ACNjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,142 +1,102 @@
|
|
|
1
|
-
import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';
|
|
2
|
-
import { NgTemplateOutlet } from '@angular/common';
|
|
3
1
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { inject, TemplateRef, Directive, input, contentChild, viewChild, ChangeDetectionStrategy, Component,
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
2
|
+
import { inject, TemplateRef, Directive, input, booleanAttribute, contentChild, viewChild, computed, ChangeDetectionStrategy, Component, ElementRef, model, contentChildren } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { tabControlCore, tabControlScopedStyles } from '@mintplayer/ui-core/tab-control';
|
|
6
|
+
import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';
|
|
8
7
|
|
|
8
|
+
// GENERATED from the tab-control manifest (tab-page) by @mintplayer/nx-component-compiler. Do not edit.
|
|
9
|
+
/** The `header` slot of `<bs-tab-page>`: `<ng-template bsTabPageHeader>` or `*bsTabPageHeader`. The tab's content: any markup, not just text. */
|
|
9
10
|
class BsTabPageHeaderDirective {
|
|
10
11
|
constructor() {
|
|
11
|
-
this.
|
|
12
|
+
this.templateRef = inject(TemplateRef);
|
|
12
13
|
}
|
|
13
14
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
14
15
|
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsTabPageHeaderDirective, isStandalone: true, selector: "[bsTabPageHeader]", ngImport: i0 }); }
|
|
15
16
|
}
|
|
16
17
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageHeaderDirective, decorators: [{
|
|
17
18
|
type: Directive,
|
|
18
|
-
args: [{
|
|
19
|
-
selector: '[bsTabPageHeader]',
|
|
20
|
-
}]
|
|
19
|
+
args: [{ selector: '[bsTabPageHeader]' }]
|
|
21
20
|
}] });
|
|
22
|
-
|
|
23
21
|
/**
|
|
24
|
-
* One page of a
|
|
25
|
-
*
|
|
26
|
-
*
|
|
22
|
+
* One page of a tab control. Its `header` slot fills the tab, its content the pane.
|
|
23
|
+
*
|
|
24
|
+
* Renders nothing itself: the parent that collects it renders its slots (default, header).
|
|
27
25
|
*/
|
|
28
26
|
class BsTabPageComponent {
|
|
29
27
|
constructor() {
|
|
30
|
-
this.
|
|
31
|
-
...(ngDevMode ? [{ debugName: "
|
|
32
|
-
this.
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
28
|
+
this.tabId = input(null, /* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [{ debugName: "tabId" }] : /* istanbul ignore next */ []));
|
|
30
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
31
|
+
this.headerSlot = contentChild(BsTabPageHeaderDirective, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "headerSlot" }] : /* istanbul ignore next */ []));
|
|
33
|
+
this.defaultSlot = viewChild('lent', /* @ts-ignore */
|
|
34
|
+
...(ngDevMode ? [{ debugName: "defaultSlot" }] : /* istanbul ignore next */ []));
|
|
35
|
+
/** The nearest parent that collects this element; a nested one of the same kind owns it, not an outer one. */
|
|
36
|
+
this.contentParent = inject(BsTabControlComponent, { optional: true });
|
|
37
|
+
/** What a parent's content query reads from this element. */
|
|
38
|
+
this.contentChild = computed(() => ({ inputs: ({ tabId: this.tabId(), disabled: this.disabled() }), within: null }), /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "contentChild" }] : /* istanbul ignore next */ []));
|
|
40
|
+
/** The slots this element lends the parent that renders them. */
|
|
41
|
+
this.contentSlots = computed(() => ({ default: this.defaultSlot(), header: this.headerSlot()?.templateRef }), /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "contentSlots" }] : /* istanbul ignore next */ []));
|
|
36
43
|
}
|
|
37
44
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "hidden": "" } }, queries: [{ propertyName: "
|
|
45
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsTabPageComponent, isStandalone: true, selector: "bs-tab-page", inputs: { tabId: { classPropertyName: "tabId", publicName: "tabId", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "hidden": "" } }, queries: [{ propertyName: "headerSlot", first: true, predicate: BsTabPageHeaderDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "defaultSlot", first: true, predicate: ["lent"], descendants: true, isSignal: true }], ngImport: i0, template: '<ng-template #lent><ng-content /></ng-template>', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
39
46
|
}
|
|
40
47
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabPageComponent, decorators: [{
|
|
41
48
|
type: Component,
|
|
42
49
|
args: [{
|
|
43
50
|
selector: 'bs-tab-page',
|
|
44
|
-
template: '<ng-template #
|
|
51
|
+
template: '<ng-template #lent><ng-content /></ng-template>',
|
|
45
52
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
46
53
|
host: { hidden: '' },
|
|
47
54
|
}]
|
|
48
|
-
}], propDecorators: { disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }],
|
|
55
|
+
}], propDecorators: { tabId: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabId", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsTabPageHeaderDirective), { isSignal: true }] }], defaultSlot: [{ type: i0.ViewChild, args: ['lent', { isSignal: true }] }] } });
|
|
49
56
|
|
|
57
|
+
// GENERATED from the tab-control manifest (tab-control) by @mintplayer/nx-component-compiler. Do not edit.
|
|
50
58
|
/**
|
|
51
|
-
*
|
|
52
|
-
*
|
|
53
|
-
* <bs-tab-control [border]="true" tabsPosition="top">
|
|
54
|
-
* <bs-tab-page [disabled]="false">
|
|
55
|
-
* <ng-container *bsTabPageHeader>Profile</ng-container>
|
|
56
|
-
* Page content
|
|
57
|
-
* </bs-tab-page>
|
|
58
|
-
* </bs-tab-control>
|
|
59
|
+
* Bootstrap nav-tabs over one native radio per page (#458). `activeTab` is two-way: the shown
|
|
60
|
+
* page's `tabId`, or its position.
|
|
59
61
|
*
|
|
60
|
-
*
|
|
61
|
-
*
|
|
62
|
-
*
|
|
63
|
-
* client has rendered, the labels become APG tabs (roving tabindex,
|
|
64
|
-
* automatic activation) and the radios leave the tab order. The host is the
|
|
65
|
-
* `.tab-control` root; each page hands over its header and body as templates.
|
|
62
|
+
* The server-rendered page is a working tab control with JavaScript off: the checked radio shows
|
|
63
|
+
* its pane through CSS. Once hydrated the labels become APG tabs (roving tabindex, automatic
|
|
64
|
+
* activation; Left/Right, Home/End) and the radios leave the tab order.
|
|
66
65
|
*/
|
|
67
66
|
class BsTabControlComponent {
|
|
67
|
+
#core;
|
|
68
68
|
constructor() {
|
|
69
|
-
/**
|
|
70
|
-
this.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
this.
|
|
74
|
-
...(ngDevMode ?
|
|
69
|
+
/** The host element. */
|
|
70
|
+
this.elementRef = inject(ElementRef);
|
|
71
|
+
this.activeTab = model(null, /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "activeTab" }] : /* istanbul ignore next */ []));
|
|
73
|
+
this.border = input(true, { ...(ngDevMode ? { debugName: "border" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
74
|
+
this.selectFirstTab = input(true, { ...(ngDevMode ? { debugName: "selectFirstTab" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
75
75
|
this.tabsPosition = input('top', /* @ts-ignore */
|
|
76
76
|
...(ngDevMode ? [{ debugName: "tabsPosition" }] : /* istanbul ignore next */ []));
|
|
77
|
-
this.
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
this
|
|
84
|
-
/** The
|
|
85
|
-
this.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
...(ngDevMode ? [{ debugName: "states" }] : /* istanbul ignore next */ []));
|
|
89
|
-
this.activeIndex = computed(() => {
|
|
90
|
-
const active = this.activeTab();
|
|
91
|
-
return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());
|
|
92
|
-
}, /* @ts-ignore */
|
|
93
|
-
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
94
|
-
this.checkedTab = computed(() => {
|
|
95
|
-
const index = this.activeIndex();
|
|
96
|
-
return index === null ? null : this.tabPages()[index];
|
|
97
|
-
}, /* @ts-ignore */
|
|
98
|
-
...(ngDevMode ? [{ debugName: "checkedTab" }] : /* istanbul ignore next */ []));
|
|
99
|
-
this.bottomTabs = computed(() => this.tabsPosition() === 'bottom', /* @ts-ignore */
|
|
100
|
-
...(ngDevMode ? [{ debugName: "bottomTabs" }] : /* istanbul ignore next */ []));
|
|
101
|
-
this.view = computed(() => connectTabControl({ id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() }, this.states(), this.activeIndex()), /* @ts-ignore */
|
|
102
|
-
...(ngDevMode ? [{ debugName: "view" }] : /* istanbul ignore next */ []));
|
|
103
|
-
useBootstrap(bootstrapNav);
|
|
104
|
-
useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);
|
|
105
|
-
afterNextRender(() => this.enhanced.set(true));
|
|
106
|
-
}
|
|
107
|
-
setActiveTab(tab) {
|
|
108
|
-
if (!tab.disabled())
|
|
109
|
-
this.activeTab.set(tab);
|
|
110
|
-
}
|
|
111
|
-
onTabClick(event, tab) {
|
|
112
|
-
// Before enhancement the label forwards to its radio and `change` selects.
|
|
113
|
-
if (!this.enhanced())
|
|
114
|
-
return;
|
|
115
|
-
if (tabControlTabClick(event, tab.disabled()))
|
|
116
|
-
this.activeTab.set(tab);
|
|
117
|
-
}
|
|
118
|
-
onTabKeydown(event, index) {
|
|
119
|
-
const target = tabControlKeydown(this.host, event, index, this.states());
|
|
120
|
-
if (target !== null)
|
|
121
|
-
this.activeTab.set(this.tabPages()[target]);
|
|
122
|
-
}
|
|
123
|
-
onChange(event) {
|
|
124
|
-
const index = tabControlChanged(this.host, event);
|
|
125
|
-
if (index !== null)
|
|
126
|
-
this.activeTab.set(this.tabPages()[index]);
|
|
77
|
+
this.query_pages = contentChildren(BsTabPageComponent, { ...(ngDevMode ? { debugName: "query_pages" } : /* istanbul ignore next */ {}), descendants: true });
|
|
78
|
+
this.content_pages = computed(() => this.query_pages().filter((c) => c.contentParent === this), /* @ts-ignore */
|
|
79
|
+
...(ngDevMode ? [{ debugName: "content_pages" }] : /* istanbul ignore next */ []));
|
|
80
|
+
/** The slots each content query's declarations lend the template (<content-slot>). */
|
|
81
|
+
this.contentSlots = computed(() => ({ pages: this.content_pages().map((c) => c.contentSlots()) }), /* @ts-ignore */
|
|
82
|
+
...(ngDevMode ? [{ debugName: "contentSlots" }] : /* istanbul ignore next */ []));
|
|
83
|
+
this.#core = useCore(tabControlCore, { inputs: () => ({ activeTab: this.activeTab(), border: this.border(), selectFirstTab: this.selectFirstTab(), tabsPosition: this.tabsPosition(), pages: this.content_pages().map((c) => c.contentChild()) }), idPrefix: 'bs-tab-control', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tab-control' }), models: { activeTab: this.activeTab } });
|
|
84
|
+
/** The template's props. */
|
|
85
|
+
this.props = this.#core.props;
|
|
86
|
+
useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order });
|
|
87
|
+
useScopedStyles('tab-control', tabControlScopedStyles);
|
|
127
88
|
}
|
|
128
89
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
129
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabControlComponent, isStandalone: true, selector: "bs-tab-control", inputs: {
|
|
90
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsTabControlComponent, isStandalone: true, selector: "bs-tab-control", inputs: { activeTab: { classPropertyName: "activeTab", publicName: "activeTab", isSignal: true, isRequired: false, transformFunction: null }, border: { classPropertyName: "border", publicName: "border", isSignal: true, isRequired: false, transformFunction: null }, selectFirstTab: { classPropertyName: "selectFirstTab", publicName: "selectFirstTab", isSignal: true, isRequired: false, transformFunction: null }, tabsPosition: { classPropertyName: "tabsPosition", publicName: "tabsPosition", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { activeTab: "activeTabChange" }, queries: [{ propertyName: "query_pages", predicate: BsTabPageComponent, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
130
91
|
}
|
|
131
92
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTabControlComponent, decorators: [{
|
|
132
93
|
type: Component,
|
|
133
|
-
args: [{ selector: 'bs-tab-control', changeDetection: ChangeDetectionStrategy.OnPush,
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
}], ctorParameters: () => [], propDecorators: { border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], selectFirstTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectFirstTab", required: false }] }], tabsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsPosition", required: false }] }], tabPages: [{ type: i0.ContentChildren, args: [forwardRef(() => BsTabPageComponent), { isSignal: true }] }] } });
|
|
94
|
+
args: [{ selector: 'bs-tab-control', imports: [MpPropsDirective, NgTemplateOutlet], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n" }]
|
|
95
|
+
}], ctorParameters: () => [], propDecorators: { activeTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeTab", required: false }] }, { type: i0.Output, args: ["activeTabChange"] }], border: [{ type: i0.Input, args: [{ isSignal: true, alias: "border", required: false }] }], selectFirstTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectFirstTab", required: false }] }], tabsPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "tabsPosition", required: false }] }], query_pages: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => BsTabPageComponent), { ...{ descendants: true }, isSignal: true }] }] } });
|
|
96
|
+
|
|
97
|
+
// GENERATED from the tab-control manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
98
|
+
|
|
99
|
+
// Generated from @mintplayer/ui-core/tab-control (#458 M4, D10).
|
|
140
100
|
|
|
141
101
|
/**
|
|
142
102
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page-header/tab-page-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-page/tab-page.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/tab-control/tab-control.component.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n@Directive({\n selector: '[bsTabPageHeader]',\n})\nexport class BsTabPageHeaderDirective {\n template = inject(TemplateRef);\n}\n","import { ChangeDetectionStrategy, Component, contentChild, input, TemplateRef, viewChild } from '@angular/core';\nimport { BsTabPageHeaderDirective } from '../tab-page-header/tab-page-header.directive';\n\n/**\n * One page of a `<bs-tab-control>`. Renders nothing itself: the control\n * renders every radio, tab and pane as siblings (the CSS pairs the n-th radio\n * with the n-th pane), so the page hands over its header and body templates.\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #body><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly disabled = input(false);\n readonly headerTemplate = contentChild(BsTabPageHeaderDirective);\n readonly body = viewChild<TemplateRef<unknown>>('body');\n}\n","import { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\nimport { NgTemplateOutlet } from '@angular/common';\nimport {\n afterNextRender,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n ElementRef,\n forwardRef,\n inject,\n input,\n signal,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useBootstrap, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n connectTabControl,\n resolveActiveTab,\n TAB_CONTROL_SCOPE,\n tabControlChanged,\n tabControlKeydown,\n tabControlScopedStyles,\n tabControlTabClick,\n} from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from '../tab-page/tab-page.component';\nimport { BsTabsPosition } from '../tabs-position';\n\n/**\n * `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).\n *\n * <bs-tab-control [border]=\"true\" tabsPosition=\"top\">\n * <bs-tab-page [disabled]=\"false\">\n * <ng-container *bsTabPageHeader>Profile</ng-container>\n * Page content\n * </bs-tab-page>\n * </bs-tab-control>\n *\n * Renders the markup of `@mintplayer/ui-core/tab-control` in its own\n * template, so the server-rendered page is a working tab control: the\n * checked radio shows its pane through CSS with JavaScript off. Once the\n * client has rendered, the labels become APG tabs (roving tabindex,\n * automatic activation) and the radios leave the tab order. The host is the\n * `.tab-control` root; each page hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'view().root[\"data-mps\"]',\n '[class.tab-control]': 'true',\n '[attr.data-tabs-position]': 'view().root[\"data-tabs-position\"]',\n '(change)': 'onChange($event)',\n },\n})\nexport class BsTabControlComponent {\n /** Draw the outline around the active pane. */\n readonly border = input(true);\n /** Show the first enabled page while none is active. */\n readonly selectFirstTab = input(true);\n readonly tabsPosition = input<BsTabsPosition>('top');\n\n readonly tabPages = contentChildren<BsTabPageComponent>(forwardRef(() => BsTabPageComponent));\n /** The page the user picked; `checkedTab` is the one that is shown. */\n readonly activeTab = signal<BsTabPageComponent | null>(null);\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-tab-control');\n /** The client has rendered: switch from the radio tier to the tab tier. */\n private readonly enhanced = signal(false);\n\n private readonly states = computed(() => this.tabPages().map((tab) => ({ disabled: tab.disabled() })));\n protected readonly activeIndex = computed(() => {\n const active = this.activeTab();\n return resolveActiveTab(this.states(), active ? this.tabPages().indexOf(active) : null, this.selectFirstTab());\n });\n readonly checkedTab = computed(() => {\n const index = this.activeIndex();\n return index === null ? null : this.tabPages()[index];\n });\n protected readonly bottomTabs = computed(() => this.tabsPosition() === 'bottom');\n protected readonly view = computed(() =>\n connectTabControl(\n { id: this.id, tabsPosition: this.tabsPosition(), border: this.border(), enhanced: this.enhanced() },\n this.states(),\n this.activeIndex(),\n ),\n );\n\n constructor() {\n useBootstrap(bootstrapNav);\n useScopedStyles(TAB_CONTROL_SCOPE, tabControlScopedStyles);\n afterNextRender(() => this.enhanced.set(true));\n }\n\n setActiveTab(tab: BsTabPageComponent): void {\n if (!tab.disabled()) this.activeTab.set(tab);\n }\n\n protected onTabClick(event: Event, tab: BsTabPageComponent): void {\n // Before enhancement the label forwards to its radio and `change` selects.\n if (!this.enhanced()) return;\n if (tabControlTabClick(event, tab.disabled())) this.activeTab.set(tab);\n }\n\n protected onTabKeydown(event: KeyboardEvent, index: number): void {\n const target = tabControlKeydown(this.host, event, index, this.states());\n if (target !== null) this.activeTab.set(this.tabPages()[target]);\n }\n\n protected onChange(event: Event): void {\n const index = tabControlChanged(this.host, event);\n if (index !== null) this.activeTab.set(this.tabPages()[index]);\n }\n}\n","@let v = view();\n@for (tab of tabPages(); track tab; let i = $index) {\n <input [mpProps]=\"v.tabs[i].radio\" [checked]=\"i === activeIndex()\" [attr.checked]=\"i === activeIndex() ? '' : null\">\n}\n@if (!bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<div [mpProps]=\"v.content\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <div [mpProps]=\"v.tabs[i].pane\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n }\n</div>\n@if (bottomTabs()) {\n <ng-container [ngTemplateOutlet]=\"strip\" />\n}\n<ng-content />\n\n<ng-template #strip>\n <div [mpProps]=\"v.strip\">\n <ul [mpProps]=\"v.list\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <li [mpProps]=\"v.item\">\n <label [mpProps]=\"v.tabs[i].tab\" (click)=\"onTabClick($event, tab)\" (keydown)=\"onTabKeydown($event, i)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </label>\n </li>\n }\n </ul>\n </div>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;MAKa,wBAAwB,CAAA;AAHrC,IAAA,WAAA,GAAA;AAIE,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AAC/B,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBAHpC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACDD;;;;AAIG;MAOU,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QA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QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,kBAAkB,CAAC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE9F;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-tab-control.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-page.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-control.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/tab-control.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/tab-control/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/index.ts","../../../../libs/mintplayer-ng-bootstrap/tab-control/mintplayer-ng-bootstrap-tab-control.ts"],"sourcesContent":["// GENERATED from the tab-control manifest (tab-page) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, viewChild } from '@angular/core';\nimport { type TabPageInputs } from '@mintplayer/ui-core/tab-control';\nimport { BsTabControlComponent } from './tab-control.component.generated';\n\n/** The `header` slot of `<bs-tab-page>`: `<ng-template bsTabPageHeader>` or `*bsTabPageHeader`. The tab's content: any markup, not just text. */\n@Directive({ selector: '[bsTabPageHeader]' })\nexport class BsTabPageHeaderDirective {\n readonly templateRef = inject<TemplateRef<unknown>>(TemplateRef);\n}\n\n/**\n * One page of a tab control. Its `header` slot fills the tab, its content the pane.\n *\n * Renders nothing itself: the parent that collects it renders its slots (default, header).\n */\n@Component({\n selector: 'bs-tab-page',\n template: '<ng-template #lent><ng-content /></ng-template>',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsTabPageComponent {\n readonly tabId = input<TabPageInputs['tabId']>(null);\n readonly disabled = input<TabPageInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n private readonly headerSlot = contentChild(BsTabPageHeaderDirective);\n private readonly defaultSlot = viewChild<TemplateRef<unknown>>('lent');\n /** The nearest parent that collects this element; a nested one of the same kind owns it, not an outer one. */\n readonly contentParent = inject(BsTabControlComponent, { optional: true });\n /** What a parent's content query reads from this element. */\n readonly contentChild = computed(() => ({ inputs: ({ tabId: this.tabId(), disabled: this.disabled() }), within: null }));\n /** The slots this element lends the parent that renders them. */\n readonly contentSlots = computed(() => ({ default: this.defaultSlot(), header: this.headerSlot()?.templateRef }));\n}\n","// GENERATED from the tab-control manifest (tab-control) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, computed, contentChildren, inject, input, model } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tabControlCore, type TabControlInputs, tabControlScopedStyles } from '@mintplayer/ui-core/tab-control';\nimport { BsTabPageComponent } from './tab-page.component.generated';\nimport { bootstrapNav } from '@mintplayer/ui-core/bootstrap/nav';\n\n/**\n * Bootstrap nav-tabs over one native radio per page (#458). `activeTab` is two-way: the shown\n * page's `tabId`, or its position.\n *\n * The server-rendered page is a working tab control with JavaScript off: the checked radio shows\n * its pane through CSS. Once hydrated the labels become APG tabs (roving tabindex, automatic\n * activation; Left/Right, Home/End) and the radios leave the tab order.\n */\n@Component({\n selector: 'bs-tab-control',\n templateUrl: './tab-control.view.generated.html',\n imports: [MpPropsDirective, NgTemplateOutlet],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTabControlComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly activeTab = model<TabControlInputs['activeTab']>(null);\n readonly border = input<TabControlInputs['border'], unknown>(true, { transform: booleanAttribute });\n readonly selectFirstTab = input<TabControlInputs['selectFirstTab'], unknown>(true, { transform: booleanAttribute });\n readonly tabsPosition = input<TabControlInputs['tabsPosition']>('top');\n\n private readonly query_pages = contentChildren(BsTabPageComponent, { descendants: true });\n private readonly content_pages = computed(() => this.query_pages().filter((c) => c.contentParent === this));\n /** The slots each content query's declarations lend the template (<content-slot>). */\n protected readonly contentSlots = computed(() => ({ pages: this.content_pages().map((c): ReturnType<BsTabPageComponent['contentSlots']> | undefined => c.contentSlots()) }));\n readonly #core = useCore(tabControlCore, { inputs: () => ({ activeTab: this.activeTab(), border: this.border(), selectFirstTab: this.selectFirstTab(), tabsPosition: this.tabsPosition(), pages: this.content_pages().map((c) => c.contentChild()) }), idPrefix: 'bs-tab-control', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'tab-control' }), models: { activeTab: this.activeTab } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapNav.key, bootstrapNav.css, { order: bootstrapNav.order }); useScopedStyles('tab-control', tabControlScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/tab-control/src/templates/tab-control.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n@for (e of p_view.entries; track e.key) {\n <input data-mps=\"tab-control\" [mpProps]=\"e.radio\" [checked]=\"e.checked\">\n}\n@if (!p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<div data-mps=\"tab-control\" [mpProps]=\"p_view.content\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <div data-mps=\"tab-control\" [mpProps]=\"e.pane\">\n @if (contentSlots().pages[i]?.default; as lent_pages_default) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_default\" />\n }\n </div>\n }\n</div>\n@if (p_view.bottom) {\n <div data-mps=\"tab-control\" [mpProps]=\"p_view.strip\">\n <ul data-mps=\"tab-control\" [mpProps]=\"p_view.list\">\n @for (e of p_view.entries; track e.key; let i = $index) {\n <li data-mps=\"tab-control\" [mpProps]=\"p_view.item\">\n <label data-mps=\"tab-control\" [mpProps]=\"e.tab\">\n @if (contentSlots().pages[i]?.header; as lent_pages_header) {\n <ng-container [ngTemplateOutlet]=\"lent_pages_header\" />\n }\n </label>\n </li>\n }\n </ul>\n </div>\n}\n<ng-content />\n","// GENERATED from the tab-control manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTabControlComponent } from './tab-control.component.generated';\nexport { BsTabPageComponent, BsTabPageHeaderDirective } from './tab-page.component.generated';\n","// Generated from @mintplayer/ui-core/tab-control (#458 M4, D10).\nexport * from './src/generated';\nexport type { TabControlInputs, TabPageInputs, TabsPosition } from '@mintplayer/ui-core/tab-control';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAAA;AAKA;MAEa,wBAAwB,CAAA;AADrC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAuB,WAAW,CAAC;AACjE,IAAA;8GAFY,wBAAwB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAAxB,wBAAwB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,mBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAxB,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBADpC,SAAS;mBAAC,EAAE,QAAQ,EAAE,mBAAmB,EAAE;;AAK5C;;;;AAIG;MAOU,kBAAk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,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,kBAAkB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,IAAI,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/B1F;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,36 +1,42 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useHostAttrs, useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { tableCore, tableScopedStyles } from '@mintplayer/ui-core/table';
|
|
4
5
|
import { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';
|
|
5
6
|
|
|
7
|
+
// GENERATED from the table manifest (table) by @mintplayer/nx-component-compiler. Do not edit.
|
|
8
|
+
/**
|
|
9
|
+
* Bootstrap's table: a real `<table>` around the consumer's rows. `responsive` scrolls inline instead of
|
|
10
|
+
* wrapping; the consumer's `aria-*` (such as `aria-rowcount`) land on the `<table>`.
|
|
11
|
+
*/
|
|
6
12
|
class BsTableComponent {
|
|
13
|
+
#core;
|
|
7
14
|
constructor() {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
this.
|
|
13
|
-
...(ngDevMode ?
|
|
14
|
-
this.
|
|
15
|
-
...(ngDevMode ?
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
*/
|
|
22
|
-
this.ariaRowCount = input(null, /* @ts-ignore */
|
|
23
|
-
...(ngDevMode ? [{ debugName: "ariaRowCount" }] : /* istanbul ignore next */ []));
|
|
24
|
-
// #452: the tables partial ships with the table, scoped to its stamped <table>.
|
|
25
|
-
useBootstrap(bootstrapTables);
|
|
15
|
+
/** The host element. */
|
|
16
|
+
this.elementRef = inject(ElementRef);
|
|
17
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
18
|
+
this.hostAttrs = useHostAttrs();
|
|
19
|
+
this.responsive = input(false, { ...(ngDevMode ? { debugName: "responsive" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
20
|
+
this.striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.hover = input(false, { ...(ngDevMode ? { debugName: "hover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
22
|
+
this.bordered = input(false, { ...(ngDevMode ? { debugName: "bordered" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
23
|
+
this.#core = useCore(tableCore, { inputs: () => ({ responsive: this.responsive(), striped: this.striped(), hover: this.hover(), bordered: this.bordered() }), idPrefix: 'bs-table', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'table' }) });
|
|
24
|
+
/** The template's props. */
|
|
25
|
+
this.props = this.#core.props;
|
|
26
|
+
useScopedStyles(bootstrapTables.key, bootstrapTables.css, { order: bootstrapTables.order });
|
|
27
|
+
useScopedStyles('table', tableScopedStyles);
|
|
26
28
|
}
|
|
27
29
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: {
|
|
30
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsTableComponent, isStandalone: true, selector: "bs-table", inputs: { responsive: { classPropertyName: "responsive", publicName: "responsive", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, hover: { classPropertyName: "hover", publicName: "hover", isSignal: true, isRequired: false, transformFunction: null }, bordered: { classPropertyName: "bordered", publicName: "bordered", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/table/src/templates/table.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<table data-mps=\"table\" [mpProps]=\"p_view.table\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</table>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
29
31
|
}
|
|
30
32
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsTableComponent, decorators: [{
|
|
31
33
|
type: Component,
|
|
32
|
-
args: [{ selector: 'bs-table', changeDetection: ChangeDetectionStrategy.OnPush, template: "
|
|
33
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
34
|
+
args: [{ selector: 'bs-table', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/table/src/templates/table.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<table data-mps=\"table\" [mpProps]=\"p_view.table\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</table>\n" }]
|
|
35
|
+
}], ctorParameters: () => [], propDecorators: { responsive: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsive", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], hover: [{ type: i0.Input, args: [{ isSignal: true, alias: "hover", required: false }] }], bordered: [{ type: i0.Input, args: [{ isSignal: true, alias: "bordered", required: false }] }] } });
|
|
36
|
+
|
|
37
|
+
// GENERATED from the table manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
38
|
+
|
|
39
|
+
// Generated from @mintplayer/ui-core/table (#458 D10).
|
|
34
40
|
|
|
35
41
|
/**
|
|
36
42
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-table.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/table/src/generated/table.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/generated/table.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/table/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/table/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/table/mintplayer-ng-bootstrap-table.ts"],"sourcesContent":["// GENERATED from the table manifest (table) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input } from '@angular/core';\nimport { MpPropsDirective, useCore, useHostAttrs, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { tableCore, type TableInputs, tableScopedStyles } from '@mintplayer/ui-core/table';\nimport { bootstrapTables } from '@mintplayer/ui-core/bootstrap/tables';\n\n/**\n * Bootstrap's table: a real `<table>` around the consumer's rows. `responsive` scrolls inline instead of\n * wrapping; the consumer's `aria-*` (such as `aria-rowcount`) land on the `<table>`.\n */\n@Component({\n selector: 'bs-table',\n templateUrl: './table.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsTableComponent {\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 responsive = input<TableInputs['responsive'], unknown>(false, { transform: booleanAttribute });\n readonly striped = input<TableInputs['striped'], unknown>(false, { transform: booleanAttribute });\n readonly hover = input<TableInputs['hover'], unknown>(false, { transform: booleanAttribute });\n readonly bordered = input<TableInputs['bordered'], unknown>(false, { transform: booleanAttribute });\n\n readonly #core = useCore(tableCore, { inputs: () => ({ responsive: this.responsive(), striped: this.striped(), hover: this.hover(), bordered: this.bordered() }), idPrefix: 'bs-table', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'table' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles(bootstrapTables.key, bootstrapTables.css, { order: bootstrapTables.order }); useScopedStyles('table', tableScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/table/src/templates/table.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<table data-mps=\"table\" [mpProps]=\"p_view.table\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</table>\n","// GENERATED from the table manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsTableComponent } from './table.component.generated';\n","// Generated from @mintplayer/ui-core/table (#458 D10).\nexport * from './generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAAA;AAMA;;;AAGG;MAOU,gBAAgB,CAAA;AAYlB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;;QAG9C,IAAA,CAAA,SAAS,GAAG,YAAY,EAAE;QAEpC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAqC,KAAK,kFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC9F,IAAA,CAAA,OAAO,GAAG,KAAK,CAAkC,KAAK,+EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACxF,IAAA,CAAA,KAAK,GAAG,KAAK,CAAgC,KAAK,6EAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QACpF,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAmC,KA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OAAA,EAAA,UAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,QAAA,EAAA,EAAA,iBAAA,EAAA,UAAA,EAAA,UAAA,EAAA,UAAA,EAAA,QAAA,EAAA,IAAA,EAAA,UAAA,EAAA,KAAA,EAAA,iBAAA,EAAA,IAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EChB7B,qRAKA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EDQY,gBAAgB,EAAA,QAAA,EAAA,yBAAA,EAAA,MAAA,EAAA,CAAA,SAAA,EAAA,aAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAGf,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAN5B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,WAEX,CAAC,gBAAgB,CAAC,EAAA,eAAA,EACV,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,qRAAA,EAAA;;;AEdjD;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -172,7 +172,7 @@ class BsThemeToggleComponent {
|
|
|
172
172
|
useScopedStyles('theme-toggle', themeToggleScopedStyles);
|
|
173
173
|
}
|
|
174
174
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeToggleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
175
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsThemeToggleComponent, isStandalone: true, selector: "bs-theme-toggle", inputs: { modes: { classPropertyName: "modes", publicName: "modes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/theming/src/templates/theme-toggle.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"theme-toggle\" [mpProps]=\"p_view.button\">\n <svg data-mps=\"theme-toggle\" [mpProps]=\"p_view.icon\">\n <path data-mps=\"theme-toggle\" [mpProps]=\"p_view.path\"></path>\n </svg>\n</button>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.description\">\n {{ p_view.descriptionText }}\n</span>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</span>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
175
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsThemeToggleComponent, isStandalone: true, selector: "bs-theme-toggle", inputs: { modes: { classPropertyName: "modes", publicName: "modes", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/theming/src/templates/theme-toggle.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<button data-mps=\"theme-toggle\" [mpProps]=\"p_view.button\">\n <svg data-mps=\"theme-toggle\" [mpProps]=\"p_view.icon\">\n <path data-mps=\"theme-toggle\" [mpProps]=\"p_view.path\"></path>\n </svg>\n</button>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.description\">\n {{ p_view.descriptionText }}\n</span>\n<span data-mps=\"theme-toggle\" [mpProps]=\"p_view.live\">\n {{ p_view.liveText }}\n</span>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
176
176
|
}
|
|
177
177
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsThemeToggleComponent, decorators: [{
|
|
178
178
|
type: Component,
|