@villedemontreal/angular-ui 16.0.2 → 16.0.4

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.
@@ -64,6 +64,8 @@ export declare class BaoAlertComponent implements OnChanges {
64
64
  */
65
65
  type: 'success' | 'danger' | 'warning' | 'emergency' | 'info';
66
66
  dismissible: boolean;
67
+ alertTypeTitle?: string;
68
+ dismissibleButtonAriaLabel?: string;
67
69
  dismiss: EventEmitter<any>;
68
70
  iconType: string;
69
71
  iconTitle: string;
@@ -72,5 +74,5 @@ export declare class BaoAlertComponent implements OnChanges {
72
74
  alertTitleIcon(value: string): any;
73
75
  onDismissClicked(): void;
74
76
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertComponent, never>;
75
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": { "alias": "type"; "required": false; }; "dismissible": { "alias": "dismissible"; "required": false; }; }, { "dismiss": "dismiss"; }, never, ["*"], false, never>;
77
+ 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>;
76
78
  }
@@ -1,12 +1,12 @@
1
- import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
1
+ import { ElementRef, Renderer2 } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
- export declare class BaoFilePreviewComponent implements AfterContentInit {
3
+ export declare class BaoFilePreviewComponent {
4
4
  private elementRef;
5
5
  private renderer;
6
6
  /**
7
7
  * Uploaded file to display in list.
8
8
  */
9
- file: File;
9
+ set file(f: File);
10
10
  /**
11
11
  * Is file loading
12
12
  */
@@ -16,10 +16,11 @@ export declare class BaoFilePreviewComponent implements AfterContentInit {
16
16
  */
17
17
  insertGenericIcon: boolean;
18
18
  thumbnailURL: string;
19
+ protected _file: File;
20
+ protected fileSize: string;
19
21
  constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
20
- get nativeElement(): HTMLElement;
21
- get fileSize(): string;
22
- ngAfterContentInit(): void;
22
+ private get nativeElement();
23
+ private setFileData;
23
24
  private setIcon;
24
25
  private getThumbnail;
25
26
  private formatSize;
@@ -37,6 +37,7 @@ export declare class BaoIconComponent implements OnDestroy {
37
37
  private clearSvgElement;
38
38
  private updateSvgIcon;
39
39
  private addTitleToSVG;
40
+ private removeTitleAttributeFromHost;
40
41
  private generateUniqueTitleId;
41
42
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, never>;
42
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>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "16.0.2",
3
+ "version": "16.0.4",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },