@villedemontreal/angular-ui 2.2.1 → 3.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.
- package/esm2020/lib/alert/alert.component.mjs +7 -9
- package/esm2020/lib/avatar/avatar.component.mjs +102 -0
- package/esm2020/lib/avatar/index.mjs +8 -0
- package/esm2020/lib/avatar/module.mjs +24 -0
- package/esm2020/lib/bao.module.mjs +12 -4
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +5 -5
- package/esm2020/lib/button/button.component.mjs +3 -3
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +5 -6
- package/esm2020/lib/checkbox/checkbox.component.mjs +38 -39
- package/esm2020/lib/icon/icon.component.mjs +19 -19
- package/esm2020/lib/icon/icons-dictionary.mjs +3 -2
- package/esm2020/lib/radio/radio-group.component.mjs +40 -41
- package/esm2020/lib/radio/radio.component.mjs +38 -39
- package/esm2020/lib/summary/summary.component.mjs +4 -5
- package/esm2020/lib/tabs/index.mjs +8 -0
- package/esm2020/lib/tabs/module.mjs +35 -0
- package/esm2020/lib/tabs/tabs.component.mjs +295 -0
- package/esm2020/lib/tag/tag.component.mjs +3 -3
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/villedemontreal-angular-ui.mjs +627 -171
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +627 -171
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/alert/alert.component.d.ts +2 -3
- package/lib/avatar/avatar.component.d.ts +26 -0
- package/lib/avatar/index.d.ts +2 -0
- package/lib/avatar/module.d.ts +8 -0
- package/lib/bao.module.d.ts +3 -1
- package/lib/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/lib/button/button.component.d.ts +1 -1
- package/lib/checkbox/checkbox-group.component.d.ts +2 -2
- package/lib/checkbox/checkbox.component.d.ts +27 -27
- package/lib/icon/icon.component.d.ts +9 -9
- package/lib/radio/radio-group.component.d.ts +19 -19
- package/lib/radio/radio.component.d.ts +27 -27
- package/lib/summary/summary.component.d.ts +5 -5
- package/lib/tabs/index.d.ts +2 -0
- package/lib/tabs/module.d.ts +8 -0
- package/lib/tabs/tabs.component.d.ts +95 -0
- package/lib/tag/tag.component.d.ts +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -62,9 +62,8 @@ export declare class BaoAlertComponent implements OnChanges {
|
|
|
62
62
|
/**
|
|
63
63
|
* Alert type
|
|
64
64
|
*/
|
|
65
|
-
type: '' | '
|
|
65
|
+
type: 'success' | 'danger' | 'warning' | 'emergency' | 'info';
|
|
66
66
|
dismissible: boolean;
|
|
67
|
-
showIcon: boolean;
|
|
68
67
|
dismiss: EventEmitter<any>;
|
|
69
68
|
iconType: string;
|
|
70
69
|
iconTitle: string;
|
|
@@ -73,5 +72,5 @@ export declare class BaoAlertComponent implements OnChanges {
|
|
|
73
72
|
alertTitleIcon(value: string): any;
|
|
74
73
|
onDismissClicked(): void;
|
|
75
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertComponent, never>;
|
|
76
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": "type"; "dismissible": "dismissible";
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": "type"; "dismissible": "dismissible"; }, { "dismiss": "dismiss"; }, never, ["*"]>;
|
|
77
76
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BaoAvatarContent {
|
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarContent, never>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAvatarContent, "bao-avatar-content, [bao-avatar-content]", ["baoAvatarContent"], {}, {}, never>;
|
|
6
|
+
}
|
|
7
|
+
export declare class BaoAvatarComponent implements AfterViewInit {
|
|
8
|
+
private renderer;
|
|
9
|
+
private elementRef;
|
|
10
|
+
/**
|
|
11
|
+
* Name of the profile to be used as title of the avatar.
|
|
12
|
+
*/
|
|
13
|
+
profileName: string;
|
|
14
|
+
/**
|
|
15
|
+
* ID of the background color to be used if avatar's content is text.
|
|
16
|
+
*/
|
|
17
|
+
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';
|
|
18
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
19
|
+
get nativeElement(): HTMLElement;
|
|
20
|
+
ngAfterViewInit(): void;
|
|
21
|
+
private addIcon;
|
|
22
|
+
private setProfileName;
|
|
23
|
+
private formatInitials;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAvatarComponent, "bao-avatar", never, { "profileName": "profileName"; "color": "color"; }, {}, never, ["bao-avatar-content, [bao-avatar-content]"]>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./avatar.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class BaoAvatarModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoAvatarModule, [typeof i1.BaoAvatarComponent, typeof i1.BaoAvatarContent], [typeof i2.CommonModule], [typeof i1.BaoAvatarComponent, typeof i1.BaoAvatarContent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaoAvatarModule>;
|
|
8
|
+
}
|
package/lib/bao.module.d.ts
CHANGED
|
@@ -11,8 +11,10 @@ import * as i9 from "./common-components/module";
|
|
|
11
11
|
import * as i10 from "./checkbox/module";
|
|
12
12
|
import * as i11 from "./radio/module";
|
|
13
13
|
import * as i12 from "./summary/module";
|
|
14
|
+
import * as i13 from "./avatar/module";
|
|
15
|
+
import * as i14 from "./tabs/module";
|
|
14
16
|
export declare class BaoModule {
|
|
15
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
|
|
16
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule, typeof i12.BaoSummaryModule]>;
|
|
18
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule, typeof i12.BaoSummaryModule, typeof i13.BaoAvatarModule, typeof i14.BaoTabsModule]>;
|
|
17
19
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
|
|
18
20
|
}
|
|
@@ -4,9 +4,9 @@ export declare class BaoBreadcrumbComponent implements AfterViewInit {
|
|
|
4
4
|
private renderer;
|
|
5
5
|
private staticContainer;
|
|
6
6
|
constructor(renderer: Renderer2);
|
|
7
|
-
private setLastLinkAttribute;
|
|
8
7
|
ngAfterViewInit(): void;
|
|
9
8
|
onContentChange(): void;
|
|
9
|
+
private setLastLinkAttribute;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbComponent, never>;
|
|
11
11
|
static ɵcmp: i0.ɵɵComponentDeclaration<BaoBreadcrumbComponent, "bao-breadcrumb", never, {}, {}, never, ["*"]>;
|
|
12
12
|
}
|
|
@@ -39,7 +39,7 @@ export declare class BaoButtonComponent implements AfterViewInit {
|
|
|
39
39
|
* If the icon is on the right of the label, the loading spinner will need to be on the right of the label
|
|
40
40
|
*/
|
|
41
41
|
rightIcon: boolean;
|
|
42
|
-
constructor(elementRef: ElementRef
|
|
42
|
+
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
|
|
43
43
|
get nativeElement(): HTMLElement;
|
|
44
44
|
ngAfterViewInit(): void;
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonComponent, never>;
|
|
@@ -2,16 +2,16 @@ import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BaoCheckboxGroupComponent implements AfterViewInit {
|
|
4
4
|
private cdr;
|
|
5
|
-
private _uniqueId;
|
|
6
5
|
/**
|
|
7
6
|
* The checkbox group ID. It is set dynamically with an unique ID by default
|
|
8
7
|
*/
|
|
9
8
|
id: string;
|
|
9
|
+
private staticContainer;
|
|
10
10
|
/**
|
|
11
11
|
* The aria-describedby id for web accessibilty
|
|
12
12
|
*/
|
|
13
13
|
ariaDescribedby?: string;
|
|
14
|
-
private
|
|
14
|
+
private _uniqueId;
|
|
15
15
|
constructor(cdr: ChangeDetectorRef);
|
|
16
16
|
ngAfterViewInit(): void;
|
|
17
17
|
onContentChange(): void;
|
|
@@ -14,31 +14,6 @@ export declare class BaoCheckboxComponent implements ControlValueAccessor, After
|
|
|
14
14
|
private elementRef;
|
|
15
15
|
private cdr;
|
|
16
16
|
private focusMonitor;
|
|
17
|
-
private _disabled;
|
|
18
|
-
private _checked;
|
|
19
|
-
private _indeterminate;
|
|
20
|
-
private _uniqueId;
|
|
21
|
-
/**
|
|
22
|
-
* Whether the checkbox is checked. Default value : false
|
|
23
|
-
*/
|
|
24
|
-
get checked(): boolean;
|
|
25
|
-
set checked(value: boolean);
|
|
26
|
-
/**
|
|
27
|
-
* Whether the checkbox is disabled. Default value : false
|
|
28
|
-
*/
|
|
29
|
-
get disabled(): boolean;
|
|
30
|
-
set disabled(value: boolean);
|
|
31
|
-
/**
|
|
32
|
-
* Whether the checkbox is required. Default value : false
|
|
33
|
-
*/
|
|
34
|
-
get required(): boolean;
|
|
35
|
-
set required(value: boolean);
|
|
36
|
-
private _required;
|
|
37
|
-
/**
|
|
38
|
-
* Whether the checkbox is indeterminate. Default value : false
|
|
39
|
-
*/
|
|
40
|
-
get indeterminate(): boolean;
|
|
41
|
-
set indeterminate(value: boolean);
|
|
42
17
|
/**
|
|
43
18
|
* The checkbox ID. It is set dynamically with an unique ID by default
|
|
44
19
|
*/
|
|
@@ -87,8 +62,33 @@ export declare class BaoCheckboxComponent implements ControlValueAccessor, After
|
|
|
87
62
|
* The ID of the input html element
|
|
88
63
|
*/
|
|
89
64
|
inputID: string;
|
|
90
|
-
|
|
65
|
+
private _disabled;
|
|
66
|
+
private _checked;
|
|
67
|
+
private _indeterminate;
|
|
68
|
+
private _uniqueId;
|
|
69
|
+
private _required;
|
|
70
|
+
constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor);
|
|
71
|
+
/**
|
|
72
|
+
* Whether the checkbox is checked. Default value : false
|
|
73
|
+
*/
|
|
74
|
+
get checked(): boolean;
|
|
75
|
+
/**
|
|
76
|
+
* Whether the checkbox is disabled. Default value : false
|
|
77
|
+
*/
|
|
78
|
+
get disabled(): boolean;
|
|
79
|
+
/**
|
|
80
|
+
* Whether the checkbox is required. Default value : false
|
|
81
|
+
*/
|
|
82
|
+
get required(): boolean;
|
|
83
|
+
/**
|
|
84
|
+
* Whether the checkbox is indeterminate. Default value : false
|
|
85
|
+
*/
|
|
86
|
+
get indeterminate(): boolean;
|
|
91
87
|
get nativeElement(): HTMLElement;
|
|
88
|
+
set checked(value: boolean);
|
|
89
|
+
set disabled(value: boolean);
|
|
90
|
+
set required(value: boolean);
|
|
91
|
+
set indeterminate(value: boolean);
|
|
92
92
|
ngOnInit(): void;
|
|
93
93
|
ngAfterViewInit(): void;
|
|
94
94
|
ngOnDestroy(): void;
|
|
@@ -144,7 +144,7 @@ export declare class BaoCheckboxComponent implements ControlValueAccessor, After
|
|
|
144
144
|
private onModelChange;
|
|
145
145
|
private onTouch;
|
|
146
146
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxComponent, never>;
|
|
147
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxComponent, "bao-checkbox, [bao-checkbox]", never, { "
|
|
147
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxComponent, "bao-checkbox, [bao-checkbox]", never, { "id": "id"; "ariaLabel": "aria-label"; "brandBorder": "brandBorder"; "inline": "inline"; "name": "name"; "hiddenLabel": "hiddenLabel"; "checked": "checked"; "disabled": "disabled"; "required": "required"; "indeterminate": "indeterminate"; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*", "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]"]>;
|
|
148
148
|
}
|
|
149
149
|
export declare class BaoCheckBoxDescription {
|
|
150
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckBoxDescription, never>;
|
|
@@ -13,16 +13,8 @@ export declare class BaoIconComponent implements OnDestroy {
|
|
|
13
13
|
private elementRef;
|
|
14
14
|
private iconRegistry;
|
|
15
15
|
private renderer;
|
|
16
|
-
/** Name of the icon in the SVG icon set. */
|
|
17
|
-
get svgIcon(): string;
|
|
18
|
-
set svgIcon(value: string);
|
|
19
16
|
/** The color of the icon, if not specified the icon's parent current text color will be used */
|
|
20
17
|
color: BaoColors;
|
|
21
|
-
get hexColor(): string | void;
|
|
22
|
-
/** Title that will be used as an aria-label for the icon */
|
|
23
|
-
get title(): string;
|
|
24
|
-
set title(value: string);
|
|
25
|
-
get titleId(): string;
|
|
26
18
|
/**
|
|
27
19
|
* The size of the icon
|
|
28
20
|
*/
|
|
@@ -32,6 +24,14 @@ export declare class BaoIconComponent implements OnDestroy {
|
|
|
32
24
|
private _titleId;
|
|
33
25
|
private _elementsWithExternalReferences?;
|
|
34
26
|
constructor(elementRef: ElementRef<HTMLElement>, iconRegistry: BaoIconRegistry, renderer: Renderer2, ariaHidden: string);
|
|
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
35
|
ngOnDestroy(): void;
|
|
36
36
|
private setSvgElement;
|
|
37
37
|
private clearSvgElement;
|
|
@@ -39,5 +39,5 @@ export declare class BaoIconComponent implements OnDestroy {
|
|
|
39
39
|
private addTitleToSVG;
|
|
40
40
|
private generateUniqueTitleId;
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoIconComponent, [null, null, null, { attribute: "aria-hidden"; }]>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "color": "color"; "size": "size"; "svgIcon": "svgIcon"; "title": "title"; }, {}, never, ["*"]>;
|
|
43
43
|
}
|
|
@@ -8,6 +8,19 @@ import * as i0 from "@angular/core";
|
|
|
8
8
|
export declare const BAO_RADIO_GROUP: InjectionToken<BaoRadioButtonGroupComponent>;
|
|
9
9
|
export declare class BaoRadioButtonGroupComponent implements AfterContentInit, ControlValueAccessor, AfterViewInit {
|
|
10
10
|
private cdr;
|
|
11
|
+
/**
|
|
12
|
+
* The checkbox group ID. It is set dynamically with an unique ID by default
|
|
13
|
+
*/
|
|
14
|
+
id: string;
|
|
15
|
+
/**
|
|
16
|
+
* Emit the value of the selected radio button
|
|
17
|
+
*/
|
|
18
|
+
readonly change: EventEmitter<string>;
|
|
19
|
+
private staticContainer;
|
|
20
|
+
/**
|
|
21
|
+
* The aria-describedby for web accessibilty
|
|
22
|
+
*/
|
|
23
|
+
ariaDescribedby: string | null;
|
|
11
24
|
private _radios;
|
|
12
25
|
private _value;
|
|
13
26
|
private _name;
|
|
@@ -16,45 +29,32 @@ export declare class BaoRadioButtonGroupComponent implements AfterContentInit, C
|
|
|
16
29
|
private _disabled;
|
|
17
30
|
private _required;
|
|
18
31
|
private _uniqueId;
|
|
19
|
-
|
|
20
|
-
* The checkbox group ID. It is set dynamically with an unique ID by default
|
|
21
|
-
*/
|
|
22
|
-
id: string;
|
|
32
|
+
constructor(cdr: ChangeDetectorRef);
|
|
23
33
|
/**
|
|
24
34
|
* Define the name property of all radio buttons. Default : null
|
|
25
35
|
*/
|
|
26
36
|
get name(): string | null;
|
|
27
|
-
set name(value: string | null);
|
|
28
37
|
/**
|
|
29
38
|
* Define the value of the selected radio button. Default : null
|
|
30
39
|
*/
|
|
31
40
|
get value(): string | null;
|
|
32
|
-
set value(newValue: string | null);
|
|
33
41
|
/**
|
|
34
42
|
* Define which radio button is selected. Default : null
|
|
35
43
|
*/
|
|
36
44
|
get selected(): BaoRadioButtonComponent | null;
|
|
37
|
-
set selected(selected: BaoRadioButtonComponent | null);
|
|
38
45
|
/**
|
|
39
46
|
* Whether the radio button groupd is disabled. Default : false
|
|
40
47
|
*/
|
|
41
48
|
get disabled(): boolean;
|
|
42
|
-
set disabled(value: boolean);
|
|
43
49
|
/**
|
|
44
50
|
* Whether the radio button groupd is required. Default : false
|
|
45
51
|
*/
|
|
46
52
|
get required(): boolean;
|
|
53
|
+
set name(value: string | null);
|
|
54
|
+
set value(newValue: string | null);
|
|
55
|
+
set selected(selected: BaoRadioButtonComponent | null);
|
|
56
|
+
set disabled(value: boolean);
|
|
47
57
|
set required(value: boolean);
|
|
48
|
-
/**
|
|
49
|
-
* Emit the value of the selected radio button
|
|
50
|
-
*/
|
|
51
|
-
readonly change: EventEmitter<string>;
|
|
52
|
-
/**
|
|
53
|
-
* The aria-describedby for web accessibilty
|
|
54
|
-
*/
|
|
55
|
-
ariaDescribedby: string | null;
|
|
56
|
-
private staticContainer;
|
|
57
|
-
constructor(cdr: ChangeDetectorRef);
|
|
58
58
|
ngAfterContentInit(): void;
|
|
59
59
|
ngAfterViewInit(): void;
|
|
60
60
|
/**
|
|
@@ -106,5 +106,5 @@ export declare class BaoRadioButtonGroupComponent implements AfterContentInit, C
|
|
|
106
106
|
private showAriaDescribedBy;
|
|
107
107
|
private onTouch;
|
|
108
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonGroupComponent, never>;
|
|
109
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": "id"; "name": "name"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, ["
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonGroupComponent, "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", ["baoRadioGroup"], { "id": "id"; "name": "name"; "value": "value"; "selected": "selected"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, ["staticContainer"], ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"]>;
|
|
110
110
|
}
|
|
@@ -8,11 +8,6 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
8
8
|
private cdr;
|
|
9
9
|
private focusMonitor;
|
|
10
10
|
private radioDispatcher;
|
|
11
|
-
private _checked;
|
|
12
|
-
private _disabled;
|
|
13
|
-
private _required;
|
|
14
|
-
private _value;
|
|
15
|
-
private _uniqueId;
|
|
16
11
|
/**
|
|
17
12
|
* The radio button ID. It is set dynamically with an unique ID by default
|
|
18
13
|
*/
|
|
@@ -33,26 +28,6 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
33
28
|
* The name property of the radio button
|
|
34
29
|
*/
|
|
35
30
|
name: string | null;
|
|
36
|
-
/**
|
|
37
|
-
* Whether the radio button is checked. Default : false
|
|
38
|
-
*/
|
|
39
|
-
get checked(): boolean;
|
|
40
|
-
set checked(value: boolean);
|
|
41
|
-
/**
|
|
42
|
-
* Define the radio button value. Default : null
|
|
43
|
-
*/
|
|
44
|
-
get value(): string;
|
|
45
|
-
set value(value: string);
|
|
46
|
-
/**
|
|
47
|
-
* Whether the radio button is disabled. Default : false
|
|
48
|
-
*/
|
|
49
|
-
get disabled(): boolean;
|
|
50
|
-
set disabled(value: boolean);
|
|
51
|
-
/**
|
|
52
|
-
* Whether the radio button is required. Default : false
|
|
53
|
-
*/
|
|
54
|
-
get required(): boolean;
|
|
55
|
-
set required(value: boolean);
|
|
56
31
|
/**
|
|
57
32
|
* The visible state of the label
|
|
58
33
|
*/
|
|
@@ -81,8 +56,33 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
81
56
|
* The ID of the input html element
|
|
82
57
|
*/
|
|
83
58
|
inputID: string;
|
|
84
|
-
|
|
59
|
+
private _checked;
|
|
60
|
+
private _disabled;
|
|
61
|
+
private _required;
|
|
62
|
+
private _value;
|
|
63
|
+
private _uniqueId;
|
|
64
|
+
constructor(radioGroup: BaoRadioButtonGroupComponent, elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef, focusMonitor: FocusMonitor, radioDispatcher: UniqueSelectionDispatcher);
|
|
65
|
+
/**
|
|
66
|
+
* Whether the radio button is checked. Default : false
|
|
67
|
+
*/
|
|
68
|
+
get checked(): boolean;
|
|
69
|
+
/**
|
|
70
|
+
* Define the radio button value. Default : null
|
|
71
|
+
*/
|
|
72
|
+
get value(): string;
|
|
73
|
+
/**
|
|
74
|
+
* Whether the radio button is disabled. Default : false
|
|
75
|
+
*/
|
|
76
|
+
get disabled(): boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Whether the radio button is required. Default : false
|
|
79
|
+
*/
|
|
80
|
+
get required(): boolean;
|
|
85
81
|
get nativeElement(): HTMLElement;
|
|
82
|
+
set checked(value: boolean);
|
|
83
|
+
set value(value: string);
|
|
84
|
+
set disabled(value: boolean);
|
|
85
|
+
set required(value: boolean);
|
|
86
86
|
focus(options?: FocusOptions, origin?: FocusOrigin): void;
|
|
87
87
|
/**
|
|
88
88
|
* Method called from the parent as one of the parent input has changed. Prevent change detection error.
|
|
@@ -104,7 +104,7 @@ export declare class BaoRadioButtonComponent implements AfterViewInit, OnInit, O
|
|
|
104
104
|
/** Unregister function for radioDispatcher */
|
|
105
105
|
private _removeUniqueSelectionListener;
|
|
106
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioButtonComponent, [{ optional: true; }, null, null, null, null]>;
|
|
107
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonComponent, "bao-radio-button, [bao-radio-button]", never, { "id": "id"; "ariaLabel": "aria-label"; "brandBorder": "brandBorder"; "inline": "inline"; "name": "name"; "checked": "checked"; "value": "value"; "disabled": "disabled"; "required": "required";
|
|
107
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoRadioButtonComponent, "bao-radio-button, [bao-radio-button]", never, { "id": "id"; "ariaLabel": "aria-label"; "brandBorder": "brandBorder"; "inline": "inline"; "name": "name"; "hiddenLabel": "hiddenLabel"; "checked": "checked"; "value": "value"; "disabled": "disabled"; "required": "required"; }, { "change": "change"; }, never, ["*", "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]"]>;
|
|
108
108
|
}
|
|
109
109
|
export declare class BaoRadioDescription {
|
|
110
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoRadioDescription, never>;
|
|
@@ -9,10 +9,6 @@ export declare class BaoSummaryComponent implements OnInit, AfterViewInit {
|
|
|
9
9
|
* COMPACT (viewport width < 576px)
|
|
10
10
|
*/
|
|
11
11
|
displayMode: EDisplayMode;
|
|
12
|
-
/**
|
|
13
|
-
* Initialize the ID for summary
|
|
14
|
-
*/
|
|
15
|
-
private _uniqueId;
|
|
16
12
|
/**
|
|
17
13
|
* Set value of unique ID for bao-label
|
|
18
14
|
*/
|
|
@@ -31,8 +27,12 @@ export declare class BaoSummaryComponent implements OnInit, AfterViewInit {
|
|
|
31
27
|
* The aria-labelledby id for web accessibility
|
|
32
28
|
*/
|
|
33
29
|
ariaLabelledby?: string;
|
|
30
|
+
/**
|
|
31
|
+
* Initialize the ID for summary
|
|
32
|
+
*/
|
|
33
|
+
private _uniqueId;
|
|
34
34
|
private attribues;
|
|
35
|
-
constructor(elementRef: ElementRef);
|
|
35
|
+
constructor(elementRef: ElementRef<HTMLElement>);
|
|
36
36
|
get nativeElement(): HTMLElement;
|
|
37
37
|
ngOnInit(): void;
|
|
38
38
|
ngAfterViewInit(): void;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./tabs.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class BaoTabsModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoTabsModule, [typeof i1.BaoTabsContainer, typeof i1.BaoTablistComponent, typeof i1.BaoTabHeader, typeof i1.BaoTabPanel], [typeof i2.CommonModule], [typeof i1.BaoTabsContainer, typeof i1.BaoTablistComponent, typeof i1.BaoTabHeader, typeof i1.BaoTabPanel]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<BaoTabsModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
import { AfterContentInit, AfterViewInit, ElementRef, EventEmitter, OnDestroy, QueryList, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BaoTabHeader implements AfterViewInit {
|
|
4
|
+
private renderer;
|
|
5
|
+
private elementRef;
|
|
6
|
+
/**
|
|
7
|
+
* Emits its index when tab is clicked
|
|
8
|
+
*/
|
|
9
|
+
onTabClick: EventEmitter<string>;
|
|
10
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
11
|
+
get nativeElement(): HTMLElement;
|
|
12
|
+
onClick(el: HTMLElement): void;
|
|
13
|
+
ngAfterViewInit(): void;
|
|
14
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabHeader, never>;
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabHeader, "bao-tab-header, [bao-tab-header]", ["baoTabHeader"], {}, { "onTabClick": "onTabClick"; }, never>;
|
|
16
|
+
}
|
|
17
|
+
export declare class BaoTabPanel implements AfterViewInit {
|
|
18
|
+
private renderer;
|
|
19
|
+
private elementRef;
|
|
20
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
21
|
+
get nativeElement(): HTMLElement;
|
|
22
|
+
ngAfterViewInit(): void;
|
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabPanel, never>;
|
|
24
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabPanel, "bao-panel, [bao-panel]", ["baoPanel"], {}, {}, never>;
|
|
25
|
+
}
|
|
26
|
+
export declare class BaoTablistComponent implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
27
|
+
private renderer;
|
|
28
|
+
private elementRef;
|
|
29
|
+
tabHeaders: QueryList<BaoTabHeader>;
|
|
30
|
+
/**
|
|
31
|
+
* Size of the tabs displayed
|
|
32
|
+
*/
|
|
33
|
+
size: 'small' | 'medium' | 'large';
|
|
34
|
+
/**
|
|
35
|
+
* Optionnal value to be used as aria-label property on tablist component
|
|
36
|
+
*/
|
|
37
|
+
ariaLabel: string;
|
|
38
|
+
/**
|
|
39
|
+
* Emits the index of the new active tab
|
|
40
|
+
*/
|
|
41
|
+
activeTabChange: EventEmitter<string>;
|
|
42
|
+
/**
|
|
43
|
+
* Index of the tab that is currently active
|
|
44
|
+
*/
|
|
45
|
+
private activeTabIndex;
|
|
46
|
+
/**
|
|
47
|
+
* Unique ID for every instance of BaoTablist component
|
|
48
|
+
*/
|
|
49
|
+
private uniqueId;
|
|
50
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
51
|
+
get nativeElement(): HTMLElement;
|
|
52
|
+
get tabs(): HTMLCollection;
|
|
53
|
+
leftKeyEvent(): void;
|
|
54
|
+
rightKeyEvent(): void;
|
|
55
|
+
/**
|
|
56
|
+
* Makes the focus visible on tab header when changing from mouse to keyboard navigation
|
|
57
|
+
*/
|
|
58
|
+
tabKeyEvent(): void;
|
|
59
|
+
/**
|
|
60
|
+
* Makes the focus visible on tab header when changing from mouse to keyboard navigation
|
|
61
|
+
*/
|
|
62
|
+
tabShiftKeyEvent(): void;
|
|
63
|
+
ngAfterViewInit(): void;
|
|
64
|
+
ngAfterContentInit(): void;
|
|
65
|
+
ngOnDestroy(): void;
|
|
66
|
+
private setTablistAttributes;
|
|
67
|
+
private setInitialActiveTab;
|
|
68
|
+
private changeActiveTab;
|
|
69
|
+
/**
|
|
70
|
+
* Finds the next activable tab index when navigating with left and right arrow keys
|
|
71
|
+
* @param currentIndex Tab index which currently has focus
|
|
72
|
+
* @param isRight Whether the tab navigation is going in the right direction or not
|
|
73
|
+
* @returns Index of the new tab that will receive focus
|
|
74
|
+
*/
|
|
75
|
+
private getNextActivableTabIndex;
|
|
76
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTablistComponent, never>;
|
|
77
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoTablistComponent, "bao-tablist, [bao-tablist]", never, { "size": "size"; "ariaLabel": "ariaLabel"; }, { "activeTabChange": "activeTabChange"; }, ["tabHeaders"], ["*"]>;
|
|
78
|
+
}
|
|
79
|
+
export declare class BaoTabsContainer implements AfterViewInit, AfterContentInit, OnDestroy {
|
|
80
|
+
private renderer;
|
|
81
|
+
private elementRef;
|
|
82
|
+
tablist: BaoTablistComponent;
|
|
83
|
+
private panelIdPrefix;
|
|
84
|
+
private tabIdPrefix;
|
|
85
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
86
|
+
get tabs(): HTMLCollection;
|
|
87
|
+
get panels(): NodeListOf<Element>;
|
|
88
|
+
ngAfterViewInit(): void;
|
|
89
|
+
ngAfterContentInit(): void;
|
|
90
|
+
ngOnDestroy(): void;
|
|
91
|
+
private setInitialActivePanel;
|
|
92
|
+
private changeActivePanel;
|
|
93
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTabsContainer, never>;
|
|
94
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoTabsContainer, "bao-tabs, [bao-tabs]", ["baoTabs"], {}, {}, ["tablist"]>;
|
|
95
|
+
}
|
|
@@ -15,7 +15,7 @@ export declare class BaoTagComponent implements AfterViewInit {
|
|
|
15
15
|
* The hidden text for screen readers.
|
|
16
16
|
*/
|
|
17
17
|
hiddenText: string;
|
|
18
|
-
constructor(renderer: Renderer2, elementRef: ElementRef);
|
|
18
|
+
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
|
|
19
19
|
get nativeElement(): HTMLElement;
|
|
20
20
|
ngAfterViewInit(): void;
|
|
21
21
|
private addHiddenText;
|
package/package.json
CHANGED