@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
@@ -1,174 +0,0 @@
1
- import { Overlay } from '@angular/cdk/overlay';
2
- import { DomPortal } from '@angular/cdk/portal';
3
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, QueryList, Renderer2, SimpleChanges } from '@angular/core';
4
- import { Observable } from 'rxjs';
5
- import * as i0 from "@angular/core";
6
- export declare class BaoDropdownMenuService {
7
- readonly itemClicked$: Observable<void>;
8
- private readonly itemClickedSource;
9
- constructor();
10
- close(): void;
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuService, never>;
12
- static ɵprov: i0.ɵɵInjectableDeclaration<BaoDropdownMenuService>;
13
- }
14
- export declare class BaoDropdownMenuItem implements AfterViewInit, OnChanges {
15
- private renderer;
16
- private elementRef;
17
- private _parent;
18
- private baoDropdownMenuService;
19
- /**
20
- * Is the list item disabled
21
- */
22
- disabled: boolean;
23
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, _parent: BaoDropdownMenuComponent, baoDropdownMenuService: BaoDropdownMenuService);
24
- get nativeElement(): HTMLElement;
25
- spaceKeyEvent(): void;
26
- onClick(el: HTMLElement): void;
27
- enterKeyEvent(): void;
28
- ngAfterViewInit(): void;
29
- ngOnChanges(changes: SimpleChanges): void;
30
- /** Regroups label and description in a new div to help with layout */
31
- private addContentDiv;
32
- private addPaddingClass;
33
- private disableItem;
34
- /**
35
- * This method propagates a click event to menu item children with inputs (checkbox, radio button).
36
- * It emits event to close menu if item does not contain an input.
37
- */
38
- private propagateClick;
39
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItem, never>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItem, "bao-dropdown-menu-item, [bao-dropdown-menu-item]", never, { "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
41
- }
42
- export declare class BaoDropdownMenuComponent implements AfterViewInit {
43
- private cdr;
44
- private renderer;
45
- private elementRef;
46
- baoDropdownMenuService: BaoDropdownMenuService;
47
- /**
48
- * Fired when the dropdown-menu changes its 'isOpen' value
49
- */
50
- isOpenChange: EventEmitter<boolean>;
51
- /**
52
- * Fired when menu is closed by key event triggered from menu item
53
- */
54
- isClosedByKeyEvent: EventEmitter<any>;
55
- /**
56
- * Content of menu to be loaded inside Overlay
57
- */
58
- _menuContent: ElementRef<HTMLElement>;
59
- /**
60
- * All list items inside menu
61
- */
62
- _listItems: QueryList<BaoDropdownMenuItem>;
63
- /**
64
- * Unique identifier of the dropdown menu
65
- */
66
- readonly menuId: string;
67
- /**
68
- * Is the dropwdown menu currently open
69
- */
70
- private _isOpen;
71
- /**
72
- * Reference to portal which is attached to Overlay
73
- */
74
- private _menuPortal;
75
- /**
76
- * Index of currently active list item
77
- */
78
- private _activeItemIndex;
79
- constructor(cdr: ChangeDetectorRef, renderer: Renderer2, elementRef: ElementRef<HTMLElement>, baoDropdownMenuService: BaoDropdownMenuService);
80
- get isOpen(): boolean;
81
- get activeItemIndex(): number;
82
- get menuPortal(): DomPortal;
83
- get nativeElement(): HTMLElement;
84
- get service(): BaoDropdownMenuService;
85
- set isOpen(isOpen: boolean);
86
- set activeItemIndex(index: number);
87
- upKeyEvent(): void;
88
- downKeyEvent(): void;
89
- /** Prevents focus to be lost when TAB has reached end of menu */
90
- tabKeyEvent(): void;
91
- tabUpKeyEvent(): void;
92
- /** Prevents focus to be lost when SHIFT + TAB has reached beginning of menu */
93
- shiftTabKeyEvent(event: KeyboardEvent): void;
94
- ngAfterViewInit(): void;
95
- open(): void;
96
- close(): void;
97
- focus(): void;
98
- /** Move the aria-current attribute to new active page */
99
- setNavigationAttribute(activePageElement: HTMLElement): void;
100
- private focusNextItem;
101
- /**
102
- * Finds the next activable tab index when navigating with up and down arrow or TAB keys
103
- * @param currentIndex List item index which currently has focus
104
- * @param isDown Whether the navigation is going in the down direction or not
105
- * @param isBackward If recursive function is going backward looking for last activable item in list
106
- * @returns Index of the next item that will receive focus
107
- */
108
- private getNextActivableItemIndex;
109
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuComponent, never>;
110
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuComponent, "bao-dropdown-menu", never, {}, { "isOpenChange": "isOpenChange"; "isClosedByKeyEvent": "isClosedByKeyEvent"; }, ["_listItems"], ["*"], false, never>;
111
- }
112
- /**
113
- * Directive to be applied on element that will trigger the opening and closing of menu.
114
- */
115
- export declare class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy {
116
- private renderer;
117
- private elementRef;
118
- private overlay;
119
- menu: BaoDropdownMenuComponent | null;
120
- private _overlayRef;
121
- private _isMenuOpen;
122
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, overlay: Overlay);
123
- get nativeElement(): HTMLElement;
124
- escapeKeyEvent(): void;
125
- onClick(): void;
126
- ngAfterViewInit(): void;
127
- ngOnDestroy(): void;
128
- private toggleMenu;
129
- private closeMenu;
130
- private openMenu;
131
- private createOverlay;
132
- private getOverlayConfig;
133
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuTrigger, never>;
134
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuTrigger, "bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]", never, { "menu": { "alias": "baoDropdownMenuTriggerFor"; "required": false; }; }, {}, never, never, false, never>;
135
- }
136
- /**
137
- * Sections of list items in menu. Apply proper styling to section's title if there is one.
138
- */
139
- export declare class BaoDropdownMenuSection implements AfterViewInit {
140
- private elementRef;
141
- private renderer;
142
- constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
143
- get nativeElement(): HTMLElement;
144
- ngAfterViewInit(): void;
145
- private insertTitle;
146
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuSection, never>;
147
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuSection, "bao-dropdown-menu-section, [bao-dropdown-menu-section]", never, {}, {}, never, never, false, never>;
148
- }
149
- /**
150
- * Label of a list item, add css class to apply proper styling.
151
- */
152
- export declare class BaoDropdownMenuItemLabel {
153
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemLabel, never>;
154
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemLabel, "bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]", never, {}, {}, never, never, false, never>;
155
- }
156
- /**
157
- * Description of a list item, add css class to apply proper styling.
158
- */
159
- export declare class BaoDropdownMenuItemDescription {
160
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemDescription, never>;
161
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemDescription, "bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]", never, {}, {}, never, never, false, never>;
162
- }
163
- /**
164
- * Divider to separate sections.
165
- */
166
- export declare class BaoDropdownMenuDivider implements AfterContentInit {
167
- private renderer;
168
- private elementRef;
169
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
170
- get nativeElement(): HTMLElement;
171
- ngAfterContentInit(): void;
172
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuDivider, never>;
173
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuDivider, "bao-dropdown-menu-divider, [bao-dropdown-menu-divider]", never, {}, {}, never, never, false, never>;
174
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './dropdown-menu.component';
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./dropdown-menu.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/observers";
5
- import * as i4 from "@angular/cdk/overlay";
6
- import * as i5 from "@angular/cdk/portal";
7
- export declare class BaoDropdownMenuModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoDropdownMenuModule, [typeof i1.BaoDropdownMenuComponent, typeof i1.BaoDropdownMenuTrigger, typeof i1.BaoDropdownMenuItem, typeof i1.BaoDropdownMenuSection, typeof i1.BaoDropdownMenuItemLabel, typeof i1.BaoDropdownMenuItemDescription, typeof i1.BaoDropdownMenuDivider], [typeof i2.CommonModule, typeof i3.ObserversModule, typeof i4.OverlayModule, typeof i5.PortalModule], [typeof i1.BaoDropdownMenuComponent, typeof i1.BaoDropdownMenuTrigger, typeof i1.BaoDropdownMenuItem, typeof i1.BaoDropdownMenuSection, typeof i1.BaoDropdownMenuItemLabel, typeof i1.BaoDropdownMenuItemDescription, typeof i1.BaoDropdownMenuDivider]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoDropdownMenuModule>;
11
- }
@@ -1,123 +0,0 @@
1
- import { AfterContentInit, AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, Renderer2 } from '@angular/core';
2
- import { ControlValueAccessor } from '@angular/forms';
3
- import { BaoFileIntl } from './file-intl';
4
- import * as i0 from "@angular/core";
5
- export declare class BaoFileInputComponent implements AfterContentInit, AfterViewInit, OnDestroy, ControlValueAccessor {
6
- intl: BaoFileIntl;
7
- private elementRef;
8
- private renderer;
9
- private cdr;
10
- /**
11
- * Id of the file input field
12
- */
13
- inputId?: string;
14
- /**
15
- * Label of field to be displayed above
16
- */
17
- label: string;
18
- /**
19
- * Size of the file input label
20
- */
21
- size: 'small' | 'medium';
22
- /**
23
- * Maximum size accepted for uploaded files
24
- */
25
- maximalFileSize: number;
26
- /**
27
- * Accepted types of files
28
- */
29
- acceptedMIMETypes: string[];
30
- /**
31
- * Is field required
32
- */
33
- required?: boolean;
34
- /**
35
- * Is field disabled
36
- */
37
- disabled?: boolean;
38
- /**
39
- * File selected to be uploaded
40
- */
41
- uploadedFile: EventEmitter<File>;
42
- /**
43
- * List of files that have been uploaded so far
44
- */
45
- private _files;
46
- /**
47
- * Form errors when component is used in a form
48
- */
49
- private _errorForm;
50
- /**
51
- * Error texts
52
- */
53
- private _errorTexts;
54
- /**
55
- * File input that triggers uploading when clicked
56
- */
57
- private uploader;
58
- private dropzoneElement;
59
- insertDefaultInstructions: boolean;
60
- isFileTooBig: boolean;
61
- isFileTypeInvalid: boolean;
62
- private _value;
63
- private _intlChanges;
64
- private _helperTextId;
65
- constructor(intl: BaoFileIntl, elementRef: ElementRef<HTMLElement>, renderer: Renderer2, cdr: ChangeDetectorRef);
66
- get nativeElement(): HTMLElement;
67
- enterKeyEvent(): void;
68
- tabKeyEvent(): void;
69
- shiftTabKeyEvent(): void;
70
- ngAfterContentInit(): void;
71
- ngAfterViewInit(): void;
72
- ngOnDestroy(): void;
73
- /**
74
- * Implements ControlValueAccessor interface
75
- */
76
- writeValue(obj: any): void;
77
- /**
78
- * Implements ControlValueAccessor interface
79
- */
80
- registerOnChange(fn: (value: any) => void): void;
81
- /**
82
- * Implements ControlValueAccessor interface
83
- */
84
- registerOnTouched(fn: any): void;
85
- /**
86
- * Implements ControlValueAccessor interface
87
- */
88
- setDisabledState(isDisabled: boolean): void;
89
- uploadFile(file: File): void;
90
- /**
91
- * Saves the registerOnChange function so the component can call it whenever it wants.
92
- */
93
- propagateChange: (_: any) => void;
94
- /**
95
- * Saves the registerOnTouched function so the component can call it whenever it wants.
96
- */
97
- propagateTouched: () => void;
98
- private setValue;
99
- private setDescribedByAttribute;
100
- private setErrorTextsAttribute;
101
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileInputComponent, never>;
102
- 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>;
103
- }
104
- export declare class BaoFileDropDirective {
105
- fileDrop: EventEmitter<File>;
106
- private _isDragOver;
107
- onDragOver(event: DragEvent): void;
108
- onDragLeave(event: DragEvent): void;
109
- onDrop(event: DragEvent): void;
110
- private preventAndStop;
111
- private getDataTransfer;
112
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileDropDirective, never>;
113
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoFileDropDirective, "[baoFileDrop]", never, {}, { "fileDrop": "fileDrop"; }, never, never, false, never>;
114
- }
115
- export declare class BaoFileDropzoneIntructions implements AfterContentInit {
116
- private renderer;
117
- private elementRef;
118
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
119
- get nativeElement(): HTMLElement;
120
- ngAfterContentInit(): void;
121
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileDropzoneIntructions, never>;
122
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoFileDropzoneIntructions, "bao-file-dropzone-instructions, [bao-file-dropzone-instructions]", never, {}, {}, never, never, false, never>;
123
- }
@@ -1,44 +0,0 @@
1
- import { Optional } from '@angular/core';
2
- import { Subject } from 'rxjs';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * To modify the labels and text displayed, create a new instance of BaoFileIntl and
6
- * include it in a custom provider
7
- */
8
- export declare class BaoFileIntl {
9
- /**
10
- * Stream to emit from when labels are changed. Use this to notify components when the labels have
11
- * changed after initialization.
12
- */
13
- readonly changes: Subject<void>;
14
- /** The label for button in dropzone */
15
- dropzoneButtonLabel: string;
16
- /** The default dropzone instructions */
17
- defaultDropzoneInstructions: string;
18
- /** Error message displayed when uploaded file is too large */
19
- fileTooBigErrorMessage: string;
20
- /** Error message displayed when uploaded file has an invalid type */
21
- invalidFileTypeErrorMessage: string;
22
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileIntl, never>;
23
- static ɵprov: i0.ɵɵInjectableDeclaration<BaoFileIntl>;
24
- }
25
- export declare class BaoFileIntlEnglish extends BaoFileIntl {
26
- /** The label for button in dropzone */
27
- dropzoneButtonLabel: string;
28
- /** The default dropzone instructions */
29
- defaultDropzoneInstructions: string;
30
- /** Error message displayed when uploaded file is too large */
31
- fileTooBigErrorMessage: string;
32
- /** Error message displayed when uploaded file has an invalid type */
33
- invalidFileTypeErrorMessage: string;
34
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileIntlEnglish, never>;
35
- static ɵprov: i0.ɵɵInjectableDeclaration<BaoFileIntlEnglish>;
36
- }
37
- /** @docs-private */
38
- export declare function BAO_FILE_INTL_PROVIDER_FACTORY(parentIntl: BaoFileIntl): BaoFileIntl;
39
- /** @docs-private */
40
- export declare const BAO_FILE_INTL_PROVIDER: {
41
- provide: typeof BaoFileIntl;
42
- deps: Optional[][];
43
- useFactory: typeof BAO_FILE_INTL_PROVIDER_FACTORY;
44
- };
@@ -1,31 +0,0 @@
1
- import { ElementRef, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoFilePreviewComponent {
4
- private elementRef;
5
- private renderer;
6
- get file(): File;
7
- /**
8
- * Uploaded file to display in list.
9
- */
10
- set file(f: File);
11
- /**
12
- * Is file loading
13
- */
14
- isLoading: boolean;
15
- /**
16
- * True if projected content has no icon and file does not have a thumbnail.
17
- */
18
- insertGenericIcon: boolean;
19
- thumbnailURL: string;
20
- protected _file: File;
21
- protected fileSize: string;
22
- constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
23
- private get nativeElement();
24
- private setFileData;
25
- private setIcon;
26
- private getThumbnail;
27
- private formatSize;
28
- private getSizeAndUnit;
29
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFilePreviewComponent, never>;
30
- 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>;
31
- }
@@ -1,4 +0,0 @@
1
- export * from './module';
2
- export * from './file-input.component';
3
- export * from './file-preview.component';
4
- export * from './file-intl';
@@ -1,13 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./file-input.component";
3
- import * as i2 from "./file-preview.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../dropdown-menu/module";
6
- import * as i5 from "../common-components/module";
7
- import * as i6 from "../icon/module";
8
- import * as i7 from "../button/module";
9
- export declare class BaoFileModule {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoFileModule, never>;
11
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoFileModule, [typeof i1.BaoFileInputComponent, typeof i1.BaoFileDropzoneIntructions, typeof i1.BaoFileDropDirective, typeof i2.BaoFilePreviewComponent], [typeof i3.CommonModule, typeof i4.BaoDropdownMenuModule, typeof i5.BaoCommonComponentsModule, typeof i6.BaoIconModule, typeof i7.BaoButtonModule], [typeof i1.BaoFileInputComponent, typeof i1.BaoFileDropzoneIntructions, typeof i1.BaoFileDropDirective, typeof i2.BaoFilePreviewComponent]>;
12
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoFileModule>;
13
- }
@@ -1,39 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * A basic content container component that adds the styles of a BAO header-info
4
- *
5
- * While this component can be used alone, it also provides a number
6
- * of preset styles for common header-info sections, including:
7
- * - bao-header-info-title-group
8
- * - bao-header-info-content
9
- * - bao-header-info-title
10
- * - bao-header-info-surtitle
11
- * - bao-header-info-subtitle
12
- */
13
- export declare class BaoHeaderInfoComponent {
14
- notch: '' | 'left' | 'center';
15
- imageUrl: string;
16
- brandBorder: boolean;
17
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoComponent, never>;
18
- 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>;
19
- }
20
- export declare class BaoHeaderInfoTitleGroupComponent {
21
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoTitleGroupComponent, never>;
22
- 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>;
23
- }
24
- export declare class BaoHeaderInfoContent {
25
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoContent, never>;
26
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoContent, "bao-header-info-content", never, {}, {}, never, never, false, never>;
27
- }
28
- export declare class BaoHeaderInfoSurtitle {
29
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoSurtitle, never>;
30
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSurtitle, "bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]", never, {}, {}, never, never, false, never>;
31
- }
32
- export declare class BaoHeaderInfoSubtitle {
33
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoSubtitle, never>;
34
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSubtitle, "bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]", never, {}, {}, never, never, false, never>;
35
- }
36
- export declare class BaoHeaderInfoTitle {
37
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoTitle, never>;
38
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoTitle, "bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]", never, {}, {}, never, never, false, never>;
39
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './header-info.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./header-info.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoHeaderInfoModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoHeaderInfoModule, [typeof i1.BaoHeaderInfoComponent, typeof i1.BaoHeaderInfoContent, typeof i1.BaoHeaderInfoTitleGroupComponent, typeof i1.BaoHeaderInfoSubtitle, typeof i1.BaoHeaderInfoSurtitle, typeof i1.BaoHeaderInfoTitle], [typeof i2.CommonModule], [typeof i1.BaoHeaderInfoComponent, typeof i1.BaoHeaderInfoContent, typeof i1.BaoHeaderInfoTitleGroupComponent, typeof i1.BaoHeaderInfoSubtitle, typeof i1.BaoHeaderInfoSurtitle, typeof i1.BaoHeaderInfoTitle]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoHeaderInfoModule>;
8
- }
@@ -1,18 +0,0 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoHyperlinkComponent implements AfterViewInit {
4
- private renderer;
5
- private elementRef;
6
- /**
7
- * Size of the link when it's in a list.
8
- */
9
- size?: 'extra-small' | 'small' | 'medium';
10
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
11
- get nativeElement(): HTMLElement;
12
- ngAfterViewInit(): void;
13
- private addTabIndex;
14
- private setIcon;
15
- private addIconClass;
16
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHyperlinkComponent, never>;
17
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoHyperlinkComponent, "bao-hyperlink, [bao-hyperlink]", never, { "size": { "alias": "size"; "required": false; }; }, {}, never, ["*"], false, never>;
18
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './hyperlink.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./hyperlink.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoHyperlinkModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoHyperlinkModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoHyperlinkModule, [typeof i1.BaoHyperlinkComponent], [typeof i2.CommonModule], [typeof i1.BaoHyperlinkComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoHyperlinkModule>;
8
- }
@@ -1,12 +0,0 @@
1
- import { DomSanitizer } from '@angular/platform-browser';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoIconDictionary {
4
- private document;
5
- private domSanitizer;
6
- constructor(document: any, domSanitizer: DomSanitizer);
7
- getNamedSvgIcon(iconName: string): SVGElement;
8
- private getRawIconStringFromIconName;
9
- private svgElementFromString;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconDictionary, never>;
11
- static ɵprov: i0.ɵɵInjectableDeclaration<BaoIconDictionary>;
12
- }
@@ -1,44 +0,0 @@
1
- import { ElementRef, OnDestroy, Renderer2 } from '@angular/core';
2
- import { BaoColors } from '../core/colors';
3
- import { BaoIconDictionary as BaoIconRegistry } from './bao-icon-registry';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Component to display an icon. It can be used in the following ways:
7
- *
8
- * - Specify the svgIcon input to load an SVG icon from a preset list of icons.
9
- * Examples:
10
- * `<bao-icon svgIcon="heart"></bao-icon>`
11
- */
12
- export declare class BaoIconComponent implements OnDestroy {
13
- private elementRef;
14
- private iconRegistry;
15
- private renderer;
16
- /** The color of the icon, if not specified the icon's parent current text color will be used */
17
- color: BaoColors;
18
- /**
19
- * The size of the icon
20
- */
21
- size: 'medium' | 'small' | 'x-small' | 'xx-small';
22
- private _svgIcon;
23
- private _title;
24
- private _titleId;
25
- private _elementsWithExternalReferences?;
26
- constructor(elementRef: ElementRef<HTMLElement>, iconRegistry: BaoIconRegistry, renderer: Renderer2);
27
- /** Name of the icon in the SVG icon set. */
28
- get svgIcon(): string;
29
- /** Title that will be used as an aria-label for the icon */
30
- get title(): string;
31
- get hexColor(): string | void;
32
- get titleId(): string;
33
- set svgIcon(value: string);
34
- set title(value: string);
35
- ngOnDestroy(): void;
36
- private setSvgElement;
37
- private clearSvgElement;
38
- private updateSvgIcon;
39
- private addTitleToSVG;
40
- private removeTitleAttributeFromHost;
41
- private generateUniqueTitleId;
42
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, never>;
43
- 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>;
44
- }
@@ -1,4 +0,0 @@
1
- export declare const ICONS_DCT: {
2
- [iconName: string]: string;
3
- };
4
- export declare const ILLUSTRATIVE_ICONS: string[];
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './icon.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./icon.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoIconModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoIconModule, [typeof i1.BaoIconComponent], [typeof i2.CommonModule], [typeof i1.BaoIconComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoIconModule>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './list.component';
@@ -1,21 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoListItem {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItem, never>;
4
- 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>;
5
- }
6
- export declare class BaoList {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoList, never>;
8
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoList, "bao-list, [bao-list]", never, {}, {}, never, never, false, never>;
9
- }
10
- export declare class BaoNavList {
11
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoNavList, never>;
12
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoNavList, "bao-nav-list, [bao-nav-list]", never, {}, {}, never, never, false, never>;
13
- }
14
- export declare class BaoListItemDescription {
15
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItemDescription, never>;
16
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemDescription, "bao-list-item-description, [bao-list-item-description]", never, {}, {}, never, never, false, never>;
17
- }
18
- export declare class BaoListItemTitle {
19
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoListItemTitle, never>;
20
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemTitle, "bao-list-item-title, [bao-list-item-title]", never, {}, {}, never, never, false, never>;
21
- }
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./list.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoListModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoListModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoListModule, [typeof i1.BaoListItem, typeof i1.BaoList, typeof i1.BaoNavList, typeof i1.BaoListItemDescription, typeof i1.BaoListItemTitle], [typeof i2.CommonModule], [typeof i1.BaoListItem, typeof i1.BaoList, typeof i1.BaoNavList, typeof i1.BaoListItemDescription, typeof i1.BaoListItemTitle]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoListModule>;
8
- }
@@ -1,2 +0,0 @@
1
- export * from './message-bar.component';
2
- export * from './module';
@@ -1,28 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * The BaoMessageBarContent directive is used within the <bao-message-bar>
5
- * It ensures consistency in text formatting and spacing.
6
- *
7
- * This directive is purely visual and does not provide any additional behaviors.
8
- */
9
- export declare class BaoMessageBarContent {
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoMessageBarContent, never>;
11
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoMessageBarContent, "bao-message-content", never, {}, {}, never, never, false, never>;
12
- }
13
- export declare class BaoMessageBarComponent implements OnChanges {
14
- private elementRef;
15
- type: 'info' | 'alert' | 'urgent' | 'neutral';
16
- dismissible: boolean;
17
- dismissibleButtonAriaLabel: string;
18
- dismiss: EventEmitter<void>;
19
- iconType: string;
20
- iconTitle: string;
21
- constructor(elementRef: ElementRef);
22
- ngOnChanges(changes: SimpleChanges): void;
23
- onDismissClicked(): void;
24
- private getIconType;
25
- private getIconTitle;
26
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoMessageBarComponent, never>;
27
- 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>;
28
- }