@mintplayer/ng-bootstrap 22.28.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 -824
- package/fesm2022/mintplayer-ng-bootstrap-datatable.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs +172 -118
- package/fesm2022/mintplayer-ng-bootstrap-datepicker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs +180 -142
- package/fesm2022/mintplayer-ng-bootstrap-datetime-picker.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs +66 -116
- package/fesm2022/mintplayer-ng-bootstrap-dock.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs +41 -46
- package/fesm2022/mintplayer-ng-bootstrap-dropdown-menu.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs +80 -204
- package/fesm2022/mintplayer-ng-bootstrap-file-manager.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-floating-labels.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs +2 -2
- package/fesm2022/mintplayer-ng-bootstrap-form.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs +32 -17
- package/fesm2022/mintplayer-ng-bootstrap-input-group.mjs.map +1 -1
- package/fesm2022/mintplayer-ng-bootstrap-machine.mjs +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 -422
- package/types/mintplayer-ng-bootstrap-datepicker.d.ts +77 -29
- package/types/mintplayer-ng-bootstrap-datetime-picker.d.ts +83 -51
- package/types/mintplayer-ng-bootstrap-dock.d.ts +57 -38
- package/types/mintplayer-ng-bootstrap-dropdown-menu.d.ts +25 -30
- package/types/mintplayer-ng-bootstrap-file-manager.d.ts +61 -81
- package/types/mintplayer-ng-bootstrap-input-group.d.ts +17 -12
- package/types/mintplayer-ng-bootstrap-machine.d.ts +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,67 +1,82 @@
|
|
|
1
1
|
import * as _angular_core from '@angular/core';
|
|
2
2
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
3
|
+
import * as _mintplayer_ui_core_carousel from '@mintplayer/ui-core/carousel';
|
|
4
|
+
import { CarouselSlideChangeEventDetail, CarouselMethods } from '@mintplayer/ui-core/carousel';
|
|
5
|
+
export { CarouselAnimation, CarouselLabels, CarouselOrientation, CarouselSlideChangeEventDetail } from '@mintplayer/ui-core/carousel';
|
|
6
|
+
|
|
7
|
+
/** Marks a `bs-carousel-item` (its extension's host directive). */
|
|
8
|
+
declare class BsCarouselSlideDirective {
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselSlideDirective, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselSlideDirective, "[bsCarouselSlide]", never, {}, {}, never, never, true, never>;
|
|
11
|
+
}
|
|
12
|
+
/** On `bs-carousel`: counts its own items (not a nested carousel's). */
|
|
13
|
+
declare class BsCarouselSlidesDirective {
|
|
14
|
+
readonly slides: _angular_core.Signal<readonly BsCarouselSlideDirective[]>;
|
|
15
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselSlidesDirective, never>;
|
|
16
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCarouselSlidesDirective, "[bsCarouselSlides]", never, {}, {}, ["slides"], never, true, never>;
|
|
17
|
+
}
|
|
4
18
|
|
|
5
19
|
/**
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* Slides are plain content children (no structural directive):
|
|
9
|
-
*
|
|
10
|
-
* <bs-carousel animation="fade" [indicators]="true" [interval]="4000" aria-label="Photos">
|
|
11
|
-
* <img src="a.png" alt="…">
|
|
12
|
-
* <img src="b.png" alt="…">
|
|
13
|
-
* </bs-carousel>
|
|
20
|
+
* A deck of slides shown one at a time, with optional indicators, autoplay, touch swipe and keyboard.
|
|
14
21
|
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* custom play/pause control can be projected with `slot="play-pause"` — wire
|
|
19
|
-
* it to `togglePaused()` (or listen to `pausedChange`).
|
|
20
|
-
*
|
|
21
|
-
* The WC is registered **client-side only** (`afterNextRender`); on the server
|
|
22
|
-
* Angular emits a bare `<mp-carousel>` tag and the SSR layer injects its
|
|
23
|
-
* Declarative Shadow DOM (see `injectMpCarouselDsd`), so the carousel renders
|
|
24
|
-
* — and navigates — with JS off.
|
|
22
|
+
* Put carousel items inside. A radio per slide holds the index, so the server render navigates with
|
|
23
|
+
* JavaScript off (indicators, prev/next with wrap-around, the radio group arrow keys). Slides are
|
|
24
|
+
* grid-stacked: the deck is as tall as its tallest slide. An `aria-label` names the region.
|
|
25
25
|
*/
|
|
26
26
|
declare class BsCarouselComponent {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
readonly
|
|
31
|
-
|
|
32
|
-
readonly indicators: _angular_core.
|
|
33
|
-
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
readonly wrap: _angular_core.InputSignal<boolean>;
|
|
37
|
-
/** Arrow/Home/End navigation on the focused viewport. */
|
|
38
|
-
readonly keyboardEvents: _angular_core.InputSignal<boolean>;
|
|
39
|
-
/** Two-way: whether autoplay is paused. */
|
|
27
|
+
#private;
|
|
28
|
+
/** The host element. */
|
|
29
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
30
|
+
readonly animation: _angular_core.InputSignal<_mintplayer_ui_core_carousel.CarouselAnimation>;
|
|
31
|
+
readonly orientation: _angular_core.InputSignal<_mintplayer_ui_core_carousel.CarouselOrientation>;
|
|
32
|
+
readonly indicators: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
33
|
+
readonly interval: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
34
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
35
|
+
readonly keyboardEvents: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
40
36
|
readonly paused: _angular_core.ModelSignal<boolean>;
|
|
41
|
-
|
|
42
|
-
readonly
|
|
43
|
-
|
|
44
|
-
readonly
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
37
|
+
readonly inputLabel: _angular_core.InputSignal<string | null | undefined>;
|
|
38
|
+
readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_carousel.CarouselLabels> | null | undefined>;
|
|
39
|
+
/** The committed slide changed. */
|
|
40
|
+
readonly slidechange: _angular_core.OutputEmitterRef<CarouselSlideChangeEventDetail>;
|
|
41
|
+
/** Autoplay was paused or resumed from the play/pause button or a method. */
|
|
42
|
+
readonly pausedchange: _angular_core.OutputEmitterRef<boolean>;
|
|
43
|
+
/** A slide transition started. */
|
|
44
|
+
readonly slidestart: _angular_core.OutputEmitterRef<void>;
|
|
45
|
+
/** A slide transition ended. */
|
|
46
|
+
readonly slideend: _angular_core.OutputEmitterRef<void>;
|
|
47
|
+
/** The template's props. */
|
|
48
|
+
protected readonly props: _angular_core.Signal<{
|
|
49
|
+
view: _mintplayer_ui_core_carousel.CarouselView;
|
|
50
|
+
}>;
|
|
52
51
|
constructor();
|
|
53
|
-
previous
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
52
|
+
/** Go to the previous slide. */
|
|
53
|
+
previous(...args: Parameters<CarouselMethods['previous']>): ReturnType<CarouselMethods['previous']>;
|
|
54
|
+
/** Go to the next slide. */
|
|
55
|
+
next(...args: Parameters<CarouselMethods['next']>): ReturnType<CarouselMethods['next']>;
|
|
56
|
+
/** Go to a slide by index. */
|
|
57
|
+
goto(...args: Parameters<CarouselMethods['goto']>): ReturnType<CarouselMethods['goto']>;
|
|
58
|
+
/** Resume autoplay. */
|
|
59
|
+
play(...args: Parameters<CarouselMethods['play']>): ReturnType<CarouselMethods['play']>;
|
|
60
|
+
/** Pause autoplay. */
|
|
61
|
+
pause(...args: Parameters<CarouselMethods['pause']>): ReturnType<CarouselMethods['pause']>;
|
|
62
|
+
/** Toggle autoplay. */
|
|
63
|
+
togglePaused(...args: Parameters<CarouselMethods['togglePaused']>): ReturnType<CarouselMethods['togglePaused']>;
|
|
63
64
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselComponent, never>;
|
|
64
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; }, { "paused": "pausedChange"; "
|
|
65
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselComponent, "bs-carousel", never, { "animation": { "alias": "animation"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "indicators": { "alias": "indicators"; "required": false; "isSignal": true; }; "interval": { "alias": "interval"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "keyboardEvents": { "alias": "keyboardEvents"; "required": false; "isSignal": true; }; "paused": { "alias": "paused"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "paused": "pausedChange"; "slidechange": "slidechange"; "pausedchange": "pausedchange"; "slidestart": "slidestart"; "slideend": "slideend"; }, never, ["*"], true, [{ directive: typeof BsCarouselSlidesDirective; inputs: {}; outputs: {}; }]>;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
/** One slide of a carousel. Its content is the slide. */
|
|
69
|
+
declare class BsCarouselItemComponent {
|
|
70
|
+
#private;
|
|
71
|
+
/** The host element. */
|
|
72
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
73
|
+
/** The template's props. */
|
|
74
|
+
protected readonly props: _angular_core.Signal<{
|
|
75
|
+
view: _mintplayer_ui_core_carousel.CarouselItemView;
|
|
76
|
+
}>;
|
|
77
|
+
constructor();
|
|
78
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCarouselItemComponent, never>;
|
|
79
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCarouselItemComponent, "bs-carousel-item", never, {}, {}, never, ["*"], true, [{ directive: typeof BsCarouselSlideDirective; inputs: {}; outputs: {}; }]>;
|
|
65
80
|
}
|
|
66
81
|
|
|
67
|
-
export { BsCarouselComponent };
|
|
82
|
+
export { BsCarouselComponent, BsCarouselItemComponent, BsCarouselSlideDirective, BsCarouselSlidesDirective };
|
|
@@ -1,57 +1,77 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_charts_hierarchy from '@mintplayer/ui-core/charts/hierarchy';
|
|
2
|
+
import { HierarchyNodeEventDetail, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyChartMethods } from '@mintplayer/ui-core/charts/hierarchy';
|
|
3
|
+
export { HierarchyChartLayout, HierarchyChildrenLoader, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNode, HierarchyNodeEventDetail, HierarchyNodeFormatter } from '@mintplayer/ui-core/charts/hierarchy';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
5
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
export { HierarchyChartLayout, HierarchyChildrenLoader, HierarchyHoverEventDetail, HierarchyLoadErrorEventDetail, HierarchyNode, HierarchyNodeEventDetail, HierarchyNodeFormatter } from '@mintplayer/web-components/charts/hierarchy';
|
|
6
|
+
import * as _mintplayer_ui_core_charts_core from '@mintplayer/ui-core/charts/core';
|
|
5
7
|
|
|
8
|
+
/**
|
|
9
|
+
* One weighted tree, three projections: `layout` is sunburst, icicle or treemap.
|
|
10
|
+
*
|
|
11
|
+
* Size follows the summed leaf `value`, colour follows `colorValue`. Click, Enter or a breadcrumb re-roots
|
|
12
|
+
* on a node (two-way `rootId`); ctrl/cmd+wheel, pinch and `+` / `-` / `0` magnify it geometrically.
|
|
13
|
+
* Every node is a treeitem: arrows move between siblings (Down goes outward), Escape and Backspace zoom out.
|
|
14
|
+
* The server renders the finished chart at a 420px fallback scale, its controls inert until it is live.
|
|
15
|
+
*/
|
|
6
16
|
declare class BsHierarchyChartComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
|
|
20
|
-
readonly
|
|
21
|
-
|
|
22
|
-
readonly backdrop: _angular_core.InputSignal<string | undefined>;
|
|
23
|
-
/** Gesture allowlist for the geometric zoom: 'wheel pinch' | 'wheel' | 'pinch' | 'none'. */
|
|
24
|
-
readonly zoomGestures: _angular_core.InputSignal<string>;
|
|
25
|
-
readonly zoomHintLabel: _angular_core.InputSignal<string | undefined>;
|
|
26
|
-
/** Renders the focus path as buttons above the chart. */
|
|
27
|
-
readonly showBreadcrumb: _angular_core.InputSignal<boolean>;
|
|
28
|
-
readonly breadcrumbLabel: _angular_core.InputSignal<string | undefined>;
|
|
29
|
-
readonly colorMin: _angular_core.InputSignal<number>;
|
|
30
|
-
readonly colorMax: _angular_core.InputSignal<number>;
|
|
17
|
+
#private;
|
|
18
|
+
/** The host element. */
|
|
19
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
20
|
+
readonly data: _angular_core.InputSignal<_mintplayer_ui_core_charts_core.HierarchyNode | null>;
|
|
21
|
+
readonly layout: _angular_core.InputSignal<string>;
|
|
22
|
+
readonly rootId: _angular_core.ModelSignal<string | null>;
|
|
23
|
+
/** A positive number, or `auto`. */
|
|
24
|
+
readonly maxDepth: _angular_core.InputSignal<string | number | null>;
|
|
25
|
+
readonly minAngle: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
26
|
+
readonly minSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
27
|
+
readonly showLabels: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
28
|
+
readonly labelFontSize: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
29
|
+
readonly backdrop: _angular_core.InputSignal<string | null>;
|
|
30
|
+
readonly colorMin: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
31
|
+
readonly colorMax: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
31
32
|
readonly colorStart: _angular_core.InputSignal<string>;
|
|
32
33
|
readonly colorEnd: _angular_core.InputSignal<string>;
|
|
33
|
-
readonly transitionDuration: _angular_core.
|
|
34
|
-
readonly locale: _angular_core.InputSignal<string |
|
|
35
|
-
readonly
|
|
36
|
-
readonly
|
|
37
|
-
readonly
|
|
38
|
-
readonly
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
41
|
-
readonly
|
|
42
|
-
readonly
|
|
34
|
+
readonly transitionDuration: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
35
|
+
readonly locale: _angular_core.InputSignal<string | null>;
|
|
36
|
+
readonly zoomGestures: _angular_core.InputSignal<string>;
|
|
37
|
+
readonly zoomHintLabel: _angular_core.InputSignal<string | null>;
|
|
38
|
+
readonly showBreadcrumb: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
39
|
+
readonly breadcrumbLabel: _angular_core.InputSignal<string>;
|
|
40
|
+
readonly zoomOutLabel: _angular_core.InputSignal<string>;
|
|
41
|
+
readonly metricUnitLabel: _angular_core.InputSignal<string>;
|
|
42
|
+
readonly valueUnitLabel: _angular_core.InputSignal<string>;
|
|
43
|
+
readonly loadingLabel: _angular_core.InputSignal<string>;
|
|
44
|
+
readonly inputLabel: _angular_core.InputSignal<string | null>;
|
|
45
|
+
readonly tooltipFormatter: _angular_core.InputSignal<_mintplayer_ui_core_charts_hierarchy.HierarchyNodeFormatter | null>;
|
|
46
|
+
readonly labelFormatter: _angular_core.InputSignal<_mintplayer_ui_core_charts_hierarchy.HierarchyNodeFormatter | null>;
|
|
47
|
+
readonly loadChildren: _angular_core.InputSignal<_mintplayer_ui_core_charts_hierarchy.HierarchyChildrenLoader | null>;
|
|
48
|
+
/** The focus node changed (null: the tree root). */
|
|
49
|
+
readonly rootidchange: _angular_core.OutputEmitterRef<string | null>;
|
|
50
|
+
/** The chart re-rooted on a node; the detail has its path. */
|
|
43
51
|
readonly zoom: _angular_core.OutputEmitterRef<HierarchyNodeEventDetail>;
|
|
44
|
-
|
|
45
|
-
readonly
|
|
46
|
-
|
|
47
|
-
readonly
|
|
52
|
+
/** A leaf was clicked or activated with Enter. */
|
|
53
|
+
readonly nodeselect: _angular_core.OutputEmitterRef<HierarchyNodeEventDetail>;
|
|
54
|
+
/** The hovered node changed (`node` null when the pointer leaves). */
|
|
55
|
+
readonly nodehover: _angular_core.OutputEmitterRef<HierarchyHoverEventDetail>;
|
|
56
|
+
/** A lazy `loadChildren` call rejected; activating the node retries. */
|
|
57
|
+
readonly nodeloaderror: _angular_core.OutputEmitterRef<HierarchyLoadErrorEventDetail>;
|
|
58
|
+
/** The template's props. */
|
|
59
|
+
protected readonly props: _angular_core.Signal<{
|
|
60
|
+
view: _mintplayer_ui_core_charts_hierarchy.HierarchyChartView;
|
|
61
|
+
}>;
|
|
48
62
|
constructor();
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
63
|
+
/** Re-root on a node id (the tree root when omitted). */
|
|
64
|
+
zoomTo(...args: Parameters<HierarchyChartMethods['zoomTo']>): ReturnType<HierarchyChartMethods['zoomTo']>;
|
|
65
|
+
/** Move focus to a rendered node. */
|
|
66
|
+
focusNode(...args: Parameters<HierarchyChartMethods['focusNode']>): ReturnType<HierarchyChartMethods['focusNode']>;
|
|
67
|
+
/** Magnify geometrically, anchored at chart fractions (default: the centre). */
|
|
68
|
+
setZoomLevel(...args: Parameters<HierarchyChartMethods['setZoomLevel']>): ReturnType<HierarchyChartMethods['setZoomLevel']>;
|
|
69
|
+
/** Back to the fitted view. */
|
|
70
|
+
resetZoom(...args: Parameters<HierarchyChartMethods['resetZoom']>): ReturnType<HierarchyChartMethods['resetZoom']>;
|
|
71
|
+
/** The current geometric magnification (1 = fitted). */
|
|
72
|
+
zoomLevel(...args: Parameters<HierarchyChartMethods['zoomLevel']>): ReturnType<HierarchyChartMethods['zoomLevel']>;
|
|
53
73
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsHierarchyChartComponent, never>;
|
|
54
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsHierarchyChartComponent, "bs-hierarchy-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "rootId": { "alias": "rootId"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "minAngle": { "alias": "minAngle"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "
|
|
74
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsHierarchyChartComponent, "bs-hierarchy-chart", never, { "data": { "alias": "data"; "required": false; "isSignal": true; }; "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "rootId": { "alias": "rootId"; "required": false; "isSignal": true; }; "maxDepth": { "alias": "maxDepth"; "required": false; "isSignal": true; }; "minAngle": { "alias": "minAngle"; "required": false; "isSignal": true; }; "minSize": { "alias": "minSize"; "required": false; "isSignal": true; }; "showLabels": { "alias": "showLabels"; "required": false; "isSignal": true; }; "labelFontSize": { "alias": "labelFontSize"; "required": false; "isSignal": true; }; "backdrop": { "alias": "backdrop"; "required": false; "isSignal": true; }; "colorMin": { "alias": "colorMin"; "required": false; "isSignal": true; }; "colorMax": { "alias": "colorMax"; "required": false; "isSignal": true; }; "colorStart": { "alias": "colorStart"; "required": false; "isSignal": true; }; "colorEnd": { "alias": "colorEnd"; "required": false; "isSignal": true; }; "transitionDuration": { "alias": "transitionDuration"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "zoomGestures": { "alias": "zoomGestures"; "required": false; "isSignal": true; }; "zoomHintLabel": { "alias": "zoomHintLabel"; "required": false; "isSignal": true; }; "showBreadcrumb": { "alias": "showBreadcrumb"; "required": false; "isSignal": true; }; "breadcrumbLabel": { "alias": "breadcrumbLabel"; "required": false; "isSignal": true; }; "zoomOutLabel": { "alias": "zoomOutLabel"; "required": false; "isSignal": true; }; "metricUnitLabel": { "alias": "metricUnitLabel"; "required": false; "isSignal": true; }; "valueUnitLabel": { "alias": "valueUnitLabel"; "required": false; "isSignal": true; }; "loadingLabel": { "alias": "loadingLabel"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; "isSignal": true; }; "labelFormatter": { "alias": "labelFormatter"; "required": false; "isSignal": true; }; "loadChildren": { "alias": "loadChildren"; "required": false; "isSignal": true; }; }, { "rootId": "rootIdChange"; "rootidchange": "rootidchange"; "zoom": "zoom"; "nodeselect": "nodeselect"; "nodehover": "nodehover"; "nodeloaderror": "nodeloaderror"; }, never, never, true, never>;
|
|
55
75
|
}
|
|
56
76
|
|
|
57
77
|
export { BsHierarchyChartComponent };
|
|
@@ -1,17 +1,26 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_charts_sparkline from '@mintplayer/ui-core/charts/sparkline';
|
|
1
2
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
|
-
import { MpSparkline } from '@mintplayer/web-components/charts/sparkline';
|
|
4
3
|
|
|
4
|
+
/**
|
|
5
|
+
* An axis-less inline trend for table cells (#437), rendered by this
|
|
6
|
+
* component's own template from `@mintplayer/ui-core/charts/sparkline`, so the
|
|
7
|
+
* server HTML is the finished chart. `<bs-sparkline>` is the sized box; the
|
|
8
|
+
* `role="img"` svg inside is named by `inputLabel`, the host's `aria-label`,
|
|
9
|
+
* `summaryFormatter`, or the generated "first, last, lowest, highest".
|
|
10
|
+
*/
|
|
5
11
|
declare class BsSparklineComponent {
|
|
12
|
+
private readonly hostAria;
|
|
13
|
+
private readonly localeId;
|
|
6
14
|
readonly points: _angular_core.InputSignal<(number | null)[]>;
|
|
7
15
|
readonly area: _angular_core.InputSignal<boolean>;
|
|
8
16
|
readonly showLastDot: _angular_core.InputSignal<boolean>;
|
|
9
17
|
readonly yMin: _angular_core.InputSignal<number | undefined>;
|
|
10
18
|
readonly yMax: _angular_core.InputSignal<number | undefined>;
|
|
19
|
+
/** Number formatting for the generated name. Defaults to the app's `LOCALE_ID`. */
|
|
11
20
|
readonly locale: _angular_core.InputSignal<string | undefined>;
|
|
12
21
|
readonly inputLabel: _angular_core.InputSignal<string | undefined>;
|
|
13
22
|
readonly summaryFormatter: _angular_core.InputSignal<((points: (number | null)[]) => string | undefined) | undefined>;
|
|
14
|
-
readonly
|
|
23
|
+
readonly view: _angular_core.Signal<_mintplayer_ui_core_charts_sparkline.SparklineView>;
|
|
15
24
|
constructor();
|
|
16
25
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsSparklineComponent, never>;
|
|
17
26
|
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsSparklineComponent, "bs-sparkline", never, { "points": { "alias": "points"; "required": false; "isSignal": true; }; "area": { "alias": "area"; "required": false; "isSignal": true; }; "showLastDot": { "alias": "showLastDot"; "required": false; "isSignal": true; }; "yMin": { "alias": "yMin"; "required": false; "isSignal": true; }; "yMax": { "alias": "yMax"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "summaryFormatter": { "alias": "summaryFormatter"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
@@ -1,28 +1,43 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_charts_trend from '@mintplayer/ui-core/charts/trend';
|
|
2
|
+
import { TrendHoverEventDetail, TrendPointEventDetail } from '@mintplayer/ui-core/charts/trend';
|
|
3
|
+
export { PlacedPoint, TrendHoverEventDetail, TrendPoint, TrendPointEventDetail, TrendSeries, TrendSummaryFormatter, TrendTooltipFormatter } from '@mintplayer/ui-core/charts/trend';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
5
|
import { ElementRef } from '@angular/core';
|
|
3
|
-
import
|
|
4
|
-
export { TrendHoverEventDetail, TrendPoint, TrendPointEventDetail, TrendSeries } from '@mintplayer/web-components/charts/trend';
|
|
6
|
+
import * as _mintplayer_ui_core_charts_core from '@mintplayer/ui-core/charts/core';
|
|
5
7
|
|
|
8
|
+
/**
|
|
9
|
+
* A metric over time as one SVG: multi-series, optional stacking, a goal line and locale-aware ticks.
|
|
10
|
+
*
|
|
11
|
+
* The server renders the finished chart. Once live, the points are a roving set of buttons:
|
|
12
|
+
* arrows move within a series, up/down switch series, Enter/Space select.
|
|
13
|
+
*/
|
|
6
14
|
declare class BsTrendChartComponent {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
readonly
|
|
10
|
-
readonly
|
|
11
|
-
readonly
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
14
|
-
readonly
|
|
15
|
-
readonly
|
|
16
|
-
readonly
|
|
17
|
-
readonly
|
|
18
|
-
readonly
|
|
19
|
-
readonly
|
|
20
|
-
readonly
|
|
15
|
+
#private;
|
|
16
|
+
/** The host element. */
|
|
17
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
18
|
+
readonly series: _angular_core.InputSignal<readonly _mintplayer_ui_core_charts_core.TrendSeries[] | null>;
|
|
19
|
+
readonly area: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
20
|
+
readonly stacked: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly yMin: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
22
|
+
readonly yMax: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
23
|
+
readonly goal: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
|
|
24
|
+
readonly goalLabel: _angular_core.InputSignal<string | null | undefined>;
|
|
25
|
+
readonly locale: _angular_core.InputSignal<string | null | undefined>;
|
|
26
|
+
readonly summary: _angular_core.InputSignal<string | null | undefined>;
|
|
27
|
+
readonly inputLabel: _angular_core.InputSignal<string | null | undefined>;
|
|
28
|
+
readonly summaryFormatter: _angular_core.InputSignal<_mintplayer_ui_core_charts_trend.TrendSummaryFormatter | null | undefined>;
|
|
29
|
+
readonly tooltipFormatter: _angular_core.InputSignal<_mintplayer_ui_core_charts_trend.TrendTooltipFormatter | null | undefined>;
|
|
30
|
+
/** The hovered point changed (both fields null when the pointer leaves). */
|
|
31
|
+
readonly pointhover: _angular_core.OutputEmitterRef<TrendHoverEventDetail>;
|
|
32
|
+
/** A point was clicked or activated with Enter/Space. */
|
|
33
|
+
readonly pointselect: _angular_core.OutputEmitterRef<TrendPointEventDetail>;
|
|
34
|
+
/** The template's props. */
|
|
35
|
+
protected readonly props: _angular_core.Signal<{
|
|
36
|
+
view: _mintplayer_ui_core_charts_trend.TrendChartView;
|
|
37
|
+
}>;
|
|
21
38
|
constructor();
|
|
22
|
-
protected onPointHover(event: Event): void;
|
|
23
|
-
protected onPointSelect(event: Event): void;
|
|
24
39
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsTrendChartComponent, never>;
|
|
25
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTrendChartComponent, "bs-trend-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "area": { "alias": "area"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "yMin": { "alias": "yMin"; "required": false; "isSignal": true; }; "yMax": { "alias": "yMax"; "required": false; "isSignal": true; }; "goal": { "alias": "goal"; "required": false; "isSignal": true; }; "goalLabel": { "alias": "goalLabel"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "summaryFormatter": { "alias": "summaryFormatter"; "required": false; "isSignal": true; }; }, { "
|
|
40
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsTrendChartComponent, "bs-trend-chart", never, { "series": { "alias": "series"; "required": false; "isSignal": true; }; "area": { "alias": "area"; "required": false; "isSignal": true; }; "stacked": { "alias": "stacked"; "required": false; "isSignal": true; }; "yMin": { "alias": "yMin"; "required": false; "isSignal": true; }; "yMax": { "alias": "yMax"; "required": false; "isSignal": true; }; "goal": { "alias": "goal"; "required": false; "isSignal": true; }; "goalLabel": { "alias": "goalLabel"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "summary": { "alias": "summary"; "required": false; "isSignal": true; }; "inputLabel": { "alias": "inputLabel"; "required": false; "isSignal": true; }; "summaryFormatter": { "alias": "summaryFormatter"; "required": false; "isSignal": true; }; "tooltipFormatter": { "alias": "tooltipFormatter"; "required": false; "isSignal": true; }; }, { "pointhover": "pointhover"; "pointselect": "pointselect"; }, never, never, true, never>;
|
|
26
41
|
}
|
|
27
42
|
|
|
28
43
|
export { BsTrendChartComponent };
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_forms from '@mintplayer/ui-core/forms';
|
|
2
|
+
import * as _mintplayer_ui_core_checkbox from '@mintplayer/ui-core/checkbox';
|
|
3
|
+
import { CheckboxInputBag } from '@mintplayer/ui-core/checkbox';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import { ElementRef } from '@angular/core';
|
|
3
5
|
import { ControlValueAccessor } from '@angular/forms';
|
|
4
|
-
import { MpCheckbox } from '@mintplayer/web-components/checkbox';
|
|
5
6
|
import * as i2 from '@mintplayer/ng-bootstrap/a11y';
|
|
6
7
|
|
|
7
8
|
/**
|
|
@@ -25,7 +26,7 @@ declare class BsCheckboxGroupDirective implements ControlValueAccessor {
|
|
|
25
26
|
readonly label: _angular_core.InputSignal<string | null>;
|
|
26
27
|
readonly checkboxes: _angular_core.Signal<readonly BsCheckboxComponent[]>;
|
|
27
28
|
/** Most-recently-written form value. An effect syncs each child's
|
|
28
|
-
* `isToggled`
|
|
29
|
+
* `isToggled` whenever this OR the
|
|
29
30
|
* `checkboxes()` set changes, so an initial `writeValue` that lands
|
|
30
31
|
* before children register still applies once the `contentChildren`
|
|
31
32
|
* query populates. */
|
|
@@ -63,26 +64,51 @@ declare class BsCheckboxValueAccessor implements ControlValueAccessor {
|
|
|
63
64
|
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<BsCheckboxValueAccessor, "bs-checkbox", never, {}, {}, never, never, true, never>;
|
|
64
65
|
}
|
|
65
66
|
|
|
67
|
+
/**
|
|
68
|
+
* A native `<input type=checkbox>` in Bootstrap's `.form-check` /
|
|
69
|
+
* `.form-switch` / `.btn-check` markup, rendered by this component's own
|
|
70
|
+
* template (#437): it submits, toggles and announces with JavaScript off,
|
|
71
|
+
* and SSR emits the real control. The ARIA contract comes from
|
|
72
|
+
* `@mintplayer/ui-core/checkbox`; the consumer's `aria-*` / `id` /
|
|
73
|
+
* `tabindex` on `<bs-checkbox>` land on the input.
|
|
74
|
+
*/
|
|
66
75
|
declare class BsCheckboxComponent {
|
|
67
76
|
private readonly parentGroup;
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
readonly
|
|
77
|
+
private readonly validity;
|
|
78
|
+
private readonly host;
|
|
79
|
+
private readonly hostAria;
|
|
80
|
+
private readonly id;
|
|
81
|
+
private readonly inputRef;
|
|
72
82
|
type: _angular_core.InputSignal<BsCheckboxType>;
|
|
83
|
+
/** Button colour of a `toggle_button`; ignored by the other types. */
|
|
84
|
+
color: _angular_core.InputSignal<"primary" | "secondary" | "success" | "danger" | "warning" | "info" | "light" | "dark" | "outline-primary" | "outline-secondary" | "outline-success" | "outline-danger" | "outline-warning" | "outline-info" | "outline-light" | "outline-dark">;
|
|
73
85
|
isToggled: _angular_core.ModelSignal<boolean | null>;
|
|
74
86
|
indeterminate: _angular_core.ModelSignal<boolean>;
|
|
75
87
|
name: _angular_core.InputSignal<string | null>;
|
|
76
88
|
value: _angular_core.InputSignal<string | null>;
|
|
89
|
+
disabled: _angular_core.InputSignal<boolean>;
|
|
77
90
|
group: _angular_core.InputSignal<BsCheckboxGroupDirective | null>;
|
|
91
|
+
/** Written by the value accessor and by `[bsCheckboxGroup]` (`setDisabledState`). */
|
|
92
|
+
readonly formDisabled: _angular_core.WritableSignal<boolean>;
|
|
78
93
|
/** Explicit `[group]` input wins over the DI-injected ancestor. */
|
|
79
94
|
readonly resolvedGroup: _angular_core.Signal<BsCheckboxGroupDirective | null>;
|
|
80
95
|
/** Single-mode → component's own `[name]`. Multi-mode → group's `[name]` + `[]`. */
|
|
81
96
|
readonly nameResult: _angular_core.Signal<string | null>;
|
|
97
|
+
readonly checked: _angular_core.Signal<boolean>;
|
|
98
|
+
/** `<bs-toggle-button>` is a toggle button whatever `[type]` says. */
|
|
99
|
+
private readonly isToggleButtonHost;
|
|
100
|
+
readonly resolvedType: _angular_core.Signal<BsCheckboxType>;
|
|
101
|
+
private readonly state;
|
|
102
|
+
readonly classes: _angular_core.Signal<_mintplayer_ui_core_checkbox.CheckboxClasses>;
|
|
103
|
+
readonly bags: _angular_core.Signal<{
|
|
104
|
+
input: CheckboxInputBag;
|
|
105
|
+
labelFor: string | null;
|
|
106
|
+
feedback: _mintplayer_ui_core_forms.ErrorFeedback["message"];
|
|
107
|
+
}>;
|
|
82
108
|
constructor();
|
|
83
109
|
onChange(ev: Event): void;
|
|
84
110
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCheckboxComponent, never>;
|
|
85
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
111
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCheckboxComponent, "bs-checkbox, bs-toggle-button", never, { "type": { "alias": "type"; "required": false; "isSignal": true; }; "color": { "alias": "color"; "required": false; "isSignal": true; }; "isToggled": { "alias": "isToggled"; "required": false; "isSignal": true; }; "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "group": { "alias": "group"; "required": false; "isSignal": true; }; }, { "isToggled": "isToggledChange"; "indeterminate": "indeterminateChange"; }, never, ["*"], true, [{ directive: typeof BsCheckboxValueAccessor; inputs: {}; outputs: {}; }, { directive: typeof i2.BsControlValidityDirective; inputs: { "errorMessages": "errorMessages"; }; outputs: {}; }]>;
|
|
86
112
|
}
|
|
87
113
|
|
|
88
114
|
export { BsCheckboxComponent, BsCheckboxGroupDirective, BsCheckboxValueAccessor };
|
|
@@ -1,72 +1,45 @@
|
|
|
1
|
+
import * as _mintplayer_ui_core_code_snippet from '@mintplayer/ui-core/code-snippet';
|
|
2
|
+
import { CodeLineActivation, CodeSnippetMethods } from '@mintplayer/ui-core/code-snippet';
|
|
3
|
+
export { CODE_SNIPPET_LABELS, CodeLineActivation, CodeLineAnnotation, CodeSnippetLabels, CodeSnippetTheme, canHighlight, registerLanguage } from '@mintplayer/ui-core/code-snippet';
|
|
1
4
|
import * as _angular_core from '@angular/core';
|
|
2
|
-
import {
|
|
3
|
-
import { CodeLineAnnotation } from '@mintplayer/web-components/code-snippet';
|
|
5
|
+
import { ElementRef } from '@angular/core';
|
|
4
6
|
|
|
5
7
|
/**
|
|
6
|
-
*
|
|
7
|
-
* copy-to-clipboard, line rendering and the roving-focus keyboard layer; this
|
|
8
|
-
* component translates Angular input/output ergonomics onto it.
|
|
8
|
+
* A code listing with lazy syntax highlighting, a copy button, optional line numbers and per-line annotations.
|
|
9
9
|
*
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* - The code block follows `data-bs-theme` instead of being permanently dark.
|
|
13
|
-
* Pass `theme="dark"` to keep the old appearance.
|
|
14
|
-
* - `offcanvasVisible` (model) and `copiedTemplate` (viewChild) are long gone;
|
|
15
|
-
* the WC manages its own toast.
|
|
16
|
-
*
|
|
17
|
-
* CSS overrides go through parts: `::part(copy-button)`, `::part(pre)`,
|
|
18
|
-
* `::part(code)`, `::part(line)`, `::part(line-number)`, `::part(toast)`, and
|
|
19
|
-
* `::part(annotation-<kind>)` for whatever kinds you feed `annotations`.
|
|
10
|
+
* The server renders the escaped source, so it reads with JavaScript off; highlighting follows hydration
|
|
11
|
+
* and the copy button is disabled until then. Annotation kinds are classes (`annotation-<kind>`) on the row.
|
|
20
12
|
*/
|
|
21
|
-
declare class BsCodeSnippetComponent
|
|
13
|
+
declare class BsCodeSnippetComponent {
|
|
14
|
+
#private;
|
|
15
|
+
/** The host element. */
|
|
16
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
22
17
|
readonly code: _angular_core.InputSignal<string>;
|
|
23
18
|
readonly language: _angular_core.InputSignal<string>;
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
readonly
|
|
28
|
-
|
|
29
|
-
readonly
|
|
30
|
-
readonly activeLine: _angular_core.InputSignal<number | null>;
|
|
31
|
-
/** Turns each line number into a real link, so middle-click still works. */
|
|
19
|
+
readonly theme: _angular_core.InputSignal<_mintplayer_ui_core_code_snippet.CodeSnippetTheme>;
|
|
20
|
+
readonly wrap: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
21
|
+
readonly lineNumbers: _angular_core.InputSignalWithTransform<boolean, unknown>;
|
|
22
|
+
readonly startLine: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
23
|
+
readonly annotations: _angular_core.InputSignal<readonly _mintplayer_ui_core_code_snippet.CodeLineAnnotation[] | null>;
|
|
24
|
+
readonly activeLine: _angular_core.InputSignalWithTransform<number | null, unknown>;
|
|
32
25
|
readonly lineHref: _angular_core.InputSignal<((line: number) => string) | null>;
|
|
33
26
|
readonly label: _angular_core.InputSignal<string>;
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
readonly
|
|
37
|
-
/**
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
}>>;
|
|
49
|
-
private readonly element;
|
|
50
|
-
private readonly host;
|
|
51
|
-
ngAfterViewInit(): void;
|
|
52
|
-
/**
|
|
53
|
-
* Scroll a line into view. Delegated to the element rather than reimplemented
|
|
54
|
-
* so that re-requesting the line the user is already on still scrolls — a
|
|
55
|
-
* plain `activeLine` binding would no-op.
|
|
56
|
-
*/
|
|
57
|
-
scrollToLine(line: number): void;
|
|
58
|
-
/**
|
|
59
|
-
* A consumer writing `aria-label` or `role` on `<bs-code-snippet>` means it
|
|
60
|
-
* for the code block. Left on the Angular host it reaches nothing: the host
|
|
61
|
-
* is a roleless div as far as AT is concerned. So the attributes are moved
|
|
62
|
-
* onto the `mp-*` element and removed from the host, where a duplicate would
|
|
63
|
-
* otherwise produce two named nodes.
|
|
64
|
-
*/
|
|
65
|
-
private forwardHostAttributes;
|
|
66
|
-
protected onLanguageDetected(event: Event): void;
|
|
67
|
-
protected onLineActivate(event: Event): void;
|
|
27
|
+
readonly labels: _angular_core.InputSignal<Partial<_mintplayer_ui_core_code_snippet.CodeSnippetLabels> | null>;
|
|
28
|
+
/** The resolved grammar changed (`code` when the source stays plain). */
|
|
29
|
+
readonly languagedetected: _angular_core.OutputEmitterRef<string>;
|
|
30
|
+
/** A line link was clicked; call `preventDefault()` on it to navigate yourself. */
|
|
31
|
+
readonly lineactivate: _angular_core.OutputEmitterRef<CodeLineActivation>;
|
|
32
|
+
/** The template's props. */
|
|
33
|
+
protected readonly props: _angular_core.Signal<{
|
|
34
|
+
view: _mintplayer_ui_core_code_snippet.CodeSnippetView;
|
|
35
|
+
}>;
|
|
36
|
+
constructor();
|
|
37
|
+
/** Scroll a line into view. */
|
|
38
|
+
scrollToLine(...args: Parameters<CodeSnippetMethods['scrollToLine']>): ReturnType<CodeSnippetMethods['scrollToLine']>;
|
|
39
|
+
/** Settles once the in-flight highlight has been applied. */
|
|
40
|
+
whenHighlighted(...args: Parameters<CodeSnippetMethods['whenHighlighted']>): ReturnType<CodeSnippetMethods['whenHighlighted']>;
|
|
68
41
|
static ɵfac: _angular_core.ɵɵFactoryDeclaration<BsCodeSnippetComponent, never>;
|
|
69
|
-
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCodeSnippetComponent, "bs-code-snippet", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "
|
|
42
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<BsCodeSnippetComponent, "bs-code-snippet", never, { "code": { "alias": "code"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "theme": { "alias": "theme"; "required": false; "isSignal": true; }; "wrap": { "alias": "wrap"; "required": false; "isSignal": true; }; "lineNumbers": { "alias": "lineNumbers"; "required": false; "isSignal": true; }; "startLine": { "alias": "startLine"; "required": false; "isSignal": true; }; "annotations": { "alias": "annotations"; "required": false; "isSignal": true; }; "activeLine": { "alias": "activeLine"; "required": false; "isSignal": true; }; "lineHref": { "alias": "lineHref"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "labels": { "alias": "labels"; "required": false; "isSignal": true; }; }, { "languagedetected": "languagedetected"; "lineactivate": "lineactivate"; }, never, never, true, never>;
|
|
70
43
|
}
|
|
71
44
|
|
|
72
45
|
export { BsCodeSnippetComponent };
|