@bravura/ui 6.1.0 → 8.0.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/CHANGELOG.md +19 -1
- package/README.md +58 -57
- package/fesm2022/bravura-ui-alert.mjs +19 -22
- package/fesm2022/bravura-ui-alert.mjs.map +1 -1
- package/fesm2022/bravura-ui-behavior.mjs +18 -18
- package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
- package/fesm2022/bravura-ui-clip-note.mjs +10 -10
- package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
- package/fesm2022/bravura-ui-common.mjs +5 -6
- package/fesm2022/bravura-ui-common.mjs.map +1 -1
- package/fesm2022/bravura-ui-currency-input.mjs +7 -7
- package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
- package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-discrete-input.mjs +10 -11
- package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
- package/fesm2022/bravura-ui-file-upload.mjs +18 -18
- package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
- package/fesm2022/bravura-ui-form-field.mjs +10 -10
- package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
- package/fesm2022/bravura-ui-icon-font.mjs +7 -7
- package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
- package/fesm2022/bravura-ui-panel.mjs +16 -16
- package/fesm2022/bravura-ui-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-phone-number.mjs +13 -13
- package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
- package/fesm2022/bravura-ui-radio-panel.mjs +12 -14
- package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-selection-panel.mjs +11 -11
- package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
- package/fesm2022/bravura-ui-skeletons.mjs +10 -10
- package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
- package/fesm2022/bravura-ui-stepper.mjs +18 -18
- package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
- package/fesm2022/bravura-ui-tooltip.mjs +13 -31
- package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
- package/package.json +39 -39
- package/{alert/testing/test-api.d.ts → types/bravura-ui-alert-testing.d.ts} +8 -4
- package/{alert/alert-container.component.d.ts → types/bravura-ui-alert.d.ts} +61 -4
- package/types/bravura-ui-behavior.d.ts +233 -0
- package/{clip-note/clip-note.directive.d.ts → types/bravura-ui-clip-note.d.ts} +64 -6
- package/types/bravura-ui-common.d.ts +26 -0
- package/{currency-input/currency-input.directive.d.ts → types/bravura-ui-currency-input.d.ts} +17 -8
- package/{decimal-input/decimal-input.directive.d.ts → types/bravura-ui-decimal-input.d.ts} +17 -8
- package/{discrete-input/discrete-input.component.d.ts → types/bravura-ui-discrete-input.d.ts} +18 -5
- package/{file-upload/file-upload.component.d.ts → types/bravura-ui-file-upload.d.ts} +61 -7
- package/{form-field/form-field.component.d.ts → types/bravura-ui-form-field.d.ts} +18 -6
- package/{icon-font/icon.directive.d.ts → types/bravura-ui-icon-font.d.ts} +38 -3
- package/{panel/panel.component.d.ts → types/bravura-ui-panel.d.ts} +53 -4
- package/{phone-number/phone-number.directive.d.ts → types/bravura-ui-phone-number.d.ts} +49 -5
- package/{radio-panel/testing/test-api.d.ts → types/bravura-ui-radio-panel-testing.d.ts} +12 -7
- package/types/bravura-ui-radio-panel.d.ts +73 -0
- package/types/bravura-ui-selection-panel.d.ts +151 -0
- package/types/bravura-ui-skeletons.d.ts +81 -0
- package/{stepper/stepper.component.d.ts → types/bravura-ui-stepper.d.ts} +37 -4
- package/{tooltip/tooltip.directive.d.ts → types/bravura-ui-tooltip.d.ts} +19 -4
- package/types/bravura-ui.d.ts +3 -0
- package/alert/alert-message.component.d.ts +0 -47
- package/alert/alert.module.d.ts +0 -14
- package/alert/index.d.ts +0 -5
- package/alert/public-api.d.ts +0 -1
- package/alert/testing/index.d.ts +0 -5
- package/behavior/await.directive.d.ts +0 -71
- package/behavior/behavior.module.d.ts +0 -17
- package/behavior/index.d.ts +0 -5
- package/behavior/observe-content-class.directive.d.ts +0 -29
- package/behavior/public-api.d.ts +0 -5
- package/behavior/sizing-monitor.directive.d.ts +0 -23
- package/behavior/sizing.directive.d.ts +0 -98
- package/clip-note/clip-note.component.d.ts +0 -45
- package/clip-note/clip-note.module.d.ts +0 -19
- package/clip-note/index.d.ts +0 -5
- package/clip-note/public-api.d.ts +0 -1
- package/common/common-utils.d.ts +0 -11
- package/common/common.module.d.ts +0 -11
- package/common/index.d.ts +0 -5
- package/common/public-api.d.ts +0 -2
- package/currency-input/currency-input.module.d.ts +0 -10
- package/currency-input/index.d.ts +0 -5
- package/currency-input/public-api.d.ts +0 -1
- package/decimal-input/decimal-input.module.d.ts +0 -10
- package/decimal-input/index.d.ts +0 -5
- package/decimal-input/public-api.d.ts +0 -1
- package/discrete-input/discrete-input.module.d.ts +0 -11
- package/discrete-input/index.d.ts +0 -5
- package/discrete-input/public-api.d.ts +0 -2
- package/file-upload/file-upload.module.d.ts +0 -14
- package/file-upload/file-upload.service.d.ts +0 -42
- package/file-upload/index.d.ts +0 -5
- package/file-upload/public-api.d.ts +0 -6
- package/form-field/form-field.module.d.ts +0 -13
- package/form-field/index.d.ts +0 -5
- package/form-field/public-api.d.ts +0 -2
- package/icon-font/icon-font.module.d.ts +0 -12
- package/icon-font/index.d.ts +0 -5
- package/icon-font/public-api.d.ts +0 -3
- package/icon-font/utilities.d.ts +0 -20
- package/index.d.ts +0 -5
- package/panel/index.d.ts +0 -5
- package/panel/panel-section.component.d.ts +0 -15
- package/panel/panel.module.d.ts +0 -16
- package/panel/public-api.d.ts +0 -1
- package/panel/tinted.directive.d.ts +0 -26
- package/phone-number/index.d.ts +0 -5
- package/phone-number/phone-number.module.d.ts +0 -17
- package/phone-number/phone-number.pipe.d.ts +0 -13
- package/phone-number/phone-number.validator.d.ts +0 -31
- package/phone-number/public-api.d.ts +0 -1
- package/public-api.d.ts +0 -1
- package/radio-panel/index.d.ts +0 -5
- package/radio-panel/public-api.d.ts +0 -3
- package/radio-panel/radio-panel-item.component.d.ts +0 -22
- package/radio-panel/radio-panel.component.d.ts +0 -38
- package/radio-panel/radio-panel.module.d.ts +0 -15
- package/radio-panel/testing/index.d.ts +0 -5
- package/selection-panel/index.d.ts +0 -5
- package/selection-panel/public-api.d.ts +0 -3
- package/selection-panel/selection-panel-item.component.d.ts +0 -77
- package/selection-panel/selection-panel.directive.d.ts +0 -67
- package/selection-panel/selection-panel.module.d.ts +0 -13
- package/skeletons/index.d.ts +0 -5
- package/skeletons/public-api.d.ts +0 -3
- package/skeletons/skeleton-loader-presets.directive.d.ts +0 -23
- package/skeletons/skeleton-loader.component.d.ts +0 -44
- package/skeletons/skeletons.module.d.ts +0 -16
- package/stepper/index.d.ts +0 -5
- package/stepper/public-api.d.ts +0 -3
- package/stepper/step-label-top.directive.d.ts +0 -17
- package/stepper/stepper-animation.d.ts +0 -6
- package/stepper/stepper.module.d.ts +0 -17
- package/tooltip/index.d.ts +0 -5
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip.component.d.ts +0 -26
- package/tooltip/tooltip.module.d.ts +0 -13
|
@@ -1,10 +1,34 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
1
2
|
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/material/icon';
|
|
2
4
|
import { MatIcon } from '@angular/material/icon';
|
|
3
|
-
import * as
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* Decode the FontAwesome icon font set name from the icon name
|
|
9
|
+
*
|
|
10
|
+
* `'far fa-alarm' => 'far'`
|
|
11
|
+
*
|
|
12
|
+
* `'home' => ''`
|
|
13
|
+
*
|
|
14
|
+
* `'fa-user' => 'fas'`
|
|
15
|
+
*/
|
|
16
|
+
declare function decodeFAIconFontSet(iconName: string): string;
|
|
17
|
+
/**
|
|
18
|
+
* Decode the FontAwesome icon font name from the icon name
|
|
19
|
+
*
|
|
20
|
+
* `'far fa-alarm' => 'fa-alarm'`
|
|
21
|
+
*
|
|
22
|
+
* `'home' => ''`
|
|
23
|
+
*
|
|
24
|
+
* `'fa-user' => 'fa-user'`
|
|
25
|
+
*/
|
|
26
|
+
declare function decodeFAIconFontName(iconName: string): string;
|
|
27
|
+
|
|
4
28
|
/**
|
|
5
29
|
* @ignore
|
|
6
30
|
*/
|
|
7
|
-
|
|
31
|
+
declare const BUI_ICON_MAT_VARIANTS: string[];
|
|
8
32
|
/**
|
|
9
33
|
* Use this directive, together with `<mat-icon>`, to display an icon font character/symbol
|
|
10
34
|
* from Material or FontAwesome icons.
|
|
@@ -19,7 +43,7 @@ export declare const BUI_ICON_MAT_VARIANTS: string[];
|
|
|
19
43
|
* @example <mat-icon buiIcon="far fa-circle"></mat-icon> <!-- FontAwesome -->
|
|
20
44
|
* @example <mat-icon buiIcon="home" [size]="42"></mat-icon> <!-- Material -->
|
|
21
45
|
*/
|
|
22
|
-
|
|
46
|
+
declare class IconDirective implements OnChanges {
|
|
23
47
|
private _icon;
|
|
24
48
|
/**
|
|
25
49
|
* The icon name
|
|
@@ -44,3 +68,14 @@ export declare class IconDirective implements OnChanges {
|
|
|
44
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, never>;
|
|
45
69
|
static ɵdir: i0.ɵɵDirectiveDeclaration<IconDirective, "[buiIcon]", never, { "buiIcon": { "alias": "buiIcon"; "required": false; }; "size": { "alias": "size"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; }, {}, never, never, false, never>;
|
|
46
70
|
}
|
|
71
|
+
|
|
72
|
+
/**
|
|
73
|
+
* Module for utility functions and directives based on `mat-icon` and icon fonts.
|
|
74
|
+
*/
|
|
75
|
+
declare class IconFontModule {
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconFontModule, never>;
|
|
77
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<IconFontModule, [typeof IconDirective], [typeof i2.CommonModule, typeof i3.MatIconModule], [typeof i3.MatIconModule, typeof IconDirective]>;
|
|
78
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<IconFontModule>;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export { BUI_ICON_MAT_VARIANTS, IconDirective, IconFontModule, decodeFAIconFontName, decodeFAIconFontSet };
|
|
@@ -1,7 +1,34 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
2
3
|
import { ThemePalette } from '@angular/material/core';
|
|
3
|
-
import
|
|
4
|
-
import * as
|
|
4
|
+
import * as i4 from '@angular/common';
|
|
5
|
+
import * as i5 from '@angular/material/card';
|
|
6
|
+
import * as i6 from '@bravura/ui/behavior';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* A "tinted" element has a shaded background specified by the `ThemePalette`, which
|
|
10
|
+
* is compatible with both light and dark themes.
|
|
11
|
+
*/
|
|
12
|
+
declare class TintedDirective implements OnInit, OnDestroy {
|
|
13
|
+
private _doc;
|
|
14
|
+
/**
|
|
15
|
+
* The base color of the shaded background
|
|
16
|
+
* @default 'primary'
|
|
17
|
+
*/
|
|
18
|
+
get color(): ThemePalette;
|
|
19
|
+
set color(c: ThemePalette);
|
|
20
|
+
private _color;
|
|
21
|
+
private readonly _addedStyle;
|
|
22
|
+
private readonly _attr;
|
|
23
|
+
private _element;
|
|
24
|
+
constructor(_doc: Document, elemRef: ElementRef<HTMLElement>);
|
|
25
|
+
ngOnInit(): void;
|
|
26
|
+
ngOnDestroy(): void;
|
|
27
|
+
private generateStyle;
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TintedDirective, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TintedDirective, "[buiTinted], bui-panel", ["buiTinted"], { "color": { "alias": "buiTinted"; "required": false; }; }, {}, never, never, false, never>;
|
|
30
|
+
}
|
|
31
|
+
|
|
5
32
|
/**
|
|
6
33
|
* A `bui-panel` consists of a `mat-card` and a tinted backdrop.
|
|
7
34
|
*
|
|
@@ -14,7 +41,7 @@ import * as i0 from "@angular/core";
|
|
|
14
41
|
* `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
|
|
15
42
|
*
|
|
16
43
|
*/
|
|
17
|
-
|
|
44
|
+
declare class PanelComponent implements OnInit {
|
|
18
45
|
private _cd;
|
|
19
46
|
private _tinted;
|
|
20
47
|
/**
|
|
@@ -58,3 +85,25 @@ export declare class PanelComponent implements OnInit {
|
|
|
58
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<PanelComponent, [null, { host: true; }]>;
|
|
59
86
|
static ɵcmp: i0.ɵɵComponentDeclaration<PanelComponent, "bui-panel", never, { "backdropClass": { "alias": "backdropClass"; "required": false; }; "cardClass": { "alias": "cardClass"; "required": false; }; "color": { "alias": "color"; "required": false; }; "appearance": { "alias": "appearance"; "required": false; }; "breakpoint": { "alias": "breakpoint"; "required": false; }; }, {}, never, ["*"], false, never>;
|
|
60
87
|
}
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
|
|
91
|
+
*/
|
|
92
|
+
declare class PanelSectionComponent implements OnInit, OnDestroy {
|
|
93
|
+
private _elementRef;
|
|
94
|
+
private _parentElement;
|
|
95
|
+
constructor(_elementRef: ElementRef<HTMLElement>);
|
|
96
|
+
ngOnInit(): void;
|
|
97
|
+
ngOnDestroy(): void;
|
|
98
|
+
private _calcCount;
|
|
99
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelSectionComponent, never>;
|
|
100
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PanelSectionComponent, "bui-panel-section", never, {}, {}, never, ["*"], false, never>;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
declare class PanelModule {
|
|
104
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelModule, never>;
|
|
105
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PanelModule, [typeof PanelComponent, typeof PanelSectionComponent, typeof TintedDirective], [typeof i4.CommonModule, typeof i5.MatCardModule, typeof i6.BehaviorModule], [typeof i5.MatCardModule, typeof PanelComponent, typeof PanelSectionComponent, typeof TintedDirective]>;
|
|
106
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PanelModule>;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export { PanelComponent, PanelModule, PanelSectionComponent, TintedDirective };
|
|
@@ -1,8 +1,30 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { ElementRef, OnInit, OnChanges, OnDestroy, EventEmitter, NgZone, SimpleChanges, PipeTransform } from '@angular/core';
|
|
3
|
+
import { Validator, AbstractControl, NgModel, FormControlName, FormControlDirective } from '@angular/forms';
|
|
3
4
|
import { MatFormField } from '@angular/material/form-field';
|
|
4
|
-
import
|
|
5
|
-
|
|
5
|
+
import * as i4 from '@angular/common';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
type TEL_TYPE = 'MOBILE' | 'FIXED_LINE_OR_MOBILE' | 'FIXED_LINE';
|
|
11
|
+
/**
|
|
12
|
+
* @internal
|
|
13
|
+
*/
|
|
14
|
+
declare class PhoneNumberValidator implements Validator {
|
|
15
|
+
private _el;
|
|
16
|
+
telType: TEL_TYPE;
|
|
17
|
+
static validateControl(inp: HTMLInputElement, type: TEL_TYPE, update: boolean): {
|
|
18
|
+
[key: string]: any;
|
|
19
|
+
} | null;
|
|
20
|
+
constructor(_el: ElementRef<HTMLInputElement>);
|
|
21
|
+
validate(_: AbstractControl): {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
} | null;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberValidator, never>;
|
|
25
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberValidator, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": { "alias": "telType"; "required": false; }; }, {}, never, never, false, never>;
|
|
26
|
+
}
|
|
27
|
+
|
|
6
28
|
/**
|
|
7
29
|
* Add phone number validation support by specifying the `type` attribute as `tel` in an `<input>` element.
|
|
8
30
|
*
|
|
@@ -20,7 +42,7 @@ import * as i0 from "@angular/core";
|
|
|
20
42
|
* @import '~intl-tel-input/src/css/intlTelInput';
|
|
21
43
|
* ```
|
|
22
44
|
*/
|
|
23
|
-
|
|
45
|
+
declare class PhoneNumberDirective implements OnInit, OnChanges, OnDestroy {
|
|
24
46
|
private _el;
|
|
25
47
|
private _ngModel;
|
|
26
48
|
private _formControlName;
|
|
@@ -64,3 +86,25 @@ export declare class PhoneNumberDirective implements OnInit, OnChanges, OnDestro
|
|
|
64
86
|
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberDirective, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
|
|
65
87
|
static ɵdir: i0.ɵɵDirectiveDeclaration<PhoneNumberDirective, "[buiTelInput], input([type=tel])[ngModel], input([type=tel])[formControlName], input([type=tel])[formControl]", never, { "telType": { "alias": "telType"; "required": false; }; "telDropdown": { "alias": "telDropdown"; "required": false; }; }, { "telCountryChange": "telCountryChange"; }, never, never, false, never>;
|
|
66
88
|
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* @internal
|
|
92
|
+
*/
|
|
93
|
+
declare class PhoneNumberPipe implements PipeTransform {
|
|
94
|
+
private _locale;
|
|
95
|
+
constructor(_locale: string);
|
|
96
|
+
transform(value: any, mode?: string, renderLink?: boolean): string;
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberPipe, never>;
|
|
98
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<PhoneNumberPipe, "buiPhone", false>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* @internal
|
|
103
|
+
*/
|
|
104
|
+
declare class PhoneModule {
|
|
105
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneModule, never>;
|
|
106
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<PhoneModule, [typeof PhoneNumberPipe, typeof PhoneNumberDirective, typeof PhoneNumberValidator], [typeof i4.CommonModule], [typeof PhoneNumberDirective, typeof PhoneNumberPipe, typeof PhoneNumberValidator]>;
|
|
107
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<PhoneModule>;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export { PhoneModule, PhoneNumberDirective, PhoneNumberPipe, PhoneNumberValidator };
|
|
@@ -1,13 +1,15 @@
|
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
1
2
|
import { ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
2
|
-
import { MatRadioButtonHarness, MatRadioGroupHarness
|
|
3
|
-
|
|
3
|
+
import { RadioButtonHarnessFilters, MatRadioButtonHarness, MatRadioGroupHarness } from '@angular/material/radio/testing';
|
|
4
|
+
|
|
5
|
+
interface RadioPanelItemHarnessFilters extends RadioButtonHarnessFilters {
|
|
4
6
|
value?: string | RegExp;
|
|
5
7
|
}
|
|
6
|
-
|
|
8
|
+
declare class RadioPanelItemHarness extends MatRadioButtonHarness {
|
|
7
9
|
static hostSelector: string;
|
|
8
|
-
getLabelElement: () => Promise<
|
|
9
|
-
protected _textLabel: () => Promise<
|
|
10
|
-
protected _clickLabel: () => Promise<
|
|
10
|
+
getLabelElement: () => Promise<_angular_cdk_testing.TestElement>;
|
|
11
|
+
protected _textLabel: () => Promise<_angular_cdk_testing.TestElement>;
|
|
12
|
+
protected _clickLabel: () => Promise<_angular_cdk_testing.TestElement>;
|
|
11
13
|
/**
|
|
12
14
|
* Gets a `HarnessPredicate` that can be used to search for a radio button with specific
|
|
13
15
|
* attributes.
|
|
@@ -19,9 +21,12 @@ export declare class RadioPanelItemHarness extends MatRadioButtonHarness {
|
|
|
19
21
|
getLabelCssValue(prop: string): Promise<string>;
|
|
20
22
|
getBorderColor(): Promise<string>;
|
|
21
23
|
}
|
|
22
|
-
|
|
24
|
+
declare class RadioPanelHarness extends MatRadioGroupHarness {
|
|
23
25
|
/** The selector for the host element of a `MatRadioGroup` instance. */
|
|
24
26
|
static hostSelector: string;
|
|
25
27
|
getItem: (filters: RadioPanelItemHarnessFilters) => Promise<RadioPanelItemHarness>;
|
|
26
28
|
getFlexDir(): Promise<string>;
|
|
27
29
|
}
|
|
30
|
+
|
|
31
|
+
export { RadioPanelHarness, RadioPanelItemHarness };
|
|
32
|
+
export type { RadioPanelItemHarnessFilters };
|
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
import { FocusMonitor } from '@angular/cdk/a11y';
|
|
2
|
+
import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { TemplateRef, ElementRef, ChangeDetectorRef, OnChanges, QueryList, SimpleChanges } from '@angular/core';
|
|
5
|
+
import * as i4 from '@angular/material/radio';
|
|
6
|
+
import { MatRadioButton, MatRadioGroup, MatRadioDefaultOptions } from '@angular/material/radio';
|
|
7
|
+
import * as i5 from '@angular/material/core';
|
|
8
|
+
import { ThemePalette } from '@angular/material/core';
|
|
9
|
+
import * as i3 from '@angular/common';
|
|
10
|
+
import * as i6 from '@angular/material/icon';
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Use `bui-radio-panel-item` instead of `mat-radio-button` in a `bui-radio-panel` to display an option.
|
|
14
|
+
*/
|
|
15
|
+
declare class RadioPanelItemComponent extends MatRadioButton {
|
|
16
|
+
/**
|
|
17
|
+
* This will be displayed as the panel header
|
|
18
|
+
*/
|
|
19
|
+
title: string;
|
|
20
|
+
/** The default position of the 'tick' icon relative to the title. */
|
|
21
|
+
private _tickPosition;
|
|
22
|
+
get tickPosition(): 'start' | 'end';
|
|
23
|
+
set tickPosition(pos: 'start' | 'end');
|
|
24
|
+
contentOnSelect: TemplateRef<any>;
|
|
25
|
+
constructor(radioGroup: MatRadioGroup, elementRef: ElementRef, _changeDetector: ChangeDetectorRef, _focusMonitor: FocusMonitor, _radioDispatcher: UniqueSelectionDispatcher, animationMode?: string, _providerOverride?: MatRadioDefaultOptions, tabIndex?: string);
|
|
26
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelItemComponent, [{ optional: true; }, null, null, null, null, { optional: true; }, { optional: true; }, { attribute: "tabindex"; }]>;
|
|
27
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelItemComponent, "bui-radio-panel-item", ["matRadioButton"], { "disableRipple": { "alias": "disableRipple"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "title": { "alias": "title"; "required": false; }; "_tickPosition": { "alias": "_tickPosition"; "required": false; }; "tickPosition": { "alias": "tickPosition"; "required": false; }; }, {}, ["contentOnSelect"], ["[buiRadioItemHeadingEnd]", "*"], false, never>;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Radio panel is a [control value accessor](https://angular.io/api/forms/ControlValueAccessor)
|
|
32
|
+
* that extends Angular Material's [radio group component](https://material.angular.io/components/radio/overview).
|
|
33
|
+
* It inherits all the features of `MatRadioGroup`, and arranges the child items in panels,
|
|
34
|
+
* with the `title` attributes rendered as captions. The check box icon and the borders will be displayed
|
|
35
|
+
* in the color selected by the theme attribute `color`.
|
|
36
|
+
*
|
|
37
|
+
*/
|
|
38
|
+
declare class RadioPanelComponent extends MatRadioGroup implements OnChanges {
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
*/
|
|
42
|
+
classAttr: string;
|
|
43
|
+
/**
|
|
44
|
+
* The default width of each panel when the `direction` is `row`
|
|
45
|
+
*/
|
|
46
|
+
panelWidth: number;
|
|
47
|
+
/** The flow direction of the radio panel items */
|
|
48
|
+
direction: 'row' | 'column';
|
|
49
|
+
/** Theme color for all of the radio panels in the group. */
|
|
50
|
+
color: ThemePalette;
|
|
51
|
+
/** The default position of the 'tick' icon relative to the title. */
|
|
52
|
+
tickPosition: 'start' | 'end';
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
_radios: QueryList<RadioPanelItemComponent>;
|
|
57
|
+
constructor(cd: ChangeDetectorRef);
|
|
58
|
+
/** @ignore */
|
|
59
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
60
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelComponent, never>;
|
|
61
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RadioPanelComponent, "bui-radio-panel", ["buiRadioPanel"], { "panelWidth": { "alias": "panelWidth"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "color": { "alias": "color"; "required": false; }; "tickPosition": { "alias": "tickPosition"; "required": false; }; }, {}, ["_radios"], ["*"], false, never>;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
/**
|
|
65
|
+
* Import this NgModule for the radio panel component
|
|
66
|
+
*/
|
|
67
|
+
declare class RadioPanelModule {
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RadioPanelModule, never>;
|
|
69
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RadioPanelModule, [typeof RadioPanelItemComponent, typeof RadioPanelComponent], [typeof i3.CommonModule, typeof i4.MatRadioModule, typeof i5.MatRippleModule, typeof i6.MatIconModule], [typeof RadioPanelItemComponent, typeof RadioPanelComponent]>;
|
|
70
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RadioPanelModule>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export { RadioPanelComponent, RadioPanelItemComponent, RadioPanelModule };
|
|
@@ -0,0 +1,151 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { AfterContentInit, ChangeDetectorRef, OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as i6 from '@angular/material/core';
|
|
4
|
+
import { ThemePalette } from '@angular/material/core';
|
|
5
|
+
import * as i5 from '@angular/forms';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import * as i3 from '@angular/common';
|
|
8
|
+
import * as i4 from '@angular/material/checkbox';
|
|
9
|
+
import * as i7 from '@angular/cdk/observers';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* @ignore
|
|
13
|
+
*/
|
|
14
|
+
interface SelectionPanelItemGroup {
|
|
15
|
+
_selection: any[];
|
|
16
|
+
color: ThemePalette;
|
|
17
|
+
_isDisabled: boolean;
|
|
18
|
+
_onTouched?: () => void;
|
|
19
|
+
selectByHeader: boolean;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Use `bui-selection-panel-item` within a `bui-selection-panel` to display an option.
|
|
23
|
+
*/
|
|
24
|
+
declare class SelectionPanelItemComponent implements AfterContentInit {
|
|
25
|
+
private _group;
|
|
26
|
+
private _cd;
|
|
27
|
+
/** @ignore */
|
|
28
|
+
static ngAcceptInputType_disabled: boolean | string;
|
|
29
|
+
/** @ignore */
|
|
30
|
+
static ngAcceptInputType_checked: boolean | string;
|
|
31
|
+
/**
|
|
32
|
+
* This will be displayed as the panel header
|
|
33
|
+
*/
|
|
34
|
+
title: string;
|
|
35
|
+
/**
|
|
36
|
+
* Show the header in with a shaded background
|
|
37
|
+
*/
|
|
38
|
+
shadedHeader: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* when false will hide the checkbox
|
|
41
|
+
*/
|
|
42
|
+
selectable: boolean;
|
|
43
|
+
/** Whether the option is disabled. */
|
|
44
|
+
get disabled(): boolean;
|
|
45
|
+
set disabled(value: boolean);
|
|
46
|
+
/** The value of this option. */
|
|
47
|
+
get value(): any;
|
|
48
|
+
set value(value: any);
|
|
49
|
+
/** Whether this option is checked. */
|
|
50
|
+
get checked(): boolean;
|
|
51
|
+
set checked(value: boolean);
|
|
52
|
+
/** Theme color of the radio button. */
|
|
53
|
+
get color(): ThemePalette;
|
|
54
|
+
set color(newValue: ThemePalette);
|
|
55
|
+
get _selectByHeader(): boolean;
|
|
56
|
+
empty: boolean;
|
|
57
|
+
private _color;
|
|
58
|
+
private _disabled;
|
|
59
|
+
private _value;
|
|
60
|
+
private _bodyContent?;
|
|
61
|
+
private _ripple?;
|
|
62
|
+
constructor(_group: SelectionPanelItemGroup, _cd: ChangeDetectorRef);
|
|
63
|
+
/** @ignore */
|
|
64
|
+
_markInteracted(): void;
|
|
65
|
+
/** @ignore */
|
|
66
|
+
_notify(): void;
|
|
67
|
+
/** Toggle selection programmatically */
|
|
68
|
+
toggle(): void;
|
|
69
|
+
/** @ignore */
|
|
70
|
+
_contentClicked(event: MouseEvent): void;
|
|
71
|
+
/** @ignore */
|
|
72
|
+
contentChanged(): void;
|
|
73
|
+
/** @ignore */
|
|
74
|
+
ngAfterContentInit(): void;
|
|
75
|
+
/** Sets the disabled state and marks for check if a change occurred. */
|
|
76
|
+
private _setDisabled;
|
|
77
|
+
private _setChecked;
|
|
78
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelItemComponent, never>;
|
|
79
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SelectionPanelItemComponent, "bui-selection-panel-item", never, { "title": { "alias": "title"; "required": false; }; "shadedHeader": { "alias": "shadedHeader"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "value": { "alias": "value"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["[buiSelectionItemHeadingEnd]", "[buiSelectionItemSubtitle]", "*"], false, never>;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
/**
|
|
83
|
+
* Selection panel is a [control value accessor](https://angular.io/api/forms/ControlValueAccessor)
|
|
84
|
+
* that display a set of multi-selection items as bordered panels, in a similar fashion as Radio Panel `bui-radio-panel`.
|
|
85
|
+
*
|
|
86
|
+
* Accessibility features are not yet fully implemented.
|
|
87
|
+
*
|
|
88
|
+
* Example:
|
|
89
|
+
*
|
|
90
|
+
* ```html
|
|
91
|
+
* <bui-selection-panel>
|
|
92
|
+
* <bui-selection-panel-item *ngFor="let obj of objects" [value]="obj">{{obj.description}}</bui-selection-panel-item>
|
|
93
|
+
* </bui-selection-panel>
|
|
94
|
+
* ```
|
|
95
|
+
*
|
|
96
|
+
*/
|
|
97
|
+
declare class SelectionPanelDirective implements ControlValueAccessor, SelectionPanelItemGroup, OnChanges {
|
|
98
|
+
private _cd;
|
|
99
|
+
/** Theme color for all of the selection checkboxes in the group. */
|
|
100
|
+
color: ThemePalette;
|
|
101
|
+
/**
|
|
102
|
+
* When set to `false`, the selection is triggered by click everywhere within the panels that is
|
|
103
|
+
* not focus-trapping; otherwise, only clicking on the header will activate the selection.
|
|
104
|
+
*
|
|
105
|
+
* @default true
|
|
106
|
+
*/
|
|
107
|
+
selectByHeader: boolean;
|
|
108
|
+
/**
|
|
109
|
+
* @ignore
|
|
110
|
+
* The selected values. Used by the child elements to modify the group's value
|
|
111
|
+
*/
|
|
112
|
+
get _selection(): any[];
|
|
113
|
+
set _selection(value: any[]);
|
|
114
|
+
/** @ignore */
|
|
115
|
+
_onTouched?: () => void;
|
|
116
|
+
/** @ignore */
|
|
117
|
+
_isDisabled: boolean;
|
|
118
|
+
private _onChange?;
|
|
119
|
+
private _selected;
|
|
120
|
+
private _items;
|
|
121
|
+
constructor(_cd: ChangeDetectorRef);
|
|
122
|
+
/**
|
|
123
|
+
* @ignore
|
|
124
|
+
*/
|
|
125
|
+
writeValue(obj: any): void;
|
|
126
|
+
/**
|
|
127
|
+
* @ignore
|
|
128
|
+
*/
|
|
129
|
+
registerOnChange(fn: (_: any) => void): void;
|
|
130
|
+
/**
|
|
131
|
+
* @ignore
|
|
132
|
+
*/
|
|
133
|
+
registerOnTouched(fn: () => void): void;
|
|
134
|
+
/**
|
|
135
|
+
* Sets the disabled state and marks for check if a change occurred.
|
|
136
|
+
* @ignore
|
|
137
|
+
*/
|
|
138
|
+
setDisabledState(isDisabled: boolean): void;
|
|
139
|
+
/** @ignore */
|
|
140
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
141
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelDirective, never>;
|
|
142
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SelectionPanelDirective, "bui-selection-panel", ["buiSelectionPanel"], { "color": { "alias": "color"; "required": false; }; "selectByHeader": { "alias": "selectByHeader"; "required": false; }; }, {}, ["_items"], never, false, never>;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
declare class SelectionPanelModule {
|
|
146
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SelectionPanelModule, never>;
|
|
147
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SelectionPanelModule, [typeof SelectionPanelDirective, typeof SelectionPanelItemComponent], [typeof i3.CommonModule, typeof i4.MatCheckboxModule, typeof i5.FormsModule, typeof i6.MatRippleModule, typeof i7.ObserversModule], [typeof SelectionPanelDirective, typeof SelectionPanelItemComponent]>;
|
|
148
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SelectionPanelModule>;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export { SelectionPanelDirective, SelectionPanelItemComponent, SelectionPanelModule };
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, OnDestroy, ElementRef, ChangeDetectorRef, SimpleChanges, AfterViewChecked, InjectionToken, ModuleWithProviders } from '@angular/core';
|
|
3
|
+
import { Directionality } from '@angular/cdk/bidi';
|
|
4
|
+
import * as i4 from '@ngneat/content-loader';
|
|
5
|
+
import { ContentLoaderComponent } from '@ngneat/content-loader';
|
|
6
|
+
import * as i3 from '@angular/common';
|
|
7
|
+
import * as i5 from '@bravura/ui/common';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Use the [Create React Content Loader](https://skeletonreact.com/) to create your custom skeleton loaders;
|
|
11
|
+
*
|
|
12
|
+
* Add the resulting `svg` elements as the content children of a `<bui-skeleton>` component.
|
|
13
|
+
*
|
|
14
|
+
* The component `bui-skeleton` extends `content-loader` from [ngneat/content-loader](https://github.com/ngneat/content-loader).
|
|
15
|
+
*
|
|
16
|
+
* You can also choose from one of the presets registered by the `SKELETON_PRESETS` injection token.
|
|
17
|
+
*
|
|
18
|
+
* The following code snippets demonstrate how to register a preset:
|
|
19
|
+
*
|
|
20
|
+
* ```typescript
|
|
21
|
+
* @import {SkeletonsModule} from '@bravura/ui/skeletons';
|
|
22
|
+
* @import htmlWithSvgElements from './custom-loader1.html';
|
|
23
|
+
*
|
|
24
|
+
* @NgModule({
|
|
25
|
+
* imports: [SkeletonsModule.forConfig({ presets: {
|
|
26
|
+
* custom1: { viewBox: '0 0 400 100', content: htmlWithSvgElements }
|
|
27
|
+
* }})]
|
|
28
|
+
* })
|
|
29
|
+
* export class MyModule {}
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* custom-loader1.html:
|
|
33
|
+
*
|
|
34
|
+
* ```html
|
|
35
|
+
* <rect x="50" y="6" rx="4" ry="4" width="343" height="38" />
|
|
36
|
+
* <rect x="8" y="6" rx="4" ry="4" width="35" height="38" />
|
|
37
|
+
* ```
|
|
38
|
+
*/
|
|
39
|
+
declare class SkeletonLoaderComponent extends ContentLoaderComponent implements OnChanges, OnDestroy {
|
|
40
|
+
private _cdRef;
|
|
41
|
+
private _dir;
|
|
42
|
+
private _destroyed$;
|
|
43
|
+
constructor(elemRef: ElementRef<HTMLElement>, _cdRef: ChangeDetectorRef, _dir: Directionality);
|
|
44
|
+
ngOnDestroy(): void;
|
|
45
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
46
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderComponent, never>;
|
|
47
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SkeletonLoaderComponent, "bui-skeleton", never, {}, {}, never, never, false, never>;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
type SkeletonPreset = {
|
|
51
|
+
viewBox: string;
|
|
52
|
+
content: string;
|
|
53
|
+
};
|
|
54
|
+
type SkeletonPresets = {
|
|
55
|
+
[key: string]: SkeletonPreset;
|
|
56
|
+
};
|
|
57
|
+
declare const SKELETON_PRESETS: InjectionToken<SkeletonPresets>;
|
|
58
|
+
declare const DEFAULT_PRESETS: SkeletonPresets;
|
|
59
|
+
declare class SkeletonLoaderPresetsDirective implements AfterViewChecked {
|
|
60
|
+
private _skeletonComponent;
|
|
61
|
+
private _elementRef;
|
|
62
|
+
/** Select the SVG elements from one of the presets. */
|
|
63
|
+
preset?: string;
|
|
64
|
+
private _allPresets;
|
|
65
|
+
constructor(_skeletonComponent: SkeletonLoaderComponent, _elementRef: ElementRef<HTMLElement>, _presetList: SkeletonPresets[]);
|
|
66
|
+
ngAfterViewChecked(): void;
|
|
67
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonLoaderPresetsDirective, [{ host: true; }, null, null]>;
|
|
68
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SkeletonLoaderPresetsDirective, "bui-skeleton[preset]", never, { "preset": { "alias": "preset"; "required": false; }; }, {}, never, never, false, never>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
declare class SkeletonsModule {
|
|
72
|
+
static forConfig(config?: {
|
|
73
|
+
presets?: SkeletonPresets;
|
|
74
|
+
}): ModuleWithProviders<SkeletonsModule>;
|
|
75
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SkeletonsModule, never>;
|
|
76
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SkeletonsModule, [typeof SkeletonLoaderComponent, typeof SkeletonLoaderPresetsDirective], [typeof i3.CommonModule, typeof i4.ContentLoaderModule, typeof i5.BuiCommonModule], [typeof i4.ContentLoaderModule, typeof i5.BuiCommonModule, typeof SkeletonLoaderComponent, typeof SkeletonLoaderPresetsDirective]>;
|
|
77
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<SkeletonsModule>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export { DEFAULT_PRESETS, SKELETON_PRESETS, SkeletonLoaderComponent, SkeletonLoaderPresetsDirective, SkeletonsModule };
|
|
81
|
+
export type { SkeletonPreset, SkeletonPresets };
|
|
@@ -1,11 +1,36 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, AfterContentInit, QueryList, EventEmitter, ChangeDetectorRef, ElementRef } from '@angular/core';
|
|
3
|
+
import * as i6 from '@angular/material/stepper';
|
|
4
|
+
import { MatStep, MatStepHeader, MatStepperIcon, MatStepperIconContext } from '@angular/material/stepper';
|
|
1
5
|
import { AnimationEvent } from '@angular/animations';
|
|
2
6
|
import { Directionality } from '@angular/cdk/bidi';
|
|
7
|
+
import * as i5 from '@angular/cdk/stepper';
|
|
3
8
|
import { CdkStepper, StepperOptions } from '@angular/cdk/stepper';
|
|
4
|
-
import
|
|
9
|
+
import * as i9 from '@angular/material/core';
|
|
5
10
|
import { ThemePalette } from '@angular/material/core';
|
|
6
|
-
import { MatStep, MatStepHeader, MatStepperIcon, MatStepperIconContext } from '@angular/material/stepper';
|
|
7
11
|
import { Subject } from 'rxjs';
|
|
8
|
-
import * as
|
|
12
|
+
import * as i3 from '@angular/common';
|
|
13
|
+
import * as i4 from '@angular/cdk/portal';
|
|
14
|
+
import * as i7 from '@angular/material/button';
|
|
15
|
+
import * as i8 from '@angular/material/icon';
|
|
16
|
+
import * as i10 from '@angular/material/progress-spinner';
|
|
17
|
+
import * as i11 from '@bravura/ui/behavior';
|
|
18
|
+
|
|
19
|
+
declare class StepLabelTopDirective {
|
|
20
|
+
templateRef: TemplateRef<any>;
|
|
21
|
+
constructor(templateRef: TemplateRef<any>);
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepLabelTopDirective, [{ optional: true; }]>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepLabelTopDirective, "[buiStepLabelTop]", never, {}, {}, never, never, false, never>;
|
|
24
|
+
}
|
|
25
|
+
declare class StepDirective implements AfterContentInit {
|
|
26
|
+
stepLabelTopDirective: StepLabelTopDirective;
|
|
27
|
+
step: MatStep;
|
|
28
|
+
constructor();
|
|
29
|
+
ngAfterContentInit(): void;
|
|
30
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepDirective, never>;
|
|
31
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<StepDirective, "mat-step", never, {}, {}, ["stepLabelTopDirective"], never, false, never>;
|
|
32
|
+
}
|
|
33
|
+
|
|
9
34
|
/**
|
|
10
35
|
* [Angular Material's stepper](https://material.angular.io/components/stepper/overview) provides a wizard-like workflow by dividing
|
|
11
36
|
* content into logical steps.
|
|
@@ -14,7 +39,7 @@ import * as i0 from "@angular/core";
|
|
|
14
39
|
* desktop browsers.
|
|
15
40
|
*
|
|
16
41
|
*/
|
|
17
|
-
|
|
42
|
+
declare class StepperComponent extends CdkStepper implements AfterContentInit {
|
|
18
43
|
private changeDetectorRef;
|
|
19
44
|
private _buiElRef;
|
|
20
45
|
/** @ignore The list of step headers of the steps in the stepper. */
|
|
@@ -73,3 +98,11 @@ export declare class StepperComponent extends CdkStepper implements AfterContent
|
|
|
73
98
|
static ɵfac: i0.ɵɵFactoryDeclaration<StepperComponent, [{ optional: true; }, null, null, null, { self: true; }, { optional: true; skipSelf: true; }]>;
|
|
74
99
|
static ɵcmp: i0.ɵɵComponentDeclaration<StepperComponent, "bui-stepper, [buiStepper]", ["buiStepper", "matStepper", "matVerticalStepper", "matHorizontalStepper"], { "selectedIndex": { "alias": "selectedIndex"; "required": false; }; "disableRipple": { "alias": "disableRipple"; "required": false; }; "color": { "alias": "color"; "required": false; }; "indicatorFormatter": { "alias": "indicatorFormatter"; "required": false; }; "nextStepLabelPrefix": { "alias": "nextStepLabelPrefix"; "required": false; }; }, { "animationDone": "animationDone"; }, ["_steps", "_icons"], never, false, never>;
|
|
75
100
|
}
|
|
101
|
+
|
|
102
|
+
declare class StepperModule {
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StepperModule, never>;
|
|
104
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<StepperModule, [typeof StepperComponent, typeof StepDirective, typeof StepLabelTopDirective], [typeof i3.CommonModule, typeof i4.PortalModule, typeof i5.CdkStepperModule, typeof i6.MatStepperModule, typeof i7.MatButtonModule, typeof i8.MatIconModule, typeof i9.MatRippleModule, typeof i10.MatProgressSpinnerModule, typeof i11.BehaviorModule], [typeof StepperComponent, typeof i6.MatStepperModule, typeof StepLabelTopDirective, typeof StepDirective]>;
|
|
105
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<StepperModule>;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export { StepDirective, StepLabelTopDirective, StepperComponent, StepperModule };
|
|
@@ -1,18 +1,31 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken, TemplateRef, ElementRef, ViewContainerRef, NgZone } from '@angular/core';
|
|
1
3
|
import { AriaDescriber, FocusMonitor } from '@angular/cdk/a11y';
|
|
2
4
|
import { Directionality } from '@angular/cdk/bidi';
|
|
3
5
|
import { Overlay, ScrollDispatcher } from '@angular/cdk/overlay';
|
|
4
6
|
import { Platform } from '@angular/cdk/platform';
|
|
5
|
-
import { ElementRef, NgZone, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
6
7
|
import { MatTooltip, MatTooltipDefaultOptions, TooltipPosition } from '@angular/material/tooltip';
|
|
7
8
|
import { Observable } from 'rxjs';
|
|
8
|
-
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* @ignore
|
|
12
|
+
*/
|
|
13
|
+
interface TooltipTemplateContainer {
|
|
14
|
+
template?: TemplateRef<any>;
|
|
15
|
+
message?: string;
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* @ignore
|
|
19
|
+
*/
|
|
20
|
+
declare const BUI_TOOLTIP_TEMPLATE_REF: InjectionToken<TooltipTemplateContainer>;
|
|
21
|
+
|
|
9
22
|
/**
|
|
10
23
|
* This directive extends [Angular Material tooltip](https://material.angular.io/components/tooltip/overview), with the additional capability of displaying
|
|
11
24
|
* HTML content in the overlay area.
|
|
12
25
|
*
|
|
13
26
|
* All the other features are identical as those in Angular Material tooltip.
|
|
14
27
|
*/
|
|
15
|
-
|
|
28
|
+
declare class TooltipDirective extends MatTooltip {
|
|
16
29
|
private _templateRef?;
|
|
17
30
|
private _contentSub;
|
|
18
31
|
private _contentObs?;
|
|
@@ -44,5 +57,7 @@ export declare class TooltipDirective extends MatTooltip {
|
|
|
44
57
|
} | undefined): void;
|
|
45
58
|
ngOnDestroy(): void;
|
|
46
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<TooltipDirective, [null, null, null, null, null, null, null, null, null, { optional: true; }, { optional: true; }, null]>;
|
|
47
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": { "alias": "buiTooltipPosition"; "required": false; }; "buiTooltipDisabled": { "alias": "buiTooltipDisabled"; "required": false; }; "buiTooltip": { "alias": "buiTooltip"; "required": false; }; "buiTooltipClass": { "alias": "buiTooltipClass"; "required": false; }; }, {}, never, never,
|
|
60
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TooltipDirective, "[buiTooltip]", ["buiTooltip"], { "buiTooltipPosition": { "alias": "buiTooltipPosition"; "required": false; }; "buiTooltipDisabled": { "alias": "buiTooltipDisabled"; "required": false; }; "buiTooltip": { "alias": "buiTooltip"; "required": false; }; "buiTooltipClass": { "alias": "buiTooltipClass"; "required": false; }; }, {}, never, never, true, never>;
|
|
48
61
|
}
|
|
62
|
+
|
|
63
|
+
export { BUI_TOOLTIP_TEMPLATE_REF, TooltipDirective };
|