@bravura/ui 6.1.0 → 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 +11 -1
  2. package/README.md +58 -57
  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 +10 -11
  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 +24 -24
  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 -128
  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,202 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnInit, OnDestroy } from '@angular/core';
3
+ import { HttpEvent } from '@angular/common/http';
4
+ import { ControlValueAccessor } from '@angular/forms';
5
+ import { Observable, Subscription, Subject } from 'rxjs';
6
+ import * as i2 from '@angular/common';
7
+ import * as i3 from '@angular/material/icon';
8
+ import * as i4 from '@bravura/ui/icon-font';
9
+ import * as i5 from '@angular/material/progress-bar';
10
+ import * as i6 from '@angular/material/button';
11
+ import * as i7 from '@angular/material/divider';
12
+ import * as i8 from '@angular/material/tooltip';
13
+
1
14
  /**
2
- * Generated bundle index. Do not edit.
15
+ * This type represents a file or form item that has been sent as part of a multipart/form-data POST request.
3
16
  */
4
- /// <amd-module name="@bravura/ui/file-upload" />
5
- export * from './public-api';
17
+ declare class FileUploadItem {
18
+ /** The original filename in the client's filesystem, as provided by the browser. */
19
+ name: string;
20
+ /** The size of the file item. */
21
+ size: number;
22
+ /** An alpha-numeric string that uniquely identifies the file item. */
23
+ id: string;
24
+ /** The content type (MIME type) of the file. */
25
+ type: string;
26
+ /** @internal */
27
+ constructor(_id: string, _name: string, _size: number, _type: string);
28
+ }
29
+ /**
30
+ * This is an API for processing file upload requests.
31
+ *
32
+ * A sub class of this type handles multiple file requests, sent using multipart/form-data encoding type, as specified by RFC 1867.
33
+ *
34
+ * Please extend this type and provide it in an injector at the same level, or ancestral to that, of the `FileUploadComponent`.
35
+ */
36
+ declare abstract class FileUploadService {
37
+ /**
38
+ * Upload a list of selected files from the browser. The returned `Observable` array provides the update of the uploading progress
39
+ * through HTTP events.
40
+ */
41
+ abstract upload(files: File[]): Array<Observable<HttpEvent<FileUploadItem>>>;
42
+ /** List all the uploaded file items in the current HTTP session. This list excludes the files still in the process of being uploaded*/
43
+ abstract list(): Observable<FileUploadItem[]>;
44
+ /** Get the content of an uploaded file item as a `Blob`. */
45
+ abstract get(id: string): Observable<Blob>;
46
+ /** Delete an uploaded file item from the server. */
47
+ abstract delete(id: string): Observable<void>;
48
+ /** Delete all uploaded file items in the current HTTP session. */
49
+ abstract clear?(): Observable<void>;
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadService, never>;
51
+ static ɵprov: i0.ɵɵInjectableDeclaration<FileUploadService>;
52
+ }
53
+
54
+ /** @ignore */
55
+ declare class UploadingItem {
56
+ private oncancel?;
57
+ progress: number;
58
+ uploadedItem: FileUploadItem | null | undefined;
59
+ downloadingSubs?: Subscription;
60
+ private subscription;
61
+ private file?;
62
+ constructor(item: FileUploadItem, oncancel: (item: UploadingItem) => void);
63
+ constructor(event$: Observable<HttpEvent<FileUploadItem>> | FileUploadItem, file: File, oncomplete: () => void, oncancel: (item: UploadingItem) => void);
64
+ cancel(): void;
65
+ get done(): boolean;
66
+ get name(): string | undefined;
67
+ get downloading(): boolean | undefined;
68
+ }
69
+ /**
70
+ * A control value accessor component to provide the user interface for uploading files.
71
+ *
72
+ * The application that integrates this UI must provide an implementation of `FileUploadService`.
73
+ *
74
+ * The control's value is a list of alpha-numerical strings, which are the identifiers to the uploaded files.
75
+ *
76
+ * Example:
77
+ *
78
+ * ```html
79
+ * <form>
80
+ * <bui-file-upload [(ngModel)]="uploadedFileIds" name="myFiles"></bui-file-upload>
81
+ * </form>
82
+ * ```
83
+ *
84
+ * @see FileUploadService
85
+ */
86
+ declare class FileUploadComponent implements OnInit, OnDestroy, ControlValueAccessor {
87
+ private _service;
88
+ /** @ignore */
89
+ _value: string[] | null;
90
+ /**
91
+ * The caption of the button for opening file selection dialog.
92
+ */
93
+ uploadActionText: string;
94
+ /**
95
+ * The label for listing successful uploaded files.
96
+ */
97
+ fileUploadedLabel: string;
98
+ /**
99
+ * The text to be displayed when the user starts to drag file items over the browser window.
100
+ */
101
+ dragHint: string;
102
+ /**
103
+ * The text to be displayed when the user is dragging the file items over the drop zone.
104
+ */
105
+ dropHint: string;
106
+ /** Specifies the total number of files accepted. A falsy value removes the limit.*/
107
+ limit: number;
108
+ /**
109
+ * specify the number of maximum bytes that can be uploaded.
110
+ * if number is specified, bytes are assumed, otherwise enter a string for specific size type.
111
+ */
112
+ fileSize: number | string;
113
+ /**
114
+ * Accepted MIME types
115
+ *
116
+ * @example ['text/*', 'image/png']
117
+ */
118
+ get types(): string[];
119
+ set types(types: string[]);
120
+ /** @ignore */
121
+ _fileSizeExceedMsg: string;
122
+ /** @ignore */
123
+ _uploadingItems: UploadingItem[];
124
+ /** @ignore */
125
+ _accept: string;
126
+ /** @ignore */
127
+ _itemAnimationStart: Subject<void>;
128
+ /** @ignore */
129
+ _itemAnimationDone: Subject<void>;
130
+ /** @ignore */
131
+ _itemAnimationInProgress: boolean;
132
+ private _onChange;
133
+ private _onTouch;
134
+ private _frameDndEnter;
135
+ private _frameDndLeave;
136
+ private _frameDndOver;
137
+ private _frameDndStop;
138
+ private _overFrameCounter;
139
+ private _overCounter;
140
+ private _typeRegExps;
141
+ private _types;
142
+ private _initSubs?;
143
+ private _numberOfFilesDragged;
144
+ private _fileInput;
145
+ constructor(_service: FileUploadService);
146
+ /** @internal */
147
+ ngOnInit(): void;
148
+ ngOnDestroy(): void;
149
+ /** @internal */
150
+ writeValue(obj: any): void;
151
+ /** @internal */
152
+ registerOnChange(fn: any): void;
153
+ /** @internal */
154
+ registerOnTouched(fn: any): void;
155
+ /** @internal */
156
+ onDragEnter(event: DragEvent): void;
157
+ /** @internal */
158
+ onDragOver(event: Event): void;
159
+ /** @internal */
160
+ onDragLeave(event: Event): void;
161
+ /** @internal */
162
+ onDndDrop(event: DragEvent): void;
163
+ /** Open the file selection dialog */
164
+ selectFiles(): void;
165
+ /** @ignore */
166
+ _openItem(item: UploadingItem): void;
167
+ /** @ignore */
168
+ get _overFrame(): boolean;
169
+ /** @ignore */
170
+ get _overDropZone(): boolean;
171
+ /** Whether file uploading is in progress */
172
+ get uploading(): boolean;
173
+ /** The remaining number of files allowed.*/
174
+ get remaining(): number;
175
+ /** @ignore */
176
+ _handleFileSelection(): void;
177
+ /** @ignore */
178
+ get _invalidFilesDragged(): boolean;
179
+ /** @ignore */
180
+ get _initialising(): boolean;
181
+ private returnFileSize;
182
+ private _validateFileSize;
183
+ private _getMaxBytes;
184
+ private _uploadFiles;
185
+ private _onDndEnterFrame;
186
+ private _onDndLeaveFrame;
187
+ private _onDndStopFrame;
188
+ private _acceptChange;
189
+ private _updateItems;
190
+ private _deleteItem;
191
+ private _updateValue;
192
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadComponent, never>;
193
+ static ɵcmp: i0.ɵɵComponentDeclaration<FileUploadComponent, "bui-file-upload", never, { "uploadActionText": { "alias": "uploadActionText"; "required": false; }; "fileUploadedLabel": { "alias": "fileUploadedLabel"; "required": false; }; "dragHint": { "alias": "dragHint"; "required": false; }; "dropHint": { "alias": "dropHint"; "required": false; }; "limit": { "alias": "limit"; "required": false; }; "fileSize": { "alias": "fileSize"; "required": false; }; "types": { "alias": "types"; "required": false; }; }, {}, never, never, false, never>;
194
+ }
195
+
196
+ declare class FileUploadModule {
197
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileUploadModule, never>;
198
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FileUploadModule, [typeof FileUploadComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.IconFontModule, typeof i5.MatProgressBarModule, typeof i6.MatButtonModule, typeof i7.MatDividerModule, typeof i8.MatTooltipModule], [typeof FileUploadComponent]>;
199
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileUploadModule>;
200
+ }
201
+
202
+ export { FileUploadComponent, FileUploadItem, FileUploadModule, FileUploadService };
@@ -1,5 +1,51 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ElementRef, ModuleWithProviders } from '@angular/core';
3
+ import * as i3 from '@angular/material/form-field';
4
+ import { MatFormField } from '@angular/material/form-field';
5
+ import * as i2 from '@angular/common';
6
+ import * as i4 from '@angular/cdk/observers';
7
+
8
+ interface BuiFormFieldConfig {
9
+ appearance?: 'fill' | 'outline' | 'bound';
10
+ }
1
11
  /**
2
- * Generated bundle index. Do not edit.
12
+ * Container for form controls that applies Material Design styling and behavior.
13
+ *
14
+ * This component extends Angular Material's [mat-form-field](https://material.angular.io/components/form-field) and provides two additional appearances
15
+ * `bound` and `detach`. `bound` renders the label outside the outlined area of the field, while `detach` remove the borders all together. `detach`
16
+ * is generally used with form controls that render their own borders.
17
+ *
18
+ * ** IMPORTANT NOTICE **
19
+ *
20
+ * From version 3.0 onward, the selector `bui-form-field` is deprecated and will be removed in later releases. You no longer need to use this tag name
21
+ * for the new appearances. As long as you import the `NgModule` from this package, the new appearances will be supported by Material's `mat-form-field`
22
+ * component.
3
23
  */
4
- /// <amd-module name="@bravura/ui/form-field" />
5
- export * from './public-api';
24
+ declare class FormFieldComponent extends MatFormField {
25
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
26
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "bui-dummy-component", never, {}, {}, never, never, false, never>;
27
+ }
28
+ /**
29
+ * @ignore
30
+ */
31
+ declare class FormFieldStyleDirective {
32
+ private matFormField;
33
+ private elemRef;
34
+ private _appearance;
35
+ private _flowDetection;
36
+ /** The form field appearance style. */
37
+ get appearance(): any;
38
+ set appearance(value: any);
39
+ constructor(matFormField: MatFormField, elemRef: ElementRef<HTMLElement>, config: BuiFormFieldConfig);
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldStyleDirective, [{ host: true; }, null, null]>;
41
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FormFieldStyleDirective, "bui-form-field, mat-form-field", never, { "appearance": { "alias": "appearance"; "required": false; }; }, {}, never, never, false, never>;
42
+ }
43
+
44
+ declare class FormFieldModule {
45
+ static forConfig(config: BuiFormFieldConfig): ModuleWithProviders<FormFieldModule>;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
47
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, [typeof FormFieldComponent, typeof FormFieldStyleDirective], [typeof i2.CommonModule, typeof i3.MatFormFieldModule, typeof i4.ObserversModule], [typeof FormFieldComponent, typeof FormFieldStyleDirective, typeof i3.MatFormFieldModule]>;
48
+ static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
49
+ }
50
+
51
+ export { FormFieldComponent, FormFieldModule, FormFieldStyleDirective };
@@ -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.1.0",
4
+ "version": "7.0.0",
5
5
  "keywords": [
6
6
  "Angular",
7
7
  "Angular Material",
@@ -35,10 +35,18 @@
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"
41
45
  },
46
+ "./clip-note": {
47
+ "types": "./clip-note/index.d.ts",
48
+ "default": "./fesm2022/bravura-ui-clip-note.mjs"
49
+ },
42
50
  "./common": {
43
51
  "types": "./common/index.d.ts",
44
52
  "default": "./fesm2022/bravura-ui-common.mjs"
@@ -47,42 +55,42 @@
47
55
  "types": "./currency-input/index.d.ts",
48
56
  "default": "./fesm2022/bravura-ui-currency-input.mjs"
49
57
  },
50
- "./clip-note": {
51
- "types": "./clip-note/index.d.ts",
52
- "default": "./fesm2022/bravura-ui-clip-note.mjs"
58
+ "./decimal-input": {
59
+ "types": "./decimal-input/index.d.ts",
60
+ "default": "./fesm2022/bravura-ui-decimal-input.mjs"
53
61
  },
54
62
  "./discrete-input": {
55
63
  "types": "./discrete-input/index.d.ts",
56
64
  "default": "./fesm2022/bravura-ui-discrete-input.mjs"
57
65
  },
58
- "./form-field": {
59
- "types": "./form-field/index.d.ts",
60
- "default": "./fesm2022/bravura-ui-form-field.mjs"
61
- },
62
- "./decimal-input": {
63
- "types": "./decimal-input/index.d.ts",
64
- "default": "./fesm2022/bravura-ui-decimal-input.mjs"
65
- },
66
66
  "./file-upload": {
67
67
  "types": "./file-upload/index.d.ts",
68
68
  "default": "./fesm2022/bravura-ui-file-upload.mjs"
69
69
  },
70
+ "./form-field": {
71
+ "types": "./form-field/index.d.ts",
72
+ "default": "./fesm2022/bravura-ui-form-field.mjs"
73
+ },
70
74
  "./icon-font": {
71
75
  "types": "./icon-font/index.d.ts",
72
76
  "default": "./fesm2022/bravura-ui-icon-font.mjs"
73
77
  },
74
- "./phone-number": {
75
- "types": "./phone-number/index.d.ts",
76
- "default": "./fesm2022/bravura-ui-phone-number.mjs"
77
- },
78
78
  "./panel": {
79
79
  "types": "./panel/index.d.ts",
80
80
  "default": "./fesm2022/bravura-ui-panel.mjs"
81
81
  },
82
+ "./phone-number": {
83
+ "types": "./phone-number/index.d.ts",
84
+ "default": "./fesm2022/bravura-ui-phone-number.mjs"
85
+ },
82
86
  "./radio-panel": {
83
87
  "types": "./radio-panel/index.d.ts",
84
88
  "default": "./fesm2022/bravura-ui-radio-panel.mjs"
85
89
  },
90
+ "./radio-panel/testing": {
91
+ "types": "./radio-panel/testing/index.d.ts",
92
+ "default": "./fesm2022/bravura-ui-radio-panel-testing.mjs"
93
+ },
86
94
  "./selection-panel": {
87
95
  "types": "./selection-panel/index.d.ts",
88
96
  "default": "./fesm2022/bravura-ui-selection-panel.mjs"
@@ -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 };