@villedemontreal/angular-ui 14.0.1 → 15.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 +17 -17
- package/esm2020/lib/alert/index.mjs +2 -2
- package/esm2020/lib/alert/module.mjs +6 -6
- package/esm2020/lib/avatar/avatar.component.mjs +8 -8
- package/esm2020/lib/avatar/index.mjs +2 -2
- package/esm2020/lib/avatar/module.mjs +6 -6
- package/esm2020/lib/badge/badge.component.mjs +5 -5
- package/esm2020/lib/badge/index.mjs +2 -2
- package/esm2020/lib/badge/module.mjs +6 -6
- package/esm2020/lib/bao.module.mjs +19 -12
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +5 -5
- package/esm2020/lib/breadcrumb/index.mjs +2 -2
- package/esm2020/lib/breadcrumb/module.mjs +6 -6
- package/esm2020/lib/button/button.component.mjs +5 -5
- package/esm2020/lib/button/index.mjs +2 -2
- package/esm2020/lib/button/module.mjs +6 -6
- package/esm2020/lib/card/card.component.mjs +17 -17
- package/esm2020/lib/card/index.mjs +2 -2
- package/esm2020/lib/card/module.mjs +6 -6
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +5 -5
- package/esm2020/lib/checkbox/checkbox.component.mjs +10 -10
- package/esm2020/lib/checkbox/index.mjs +2 -2
- package/esm2020/lib/checkbox/module.mjs +6 -6
- package/esm2020/lib/common-components/error-text/errorText.component.mjs +5 -5
- package/esm2020/lib/common-components/guiding-text/guidingText.component.mjs +5 -5
- package/esm2020/lib/common-components/index.mjs +2 -2
- package/esm2020/lib/common-components/label-text/labelText.component.mjs +6 -6
- package/esm2020/lib/common-components/module.mjs +10 -7
- package/esm2020/lib/common-components/title-text/titleText.component.mjs +5 -5
- package/esm2020/lib/core/colors.mjs +10 -10
- package/esm2020/lib/dropdown-menu/dropdown-menu.component.mjs +50 -27
- package/esm2020/lib/dropdown-menu/index.mjs +2 -2
- package/esm2020/lib/dropdown-menu/module.mjs +6 -6
- package/esm2020/lib/file/file-input.component.mjs +319 -0
- package/esm2020/lib/file/file-intl.mjs +65 -0
- package/esm2020/lib/file/file-preview.component.mjs +86 -0
- package/esm2020/lib/file/index.mjs +10 -0
- package/esm2020/lib/file/module.mjs +56 -0
- package/esm2020/lib/header-info/header-info.component.mjs +20 -20
- package/esm2020/lib/header-info/index.mjs +2 -2
- package/esm2020/lib/header-info/module.mjs +6 -6
- package/esm2020/lib/hyperlink/hyperlink.component.mjs +5 -5
- package/esm2020/lib/hyperlink/index.mjs +2 -2
- package/esm2020/lib/hyperlink/module.mjs +6 -6
- package/esm2020/lib/icon/bao-icon-registry.mjs +5 -5
- package/esm2020/lib/icon/icon.component.mjs +5 -5
- package/esm2020/lib/icon/icons-dictionary.mjs +3 -2
- package/esm2020/lib/icon/index.mjs +2 -2
- package/esm2020/lib/icon/module.mjs +6 -6
- package/esm2020/lib/list/index.mjs +2 -2
- package/esm2020/lib/list/list.component.mjs +17 -17
- package/esm2020/lib/list/module.mjs +6 -6
- package/esm2020/lib/modal/index.mjs +2 -2
- package/esm2020/lib/modal/modal-config.mjs +2 -2
- package/esm2020/lib/modal/modal-container.mjs +23 -37
- package/esm2020/lib/modal/modal-directives.mjs +5 -5
- package/esm2020/lib/modal/modal-ref.mjs +7 -4
- package/esm2020/lib/modal/modal.mjs +16 -37
- package/esm2020/lib/modal/module.mjs +7 -22
- package/esm2020/lib/radio/index.mjs +2 -2
- package/esm2020/lib/radio/module.mjs +6 -6
- package/esm2020/lib/radio/radio-group.component.mjs +5 -5
- package/esm2020/lib/radio/radio.component.mjs +7 -7
- package/esm2020/lib/shared/enum/display-mode.mjs +1 -1
- package/esm2020/lib/shared/index.mjs +2 -2
- package/esm2020/lib/summary/index.mjs +2 -2
- package/esm2020/lib/summary/list-summary.component.mjs +8 -8
- package/esm2020/lib/summary/module.mjs +6 -6
- package/esm2020/lib/summary/summary.component.mjs +9 -9
- package/esm2020/lib/tabs/index.mjs +2 -2
- package/esm2020/lib/tabs/module.mjs +6 -6
- package/esm2020/lib/tabs/tabs.component.mjs +14 -14
- package/esm2020/lib/tag/index.mjs +2 -2
- package/esm2020/lib/tag/module.mjs +6 -6
- package/esm2020/lib/tag/tag.component.mjs +5 -5
- package/esm2020/public-api.mjs +3 -2
- package/fesm2015/villedemontreal-angular-ui.mjs +917 -458
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +917 -456
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/alert/alert.component.d.ts +5 -5
- package/lib/avatar/avatar.component.d.ts +2 -2
- package/lib/badge/badge.component.d.ts +1 -1
- package/lib/bao.module.d.ts +12 -11
- package/lib/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/lib/button/button.component.d.ts +1 -1
- package/lib/card/card.component.d.ts +5 -5
- package/lib/checkbox/checkbox-group.component.d.ts +1 -1
- package/lib/checkbox/checkbox.component.d.ts +2 -2
- package/lib/common-components/error-text/errorText.component.d.ts +1 -1
- package/lib/common-components/guiding-text/guidingText.component.d.ts +1 -1
- package/lib/common-components/label-text/labelText.component.d.ts +1 -1
- package/lib/common-components/title-text/titleText.component.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu.component.d.ts +16 -10
- package/lib/file/file-input.component.d.ts +123 -0
- package/lib/file/file-intl.d.ts +44 -0
- package/lib/file/file-preview.component.d.ts +29 -0
- package/lib/file/index.d.ts +4 -0
- package/lib/file/module.d.ts +13 -0
- package/lib/header-info/header-info.component.d.ts +6 -6
- package/lib/hyperlink/hyperlink.component.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/list/list.component.d.ts +5 -5
- package/lib/modal/modal-config.d.ts +2 -2
- package/lib/modal/modal-container.d.ts +6 -7
- package/lib/modal/modal-directives.d.ts +1 -1
- package/lib/modal/modal-ref.d.ts +1 -0
- package/lib/modal/modal.d.ts +4 -5
- package/lib/modal/module.d.ts +1 -2
- package/lib/radio/radio-group.component.d.ts +1 -1
- package/lib/radio/radio.component.d.ts +2 -2
- package/lib/summary/list-summary.component.d.ts +2 -2
- package/lib/summary/summary.component.d.ts +2 -2
- package/lib/tabs/tabs.component.d.ts +4 -4
- package/lib/tag/tag.component.d.ts +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +1 -0
- package/esm2020/lib/modal/modal-animations.mjs +0 -29
- package/lib/modal/modal-animations.d.ts +0 -8
|
@@ -15,7 +15,7 @@ import * as i0 from "@angular/core";
|
|
|
15
15
|
*/
|
|
16
16
|
export declare class BaoAlertTitle {
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertTitle, never>;
|
|
18
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertTitle, "bao-alert-title", never, {}, {}, never, never, false>;
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertTitle, "bao-alert-title", never, {}, {}, never, never, false, never>;
|
|
19
19
|
}
|
|
20
20
|
/**
|
|
21
21
|
* Content of an alert, intended for use within `<bao-alert>`. This component is an optional
|
|
@@ -26,7 +26,7 @@ export declare class BaoAlertTitle {
|
|
|
26
26
|
*/
|
|
27
27
|
export declare class BaoAlertContent {
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertContent, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertContent, "bao-alert-content", never, {}, {}, never, never, false>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertContent, "bao-alert-content", never, {}, {}, never, never, false, never>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Bottom area of an alert that contains action buttons, intended for use within `<bao-alert>`.
|
|
@@ -37,7 +37,7 @@ export declare class BaoAlertContent {
|
|
|
37
37
|
*/
|
|
38
38
|
export declare class BaoAlertActions {
|
|
39
39
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertActions, never>;
|
|
40
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertActions, "bao-alert-actions", ["baoAlertActions"], {}, {}, never, never, false>;
|
|
40
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertActions, "bao-alert-actions", ["baoAlertActions"], {}, {}, never, never, false, never>;
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Link inside an alert message, intended for use within `<bao-alert>`.
|
|
@@ -48,7 +48,7 @@ export declare class BaoAlertActions {
|
|
|
48
48
|
*/
|
|
49
49
|
export declare class BaoAlertLink {
|
|
50
50
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertLink, never>;
|
|
51
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertLink, "bao-alert-link", never, {}, {}, never, never, false>;
|
|
51
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertLink, "bao-alert-link", never, {}, {}, never, never, false, never>;
|
|
52
52
|
}
|
|
53
53
|
/**
|
|
54
54
|
* BAO alert component. Alerts should be used when the message concerns an
|
|
@@ -72,5 +72,5 @@ export declare class BaoAlertComponent implements OnChanges {
|
|
|
72
72
|
alertTitleIcon(value: string): any;
|
|
73
73
|
onDismissClicked(): void;
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertComponent, never>;
|
|
75
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": "type"; "dismissible": "dismissible"; }, { "dismiss": "dismiss"; }, never, ["*"], false>;
|
|
75
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAlertComponent, "bao-alert", never, { "type": "type"; "dismissible": "dismissible"; }, { "dismiss": "dismiss"; }, never, ["*"], false, never>;
|
|
76
76
|
}
|
|
@@ -2,7 +2,7 @@ import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
|
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class BaoAvatarContent {
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoAvatarContent, never>;
|
|
5
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAvatarContent, "bao-avatar-content, [bao-avatar-content]", ["baoAvatarContent"], {}, {}, never, never, false>;
|
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAvatarContent, "bao-avatar-content, [bao-avatar-content]", ["baoAvatarContent"], {}, {}, never, never, false, never>;
|
|
6
6
|
}
|
|
7
7
|
export declare class BaoAvatarComponent implements AfterViewInit {
|
|
8
8
|
private renderer;
|
|
@@ -22,5 +22,5 @@ export declare class BaoAvatarComponent implements AfterViewInit {
|
|
|
22
22
|
private setProfileName;
|
|
23
23
|
private formatInitials;
|
|
24
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]"], false>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoAvatarComponent, "bao-avatar", never, { "profileName": "profileName"; "color": "color"; }, {}, never, ["bao-avatar-content, [bao-avatar-content]"], false, never>;
|
|
26
26
|
}
|
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class BaoBadgeComponent {
|
|
3
3
|
type: '' | 'success' | 'danger' | 'warning' | 'info';
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoBadgeComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoBadgeComponent, "bao-badge", never, { "type": "type"; }, {}, never, ["*"], false>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoBadgeComponent, "bao-badge", never, { "type": "type"; }, {}, never, ["*"], false, never>;
|
|
6
6
|
}
|
package/lib/bao.module.d.ts
CHANGED
|
@@ -4,20 +4,21 @@ import * as i2 from "./button/module";
|
|
|
4
4
|
import * as i3 from "./alert/module";
|
|
5
5
|
import * as i4 from "./card/module";
|
|
6
6
|
import * as i5 from "./breadcrumb/module";
|
|
7
|
-
import * as i6 from "./
|
|
8
|
-
import * as i7 from "./
|
|
9
|
-
import * as i8 from "./
|
|
10
|
-
import * as i9 from "./
|
|
11
|
-
import * as i10 from "./
|
|
12
|
-
import * as i11 from "./
|
|
13
|
-
import * as i12 from "./
|
|
14
|
-
import * as i13 from "./
|
|
15
|
-
import * as i14 from "./
|
|
16
|
-
import * as i15 from "./
|
|
7
|
+
import * as i6 from "./modal/module";
|
|
8
|
+
import * as i7 from "./tag/module";
|
|
9
|
+
import * as i8 from "./header-info/module";
|
|
10
|
+
import * as i9 from "./list/module";
|
|
11
|
+
import * as i10 from "./common-components/module";
|
|
12
|
+
import * as i11 from "./checkbox/module";
|
|
13
|
+
import * as i12 from "./radio/module";
|
|
14
|
+
import * as i13 from "./summary/module";
|
|
15
|
+
import * as i14 from "./avatar/module";
|
|
16
|
+
import * as i15 from "./tabs/module";
|
|
17
17
|
import * as i16 from "./hyperlink/module";
|
|
18
18
|
import * as i17 from "./dropdown-menu/module";
|
|
19
|
+
import * as i18 from "./file/module";
|
|
19
20
|
export declare class BaoModule {
|
|
20
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
|
|
21
|
-
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
|
|
22
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule, typeof i6.BaoModalModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i7.BaoTagModule, typeof i8.BaoHeaderInfoModule, typeof i9.BaoListModule, typeof i10.BaoCommonComponentsModule, typeof i11.BaoCheckboxModule, typeof i12.BaoRadioModule, typeof i13.BaoSummaryModule, typeof i14.BaoAvatarModule, typeof i15.BaoTabsModule, typeof i6.BaoModalModule, typeof i16.BaoHyperlinkModule, typeof i17.BaoDropdownMenuModule, typeof i18.BaoFileModule]>;
|
|
22
23
|
static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
|
|
23
24
|
}
|
|
@@ -8,5 +8,5 @@ export declare class BaoBreadcrumbComponent implements AfterViewInit {
|
|
|
8
8
|
onContentChange(): void;
|
|
9
9
|
private setLastLinkAttribute;
|
|
10
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbComponent, never>;
|
|
11
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoBreadcrumbComponent, "bao-breadcrumb", never, {}, {}, never, ["*"], false>;
|
|
11
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoBreadcrumbComponent, "bao-breadcrumb", never, {}, {}, never, ["*"], false, never>;
|
|
12
12
|
}
|
|
@@ -43,5 +43,5 @@ export declare class BaoButtonComponent implements AfterViewInit {
|
|
|
43
43
|
get nativeElement(): HTMLElement;
|
|
44
44
|
ngAfterViewInit(): void;
|
|
45
45
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonComponent, never>;
|
|
46
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoButtonComponent, "button[bao-button]", never, { "displayType": "displayType"; "level": "level"; "size": "size"; "loading": "loading"; "reversed": "reversed"; "loadingSpinnerAriaLabel": "loadingSpinnerAriaLabel"; "fullWidth": "fullWidth"; }, {}, never, ["*"], false>;
|
|
46
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoButtonComponent, "button[bao-button]", never, { "displayType": "displayType"; "level": "level"; "size": "size"; "loading": "loading"; "reversed": "reversed"; "loadingSpinnerAriaLabel": "loadingSpinnerAriaLabel"; "fullWidth": "fullWidth"; }, {}, never, ["*"], false, never>;
|
|
47
47
|
}
|
|
@@ -12,33 +12,33 @@ import * as i0 from "@angular/core";
|
|
|
12
12
|
export declare class BaoCardComponent {
|
|
13
13
|
padding: 'normal' | 'large';
|
|
14
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardComponent, never>;
|
|
15
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCardComponent, "bao-card, [bao-card], [baoCard]", never, { "padding": "padding"; }, {}, never, ["bao-card-header", "bao-card-content"], false>;
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCardComponent, "bao-card, [bao-card], [baoCard]", never, { "padding": "padding"; }, {}, never, ["bao-card-header", "bao-card-content"], false, never>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Header of a card, needed as it's used as a selector in the API.
|
|
19
19
|
*/
|
|
20
20
|
export declare class BaoCardHeader {
|
|
21
21
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardHeader, never>;
|
|
22
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardHeader, "bao-card-header, [bao-card-header], [baoCardHeader]", never, {}, {}, never, never, false>;
|
|
22
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardHeader, "bao-card-header, [bao-card-header], [baoCardHeader]", never, {}, {}, never, never, false, never>;
|
|
23
23
|
}
|
|
24
24
|
/**
|
|
25
25
|
* Body of a card, needed as it's used as a selector in the API.
|
|
26
26
|
*/
|
|
27
27
|
export declare class BaoCardContent {
|
|
28
28
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardContent, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardContent, "bao-card-content, [bao-card-content], [baoCardContent]", never, {}, {}, never, never, false>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardContent, "bao-card-content, [bao-card-content], [baoCardContent]", never, {}, {}, never, never, false, never>;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Title of a card, needed as it's used as a selector in the API.
|
|
33
33
|
*/
|
|
34
34
|
export declare class BaoCardTitle {
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardTitle, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTitle, "bao-card-title, [bao-card-title], [baoCardTitle]", never, {}, {}, never, never, false>;
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTitle, "bao-card-title, [bao-card-title], [baoCardTitle]", never, {}, {}, never, never, false, never>;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
39
39
|
* Text of a card, needed as it's used as a selector in the API.
|
|
40
40
|
*/
|
|
41
41
|
export declare class BaoCardTextInterface {
|
|
42
42
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardTextInterface, never>;
|
|
43
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTextInterface, "bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]", never, {}, {}, never, never, false>;
|
|
43
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTextInterface, "bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]", never, {}, {}, never, never, false, never>;
|
|
44
44
|
}
|
|
@@ -21,5 +21,5 @@ export declare class BaoCheckboxGroupComponent implements AfterViewInit {
|
|
|
21
21
|
private setAriaDescribedByToDescription;
|
|
22
22
|
private showAriaDescribedBy;
|
|
23
23
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxGroupComponent, never>;
|
|
24
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxGroupComponent, "bao-checkbox-group, [bao-checkbox-group]", never, { "id": "id"; }, {}, never, ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false>;
|
|
24
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxGroupComponent, "bao-checkbox-group, [bao-checkbox-group]", never, { "id": "id"; }, {}, never, ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
|
|
25
25
|
}
|
|
@@ -144,9 +144,9 @@ 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, { "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]"], false>;
|
|
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]"], false, never>;
|
|
148
148
|
}
|
|
149
149
|
export declare class BaoCheckBoxDescription {
|
|
150
150
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckBoxDescription, never>;
|
|
151
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCheckBoxDescription, "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", never, {}, {}, never, never, false>;
|
|
151
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCheckBoxDescription, "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", never, {}, {}, never, never, false, never>;
|
|
152
152
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BaoErrorTextComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoErrorTextComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoErrorTextComponent, "bao-error, [bao-error]", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoErrorTextComponent, "bao-error, [bao-error]", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BaoGuidingTextComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoGuidingTextComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoGuidingTextComponent, "bao-guiding-text, [bao-guiding-text]", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoGuidingTextComponent, "bao-guiding-text, [bao-guiding-text]", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -2,5 +2,5 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
export declare class BaoLabelTextComponent {
|
|
3
3
|
required: boolean;
|
|
4
4
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoLabelTextComponent, never>;
|
|
5
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoLabelTextComponent, "bao-label, [bao-label]", never, { "required": "required"; }, {}, never, ["*"], false>;
|
|
5
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoLabelTextComponent, "bao-label, [bao-label]", never, { "required": "required"; }, {}, never, ["*"], false, never>;
|
|
6
6
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class BaoTitleTextComponent {
|
|
3
3
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoTitleTextComponent, never>;
|
|
4
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoTitleTextComponent, "bao-title-text, [bao-title-text]", never, {}, {}, never, ["*"], false>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoTitleTextComponent, "bao-title-text, [bao-title-text]", never, {}, {}, never, ["*"], false, never>;
|
|
5
5
|
}
|
|
@@ -10,6 +10,10 @@ export declare class BaoDropdownMenuItem implements AfterViewInit, OnChanges {
|
|
|
10
10
|
* Is the list item disabled
|
|
11
11
|
*/
|
|
12
12
|
disabled: boolean;
|
|
13
|
+
/**
|
|
14
|
+
* Emits when menu item is clicked
|
|
15
|
+
*/
|
|
16
|
+
itemClicked: EventEmitter<any>;
|
|
13
17
|
constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>, _parent: BaoDropdownMenuComponent);
|
|
14
18
|
get nativeElement(): HTMLElement;
|
|
15
19
|
spaceKeyEvent(): void;
|
|
@@ -22,13 +26,14 @@ export declare class BaoDropdownMenuItem implements AfterViewInit, OnChanges {
|
|
|
22
26
|
private addPaddingClass;
|
|
23
27
|
private disableItem;
|
|
24
28
|
/**
|
|
25
|
-
* This method propagates a click event to menu item children with inputs (checkbox, radio button)
|
|
29
|
+
* This method propagates a click event to menu item children with inputs (checkbox, radio button).
|
|
30
|
+
* It emits event to close menu if item does not contain an input.
|
|
26
31
|
*/
|
|
27
32
|
private propagateClick;
|
|
28
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItem, never>;
|
|
29
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItem, "bao-dropdown-menu-item, [bao-dropdown-menu-item]", never, { "disabled": "disabled"; }, {}, never, never, false>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItem, "bao-dropdown-menu-item, [bao-dropdown-menu-item]", never, { "disabled": "disabled"; }, { "itemClicked": "itemClicked"; }, never, never, false, never>;
|
|
30
35
|
}
|
|
31
|
-
export declare class BaoDropdownMenuComponent implements AfterViewInit {
|
|
36
|
+
export declare class BaoDropdownMenuComponent implements AfterContentInit, AfterViewInit {
|
|
32
37
|
private cdr;
|
|
33
38
|
private renderer;
|
|
34
39
|
private elementRef;
|
|
@@ -78,6 +83,7 @@ export declare class BaoDropdownMenuComponent implements AfterViewInit {
|
|
|
78
83
|
/** Prevents focus to be lost when SHIFT + TAB has reached beginning of menu */
|
|
79
84
|
shiftTabKeyEvent(): void;
|
|
80
85
|
ngAfterViewInit(): void;
|
|
86
|
+
ngAfterContentInit(): void;
|
|
81
87
|
focusFirstItem(): void;
|
|
82
88
|
open(): void;
|
|
83
89
|
close(): void;
|
|
@@ -100,7 +106,7 @@ export declare class BaoDropdownMenuComponent implements AfterViewInit {
|
|
|
100
106
|
*/
|
|
101
107
|
private canMove;
|
|
102
108
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuComponent, never>;
|
|
103
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuComponent, "bao-dropdown-menu", never, {}, { "isOpenChange": "isOpenChange"; "isClosedByKeyEvent": "isClosedByKeyEvent"; }, ["_listItems"], ["*"], false>;
|
|
109
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuComponent, "bao-dropdown-menu", never, {}, { "isOpenChange": "isOpenChange"; "isClosedByKeyEvent": "isClosedByKeyEvent"; }, ["_listItems"], ["*"], false, never>;
|
|
104
110
|
}
|
|
105
111
|
/**
|
|
106
112
|
* Directive to be applied on element that will trigger the opening and closing of menu.
|
|
@@ -117,7 +123,7 @@ export declare class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy
|
|
|
117
123
|
escapeKeyEvent(): void;
|
|
118
124
|
/** Enter key event triggers click event which opens menu,
|
|
119
125
|
* then focus is put on first item in the menu */
|
|
120
|
-
enterKeyEvent(): void;
|
|
126
|
+
enterKeyEvent(event: KeyboardEvent): void;
|
|
121
127
|
onClick(): void;
|
|
122
128
|
ngAfterViewInit(): void;
|
|
123
129
|
ngOnDestroy(): void;
|
|
@@ -127,7 +133,7 @@ export declare class BaoDropdownMenuTrigger implements AfterViewInit, OnDestroy
|
|
|
127
133
|
private createOverlay;
|
|
128
134
|
private getOverlayConfig;
|
|
129
135
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuTrigger, never>;
|
|
130
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuTrigger, "bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]", never, { "menu": "baoDropdownMenuTriggerFor"; }, {}, never, never, false>;
|
|
136
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuTrigger, "bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]", never, { "menu": "baoDropdownMenuTriggerFor"; }, {}, never, never, false, never>;
|
|
131
137
|
}
|
|
132
138
|
/**
|
|
133
139
|
* Sections of list items in menu. Apply proper styling to section's title if there is one.
|
|
@@ -140,21 +146,21 @@ export declare class BaoDropdownMenuSection implements AfterViewInit {
|
|
|
140
146
|
ngAfterViewInit(): void;
|
|
141
147
|
private insertTitle;
|
|
142
148
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuSection, never>;
|
|
143
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuSection, "bao-dropdown-menu-section, [bao-dropdown-menu-section]", never, {}, {}, never, never, false>;
|
|
149
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuSection, "bao-dropdown-menu-section, [bao-dropdown-menu-section]", never, {}, {}, never, never, false, never>;
|
|
144
150
|
}
|
|
145
151
|
/**
|
|
146
152
|
* Label of a list item, add css class to apply proper styling.
|
|
147
153
|
*/
|
|
148
154
|
export declare class BaoDropdownMenuItemLabel {
|
|
149
155
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemLabel, never>;
|
|
150
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemLabel, "bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]", never, {}, {}, never, never, false>;
|
|
156
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemLabel, "bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]", never, {}, {}, never, never, false, never>;
|
|
151
157
|
}
|
|
152
158
|
/**
|
|
153
159
|
* Description of a list item, add css class to apply proper styling.
|
|
154
160
|
*/
|
|
155
161
|
export declare class BaoDropdownMenuItemDescription {
|
|
156
162
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuItemDescription, never>;
|
|
157
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemDescription, "bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]", never, {}, {}, never, never, false>;
|
|
163
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoDropdownMenuItemDescription, "bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]", never, {}, {}, never, never, false, never>;
|
|
158
164
|
}
|
|
159
165
|
/**
|
|
160
166
|
* Divider to separate sections.
|
|
@@ -166,5 +172,5 @@ export declare class BaoDropdownMenuDivider implements AfterContentInit {
|
|
|
166
172
|
get nativeElement(): HTMLElement;
|
|
167
173
|
ngAfterContentInit(): void;
|
|
168
174
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoDropdownMenuDivider, never>;
|
|
169
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuDivider, "bao-dropdown-menu-divider, [bao-dropdown-menu-divider]", never, {}, {}, never, never, false>;
|
|
175
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoDropdownMenuDivider, "bao-dropdown-menu-divider, [bao-dropdown-menu-divider]", never, {}, {}, never, never, false, never>;
|
|
170
176
|
}
|
|
@@ -0,0 +1,123 @@
|
|
|
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": "id"; "label": "label"; "size": "size"; "maximalFileSize": "maximalFileSize"; "acceptedMIMETypes": "acceptedMIMETypes"; "required": "required"; "disabled": "disabled"; }, { "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
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { AfterContentInit, ElementRef, Renderer2 } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class BaoFilePreviewComponent implements AfterContentInit {
|
|
4
|
+
private elementRef;
|
|
5
|
+
private renderer;
|
|
6
|
+
/**
|
|
7
|
+
* Uploaded file to display in list.
|
|
8
|
+
*/
|
|
9
|
+
file: File;
|
|
10
|
+
/**
|
|
11
|
+
* Is file loading
|
|
12
|
+
*/
|
|
13
|
+
isLoading: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* True if projected content has no icon and file does not have a thumbnail.
|
|
16
|
+
*/
|
|
17
|
+
insertGenericIcon: boolean;
|
|
18
|
+
thumbnailURL: string;
|
|
19
|
+
constructor(elementRef: ElementRef<HTMLElement>, renderer: Renderer2);
|
|
20
|
+
get nativeElement(): HTMLElement;
|
|
21
|
+
get fileSize(): string;
|
|
22
|
+
ngAfterContentInit(): void;
|
|
23
|
+
private setIcon;
|
|
24
|
+
private getThumbnail;
|
|
25
|
+
private formatSize;
|
|
26
|
+
private getSizeAndUnit;
|
|
27
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<BaoFilePreviewComponent, never>;
|
|
28
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoFilePreviewComponent, "bao-file-preview, [bao-file-preview]", never, { "file": "file"; "isLoading": "isLoading"; }, {}, never, ["bao-icon", "button[bao-button]", "baoDropdownTriggerFor"], false, never>;
|
|
29
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
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
|
+
}
|
|
@@ -15,25 +15,25 @@ export declare class BaoHeaderInfoComponent {
|
|
|
15
15
|
imageUrl: string;
|
|
16
16
|
brandBorder: boolean;
|
|
17
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoHeaderInfoComponent, "bao-header-info", never, { "notch": "notch"; "imageUrl": "imageUrl"; "brandBorder": "brandBorder"; }, {}, never, ["bao-header-info-title-group", "*"], false>;
|
|
18
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoHeaderInfoComponent, "bao-header-info", never, { "notch": "notch"; "imageUrl": "imageUrl"; "brandBorder": "brandBorder"; }, {}, never, ["bao-header-info-title-group", "*"], false, never>;
|
|
19
19
|
}
|
|
20
20
|
export declare class BaoHeaderInfoTitleGroupComponent {
|
|
21
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>;
|
|
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
23
|
}
|
|
24
24
|
export declare class BaoHeaderInfoContent {
|
|
25
25
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoHeaderInfoContent, never>;
|
|
26
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoContent, "bao-header-info-content", never, {}, {}, never, never, false>;
|
|
26
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoContent, "bao-header-info-content", never, {}, {}, never, never, false, never>;
|
|
27
27
|
}
|
|
28
28
|
export declare class BaoHeaderInfoSurtitle {
|
|
29
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>;
|
|
30
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSurtitle, "bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]", never, {}, {}, never, never, false, never>;
|
|
31
31
|
}
|
|
32
32
|
export declare class BaoHeaderInfoSubtitle {
|
|
33
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>;
|
|
34
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoSubtitle, "bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]", never, {}, {}, never, never, false, never>;
|
|
35
35
|
}
|
|
36
36
|
export declare class BaoHeaderInfoTitle {
|
|
37
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>;
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoHeaderInfoTitle, "bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]", never, {}, {}, never, never, false, never>;
|
|
39
39
|
}
|
|
@@ -13,5 +13,5 @@ export declare class BaoHyperlinkComponent implements AfterViewInit {
|
|
|
13
13
|
private setIcon;
|
|
14
14
|
private addIconClass;
|
|
15
15
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoHyperlinkComponent, never>;
|
|
16
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoHyperlinkComponent, "bao-hyperlink, [bao-hyperlink]", never, { "size": "size"; }, {}, never, ["*"], false>;
|
|
16
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoHyperlinkComponent, "bao-hyperlink, [bao-hyperlink]", never, { "size": "size"; }, {}, never, ["*"], false, never>;
|
|
17
17
|
}
|
|
@@ -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, never>;
|
|
42
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "color": "color"; "size": "size"; "svgIcon": "svgIcon"; "title": "title"; }, {}, never, ["*"], false>;
|
|
42
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoIconComponent, "bao-icon", ["baoIcon"], { "color": "color"; "size": "size"; "svgIcon": "svgIcon"; "title": "title"; }, {}, never, ["*"], false, never>;
|
|
43
43
|
}
|
|
@@ -1,21 +1,21 @@
|
|
|
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>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<BaoListItem, "bao-list-item, [bao-list-item]", never, {}, {}, never, ["baoIconItemType, [baoIconItemType]", "*", "bao-tag, [bao-tag], baoIconTag, [baoIconTag]"], false, never>;
|
|
5
5
|
}
|
|
6
6
|
export declare class BaoList {
|
|
7
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoList, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoList, "bao-list, [bao-list]", never, {}, {}, never, never, false>;
|
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoList, "bao-list, [bao-list]", never, {}, {}, never, never, false, never>;
|
|
9
9
|
}
|
|
10
10
|
export declare class BaoNavList {
|
|
11
11
|
static ɵfac: i0.ɵɵFactoryDeclaration<BaoNavList, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoNavList, "bao-nav-list, [bao-nav-list]", never, {}, {}, never, never, false>;
|
|
12
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoNavList, "bao-nav-list, [bao-nav-list]", never, {}, {}, never, never, false, never>;
|
|
13
13
|
}
|
|
14
14
|
export declare class BaoListItemDescription {
|
|
15
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>;
|
|
16
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemDescription, "bao-list-item-description, [bao-list-item-description]", never, {}, {}, never, never, false, never>;
|
|
17
17
|
}
|
|
18
18
|
export declare class BaoListItemTitle {
|
|
19
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>;
|
|
20
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<BaoListItemTitle, "bao-list-item-title, [bao-list-item-title]", never, {}, {}, never, never, false, never>;
|
|
21
21
|
}
|
|
@@ -17,9 +17,9 @@ export interface BaoModalConfig {
|
|
|
17
17
|
ariaLabelledBy?: string;
|
|
18
18
|
}
|
|
19
19
|
/** Options for where to set focus to automatically on dialog open */
|
|
20
|
-
export
|
|
20
|
+
export type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
|
|
21
21
|
/** Valid ARIA roles for a dialog element. */
|
|
22
|
-
export
|
|
22
|
+
export type ModalRole = 'dialog' | 'alertdialog';
|
|
23
23
|
/** Possible overrides for a dialog's position. */
|
|
24
24
|
export interface ModalPosition {
|
|
25
25
|
/** Override for the dialog's top position. */
|