@villedemontreal/angular-ui 19.0.0 → 20.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.
Files changed (99) hide show
  1. package/fesm2022/villedemontreal-angular-ui.mjs +373 -348
  2. package/fesm2022/villedemontreal-angular-ui.mjs.map +1 -1
  3. package/index.d.ts +2385 -3
  4. package/package.json +5 -5
  5. package/lib/alert/alert.component.d.ts +0 -78
  6. package/lib/alert/index.d.ts +0 -2
  7. package/lib/alert/module.d.ts +0 -10
  8. package/lib/avatar/avatar.component.d.ts +0 -26
  9. package/lib/avatar/index.d.ts +0 -2
  10. package/lib/avatar/module.d.ts +0 -8
  11. package/lib/badge/badge.component.d.ts +0 -6
  12. package/lib/badge/index.d.ts +0 -2
  13. package/lib/badge/module.d.ts +0 -8
  14. package/lib/bao.module.d.ts +0 -28
  15. package/lib/breadcrumb/breadcrumb.component.d.ts +0 -12
  16. package/lib/breadcrumb/index.d.ts +0 -2
  17. package/lib/breadcrumb/module.d.ts +0 -9
  18. package/lib/button/button.component.d.ts +0 -47
  19. package/lib/button/index.d.ts +0 -2
  20. package/lib/button/module.d.ts +0 -9
  21. package/lib/card/card.component.d.ts +0 -44
  22. package/lib/card/index.d.ts +0 -2
  23. package/lib/card/module.d.ts +0 -8
  24. package/lib/checkbox/checkbox-group.component.d.ts +0 -25
  25. package/lib/checkbox/checkbox.component.d.ts +0 -152
  26. package/lib/checkbox/index.d.ts +0 -3
  27. package/lib/checkbox/module.d.ts +0 -11
  28. package/lib/common-components/error-text/errorText.component.d.ts +0 -5
  29. package/lib/common-components/guiding-text/guidingText.component.d.ts +0 -5
  30. package/lib/common-components/index.d.ts +0 -5
  31. package/lib/common-components/label-text/labelText.component.d.ts +0 -6
  32. package/lib/common-components/module.d.ts +0 -11
  33. package/lib/common-components/title-text/titleText.component.d.ts +0 -5
  34. package/lib/core/breakpoints.d.ts +0 -7
  35. package/lib/core/colors.d.ts +0 -12
  36. package/lib/core/index.d.ts +0 -2
  37. package/lib/dropdown-menu/dropdown-menu.component.d.ts +0 -167
  38. package/lib/dropdown-menu/index.d.ts +0 -2
  39. package/lib/dropdown-menu/module.d.ts +0 -11
  40. package/lib/file/file-input.component.d.ts +0 -123
  41. package/lib/file/file-intl.d.ts +0 -44
  42. package/lib/file/file-preview.component.d.ts +0 -31
  43. package/lib/file/index.d.ts +0 -4
  44. package/lib/file/module.d.ts +0 -13
  45. package/lib/header-info/header-info.component.d.ts +0 -39
  46. package/lib/header-info/index.d.ts +0 -2
  47. package/lib/header-info/module.d.ts +0 -8
  48. package/lib/hyperlink/hyperlink.component.d.ts +0 -18
  49. package/lib/hyperlink/index.d.ts +0 -2
  50. package/lib/hyperlink/module.d.ts +0 -8
  51. package/lib/icon/bao-icon-registry.d.ts +0 -12
  52. package/lib/icon/icon.component.d.ts +0 -44
  53. package/lib/icon/icons-dictionary.d.ts +0 -4
  54. package/lib/icon/index.d.ts +0 -2
  55. package/lib/icon/module.d.ts +0 -8
  56. package/lib/list/index.d.ts +0 -2
  57. package/lib/list/list.component.d.ts +0 -21
  58. package/lib/list/module.d.ts +0 -8
  59. package/lib/message-bar/index.d.ts +0 -2
  60. package/lib/message-bar/message-bar.component.d.ts +0 -28
  61. package/lib/message-bar/module.d.ts +0 -11
  62. package/lib/modal/index.d.ts +0 -6
  63. package/lib/modal/modal-config.d.ts +0 -116
  64. package/lib/modal/modal-container.d.ts +0 -105
  65. package/lib/modal/modal-directives.d.ts +0 -25
  66. package/lib/modal/modal-ref.d.ts +0 -104
  67. package/lib/modal/modal.d.ts +0 -90
  68. package/lib/modal/module.d.ts +0 -11
  69. package/lib/pagination/index.d.ts +0 -2
  70. package/lib/pagination/module.d.ts +0 -10
  71. package/lib/pagination/pagination.component.d.ts +0 -106
  72. package/lib/radio/index.d.ts +0 -3
  73. package/lib/radio/module.d.ts +0 -13
  74. package/lib/radio/radio-group.component.d.ts +0 -110
  75. package/lib/radio/radio.component.d.ts +0 -112
  76. package/lib/shared/enum/display-mode.d.ts +0 -4
  77. package/lib/shared/index.d.ts +0 -1
  78. package/lib/snack-bar/index.d.ts +0 -6
  79. package/lib/snack-bar/module.d.ts +0 -13
  80. package/lib/snack-bar/simple-snack-bar.component.d.ts +0 -51
  81. package/lib/snack-bar/snack-bar-animations.d.ts +0 -8
  82. package/lib/snack-bar/snack-bar-config.d.ts +0 -51
  83. package/lib/snack-bar/snack-bar-container.d.ts +0 -111
  84. package/lib/snack-bar/snack-bar-ref.d.ts +0 -51
  85. package/lib/snack-bar/snack-bar.d.ts +0 -89
  86. package/lib/summary/index.d.ts +0 -3
  87. package/lib/summary/list-summary.component.d.ts +0 -9
  88. package/lib/summary/module.d.ts +0 -10
  89. package/lib/summary/summary.component.d.ts +0 -47
  90. package/lib/system-header/index.d.ts +0 -2
  91. package/lib/system-header/module.d.ts +0 -9
  92. package/lib/system-header/system-header.component.d.ts +0 -42
  93. package/lib/tabs/index.d.ts +0 -2
  94. package/lib/tabs/module.d.ts +0 -8
  95. package/lib/tabs/tabs.component.d.ts +0 -95
  96. package/lib/tag/index.d.ts +0 -2
  97. package/lib/tag/module.d.ts +0 -8
  98. package/lib/tag/tag.component.d.ts +0 -25
  99. package/public-api.d.ts +0 -25
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "19.0.0",
3
+ "version": "20.0.0",
4
4
  "dependencies": {
5
5
  "tslib": "^2.7.0"
6
6
  },
7
7
  "peerDependencies": {
8
- "@angular/cdk": ">=19.0.0 <20.0.0",
9
- "@angular/common": ">=19.0.0 <20.0.0",
10
- "@angular/core": ">=19.0.0 <20.0.0",
11
- "@angular/forms": ">=19.0.0 <20.0.0"
8
+ "@angular/cdk": ">=20.0.0 <21.0.0",
9
+ "@angular/common": ">=20.0.0 <21.0.0",
10
+ "@angular/core": ">=20.0.0 <21.0.0",
11
+ "@angular/forms": ">=20.0.0 <21.0.0"
12
12
  },
13
13
  "module": "fesm2022/villedemontreal-angular-ui.mjs",
14
14
  "typings": "index.d.ts",
@@ -1,78 +0,0 @@
1
- import { EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- /**
4
- * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
5
- * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
6
- * content block element may be used in its place.
7
- *
8
- * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
9
- */
10
- /**
11
- * Title of an alert, intended for use within `<bao-alert>`. This component is an optional
12
- * convenience for one variety of alert title; any custom title element may be used in its place.
13
- *
14
- * BaoAlertTitle provides no behaviors, instead serving as a purely visual treatment.
15
- */
16
- export declare class BaoAlertTitle {
17
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertTitle, never>;
18
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertTitle, "bao-alert-title", never, {}, {}, never, never, false, never>;
19
- }
20
- /**
21
- * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
22
- * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
23
- * content block element may be used in its place.
24
- *
25
- * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
26
- */
27
- export declare class BaoAlertContent {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertContent, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertContent, "bao-alert-content", never, {}, {}, never, never, false, never>;
30
- }
31
- /**
32
- * Bottom area of an alert that contains action buttons, intended for use within `<bao-alert>`.
33
- * This component is an optional convenience for use with other convenience elements, such as
34
- * `<bao-alert-content>`; any custom action block element may be used in its place.
35
- *
36
- * BaoAlertActions provides no behaviors, instead serving as a purely visual treatment.
37
- */
38
- export declare class BaoAlertActions {
39
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertActions, never>;
40
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertActions, "bao-alert-actions", ["baoAlertActions"], {}, {}, never, never, false, never>;
41
- }
42
- /**
43
- * Link inside an alert message, intended for use within `<bao-alert>`.
44
- * This component is an optional convenience for use with other convenience elements, such as
45
- * `<bao-alert-content>`; any custom action block element may be used in its place.
46
- *
47
- * BaoAlertLink provides no behaviors, instead serving as a purely visual treatment.
48
- */
49
- export declare class BaoAlertLink {
50
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertLink, never>;
51
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoAlertLink, "bao-alert-link", never, {}, {}, never, never, false, never>;
52
- }
53
- /**
54
- * BAO alert component. Alerts should be used when the message concerns an
55
- * external subject or a part of the page
56
- *
57
- * See https://zeroheight.com/575tugn0n/p/03c51f-messages-dalerte/t/80b47c
58
- *
59
- * BaoAlertComponent provides no behaviors, instead serving as a purely visual treatment.
60
- */
61
- export declare class BaoAlertComponent implements OnChanges {
62
- /**
63
- * Alert type
64
- */
65
- type: 'success' | 'danger' | 'warning' | 'emergency' | 'info';
66
- dismissible: boolean;
67
- alertTypeTitle?: string;
68
- dismissibleButtonAriaLabel?: string;
69
- dismiss: EventEmitter<any>;
70
- iconType: string;
71
- iconTitle: string;
72
- ngOnChanges(changes: SimpleChanges): void;
73
- alertTypeIcon(value: string): any;
74
- alertTitleIcon(value: string): any;
75
- onDismissClicked(): void;
76
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertComponent, 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>;
78
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './alert.component';
@@ -1,10 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./alert.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../icon/module";
5
- import * as i4 from "../button/module";
6
- export declare class BaoAlertModule {
7
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoAlertModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoAlertModule, [typeof i1.BaoAlertTitle, typeof i1.BaoAlertContent, typeof i1.BaoAlertActions, typeof i1.BaoAlertLink, typeof i1.BaoAlertComponent], [typeof i2.CommonModule, typeof i3.BaoIconModule, typeof i4.BaoButtonModule], [typeof i1.BaoAlertTitle, typeof i1.BaoAlertContent, typeof i1.BaoAlertActions, typeof i1.BaoAlertLink, typeof i1.BaoAlertComponent, typeof i3.BaoIconModule, typeof i4.BaoButtonModule]>;
9
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoAlertModule>;
10
- }
@@ -1,26 +0,0 @@
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, never, false, 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": { "alias": "profileName"; "required": false; }; "color": { "alias": "color"; "required": false; }; }, {}, never, ["bao-avatar-content, [bao-avatar-content]"], false, never>;
26
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './avatar.component';
@@ -1,8 +0,0 @@
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
- }
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoBadgeComponent {
3
- type: '' | 'success' | 'danger' | 'warning' | 'info';
4
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBadgeComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoBadgeComponent, "bao-badge", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, ["*"], false, never>;
6
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './badge.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./badge.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoBadgeModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBadgeModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoBadgeModule, [typeof i1.BaoBadgeComponent], [typeof i2.CommonModule], [typeof i1.BaoBadgeComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoBadgeModule>;
8
- }
@@ -1,28 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./icon/module";
3
- import * as i2 from "./button/module";
4
- import * as i3 from "./alert/module";
5
- import * as i4 from "./card/module";
6
- import * as i5 from "./breadcrumb/module";
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
- import * as i16 from "./hyperlink/module";
18
- import * as i17 from "./dropdown-menu/module";
19
- import * as i18 from "./file/module";
20
- import * as i19 from "./snack-bar/module";
21
- import * as i20 from "./system-header/module";
22
- import * as i21 from "./message-bar/module";
23
- import * as i22 from "./pagination/module";
24
- export declare class BaoModule {
25
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
26
- 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, typeof i19.BaoSnackBarModule, typeof i20.BaoSystemHeaderModule, typeof i21.BaoMessageBarModule, typeof i22.BaoPaginationModule]>;
27
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
28
- }
@@ -1,12 +0,0 @@
1
- import { AfterViewInit, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoBreadcrumbComponent implements AfterViewInit {
4
- private renderer;
5
- private staticContainer;
6
- constructor(renderer: Renderer2);
7
- ngAfterViewInit(): void;
8
- onContentChange(): void;
9
- private setLastLinkAttribute;
10
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbComponent, never>;
11
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoBreadcrumbComponent, "bao-breadcrumb", never, {}, {}, never, ["*"], false, never>;
12
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './breadcrumb.component';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./breadcrumb.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "@angular/cdk/observers";
5
- export declare class BaoBreadcrumbModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBreadcrumbModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoBreadcrumbModule, [typeof i1.BaoBreadcrumbComponent], [typeof i2.CommonModule, typeof i3.ObserversModule], [typeof i1.BaoBreadcrumbComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoBreadcrumbModule>;
9
- }
@@ -1,47 +0,0 @@
1
- import { AfterContentInit, ChangeDetectorRef, ElementRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoButtonComponent implements AfterContentInit {
4
- private elementRef;
5
- private cdr;
6
- /**
7
- * The display type of the button
8
- */
9
- displayType: 'utility' | 'editorial';
10
- /**
11
- * The hierarchy level of the button
12
- */
13
- level: 'primary' | 'secondary' | 'tertiary';
14
- /**
15
- * The size of the button
16
- */
17
- size: 'large' | 'medium' | 'small';
18
- /**
19
- * Flag to set the button in loading state
20
- */
21
- loading: boolean;
22
- /**
23
- * Flag to set the button reversed color mode
24
- */
25
- reversed: boolean;
26
- /**
27
- * The aria-label of the loading spinner if it displayed alone
28
- */
29
- loadingSpinnerAriaLabel: string;
30
- /**
31
- * Allows the button to grow to the width of it's container
32
- */
33
- fullWidth: boolean;
34
- /**
35
- * If there is no text, some margin/padding will be different, i.e. for the spinner
36
- */
37
- noText: boolean;
38
- /**
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
- */
41
- rightIcon: boolean;
42
- constructor(elementRef: ElementRef<HTMLElement>, cdr: ChangeDetectorRef);
43
- get nativeElement(): HTMLElement;
44
- ngAfterContentInit(): void;
45
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonComponent, never>;
46
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoButtonComponent, "button[bao-button]", never, { "displayType": { "alias": "displayType"; "required": false; }; "level": { "alias": "level"; "required": false; }; "size": { "alias": "size"; "required": false; }; "loading": { "alias": "loading"; "required": false; }; "reversed": { "alias": "reversed"; "required": false; }; "loadingSpinnerAriaLabel": { "alias": "loadingSpinnerAriaLabel"; "required": false; }; "fullWidth": { "alias": "fullWidth"; "required": false; }; }, {}, never, ["*"], false, never>;
47
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './button.component';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./button.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../icon/module";
5
- export declare class BaoButtonModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoButtonModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoButtonModule, [typeof i1.BaoButtonComponent], [typeof i2.CommonModule, typeof i3.BaoIconModule], [typeof i1.BaoButtonComponent, typeof i3.BaoIconModule]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoButtonModule>;
9
- }
@@ -1,44 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- /**
3
- * A basic content container component that adds the styles of a BAO design card.
4
- *
5
- * While this component can be used alone, it also provides a number
6
- * of preset styles for common card sections, including:
7
- * * bao-card-body
8
- * * bao-card-title
9
- * * bao-card-bao-text-interface
10
- * * More to come!
11
- */
12
- export declare class BaoCardComponent {
13
- padding: 'normal' | 'large';
14
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoCardComponent, "bao-card, [bao-card], [baoCard]", never, { "padding": { "alias": "padding"; "required": false; }; }, {}, never, ["bao-card-header", "bao-card-content"], false, never>;
16
- }
17
- /**
18
- * Header of a card, needed as it's used as a selector in the API.
19
- */
20
- export declare class BaoCardHeader {
21
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardHeader, never>;
22
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardHeader, "bao-card-header, [bao-card-header], [baoCardHeader]", never, {}, {}, never, never, false, never>;
23
- }
24
- /**
25
- * Body of a card, needed as it's used as a selector in the API.
26
- */
27
- export declare class BaoCardContent {
28
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardContent, never>;
29
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardContent, "bao-card-content, [bao-card-content], [baoCardContent]", never, {}, {}, never, never, false, never>;
30
- }
31
- /**
32
- * Title of a card, needed as it's used as a selector in the API.
33
- */
34
- export declare class BaoCardTitle {
35
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardTitle, never>;
36
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCardTitle, "bao-card-title, [bao-card-title], [baoCardTitle]", never, {}, {}, never, never, false, never>;
37
- }
38
- /**
39
- * Text of a card, needed as it's used as a selector in the API.
40
- */
41
- export declare class BaoCardTextInterface {
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, never>;
44
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './card.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./card.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoCardModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCardModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCardModule, [typeof i1.BaoCardComponent, typeof i1.BaoCardContent, typeof i1.BaoCardHeader, typeof i1.BaoCardTextInterface, typeof i1.BaoCardTitle], [typeof i2.CommonModule], [typeof i1.BaoCardComponent, typeof i1.BaoCardContent, typeof i1.BaoCardHeader, typeof i1.BaoCardTextInterface, typeof i1.BaoCardTitle]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoCardModule>;
8
- }
@@ -1,25 +0,0 @@
1
- import { AfterViewInit, ChangeDetectorRef } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoCheckboxGroupComponent implements AfterViewInit {
4
- private cdr;
5
- /**
6
- * The checkbox group ID. It is set dynamically with an unique ID by default
7
- */
8
- id: string;
9
- private staticContainer;
10
- /**
11
- * The aria-describedby id for web accessibilty
12
- */
13
- ariaDescribedby?: string;
14
- private _uniqueId;
15
- constructor(cdr: ChangeDetectorRef);
16
- ngAfterViewInit(): void;
17
- onContentChange(): void;
18
- /**
19
- * Set the aria-describedby property to bao-guiding-text if available
20
- */
21
- private setAriaDescribedByToDescription;
22
- private showAriaDescribedBy;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxGroupComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxGroupComponent, "bao-checkbox-group, [bao-checkbox-group]", never, { "id": { "alias": "id"; "required": false; }; }, {}, never, ["*", "bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]"], false, never>;
25
- }
@@ -1,152 +0,0 @@
1
- import { FocusMonitor, FocusOrigin } from '@angular/cdk/a11y';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnDestroy, OnInit } from '@angular/core';
3
- import { ControlValueAccessor } from '@angular/forms';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Checkbox state for aria-checked property
7
- */
8
- export declare const enum eCheckboxAriaState {
9
- TRUE = "true",
10
- FALSE = "false",
11
- MIXED = "mixed"
12
- }
13
- export declare class BaoCheckboxComponent implements ControlValueAccessor, AfterViewInit, OnInit, OnDestroy {
14
- private elementRef;
15
- private cdr;
16
- private focusMonitor;
17
- /**
18
- * The checkbox ID. It is set dynamically with an unique ID by default
19
- */
20
- id: string;
21
- /**
22
- * The aria-label for web accessibility
23
- */
24
- ariaLabel?: string;
25
- /**
26
- * Whether the checkbox has a border and is considered as a card.
27
- */
28
- brandBorder: boolean;
29
- /**
30
- * Whether the checkbox is inline.
31
- */
32
- inline: boolean;
33
- /**
34
- * The name property of the checkbox
35
- */
36
- name?: string;
37
- /**
38
- * The visible state of the label
39
- */
40
- hiddenLabel: boolean;
41
- /**
42
- * Emitted object on change event
43
- */
44
- readonly change: EventEmitter<boolean>;
45
- /**
46
- * Inderminate value of the checkbox whenever
47
- */
48
- readonly indeterminateChange: EventEmitter<boolean>;
49
- /**
50
- * Reference to the input html element
51
- */
52
- private inputElement;
53
- /**
54
- * The aria-describedby id for web accessibilty
55
- */
56
- ariaDescribedby?: string;
57
- /**
58
- * The aria-labeledby id for web accessibilty
59
- */
60
- ariaLabelledby?: string;
61
- /**
62
- * The ID of the input html element
63
- */
64
- inputID: string;
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;
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
- ngOnInit(): void;
93
- ngAfterViewInit(): void;
94
- ngOnDestroy(): void;
95
- /**
96
- * Implement ControlValueAccessor
97
- */
98
- writeValue(value: any): void;
99
- /**
100
- * Implement ControlValueAccessor
101
- */
102
- registerOnChange(fn: (value: any) => void): void;
103
- /**
104
- * Implement ControlValueAccessor
105
- */
106
- registerOnTouched(fn: any): void;
107
- /**
108
- * Implement ControlValueAccessor
109
- */
110
- setDisabledState(isDisabled: boolean): void;
111
- focus(origin?: FocusOrigin, options?: FocusOptions): void;
112
- /**
113
- * Whenever there is change on the input html element
114
- */
115
- onInteractionEvent(event: Event): void;
116
- /**
117
- * Whenever there is click event triggered on the checkbox
118
- */
119
- onInputClick(event: Event): void;
120
- /**
121
- * Get the value for the aria-checked property (web accessibility)
122
- */
123
- getAriaState(): eCheckboxAriaState;
124
- /**
125
- * Emit new values whenever the checkbox object has change.
126
- */
127
- private emitChangeEvent;
128
- /**
129
- * Set the checked property on the input html element
130
- */
131
- private syncChecked;
132
- /**
133
- * Set the indeterminate property on the input html element
134
- */
135
- private syncIndeterminate;
136
- /**
137
- * Set the aria-describedby property to bao-checkbox-description
138
- */
139
- private setAriaDescribedByToDescription;
140
- /**
141
- * Set checked value
142
- */
143
- private toggle;
144
- private onModelChange;
145
- private onTouch;
146
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxComponent, never>;
147
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoCheckboxComponent, "bao-checkbox, [bao-checkbox]", never, { "id": { "alias": "id"; "required": false; }; "ariaLabel": { "alias": "aria-label"; "required": false; }; "brandBorder": { "alias": "brandBorder"; "required": false; }; "inline": { "alias": "inline"; "required": false; }; "name": { "alias": "name"; "required": false; }; "hiddenLabel": { "alias": "hiddenLabel"; "required": false; }; "checked": { "alias": "checked"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "indeterminate": { "alias": "indeterminate"; "required": false; }; }, { "change": "change"; "indeterminateChange": "indeterminateChange"; }, never, ["*", "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]"], false, never>;
148
- }
149
- export declare class BaoCheckBoxDescription {
150
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckBoxDescription, never>;
151
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoCheckBoxDescription, "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", never, {}, {}, never, never, false, never>;
152
- }
@@ -1,3 +0,0 @@
1
- export * from './module';
2
- export * from './checkbox.component';
3
- export * from './checkbox-group.component';
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./checkbox.component";
3
- import * as i2 from "./checkbox-group.component";
4
- import * as i3 from "@angular/common";
5
- import * as i4 from "../common-components/module";
6
- import * as i5 from "@angular/cdk/observers";
7
- export declare class BaoCheckboxModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCheckboxModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCheckboxModule, [typeof i1.BaoCheckboxComponent, typeof i2.BaoCheckboxGroupComponent, typeof i1.BaoCheckBoxDescription], [typeof i3.CommonModule, typeof i4.BaoCommonComponentsModule, typeof i5.ObserversModule], [typeof i1.BaoCheckboxComponent, typeof i2.BaoCheckboxGroupComponent, typeof i1.BaoCheckBoxDescription]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoCheckboxModule>;
11
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoErrorTextComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoErrorTextComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoErrorTextComponent, "bao-error, [bao-error]", never, {}, {}, never, ["*"], false, never>;
5
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoGuidingTextComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoGuidingTextComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoGuidingTextComponent, "bao-guiding-text, [bao-guiding-text]", never, {}, {}, never, ["*"], false, never>;
5
- }
@@ -1,5 +0,0 @@
1
- export * from './module';
2
- export * from './error-text/errorText.component';
3
- export * from './guiding-text/guidingText.component';
4
- export * from './label-text/labelText.component';
5
- export * from './title-text/titleText.component';
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoLabelTextComponent {
3
- required: boolean;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoLabelTextComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoLabelTextComponent, "bao-label, [bao-label]", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, ["*"], false, never>;
6
- }
@@ -1,11 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./error-text/errorText.component";
3
- import * as i2 from "./guiding-text/guidingText.component";
4
- import * as i3 from "./label-text/labelText.component";
5
- import * as i4 from "./title-text/titleText.component";
6
- import * as i5 from "@angular/common";
7
- export declare class BaoCommonComponentsModule {
8
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoCommonComponentsModule, never>;
9
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCommonComponentsModule, [typeof i1.BaoErrorTextComponent, typeof i2.BaoGuidingTextComponent, typeof i3.BaoLabelTextComponent, typeof i4.BaoTitleTextComponent], [typeof i5.CommonModule], [typeof i1.BaoErrorTextComponent, typeof i2.BaoGuidingTextComponent, typeof i3.BaoLabelTextComponent, typeof i4.BaoTitleTextComponent]>;
10
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoCommonComponentsModule>;
11
- }
@@ -1,5 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoTitleTextComponent {
3
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoTitleTextComponent, never>;
4
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoTitleTextComponent, "bao-title-text, [bao-title-text]", never, {}, {}, never, ["*"], false, never>;
5
- }
@@ -1,7 +0,0 @@
1
- export declare const Breakpoints: {
2
- XSmall: string;
3
- Small: string;
4
- Medium: string;
5
- Large: string;
6
- XLarge: string;
7
- };
@@ -1,12 +0,0 @@
1
- export declare const enum BaoColors {
2
- ACTION = "action",
3
- PRIMARY = "primary",
4
- PRIMARY_REVERSED = "primary-reversed",
5
- SECONDARY = "secondary",
6
- TERTIARY = "tertiary",
7
- INFORMATIVE = "informative",
8
- NEGATIVE = "negative",
9
- POSITIVE = "positive",
10
- WARNING = "warning"
11
- }
12
- export declare function baoColorToHex(baoColor: BaoColors): string;
@@ -1,2 +0,0 @@
1
- export * from './colors';
2
- export * from './breakpoints';