@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,37 +1,73 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_signature_pad from '@mintplayer/ui-core/signature-pad';
|
|
2
|
+
import { Signature, SignaturePadMethods } from '@mintplayer/ui-core/signature-pad';
|
|
3
|
+
export { Point, Signature, SignaturePadLabels, Stroke } from '@mintplayer/ui-core/signature-pad';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
+
import { OnInit, ElementRef } from '@angular/core';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
5
8
|
|
|
6
9
|
/**
|
|
7
|
-
*
|
|
8
|
-
* component
|
|
9
|
-
* and
|
|
10
|
-
* 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
|
+
declare class BsSignaturePadValueAccessor implements ControlValueAccessor, OnInit {
|
|
18
|
+
private readonly injector;
|
|
19
|
+
private readonly destroyRef;
|
|
20
|
+
/** A form control drives the signature: its `viewValue` wins over the `signature` input. */
|
|
21
|
+
readonly bound: _angular_core.WritableSignal<boolean>;
|
|
22
|
+
readonly viewValue: _angular_core.WritableSignal<Signature>;
|
|
23
|
+
readonly disabled: _angular_core.WritableSignal<boolean>;
|
|
24
|
+
private onChange;
|
|
25
|
+
onTouched: () => void;
|
|
26
|
+
ngOnInit(): void;
|
|
27
|
+
registerOnChange(fn: (value: Signature) => void): void;
|
|
28
|
+
registerOnTouched(fn: () => void): void;
|
|
29
|
+
writeValue(value: Signature | null | undefined): void;
|
|
30
|
+
setDisabledState(isDisabled: boolean): void;
|
|
31
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSignaturePadValueAccessor, never>;
|
|
32
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsSignaturePadValueAccessor, never, never, {}, {}, never, never, true, never>;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Freehand signature capture with a typed alternative (#437).
|
|
37
|
+
*
|
|
38
|
+
* Drawing is pointer-only; the typed field under the canvas is the keyboard path, painted onto
|
|
39
|
+
* the canvas in a script font and stored on `Signature.text`. With JavaScript off the pad renders
|
|
40
|
+
* inert: the canvas cannot draw, so the field and the buttons are disabled until it hydrates.
|
|
11
41
|
*/
|
|
12
42
|
declare class BsSignaturePadComponent {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
readonly
|
|
16
|
-
readonly typeLabel: _angular_core.InputSignal<string | null>;
|
|
17
|
-
readonly undoLabel: _angular_core.InputSignal<string | null>;
|
|
18
|
-
readonly clearLabel: _angular_core.InputSignal<string | null>;
|
|
19
|
-
/**
|
|
20
|
-
* Shows the typed alternative; named identically to bs-color-picker's input.
|
|
21
|
-
* ON by default — it is the only keyboard path — so turning it off is a
|
|
22
|
-
* deliberate draw-only decision.
|
|
23
|
-
*/
|
|
24
|
-
readonly showAccessibilityToggle: _angular_core.InputSignal<boolean>;
|
|
43
|
+
#private;
|
|
44
|
+
/** The host element. */
|
|
45
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
25
46
|
readonly signature: _angular_core.ModelSignal<Signature>;
|
|
26
|
-
readonly
|
|
47
|
+
readonly width: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
48
|
+
readonly height: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
49
|
+
readonly showAccessibilityToggle: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
50
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
51
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
52
|
+
readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
53
|
+
readonly errorText: _angular_core.InputSignal<string | null>;
|
|
54
|
+
readonly inputLabel: _angular_core.InputSignal<string | null>;
|
|
55
|
+
readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_signature_pad.SignaturePadLabels> | null>;
|
|
56
|
+
/** Every stroke point, typed character, undo and clear: the current signature. */
|
|
57
|
+
readonly signaturechange: _angular_core.OutputEmitterRef<Signature>;
|
|
58
|
+
/** The template's props. */
|
|
59
|
+
protected readonly props: _angular_core.Signal<{
|
|
60
|
+
view: _mintplayer_ui_core_signature_pad.SignaturePadView;
|
|
61
|
+
}>;
|
|
27
62
|
constructor();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
63
|
+
/** Remove the most recent stroke (ignored when disabled). */
|
|
64
|
+
undo(...args: Parameters<SignaturePadMethods['undo']>): ReturnType<SignaturePadMethods['undo']>;
|
|
65
|
+
/** Wipe the strokes and the typed text (ignored when disabled). */
|
|
66
|
+
clear(...args: Parameters<SignaturePadMethods['clear']>): ReturnType<SignaturePadMethods['clear']>;
|
|
67
|
+
/** Move focus to the typed field. */
|
|
68
|
+
focusInput(...args: Parameters<SignaturePadMethods['focusInput']>): ReturnType<SignaturePadMethods['focusInput']>;
|
|
33
69
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSignaturePadComponent, never>;
|
|
34
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSignaturePadComponent, "bs-signature-pad", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "
|
|
70
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSignaturePadComponent, "bs-signature-pad", never, { "signature": { "alias": "signature"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "showAccessibilityToggle": { "alias": "showAccessibilityToggle"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "errorText": { "alias": "errorText"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "signature": "signatureChange"; "signaturechange": "signaturechange"; }, never, never, true, [{ directive: typeof BsSignaturePadValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
35
71
|
}
|
|
36
72
|
|
|
37
|
-
export { BsSignaturePadComponent };
|
|
73
|
+
export { BsSignaturePadComponent, BsSignaturePadValueAccessor };
|
|
@@ -1,66 +1,55 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
|
|
3
|
+
import * as _mintplayer_ui_core_splitter from '@mintplayer/ui-core/splitter';
|
|
4
|
+
import { SplitterResizeEventDetail, SplitterMethods } from '@mintplayer/ui-core/splitter';
|
|
5
|
+
export { SplitterLabels, SplitterOrientation, SplitterResizeEventDetail, SplitterResizeKey } from '@mintplayer/ui-core/splitter';
|
|
5
6
|
|
|
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
|
declare class BsSplitterComponent {
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
readonly
|
|
39
|
-
|
|
40
|
-
readonly touchMode: _angular_core.
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
13
|
+
#private;
|
|
14
|
+
/** The host element. */
|
|
15
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
16
|
+
readonly orientation: _angular_core.InputSignal<_mintplayer_ui_core_splitter.SplitterOrientation>;
|
|
17
|
+
readonly minPanelSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
18
|
+
readonly touchMode: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
19
|
+
readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_splitter.SplitterLabels> | null | undefined>;
|
|
20
|
+
/** A divider drag started, with the sizes before it. */
|
|
21
|
+
readonly resizestart: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
22
|
+
/** Every frame of a divider drag, with the sizes it previews. */
|
|
44
23
|
readonly resizing: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
45
|
-
/**
|
|
46
|
-
readonly
|
|
47
|
-
|
|
48
|
-
protected readonly
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
|
|
54
|
-
/**
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
resizeDividerBy(dividerIndex: number, key: ResizeKey, fine?: boolean): void;
|
|
59
|
-
protected onResizeStart(event: Event): void;
|
|
60
|
-
protected onResizing(event: Event): void;
|
|
61
|
-
protected onResizeEnd(event: Event): void;
|
|
24
|
+
/** A drag or a key committed new sizes. */
|
|
25
|
+
readonly resizeend: _angular_core.OutputEmitterRef<SplitterResizeEventDetail>;
|
|
26
|
+
/** The template's props. */
|
|
27
|
+
protected readonly props: _angular_core.Signal<{
|
|
28
|
+
view: _mintplayer_ui_core_splitter.SplitterView;
|
|
29
|
+
}>;
|
|
30
|
+
constructor();
|
|
31
|
+
/** The panel sizes in px, in document order. */
|
|
32
|
+
getPanelSizes(...args: Parameters<SplitterMethods['getPanelSizes']>): ReturnType<SplitterMethods['getPanelSizes']>;
|
|
33
|
+
/** Set the panel sizes in px, one per panel. Emits nothing. */
|
|
34
|
+
setPanelSizes(...args: Parameters<SplitterMethods['setPanelSizes']>): ReturnType<SplitterMethods['setPanelSizes']>;
|
|
35
|
+
/** Move a divider as its arrow, Home or End key would. */
|
|
36
|
+
resizeDividerBy(...args: Parameters<SplitterMethods['resizeDividerBy']>): ReturnType<SplitterMethods['resizeDividerBy']>;
|
|
62
37
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSplitterComponent, never>;
|
|
63
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterComponent, "bs-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "minPanelSize": { "alias": "minPanelSize"; "required": false; "isSignal": true; }; "touchMode": { "alias": "touchMode"; "required": false; "isSignal": true; }; }, { "
|
|
38
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterComponent, "bs-splitter", never, { "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "minPanelSize": { "alias": "minPanelSize"; "required": false; "isSignal": true; }; "touchMode": { "alias": "touchMode"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "resizestart": "resizestart"; "resizing": "resizing"; "resizeend": "resizeend"; }, never, ["*"], true, never>;
|
|
64
39
|
}
|
|
65
40
|
|
|
66
|
-
|
|
41
|
+
/** One panel of a splitter. Its content fills the panel. */
|
|
42
|
+
declare class BsSplitterPanelComponent {
|
|
43
|
+
#private;
|
|
44
|
+
/** The host element. */
|
|
45
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
46
|
+
/** The template's props. */
|
|
47
|
+
protected readonly props: _angular_core.Signal<{
|
|
48
|
+
view: _mintplayer_ui_core_splitter.SplitterPanelView;
|
|
49
|
+
}>;
|
|
50
|
+
constructor();
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSplitterPanelComponent, never>;
|
|
52
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSplitterPanelComponent, "bs-splitter-panel", never, {}, {}, never, ["*"], true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export { BsSplitterComponent, BsSplitterPanelComponent };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_tab_control from '@mintplayer/ui-core/tab-control';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { TemplateRef
|
|
3
|
+
import { TemplateRef } from '@angular/core';
|
|
3
4
|
|
|
4
5
|
declare class BsTabPageHeaderDirective {
|
|
5
6
|
template: TemplateRef<any>;
|
|
@@ -7,41 +8,61 @@ declare class BsTabPageHeaderDirective {
|
|
|
7
8
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsTabPageHeaderDirective, "[bsTabPageHeader]", never, {}, {}, never, never, true, never>;
|
|
8
9
|
}
|
|
9
10
|
|
|
11
|
+
/**
|
|
12
|
+
* One page of a `<bs-tab-control>`. Renders nothing itself: the control
|
|
13
|
+
* renders every radio, tab and pane as siblings (the CSS pairs the n-th radio
|
|
14
|
+
* with the n-th pane), so the page hands over its header and body templates.
|
|
15
|
+
*/
|
|
10
16
|
declare class BsTabPageComponent {
|
|
11
|
-
|
|
12
|
-
tabControl: BsTabControlComponent;
|
|
13
|
-
constructor();
|
|
14
|
-
tabId: _angular_core.WritableSignal<number>;
|
|
15
|
-
tabName: _angular_core.Signal<string>;
|
|
16
|
-
contentSlotName: _angular_core.Signal<string | null>;
|
|
17
|
-
disabled: _angular_core.InputSignal<boolean>;
|
|
17
|
+
readonly disabled: _angular_core.InputSignal<boolean>;
|
|
18
18
|
readonly headerTemplate: _angular_core.Signal<BsTabPageHeaderDirective | undefined>;
|
|
19
|
+
readonly body: _angular_core.Signal<TemplateRef<unknown> | undefined>;
|
|
19
20
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTabPageComponent, never>;
|
|
20
21
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTabPageComponent, "bs-tab-page", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, ["headerTemplate"], ["*"], true, never>;
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
type BsTabsPosition = 'top' | 'bottom';
|
|
24
25
|
|
|
26
|
+
/**
|
|
27
|
+
* `<bs-tab-control>` — Bootstrap nav-tabs over one native radio per tab (#437).
|
|
28
|
+
*
|
|
29
|
+
* <bs-tab-control [border]="true" tabsPosition="top">
|
|
30
|
+
* <bs-tab-page [disabled]="false">
|
|
31
|
+
* <ng-container *bsTabPageHeader>Profile</ng-container>
|
|
32
|
+
* Page content
|
|
33
|
+
* </bs-tab-page>
|
|
34
|
+
* </bs-tab-control>
|
|
35
|
+
*
|
|
36
|
+
* Renders the markup of `@mintplayer/ui-core/tab-control` in its own
|
|
37
|
+
* template, so the server-rendered page is a working tab control: the
|
|
38
|
+
* checked radio shows its pane through CSS with JavaScript off. Once the
|
|
39
|
+
* client has rendered, the labels become APG tabs (roving tabindex,
|
|
40
|
+
* automatic activation) and the radios leave the tab order. The host is the
|
|
41
|
+
* `.tab-control` root; each page hands over its header and body as templates.
|
|
42
|
+
*/
|
|
25
43
|
declare class BsTabControlComponent {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
selectFirstTab: _angular_core.InputSignal<boolean>;
|
|
32
|
-
tabsPosition: _angular_core.InputSignal<BsTabsPosition>;
|
|
44
|
+
/** Draw the outline around the active pane. */
|
|
45
|
+
readonly border: _angular_core.InputSignal<boolean>;
|
|
46
|
+
/** Show the first enabled page while none is active. */
|
|
47
|
+
readonly selectFirstTab: _angular_core.InputSignal<boolean>;
|
|
48
|
+
readonly tabsPosition: _angular_core.InputSignal<BsTabsPosition>;
|
|
33
49
|
readonly tabPages: _angular_core.Signal<readonly BsTabPageComponent[]>;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
50
|
+
/** The page the user picked; `checkedTab` is the one that is shown. */
|
|
51
|
+
readonly activeTab: _angular_core.WritableSignal<BsTabPageComponent | null>;
|
|
52
|
+
private readonly host;
|
|
53
|
+
private readonly id;
|
|
54
|
+
/** The client has rendered: switch from the radio tier to the tab tier. */
|
|
55
|
+
private readonly enhanced;
|
|
56
|
+
private readonly states;
|
|
57
|
+
protected readonly activeIndex: _angular_core.Signal<number | null>;
|
|
58
|
+
readonly checkedTab: _angular_core.Signal<BsTabPageComponent | null>;
|
|
59
|
+
protected readonly bottomTabs: _angular_core.Signal<boolean>;
|
|
60
|
+
protected readonly view: _angular_core.Signal<_mintplayer_ui_core_tab_control.TabControlView>;
|
|
61
|
+
constructor();
|
|
62
|
+
setActiveTab(tab: BsTabPageComponent): void;
|
|
63
|
+
protected onTabClick(event: Event, tab: BsTabPageComponent): void;
|
|
64
|
+
protected onTabKeydown(event: KeyboardEvent, index: number): void;
|
|
65
|
+
protected onChange(event: Event): void;
|
|
45
66
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTabControlComponent, never>;
|
|
46
67
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTabControlComponent, "bs-tab-control", never, { "border": { "alias": "border"; "required": false; "isSignal": true; }; "selectFirstTab": { "alias": "selectFirstTab"; "required": false; "isSignal": true; }; "tabsPosition": { "alias": "tabsPosition"; "required": false; "isSignal": true; }; }, {}, ["tabPages"], ["*"], true, never>;
|
|
47
68
|
}
|
|
@@ -7,8 +7,7 @@ declare class BsTableComponent {
|
|
|
7
7
|
border: _angular_core.InputSignal<boolean>;
|
|
8
8
|
/**
|
|
9
9
|
* Forwards `aria-rowcount` onto the wrapped `<table>` element. Used by
|
|
10
|
-
* virtualised consumers
|
|
11
|
-
* that need SR users to hear "row N of Y" with Y matching the full
|
|
10
|
+
* virtualised consumers that need SR users to hear "row N of Y" with Y matching the full
|
|
12
11
|
* record set, not the DOM slice. `null` (default) leaves the attribute
|
|
13
12
|
* off entirely.
|
|
14
13
|
*/
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import * as _mintplayer_ui_core_theming from '@mintplayer/ui-core/theming';
|
|
2
|
+
import { BsThemeMode, BsEffectiveThemeMode, BsThemeConfig } from '@mintplayer/ui-core/theming';
|
|
3
|
+
export { BS_THEME_COOKIE_NAME, BS_THEME_DEFAULT_MODES, BS_THEME_DEFAULT_MODE_META, BsEffectiveThemeMode, BsThemeConfig, BsThemeMode, BsThemeToggleMode, ResolveServerThemeOptions, injectThemeAttribute, isValidThemeMode, readDefaultModeMeta, readThemeCookie, resolveMode, resolveServerTheme } from '@mintplayer/ui-core/theming';
|
|
3
4
|
import * as i0 from '@angular/core';
|
|
4
|
-
import { Signal, EnvironmentProviders } from '@angular/core';
|
|
5
|
+
import { Signal, EnvironmentProviders, ElementRef } from '@angular/core';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Angular's view of the document's Bootstrap colour mode (PRD dark-mode D4).
|
|
@@ -14,10 +15,10 @@ import { Signal, EnvironmentProviders } from '@angular/core';
|
|
|
14
15
|
* **This service is a pure mirror of the framework-neutral store.** In the
|
|
15
16
|
* browser it holds no state of its own: `mode`/`effectiveMode` are refreshed
|
|
16
17
|
* from `getBsThemeStore().subscribe()`, and `setMode()` forwards to the store's
|
|
17
|
-
* `setMode()` (libs/mintplayer-
|
|
18
|
+
* `setMode()` (libs/mintplayer-ui-core/theming/src/store.ts), which owns
|
|
18
19
|
* validation, the `bs-theme-mode` cookie, the `data-bs-theme` write, the
|
|
19
20
|
* `prefers-color-scheme` listener and cross-tab sync. So a change made anywhere
|
|
20
|
-
* else (`<
|
|
21
|
+
* else (`<bs-theme-toggle>`, another tab, the OS) reaches these signals, and a
|
|
21
22
|
* copy here could never drift. Any behaviour added to the store's `setMode()`
|
|
22
23
|
* must be reflected here, and vice versa; the mirror tests in
|
|
23
24
|
* bs-theme.service.spec.ts pin it.
|
|
@@ -54,7 +55,7 @@ declare class BsThemeService {
|
|
|
54
55
|
constructor();
|
|
55
56
|
/**
|
|
56
57
|
* Set the user's mode. Forwards to the store's `setMode()`
|
|
57
|
-
* (libs/mintplayer-
|
|
58
|
+
* (libs/mintplayer-ui-core/theming/src/store.ts): an invalid mode is a
|
|
58
59
|
* no-op with a warning, a valid one is persisted to the cookie and applied to
|
|
59
60
|
* `<html>`, and the signals update through the store subscription. Custom
|
|
60
61
|
* variants need a matching `[data-bs-theme="<value>"] { ... }` rule.
|
|
@@ -90,21 +91,21 @@ declare class BsThemeService {
|
|
|
90
91
|
declare function provideBsTheme(config?: BsThemeConfig): EnvironmentProviders;
|
|
91
92
|
|
|
92
93
|
/**
|
|
93
|
-
*
|
|
94
|
-
* cycles the document's colour mode. The element talks to the theme store
|
|
95
|
-
* directly, so `BsThemeService` signals follow every click with no wiring here.
|
|
94
|
+
* A button that cycles the document colour mode through `modes` (dark-mode D7, #437).
|
|
96
95
|
*
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
-
*
|
|
100
|
-
* A consumer's `aria-*`, `role`, `id` and `tabindex` on `<bs-theme-toggle>`
|
|
101
|
-
* reach the `<mp-theme-toggle>` element through `bsForwardAria`.
|
|
102
|
-
*
|
|
103
|
-
* no-JS: none (control requires script).
|
|
96
|
+
* Its name is the next mode (the action), its description the current one. The mode lives in the
|
|
97
|
+
* theme store, so a framework service or another tab re-renders it. A toggle cannot work without
|
|
98
|
+
* JavaScript, so the button is disabled until it hydrates.
|
|
104
99
|
*/
|
|
105
100
|
declare class BsThemeToggleComponent {
|
|
106
|
-
|
|
107
|
-
|
|
101
|
+
#private;
|
|
102
|
+
/** The host element. */
|
|
103
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
104
|
+
readonly modes: i0.InputSignal<readonly _mintplayer_ui_core_theming.BsThemeToggleMode[] | null>;
|
|
105
|
+
/** The template's props. */
|
|
106
|
+
protected readonly props: i0.Signal<{
|
|
107
|
+
view: _mintplayer_ui_core_theming.ThemeToggleView;
|
|
108
|
+
}>;
|
|
108
109
|
constructor();
|
|
109
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<BsThemeToggleComponent, never>;
|
|
110
111
|
static ɵcmp: i0.ɵɵComponentDeclaration<BsThemeToggleComponent, "bs-theme-toggle", never, { "modes": { "alias": "modes"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|