@villedemontreal/angular-ui 19.0.1 → 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 +346 -335
  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 -174
  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
@@ -1,47 +0,0 @@
1
- import { ElementRef, AfterViewInit, OnInit } from '@angular/core';
2
- import { EDisplayMode } from '../shared';
3
- import * as i0 from "@angular/core";
4
- export declare class BaoSummaryComponent implements OnInit, AfterViewInit {
5
- private elementRef;
6
- /**
7
- * Set display mode
8
- * RESPONSIVE (viewport width <=> is 576px)
9
- * COMPACT (viewport width < 576px)
10
- */
11
- displayMode: EDisplayMode;
12
- /**
13
- * Set value of unique ID for bao-label
14
- */
15
- id: string;
16
- /**
17
- * The aria-describebdy-error id for web accessibility
18
- * only when error section appears
19
- */
20
- ariaDescribedbyError?: string;
21
- /**
22
- * The aria-describebdy-text id for web accessibility
23
- * only when we have de guidance text
24
- */
25
- ariaDescribedbyGuidingText?: string;
26
- /**
27
- * The aria-labelledby id for web accessibility
28
- */
29
- ariaLabelledby?: string;
30
- /**
31
- * Initialize the ID for summary
32
- */
33
- private _uniqueId;
34
- private attribues;
35
- constructor(elementRef: ElementRef<HTMLElement>);
36
- get nativeElement(): HTMLElement;
37
- ngOnInit(): void;
38
- ngAfterViewInit(): void;
39
- setAriaDescribedByToDescription(): void;
40
- private elementNode;
41
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryComponent, never>;
42
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoSummaryComponent, "bao-summary, [bao-summary], [baoSummary]", never, { "displayMode": { "alias": "displayMode"; "required": false; }; "id": { "alias": "id"; "required": false; }; }, {}, never, ["bao-label", "bao-guiding-text, [bao-guiding-text]", "bao-title-text, [bao-title-text]", "bao-summary-description", "bao-list-summary, [bao-list-summary], [baoListSummary]", "button[bao-button]", "bao-error, [bao-error]"], false, never>;
43
- }
44
- export declare class BaoSummaryDescription {
45
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryDescription, never>;
46
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoSummaryDescription, "bao-summary-description, [bao-summary-description], [baoSummaryDescription]", never, {}, {}, never, never, false, never>;
47
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './system-header.component';
@@ -1,9 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./system-header.component";
3
- import * as i2 from "@angular/common";
4
- import * as i3 from "../icon/module";
5
- export declare class BaoSystemHeaderModule {
6
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoSystemHeaderModule, never>;
7
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoSystemHeaderModule, [typeof i1.BaoSystemHeaderComponent, typeof i1.BaoBackNavigationInsert, typeof i1.BaoBackNavigationComponent], [typeof i2.CommonModule, typeof i3.BaoIconModule], [typeof i1.BaoSystemHeaderComponent, typeof i1.BaoBackNavigationInsert, typeof i1.BaoBackNavigationComponent]>;
8
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoSystemHeaderModule>;
9
- }
@@ -1,42 +0,0 @@
1
- import { BreakpointObserver } from '@angular/cdk/layout';
2
- import { AfterViewInit, ChangeDetectorRef, ElementRef, OnChanges, OnInit, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
3
- import * as i0 from "@angular/core";
4
- /**
5
- * This component is dynamically added to replace breadcrumb when System Header is viewed on tablet or mobile screens.
6
- * Used internally by BaoSystemHeaderComponent only, not to be used by host application.
7
- */
8
- export declare class BaoBackNavigationComponent implements OnChanges {
9
- private renderer;
10
- private elementRef;
11
- link: string;
12
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
13
- ngOnChanges(changes: SimpleChanges): void;
14
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBackNavigationComponent, never>;
15
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoBackNavigationComponent, "bao-back-navigation-component", never, { "link": { "alias": "link"; "required": false; }; }, {}, never, never, false, never>;
16
- }
17
- /**
18
- * This directive is to mark the template where the BaoBackNavigationComponent should be dynamically inserted,
19
- * when a Breadcrumb component needs to be replaced
20
- */
21
- export declare class BaoBackNavigationInsert {
22
- viewContainerRef: ViewContainerRef;
23
- constructor(viewContainerRef: ViewContainerRef);
24
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoBackNavigationInsert, never>;
25
- static ɵdir: i0.ɵɵDirectiveDeclaration<BaoBackNavigationInsert, "[backNavigationInsert]", never, {}, {}, never, never, false, never>;
26
- }
27
- export declare class BaoSystemHeaderComponent implements AfterViewInit, OnInit {
28
- private cd;
29
- private breakpointObserver;
30
- private renderer;
31
- private textContainer;
32
- private backButtonInsert;
33
- screenType: 'mobile' | 'tablet' | 'desktop';
34
- constructor(cd: ChangeDetectorRef, breakpointObserver: BreakpointObserver, renderer: Renderer2);
35
- get textContainerChildren(): Element[];
36
- ngOnInit(): void;
37
- ngAfterViewInit(): void;
38
- private formatNavigation;
39
- private applySizeClass;
40
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoSystemHeaderComponent, never>;
41
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoSystemHeaderComponent, "bao-system-header", never, {}, {}, never, ["a", "bao-breadcrumb", "h1", "bao-tag", "span", "*"], false, never>;
42
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './tabs.component';
@@ -1,8 +0,0 @@
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
- }
@@ -1,95 +0,0 @@
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, never, false, 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, never, false, 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": { "alias": "size"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; }, { "activeTabChange": "activeTabChange"; }, ["tabHeaders"], ["*"], false, never>;
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"], never, false, never>;
95
- }
@@ -1,2 +0,0 @@
1
- export * from './module';
2
- export * from './tag.component';
@@ -1,8 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- import * as i1 from "./tag.component";
3
- import * as i2 from "@angular/common";
4
- export declare class BaoTagModule {
5
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoTagModule, never>;
6
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoTagModule, [typeof i1.BaoTagComponent], [typeof i2.CommonModule], [typeof i1.BaoTagComponent]>;
7
- static ɵinj: i0.ɵɵInjectorDeclaration<BaoTagModule>;
8
- }
@@ -1,25 +0,0 @@
1
- import { AfterViewInit, ElementRef, Renderer2 } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export declare class BaoTagComponent implements AfterViewInit {
4
- private renderer;
5
- private elementRef;
6
- /**
7
- * The color of the tag.
8
- */
9
- type: 'neutral' | 'info' | 'positive' | 'alert' | 'negative';
10
- /**
11
- * The shade of the tags color.
12
- */
13
- variant: 'light' | 'strong';
14
- /**
15
- * The hidden text for screen readers.
16
- */
17
- hiddenText: string;
18
- constructor(renderer: Renderer2, elementRef: ElementRef<HTMLElement>);
19
- get nativeElement(): HTMLElement;
20
- ngAfterViewInit(): void;
21
- private addHiddenText;
22
- private addIconClass;
23
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoTagComponent, never>;
24
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoTagComponent, "bao-tag, [bao-tag], [baoTag]", never, { "type": { "alias": "type"; "required": false; }; "variant": { "alias": "variant"; "required": false; }; "hiddenText": { "alias": "hiddenText"; "required": false; }; }, {}, never, ["bao-icon", "*"], false, never>;
25
- }
package/public-api.d.ts DELETED
@@ -1,25 +0,0 @@
1
- export * from './lib/alert/index';
2
- export * from './lib/avatar';
3
- export * from './lib/badge/index';
4
- export * from './lib/bao.module';
5
- export * from './lib/breadcrumb/index';
6
- export * from './lib/button/index';
7
- export * from './lib/card/index';
8
- export * from './lib/checkbox/index';
9
- export * from './lib/common-components/index';
10
- export * from './lib/dropdown-menu';
11
- export * from './lib/file';
12
- export * from './lib/header-info/index';
13
- export * from './lib/hyperlink';
14
- export * from './lib/icon/index';
15
- export * from './lib/list/index';
16
- export * from './lib/message-bar';
17
- export * from './lib/modal';
18
- export * from './lib/pagination/index';
19
- export * from './lib/radio/index';
20
- export * from './lib/shared';
21
- export * from './lib/snack-bar';
22
- export * from './lib/summary/index';
23
- export * from './lib/system-header';
24
- export * from './lib/tabs';
25
- export * from './lib/tag/index';