@bravura/ui 6.0.1 → 7.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 +15 -1
- package/README.md +1 -0
- package/alert/index.d.ts +126 -3
- package/alert/testing/index.d.ts +28 -5
- package/behavior/index.d.ts +231 -3
- package/clip-note/index.d.ts +125 -3
- package/common/index.d.ts +24 -3
- package/currency-input/index.d.ts +69 -3
- package/decimal-input/index.d.ts +39 -3
- package/discrete-input/index.d.ts +139 -3
- package/fesm2022/bravura-ui-alert.mjs +18 -21
- 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 +14 -39
- 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 -13
- package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
- package/file-upload/index.d.ts +200 -3
- package/form-field/index.d.ts +49 -3
- package/icon-font/index.d.ts +79 -3
- package/index.d.ts +3 -5
- package/package.json +20 -20
- package/panel/index.d.ts +107 -3
- package/phone-number/index.d.ts +108 -3
- package/radio-panel/index.d.ts +71 -3
- package/radio-panel/testing/index.d.ts +32 -5
- package/selection-panel/index.d.ts +149 -3
- package/skeletons/index.d.ts +79 -3
- package/stepper/index.d.ts +106 -3
- package/tooltip/index.d.ts +83 -3
- package/alert/alert-container.component.d.ts +0 -71
- package/alert/alert-message.component.d.ts +0 -47
- package/alert/alert.module.d.ts +0 -14
- package/alert/public-api.d.ts +0 -1
- package/alert/testing/test-api.d.ts +0 -24
- package/behavior/await.directive.d.ts +0 -71
- package/behavior/behavior.module.d.ts +0 -17
- 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.directive.d.ts +0 -69
- package/clip-note/clip-note.module.d.ts +0 -19
- 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/public-api.d.ts +0 -2
- package/currency-input/currency-input.directive.d.ts +0 -62
- package/currency-input/currency-input.module.d.ts +0 -10
- package/currency-input/public-api.d.ts +0 -1
- package/decimal-input/decimal-input.directive.d.ts +0 -32
- package/decimal-input/decimal-input.module.d.ts +0 -10
- package/decimal-input/public-api.d.ts +0 -1
- package/discrete-input/discrete-input.component.d.ts +0 -141
- package/discrete-input/discrete-input.module.d.ts +0 -11
- package/discrete-input/public-api.d.ts +0 -2
- package/file-upload/file-upload.component.d.ts +0 -148
- package/file-upload/file-upload.module.d.ts +0 -14
- package/file-upload/file-upload.service.d.ts +0 -42
- package/file-upload/public-api.d.ts +0 -6
- package/form-field/form-field.component.d.ts +0 -39
- package/form-field/form-field.module.d.ts +0 -13
- package/form-field/public-api.d.ts +0 -2
- package/icon-font/icon-font.module.d.ts +0 -12
- package/icon-font/icon.directive.d.ts +0 -46
- package/icon-font/public-api.d.ts +0 -3
- package/icon-font/utilities.d.ts +0 -20
- package/panel/panel-section.component.d.ts +0 -15
- package/panel/panel.component.d.ts +0 -60
- 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/phone-number.directive.d.ts +0 -66
- 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/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/test-api.d.ts +0 -27
- 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/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/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.component.d.ts +0 -75
- package/stepper/stepper.module.d.ts +0 -17
- package/tooltip/public-api.d.ts +0 -3
- package/tooltip/tooltip.component.d.ts +0 -26
- package/tooltip/tooltip.directive.d.ts +0 -48
- package/tooltip/tooltip.module.d.ts +0 -13
package/icon-font/index.d.ts
CHANGED
|
@@ -1,5 +1,81 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/material/icon';
|
|
4
|
+
import { MatIcon } from '@angular/material/icon';
|
|
5
|
+
import * as i2 from '@angular/common';
|
|
6
|
+
|
|
1
7
|
/**
|
|
2
|
-
*
|
|
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'`
|
|
3
15
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
|
|
28
|
+
/**
|
|
29
|
+
* @ignore
|
|
30
|
+
*/
|
|
31
|
+
declare const BUI_ICON_MAT_VARIANTS: string[];
|
|
32
|
+
/**
|
|
33
|
+
* Use this directive, together with `<mat-icon>`, to display an icon font character/symbol
|
|
34
|
+
* from Material or FontAwesome icons.
|
|
35
|
+
*
|
|
36
|
+
* To use the icon fonts, add the following statements to one of your global SCSS files:
|
|
37
|
+
*
|
|
38
|
+
* ```css
|
|
39
|
+
* @import url(https://fonts.googleapis.com/css2?family=Material+Icons);
|
|
40
|
+
* @import url(https://use.fontawesome.com/releases/v5.15.0/css/all.css);
|
|
41
|
+
* ```
|
|
42
|
+
*
|
|
43
|
+
* @example <mat-icon buiIcon="far fa-circle"></mat-icon> <!-- FontAwesome -->
|
|
44
|
+
* @example <mat-icon buiIcon="home" [size]="42"></mat-icon> <!-- Material -->
|
|
45
|
+
*/
|
|
46
|
+
declare class IconDirective implements OnChanges {
|
|
47
|
+
private _icon;
|
|
48
|
+
/**
|
|
49
|
+
* The icon name
|
|
50
|
+
*
|
|
51
|
+
* @example 'far fa-circle'
|
|
52
|
+
* @example 'home'
|
|
53
|
+
*/
|
|
54
|
+
buiIcon: string;
|
|
55
|
+
/**
|
|
56
|
+
* Override the default icon size
|
|
57
|
+
*
|
|
58
|
+
* @default 24
|
|
59
|
+
*/
|
|
60
|
+
size: number;
|
|
61
|
+
/**
|
|
62
|
+
* The style variant of Material Icons. It is not applicable for Font Awesome Icons or any other custom font icon sets.
|
|
63
|
+
* @default `filled`
|
|
64
|
+
*/
|
|
65
|
+
variant: 'filled' | 'outlined' | 'round' | 'two-tone' | 'sharp';
|
|
66
|
+
constructor(_icon: MatIcon);
|
|
67
|
+
ngOnChanges(_: SimpleChanges): void;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconDirective, never>;
|
|
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>;
|
|
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 };
|
package/index.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bravura/ui",
|
|
3
3
|
"description": "Bravura UI Components for Angular applications",
|
|
4
|
-
"version": "
|
|
4
|
+
"version": "7.0.0",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"Angular",
|
|
7
7
|
"Angular Material",
|
|
@@ -35,6 +35,10 @@
|
|
|
35
35
|
"types": "./alert/index.d.ts",
|
|
36
36
|
"default": "./fesm2022/bravura-ui-alert.mjs"
|
|
37
37
|
},
|
|
38
|
+
"./alert/testing": {
|
|
39
|
+
"types": "./alert/testing/index.d.ts",
|
|
40
|
+
"default": "./fesm2022/bravura-ui-alert-testing.mjs"
|
|
41
|
+
},
|
|
38
42
|
"./behavior": {
|
|
39
43
|
"types": "./behavior/index.d.ts",
|
|
40
44
|
"default": "./fesm2022/bravura-ui-behavior.mjs"
|
|
@@ -47,22 +51,22 @@
|
|
|
47
51
|
"types": "./common/index.d.ts",
|
|
48
52
|
"default": "./fesm2022/bravura-ui-common.mjs"
|
|
49
53
|
},
|
|
50
|
-
"./discrete-input": {
|
|
51
|
-
"types": "./discrete-input/index.d.ts",
|
|
52
|
-
"default": "./fesm2022/bravura-ui-discrete-input.mjs"
|
|
53
|
-
},
|
|
54
54
|
"./currency-input": {
|
|
55
55
|
"types": "./currency-input/index.d.ts",
|
|
56
56
|
"default": "./fesm2022/bravura-ui-currency-input.mjs"
|
|
57
57
|
},
|
|
58
|
-
"./file-upload": {
|
|
59
|
-
"types": "./file-upload/index.d.ts",
|
|
60
|
-
"default": "./fesm2022/bravura-ui-file-upload.mjs"
|
|
61
|
-
},
|
|
62
58
|
"./decimal-input": {
|
|
63
59
|
"types": "./decimal-input/index.d.ts",
|
|
64
60
|
"default": "./fesm2022/bravura-ui-decimal-input.mjs"
|
|
65
61
|
},
|
|
62
|
+
"./discrete-input": {
|
|
63
|
+
"types": "./discrete-input/index.d.ts",
|
|
64
|
+
"default": "./fesm2022/bravura-ui-discrete-input.mjs"
|
|
65
|
+
},
|
|
66
|
+
"./file-upload": {
|
|
67
|
+
"types": "./file-upload/index.d.ts",
|
|
68
|
+
"default": "./fesm2022/bravura-ui-file-upload.mjs"
|
|
69
|
+
},
|
|
66
70
|
"./form-field": {
|
|
67
71
|
"types": "./form-field/index.d.ts",
|
|
68
72
|
"default": "./fesm2022/bravura-ui-form-field.mjs"
|
|
@@ -75,13 +79,17 @@
|
|
|
75
79
|
"types": "./panel/index.d.ts",
|
|
76
80
|
"default": "./fesm2022/bravura-ui-panel.mjs"
|
|
77
81
|
},
|
|
82
|
+
"./phone-number": {
|
|
83
|
+
"types": "./phone-number/index.d.ts",
|
|
84
|
+
"default": "./fesm2022/bravura-ui-phone-number.mjs"
|
|
85
|
+
},
|
|
78
86
|
"./radio-panel": {
|
|
79
87
|
"types": "./radio-panel/index.d.ts",
|
|
80
88
|
"default": "./fesm2022/bravura-ui-radio-panel.mjs"
|
|
81
89
|
},
|
|
82
|
-
"./
|
|
83
|
-
"types": "./
|
|
84
|
-
"default": "./fesm2022/bravura-ui-
|
|
90
|
+
"./radio-panel/testing": {
|
|
91
|
+
"types": "./radio-panel/testing/index.d.ts",
|
|
92
|
+
"default": "./fesm2022/bravura-ui-radio-panel-testing.mjs"
|
|
85
93
|
},
|
|
86
94
|
"./selection-panel": {
|
|
87
95
|
"types": "./selection-panel/index.d.ts",
|
|
@@ -98,14 +106,6 @@
|
|
|
98
106
|
"./tooltip": {
|
|
99
107
|
"types": "./tooltip/index.d.ts",
|
|
100
108
|
"default": "./fesm2022/bravura-ui-tooltip.mjs"
|
|
101
|
-
},
|
|
102
|
-
"./alert/testing": {
|
|
103
|
-
"types": "./alert/testing/index.d.ts",
|
|
104
|
-
"default": "./fesm2022/bravura-ui-alert-testing.mjs"
|
|
105
|
-
},
|
|
106
|
-
"./radio-panel/testing": {
|
|
107
|
-
"types": "./radio-panel/testing/index.d.ts",
|
|
108
|
-
"default": "./fesm2022/bravura-ui-radio-panel-testing.mjs"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
"dependencies": {
|
package/panel/index.d.ts
CHANGED
|
@@ -1,5 +1,109 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { OnInit, OnDestroy, ElementRef, ChangeDetectorRef } from '@angular/core';
|
|
3
|
+
import { ThemePalette } from '@angular/material/core';
|
|
4
|
+
import * as i4 from '@angular/common';
|
|
5
|
+
import * as i5 from '@angular/material/card';
|
|
6
|
+
import * as i6 from '@bravura/ui/behavior';
|
|
7
|
+
|
|
1
8
|
/**
|
|
2
|
-
*
|
|
9
|
+
* A "tinted" element has a shaded background specified by the `ThemePalette`, which
|
|
10
|
+
* is compatible with both light and dark themes.
|
|
3
11
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
|
|
32
|
+
/**
|
|
33
|
+
* A `bui-panel` consists of a `mat-card` and a tinted backdrop.
|
|
34
|
+
*
|
|
35
|
+
* Unlike `mat-card`, `bui-panel` has a flat appearance by default and a transparent background.
|
|
36
|
+
* The backdrop is nearly transparent, blending the theme palette `color`
|
|
37
|
+
* and the effective background color of the DOM ancestors.
|
|
38
|
+
*
|
|
39
|
+
* `bui-panel` supports all the content child directives of `mat-card` as well as `bui-panel-section`.
|
|
40
|
+
*
|
|
41
|
+
* `bui-panel-section`s are subdivisions of `bui-panel` that rearrange their orientation based on the width of the container element.
|
|
42
|
+
*
|
|
43
|
+
*/
|
|
44
|
+
declare class PanelComponent implements OnInit {
|
|
45
|
+
private _cd;
|
|
46
|
+
private _tinted;
|
|
47
|
+
/**
|
|
48
|
+
* Additional style classes on the tinted backdrop element.
|
|
49
|
+
* @deprecated
|
|
50
|
+
* @ignore
|
|
51
|
+
*/
|
|
52
|
+
backdropClass?: string;
|
|
53
|
+
/**
|
|
54
|
+
* Additional style classes on the `<mat-card>` element.
|
|
55
|
+
*/
|
|
56
|
+
cardClass?: string;
|
|
57
|
+
/**
|
|
58
|
+
* This property defines the background (shaded) and border colors of the panel
|
|
59
|
+
*/
|
|
60
|
+
get color(): ThemePalette;
|
|
61
|
+
set color(value: ThemePalette);
|
|
62
|
+
/**
|
|
63
|
+
* In contrast to using a `mat-card` alone, a `bui-panel` does not have a elevated appearance by default.
|
|
64
|
+
*
|
|
65
|
+
* This property can change the default appearance to
|
|
66
|
+
*
|
|
67
|
+
* * `raised` - the original `mat-card` default
|
|
68
|
+
* * `outline` - a `mat-card` with borders
|
|
69
|
+
* * `flat` - no border or elevation
|
|
70
|
+
*/
|
|
71
|
+
get appearance(): 'outlined' | 'raised' | 'flat';
|
|
72
|
+
set appearance(value: 'outlined' | 'raised' | 'flat');
|
|
73
|
+
/**
|
|
74
|
+
* The width of the host element, at which the panel section container will change its orientation.
|
|
75
|
+
*/
|
|
76
|
+
breakpoint: number;
|
|
77
|
+
/** @ignore */
|
|
78
|
+
_width: number;
|
|
79
|
+
private _color;
|
|
80
|
+
private _appearance;
|
|
81
|
+
constructor(_cd: ChangeDetectorRef, _tinted: TintedDirective);
|
|
82
|
+
ngOnInit(): void;
|
|
83
|
+
/** @ignore */
|
|
84
|
+
_resized(width: number): void;
|
|
85
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PanelComponent, [null, { host: true; }]>;
|
|
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>;
|
|
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 };
|
package/phone-number/index.d.ts
CHANGED
|
@@ -1,5 +1,110 @@
|
|
|
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';
|
|
4
|
+
import { MatFormField } from '@angular/material/form-field';
|
|
5
|
+
import * as i4 from '@angular/common';
|
|
6
|
+
|
|
1
7
|
/**
|
|
2
|
-
*
|
|
8
|
+
* @internal
|
|
3
9
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Add phone number validation support by specifying the `type` attribute as `tel` in an `<input>` element.
|
|
30
|
+
*
|
|
31
|
+
* To use this feature, please install a peer dependency `intl-tel-input` in your project and add the following
|
|
32
|
+
* to your application polyfills:
|
|
33
|
+
*
|
|
34
|
+
* ```javascript
|
|
35
|
+
* import 'intl-tel-input/build/js/utils.js';
|
|
36
|
+
* ```
|
|
37
|
+
*
|
|
38
|
+
* You will also need to add the following statements to one of your global SCSS files:
|
|
39
|
+
*
|
|
40
|
+
* ```scss
|
|
41
|
+
* $flagsImagePath: '~intl-tel-input/build/img/' !default;
|
|
42
|
+
* @import '~intl-tel-input/src/css/intlTelInput';
|
|
43
|
+
* ```
|
|
44
|
+
*/
|
|
45
|
+
declare class PhoneNumberDirective implements OnInit, OnChanges, OnDestroy {
|
|
46
|
+
private _el;
|
|
47
|
+
private _ngModel;
|
|
48
|
+
private _formControlName;
|
|
49
|
+
private _formControlDirective;
|
|
50
|
+
private _locale;
|
|
51
|
+
private _zone;
|
|
52
|
+
private _matField;
|
|
53
|
+
/**
|
|
54
|
+
* @ignore
|
|
55
|
+
*/
|
|
56
|
+
static POST_RENDER_INIT_DELAY: number;
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
static BYPASS_SHADOW_DETECTION: boolean;
|
|
61
|
+
/**
|
|
62
|
+
* The type of phone number to validate for
|
|
63
|
+
*/
|
|
64
|
+
telType: TEL_TYPE;
|
|
65
|
+
/**
|
|
66
|
+
* Disable country dropdown by setting this property to `false`.
|
|
67
|
+
*/
|
|
68
|
+
telDropdown: boolean;
|
|
69
|
+
/**
|
|
70
|
+
* This event is triggered when a new country is selected from the dropdown. The event detail is the ISO country code.
|
|
71
|
+
*/
|
|
72
|
+
telCountryChange: EventEmitter<string>;
|
|
73
|
+
private _control;
|
|
74
|
+
private _reactive;
|
|
75
|
+
private _countryChangeListener;
|
|
76
|
+
private _input;
|
|
77
|
+
private _iti;
|
|
78
|
+
constructor(_el: ElementRef<HTMLInputElement>, _ngModel: NgModel, _formControlName: FormControlName, _formControlDirective: FormControlDirective, _locale: string, _zone: NgZone, _matField: MatFormField);
|
|
79
|
+
/** @internal */
|
|
80
|
+
onInput(): void;
|
|
81
|
+
ngOnInit(): void;
|
|
82
|
+
ngOnDestroy(): void;
|
|
83
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
84
|
+
private initElement;
|
|
85
|
+
private _patchValueByState;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PhoneNumberDirective, [null, { optional: true; }, { optional: true; }, { optional: true; }, null, null, { optional: true; }]>;
|
|
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>;
|
|
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 };
|
package/radio-panel/index.d.ts
CHANGED
|
@@ -1,5 +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
|
+
|
|
1
12
|
/**
|
|
2
|
-
*
|
|
13
|
+
* Use `bui-radio-panel-item` instead of `mat-radio-button` in a `bui-radio-panel` to display an option.
|
|
3
14
|
*/
|
|
4
|
-
|
|
5
|
-
|
|
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 };
|
|
@@ -1,5 +1,32 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_cdk_testing from '@angular/cdk/testing';
|
|
2
|
+
import { ComponentHarnessConstructor, HarnessPredicate } from '@angular/cdk/testing';
|
|
3
|
+
import { RadioButtonHarnessFilters, MatRadioButtonHarness, MatRadioGroupHarness } from '@angular/material/radio/testing';
|
|
4
|
+
|
|
5
|
+
interface RadioPanelItemHarnessFilters extends RadioButtonHarnessFilters {
|
|
6
|
+
value?: string | RegExp;
|
|
7
|
+
}
|
|
8
|
+
declare class RadioPanelItemHarness extends MatRadioButtonHarness {
|
|
9
|
+
static hostSelector: string;
|
|
10
|
+
getLabelElement: () => Promise<_angular_cdk_testing.TestElement>;
|
|
11
|
+
protected _textLabel: () => Promise<_angular_cdk_testing.TestElement>;
|
|
12
|
+
protected _clickLabel: () => Promise<_angular_cdk_testing.TestElement>;
|
|
13
|
+
/**
|
|
14
|
+
* Gets a `HarnessPredicate` that can be used to search for a radio button with specific
|
|
15
|
+
* attributes.
|
|
16
|
+
* @param options Options for filtering which radio button instances are considered a match.
|
|
17
|
+
* @return a `HarnessPredicate` configured with the given options.
|
|
18
|
+
*/
|
|
19
|
+
static with<T extends MatRadioButtonHarness>(this: ComponentHarnessConstructor<T>, options?: RadioPanelItemHarnessFilters): HarnessPredicate<T>;
|
|
20
|
+
click(): Promise<void>;
|
|
21
|
+
getLabelCssValue(prop: string): Promise<string>;
|
|
22
|
+
getBorderColor(): Promise<string>;
|
|
23
|
+
}
|
|
24
|
+
declare class RadioPanelHarness extends MatRadioGroupHarness {
|
|
25
|
+
/** The selector for the host element of a `MatRadioGroup` instance. */
|
|
26
|
+
static hostSelector: string;
|
|
27
|
+
getItem: (filters: RadioPanelItemHarnessFilters) => Promise<RadioPanelItemHarness>;
|
|
28
|
+
getFlexDir(): Promise<string>;
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export { RadioPanelHarness, RadioPanelItemHarness };
|
|
32
|
+
export type { RadioPanelItemHarnessFilters };
|