@villedemontreal/angular-ui 19.0.1 → 20.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 (99) hide show
  1. package/fesm2022/villedemontreal-angular-ui.mjs +346 -335
  2. package/fesm2022/villedemontreal-angular-ui.mjs.map +1 -1
  3. package/index.d.ts +2385 -3
  4. package/package.json +5 -5
  5. package/lib/alert/alert.component.d.ts +0 -78
  6. package/lib/alert/index.d.ts +0 -2
  7. package/lib/alert/module.d.ts +0 -10
  8. package/lib/avatar/avatar.component.d.ts +0 -26
  9. package/lib/avatar/index.d.ts +0 -2
  10. package/lib/avatar/module.d.ts +0 -8
  11. package/lib/badge/badge.component.d.ts +0 -6
  12. package/lib/badge/index.d.ts +0 -2
  13. package/lib/badge/module.d.ts +0 -8
  14. package/lib/bao.module.d.ts +0 -28
  15. package/lib/breadcrumb/breadcrumb.component.d.ts +0 -12
  16. package/lib/breadcrumb/index.d.ts +0 -2
  17. package/lib/breadcrumb/module.d.ts +0 -9
  18. package/lib/button/button.component.d.ts +0 -47
  19. package/lib/button/index.d.ts +0 -2
  20. package/lib/button/module.d.ts +0 -9
  21. package/lib/card/card.component.d.ts +0 -44
  22. package/lib/card/index.d.ts +0 -2
  23. package/lib/card/module.d.ts +0 -8
  24. package/lib/checkbox/checkbox-group.component.d.ts +0 -25
  25. package/lib/checkbox/checkbox.component.d.ts +0 -152
  26. package/lib/checkbox/index.d.ts +0 -3
  27. package/lib/checkbox/module.d.ts +0 -11
  28. package/lib/common-components/error-text/errorText.component.d.ts +0 -5
  29. package/lib/common-components/guiding-text/guidingText.component.d.ts +0 -5
  30. package/lib/common-components/index.d.ts +0 -5
  31. package/lib/common-components/label-text/labelText.component.d.ts +0 -6
  32. package/lib/common-components/module.d.ts +0 -11
  33. package/lib/common-components/title-text/titleText.component.d.ts +0 -5
  34. package/lib/core/breakpoints.d.ts +0 -7
  35. package/lib/core/colors.d.ts +0 -12
  36. package/lib/core/index.d.ts +0 -2
  37. package/lib/dropdown-menu/dropdown-menu.component.d.ts +0 -174
  38. package/lib/dropdown-menu/index.d.ts +0 -2
  39. package/lib/dropdown-menu/module.d.ts +0 -11
  40. package/lib/file/file-input.component.d.ts +0 -123
  41. package/lib/file/file-intl.d.ts +0 -44
  42. package/lib/file/file-preview.component.d.ts +0 -31
  43. package/lib/file/index.d.ts +0 -4
  44. package/lib/file/module.d.ts +0 -13
  45. package/lib/header-info/header-info.component.d.ts +0 -39
  46. package/lib/header-info/index.d.ts +0 -2
  47. package/lib/header-info/module.d.ts +0 -8
  48. package/lib/hyperlink/hyperlink.component.d.ts +0 -18
  49. package/lib/hyperlink/index.d.ts +0 -2
  50. package/lib/hyperlink/module.d.ts +0 -8
  51. package/lib/icon/bao-icon-registry.d.ts +0 -12
  52. package/lib/icon/icon.component.d.ts +0 -44
  53. package/lib/icon/icons-dictionary.d.ts +0 -4
  54. package/lib/icon/index.d.ts +0 -2
  55. package/lib/icon/module.d.ts +0 -8
  56. package/lib/list/index.d.ts +0 -2
  57. package/lib/list/list.component.d.ts +0 -21
  58. package/lib/list/module.d.ts +0 -8
  59. package/lib/message-bar/index.d.ts +0 -2
  60. package/lib/message-bar/message-bar.component.d.ts +0 -28
  61. package/lib/message-bar/module.d.ts +0 -11
  62. package/lib/modal/index.d.ts +0 -6
  63. package/lib/modal/modal-config.d.ts +0 -116
  64. package/lib/modal/modal-container.d.ts +0 -105
  65. package/lib/modal/modal-directives.d.ts +0 -25
  66. package/lib/modal/modal-ref.d.ts +0 -104
  67. package/lib/modal/modal.d.ts +0 -90
  68. package/lib/modal/module.d.ts +0 -11
  69. package/lib/pagination/index.d.ts +0 -2
  70. package/lib/pagination/module.d.ts +0 -10
  71. package/lib/pagination/pagination.component.d.ts +0 -106
  72. package/lib/radio/index.d.ts +0 -3
  73. package/lib/radio/module.d.ts +0 -13
  74. package/lib/radio/radio-group.component.d.ts +0 -110
  75. package/lib/radio/radio.component.d.ts +0 -112
  76. package/lib/shared/enum/display-mode.d.ts +0 -4
  77. package/lib/shared/index.d.ts +0 -1
  78. package/lib/snack-bar/index.d.ts +0 -6
  79. package/lib/snack-bar/module.d.ts +0 -13
  80. package/lib/snack-bar/simple-snack-bar.component.d.ts +0 -51
  81. package/lib/snack-bar/snack-bar-animations.d.ts +0 -8
  82. package/lib/snack-bar/snack-bar-config.d.ts +0 -51
  83. package/lib/snack-bar/snack-bar-container.d.ts +0 -111
  84. package/lib/snack-bar/snack-bar-ref.d.ts +0 -51
  85. package/lib/snack-bar/snack-bar.d.ts +0 -89
  86. package/lib/summary/index.d.ts +0 -3
  87. package/lib/summary/list-summary.component.d.ts +0 -9
  88. package/lib/summary/module.d.ts +0 -10
  89. package/lib/summary/summary.component.d.ts +0 -47
  90. package/lib/system-header/index.d.ts +0 -2
  91. package/lib/system-header/module.d.ts +0 -9
  92. package/lib/system-header/system-header.component.d.ts +0 -42
  93. package/lib/tabs/index.d.ts +0 -2
  94. package/lib/tabs/module.d.ts +0 -8
  95. package/lib/tabs/tabs.component.d.ts +0 -95
  96. package/lib/tag/index.d.ts +0 -2
  97. package/lib/tag/module.d.ts +0 -8
  98. package/lib/tag/tag.component.d.ts +0 -25
  99. package/public-api.d.ts +0 -25
package/index.d.ts CHANGED
@@ -1,5 +1,2387 @@
1
+ import * as i0 from '@angular/core';
2
+ import { OnChanges, EventEmitter, SimpleChanges, OnDestroy, ElementRef, Renderer2, AfterContentInit, ChangeDetectorRef, AfterViewInit, ViewContainerRef, Injector, NgZone, ComponentRef, EmbeddedViewRef, InjectionToken, Type, TemplateRef, OnInit, QueryList, Optional } from '@angular/core';
3
+ import * as i2 from '@angular/common';
4
+ import { DomSanitizer } from '@angular/platform-browser';
5
+ import * as i3 from '@angular/cdk/observers';
6
+ import { ConfigurableFocusTrapFactory, FocusOrigin, InteractivityChecker, FocusMonitor, AriaLivePoliteness, LiveAnnouncer } from '@angular/cdk/a11y';
7
+ import * as i5 from '@angular/cdk/portal';
8
+ import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, DomPortal, ComponentType as ComponentType$1 } from '@angular/cdk/portal';
9
+ import { Direction } from '@angular/cdk/bidi';
10
+ import * as i4 from '@angular/cdk/overlay';
11
+ import { ScrollStrategy, OverlayRef, Overlay, OverlayContainer, ComponentType } from '@angular/cdk/overlay';
12
+ import { Observable, Subject } from 'rxjs';
13
+ import * as i4$1 from '@angular/forms';
14
+ import { ControlValueAccessor } from '@angular/forms';
15
+ import { UniqueSelectionDispatcher } from '@angular/cdk/collections';
16
+ import { AnimationEvent } from '@angular/animations';
17
+ import { Platform } from '@angular/cdk/platform';
18
+ import { BreakpointObserver } from '@angular/cdk/layout';
19
+
1
20
  /**
2
- * Generated bundle index. Do not edit.
21
+ * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
22
+ * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
23
+ * content block element may be used in its place.
24
+ *
25
+ * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
3
26
  */
4
- /// <amd-module name="@villedemontreal/angular-ui" />
5
- export * from './public-api';
27
+ /**
28
+ * Title of an alert, intended for use within `<bao-alert>`. This component is an optional
29
+ * convenience for one variety of alert title; any custom title element may be used in its place.
30
+ *
31
+ * BaoAlertTitle provides no behaviors, instead serving as a purely visual treatment.
32
+ */
33
+ declare class BaoAlertTitle {
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertTitle, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertTitle, "bao-alert-title", never, {}, {}, never, never, false, never>;
36
+ }
37
+ /**
38
+ * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
39
+ * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
40
+ * content block element may be used in its place.
41
+ *
42
+ * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
43
+ */
44
+ declare class BaoAlertContent {
45
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertContent, never>;
46
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertContent, "bao-alert-content", never, {}, {}, never, never, false, never>;
47
+ }
48
+ /**
49
+ * Bottom area of an alert that contains action buttons, intended for use within `<bao-alert>`.
50
+ * This component is an optional convenience for use with other convenience elements, such as
51
+ * `<bao-alert-content>`; any custom action block element may be used in its place.
52
+ *
53
+ * BaoAlertActions provides no behaviors, instead serving as a purely visual treatment.
54
+ */
55
+ declare class BaoAlertActions {
56
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertActions, never>;
57
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertActions, "bao-alert-actions", ["baoAlertActions"], {}, {}, never, never, false, never>;
58
+ }
59
+ /**
60
+ * Link inside an alert message, intended for use within `<bao-alert>`.
61
+ * This component is an optional convenience for use with other convenience elements, such as
62
+ * `<bao-alert-content>`; any custom action block element may be used in its place.
63
+ *
64
+ * BaoAlertLink provides no behaviors, instead serving as a purely visual treatment.
65
+ */
66
+ declare class BaoAlertLink {
67
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertLink, never>;
68
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertLink, "bao-alert-link", never, {}, {}, never, never, false, never>;
69
+ }
70
+ /**
71
+ * BAO alert component. Alerts should be used when the message concerns an
72
+ * external subject or a part of the page
73
+ *
74
+ * See https://zeroheight.com/575tugn0n/p/03c51f-messages-dalerte/t/80b47c
75
+ *
76
+ * BaoAlertComponent provides no behaviors, instead serving as a purely visual treatment.
77
+ */
78
+ declare class BaoAlertComponent implements OnChanges {
79
+ /**
80
+ * Alert type
81
+ */
82
+ type: 'success' | 'danger' | 'warning' | 'emergency' | 'info';
83
+ dismissible: boolean;
84
+ alertTypeTitle?: string;
85
+ dismissibleButtonAriaLabel?: string;
86
+ dismiss: EventEmitter<any>;
87
+ iconType: string;
88
+ iconTitle: string;
89
+ ngOnChanges(changes: SimpleChanges): void;
90
+ alertTypeIcon(value: string): any;
91
+ alertTitleIcon(value: string): any;
92
+ onDismissClicked(): void;
93
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertComponent, never>;
94
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "alertTypeTitle": { "alias": "alertTypeTitle"; "required": false; }; "dismissibleButtonAriaLabel": { "alias": "dismissibleButtonAriaLabel"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], false, never>;
95
+ }
96
+
97
+ declare const enum BaoColors {
98
+ ACTION = "action",
99
+ PRIMARY = "primary",
100
+ PRIMARY_REVERSED = "primary-reversed",
101
+ SECONDARY = "secondary",
102
+ TERTIARY = "tertiary",
103
+ INFORMATIVE = "informative",
104
+ NEGATIVE = "negative",
105
+ POSITIVE = "positive",
106
+ WARNING = "warning"
107
+ }
108
+
109
+ declare class BaoIconDictionary {
110
+ private document;
111
+ private domSanitizer;
112
+ constructor(document: any, domSanitizer: DomSanitizer);
113
+ getNamedSvgIcon(iconName: string): SVGElement;
114
+ private getRawIconStringFromIconName;
115
+ private svgElementFromString;
116
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconDictionary, never>;
117
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoIconDictionary>;
118
+ }
119
+
120
+ /**
121
+ * Component to display an icon. It can be used in the following ways:
122
+ *
123
+ * - Specify the svgIcon input to load an SVG icon from a preset list of icons.
124
+ * Examples:
125
+ * `<bao-icon svgIcon="heart"></bao-icon>`
126
+ */
127
+ declare class BaoIconComponent implements OnDestroy {
128
+ private elementRef;
129
+ private iconRegistry;
130
+ private renderer;
131
+ /** The color of the icon, if not specified the icon's parent current text color will be used */
132
+ color: BaoColors;
133
+ /**
134
+ * The size of the icon
135
+ */
136
+ size: 'medium' | 'small' | 'x-small' | 'xx-small';
137
+ private _svgIcon;
138
+ private _title;
139
+ private _titleId;
140
+ private _elementsWithExternalReferences?;
141
+ constructor(elementRef: ElementRef<HTMLElement>, iconRegistry: BaoIconDictionary, renderer: Renderer2);
142
+ /** Name of the icon in the SVG icon set. */
143
+ get svgIcon(): string;
144
+ /** Title that will be used as an aria-label for the icon */
145
+ get title(): string;
146
+ get hexColor(): string | void;
147
+ get titleId(): string;
148
+ set svgIcon(value: string);
149
+ set title(value: string);
150
+ ngOnDestroy(): void;
151
+ private setSvgElement;
152
+ private clearSvgElement;
153
+ private updateSvgIcon;
154
+ private addTitleToSVG;
155
+ private removeTitleAttributeFromHost;
156
+ private generateUniqueTitleId;
157
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, never>;
158
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "svgIcon": { "alias": "svgIcon"; "required": false; }; "title": { "alias": "title"; "required": false; }; }, {}, never, ["*"], false, never>;
159
+ }
160
+
161
+ declare class BaoIconModule {
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconModule, never>;
163
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoIconModule, [typeof BaoIconComponent], [typeof i2.CommonModule], [typeof BaoIconComponent]>;
164
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoIconModule>;
165
+ }
166
+
167
+ declare class BaoButtonComponent implements AfterContentInit {
168
+ private elementRef;
169
+ private cdr;
170
+ /**
171
+ * The display type of the button
172
+ */
173
+ displayType: 'utility' | 'editorial';
174
+ /**
175
+ * The hierarchy level of the button
176
+ */
177
+ level: 'primary' | 'secondary' | 'tertiary';
178
+ /**
179
+ * The size of the button
180
+ */
181
+ size: 'large' | 'medium' | 'small';
182
+ /**
183
+ * Flag to set the button in loading state
184
+ */
185
+ loading: boolean;
186
+ /**
187
+ * Flag to set the button reversed color mode
188
+ */
189
+ reversed: boolean;
190
+ /**
191
+ * The aria-label of the loading spinner if it displayed alone
192
+ */
193
+ loadingSpinnerAriaLabel: string;
194
+ /**
195
+ * Allows the button to grow to the width of it's container
196
+ */
197
+ fullWidth: boolean;
198
+ /**
199
+ * If there is no text, some margin/padding will be different, i.e. for the spinner
200
+ */
201
+ noText: boolean;
202
+ /**
203
+ * If the icon is on the right of the label, the loading spinner will need to be on the right of the label
204
+ */
205
+ rightIcon: boolean;
206
+ constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
207
+ get nativeElement(): HTMLElement;
208
+ ngAfterContentInit(): void;
209
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonComponent, never>;
210
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoButtonComponent, "button[bao-button]", never, { "displayType": { "alias": "displayType"; "required": false; }; "level": { "alias": "level"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "reversed": { "alias": "reversed"; "required": false; }; "loadingSpinnerAriaLabel": { "alias": "loadingSpinnerAriaLabel"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, {}, never, ["*"], false, never>;
211
+ }
212
+
213
+ declare class BaoButtonModule {
214
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonModule, never>;
215
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoButtonModule, [typeof BaoButtonComponent], [typeof i2.CommonModule, typeof BaoIconModule], [typeof BaoButtonComponent, typeof BaoIconModule]>;
216
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoButtonModule>;
217
+ }
218
+
219
+ declare class BaoAlertModule {
220
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertModule, never>;
221
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoAlertModule, [typeof BaoAlertTitle, typeof BaoAlertContent, typeof BaoAlertActions, typeof BaoAlertLink, typeof BaoAlertComponent], [typeof i2.CommonModule, typeof BaoIconModule, typeof BaoButtonModule], [typeof BaoAlertTitle, typeof BaoAlertContent, typeof BaoAlertActions, typeof BaoAlertLink, typeof BaoAlertComponent, typeof BaoIconModule, typeof BaoButtonModule]>;
222
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoAlertModule>;
223
+ }
224
+
225
+ declare class BaoAvatarContent {
226
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarContent, never>;
227
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAvatarContent, "bao-avatar-content, [bao-avatar-content]", ["baoAvatarContent"], {}, {}, never, never, false, never>;
228
+ }
229
+ declare class BaoAvatarComponent implements AfterViewInit {
230
+ private renderer;
231
+ private elementRef;
232
+ /**
233
+ * Name of the profile to be used as title of the avatar.
234
+ */
235
+ profileName: string;
236
+ /**
237
+ * ID of the background color to be used if avatar's content is text.
238
+ */
239
+ color: 'background-color-1' | 'background-color-2' | 'background-color-3' | 'background-color-4' | 'background-color-5' | 'background-color-6' | 'background-color-7' | 'background-color-8' | 'background-color-9' | 'background-color-10';
240
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
241
+ get nativeElement(): HTMLElement;
242
+ ngAfterViewInit(): void;
243
+ private addIcon;
244
+ private setProfileName;
245
+ private formatInitials;
246
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarComponent, never>;
247
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoAvatarComponent, "bao-avatar", never, { "profileName": { "alias": "profileName"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["bao-avatar-content, [bao-avatar-content]"], false, never>;
248
+ }
249
+
250
+ declare class BaoAvatarModule {
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarModule, never>;
252
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoAvatarModule, [typeof BaoAvatarComponent, typeof BaoAvatarContent], [typeof i2.CommonModule], [typeof BaoAvatarComponent, typeof BaoAvatarContent]>;
253
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoAvatarModule>;
254
+ }
255
+
256
+ declare class BaoBadgeComponent {
257
+ type: '' | 'success' | 'danger' | 'warning' | 'info';
258
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBadgeComponent, never>;
259
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoBadgeComponent, "bao-badge", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
260
+ }
261
+
262
+ declare class BaoBadgeModule {
263
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBadgeModule, never>;
264
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoBadgeModule, [typeof BaoBadgeComponent], [typeof i2.CommonModule], [typeof BaoBadgeComponent]>;
265
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoBadgeModule>;
266
+ }
267
+
268
+ /**
269
+ * A basic content container component that adds the styles of a BAO design card.
270
+ *
271
+ * While this component can be used alone, it also provides a number
272
+ * of preset styles for common card sections, including:
273
+ * * bao-card-body
274
+ * * bao-card-title
275
+ * * bao-card-bao-text-interface
276
+ * * More to come!
277
+ */
278
+ declare class BaoCardComponent {
279
+ padding: 'normal' | 'large';
280
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardComponent, never>;
281
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoCardComponent, "bao-card, [bao-card], [baoCard]", never, { "padding": { "alias": "padding"; "required": false; }; }, {}, never, ["bao-card-header", "bao-card-content"], false, never>;
282
+ }
283
+ /**
284
+ * Header of a card, needed as it's used as a selector in the API.
285
+ */
286
+ declare class BaoCardHeader {
287
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardHeader, never>;
288
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardHeader, "bao-card-header, [bao-card-header], [baoCardHeader]", never, {}, {}, never, never, false, never>;
289
+ }
290
+ /**
291
+ * Body of a card, needed as it's used as a selector in the API.
292
+ */
293
+ declare class BaoCardContent {
294
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardContent, never>;
295
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardContent, "bao-card-content, [bao-card-content], [baoCardContent]", never, {}, {}, never, never, false, never>;
296
+ }
297
+ /**
298
+ * Title of a card, needed as it's used as a selector in the API.
299
+ */
300
+ declare class BaoCardTitle {
301
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardTitle, never>;
302
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTitle, "bao-card-title, [bao-card-title], [baoCardTitle]", never, {}, {}, never, never, false, never>;
303
+ }
304
+ /**
305
+ * Text of a card, needed as it's used as a selector in the API.
306
+ */
307
+ declare class BaoCardTextInterface {
308
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardTextInterface, never>;
309
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTextInterface, "bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]", never, {}, {}, never, never, false, never>;
310
+ }
311
+
312
+ declare class BaoCardModule {
313
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardModule, never>;
314
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCardModule, [typeof BaoCardComponent, typeof BaoCardContent, typeof BaoCardHeader, typeof BaoCardTextInterface, typeof BaoCardTitle], [typeof i2.CommonModule], [typeof BaoCardComponent, typeof BaoCardContent, typeof BaoCardHeader, typeof BaoCardTextInterface, typeof BaoCardTitle]>;
315
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoCardModule>;
316
+ }
317
+
318
+ declare class BaoBreadcrumbComponent implements AfterViewInit {
319
+ private renderer;
320
+ private staticContainer;
321
+ constructor(renderer: Renderer2);
322
+ ngAfterViewInit(): void;
323
+ onContentChange(): void;
324
+ private setLastLinkAttribute;
325
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbComponent, never>;
326
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoBreadcrumbComponent, "bao-breadcrumb", never, {}, {}, never, ["*"], false, never>;
327
+ }
328
+
329
+ declare class BaoBreadcrumbModule {
330
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbModule, never>;
331
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoBreadcrumbModule, [typeof BaoBreadcrumbComponent], [typeof i2.CommonModule, typeof i3.ObserversModule], [typeof BaoBreadcrumbComponent]>;
332
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoBreadcrumbModule>;
333
+ }
334
+
335
+ declare const FILTER_MODAL_WIDTH = "360px";
336
+ declare enum eModalDesktopWidthSize {
337
+ SMALL = "bao-modal-sm",// 500px
338
+ MEDIUM = "bao-modal-md",// 800px
339
+ LARGE = "bao-modal-lg"
340
+ }
341
+ declare enum eModalVariant {
342
+ GLOBAL = "global",
343
+ FILTER = "filter"
344
+ }
345
+ declare enum eModalMobileWidthSize {
346
+ FULL = "bao-modal-mobil-full",// Full width on mobile screen
347
+ COMPACT = "bao-modal-mobil-compact"
348
+ }
349
+ interface BaoModalConfig {
350
+ size?: eModalDesktopWidthSize;
351
+ mobileSize?: eModalMobileWidthSize;
352
+ data?: unknown;
353
+ ariaLabelledBy?: string;
354
+ variant?: eModalVariant;
355
+ triggerElement?: ElementRef;
356
+ }
357
+ /** Options for where to set focus to automatically on dialog open */
358
+ type AutoFocusTarget = 'dialog' | 'modal' | 'first-tabbable' | 'first-heading';
359
+ /** Valid ARIA roles for a dialog element. */
360
+ type ModalRole = 'dialog' | 'alertdialog';
361
+ /** Possible overrides for a dialog's position. */
362
+ interface ModalPosition {
363
+ /** Override for the dialog's top position. */
364
+ top?: string;
365
+ /** Override for the dialog's bottom position. */
366
+ bottom?: string;
367
+ /** Override for the dialog's left position. */
368
+ left?: string;
369
+ /** Override for the dialog's right position. */
370
+ right?: string;
371
+ }
372
+ /**
373
+ * Configuration for opening a modal dialog with the BaoModal service.
374
+ */
375
+ declare class BaoModalInitialConfig<D = unknown> {
376
+ /**
377
+ * Where the attached component should live in Angular's *logical* component tree.
378
+ * This affects what is available for injection and the change detection order for the
379
+ * component instantiated inside of the dialog. This does not affect where the dialog
380
+ * content will be rendered.
381
+ */
382
+ viewContainerRef?: ViewContainerRef;
383
+ /**
384
+ * Injector used for the instantiation of the component to be attached. If provided,
385
+ * takes precedence over the injector indirectly provided by `ViewContainerRef`.
386
+ */
387
+ injector?: Injector;
388
+ /** ID for the dialog. If omitted, a unique one will be generated. */
389
+ id?: string;
390
+ /** The ARIA role of the dialog element. */
391
+ role?: ModalRole;
392
+ /** Custom class for the overlay pane. */
393
+ panelClass?: string | string[];
394
+ /** Whether the dialog has a backdrop. */
395
+ hasBackdrop?: boolean;
396
+ /** Custom class for the backdrop. */
397
+ backdropClass?: string | string[];
398
+ /** Whether the user can use escape or clicking on the backdrop to close the modal. */
399
+ disableClose?: boolean;
400
+ /** Width of the dialog. */
401
+ width?: string;
402
+ /** Height of the dialog. */
403
+ height?: string;
404
+ /** Min-width of the dialog. If a number is provided, assumes pixel units. */
405
+ minWidth?: number | string;
406
+ /** Min-height of the dialog. If a number is provided, assumes pixel units. */
407
+ minHeight?: number | string;
408
+ /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
409
+ maxWidth?: number | string;
410
+ /** Max-height of the dialog. If a number is provided, assumes pixel units. */
411
+ maxHeight?: number | string;
412
+ /** Position overrides. */
413
+ position?: ModalPosition;
414
+ /** Data being injected into the child component. */
415
+ data?: D | null;
416
+ /** Layout direction for the dialog's content. */
417
+ direction?: Direction;
418
+ /** ID of the element that describes the dialog. */
419
+ ariaDescribedBy?: string | null;
420
+ /** ID of the element that labels the dialog. */
421
+ ariaLabelledBy?: string | null;
422
+ /** Aria label to assign to the dialog element. */
423
+ ariaLabel?: string | null;
424
+ /** Modal variant (default or filter). */
425
+ variant?: eModalVariant;
426
+ /** Trigger element for connected positioning (used with filter variant). */
427
+ triggerElement?: ElementRef;
428
+ /**
429
+ * Where the dialog should focus on open.
430
+ */
431
+ autoFocus?: AutoFocusTarget;
432
+ /**
433
+ * Whether the dialog should restore focus to the
434
+ * previously-focused element, after it's closed.
435
+ */
436
+ restoreFocus?: boolean;
437
+ /** Whether to wait for the opening animation to finish before trapping focus. */
438
+ delayFocusTrap?: boolean;
439
+ /** Scroll strategy to be used for the dialog. */
440
+ scrollStrategy?: ScrollStrategy;
441
+ /**
442
+ * Whether the dialog should close when the user goes backwards/forwards in history.
443
+ * Note that this usually doesn't include clicking on links (unless the user is using
444
+ * the `HashLocationStrategy`).
445
+ */
446
+ closeOnNavigation?: boolean;
447
+ }
448
+
449
+ /** Event that captures the state of modal container animations. */
450
+ interface DialogAnimationEvent {
451
+ state: 'opened' | 'opening' | 'closing' | 'closed';
452
+ totalTime: number;
453
+ }
454
+ /**
455
+ * Throws an exception for the case when a ComponentPortal is
456
+ * attached to a DomPortalOutlet without an origin.
457
+ * @docs-private
458
+ */
459
+ declare function throwBaoModalContentAlreadyAttachedError(): void;
460
+ /**
461
+ * Base class for the `BaoModalContainer`. The base class does not implement
462
+ * animations as these are left to implementers of the modal container.
463
+ */
464
+ declare abstract class _BaoModalContainerBase extends BasePortalOutlet {
465
+ protected _elementRef: ElementRef;
466
+ protected _focusTrapFactory: ConfigurableFocusTrapFactory;
467
+ protected _changeDetectorRef: ChangeDetectorRef;
468
+ /** The modal configuration. */
469
+ _config: BaoModalInitialConfig;
470
+ private readonly _interactivityChecker;
471
+ private readonly _ngZone;
472
+ private _focusMonitor?;
473
+ /** The portal outlet inside of this container into which the modal content will be loaded. */
474
+ _portalOutlet: CdkPortalOutlet;
475
+ /** Emits when an animation state changes. */
476
+ _animationStateChanged: EventEmitter<DialogAnimationEvent>;
477
+ /**
478
+ * Type of interaction that led to the modal being closed. This is used to determine
479
+ * whether the focus style will be applied when returning focus to its original location
480
+ * after the modal is closed.
481
+ */
482
+ _closeInteractionType: FocusOrigin | null;
483
+ /** ID of the element that should be considered as the modal's label. */
484
+ _ariaLabelledBy: string | null;
485
+ /** ID for the container DOM element. */
486
+ _id: string;
487
+ protected _document: Document;
488
+ /** The class that traps and manages focus within the modal. */
489
+ private _focusTrap;
490
+ /** Element that was focused before the modal was opened. Save this to restore upon close. */
491
+ private _elementFocusedBeforeDialogWasOpened;
492
+ constructor(_elementRef: ElementRef, _focusTrapFactory: ConfigurableFocusTrapFactory, _changeDetectorRef: ChangeDetectorRef, _document: any,
493
+ /** The modal configuration. */
494
+ _config: BaoModalInitialConfig, _interactivityChecker: InteractivityChecker, _ngZone: NgZone, _focusMonitor?: FocusMonitor);
495
+ /** Initializes the modal container with the attached content. */
496
+ _initializeWithAttachedContent(): void;
497
+ /**
498
+ * Attach a ComponentPortal as content to this modal container.
499
+ */
500
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
501
+ /**
502
+ * Attach a TemplatePortal as content to this modal container.
503
+ */
504
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
505
+ /** Moves focus back into the modal if it was moved out. */
506
+ _recaptureFocus(): Promise<void>;
507
+ /**
508
+ * Moves the focus inside the focus trap. When autoFocus is not set to 'modal', if focus
509
+ * cannot be moved then focus will go to the modal container.
510
+ */
511
+ protected _trapFocus(): Promise<void>;
512
+ /** Restores focus to the element that was focused before the modal opened. */
513
+ protected _restoreFocus(): void;
514
+ /**
515
+ * Focuses the provided element. If the element is not focusable, it will add a tabIndex
516
+ * attribute to forcefully focus it. The attribute is removed after focus is moved.
517
+ */
518
+ private _forceFocus;
519
+ /**
520
+ * Focuses the first element that matches the given selector within the focus trap.
521
+ */
522
+ private _focusByCssSelector;
523
+ /** Sets up the focus trap. */
524
+ private _setupFocusTrap;
525
+ /** Captures the element that was focused before the modal was opened. */
526
+ private _capturePreviouslyFocusedElement;
527
+ /** Focuses the modal container. */
528
+ private _focusDialogContainer;
529
+ /** Returns whether focus is inside the modal. */
530
+ private _containsFocus;
531
+ /** Starts the modal exit animation. */
532
+ abstract _startExitAnimation(): void;
533
+ abstract _startOpenAnimation(): void;
534
+ static ɵfac: i0.ɵɵFactoryDeclaration<_BaoModalContainerBase, [null, null, null, { optional: true; }, null, null, null, null]>;
535
+ static ɵdir: i0.ɵɵDirectiveDeclaration<_BaoModalContainerBase, never, never, {}, {}, never, never, true, never>;
536
+ }
537
+ declare class BaoModalContainer extends _BaoModalContainerBase {
538
+ /** State of the modal animation. */
539
+ _state: 'void' | 'enter' | 'exit';
540
+ _startOpenAnimation(): void;
541
+ /** Starts the modal exit animation. */
542
+ _startExitAnimation(): void;
543
+ private _finishDialogOpen;
544
+ private _openAnimationDone;
545
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalContainer, never>;
546
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoModalContainer, "bao-modal-container", never, {}, {}, never, never, false, never>;
547
+ }
548
+
549
+ /** Possible states of the lifecycle of a modal. */
550
+ declare const enum BaoModalState {
551
+ OPEN = 0,
552
+ CLOSING = 1,
553
+ CLOSED = 2
554
+ }
555
+ /**
556
+ * Reference to a modal opened via the BaoModalService.
557
+ */
558
+ declare class BaoModalRef<T, R = unknown> {
559
+ private _overlayRef;
560
+ _containerInstance: _BaoModalContainerBase;
561
+ /** Id of the modal. */
562
+ readonly id: string;
563
+ /** The instance of component opened into the modal. */
564
+ componentInstance: T;
565
+ /** Whether the user is allowed to close the modal. */
566
+ disableClose: boolean | undefined;
567
+ /** Subject for notifying the user that the modal has finished opening. */
568
+ private readonly _afterOpened;
569
+ /** Subject for notifying the user that the modal has finished closing. */
570
+ private readonly _afterClosed;
571
+ /** Subject for notifying the user that the modal has started closing. */
572
+ private readonly _beforeClosed;
573
+ /** Result to be passed to afterClosed. */
574
+ private _result;
575
+ /** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
576
+ private _closeFallbackTimeout;
577
+ /** Current state of the modal. */
578
+ private _state;
579
+ constructor(_overlayRef: OverlayRef, _containerInstance: _BaoModalContainerBase,
580
+ /** Id of the modal. */
581
+ id?: string);
582
+ /**
583
+ * Close the modal.
584
+ * @param modalResult Optional result to return to the modal opener.
585
+ */
586
+ close(modalResult?: R): void;
587
+ startOpenAnimation(): void;
588
+ /**
589
+ * Gets an observable that is notified when the modal is finished opening.
590
+ */
591
+ afterOpened(): Observable<void>;
592
+ /**
593
+ * Gets an observable that is notified when the modal is finished closing.
594
+ */
595
+ afterClosed(): Observable<R | undefined>;
596
+ /**
597
+ * Gets an observable that is notified when the modal has started closing.
598
+ */
599
+ beforeClosed(): Observable<R | undefined>;
600
+ /**
601
+ * Gets an observable that emits when the overlay's backdrop has been clicked.
602
+ */
603
+ backdropClick(): Observable<MouseEvent>;
604
+ /**
605
+ * Gets an observable that emits when keydown events are targeted on the overlay.
606
+ */
607
+ keydownEvents(): Observable<KeyboardEvent>;
608
+ /**
609
+ * Updates the dialog's position.
610
+ */
611
+ updatePosition(position?: ModalPosition): this;
612
+ /**
613
+ * Updates the modal's width and height.
614
+ */
615
+ updateSize(width?: string, height?: string): this;
616
+ /** Add a CSS class or an array of classes to the overlay pane. */
617
+ addPanelClass(classes: string | string[]): this;
618
+ /** Remove a CSS class or an array of classes from the overlay pane. */
619
+ removePanelClass(classes: string | string[]): this;
620
+ /** Gets the current state of the modal's lifecycle. */
621
+ getState(): BaoModalState;
622
+ /**
623
+ * Finishes the modal close by updating the state of the modal
624
+ * and disposing the overlay.
625
+ */
626
+ private _finishModalClose;
627
+ /** Fetches the position strategy object from the overlay ref. */
628
+ private _getPositionStrategy;
629
+ /**
630
+ * Applies the position strategy to the overlay.
631
+ *
632
+ * This method sets the position of the modal based on the provided `position` configuration.
633
+ * It determines whether to apply the position to the vertical or horizontal axis based on the
634
+ * `axis` parameter.
635
+ *
636
+ * @param position The position configuration for the modal.
637
+ * @param strategy The position strategy to be applied.
638
+ * @param axis The axis to apply the position (`'horizontal' | 'vertical'`)
639
+ */
640
+ private applyPositionStrategy;
641
+ }
642
+ /**
643
+ * Closes the modal with the specified interaction type. This is currently not part of
644
+ * `BaoModalRef` as that would conflict with custom modal ref mocks provided in tests.
645
+ * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
646
+ */
647
+ declare function _closeModalVia<R>(ref: BaoModalRef<R>, interactionType: FocusOrigin, result?: R): void;
648
+
649
+ /** Injection token that can be used to access the data that was passed in to a modal. */
650
+ declare const BAO_MODAL_DATA: InjectionToken<unknown>;
651
+ declare abstract class BaoModalBase<C extends _BaoModalContainerBase> implements OnDestroy {
652
+ private _overlay;
653
+ private _injector;
654
+ private _parentModal;
655
+ private _overlayContainer;
656
+ private _modalRefConstructor;
657
+ private _modalContainerType;
658
+ private _modalDataToken;
659
+ readonly afterAllClosed: Observable<void>;
660
+ private _openModalsAtThisLevel;
661
+ private readonly _afterAllClosedAtThisLevel;
662
+ private readonly _afterOpenedAtThisLevel;
663
+ private _ariaHiddenElements;
664
+ private _modalAnimatingOpen;
665
+ private _animationStateSubscriptions;
666
+ private _lastModalRef;
667
+ constructor(_overlay: Overlay, _injector: Injector, _parentModal: BaoModalBase<C> | undefined, _overlayContainer: OverlayContainer, _modalRefConstructor: Type<BaoModalRef<unknown>>, _modalContainerType: Type<C>, _modalDataToken: InjectionToken<unknown>);
668
+ /** Keeps track of the currently-open modals. */
669
+ get openModals(): BaoModalRef<unknown>[];
670
+ /** Stream that emits when a modal has been opened. */
671
+ get afterOpened(): Subject<BaoModalRef<unknown>>;
672
+ getAfterAllClosed(): Subject<void>;
673
+ /**
674
+ * Opens a modal modal containing the given template.
675
+ */
676
+ open<T>(componentOrTemplateRef: ComponentType<T> | TemplateRef<T>, config?: BaoModalConfig): BaoModalRef<unknown>;
677
+ /**
678
+ * Closes all of the currently-open modals.
679
+ */
680
+ closeAll(): void;
681
+ /**
682
+ * Finds an open modal by its id.
683
+ */
684
+ getModalById(id: string): BaoModalRef<unknown> | undefined;
685
+ ngOnDestroy(): void;
686
+ /**
687
+ * Creates the overlay into which the modal will be loaded.
688
+ */
689
+ private _createOverlay;
690
+ /**
691
+ * Creates an overlay config from a modal config.
692
+ */
693
+ private _getOverlayConfig;
694
+ /**
695
+ * Attaches a modal container to a modal's already-created overlay.
696
+ */
697
+ private _attachModalContainer;
698
+ /**
699
+ * Attaches the user-provided component to the already-created modal container.
700
+ */
701
+ private _attachModalContent;
702
+ /**
703
+ * Creates a custom injector to be used inside the modal. This allows a component loaded inside
704
+ * of a modal to close itself and, optionally, to return a value.
705
+ */
706
+ private _createInjector;
707
+ /**
708
+ * Removes a modal from the array of open modals.
709
+ */
710
+ private _removeOpenModal;
711
+ /**
712
+ * Hides all of the content that isn't an overlay from assistive technology.
713
+ */
714
+ private _hideNonModalContentFromAssistiveTechnology;
715
+ /** Closes all of the modals in an array. */
716
+ private _closeModals;
717
+ /**
718
+ * Applies default options to the modal config.
719
+ */
720
+ private _applyConfigDefaults;
721
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalBase<any>, never>;
722
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoModalBase<any>, never, never, {}, {}, never, never, true, never>;
723
+ }
724
+ /**
725
+ * Service to open modal.
726
+ */
727
+ declare class BaoModal extends BaoModalBase<BaoModalContainer> {
728
+ constructor(overlay: Overlay, injector: Injector, parentModal: BaoModal, overlayContainer: OverlayContainer);
729
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModal, [null, null, { optional: true; skipSelf: true; }, null]>;
730
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoModal>;
731
+ }
732
+
733
+ /**
734
+ * Button that will close the current dialog.
735
+ */
736
+ declare class BaoModalClose implements OnInit, OnChanges {
737
+ modalRef: BaoModalRef<unknown> | null;
738
+ private _elementRef;
739
+ private _dialog;
740
+ /** Screenreader label for the button. */
741
+ ariaLabel: string;
742
+ /** Default to "button" to prevents accidental form submits. */
743
+ type: 'submit' | 'button' | 'reset';
744
+ /** Dialog close input. */
745
+ dialogResult: unknown;
746
+ _baoModalClose: unknown;
747
+ constructor(modalRef: BaoModalRef<unknown> | null, _elementRef: ElementRef<HTMLElement>, _dialog: BaoModal);
748
+ ngOnInit(): void;
749
+ ngOnChanges(changes: SimpleChanges): void;
750
+ _onButtonClick(event: MouseEvent): void;
751
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalClose, [{ optional: true; }, null, null]>;
752
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoModalClose, "[bao-modal-close], [baoModalClose]", ["BaoModalClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "bao-modal-close"; "required": false; }; "_baoModalClose": { "alias": "baoModalClose"; "required": false; }; }, {}, never, never, false, never>;
753
+ }
754
+
755
+ declare class BaoModalModule {
756
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModalModule, never>;
757
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModalModule, [typeof BaoModalContainer, typeof BaoModalClose], [typeof i2.CommonModule, typeof i4.OverlayModule, typeof i5.PortalModule], [typeof BaoModalContainer, typeof BaoModalClose]>;
758
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoModalModule>;
759
+ }
760
+
761
+ declare class BaoTagComponent implements AfterViewInit {
762
+ private renderer;
763
+ private elementRef;
764
+ /**
765
+ * The color of the tag.
766
+ */
767
+ type: 'neutral' | 'info' | 'positive' | 'alert' | 'negative';
768
+ /**
769
+ * The shade of the tags color.
770
+ */
771
+ variant: 'light' | 'strong';
772
+ /**
773
+ * The hidden text for screen readers.
774
+ */
775
+ hiddenText: string;
776
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
777
+ get nativeElement(): HTMLElement;
778
+ ngAfterViewInit(): void;
779
+ private addHiddenText;
780
+ private addIconClass;
781
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTagComponent, never>;
782
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoTagComponent, "bao-tag, [bao-tag], [baoTag]", never, { "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "hiddenText": { "alias": "hiddenText"; "required": false; }; }, {}, never, ["bao-icon", "*"], false, never>;
783
+ }
784
+
785
+ declare class BaoTagModule {
786
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTagModule, never>;
787
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoTagModule, [typeof BaoTagComponent], [typeof i2.CommonModule], [typeof BaoTagComponent]>;
788
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoTagModule>;
789
+ }
790
+
791
+ /**
792
+ * A basic content container component that adds the styles of a BAO header-info
793
+ *
794
+ * While this component can be used alone, it also provides a number
795
+ * of preset styles for common header-info sections, including:
796
+ * - bao-header-info-title-group
797
+ * - bao-header-info-content
798
+ * - bao-header-info-title
799
+ * - bao-header-info-surtitle
800
+ * - bao-header-info-subtitle
801
+ */
802
+ declare class BaoHeaderInfoComponent {
803
+ notch: '' | 'left' | 'center';
804
+ imageUrl: string;
805
+ brandBorder: boolean;
806
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoComponent, never>;
807
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoHeaderInfoComponent, "bao-header-info", never, { "notch": { "alias": "notch"; "required": false; }; "imageUrl": { "alias": "imageUrl"; "required": false; }; "brandBorder": { "alias": "brandBorder"; "required": false; }; }, {}, never, ["bao-header-info-title-group", "*"], false, never>;
808
+ }
809
+ declare class BaoHeaderInfoTitleGroupComponent {
810
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoTitleGroupComponent, never>;
811
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoHeaderInfoTitleGroupComponent, "bao-header-info-title-group", never, {}, {}, never, ["*", "bao-header-surtitle, [bao-header-surtitle], [baoHeaderSurtitle], \n bao-header-title, [bao-header-title], [baoHeaderTitle],\n bao-header-subtitle, [bao-header-subtitle], [baoHeaderSubtitle]"], false, never>;
812
+ }
813
+ declare class BaoHeaderInfoContent {
814
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoContent, never>;
815
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoContent, "bao-header-info-content", never, {}, {}, never, never, false, never>;
816
+ }
817
+ declare class BaoHeaderInfoSurtitle {
818
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoSurtitle, never>;
819
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSurtitle, "bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]", never, {}, {}, never, never, false, never>;
820
+ }
821
+ declare class BaoHeaderInfoSubtitle {
822
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoSubtitle, never>;
823
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSubtitle, "bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]", never, {}, {}, never, never, false, never>;
824
+ }
825
+ declare class BaoHeaderInfoTitle {
826
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoTitle, never>;
827
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoTitle, "bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]", never, {}, {}, never, never, false, never>;
828
+ }
829
+
830
+ declare class BaoHeaderInfoModule {
831
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoModule, never>;
832
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoHeaderInfoModule, [typeof BaoHeaderInfoComponent, typeof BaoHeaderInfoContent, typeof BaoHeaderInfoTitleGroupComponent, typeof BaoHeaderInfoSubtitle, typeof BaoHeaderInfoSurtitle, typeof BaoHeaderInfoTitle], [typeof i2.CommonModule], [typeof BaoHeaderInfoComponent, typeof BaoHeaderInfoContent, typeof BaoHeaderInfoTitleGroupComponent, typeof BaoHeaderInfoSubtitle, typeof BaoHeaderInfoSurtitle, typeof BaoHeaderInfoTitle]>;
833
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoHeaderInfoModule>;
834
+ }
835
+
836
+ declare class BaoListItem {
837
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItem, never>;
838
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoListItem, "bao-list-item, [bao-list-item]", never, {}, {}, never, ["baoIconItemType, [baoIconItemType]", "*", "bao-tag, [bao-tag], baoIconTag, [baoIconTag]", "bao-button, [bao-button], bao-dropdown-menu, [bao-dropdown-menu]"], false, never>;
839
+ }
840
+ declare class BaoList {
841
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoList, never>;
842
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoList, "bao-list, [bao-list]", never, {}, {}, never, never, false, never>;
843
+ }
844
+ declare class BaoNavList {
845
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoNavList, never>;
846
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoNavList, "bao-nav-list, [bao-nav-list]", never, {}, {}, never, never, false, never>;
847
+ }
848
+ declare class BaoListItemDescription {
849
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItemDescription, never>;
850
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemDescription, "bao-list-item-description, [bao-list-item-description]", never, {}, {}, never, never, false, never>;
851
+ }
852
+ declare class BaoListItemTitle {
853
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItemTitle, never>;
854
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemTitle, "bao-list-item-title, [bao-list-item-title]", never, {}, {}, never, never, false, never>;
855
+ }
856
+
857
+ declare class BaoListModule {
858
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListModule, never>;
859
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoListModule, [typeof BaoListItem, typeof BaoList, typeof BaoNavList, typeof BaoListItemDescription, typeof BaoListItemTitle], [typeof i2.CommonModule], [typeof BaoListItem, typeof BaoList, typeof BaoNavList, typeof BaoListItemDescription, typeof BaoListItemTitle]>;
860
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoListModule>;
861
+ }
862
+
863
+ declare class BaoErrorTextComponent {
864
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoErrorTextComponent, never>;
865
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoErrorTextComponent, "bao-error, [bao-error]", never, {}, {}, never, ["*"], false, never>;
866
+ }
867
+
868
+ declare class BaoGuidingTextComponent {
869
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoGuidingTextComponent, never>;
870
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoGuidingTextComponent, "bao-guiding-text, [bao-guiding-text]", never, {}, {}, never, ["*"], false, never>;
871
+ }
872
+
873
+ declare class BaoLabelTextComponent {
874
+ required: boolean;
875
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoLabelTextComponent, never>;
876
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoLabelTextComponent, "bao-label, [bao-label]", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, ["*"], false, never>;
877
+ }
878
+
879
+ declare class BaoTitleTextComponent {
880
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTitleTextComponent, never>;
881
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoTitleTextComponent, "bao-title-text, [bao-title-text]", never, {}, {}, never, ["*"], false, never>;
882
+ }
883
+
884
+ declare class BaoCommonComponentsModule {
885
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCommonComponentsModule, never>;
886
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCommonComponentsModule, [typeof BaoErrorTextComponent, typeof BaoGuidingTextComponent, typeof BaoLabelTextComponent, typeof BaoTitleTextComponent], [typeof i2.CommonModule], [typeof BaoErrorTextComponent, typeof BaoGuidingTextComponent, typeof BaoLabelTextComponent, typeof BaoTitleTextComponent]>;
887
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoCommonComponentsModule>;
888
+ }
889
+
890
+ /**
891
+ * Checkbox state for aria-checked property
892
+ */
893
+ declare const enum eCheckboxAriaState {
894
+ TRUE = "true",
895
+ FALSE = "false",
896
+ MIXED = "mixed"
897
+ }
898
+ declare class BaoCheckboxComponent implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy {
899
+ private elementRef;
900
+ private cdr;
901
+ private focusMonitor;
902
+ /**
903
+ * The checkbox ID. It is set dynamically with an unique ID by default
904
+ */
905
+ id: string;
906
+ /**
907
+ * The aria-label for web accessibility
908
+ */
909
+ ariaLabel?: string;
910
+ /**
911
+ * Whether the checkbox has a border and is considered as a card.
912
+ */
913
+ brandBorder: boolean;
914
+ /**
915
+ * Whether the checkbox is inline.
916
+ */
917
+ inline: boolean;
918
+ /**
919
+ * The name property of the checkbox
920
+ */
921
+ name?: string;
922
+ /**
923
+ * The visible state of the label
924
+ */
925
+ hiddenLabel: boolean;
926
+ /**
927
+ * Emitted object on change event
928
+ */
929
+ readonly change: EventEmitter<boolean>;
930
+ /**
931
+ * Inderminate value of the checkbox whenever
932
+ */
933
+ readonly indeterminateChange: EventEmitter<boolean>;
934
+ /**
935
+ * Reference to the input html element
936
+ */
937
+ private inputElement;
938
+ /**
939
+ * The aria-describedby id for web accessibilty
940
+ */
941
+ ariaDescribedby?: string;
942
+ /**
943
+ * The aria-labeledby id for web accessibilty
944
+ */
945
+ ariaLabelledby?: string;
946
+ /**
947
+ * The ID of the input html element
948
+ */
949
+ inputID: string;
950
+ private _disabled;
951
+ private _checked;
952
+ private _indeterminate;
953
+ private _uniqueId;
954
+ private _required;
955
+ constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor);
956
+ /**
957
+ * Whether the checkbox is checked. Default value : false
958
+ */
959
+ get checked(): boolean;
960
+ /**
961
+ * Whether the checkbox is disabled. Default value : false
962
+ */
963
+ get disabled(): boolean;
964
+ /**
965
+ * Whether the checkbox is required. Default value : false
966
+ */
967
+ get required(): boolean;
968
+ /**
969
+ * Whether the checkbox is indeterminate. Default value : false
970
+ */
971
+ get indeterminate(): boolean;
972
+ get nativeElement(): HTMLElement;
973
+ set checked(value: boolean);
974
+ set disabled(value: boolean);
975
+ set required(value: boolean);
976
+ set indeterminate(value: boolean);
977
+ ngOnInit(): void;
978
+ ngAfterViewInit(): void;
979
+ ngOnDestroy(): void;
980
+ /**
981
+ * Implement ControlValueAccessor
982
+ */
983
+ writeValue(value: any): void;
984
+ /**
985
+ * Implement ControlValueAccessor
986
+ */
987
+ registerOnChange(fn: (value: any) => void): void;
988
+ /**
989
+ * Implement ControlValueAccessor
990
+ */
991
+ registerOnTouched(fn: any): void;
992
+ /**
993
+ * Implement ControlValueAccessor
994
+ */
995
+ setDisabledState(isDisabled: boolean): void;
996
+ focus(origin?: FocusOrigin, options?: FocusOptions): void;
997
+ /**
998
+ * Whenever there is change on the input html element
999
+ */
1000
+ onInteractionEvent(event: Event): void;
1001
+ /**
1002
+ * Whenever there is click event triggered on the checkbox
1003
+ */
1004
+ onInputClick(event: Event): void;
1005
+ /**
1006
+ * Get the value for the aria-checked property (web accessibility)
1007
+ */
1008
+ getAriaState(): eCheckboxAriaState;
1009
+ /**
1010
+ * Emit new values whenever the checkbox object has change.
1011
+ */
1012
+ private emitChangeEvent;
1013
+ /**
1014
+ * Set the checked property on the input html element
1015
+ */
1016
+ private syncChecked;
1017
+ /**
1018
+ * Set the indeterminate property on the input html element
1019
+ */
1020
+ private syncIndeterminate;
1021
+ /**
1022
+ * Set the aria-describedby property to bao-checkbox-description
1023
+ */
1024
+ private setAriaDescribedByToDescription;
1025
+ /**
1026
+ * Set checked value
1027
+ */
1028
+ private toggle;
1029
+ private onModelChange;
1030
+ private onTouch;
1031
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxComponent, never>;
1032
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxComponent, "bao-checkbox, [bao-checkbox]", never, { "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "brandBorder": { "alias": "brandBorder"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "name": { "alias": "name"; "required": false; }; "hiddenLabel": { "alias": "hiddenLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*", "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]"], false, never>;
1033
+ }
1034
+ declare class BaoCheckBoxDescription {
1035
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckBoxDescription, never>;
1036
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCheckBoxDescription, "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", never, {}, {}, never, never, false, never>;
1037
+ }
1038
+
1039
+ declare class BaoCheckboxGroupComponent implements AfterViewInit {
1040
+ private cdr;
1041
+ /**
1042
+ * The checkbox group ID. It is set dynamically with an unique ID by default
1043
+ */
1044
+ id: string;
1045
+ private staticContainer;
1046
+ /**
1047
+ * The aria-describedby id for web accessibilty
1048
+ */
1049
+ ariaDescribedby?: string;
1050
+ private _uniqueId;
1051
+ constructor(cdr: ChangeDetectorRef);
1052
+ ngAfterViewInit(): void;
1053
+ onContentChange(): void;
1054
+ /**
1055
+ * Set the aria-describedby property to bao-guiding-text if available
1056
+ */
1057
+ private setAriaDescribedByToDescription;
1058
+ private showAriaDescribedBy;
1059
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxGroupComponent, never>;
1060
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxGroupComponent, "bao-checkbox-group, [bao-checkbox-group]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
1061
+ }
1062
+
1063
+ declare class BaoCheckboxModule {
1064
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxModule, never>;
1065
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCheckboxModule, [typeof BaoCheckboxComponent, typeof BaoCheckboxGroupComponent, typeof BaoCheckBoxDescription], [typeof i2.CommonModule, typeof BaoCommonComponentsModule, typeof i3.ObserversModule], [typeof BaoCheckboxComponent, typeof BaoCheckboxGroupComponent, typeof BaoCheckBoxDescription]>;
1066
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoCheckboxModule>;
1067
+ }
1068
+
1069
+ /**
1070
+ * We have to inject the radio button group and all its children to each child.
1071
+ */
1072
+ declare const BAO_RADIO_GROUP: InjectionToken<BaoRadioButtonGroupComponent>;
1073
+ declare class BaoRadioButtonGroupComponent implements AfterContentInit, ControlValueAccessor, AfterViewInit {
1074
+ private cdr;
1075
+ /**
1076
+ * The checkbox group ID. It is set dynamically with an unique ID by default
1077
+ */
1078
+ id: string;
1079
+ /**
1080
+ * Emit the value of the selected radio button
1081
+ */
1082
+ readonly change: EventEmitter<string>;
1083
+ private staticContainer;
1084
+ /**
1085
+ * The aria-describedby for web accessibilty
1086
+ */
1087
+ ariaDescribedby: string | null;
1088
+ private _radios;
1089
+ private _value;
1090
+ private _name;
1091
+ private _selected;
1092
+ private _isInitialized;
1093
+ private _disabled;
1094
+ private _required;
1095
+ private _uniqueId;
1096
+ constructor(cdr: ChangeDetectorRef);
1097
+ /**
1098
+ * Define the name property of all radio buttons. Default : null
1099
+ */
1100
+ get name(): string | null;
1101
+ /**
1102
+ * Define the value of the selected radio button. Default : null
1103
+ */
1104
+ get value(): string | null;
1105
+ /**
1106
+ * Define which radio button is selected. Default : null
1107
+ */
1108
+ get selected(): BaoRadioButtonComponent | null;
1109
+ /**
1110
+ * Whether the radio button groupd is disabled. Default : false
1111
+ */
1112
+ get disabled(): boolean;
1113
+ /**
1114
+ * Whether the radio button groupd is required. Default : false
1115
+ */
1116
+ get required(): boolean;
1117
+ set name(value: string | null);
1118
+ set value(newValue: string | null);
1119
+ set selected(selected: BaoRadioButtonComponent | null);
1120
+ set disabled(value: boolean);
1121
+ set required(value: boolean);
1122
+ ngAfterContentInit(): void;
1123
+ ngAfterViewInit(): void;
1124
+ /**
1125
+ * Implement ControlValueAccessor
1126
+ */
1127
+ writeValue(value: string): void;
1128
+ /**
1129
+ * Implement ControlValueAccessor
1130
+ */
1131
+ registerOnChange(fn: (value: any) => void): void;
1132
+ /**
1133
+ * Implement ControlValueAccessor
1134
+ */
1135
+ registerOnTouched(fn: any): void;
1136
+ /**
1137
+ * Implement ControlValueAccessor
1138
+ */
1139
+ setDisabledState(isDisabled: boolean): void;
1140
+ /**
1141
+ * onTouch() called from the button children
1142
+ */
1143
+ onGroupTouch(): void;
1144
+ /**
1145
+ * Update all radio button name
1146
+ */
1147
+ updateRadioButtonNames(): void;
1148
+ /**
1149
+ * Define which radio button is selected.
1150
+ */
1151
+ updateSelectedRadioFromValue(): void;
1152
+ /**
1153
+ * Update checked property on selected radio button
1154
+ */
1155
+ checkSelectedRadioButton(): void;
1156
+ /**
1157
+ * Emit the value of the new selected radio button
1158
+ */
1159
+ emitChangeEvent(): void;
1160
+ /**
1161
+ * Call markForCheck function on all radio buttons since one of the parent inputs could't have change meanwhile. Prevent change detection error.
1162
+ */
1163
+ markRadiosForCheck(): void;
1164
+ onContentChange(): void;
1165
+ onModelChange: (value: any) => void;
1166
+ /**
1167
+ * Set the aria-describedby property to bao-guiding-text if available
1168
+ */
1169
+ private setAriaDescribedByToDescription;
1170
+ private showAriaDescribedBy;
1171
+ private onTouch;
1172
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonGroupComponent, never>;
1173
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": { "alias": "id"; "required": false; }; "name": { "alias": "name"; "required": false; }; "value": { "alias": "value"; "required": false; }; "selected": { "alias": "selected"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, ["staticContainer"], ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
1174
+ }
1175
+
1176
+ declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, OnDestroy {
1177
+ private elementRef;
1178
+ private cdr;
1179
+ private focusMonitor;
1180
+ private radioDispatcher;
1181
+ /**
1182
+ * The radio button ID. It is set dynamically with an unique ID by default
1183
+ */
1184
+ id: string;
1185
+ /**
1186
+ * The aria-label for web accessibility
1187
+ */
1188
+ ariaLabel: string | null;
1189
+ /**
1190
+ * Whether the radio button has a border and is considered as a card.
1191
+ */
1192
+ brandBorder: boolean;
1193
+ /**
1194
+ * Whether the radio button is inline.
1195
+ */
1196
+ inline: boolean;
1197
+ /**
1198
+ * The name property of the radio button
1199
+ */
1200
+ name: string | null;
1201
+ /**
1202
+ * The visible state of the label
1203
+ */
1204
+ hiddenLabel: boolean;
1205
+ /**
1206
+ * Emitted boolean on change
1207
+ */
1208
+ readonly change: EventEmitter<string>;
1209
+ /**
1210
+ * Reference to the input html element
1211
+ */
1212
+ private inputElement;
1213
+ /**
1214
+ * The radio buttons group
1215
+ */
1216
+ radioGroup: BaoRadioButtonGroupComponent;
1217
+ /**
1218
+ * The aria-describedby id for web accessibilty
1219
+ */
1220
+ ariaDescribedby: string | null;
1221
+ /**
1222
+ * The aria-labeledby id for web accessibilty
1223
+ */
1224
+ ariaLabelledby: string | null;
1225
+ /**
1226
+ * The ID of the input html element
1227
+ */
1228
+ inputID: string;
1229
+ private _checked;
1230
+ private _disabled;
1231
+ private _required;
1232
+ private _value;
1233
+ private _uniqueId;
1234
+ constructor(radioGroup: BaoRadioButtonGroupComponent, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor, radioDispatcher: UniqueSelectionDispatcher);
1235
+ /**
1236
+ * Whether the radio button is checked. Default : false
1237
+ */
1238
+ get checked(): boolean;
1239
+ /**
1240
+ * Define the radio button value. Default : null
1241
+ */
1242
+ get value(): string;
1243
+ /**
1244
+ * Whether the radio button is disabled. Default : false
1245
+ */
1246
+ get disabled(): boolean;
1247
+ /**
1248
+ * Whether the radio button is required. Default : false
1249
+ */
1250
+ get required(): boolean;
1251
+ get nativeElement(): HTMLElement;
1252
+ set checked(value: boolean);
1253
+ set value(value: string);
1254
+ set disabled(value: boolean);
1255
+ set required(value: boolean);
1256
+ focus(options?: FocusOptions, origin?: FocusOrigin): void;
1257
+ /**
1258
+ * Method called from the parent as one of the parent input has changed. Prevent change detection error.
1259
+ */
1260
+ markForCheck(): void;
1261
+ ngOnInit(): void;
1262
+ ngAfterViewInit(): void;
1263
+ ngOnDestroy(): void;
1264
+ /**
1265
+ * Emit the new value from the selected radio-button and the parent
1266
+ */
1267
+ onInputInteraction(event: Event): void;
1268
+ private emitChangeEvent;
1269
+ private setDisabled;
1270
+ /**
1271
+ * Set the id property to bao-radio-button-description as a description to the input
1272
+ */
1273
+ private setAriaDescribedByToDescription;
1274
+ /** Unregister function for radioDispatcher */
1275
+ private _removeUniqueSelectionListener;
1276
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonComponent, [{ optional: true; }, null, null, null, null]>;
1277
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonComponent, "bao-radio-button, [bao-radio-button]", never, { "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "brandBorder": { "alias": "brandBorder"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "name": { "alias": "name"; "required": false; }; "hiddenLabel": { "alias": "hiddenLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "value": { "alias": "value"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; }, { "change": "change"; }, never, ["*", "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]"], false, never>;
1278
+ }
1279
+ declare class BaoRadioDescription {
1280
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioDescription, never>;
1281
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoRadioDescription, "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]", never, {}, {}, never, never, false, never>;
1282
+ }
1283
+
1284
+ declare class BaoRadioModule {
1285
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioModule, never>;
1286
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoRadioModule, [typeof BaoRadioButtonComponent, typeof BaoRadioDescription, typeof BaoRadioButtonGroupComponent], [typeof i2.CommonModule, typeof i4$1.FormsModule, typeof i4$1.ReactiveFormsModule, typeof BaoCommonComponentsModule, typeof BaoButtonModule, typeof i3.ObserversModule], [typeof BaoRadioButtonComponent, typeof BaoRadioDescription, typeof BaoRadioButtonGroupComponent]>;
1287
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoRadioModule>;
1288
+ }
1289
+
1290
+ declare const enum EDisplayMode {
1291
+ COMPACT = "compact",
1292
+ RESPONSIVE = "responsive"
1293
+ }
1294
+
1295
+ declare class BaoSummaryComponent implements OnInit, AfterViewInit {
1296
+ private elementRef;
1297
+ /**
1298
+ * Set display mode
1299
+ * RESPONSIVE (viewport width <=> is 576px)
1300
+ * COMPACT (viewport width < 576px)
1301
+ */
1302
+ displayMode: EDisplayMode;
1303
+ /**
1304
+ * Set value of unique ID for bao-label
1305
+ */
1306
+ id: string;
1307
+ /**
1308
+ * The aria-describebdy-error id for web accessibility
1309
+ * only when error section appears
1310
+ */
1311
+ ariaDescribedbyError?: string;
1312
+ /**
1313
+ * The aria-describebdy-text id for web accessibility
1314
+ * only when we have de guidance text
1315
+ */
1316
+ ariaDescribedbyGuidingText?: string;
1317
+ /**
1318
+ * The aria-labelledby id for web accessibility
1319
+ */
1320
+ ariaLabelledby?: string;
1321
+ /**
1322
+ * Initialize the ID for summary
1323
+ */
1324
+ private _uniqueId;
1325
+ private attribues;
1326
+ constructor(elementRef: ElementRef<HTMLElement>);
1327
+ get nativeElement(): HTMLElement;
1328
+ ngOnInit(): void;
1329
+ ngAfterViewInit(): void;
1330
+ setAriaDescribedByToDescription(): void;
1331
+ private elementNode;
1332
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryComponent, never>;
1333
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoSummaryComponent, "bao-summary, [bao-summary], [baoSummary]", never, { "displayMode": { "alias": "displayMode"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["bao-label", "bao-guiding-text, [bao-guiding-text]", "bao-title-text, [bao-title-text]", "bao-summary-description", "bao-list-summary, [bao-list-summary], [baoListSummary]", "button[bao-button]", "bao-error, [bao-error]"], false, never>;
1334
+ }
1335
+ declare class BaoSummaryDescription {
1336
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryDescription, never>;
1337
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoSummaryDescription, "bao-summary-description, [bao-summary-description], [baoSummaryDescription]", never, {}, {}, never, never, false, never>;
1338
+ }
1339
+
1340
+ declare class BaoListSummaryItem {
1341
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummaryItem, never>;
1342
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummaryItem, "bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]", never, {}, {}, never, ["*"], false, never>;
1343
+ }
1344
+ declare class BaoListSummary {
1345
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummary, never>;
1346
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummary, "bao-list-summary, [bao-list-summary], [baoListSummary]", never, {}, {}, never, ["*"], false, never>;
1347
+ }
1348
+
1349
+ declare class BaoSummaryModule {
1350
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryModule, never>;
1351
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoSummaryModule, [typeof BaoSummaryComponent, typeof BaoSummaryDescription, typeof BaoListSummary, typeof BaoListSummaryItem], [typeof i2.CommonModule, typeof BaoCommonComponentsModule], [typeof BaoSummaryComponent, typeof BaoSummaryDescription, typeof BaoListSummary, typeof BaoListSummaryItem]>;
1352
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoSummaryModule>;
1353
+ }
1354
+
1355
+ declare class BaoTabHeader implements AfterViewInit {
1356
+ private renderer;
1357
+ private elementRef;
1358
+ /**
1359
+ * Emits its index when tab is clicked
1360
+ */
1361
+ onTabClick: EventEmitter<string>;
1362
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1363
+ get nativeElement(): HTMLElement;
1364
+ onClick(el: HTMLElement): void;
1365
+ ngAfterViewInit(): void;
1366
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabHeader, never>;
1367
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabHeader, "bao-tab-header, [bao-tab-header]", ["baoTabHeader"], {}, { "onTabClick": "onTabClick"; }, never, never, false, never>;
1368
+ }
1369
+ declare class BaoTabPanel implements AfterViewInit {
1370
+ private renderer;
1371
+ private elementRef;
1372
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1373
+ get nativeElement(): HTMLElement;
1374
+ ngAfterViewInit(): void;
1375
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabPanel, never>;
1376
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabPanel, "bao-panel, [bao-panel]", ["baoPanel"], {}, {}, never, never, false, never>;
1377
+ }
1378
+ declare class BaoTablistComponent implements AfterViewInit, AfterContentInit, OnDestroy {
1379
+ private renderer;
1380
+ private elementRef;
1381
+ tabHeaders: QueryList<BaoTabHeader>;
1382
+ /**
1383
+ * Size of the tabs displayed
1384
+ */
1385
+ size: 'small' | 'medium' | 'large';
1386
+ /**
1387
+ * Optionnal value to be used as aria-label property on tablist component
1388
+ */
1389
+ ariaLabel: string;
1390
+ /**
1391
+ * Emits the index of the new active tab
1392
+ */
1393
+ activeTabChange: EventEmitter<string>;
1394
+ /**
1395
+ * Index of the tab that is currently active
1396
+ */
1397
+ private activeTabIndex;
1398
+ /**
1399
+ * Unique ID for every instance of BaoTablist component
1400
+ */
1401
+ private uniqueId;
1402
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1403
+ get nativeElement(): HTMLElement;
1404
+ get tabs(): HTMLCollection;
1405
+ leftKeyEvent(): void;
1406
+ rightKeyEvent(): void;
1407
+ /**
1408
+ * Makes the focus visible on tab header when changing from mouse to keyboard navigation
1409
+ */
1410
+ tabKeyEvent(): void;
1411
+ /**
1412
+ * Makes the focus visible on tab header when changing from mouse to keyboard navigation
1413
+ */
1414
+ tabShiftKeyEvent(): void;
1415
+ ngAfterViewInit(): void;
1416
+ ngAfterContentInit(): void;
1417
+ ngOnDestroy(): void;
1418
+ private setTablistAttributes;
1419
+ private setInitialActiveTab;
1420
+ private changeActiveTab;
1421
+ /**
1422
+ * Finds the next activable tab index when navigating with left and right arrow keys
1423
+ * @param currentIndex Tab index which currently has focus
1424
+ * @param isRight Whether the tab navigation is going in the right direction or not
1425
+ * @returns Index of the new tab that will receive focus
1426
+ */
1427
+ private getNextActivableTabIndex;
1428
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTablistComponent, never>;
1429
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoTablistComponent, "bao-tablist, [bao-tablist]", never, { "size": { "alias": "size"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, ["tabHeaders"], ["*"], false, never>;
1430
+ }
1431
+ declare class BaoTabsContainer implements AfterViewInit, AfterContentInit, OnDestroy {
1432
+ private renderer;
1433
+ private elementRef;
1434
+ tablist: BaoTablistComponent;
1435
+ private panelIdPrefix;
1436
+ private tabIdPrefix;
1437
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1438
+ get tabs(): HTMLCollection;
1439
+ get panels(): NodeListOf<Element>;
1440
+ ngAfterViewInit(): void;
1441
+ ngAfterContentInit(): void;
1442
+ ngOnDestroy(): void;
1443
+ private setInitialActivePanel;
1444
+ private changeActivePanel;
1445
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsContainer, never>;
1446
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabsContainer, "bao-tabs, [bao-tabs]", ["baoTabs"], {}, {}, ["tablist"], never, false, never>;
1447
+ }
1448
+
1449
+ declare class BaoTabsModule {
1450
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsModule, never>;
1451
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoTabsModule, [typeof BaoTabsContainer, typeof BaoTablistComponent, typeof BaoTabHeader, typeof BaoTabPanel], [typeof i2.CommonModule], [typeof BaoTabsContainer, typeof BaoTablistComponent, typeof BaoTabHeader, typeof BaoTabPanel]>;
1452
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoTabsModule>;
1453
+ }
1454
+
1455
+ declare class BaoHyperlinkComponent implements AfterViewInit {
1456
+ private renderer;
1457
+ private elementRef;
1458
+ /**
1459
+ * Size of the link when it's in a list.
1460
+ */
1461
+ size?: 'extra-small' | 'small' | 'medium';
1462
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1463
+ get nativeElement(): HTMLElement;
1464
+ ngAfterViewInit(): void;
1465
+ private addTabIndex;
1466
+ private setIcon;
1467
+ private addIconClass;
1468
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHyperlinkComponent, never>;
1469
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoHyperlinkComponent, "bao-hyperlink, [bao-hyperlink]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], false, never>;
1470
+ }
1471
+
1472
+ declare class BaoHyperlinkModule {
1473
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoHyperlinkModule, never>;
1474
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoHyperlinkModule, [typeof BaoHyperlinkComponent], [typeof i2.CommonModule], [typeof BaoHyperlinkComponent]>;
1475
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoHyperlinkModule>;
1476
+ }
1477
+
1478
+ declare class BaoDropdownMenuService {
1479
+ readonly itemClicked$: Observable<void>;
1480
+ private readonly itemClickedSource;
1481
+ constructor();
1482
+ close(): void;
1483
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuService, never>;
1484
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoDropdownMenuService>;
1485
+ }
1486
+ declare class BaoDropdownMenuItem implements AfterViewInit, OnChanges {
1487
+ private renderer;
1488
+ private elementRef;
1489
+ private _parent;
1490
+ private baoDropdownMenuService;
1491
+ /**
1492
+ * Is the list item disabled
1493
+ */
1494
+ disabled: boolean;
1495
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, _parent: BaoDropdownMenuComponent, baoDropdownMenuService: BaoDropdownMenuService);
1496
+ get nativeElement(): HTMLElement;
1497
+ spaceKeyEvent(): void;
1498
+ onClick(el: HTMLElement): void;
1499
+ enterKeyEvent(): void;
1500
+ ngAfterViewInit(): void;
1501
+ ngOnChanges(changes: SimpleChanges): void;
1502
+ /** Regroups label and description in a new div to help with layout */
1503
+ private addContentDiv;
1504
+ private addPaddingClass;
1505
+ private disableItem;
1506
+ /**
1507
+ * This method propagates a click event to menu item children with inputs (checkbox, radio button).
1508
+ * It emits event to close menu if item does not contain an input.
1509
+ */
1510
+ private propagateClick;
1511
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItem, never>;
1512
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItem, "bao-dropdown-menu-item, [bao-dropdown-menu-item]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
1513
+ }
1514
+ declare class BaoDropdownMenuComponent implements AfterViewInit {
1515
+ private cdr;
1516
+ private renderer;
1517
+ private elementRef;
1518
+ baoDropdownMenuService: BaoDropdownMenuService;
1519
+ /**
1520
+ * Fired when the dropdown-menu changes its 'isOpen' value
1521
+ */
1522
+ isOpenChange: EventEmitter<boolean>;
1523
+ /**
1524
+ * Fired when menu is closed by key event triggered from menu item
1525
+ */
1526
+ isClosedByKeyEvent: EventEmitter<any>;
1527
+ /**
1528
+ * Content of menu to be loaded inside Overlay
1529
+ */
1530
+ _menuContent: ElementRef<HTMLElement>;
1531
+ /**
1532
+ * All list items inside menu
1533
+ */
1534
+ _listItems: QueryList<BaoDropdownMenuItem>;
1535
+ /**
1536
+ * Unique identifier of the dropdown menu
1537
+ */
1538
+ readonly menuId: string;
1539
+ /**
1540
+ * Is the dropwdown menu currently open
1541
+ */
1542
+ private _isOpen;
1543
+ /**
1544
+ * Reference to portal which is attached to Overlay
1545
+ */
1546
+ private _menuPortal;
1547
+ /**
1548
+ * Index of currently active list item
1549
+ */
1550
+ private _activeItemIndex;
1551
+ constructor(cdr: ChangeDetectorRef, renderer: Renderer2, elementRef: ElementRef<HTMLElement>, baoDropdownMenuService: BaoDropdownMenuService);
1552
+ get isOpen(): boolean;
1553
+ get activeItemIndex(): number;
1554
+ get menuPortal(): DomPortal;
1555
+ get nativeElement(): HTMLElement;
1556
+ get service(): BaoDropdownMenuService;
1557
+ set isOpen(isOpen: boolean);
1558
+ set activeItemIndex(index: number);
1559
+ upKeyEvent(): void;
1560
+ downKeyEvent(): void;
1561
+ /** Prevents focus to be lost when TAB has reached end of menu */
1562
+ tabKeyEvent(): void;
1563
+ tabUpKeyEvent(): void;
1564
+ /** Prevents focus to be lost when SHIFT + TAB has reached beginning of menu */
1565
+ shiftTabKeyEvent(event: KeyboardEvent): void;
1566
+ ngAfterViewInit(): void;
1567
+ open(): void;
1568
+ close(): void;
1569
+ focus(): void;
1570
+ /** Move the aria-current attribute to new active page */
1571
+ setNavigationAttribute(activePageElement: HTMLElement): void;
1572
+ private focusNextItem;
1573
+ /**
1574
+ * Finds the next activable tab index when navigating with up and down arrow or TAB keys
1575
+ * @param currentIndex List item index which currently has focus
1576
+ * @param isDown Whether the navigation is going in the down direction or not
1577
+ * @param isBackward If recursive function is going backward looking for last activable item in list
1578
+ * @returns Index of the next item that will receive focus
1579
+ */
1580
+ private getNextActivableItemIndex;
1581
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuComponent, never>;
1582
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuComponent, "bao-dropdown-menu", never, {}, { "isOpenChange": "isOpenChange"; "isClosedByKeyEvent": "isClosedByKeyEvent"; }, ["_listItems"], ["*"], false, never>;
1583
+ }
1584
+ /**
1585
+ * Directive to be applied on element that will trigger the opening and closing of menu.
1586
+ */
1587
+ declare class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy {
1588
+ private renderer;
1589
+ private elementRef;
1590
+ private overlay;
1591
+ menu: BaoDropdownMenuComponent | null;
1592
+ private _overlayRef;
1593
+ private _isMenuOpen;
1594
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, overlay: Overlay);
1595
+ get nativeElement(): HTMLElement;
1596
+ escapeKeyEvent(): void;
1597
+ onClick(): void;
1598
+ ngAfterViewInit(): void;
1599
+ ngOnDestroy(): void;
1600
+ private toggleMenu;
1601
+ private closeMenu;
1602
+ private openMenu;
1603
+ private createOverlay;
1604
+ private getOverlayConfig;
1605
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuTrigger, never>;
1606
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuTrigger, "bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]", never, { "menu": { "alias": "baoDropdownMenuTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
1607
+ }
1608
+ /**
1609
+ * Sections of list items in menu. Apply proper styling to section's title if there is one.
1610
+ */
1611
+ declare class BaoDropdownMenuSection implements AfterViewInit {
1612
+ private elementRef;
1613
+ private renderer;
1614
+ constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
1615
+ get nativeElement(): HTMLElement;
1616
+ ngAfterViewInit(): void;
1617
+ private insertTitle;
1618
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuSection, never>;
1619
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuSection, "bao-dropdown-menu-section, [bao-dropdown-menu-section]", never, {}, {}, never, never, false, never>;
1620
+ }
1621
+ /**
1622
+ * Label of a list item, add css class to apply proper styling.
1623
+ */
1624
+ declare class BaoDropdownMenuItemLabel {
1625
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemLabel, never>;
1626
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemLabel, "bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]", never, {}, {}, never, never, false, never>;
1627
+ }
1628
+ /**
1629
+ * Description of a list item, add css class to apply proper styling.
1630
+ */
1631
+ declare class BaoDropdownMenuItemDescription {
1632
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemDescription, never>;
1633
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemDescription, "bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]", never, {}, {}, never, never, false, never>;
1634
+ }
1635
+ /**
1636
+ * Divider to separate sections.
1637
+ */
1638
+ declare class BaoDropdownMenuDivider implements AfterContentInit {
1639
+ private renderer;
1640
+ private elementRef;
1641
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1642
+ get nativeElement(): HTMLElement;
1643
+ ngAfterContentInit(): void;
1644
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuDivider, never>;
1645
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuDivider, "bao-dropdown-menu-divider, [bao-dropdown-menu-divider]", never, {}, {}, never, never, false, never>;
1646
+ }
1647
+
1648
+ declare class BaoDropdownMenuModule {
1649
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuModule, never>;
1650
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoDropdownMenuModule, [typeof BaoDropdownMenuComponent, typeof BaoDropdownMenuTrigger, typeof BaoDropdownMenuItem, typeof BaoDropdownMenuSection, typeof BaoDropdownMenuItemLabel, typeof BaoDropdownMenuItemDescription, typeof BaoDropdownMenuDivider], [typeof i2.CommonModule, typeof i3.ObserversModule, typeof i4.OverlayModule, typeof i5.PortalModule], [typeof BaoDropdownMenuComponent, typeof BaoDropdownMenuTrigger, typeof BaoDropdownMenuItem, typeof BaoDropdownMenuSection, typeof BaoDropdownMenuItemLabel, typeof BaoDropdownMenuItemDescription, typeof BaoDropdownMenuDivider]>;
1651
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoDropdownMenuModule>;
1652
+ }
1653
+
1654
+ /**
1655
+ * To modify the labels and text displayed, create a new instance of BaoFileIntl and
1656
+ * include it in a custom provider
1657
+ */
1658
+ declare class BaoFileIntl {
1659
+ /**
1660
+ * Stream to emit from when labels are changed. Use this to notify components when the labels have
1661
+ * changed after initialization.
1662
+ */
1663
+ readonly changes: Subject<void>;
1664
+ /** The label for button in dropzone */
1665
+ dropzoneButtonLabel: string;
1666
+ /** The default dropzone instructions */
1667
+ defaultDropzoneInstructions: string;
1668
+ /** Error message displayed when uploaded file is too large */
1669
+ fileTooBigErrorMessage: string;
1670
+ /** Error message displayed when uploaded file has an invalid type */
1671
+ invalidFileTypeErrorMessage: string;
1672
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileIntl, never>;
1673
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoFileIntl>;
1674
+ }
1675
+ declare class BaoFileIntlEnglish extends BaoFileIntl {
1676
+ /** The label for button in dropzone */
1677
+ dropzoneButtonLabel: string;
1678
+ /** The default dropzone instructions */
1679
+ defaultDropzoneInstructions: string;
1680
+ /** Error message displayed when uploaded file is too large */
1681
+ fileTooBigErrorMessage: string;
1682
+ /** Error message displayed when uploaded file has an invalid type */
1683
+ invalidFileTypeErrorMessage: string;
1684
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileIntlEnglish, never>;
1685
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoFileIntlEnglish>;
1686
+ }
1687
+ /** @docs-private */
1688
+ declare function BAO_FILE_INTL_PROVIDER_FACTORY(parentIntl: BaoFileIntl): BaoFileIntl;
1689
+ /** @docs-private */
1690
+ declare const BAO_FILE_INTL_PROVIDER: {
1691
+ provide: typeof BaoFileIntl;
1692
+ deps: Optional[][];
1693
+ useFactory: typeof BAO_FILE_INTL_PROVIDER_FACTORY;
1694
+ };
1695
+
1696
+ declare class BaoFileInputComponent implements AfterContentInit, AfterViewInit, OnDestroy, ControlValueAccessor {
1697
+ intl: BaoFileIntl;
1698
+ private elementRef;
1699
+ private renderer;
1700
+ private cdr;
1701
+ /**
1702
+ * Id of the file input field
1703
+ */
1704
+ inputId?: string;
1705
+ /**
1706
+ * Label of field to be displayed above
1707
+ */
1708
+ label: string;
1709
+ /**
1710
+ * Size of the file input label
1711
+ */
1712
+ size: 'small' | 'medium';
1713
+ /**
1714
+ * Maximum size accepted for uploaded files
1715
+ */
1716
+ maximalFileSize: number;
1717
+ /**
1718
+ * Accepted types of files
1719
+ */
1720
+ acceptedMIMETypes: string[];
1721
+ /**
1722
+ * Is field required
1723
+ */
1724
+ required?: boolean;
1725
+ /**
1726
+ * Is field disabled
1727
+ */
1728
+ disabled?: boolean;
1729
+ /**
1730
+ * File selected to be uploaded
1731
+ */
1732
+ uploadedFile: EventEmitter<File>;
1733
+ /**
1734
+ * List of files that have been uploaded so far
1735
+ */
1736
+ private _files;
1737
+ /**
1738
+ * Form errors when component is used in a form
1739
+ */
1740
+ private _errorForm;
1741
+ /**
1742
+ * Error texts
1743
+ */
1744
+ private _errorTexts;
1745
+ /**
1746
+ * File input that triggers uploading when clicked
1747
+ */
1748
+ private uploader;
1749
+ private dropzoneElement;
1750
+ insertDefaultInstructions: boolean;
1751
+ isFileTooBig: boolean;
1752
+ isFileTypeInvalid: boolean;
1753
+ private _value;
1754
+ private _intlChanges;
1755
+ private _helperTextId;
1756
+ constructor(intl: BaoFileIntl, elementRef: ElementRef<HTMLElement>, renderer: Renderer2, cdr: ChangeDetectorRef);
1757
+ get nativeElement(): HTMLElement;
1758
+ enterKeyEvent(): void;
1759
+ tabKeyEvent(): void;
1760
+ shiftTabKeyEvent(): void;
1761
+ ngAfterContentInit(): void;
1762
+ ngAfterViewInit(): void;
1763
+ ngOnDestroy(): void;
1764
+ /**
1765
+ * Implements ControlValueAccessor interface
1766
+ */
1767
+ writeValue(obj: any): void;
1768
+ /**
1769
+ * Implements ControlValueAccessor interface
1770
+ */
1771
+ registerOnChange(fn: (value: any) => void): void;
1772
+ /**
1773
+ * Implements ControlValueAccessor interface
1774
+ */
1775
+ registerOnTouched(fn: any): void;
1776
+ /**
1777
+ * Implements ControlValueAccessor interface
1778
+ */
1779
+ setDisabledState(isDisabled: boolean): void;
1780
+ uploadFile(file: File): void;
1781
+ /**
1782
+ * Saves the registerOnChange function so the component can call it whenever it wants.
1783
+ */
1784
+ propagateChange: (_: any) => void;
1785
+ /**
1786
+ * Saves the registerOnTouched function so the component can call it whenever it wants.
1787
+ */
1788
+ propagateTouched: () => void;
1789
+ private setValue;
1790
+ private setDescribedByAttribute;
1791
+ private setErrorTextsAttribute;
1792
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileInputComponent, never>;
1793
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoFileInputComponent, "bao-file-input, [bao-file-input]", never, { "inputId": { "alias": "id"; "required": false; }; "label": { "alias": "label"; "required": false; }; "size": { "alias": "size"; "required": false; }; "maximalFileSize": { "alias": "maximalFileSize"; "required": false; }; "acceptedMIMETypes": { "alias": "acceptedMIMETypes"; "required": false; }; "required": { "alias": "required"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "uploadedFile": "uploadedFile"; }, ["_files", "_errorForm"], ["bao-guiding-text", "bao-file-dropzone-instructions", "bao-error", "*"], false, never>;
1794
+ }
1795
+ declare class BaoFileDropDirective {
1796
+ fileDrop: EventEmitter<File>;
1797
+ private _isDragOver;
1798
+ onDragOver(event: DragEvent): void;
1799
+ onDragLeave(event: DragEvent): void;
1800
+ onDrop(event: DragEvent): void;
1801
+ private preventAndStop;
1802
+ private getDataTransfer;
1803
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileDropDirective, never>;
1804
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoFileDropDirective, "[baoFileDrop]", never, {}, { "fileDrop": "fileDrop"; }, never, never, false, never>;
1805
+ }
1806
+ declare class BaoFileDropzoneIntructions implements AfterContentInit {
1807
+ private renderer;
1808
+ private elementRef;
1809
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
1810
+ get nativeElement(): HTMLElement;
1811
+ ngAfterContentInit(): void;
1812
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileDropzoneIntructions, never>;
1813
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoFileDropzoneIntructions, "bao-file-dropzone-instructions, [bao-file-dropzone-instructions]", never, {}, {}, never, never, false, never>;
1814
+ }
1815
+
1816
+ declare class BaoFilePreviewComponent {
1817
+ private elementRef;
1818
+ private renderer;
1819
+ get file(): File;
1820
+ /**
1821
+ * Uploaded file to display in list.
1822
+ */
1823
+ set file(f: File);
1824
+ /**
1825
+ * Is file loading
1826
+ */
1827
+ isLoading: boolean;
1828
+ /**
1829
+ * True if projected content has no icon and file does not have a thumbnail.
1830
+ */
1831
+ insertGenericIcon: boolean;
1832
+ thumbnailURL: string;
1833
+ protected _file: File;
1834
+ protected fileSize: string;
1835
+ constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
1836
+ private get nativeElement();
1837
+ private setFileData;
1838
+ private setIcon;
1839
+ private getThumbnail;
1840
+ private formatSize;
1841
+ private getSizeAndUnit;
1842
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFilePreviewComponent, never>;
1843
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoFilePreviewComponent, "bao-file-preview, [bao-file-preview]", never, { "file": { "alias": "file"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; }, {}, never, ["bao-icon", "button[bao-button]", "baoDropdownTriggerFor"], false, never>;
1844
+ }
1845
+
1846
+ declare class BaoFileModule {
1847
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileModule, never>;
1848
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoFileModule, [typeof BaoFileInputComponent, typeof BaoFileDropzoneIntructions, typeof BaoFileDropDirective, typeof BaoFilePreviewComponent], [typeof i2.CommonModule, typeof BaoDropdownMenuModule, typeof BaoCommonComponentsModule, typeof BaoIconModule, typeof BaoButtonModule], [typeof BaoFileInputComponent, typeof BaoFileDropzoneIntructions, typeof BaoFileDropDirective, typeof BaoFilePreviewComponent]>;
1849
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoFileModule>;
1850
+ }
1851
+
1852
+ /** Injection token that can be used to access the data that was passed in to a snack bar. */
1853
+ declare const BAO_SNACK_BAR_DATA: InjectionToken<any>;
1854
+ /** Possible values for horizontalPosition on MatSnackBarConfig. */
1855
+ type BaoSnackBarHorizontalPosition = 'start' | 'center' | 'end' | 'left' | 'right';
1856
+ /** Possible values for verticalPosition on MatSnackBarConfig. */
1857
+ type BaoSnackBarVerticalPosition = 'top' | 'bottom';
1858
+ /** Possible types of toast to display the snack bar */
1859
+ type BaoSnackBarToastType = 'info' | 'success' | 'danger';
1860
+ /**
1861
+ * Configuration used when opening a snack-bar.
1862
+ */
1863
+ declare class BaoSnackBarConfig<D = any> {
1864
+ /** The message to display in the snackbar. */
1865
+ message: string;
1866
+ /** The type of snackbar template to display. */
1867
+ toastType?: BaoSnackBarToastType;
1868
+ /**
1869
+ * The attached action to the snack bar. If the name of the action matches an icon provided as part of
1870
+ * angular-ui icon dictionnary an icon will be displayed instead of text.
1871
+ * */
1872
+ actionLabelOrIcon?: string;
1873
+ /** Displays the close button when set to true */
1874
+ showClose?: boolean;
1875
+ /** The length of time in milliseconds to wait before automatically dismissing the snack bar. */
1876
+ duration?: number;
1877
+ /** The politeness level for the MatAriaLiveAnnouncer announcement. */
1878
+ politeness?: AriaLivePoliteness;
1879
+ /**
1880
+ * Message to be announced by the LiveAnnouncer. When opening a snackbar without a custom
1881
+ * component or template, the announcement message will default to the specified message.
1882
+ */
1883
+ announcementMessage?: string;
1884
+ /**
1885
+ * The view container that serves as the parent for the snackbar for the purposes of dependency
1886
+ * injection. Note: this does not affect where the snackbar is inserted in the DOM.
1887
+ */
1888
+ viewContainerRef?: ViewContainerRef;
1889
+ /** Extra CSS classes to be added to the snack bar container. */
1890
+ panelClass?: string | string[];
1891
+ /** Text layout direction for the snack bar. */
1892
+ direction?: Direction;
1893
+ /** Data being injected into the child component. */
1894
+ data?: D | null;
1895
+ /** The horizontal position to place the snack bar. */
1896
+ horizontalPosition?: BaoSnackBarHorizontalPosition;
1897
+ /** The vertical position to place the snack bar. */
1898
+ verticalPosition?: BaoSnackBarVerticalPosition;
1899
+ }
1900
+
1901
+ /**
1902
+ * Internal interface for a snack bar container.
1903
+ * @docs-private
1904
+ */
1905
+ interface IBaoSnackBarContainer {
1906
+ snackBarConfig: BaoSnackBarConfig;
1907
+ _onAnnounce: Subject<any>;
1908
+ _onExit: Subject<any>;
1909
+ _onEnter: Subject<any>;
1910
+ enter: () => void;
1911
+ exit: () => Observable<void>;
1912
+ attachTemplatePortal: <C>(portal: TemplatePortal<C>) => EmbeddedViewRef<C>;
1913
+ attachComponentPortal: <T>(portal: ComponentPortal<T>) => ComponentRef<T>;
1914
+ }
1915
+ /**
1916
+ * Internal component that wraps user-provided snack bar content.
1917
+ * @docs-private
1918
+ */
1919
+ declare class BaoSnackBarContainerComponent extends BasePortalOutlet implements OnDestroy, IBaoSnackBarContainer {
1920
+ private _ngZone;
1921
+ private _elementRef;
1922
+ private _changeDetectorRef;
1923
+ private _platform;
1924
+ /** The snack bar configuration. */
1925
+ snackBarConfig: BaoSnackBarConfig;
1926
+ /** The portal outlet inside of this container into which the snack bar content will be loaded. */
1927
+ _portalOutlet: CdkPortalOutlet;
1928
+ private _document;
1929
+ private _trackedModals;
1930
+ /** Subject for notifying that the snack bar has announced to screen readers. */
1931
+ readonly _onAnnounce: Subject<void>;
1932
+ /** Subject for notifying that the snack bar has exited from view. */
1933
+ readonly _onExit: Subject<void>;
1934
+ /** Subject for notifying that the snack bar has finished entering the view. */
1935
+ readonly _onEnter: Subject<void>;
1936
+ /** The state of the snack bar animations. */
1937
+ _animationState: string;
1938
+ /** aria-live value for the live region. */
1939
+ _live: AriaLivePoliteness;
1940
+ /** The number of milliseconds to wait before announcing the snack bar's content. */
1941
+ private readonly _announceDelay;
1942
+ /** The timeout for announcing the snack bar's content. */
1943
+ private _announceTimeoutId;
1944
+ /** Whether the component has been destroyed. */
1945
+ private _destroyed;
1946
+ /**
1947
+ * Role of the live region. This is only for Firefox as there is a known issue where Firefox +
1948
+ * JAWS does not read out aria-live message.
1949
+ */
1950
+ _role?: 'status' | 'alert';
1951
+ /** Unique ID of the aria-live element. */
1952
+ readonly _liveElementId: string;
1953
+ constructor(_ngZone: NgZone, _elementRef: ElementRef<HTMLElement>, _changeDetectorRef: ChangeDetectorRef, _platform: Platform,
1954
+ /** The snack bar configuration. */
1955
+ snackBarConfig: BaoSnackBarConfig);
1956
+ /** Attach a component portal as content to this snack bar container. */
1957
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
1958
+ /** Attach a template portal as content to this snack bar container. */
1959
+ attachTemplatePortal<C>(portal: TemplatePortal<C>): EmbeddedViewRef<C>;
1960
+ /**
1961
+ * Attaches a DOM portal to the snack bar container.
1962
+ * @deprecated To be turned into a method.
1963
+ * @breaking-change 10.0.0
1964
+ */
1965
+ attachDomPortal: (portal: DomPortal) => void;
1966
+ /** Handle end of animations, updating the state of the snackbar. */
1967
+ onAnimationEnd(event: AnimationEvent): void;
1968
+ /** Begin animation of snack bar entrance into view. */
1969
+ enter(): void;
1970
+ /** Begin animation of the snack bar exiting from view. */
1971
+ exit(): Observable<void>;
1972
+ /** Makes sure the exit callbacks have been invoked when the element is destroyed. */
1973
+ ngOnDestroy(): void;
1974
+ /**
1975
+ * Waits for the zone to settle before removing the element. Helps prevent
1976
+ * errors where we end up removing an element which is in the middle of an animation.
1977
+ */
1978
+ private completeExit;
1979
+ /** Applies the various positioning and user-configured CSS classes to the snack bar. */
1980
+ private applySnackBarClasses;
1981
+ /**
1982
+ * Called after the portal contents have been attached. Can be
1983
+ * used to modify the DOM once it's guaranteed to be in place.
1984
+ */
1985
+ protected _afterPortalAttached(): void;
1986
+ /**
1987
+ * Some browsers won't expose the accessibility node of the live element if there is an
1988
+ * `aria-modal` and the live element is outside of it. This method works around the issue by
1989
+ * pointing the `aria-owns` of all modals to the live element.
1990
+ */
1991
+ private _exposeToModals;
1992
+ /** Clears the references to the live element from any modals it was added to. */
1993
+ private _clearFromModals;
1994
+ /** Asserts that no content is already attached to the container. */
1995
+ private assertNotAttached;
1996
+ /**
1997
+ * Starts a timeout to move the snack bar content to the live region so screen readers will
1998
+ * announce it.
1999
+ */
2000
+ private screenReaderAnnounce;
2001
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSnackBarContainerComponent, never>;
2002
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoSnackBarContainerComponent, "bao-snack-bar-container", never, {}, {}, never, never, false, never>;
2003
+ }
2004
+
2005
+ /** Event that is emitted when a snack bar is dismissed. */
2006
+ interface IBaoSnackBarDismiss {
2007
+ /** Whether the snack bar was dismissed using the action button. */
2008
+ dismissedByAction: boolean;
2009
+ }
2010
+ /**
2011
+ * Reference to a snack bar dispatched from the snack bar service.
2012
+ */
2013
+ declare class BaoSnackBarRef<T> {
2014
+ private _overlayRef;
2015
+ /** The instance of the component making up the content of the snack bar. */
2016
+ instance: T;
2017
+ /**
2018
+ * The instance of the component making up the content of the snack bar.
2019
+ * @docs-private
2020
+ */
2021
+ containerInstance: IBaoSnackBarContainer;
2022
+ /** Subject for notifying the user that the snack bar has been dismissed. */
2023
+ private readonly _afterDismissed;
2024
+ /** Subject for notifying the user that the snack bar has opened and appeared. */
2025
+ private readonly _afterOpened;
2026
+ /** Subject for notifying the user that the snack bar action was called. */
2027
+ private readonly _onAction;
2028
+ /**
2029
+ * Timeout ID for the duration setTimeout call. Used to clear the timeout if the snackbar is
2030
+ * dismissed before the duration passes.
2031
+ */
2032
+ private _durationTimeoutId;
2033
+ /** Whether the snack bar was dismissed using the action button. */
2034
+ private _dismissedByAction;
2035
+ constructor(containerInstance: IBaoSnackBarContainer, _overlayRef: OverlayRef);
2036
+ /** Dismisses the snack bar. */
2037
+ dismiss(): void;
2038
+ /** Marks the snackbar action clicked. */
2039
+ dismissWithAction(): void;
2040
+ /** Dismisses the snack bar after some duration */
2041
+ dismissAfter(duration: number): void;
2042
+ /** Marks the snackbar as opened */
2043
+ open(): void;
2044
+ /** Gets an observable that is notified when the snack bar is finished closing. */
2045
+ afterDismissed(): Observable<IBaoSnackBarDismiss>;
2046
+ /** Gets an observable that is notified when the snack bar has opened and appeared. */
2047
+ afterOpened(): Observable<void>;
2048
+ /** Gets an observable that is notified when the snack bar action is called. */
2049
+ onAction(): Observable<void>;
2050
+ /** Cleans up the DOM after closing. */
2051
+ private finishDismiss;
2052
+ }
2053
+
2054
+ /**
2055
+ * Interface for a simple snack bar component that has a message and a single action.
2056
+ */
2057
+ interface ITextOnlySnackBar {
2058
+ data: {
2059
+ message: string;
2060
+ toastType: BaoSnackBarToastType;
2061
+ actionLabelOrIcon: string;
2062
+ showClose: boolean;
2063
+ };
2064
+ snackBarRef: BaoSnackBarRef<ITextOnlySnackBar>;
2065
+ action: () => void;
2066
+ hasAction: boolean;
2067
+ }
2068
+ /**
2069
+ * A component used to open as the default snack bar, matching material spec.
2070
+ * This should only be used internally by the snack bar service.
2071
+ */
2072
+ declare class BaoSimpleSnackBarComponent implements ITextOnlySnackBar {
2073
+ snackBarRef: BaoSnackBarRef<BaoSimpleSnackBarComponent>;
2074
+ showCloseTitle: string;
2075
+ /** Data that was injected into the snack bar. */
2076
+ data: {
2077
+ message: string;
2078
+ toastType: BaoSnackBarToastType;
2079
+ actionLabelOrIcon: string;
2080
+ showClose: boolean;
2081
+ };
2082
+ constructor(snackBarRef: BaoSnackBarRef<BaoSimpleSnackBarComponent>, data: any);
2083
+ /** Returns the politeness */
2084
+ get politeness(): string;
2085
+ /** Returns the toast class */
2086
+ get toastClass(): string;
2087
+ /** Returns the toast icon */
2088
+ get toastIcon(): string;
2089
+ /** Returns the toast icon title */
2090
+ get toastIconTitle(): string;
2091
+ /** If the action button should be shown. */
2092
+ get hasAction(): boolean;
2093
+ /** If the action is an icon */
2094
+ get isActionIcon(): boolean;
2095
+ /** Performs the action on the snack bar. */
2096
+ action(): void;
2097
+ /** Closes the snack bar. */
2098
+ close(): void;
2099
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSimpleSnackBarComponent, never>;
2100
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoSimpleSnackBarComponent, "bao-simple-snack-bar", never, {}, {}, never, never, false, never>;
2101
+ }
2102
+
2103
+ declare class BaoSnackBarModule {
2104
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSnackBarModule, never>;
2105
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoSnackBarModule, [typeof BaoSimpleSnackBarComponent, typeof BaoSnackBarContainerComponent], [typeof i2.CommonModule, typeof i4.OverlayModule, typeof i5.PortalModule, typeof BaoButtonModule, typeof BaoIconModule], [typeof BaoSimpleSnackBarComponent, typeof BaoSnackBarContainerComponent]>;
2106
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoSnackBarModule>;
2107
+ }
2108
+
2109
+ /**
2110
+ * This component is dynamically added to replace breadcrumb when System Header is viewed on tablet or mobile screens.
2111
+ * Used internally by BaoSystemHeaderComponent only, not to be used by host application.
2112
+ */
2113
+ declare class BaoBackNavigationComponent implements OnChanges {
2114
+ private renderer;
2115
+ private elementRef;
2116
+ link: string;
2117
+ constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
2118
+ ngOnChanges(changes: SimpleChanges): void;
2119
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBackNavigationComponent, never>;
2120
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoBackNavigationComponent, "bao-back-navigation-component", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, false, never>;
2121
+ }
2122
+ /**
2123
+ * This directive is to mark the template where the BaoBackNavigationComponent should be dynamically inserted,
2124
+ * when a Breadcrumb component needs to be replaced
2125
+ */
2126
+ declare class BaoBackNavigationInsert {
2127
+ viewContainerRef: ViewContainerRef;
2128
+ constructor(viewContainerRef: ViewContainerRef);
2129
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoBackNavigationInsert, never>;
2130
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoBackNavigationInsert, "[backNavigationInsert]", never, {}, {}, never, never, false, never>;
2131
+ }
2132
+ declare class BaoSystemHeaderComponent implements AfterViewInit, OnInit {
2133
+ private cd;
2134
+ private breakpointObserver;
2135
+ private renderer;
2136
+ private textContainer;
2137
+ private backButtonInsert;
2138
+ screenType: 'mobile' | 'tablet' | 'desktop';
2139
+ constructor(cd: ChangeDetectorRef, breakpointObserver: BreakpointObserver, renderer: Renderer2);
2140
+ get textContainerChildren(): Element[];
2141
+ ngOnInit(): void;
2142
+ ngAfterViewInit(): void;
2143
+ private formatNavigation;
2144
+ private applySizeClass;
2145
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSystemHeaderComponent, never>;
2146
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoSystemHeaderComponent, "bao-system-header", never, {}, {}, never, ["a", "bao-breadcrumb", "h1", "bao-tag", "span", "*"], false, never>;
2147
+ }
2148
+
2149
+ declare class BaoSystemHeaderModule {
2150
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSystemHeaderModule, never>;
2151
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoSystemHeaderModule, [typeof BaoSystemHeaderComponent, typeof BaoBackNavigationInsert, typeof BaoBackNavigationComponent], [typeof i2.CommonModule, typeof BaoIconModule], [typeof BaoSystemHeaderComponent, typeof BaoBackNavigationInsert, typeof BaoBackNavigationComponent]>;
2152
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoSystemHeaderModule>;
2153
+ }
2154
+
2155
+ /**
2156
+ * The BaoMessageBarContent directive is used within the <bao-message-bar>
2157
+ * It ensures consistency in text formatting and spacing.
2158
+ *
2159
+ * This directive is purely visual and does not provide any additional behaviors.
2160
+ */
2161
+ declare class BaoMessageBarContent {
2162
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoMessageBarContent, never>;
2163
+ static ɵdir: i0.ɵɵDirectiveDeclaration<BaoMessageBarContent, "bao-message-content", never, {}, {}, never, never, false, never>;
2164
+ }
2165
+ declare class BaoMessageBarComponent implements OnChanges {
2166
+ private elementRef;
2167
+ type: 'info' | 'alert' | 'urgent' | 'neutral';
2168
+ dismissible: boolean;
2169
+ dismissibleButtonAriaLabel: string;
2170
+ dismiss: EventEmitter<void>;
2171
+ iconType: string;
2172
+ iconTitle: string;
2173
+ constructor(elementRef: ElementRef);
2174
+ ngOnChanges(changes: SimpleChanges): void;
2175
+ onDismissClicked(): void;
2176
+ private getIconType;
2177
+ private getIconTitle;
2178
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoMessageBarComponent, never>;
2179
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoMessageBarComponent, "bao-message-bar", never, { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; "dismissibleButtonAriaLabel": { "alias": "dismissibleButtonAriaLabel"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], false, never>;
2180
+ }
2181
+
2182
+ declare class BaoMessageBarModule {
2183
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoMessageBarModule, never>;
2184
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoMessageBarModule, [typeof BaoMessageBarComponent, typeof BaoMessageBarContent], [typeof i2.CommonModule, typeof BaoIconModule, typeof BaoButtonModule, typeof BaoHyperlinkModule], [typeof BaoMessageBarComponent, typeof BaoMessageBarContent]>;
2185
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoMessageBarModule>;
2186
+ }
2187
+
2188
+ declare class BaoPaginationComponent implements OnChanges, OnInit {
2189
+ private cdr;
2190
+ /**
2191
+ * The total number of items.
2192
+ */
2193
+ totalItems: number;
2194
+ /**
2195
+ * The number of items per page as selected.
2196
+ */
2197
+ itemsPerPage: number;
2198
+ /**
2199
+ * The current page number.
2200
+ */
2201
+ currentPage: number;
2202
+ /**
2203
+ * The different page size options.
2204
+ */
2205
+ pageSizeOptions: number[];
2206
+ /**
2207
+ * The label for the type of items that are displayed on the page
2208
+ */
2209
+ itemLabel: string;
2210
+ /**
2211
+ * If selector for number of items per page should be displayed or not
2212
+ */
2213
+ showItemsPerPageSelector: boolean;
2214
+ /**
2215
+ * EventEmitter that triggers when there is a page change and emits page number (index adjusted)
2216
+ */
2217
+ pageChanged: EventEmitter<number>;
2218
+ /**
2219
+ * EventEmitter that triggers when the number of items per page is changed.
2220
+ */
2221
+ itemsPerPageChanged: EventEmitter<number>;
2222
+ /**
2223
+ * Page number list to display
2224
+ */
2225
+ displayedPages: number[];
2226
+ /**
2227
+ * Max number of pages to display
2228
+ */
2229
+ private _maxPages;
2230
+ /**
2231
+ * Number of pages in total.
2232
+ */
2233
+ private _totalPages;
2234
+ /**
2235
+ * Position of first item being displayed on current page.
2236
+ */
2237
+ private _startItem;
2238
+ /**
2239
+ * Position of last item being displayed on current page.
2240
+ */
2241
+ private _endItem;
2242
+ constructor(cdr: ChangeDetectorRef);
2243
+ get totalPages(): number;
2244
+ set totalPages(value: number);
2245
+ get startItem(): number;
2246
+ set startItem(value: number);
2247
+ get endItem(): number;
2248
+ set endItem(value: number);
2249
+ get rangeLabel(): string;
2250
+ /**
2251
+ * Flag that indicates if a previous page exists for the current list
2252
+ */
2253
+ get hasPrevious(): boolean;
2254
+ /**
2255
+ * Flag that indicates if a next page exists for the current list
2256
+ */
2257
+ get hasNext(): boolean;
2258
+ ngOnInit(): void;
2259
+ /**
2260
+ * Update list of displayed pages when current page is changed.
2261
+ */
2262
+ ngOnChanges(changes: SimpleChanges): void;
2263
+ /**
2264
+ * Navigate to specific page
2265
+ */
2266
+ goTo(page: number): void;
2267
+ /**
2268
+ * Navigate to previous page
2269
+ */
2270
+ handlePreviousClick(): void;
2271
+ /**
2272
+ * Navigate to next page
2273
+ */
2274
+ handleNextClick(): void;
2275
+ /**
2276
+ * Update all required variables whenever the number of items displayed per page is changed.
2277
+ * @param value New amount of items per page
2278
+ */
2279
+ handlePageSizeChange(value: number): void;
2280
+ private updateTotalPages;
2281
+ private updateStartItem;
2282
+ private updateEndItem;
2283
+ /**
2284
+ * Generate series of page numbers to display. The list always starts with page 1
2285
+ * and ends with last page.
2286
+ * Adds negative numbers for ellipsis.
2287
+ */
2288
+ private buildPageNumbers;
2289
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoPaginationComponent, never>;
2290
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoPaginationComponent, "bao-pagination", never, { "totalItems": { "alias": "totalItems"; "required": false; }; "itemsPerPage": { "alias": "itemsPerPage"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "pageSizeOptions": { "alias": "pageSizeOptions"; "required": false; }; "itemLabel": { "alias": "itemLabel"; "required": false; }; "showItemsPerPageSelector": { "alias": "showItemsPerPageSelector"; "required": false; }; }, { "pageChanged": "pageChanged"; "itemsPerPageChanged": "itemsPerPageChanged"; }, never, never, false, never>;
2291
+ }
2292
+
2293
+ declare class BaoPaginationModule {
2294
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoPaginationModule, never>;
2295
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoPaginationModule, [typeof BaoPaginationComponent], [typeof i2.CommonModule, typeof BaoIconModule, typeof i4$1.FormsModule], [typeof BaoPaginationComponent]>;
2296
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoPaginationModule>;
2297
+ }
2298
+
2299
+ declare class BaoModule {
2300
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
2301
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof BaoIconModule, typeof BaoButtonModule, typeof BaoAlertModule, typeof BaoCardModule, typeof BaoBreadcrumbModule, typeof BaoModalModule], [typeof BaoIconModule, typeof BaoButtonModule, typeof BaoAlertModule, typeof BaoBreadcrumbModule, typeof BaoCardModule, typeof BaoTagModule, typeof BaoHeaderInfoModule, typeof BaoListModule, typeof BaoCommonComponentsModule, typeof BaoCheckboxModule, typeof BaoRadioModule, typeof BaoSummaryModule, typeof BaoAvatarModule, typeof BaoTabsModule, typeof BaoModalModule, typeof BaoHyperlinkModule, typeof BaoDropdownMenuModule, typeof BaoFileModule, typeof BaoSnackBarModule, typeof BaoSystemHeaderModule, typeof BaoMessageBarModule, typeof BaoPaginationModule]>;
2302
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
2303
+ }
2304
+
2305
+ declare function baoFactory(): BaoSnackBarConfig<any>;
2306
+ /** Injection token that can be used to specify default snack bar. */
2307
+ declare const BAO_SNACK_BAR_DEFAULT_OPTIONS: InjectionToken<BaoSnackBarConfig<any>>;
2308
+ /**
2309
+ * Service to dispatch Material Design snack bar messages.
2310
+ */
2311
+ declare class BaoSnackBarService implements OnDestroy {
2312
+ private _overlay;
2313
+ private _live;
2314
+ private _injector;
2315
+ private _parentSnackBar;
2316
+ private _defaultConfig;
2317
+ /** The component that should be rendered as the snack bar's simple component. */
2318
+ protected simpleSnackBarComponent: Type<ITextOnlySnackBar>;
2319
+ /** The container component that attaches the provided template or component. */
2320
+ protected snackBarContainerComponent: Type<IBaoSnackBarContainer>;
2321
+ /**
2322
+ * Reference to the current snack bar in the view *at this level* (in the Angular injector tree).
2323
+ * If there is a parent snack-bar service, all operations should delegate to that parent
2324
+ * via `_openedSnackBarRef`.
2325
+ */
2326
+ private _snackBarRefAtThisLevel;
2327
+ constructor(_overlay: Overlay, _live: LiveAnnouncer, _injector: Injector, _parentSnackBar: BaoSnackBarService, _defaultConfig: BaoSnackBarConfig);
2328
+ /** Reference to the currently opened snackbar at *any* level. */
2329
+ get _openedSnackBarRef(): BaoSnackBarRef<any> | null;
2330
+ set _openedSnackBarRef(value: BaoSnackBarRef<any> | null);
2331
+ /**
2332
+ * Creates and dispatches a snack bar with a custom component for the content, removing any
2333
+ * currently opened snack bars.
2334
+ *
2335
+ * @param component Component to be instantiated.
2336
+ * @param config Extra configuration for the snack bar.
2337
+ */
2338
+ openFromComponent<T>(component: ComponentType$1<T>, config?: BaoSnackBarConfig): BaoSnackBarRef<T>;
2339
+ /**
2340
+ * Creates and dispatches a snack bar with a custom template for the content, removing any
2341
+ * currently opened snack bars.
2342
+ *
2343
+ * @param template Template to be instantiated.
2344
+ * @param config Extra configuration for the snack bar.
2345
+ */
2346
+ openFromTemplate(template: TemplateRef<any>, config?: BaoSnackBarConfig): BaoSnackBarRef<EmbeddedViewRef<any>>;
2347
+ /**
2348
+ * Opens a snackbar with a message and an optional action.
2349
+ * @param message The message to show in the snackbar.
2350
+ * @param toastType The type of of toast to display the snackbar.
2351
+ * @param actionLabelOrIcon The label or icon for the snackbar action.
2352
+ * @param showClose If true, the snackbar will require user interaction to close.
2353
+ * @param config Additional configuration options for the snackbar.
2354
+ */
2355
+ open(config: BaoSnackBarConfig): BaoSnackBarRef<ITextOnlySnackBar>;
2356
+ /**
2357
+ * Dismisses the currently-visible snack bar.
2358
+ */
2359
+ dismiss(): void;
2360
+ ngOnDestroy(): void;
2361
+ /**
2362
+ * Attaches the snack bar container component to the overlay.
2363
+ */
2364
+ private attachSnackBarContainer;
2365
+ /**
2366
+ * Places a new component or a template as the content of the snack bar container.
2367
+ */
2368
+ private attach;
2369
+ /** Animates the old snack bar out and the new one in. */
2370
+ private animateSnackBar;
2371
+ /**
2372
+ * Creates a new overlay and places it in the correct location.
2373
+ * @param config The user-specified snack bar config.
2374
+ */
2375
+ private createOverlay;
2376
+ /**
2377
+ * Creates an injector to be used inside of a snack bar component.
2378
+ * @param config Config that was used to create the snack bar.
2379
+ * @param snackBarRef Reference to the snack bar.
2380
+ */
2381
+ private createInjector;
2382
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSnackBarService, [null, null, null, { optional: true; skipSelf: true; }, null]>;
2383
+ static ɵprov: i0.ɵɵInjectableDeclaration<BaoSnackBarService>;
2384
+ }
2385
+
2386
+ export { BAO_FILE_INTL_PROVIDER, BAO_FILE_INTL_PROVIDER_FACTORY, BAO_MODAL_DATA, BAO_RADIO_GROUP, BAO_SNACK_BAR_DATA, BAO_SNACK_BAR_DEFAULT_OPTIONS, BaoAlertActions, BaoAlertComponent, BaoAlertContent, BaoAlertLink, BaoAlertModule, BaoAlertTitle, BaoAvatarComponent, BaoAvatarContent, BaoAvatarModule, BaoBackNavigationComponent, BaoBackNavigationInsert, BaoBadgeComponent, BaoBadgeModule, BaoBreadcrumbComponent, BaoBreadcrumbModule, BaoButtonComponent, BaoButtonModule, BaoCardComponent, BaoCardContent, BaoCardHeader, BaoCardModule, BaoCardTextInterface, BaoCardTitle, BaoCheckBoxDescription, BaoCheckboxComponent, BaoCheckboxGroupComponent, BaoCheckboxModule, BaoCommonComponentsModule, BaoDropdownMenuComponent, BaoDropdownMenuDivider, BaoDropdownMenuItem, BaoDropdownMenuItemDescription, BaoDropdownMenuItemLabel, BaoDropdownMenuModule, BaoDropdownMenuSection, BaoDropdownMenuService, BaoDropdownMenuTrigger, BaoErrorTextComponent, BaoFileDropDirective, BaoFileDropzoneIntructions, BaoFileInputComponent, BaoFileIntl, BaoFileIntlEnglish, BaoFileModule, BaoFilePreviewComponent, BaoGuidingTextComponent, BaoHeaderInfoComponent, BaoHeaderInfoContent, BaoHeaderInfoModule, BaoHeaderInfoSubtitle, BaoHeaderInfoSurtitle, BaoHeaderInfoTitle, BaoHeaderInfoTitleGroupComponent, BaoHyperlinkComponent, BaoHyperlinkModule, BaoIconComponent, BaoIconModule, BaoLabelTextComponent, BaoList, BaoListItem, BaoListItemDescription, BaoListItemTitle, BaoListModule, BaoListSummary, BaoListSummaryItem, BaoMessageBarComponent, BaoMessageBarContent, BaoMessageBarModule, BaoModal, BaoModalBase, BaoModalClose, BaoModalContainer, BaoModalInitialConfig, BaoModalModule, BaoModalRef, BaoModalState, BaoModule, BaoNavList, BaoPaginationComponent, BaoPaginationModule, BaoRadioButtonComponent, BaoRadioButtonGroupComponent, BaoRadioDescription, BaoRadioModule, BaoSimpleSnackBarComponent, BaoSnackBarConfig, BaoSnackBarContainerComponent, BaoSnackBarModule, BaoSnackBarRef, BaoSnackBarService, BaoSummaryComponent, BaoSummaryDescription, BaoSummaryModule, BaoSystemHeaderComponent, BaoSystemHeaderModule, BaoTabHeader, BaoTabPanel, BaoTablistComponent, BaoTabsContainer, BaoTabsModule, BaoTagComponent, BaoTagModule, BaoTitleTextComponent, EDisplayMode, FILTER_MODAL_WIDTH, _BaoModalContainerBase, _closeModalVia, baoFactory, eCheckboxAriaState, eModalDesktopWidthSize, eModalMobileWidthSize, eModalVariant, throwBaoModalContentAlreadyAttachedError };
2387
+ export type { AutoFocusTarget, BaoModalConfig, BaoSnackBarHorizontalPosition, BaoSnackBarToastType, BaoSnackBarVerticalPosition, IBaoSnackBarContainer, IBaoSnackBarDismiss, ITextOnlySnackBar, ModalPosition, ModalRole };