@villedemontreal/angular-ui 16.0.3 → 16.0.5

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.
@@ -80,13 +80,14 @@ export declare class BaoDropdownMenuComponent implements AfterContentInit, After
80
80
  downKeyEvent(): void;
81
81
  /** Prevents focus to be lost when TAB has reached end of menu */
82
82
  tabKeyEvent(): void;
83
+ tabUpKeyEvent(): void;
83
84
  /** Prevents focus to be lost when SHIFT + TAB has reached beginning of menu */
84
85
  shiftTabKeyEvent(): void;
85
86
  ngAfterViewInit(): void;
86
87
  ngAfterContentInit(): void;
87
- focusFirstItem(): void;
88
88
  open(): void;
89
89
  close(): void;
90
+ focus(): void;
90
91
  /** Move the aria-current attribute to new active page */
91
92
  setNavigationAttribute(activePageElement: HTMLElement): void;
92
93
  private focusNextItem;
@@ -98,13 +99,6 @@ export declare class BaoDropdownMenuComponent implements AfterContentInit, After
98
99
  * @returns Index of the next item that will receive focus
99
100
  */
100
101
  private getNextActivableItemIndex;
101
- /**
102
- * Finds if focus has reached end or beginning of list
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
- * @returns Can focus move to next item or not
106
- */
107
- private canMove;
108
102
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuComponent, never>;
109
103
  static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuComponent, "bao-dropdown-menu", never, {}, { "isOpenChange": "isOpenChange"; "isClosedByKeyEvent": "isClosedByKeyEvent"; }, ["_listItems"], ["*"], false, never>;
110
104
  }
@@ -121,9 +115,6 @@ export declare class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy
121
115
  constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, overlay: Overlay);
122
116
  get nativeElement(): HTMLElement;
123
117
  escapeKeyEvent(): void;
124
- /** Enter key event triggers click event which opens menu,
125
- * then focus is put on first item in the menu */
126
- enterKeyEvent(event: KeyboardEvent): void;
127
118
  onClick(): void;
128
119
  ngAfterViewInit(): void;
129
120
  ngOnDestroy(): void;
@@ -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;
@@ -1,7 +1,7 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare class BaoListItem {
3
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]"], false, 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
5
  }
6
6
  export declare class BaoList {
7
7
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoList, never>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "16.0.3",
3
+ "version": "16.0.5",
4
4
  "dependencies": {
5
5
  "tslib": "^2.3.0"
6
6
  },