@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,305 +1,243 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { input,
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import { Color } from '@mintplayer/ng-bootstrap';
|
|
6
|
-
import { cardColorClasses, capColorClasses, cardImgClass } from '@mintplayer/ui-core/card';
|
|
2
|
+
import { inject, ElementRef, input, booleanAttribute, ChangeDetectionStrategy, Component, numberAttribute } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, useHostAttrs, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { cardCore, cardScopedStyles, cardHeaderCore, cardFooterCore, cardBodyCore, cardTitleCore, cardSubtitleCore, cardTextCore, cardGroupCore, cardImgCore, cardLinkCore } from '@mintplayer/ui-core/card';
|
|
7
5
|
export { CARD_COLORS, isCardColor } from '@mintplayer/ui-core/card';
|
|
8
|
-
import {
|
|
6
|
+
import { bootstrapCard } from '@mintplayer/ui-core/bootstrap/card';
|
|
9
7
|
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
* inner element and no core, so the server renders the finished card and the
|
|
13
|
-
* card part this component installs (#452) styles it with JS off. Projected
|
|
14
|
-
* `<bs-card-*>` children are plain class-carrying elements, each stamped
|
|
15
|
-
* `data-mps="card"` so the scoped part matches them.
|
|
16
|
-
*/
|
|
8
|
+
// GENERATED from the card manifest (card) by @mintplayer/nx-component-compiler. Do not edit.
|
|
9
|
+
/** Bootstrap's card: a `.card` around its header, body, image and footer parts. `color` fills it; `outline` colours only its border. */
|
|
17
10
|
class BsCardComponent {
|
|
11
|
+
#core;
|
|
18
12
|
constructor() {
|
|
19
|
-
|
|
13
|
+
/** The host element. */
|
|
14
|
+
this.elementRef = inject(ElementRef);
|
|
15
|
+
this.color = input(null, /* @ts-ignore */
|
|
20
16
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
21
|
-
this.outline = input(false, /*
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
...(ngDevMode ? [{ debugName: "classes" }] : /* istanbul ignore next */ []));
|
|
28
|
-
// #452: the card partial ships with this component, scoped to the elements it stamps (data-mps="card").
|
|
29
|
-
useBootstrap(bootstrapCard);
|
|
17
|
+
this.outline = input(false, { ...(ngDevMode ? { debugName: "outline" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
18
|
+
this.#core = useCore(cardCore, { inputs: () => ({ color: this.color(), outline: this.outline() }), idPrefix: 'bs-card', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
19
|
+
/** The template's props. */
|
|
20
|
+
this.props = this.#core.props;
|
|
21
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
22
|
+
useScopedStyles('card', cardScopedStyles);
|
|
30
23
|
}
|
|
31
24
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardComponent, isStandalone: true, selector: "bs-card", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null } },
|
|
25
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardComponent, isStandalone: true, selector: "bs-card", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null }, outline: { classPropertyName: "outline", publicName: "outline", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
33
26
|
}
|
|
34
27
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardComponent, decorators: [{
|
|
35
28
|
type: Component,
|
|
36
|
-
args: [{
|
|
37
|
-
selector: 'bs-card',
|
|
38
|
-
template: '<ng-content></ng-content>',
|
|
39
|
-
host: { '[attr.data-mps]': '"card"', '[class]': 'classes()' },
|
|
40
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
41
|
-
}]
|
|
29
|
+
args: [{ selector: 'bs-card', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
42
30
|
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }], outline: [{ type: i0.Input, args: [{ isSignal: true, alias: "outline", required: false }] }] } });
|
|
43
31
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
* `card-header-pills` class, written by the consumer on the nav (the old
|
|
47
|
-
* `navStyle` input walked and mutated consumer DOM, which a headless front
|
|
48
|
-
* never does).
|
|
49
|
-
*/
|
|
32
|
+
// GENERATED from the card manifest (card-header) by @mintplayer/nx-component-compiler. Do not edit.
|
|
33
|
+
/** The card's header cap. A nav inside it takes the nav's `cardHeader` for Bootstrap's header tabs or pills. */
|
|
50
34
|
class BsCardHeaderComponent {
|
|
35
|
+
#core;
|
|
51
36
|
constructor() {
|
|
52
|
-
|
|
37
|
+
/** The host element. */
|
|
38
|
+
this.elementRef = inject(ElementRef);
|
|
39
|
+
this.color = input(null, /* @ts-ignore */
|
|
53
40
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
54
|
-
this
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
// #452: the card partial ships with this component, scoped to the elements it stamps (data-mps="card").
|
|
60
|
-
useBootstrap(bootstrapCard);
|
|
41
|
+
this.#core = useCore(cardHeaderCore, { inputs: () => ({ color: this.color() }), idPrefix: 'bs-card-header', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
42
|
+
/** The template's props. */
|
|
43
|
+
this.props = this.#core.props;
|
|
44
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
45
|
+
useScopedStyles('card', cardScopedStyles);
|
|
61
46
|
}
|
|
62
47
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
63
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardHeaderComponent, isStandalone: true, selector: "bs-card-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } },
|
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardHeaderComponent, isStandalone: true, selector: "bs-card-header", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
64
49
|
}
|
|
65
50
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardHeaderComponent, decorators: [{
|
|
66
51
|
type: Component,
|
|
67
|
-
args: [{ selector: 'bs-card-header',
|
|
52
|
+
args: [{ selector: 'bs-card-header', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
68
53
|
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
69
54
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
* implementation: Bootstrap's `.card-body` padding applies as upstream
|
|
73
|
-
* specifies. Consumers wanting unpadded content can use a raw `<div>` inside
|
|
74
|
-
* `<bs-card>` instead.
|
|
75
|
-
*/
|
|
76
|
-
class BsCardBodyComponent {
|
|
77
|
-
constructor() {
|
|
78
|
-
// #452: the card partial ships with this component, scoped to the elements it stamps (data-mps="card").
|
|
79
|
-
useBootstrap(bootstrapCard);
|
|
80
|
-
}
|
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
82
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardBodyComponent, isStandalone: true, selector: "bs-card-body", host: { properties: { "attr.data-mps": "\"card\"" }, classAttribute: "card-body" }, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
83
|
-
}
|
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, decorators: [{
|
|
85
|
-
type: Component,
|
|
86
|
-
args: [{ selector: 'bs-card-body', template: '<ng-content></ng-content>', host: { '[attr.data-mps]': '"card"', class: 'card-body' }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
|
|
87
|
-
}], ctorParameters: () => [] });
|
|
88
|
-
|
|
55
|
+
// GENERATED from the card manifest (card-footer) by @mintplayer/nx-component-compiler. Do not edit.
|
|
56
|
+
/** The card's footer cap. */
|
|
89
57
|
class BsCardFooterComponent {
|
|
58
|
+
#core;
|
|
90
59
|
constructor() {
|
|
91
|
-
|
|
60
|
+
/** The host element. */
|
|
61
|
+
this.elementRef = inject(ElementRef);
|
|
62
|
+
this.color = input(null, /* @ts-ignore */
|
|
92
63
|
...(ngDevMode ? [{ debugName: "color" }] : /* istanbul ignore next */ []));
|
|
93
|
-
this
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
// #452: the card partial ships with this component, scoped to the elements it stamps (data-mps="card").
|
|
99
|
-
useBootstrap(bootstrapCard);
|
|
64
|
+
this.#core = useCore(cardFooterCore, { inputs: () => ({ color: this.color() }), idPrefix: 'bs-card-footer', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
65
|
+
/** The template's props. */
|
|
66
|
+
this.props = this.#core.props;
|
|
67
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
68
|
+
useScopedStyles('card', cardScopedStyles);
|
|
100
69
|
}
|
|
101
70
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
102
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardFooterComponent, isStandalone: true, selector: "bs-card-footer", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } },
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardFooterComponent, isStandalone: true, selector: "bs-card-footer", inputs: { color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
103
72
|
}
|
|
104
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardFooterComponent, decorators: [{
|
|
105
74
|
type: Component,
|
|
106
|
-
args: [{ selector: 'bs-card-footer',
|
|
75
|
+
args: [{ selector: 'bs-card-footer', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
107
76
|
}], ctorParameters: () => [], propDecorators: { color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
108
77
|
|
|
78
|
+
// GENERATED from the card manifest (card-body) by @mintplayer/nx-component-compiler. Do not edit.
|
|
79
|
+
/** The card's padded body. */
|
|
80
|
+
class BsCardBodyComponent {
|
|
81
|
+
#core;
|
|
82
|
+
constructor() {
|
|
83
|
+
/** The host element. */
|
|
84
|
+
this.elementRef = inject(ElementRef);
|
|
85
|
+
this.#core = useCore(cardBodyCore, { inputs: () => ({}), idPrefix: 'bs-card-body', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
86
|
+
/** The template's props. */
|
|
87
|
+
this.props = this.#core.props;
|
|
88
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
89
|
+
useScopedStyles('card', cardScopedStyles);
|
|
90
|
+
}
|
|
91
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
92
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardBodyComponent, isStandalone: true, selector: "bs-card-body", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardBodyComponent, decorators: [{
|
|
95
|
+
type: Component,
|
|
96
|
+
args: [{ selector: 'bs-card-body', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
97
|
+
}], ctorParameters: () => [] });
|
|
98
|
+
|
|
99
|
+
// GENERATED from the card manifest (card-title) by @mintplayer/nx-component-compiler. Do not edit.
|
|
100
|
+
/** A card title: `role="heading"` at `level` (5 by default, matching Bootstrap's visual h5). */
|
|
109
101
|
class BsCardTitleComponent {
|
|
102
|
+
#core;
|
|
110
103
|
constructor() {
|
|
111
|
-
/**
|
|
112
|
-
this.
|
|
113
|
-
...(ngDevMode ?
|
|
114
|
-
|
|
115
|
-
|
|
104
|
+
/** The host element. */
|
|
105
|
+
this.elementRef = inject(ElementRef);
|
|
106
|
+
this.level = input(5, { ...(ngDevMode ? { debugName: "level" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
107
|
+
this.#core = useCore(cardTitleCore, { inputs: () => ({ level: this.level() }), idPrefix: 'bs-card-title', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
108
|
+
/** The template's props. */
|
|
109
|
+
this.props = this.#core.props;
|
|
110
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
111
|
+
useScopedStyles('card', cardScopedStyles);
|
|
116
112
|
}
|
|
117
113
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
118
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardTitleComponent, isStandalone: true, selector: "bs-card-title", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } },
|
|
114
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardTitleComponent, isStandalone: true, selector: "bs-card-title", inputs: { level: { classPropertyName: "level", publicName: "level", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
119
115
|
}
|
|
120
116
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTitleComponent, decorators: [{
|
|
121
117
|
type: Component,
|
|
122
|
-
args: [{ selector: 'bs-card-title', template:
|
|
123
|
-
'[attr.data-mps]': '"card"',
|
|
124
|
-
class: 'card-title',
|
|
125
|
-
role: 'heading',
|
|
126
|
-
'[attr.aria-level]': 'level()',
|
|
127
|
-
}, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
|
|
118
|
+
args: [{ selector: 'bs-card-title', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
128
119
|
}], ctorParameters: () => [], propDecorators: { level: [{ type: i0.Input, args: [{ isSignal: true, alias: "level", required: false }] }] } });
|
|
129
120
|
|
|
121
|
+
// GENERATED from the card manifest (card-subtitle) by @mintplayer/nx-component-compiler. Do not edit.
|
|
122
|
+
/** A card subtitle. */
|
|
130
123
|
class BsCardSubtitleComponent {
|
|
124
|
+
#core;
|
|
131
125
|
constructor() {
|
|
132
|
-
|
|
133
|
-
|
|
126
|
+
/** The host element. */
|
|
127
|
+
this.elementRef = inject(ElementRef);
|
|
128
|
+
this.#core = useCore(cardSubtitleCore, { inputs: () => ({}), idPrefix: 'bs-card-subtitle', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
129
|
+
/** The template's props. */
|
|
130
|
+
this.props = this.#core.props;
|
|
131
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
132
|
+
useScopedStyles('card', cardScopedStyles);
|
|
134
133
|
}
|
|
135
134
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardSubtitleComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
136
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardSubtitleComponent, isStandalone: true, selector: "bs-card-subtitle",
|
|
135
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardSubtitleComponent, isStandalone: true, selector: "bs-card-subtitle", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
137
136
|
}
|
|
138
137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardSubtitleComponent, decorators: [{
|
|
139
138
|
type: Component,
|
|
140
|
-
args: [{ selector: 'bs-card-subtitle',
|
|
139
|
+
args: [{ selector: 'bs-card-subtitle', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
141
140
|
}], ctorParameters: () => [] });
|
|
142
141
|
|
|
142
|
+
// GENERATED from the card manifest (card-text) by @mintplayer/nx-component-compiler. Do not edit.
|
|
143
|
+
/** A paragraph of card text. */
|
|
143
144
|
class BsCardTextComponent {
|
|
145
|
+
#core;
|
|
144
146
|
constructor() {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
+
/** The host element. */
|
|
148
|
+
this.elementRef = inject(ElementRef);
|
|
149
|
+
this.#core = useCore(cardTextCore, { inputs: () => ({}), idPrefix: 'bs-card-text', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
150
|
+
/** The template's props. */
|
|
151
|
+
this.props = this.#core.props;
|
|
152
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
153
|
+
useScopedStyles('card', cardScopedStyles);
|
|
147
154
|
}
|
|
148
155
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
149
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardTextComponent, isStandalone: true, selector: "bs-card-text",
|
|
156
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardTextComponent, isStandalone: true, selector: "bs-card-text", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
150
157
|
}
|
|
151
158
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardTextComponent, decorators: [{
|
|
152
159
|
type: Component,
|
|
153
|
-
args: [{ selector: 'bs-card-text',
|
|
160
|
+
args: [{ selector: 'bs-card-text', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
154
161
|
}], ctorParameters: () => [] });
|
|
155
162
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
*/
|
|
161
|
-
class BsCardLinkComponent {
|
|
163
|
+
// GENERATED from the card manifest (card-group) by @mintplayer/nx-component-compiler. Do not edit.
|
|
164
|
+
/** Cards side by side with joined borders. */
|
|
165
|
+
class BsCardGroupComponent {
|
|
166
|
+
#core;
|
|
162
167
|
constructor() {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
this.
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
useBootstrap(bootstrapCard);
|
|
168
|
+
/** The host element. */
|
|
169
|
+
this.elementRef = inject(ElementRef);
|
|
170
|
+
this.#core = useCore(cardGroupCore, { inputs: () => ({}), idPrefix: 'bs-card-group', hostBag: (props) => ({ ...props.root, 'data-mps': 'card' }) });
|
|
171
|
+
/** The template's props. */
|
|
172
|
+
this.props = this.#core.props;
|
|
173
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
174
|
+
useScopedStyles('card', cardScopedStyles);
|
|
171
175
|
}
|
|
172
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
173
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
176
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
177
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsCardGroupComponent, isStandalone: true, selector: "bs-card-group", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
174
178
|
}
|
|
175
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
179
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardGroupComponent, decorators: [{
|
|
176
180
|
type: Component,
|
|
177
|
-
args: [{
|
|
178
|
-
|
|
179
|
-
template: '<a data-mps="card" [attr.href]="hrefAttr()"><ng-content></ng-content></a>',
|
|
180
|
-
host: { '[attr.data-mps]': '"card"', class: 'card-link' },
|
|
181
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
182
|
-
}]
|
|
183
|
-
}], ctorParameters: () => [], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }] } });
|
|
181
|
+
args: [{ selector: 'bs-card-group', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-part.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
182
|
+
}], ctorParameters: () => [] });
|
|
184
183
|
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
* to the underlying `<img>`. Overlay form additionally wraps slotted content
|
|
188
|
-
* in `<div class="card-img-overlay">`.
|
|
189
|
-
*
|
|
190
|
-
* The host element carries the `card-img-*` class so Bootstrap's
|
|
191
|
-
* `.card-group > .card > .card-img-top` corner-rounding selectors match
|
|
192
|
-
* (the inner `<img>` would otherwise be a grandchild of `.card`). The inner
|
|
193
|
-
* `<img>` carries the same class so Bootstrap's `width: 100%` sizing rule
|
|
194
|
-
* applies; the host's border-radius is paired with `overflow: hidden` so the img's straight corners get clipped.
|
|
195
|
-
*
|
|
196
|
-
* Projection uses `*ngTemplateOutlet` instead of inlining `<ng-content>` in
|
|
197
|
-
* each `@case`: multiple `<ng-content>` slots in conditional branches silently
|
|
198
|
-
* drop the projected children. One `<ng-content>` inside a `<ng-template>`
|
|
199
|
-
* works around the limitation, at the cost of importing `NgTemplateOutlet`.
|
|
200
|
-
*/
|
|
184
|
+
// GENERATED from the card manifest (card-img) by @mintplayer/nx-component-compiler. Do not edit.
|
|
185
|
+
/** A card image at the top or bottom, or `overlay` with the content laid over it. Without `alt` it is decorative. */
|
|
201
186
|
class BsCardImgComponent {
|
|
187
|
+
#core;
|
|
202
188
|
constructor() {
|
|
189
|
+
/** The host element. */
|
|
190
|
+
this.elementRef = inject(ElementRef);
|
|
191
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
192
|
+
this.hostAttrs = useHostAttrs();
|
|
203
193
|
this.position = input('top', /* @ts-ignore */
|
|
204
194
|
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
205
|
-
this.src = input(
|
|
195
|
+
this.src = input(null, /* @ts-ignore */
|
|
206
196
|
...(ngDevMode ? [{ debugName: "src" }] : /* istanbul ignore next */ []));
|
|
207
|
-
this.alt = input(
|
|
197
|
+
this.alt = input(null, /* @ts-ignore */
|
|
208
198
|
...(ngDevMode ? [{ debugName: "alt" }] : /* istanbul ignore next */ []));
|
|
209
|
-
this
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
...(ngDevMode ? [{ debugName: "imgClass" }] : /* istanbul ignore next */ []));
|
|
215
|
-
// `?? null` so an absent src removes the attribute instead of leaving an
|
|
216
|
-
// empty `src=""` on the DOM.
|
|
217
|
-
this.srcAttr = computed(() => this.src() ?? null, /* @ts-ignore */
|
|
218
|
-
...(ngDevMode ? [{ debugName: "srcAttr" }] : /* istanbul ignore next */ []));
|
|
219
|
-
// alt is the opposite case: an <img> with NO alt attribute is announced by
|
|
220
|
-
// its filename, while alt="" marks it decorative and silences it. Absent
|
|
221
|
-
// input therefore means decorative, never unlabelled.
|
|
222
|
-
this.altAttr = computed(() => this.alt() ?? '', /* @ts-ignore */
|
|
223
|
-
...(ngDevMode ? [{ debugName: "altAttr" }] : /* istanbul ignore next */ []));
|
|
224
|
-
// #452: the card partial ships with this component, scoped to the elements it stamps (data-mps="card").
|
|
225
|
-
useBootstrap(bootstrapCard);
|
|
199
|
+
this.#core = useCore(cardImgCore, { inputs: () => ({ position: this.position(), src: this.src(), alt: this.alt() }), idPrefix: 'bs-card-img', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'card' }) });
|
|
200
|
+
/** The template's props. */
|
|
201
|
+
this.props = this.#core.props;
|
|
202
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
203
|
+
useScopedStyles('card', cardScopedStyles);
|
|
226
204
|
}
|
|
227
205
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardImgComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
228
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCardImgComponent, isStandalone: true, selector: "bs-card-img", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } },
|
|
229
|
-
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
230
|
-
<ng-template #imgTpl>
|
|
231
|
-
<img data-mps="card" [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
|
|
232
|
-
</ng-template>
|
|
233
|
-
|
|
234
|
-
@switch (position()) {
|
|
235
|
-
@case ('overlay') {
|
|
236
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
237
|
-
<div data-mps="card" class="card-img-overlay">
|
|
238
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
239
|
-
</div>
|
|
240
|
-
}
|
|
241
|
-
@case ('bottom') {
|
|
242
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
243
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
244
|
-
}
|
|
245
|
-
@default {
|
|
246
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
247
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
248
|
-
}
|
|
249
|
-
}
|
|
250
|
-
`, isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCardImgComponent, isStandalone: true, selector: "bs-card-img", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: false, transformFunction: null }, src: { classPropertyName: "src", publicName: "src", isSignal: true, isRequired: false, transformFunction: null }, alt: { classPropertyName: "alt", publicName: "alt", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-img.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<img data-mps=\"card\" [mpProps]=\"p_view.img\" [attr.src]=\"p_view.src\" [mpHostAttrs]=\"hostAttrs\">\n@if (p_view.overlay) {\n <div data-mps=\"card\" [mpProps]=\"p_view.overlay\">\n <ng-content />\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
251
207
|
}
|
|
252
208
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardImgComponent, decorators: [{
|
|
253
209
|
type: Component,
|
|
254
|
-
args: [{ selector: 'bs-card-img', imports: [
|
|
255
|
-
<ng-template #projected><ng-content></ng-content></ng-template>
|
|
256
|
-
<ng-template #imgTpl>
|
|
257
|
-
<img data-mps="card" [class]="imgClass()" [attr.src]="srcAttr()" [attr.alt]="altAttr()" />
|
|
258
|
-
</ng-template>
|
|
259
|
-
|
|
260
|
-
@switch (position()) {
|
|
261
|
-
@case ('overlay') {
|
|
262
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
263
|
-
<div data-mps="card" class="card-img-overlay">
|
|
264
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
265
|
-
</div>
|
|
266
|
-
}
|
|
267
|
-
@case ('bottom') {
|
|
268
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
269
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
270
|
-
}
|
|
271
|
-
@default {
|
|
272
|
-
<ng-container *ngTemplateOutlet="imgTpl"></ng-container>
|
|
273
|
-
<ng-container *ngTemplateOutlet="projected"></ng-container>
|
|
274
|
-
}
|
|
275
|
-
}
|
|
276
|
-
`, host: { '[attr.data-mps]': '"card"', '[class]': 'hostClass()' }, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:block}\n"] }]
|
|
210
|
+
args: [{ selector: 'bs-card-img', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-img.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<img data-mps=\"card\" [mpProps]=\"p_view.img\" [attr.src]=\"p_view.src\" [mpHostAttrs]=\"hostAttrs\">\n@if (p_view.overlay) {\n <div data-mps=\"card\" [mpProps]=\"p_view.overlay\">\n <ng-content />\n </div>\n}\n" }]
|
|
277
211
|
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: false }] }], src: [{ type: i0.Input, args: [{ isSignal: true, alias: "src", required: false }] }], alt: [{ type: i0.Input, args: [{ isSignal: true, alias: "alt", required: false }] }] } });
|
|
278
212
|
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
*/
|
|
284
|
-
class BsCardGroupComponent {
|
|
213
|
+
// GENERATED from the card manifest (card-link) by @mintplayer/nx-component-compiler. Do not edit.
|
|
214
|
+
/** A link in a card. Sibling links are spaced apart. */
|
|
215
|
+
class BsCardLinkComponent {
|
|
216
|
+
#core;
|
|
285
217
|
constructor() {
|
|
286
|
-
|
|
287
|
-
|
|
218
|
+
/** The host element. */
|
|
219
|
+
this.elementRef = inject(ElementRef);
|
|
220
|
+
/** The consumer's aria-*, id and tabindex on the host, for the role-bearing node. */
|
|
221
|
+
this.hostAttrs = useHostAttrs();
|
|
222
|
+
this.href = input(null, /* @ts-ignore */
|
|
223
|
+
...(ngDevMode ? [{ debugName: "href" }] : /* istanbul ignore next */ []));
|
|
224
|
+
this.#core = useCore(cardLinkCore, { inputs: () => ({ href: this.href() }), idPrefix: 'bs-card-link', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'card' }) });
|
|
225
|
+
/** The template's props. */
|
|
226
|
+
this.props = this.#core.props;
|
|
227
|
+
useScopedStyles(bootstrapCard.key, bootstrapCard.css, { order: bootstrapCard.order });
|
|
228
|
+
useScopedStyles('card', cardScopedStyles);
|
|
288
229
|
}
|
|
289
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
290
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "
|
|
230
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
231
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", type: BsCardLinkComponent, isStandalone: true, selector: "bs-card-link", inputs: { href: { classPropertyName: "href", publicName: "href", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-link.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"card\" [mpProps]=\"p_view.link\" [attr.href]=\"p_view.href\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</a>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps],[mpHostAttrs]", inputs: ["mpProps", "mpHostAttrs"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
291
232
|
}
|
|
292
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
233
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCardLinkComponent, decorators: [{
|
|
293
234
|
type: Component,
|
|
294
|
-
args: [{
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
299
|
-
}]
|
|
300
|
-
}], ctorParameters: () => [] });
|
|
235
|
+
args: [{ selector: 'bs-card-link', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/card/src/templates/card-link.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<a data-mps=\"card\" [mpProps]=\"p_view.link\" [attr.href]=\"p_view.href\" [mpHostAttrs]=\"hostAttrs\">\n <ng-content />\n</a>\n" }]
|
|
236
|
+
}], ctorParameters: () => [], propDecorators: { href: [{ type: i0.Input, args: [{ isSignal: true, alias: "href", required: false }] }] } });
|
|
237
|
+
|
|
238
|
+
// GENERATED from the card manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
301
239
|
|
|
302
|
-
//
|
|
240
|
+
// Generated from @mintplayer/ui-core/card (#458 M4, D10): the card and its parts.
|
|
303
241
|
|
|
304
242
|
/**
|
|
305
243
|
* Generated bundle index. Do not edit.
|