@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,137 +1,87 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
2
|
+
import { inject, TemplateRef, Directive, ElementRef, model, input, booleanAttribute, output, contentChild, computed, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
4
|
+
import { useCore, useScopedStyles, MpPropsDirective, MpTeleportDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { dockCore, dockScopedStyles } from '@mintplayer/ui-core/dock';
|
|
6
|
+
export { DOCK_LABELS, EMPTY_DOCK_LAYOUT, mergeDockLabels } from '@mintplayer/ui-core/dock';
|
|
7
|
+
import { BsSplitterComponent, BsSplitterPanelComponent } from '@mintplayer/ng-bootstrap/splitter';
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
// GENERATED from the dock manifest (dock-manager) by @mintplayer/nx-component-compiler. Do not edit.
|
|
10
|
+
/** The `pane` slot of `<bs-dock-manager>`: `<ng-template bsDockManagerPane>` or `*bsDockManagerPane`. */
|
|
11
|
+
class BsDockManagerPaneDirective {
|
|
9
12
|
constructor() {
|
|
10
|
-
this.
|
|
11
|
-
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
12
|
-
this.title = input(undefined, /* @ts-ignore */
|
|
13
|
-
...(ngDevMode ? [{ debugName: "title" }] : /* istanbul ignore next */ []));
|
|
14
|
-
this.template = viewChild.required(TemplateRef, /* @ts-ignore */
|
|
15
|
-
...(ngDevMode ? [{ debugName: "template" }] : /* istanbul ignore next */ []));
|
|
13
|
+
this.templateRef = inject(TemplateRef);
|
|
16
14
|
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
throw new Error('bs-dock-pane requires a unique "name" input.');
|
|
20
|
-
}
|
|
15
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
16
|
+
return true;
|
|
21
17
|
}
|
|
22
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
23
|
-
static { this.ɵ
|
|
18
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDockManagerPaneDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
19
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsDockManagerPaneDirective, isStandalone: true, selector: "[bsDockManagerPane]", ngImport: i0 }); }
|
|
24
20
|
}
|
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type:
|
|
26
|
-
type:
|
|
27
|
-
args: [{
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
class BsDockManagerComponent {
|
|
35
|
-
get layoutSnapshot() {
|
|
36
|
-
if (!this._layout.root && this._layout.floating.length === 0) {
|
|
37
|
-
return null;
|
|
38
|
-
}
|
|
39
|
-
return this.cloneLayout(this._layout);
|
|
21
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDockManagerPaneDirective, decorators: [{
|
|
22
|
+
type: Directive,
|
|
23
|
+
args: [{ selector: '[bsDockManagerPane]' }]
|
|
24
|
+
}] });
|
|
25
|
+
/** Types the `DockNode` partial's context in this template. */
|
|
26
|
+
class DockNodePartial {
|
|
27
|
+
static ngTemplateContextGuard(_dir, ctx) {
|
|
28
|
+
return true;
|
|
40
29
|
}
|
|
30
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DockNodePartial, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
31
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: DockNodePartial, isStandalone: true, selector: "ng-template[mpPartialDockNode]", ngImport: i0 }); }
|
|
32
|
+
}
|
|
33
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DockNodePartial, decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{ selector: 'ng-template[mpPartialDockNode]' }]
|
|
36
|
+
}] });
|
|
37
|
+
/**
|
|
38
|
+
* A docking layout (#437): panes in tabbed stacks, split side by side and torn off into floating
|
|
39
|
+
* windows, by pointer, touch long-press or the keyboard (M on a tab, then T/R/B/L/F or the arrows).
|
|
40
|
+
* `layout` is two-way; the `pane` slot renders each pane by name. Strings come from `labels`.
|
|
41
|
+
*/
|
|
42
|
+
class BsDockManagerComponent {
|
|
43
|
+
#core;
|
|
41
44
|
constructor() {
|
|
42
|
-
|
|
45
|
+
/** The host element. */
|
|
46
|
+
this.elementRef = inject(ElementRef);
|
|
47
|
+
this.layout = model(null, /* @ts-ignore */
|
|
43
48
|
...(ngDevMode ? [{ debugName: "layout" }] : /* istanbul ignore next */ []));
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
this.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
this.
|
|
55
|
-
|
|
56
|
-
this
|
|
57
|
-
|
|
58
|
-
this.
|
|
59
|
-
|
|
60
|
-
this.managerRef = viewChild('manager', /* @ts-ignore */
|
|
61
|
-
...(ngDevMode ? [{ debugName: "managerRef" }] : /* istanbul ignore next */ []));
|
|
62
|
-
this.trackByPane = (_, pane) => pane.name();
|
|
63
|
-
this._layout = { root: null, floating: [] };
|
|
64
|
-
const documentRef = inject(DOCUMENT);
|
|
65
|
-
if (documentRef) {
|
|
66
|
-
MintDockManagerElement.configureDocument(documentRef);
|
|
67
|
-
}
|
|
68
|
-
effect(() => {
|
|
69
|
-
const value = this.layout();
|
|
70
|
-
const snapshot = this.cloneLayout(this.ensureSnapshot(value));
|
|
71
|
-
this._layout = snapshot;
|
|
72
|
-
this.layoutString.set(this.stringifyLayout(snapshot));
|
|
73
|
-
this.applyLayout();
|
|
74
|
-
});
|
|
75
|
-
}
|
|
76
|
-
ngAfterViewInit() {
|
|
77
|
-
this.applyLayout();
|
|
49
|
+
this.debugLayoutIntegrity = input(false, { ...(ngDevMode ? { debugName: "debugLayoutIntegrity" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
50
|
+
this.labels = input(null, /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
52
|
+
/** The layout, after the user changed it. */
|
|
53
|
+
this.layoutchange = output();
|
|
54
|
+
/** A tab was activated. */
|
|
55
|
+
this.paneactivated = output();
|
|
56
|
+
this.paneSlot = contentChild(BsDockManagerPaneDirective, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "paneSlot" }] : /* istanbul ignore next */ []));
|
|
58
|
+
/** The template's named slots. */
|
|
59
|
+
this.slots = computed(() => ({ pane: this.paneSlot()?.templateRef }), /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "slots" }] : /* istanbul ignore next */ []));
|
|
61
|
+
this.#core = useCore(dockCore, { inputs: () => ({ layout: this.layout(), debugLayoutIntegrity: this.debugLayoutIntegrity(), labels: this.labels() }), idPrefix: 'bs-dock-manager', outputs: { layoutChange: this.layoutchange, paneActivated: this.paneactivated }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'dock' }), models: { layout: this.layout } });
|
|
62
|
+
/** The template's props. */
|
|
63
|
+
this.props = this.#core.props;
|
|
64
|
+
useScopedStyles('dock', dockScopedStyles);
|
|
78
65
|
}
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
return
|
|
82
|
-
}
|
|
83
|
-
onLayoutChanged(event) {
|
|
84
|
-
const snapshot = event.detail ?? {
|
|
85
|
-
root: null,
|
|
86
|
-
floating: [],
|
|
87
|
-
};
|
|
88
|
-
this._layout = this.cloneLayout(snapshot);
|
|
89
|
-
this.layoutString.set(this.stringifyLayout(this._layout));
|
|
90
|
-
this.layoutChange.emit(this.layoutSnapshot);
|
|
91
|
-
this.layoutSnapshotChange.emit(this.cloneLayout(snapshot));
|
|
92
|
-
}
|
|
93
|
-
applyLayout() {
|
|
94
|
-
const ref = this.managerRef();
|
|
95
|
-
if (!ref) {
|
|
96
|
-
return;
|
|
97
|
-
}
|
|
98
|
-
const element = ref.nativeElement;
|
|
99
|
-
const layout = this.layoutSnapshot;
|
|
100
|
-
element.layout = layout ?? null;
|
|
101
|
-
}
|
|
102
|
-
ensureSnapshot(value) {
|
|
103
|
-
if (!value) {
|
|
104
|
-
return { root: null, floating: [], titles: {} };
|
|
105
|
-
}
|
|
106
|
-
if ('kind' in value) {
|
|
107
|
-
return { root: value, floating: [], titles: {} };
|
|
108
|
-
}
|
|
109
|
-
return {
|
|
110
|
-
root: value.root ?? null,
|
|
111
|
-
floating: Array.isArray(value.floating) ? [...value.floating] : [],
|
|
112
|
-
titles: value.titles ? { ...value.titles } : {},
|
|
113
|
-
};
|
|
114
|
-
}
|
|
115
|
-
stringifyLayout(layout) {
|
|
116
|
-
if (!layout.root && layout.floating.length === 0) {
|
|
117
|
-
return null;
|
|
118
|
-
}
|
|
119
|
-
return JSON.stringify(layout);
|
|
120
|
-
}
|
|
121
|
-
cloneLayout(layout) {
|
|
122
|
-
return JSON.parse(JSON.stringify(layout));
|
|
66
|
+
/** A copy of the current layout snapshot. */
|
|
67
|
+
captureLayout(...args) {
|
|
68
|
+
return this.#core.call('captureLayout', args);
|
|
123
69
|
}
|
|
124
70
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDockManagerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
125
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDockManagerComponent, isStandalone: true, selector: "bs-dock-manager", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, debugLayoutIntegrity: { classPropertyName: "debugLayoutIntegrity", publicName: "debugLayoutIntegrity", isSignal: true, isRequired: false, transformFunction: null }
|
|
71
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsDockManagerComponent, isStandalone: true, selector: "bs-dock-manager", inputs: { layout: { classPropertyName: "layout", publicName: "layout", isSignal: true, isRequired: false, transformFunction: null }, debugLayoutIntegrity: { classPropertyName: "debugLayoutIntegrity", publicName: "debugLayoutIntegrity", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { layout: "layoutChange", layoutchange: "layoutchange", paneactivated: "paneactivated" }, queries: [{ propertyName: "paneSlot", first: true, predicate: BsDockManagerPaneDirective, descendants: true, isSignal: true }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/dock/src/templates/dock-manager.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"dock\" [mpProps]=\"p_view.docked\">\n @if (p_view.dockedNode) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: p_view.dockedNode }\" />\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.floatingLayer\">\n @for (f of p_view.floating; track f.key) {\n <div data-mps=\"dock\" [mpProps]=\"f.bag\" [style]=\"f.style\">\n <div data-mps=\"dock\" [mpProps]=\"f.chrome\">\n <div data-mps=\"dock\" [mpProps]=\"f.title\">\n {{ f.titleText }}\n </div>\n <button data-mps=\"dock\" [mpProps]=\"f.close\">\n \u00D7\n </button>\n </div>\n <div data-mps=\"dock\" [mpProps]=\"f.content\">\n @if (f.node) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: f.node }\" />\n }\n </div>\n @for (r of f.resizers; track r.key) {\n <div data-mps=\"dock\" [mpProps]=\"r.bag\"></div>\n }\n </div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.intersectionLayer\">\n @for (h of p_view.intersections; track h.key) {\n <div data-mps=\"dock\" [mpProps]=\"h.bag\" [style]=\"h.style\"></div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.indicator\" [style]=\"p_view.indicatorStyle\"></div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.joystick\" [style]=\"p_view.joystickStyle\">\n @for (c of p_view.joystickCells; track c.key) {\n @if (c.button) {\n <button data-mps=\"dock\" [mpProps]=\"c.bag\">\n {{ c.glyph }}\n </button>\n } @else {\n <span data-mps=\"dock\" [mpProps]=\"c.bag\"></span>\n }\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.parking\"></div>\n@for (p of p_view.panes; track p.name) {\n <ng-template [mpTeleport]=\"p.host\">\n @if (slots().pane; as slot_pane) {\n <ng-container [ngTemplateOutlet]=\"slot_pane\" [ngTemplateOutletContext]=\"{ $implicit: { pane: p.name }, pane: p.name }\" />\n }\n </ng-template>\n}\n<ng-template #partial_DockNode mpPartialDockNode let-pp_node=\"node\">\n <div data-mps=\"dock\" [mpProps]=\"pp_node.bag\">\n @if (pp_node.split) {\n <bs-splitter [orientation]=\"pp_node.direction\" [minPanelSize]=\"48\" (resizeend)=\"pp_node.onResizeEnd($event)\" (resizing)=\"pp_node.onResizing($event)\">\n @for (c of pp_node.children; track c.key) {\n <bs-splitter-panel>\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: c.node }\" />\n </bs-splitter-panel>\n }\n </bs-splitter>\n }\n @if (pp_node.stack) {\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.strip\">\n @for (t of pp_node.stack.tabs; track t.key) {\n @if (t.placeholder) {\n <span data-mps=\"dock\" [mpProps]=\"t.bag\" [style]=\"t.style\">\n {{ t.title }}\n </span>\n } @else {\n <button data-mps=\"dock\" [mpProps]=\"t.bag\">\n {{ t.title }}\n </button>\n }\n }\n </div>\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.body\">\n {{ pp_node.stack.empty }}\n </div>\n }\n </div>\n</ng-template>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }, { kind: "directive", type: MpTeleportDirective, selector: "[mpTeleport]", inputs: ["mpTeleport"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: DockNodePartial, selector: "ng-template[mpPartialDockNode]" }, { kind: "component", type: BsSplitterComponent, selector: "bs-splitter", inputs: ["orientation", "minPanelSize", "touchMode", "labels"], outputs: ["resizestart", "resizing", "resizeend"] }, { kind: "component", type: BsSplitterPanelComponent, selector: "bs-splitter-panel" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
126
72
|
}
|
|
127
73
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDockManagerComponent, decorators: [{
|
|
128
74
|
type: Component,
|
|
129
|
-
args: [{ selector: 'bs-dock-manager', imports: [
|
|
130
|
-
}], ctorParameters: () => [], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }], debugLayoutIntegrity: [{ type: i0.Input, args: [{ isSignal: true, alias: "debugLayoutIntegrity", required: false }] }],
|
|
75
|
+
args: [{ selector: 'bs-dock-manager', imports: [MpPropsDirective, MpTeleportDirective, NgTemplateOutlet, DockNodePartial, BsSplitterComponent, BsSplitterPanelComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/dock/src/templates/dock-manager.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"dock\" [mpProps]=\"p_view.docked\">\n @if (p_view.dockedNode) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: p_view.dockedNode }\" />\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.floatingLayer\">\n @for (f of p_view.floating; track f.key) {\n <div data-mps=\"dock\" [mpProps]=\"f.bag\" [style]=\"f.style\">\n <div data-mps=\"dock\" [mpProps]=\"f.chrome\">\n <div data-mps=\"dock\" [mpProps]=\"f.title\">\n {{ f.titleText }}\n </div>\n <button data-mps=\"dock\" [mpProps]=\"f.close\">\n \u00D7\n </button>\n </div>\n <div data-mps=\"dock\" [mpProps]=\"f.content\">\n @if (f.node) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: f.node }\" />\n }\n </div>\n @for (r of f.resizers; track r.key) {\n <div data-mps=\"dock\" [mpProps]=\"r.bag\"></div>\n }\n </div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.intersectionLayer\">\n @for (h of p_view.intersections; track h.key) {\n <div data-mps=\"dock\" [mpProps]=\"h.bag\" [style]=\"h.style\"></div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.indicator\" [style]=\"p_view.indicatorStyle\"></div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.joystick\" [style]=\"p_view.joystickStyle\">\n @for (c of p_view.joystickCells; track c.key) {\n @if (c.button) {\n <button data-mps=\"dock\" [mpProps]=\"c.bag\">\n {{ c.glyph }}\n </button>\n } @else {\n <span data-mps=\"dock\" [mpProps]=\"c.bag\"></span>\n }\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.parking\"></div>\n@for (p of p_view.panes; track p.name) {\n <ng-template [mpTeleport]=\"p.host\">\n @if (slots().pane; as slot_pane) {\n <ng-container [ngTemplateOutlet]=\"slot_pane\" [ngTemplateOutletContext]=\"{ $implicit: { pane: p.name }, pane: p.name }\" />\n }\n </ng-template>\n}\n<ng-template #partial_DockNode mpPartialDockNode let-pp_node=\"node\">\n <div data-mps=\"dock\" [mpProps]=\"pp_node.bag\">\n @if (pp_node.split) {\n <bs-splitter [orientation]=\"pp_node.direction\" [minPanelSize]=\"48\" (resizeend)=\"pp_node.onResizeEnd($event)\" (resizing)=\"pp_node.onResizing($event)\">\n @for (c of pp_node.children; track c.key) {\n <bs-splitter-panel>\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: c.node }\" />\n </bs-splitter-panel>\n }\n </bs-splitter>\n }\n @if (pp_node.stack) {\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.strip\">\n @for (t of pp_node.stack.tabs; track t.key) {\n @if (t.placeholder) {\n <span data-mps=\"dock\" [mpProps]=\"t.bag\" [style]=\"t.style\">\n {{ t.title }}\n </span>\n } @else {\n <button data-mps=\"dock\" [mpProps]=\"t.bag\">\n {{ t.title }}\n </button>\n }\n }\n </div>\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.body\">\n {{ pp_node.stack.empty }}\n </div>\n }\n </div>\n</ng-template>\n" }]
|
|
76
|
+
}], ctorParameters: () => [], propDecorators: { layout: [{ type: i0.Input, args: [{ isSignal: true, alias: "layout", required: false }] }, { type: i0.Output, args: ["layoutChange"] }], debugLayoutIntegrity: [{ type: i0.Input, args: [{ isSignal: true, alias: "debugLayoutIntegrity", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], layoutchange: [{ type: i0.Output, args: ["layoutchange"] }], paneactivated: [{ type: i0.Output, args: ["paneactivated"] }], paneSlot: [{ type: i0.ContentChild, args: [i0.forwardRef(() => BsDockManagerPaneDirective), { isSignal: true }] }] } });
|
|
77
|
+
|
|
78
|
+
// GENERATED from the dock manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
79
|
+
|
|
80
|
+
// The dock manager is generated from @mintplayer/ui-core/dock (PRD #437 D10).
|
|
131
81
|
|
|
132
82
|
/**
|
|
133
83
|
* Generated bundle index. Do not edit.
|
|
134
84
|
*/
|
|
135
85
|
|
|
136
|
-
export { BsDockManagerComponent,
|
|
86
|
+
export { BsDockManagerComponent, BsDockManagerPaneDirective };
|
|
137
87
|
//# sourceMappingURL=mintplayer-ng-bootstrap-dock.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-dock.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/dock/src/lib/components/dock-pane.component.ts","../../../../libs/mintplayer-ng-bootstrap/dock/src/lib/components/dock-manager.component.ts","../../../../libs/mintplayer-ng-bootstrap/dock/src/lib/components/dock-manager.component.html","../../../../libs/mintplayer-ng-bootstrap/dock/mintplayer-ng-bootstrap-dock.ts"],"sourcesContent":["import { AfterContentInit, Component, input, TemplateRef, viewChild, ChangeDetectionStrategy} from '@angular/core';\n\n@Component({\n selector: 'bs-dock-pane',\n template: `<ng-template><ng-content></ng-content></ng-template>`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsDockPaneComponent implements AfterContentInit {\n readonly name = input.required<string>();\n readonly title = input<string | undefined>(undefined);\n\n readonly template = viewChild.required(TemplateRef);\n\n ngAfterContentInit(): void {\n if (!this.name()) {\n throw new Error('bs-dock-pane requires a unique \"name\" input.');\n }\n }\n}\n","import {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChildren,\n CUSTOM_ELEMENTS_SCHEMA,\n effect,\n ElementRef,\n inject,\n input,\n output,\n viewChild,\n signal,\n} from '@angular/core';\nimport { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n DockLayout,\n DockLayoutNode,\n DockLayoutSnapshot,\n MintDockManagerElement,\n} from '@mintplayer/web-components/dock';\nimport { BsDockPaneComponent } from './dock-pane.component';\n\n// Side-effect import: registers <mint-dock-manager>.\nimport '@mintplayer/web-components/dock';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n@Component({\n selector: 'bs-dock-manager',\n templateUrl: './dock-manager.component.html',\n styleUrls: ['./dock-manager.component.scss'],\n imports: [BsForwardAriaDirective, NgTemplateOutlet],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsDockManagerComponent implements AfterViewInit {\n readonly layout = input<DockLayoutNode | DockLayout | null>(null);\n /**\n * Dev-mode integrity guard. When `true`, the inner web component throws\n * after each render if any registered pane has no projection slot in the\n * shadow DOM — a signal that the layout tree got corrupted. Off by default;\n * enable in development to catch layout-logic bugs loudly.\n */\n readonly debugLayoutIntegrity = input<boolean>(false);\n protected readonly debugLayoutIntegrityAttr = computed(() =>\n this.debugLayoutIntegrity() ? '' : null,\n );\n\n get layoutSnapshot(): DockLayoutSnapshot | null {\n if (!this._layout.root && this._layout.floating.length === 0) {\n return null;\n }\n return this.cloneLayout(this._layout);\n }\n\n readonly layoutChange = output<DockLayoutSnapshot | null>();\n readonly layoutSnapshotChange = output<DockLayoutSnapshot>();\n\n layoutString = signal<string | null>(null);\n\n readonly panes = contentChildren(BsDockPaneComponent);\n readonly managerRef = viewChild<ElementRef<MintDockManagerElement>>('manager');\n\n protected readonly trackByPane = (_: number, pane: BsDockPaneComponent) => pane.name();\n\n private _layout: DockLayoutSnapshot = { root: null, floating: [] };\n\n constructor() {\n const documentRef = inject(DOCUMENT);\n if (documentRef) {\n MintDockManagerElement.configureDocument(documentRef);\n }\n\n effect(() => {\n const value = this.layout();\n const snapshot = this.cloneLayout(this.ensureSnapshot(value));\n this._layout = snapshot;\n this.layoutString.set(this.stringifyLayout(snapshot));\n this.applyLayout();\n });\n }\n\n ngAfterViewInit(): void {\n this.applyLayout();\n }\n\n captureLayout(): DockLayoutSnapshot {\n const element = this.managerRef()?.nativeElement;\n return element?.snapshot ?? { root: null, floating: [] };\n }\n\n onLayoutChanged(event: Event): void {\n const snapshot =\n (event as CustomEvent<DockLayoutSnapshot>).detail ?? {\n root: null,\n floating: [],\n };\n this._layout = this.cloneLayout(snapshot);\n this.layoutString.set(this.stringifyLayout(this._layout));\n this.layoutChange.emit(this.layoutSnapshot);\n this.layoutSnapshotChange.emit(this.cloneLayout(snapshot));\n }\n\n private applyLayout(): void {\n const ref = this.managerRef();\n if (!ref) {\n return;\n }\n\n const element = ref.nativeElement;\n const layout = this.layoutSnapshot;\n element.layout = layout ?? null;\n }\n\n private ensureSnapshot(\n value: DockLayoutNode | DockLayout | null,\n ): DockLayoutSnapshot {\n if (!value) {\n return { root: null, floating: [], titles: {} };\n }\n\n if ('kind' in value) {\n return { root: value, floating: [], titles: {} };\n }\n\n return {\n root: value.root ?? null,\n floating: Array.isArray(value.floating) ? [...value.floating] : [],\n titles: value.titles ? { ...value.titles } : {},\n };\n }\n\n private stringifyLayout(layout: DockLayoutSnapshot): string | null {\n if (!layout.root && layout.floating.length === 0) {\n return null;\n }\n return JSON.stringify(layout);\n }\n\n private cloneLayout(layout: DockLayoutSnapshot): DockLayoutSnapshot {\n return JSON.parse(JSON.stringify(layout)) as DockLayoutSnapshot;\n }\n}\n","<mint-dock-manager bsForwardAria\n #manager\n class=\"bs-dock-manager\"\n [attr.layout]=\"layoutString()\"\n [attr.debug-layout-integrity]=\"debugLayoutIntegrityAttr()\"\n (dock-layout-changed)=\"onLayoutChanged($event)\"\n >\n @for (pane of panes(); track trackByPane($index, pane)) {\n <div class=\"bs-dock-pane\" [attr.slot]=\"pane.name()\">\n <ng-container *ngTemplateOutlet=\"pane.template()\"></ng-container>\n </div>\n }\n</mint-dock-manager>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;MAOa,mBAAmB,CAAA;AALhC,IAAA,WAAA,GAAA;QAMW,IAAA,CAAA,IAAI,GAAG,KAAK,CAAC,QAAQ;iFAAU;QAC/B,IAAA,CAAA,KAAK,GAAG,KAAK,CAAqB,SAAS;kFAAC;AAE5C,QAAA,IAAA,CAAA,QAAQ,GAAG,SAAS,CAAC,QAAQ,CA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AAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,sBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,cAAA,CAAA,EAAA,CAAA,EAAA,oBAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,sBAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,eAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,mBAAmB,qEACgB,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE9D/E;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-dock.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/dock/src/generated/dock-manager.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/dock/src/generated/dock-manager.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/dock/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/dock/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/dock/mintplayer-ng-bootstrap-dock.ts"],"sourcesContent":["// GENERATED from the dock manifest (dock-manager) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output } from '@angular/core';\nimport { NgTemplateOutlet } from '@angular/common';\nimport { MpPropsDirective, MpTeleportDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { dockCore, type DockInputs, type DockLayoutSnapshot, type DockMethods, type DockNodeView, type DockPaneActivatedEventDetail, dockScopedStyles } from '@mintplayer/ui-core/dock';\nimport { BsSplitterComponent } from '@mintplayer/ng-bootstrap/splitter';\nimport { BsSplitterPanelComponent } from '@mintplayer/ng-bootstrap/splitter';\n\n/** The `pane` slot of `<bs-dock-manager>`: `<ng-template bsDockManagerPane>` or `*bsDockManagerPane`. */\n@Directive({ selector: '[bsDockManagerPane]' })\nexport class BsDockManagerPaneDirective {\n readonly templateRef = inject<TemplateRef<{ pane: string } & { $implicit: { pane: string } }>>(TemplateRef);\n static ngTemplateContextGuard(_dir: BsDockManagerPaneDirective, ctx: unknown): ctx is { pane: string } & { $implicit: { pane: string } } {\n return true;\n }\n}\n\n/** Types the `DockNode` partial's context in this template. */\n@Directive({ selector: 'ng-template[mpPartialDockNode]' })\nexport class DockNodePartial {\n static ngTemplateContextGuard(_dir: DockNodePartial, ctx: unknown): ctx is { node: DockNodeView } {\n return true;\n }\n}\n\n/**\n * A docking layout (#437): panes in tabbed stacks, split side by side and torn off into floating\n * windows, by pointer, touch long-press or the keyboard (M on a tab, then T/R/B/L/F or the arrows).\n * `layout` is two-way; the `pane` slot renders each pane by name. Strings come from `labels`.\n */\n@Component({\n selector: 'bs-dock-manager',\n templateUrl: './dock-manager.view.generated.html',\n imports: [MpPropsDirective, MpTeleportDirective, NgTemplateOutlet, DockNodePartial, BsSplitterComponent, BsSplitterPanelComponent],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsDockManagerComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly layout = model<DockInputs['layout']>(null);\n readonly debugLayoutIntegrity = input<DockInputs['debugLayoutIntegrity'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<DockInputs['labels']>(null);\n /** The layout, after the user changed it. */\n readonly layoutchange = output<DockLayoutSnapshot>();\n /** A tab was activated. */\n readonly paneactivated = output<DockPaneActivatedEventDetail>();\n\n private readonly paneSlot = contentChild(BsDockManagerPaneDirective);\n /** The template's named slots. */\n protected readonly slots = computed(() => ({ pane: this.paneSlot()?.templateRef }));\n readonly #core = useCore(dockCore, { inputs: () => ({ layout: this.layout(), debugLayoutIntegrity: this.debugLayoutIntegrity(), labels: this.labels() }), idPrefix: 'bs-dock-manager', outputs: { layoutChange: this.layoutchange, paneActivated: this.paneactivated }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'dock' }), models: { layout: this.layout } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('dock', dockScopedStyles);\n }\n\n /** A copy of the current layout snapshot. */\n captureLayout(...args: Parameters<DockMethods['captureLayout']>): ReturnType<DockMethods['captureLayout']> {\n return this.#core.call('captureLayout', args) as ReturnType<DockMethods['captureLayout']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/dock/src/templates/dock-manager.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"dock\" [mpProps]=\"p_view.docked\">\n @if (p_view.dockedNode) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: p_view.dockedNode }\" />\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.floatingLayer\">\n @for (f of p_view.floating; track f.key) {\n <div data-mps=\"dock\" [mpProps]=\"f.bag\" [style]=\"f.style\">\n <div data-mps=\"dock\" [mpProps]=\"f.chrome\">\n <div data-mps=\"dock\" [mpProps]=\"f.title\">\n {{ f.titleText }}\n </div>\n <button data-mps=\"dock\" [mpProps]=\"f.close\">\n ×\n </button>\n </div>\n <div data-mps=\"dock\" [mpProps]=\"f.content\">\n @if (f.node) {\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: f.node }\" />\n }\n </div>\n @for (r of f.resizers; track r.key) {\n <div data-mps=\"dock\" [mpProps]=\"r.bag\"></div>\n }\n </div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.intersectionLayer\">\n @for (h of p_view.intersections; track h.key) {\n <div data-mps=\"dock\" [mpProps]=\"h.bag\" [style]=\"h.style\"></div>\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.indicator\" [style]=\"p_view.indicatorStyle\"></div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.joystick\" [style]=\"p_view.joystickStyle\">\n @for (c of p_view.joystickCells; track c.key) {\n @if (c.button) {\n <button data-mps=\"dock\" [mpProps]=\"c.bag\">\n {{ c.glyph }}\n </button>\n } @else {\n <span data-mps=\"dock\" [mpProps]=\"c.bag\"></span>\n }\n }\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.live\">\n {{ p_view.announcement }}\n</div>\n<div data-mps=\"dock\" [mpProps]=\"p_view.parking\"></div>\n@for (p of p_view.panes; track p.name) {\n <ng-template [mpTeleport]=\"p.host\">\n @if (slots().pane; as slot_pane) {\n <ng-container [ngTemplateOutlet]=\"slot_pane\" [ngTemplateOutletContext]=\"{ $implicit: { pane: p.name }, pane: p.name }\" />\n }\n </ng-template>\n}\n<ng-template #partial_DockNode mpPartialDockNode let-pp_node=\"node\">\n <div data-mps=\"dock\" [mpProps]=\"pp_node.bag\">\n @if (pp_node.split) {\n <bs-splitter [orientation]=\"pp_node.direction\" [minPanelSize]=\"48\" (resizeend)=\"pp_node.onResizeEnd($event)\" (resizing)=\"pp_node.onResizing($event)\">\n @for (c of pp_node.children; track c.key) {\n <bs-splitter-panel>\n <ng-container [ngTemplateOutlet]=\"partial_DockNode\" [ngTemplateOutletContext]=\"{ node: c.node }\" />\n </bs-splitter-panel>\n }\n </bs-splitter>\n }\n @if (pp_node.stack) {\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.strip\">\n @for (t of pp_node.stack.tabs; track t.key) {\n @if (t.placeholder) {\n <span data-mps=\"dock\" [mpProps]=\"t.bag\" [style]=\"t.style\">\n {{ t.title }}\n </span>\n } @else {\n <button data-mps=\"dock\" [mpProps]=\"t.bag\">\n {{ t.title }}\n </button>\n }\n }\n </div>\n <div data-mps=\"dock\" [mpProps]=\"pp_node.stack.body\">\n {{ pp_node.stack.empty }}\n </div>\n }\n </div>\n</ng-template>\n","// GENERATED from the dock manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsDockManagerComponent, BsDockManagerPaneDirective } from './dock-manager.component.generated';\n","// The dock manager is generated from @mintplayer/ui-core/dock (PRD #437 D10).\nexport * from './generated';\nexport { DOCK_LABELS, EMPTY_DOCK_LAYOUT, mergeDockLabels } from '@mintplayer/ui-core/dock';\nexport type {\n DockFloatingPaneBounds,\n DockFloatingStackLayout,\n DockLabels,\n DockLayout,\n DockLayoutInput,\n DockLayoutNode,\n DockLayoutSnapshot,\n DockPaneActivatedEventDetail,\n DockSplitNode,\n DockStackNode,\n} from '@mintplayer/ui-core/dock';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAAA;AAQA;MAEa,0BAA0B,CAAA;AADvC,IAAA,WAAA,GAAA;AAEW,QAAA,IAAA,CAAA,WAAW,GAAG,MAAM,CAAkE,WAAW,CAAC;AAI5G,IAAA;AAHC,IAAA,OAAO,sBAAsB,CAAC,IAAgC,EAAE,GAAY,EAAA;AAC1E,QAAA,OAAO,IAAI;IACb;8GAJW,0BAA0B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;kGAA1B,0BAA0B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA1B,0BAA0B,EAAA,UAAA,EAAA,CAAA;kBADtC,SAAS;mBAAC,EAAE,QAAQ,EAAE,qBAAqB,EAAE;;AAQ9C;MAEa,eAAe,CAAA;AAC1B,IAAA,OAAO,sBAAsB,CAAC,IAAqB,EAAE,GAAY,EAAA;AAC/D,QAAA,OAAO,IAAI;IACb;8GAHW,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,C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AAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AEhDrE;;ACAA;;ACAA;;AAEG;;;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { InjectionToken, input, output, computed,
|
|
2
|
+
import { InjectionToken, input, output, viewChild, signal, computed, inject, DestroyRef, afterNextRender, ChangeDetectionStrategy, Component, ElementRef, effect, Directive } from '@angular/core';
|
|
3
3
|
import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
4
|
+
import { useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
5
|
+
import { connectDropdownMenu, DROPDOWN_MENU_SCOPE, dropdownMenuScopedStyles, attachDropdownMenu } from '@mintplayer/ui-core/dropdown-menu';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
8
|
* DI marker meaning "this content is authored inside a dropdown menu".
|
|
@@ -17,67 +19,60 @@ import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
|
17
19
|
const BS_DROPDOWN_MENU_CONTEXT = new InjectionToken('BS_DROPDOWN_MENU_CONTEXT');
|
|
18
20
|
|
|
19
21
|
/**
|
|
20
|
-
* `<bs-dropdown-menu>` —
|
|
21
|
-
*
|
|
22
|
-
*
|
|
23
|
-
*
|
|
24
|
-
* listbox from its headless core (#436).
|
|
22
|
+
* `<bs-dropdown-menu>` — a Bootstrap `.dropdown-menu` list (#437). Used
|
|
23
|
+
* standalone, projected through `*bsDropdownMenu` by the `[bsDropdown]`
|
|
24
|
+
* trigger stack. Menu only: the typeahead renders its own listbox, and the
|
|
25
|
+
* navbar renders its own navigation panels.
|
|
25
26
|
*
|
|
26
|
-
*
|
|
27
|
-
*
|
|
28
|
-
*
|
|
29
|
-
*
|
|
27
|
+
* Renders the markup of `@mintplayer/ui-core/dropdown-menu` in its own
|
|
28
|
+
* template: a `<ul>` around the projected `[bsDropdownItem]` /
|
|
29
|
+
* `[bsDropdownDivider]` / `[bsDropdownHeader]` `<li>`s. Once hydrated, the
|
|
30
|
+
* core's attachment adds the menu roles, the roving tabindex, the arrow keys
|
|
31
|
+
* and the `select` output; the server output is a plain list of links, which
|
|
32
|
+
* is valid and works with JavaScript off.
|
|
30
33
|
*
|
|
31
|
-
*
|
|
32
|
-
* Angular emits a bare `<mp-dropdown-menu>` tag and the SSR layer injects its
|
|
33
|
-
* Declarative Shadow DOM (see `injectMpDropdownDsd`), so it renders with JS off.
|
|
34
|
-
*
|
|
35
|
-
* This wrapper stays framework-agnostic of the `[bsDropdown]` trigger stack (it
|
|
36
|
-
* lives in a sibling entry point).
|
|
34
|
+
* A consumer's `aria-*`, `role` and `id` on `bs-dropdown-menu` reach the list.
|
|
37
35
|
*/
|
|
38
36
|
class BsDropdownMenuComponent {
|
|
39
|
-
onSelect(event) {
|
|
40
|
-
// The WC's `select` is a general-purpose DOM event (bubbles + composed).
|
|
41
|
-
// The public Angular API is this typed `output()`, so consume the raw
|
|
42
|
-
// event here. Without `stopPropagation` it keeps bubbling to the consumer's
|
|
43
|
-
// `<bs-dropdown-menu>` host, where their `(select)` binding fires a
|
|
44
|
-
// SECOND time with the raw `CustomEvent` (Angular doesn't unwrap `.detail`).
|
|
45
|
-
event.stopPropagation();
|
|
46
|
-
this.select.emit(event.detail);
|
|
47
|
-
}
|
|
48
37
|
constructor() {
|
|
49
38
|
/** Pixel cap on the menu height; scrolls beyond. */
|
|
50
39
|
this.maxHeight = input(/* @ts-ignore */
|
|
51
40
|
...(ngDevMode ? [undefined, { debugName: "maxHeight" }] : /* istanbul ignore next */ []));
|
|
52
|
-
/**
|
|
53
|
-
/** Fires when an enabled item is activated (re-emits the WC's `select`). */
|
|
41
|
+
/** Fires when an enabled item is activated. */
|
|
54
42
|
this.select = output();
|
|
55
|
-
|
|
56
|
-
|
|
43
|
+
this.menu = viewChild.required('menu', /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "menu" }] : /* istanbul ignore next */ []));
|
|
45
|
+
this.hydrated = signal(false, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "hydrated" }] : /* istanbul ignore next */ []));
|
|
47
|
+
this.bag = computed(() => connectDropdownMenu({ hydrated: this.hydrated() }), /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "bag" }] : /* istanbul ignore next */ []));
|
|
49
|
+
this.maxHeightCss = computed(() => {
|
|
57
50
|
const value = this.maxHeight();
|
|
58
|
-
return value === undefined ? null : `${value}`;
|
|
51
|
+
return value === undefined ? null : `${value}px`;
|
|
59
52
|
}, /* @ts-ignore */
|
|
60
|
-
...(ngDevMode ? [{ debugName: "
|
|
53
|
+
...(ngDevMode ? [{ debugName: "maxHeightCss" }] : /* istanbul ignore next */ []));
|
|
54
|
+
useScopedStyles(DROPDOWN_MENU_SCOPE, dropdownMenuScopedStyles);
|
|
55
|
+
const destroyRef = inject(DestroyRef);
|
|
61
56
|
afterNextRender(() => {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
57
|
+
this.hydrated.set(true);
|
|
58
|
+
const dispose = attachDropdownMenu(this.menu().nativeElement, {
|
|
59
|
+
onSelect: (detail) => this.select.emit(detail),
|
|
60
|
+
});
|
|
61
|
+
destroyRef.onDestroy(dispose);
|
|
65
62
|
});
|
|
66
63
|
}
|
|
67
64
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDropdownMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
68
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
65
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.8", type: BsDropdownMenuComponent, isStandalone: true, selector: "bs-dropdown-menu", inputs: { maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { select: "select" }, providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }], viewQueries: [{ propertyName: "menu", first: true, predicate: ["menu"], descendants: true, isSignal: true }], ngImport: i0, template: "<ul #menu bsForwardAria data-mps=\"dropdown-menu\" [mpProps]=\"bag()\" [style.--mp-dropdown-max-height]=\"maxHeightCss()\">\n <ng-content></ng-content>\n</ul>\n", dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }, { kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
69
66
|
}
|
|
70
67
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDropdownMenuComponent, decorators: [{
|
|
71
68
|
type: Component,
|
|
72
|
-
args: [{ selector: 'bs-dropdown-menu', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush,
|
|
73
|
-
}], ctorParameters: () => [], propDecorators: { maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], select: [{ type: i0.Output, args: ["select"] }] } });
|
|
69
|
+
args: [{ selector: 'bs-dropdown-menu', imports: [BsForwardAriaDirective, MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }], template: "<ul #menu bsForwardAria data-mps=\"dropdown-menu\" [mpProps]=\"bag()\" [style.--mp-dropdown-max-height]=\"maxHeightCss()\">\n <ng-content></ng-content>\n</ul>\n" }]
|
|
70
|
+
}], ctorParameters: () => [], propDecorators: { maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], select: [{ type: i0.Output, args: ["select"] }], menu: [{ type: i0.ViewChild, args: ['menu', { isSignal: true }] }] } });
|
|
74
71
|
|
|
75
72
|
/**
|
|
76
73
|
* `[bsDropdownItem]` — marks a plain `<li>` as a Bootstrap `.dropdown-item`
|
|
77
|
-
* inside a `<bs-dropdown-menu>`.
|
|
78
|
-
*
|
|
79
|
-
* via `::slotted(.dropdown-item)`. A nested `<a>`/`<button>` (e.g. a `routerLink`)
|
|
80
|
-
* is reset by the companion light-DOM stylesheet the menu wrapper ships.
|
|
74
|
+
* inside a `<bs-dropdown-menu>`. Bootstrap styles the box; a nested `<a>` /
|
|
75
|
+
* `<button>` (e.g. a `routerLink`) fills it through the menu's scoped sheet.
|
|
81
76
|
*
|
|
82
77
|
* Usage: `<li bsDropdownItem><a routerLink="/x">Action</a></li>`.
|
|
83
78
|
*
|
|
@@ -85,7 +80,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
85
80
|
* - `active` — Bootstrap `.active` appearance.
|
|
86
81
|
* - `disabled` — non-interactive; removed from the menu's roving order.
|
|
87
82
|
* - `value` — opaque value carried in the menu's `select` event detail;
|
|
88
|
-
* written to the host `<li>` as its `dropdownValue` property, which the
|
|
83
|
+
* written to the host `<li>` as its `dropdownValue` property, which the menu
|
|
89
84
|
* reads. Not the `value` property: `HTMLLIElement.value` is a native long
|
|
90
85
|
* that turns an object or a string into 0.
|
|
91
86
|
*/
|
|
@@ -121,8 +116,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
121
116
|
|
|
122
117
|
/**
|
|
123
118
|
* `[bsDropdownDivider]` — marks an element (typically an `<li>`) as a Bootstrap
|
|
124
|
-
* `.dropdown-divider` inside a `<bs-dropdown-menu>`. Styled by
|
|
125
|
-
*
|
|
119
|
+
* `.dropdown-divider` inside a `<bs-dropdown-menu>`. Styled by Bootstrap.
|
|
120
|
+
* Usage: `<li bsDropdownDivider></li>`.
|
|
126
121
|
*/
|
|
127
122
|
class BsDropdownDividerDirective {
|
|
128
123
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDropdownDividerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -141,8 +136,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
141
136
|
|
|
142
137
|
/**
|
|
143
138
|
* `[bsDropdownHeader]` — marks an element (an `<li>` or a heading) as a Bootstrap
|
|
144
|
-
* `.dropdown-header` inside a `<bs-dropdown-menu>`. Styled by
|
|
145
|
-
*
|
|
139
|
+
* `.dropdown-header` inside a `<bs-dropdown-menu>`. Styled by Bootstrap.
|
|
140
|
+
* Usage: `<li bsDropdownHeader>Section</li>`.
|
|
146
141
|
*/
|
|
147
142
|
class BsDropdownHeaderDirective {
|
|
148
143
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsDropdownHeaderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-dropdown-menu.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/tokens/menu-context.token.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/dropdown-menu/dropdown-menu.component.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/dropdown-menu/dropdown-menu.component.html","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-divider.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/mintplayer-ng-bootstrap-dropdown-menu.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * DI marker meaning \"this content is authored inside a dropdown menu\".\n *\n * Provided by `BsDropdownMenuComponent` and `BsNavbarDropdownComponent`;\n * optionally injected by context-aware children (`bs-navbar-item`) to render\n * their `.dropdown-item` shape instead of their nav-link shape, so the same\n * item element works at every nesting level of a navbar.\n *\n * Element injectors follow the CONSUMER template's nesting (not the projection\n * site), so any `<bs-navbar-item>` written between the tags of either provider\n * sees the token — including content projected through `<ng-content>`.\n */\nexport const BS_DROPDOWN_MENU_CONTEXT = new InjectionToken<boolean>('BS_DROPDOWN_MENU_CONTEXT');\n","import { afterNextRender, ChangeDetectionStrategy, Component, computed, CUSTOM_ELEMENTS_SCHEMA, input, output, ViewEncapsulation } from '@angular/core';\nimport type { DropdownSelectEventDetail } from '@mintplayer/web-components/dropdown-menu';\nimport { BS_DROPDOWN_MENU_CONTEXT } from '../tokens/menu-context.token';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-dropdown-menu>` — Angular wrapper around the `<mp-dropdown-menu>` web\n * component. This is the single dropdown-menu implementation: it is used\n * standalone (projected through `*bsDropdownMenu` by the `[bsDropdown]` trigger\n * stack) and inside `<bs-navbar>`. Menu only: the typeahead renders its own\n * listbox from its headless core (#436).\n *\n * Keyboard navigation, roving tabindex, the ARIA roles and the theme-aware\n * styling all live in the WC (single source of UI truth). This wrapper bridges\n * inputs to attributes and projects `[bsDropdownItem]` / `[bsDropdownDivider]` /\n * `[bsDropdownHeader]` `<li>`s into the WC's default slot.\n *\n * The WC is registered **client-side only** (`afterNextRender`); on the server\n * Angular emits a bare `<mp-dropdown-menu>` tag and the SSR layer injects its\n * Declarative Shadow DOM (see `injectMpDropdownDsd`), so it renders with JS off.\n *\n * This wrapper stays framework-agnostic of the `[bsDropdown]` trigger stack (it\n * lives in a sibling entry point).\n */\n@Component({\n selector: 'bs-dropdown-menu',\n templateUrl: './dropdown-menu.component.html',\n imports: [BsForwardAriaDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n // Marks content authored between these tags as \"inside a menu\" so\n // context-aware children (bs-navbar-item) render their dropdown-item shape.\n providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }],\n // The COMPANION light-DOM sheet: the one thing the menu's shadow `::slotted`\n // rules cannot reach is a nested `<a>`/`<button>` inside an item. Ship it as an\n // un-encapsulated (global, class-scoped) rule so the link fills the padded item\n // box and inherits its color — the whole row navigates, like Bootstrap. The\n // `--bs-dropdown-item-padding-*` tokens inherit out of the menu's shadow through\n // the flat tree (fallbacks cover standalone use).\n encapsulation: ViewEncapsulation.None,\n styles: [`\n .dropdown-item > a,\n .dropdown-item > button {\n display: block;\n width: auto;\n margin: calc(-1 * var(--bs-dropdown-item-padding-y, 0.25rem)) calc(-1 * var(--bs-dropdown-item-padding-x, 1rem));\n padding: var(--bs-dropdown-item-padding-y, 0.25rem) var(--bs-dropdown-item-padding-x, 1rem);\n color: inherit;\n text-decoration: none;\n text-align: inherit;\n background: none;\n border: 0;\n font: inherit;\n }\n /* Active route (routerLinkActive classes the ANCHOR, which ::slotted can't\n reach) — stock .dropdown-item.active look; the negative-margin fill above\n makes the anchor paint the FULL item row. */\n .dropdown-item > a.active,\n .dropdown-item > button.active {\n color: var(--bs-dropdown-link-active-color, #fff);\n background-color: var(--bs-dropdown-link-active-bg, var(--bs-primary));\n }\n `],\n})\nexport class BsDropdownMenuComponent {\n /** Pixel cap on the menu height; scrolls beyond. */\n readonly maxHeight = input<number>();\n /** Id of an external label, set as `aria-labelledby` on the WC's list. */\n\n /** Fires when an enabled item is activated (re-emits the WC's `select`). */\n readonly select = output<DropdownSelectEventDetail>();\n\n /** `max-height` attribute is numeric-or-absent; derive once via a signal. */\n protected readonly maxHeightAttr = computed(() => {\n const value = this.maxHeight();\n return value === undefined ? null : `${value}`;\n });\n\n\n protected onSelect(event: Event) {\n // The WC's `select` is a general-purpose DOM event (bubbles + composed).\n // The public Angular API is this typed `output()`, so consume the raw\n // event here. Without `stopPropagation` it keeps bubbling to the consumer's\n // `<bs-dropdown-menu>` host, where their `(select)` binding fires a\n // SECOND time with the raw `CustomEvent` (Angular doesn't unwrap `.detail`).\n event.stopPropagation();\n this.select.emit((event as CustomEvent<DropdownSelectEventDetail>).detail);\n }\n\n constructor() {\n afterNextRender(() => {\n // Side-effect import registers <mp-dropdown-menu> and friends; client-only\n // so SSR stays a bare tag for DSD injection.\n import('@mintplayer/web-components/dropdown-menu');\n });\n }\n}\n","<mp-dropdown-menu bsForwardAria [attr.max-height]=\"maxHeightAttr()\" (select)=\"onSelect($event)\">\n <ng-content></ng-content>\n</mp-dropdown-menu>\n","import { Directive, ElementRef, effect, inject, input } from '@angular/core';\nimport type { DropdownItemElement } from '@mintplayer/web-components/dropdown-menu';\n\n/**\n * `[bsDropdownItem]` — marks a plain `<li>` as a Bootstrap `.dropdown-item`\n * inside a `<bs-dropdown-menu>`. There is no per-item web component: the item is\n * light-DOM `<li>` slotted into `<mp-dropdown-menu>`, whose shadow styles the box\n * via `::slotted(.dropdown-item)`. A nested `<a>`/`<button>` (e.g. a `routerLink`)\n * is reset by the companion light-DOM stylesheet the menu wrapper ships.\n *\n * Usage: `<li bsDropdownItem><a routerLink=\"/x\">Action</a></li>`.\n *\n * Inputs:\n * - `active` — Bootstrap `.active` appearance.\n * - `disabled` — non-interactive; removed from the menu's roving order.\n * - `value` — opaque value carried in the menu's `select` event detail;\n * written to the host `<li>` as its `dropdownValue` property, which the WC\n * reads. Not the `value` property: `HTMLLIElement.value` is a native long\n * that turns an object or a string into 0.\n */\n@Directive({\n selector: '[bsDropdownItem]',\n host: {\n '[class.dropdown-item]': 'true',\n '[class.active]': 'active()',\n '[class.disabled]': 'disabled()',\n '[attr.aria-disabled]': \"disabled() ? 'true' : null\",\n },\n})\nexport class BsDropdownItemDirective {\n readonly active = input(false);\n readonly disabled = input(false);\n /** Opaque value carried in the menu's `select` event detail. */\n readonly value = input<unknown>();\n\n constructor() {\n const el = inject<ElementRef<DropdownItemElement>>(ElementRef);\n effect(() => {\n el.nativeElement.dropdownValue = this.value();\n });\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsDropdownDivider]` — marks an element (typically an `<li>`) as a Bootstrap\n * `.dropdown-divider` inside a `<bs-dropdown-menu>`. Styled by the menu shadow's\n * `::slotted(.dropdown-divider)` rule. Usage: `<li bsDropdownDivider></li>`.\n */\n@Directive({\n selector: '[bsDropdownDivider]',\n host: {\n '[class.dropdown-divider]': 'true',\n role: 'separator',\n },\n})\nexport class BsDropdownDividerDirective {}\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsDropdownHeader]` — marks an element (an `<li>` or a heading) as a Bootstrap\n * `.dropdown-header` inside a `<bs-dropdown-menu>`. Styled by the menu shadow's\n * `::slotted(.dropdown-header)` rule. Usage: `<li bsDropdownHeader>Section</li>`.\n */\n@Directive({\n selector: '[bsDropdownHeader]',\n host: {\n '[class.dropdown-header]': 'true',\n },\n})\nexport class BsDropdownHeaderDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;AAEA;;;;;;;;;;;AAWG;MACU,wBAAwB,GAAG,IAAI,cAAc,CAAU,0BAA0B;;ACT9F;;;;;;;;;;;;;;;;;;AAkBG;MAyCU,uBAAuB,CAAA;AAexB,IAAA,QAAQ,CAAC,KAAY,EAAA;;;;;;QAM7B,KAAK,CAAC,eAAe,EAAE;QACvB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAE,KAAgD,CAAC,MAAM,CAAC;IAC5E;AAEA,IAAA,WAAA,GAAA;;AAvBS,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;;QAI3B,IAAA,CAAA,MAAM,GAAG,MAAM,EAA6B;;AAGlC,QAAA,IAAA,CAAA,aAAa,GAAG,QAAQ,CAAC,MAAK;AAC/C,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE;AAC9B,YAAA,OAAO,KAAK,KAAK,SAAS,GAAG,IAAI,GAAG,CAAA,EAAG,KAAK,EAAE;QAChD,CAAC;0FAAC;QAcA,eAAe,CAAC,MAAK;;;YAGnB,OAAO,0CAA0C,CAAC;AACpD,QAAA,CAAC,CAAC;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,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAAzB,yBAAyB,EAAA,UAAA,EAAA,CAAA;kBANrC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,oBAAoB;AAC9B,oBAAA,IAAI,EAAE;AACJ,wBAAA,yBAAyB,EAAE,MAAM;AAClC,qBAAA;AACF,iBAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-dropdown-menu.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/tokens/menu-context.token.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/dropdown-menu/dropdown-menu.component.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/dropdown-menu/dropdown-menu.component.html","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-item.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-divider.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/src/directives/dropdown-header.directive.ts","../../../../libs/mintplayer-ng-bootstrap/dropdown-menu/mintplayer-ng-bootstrap-dropdown-menu.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\n\n/**\n * DI marker meaning \"this content is authored inside a dropdown menu\".\n *\n * Provided by `BsDropdownMenuComponent` and `BsNavbarDropdownComponent`;\n * optionally injected by context-aware children (`bs-navbar-item`) to render\n * their `.dropdown-item` shape instead of their nav-link shape, so the same\n * item element works at every nesting level of a navbar.\n *\n * Element injectors follow the CONSUMER template's nesting (not the projection\n * site), so any `<bs-navbar-item>` written between the tags of either provider\n * sees the token — including content projected through `<ng-content>`.\n */\nexport const BS_DROPDOWN_MENU_CONTEXT = new InjectionToken<boolean>('BS_DROPDOWN_MENU_CONTEXT');\n","import { afterNextRender, ChangeDetectionStrategy, Component, computed, DestroyRef, ElementRef, inject, input, output, signal, viewChild } from '@angular/core';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport { MpPropsDirective, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport {\n DROPDOWN_MENU_SCOPE,\n attachDropdownMenu,\n connectDropdownMenu,\n dropdownMenuScopedStyles,\n type DropdownSelectEventDetail,\n} from '@mintplayer/ui-core/dropdown-menu';\nimport { BS_DROPDOWN_MENU_CONTEXT } from '../tokens/menu-context.token';\n\n/**\n * `<bs-dropdown-menu>` — a Bootstrap `.dropdown-menu` list (#437). Used\n * standalone, projected through `*bsDropdownMenu` by the `[bsDropdown]`\n * trigger stack. Menu only: the typeahead renders its own listbox, and the\n * navbar renders its own navigation panels.\n *\n * Renders the markup of `@mintplayer/ui-core/dropdown-menu` in its own\n * template: a `<ul>` around the projected `[bsDropdownItem]` /\n * `[bsDropdownDivider]` / `[bsDropdownHeader]` `<li>`s. Once hydrated, the\n * core's attachment adds the menu roles, the roving tabindex, the arrow keys\n * and the `select` output; the server output is a plain list of links, which\n * is valid and works with JavaScript off.\n *\n * A consumer's `aria-*`, `role` and `id` on `bs-dropdown-menu` reach the list.\n */\n@Component({\n selector: 'bs-dropdown-menu',\n templateUrl: './dropdown-menu.component.html',\n imports: [BsForwardAriaDirective, MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n // Marks content authored between these tags as \"inside a menu\" so\n // context-aware children render their dropdown-item shape.\n providers: [{ provide: BS_DROPDOWN_MENU_CONTEXT, useValue: true }],\n})\nexport class BsDropdownMenuComponent {\n /** Pixel cap on the menu height; scrolls beyond. */\n readonly maxHeight = input<number>();\n\n /** Fires when an enabled item is activated. */\n readonly select = output<DropdownSelectEventDetail>();\n\n private readonly menu = viewChild.required<ElementRef<HTMLElement>>('menu');\n private readonly hydrated = signal(false);\n\n protected readonly bag = computed(() => connectDropdownMenu({ hydrated: this.hydrated() }));\n protected readonly maxHeightCss = computed(() => {\n const value = this.maxHeight();\n return value === undefined ? null : `${value}px`;\n });\n\n constructor() {\n useScopedStyles(DROPDOWN_MENU_SCOPE, dropdownMenuScopedStyles);\n const destroyRef = inject(DestroyRef);\n afterNextRender(() => {\n this.hydrated.set(true);\n const dispose = attachDropdownMenu(this.menu().nativeElement, {\n onSelect: (detail) => this.select.emit(detail),\n });\n destroyRef.onDestroy(dispose);\n });\n }\n}\n","<ul #menu bsForwardAria data-mps=\"dropdown-menu\" [mpProps]=\"bag()\" [style.--mp-dropdown-max-height]=\"maxHeightCss()\">\n <ng-content></ng-content>\n</ul>\n","import { Directive, ElementRef, effect, inject, input } from '@angular/core';\nimport type { DropdownItemElement } from '@mintplayer/ui-core/dropdown-menu';\n\n/**\n * `[bsDropdownItem]` — marks a plain `<li>` as a Bootstrap `.dropdown-item`\n * inside a `<bs-dropdown-menu>`. Bootstrap styles the box; a nested `<a>` /\n * `<button>` (e.g. a `routerLink`) fills it through the menu's scoped sheet.\n *\n * Usage: `<li bsDropdownItem><a routerLink=\"/x\">Action</a></li>`.\n *\n * Inputs:\n * - `active` — Bootstrap `.active` appearance.\n * - `disabled` — non-interactive; removed from the menu's roving order.\n * - `value` — opaque value carried in the menu's `select` event detail;\n * written to the host `<li>` as its `dropdownValue` property, which the menu\n * reads. Not the `value` property: `HTMLLIElement.value` is a native long\n * that turns an object or a string into 0.\n */\n@Directive({\n selector: '[bsDropdownItem]',\n host: {\n '[class.dropdown-item]': 'true',\n '[class.active]': 'active()',\n '[class.disabled]': 'disabled()',\n '[attr.aria-disabled]': \"disabled() ? 'true' : null\",\n },\n})\nexport class BsDropdownItemDirective {\n readonly active = input(false);\n readonly disabled = input(false);\n /** Opaque value carried in the menu's `select` event detail. */\n readonly value = input<unknown>();\n\n constructor() {\n const el = inject<ElementRef<DropdownItemElement>>(ElementRef);\n effect(() => {\n el.nativeElement.dropdownValue = this.value();\n });\n }\n}\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsDropdownDivider]` — marks an element (typically an `<li>`) as a Bootstrap\n * `.dropdown-divider` inside a `<bs-dropdown-menu>`. Styled by Bootstrap.\n * Usage: `<li bsDropdownDivider></li>`.\n */\n@Directive({\n selector: '[bsDropdownDivider]',\n host: {\n '[class.dropdown-divider]': 'true',\n role: 'separator',\n },\n})\nexport class BsDropdownDividerDirective {}\n","import { Directive } from '@angular/core';\n\n/**\n * `[bsDropdownHeader]` — marks an element (an `<li>` or a heading) as a Bootstrap\n * `.dropdown-header` inside a `<bs-dropdown-menu>`. Styled by Bootstrap.\n * Usage: `<li bsDropdownHeader>Section</li>`.\n */\n@Directive({\n selector: '[bsDropdownHeader]',\n host: {\n '[class.dropdown-header]': 'true',\n },\n})\nexport class BsDropdownHeaderDirective {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEA;;;;;;;;;;;AAWG;MACU,wBAAwB,GAAG,IAAI,cAAc,CAAU,0BAA0B;;ACF9F;;;;;;;;;;;;;;AAcG;MAUU,uBAAuB,CAAA;AAgBlC,IAAA,WAAA,GAAA;;AAdS,QAAA,IAAA,CAAA,SAAS,GAAG,KAAK;iGAAU;;QAG3B,IAAA,CAAA,MAAM,GAAG,MAAM,EAA6B;AAEpC,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,QAAQ,CAA0B,MAAM;iFAAC;QAC1D,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,KAAK;qFAAC;AAEtB,QAAA,IAAA,CAAA,GAAG,GAAG,QAAQ,CAAC,MAAM,mBAAmB,CAAC,EAAE,QAAQ,EAAE,IAAI,CAAC,QAAQ,EAAE,EAAE,CAAC;gFAAC;AACxE,QAAA,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAK;AAC9C,YAAA,MAAM,KAAK,GAAG,IAAI,CAAC,SAAS,EAAE;AAC9B,YAAA,OAAO,KAAK,KAAK,SAAS,GAAG,IAAI,GAAG,CAAA,EAAG,KAAK,IAAI;QAClD,CAAC;yFAAC;AAGA,QAAA,eAAe,CAAC,mBAAmB,EAAE,wBAAwB,CAAC;AAC9D,Q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