@mintplayer/ng-bootstrap 22.27.0 → 22.29.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 +150 -813
- 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 +220 -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 +217 -416
- 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 +112 -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,98 +1,155 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
2
|
+
import { inject, Injector, DestroyRef, signal, forwardRef, Directive, computed, ElementRef, model, input, numberAttribute, booleanAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { emptySignature, signaturePadCore, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';
|
|
5
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
6
|
+
import { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';
|
|
7
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
5
8
|
|
|
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
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
* component
|
|
12
|
-
* and
|
|
13
|
-
* the
|
|
10
|
+
* The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the
|
|
11
|
+
* generated component, see `signature-pad.angular.ts`), so `ngModel`,
|
|
12
|
+
* `formControl` and `formControlName` work without an extra import. A bound
|
|
13
|
+
* form control drives the signature through `viewValue`; what the user draws
|
|
14
|
+
* or types reaches the form through the component's `signature` model, which a
|
|
15
|
+
* form write never echoes.
|
|
16
|
+
*/
|
|
17
|
+
class BsSignaturePadValueAccessor {
|
|
18
|
+
constructor() {
|
|
19
|
+
this.injector = inject(Injector);
|
|
20
|
+
this.destroyRef = inject(DestroyRef);
|
|
21
|
+
/** A form control drives the signature: its `viewValue` wins over the `signature` input. */
|
|
22
|
+
this.bound = signal(false, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "bound" }] : /* istanbul ignore next */ []));
|
|
24
|
+
this.viewValue = signal(emptySignature(), /* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [{ debugName: "viewValue" }] : /* istanbul ignore next */ []));
|
|
26
|
+
this.disabled = signal(false, /* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
|
|
28
|
+
this.onChange = () => undefined;
|
|
29
|
+
this.onTouched = () => undefined;
|
|
30
|
+
}
|
|
31
|
+
ngOnInit() {
|
|
32
|
+
// The component is created after its host directives, so it is looked up here.
|
|
33
|
+
const component = this.injector.get(BsSignaturePadComponent);
|
|
34
|
+
const sub = component.signaturechange.subscribe((value) => {
|
|
35
|
+
if (!this.bound() || value === this.viewValue())
|
|
36
|
+
return;
|
|
37
|
+
this.viewValue.set(value);
|
|
38
|
+
this.onChange(value);
|
|
39
|
+
});
|
|
40
|
+
this.destroyRef.onDestroy(() => sub.unsubscribe());
|
|
41
|
+
}
|
|
42
|
+
registerOnChange(fn) {
|
|
43
|
+
this.bound.set(true);
|
|
44
|
+
this.onChange = fn;
|
|
45
|
+
}
|
|
46
|
+
registerOnTouched(fn) {
|
|
47
|
+
this.onTouched = fn;
|
|
48
|
+
}
|
|
49
|
+
writeValue(value) {
|
|
50
|
+
this.viewValue.set(value ?? emptySignature());
|
|
51
|
+
}
|
|
52
|
+
setDisabledState(isDisabled) {
|
|
53
|
+
this.disabled.set(isDisabled);
|
|
54
|
+
}
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadValueAccessor, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
56
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.8", type: BsSignaturePadValueAccessor, isStandalone: true, host: { listeners: { "focusout": "onTouched()" } }, providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }], ngImport: i0 }); }
|
|
57
|
+
}
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadValueAccessor, decorators: [{
|
|
59
|
+
type: Directive,
|
|
60
|
+
args: [{
|
|
61
|
+
providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],
|
|
62
|
+
host: {
|
|
63
|
+
'(focusout)': 'onTouched()',
|
|
64
|
+
},
|
|
65
|
+
}]
|
|
66
|
+
}] });
|
|
67
|
+
|
|
68
|
+
/*
|
|
69
|
+
* The Angular extension of the generated `bs-signature-pad` (PRD #437 D10
|
|
70
|
+
* escape hatch): Angular forms. A bound form control drives the signature and
|
|
71
|
+
* the disabled state, and its validity reaches the typed field's ARIA and the
|
|
72
|
+
* message under the pad.
|
|
73
|
+
*/
|
|
74
|
+
const hostDirectives = [
|
|
75
|
+
BsSignaturePadValueAccessor,
|
|
76
|
+
{ directive: BsControlValidityDirective, inputs: ['errorMessages'] },
|
|
77
|
+
];
|
|
78
|
+
function extendInputs(inputs) {
|
|
79
|
+
const accessor = inject(BsSignaturePadValueAccessor, { self: true });
|
|
80
|
+
const validity = inject(BsControlValidityDirective, { self: true });
|
|
81
|
+
return computed(() => {
|
|
82
|
+
const value = inputs();
|
|
83
|
+
return {
|
|
84
|
+
...value,
|
|
85
|
+
signature: accessor.bound() ? accessor.viewValue() : value.signature,
|
|
86
|
+
disabled: value.disabled || accessor.disabled(),
|
|
87
|
+
invalid: value.invalid || validity.invalid(),
|
|
88
|
+
required: value.required || validity.required(),
|
|
89
|
+
errorText: value.errorText ?? validity.errorText(),
|
|
90
|
+
};
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
// GENERATED from the signature-pad manifest (signature-pad) by @mintplayer/nx-component-compiler. Do not edit.
|
|
95
|
+
/**
|
|
96
|
+
* Freehand signature capture with a typed alternative (#437).
|
|
97
|
+
*
|
|
98
|
+
* Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto
|
|
99
|
+
* the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders
|
|
100
|
+
* inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.
|
|
14
101
|
*/
|
|
15
102
|
class BsSignaturePadComponent {
|
|
103
|
+
#core;
|
|
16
104
|
constructor() {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
this.height = input(300, /* @ts-ignore */
|
|
20
|
-
...(ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []));
|
|
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.
|
|
105
|
+
/** The host element. */
|
|
106
|
+
this.elementRef = inject(ElementRef);
|
|
38
107
|
this.signature = model({ strokes: [] }, /* @ts-ignore */
|
|
39
108
|
...(ngDevMode ? [{ debugName: "signature" }] : /* istanbul ignore next */ []));
|
|
40
|
-
this.
|
|
41
|
-
...(ngDevMode ?
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
109
|
+
this.width = input(500, { ...(ngDevMode ? { debugName: "width" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
110
|
+
this.height = input(300, { ...(ngDevMode ? { debugName: "height" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
111
|
+
this.showAccessibilityToggle = input(true, { ...(ngDevMode ? { debugName: "showAccessibilityToggle" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
112
|
+
this.disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
113
|
+
this.required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
114
|
+
this.invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
115
|
+
this.errorText = input(null, /* @ts-ignore */
|
|
116
|
+
...(ngDevMode ? [{ debugName: "errorText" }] : /* istanbul ignore next */ []));
|
|
117
|
+
this.inputLabel = input(null, /* @ts-ignore */
|
|
118
|
+
...(ngDevMode ? [{ debugName: "inputLabel" }] : /* istanbul ignore next */ []));
|
|
119
|
+
this.labels = input(null, /* @ts-ignore */
|
|
120
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
121
|
+
/** Every stroke point, typed character, undo and clear: the current signature. */
|
|
122
|
+
this.signaturechange = output();
|
|
123
|
+
this.#core = useCore(signaturePadCore, { inputs: extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });
|
|
124
|
+
/** The template's props. */
|
|
125
|
+
this.props = this.#core.props;
|
|
126
|
+
useScopedStyles('signature-pad', signaturePadScopedStyles);
|
|
49
127
|
}
|
|
50
|
-
|
|
51
|
-
|
|
128
|
+
/** Remove the most recent stroke (ignored when disabled). */
|
|
129
|
+
undo(...args) {
|
|
130
|
+
return this.#core.call('undo', args);
|
|
52
131
|
}
|
|
53
|
-
/**
|
|
54
|
-
|
|
55
|
-
this.
|
|
132
|
+
/** Wipe the strokes and the typed text (ignored when disabled). */
|
|
133
|
+
clear(...args) {
|
|
134
|
+
return this.#core.call('clear', args);
|
|
56
135
|
}
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
this.
|
|
136
|
+
/** Move focus to the typed field. */
|
|
137
|
+
focusInput(...args) {
|
|
138
|
+
return this.#core.call('focusInput', args);
|
|
60
139
|
}
|
|
61
140
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
62
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
63
|
-
<mp-signature-pad bsForwardAria
|
|
64
|
-
#el
|
|
65
|
-
[attr.width]="width()"
|
|
66
|
-
[attr.height]="height()"
|
|
67
|
-
[attr.input-label]="inputLabel()"
|
|
68
|
-
[attr.type-label]="typeLabel()"
|
|
69
|
-
[attr.undo-label]="undoLabel()"
|
|
70
|
-
[attr.clear-label]="clearLabel()"
|
|
71
|
-
[attr.show-accessibility-toggle]="showAccessibilityToggle() ? null : 'false'"
|
|
72
|
-
(signature-change)="onSignatureChange($event)"
|
|
73
|
-
></mp-signature-pad>
|
|
74
|
-
`, isInline: true, styles: [":host{display:inline-block;max-width:100%}\n"], dependencies: [{ kind: "directive", type: BsForwardAriaDirective, selector: "[bsForwardAria]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
141
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: BsSignaturePadComponent, isStandalone: true, selector: "bs-signature-pad", inputs: { signature: { classPropertyName: "signature", publicName: "signature", isSignal: true, isRequired: false, transformFunction: null }, width: { classPropertyName: "width", publicName: "width", isSignal: true, isRequired: false, transformFunction: null }, height: { classPropertyName: "height", publicName: "height", isSignal: true, isRequired: false, transformFunction: null }, showAccessibilityToggle: { classPropertyName: "showAccessibilityToggle", publicName: "showAccessibilityToggle", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, errorText: { classPropertyName: "errorText", publicName: "errorText", isSignal: true, isRequired: false, transformFunction: null }, inputLabel: { classPropertyName: "inputLabel", publicName: "inputLabel", isSignal: true, isRequired: false, transformFunction: null }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { signature: "signatureChange", signaturechange: "signaturechange" }, hostDirectives: [{ directive: BsSignaturePadValueAccessor }, { directive: i2.BsControlValidityDirective, inputs: ["errorMessages", "errorMessages"] }], ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
75
142
|
}
|
|
76
143
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSignaturePadComponent, decorators: [{
|
|
77
144
|
type: Component,
|
|
78
|
-
args: [{ selector: 'bs-signature-pad', template:
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
[attr.height]="height()"
|
|
83
|
-
[attr.input-label]="inputLabel()"
|
|
84
|
-
[attr.type-label]="typeLabel()"
|
|
85
|
-
[attr.undo-label]="undoLabel()"
|
|
86
|
-
[attr.clear-label]="clearLabel()"
|
|
87
|
-
[attr.show-accessibility-toggle]="showAccessibilityToggle() ? null : 'false'"
|
|
88
|
-
(signature-change)="onSignatureChange($event)"
|
|
89
|
-
></mp-signature-pad>
|
|
90
|
-
`, imports: [BsForwardAriaDirective], schemas: [CUSTOM_ELEMENTS_SCHEMA], changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inline-block;max-width:100%}\n"] }]
|
|
91
|
-
}], 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 }] }] } });
|
|
145
|
+
args: [{ selector: 'bs-signature-pad', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: hostDirectives, template: "<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n" }]
|
|
146
|
+
}], ctorParameters: () => [], propDecorators: { signature: [{ type: i0.Input, args: [{ isSignal: true, alias: "signature", required: false }] }, { type: i0.Output, args: ["signatureChange"] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], height: [{ type: i0.Input, args: [{ isSignal: true, alias: "height", required: false }] }], showAccessibilityToggle: [{ type: i0.Input, args: [{ isSignal: true, alias: "showAccessibilityToggle", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], errorText: [{ type: i0.Input, args: [{ isSignal: true, alias: "errorText", required: false }] }], inputLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputLabel", required: false }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], signaturechange: [{ type: i0.Output, args: ["signaturechange"] }] } });
|
|
147
|
+
|
|
148
|
+
// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
92
149
|
|
|
93
150
|
/**
|
|
94
151
|
* Generated bundle index. Do not edit.
|
|
95
152
|
*/
|
|
96
153
|
|
|
97
|
-
export { BsSignaturePadComponent };
|
|
154
|
+
export { BsSignaturePadComponent, BsSignaturePadValueAccessor };
|
|
98
155
|
//# sourceMappingURL=mintplayer-ng-bootstrap-signature-pad.mjs.map
|
|
@@ -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/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 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,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SAAA,EAAA,iBAAA,EAAA,EAAA,WAAA,EAAA,CAAA,EAAA,YAAA,EAAA,YAAA,EAAA,KAAA,EAAA,IAAA,EAAA,SAAA,EAAA,CAAA,IAAA,CAAA,EAAA,WAAA,EAAA,IAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAtBxB;;;;;;;;;;;;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;;;;"}
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-signature-pad.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/value-accessor/signature-pad-value-accessor.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/signature-pad.angular.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/signature-pad.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/signature-pad/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/signature-pad/mintplayer-ng-bootstrap-signature-pad.ts"],"sourcesContent":["import { DestroyRef, Directive, Injector, OnInit, forwardRef, inject, signal } from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { emptySignature, type Signature } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadComponent } from '../generated';\n\n/**\n * The `ControlValueAccessor` of `bs-signature-pad` (a host directive of the\n * generated component, see `signature-pad.angular.ts`), so `ngModel`,\n * `formControl` and `formControlName` work without an extra import. A bound\n * form control drives the signature through `viewValue`; what the user draws\n * or types reaches the form through the component's `signature` model, which a\n * form write never echoes.\n */\n@Directive({\n providers: [{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => BsSignaturePadValueAccessor), multi: true }],\n host: {\n '(focusout)': 'onTouched()',\n },\n})\nexport class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {\n private readonly injector = inject(Injector);\n private readonly destroyRef = inject(DestroyRef);\n\n /** A form control drives the signature: its `viewValue` wins over the `signature` input. */\n readonly bound = signal(false);\n readonly viewValue = signal<Signature>(emptySignature());\n readonly disabled = signal(false);\n\n private onChange: (value: Signature) => void = () => undefined;\n onTouched: () => void = () => undefined;\n\n ngOnInit(): void {\n // The component is created after its host directives, so it is looked up here.\n const component = this.injector.get(BsSignaturePadComponent);\n const sub = component.signaturechange.subscribe((value) => {\n if (!this.bound() || value === this.viewValue()) return;\n this.viewValue.set(value);\n this.onChange(value);\n });\n this.destroyRef.onDestroy(() => sub.unsubscribe());\n }\n\n registerOnChange(fn: (value: Signature) => void): void {\n this.bound.set(true);\n this.onChange = fn;\n }\n\n registerOnTouched(fn: () => void): void {\n this.onTouched = fn;\n }\n\n writeValue(value: Signature | null | undefined): void {\n this.viewValue.set(value ?? emptySignature());\n }\n\n setDisabledState(isDisabled: boolean): void {\n this.disabled.set(isDisabled);\n }\n}\n","import { computed, inject } from '@angular/core';\nimport { BsControlValidityDirective } from '@mintplayer/ng-bootstrap/a11y';\nimport type { SignaturePadInputs } from '@mintplayer/ui-core/signature-pad';\nimport { BsSignaturePadValueAccessor } from './value-accessor/signature-pad-value-accessor';\n\n/*\n * The Angular extension of the generated `bs-signature-pad` (PRD #437 D10\n * escape hatch): Angular forms. A bound form control drives the signature and\n * the disabled state, and its validity reaches the typed field's ARIA and the\n * message under the pad.\n */\n\nexport const hostDirectives = [\n BsSignaturePadValueAccessor,\n { directive: BsControlValidityDirective, inputs: ['errorMessages'] },\n];\n\nexport function extendInputs(inputs: () => SignaturePadInputs): () => SignaturePadInputs {\n const accessor = inject(BsSignaturePadValueAccessor, { self: true });\n const validity = inject(BsControlValidityDirective, { self: true });\n return computed<SignaturePadInputs>(() => {\n const value = inputs();\n return {\n ...value,\n signature: accessor.bound() ? accessor.viewValue() : value.signature,\n disabled: value.disabled || accessor.disabled(),\n invalid: value.invalid || validity.invalid(),\n required: value.required || validity.required(),\n errorText: value.errorText ?? validity.errorText(),\n };\n });\n}\n","// GENERATED from the signature-pad manifest (signature-pad) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, model, numberAttribute, output } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { type Signature, signaturePadCore, type SignaturePadInputs, type SignaturePadMethods, signaturePadScopedStyles } from '@mintplayer/ui-core/signature-pad';\nimport { hostDirectives as ext_hostDirectives, extendInputs as ext_extendInputs } from '../signature-pad.angular';\n\n/**\n * Freehand signature capture with a typed alternative (#437).\n *\n * Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto\n * the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders\n * inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.\n */\n@Component({\n selector: 'bs-signature-pad',\n templateUrl: './signature-pad.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: ext_hostDirectives,\n})\nexport class BsSignaturePadComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly signature = model<SignaturePadInputs['signature']>({ strokes: [] });\n readonly width = input<SignaturePadInputs['width'], unknown>(500, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['width'] });\n readonly height = input<SignaturePadInputs['height'], unknown>(300, { transform: (v: unknown) => numberAttribute(v) as SignaturePadInputs['height'] });\n readonly showAccessibilityToggle = input<SignaturePadInputs['showAccessibilityToggle'], unknown>(true, { transform: booleanAttribute });\n readonly disabled = input<SignaturePadInputs['disabled'], unknown>(false, { transform: booleanAttribute });\n readonly required = input<SignaturePadInputs['required'], unknown>(false, { transform: booleanAttribute });\n readonly invalid = input<SignaturePadInputs['invalid'], unknown>(false, { transform: booleanAttribute });\n readonly errorText = input<SignaturePadInputs['errorText']>(null);\n readonly inputLabel = input<SignaturePadInputs['inputLabel']>(null);\n readonly labels = input<SignaturePadInputs['labels']>(null);\n /** Every stroke point, typed character, undo and clear: the current signature. */\n readonly signaturechange = output<Signature>();\n\n readonly #core = useCore(signaturePadCore, { inputs: ext_extendInputs(() => ({ signature: this.signature(), width: this.width(), height: this.height(), showAccessibilityToggle: this.showAccessibilityToggle(), disabled: this.disabled(), required: this.required(), invalid: this.invalid(), errorText: this.errorText(), inputLabel: this.inputLabel(), labels: this.labels() })), idPrefix: 'bs-signature-pad', outputs: { signatureChange: this.signaturechange }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'signature-pad' }), models: { signature: this.signature } });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('signature-pad', signaturePadScopedStyles);\n }\n\n /** Remove the most recent stroke (ignored when disabled). */\n undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']> {\n return this.#core.call('undo', args) as ReturnType<SignaturePadMethods['undo']>;\n }\n\n /** Wipe the strokes and the typed text (ignored when disabled). */\n clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']> {\n return this.#core.call('clear', args) as ReturnType<SignaturePadMethods['clear']>;\n }\n\n /** Move focus to the typed field. */\n focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']> {\n return this.#core.call('focusInput', args) as ReturnType<SignaturePadMethods['focusInput']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/signature-pad/src/templates/signature-pad.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<canvas data-mps=\"signature-pad\" [mpProps]=\"p_view.canvas\"></canvas>\n<div data-mps=\"signature-pad\" [mpProps]=\"p_view.controls\">\n @if (p_view.typed) {\n <input data-mps=\"signature-pad\" [mpProps]=\"p_view.typed\">\n }\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.undo\">\n {{ p_view.undoText }}\n </button>\n <button data-mps=\"signature-pad\" [mpProps]=\"p_view.clear\">\n {{ p_view.clearText }}\n </button>\n</div>\n@if (p_view.showFeedback) {\n <div data-mps=\"signature-pad\" [mpProps]=\"p_view.feedback.attrs\">\n {{ p_view.feedback.text }}\n </div>\n}\n","// GENERATED from the signature-pad manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSignaturePadComponent } from './signature-pad.component.generated';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["ext_extendInputs","i1.BsSignaturePadValueAccessor","ext_hostDirectives"],"mappings":";;;;;;;;AAKA;;;;;;;AAOG;MAOU,2BAA2B,CAAA;AANxC,IAAA,WAAA,GAAA;AAOmB,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,QAAQ,CAAC;AAC3B,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAC,UAAU,CAAC;;QAGvC,IAAA,CAAA,KAAK,GAAG,MAAM,CAAC,KAAK;kFAAC;AACrB,QAAA,IAAA,CAAA,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EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,CAAA,CAAA;;2FAIf,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAPnC,SAAS;+BACE,kBAAkB,EAAA,OAAA,EAEnB,CAAC,gBAAgB,CAAC,mBACV,uBAAuB,CAAC,MAAM,EAAA,cAAA,EAC/BC,cAAkB,EAAA,QAAA,EAAA,8wBAAA,EAAA;;;AElBpC;;ACAA;;AAEG;;;;"}
|
|
@@ -1,110 +1,83 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
|
|
4
|
-
import {
|
|
2
|
+
import { inject, ElementRef, input, numberAttribute, booleanAttribute, output, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
|
+
import { useCore, useScopedStyles, MpPropsDirective } from '@mintplayer/ng-bootstrap/machine';
|
|
4
|
+
import { splitterCore, splitterScopedStyles, splitterPanelCore } from '@mintplayer/ui-core/splitter';
|
|
5
5
|
|
|
6
|
+
// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.
|
|
6
7
|
/**
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
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.
|
|
8
|
+
* Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,
|
|
9
|
+
* or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for
|
|
10
|
+
* two-dimensional layouts. With JavaScript off the panels share the space evenly.
|
|
33
11
|
*/
|
|
34
12
|
class BsSplitterComponent {
|
|
13
|
+
#core;
|
|
35
14
|
constructor() {
|
|
36
|
-
/**
|
|
15
|
+
/** The host element. */
|
|
16
|
+
this.elementRef = inject(ElementRef);
|
|
37
17
|
this.orientation = input('horizontal', /* @ts-ignore */
|
|
38
18
|
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
39
|
-
|
|
40
|
-
this.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
/**
|
|
46
|
-
this.resizeStart = output();
|
|
47
|
-
/** Fires on every drag-preview frame with the in-flight sizes. */
|
|
19
|
+
this.minPanelSize = input(50, { ...(ngDevMode ? { debugName: "minPanelSize" } : /* istanbul ignore next */ {}), transform: (v) => numberAttribute(v) });
|
|
20
|
+
this.touchMode = input(false, { ...(ngDevMode ? { debugName: "touchMode" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
21
|
+
this.labels = input(null, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "labels" }] : /* istanbul ignore next */ []));
|
|
23
|
+
/** A divider drag started, with the sizes before it. */
|
|
24
|
+
this.resizestart = output();
|
|
25
|
+
/** Every frame of a divider drag, with the sizes it previews. */
|
|
48
26
|
this.resizing = output();
|
|
49
|
-
/**
|
|
50
|
-
this.
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
...(ngDevMode ? [{ debugName: "element" }] : /* istanbul ignore next */ []));
|
|
56
|
-
this.minPanelSizeAttr = computed(() => {
|
|
57
|
-
const value = this.minPanelSize();
|
|
58
|
-
return value != null ? String(value) : null;
|
|
59
|
-
}, /* @ts-ignore */
|
|
60
|
-
...(ngDevMode ? [{ debugName: "minPanelSizeAttr" }] : /* istanbul ignore next */ []));
|
|
61
|
-
this.touchModeAttr = computed(() => (this.touchMode() ? '' : null), /* @ts-ignore */
|
|
62
|
-
...(ngDevMode ? [{ debugName: "touchModeAttr" }] : /* istanbul ignore next */ []));
|
|
27
|
+
/** A drag or a key committed new sizes. */
|
|
28
|
+
this.resizeend = output();
|
|
29
|
+
this.#core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizestart, resizing: this.resizing, resizeEnd: this.resizeend }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });
|
|
30
|
+
/** The template's props. */
|
|
31
|
+
this.props = this.#core.props;
|
|
32
|
+
useScopedStyles('splitter', splitterScopedStyles);
|
|
63
33
|
}
|
|
64
|
-
/**
|
|
65
|
-
getPanelSizes() {
|
|
66
|
-
return this.
|
|
34
|
+
/** The panel sizes in px, in document order. */
|
|
35
|
+
getPanelSizes(...args) {
|
|
36
|
+
return this.#core.call('getPanelSizes', args);
|
|
67
37
|
}
|
|
68
|
-
/**
|
|
69
|
-
setPanelSizes(
|
|
70
|
-
this.
|
|
38
|
+
/** Set the panel sizes in px, one per panel. Emits nothing. */
|
|
39
|
+
setPanelSizes(...args) {
|
|
40
|
+
return this.#core.call('setPanelSizes', args);
|
|
71
41
|
}
|
|
72
|
-
/**
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
*/
|
|
76
|
-
resizeDividerBy(dividerIndex, key, fine = false) {
|
|
77
|
-
this.element()?.nativeElement.resizeDividerBy(dividerIndex, key, fine);
|
|
78
|
-
}
|
|
79
|
-
onResizeStart(event) {
|
|
80
|
-
if (event.target !== this.element()?.nativeElement)
|
|
81
|
-
return;
|
|
82
|
-
event.stopPropagation();
|
|
83
|
-
this.resizeStart.emit(event.detail);
|
|
84
|
-
}
|
|
85
|
-
onResizing(event) {
|
|
86
|
-
if (event.target !== this.element()?.nativeElement)
|
|
87
|
-
return;
|
|
88
|
-
event.stopPropagation();
|
|
89
|
-
this.resizing.emit(event.detail);
|
|
90
|
-
}
|
|
91
|
-
onResizeEnd(event) {
|
|
92
|
-
if (event.target !== this.element()?.nativeElement)
|
|
93
|
-
return;
|
|
94
|
-
event.stopPropagation();
|
|
95
|
-
this.resizeEnd.emit(event.detail);
|
|
42
|
+
/** Move a divider as its arrow, Home or End key would. */
|
|
43
|
+
resizeDividerBy(...args) {
|
|
44
|
+
return this.#core.call('resizeDividerBy', args);
|
|
96
45
|
}
|
|
97
46
|
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
98
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.8", 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 }, labels: { classPropertyName: "labels", publicName: "labels", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { resizestart: "resizestart", resizing: "resizing", resizeend: "resizeend" }, ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n", changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
99
48
|
}
|
|
100
49
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterComponent, decorators: [{
|
|
101
50
|
type: Component,
|
|
102
|
-
args: [{ selector: 'bs-splitter', imports: [
|
|
103
|
-
}], 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 }] }],
|
|
51
|
+
args: [{ selector: 'bs-splitter', imports: [], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n" }]
|
|
52
|
+
}], ctorParameters: () => [], 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 }] }], labels: [{ type: i0.Input, args: [{ isSignal: true, alias: "labels", required: false }] }], resizestart: [{ type: i0.Output, args: ["resizestart"] }], resizing: [{ type: i0.Output, args: ["resizing"] }], resizeend: [{ type: i0.Output, args: ["resizeend"] }] } });
|
|
53
|
+
|
|
54
|
+
// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.
|
|
55
|
+
/** One panel of a splitter. Its content fills the panel. */
|
|
56
|
+
class BsSplitterPanelComponent {
|
|
57
|
+
#core;
|
|
58
|
+
constructor() {
|
|
59
|
+
/** The host element. */
|
|
60
|
+
this.elementRef = inject(ElementRef);
|
|
61
|
+
this.#core = useCore(splitterPanelCore, { inputs: () => ({}), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });
|
|
62
|
+
/** The template's props. */
|
|
63
|
+
this.props = this.#core.props;
|
|
64
|
+
useScopedStyles('splitter', splitterScopedStyles);
|
|
65
|
+
}
|
|
66
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterPanelComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
67
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "22.0.8", type: BsSplitterPanelComponent, isStandalone: true, selector: "bs-splitter-panel", ngImport: i0, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n", dependencies: [{ kind: "directive", type: MpPropsDirective, selector: "[mpProps]", inputs: ["mpProps"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
68
|
+
}
|
|
69
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: BsSplitterPanelComponent, decorators: [{
|
|
70
|
+
type: Component,
|
|
71
|
+
args: [{ selector: 'bs-splitter-panel', imports: [MpPropsDirective], changeDetection: ChangeDetectionStrategy.OnPush, template: "<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n" }]
|
|
72
|
+
}], ctorParameters: () => [] });
|
|
73
|
+
|
|
74
|
+
// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.
|
|
75
|
+
|
|
76
|
+
// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).
|
|
104
77
|
|
|
105
78
|
/**
|
|
106
79
|
* Generated bundle index. Do not edit.
|
|
107
80
|
*/
|
|
108
81
|
|
|
109
|
-
export { BsSplitterComponent };
|
|
82
|
+
export { BsSplitterComponent, BsSplitterPanelComponent };
|
|
110
83
|
//# sourceMappingURL=mintplayer-ng-bootstrap-splitter.mjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/
|
|
1
|
+
{"version":3,"file":"mintplayer-ng-bootstrap-splitter.mjs","sources":["../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.component.generated.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/splitter-panel.view.generated.html","../../../../libs/mintplayer-ng-bootstrap/splitter/src/generated/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/src/index.ts","../../../../libs/mintplayer-ng-bootstrap/splitter/mintplayer-ng-bootstrap-splitter.ts"],"sourcesContent":["// GENERATED from the splitter manifest (splitter) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, booleanAttribute, inject, input, numberAttribute, output } from '@angular/core';\nimport { useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterCore, type SplitterInputs, type SplitterMethods, type SplitterResizeEventDetail, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/**\n * Resizable panels along one axis. Put splitter panels inside; a divider between every two is dragged,\n * or focused and moved with the arrow keys (Shift for 1% steps), Home and End. Nest splitters for\n * two-dimensional layouts. With JavaScript off the panels share the space evenly.\n */\n@Component({\n selector: 'bs-splitter',\n templateUrl: './splitter.view.generated.html',\n imports: [],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly orientation = input<SplitterInputs['orientation']>('horizontal');\n readonly minPanelSize = input<SplitterInputs['minPanelSize'], unknown>(50, { transform: (v: unknown) => numberAttribute(v) as SplitterInputs['minPanelSize'] });\n readonly touchMode = input<SplitterInputs['touchMode'], unknown>(false, { transform: booleanAttribute });\n readonly labels = input<SplitterInputs['labels']>(null);\n /** A divider drag started, with the sizes before it. */\n readonly resizestart = output<SplitterResizeEventDetail>();\n /** Every frame of a divider drag, with the sizes it previews. */\n readonly resizing = output<SplitterResizeEventDetail>();\n /** A drag or a key committed new sizes. */\n readonly resizeend = output<SplitterResizeEventDetail>();\n\n readonly #core = useCore(splitterCore, { inputs: () => ({ orientation: this.orientation(), minPanelSize: this.minPanelSize(), touchMode: this.touchMode(), labels: this.labels() }), idPrefix: 'bs-splitter', outputs: { resizeStart: this.resizestart, resizing: this.resizing, resizeEnd: this.resizeend }, hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n\n /** The panel sizes in px, in document order. */\n getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']> {\n return this.#core.call('getPanelSizes', args) as ReturnType<SplitterMethods['getPanelSizes']>;\n }\n\n /** Set the panel sizes in px, one per panel. Emits nothing. */\n setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']> {\n return this.#core.call('setPanelSizes', args) as ReturnType<SplitterMethods['setPanelSizes']>;\n }\n\n /** Move a divider as its arrow, Home or End key would. */\n resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']> {\n return this.#core.call('resizeDividerBy', args) as ReturnType<SplitterMethods['resizeDividerBy']>;\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n<ng-content />\n","// GENERATED from the splitter manifest (splitter-panel) by @mintplayer/nx-component-compiler. Do not edit.\nimport { ChangeDetectionStrategy, Component, ElementRef, inject } from '@angular/core';\nimport { MpPropsDirective, useCore, useScopedStyles } from '@mintplayer/ng-bootstrap/machine';\nimport { splitterPanelCore, splitterScopedStyles } from '@mintplayer/ui-core/splitter';\n\n/** One panel of a splitter. Its content fills the panel. */\n@Component({\n selector: 'bs-splitter-panel',\n templateUrl: './splitter-panel.view.generated.html',\n imports: [MpPropsDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class BsSplitterPanelComponent {\n /** The host element. */\n readonly elementRef = inject<ElementRef<HTMLElement>>(ElementRef);\n\n readonly #core = useCore(splitterPanelCore, { inputs: () => ({ }), idPrefix: 'bs-splitter-panel', hostBag: (props) => ({ ...props.view.root, 'data-mps': 'splitter' }) });\n /** The template's props. */\n protected readonly props = this.#core.props;\n\n constructor() {\n useScopedStyles('splitter', splitterScopedStyles);\n }\n}\n","<!-- GENERATED from libs/mintplayer-ui-core/splitter/src/templates/splitter-panel.view.vue by @mintplayer/nx-component-compiler. Do not edit. -->\n@let p_view = props().view;\n<div data-mps=\"splitter\" [mpProps]=\"p_view.divider\"></div>\n<div data-mps=\"splitter\" [mpProps]=\"p_view.pane\">\n <ng-content />\n</div>\n","// GENERATED from the splitter manifest by @mintplayer/nx-component-compiler. Do not edit.\nexport { BsSplitterComponent } from './splitter.component.generated';\nexport { BsSplitterPanelComponent } from './splitter-panel.component.generated';\n","// The splitter is generated from @mintplayer/ui-core/splitter (PRD #437 D10).\nexport * from './generated';\nexport type {\n SplitterLabels,\n SplitterOrientation,\n SplitterResizeEventDetail,\n SplitterResizeKey,\n} from '@mintplayer/ui-core/splitter';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAAA;AAKA;;;;AAIG;MAOU,mBAAmB,CAAA;AAerB,IAAA,KAAK;AAId,IAAA,WAAA,GAAA;;AAjBS,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAA0B,UAAU,CAAC;QAExD,IAAA,CAAA,WAAW,GAAG,KAAK,CAAgC,YAAY;wFAAC;AAChE,QAAA,IAAA,CAAA,YAAY,GAAG,KAAK,CAA0C,EAAE,EAAA,EAAA,IAAA,SAAA,GAAA,EAAA,SAAA,EAAA,cAAA,EAAA,8BAAA,EAAA,CAAA,EAAI,SAAS,EAAE,CAAC,CAAU,KAAK,eAAe,CAAC,CAAC,CAAmC,GAAG;QACtJ,IAAA,CAAA,SAAS,GAAG,KAAK,CAAuC,KAAK,iFAAI,SAAS,EAAE,gBAAgB,EAAA,CAAG;QAC/F,IAAA,CAAA,MAAM,GAAG,KAAK,CAA2B,IAAI;mFAAC;;QAE9C,IAAA,CAAA,WAAW,GAAG,MAAM,EAA6B;;QAEjD,IAAA,CAAA,QAAQ,GAAG,MAAM,EAA6B;;QAE9C,IAAA,CAAA,SAAS,GAAG,MAAM,EAA6B;QAE/C,IAAA,CAAA,KAAK,GAAG,OAAO,CAAC,YAAY,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW,EAAE,EAAE,YAAY,EAAE,IAAI,CAAC,YAAY,EAAE,EAAE,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,EAAE,IAAI,CAAC,MAAM,EAAE,EAAE,CAAC,EAAE,QAAQ,EAAE,aAAa,EAAE,OAAO,EAAE,EAAE,WAAW,EA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