@villedemontreal/angular-ui 2.0.1 → 2.2.1
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/bao.module.mjs +8 -4
- package/esm2020/lib/button/button.component.mjs +2 -2
- package/esm2020/lib/card/card.component.mjs +2 -2
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +2 -2
- package/esm2020/lib/checkbox/checkbox.component.mjs +2 -2
- package/esm2020/lib/common-components/index.mjs +3 -2
- package/esm2020/lib/common-components/label-text/labelText.component.mjs +22 -0
- package/esm2020/lib/common-components/module.mjs +11 -8
- package/esm2020/lib/common-components/title-text/titleText.component.mjs +16 -0
- package/esm2020/lib/core/colors.mjs +10 -27
- package/esm2020/lib/header-info/header-info.component.mjs +2 -2
- package/esm2020/lib/list/list.component.mjs +2 -2
- package/esm2020/lib/radio/radio.component.mjs +4 -4
- package/esm2020/lib/shared/enum/display-mode.mjs +2 -0
- package/esm2020/lib/shared/index.mjs +7 -0
- package/esm2020/lib/summary/index.mjs +9 -0
- package/esm2020/lib/summary/list-summary.component.mjs +37 -0
- package/esm2020/lib/summary/module.mjs +37 -0
- package/esm2020/lib/summary/summary.component.mjs +94 -0
- package/esm2020/public-api.mjs +3 -1
- package/fesm2015/villedemontreal-angular-ui.mjs +229 -56
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +229 -56
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/bao.module.d.ts +2 -1
- package/lib/common-components/index.d.ts +2 -1
- package/lib/common-components/label-text/labelText.component.d.ts +6 -0
- package/lib/common-components/module.d.ts +5 -4
- package/lib/common-components/title-text/titleText.component.d.ts +5 -0
- package/lib/core/colors.d.ts +1 -1
- package/lib/shared/enum/display-mode.d.ts +4 -0
- package/lib/shared/index.d.ts +1 -0
- package/lib/summary/index.d.ts +3 -0
- package/lib/summary/list-summary.component.d.ts +9 -0
- package/lib/summary/module.d.ts +10 -0
- package/lib/summary/summary.component.d.ts +47 -0
- package/package.json +2 -2
- package/public-api.d.ts +2 -0
- package/esm2020/lib/common-components/legend-text/legendText.component.mjs +0 -22
- package/lib/common-components/legend-text/legendText.component.d.ts +0 -6
package/lib/bao.module.d.ts
CHANGED
|
@@ -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 './
|
|
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 "./
|
|
4
|
-
import * as i3 from "./
|
|
5
|
-
import * as i4 from "
|
|
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.
|
|
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
|
+
}
|
package/lib/core/colors.d.ts
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './enum/display-mode';
|
|
@@ -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,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@villedemontreal/angular-ui",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.2.1",
|
|
4
4
|
"peerDependencies": {
|
|
5
|
+
"@angular/cdk": ">=8.0.0 <14.0.0",
|
|
5
6
|
"@angular/common": ">=8.0.0 <14.0.0",
|
|
6
7
|
"@angular/core": ">=8.0.0 <14.0.0",
|
|
7
|
-
"@angular/cdk": ">=8.0.0 <14.0.0",
|
|
8
8
|
"@angular/forms": ">=8.0.0 <14.0.0"
|
|
9
9
|
},
|
|
10
10
|
"module": "fesm2015/villedemontreal-angular-ui.mjs",
|
package/public-api.d.ts
CHANGED
|
@@ -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"> *</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"> *</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,eyJ2ZXJzaW9uIjozLCJmaWxlIjoibGVnZW5kVGV4dC5jb21wb25lbnQuanMiLCJzb3VyY2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iAgdGVtcGxhdGU6XG4gICAgJzxsZWdlbmQgY2xhc3M9XCJiYW8tbGVnZW5kXCI+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
|
-
}
|