@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.
Files changed (128) hide show
  1. package/CHANGELOG.md +15 -1
  2. package/README.md +1 -0
  3. package/alert/index.d.ts +126 -3
  4. package/alert/testing/index.d.ts +28 -5
  5. package/behavior/index.d.ts +231 -3
  6. package/clip-note/index.d.ts +125 -3
  7. package/common/index.d.ts +24 -3
  8. package/currency-input/index.d.ts +69 -3
  9. package/decimal-input/index.d.ts +39 -3
  10. package/discrete-input/index.d.ts +139 -3
  11. package/fesm2022/bravura-ui-alert.mjs +18 -21
  12. package/fesm2022/bravura-ui-alert.mjs.map +1 -1
  13. package/fesm2022/bravura-ui-behavior.mjs +18 -18
  14. package/fesm2022/bravura-ui-behavior.mjs.map +1 -1
  15. package/fesm2022/bravura-ui-clip-note.mjs +10 -10
  16. package/fesm2022/bravura-ui-clip-note.mjs.map +1 -1
  17. package/fesm2022/bravura-ui-common.mjs +5 -6
  18. package/fesm2022/bravura-ui-common.mjs.map +1 -1
  19. package/fesm2022/bravura-ui-currency-input.mjs +7 -7
  20. package/fesm2022/bravura-ui-currency-input.mjs.map +1 -1
  21. package/fesm2022/bravura-ui-decimal-input.mjs +7 -7
  22. package/fesm2022/bravura-ui-decimal-input.mjs.map +1 -1
  23. package/fesm2022/bravura-ui-discrete-input.mjs +14 -39
  24. package/fesm2022/bravura-ui-discrete-input.mjs.map +1 -1
  25. package/fesm2022/bravura-ui-file-upload.mjs +18 -18
  26. package/fesm2022/bravura-ui-file-upload.mjs.map +1 -1
  27. package/fesm2022/bravura-ui-form-field.mjs +10 -10
  28. package/fesm2022/bravura-ui-form-field.mjs.map +1 -1
  29. package/fesm2022/bravura-ui-icon-font.mjs +7 -7
  30. package/fesm2022/bravura-ui-icon-font.mjs.map +1 -1
  31. package/fesm2022/bravura-ui-panel.mjs +16 -16
  32. package/fesm2022/bravura-ui-panel.mjs.map +1 -1
  33. package/fesm2022/bravura-ui-phone-number.mjs +13 -13
  34. package/fesm2022/bravura-ui-phone-number.mjs.map +1 -1
  35. package/fesm2022/bravura-ui-radio-panel.mjs +12 -14
  36. package/fesm2022/bravura-ui-radio-panel.mjs.map +1 -1
  37. package/fesm2022/bravura-ui-selection-panel.mjs +11 -11
  38. package/fesm2022/bravura-ui-selection-panel.mjs.map +1 -1
  39. package/fesm2022/bravura-ui-skeletons.mjs +10 -10
  40. package/fesm2022/bravura-ui-skeletons.mjs.map +1 -1
  41. package/fesm2022/bravura-ui-stepper.mjs +18 -18
  42. package/fesm2022/bravura-ui-stepper.mjs.map +1 -1
  43. package/fesm2022/bravura-ui-tooltip.mjs +13 -13
  44. package/fesm2022/bravura-ui-tooltip.mjs.map +1 -1
  45. package/file-upload/index.d.ts +200 -3
  46. package/form-field/index.d.ts +49 -3
  47. package/icon-font/index.d.ts +79 -3
  48. package/index.d.ts +3 -5
  49. package/package.json +20 -20
  50. package/panel/index.d.ts +107 -3
  51. package/phone-number/index.d.ts +108 -3
  52. package/radio-panel/index.d.ts +71 -3
  53. package/radio-panel/testing/index.d.ts +32 -5
  54. package/selection-panel/index.d.ts +149 -3
  55. package/skeletons/index.d.ts +79 -3
  56. package/stepper/index.d.ts +106 -3
  57. package/tooltip/index.d.ts +83 -3
  58. package/alert/alert-container.component.d.ts +0 -71
  59. package/alert/alert-message.component.d.ts +0 -47
  60. package/alert/alert.module.d.ts +0 -14
  61. package/alert/public-api.d.ts +0 -1
  62. package/alert/testing/test-api.d.ts +0 -24
  63. package/behavior/await.directive.d.ts +0 -71
  64. package/behavior/behavior.module.d.ts +0 -17
  65. package/behavior/observe-content-class.directive.d.ts +0 -29
  66. package/behavior/public-api.d.ts +0 -5
  67. package/behavior/sizing-monitor.directive.d.ts +0 -23
  68. package/behavior/sizing.directive.d.ts +0 -98
  69. package/clip-note/clip-note.component.d.ts +0 -45
  70. package/clip-note/clip-note.directive.d.ts +0 -69
  71. package/clip-note/clip-note.module.d.ts +0 -19
  72. package/clip-note/public-api.d.ts +0 -1
  73. package/common/common-utils.d.ts +0 -11
  74. package/common/common.module.d.ts +0 -11
  75. package/common/public-api.d.ts +0 -2
  76. package/currency-input/currency-input.directive.d.ts +0 -62
  77. package/currency-input/currency-input.module.d.ts +0 -10
  78. package/currency-input/public-api.d.ts +0 -1
  79. package/decimal-input/decimal-input.directive.d.ts +0 -32
  80. package/decimal-input/decimal-input.module.d.ts +0 -10
  81. package/decimal-input/public-api.d.ts +0 -1
  82. package/discrete-input/discrete-input.component.d.ts +0 -141
  83. package/discrete-input/discrete-input.module.d.ts +0 -11
  84. package/discrete-input/public-api.d.ts +0 -2
  85. package/file-upload/file-upload.component.d.ts +0 -148
  86. package/file-upload/file-upload.module.d.ts +0 -14
  87. package/file-upload/file-upload.service.d.ts +0 -42
  88. package/file-upload/public-api.d.ts +0 -6
  89. package/form-field/form-field.component.d.ts +0 -39
  90. package/form-field/form-field.module.d.ts +0 -13
  91. package/form-field/public-api.d.ts +0 -2
  92. package/icon-font/icon-font.module.d.ts +0 -12
  93. package/icon-font/icon.directive.d.ts +0 -46
  94. package/icon-font/public-api.d.ts +0 -3
  95. package/icon-font/utilities.d.ts +0 -20
  96. package/panel/panel-section.component.d.ts +0 -15
  97. package/panel/panel.component.d.ts +0 -60
  98. package/panel/panel.module.d.ts +0 -16
  99. package/panel/public-api.d.ts +0 -1
  100. package/panel/tinted.directive.d.ts +0 -26
  101. package/phone-number/phone-number.directive.d.ts +0 -66
  102. package/phone-number/phone-number.module.d.ts +0 -17
  103. package/phone-number/phone-number.pipe.d.ts +0 -13
  104. package/phone-number/phone-number.validator.d.ts +0 -31
  105. package/phone-number/public-api.d.ts +0 -1
  106. package/public-api.d.ts +0 -1
  107. package/radio-panel/public-api.d.ts +0 -3
  108. package/radio-panel/radio-panel-item.component.d.ts +0 -22
  109. package/radio-panel/radio-panel.component.d.ts +0 -38
  110. package/radio-panel/radio-panel.module.d.ts +0 -15
  111. package/radio-panel/testing/test-api.d.ts +0 -27
  112. package/selection-panel/public-api.d.ts +0 -3
  113. package/selection-panel/selection-panel-item.component.d.ts +0 -77
  114. package/selection-panel/selection-panel.directive.d.ts +0 -67
  115. package/selection-panel/selection-panel.module.d.ts +0 -13
  116. package/skeletons/public-api.d.ts +0 -3
  117. package/skeletons/skeleton-loader-presets.directive.d.ts +0 -23
  118. package/skeletons/skeleton-loader.component.d.ts +0 -44
  119. package/skeletons/skeletons.module.d.ts +0 -16
  120. package/stepper/public-api.d.ts +0 -3
  121. package/stepper/step-label-top.directive.d.ts +0 -17
  122. package/stepper/stepper-animation.d.ts +0 -6
  123. package/stepper/stepper.component.d.ts +0 -75
  124. package/stepper/stepper.module.d.ts +0 -17
  125. package/tooltip/public-api.d.ts +0 -3
  126. package/tooltip/tooltip.component.d.ts +0 -26
  127. package/tooltip/tooltip.directive.d.ts +0 -48
  128. package/tooltip/tooltip.module.d.ts +0 -13
@@ -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
- * Generated bundle index. Do not edit.
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
- /// <amd-module name="@bravura/ui/icon-font" />
5
- export * from './public-api';
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
@@ -1,5 +1,3 @@
1
- /**
2
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui" />
5
- export * from './public-api';
1
+ declare const NO_EXPORT = "NO_EXPORT";
2
+
3
+ export { NO_EXPORT };
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": "6.0.1",
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
- "./phone-number": {
83
- "types": "./phone-number/index.d.ts",
84
- "default": "./fesm2022/bravura-ui-phone-number.mjs"
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
- * Generated bundle index. Do not edit.
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
- /// <amd-module name="@bravura/ui/panel" />
5
- export * from './public-api';
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 };
@@ -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
- * Generated bundle index. Do not edit.
8
+ * @internal
3
9
  */
4
- /// <amd-module name="@bravura/ui/phone-number" />
5
- export * from './public-api';
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 };
@@ -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
- * Generated bundle index. Do not edit.
13
+ * Use `bui-radio-panel-item` instead of `mat-radio-button` in a `bui-radio-panel` to display an option.
3
14
  */
4
- /// <amd-module name="@bravura/ui/radio-panel" />
5
- export * from './public-api';
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
- * Generated bundle index. Do not edit.
3
- */
4
- /// <amd-module name="@bravura/ui/radio-panel/testing" />
5
- export * from './test-api';
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 };