@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.
- package/esm2022/lib/dropdown-menu/dropdown-menu.component.mjs +71 -49
- package/esm2022/lib/file/file-preview.component.mjs +20 -13
- package/esm2022/lib/list/list.component.mjs +3 -3
- package/fesm2022/villedemontreal-angular-ui.mjs +91 -62
- package/fesm2022/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/dropdown-menu/dropdown-menu.component.d.ts +2 -11
- package/lib/file/file-preview.component.d.ts +7 -6
- package/lib/list/list.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -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 {
|
|
1
|
+
import { ElementRef, Renderer2 } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class BaoFilePreviewComponent
|
|
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()
|
|
21
|
-
|
|
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>;
|