@mintplayer/ng-bootstrap 22.5.1 → 22.7.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 -0
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs +255 -44
- package/fesm2022/mintplayer-ng-bootstrap-a11y.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs +129 -74
- package/fesm2022/mintplayer-ng-bootstrap-accordion.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs +24 -4
- package/fesm2022/mintplayer-ng-bootstrap-alert.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs +12 -3
- package/fesm2022/mintplayer-ng-bootstrap-badge.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs +9 -4
- package/fesm2022/mintplayer-ng-bootstrap-breadcrumb.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs +21 -7
- package/fesm2022/mintplayer-ng-bootstrap-card.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs +83 -248
- package/fesm2022/mintplayer-ng-bootstrap-carousel.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs +39 -35
- package/fesm2022/mintplayer-ng-bootstrap-checkbox.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs +7 -4
- package/fesm2022/mintplayer-ng-bootstrap-close.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs +80 -31
- package/fesm2022/mintplayer-ng-bootstrap-context-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs +4 -0
- package/fesm2022/mintplayer-ng-bootstrap-copy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +4 -7
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs +27 -2
- package/fesm2022/mintplayer-ng-bootstrap-dropdown.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-upload.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +25 -3
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs +15 -3
- package/fesm2022/mintplayer-ng-bootstrap-list-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs +9 -3
- package/fesm2022/mintplayer-ng-bootstrap-marquee.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs +11 -12
- package/fesm2022/mintplayer-ng-bootstrap-navbar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs +48 -0
- package/fesm2022/mintplayer-ng-bootstrap-observe-size.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs +15 -2
- package/fesm2022/mintplayer-ng-bootstrap-offcanvas.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs +6 -6
- package/fesm2022/mintplayer-ng-bootstrap-otp-input.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs +4 -7
- package/fesm2022/mintplayer-ng-bootstrap-pagination.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs +2 -3
- package/fesm2022/mintplayer-ng-bootstrap-placeholder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs +24 -5
- package/fesm2022/mintplayer-ng-bootstrap-popover.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs +3 -3
- package/fesm2022/mintplayer-ng-bootstrap-priority-nav.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs +8 -3
- package/fesm2022/mintplayer-ng-bootstrap-progress-bar.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs +4 -3
- package/fesm2022/mintplayer-ng-bootstrap-query-builder.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-radio.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs +5 -1
- package/fesm2022/mintplayer-ng-bootstrap-range.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs +33 -4
- package/fesm2022/mintplayer-ng-bootstrap-rating.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-scheduler.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-scrollspy.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs +9 -12
- package/fesm2022/mintplayer-ng-bootstrap-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-shell.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs +76 -58
- package/fesm2022/mintplayer-ng-bootstrap-signature-pad.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-spinner.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs +107 -0
- package/fesm2022/mintplayer-ng-bootstrap-splitter.mjs.map +1 -0
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-sticky-footer.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs +9 -10
- package/fesm2022/mintplayer-ng-bootstrap-tab-control.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-timeline.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs +23 -8
- package/fesm2022/mintplayer-ng-bootstrap-toast.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs +29 -6
- package/fesm2022/mintplayer-ng-bootstrap-tooltip.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs +4 -3
- package/fesm2022/mintplayer-ng-bootstrap-tree-select.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs +3 -2
- package/fesm2022/mintplayer-ng-bootstrap-treeview.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs +10 -3
- package/fesm2022/mintplayer-ng-bootstrap-typeahead.mjs.map +1 -1
- package/observe-size/package.json +4 -0
- package/package.json +9 -6
- package/splitter/package.json +4 -0
- package/types/mintplayer-ng-bootstrap-a11y.d.ts +184 -32
- package/types/mintplayer-ng-bootstrap-accordion.d.ts +88 -27
- package/types/mintplayer-ng-bootstrap-alert.d.ts +18 -8
- package/types/mintplayer-ng-bootstrap-badge.d.ts +8 -1
- package/types/mintplayer-ng-bootstrap-breadcrumb.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-card.d.ts +4 -2
- package/types/mintplayer-ng-bootstrap-carousel.d.ts +56 -109
- package/types/mintplayer-ng-bootstrap-checkbox.d.ts +11 -16
- package/types/mintplayer-ng-bootstrap-close.d.ts +6 -4
- package/types/mintplayer-ng-bootstrap-context-menu.d.ts +3 -0
- package/types/mintplayer-ng-bootstrap-copy.d.ts +1 -0
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +16 -18
- package/types/mintplayer-ng-bootstrap-dropdown.d.ts +7 -0
- package/types/mintplayer-ng-bootstrap-floating-labels.d.ts +15 -2
- package/types/mintplayer-ng-bootstrap-list-group.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-marquee.d.ts +7 -4
- package/types/mintplayer-ng-bootstrap-navbar.d.ts +1 -3
- package/types/mintplayer-ng-bootstrap-observe-size.d.ts +24 -0
- package/types/mintplayer-ng-bootstrap-offcanvas.d.ts +6 -0
- package/types/mintplayer-ng-bootstrap-otp-input.d.ts +2 -2
- package/types/mintplayer-ng-bootstrap-pagination.d.ts +1 -3
- package/types/mintplayer-ng-bootstrap-priority-nav.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-progress-bar.d.ts +5 -2
- package/types/mintplayer-ng-bootstrap-radio.d.ts +20 -28
- package/types/mintplayer-ng-bootstrap-rating.d.ts +18 -1
- package/types/mintplayer-ng-bootstrap-select.d.ts +2 -3
- package/types/mintplayer-ng-bootstrap-signature-pad.d.ts +31 -30
- package/types/mintplayer-ng-bootstrap-splitter.d.ts +66 -0
- package/types/mintplayer-ng-bootstrap-sticky-footer.d.ts +1 -1
- package/types/mintplayer-ng-bootstrap-toast.d.ts +3 -1
- package/types/mintplayer-ng-bootstrap-tooltip.d.ts +8 -0
- package/types/mintplayer-ng-bootstrap-typeahead.d.ts +7 -1
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs +0 -60
- package/fesm2022/mintplayer-ng-bootstrap-reduced-motion.mjs.map +0 -1
- package/reduced-motion/package.json +0 -4
- package/types/mintplayer-ng-bootstrap-reduced-motion.d.ts +0 -36
|
@@ -1,77 +1,95 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
2
|
+
import { input, model, viewChild, effect, ChangeDetectionStrategy, CUSTOM_ELEMENTS_SCHEMA, Component } from '@angular/core';
|
|
3
|
+
import { MpSignaturePadElement } from '@mintplayer/web-components/signature-pad';
|
|
4
|
+
import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
3
5
|
|
|
6
|
+
// Side-effect: ensure mp-signature-pad is registered (a type-only usage would
|
|
7
|
+
// let TypeScript elide the import and the element would never be defined).
|
|
8
|
+
void MpSignaturePadElement;
|
|
9
|
+
/**
|
|
10
|
+
* `<bs-signature-pad>` — Angular wrapper around the `<mp-signature-pad>` web
|
|
11
|
+
* component. The WC owns drawing, the typed-signature alternative, Undo/Clear
|
|
12
|
+
* and ARIA; this wrapper bridges the `signature` two-way model and forwards
|
|
13
|
+
* the optional label overrides.
|
|
14
|
+
*/
|
|
4
15
|
class BsSignaturePadComponent {
|
|
5
16
|
constructor() {
|
|
6
|
-
this.signature = model({ strokes: [] }, /* @ts-ignore */
|
|
7
|
-
...(ngDevMode ? [{ debugName: "signature" }] : /* istanbul ignore next */ []));
|
|
8
17
|
this.width = input(500, /* @ts-ignore */
|
|
9
18
|
...(ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []));
|
|
10
19
|
this.height = input(300, /* @ts-ignore */
|
|
11
20
|
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
12
|
-
this.
|
|
13
|
-
...(ngDevMode ? [{ debugName: "
|
|
14
|
-
this.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
this.
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
21
|
+
this.inputLabel = input(null, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
23
|
+
this.typeLabel = input(null, /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "typeLabel" }] : /* istanbul ignore next */ []));
|
|
25
|
+
this.undoLabel = input(null, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "undoLabel" }] : /* istanbul ignore next */ []));
|
|
27
|
+
this.clearLabel = input(null, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "clearLabel" }] : /* istanbul ignore next */ []));
|
|
29
|
+
/**
|
|
30
|
+
* Shows the typed alternative; named identically to bs-color-picker's input.
|
|
31
|
+
* ON by default — it is the only keyboard path — so turning it off is a
|
|
32
|
+
* deliberate draw-only decision.
|
|
33
|
+
*/
|
|
34
|
+
this.showAccessibilityToggle = input(true, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "showAccessibilityToggle" }] : /* istanbul ignore next */ []));
|
|
36
|
+
// `model()` already exposes a `signatureChange` output for two-way
|
|
37
|
+
// [(signature)] binding; `signature.set()` in onSignatureChange drives it.
|
|
38
|
+
this.signature = model({ strokes: [] }, /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "signature" }] : /* istanbul ignore next */ []));
|
|
40
|
+
this.elementRef = viewChild.required('el');
|
|
41
|
+
// Forward model writes to the WC property. Writing back the same object
|
|
42
|
+
// the WC just emitted is a no-op inside Lit (same reference), so the
|
|
43
|
+
// event → model → property round trip cannot loop.
|
|
44
|
+
effect(() => {
|
|
45
|
+
const ref = this.elementRef();
|
|
46
|
+
if (!ref)
|
|
47
|
+
return;
|
|
48
|
+
ref.nativeElement.signature = this.signature();
|
|
49
|
+
});
|
|
30
50
|
}
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
this.isDrawing.set(true);
|
|
34
|
-
if (this.context) {
|
|
35
|
-
const sig = this.signature();
|
|
36
|
-
sig.strokes.push({
|
|
37
|
-
points: [{ x: ev.offsetX, y: ev.offsetY }]
|
|
38
|
-
});
|
|
39
|
-
this.signature.set({ ...sig });
|
|
40
|
-
this.context.fillStyle = 'black';
|
|
41
|
-
this.context.beginPath();
|
|
42
|
-
this.context.moveTo(ev.offsetX, ev.offsetY);
|
|
43
|
-
}
|
|
51
|
+
onSignatureChange(event) {
|
|
52
|
+
this.signature.set(event.detail);
|
|
44
53
|
}
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
const sig = this.signature();
|
|
49
|
-
sig.strokes.at(-1)?.points.push({ x: ev.offsetX, y: ev.offsetY });
|
|
50
|
-
this.signature.set({ ...sig });
|
|
51
|
-
this.context.lineTo(ev.offsetX, ev.offsetY);
|
|
52
|
-
this.context.stroke();
|
|
53
|
-
}
|
|
54
|
+
/** Remove the most recent stroke. */
|
|
55
|
+
undo() {
|
|
56
|
+
this.elementRef()?.nativeElement.undo();
|
|
54
57
|
}
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
this.isDrawing.set(false);
|
|
59
|
-
}
|
|
58
|
+
/** Wipe strokes and typed text. */
|
|
59
|
+
clear() {
|
|
60
|
+
this.elementRef()?.nativeElement.clear();
|
|
60
61
|
}
|
|
61
62
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: {
|
|
63
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, typeLabel: { classPropertyName: "typeLabel", publicName: "typeLabel", isSignal: true, isRequired: false, transformFunction: null }, undoLabel: { classPropertyName: "undoLabel", publicName: "undoLabel", isSignal: true, isRequired: false, transformFunction: null }, clearLabel: { classPropertyName: "clearLabel", publicName: "clearLabel", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["el"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
64
|
+
<mp-signature-pad bsForwardAria
|
|
65
|
+
#el
|
|
66
|
+
[attr.width]="width()"
|
|
67
|
+
[attr.height]="height()"
|
|
68
|
+
[attr.input-label]="inputLabel()"
|
|
69
|
+
[attr.type-label]="typeLabel()"
|
|
70
|
+
[attr.undo-label]="undoLabel()"
|
|
71
|
+
[attr.clear-label]="clearLabel()"
|
|
72
|
+
[attr.show-accessibility-toggle]="showAccessibilityToggle() ? null : 'false'"
|
|
73
|
+
(signature-change)="onSignatureChange($event)"
|
|
74
|
+
></mp-signature-pad>
|
|
75
|
+
`, isInline: true, styles: [":host{display:inline-block;max-width:100%}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
63
76
|
}
|
|
64
77
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
|
|
65
78
|
type: Component,
|
|
66
|
-
args: [{ selector: 'bs-signature-pad',
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
79
|
+
args: [{ selector: 'bs-signature-pad', template: `
|
|
80
|
+
<mp-signature-pad bsForwardAria
|
|
81
|
+
#el
|
|
82
|
+
[attr.width]="width()"
|
|
83
|
+
[attr.height]="height()"
|
|
84
|
+
[attr.input-label]="inputLabel()"
|
|
85
|
+
[attr.type-label]="typeLabel()"
|
|
86
|
+
[attr.undo-label]="undoLabel()"
|
|
87
|
+
[attr.clear-label]="clearLabel()"
|
|
88
|
+
[attr.show-accessibility-toggle]="showAccessibilityToggle() ? null : 'false'"
|
|
89
|
+
(signature-change)="onSignatureChange($event)"
|
|
90
|
+
></mp-signature-pad>
|
|
91
|
+
`, imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;max-width:100%}\n"] }]
|
|
92
|
+
}], ctorParameters: () => [], propDecorators: { width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], typeLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "typeLabel", required: false }] }], undoLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "undoLabel", required: false }] }], clearLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearLabel", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }, { type: i0.Output, args: ["signatureChange"] }], elementRef: [{ type: i0.ViewChild, args: ['el', { isSignal: true }] }] } });
|
|
75
93
|
|
|
76
94
|
/**
|
|
77
95
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/component/signature-pad.component.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/component/signature-pad.component.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n effect,\n input,\n model,\n viewChild,\n} from '@angular/core';\nimport { MpSignaturePadElement, Signature } from '@mintplayer/web-components/signature-pad';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n// Side-effect: ensure mp-signature-pad is registered (a type-only usage would\n// let TypeScript elide the import and the element would never be defined).\nvoid MpSignaturePadElement;\n\n/**\n * `<bs-signature-pad>` — Angular wrapper around the `<mp-signature-pad>` web\n * component. The WC owns drawing, the typed-signature alternative, Undo/Clear\n * and ARIA; this wrapper bridges the `signature` two-way model and forwards\n * the optional label overrides.\n */\n@Component({\n selector: 'bs-signature-pad',\n template: `\n <mp-signature-pad bsForwardAria\n #el\n [attr.width]=\"width()\"\n [attr.height]=\"height()\"\n [attr.input-label]=\"inputLabel()\"\n [attr.type-label]=\"typeLabel()\"\n [attr.undo-label]=\"undoLabel()\"\n [attr.clear-label]=\"clearLabel()\"\n [attr.show-accessibility-toggle]=\"showAccessibilityToggle() ? null : 'false'\"\n (signature-change)=\"onSignatureChange($event)\"\n ></mp-signature-pad>\n `,\n // max-width mirrors the WC host's own cap: an inline-block's shrink-to-fit\n // floor is its content's intrinsic width, which percentage caps on the WC\n // cannot influence — without this the wrapper holds the pad at ~310px on\n // narrow viewports and the page scrolls horizontally.\n styles: [':host { display: inline-block; max-width: 100%; }'],\n imports: [BsForwardAriaDirective],\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSignaturePadComponent {\n readonly width = input(500);\n readonly height = input(300);\n readonly inputLabel = input<string | null>(null);\n readonly typeLabel = input<string | null>(null);\n readonly undoLabel = input<string | null>(null);\n readonly clearLabel = input<string | null>(null);\n /**\n * Shows the typed alternative; named identically to bs-color-picker's input.\n * ON by default — it is the only keyboard path — so turning it off is a\n * deliberate draw-only decision.\n */\n readonly showAccessibilityToggle = input(true);\n\n // `model()` already exposes a `signatureChange` output for two-way\n // [(signature)] binding; `signature.set()` in onSignatureChange drives it.\n readonly signature = model<Signature>({ strokes: [] });\n\n readonly elementRef = viewChild.required<ElementRef<MpSignaturePadElement>>('el');\n\n constructor() {\n // Forward model writes to the WC property. Writing back the same object\n // the WC just emitted is a no-op inside Lit (same reference), so the\n // event → model → property round trip cannot loop.\n effect(() => {\n const ref = this.elementRef();\n if (!ref) return;\n ref.nativeElement.signature = this.signature();\n });\n }\n\n protected onSignatureChange(event: Event): void {\n this.signature.set((event as CustomEvent<Signature>).detail);\n }\n\n /** Remove the most recent stroke. */\n undo(): void {\n this.elementRef()?.nativeElement.undo();\n }\n\n /** Wipe strokes and typed text. */\n clear(): void {\n this.elementRef()?.nativeElement.clear();\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAaA;AACA;AACA,KAAK,qBAAqB;AAE1B;;;;;AAKG;MAyBU,uBAAuB,CAAA;AAoBlC,IAAA,WAAA,GAAA;QAnBS,IAAA,CAAA,KAAK,GAAG,KAAK,CAAC,GAAG;kFAAC;QAClB,IAAA,CAAA,MAAM,GAAG,KAAK,CAAC,GAAG;mFAAC;QACnB,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI;uFAAC;QACvC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;QACtC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAgB,IAAI;sFAAC;QACtC,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI;uFAAC;AAChD;;;;AAIG;QACM,IAAA,C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AtBxB;;;;;;;;;;;;AAYT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,MAAA,EAAA,CAAA,8CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAMS,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIrB,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAxBnC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,kBAAkB,EAAA,QAAA,EAClB;;;;;;;;;;;;GAYT,EAAA,OAAA,EAMQ,CAAC,sBAAsB,CAAC,EAAA,OAAA,EACxB,CAAC,sBAAsB,CAAC,EAAA,eAAA,EAChB,uBAAuB,CAAC,MAAM,EAAA,MAAA,EAAA,CAAA,8CAAA,CAAA,EAAA;o7BAoB6B,IAAI,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACjElF;;AAEG;;;;"}
|
|
@@ -15,11 +15,11 @@ class BsSpinnerComponent {
|
|
|
15
15
|
...(ngDevMode ? [{ debugName: "colorClass" }] : /* istanbul ignore next */ []));
|
|
16
16
|
}
|
|
17
17
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
18
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
18
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.0", type: BsSpinnerComponent, isStandalone: true, selector: "bs-spinner", inputs: { type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, color: { classPropertyName: "color", publicName: "color", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
19
19
|
}
|
|
20
20
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSpinnerComponent, decorators: [{
|
|
21
21
|
type: Component,
|
|
22
|
-
args: [{ selector: 'bs-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}\n"] }]
|
|
22
|
+
args: [{ selector: 'bs-spinner', changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n", styles: [":host ::ng-deep .spinner-grow,:host ::ng-deep .spinner-border{display:inline-block;flex-shrink:0;width:var(--bs-spinner-width);height:var(--bs-spinner-height);vertical-align:var(--bs-spinner-vertical-align);border-radius:50%;animation:var(--bs-spinner-animation-speed) linear infinite var(--bs-spinner-animation-name)}@keyframes spinner-border{to{transform:rotate(360deg)}}:host ::ng-deep .spinner-border{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-border-width: .25em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-border;border:var(--bs-spinner-border-width) solid currentcolor;border-right-color:transparent}:host ::ng-deep .spinner-border-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem;--bs-spinner-border-width: .2em}@keyframes spinner-grow{0%{transform:scale(0)}50%{opacity:1;transform:none}}:host ::ng-deep .spinner-grow{--bs-spinner-width: 2rem;--bs-spinner-height: 2rem;--bs-spinner-vertical-align: -.125em;--bs-spinner-animation-speed: .75s;--bs-spinner-animation-name: spinner-grow;background-color:currentcolor;opacity:0}:host ::ng-deep .spinner-grow-sm{--bs-spinner-width: 1rem;--bs-spinner-height: 1rem}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{--bs-spinner-animation-speed: 1.5s}}:host ::ng-deep .spinner-border{animation:.75s linear infinite spinner-border}:host ::ng-deep .spinner-grow{animation:.75s linear infinite spinner-grow}@media(prefers-reduced-motion:reduce){:host ::ng-deep .spinner-border,:host ::ng-deep .spinner-grow{animation-duration:1.5s}}\n"] }]
|
|
23
23
|
}], propDecorators: { type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], color: [{ type: i0.Input, args: [{ isSignal: true, alias: "color", required: false }] }] } });
|
|
24
24
|
|
|
25
25
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.html","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n readonly colors = Color;\n\n type = input<'border' | 'grow'>('border');\n color = input<Color>(Color.dark);\n\n spinnerClass = computed(() => `spinner-${this.type()}`);\n colorClass = computed(() => `text-${this.colors[this.color()]}`);\n}\n","<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,MAAM,GAAG,KAAK;QAEvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,QAAQ;iFAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAQ,KAAK,CAAC,IAAI;kFAAC;QAEhC,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAA,QAAA,EAAW,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE;yFAAC;AACvD,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAA,KAAA,EAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA,CAAE;uFAAC;AACjE,IAAA;8GARY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,+TCT/B,mIAGA,EAAA,MAAA,EAAA,CAAA,
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-spinner.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.ts","../../../../libs/mintplayer-ng-bootstrap/spinner/src/spinner.component.html","../../../../libs/mintplayer-ng-bootstrap/spinner/mintplayer-ng-bootstrap-spinner.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, computed, input } from '@angular/core';\nimport { Color } from '@mintplayer/ng-bootstrap';\n\n@Component({\n selector: 'bs-spinner',\n templateUrl: './spinner.component.html',\n styleUrls: ['./spinner.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSpinnerComponent {\n readonly colors = Color;\n\n type = input<'border' | 'grow'>('border');\n color = input<Color>(Color.dark);\n\n spinnerClass = computed(() => `spinner-${this.type()}`);\n colorClass = computed(() => `text-${this.colors[this.color()]}`);\n}\n","<div [class]=\"[spinnerClass(), colorClass()]\" role=\"status\">\n <span class=\"visually-hidden\">Loading...</span>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;MASa,kBAAkB,CAAA;AAN/B,IAAA,WAAA,GAAA;QAOW,IAAA,CAAA,MAAM,GAAG,KAAK;QAEvB,IAAA,CAAA,IAAI,GAAG,KAAK,CAAoB,QAAQ;iFAAC;AACzC,QAAA,IAAA,CAAA,KAAK,GAAG,KAAK,CAAQ,KAAK,CAAC,IAAI;kFAAC;QAEhC,IAAA,CAAA,YAAY,GAAG,QAAQ,CAAC,MAAM,CAAA,QAAA,EAAW,IAAI,CAAC,IAAI,EAAE,CAAA,CAAE;yFAAC;AACvD,QAAA,IAAA,CAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,CAAA,KAAA,EAAQ,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC,CAAA,CAAE;uFAAC;AACjE,IAAA;8GARY,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,kBAAkB,+TCT/B,mIAGA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FDMa,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAN9B,SAAS;+BACE,YAAY,EAAA,eAAA,EAGL,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,mIAAA,EAAA,MAAA,EAAA,CAAA,ulDAAA,CAAA,EAAA;;;AEPjD;;AAEG;;;;"}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { input, output, viewChild, computed, CUSTOM_ELEMENTS_SCHEMA, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
export * from '@mintplayer/web-components/splitter';
|
|
4
|
+
import { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* `<bs-splitter>` — Angular wrapper around the `<mp-splitter>` web component.
|
|
8
|
+
*
|
|
9
|
+
* Panes are plain content children; the WC slots each direct child into its
|
|
10
|
+
* own resizable panel and inserts draggable/keyboard-operable dividers
|
|
11
|
+
* between them. Nest splitters to build dock-style layouts:
|
|
12
|
+
*
|
|
13
|
+
* <bs-splitter>
|
|
14
|
+
* <div>Left</div>
|
|
15
|
+
* <bs-splitter orientation="vertical" [minPanelSize]="80">
|
|
16
|
+
* <div>Top</div>
|
|
17
|
+
* <div>Bottom</div>
|
|
18
|
+
* </bs-splitter>
|
|
19
|
+
* </bs-splitter>
|
|
20
|
+
*
|
|
21
|
+
* Each wrapper claims exactly the events of its own `<mp-splitter>`: the
|
|
22
|
+
* target guard keeps a nested splitter's bubbled events from being re-emitted
|
|
23
|
+
* by the outer wrapper, and `stopPropagation()` *after* the guard ensures a
|
|
24
|
+
* claimed event is delivered once, as a typed output only. The stop is
|
|
25
|
+
* required: Angular registers BOTH a DOM listener and the output subscription
|
|
26
|
+
* for an element event binding, so a consumer's `(resizing)` handler would
|
|
27
|
+
* otherwise also receive the identically-named bubbling CustomEvent raw.
|
|
28
|
+
* Unclaimed events (from a nested raw `<mp-splitter>`) bubble on untouched.
|
|
29
|
+
*
|
|
30
|
+
* Before the custom element upgrades (or with JS off), a `:not(:defined)`
|
|
31
|
+
* fallback stylesheet renders the panes as a static flex layout with visible
|
|
32
|
+
* divider chrome, so server-rendered pages don't flash unstyled content.
|
|
33
|
+
*/
|
|
34
|
+
class BsSplitterComponent {
|
|
35
|
+
constructor() {
|
|
36
|
+
/** Axis along which the panes are laid out (and resized). */
|
|
37
|
+
this.orientation = input('horizontal', /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
39
|
+
/** Minimum pane size in px a divider can shrink a pane to (WC default 50). */
|
|
40
|
+
this.minPanelSize = input(null, /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "minPanelSize" }] : /* istanbul ignore next */ []));
|
|
42
|
+
/** Widen the invisible divider hit area for touch use. */
|
|
43
|
+
this.touchMode = input(false, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "touchMode" }] : /* istanbul ignore next */ []));
|
|
45
|
+
/** A divider drag started. Detail: current `{ sizes, orientation }`. */
|
|
46
|
+
this.resizeStart = output();
|
|
47
|
+
/** Fires on every drag-preview frame with the in-flight sizes. */
|
|
48
|
+
this.resizing = output();
|
|
49
|
+
/** Drag or keyboard resize committed. Detail: final `{ sizes, orientation }`. */
|
|
50
|
+
this.resizeEnd = output();
|
|
51
|
+
this.element = viewChild('element', /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
|
|
53
|
+
this.minPanelSizeAttr = computed(() => {
|
|
54
|
+
const value = this.minPanelSize();
|
|
55
|
+
return value != null ? String(value) : null;
|
|
56
|
+
}, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "minPanelSizeAttr" }] : /* istanbul ignore next */ []));
|
|
58
|
+
this.touchModeAttr = computed(() => (this.touchMode() ? '' : null), /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "touchModeAttr" }] : /* istanbul ignore next */ []));
|
|
60
|
+
}
|
|
61
|
+
/** Current pane sizes in px, in document order. */
|
|
62
|
+
getPanelSizes() {
|
|
63
|
+
return this.element()?.nativeElement.getPanelSizes() ?? [];
|
|
64
|
+
}
|
|
65
|
+
/** Programmatically distribute pane sizes (px, one entry per pane). */
|
|
66
|
+
setPanelSizes(sizes) {
|
|
67
|
+
this.element()?.nativeElement.setPanelSizes(sizes);
|
|
68
|
+
}
|
|
69
|
+
/**
|
|
70
|
+
* Drive a keyboard-style resize on divider `dividerIndex` (arrows ±10%,
|
|
71
|
+
* `fine` = ±1%, Home/End to the limits).
|
|
72
|
+
*/
|
|
73
|
+
resizeDividerBy(dividerIndex, key, fine = false) {
|
|
74
|
+
this.element()?.nativeElement.resizeDividerBy(dividerIndex, key, fine);
|
|
75
|
+
}
|
|
76
|
+
onResizeStart(event) {
|
|
77
|
+
if (event.target !== this.element()?.nativeElement)
|
|
78
|
+
return;
|
|
79
|
+
event.stopPropagation();
|
|
80
|
+
this.resizeStart.emit(event.detail);
|
|
81
|
+
}
|
|
82
|
+
onResizing(event) {
|
|
83
|
+
if (event.target !== this.element()?.nativeElement)
|
|
84
|
+
return;
|
|
85
|
+
event.stopPropagation();
|
|
86
|
+
this.resizing.emit(event.detail);
|
|
87
|
+
}
|
|
88
|
+
onResizeEnd(event) {
|
|
89
|
+
if (event.target !== this.element()?.nativeElement)
|
|
90
|
+
return;
|
|
91
|
+
event.stopPropagation();
|
|
92
|
+
this.resizeEnd.emit(event.detail);
|
|
93
|
+
}
|
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
95
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.0", type: BsSplitterComponent, isStandalone: true, selector: "bs-splitter", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, minPanelSize: { classPropertyName: "minPanelSize", publicName: "minPanelSize", isSignal: true, isRequired: false, transformFunction: null }, touchMode: { classPropertyName: "touchMode", publicName: "touchMode", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizeStart: "resizeStart", resizing: "resizing", resizeEnd: "resizeEnd" }, viewQueries: [{ propertyName: "element", first: true, predicate: ["element"], descendants: true, isSignal: true }], ngImport: i0, template: "<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n", styles: ["bs-splitter{display:block;width:100%;height:100%}mp-splitter:not(:defined){display:flex;width:100%;height:100%;flex-direction:row}mp-splitter:not(:defined)>*{flex-grow:1;overflow:hidden;position:relative}mp-splitter:not(:defined)>*:not(:first-child){margin-left:-3px}mp-splitter:not(:defined)>*:not(:last-child){margin-right:-3px}mp-splitter:not(:defined)>*:not(:last-child):after{content:\"\";display:block;position:absolute;right:-7px;top:0;width:14px;height:100%;border-left:3px solid transparent;border-right:3px solid transparent;background-color:var(--bs-border-color, #eee);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;background-clip:content-box;z-index:3}mp-splitter[orientation=vertical]:not(:defined){flex-direction:column}mp-splitter[orientation=vertical]:not(:defined)>*:not(:first-child){margin-left:0;margin-top:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child){margin-right:0;margin-bottom:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child):after{right:0;bottom:-7px;top:auto;width:100%;height:14px;border-left:0;border-right:0;border-top:3px solid transparent;border-bottom:3px solid transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
96
|
+
}
|
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsSplitterComponent, decorators: [{
|
|
98
|
+
type: Component,
|
|
99
|
+
args: [{ selector: 'bs-splitter', imports: [BsForwardAriaDirective], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, schemas: [CUSTOM_ELEMENTS_SCHEMA], template: "<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n", styles: ["bs-splitter{display:block;width:100%;height:100%}mp-splitter:not(:defined){display:flex;width:100%;height:100%;flex-direction:row}mp-splitter:not(:defined)>*{flex-grow:1;overflow:hidden;position:relative}mp-splitter:not(:defined)>*:not(:first-child){margin-left:-3px}mp-splitter:not(:defined)>*:not(:last-child){margin-right:-3px}mp-splitter:not(:defined)>*:not(:last-child):after{content:\"\";display:block;position:absolute;right:-7px;top:0;width:14px;height:100%;border-left:3px solid transparent;border-right:3px solid transparent;background-color:var(--bs-border-color, #eee);background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAUAAAAeCAYAAADkftS9AAAAIklEQVQoU2M4c+bMfxAGAgYYmwGrIIiDjrELjpo5aiZeMwF+yNnOs5KSvgAAAABJRU5ErkJggg==);background-position:center center;background-repeat:no-repeat;background-clip:content-box;z-index:3}mp-splitter[orientation=vertical]:not(:defined){flex-direction:column}mp-splitter[orientation=vertical]:not(:defined)>*:not(:first-child){margin-left:0;margin-top:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child){margin-right:0;margin-bottom:-3px}mp-splitter[orientation=vertical]:not(:defined)>*:not(:last-child):after{right:0;bottom:-7px;top:auto;width:100%;height:14px;border-left:0;border-right:0;border-top:3px solid transparent;border-bottom:3px solid transparent;background-image:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAB4AAAAFCAMAAABl/6zIAAAABlBMVEUAAADMzMzIT8AyAAAAAXRSTlMAQObYZgAAABRJREFUeAFjYGRkwIMJSeMHlBkOABP7AEGzSuPKAAAAAElFTkSuQmCC)}\n"] }]
|
|
100
|
+
}], propDecorators: { orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], minPanelSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "minPanelSize", required: false }] }], touchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "touchMode", required: false }] }], resizeStart: [{ type: i0.Output, args: ["resizeStart"] }], resizing: [{ type: i0.Output, args: ["resizing"] }], resizeEnd: [{ type: i0.Output, args: ["resizeEnd"] }], element: [{ type: i0.ViewChild, args: ['element', { isSignal: true }] }] } });
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Generated bundle index. Do not edit.
|
|
104
|
+
*/
|
|
105
|
+
|
|
106
|
+
export { BsSplitterComponent };
|
|
107
|
+
//# sourceMappingURL=mintplayer-ng-bootstrap-splitter.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/splitter/splitter.component.html","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n CUSTOM_ELEMENTS_SCHEMA,\n ElementRef,\n input,\n output,\n viewChild,\n ViewEncapsulation,\n} from '@angular/core';\n// Eager side-effect registration: the splitter has no DSD chrome to protect,\n// and deferring to afterNextRender would flash the `:not(:defined)` fallback\n// layout on every load.\nimport '@mintplayer/web-components/splitter';\nimport type {\n Direction,\n MpSplitter,\n ResizeKey,\n SplitterResizeEventDetail,\n} from '@mintplayer/web-components/splitter';\nimport { BsForwardAriaDirective } from '@mintplayer/ng-bootstrap/a11y';\n\n/**\n * `<bs-splitter>` — Angular wrapper around the `<mp-splitter>` web component.\n *\n * Panes are plain content children; the WC slots each direct child into its\n * own resizable panel and inserts draggable/keyboard-operable dividers\n * between them. Nest splitters to build dock-style layouts:\n *\n * <bs-splitter>\n * <div>Left</div>\n * <bs-splitter orientation=\"vertical\" [minPanelSize]=\"80\">\n * <div>Top</div>\n * <div>Bottom</div>\n * </bs-splitter>\n * </bs-splitter>\n *\n * Each wrapper claims exactly the events of its own `<mp-splitter>`: the\n * target guard keeps a nested splitter's bubbled events from being re-emitted\n * by the outer wrapper, and `stopPropagation()` *after* the guard ensures a\n * claimed event is delivered once, as a typed output only. The stop is\n * required: Angular registers BOTH a DOM listener and the output subscription\n * for an element event binding, so a consumer's `(resizing)` handler would\n * otherwise also receive the identically-named bubbling CustomEvent raw.\n * Unclaimed events (from a nested raw `<mp-splitter>`) bubble on untouched.\n *\n * Before the custom element upgrades (or with JS off), a `:not(:defined)`\n * fallback stylesheet renders the panes as a static flex layout with visible\n * divider chrome, so server-rendered pages don't flash unstyled content.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.component.html',\n imports: [BsForwardAriaDirective],\n styleUrls: ['./splitter.component.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n // The fallback stylesheet must match the CONSUMER-projected pane children,\n // which never carry this component's emulated-encapsulation attribute —\n // so the styles ship unscoped. They stay inert once the element upgrades\n // (`:not(:defined)` no longer matches).\n encapsulation: ViewEncapsulation.None,\n schemas: [CUSTOM_ELEMENTS_SCHEMA],\n})\nexport class BsSplitterComponent {\n /** Axis along which the panes are laid out (and resized). */\n readonly orientation = input<Direction>('horizontal');\n /** Minimum pane size in px a divider can shrink a pane to (WC default 50). */\n readonly minPanelSize = input<number | null>(null);\n /** Widen the invisible divider hit area for touch use. */\n readonly touchMode = input(false);\n\n /** A divider drag started. Detail: current `{ sizes, orientation }`. */\n readonly resizeStart = output<SplitterResizeEventDetail>();\n /** Fires on every drag-preview frame with the in-flight sizes. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** Drag or keyboard resize committed. Detail: final `{ sizes, orientation }`. */\n readonly resizeEnd = output<SplitterResizeEventDetail>();\n\n protected readonly element = viewChild<ElementRef<MpSplitter>>('element');\n\n protected readonly minPanelSizeAttr = computed(() => {\n const value = this.minPanelSize();\n return value != null ? String(value) : null;\n });\n protected readonly touchModeAttr = computed(() => (this.touchMode() ? '' : null));\n\n /** Current pane sizes in px, in document order. */\n getPanelSizes(): number[] {\n return this.element()?.nativeElement.getPanelSizes() ?? [];\n }\n\n /** Programmatically distribute pane sizes (px, one entry per pane). */\n setPanelSizes(sizes: number[]): void {\n this.element()?.nativeElement.setPanelSizes(sizes);\n }\n\n /**\n * Drive a keyboard-style resize on divider `dividerIndex` (arrows ±10%,\n * `fine` = ±1%, Home/End to the limits).\n */\n resizeDividerBy(dividerIndex: number, key: ResizeKey, fine = false): void {\n this.element()?.nativeElement.resizeDividerBy(dividerIndex, key, fine);\n }\n\n protected onResizeStart(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizeStart.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n\n protected onResizing(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizing.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n\n protected onResizeEnd(event: Event): void {\n if (event.target !== this.element()?.nativeElement) return;\n event.stopPropagation();\n this.resizeEnd.emit((event as CustomEvent<SplitterResizeEventDetail>).detail);\n }\n}\n","<mp-splitter bsForwardAria\n #element\n [attr.orientation]=\"orientation()\"\n [attr.min-panel-size]=\"minPanelSizeAttr()\"\n [attr.touch-mode]=\"touchModeAttr()\"\n (resize-start)=\"onResizeStart($event)\"\n (resizing)=\"onResizing($event)\"\n (resize-end)=\"onResizeEnd($event)\">\n <ng-content></ng-content>\n</mp-splitter>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2BG;MAcU,mBAAmB,CAAA;AAbhC,IAAA,WAAA,GAAA;;QAeW,IAAA,CAAA,WAAW,GAAG,KAAK,CAAY,YAAY;wFAAC;;QAE5C,IAAA,CAAA,YAAY,GAAG,KAAK,CAAgB,IAAI;yFAAC;;QAEzC,IAAA,CAAA,SAAS,GAAG,KAAK,CAAC,KAAK;sFAAC;;QAGxB,IAAA,CAAA,WAAW,GAAG,MAAM,EAA6B;;QAEjD,IAAA,CAAA,QAAQ,GAAG,MAAM,EAA6B;;QAE9C,IAAA,CAAA,SAAS,GAAG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/CAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,ED4CY,sBAAsB,EAAA,QAAA,EAAA,iBAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;;2FAUrB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAb/B,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,aAAa,EAAA,OAAA,EAEd,CAAC,sBAAsB,CAAC,mBAEhB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAKhC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,sBAAsB,CAAC,EAAA,QAAA,EAAA,kWAAA,EAAA,MAAA,EAAA,CAAA,+/CAAA,CAAA,EAAA;4hBAiB8B,SAAS,EAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AE/E1E;;AAEG;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
2
|
import { Directive, viewChild, effect, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
-
import { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
3
|
+
import { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';
|
|
4
4
|
|
|
5
5
|
class BsStickyFooterParentDirective {
|
|
6
6
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.0", ngImport: i0, type: BsStickyFooterParentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-sticky-footer.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer-parent/sticky-footer-parent.directive.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.ts","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/src/sticky-footer/sticky-footer.component.html","../../../../libs/mintplayer-ng-bootstrap/sticky-footer/mintplayer-ng-bootstrap-sticky-footer.ts"],"sourcesContent":["import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[bsStickyFooterParent]',\n host: {\n '[style.margin-bottom.px]': 'marginBottom',\n },\n})\nexport class BsStickyFooterParentDirective {\n marginBottom?: number;\n}\n","import { AfterViewInit, Component, effect, Injector, viewChild, ChangeDetectionStrategy} from '@angular/core';\nimport { BsStickyFooterParentDirective } from '../sticky-footer-parent/sticky-footer-parent.directive';\nimport { BsObserveSizeDirective } from '@mintplayer/ng-bootstrap/observe-size';\n\n@Component({\n selector: 'bs-sticky-footer',\n templateUrl: './sticky-footer.component.html',\n styleUrls: ['./sticky-footer.component.scss'],\n imports: [BsObserveSizeDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsStickyFooterComponent implements AfterViewInit {\n constructor(\n private parent: BsStickyFooterParentDirective,\n private injector: Injector\n ) {}\n\n ngAfterViewInit() {\n effect(() => {\n const height = this.sizeObserver().height();\n if (height !== undefined) {\n this.parent.marginBottom = height;\n }\n }, { injector: this.injector });\n }\n\n readonly sizeObserver = viewChild.required<BsObserveSizeDirective>('sizeObserver');\n}\n","<footer bsObserveSize #sizeObserver=\"bsObserveSize\" class=\"footer position-absolute\">\n <ng-content></ng-content>\n</footer>","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.BsStickyFooterParentDirective"],"mappings":";;;;MAQa,6BAA6B,CAAA;8GAA7B,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,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,wBAAA,EAAA,cAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;;2FAA7B,6BAA6B,EAAA,UAAA,EAAA,CAAA;kBANzC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,wBAAwB;AAClC,oBAAA,IAAI,EAAE;AACJ,wBAAA,0BAA0B,EAAE,cAAc;AAC3C,qBAAA;AACF,iBAAA;;;MCIY,uBAAuB,CAAA;IAClC,WAAA,CACU,MAAqC,EACrC,QAAkB,EAAA;QADlB,IAAA,CAAA,MAAM,GAAN,MAAM;QACN,IAAA,CAAA,QAAQ,GAAR,QAAQ;AAYT,QAAA,IAAA,CAAA,YAAY,GAAG,SAAS,CAAC,QAAQ,CAAyB,cAAc,CAAC;IAX/E;IAEH,eAAe,GAAA;QACb,MAAM,CAAC,MAAK;YACV,MAAM,MAAM,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,MAAM,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