@mintplayer/ng-bootstrap 22.28.0 → 22.30.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/_bootstrap.scss +4 -101
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +62 -30
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +71 -64
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs +50 -46
- package/fesm2022/mintplayer-ng-bootstrap-calendar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +65 -94
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +122 -97
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs +80 -133
- package/fesm2022/mintplayer-ng-bootstrap-charts-hierarchy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs +31 -19
- package/fesm2022/mintplayer-ng-bootstrap-charts-sparkline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-charts-trend.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +76 -37
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs +37 -82
- package/fesm2022/mintplayer-ng-bootstrap-code-snippet.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-color-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +157 -824
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +283 -20
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs +98 -129
- package/fesm2022/mintplayer-ng-bootstrap-multi-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +144 -265
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +133 -217
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +46 -25
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs +166 -93
- package/fesm2022/mintplayer-ng-bootstrap-phone-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +148 -231
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +133 -94
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +76 -7
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs +766 -812
- package/fesm2022/mintplayer-ng-bootstrap-ribbon.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +206 -180
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +202 -141
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +113 -59
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +133 -76
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +60 -87
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +86 -83
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs +1 -2
- package/fesm2022/mintplayer-ng-bootstrap-table.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs +38 -34
- package/fesm2022/mintplayer-ng-bootstrap-theming.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +177 -147
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs +200 -94
- package/fesm2022/mintplayer-ng-bootstrap-timepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +186 -233
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +58 -136
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +22 -16
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/package.json +11 -9
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +40 -21
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +36 -33
- package/types/mintplayer-ng-bootstrap-calendar.d.ts +39 -16
- package/types/mintplayer-ng-bootstrap-card.d.ts +25 -33
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +70 -55
- package/types/mintplayer-ng-bootstrap-charts-hierarchy.d.ts +65 -45
- package/types/mintplayer-ng-bootstrap-charts-sparkline.d.ts +12 -3
- package/types/mintplayer-ng-bootstrap-charts-trend.d.ts +34 -19
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +34 -8
- package/types/mintplayer-ng-bootstrap-code-snippet.d.ts +32 -59
- package/types/mintplayer-ng-bootstrap-datatable.d.ts +222 -422
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +124 -4
- package/types/mintplayer-ng-bootstrap-multi-range.d.ts +53 -27
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +88 -164
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +63 -30
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +23 -7
- package/types/mintplayer-ng-bootstrap-phone-input.d.ts +77 -47
- package/types/mintplayer-ng-bootstrap-query-builder.d.ts +95 -98
- package/types/mintplayer-ng-bootstrap-radio.d.ts +68 -35
- package/types/mintplayer-ng-bootstrap-rating.d.ts +27 -2
- package/types/mintplayer-ng-bootstrap-ribbon.d.ts +546 -220
- package/types/mintplayer-ng-bootstrap-scheduler.d.ts +82 -197
- package/types/mintplayer-ng-bootstrap-select.d.ts +113 -53
- package/types/mintplayer-ng-bootstrap-shell.d.ts +59 -33
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +63 -27
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +45 -56
- package/types/mintplayer-ng-bootstrap-tab-control.d.ts +47 -26
- package/types/mintplayer-ng-bootstrap-table.d.ts +1 -2
- package/types/mintplayer-ng-bootstrap-theming.d.ts +19 -18
- package/types/mintplayer-ng-bootstrap-timeline.d.ts +287 -117
- package/types/mintplayer-ng-bootstrap-timepicker.d.ts +100 -27
- package/types/mintplayer-ng-bootstrap-tree-select.d.ts +188 -94
- package/types/mintplayer-ng-bootstrap-treeview.d.ts +74 -59
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +3 -0
- package/src/styles/utilities/cursor.scss +0 -12
- package/src/styles/utilities/overflow.scss +0 -12
- package/src/styles/utilities/white-space.scss +0 -12
- package/src/styles/utilities/width.scss +0 -14
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { NgTemplateOutlet } from '@angular/common';
|
|
2
2
|
import * as i0 from '@angular/core';
|
|
3
|
-
import { inject, TemplateRef, Directive, model, input, contentChild, computed, ChangeDetectionStrategy, Component, contentChildren, forwardRef,
|
|
4
|
-
|
|
5
|
-
import {
|
|
3
|
+
import { inject, TemplateRef, Directive, model, input, contentChild, viewChild, computed, ChangeDetectionStrategy, Component, contentChildren, forwardRef, ElementRef, DestroyRef } from '@angular/core';
|
|
4
|
+
import { BsIdService } from '@mintplayer/ng-bootstrap/a11y';
|
|
5
|
+
import { useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
6
|
+
import { connectAccordion, connectAccordionTab, ACCORDION_SCOPE, accordionScopedStyles, accordionToggled, closeAccordion, accordionRows, accordionSummaryClick, accordionKeydown } from '@mintplayer/ui-core/accordion';
|
|
6
7
|
|
|
7
8
|
/**
|
|
8
9
|
* `*bsAccordionTabHeader` — declares the header content of the enclosing
|
|
9
10
|
* `<bs-accordion-tab>`.
|
|
10
11
|
*
|
|
11
|
-
* It is a template rather than projected content because the header
|
|
12
|
-
*
|
|
13
|
-
*
|
|
14
|
-
*
|
|
12
|
+
* It is a template rather than projected content because the header lands in
|
|
13
|
+
* the row's `<summary>` while the rest of the tab's content lands in the
|
|
14
|
+
* collapsible region, and one `<ng-content>` cannot feed two places. The tab
|
|
15
|
+
* renders the captured template into its summary.
|
|
15
16
|
*
|
|
16
17
|
* Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former
|
|
17
18
|
* `<bs-accordion-tab-header>` component.
|
|
@@ -40,14 +41,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
40
41
|
/**
|
|
41
42
|
* `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.
|
|
42
43
|
*
|
|
43
|
-
*
|
|
44
|
-
* `
|
|
45
|
-
*
|
|
46
|
-
*
|
|
47
|
-
* would put that element one level too deep to be slotted.
|
|
48
|
-
*
|
|
49
|
-
* The header is declared with `*bsAccordionTabHeader` and rendered by the
|
|
50
|
-
* parent accordion (see `BsAccordionComponent`).
|
|
44
|
+
* It renders nothing in place: its projected children become a template
|
|
45
|
+
* (`body`) that the parent accordion renders inside the tab's `<details>`,
|
|
46
|
+
* together with the `*bsAccordionTabHeader` template. The parent renders
|
|
47
|
+
* every row so the rows are siblings (see `BsAccordionComponent`).
|
|
51
48
|
*/
|
|
52
49
|
class BsAccordionTabComponent {
|
|
53
50
|
constructor() {
|
|
@@ -59,12 +56,15 @@ class BsAccordionTabComponent {
|
|
|
59
56
|
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
60
57
|
this.headerTemplate = contentChild(BsAccordionTabHeaderDirective, /* @ts-ignore */
|
|
61
58
|
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
62
|
-
/**
|
|
59
|
+
/** The tab's projected content, rendered by the parent accordion. */
|
|
60
|
+
this.body = viewChild('body', /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "body" }] : /* istanbul ignore next */ []));
|
|
62
|
+
/** Position among its siblings. */
|
|
63
63
|
this.index = computed(() => this.accordion.tabPages().indexOf(this), /* @ts-ignore */
|
|
64
64
|
...(ngDevMode ? [{ debugName: "index" }] : /* istanbul ignore next */ []));
|
|
65
65
|
}
|
|
66
66
|
/**
|
|
67
|
-
* Open or close this tab through
|
|
67
|
+
* Open or close this tab through its `<details>`, so single-open
|
|
68
68
|
* exclusivity and the nested-accordion collapse both apply — unlike
|
|
69
69
|
* writing `isActive` directly.
|
|
70
70
|
*/
|
|
@@ -72,20 +72,15 @@ class BsAccordionTabComponent {
|
|
|
72
72
|
this.accordion.setActive(this.index(), value);
|
|
73
73
|
}
|
|
74
74
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAccordionTabComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
75
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsAccordionTabComponent, isStandalone: true, selector: "bs-accordion-tab", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isActive: "isActiveChange" }, host: { attributes: { "
|
|
75
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsAccordionTabComponent, isStandalone: true, selector: "bs-accordion-tab", inputs: { isActive: { classPropertyName: "isActive", publicName: "isActive", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { isActive: "isActiveChange" }, host: { attributes: { "hidden": "" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: BsAccordionTabHeaderDirective, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "body", first: true, predicate: ["body"], descendants: true, isSignal: true }], ngImport: i0, template: "<ng-template #body><ng-content /></ng-template>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
76
76
|
}
|
|
77
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAccordionTabComponent, decorators: [{
|
|
78
78
|
type: Component,
|
|
79
|
-
args: [{ selector: 'bs-accordion-tab', changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
80
|
-
|
|
81
|
-
'[attr.slot]': '"c" + index()',
|
|
82
|
-
'[attr.is-active]': 'isActive() ? "" : null',
|
|
83
|
-
'[attr.disabled]': 'disabled() ? "" : null',
|
|
84
|
-
}, template: "<ng-content></ng-content>\n" }]
|
|
85
|
-
}], propDecorators: { isActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isActive", required: false }] }, { type: i0.Output, args: ["isActiveChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsAccordionTabHeaderDirective), { isSignal: true }] }] } });
|
|
79
|
+
args: [{ selector: 'bs-accordion-tab', changeDetection: ChangeDetectionStrategy.OnPush, host: { hidden: '' }, template: "<ng-template #body><ng-content /></ng-template>\n" }]
|
|
80
|
+
}], propDecorators: { isActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "isActive", required: false }] }, { type: i0.Output, args: ["isActiveChange"] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsAccordionTabHeaderDirective), { isSignal: true }] }], body: [{ type: i0.ViewChild, args: ['body', { isSignal: true }] }] } });
|
|
86
81
|
|
|
87
82
|
/**
|
|
88
|
-
* `<bs-accordion>` —
|
|
83
|
+
* `<bs-accordion>` — Bootstrap accordion on native `<details name>` (#437).
|
|
89
84
|
*
|
|
90
85
|
* <bs-accordion [multi]="true">
|
|
91
86
|
* <bs-accordion-tab [(isActive)]="open">
|
|
@@ -94,20 +89,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
94
89
|
* </bs-accordion-tab>
|
|
95
90
|
* </bs-accordion>
|
|
96
91
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
*
|
|
101
|
-
* reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it
|
|
102
|
-
* as a template that this component renders in the right place.
|
|
92
|
+
* Renders the markup of `@mintplayer/ui-core/accordion` in its own template,
|
|
93
|
+
* so the server-rendered page is the working accordion: each tab is a
|
|
94
|
+
* `<details>`, which opens and closes with JavaScript off, and single-open is
|
|
95
|
+
* the platform's `name` exclusivity. The host is the `.accordion` root.
|
|
103
96
|
*
|
|
104
|
-
* The
|
|
105
|
-
*
|
|
106
|
-
*
|
|
97
|
+
* The rows are rendered here, as siblings, rather than by each tab: Bootstrap
|
|
98
|
+
* draws the borders between items with `:first-of-type`, which a per-tab host
|
|
99
|
+
* element would break. Each tab hands over its header and body as templates.
|
|
107
100
|
*/
|
|
108
101
|
class BsAccordionComponent {
|
|
109
102
|
constructor() {
|
|
110
|
-
/** Allow several tabs to stay open at once
|
|
103
|
+
/** Allow several tabs to stay open at once. */
|
|
111
104
|
this.multi = input(false, /* @ts-ignore */
|
|
112
105
|
...(ngDevMode ? [{ debugName: "multi" }] : /* istanbul ignore next */ []));
|
|
113
106
|
/** Paint the open header with the Bootstrap active background. */
|
|
@@ -115,45 +108,59 @@ class BsAccordionComponent {
|
|
|
115
108
|
...(ngDevMode ? [{ debugName: "highlightActiveTab" }] : /* istanbul ignore next */ []));
|
|
116
109
|
this.tabPages = contentChildren(forwardRef(() => BsAccordionTabComponent), /* @ts-ignore */
|
|
117
110
|
...(ngDevMode ? [{ debugName: "tabPages" }] : /* istanbul ignore next */ []));
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
111
|
+
this.host = inject(ElementRef).nativeElement;
|
|
112
|
+
this.id = inject(BsIdService).next('bs-accordion');
|
|
113
|
+
this.options = computed(() => ({
|
|
114
|
+
id: this.id,
|
|
115
|
+
multi: this.multi(),
|
|
116
|
+
highlightActiveTab: this.highlightActiveTab(),
|
|
117
|
+
}), /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []));
|
|
119
|
+
this.root = computed(() => connectAccordion(this.options()), /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "root" }] : /* istanbul ignore next */ []));
|
|
121
|
+
this.views = computed(() => this.tabPages().map((tab, index) => connectAccordionTab(this.options(), index, { disabled: tab.disabled() })), /* @ts-ignore */
|
|
122
|
+
...(ngDevMode ? [{ debugName: "views" }] : /* istanbul ignore next */ []));
|
|
123
|
+
useScopedStyles(ACCORDION_SCOPE, accordionScopedStyles);
|
|
124
|
+
// `toggle` does not bubble, so a host listener never hears it: one
|
|
125
|
+
// capture-phase listener on the root hears every row.
|
|
126
|
+
const onToggle = (event) => {
|
|
127
|
+
const change = accordionToggled(this.host, event, this.multi());
|
|
128
|
+
if (change)
|
|
129
|
+
this.tabPages()[change.index]?.isActive.set(change.active);
|
|
130
|
+
};
|
|
131
|
+
this.host.addEventListener('toggle', onToggle, { capture: true });
|
|
132
|
+
inject(DestroyRef).onDestroy(() => this.host.removeEventListener('toggle', onToggle, { capture: true }));
|
|
127
133
|
}
|
|
128
134
|
/** Close every open tab, and every accordion nested inside them. */
|
|
129
135
|
closeAll() {
|
|
130
|
-
this.
|
|
136
|
+
closeAccordion(this.host);
|
|
131
137
|
}
|
|
132
|
-
/**
|
|
138
|
+
/**
|
|
139
|
+
* Open or close a tab through its `<details>`, so single-open exclusivity
|
|
140
|
+
* and the nested-accordion collapse both apply.
|
|
141
|
+
*/
|
|
133
142
|
setActive(index, active) {
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
143
|
+
const row = accordionRows(this.host)[index];
|
|
144
|
+
if (row)
|
|
145
|
+
row.open = active;
|
|
146
|
+
}
|
|
147
|
+
onSummaryClick(event, tab) {
|
|
148
|
+
accordionSummaryClick(event, tab.disabled());
|
|
139
149
|
}
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
// descendant accordion's toggles pass straight through this host. Claim
|
|
143
|
-
// only our own — then stop, since this accordion has already handled it.
|
|
144
|
-
if (event.target !== this.element()?.nativeElement)
|
|
145
|
-
return;
|
|
146
|
-
event.stopPropagation();
|
|
147
|
-
const detail = event.detail;
|
|
148
|
-
this.tabPages()[detail.index]?.isActive.set(detail.active);
|
|
150
|
+
onSummaryKeydown(event, index, tab) {
|
|
151
|
+
accordionKeydown(this.host, event, index, tab.disabled());
|
|
149
152
|
}
|
|
150
153
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAccordionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
151
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAccordionComponent, isStandalone: true, selector: "bs-accordion", inputs: { multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, highlightActiveTab: { classPropertyName: "highlightActiveTab", publicName: "highlightActiveTab", isSignal: true, isRequired: false, transformFunction: null } },
|
|
154
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsAccordionComponent, isStandalone: true, selector: "bs-accordion", inputs: { multi: { classPropertyName: "multi", publicName: "multi", isSignal: true, isRequired: false, transformFunction: null }, highlightActiveTab: { classPropertyName: "highlightActiveTab", publicName: "highlightActiveTab", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.data-mps": "root()[\"data-mps\"]", "class.accordion": "true", "attr.data-highlight-active": "root()[\"data-highlight-active\"]" } }, queries: [{ propertyName: "tabPages", predicate: i0.forwardRef(() => BsAccordionTabComponent), isSignal: true }], ngImport: i0, template: "@for (tab of tabPages(); track tab; let i = $index) {\n @let view = views()[i];\n <details [mpProps]=\"view.item\" [attr.open]=\"tab.isActive() ? '' : null\">\n <summary [mpProps]=\"view.summary\" (click)=\"onSummaryClick($event, tab)\" (keydown)=\"onSummaryKeydown($event, i, tab)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </summary>\n <div [mpProps]=\"view.content\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n </details>\n}\n<ng-content />\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
152
155
|
}
|
|
153
156
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsAccordionComponent, decorators: [{
|
|
154
157
|
type: Component,
|
|
155
|
-
args: [{ selector: 'bs-accordion', changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
156
|
-
|
|
158
|
+
args: [{ selector: 'bs-accordion', changeDetection: ChangeDetectionStrategy.OnPush, imports: [MpPropsDirective, NgTemplateOutlet], host: {
|
|
159
|
+
'[attr.data-mps]': 'root()["data-mps"]',
|
|
160
|
+
'[class.accordion]': 'true',
|
|
161
|
+
'[attr.data-highlight-active]': 'root()["data-highlight-active"]',
|
|
162
|
+
}, template: "@for (tab of tabPages(); track tab; let i = $index) {\n @let view = views()[i];\n <details [mpProps]=\"view.item\" [attr.open]=\"tab.isActive() ? '' : null\">\n <summary [mpProps]=\"view.summary\" (click)=\"onSummaryClick($event, tab)\" (keydown)=\"onSummaryKeydown($event, i, tab)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </summary>\n <div [mpProps]=\"view.content\"><ng-container [ngTemplateOutlet]=\"tab.body() ?? null\" /></div>\n </details>\n}\n<ng-content />\n" }]
|
|
163
|
+
}], ctorParameters: () => [], propDecorators: { multi: [{ type: i0.Input, args: [{ isSignal: true, alias: "multi", required: false }] }], highlightActiveTab: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightActiveTab", required: false }] }], tabPages: [{ type: i0.ContentChildren, args: [forwardRef(() => BsAccordionTabComponent), { isSignal: true }] }] } });
|
|
157
164
|
|
|
158
165
|
/**
|
|
159
166
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-accordion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab-header/accordion-tab-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/mintplayer-ng-bootstrap-accordion.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * `*bsAccordionTabHeader` — declares the header content of the enclosing\n * `<bs-accordion-tab>`.\n *\n * It is a template rather than projected content because the header has to\n * end up as a direct child of `<mp-accordion>` (named slots accept nothing\n * else) while being authored inside the tab it belongs to. The parent\n * accordion renders each captured template into the matching header slot.\n *\n * Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former\n * `<bs-accordion-tab-header>` component.\n *\n * <bs-accordion>\n * <bs-accordion-tab>\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content here\n * </bs-accordion-tab>\n * </bs-accordion>\n */\n@Directive({\n selector: '[bsAccordionTabHeader]',\n})\nexport class BsAccordionTabHeaderDirective {\n readonly template = inject(TemplateRef);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n model,\n} from '@angular/core';\nimport { BsAccordionComponent } from '../accordion/accordion.component';\nimport { BsAccordionTabHeaderDirective } from '../accordion-tab-header/accordion-tab-header.directive';\n\n/**\n * `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.\n *\n * This host element IS the tab marker the web component reads: it carries\n * `accordion-tab`, its index slot and the tab's state, and its projected\n * children become the tab body. There is no separate `<mp-accordion-tab>`\n * here — an Angular component can only render inside its own host, which\n * would put that element one level too deep to be slotted.\n *\n * The header is declared with `*bsAccordionTabHeader` and rendered by the\n * parent accordion (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n 'accordion-tab': '',\n '[attr.slot]': '\"c\" + index()',\n '[attr.is-active]': 'isActive() ? \"\" : null',\n '[attr.disabled]': 'disabled() ? \"\" : null',\n },\n})\nexport class BsAccordionTabComponent {\n readonly accordion = inject(BsAccordionComponent);\n\n /** Two-way: whether this tab is open. */\n readonly isActive = model<boolean>(false);\n readonly disabled = input<boolean>(false);\n\n readonly headerTemplate = contentChild(BsAccordionTabHeaderDirective);\n\n /** Position among its siblings — the tab's identity for slots and events. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through the web component, so single-open\n * exclusivity and the nested-accordion collapse both apply — unlike\n * writing `isActive` directly.\n */\n setActive(value: boolean): void {\n this.accordion.setActive(this.index(), value);\n }\n}\n","<ng-content></ng-content>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n forwardRef,\n input,\n viewChild,\n} from '@angular/core';\n// Eager side-effect registration: the SSR chrome is injected as Declarative\n// Shadow DOM, so there is no unstyled window to protect by deferring.\nimport '@mintplayer/web-components/accordion';\nimport type { AccordionTabToggleDetail, MpAccordion } from '@mintplayer/web-components/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-accordion>` — Angular wrapper around the `<mp-accordion>` web component.\n *\n * <bs-accordion [multi]=\"true\">\n * <bs-accordion-tab [(isActive)]=\"open\">\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content\n * </bs-accordion-tab>\n * </bs-accordion>\n *\n * Each tab's header is HOISTED out of the tab and rendered here, as a sibling\n * of the tab's own marker element. Named slots only accept direct children of\n * the shadow host, and an Angular component can only render inside its own\n * host element — so a header authored inside `<bs-accordion-tab>` could never\n * reach the accordion's shadow on its own. `*bsAccordionTabHeader` captures it\n * as a template that this component renders in the right place.\n *\n * The WC owns interaction, ARIA, animation and the no-JS tier; this wrapper\n * bridges inputs to attributes and the toggle event back into each tab's\n * `isActive` model.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n styleUrls: ['./accordion.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [BsForwardAriaDirective, NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once (checkbox machine with JS off). */\n readonly multi = input(false);\n /** Paint the open header with the Bootstrap active background. */\n readonly highlightActiveTab = input(false);\n\n readonly tabPages = contentChildren<BsAccordionTabComponent>(\n forwardRef(() => BsAccordionTabComponent),\n );\n\n // Deliberately NOT viewChild.required: public methods read it, and a caller that reaches\n // this component through DI (a child's constructor, say) can call one before this\n // component's view exists. There, NG0951 would throw where the guard is a no-op.\n protected readonly element = viewChild<ElementRef<MpAccordion>>('element');\n\n protected readonly multiAttr = computed(() => (this.multi() ? '' : null));\n protected readonly highlightActiveTabAttr = computed(() =>\n this.highlightActiveTab() ? '' : null,\n );\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n this.element()?.nativeElement.closeAll();\n }\n\n /** Drive a tab through the WC so nested accordions collapse with it. */\n setActive(index: number, active: boolean): void {\n const accordion = this.element()?.nativeElement;\n if (active) accordion?.open(index);\n else accordion?.close(index);\n }\n\n protected onTabToggle(event: Event): void {\n // Nesting is the normal case here and the WC's event is composed, so a\n // descendant accordion's toggles pass straight through this host. Claim\n // only our own — then stop, since this accordion has already handled it.\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n\n const detail = (event as CustomEvent<AccordionTabToggleDetail>).detail;\n this.tabPages()[detail.index]?.isActive.set(detail.active);\n }\n}\n","<mp-accordion bsForwardAria\n #element\n [attr.multi]=\"multiAttr()\"\n [attr.highlight-active-tab]=\"highlightActiveTabAttr()\"\n (mp-accordion-tab-toggle)=\"onTabToggle($event)\">\n @for (tab of tabPages(); track tab; let i = $index) {\n <span accordion-header [attr.slot]=\"'h' + i\">\n @if (tab.headerTemplate(); as header) {\n <ng-container [ngTemplateOutlet]=\"header.template\"></ng-container>\n }\n </span>\n }\n <ng-content></ng-content>\n</mp-accordion>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;;;;;;;;;;;;;;;;AAkBG;MAIU,6BAA6B,CAAA;AAH1C,IAAA,WAAA,GAAA;AAIW,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,WAAW,CAAC;AACxC,IAAA;8GAFY,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;kBAHzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AACnC,iBAAA;;;ACXD;;;;;;;;;;;AAWG;MAYU,uBAAuB,CAAA;AAXpC,IAAA,WAAA,GAAA;AAYW,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,oBAAoB,CAAC;;QAGxC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QAChC,IAAA,CAAA,QAAQ,GAAG,KAAK,CAAU,KAAK;qFAAC;QAEhC,IAAA,CAAA,cAAc,GAAG,YAAY,CAAC,6BAA6B;2FAAC;;AAG5D,QAAA,IAAA,CAAA,KAAK,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;kFAAC;AAUzE,IAAA;AARC;;;;AAIG;AACH,IAAA,SAAS,CAAC,KAAc,EAAA;AACtB,QAAA,IAAI,CAAC,SAAS,CAAC,SAAS,CAAC,IAA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AAM,EAAA,OAAA,EACtC,CAAC,sBAAsB,EAAE,gBAAgB,CAAC,EAAA,OAAA,EAC1C,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,2hBAAA,EAAA,MAAA,EAAA,CAAA,wBAAA,CAAA,EAAA;AAS/B,SAAA,CAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,uBAAuB,CAAC,iEAMqB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE7D3E;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-accordion.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab-header/accordion-tab-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion-tab/accordion-tab.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.ts","../../../../libs/mintplayer-ng-bootstrap/accordion/src/accordion/accordion.component.html","../../../../libs/mintplayer-ng-bootstrap/accordion/mintplayer-ng-bootstrap-accordion.ts"],"sourcesContent":["import { Directive, inject, TemplateRef } from '@angular/core';\n\n/**\n * `*bsAccordionTabHeader` — declares the header content of the enclosing\n * `<bs-accordion-tab>`.\n *\n * It is a template rather than projected content because the header lands in\n * the row's `<summary>` while the rest of the tab's content lands in the\n * collapsible region, and one `<ng-content>` cannot feed two places. The tab\n * renders the captured template into its summary.\n *\n * Mirrors `*bsTabPageHeader` on `bs-tab-control`. Replaces the former\n * `<bs-accordion-tab-header>` component.\n *\n * <bs-accordion>\n * <bs-accordion-tab>\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content here\n * </bs-accordion-tab>\n * </bs-accordion>\n */\n@Directive({\n selector: '[bsAccordionTabHeader]',\n})\nexport class BsAccordionTabHeaderDirective {\n readonly template = inject(TemplateRef);\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n inject,\n input,\n model,\n TemplateRef,\n viewChild,\n} from '@angular/core';\nimport { BsAccordionComponent } from '../accordion/accordion.component';\nimport { BsAccordionTabHeaderDirective } from '../accordion-tab-header/accordion-tab-header.directive';\n\n/**\n * `<bs-accordion-tab>` — one tab of a `<bs-accordion>`.\n *\n * It renders nothing in place: its projected children become a template\n * (`body`) that the parent accordion renders inside the tab's `<details>`,\n * together with the `*bsAccordionTabHeader` template. The parent renders\n * every row so the rows are siblings (see `BsAccordionComponent`).\n */\n@Component({\n selector: 'bs-accordion-tab',\n templateUrl: './accordion-tab.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: { hidden: '' },\n})\nexport class BsAccordionTabComponent {\n readonly accordion = inject(BsAccordionComponent);\n\n /** Two-way: whether this tab is open. */\n readonly isActive = model<boolean>(false);\n readonly disabled = input<boolean>(false);\n\n readonly headerTemplate = contentChild(BsAccordionTabHeaderDirective);\n /** The tab's projected content, rendered by the parent accordion. */\n readonly body = viewChild<TemplateRef<unknown>>('body');\n\n /** Position among its siblings. */\n readonly index = computed(() => this.accordion.tabPages().indexOf(this));\n\n /**\n * Open or close this tab through its `<details>`, so single-open\n * exclusivity and the nested-accordion collapse both apply — unlike\n * writing `isActive` directly.\n */\n setActive(value: boolean): void {\n this.accordion.setActive(this.index(), value);\n }\n}\n","<ng-template #body><ng-content /></ng-template>\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n} from '@angular/core';\nimport { BsIdService } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n ACCORDION_SCOPE,\n accordionKeydown,\n accordionRows,\n accordionScopedStyles,\n accordionSummaryClick,\n accordionToggled,\n closeAccordion,\n connectAccordion,\n connectAccordionTab,\n} from '@mintplayer/ui-core/accordion';\nimport { BsAccordionTabComponent } from '../accordion-tab/accordion-tab.component';\n\n/**\n * `<bs-accordion>` — Bootstrap accordion on native `<details name>` (#437).\n *\n * <bs-accordion [multi]=\"true\">\n * <bs-accordion-tab [(isActive)]=\"open\">\n * <ng-container *bsAccordionTabHeader>Profile</ng-container>\n * Body content\n * </bs-accordion-tab>\n * </bs-accordion>\n *\n * Renders the markup of `@mintplayer/ui-core/accordion` in its own template,\n * so the server-rendered page is the working accordion: each tab is a\n * `<details>`, which opens and closes with JavaScript off, and single-open is\n * the platform's `name` exclusivity. The host is the `.accordion` root.\n *\n * The rows are rendered here, as siblings, rather than by each tab: Bootstrap\n * draws the borders between items with `:first-of-type`, which a per-tab host\n * element would break. Each tab hands over its header and body as templates.\n */\n@Component({\n selector: 'bs-accordion',\n templateUrl: './accordion.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n imports: [MpPropsDirective, NgTemplateOutlet],\n host: {\n '[attr.data-mps]': 'root()[\"data-mps\"]',\n '[class.accordion]': 'true',\n '[attr.data-highlight-active]': 'root()[\"data-highlight-active\"]',\n },\n})\nexport class BsAccordionComponent {\n /** Allow several tabs to stay open at once. */\n readonly multi = input(false);\n /** Paint the open header with the Bootstrap active background. */\n readonly highlightActiveTab = input(false);\n\n readonly tabPages = contentChildren<BsAccordionTabComponent>(\n forwardRef(() => BsAccordionTabComponent),\n );\n\n private readonly host = inject(ElementRef).nativeElement as HTMLElement;\n private readonly id = inject(BsIdService).next('bs-accordion');\n\n private readonly options = computed(() => ({\n id: this.id,\n multi: this.multi(),\n highlightActiveTab: this.highlightActiveTab(),\n }));\n protected readonly root = computed(() => connectAccordion(this.options()));\n protected readonly views = computed(() =>\n this.tabPages().map((tab, index) => connectAccordionTab(this.options(), index, { disabled: tab.disabled() })),\n );\n\n constructor() {\n useScopedStyles(ACCORDION_SCOPE, accordionScopedStyles);\n // `toggle` does not bubble, so a host listener never hears it: one\n // capture-phase listener on the root hears every row.\n const onToggle = (event: Event) => {\n const change = accordionToggled(this.host, event, this.multi());\n if (change) this.tabPages()[change.index]?.isActive.set(change.active);\n };\n this.host.addEventListener('toggle', onToggle, { capture: true });\n inject(DestroyRef).onDestroy(() => this.host.removeEventListener('toggle', onToggle, { capture: true }));\n }\n\n /** Close every open tab, and every accordion nested inside them. */\n closeAll(): void {\n closeAccordion(this.host);\n }\n\n /**\n * Open or close a tab through its `<details>`, so single-open exclusivity\n * and the nested-accordion collapse both apply.\n */\n setActive(index: number, active: boolean): void {\n const row = accordionRows(this.host)[index];\n if (row) row.open = active;\n }\n\n protected onSummaryClick(event: Event, tab: BsAccordionTabComponent): void {\n accordionSummaryClick(event, tab.disabled());\n }\n\n protected onSummaryKeydown(event: KeyboardEvent, index: number, tab: BsAccordionTabComponent): void {\n accordionKeydown(this.host, event, index, tab.disabled());\n }\n}\n","@for (tab of tabPages(); track tab; let i = $index) {\n @let view = views()[i];\n <details [mpProps]=\"view.item\" [attr.open]=\"tab.isActive() ? '' : null\">\n <summary [mpProps]=\"view.summary\" (click)=\"onSummaryClick($event, tab)\" (keydown)=\"onSummaryKeydown($event, i, tab)\">\n <ng-container [ngTemplateOutlet]=\"tab.headerTemplate()?.template ?? null\" />\n </summary>\n <div [mpProps]=\"view.content\"><ng-container [ngTem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EP,uBAAuB,CAAC,MAAM,EAAA,OAAA,EACtC,CAAC,gBAAgB,EAAE,gBAAgB,CAAC,EAAA,IAAA,EACvC;AACJ,wBAAA,iBAAiB,EAAE,oBAAoB;AACvC,wBAAA,mBAAmB,EAAE,MAAM;AAC3B,wBAAA,8BAA8B,EAAE,iCAAiC;AAClE,qBAAA,EAAA,QAAA,EAAA,khBAAA,EAAA;AASC,SAAA,CAAA,EAAA,cAAA,EAAA,MAAA,EAAA,EAAA,cAAA,EAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,OAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,kBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,oBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,UAAU,CAAC,MAAM,uBAAuB,CAAC,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhE7C;;AAEG;;;;"}
|
|
@@ -1,65 +1,69 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { model, input,
|
|
3
|
-
import {
|
|
4
|
-
|
|
2
|
+
import { inject, ElementRef, model, input, numberAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { calendarCore, calendarScopedStyles } from '@mintplayer/ui-core/calendar';
|
|
5
5
|
|
|
6
|
-
//
|
|
7
|
-
|
|
8
|
-
|
|
6
|
+
// GENERATED from the calendar manifest (calendar) by @mintplayer/nx-component-compiler. Do not edit.
|
|
7
|
+
/**
|
|
8
|
+
* A month grid (#437): the APG date-grid keyboard, a month toolbar, ISO or locale week numbers.
|
|
9
|
+
*
|
|
10
|
+
* `selectedDate` and `currentMonth` are two-way. With JavaScript off the month renders inert:
|
|
11
|
+
* the month buttons are disabled and no day is tabbable until the page hydrates.
|
|
12
|
+
*/
|
|
9
13
|
class BsCalendarComponent {
|
|
14
|
+
#core;
|
|
10
15
|
constructor() {
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.selectedDate = model(
|
|
16
|
+
/** The host element. */
|
|
17
|
+
this.elementRef = inject(ElementRef);
|
|
18
|
+
this.selectedDate = model(null, /* @ts-ignore */
|
|
14
19
|
...(ngDevMode ? [{ debugName: "selectedDate" }] : /* istanbul ignore next */ []));
|
|
15
|
-
this.
|
|
16
|
-
...(ngDevMode ? [{ debugName: "
|
|
17
|
-
this.min = input(
|
|
20
|
+
this.currentMonth = model(null, /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "currentMonth" }] : /* istanbul ignore next */ []));
|
|
22
|
+
this.min = input(null, /* @ts-ignore */
|
|
18
23
|
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
19
|
-
this.max = input(
|
|
24
|
+
this.max = input(null, /* @ts-ignore */
|
|
20
25
|
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
21
|
-
this.
|
|
22
|
-
...(ngDevMode ? [{ debugName: "
|
|
23
|
-
this.
|
|
26
|
+
this.disableDateFn = input(null, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "disableDateFn" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.firstDayOfWeek = input(1, { ...(ngDevMode ? { debugName: "firstDayOfWeek" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
29
|
+
this.locale = input(null, /* @ts-ignore */
|
|
24
30
|
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
25
|
-
this.
|
|
26
|
-
...(ngDevMode ? [{ debugName: "
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
wc.firstDayOfWeek = this.firstDayOfWeek();
|
|
36
|
-
wc.locale = this.locale();
|
|
37
|
-
// SSR / pre-upgrade: requestUpdate only exists after customElements has
|
|
38
|
-
// registered the Lit class. The DOM element is the upgrade target but
|
|
39
|
-
// may still be a plain HTMLElement at the first effect tick.
|
|
40
|
-
wc.requestUpdate?.();
|
|
41
|
-
});
|
|
31
|
+
this.labels = input(null, /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
33
|
+
/** A day chosen by click, Enter or Space. */
|
|
34
|
+
this.selecteddatechange = output();
|
|
35
|
+
/** The month changed: a month button, or a key that crossed into another month. */
|
|
36
|
+
this.currentmonthchange = output();
|
|
37
|
+
this.#core = useCore(calendarCore, { inputs: () => ({ selectedDate: this.selectedDate(), currentMonth: this.currentMonth(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-calendar', outputs: { selectedDateChange: this.selecteddatechange, currentMonthChange: this.currentmonthchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'calendar' }), models: { selectedDate: this.selectedDate, currentMonth: this.currentMonth } });
|
|
38
|
+
/** The template's props. */
|
|
39
|
+
this.props = this.#core.props;
|
|
40
|
+
useScopedStyles('calendar', calendarScopedStyles);
|
|
42
41
|
}
|
|
43
|
-
|
|
44
|
-
|
|
42
|
+
/** Show the previous month. */
|
|
43
|
+
previousMonth(...args) {
|
|
44
|
+
return this.#core.call('previousMonth', args);
|
|
45
45
|
}
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
this.selectedDate.set(detail);
|
|
46
|
+
/** Show the next month. */
|
|
47
|
+
nextMonth(...args) {
|
|
48
|
+
return this.#core.call('nextMonth', args);
|
|
50
49
|
}
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
50
|
+
/** Select a day (ignored when disabled), showing its month. */
|
|
51
|
+
select(...args) {
|
|
52
|
+
return this.#core.call('select', args);
|
|
53
|
+
}
|
|
54
|
+
/** Focus the roving day cell. */
|
|
55
|
+
focusGrid(...args) {
|
|
56
|
+
return this.#core.call('focusGrid', args);
|
|
55
57
|
}
|
|
56
58
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCalendarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
57
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
59
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsCalendarComponent, isStandalone: true, selector: "bs-calendar", inputs: { selectedDate: { classPropertyName: "selectedDate", publicName: "selectedDate", isSignal: true, isRequired: false, transformFunction: null }, currentMonth: { classPropertyName: "currentMonth", publicName: "currentMonth", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, disableDateFn: { classPropertyName: "disableDateFn", publicName: "disableDateFn", isSignal: true, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectedDate: "selectedDateChange", currentMonth: "currentMonthChange", selecteddatechange: "selecteddatechange", currentmonthchange: "currentmonthchange" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/calendar/src/templates/calendar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"calendar\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"calendar\" [mpProps]=\"p_view.previous\"></button>\n <span data-mps=\"calendar\" [mpProps]=\"p_view.monthLabel\">\n {{ p_view.monthText }}\n </span>\n <button data-mps=\"calendar\" [mpProps]=\"p_view.next\"></button>\n</div>\n<table data-mps=\"calendar\" [mpProps]=\"p_view.grid\">\n <tbody data-mps=\"calendar\">\n <tr data-mps=\"calendar\" [mpProps]=\"p_view.headRow\">\n <th data-mps=\"calendar\" [mpProps]=\"p_view.weekHeader\">\n <span data-mps=\"calendar\" [mpProps]=\"p_view.weekHeaderText\">\n {{ p_view.weekLabel }}\n </span>\n </th>\n @for (day of p_view.weekdays; track day.key) {\n <th data-mps=\"calendar\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.weeks; track week.key) {\n <tr data-mps=\"calendar\" [mpProps]=\"week.row\">\n <th data-mps=\"calendar\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"calendar\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"calendar\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n</table>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
58
60
|
}
|
|
59
61
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsCalendarComponent, decorators: [{
|
|
60
62
|
type: Component,
|
|
61
|
-
args: [{ selector: 'bs-calendar',
|
|
62
|
-
}], ctorParameters: () => [], propDecorators: {
|
|
63
|
+
args: [{ selector: 'bs-calendar', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/calendar/src/templates/calendar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"calendar\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"calendar\" [mpProps]=\"p_view.previous\"></button>\n <span data-mps=\"calendar\" [mpProps]=\"p_view.monthLabel\">\n {{ p_view.monthText }}\n </span>\n <button data-mps=\"calendar\" [mpProps]=\"p_view.next\"></button>\n</div>\n<table data-mps=\"calendar\" [mpProps]=\"p_view.grid\">\n <tbody data-mps=\"calendar\">\n <tr data-mps=\"calendar\" [mpProps]=\"p_view.headRow\">\n <th data-mps=\"calendar\" [mpProps]=\"p_view.weekHeader\">\n <span data-mps=\"calendar\" [mpProps]=\"p_view.weekHeaderText\">\n {{ p_view.weekLabel }}\n </span>\n </th>\n @for (day of p_view.weekdays; track day.key) {\n <th data-mps=\"calendar\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.weeks; track week.key) {\n <tr data-mps=\"calendar\" [mpProps]=\"week.row\">\n <th data-mps=\"calendar\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"calendar\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"calendar\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n</table>\n" }]
|
|
64
|
+
}], ctorParameters: () => [], propDecorators: { selectedDate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedDate", required: false }] }, { type: i0.Output, args: ["selectedDateChange"] }], currentMonth: [{ type: i0.Input, args: [{ isSignal: true, alias: "currentMonth", required: false }] }, { type: i0.Output, args: ["currentMonthChange"] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], disableDateFn: [{ type: i0.Input, args: [{ isSignal: true, alias: "disableDateFn", required: false }] }], firstDayOfWeek: [{ type: i0.Input, args: [{ isSignal: true, alias: "firstDayOfWeek", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], selecteddatechange: [{ type: i0.Output, args: ["selecteddatechange"] }], currentmonthchange: [{ type: i0.Output, args: ["currentmonthchange"] }] } });
|
|
65
|
+
|
|
66
|
+
// GENERATED from the calendar manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
63
67
|
|
|
64
68
|
/**
|
|
65
69
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-calendar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.component.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/src/calendar.
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-calendar.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/calendar/src/generated/calendar.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/src/generated/calendar.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/calendar/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/calendar/mintplayer-ng-bootstrap-calendar.ts"],"sourcesContent":["// GENERATED from the calendar manifest (calendar) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { calendarCore, type CalendarInputs, type CalendarMethods, calendarScopedStyles } from '@mintplayer/ui-core/calendar';\n\n/**\n * A month grid (#437): the APG date-grid keyboard, a month toolbar, ISO or locale week numbers.\n *\n * `selectedDate` and `currentMonth` are two-way. With JavaScript off the month renders inert:\n * the month buttons are disabled and no day is tabbable until the page hydrates.\n */\n@Component({\n selector: 'bs-calendar',\n templateUrl: './calendar.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsCalendarComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly selectedDate = model<CalendarInputs['selectedDate']>(null);\n readonly currentMonth = model<CalendarInputs['currentMonth']>(null);\n readonly min = input<CalendarInputs['min']>(null);\n readonly max = input<CalendarInputs['max']>(null);\n readonly disableDateFn = input<CalendarInputs['disableDateFn']>(null);\n readonly firstDayOfWeek = input<CalendarInputs['firstDayOfWeek'], unknown>(1, { transform: (v: unknown) => numberAttribute(v) as CalendarInputs['firstDayOfWeek'] });\n readonly locale = input<CalendarInputs['locale']>(null);\n readonly labels = input<CalendarInputs['labels']>(null);\n /** A day chosen by click, Enter or Space. */\n readonly selecteddatechange = output<Date>();\n /** The month changed: a month button, or a key that crossed into another month. */\n readonly currentmonthchange = output<Date>();\n\n readonly #core = useCore(calendarCore, { inputs: () => ({ selectedDate: this.selectedDate(), currentMonth: this.currentMonth(), min: this.min(), max: this.max(), disableDateFn: this.disableDateFn(), firstDayOfWeek: this.firstDayOfWeek(), locale: this.locale(), labels: this.labels() }), idPrefix: 'bs-calendar', outputs: { selectedDateChange: this.selecteddatechange, currentMonthChange: this.currentmonthchange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'calendar' }), models: { selectedDate: this.selectedDate, currentMonth: this.currentMonth } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('calendar', calendarScopedStyles);\n }\n\n /** Show the previous month. */\n previousMonth(...args: Parameters<CalendarMethods['previousMonth']>): ReturnType<CalendarMethods['previousMonth']> {\n return this.#core.call('previousMonth', args) as ReturnType<CalendarMethods['previousMonth']>;\n }\n\n /** Show the next month. */\n nextMonth(...args: Parameters<CalendarMethods['nextMonth']>): ReturnType<CalendarMethods['nextMonth']> {\n return this.#core.call('nextMonth', args) as ReturnType<CalendarMethods['nextMonth']>;\n }\n\n /** Select a day (ignored when disabled), showing its month. */\n select(...args: Parameters<CalendarMethods['select']>): ReturnType<CalendarMethods['select']> {\n return this.#core.call('select', args) as ReturnType<CalendarMethods['select']>;\n }\n\n /** Focus the roving day cell. */\n focusGrid(...args: Parameters<CalendarMethods['focusGrid']>): ReturnType<CalendarMethods['focusGrid']> {\n return this.#core.call('focusGrid', args) as ReturnType<CalendarMethods['focusGrid']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/calendar/src/templates/calendar.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"calendar\" [mpProps]=\"p_view.nav\">\n <button data-mps=\"calendar\" [mpProps]=\"p_view.previous\"></button>\n <span data-mps=\"calendar\" [mpProps]=\"p_view.monthLabel\">\n {{ p_view.monthText }}\n </span>\n <button data-mps=\"calendar\" [mpProps]=\"p_view.next\"></button>\n</div>\n<table data-mps=\"calendar\" [mpProps]=\"p_view.grid\">\n <tbody data-mps=\"calendar\">\n <tr data-mps=\"calendar\" [mpProps]=\"p_view.headRow\">\n <th data-mps=\"calendar\" [mpProps]=\"p_view.weekHeader\">\n <span data-mps=\"calendar\" [mpProps]=\"p_view.weekHeaderText\">\n {{ p_view.weekLabel }}\n </span>\n </th>\n @for (day of p_view.weekdays; track day.key) {\n <th data-mps=\"calendar\" [mpProps]=\"day.bag\">\n {{ day.text }}\n </th>\n }\n </tr>\n @for (week of p_view.weeks; track week.key) {\n <tr data-mps=\"calendar\" [mpProps]=\"week.row\">\n <th data-mps=\"calendar\" [mpProps]=\"week.header\">\n {{ week.number }}\n </th>\n @for (cell of week.cells; track cell.key) {\n <td data-mps=\"calendar\" [mpProps]=\"cell.cell\">\n @if (cell.content) {\n <span data-mps=\"calendar\" [mpProps]=\"cell.content\">\n {{ cell.text }}\n </span>\n }\n </td>\n }\n </tr>\n }\n </tbody>\n</table>\n","// GENERATED from the calendar manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsCalendarComponent } from './calendar.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;;AAKG;MAOU,mBAAmB,CAAA;AAiBrB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAnBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiC,IAAI;yFAAC;QAC1D,IAAA,CAAA,YAAY,GAAG,KAAK,CAAiC,IAAI;yFAAC;QAC1D,IAAA,CAAA,GAAG,GAAG,KAAK,CAAwB,IAAI;gFAAC;QACxC,IAAA,CAAA,GAAG,GAAG,KAAK,CAAwB,IAAI;gFAAC;QACxC,IAAA,CAAA,aAAa,GAAG,KAAK,CAAkC,IAAI;0FAAC;AAC5D,QAAA,IAAA,CAAA,cAAc,GAAG,KAAK,CAA4C,CAAC,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,gBAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAqC,GAAG;QAC3J,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;QAC9C,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;;QAEnC,IAAA,CAAA,kBAAkB,GAAG,MAAM,EAAQ;AAEnC,QAAA,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,GAAG,EAAE,IAA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