@villedemontreal/angular-ui 2.0.1 → 2.1.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 (34) hide show
  1. package/esm2020/lib/bao.module.mjs +8 -4
  2. package/esm2020/lib/checkbox/checkbox-group.component.mjs +2 -2
  3. package/esm2020/lib/common-components/index.mjs +3 -2
  4. package/esm2020/lib/common-components/label-text/labelText.component.mjs +22 -0
  5. package/esm2020/lib/common-components/module.mjs +11 -8
  6. package/esm2020/lib/common-components/title-text/titleText.component.mjs +16 -0
  7. package/esm2020/lib/header-info/header-info.component.mjs +2 -2
  8. package/esm2020/lib/list/list.component.mjs +2 -2
  9. package/esm2020/lib/shared/enum/display-mode.mjs +11 -0
  10. package/esm2020/lib/shared/index.mjs +7 -0
  11. package/esm2020/lib/summary/index.mjs +9 -0
  12. package/esm2020/lib/summary/list-summary.component.mjs +37 -0
  13. package/esm2020/lib/summary/module.mjs +37 -0
  14. package/esm2020/lib/summary/summary.component.mjs +95 -0
  15. package/esm2020/public-api.mjs +2 -1
  16. package/fesm2015/villedemontreal-angular-ui.mjs +222 -21
  17. package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
  18. package/fesm2020/villedemontreal-angular-ui.mjs +222 -21
  19. package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
  20. package/lib/bao.module.d.ts +2 -1
  21. package/lib/common-components/index.d.ts +2 -1
  22. package/lib/common-components/label-text/labelText.component.d.ts +6 -0
  23. package/lib/common-components/module.d.ts +5 -4
  24. package/lib/common-components/title-text/titleText.component.d.ts +5 -0
  25. package/lib/shared/enum/display-mode.d.ts +4 -0
  26. package/lib/shared/index.d.ts +1 -0
  27. package/lib/summary/index.d.ts +3 -0
  28. package/lib/summary/list-summary.component.d.ts +9 -0
  29. package/lib/summary/module.d.ts +10 -0
  30. package/lib/summary/summary.component.d.ts +47 -0
  31. package/package.json +1 -1
  32. package/public-api.d.ts +1 -0
  33. package/esm2020/lib/common-components/legend-text/legendText.component.mjs +0 -22
  34. package/lib/common-components/legend-text/legendText.component.d.ts +0 -6
@@ -10,8 +10,9 @@ import * as i8 from "./list/module";
10
10
  import * as i9 from "./common-components/module";
11
11
  import * as i10 from "./checkbox/module";
12
12
  import * as i11 from "./radio/module";
13
+ import * as i12 from "./summary/module";
13
14
  export declare class BaoModule {
14
15
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoModule, never>;
15
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule]>;
16
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoModule, never, [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i4.BaoCardModule, typeof i5.BaoBreadcrumbModule], [typeof i1.BaoIconModule, typeof i2.BaoButtonModule, typeof i3.BaoAlertModule, typeof i5.BaoBreadcrumbModule, typeof i4.BaoCardModule, typeof i6.BaoTagModule, typeof i7.BaoHeaderInfoModule, typeof i8.BaoListModule, typeof i9.BaoCommonComponentsModule, typeof i10.BaoCheckboxModule, typeof i11.BaoRadioModule, typeof i12.BaoSummaryModule]>;
16
17
  static ɵinj: i0.ɵɵInjectorDeclaration<BaoModule>;
17
18
  }
@@ -1,4 +1,5 @@
1
1
  export * from './module';
2
2
  export * from './error-text/errorText.component';
3
3
  export * from './guiding-text/guidingText.component';
4
- export * from './legend-text/legendText.component';
4
+ export * from './label-text/labelText.component';
5
+ export * from './title-text/titleText.component';
@@ -0,0 +1,6 @@
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": "required"; }, {}, never, ["*"]>;
6
+ }
@@ -1,10 +1,11 @@
1
1
  import * as i0 from "@angular/core";
2
2
  import * as i1 from "./error-text/errorText.component";
3
- import * as i2 from "./legend-text/legendText.component";
4
- import * as i3 from "./guiding-text/guidingText.component";
5
- import * as i4 from "@angular/common";
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";
6
7
  export declare class BaoCommonComponentsModule {
7
8
  static ɵfac: i0.ɵɵFactoryDeclaration<BaoCommonComponentsModule, never>;
8
- static ɵmod: i0.ɵɵNgModuleDeclaration<BaoCommonComponentsModule, [typeof i1.BaoErrorTextComponent, typeof i2.BaoLegendTextComponent, typeof i3.BaoGuidingTextComponent], [typeof i4.CommonModule], [typeof i1.BaoErrorTextComponent, typeof i2.BaoLegendTextComponent, typeof i3.BaoGuidingTextComponent]>;
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]>;
9
10
  static ɵinj: i0.ɵɵInjectorDeclaration<BaoCommonComponentsModule>;
10
11
  }
@@ -0,0 +1,5 @@
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, ["*"]>;
5
+ }
@@ -0,0 +1,4 @@
1
+ export declare enum EDisplayMode {
2
+ COMPACT = "compact",
3
+ RESPONSIVE = "responsive"
4
+ }
@@ -0,0 +1 @@
1
+ export * from './enum/display-mode';
@@ -0,0 +1,3 @@
1
+ export * from './module';
2
+ export * from './summary.component';
3
+ export * from './list-summary.component';
@@ -0,0 +1,9 @@
1
+ import * as i0 from "@angular/core";
2
+ export declare class BaoListSummaryItem {
3
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummaryItem, never>;
4
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummaryItem, "bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]", never, {}, {}, never, ["*"]>;
5
+ }
6
+ export declare class BaoListSummary {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoListSummary, never>;
8
+ static ɵcmp: i0.ɵɵComponentDeclaration<BaoListSummary, "bao-list-summary, [bao-list-summary], [baoListSummary]", never, {}, {}, never, ["*"]>;
9
+ }
@@ -0,0 +1,10 @@
1
+ import * as i0 from "@angular/core";
2
+ import * as i1 from "./summary.component";
3
+ import * as i2 from "./list-summary.component";
4
+ import * as i3 from "@angular/common";
5
+ import * as i4 from "../common-components/module";
6
+ export declare class BaoSummaryModule {
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<BaoSummaryModule, never>;
8
+ static ɵmod: i0.ɵɵNgModuleDeclaration<BaoSummaryModule, [typeof i1.BaoSummaryComponent, typeof i1.BaoSummaryDescription, typeof i2.BaoListSummary, typeof i2.BaoListSummaryItem], [typeof i3.CommonModule, typeof i4.BaoCommonComponentsModule], [typeof i1.BaoSummaryComponent, typeof i1.BaoSummaryDescription, typeof i2.BaoListSummary, typeof i2.BaoListSummaryItem]>;
9
+ static ɵinj: i0.ɵɵInjectorDeclaration<BaoSummaryModule>;
10
+ }
@@ -0,0 +1,47 @@
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
+ * Initialize the ID for summary
14
+ */
15
+ private _uniqueId;
16
+ /**
17
+ * Set value of unique ID for bao-label
18
+ */
19
+ id: string;
20
+ /**
21
+ * The aria-describebdy-error id for web accessibility
22
+ * only when error section appears
23
+ */
24
+ ariaDescribedbyError?: string;
25
+ /**
26
+ * The aria-describebdy-text id for web accessibility
27
+ * only when we have de guidance text
28
+ */
29
+ ariaDescribedbyGuidingText?: string;
30
+ /**
31
+ * The aria-labelledby id for web accessibility
32
+ */
33
+ ariaLabelledby?: string;
34
+ private attribues;
35
+ constructor(elementRef: ElementRef);
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": "displayMode"; "id": "id"; }, {}, 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]"]>;
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>;
47
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@villedemontreal/angular-ui",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "peerDependencies": {
5
5
  "@angular/common": ">=8.0.0 <14.0.0",
6
6
  "@angular/core": ">=8.0.0 <14.0.0",
package/public-api.d.ts CHANGED
@@ -11,3 +11,4 @@ export * from './lib/list/index';
11
11
  export * from './lib/checkbox/index';
12
12
  export * from './lib/radio/index';
13
13
  export * from './lib/common-components/index';
14
+ export * from './lib/summary/index';
@@ -1,22 +0,0 @@
1
- /*
2
- * Copyright (c) 2022 Ville de Montreal. All rights reserved.
3
- * Licensed under the MIT license.
4
- * See LICENSE file in the project root for full license information.
5
- */
6
- import { Component, Input, ViewEncapsulation } from '@angular/core';
7
- import * as i0 from "@angular/core";
8
- import * as i1 from "@angular/common";
9
- export class BaoLegendTextComponent {
10
- constructor() {
11
- this.required = false;
12
- }
13
- }
14
- BaoLegendTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoLegendTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
15
- BaoLegendTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoLegendTextComponent, selector: "bao-legend, [bao-legend]", inputs: { required: "required" }, ngImport: i0, template: '<legend class="bao-legend"><ng-content></ng-content><span *ngIf="required">&nbsp;*</span></legend>', isInline: true, styles: [".bao-legend{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:0}.bao-legend span{color:#d3310a}\n"], directives: [{ type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoLegendTextComponent, decorators: [{
17
- type: Component,
18
- args: [{ selector: 'bao-legend, [bao-legend]', encapsulation: ViewEncapsulation.None, template: '<legend class="bao-legend"><ng-content></ng-content><span *ngIf="required">&nbsp;*</span></legend>', styles: [".bao-legend{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:0}.bao-legend span{color:#d3310a}\n"] }]
19
- }], propDecorators: { required: [{
20
- type: Input
21
- }] } });
22
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVnZW5kVGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9hbmd1bGFyLXVpL3NyYy9saWIvY29tbW9uLWNvbXBvbmVudHMvbGVnZW5kLXRleHQvbGVnZW5kVGV4dC5jb21wb25lbnQudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUE7Ozs7R0FJRztBQUNILE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLGlCQUFpQixFQUFFLE1BQU0sZUFBZSxDQUFDOzs7QUFTcEUsTUFBTSxPQUFPLHNCQUFzQjtJQVBuQztRQVFrQixhQUFRLEdBQUcsS0FBSyxDQUFDO0tBQ2xDOzttSEFGWSxzQkFBc0I7dUdBQXRCLHNCQUFzQixrR0FIL0Isb0dBQW9HOzJGQUczRixzQkFBc0I7a0JBUGxDLFNBQVM7K0JBQ0UsMEJBQTBCLGlCQUNyQixpQkFBaUIsQ0FBQyxJQUFJLFlBRW5DLG9HQUFvRzs4QkFJdEYsUUFBUTtzQkFBdkIsS0FBSyIsInNvdXJjZXNDb250ZW50IjpbIi8qXG4gKiBDb3B5cmlnaHQgKGMpIDIwMjIgVmlsbGUgZGUgTW9udHJlYWwuIEFsbCByaWdodHMgcmVzZXJ2ZWQuXG4gKiBMaWNlbnNlZCB1bmRlciB0aGUgTUlUIGxpY2Vuc2UuXG4gKiBTZWUgTElDRU5TRSBmaWxlIGluIHRoZSBwcm9qZWN0IHJvb3QgZm9yIGZ1bGwgbGljZW5zZSBpbmZvcm1hdGlvbi5cbiAqL1xuaW1wb3J0IHsgQ29tcG9uZW50LCBJbnB1dCwgVmlld0VuY2Fwc3VsYXRpb24gfSBmcm9tICdAYW5ndWxhci9jb3JlJztcblxuQENvbXBvbmVudCh7XG4gIHNlbGVjdG9yOiAnYmFvLWxlZ2VuZCwgW2Jhby1sZWdlbmRdJyxcbiAgZW5jYXBzdWxhdGlvbjogVmlld0VuY2Fwc3VsYXRpb24uTm9uZSxcbiAgdGVtcGxhdGU6XG4gICAgJzxsZWdlbmQgY2xhc3M9XCJiYW8tbGVnZW5kXCI+PG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PjxzcGFuICpuZ0lmPVwicmVxdWlyZWRcIj4mbmJzcDsqPC9zcGFuPjwvbGVnZW5kPicsXG4gIHN0eWxlVXJsczogWycuL2xlZ2VuZFRleHQuY29tcG9uZW50LnNjc3MnXVxufSlcbmV4cG9ydCBjbGFzcyBCYW9MZWdlbmRUZXh0Q29tcG9uZW50IHtcbiAgQElucHV0KCkgcHVibGljIHJlcXVpcmVkID0gZmFsc2U7XG59XG4iXX0=
@@ -1,6 +0,0 @@
1
- import * as i0 from "@angular/core";
2
- export declare class BaoLegendTextComponent {
3
- required: boolean;
4
- static ɵfac: i0.ɵɵFactoryDeclaration<BaoLegendTextComponent, never>;
5
- static ɵcmp: i0.ɵɵComponentDeclaration<BaoLegendTextComponent, "bao-legend, [bao-legend]", never, { "required": "required"; }, {}, never, ["*"]>;
6
- }