@villedemontreal/angular-ui 15.2.1 → 15.3.1-pre.build.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/breadcrumb/breadcrumb.component.mjs +4 -13
- package/esm2020/lib/core/breakpoints.mjs +13 -0
- package/esm2020/lib/core/index.mjs +8 -0
- package/esm2020/lib/system-header/index.mjs +8 -0
- package/esm2020/lib/system-header/module.mjs +33 -0
- package/esm2020/lib/system-header/system-header.component.mjs +128 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/villedemontreal-angular-ui.mjs +187 -16
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +187 -16
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/bao.module.d.ts +2 -1
- package/lib/breadcrumb/breadcrumb.component.d.ts +0 -1
- package/lib/core/breakpoints.d.ts +7 -0
- package/lib/core/index.d.ts +2 -0
- package/lib/system-header/index.d.ts +2 -0
- package/lib/system-header/module.d.ts +9 -0
- package/lib/system-header/system-header.component.d.ts +41 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -20,6 +20,7 @@ import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
|
20
20
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
21
21
|
import { take as take$1 } from 'rxjs/operators';
|
|
22
22
|
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
23
|
+
import * as i2$1 from '@angular/cdk/layout';
|
|
23
24
|
|
|
24
25
|
function baoColorToHex(baoColor) {
|
|
25
26
|
switch (baoColor) {
|
|
@@ -709,19 +710,10 @@ class BaoBreadcrumbComponent {
|
|
|
709
710
|
this.renderer = renderer;
|
|
710
711
|
}
|
|
711
712
|
ngAfterViewInit() {
|
|
712
|
-
this.
|
|
713
|
+
this.setLastLinkAttribute();
|
|
713
714
|
}
|
|
714
715
|
onContentChange() {
|
|
715
|
-
this.createLiElement();
|
|
716
|
-
}
|
|
717
|
-
createLiElement() {
|
|
718
|
-
const children = Array.from(this.staticContainer.nativeElement.children);
|
|
719
716
|
this.setLastLinkAttribute();
|
|
720
|
-
children.forEach(c => {
|
|
721
|
-
const liElement = this.renderer.createElement('li');
|
|
722
|
-
this.renderer.appendChild(liElement, c);
|
|
723
|
-
this.renderer.appendChild(this.staticContainer.nativeElement, liElement);
|
|
724
|
-
});
|
|
725
717
|
}
|
|
726
718
|
setLastLinkAttribute() {
|
|
727
719
|
const children = Array.from(this.staticContainer.nativeElement.children);
|
|
@@ -729,12 +721,12 @@ class BaoBreadcrumbComponent {
|
|
|
729
721
|
}
|
|
730
722
|
}
|
|
731
723
|
BaoBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
732
|
-
BaoBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoBreadcrumbComponent, selector: "bao-breadcrumb", host: { classAttribute: "bao-breadcrumb" }, viewQueries: [{ propertyName: "staticContainer", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<nav
|
|
724
|
+
BaoBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoBreadcrumbComponent, selector: "bao-breadcrumb", host: { classAttribute: "bao-breadcrumb" }, viewQueries: [{ propertyName: "staticContainer", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<nav\n #container\n class=\"bao-breadcrumb-nav\"\n aria-label=\"Breadcrumb\"\n (cdkObserveContent)=\"onContentChange()\"\n>\n <ng-content></ng-content>\n</nav>\n", styles: [".bao-breadcrumb-nav{display:inline-flex;flex-direction:row;flex-wrap:wrap}.bao-breadcrumb-nav>a{font-weight:700;font-size:.75rem;line-height:1rem;display:inline-flex;align-items:end;text-decoration:none;text-transform:uppercase;color:#637381;margin-bottom:.5rem;margin-right:.25rem;border-bottom:none;background-color:#fff0}.bao-breadcrumb-nav>a:hover{color:#097d6c}.bao-breadcrumb-nav>a:last-child{margin-right:0}.bao-breadcrumb-nav>a:last-child:after{content:none}.bao-breadcrumb-nav>a:after{display:inline-block;content:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ADB5BD' fill-rule='evenodd'><path d='M12.586 12L9.293 8.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 12z'/></svg>\");height:1rem;width:1rem;margin-left:.25rem;color:#637381;background-color:#fff0;cursor:default;flex-shrink:0}\n"], dependencies: [{ kind: "directive", type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
733
725
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbComponent, decorators: [{
|
|
734
726
|
type: Component,
|
|
735
727
|
args: [{ selector: 'bao-breadcrumb', encapsulation: ViewEncapsulation.None, host: {
|
|
736
728
|
class: 'bao-breadcrumb'
|
|
737
|
-
}, template: "<nav
|
|
729
|
+
}, template: "<nav\n #container\n class=\"bao-breadcrumb-nav\"\n aria-label=\"Breadcrumb\"\n (cdkObserveContent)=\"onContentChange()\"\n>\n <ng-content></ng-content>\n</nav>\n", styles: [".bao-breadcrumb-nav{display:inline-flex;flex-direction:row;flex-wrap:wrap}.bao-breadcrumb-nav>a{font-weight:700;font-size:.75rem;line-height:1rem;display:inline-flex;align-items:end;text-decoration:none;text-transform:uppercase;color:#637381;margin-bottom:.5rem;margin-right:.25rem;border-bottom:none;background-color:#fff0}.bao-breadcrumb-nav>a:hover{color:#097d6c}.bao-breadcrumb-nav>a:last-child{margin-right:0}.bao-breadcrumb-nav>a:last-child:after{content:none}.bao-breadcrumb-nav>a:after{display:inline-block;content:url(\"data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ADB5BD' fill-rule='evenodd'><path d='M12.586 12L9.293 8.707a1 1 0 011.414-1.414l4 4a1 1 0 010 1.414l-4 4a1 1 0 01-1.414-1.414L12.586 12z'/></svg>\");height:1rem;width:1rem;margin-left:.25rem;color:#637381;background-color:#fff0;cursor:default;flex-shrink:0}\n"] }]
|
|
738
730
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { staticContainer: [{
|
|
739
731
|
type: ViewChild,
|
|
740
732
|
args: ['container', { static: false }]
|
|
@@ -5763,6 +5755,182 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
5763
5755
|
}]
|
|
5764
5756
|
}] });
|
|
5765
5757
|
|
|
5758
|
+
/*
|
|
5759
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5760
|
+
* Licensed under the MIT license.
|
|
5761
|
+
* See LICENSE file in the project root for full license information.
|
|
5762
|
+
*/
|
|
5763
|
+
const Breakpoints = {
|
|
5764
|
+
XSmall: '(max-width: 575.98px)',
|
|
5765
|
+
Small: '(min-width: 576px) and (max-width: 767.98px)',
|
|
5766
|
+
Medium: '(min-width: 768px) and (max-width: 991.98px)',
|
|
5767
|
+
Large: '(min-width: 992px) and (max-width: 1199.98px)',
|
|
5768
|
+
XLarge: '(min-width: 1200px)'
|
|
5769
|
+
};
|
|
5770
|
+
|
|
5771
|
+
/*
|
|
5772
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5773
|
+
* Licensed under the MIT license.
|
|
5774
|
+
* See LICENSE file in the project root for full license information.
|
|
5775
|
+
*/
|
|
5776
|
+
|
|
5777
|
+
/**
|
|
5778
|
+
* This component is dynamically added to replace breadcrumb when System Header is viewed on tablet or mobile screens.
|
|
5779
|
+
* Used internally by BaoSystemHeaderComponent only, not to be used by host application.
|
|
5780
|
+
*/
|
|
5781
|
+
class BaoBackNavigationComponent {
|
|
5782
|
+
constructor(renderer, elementRef) {
|
|
5783
|
+
this.renderer = renderer;
|
|
5784
|
+
this.elementRef = elementRef;
|
|
5785
|
+
}
|
|
5786
|
+
ngOnChanges(changes) {
|
|
5787
|
+
if (changes['link'] && changes['link'].currentValue) {
|
|
5788
|
+
this.renderer.setAttribute(this.elementRef.nativeElement.children[0], 'href', changes['link'].currentValue);
|
|
5789
|
+
}
|
|
5790
|
+
}
|
|
5791
|
+
}
|
|
5792
|
+
BaoBackNavigationComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBackNavigationComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
5793
|
+
BaoBackNavigationComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoBackNavigationComponent, selector: "bao-back-navigation-component", inputs: { link: "link" }, host: { classAttribute: "bao-system-header-back-button" }, usesOnChanges: true, ngImport: i0, template: ` <a>
|
|
5794
|
+
<bao-icon
|
|
5795
|
+
color="action"
|
|
5796
|
+
title="arrow-left"
|
|
5797
|
+
svgIcon="icon-arrow-left"
|
|
5798
|
+
size="x-small"
|
|
5799
|
+
></bao-icon>
|
|
5800
|
+
</a>`, isInline: true, dependencies: [{ kind: "component", type: BaoIconComponent, selector: "bao-icon", inputs: ["color", "size", "svgIcon", "title"], exportAs: ["baoIcon"] }] });
|
|
5801
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBackNavigationComponent, decorators: [{
|
|
5802
|
+
type: Component,
|
|
5803
|
+
args: [{
|
|
5804
|
+
selector: 'bao-back-navigation-component',
|
|
5805
|
+
template: ` <a>
|
|
5806
|
+
<bao-icon
|
|
5807
|
+
color="action"
|
|
5808
|
+
title="arrow-left"
|
|
5809
|
+
svgIcon="icon-arrow-left"
|
|
5810
|
+
size="x-small"
|
|
5811
|
+
></bao-icon>
|
|
5812
|
+
</a>`,
|
|
5813
|
+
host: {
|
|
5814
|
+
class: 'bao-system-header-back-button'
|
|
5815
|
+
}
|
|
5816
|
+
}]
|
|
5817
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { link: [{
|
|
5818
|
+
type: Input
|
|
5819
|
+
}] } });
|
|
5820
|
+
/**
|
|
5821
|
+
* This directive is to mark the template where the BaoBackNavigationComponent should be dynamically inserted,
|
|
5822
|
+
* when a Breadcrumb component needs to be replaced
|
|
5823
|
+
*/
|
|
5824
|
+
class BaoBackNavigationInsert {
|
|
5825
|
+
constructor(viewContainerRef) {
|
|
5826
|
+
this.viewContainerRef = viewContainerRef;
|
|
5827
|
+
}
|
|
5828
|
+
}
|
|
5829
|
+
BaoBackNavigationInsert.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBackNavigationInsert, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
5830
|
+
BaoBackNavigationInsert.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoBackNavigationInsert, selector: "[backNavigationInsert]", ngImport: i0 });
|
|
5831
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBackNavigationInsert, decorators: [{
|
|
5832
|
+
type: Directive,
|
|
5833
|
+
args: [{
|
|
5834
|
+
selector: '[backNavigationInsert]'
|
|
5835
|
+
}]
|
|
5836
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
|
|
5837
|
+
class BaoSystemHeaderComponent {
|
|
5838
|
+
constructor(breakpointObserver, renderer) {
|
|
5839
|
+
this.breakpointObserver = breakpointObserver;
|
|
5840
|
+
this.renderer = renderer;
|
|
5841
|
+
this.screenType = 'desktop';
|
|
5842
|
+
}
|
|
5843
|
+
get textContainerChildren() {
|
|
5844
|
+
return Array.from(this.textContainer.nativeElement.children);
|
|
5845
|
+
}
|
|
5846
|
+
ngOnInit() {
|
|
5847
|
+
if ([Breakpoints.XSmall, Breakpoints.Small].some(size => this.breakpointObserver.isMatched(size))) {
|
|
5848
|
+
this.screenType = 'mobile';
|
|
5849
|
+
}
|
|
5850
|
+
else if (this.breakpointObserver.isMatched(Breakpoints.Medium)) {
|
|
5851
|
+
this.screenType = 'tablet';
|
|
5852
|
+
}
|
|
5853
|
+
else if ([Breakpoints.Large, Breakpoints.XLarge].some(size => this.breakpointObserver.isMatched(size))) {
|
|
5854
|
+
this.screenType = 'desktop';
|
|
5855
|
+
}
|
|
5856
|
+
}
|
|
5857
|
+
ngAfterViewInit() {
|
|
5858
|
+
this.formatNavigation();
|
|
5859
|
+
this.applySizeClass();
|
|
5860
|
+
}
|
|
5861
|
+
formatNavigation() {
|
|
5862
|
+
// If view is rendered on a mobile/tablet screen
|
|
5863
|
+
if (this.screenType == 'mobile' || this.screenType == 'tablet') {
|
|
5864
|
+
if (this.textContainerChildren[0].className == 'bao-breadcrumb') {
|
|
5865
|
+
// Retrieve link of parent page
|
|
5866
|
+
const breadcrumbElementsList = this.textContainerChildren[0].children[0];
|
|
5867
|
+
const breadcrumbLength = breadcrumbElementsList.children.length;
|
|
5868
|
+
const parentLink = breadcrumbElementsList.children[breadcrumbLength - 2].attributes['href'].value;
|
|
5869
|
+
// Remove Breadcrumb component and replace it with back button
|
|
5870
|
+
this.renderer.removeChild(this.textContainer.nativeElement, this.textContainerChildren[0]);
|
|
5871
|
+
const viewContainerRef = this.backButtonInsert.viewContainerRef;
|
|
5872
|
+
viewContainerRef.clear();
|
|
5873
|
+
const componentRef = viewContainerRef.createComponent(BaoBackNavigationComponent);
|
|
5874
|
+
componentRef.setInput('link', parentLink);
|
|
5875
|
+
}
|
|
5876
|
+
}
|
|
5877
|
+
}
|
|
5878
|
+
applySizeClass() {
|
|
5879
|
+
const tagInfoContainer = this.textContainer.nativeElement.childNodes[this.textContainerChildren.length - 1];
|
|
5880
|
+
if (this.screenType === 'mobile') {
|
|
5881
|
+
this.renderer.addClass(tagInfoContainer, 'mobile');
|
|
5882
|
+
}
|
|
5883
|
+
}
|
|
5884
|
+
}
|
|
5885
|
+
BaoSystemHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderComponent, deps: [{ token: i2$1.BreakpointObserver }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
5886
|
+
BaoSystemHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoSystemHeaderComponent, selector: "bao-system-header", host: { classAttribute: "bao-system-header" }, viewQueries: [{ propertyName: "textContainer", first: true, predicate: ["textContainer"], descendants: true }, { propertyName: "backButtonInsert", first: true, predicate: BaoBackNavigationInsert, descendants: true, static: true }], ngImport: i0, template: "<div class=\"left-side-content\">\n <div class=\"back-navigation-container\">\n <ng-content select=\"a\"></ng-content>\n <ng-template backNavigationInsert></ng-template>\n </div>\n <div #textContainer class=\"text-content\">\n <ng-content select=\"bao-breadcrumb\"></ng-content>\n <ng-content select=\"h1\"></ng-content>\n <div class=\"tag-info-container\">\n <ng-content select=\"bao-tag\"></ng-content>\n <span class=\"additional-info\">\n <ng-content select=\"span\"></ng-content>\n </span>\n </div>\n </div>\n</div>\n<div class=\"button-container\">\n <ng-content></ng-content>\n</div>\n", styles: ["@charset \"UTF-8\";.bao-container{padding-right:16px;padding-left:16px;margin-right:auto;margin-left:auto;width:100%}@media (min-width: 576px){.bao-container{max-width:576px}}@media (min-width: 768px){.bao-container{max-width:768px}}@media (min-width: 992px){.bao-container{max-width:992px}}@media (min-width: 1200px){.bao-container{max-width:1200px}}.bao-row{display:flex;flex-wrap:wrap;margin-right:-16px;margin-left:-16px}.bao-col-12,.bao-col-lg-7{position:relative;width:100%;padding-right:1rem;padding-left:1rem}@media (min-width: 992px){.bao-col-lg-7{flex:0 0 58.33333%;max-width:58.33333%}}.bao-system-header{display:flex;justify-content:flex-start}.bao-system-header .left-side-content{display:inline-flex;width:75%}.bao-system-header .left-side-content .back-navigation-container a{margin-right:1.25rem;border-bottom:none}.bao-system-header .left-side-content .back-navigation-container a:hover{cursor:pointer}.bao-system-header .left-side-content .text-content{width:100%}.bao-system-header .left-side-content .text-content h1{font-weight:700;color:#212529;font-size:1.5rem;line-height:2rem;margin-bottom:.5rem}.bao-system-header .left-side-content .text-content .tag-info-container{width:100%;display:block}.bao-system-header .left-side-content .text-content .tag-info-container>span:nth-child(2):before{content:\"\\b7\";margin:0 .5rem}.bao-system-header .left-side-content .text-content .tag-info-container .additional-info>*{font-weight:400;font-size:.875rem;line-height:1.25rem}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .bao-tag{margin-bottom:.25rem}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .additional-info{display:block}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .additional-info:before{content:none}.bao-system-header .left-side-content .text-content .tag-info-container>.bao-tag{max-width:100%}.bao-system-header .left-side-content .text-content .tag-info-container>.bao-tag>span{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bao-system-header .button-container{flex-shrink:0;margin-left:auto}.bao-system-header .button-container .bao-button{margin-left:1rem}\n"], dependencies: [{ kind: "directive", type: BaoBackNavigationInsert, selector: "[backNavigationInsert]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5887
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderComponent, decorators: [{
|
|
5888
|
+
type: Component,
|
|
5889
|
+
args: [{ selector: 'bao-system-header', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
5890
|
+
class: 'bao-system-header'
|
|
5891
|
+
}, template: "<div class=\"left-side-content\">\n <div class=\"back-navigation-container\">\n <ng-content select=\"a\"></ng-content>\n <ng-template backNavigationInsert></ng-template>\n </div>\n <div #textContainer class=\"text-content\">\n <ng-content select=\"bao-breadcrumb\"></ng-content>\n <ng-content select=\"h1\"></ng-content>\n <div class=\"tag-info-container\">\n <ng-content select=\"bao-tag\"></ng-content>\n <span class=\"additional-info\">\n <ng-content select=\"span\"></ng-content>\n </span>\n </div>\n </div>\n</div>\n<div class=\"button-container\">\n <ng-content></ng-content>\n</div>\n", styles: ["@charset \"UTF-8\";.bao-container{padding-right:16px;padding-left:16px;margin-right:auto;margin-left:auto;width:100%}@media (min-width: 576px){.bao-container{max-width:576px}}@media (min-width: 768px){.bao-container{max-width:768px}}@media (min-width: 992px){.bao-container{max-width:992px}}@media (min-width: 1200px){.bao-container{max-width:1200px}}.bao-row{display:flex;flex-wrap:wrap;margin-right:-16px;margin-left:-16px}.bao-col-12,.bao-col-lg-7{position:relative;width:100%;padding-right:1rem;padding-left:1rem}@media (min-width: 992px){.bao-col-lg-7{flex:0 0 58.33333%;max-width:58.33333%}}.bao-system-header{display:flex;justify-content:flex-start}.bao-system-header .left-side-content{display:inline-flex;width:75%}.bao-system-header .left-side-content .back-navigation-container a{margin-right:1.25rem;border-bottom:none}.bao-system-header .left-side-content .back-navigation-container a:hover{cursor:pointer}.bao-system-header .left-side-content .text-content{width:100%}.bao-system-header .left-side-content .text-content h1{font-weight:700;color:#212529;font-size:1.5rem;line-height:2rem;margin-bottom:.5rem}.bao-system-header .left-side-content .text-content .tag-info-container{width:100%;display:block}.bao-system-header .left-side-content .text-content .tag-info-container>span:nth-child(2):before{content:\"\\b7\";margin:0 .5rem}.bao-system-header .left-side-content .text-content .tag-info-container .additional-info>*{font-weight:400;font-size:.875rem;line-height:1.25rem}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .bao-tag{margin-bottom:.25rem}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .additional-info{display:block}.bao-system-header .left-side-content .text-content .tag-info-container.mobile .additional-info:before{content:none}.bao-system-header .left-side-content .text-content .tag-info-container>.bao-tag{max-width:100%}.bao-system-header .left-side-content .text-content .tag-info-container>.bao-tag>span{width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.bao-system-header .button-container{flex-shrink:0;margin-left:auto}.bao-system-header .button-container .bao-button{margin-left:1rem}\n"] }]
|
|
5892
|
+
}], ctorParameters: function () { return [{ type: i2$1.BreakpointObserver }, { type: i0.Renderer2 }]; }, propDecorators: { textContainer: [{
|
|
5893
|
+
type: ViewChild,
|
|
5894
|
+
args: ['textContainer', { static: false }]
|
|
5895
|
+
}], backButtonInsert: [{
|
|
5896
|
+
type: ViewChild,
|
|
5897
|
+
args: [BaoBackNavigationInsert, { static: true }]
|
|
5898
|
+
}] } });
|
|
5899
|
+
|
|
5900
|
+
/*
|
|
5901
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5902
|
+
* Licensed under the MIT license.
|
|
5903
|
+
* See LICENSE file in the project root for full license information.
|
|
5904
|
+
*/
|
|
5905
|
+
const SYSTEM_HEADER_DIRECTIVES = [
|
|
5906
|
+
BaoSystemHeaderComponent,
|
|
5907
|
+
BaoBackNavigationInsert,
|
|
5908
|
+
BaoBackNavigationComponent
|
|
5909
|
+
];
|
|
5910
|
+
class BaoSystemHeaderModule {
|
|
5911
|
+
}
|
|
5912
|
+
BaoSystemHeaderModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5913
|
+
BaoSystemHeaderModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderModule, declarations: [BaoSystemHeaderComponent,
|
|
5914
|
+
BaoBackNavigationInsert,
|
|
5915
|
+
BaoBackNavigationComponent], imports: [CommonModule, BaoIconModule], exports: [BaoSystemHeaderComponent,
|
|
5916
|
+
BaoBackNavigationInsert,
|
|
5917
|
+
BaoBackNavigationComponent] });
|
|
5918
|
+
BaoSystemHeaderModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderModule, imports: [CommonModule, BaoIconModule] });
|
|
5919
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSystemHeaderModule, decorators: [{
|
|
5920
|
+
type: NgModule,
|
|
5921
|
+
args: [{
|
|
5922
|
+
imports: [CommonModule, BaoIconModule],
|
|
5923
|
+
declarations: [SYSTEM_HEADER_DIRECTIVES],
|
|
5924
|
+
exports: [SYSTEM_HEADER_DIRECTIVES]
|
|
5925
|
+
}]
|
|
5926
|
+
}] });
|
|
5927
|
+
|
|
5928
|
+
/*
|
|
5929
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5930
|
+
* Licensed under the MIT license.
|
|
5931
|
+
* See LICENSE file in the project root for full license information.
|
|
5932
|
+
*/
|
|
5933
|
+
|
|
5766
5934
|
/*
|
|
5767
5935
|
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5768
5936
|
* Licensed under the MIT license.
|
|
@@ -5794,7 +5962,8 @@ BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
5794
5962
|
BaoHyperlinkModule,
|
|
5795
5963
|
BaoDropdownMenuModule,
|
|
5796
5964
|
BaoFileModule,
|
|
5797
|
-
BaoSnackBarModule
|
|
5965
|
+
BaoSnackBarModule,
|
|
5966
|
+
BaoSystemHeaderModule
|
|
5798
5967
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
5799
5968
|
] });
|
|
5800
5969
|
BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, imports: [BaoIconModule,
|
|
@@ -5820,7 +5989,8 @@ BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
5820
5989
|
BaoHyperlinkModule,
|
|
5821
5990
|
BaoDropdownMenuModule,
|
|
5822
5991
|
BaoFileModule,
|
|
5823
|
-
BaoSnackBarModule
|
|
5992
|
+
BaoSnackBarModule,
|
|
5993
|
+
BaoSystemHeaderModule
|
|
5824
5994
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
5825
5995
|
] });
|
|
5826
5996
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, decorators: [{
|
|
@@ -5853,7 +6023,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
5853
6023
|
BaoHyperlinkModule,
|
|
5854
6024
|
BaoDropdownMenuModule,
|
|
5855
6025
|
BaoFileModule,
|
|
5856
|
-
BaoSnackBarModule
|
|
6026
|
+
BaoSnackBarModule,
|
|
6027
|
+
BaoSystemHeaderModule
|
|
5857
6028
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
5858
6029
|
]
|
|
5859
6030
|
}]
|
|
@@ -5944,5 +6115,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
5944
6115
|
* Generated bundle index. Do not edit.
|
|
5945
6116
|
*/
|
|
5946
6117
|
|
|
5947
|
-
export { BAO_FILE_INTL_PROVIDER, BAO_FILE_INTL_PROVIDER_FACTORY, BAO_MODAL_DATA, BAO_RADIO_GROUP, BAO_SNACK_BAR_DATA, BAO_SNACK_BAR_DEFAULT_OPTIONS, BaoAlertActions, BaoAlertComponent, BaoAlertContent, BaoAlertLink, BaoAlertModule, BaoAlertTitle, BaoAvatarComponent, BaoAvatarContent, BaoAvatarModule, BaoBadgeComponent, BaoBadgeModule, BaoBreadcrumbComponent, BaoBreadcrumbModule, BaoButtonComponent, BaoButtonModule, BaoCardComponent, BaoCardContent, BaoCardHeader, BaoCardModule, BaoCardTextInterface, BaoCardTitle, BaoCheckBoxDescription, BaoCheckboxComponent, BaoCheckboxGroupComponent, BaoCheckboxModule, BaoCommonComponentsModule, BaoDropdownMenuComponent, BaoDropdownMenuDivider, BaoDropdownMenuItem, BaoDropdownMenuItemDescription, BaoDropdownMenuItemLabel, BaoDropdownMenuModule, BaoDropdownMenuSection, BaoDropdownMenuTrigger, BaoErrorTextComponent, BaoFileDropDirective, BaoFileDropzoneIntructions, BaoFileInputComponent, BaoFileIntl, BaoFileIntlEnglish, BaoFileModule, BaoFilePreviewComponent, BaoGuidingTextComponent, BaoHeaderInfoComponent, BaoHeaderInfoContent, BaoHeaderInfoModule, BaoHeaderInfoSubtitle, BaoHeaderInfoSurtitle, BaoHeaderInfoTitle, BaoHeaderInfoTitleGroupComponent, BaoHyperlinkComponent, BaoHyperlinkModule, BaoIconComponent, BaoIconModule, BaoLabelTextComponent, BaoList, BaoListItem, BaoListItemDescription, BaoListItemTitle, BaoListModule, BaoListSummary, BaoListSummaryItem, BaoModal, BaoModalBase, BaoModalClose, BaoModalContainer, BaoModalInitialConfig, BaoModalModule, BaoModalRef, BaoModule, BaoNavList, BaoRadioButtonComponent, BaoRadioButtonGroupComponent, BaoRadioDescription, BaoRadioModule, BaoSimpleSnackBarComponent, BaoSnackBarConfig, BaoSnackBarContainerComponent, BaoSnackBarModule, BaoSnackBarRef, BaoSnackBarService, BaoSummaryComponent, BaoSummaryDescription, BaoSummaryModule, BaoTabHeader, BaoTabPanel, BaoTablistComponent, BaoTabsContainer, BaoTabsModule, BaoTagComponent, BaoTagModule, BaoTitleTextComponent, _BaoModalContainerBase, _closeModalVia, baoFactory, eModalDesktopWidthSize, eModalMobileWidthSize, throwBaoModalContentAlreadyAttachedError };
|
|
6118
|
+
export { BAO_FILE_INTL_PROVIDER, BAO_FILE_INTL_PROVIDER_FACTORY, BAO_MODAL_DATA, BAO_RADIO_GROUP, BAO_SNACK_BAR_DATA, BAO_SNACK_BAR_DEFAULT_OPTIONS, BaoAlertActions, BaoAlertComponent, BaoAlertContent, BaoAlertLink, BaoAlertModule, BaoAlertTitle, BaoAvatarComponent, BaoAvatarContent, BaoAvatarModule, BaoBackNavigationComponent, BaoBackNavigationInsert, BaoBadgeComponent, BaoBadgeModule, BaoBreadcrumbComponent, BaoBreadcrumbModule, BaoButtonComponent, BaoButtonModule, BaoCardComponent, BaoCardContent, BaoCardHeader, BaoCardModule, BaoCardTextInterface, BaoCardTitle, BaoCheckBoxDescription, BaoCheckboxComponent, BaoCheckboxGroupComponent, BaoCheckboxModule, BaoCommonComponentsModule, BaoDropdownMenuComponent, BaoDropdownMenuDivider, BaoDropdownMenuItem, BaoDropdownMenuItemDescription, BaoDropdownMenuItemLabel, BaoDropdownMenuModule, BaoDropdownMenuSection, BaoDropdownMenuTrigger, BaoErrorTextComponent, BaoFileDropDirective, BaoFileDropzoneIntructions, BaoFileInputComponent, BaoFileIntl, BaoFileIntlEnglish, BaoFileModule, BaoFilePreviewComponent, BaoGuidingTextComponent, BaoHeaderInfoComponent, BaoHeaderInfoContent, BaoHeaderInfoModule, BaoHeaderInfoSubtitle, BaoHeaderInfoSurtitle, BaoHeaderInfoTitle, BaoHeaderInfoTitleGroupComponent, BaoHyperlinkComponent, BaoHyperlinkModule, BaoIconComponent, BaoIconModule, BaoLabelTextComponent, BaoList, BaoListItem, BaoListItemDescription, BaoListItemTitle, BaoListModule, BaoListSummary, BaoListSummaryItem, BaoModal, BaoModalBase, BaoModalClose, BaoModalContainer, BaoModalInitialConfig, BaoModalModule, BaoModalRef, BaoModule, BaoNavList, BaoRadioButtonComponent, BaoRadioButtonGroupComponent, BaoRadioDescription, BaoRadioModule, BaoSimpleSnackBarComponent, BaoSnackBarConfig, BaoSnackBarContainerComponent, BaoSnackBarModule, BaoSnackBarRef, BaoSnackBarService, BaoSummaryComponent, BaoSummaryDescription, BaoSummaryModule, BaoSystemHeaderComponent, BaoSystemHeaderModule, BaoTabHeader, BaoTabPanel, BaoTablistComponent, BaoTabsContainer, BaoTabsModule, BaoTagComponent, BaoTagModule, BaoTitleTextComponent, _BaoModalContainerBase, _closeModalVia, baoFactory, eModalDesktopWidthSize, eModalMobileWidthSize, throwBaoModalContentAlreadyAttachedError };
|
|
5948
6119
|
//# sourceMappingURL=villedemontreal-angular-ui.mjs.map
|