@villedemontreal/angular-ui 15.0.0 → 15.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.
- package/esm2020/lib/bao.module.mjs +8 -7
- package/esm2020/lib/snack-bar/index.mjs +12 -0
- package/esm2020/lib/snack-bar/module.mjs +52 -0
- package/esm2020/lib/snack-bar/simple-snack-bar.component.mjs +92 -0
- package/esm2020/lib/snack-bar/snack-bar-animations.mjs +28 -0
- package/esm2020/lib/snack-bar/snack-bar-config.mjs +37 -0
- package/esm2020/lib/snack-bar/snack-bar-container.mjs +272 -0
- package/esm2020/lib/snack-bar/snack-bar-ref.mjs +75 -0
- package/esm2020/lib/snack-bar/snack-bar.mjs +251 -0
- package/esm2020/public-api.mjs +2 -1
- package/fesm2015/villedemontreal-angular-ui.mjs +788 -11
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +784 -11
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/bao.module.d.ts +2 -1
- package/lib/snack-bar/index.d.ts +6 -0
- package/lib/snack-bar/module.d.ts +13 -0
- package/lib/snack-bar/simple-snack-bar.component.d.ts +51 -0
- package/lib/snack-bar/snack-bar-animations.d.ts +8 -0
- package/lib/snack-bar/snack-bar-config.d.ts +51 -0
- package/lib/snack-bar/snack-bar-container.d.ts +111 -0
- package/lib/snack-bar/snack-bar-ref.d.ts +51 -0
- package/lib/snack-bar/snack-bar.d.ts +89 -0
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { SecurityContext, Injectable, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule, Directive, EventEmitter, Output, CUSTOM_ELEMENTS_SCHEMA, ViewChild, forwardRef, InjectionToken, ContentChildren, Optional, HostListener, ContentChild, Injector, TemplateRef, SkipSelf, ViewChildren } from '@angular/core';
|
|
2
|
+
import { SecurityContext, Injectable, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule, Directive, EventEmitter, Output, CUSTOM_ELEMENTS_SCHEMA, ViewChild, forwardRef, InjectionToken, ContentChildren, Optional, HostListener, ContentChild, Injector, TemplateRef, SkipSelf, ViewChildren, inject } from '@angular/core';
|
|
3
3
|
import * as i1$1 from '@angular/common';
|
|
4
4
|
import { DOCUMENT, CommonModule } from '@angular/common';
|
|
5
5
|
import * as i1 from '@angular/platform-browser';
|
|
@@ -12,10 +12,13 @@ import * as i2 from '@angular/cdk/collections';
|
|
|
12
12
|
import * as i1$4 from '@angular/cdk/overlay';
|
|
13
13
|
import { OverlayConfig, OverlayModule } from '@angular/cdk/overlay';
|
|
14
14
|
import * as i3 from '@angular/cdk/portal';
|
|
15
|
-
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule, DomPortal } from '@angular/cdk/portal';
|
|
15
|
+
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule, DomPortal, PortalInjector } from '@angular/cdk/portal';
|
|
16
16
|
import { Subject, filter, take, defer, startWith } from 'rxjs';
|
|
17
|
+
import * as i1$5 from '@angular/cdk/platform';
|
|
17
18
|
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
18
19
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
20
|
+
import { take as take$1 } from 'rxjs/operators';
|
|
21
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
19
22
|
|
|
20
23
|
function baoColorToHex(baoColor) {
|
|
21
24
|
switch (baoColor) {
|
|
@@ -3223,14 +3226,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
3223
3226
|
}] });
|
|
3224
3227
|
|
|
3225
3228
|
// Counter for unique modal ids.
|
|
3226
|
-
let uniqueId = 0;
|
|
3229
|
+
let uniqueId$1 = 0;
|
|
3227
3230
|
/**
|
|
3228
3231
|
* Reference to a modal opened via the BaoModalService.
|
|
3229
3232
|
*/
|
|
3230
3233
|
class BaoModalRef {
|
|
3231
3234
|
constructor(_overlayRef, _containerInstance,
|
|
3232
3235
|
/** Id of the modal. */
|
|
3233
|
-
id = `bao-modal-${uniqueId++}`) {
|
|
3236
|
+
id = `bao-modal-${uniqueId$1++}`) {
|
|
3234
3237
|
this._overlayRef = _overlayRef;
|
|
3235
3238
|
this._containerInstance = _containerInstance;
|
|
3236
3239
|
this.id = id;
|
|
@@ -4964,6 +4967,770 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
4964
4967
|
}]
|
|
4965
4968
|
}] });
|
|
4966
4969
|
|
|
4970
|
+
/** Injection token that can be used to access the data that was passed in to a snack bar. */
|
|
4971
|
+
const BAO_SNACK_BAR_DATA = new InjectionToken('BaoSnackBarData');
|
|
4972
|
+
/**
|
|
4973
|
+
* Configuration used when opening a snack-bar.
|
|
4974
|
+
*/
|
|
4975
|
+
class BaoSnackBarConfig {
|
|
4976
|
+
constructor() {
|
|
4977
|
+
/** The message to display in the snackbar. */
|
|
4978
|
+
this.message = 'No message';
|
|
4979
|
+
/** The type of snackbar template to display. */
|
|
4980
|
+
this.toastType = 'info';
|
|
4981
|
+
/**
|
|
4982
|
+
* The attached action to the snack bar. If the name of the action matches an icon provided as part of
|
|
4983
|
+
* angular-ui icon dictionnary an icon will be displayed instead of text.
|
|
4984
|
+
* */
|
|
4985
|
+
this.actionLabelOrIcon = '';
|
|
4986
|
+
/** Displays the close button when set to true */
|
|
4987
|
+
this.showClose = false;
|
|
4988
|
+
/** The length of time in milliseconds to wait before automatically dismissing the snack bar. */
|
|
4989
|
+
this.duration = 5000;
|
|
4990
|
+
/** The politeness level for the MatAriaLiveAnnouncer announcement. */
|
|
4991
|
+
this.politeness = 'assertive';
|
|
4992
|
+
/**
|
|
4993
|
+
* Message to be announced by the LiveAnnouncer. When opening a snackbar without a custom
|
|
4994
|
+
* component or template, the announcement message will default to the specified message.
|
|
4995
|
+
*/
|
|
4996
|
+
this.announcementMessage = '';
|
|
4997
|
+
/** Data being injected into the child component. */
|
|
4998
|
+
this.data = null;
|
|
4999
|
+
/** The horizontal position to place the snack bar. */
|
|
5000
|
+
this.horizontalPosition = 'left';
|
|
5001
|
+
/** The vertical position to place the snack bar. */
|
|
5002
|
+
this.verticalPosition = 'bottom';
|
|
5003
|
+
}
|
|
5004
|
+
}
|
|
5005
|
+
|
|
5006
|
+
/** Maximum amount of milliseconds that can be passed into setTimeout. */
|
|
5007
|
+
const MAX_TIMEOUT = Math.pow(2, 31) - 1;
|
|
5008
|
+
/**
|
|
5009
|
+
* Reference to a snack bar dispatched from the snack bar service.
|
|
5010
|
+
*/
|
|
5011
|
+
class BaoSnackBarRef {
|
|
5012
|
+
constructor(containerInstance, _overlayRef) {
|
|
5013
|
+
this._overlayRef = _overlayRef;
|
|
5014
|
+
/** Subject for notifying the user that the snack bar has been dismissed. */
|
|
5015
|
+
this._afterDismissed = new Subject();
|
|
5016
|
+
/** Subject for notifying the user that the snack bar has opened and appeared. */
|
|
5017
|
+
this._afterOpened = new Subject();
|
|
5018
|
+
/** Subject for notifying the user that the snack bar action was called. */
|
|
5019
|
+
this._onAction = new Subject();
|
|
5020
|
+
/** Whether the snack bar was dismissed using the action button. */
|
|
5021
|
+
this._dismissedByAction = false;
|
|
5022
|
+
this.containerInstance = containerInstance;
|
|
5023
|
+
// Dismiss snackbar on action.
|
|
5024
|
+
this.onAction().subscribe(() => this.dismiss());
|
|
5025
|
+
containerInstance._onExit.subscribe(() => this.finishDismiss());
|
|
5026
|
+
}
|
|
5027
|
+
/** Dismisses the snack bar. */
|
|
5028
|
+
dismiss() {
|
|
5029
|
+
if (!this._afterDismissed.closed) {
|
|
5030
|
+
this.containerInstance.exit();
|
|
5031
|
+
}
|
|
5032
|
+
clearTimeout(this._durationTimeoutId);
|
|
5033
|
+
}
|
|
5034
|
+
/** Marks the snackbar action clicked. */
|
|
5035
|
+
dismissWithAction() {
|
|
5036
|
+
if (!this._onAction.closed) {
|
|
5037
|
+
this._dismissedByAction = true;
|
|
5038
|
+
this._onAction.next();
|
|
5039
|
+
this._onAction.complete();
|
|
5040
|
+
}
|
|
5041
|
+
}
|
|
5042
|
+
/** Dismisses the snack bar after some duration */
|
|
5043
|
+
dismissAfter(duration) {
|
|
5044
|
+
// Note that we need to cap the duration to the maximum value for setTimeout, because
|
|
5045
|
+
// it'll revert to 1 if somebody passes in something greater (e.g. `Infinity`). See #17234.
|
|
5046
|
+
// @TODO: window.setTimeout() ?
|
|
5047
|
+
this._durationTimeoutId = window.setTimeout(() => this.dismiss(), Math.min(duration, MAX_TIMEOUT));
|
|
5048
|
+
}
|
|
5049
|
+
/** Marks the snackbar as opened */
|
|
5050
|
+
open() {
|
|
5051
|
+
if (!this._afterOpened.closed) {
|
|
5052
|
+
this._afterOpened.next();
|
|
5053
|
+
this._afterOpened.complete();
|
|
5054
|
+
}
|
|
5055
|
+
}
|
|
5056
|
+
/** Gets an observable that is notified when the snack bar is finished closing. */
|
|
5057
|
+
afterDismissed() {
|
|
5058
|
+
return this._afterDismissed;
|
|
5059
|
+
}
|
|
5060
|
+
/** Gets an observable that is notified when the snack bar has opened and appeared. */
|
|
5061
|
+
afterOpened() {
|
|
5062
|
+
return this.containerInstance._onEnter;
|
|
5063
|
+
}
|
|
5064
|
+
/** Gets an observable that is notified when the snack bar action is called. */
|
|
5065
|
+
onAction() {
|
|
5066
|
+
return this._onAction;
|
|
5067
|
+
}
|
|
5068
|
+
/** Cleans up the DOM after closing. */
|
|
5069
|
+
finishDismiss() {
|
|
5070
|
+
this._overlayRef.dispose();
|
|
5071
|
+
if (!this._onAction.closed) {
|
|
5072
|
+
this._onAction.complete();
|
|
5073
|
+
}
|
|
5074
|
+
this._afterDismissed.next({ dismissedByAction: this._dismissedByAction });
|
|
5075
|
+
this._afterDismissed.complete();
|
|
5076
|
+
this._dismissedByAction = false;
|
|
5077
|
+
}
|
|
5078
|
+
}
|
|
5079
|
+
|
|
5080
|
+
/*
|
|
5081
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5082
|
+
* Licensed under the MIT license.
|
|
5083
|
+
* See LICENSE file in the project root for full license information.
|
|
5084
|
+
*/
|
|
5085
|
+
const toastTypeToAttributes = {
|
|
5086
|
+
info: {
|
|
5087
|
+
toastClass: 'bao-snackbar-info',
|
|
5088
|
+
icon: 'icon-info',
|
|
5089
|
+
iconTitle: 'Information',
|
|
5090
|
+
politeness: 'assertive'
|
|
5091
|
+
},
|
|
5092
|
+
success: {
|
|
5093
|
+
toastClass: 'bao-snackbar-success',
|
|
5094
|
+
icon: 'icon-check-circle',
|
|
5095
|
+
iconTitle: 'Succès',
|
|
5096
|
+
politeness: 'polite'
|
|
5097
|
+
},
|
|
5098
|
+
danger: {
|
|
5099
|
+
toastClass: 'bao-snackbar-danger',
|
|
5100
|
+
icon: 'icon-error',
|
|
5101
|
+
iconTitle: 'Erreur',
|
|
5102
|
+
politeness: 'assertive'
|
|
5103
|
+
}
|
|
5104
|
+
};
|
|
5105
|
+
/**
|
|
5106
|
+
* A component used to open as the default snack bar, matching material spec.
|
|
5107
|
+
* This should only be used internally by the snack bar service.
|
|
5108
|
+
*/
|
|
5109
|
+
class BaoSimpleSnackBarComponent {
|
|
5110
|
+
constructor(snackBarRef, data) {
|
|
5111
|
+
this.snackBarRef = snackBarRef;
|
|
5112
|
+
this.showCloseTitle = 'Fermer le message';
|
|
5113
|
+
this.data = data;
|
|
5114
|
+
}
|
|
5115
|
+
/** Returns the politeness */
|
|
5116
|
+
get politeness() {
|
|
5117
|
+
return (toastTypeToAttributes[this.data.toastType]?.politeness ||
|
|
5118
|
+
toastTypeToAttributes['info'].politeness);
|
|
5119
|
+
}
|
|
5120
|
+
/** Returns the toast class */
|
|
5121
|
+
get toastClass() {
|
|
5122
|
+
return (toastTypeToAttributes[this.data.toastType]?.toastClass ||
|
|
5123
|
+
toastTypeToAttributes['info'].toastClass);
|
|
5124
|
+
}
|
|
5125
|
+
/** Returns the toast icon */
|
|
5126
|
+
get toastIcon() {
|
|
5127
|
+
return (toastTypeToAttributes[this.data.toastType]?.icon ||
|
|
5128
|
+
toastTypeToAttributes['info'].icon);
|
|
5129
|
+
}
|
|
5130
|
+
/** Returns the toast icon title */
|
|
5131
|
+
get toastIconTitle() {
|
|
5132
|
+
return (toastTypeToAttributes[this.data.toastType]?.iconTitle ||
|
|
5133
|
+
toastTypeToAttributes['info'].iconTitle);
|
|
5134
|
+
}
|
|
5135
|
+
/** If the action button should be shown. */
|
|
5136
|
+
get hasAction() {
|
|
5137
|
+
return !!this.data.actionLabelOrIcon;
|
|
5138
|
+
}
|
|
5139
|
+
/** If the action is an icon */
|
|
5140
|
+
get isActionIcon() {
|
|
5141
|
+
return !!ICONS_DCT[this.data.actionLabelOrIcon];
|
|
5142
|
+
}
|
|
5143
|
+
/** Performs the action on the snack bar. */
|
|
5144
|
+
action() {
|
|
5145
|
+
this.snackBarRef.dismissWithAction();
|
|
5146
|
+
}
|
|
5147
|
+
/** Closes the snack bar. */
|
|
5148
|
+
close() {
|
|
5149
|
+
this.snackBarRef.dismiss();
|
|
5150
|
+
}
|
|
5151
|
+
}
|
|
5152
|
+
BaoSimpleSnackBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSimpleSnackBarComponent, deps: [{ token: BaoSnackBarRef }, { token: BAO_SNACK_BAR_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
5153
|
+
BaoSimpleSnackBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoSimpleSnackBarComponent, selector: "bao-simple-snack-bar", host: { classAttribute: "bao-simple-snackbar" }, ngImport: i0, template: "<div\n class=\"bao-snackbar show\"\n [ngClass]=\"toastClass\"\n [attr.aria-live]=\"politeness\"\n aria-atomic=\"true\"\n>\n <div class=\"bao-snackbar-icon\">\n <bao-icon [svgIcon]=\"toastIcon\" [title]=\"toastIconTitle\"></bao-icon>\n </div>\n <div class=\"bao-snackbar-body\">\n {{ data.message }}\n </div>\n <div class=\"bao-snackbar-action\">\n <div *ngIf=\"hasAction\">\n <button\n bao-button\n role=\"button\"\n type=\"utility\"\n level=\"tertiary\"\n [reversed]=\"true\"\n [title]=\"data.actionLabelOrIcon\"\n (click)=\"action()\"\n >\n <bao-icon\n *ngIf=\"isActionIcon; else isActionText\"\n [svgIcon]=\"data.actionLabelOrIcon\"\n [title]=\"data.actionLabelOrIcon\"\n ></bao-icon>\n <ng-template #isActionText\n ><span>{{ data.actionLabelOrIcon }}</span></ng-template\n >\n </button>\n </div>\n <div *ngIf=\"data.showClose\">\n <button\n bao-button\n role=\"button\"\n type=\"utility\"\n level=\"tertiary\"\n [reversed]=\"true\"\n title=\"{{ showCloseTitle }}\"\n (click)=\"close()\"\n >\n <bao-icon svgIcon=\"icon-x\" title=\"{{ showCloseTitle }}\"></bao-icon>\n </button>\n </div>\n </div>\n</div>\n", styles: [".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-snackbar{overflow:hidden;font-size:.875rem;line-height:1.25rem;color:#fff;background-color:#004b7b;background-clip:padding-box;box-shadow:0 2px 8px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem;width:100%}.bao-snackbar:not(:last-child){margin-bottom:1rem}.bao-snackbar.showing{opacity:1}.bao-snackbar.show{display:inline-flex;opacity:1}.bao-snackbar.hide{display:none}@media (min-width: 768px){.bao-snackbar{margin:1rem;width:auto}}.bao-snackbar-icon{display:inline-flex;align-items:center;flex-grow:0;margin:1rem 0 1rem 1rem}.bao-snackbar-body{display:flex;align-items:center;padding:1rem;margin:0}.bao-snackbar-action{display:flex;align-items:center;margin-left:auto}.bao-snackbar-action:last-child{margin-right:.5rem}.bao-snackbar-info{color:#fff;background-color:#004b7b}.bao-snackbar-success{color:#fff;background-color:#025d29}.bao-snackbar-danger{color:#fff;background-color:#851a00}\n"], dependencies: [{ kind: "directive", type: i1$1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BaoButtonComponent, selector: "button[bao-button]", inputs: ["displayType", "level", "size", "loading", "reversed", "loadingSpinnerAriaLabel", "fullWidth"] }, { kind: "component", type: BaoIconComponent, selector: "bao-icon", inputs: ["color", "size", "svgIcon", "title"], exportAs: ["baoIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
5154
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSimpleSnackBarComponent, decorators: [{
|
|
5155
|
+
type: Component,
|
|
5156
|
+
args: [{ selector: 'bao-simple-snack-bar', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
5157
|
+
class: 'bao-simple-snackbar'
|
|
5158
|
+
}, template: "<div\n class=\"bao-snackbar show\"\n [ngClass]=\"toastClass\"\n [attr.aria-live]=\"politeness\"\n aria-atomic=\"true\"\n>\n <div class=\"bao-snackbar-icon\">\n <bao-icon [svgIcon]=\"toastIcon\" [title]=\"toastIconTitle\"></bao-icon>\n </div>\n <div class=\"bao-snackbar-body\">\n {{ data.message }}\n </div>\n <div class=\"bao-snackbar-action\">\n <div *ngIf=\"hasAction\">\n <button\n bao-button\n role=\"button\"\n type=\"utility\"\n level=\"tertiary\"\n [reversed]=\"true\"\n [title]=\"data.actionLabelOrIcon\"\n (click)=\"action()\"\n >\n <bao-icon\n *ngIf=\"isActionIcon; else isActionText\"\n [svgIcon]=\"data.actionLabelOrIcon\"\n [title]=\"data.actionLabelOrIcon\"\n ></bao-icon>\n <ng-template #isActionText\n ><span>{{ data.actionLabelOrIcon }}</span></ng-template\n >\n </button>\n </div>\n <div *ngIf=\"data.showClose\">\n <button\n bao-button\n role=\"button\"\n type=\"utility\"\n level=\"tertiary\"\n [reversed]=\"true\"\n title=\"{{ showCloseTitle }}\"\n (click)=\"close()\"\n >\n <bao-icon svgIcon=\"icon-x\" title=\"{{ showCloseTitle }}\"></bao-icon>\n </button>\n </div>\n </div>\n</div>\n", styles: [".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-snackbar{overflow:hidden;font-size:.875rem;line-height:1.25rem;color:#fff;background-color:#004b7b;background-clip:padding-box;box-shadow:0 2px 8px #0000001a;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px);opacity:0;border-radius:.25rem;width:100%}.bao-snackbar:not(:last-child){margin-bottom:1rem}.bao-snackbar.showing{opacity:1}.bao-snackbar.show{display:inline-flex;opacity:1}.bao-snackbar.hide{display:none}@media (min-width: 768px){.bao-snackbar{margin:1rem;width:auto}}.bao-snackbar-icon{display:inline-flex;align-items:center;flex-grow:0;margin:1rem 0 1rem 1rem}.bao-snackbar-body{display:flex;align-items:center;padding:1rem;margin:0}.bao-snackbar-action{display:flex;align-items:center;margin-left:auto}.bao-snackbar-action:last-child{margin-right:.5rem}.bao-snackbar-info{color:#fff;background-color:#004b7b}.bao-snackbar-success{color:#fff;background-color:#025d29}.bao-snackbar-danger{color:#fff;background-color:#851a00}\n"] }]
|
|
5159
|
+
}], ctorParameters: function () { return [{ type: BaoSnackBarRef }, { type: undefined, decorators: [{
|
|
5160
|
+
type: Inject,
|
|
5161
|
+
args: [BAO_SNACK_BAR_DATA]
|
|
5162
|
+
}] }]; } });
|
|
5163
|
+
|
|
5164
|
+
/*
|
|
5165
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5166
|
+
* Licensed under the MIT license.
|
|
5167
|
+
* See LICENSE file in the project root for full license information.
|
|
5168
|
+
*/
|
|
5169
|
+
/**
|
|
5170
|
+
* Animations used by the Material snack bar.
|
|
5171
|
+
* @docs-private
|
|
5172
|
+
*/
|
|
5173
|
+
const matSnackBarAnimations = {
|
|
5174
|
+
/** Animation that shows and hides a snack bar. */
|
|
5175
|
+
snackBarState: trigger('state', [
|
|
5176
|
+
state('void, hidden', style({
|
|
5177
|
+
transform: 'scale(0.8)',
|
|
5178
|
+
opacity: 0
|
|
5179
|
+
})),
|
|
5180
|
+
state('visible', style({
|
|
5181
|
+
transform: 'scale(1)',
|
|
5182
|
+
opacity: 1
|
|
5183
|
+
})),
|
|
5184
|
+
transition('* => visible', animate('150ms cubic-bezier(0, 0, 0.2, 1)')),
|
|
5185
|
+
transition('* => void, * => hidden', animate('75ms cubic-bezier(0.4, 0.0, 1, 1)', style({
|
|
5186
|
+
opacity: 0
|
|
5187
|
+
})))
|
|
5188
|
+
])
|
|
5189
|
+
};
|
|
5190
|
+
|
|
5191
|
+
let uniqueId = 0;
|
|
5192
|
+
/**
|
|
5193
|
+
* Internal component that wraps user-provided snack bar content.
|
|
5194
|
+
* @docs-private
|
|
5195
|
+
*/
|
|
5196
|
+
class BaoSnackBarContainerComponent extends BasePortalOutlet {
|
|
5197
|
+
constructor(_ngZone, _elementRef, _changeDetectorRef, _platform,
|
|
5198
|
+
/** The snack bar configuration. */
|
|
5199
|
+
snackBarConfig) {
|
|
5200
|
+
super();
|
|
5201
|
+
this._ngZone = _ngZone;
|
|
5202
|
+
this._elementRef = _elementRef;
|
|
5203
|
+
this._changeDetectorRef = _changeDetectorRef;
|
|
5204
|
+
this._platform = _platform;
|
|
5205
|
+
this.snackBarConfig = snackBarConfig;
|
|
5206
|
+
this._document = inject(DOCUMENT);
|
|
5207
|
+
this._trackedModals = new Set();
|
|
5208
|
+
/** Subject for notifying that the snack bar has announced to screen readers. */
|
|
5209
|
+
this._onAnnounce = new Subject();
|
|
5210
|
+
/** Subject for notifying that the snack bar has exited from view. */
|
|
5211
|
+
this._onExit = new Subject();
|
|
5212
|
+
/** Subject for notifying that the snack bar has finished entering the view. */
|
|
5213
|
+
this._onEnter = new Subject();
|
|
5214
|
+
/** The state of the snack bar animations. */
|
|
5215
|
+
this._animationState = 'void';
|
|
5216
|
+
/** The number of milliseconds to wait before announcing the snack bar's content. */
|
|
5217
|
+
this._announceDelay = 150;
|
|
5218
|
+
/** Whether the component has been destroyed. */
|
|
5219
|
+
this._destroyed = false;
|
|
5220
|
+
/** Unique ID of the aria-live element. */
|
|
5221
|
+
this._liveElementId = `bao-snack-bar-container-live-${uniqueId++}`;
|
|
5222
|
+
/**
|
|
5223
|
+
* Attaches a DOM portal to the snack bar container.
|
|
5224
|
+
* @deprecated To be turned into a method.
|
|
5225
|
+
* @breaking-change 10.0.0
|
|
5226
|
+
*/
|
|
5227
|
+
this.attachDomPortal = (portal) => {
|
|
5228
|
+
this.assertNotAttached();
|
|
5229
|
+
const result = this._portalOutlet.attachDomPortal(portal);
|
|
5230
|
+
this._afterPortalAttached();
|
|
5231
|
+
return result;
|
|
5232
|
+
};
|
|
5233
|
+
// Use aria-live rather than a live role like 'alert' or 'status'
|
|
5234
|
+
// because NVDA and JAWS have show inconsistent behavior with live roles.
|
|
5235
|
+
if (snackBarConfig.politeness === 'assertive' &&
|
|
5236
|
+
!snackBarConfig.announcementMessage) {
|
|
5237
|
+
this._live = 'assertive';
|
|
5238
|
+
}
|
|
5239
|
+
else if (snackBarConfig.politeness === 'off') {
|
|
5240
|
+
this._live = 'off';
|
|
5241
|
+
}
|
|
5242
|
+
else {
|
|
5243
|
+
this._live = 'polite';
|
|
5244
|
+
}
|
|
5245
|
+
// Only set role for Firefox. Set role based on aria-live because setting role="alert" implies
|
|
5246
|
+
// aria-live="assertive" which may cause issues if aria-live is set to "polite" above.
|
|
5247
|
+
if (this._platform.FIREFOX) {
|
|
5248
|
+
if (this._live === 'polite') {
|
|
5249
|
+
this._role = 'status';
|
|
5250
|
+
}
|
|
5251
|
+
if (this._live === 'assertive') {
|
|
5252
|
+
this._role = 'alert';
|
|
5253
|
+
}
|
|
5254
|
+
}
|
|
5255
|
+
}
|
|
5256
|
+
/** Attach a component portal as content to this snack bar container. */
|
|
5257
|
+
attachComponentPortal(portal) {
|
|
5258
|
+
this.assertNotAttached();
|
|
5259
|
+
this.applySnackBarClasses();
|
|
5260
|
+
const result = this._portalOutlet.attachComponentPortal(portal);
|
|
5261
|
+
this._afterPortalAttached();
|
|
5262
|
+
return result;
|
|
5263
|
+
}
|
|
5264
|
+
/** Attach a template portal as content to this snack bar container. */
|
|
5265
|
+
attachTemplatePortal(portal) {
|
|
5266
|
+
this.assertNotAttached();
|
|
5267
|
+
this.applySnackBarClasses();
|
|
5268
|
+
const result = this._portalOutlet.attachTemplatePortal(portal);
|
|
5269
|
+
this._afterPortalAttached();
|
|
5270
|
+
return result;
|
|
5271
|
+
}
|
|
5272
|
+
/** Handle end of animations, updating the state of the snackbar. */
|
|
5273
|
+
onAnimationEnd(event) {
|
|
5274
|
+
const { fromState, toState } = event;
|
|
5275
|
+
if ((toState === 'void' && fromState !== 'void') || toState === 'hidden') {
|
|
5276
|
+
this.completeExit();
|
|
5277
|
+
}
|
|
5278
|
+
if (toState === 'visible') {
|
|
5279
|
+
// Note: we shouldn't use `this` inside the zone callback,
|
|
5280
|
+
// because it can cause a memory leak.
|
|
5281
|
+
const onEnter = this._onEnter;
|
|
5282
|
+
this._ngZone.run(() => {
|
|
5283
|
+
onEnter.next();
|
|
5284
|
+
onEnter.complete();
|
|
5285
|
+
});
|
|
5286
|
+
}
|
|
5287
|
+
}
|
|
5288
|
+
/** Begin animation of snack bar entrance into view. */
|
|
5289
|
+
enter() {
|
|
5290
|
+
if (!this._destroyed) {
|
|
5291
|
+
this._animationState = 'visible';
|
|
5292
|
+
this._changeDetectorRef.detectChanges();
|
|
5293
|
+
this.screenReaderAnnounce();
|
|
5294
|
+
}
|
|
5295
|
+
}
|
|
5296
|
+
/** Begin animation of the snack bar exiting from view. */
|
|
5297
|
+
exit() {
|
|
5298
|
+
// Note: this one transitions to `hidden`, rather than `void`, in order to handle the case
|
|
5299
|
+
// where multiple snack bars are opened in quick succession (e.g. two consecutive calls to
|
|
5300
|
+
// `MatSnackBar.open`).
|
|
5301
|
+
this._animationState = 'hidden';
|
|
5302
|
+
// Mark this element with an 'exit' attribute to indicate that the snackbar has
|
|
5303
|
+
// been dismissed and will soon be removed from the DOM. This is used by the snackbar
|
|
5304
|
+
// test harness.
|
|
5305
|
+
this._elementRef.nativeElement.setAttribute('mat-exit', '');
|
|
5306
|
+
// If the snack bar hasn't been announced by the time it exits it wouldn't have been open
|
|
5307
|
+
// long enough to visually read it either, so clear the timeout for announcing.
|
|
5308
|
+
clearTimeout(this._announceTimeoutId);
|
|
5309
|
+
return this._onExit;
|
|
5310
|
+
}
|
|
5311
|
+
/** Makes sure the exit callbacks have been invoked when the element is destroyed. */
|
|
5312
|
+
ngOnDestroy() {
|
|
5313
|
+
this._destroyed = true;
|
|
5314
|
+
this.completeExit();
|
|
5315
|
+
}
|
|
5316
|
+
/**
|
|
5317
|
+
* Waits for the zone to settle before removing the element. Helps prevent
|
|
5318
|
+
* errors where we end up removing an element which is in the middle of an animation.
|
|
5319
|
+
*/
|
|
5320
|
+
completeExit() {
|
|
5321
|
+
this._ngZone.onMicrotaskEmpty.pipe(take$1(1)).subscribe(() => {
|
|
5322
|
+
this._onExit.next();
|
|
5323
|
+
this._onExit.complete();
|
|
5324
|
+
});
|
|
5325
|
+
}
|
|
5326
|
+
/** Applies the various positioning and user-configured CSS classes to the snack bar. */
|
|
5327
|
+
applySnackBarClasses() {
|
|
5328
|
+
const element = this._elementRef.nativeElement;
|
|
5329
|
+
const panelClasses = this.snackBarConfig.panelClass;
|
|
5330
|
+
if (panelClasses) {
|
|
5331
|
+
if (Array.isArray(panelClasses)) {
|
|
5332
|
+
// Note that we can't use a spread here, because IE doesn't support multiple arguments.
|
|
5333
|
+
panelClasses.forEach(cssClass => element.classList.add(cssClass));
|
|
5334
|
+
}
|
|
5335
|
+
else {
|
|
5336
|
+
element.classList.add(panelClasses);
|
|
5337
|
+
}
|
|
5338
|
+
}
|
|
5339
|
+
if (this.snackBarConfig.horizontalPosition === 'center') {
|
|
5340
|
+
element.classList.add('bao-snack-bar-center');
|
|
5341
|
+
}
|
|
5342
|
+
if (this.snackBarConfig.verticalPosition === 'top') {
|
|
5343
|
+
element.classList.add('bao-snack-bar-top');
|
|
5344
|
+
}
|
|
5345
|
+
}
|
|
5346
|
+
/**
|
|
5347
|
+
* Called after the portal contents have been attached. Can be
|
|
5348
|
+
* used to modify the DOM once it's guaranteed to be in place.
|
|
5349
|
+
*/
|
|
5350
|
+
_afterPortalAttached() {
|
|
5351
|
+
const element = this._elementRef.nativeElement;
|
|
5352
|
+
const panelClasses = this.snackBarConfig.panelClass;
|
|
5353
|
+
if (panelClasses) {
|
|
5354
|
+
if (Array.isArray(panelClasses)) {
|
|
5355
|
+
// Note that we can't use a spread here, because IE doesn't support multiple arguments.
|
|
5356
|
+
panelClasses.forEach(cssClass => element.classList.add(cssClass));
|
|
5357
|
+
}
|
|
5358
|
+
else {
|
|
5359
|
+
element.classList.add(panelClasses);
|
|
5360
|
+
}
|
|
5361
|
+
}
|
|
5362
|
+
this._exposeToModals();
|
|
5363
|
+
}
|
|
5364
|
+
/**
|
|
5365
|
+
* Some browsers won't expose the accessibility node of the live element if there is an
|
|
5366
|
+
* `aria-modal` and the live element is outside of it. This method works around the issue by
|
|
5367
|
+
* pointing the `aria-owns` of all modals to the live element.
|
|
5368
|
+
*/
|
|
5369
|
+
_exposeToModals() {
|
|
5370
|
+
// Note that the selector here is limited to CDK overlays at the moment in order to reduce the
|
|
5371
|
+
// section of the DOM we need to look through. This should cover all the cases we support, but
|
|
5372
|
+
// the selector can be expanded if it turns out to be too narrow.
|
|
5373
|
+
const id = this._liveElementId;
|
|
5374
|
+
const modals = this._document.querySelectorAll('body > .cdk-overlay-container [aria-modal="true"]');
|
|
5375
|
+
for (let i = 0; i < modals.length; i++) {
|
|
5376
|
+
const modal = modals[i];
|
|
5377
|
+
const ariaOwns = modal.getAttribute('aria-owns');
|
|
5378
|
+
this._trackedModals.add(modal);
|
|
5379
|
+
if (!ariaOwns) {
|
|
5380
|
+
modal.setAttribute('aria-owns', id);
|
|
5381
|
+
}
|
|
5382
|
+
else if (ariaOwns.indexOf(id) === -1) {
|
|
5383
|
+
modal.setAttribute('aria-owns', ariaOwns + ' ' + id);
|
|
5384
|
+
}
|
|
5385
|
+
}
|
|
5386
|
+
}
|
|
5387
|
+
/** Clears the references to the live element from any modals it was added to. */
|
|
5388
|
+
_clearFromModals() {
|
|
5389
|
+
this._trackedModals.forEach(modal => {
|
|
5390
|
+
const ariaOwns = modal.getAttribute('aria-owns');
|
|
5391
|
+
if (ariaOwns) {
|
|
5392
|
+
const newValue = ariaOwns.replace(this._liveElementId, '').trim();
|
|
5393
|
+
if (newValue.length > 0) {
|
|
5394
|
+
modal.setAttribute('aria-owns', newValue);
|
|
5395
|
+
}
|
|
5396
|
+
else {
|
|
5397
|
+
modal.removeAttribute('aria-owns');
|
|
5398
|
+
}
|
|
5399
|
+
}
|
|
5400
|
+
});
|
|
5401
|
+
this._trackedModals.clear();
|
|
5402
|
+
}
|
|
5403
|
+
/** Asserts that no content is already attached to the container. */
|
|
5404
|
+
assertNotAttached() {
|
|
5405
|
+
if (this._portalOutlet.hasAttached()) {
|
|
5406
|
+
throw Error('Attempting to attach snack bar content after content is already attached');
|
|
5407
|
+
}
|
|
5408
|
+
}
|
|
5409
|
+
/**
|
|
5410
|
+
* Starts a timeout to move the snack bar content to the live region so screen readers will
|
|
5411
|
+
* announce it.
|
|
5412
|
+
*/
|
|
5413
|
+
screenReaderAnnounce() {
|
|
5414
|
+
if (!this._announceTimeoutId) {
|
|
5415
|
+
this._ngZone.runOutsideAngular(() => {
|
|
5416
|
+
this._announceTimeoutId = window.setTimeout(() => {
|
|
5417
|
+
const inertElement = this._elementRef.nativeElement.querySelector('[aria-hidden]');
|
|
5418
|
+
const liveElement = this._elementRef.nativeElement.querySelector('[aria-live]');
|
|
5419
|
+
if (inertElement && liveElement) {
|
|
5420
|
+
// If an element in the snack bar content is focused before being moved
|
|
5421
|
+
// track it and restore focus after moving to the live region.
|
|
5422
|
+
let focusedElement = null;
|
|
5423
|
+
if (this._platform.isBrowser &&
|
|
5424
|
+
document.activeElement instanceof HTMLElement &&
|
|
5425
|
+
inertElement.contains(document.activeElement)) {
|
|
5426
|
+
focusedElement = document.activeElement;
|
|
5427
|
+
}
|
|
5428
|
+
inertElement.removeAttribute('aria-hidden');
|
|
5429
|
+
liveElement.appendChild(inertElement);
|
|
5430
|
+
focusedElement?.focus();
|
|
5431
|
+
this._onAnnounce.next();
|
|
5432
|
+
this._onAnnounce.complete();
|
|
5433
|
+
}
|
|
5434
|
+
}, this._announceDelay);
|
|
5435
|
+
});
|
|
5436
|
+
}
|
|
5437
|
+
}
|
|
5438
|
+
}
|
|
5439
|
+
BaoSnackBarContainerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarContainerComponent, deps: [{ token: i0.NgZone }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$5.Platform }, { token: BaoSnackBarConfig }], target: i0.ɵɵFactoryTarget.Component });
|
|
5440
|
+
BaoSnackBarContainerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoSnackBarContainerComponent, selector: "bao-snack-bar-container", host: { listeners: { "@state.done": "onAnimationEnd($event)" }, properties: { "@state": "_animationState" }, classAttribute: "bao-snack-bar-container" }, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: "<!-- Initialy holds the snack bar content, will be empty after announcing to screen readers. -->\n<div aria-hidden=\"true\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n\n<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\n<div\n [attr.aria-live]=\"_live\"\n [attr.role]=\"_role\"\n [attr.id]=\"_liveElementId\"\n></div>\n", styles: [".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%}}.cdk-overlay-pane{width:100%}@media (min-width: 768px){.cdk-overlay-pane{margin:0;width:auto}}.bao-snack-bar-container{border-radius:.25rem;box-sizing:border-box;display:block;margin:1rem;max-width:100vw;min-width:15rem;min-height:3rem;transform-origin:center;width:100%}\n"], dependencies: [{ kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], animations: [matSnackBarAnimations.snackBarState], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
5441
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarContainerComponent, decorators: [{
|
|
5442
|
+
type: Component,
|
|
5443
|
+
args: [{ selector: 'bao-snack-bar-container', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, animations: [matSnackBarAnimations.snackBarState], host: {
|
|
5444
|
+
class: 'bao-snack-bar-container',
|
|
5445
|
+
'[@state]': '_animationState',
|
|
5446
|
+
'(@state.done)': 'onAnimationEnd($event)'
|
|
5447
|
+
}, template: "<!-- Initialy holds the snack bar content, will be empty after announcing to screen readers. -->\n<div aria-hidden=\"true\">\n <ng-template cdkPortalOutlet></ng-template>\n</div>\n\n<!-- Will receive the snack bar content from the non-live div, move will happen a short delay after opening -->\n<div\n [attr.aria-live]=\"_live\"\n [attr.role]=\"_role\"\n [attr.id]=\"_liveElementId\"\n></div>\n", styles: [".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%}}.cdk-overlay-pane{width:100%}@media (min-width: 768px){.cdk-overlay-pane{margin:0;width:auto}}.bao-snack-bar-container{border-radius:.25rem;box-sizing:border-box;display:block;margin:1rem;max-width:100vw;min-width:15rem;min-height:3rem;transform-origin:center;width:100%}\n"] }]
|
|
5448
|
+
}], ctorParameters: function () { return [{ type: i0.NgZone }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$5.Platform }, { type: BaoSnackBarConfig }]; }, propDecorators: { _portalOutlet: [{
|
|
5449
|
+
type: ViewChild,
|
|
5450
|
+
args: [CdkPortalOutlet, { static: true }]
|
|
5451
|
+
}] } });
|
|
5452
|
+
|
|
5453
|
+
function baoFactory() {
|
|
5454
|
+
return new BaoSnackBarConfig();
|
|
5455
|
+
}
|
|
5456
|
+
/** Injection token that can be used to specify default snack bar. */
|
|
5457
|
+
const BAO_SNACK_BAR_DEFAULT_OPTIONS = new InjectionToken('bao-snack-bar-default-options', {
|
|
5458
|
+
providedIn: 'root',
|
|
5459
|
+
factory: baoFactory
|
|
5460
|
+
});
|
|
5461
|
+
/**
|
|
5462
|
+
* Service to dispatch Material Design snack bar messages.
|
|
5463
|
+
*/
|
|
5464
|
+
class BaoSnackBarService {
|
|
5465
|
+
constructor(_overlay, _live, _injector, _parentSnackBar, _defaultConfig) {
|
|
5466
|
+
this._overlay = _overlay;
|
|
5467
|
+
this._live = _live;
|
|
5468
|
+
this._injector = _injector;
|
|
5469
|
+
this._parentSnackBar = _parentSnackBar;
|
|
5470
|
+
this._defaultConfig = _defaultConfig;
|
|
5471
|
+
/** The component that should be rendered as the snack bar's simple component. */
|
|
5472
|
+
this.simpleSnackBarComponent = BaoSimpleSnackBarComponent;
|
|
5473
|
+
/** The container component that attaches the provided template or component. */
|
|
5474
|
+
this.snackBarContainerComponent = BaoSnackBarContainerComponent;
|
|
5475
|
+
/**
|
|
5476
|
+
* Reference to the current snack bar in the view *at this level* (in the Angular injector tree).
|
|
5477
|
+
* If there is a parent snack-bar service, all operations should delegate to that parent
|
|
5478
|
+
* via `_openedSnackBarRef`.
|
|
5479
|
+
*/
|
|
5480
|
+
this._snackBarRefAtThisLevel = null;
|
|
5481
|
+
}
|
|
5482
|
+
/** Reference to the currently opened snackbar at *any* level. */
|
|
5483
|
+
get _openedSnackBarRef() {
|
|
5484
|
+
const parent = this._parentSnackBar;
|
|
5485
|
+
return parent ? parent._openedSnackBarRef : this._snackBarRefAtThisLevel;
|
|
5486
|
+
}
|
|
5487
|
+
set _openedSnackBarRef(value) {
|
|
5488
|
+
if (this._parentSnackBar) {
|
|
5489
|
+
this._parentSnackBar._openedSnackBarRef = value;
|
|
5490
|
+
}
|
|
5491
|
+
else {
|
|
5492
|
+
this._snackBarRefAtThisLevel = value;
|
|
5493
|
+
}
|
|
5494
|
+
}
|
|
5495
|
+
/**
|
|
5496
|
+
* Creates and dispatches a snack bar with a custom component for the content, removing any
|
|
5497
|
+
* currently opened snack bars.
|
|
5498
|
+
*
|
|
5499
|
+
* @param component Component to be instantiated.
|
|
5500
|
+
* @param config Extra configuration for the snack bar.
|
|
5501
|
+
*/
|
|
5502
|
+
openFromComponent(component, config) {
|
|
5503
|
+
return this.attach(component, config);
|
|
5504
|
+
}
|
|
5505
|
+
/**
|
|
5506
|
+
* Creates and dispatches a snack bar with a custom template for the content, removing any
|
|
5507
|
+
* currently opened snack bars.
|
|
5508
|
+
*
|
|
5509
|
+
* @param template Template to be instantiated.
|
|
5510
|
+
* @param config Extra configuration for the snack bar.
|
|
5511
|
+
*/
|
|
5512
|
+
openFromTemplate(template, config) {
|
|
5513
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
5514
|
+
return this.attach(template, config);
|
|
5515
|
+
}
|
|
5516
|
+
/**
|
|
5517
|
+
* Opens a snackbar with a message and an optional action.
|
|
5518
|
+
* @param message The message to show in the snackbar.
|
|
5519
|
+
* @param toastType The type of of toast to display the snackbar.
|
|
5520
|
+
* @param actionLabelOrIcon The label or icon for the snackbar action.
|
|
5521
|
+
* @param showClose If true, the snackbar will require user interaction to close.
|
|
5522
|
+
* @param config Additional configuration options for the snackbar.
|
|
5523
|
+
*/
|
|
5524
|
+
open(config) {
|
|
5525
|
+
const _config = { ...this._defaultConfig, ...config };
|
|
5526
|
+
// Since the user doesn't have access to the component, we can
|
|
5527
|
+
// override the data to pass in our own message, action and type.
|
|
5528
|
+
_config.data = {
|
|
5529
|
+
message: _config.message,
|
|
5530
|
+
toastType: _config.toastType,
|
|
5531
|
+
actionLabelOrIcon: _config.actionLabelOrIcon,
|
|
5532
|
+
showClose: _config.showClose
|
|
5533
|
+
};
|
|
5534
|
+
if (_config.showClose)
|
|
5535
|
+
_config.duration = 0;
|
|
5536
|
+
if (!_config.announcementMessage) {
|
|
5537
|
+
_config.announcementMessage = _config.message;
|
|
5538
|
+
}
|
|
5539
|
+
return this.openFromComponent(this.simpleSnackBarComponent, _config);
|
|
5540
|
+
}
|
|
5541
|
+
/**
|
|
5542
|
+
* Dismisses the currently-visible snack bar.
|
|
5543
|
+
*/
|
|
5544
|
+
dismiss() {
|
|
5545
|
+
if (this._openedSnackBarRef) {
|
|
5546
|
+
this._openedSnackBarRef.dismiss();
|
|
5547
|
+
}
|
|
5548
|
+
}
|
|
5549
|
+
ngOnDestroy() {
|
|
5550
|
+
// Only dismiss the snack bar at the current level on destroy.
|
|
5551
|
+
if (this._snackBarRefAtThisLevel) {
|
|
5552
|
+
this._snackBarRefAtThisLevel.dismiss();
|
|
5553
|
+
}
|
|
5554
|
+
}
|
|
5555
|
+
/**
|
|
5556
|
+
* Attaches the snack bar container component to the overlay.
|
|
5557
|
+
*/
|
|
5558
|
+
attachSnackBarContainer(overlayRef, config) {
|
|
5559
|
+
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
5560
|
+
const injector = new PortalInjector(userInjector || this._injector, new WeakMap([[BaoSnackBarConfig, config]]));
|
|
5561
|
+
const containerPortal = new ComponentPortal(this.snackBarContainerComponent, config.viewContainerRef, injector);
|
|
5562
|
+
const containerRef = overlayRef.attach(containerPortal);
|
|
5563
|
+
containerRef.instance.snackBarConfig = config;
|
|
5564
|
+
return containerRef.instance;
|
|
5565
|
+
}
|
|
5566
|
+
/**
|
|
5567
|
+
* Places a new component or a template as the content of the snack bar container.
|
|
5568
|
+
*/
|
|
5569
|
+
attach(content, userConfig) {
|
|
5570
|
+
const config = {
|
|
5571
|
+
...new BaoSnackBarConfig(),
|
|
5572
|
+
...this._defaultConfig,
|
|
5573
|
+
...userConfig
|
|
5574
|
+
};
|
|
5575
|
+
const overlayRef = this.createOverlay(config);
|
|
5576
|
+
const container = this.attachSnackBarContainer(overlayRef, config);
|
|
5577
|
+
const snackBarRef = new BaoSnackBarRef(container, overlayRef);
|
|
5578
|
+
if (content instanceof TemplateRef) {
|
|
5579
|
+
// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
|
|
5580
|
+
const portal = new TemplatePortal(content, null, {
|
|
5581
|
+
$implicit: config.data,
|
|
5582
|
+
snackBarRef
|
|
5583
|
+
});
|
|
5584
|
+
snackBarRef.instance = container.attachTemplatePortal(portal);
|
|
5585
|
+
}
|
|
5586
|
+
else {
|
|
5587
|
+
const injector = this.createInjector(config, snackBarRef);
|
|
5588
|
+
const portal = new ComponentPortal(content, undefined, injector);
|
|
5589
|
+
const contentRef = container.attachComponentPortal(portal);
|
|
5590
|
+
// We can't pass this via the injector, because the injector is created earlier.
|
|
5591
|
+
snackBarRef.instance = contentRef.instance;
|
|
5592
|
+
}
|
|
5593
|
+
this.animateSnackBar(snackBarRef, config);
|
|
5594
|
+
this._openedSnackBarRef = snackBarRef;
|
|
5595
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
5596
|
+
return this._openedSnackBarRef;
|
|
5597
|
+
}
|
|
5598
|
+
/** Animates the old snack bar out and the new one in. */
|
|
5599
|
+
animateSnackBar(snackBarRef, config) {
|
|
5600
|
+
// When the snackbar is dismissed, clear the reference to it.
|
|
5601
|
+
snackBarRef.afterDismissed().subscribe(() => {
|
|
5602
|
+
// Clear the snackbar ref if it hasn't already been replaced by a newer snackbar.
|
|
5603
|
+
// eslint-disable-next-line eqeqeq
|
|
5604
|
+
if (this._openedSnackBarRef == snackBarRef) {
|
|
5605
|
+
this._openedSnackBarRef = null;
|
|
5606
|
+
}
|
|
5607
|
+
if (config.announcementMessage) {
|
|
5608
|
+
this._live.clear();
|
|
5609
|
+
}
|
|
5610
|
+
});
|
|
5611
|
+
if (this._openedSnackBarRef) {
|
|
5612
|
+
// If a snack bar is already in view, dismiss it and enter the
|
|
5613
|
+
// new snack bar after exit animation is complete.
|
|
5614
|
+
this._openedSnackBarRef.afterDismissed().subscribe(() => {
|
|
5615
|
+
snackBarRef.containerInstance.enter();
|
|
5616
|
+
});
|
|
5617
|
+
this._openedSnackBarRef.dismiss();
|
|
5618
|
+
}
|
|
5619
|
+
else {
|
|
5620
|
+
// If no snack bar is in view, enter the new snack bar.
|
|
5621
|
+
snackBarRef.containerInstance.enter();
|
|
5622
|
+
}
|
|
5623
|
+
// If a dismiss timeout is provided, set up dismiss based on after the snackbar is opened.
|
|
5624
|
+
if (config.duration && config.duration > 0) {
|
|
5625
|
+
snackBarRef
|
|
5626
|
+
.afterOpened()
|
|
5627
|
+
.subscribe(() => snackBarRef.dismissAfter(config.duration));
|
|
5628
|
+
}
|
|
5629
|
+
if (config.announcementMessage) {
|
|
5630
|
+
void this._live.announce(config.announcementMessage, config.politeness);
|
|
5631
|
+
}
|
|
5632
|
+
}
|
|
5633
|
+
/**
|
|
5634
|
+
* Creates a new overlay and places it in the correct location.
|
|
5635
|
+
* @param config The user-specified snack bar config.
|
|
5636
|
+
*/
|
|
5637
|
+
createOverlay(config) {
|
|
5638
|
+
const overlayConfig = new OverlayConfig();
|
|
5639
|
+
overlayConfig.direction = config.direction;
|
|
5640
|
+
const positionStrategy = this._overlay.position().global();
|
|
5641
|
+
// Set horizontal position.
|
|
5642
|
+
const isRtl = config.direction === 'rtl';
|
|
5643
|
+
const isLeft = config.horizontalPosition === 'left' ||
|
|
5644
|
+
(config.horizontalPosition === 'start' && !isRtl) ||
|
|
5645
|
+
(config.horizontalPosition === 'end' && isRtl);
|
|
5646
|
+
const isRight = !isLeft && config.horizontalPosition !== 'center';
|
|
5647
|
+
if (isLeft) {
|
|
5648
|
+
positionStrategy.left('0');
|
|
5649
|
+
}
|
|
5650
|
+
else if (isRight) {
|
|
5651
|
+
positionStrategy.right('0');
|
|
5652
|
+
}
|
|
5653
|
+
else {
|
|
5654
|
+
positionStrategy.centerHorizontally();
|
|
5655
|
+
}
|
|
5656
|
+
// Set horizontal position.
|
|
5657
|
+
if (config.verticalPosition === 'top') {
|
|
5658
|
+
positionStrategy.top('0');
|
|
5659
|
+
}
|
|
5660
|
+
else {
|
|
5661
|
+
positionStrategy.bottom('0');
|
|
5662
|
+
}
|
|
5663
|
+
overlayConfig.positionStrategy = positionStrategy;
|
|
5664
|
+
return this._overlay.create(overlayConfig);
|
|
5665
|
+
}
|
|
5666
|
+
/**
|
|
5667
|
+
* Creates an injector to be used inside of a snack bar component.
|
|
5668
|
+
* @param config Config that was used to create the snack bar.
|
|
5669
|
+
* @param snackBarRef Reference to the snack bar.
|
|
5670
|
+
*/
|
|
5671
|
+
createInjector(config, snackBarRef) {
|
|
5672
|
+
const userInjector = config && config.viewContainerRef && config.viewContainerRef.injector;
|
|
5673
|
+
return new PortalInjector(userInjector || this._injector, new WeakMap([
|
|
5674
|
+
[BaoSnackBarRef, snackBarRef],
|
|
5675
|
+
[BAO_SNACK_BAR_DATA, config.data]
|
|
5676
|
+
]));
|
|
5677
|
+
}
|
|
5678
|
+
}
|
|
5679
|
+
BaoSnackBarService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarService, deps: [{ token: i1$4.Overlay }, { token: i1$3.LiveAnnouncer }, { token: i0.Injector }, { token: BaoSnackBarService, optional: true, skipSelf: true }, { token: BAO_SNACK_BAR_DEFAULT_OPTIONS }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
5680
|
+
BaoSnackBarService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarService, providedIn: 'root' });
|
|
5681
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarService, decorators: [{
|
|
5682
|
+
type: Injectable,
|
|
5683
|
+
args: [{ providedIn: 'root' }]
|
|
5684
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i1$3.LiveAnnouncer }, { type: i0.Injector }, { type: BaoSnackBarService, decorators: [{
|
|
5685
|
+
type: Optional
|
|
5686
|
+
}, {
|
|
5687
|
+
type: SkipSelf
|
|
5688
|
+
}] }, { type: BaoSnackBarConfig, decorators: [{
|
|
5689
|
+
type: Inject,
|
|
5690
|
+
args: [BAO_SNACK_BAR_DEFAULT_OPTIONS]
|
|
5691
|
+
}] }]; } });
|
|
5692
|
+
|
|
5693
|
+
/*
|
|
5694
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5695
|
+
* Licensed under the MIT license.
|
|
5696
|
+
* See LICENSE file in the project root for full license information.
|
|
5697
|
+
*/
|
|
5698
|
+
const SNACKBAR_DIRECTIVES = [
|
|
5699
|
+
BaoSimpleSnackBarComponent,
|
|
5700
|
+
BaoSnackBarContainerComponent
|
|
5701
|
+
];
|
|
5702
|
+
class BaoSnackBarModule {
|
|
5703
|
+
}
|
|
5704
|
+
BaoSnackBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5705
|
+
BaoSnackBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarModule, declarations: [BaoSimpleSnackBarComponent,
|
|
5706
|
+
BaoSnackBarContainerComponent], imports: [CommonModule,
|
|
5707
|
+
OverlayModule,
|
|
5708
|
+
PortalModule,
|
|
5709
|
+
BaoButtonModule,
|
|
5710
|
+
BaoIconModule], exports: [BaoSimpleSnackBarComponent,
|
|
5711
|
+
BaoSnackBarContainerComponent] });
|
|
5712
|
+
BaoSnackBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarModule, providers: [BaoSnackBarService, BaoSnackBarConfig], imports: [CommonModule,
|
|
5713
|
+
OverlayModule,
|
|
5714
|
+
PortalModule,
|
|
5715
|
+
BaoButtonModule,
|
|
5716
|
+
BaoIconModule] });
|
|
5717
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSnackBarModule, decorators: [{
|
|
5718
|
+
type: NgModule,
|
|
5719
|
+
args: [{
|
|
5720
|
+
imports: [
|
|
5721
|
+
CommonModule,
|
|
5722
|
+
OverlayModule,
|
|
5723
|
+
PortalModule,
|
|
5724
|
+
BaoButtonModule,
|
|
5725
|
+
BaoIconModule
|
|
5726
|
+
],
|
|
5727
|
+
providers: [BaoSnackBarService, BaoSnackBarConfig],
|
|
5728
|
+
declarations: SNACKBAR_DIRECTIVES,
|
|
5729
|
+
exports: SNACKBAR_DIRECTIVES,
|
|
5730
|
+
entryComponents: [SNACKBAR_DIRECTIVES]
|
|
5731
|
+
}]
|
|
5732
|
+
}] });
|
|
5733
|
+
|
|
4967
5734
|
/*
|
|
4968
5735
|
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4969
5736
|
* Licensed under the MIT license.
|
|
@@ -4994,9 +5761,9 @@ BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.
|
|
|
4994
5761
|
BaoModalModule,
|
|
4995
5762
|
BaoHyperlinkModule,
|
|
4996
5763
|
BaoDropdownMenuModule,
|
|
4997
|
-
BaoFileModule
|
|
5764
|
+
BaoFileModule,
|
|
5765
|
+
BaoSnackBarModule
|
|
4998
5766
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
4999
|
-
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
5000
5767
|
] });
|
|
5001
5768
|
BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, imports: [BaoIconModule,
|
|
5002
5769
|
BaoButtonModule,
|
|
@@ -5020,9 +5787,9 @@ BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.
|
|
|
5020
5787
|
BaoModalModule,
|
|
5021
5788
|
BaoHyperlinkModule,
|
|
5022
5789
|
BaoDropdownMenuModule,
|
|
5023
|
-
BaoFileModule
|
|
5790
|
+
BaoFileModule,
|
|
5791
|
+
BaoSnackBarModule
|
|
5024
5792
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
5025
|
-
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
5026
5793
|
] });
|
|
5027
5794
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, decorators: [{
|
|
5028
5795
|
type: NgModule,
|
|
@@ -5053,9 +5820,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
5053
5820
|
BaoModalModule,
|
|
5054
5821
|
BaoHyperlinkModule,
|
|
5055
5822
|
BaoDropdownMenuModule,
|
|
5056
|
-
BaoFileModule
|
|
5823
|
+
BaoFileModule,
|
|
5824
|
+
BaoSnackBarModule
|
|
5057
5825
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
5058
|
-
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
5059
5826
|
]
|
|
5060
5827
|
}]
|
|
5061
5828
|
}] });
|
|
@@ -5135,9 +5902,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImpor
|
|
|
5135
5902
|
* See LICENSE file in the project root for full license information.
|
|
5136
5903
|
*/
|
|
5137
5904
|
|
|
5905
|
+
/*
|
|
5906
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5907
|
+
* Licensed under the MIT license.
|
|
5908
|
+
* See LICENSE file in the project root for full license information.
|
|
5909
|
+
*/
|
|
5910
|
+
|
|
5138
5911
|
/**
|
|
5139
5912
|
* Generated bundle index. Do not edit.
|
|
5140
5913
|
*/
|
|
5141
5914
|
|
|
5142
|
-
export { BAO_FILE_INTL_PROVIDER, BAO_FILE_INTL_PROVIDER_FACTORY, BAO_MODAL_DATA, BAO_RADIO_GROUP, 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, BaoSummaryComponent, BaoSummaryDescription, BaoSummaryModule, BaoTabHeader, BaoTabPanel, BaoTablistComponent, BaoTabsContainer, BaoTabsModule, BaoTagComponent, BaoTagModule, BaoTitleTextComponent, _BaoModalContainerBase, _closeModalVia, eModalDesktopWidthSize, eModalMobileWidthSize, throwBaoModalContentAlreadyAttachedError };
|
|
5915
|
+
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 };
|
|
5143
5916
|
//# sourceMappingURL=villedemontreal-angular-ui.mjs.map
|