@villedemontreal/angular-ui 14.0.1 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm2020/lib/alert/alert.component.mjs +17 -17
- package/esm2020/lib/alert/index.mjs +2 -2
- package/esm2020/lib/alert/module.mjs +6 -6
- package/esm2020/lib/avatar/avatar.component.mjs +8 -8
- package/esm2020/lib/avatar/index.mjs +2 -2
- package/esm2020/lib/avatar/module.mjs +6 -6
- package/esm2020/lib/badge/badge.component.mjs +5 -5
- package/esm2020/lib/badge/index.mjs +2 -2
- package/esm2020/lib/badge/module.mjs +6 -6
- package/esm2020/lib/bao.module.mjs +19 -12
- package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +5 -5
- package/esm2020/lib/breadcrumb/index.mjs +2 -2
- package/esm2020/lib/breadcrumb/module.mjs +6 -6
- package/esm2020/lib/button/button.component.mjs +5 -5
- package/esm2020/lib/button/index.mjs +2 -2
- package/esm2020/lib/button/module.mjs +6 -6
- package/esm2020/lib/card/card.component.mjs +17 -17
- package/esm2020/lib/card/index.mjs +2 -2
- package/esm2020/lib/card/module.mjs +6 -6
- package/esm2020/lib/checkbox/checkbox-group.component.mjs +5 -5
- package/esm2020/lib/checkbox/checkbox.component.mjs +10 -10
- package/esm2020/lib/checkbox/index.mjs +2 -2
- package/esm2020/lib/checkbox/module.mjs +6 -6
- package/esm2020/lib/common-components/error-text/errorText.component.mjs +5 -5
- package/esm2020/lib/common-components/guiding-text/guidingText.component.mjs +5 -5
- package/esm2020/lib/common-components/index.mjs +2 -2
- package/esm2020/lib/common-components/label-text/labelText.component.mjs +6 -6
- package/esm2020/lib/common-components/module.mjs +10 -7
- package/esm2020/lib/common-components/title-text/titleText.component.mjs +5 -5
- package/esm2020/lib/core/colors.mjs +10 -10
- package/esm2020/lib/dropdown-menu/dropdown-menu.component.mjs +50 -27
- package/esm2020/lib/dropdown-menu/index.mjs +2 -2
- package/esm2020/lib/dropdown-menu/module.mjs +6 -6
- package/esm2020/lib/file/file-input.component.mjs +319 -0
- package/esm2020/lib/file/file-intl.mjs +65 -0
- package/esm2020/lib/file/file-preview.component.mjs +86 -0
- package/esm2020/lib/file/index.mjs +10 -0
- package/esm2020/lib/file/module.mjs +56 -0
- package/esm2020/lib/header-info/header-info.component.mjs +20 -20
- package/esm2020/lib/header-info/index.mjs +2 -2
- package/esm2020/lib/header-info/module.mjs +6 -6
- package/esm2020/lib/hyperlink/hyperlink.component.mjs +5 -5
- package/esm2020/lib/hyperlink/index.mjs +2 -2
- package/esm2020/lib/hyperlink/module.mjs +6 -6
- package/esm2020/lib/icon/bao-icon-registry.mjs +5 -5
- package/esm2020/lib/icon/icon.component.mjs +5 -5
- package/esm2020/lib/icon/icons-dictionary.mjs +3 -2
- package/esm2020/lib/icon/index.mjs +2 -2
- package/esm2020/lib/icon/module.mjs +6 -6
- package/esm2020/lib/list/index.mjs +2 -2
- package/esm2020/lib/list/list.component.mjs +17 -17
- package/esm2020/lib/list/module.mjs +6 -6
- package/esm2020/lib/modal/index.mjs +2 -2
- package/esm2020/lib/modal/modal-config.mjs +2 -2
- package/esm2020/lib/modal/modal-container.mjs +23 -37
- package/esm2020/lib/modal/modal-directives.mjs +5 -5
- package/esm2020/lib/modal/modal-ref.mjs +7 -4
- package/esm2020/lib/modal/modal.mjs +16 -37
- package/esm2020/lib/modal/module.mjs +7 -22
- package/esm2020/lib/radio/index.mjs +2 -2
- package/esm2020/lib/radio/module.mjs +6 -6
- package/esm2020/lib/radio/radio-group.component.mjs +5 -5
- package/esm2020/lib/radio/radio.component.mjs +7 -7
- package/esm2020/lib/shared/enum/display-mode.mjs +1 -1
- package/esm2020/lib/shared/index.mjs +2 -2
- package/esm2020/lib/summary/index.mjs +2 -2
- package/esm2020/lib/summary/list-summary.component.mjs +8 -8
- package/esm2020/lib/summary/module.mjs +6 -6
- package/esm2020/lib/summary/summary.component.mjs +9 -9
- package/esm2020/lib/tabs/index.mjs +2 -2
- package/esm2020/lib/tabs/module.mjs +6 -6
- package/esm2020/lib/tabs/tabs.component.mjs +14 -14
- package/esm2020/lib/tag/index.mjs +2 -2
- package/esm2020/lib/tag/module.mjs +6 -6
- package/esm2020/lib/tag/tag.component.mjs +5 -5
- package/esm2020/public-api.mjs +3 -2
- package/fesm2015/villedemontreal-angular-ui.mjs +917 -458
- package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -1
- package/fesm2020/villedemontreal-angular-ui.mjs +917 -456
- package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -1
- package/lib/alert/alert.component.d.ts +5 -5
- package/lib/avatar/avatar.component.d.ts +2 -2
- package/lib/badge/badge.component.d.ts +1 -1
- package/lib/bao.module.d.ts +12 -11
- package/lib/breadcrumb/breadcrumb.component.d.ts +1 -1
- package/lib/button/button.component.d.ts +1 -1
- package/lib/card/card.component.d.ts +5 -5
- package/lib/checkbox/checkbox-group.component.d.ts +1 -1
- package/lib/checkbox/checkbox.component.d.ts +2 -2
- package/lib/common-components/error-text/errorText.component.d.ts +1 -1
- package/lib/common-components/guiding-text/guidingText.component.d.ts +1 -1
- package/lib/common-components/label-text/labelText.component.d.ts +1 -1
- package/lib/common-components/title-text/titleText.component.d.ts +1 -1
- package/lib/dropdown-menu/dropdown-menu.component.d.ts +16 -10
- package/lib/file/file-input.component.d.ts +123 -0
- package/lib/file/file-intl.d.ts +44 -0
- package/lib/file/file-preview.component.d.ts +29 -0
- package/lib/file/index.d.ts +4 -0
- package/lib/file/module.d.ts +13 -0
- package/lib/header-info/header-info.component.d.ts +6 -6
- package/lib/hyperlink/hyperlink.component.d.ts +1 -1
- package/lib/icon/icon.component.d.ts +1 -1
- package/lib/list/list.component.d.ts +5 -5
- package/lib/modal/modal-config.d.ts +2 -2
- package/lib/modal/modal-container.d.ts +6 -7
- package/lib/modal/modal-directives.d.ts +1 -1
- package/lib/modal/modal-ref.d.ts +1 -0
- package/lib/modal/modal.d.ts +4 -5
- package/lib/modal/module.d.ts +1 -2
- package/lib/radio/radio-group.component.d.ts +1 -1
- package/lib/radio/radio.component.d.ts +2 -2
- package/lib/summary/list-summary.component.d.ts +2 -2
- package/lib/summary/summary.component.d.ts +2 -2
- package/lib/tabs/tabs.component.d.ts +4 -4
- package/lib/tag/tag.component.d.ts +1 -1
- package/package.json +5 -5
- package/public-api.d.ts +1 -0
- package/esm2020/lib/modal/modal-animations.mjs +0 -29
- package/lib/modal/modal-animations.d.ts +0 -8
|
@@ -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 } 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';
|
|
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';
|
|
@@ -13,31 +13,29 @@ 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
15
|
import { BasePortalOutlet, CdkPortalOutlet, ComponentPortal, TemplatePortal, PortalModule, DomPortal } from '@angular/cdk/portal';
|
|
16
|
-
import { Subject, filter, take, defer, startWith
|
|
16
|
+
import { Subject, filter, take, defer, startWith } from 'rxjs';
|
|
17
17
|
import { _getFocusedElementPierceShadowDom } from '@angular/cdk/platform';
|
|
18
|
-
import { trigger, state, style, transition, group, animate, query, animateChild } from '@angular/animations';
|
|
19
18
|
import { ESCAPE, hasModifierKey } from '@angular/cdk/keycodes';
|
|
20
|
-
import { ANIMATION_MODULE_TYPE, BrowserAnimationsModule, NoopAnimationsModule } from '@angular/platform-browser/animations';
|
|
21
19
|
|
|
22
20
|
function baoColorToHex(baoColor) {
|
|
23
21
|
switch (baoColor) {
|
|
24
|
-
case "action" /* ACTION */:
|
|
22
|
+
case "action" /* BaoColors.ACTION */:
|
|
25
23
|
return '#097D6C';
|
|
26
|
-
case "primary" /* PRIMARY */:
|
|
24
|
+
case "primary" /* BaoColors.PRIMARY */:
|
|
27
25
|
return '#000000';
|
|
28
|
-
case "primary-reversed" /* PRIMARY_REVERSED */:
|
|
26
|
+
case "primary-reversed" /* BaoColors.PRIMARY_REVERSED */:
|
|
29
27
|
return '#FFFFFF';
|
|
30
|
-
case "secondary" /* SECONDARY */:
|
|
28
|
+
case "secondary" /* BaoColors.SECONDARY */:
|
|
31
29
|
return '#637381';
|
|
32
|
-
case "tertiary" /* TERTIARY */:
|
|
30
|
+
case "tertiary" /* BaoColors.TERTIARY */:
|
|
33
31
|
return '#ADB5BD';
|
|
34
|
-
case "informative" /* INFORMATIVE */:
|
|
32
|
+
case "informative" /* BaoColors.INFORMATIVE */:
|
|
35
33
|
return '#0079C4';
|
|
36
|
-
case "negative" /* NEGATIVE */:
|
|
34
|
+
case "negative" /* BaoColors.NEGATIVE */:
|
|
37
35
|
return '#D3310A';
|
|
38
|
-
case "positive" /* POSITIVE */:
|
|
36
|
+
case "positive" /* BaoColors.POSITIVE */:
|
|
39
37
|
return '#0DA566';
|
|
40
|
-
case "warning" /* WARNING */:
|
|
38
|
+
case "warning" /* BaoColors.WARNING */:
|
|
41
39
|
return '#FFB833';
|
|
42
40
|
default:
|
|
43
41
|
return '#097D6C';
|
|
@@ -45,7 +43,7 @@ function baoColorToHex(baoColor) {
|
|
|
45
43
|
}
|
|
46
44
|
|
|
47
45
|
/*
|
|
48
|
-
* Copyright (c)
|
|
46
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
49
47
|
* Licensed under the MIT license.
|
|
50
48
|
* See LICENSE file in the project root for full license information.
|
|
51
49
|
*/
|
|
@@ -62,6 +60,7 @@ const ICONS_DCT = {
|
|
|
62
60
|
'icon-book': "<path fill-rule='evenodd' d='M11 7.5l-.4-.3A11 11 0 005 5.046v10.993a13 13 0 016 2.007V7.5zm2 0v10.546a13 13 0 016-2.007V5.046A11 11 0 0013.4 7.2l-.4.3zM3 7V4a1 1 0 011-1 13 13 0 017.8 2.6l.2.15.2-.15A13 13 0 0120 3a1 1 0 011 1v3h2a1 1 0 011 1v2a1 1 0 01-2 0V9h-1v8a1 1 0 01-1 1 11 11 0 00-4.583 1H22v-5a1 1 0 012 0v6a1 1 0 01-1 1H1a1 1 0 01-1-1V8a1 1 0 011-1h2zm0 2H2v10h6.583A11 11 0 004 18a1 1 0 01-1-1V9z'/>",
|
|
63
61
|
'icon-briefcase': "<path fill-rule='evenodd' clip-rule='evenodd' d='M14 2h-4a3 3 0 00-3 3v1H4a3 3 0 00-3 3v2.977a1 1 0 000 .046V19a3 3 0 003 3h16a3 3 0 003-3v-3a1 1 0 10-2 0v3a1 1 0 01-1 1H4a1 1 0 01-1-1v-5.523l8.629 3.451a1 1 0 00.742 0l9.979-3.99a1.002 1.002 0 00.65-.961V9a3 3 0 00-3-3h-3V5a3 3 0 00-3-3zm7 9.323V9a1 1 0 00-1-1H4a1 1 0 00-1 1v2.323l9 3.6 9-3.6zM15 6H9V5a1 1 0 011-1h4a1 1 0 011 1v1z'/>",
|
|
64
62
|
'icon-calendar': "<path fill-rule='evenodd' d='M20 10H4v9a1 1 0 001 1h14a1 1 0 001-1v-2a1 1 0 012 0v2a3 3 0 01-3 3H5a3 3 0 01-3-3V5a3 3 0 013-3h2V1a1 1 0 112 0v1h6V1a1 1 0 012 0v1h2a3 3 0 013 3v8a1 1 0 01-2 0v-3zm0-2V5a1 1 0 00-1-1h-2v1a1 1 0 01-2 0V4H9v1a1 1 0 11-2 0V4H5a1 1 0 00-1 1v3h16z'/>",
|
|
63
|
+
'icon-cell-phone': "<path fill-rule='evenodd' clip-rule='evenodd' d='M4 4C4 2.34315 5.34315 1 7 1H17C18.6569 1 20 2.34315 20 4V20C20 21.6569 18.6569 23 17 23H7C5.34315 23 4 21.6569 4 20V4ZM6 4C6 3.44772 6.44772 3 7 3H17C17.5523 3 18 3.44772 18 4V20C18 20.5523 17.5523 21 17 21H7C6.44771 21 6 20.5523 6 20V4ZM12 19C12.5523 19 13 18.5523 13 18C13 17.4477 12.5523 17 12 17C11.4477 17 11 17.4477 11 18C11 18.5523 11.4477 19 12 19Z' />",
|
|
65
64
|
'icon-check-circle-full': "<path fill-rule='evenodd' d='M12 23C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11zm3.293-13.707L11 13.586l-1.293-1.293a1 1 0 10-1.414 1.414l2 2a1 1 0 001.414 0l5-5a1 1 0 10-1.414-1.414z'/>",
|
|
66
65
|
'icon-check-circle': "<path fill-rule='evenodd' d='M21.542 17.477a1 1 0 01-1.734-.997A8.953 8.953 0 0021 12a9 9 0 10-9 9 8.953 8.953 0 004.484-1.195 1 1 0 01.998 1.733A10.953 10.953 0 0112 23C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11c0 1.948-.508 3.824-1.458 5.477zm-6.25-8.184a1 1 0 011.415 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L11 13.586l4.293-4.293z'/>",
|
|
67
66
|
'icon-check': "<path fill-rule='evenodd' d='M19.293 6.293a1 1 0 011.414 1.414l-7.947 7.948a1 1 0 01-1.415-1.415l7.948-7.947zm-9.586 11a1 1 0 11-1.414 1.414l-5-5a1 1 0 011.414-1.414l5 5z'/>",
|
|
@@ -169,7 +168,7 @@ const ICONS_DCT = {
|
|
|
169
168
|
};
|
|
170
169
|
|
|
171
170
|
/*
|
|
172
|
-
* Copyright (c)
|
|
171
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
173
172
|
* Licensed under the MIT license.
|
|
174
173
|
* See LICENSE file in the project root for full license information.
|
|
175
174
|
*/
|
|
@@ -197,9 +196,9 @@ class BaoIconDictionary {
|
|
|
197
196
|
return svg;
|
|
198
197
|
}
|
|
199
198
|
}
|
|
200
|
-
BaoIconDictionary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
201
|
-
BaoIconDictionary.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
202
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
199
|
+
BaoIconDictionary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconDictionary, deps: [{ token: DOCUMENT }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
200
|
+
BaoIconDictionary.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconDictionary, providedIn: 'root' });
|
|
201
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconDictionary, decorators: [{
|
|
203
202
|
type: Injectable,
|
|
204
203
|
args: [{ providedIn: 'root' }]
|
|
205
204
|
}], ctorParameters: function () { return [{ type: undefined, decorators: [{
|
|
@@ -208,7 +207,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
208
207
|
}] }, { type: i1.DomSanitizer }]; } });
|
|
209
208
|
|
|
210
209
|
/*
|
|
211
|
-
* Copyright (c)
|
|
210
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
212
211
|
* Licensed under the MIT license.
|
|
213
212
|
* See LICENSE file in the project root for full license information.
|
|
214
213
|
*/
|
|
@@ -333,9 +332,9 @@ class BaoIconComponent {
|
|
|
333
332
|
: '';
|
|
334
333
|
}
|
|
335
334
|
}
|
|
336
|
-
BaoIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
337
|
-
BaoIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
335
|
+
BaoIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconComponent, deps: [{ token: i0.ElementRef }, { token: BaoIconDictionary }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
336
|
+
BaoIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoIconComponent, selector: "bao-icon", inputs: { color: "color", size: "size", svgIcon: "svgIcon", title: "title" }, host: { attributes: { "role": "img" }, properties: { "class.bao-icon": "true", "class.notranslate": "true", "class.bao-icon-medium": "size === \"medium\"", "class.bao-icon-small": "size === \"small\"", "class.bao-icon-x-small": "size === \"x-small\"", "class.bao-icon-xx-small": "size === \"xx-small\"", "attr.data-bao-icon-type": "\"svg\"", "style.color": "hexColor" } }, exportAs: ["baoIcon"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["bao-icon{background-repeat:no-repeat;display:inline-block;fill:currentColor;line-height:normal}bao-icon svg{height:100%;width:100%}bao-icon.bao-icon-medium{height:2.5rem;width:2.5rem}bao-icon.bao-icon-small{height:2rem;width:2rem;line-height:1.75rem}bao-icon.bao-icon-x-small{height:1.5rem;width:1.5rem;line-height:.5rem}bao-icon.bao-icon-xx-small{height:1rem;width:1rem;line-height:.85rem}bao-icon.bao-icon-spinner{animation:spin .75s linear infinite}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
337
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconComponent, decorators: [{
|
|
339
338
|
type: Component,
|
|
340
339
|
args: [{ template: '<ng-content></ng-content>', selector: 'bao-icon', exportAs: 'baoIcon', host: {
|
|
341
340
|
role: 'img',
|
|
@@ -360,17 +359,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
360
359
|
}] } });
|
|
361
360
|
|
|
362
361
|
/*
|
|
363
|
-
* Copyright (c)
|
|
362
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
364
363
|
* Licensed under the MIT license.
|
|
365
364
|
* See LICENSE file in the project root for full license information.
|
|
366
365
|
*/
|
|
367
366
|
const ICON_DIRECTIVES = [BaoIconComponent];
|
|
368
367
|
class BaoIconModule {
|
|
369
368
|
}
|
|
370
|
-
BaoIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
371
|
-
BaoIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
372
|
-
BaoIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
373
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
369
|
+
BaoIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
370
|
+
BaoIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoIconModule, declarations: [BaoIconComponent], imports: [CommonModule], exports: [BaoIconComponent] });
|
|
371
|
+
BaoIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconModule, imports: [CommonModule] });
|
|
372
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoIconModule, decorators: [{
|
|
374
373
|
type: NgModule,
|
|
375
374
|
args: [{
|
|
376
375
|
imports: [CommonModule],
|
|
@@ -380,7 +379,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
380
379
|
}] });
|
|
381
380
|
|
|
382
381
|
/*
|
|
383
|
-
* Copyright (c)
|
|
382
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
384
383
|
* Licensed under the MIT license.
|
|
385
384
|
* See LICENSE file in the project root for full license information.
|
|
386
385
|
*/
|
|
@@ -440,9 +439,9 @@ class BaoButtonComponent {
|
|
|
440
439
|
this.cdr.detectChanges();
|
|
441
440
|
}
|
|
442
441
|
}
|
|
443
|
-
BaoButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
444
|
-
BaoButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
442
|
+
BaoButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
443
|
+
BaoButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoButtonComponent, selector: "button[bao-button]", inputs: { displayType: "displayType", level: "level", size: "size", loading: "loading", reversed: "reversed", loadingSpinnerAriaLabel: "loadingSpinnerAriaLabel", fullWidth: "fullWidth" }, host: { properties: { "class.bao-button-utility": "displayType === \"utility\"", "class.bao-button-editorial": "displayType === \"editorial\"", "class.bao-button-primary": "level === \"primary\"", "class.bao-button-secondary": "level === \"secondary\"", "class.bao-button-tertiary": "level === \"tertiary\"", "class.bao-button-large": "size === \"large\"", "class.bao-button-medium": "size === \"medium\"", "class.bao-button-small": "size === \"small\"", "class.bao-button-reversed": "reversed === true", "class.bao-button-loading": "loading === true", "class.bao-button-no-text": "noText === true", "class.bao-button-full-width": "fullWidth === true" }, classAttribute: "bao-button" }, ngImport: i0, template: "<bao-icon\n *ngIf=\"loading && !rightIcon\"\n class=\"loading-spinner\"\n svgIcon=\"icon-spinner\"\n [title]=\"loadingSpinnerAriaLabel\"\n></bao-icon>\n<ng-content></ng-content>\n<bao-icon\n *ngIf=\"loading && rightIcon\"\n class=\"loading-spinner loading-spinner-right\"\n svgIcon=\"icon-spinner\"\n [title]=\"loadingSpinnerAriaLabel\"\n></bao-icon>\n", styles: [".bao-button{font-weight:700;font-size:.875rem;line-height:1.25rem;transition:color .15s ease-in-out,background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out;text-align:center;white-space:nowrap;vertical-align:middle;-webkit-user-select:none;user-select:none;cursor:pointer;display:inline-flex;align-items:center}.bao-button.bao-button-full-width{width:100%;display:block}.bao-button span{font-weight:700;font-size:.875rem;line-height:1.25rem}.bao-button:focus{outline:none;box-shadow:0 0 0 .1875rem #98bcde}.bao-button:focus.bao-button-reversed{outline:none;box-shadow:0 0 0 .1875rem #98bcde;box-shadow:0 0 0 .1875rem #ffffff4d}.bao-button:disabled,.bao-button.bao-button-loading{cursor:not-allowed}.bao-button.bao-button-utility{border-radius:.25rem;padding:.5625rem 1rem}.bao-button.bao-button-utility:disabled.bao-button-secondary,.bao-button.bao-button-utility:disabled.bao-button-tertiary{color:#adb2bd}.bao-button.bao-button-primary{background-color:#097d6c;border:solid .0625rem #097d6c;color:#fff}.bao-button.bao-button-primary.bao-button-reversed{background-color:#fff;border:solid .0625rem #ffffff;color:#000}.bao-button.bao-button-primary:hover{background-color:#075b4f}.bao-button.bao-button-primary:hover.bao-button-reversed{background-color:#eefaf8;color:#097d6c}.bao-button.bao-button-primary:focus.bao-button-reversed{background-color:#eefaf8;color:#097d6c}.bao-button.bao-button-primary:disabled,.bao-button.bao-button-primary.bao-button-loading{color:#637381;background-color:#dee2e6;border:solid .0625rem #dee2e6}.bao-button.bao-button-primary:disabled.bao-button-reversed,.bao-button.bao-button-primary.bao-button-loading.bao-button-reversed{background-color:#ffffff4d;border:solid .0625rem gba(#ffffff,.3);color:#ffffff80}.bao-button.bao-button-secondary{background-color:#fff0;color:#097d6c;border:solid .0625rem #ced4da}.bao-button.bao-button-secondary.bao-button-reversed{background-color:#fff0;color:#fff;border:solid .0625rem rgba(206,212,218,.5)}.bao-button.bao-button-secondary:hover{border:solid .0625rem #097d6c;background-color:#eefaf8}.bao-button.bao-button-secondary:hover.bao-button-reversed{background-color:#fff0;color:#fff;border:solid .0625rem #ced4da}.bao-button.bao-button-secondary:focus{border:solid .0625rem #097d6c;background-color:#eefaf8}.bao-button.bao-button-secondary:focus.bao-button-reversed{background-color:#ffffff4d;color:#fff;border:solid .0625rem #ced4da}.bao-button.bao-button-secondary:disabled,.bao-button.bao-button-secondary.bao-button-loading{color:#637381}.bao-button.bao-button-secondary:disabled:hover,.bao-button.bao-button-secondary.bao-button-loading:hover{border-color:#ced4da;background-color:#fff}.bao-button.bao-button-secondary:disabled:hover.bao-button-reversed,.bao-button.bao-button-secondary.bao-button-loading:hover.bao-button-reversed{border:solid .0625rem rgba(206,212,218,.5);background-color:#fff0;color:#637381}.bao-button.bao-button-secondary:disabled:focus,.bao-button.bao-button-secondary.bao-button-loading:focus{border-color:#ced4da;background-color:#fff}.bao-button.bao-button-secondary:disabled:focus.bao-button-reversed,.bao-button.bao-button-secondary.bao-button-loading:focus.bao-button-reversed{background-color:#fff0}.bao-button.bao-button-tertiary{border:solid .0625rem rgba(255,255,255,.0001);background-color:#fff0;color:#097d6c}.bao-button.bao-button-tertiary.bao-button-reversed{color:#fff}.bao-button.bao-button-tertiary:hover{background-color:#eefaf8}.bao-button.bao-button-tertiary:hover.bao-button-reversed{background-color:#ffffff4d;color:#fff}.bao-button.bao-button-tertiary:focus{background-color:#eefaf8}.bao-button.bao-button-tertiary:focus.bao-button-reversed{background-color:#ffffff4d;color:#fff}.bao-button.bao-button-tertiary:disabled,.bao-button.bao-button-tertiary.bao-button-loading{color:#637381}.bao-button.bao-button-tertiary:disabled:hover,.bao-button.bao-button-tertiary.bao-button-loading:hover{background-color:#fff0}.bao-button.bao-button-tertiary:disabled:hover.bao-button-reversed,.bao-button.bao-button-tertiary.bao-button-loading:hover.bao-button-reversed{color:#637381}.bao-button.bao-button-tertiary:disabled:focus,.bao-button.bao-button-tertiary.bao-button-loading:focus{background-color:#fff0}.bao-button.bao-button-tertiary:disabled:focus.bao-button-reversed,.bao-button.bao-button-tertiary.bao-button-loading:focus.bao-button-reversed{color:#637381}.bao-button.bao-button-editorial{border-radius:1.25rem;padding:.625rem 2rem}.bao-button.bao-button-editorial.bao-button-small{padding:.4375rem 1rem}.bao-button.bao-button-editorial.bao-button-large{border-radius:4rem;font-weight:700;font-size:1rem;line-height:1.5rem;padding:.9375rem 2rem}.bao-button.bao-button-editorial.bao-button-medium{padding:.5625rem 2rem}.bao-button.bao-button-editorial:disabled.bao-button-secondary,.bao-button.bao-button-editorial:disabled.bao-button-tertiary{color:#adb2bd}.bao-button.bao-button-small{font-weight:700;font-size:.75rem;line-height:1rem;padding:.4375rem}.bao-button.bao-button-small span{font-weight:700;font-size:.75rem;line-height:1rem}@keyframes spin{0%{transform:rotate(0)}to{transform:rotate(360deg)}}.bao-button .loading-spinner{margin-right:.5rem;margin-left:-.5rem}.bao-button .loading-spinner-right{margin-right:-.5rem;margin-left:.5rem}.bao-button.bao-button-no-text .loading-spinner-right{margin:-.125rem -.5625rem}.bao-button.bao-button-small .loading-spinner{width:1rem;height:1rem;margin-right:.25rem;margin-left:0}.bao-button.bao-button-small .loading-spinner-right{margin-right:0;margin-left:.25rem}.bao-button.bao-button-loading>bao-icon:not(.loading-spinner){display:none}.bao-button>.bao-button-no-text.bao-button-loading>.loading-spinner{margin:-.125rem -.5625rem}.bao-button>bao-icon{margin:-.125rem 0rem}.bao-button>bao-icon:first-child:not(.loading-spinner){margin-right:.5rem;margin-left:-.5rem}.bao-button>bao-icon:last-child:not(.loading-spinner){margin-left:.5rem;margin-right:-.5rem}.bao-button>bao-icon:first-child:last-child:not(.loading-spinner){margin:-.125rem -.5625rem}.bao-button.bao-button-small>bao-icon{height:1rem;width:1rem;margin:-.125rem 0rem}.bao-button.bao-button-small>bao-icon:first-child:not(.loading-spinner){margin-left:0rem;margin-right:.25rem}.bao-button.bao-button-small>bao-icon:last-child:not(.loading-spinner){margin-left:.25rem;margin-right:0rem}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BaoIconComponent, selector: "bao-icon", inputs: ["color", "size", "svgIcon", "title"], exportAs: ["baoIcon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonComponent, decorators: [{
|
|
446
445
|
type: Component,
|
|
447
446
|
args: [{ selector: 'button[bao-button]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
448
447
|
class: 'bao-button',
|
|
@@ -476,17 +475,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
476
475
|
}] } });
|
|
477
476
|
|
|
478
477
|
/*
|
|
479
|
-
* Copyright (c)
|
|
478
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
480
479
|
* Licensed under the MIT license.
|
|
481
480
|
* See LICENSE file in the project root for full license information.
|
|
482
481
|
*/
|
|
483
482
|
const BUTTON_DIRECTIVES = [BaoButtonComponent];
|
|
484
483
|
class BaoButtonModule {
|
|
485
484
|
}
|
|
486
|
-
BaoButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
487
|
-
BaoButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
488
|
-
BaoButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
489
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
485
|
+
BaoButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
486
|
+
BaoButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonModule, declarations: [BaoButtonComponent], imports: [CommonModule, BaoIconModule], exports: [BaoButtonComponent, BaoIconModule] });
|
|
487
|
+
BaoButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonModule, imports: [CommonModule, BaoIconModule, BaoIconModule] });
|
|
488
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoButtonModule, decorators: [{
|
|
490
489
|
type: NgModule,
|
|
491
490
|
args: [{
|
|
492
491
|
imports: [CommonModule, BaoIconModule],
|
|
@@ -496,7 +495,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
496
495
|
}] });
|
|
497
496
|
|
|
498
497
|
/*
|
|
499
|
-
* Copyright (c)
|
|
498
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
500
499
|
* Licensed under the MIT license.
|
|
501
500
|
* See LICENSE file in the project root for full license information.
|
|
502
501
|
*/
|
|
@@ -515,9 +514,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
515
514
|
*/
|
|
516
515
|
class BaoAlertTitle {
|
|
517
516
|
}
|
|
518
|
-
BaoAlertTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
519
|
-
BaoAlertTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
520
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
517
|
+
BaoAlertTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
518
|
+
BaoAlertTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoAlertTitle, selector: "bao-alert-title", host: { classAttribute: "bao-alert-title" }, ngImport: i0 });
|
|
519
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertTitle, decorators: [{
|
|
521
520
|
type: Directive,
|
|
522
521
|
args: [{
|
|
523
522
|
selector: 'bao-alert-title',
|
|
@@ -533,9 +532,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
533
532
|
*/
|
|
534
533
|
class BaoAlertContent {
|
|
535
534
|
}
|
|
536
|
-
BaoAlertContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
537
|
-
BaoAlertContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
535
|
+
BaoAlertContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
536
|
+
BaoAlertContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoAlertContent, selector: "bao-alert-content", host: { classAttribute: "bao-alert-content" }, ngImport: i0 });
|
|
537
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertContent, decorators: [{
|
|
539
538
|
type: Directive,
|
|
540
539
|
args: [{
|
|
541
540
|
selector: 'bao-alert-content',
|
|
@@ -551,9 +550,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
551
550
|
*/
|
|
552
551
|
class BaoAlertActions {
|
|
553
552
|
}
|
|
554
|
-
BaoAlertActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
555
|
-
BaoAlertActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
556
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
553
|
+
BaoAlertActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
554
|
+
BaoAlertActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoAlertActions, selector: "bao-alert-actions", host: { classAttribute: "bao-alert-actions" }, exportAs: ["baoAlertActions"], ngImport: i0 });
|
|
555
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertActions, decorators: [{
|
|
557
556
|
type: Directive,
|
|
558
557
|
args: [{
|
|
559
558
|
selector: 'bao-alert-actions',
|
|
@@ -572,9 +571,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
572
571
|
*/
|
|
573
572
|
class BaoAlertLink {
|
|
574
573
|
}
|
|
575
|
-
BaoAlertLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
576
|
-
BaoAlertLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
577
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
574
|
+
BaoAlertLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
575
|
+
BaoAlertLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoAlertLink, selector: "bao-alert-link", host: { classAttribute: "bao-alert-link" }, ngImport: i0 });
|
|
576
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertLink, decorators: [{
|
|
578
577
|
type: Directive,
|
|
579
578
|
args: [{
|
|
580
579
|
// eslint-disable-next-line @angular-eslint/directive-selector
|
|
@@ -631,9 +630,9 @@ class BaoAlertComponent {
|
|
|
631
630
|
this.dismiss.emit();
|
|
632
631
|
}
|
|
633
632
|
}
|
|
634
|
-
BaoAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
635
|
-
BaoAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
636
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
633
|
+
BaoAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
634
|
+
BaoAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoAlertComponent, selector: "bao-alert", inputs: { type: "type", dismissible: "dismissible" }, outputs: { dismiss: "dismiss" }, host: { attributes: { "role": "alert" }, properties: { "class.bao-alert-success": "type === \"success\"", "class.bao-alert-danger": "type === \"danger\"", "class.bao-alert-warning": "type === \"warning\"", "class.bao-alert-info": "type === \"info\"", "class.bao-alert-emergency": "type === \"emergency\"" }, classAttribute: "bao-alert bao-alert-with-icon bao-alert-dismissible fade show" }, usesOnChanges: true, ngImport: i0, template: "<bao-icon [svgIcon]=\"iconType\" [title]=\"iconTitle\"></bao-icon>\n<div class=\"bao-alert-content-container\">\n <ng-content></ng-content>\n</div>\n<button\n bao-button\n *ngIf=\"dismissible\"\n type=\"utility\"\n level=\"tertiary\"\n data-dismiss=\"alert\"\n role=\"button\"\n aria-label=\"Cacher le message\"\n (click)=\"onDismissClicked()\"\n>\n <bao-icon svgIcon=\"icon-x\"></bao-icon>\n</button>\n", styles: [".bao-alert{font-weight:400;font-size:1rem;line-height:1.5rem;display:flex;padding:1rem;margin-bottom:1rem;border-radius:0rem}.bao-alert .bao-alert-content-container{margin:0 .5rem 0 1rem;display:flex;flex-direction:column}.bao-alert .bao-alert-title{font-weight:700;padding-bottom:.5rem}.bao-alert a{font-weight:700}.bao-alert.bao-alert-dismissible .bao-button[data-dismiss=alert]{background-color:#fff0;border-radius:0rem;height:2.5rem;width:2.5rem;margin-left:auto;margin-right:-.5rem;margin-top:-.5rem}.bao-alert.bao-alert-dismissible .bao-button[data-dismiss=alert]:hover,.bao-alert.bao-alert-dismissible .bao-button[data-dismiss=alert]:focus{opacity:.75}.bao-alert .bao-alert-actions .bao-button{margin:1rem 1rem 0 0}.bao-alert-info{background-color:#e6f5f9;border-left:.125rem solid #0079c4;border-top:none;border-right:none;border-bottom:none;color:#004b7b}.bao-alert-info .bao-alert-title,.bao-alert-info a{color:#004b7b}.bao-alert-info a:hover,.bao-alert-info a:focus{background-color:#f2fafc}.bao-alert-info .bao-icon svg{fill:#004b7b}.bao-alert-info .bao-button.bao-button-primary{background-color:#004b7b;border-color:#004b7b}.bao-alert-info .bao-button.bao-button-primary:hover,.bao-alert-info .bao-button.bao-button-primary:focus{background-color:#002c48;border-color:#002c48}.bao-alert-info .bao-button.bao-button-primary:focus{box-shadow:0 0 0 .1875rem #004b7b4d}.bao-alert-info .bao-button.bao-button-secondary{background-color:#e6f5f9;color:#004b7b}.bao-alert-info .bao-button.bao-button-secondary:hover,.bao-alert-info .bao-button.bao-button-secondary:focus{background-color:#e6f5f9;border-color:#004b7b}.bao-alert-info .bao-button.bao-button-secondary:focus{box-shadow:0 0 0 .1875rem #004b7b4d}.bao-alert-info .bao-button.bao-button-tertiary{background-color:#e6f5f9;color:#004b7b}.bao-alert-info .bao-button.bao-button-tertiary:hover,.bao-alert-info .bao-button.bao-button-tertiary:focus{background-color:#e6f5f9}.bao-alert-info .bao-button.bao-button-tertiary:focus{box-shadow:0 0 0 .1875rem #004b7b4d}.bao-alert-success{background-color:#e7f6f0;border-left:.125rem solid #0da566;border-top:none;border-right:none;border-bottom:none;color:#025d29}.bao-alert-success .bao-alert-title,.bao-alert-success a{color:#025d29}.bao-alert-success a:hover,.bao-alert-success a:focus{background-color:#f2faf7}.bao-alert-success .bao-icon svg{fill:#025d29}.bao-alert-success .bao-button.bao-button-primary{background-color:#025d29;border-color:#025d29}.bao-alert-success .bao-button.bao-button-primary:hover,.bao-alert-success .bao-button.bao-button-primary:focus{background-color:#012b13;border-color:#012b13}.bao-alert-success .bao-button.bao-button-primary:focus{box-shadow:0 0 0 .1875rem #025d294d}.bao-alert-success .bao-button.bao-button-secondary{background-color:#e7f6f0;color:#025d29}.bao-alert-success .bao-button.bao-button-secondary:hover,.bao-alert-success .bao-button.bao-button-secondary:focus{background-color:#e7f6f0;border-color:#025d29}.bao-alert-success .bao-button.bao-button-secondary:focus{box-shadow:0 0 0 .1875rem #025d294d}.bao-alert-success .bao-button.bao-button-tertiary{background-color:#e7f6f0;color:#025d29}.bao-alert-success .bao-button.bao-button-tertiary:hover,.bao-alert-success .bao-button.bao-button-tertiary:focus{background-color:#e7f6f0}.bao-alert-success .bao-button.bao-button-tertiary:focus{box-shadow:0 0 0 .1875rem #025d294d}.bao-alert-warning{background-color:#fefae6;border-left:.125rem solid #ffb833;border-top:none;border-right:none;border-bottom:none;color:#6c4600}.bao-alert-warning .bao-alert-title,.bao-alert-warning a{color:#6c4600}.bao-alert-warning a:hover,.bao-alert-warning a:focus{background-color:#fffdf5}.bao-alert-warning .bao-icon svg{fill:#6c4600}.bao-alert-warning .bao-button.bao-button-primary{background-color:#6c4600;border-color:#6c4600}.bao-alert-warning .bao-button.bao-button-primary:hover,.bao-alert-warning .bao-button.bao-button-primary:focus{background-color:#392500;border-color:#392500}.bao-alert-warning .bao-button.bao-button-primary:focus{box-shadow:0 0 0 .1875rem #6c46004d}.bao-alert-warning .bao-button.bao-button-secondary{background-color:#fefae6;color:#6c4600}.bao-alert-warning .bao-button.bao-button-secondary:hover,.bao-alert-warning .bao-button.bao-button-secondary:focus{background-color:#fefae6;border-color:#6c4600}.bao-alert-warning .bao-button.bao-button-secondary:focus{box-shadow:0 0 0 .1875rem #6c46004d}.bao-alert-warning .bao-button.bao-button-tertiary{background-color:#fefae6;color:#6c4600}.bao-alert-warning .bao-button.bao-button-tertiary:hover,.bao-alert-warning .bao-button.bao-button-tertiary:focus{background-color:#fefae6}.bao-alert-warning .bao-button.bao-button-tertiary:focus{box-shadow:0 0 0 .1875rem #6c46004d}.bao-alert-danger{background-color:#ffebe6;border-left:.125rem solid #d3310a;border-top:none;border-right:none;border-bottom:none;color:#851a00}.bao-alert-danger .bao-alert-title,.bao-alert-danger a{color:#851a00}.bao-alert-danger a:hover,.bao-alert-danger a:focus{background-color:#fff7f5}.bao-alert-danger .bao-icon svg{fill:#851a00}.bao-alert-danger .bao-button.bao-button-primary{background-color:#851a00;border-color:#851a00}.bao-alert-danger .bao-button.bao-button-primary:hover,.bao-alert-danger .bao-button.bao-button-primary:focus{background-color:#521000;border-color:#521000}.bao-alert-danger .bao-button.bao-button-primary:focus{box-shadow:0 0 0 .1875rem #851a004d}.bao-alert-danger .bao-button.bao-button-secondary{background-color:#ffebe6;color:#851a00}.bao-alert-danger .bao-button.bao-button-secondary:hover,.bao-alert-danger .bao-button.bao-button-secondary:focus{background-color:#ffebe6;border-color:#851a00}.bao-alert-danger .bao-button.bao-button-secondary:focus{box-shadow:0 0 0 .1875rem #851a004d}.bao-alert-danger .bao-button.bao-button-tertiary{background-color:#ffebe6;color:#851a00}.bao-alert-danger .bao-button.bao-button-tertiary:hover,.bao-alert-danger .bao-button.bao-button-tertiary:focus{background-color:#ffebe6}.bao-alert-danger .bao-button.bao-button-tertiary:focus{box-shadow:0 0 0 .1875rem #851a004d}.bao-alert-emergency{background-color:#ffebe6;border-left:.125rem solid #d3310a;border-top:none;border-right:none;border-bottom:none;color:#851a00}.bao-alert-emergency .bao-alert-title,.bao-alert-emergency a{color:#851a00}.bao-alert-emergency a:hover,.bao-alert-emergency a:focus{background-color:#fff7f5}.bao-alert-emergency .bao-icon svg{fill:#851a00}.bao-alert-emergency .bao-button.bao-button-primary{background-color:#851a00;border-color:#851a00}.bao-alert-emergency .bao-button.bao-button-primary:hover,.bao-alert-emergency .bao-button.bao-button-primary:focus{background-color:#521000;border-color:#521000}.bao-alert-emergency .bao-button.bao-button-primary:focus{box-shadow:0 0 0 .1875rem #851a004d}.bao-alert-emergency .bao-button.bao-button-secondary{background-color:#ffebe6;color:#851a00}.bao-alert-emergency .bao-button.bao-button-secondary:hover,.bao-alert-emergency .bao-button.bao-button-secondary:focus{background-color:#ffebe6;border-color:#851a00}.bao-alert-emergency .bao-button.bao-button-secondary:focus{box-shadow:0 0 0 .1875rem #851a004d}.bao-alert-emergency .bao-button.bao-button-tertiary{background-color:#ffebe6;color:#851a00}.bao-alert-emergency .bao-button.bao-button-tertiary:hover,.bao-alert-emergency .bao-button.bao-button-tertiary:focus{background-color:#ffebe6}.bao-alert-emergency .bao-button.bao-button-tertiary:focus{box-shadow:0 0 0 .1875rem #851a004d}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BaoIconComponent, selector: "bao-icon", inputs: ["color", "size", "svgIcon", "title"], exportAs: ["baoIcon"] }, { kind: "component", type: BaoButtonComponent, selector: "button[bao-button]", inputs: ["displayType", "level", "size", "loading", "reversed", "loadingSpinnerAriaLabel", "fullWidth"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
635
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertComponent, decorators: [{
|
|
637
636
|
type: Component,
|
|
638
637
|
args: [{ selector: 'bao-alert', encapsulation: ViewEncapsulation.None, host: {
|
|
639
638
|
class: 'bao-alert bao-alert-with-icon bao-alert-dismissible fade show',
|
|
@@ -653,7 +652,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
653
652
|
}] } });
|
|
654
653
|
|
|
655
654
|
/*
|
|
656
|
-
* Copyright (c)
|
|
655
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
657
656
|
* Licensed under the MIT license.
|
|
658
657
|
* See LICENSE file in the project root for full license information.
|
|
659
658
|
*/
|
|
@@ -666,8 +665,8 @@ const ALERT_DIRECTIVES = [
|
|
|
666
665
|
];
|
|
667
666
|
class BaoAlertModule {
|
|
668
667
|
}
|
|
669
|
-
BaoAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
670
|
-
BaoAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
668
|
+
BaoAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
669
|
+
BaoAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertModule, declarations: [BaoAlertTitle,
|
|
671
670
|
BaoAlertContent,
|
|
672
671
|
BaoAlertActions,
|
|
673
672
|
BaoAlertLink,
|
|
@@ -676,8 +675,8 @@ BaoAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
676
675
|
BaoAlertActions,
|
|
677
676
|
BaoAlertLink,
|
|
678
677
|
BaoAlertComponent, BaoIconModule, BaoButtonModule] });
|
|
679
|
-
BaoAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
680
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
678
|
+
BaoAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertModule, imports: [CommonModule, BaoIconModule, BaoButtonModule, BaoIconModule, BaoButtonModule] });
|
|
679
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAlertModule, decorators: [{
|
|
681
680
|
type: NgModule,
|
|
682
681
|
args: [{
|
|
683
682
|
imports: [CommonModule, BaoIconModule, BaoButtonModule],
|
|
@@ -688,13 +687,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
688
687
|
}] });
|
|
689
688
|
|
|
690
689
|
/*
|
|
691
|
-
* Copyright (c)
|
|
690
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
692
691
|
* Licensed under the MIT license.
|
|
693
692
|
* See LICENSE file in the project root for full license information.
|
|
694
693
|
*/
|
|
695
694
|
|
|
696
695
|
/*
|
|
697
|
-
* Copyright (c)
|
|
696
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
698
697
|
* Licensed under the MIT license.
|
|
699
698
|
* See LICENSE file in the project root for full license information.
|
|
700
699
|
*/
|
|
@@ -714,9 +713,9 @@ class BaoBreadcrumbComponent {
|
|
|
714
713
|
this.renderer.setAttribute(children[children.length - 1], Object.keys(LAST_NODE_ATTRIBUTE)[0], Object.values(LAST_NODE_ATTRIBUTE)[0]);
|
|
715
714
|
}
|
|
716
715
|
}
|
|
717
|
-
BaoBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
718
|
-
BaoBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
719
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
716
|
+
BaoBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
717
|
+
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 });
|
|
718
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbComponent, decorators: [{
|
|
720
719
|
type: Component,
|
|
721
720
|
args: [{ selector: 'bao-breadcrumb', encapsulation: ViewEncapsulation.None, host: {
|
|
722
721
|
class: 'bao-breadcrumb'
|
|
@@ -727,17 +726,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
727
726
|
}] } });
|
|
728
727
|
|
|
729
728
|
/*
|
|
730
|
-
* Copyright (c)
|
|
729
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
731
730
|
* Licensed under the MIT license.
|
|
732
731
|
* See LICENSE file in the project root for full license information.
|
|
733
732
|
*/
|
|
734
733
|
const BREADCRUMB_DIRECTIVES = [BaoBreadcrumbComponent];
|
|
735
734
|
class BaoBreadcrumbModule {
|
|
736
735
|
}
|
|
737
|
-
BaoBreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
738
|
-
BaoBreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
739
|
-
BaoBreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
740
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
736
|
+
BaoBreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
737
|
+
BaoBreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbModule, declarations: [BaoBreadcrumbComponent], imports: [CommonModule, ObserversModule], exports: [BaoBreadcrumbComponent] });
|
|
738
|
+
BaoBreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbModule, imports: [CommonModule, ObserversModule] });
|
|
739
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBreadcrumbModule, decorators: [{
|
|
741
740
|
type: NgModule,
|
|
742
741
|
args: [{
|
|
743
742
|
imports: [CommonModule, ObserversModule],
|
|
@@ -747,19 +746,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
747
746
|
}] });
|
|
748
747
|
|
|
749
748
|
/*
|
|
750
|
-
* Copyright (c)
|
|
749
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
751
750
|
* Licensed under the MIT license.
|
|
752
751
|
* See LICENSE file in the project root for full license information.
|
|
753
752
|
*/
|
|
754
753
|
|
|
755
754
|
/*
|
|
756
|
-
* Copyright (c)
|
|
755
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
757
756
|
* Licensed under the MIT license.
|
|
758
757
|
* See LICENSE file in the project root for full license information.
|
|
759
758
|
*/
|
|
760
759
|
|
|
761
760
|
/*
|
|
762
|
-
* Copyright (c)
|
|
761
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
763
762
|
* Licensed under the MIT license.
|
|
764
763
|
* See LICENSE file in the project root for full license information.
|
|
765
764
|
*/
|
|
@@ -778,9 +777,9 @@ class BaoCardComponent {
|
|
|
778
777
|
this.padding = 'normal';
|
|
779
778
|
}
|
|
780
779
|
}
|
|
781
|
-
BaoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
782
|
-
BaoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
783
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
780
|
+
BaoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
781
|
+
BaoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoCardComponent, selector: "bao-card, [bao-card], [baoCard]", inputs: { padding: "padding" }, host: { properties: { "class.bao-card-large-padding": "padding === \"large\"" }, classAttribute: "bao-card" }, ngImport: i0, template: "<ng-content select=\"bao-card-header\"></ng-content>\n<ng-content select=\"bao-card-content\"></ng-content>\n", styles: ["ul.cards{padding-left:0}ul.cards>li{display:flex}.bao-card{background-color:#fff;border:.063rem solid #ced4da;border-radius:.25rem;display:block;font-weight:400;margin-bottom:2rem;padding:1rem;text-decoration:none;width:100%}.bao-card:hover,.bao-card:focus{text-decoration:none;background-color:#fff;border:1px solid transparent;box-shadow:0 .5rem 2rem #0000001a}.bao-card:hover .bao-card-content .bao-card-title,.bao-card:focus .bao-card-content .bao-card-title{color:#097d6c}.bao-card:hover>bao-card-header,.bao-card:focus>bao-card-header{color:#097d6c}.bao-card .bao-card-content{display:flex;flex-flow:column}.bao-card .bao-card-content>:last-child{margin-bottom:0}.bao-card .bao-card-content .bao-card-title{font-weight:700;font-size:1.25rem;line-height:1.75rem;color:#000;margin:0 0 1rem}.bao-card .bao-card-content .bao-card-title:last-child{margin-bottom:0}.bao-card .bao-card-content .bao-card-text-interface{line-height:1.5rem;color:#637381}.bao-card>bao-card-header{color:#adb2bd}.bao-card>bao-card-header+bao-card-content{margin-top:1rem}.bao-card.bao-card-large-padding{padding:2rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
782
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardComponent, decorators: [{
|
|
784
783
|
type: Component,
|
|
785
784
|
args: [{ selector: 'bao-card, [bao-card], [baoCard]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
786
785
|
class: 'bao-card',
|
|
@@ -794,9 +793,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
794
793
|
*/
|
|
795
794
|
class BaoCardHeader {
|
|
796
795
|
}
|
|
797
|
-
BaoCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
798
|
-
BaoCardHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
799
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
796
|
+
BaoCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
797
|
+
BaoCardHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoCardHeader, selector: "bao-card-header, [bao-card-header], [baoCardHeader]", host: { classAttribute: "bao-card-header" }, ngImport: i0 });
|
|
798
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardHeader, decorators: [{
|
|
800
799
|
type: Directive,
|
|
801
800
|
args: [{
|
|
802
801
|
selector: 'bao-card-header, [bao-card-header], [baoCardHeader]',
|
|
@@ -808,9 +807,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
808
807
|
*/
|
|
809
808
|
class BaoCardContent {
|
|
810
809
|
}
|
|
811
|
-
BaoCardContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
812
|
-
BaoCardContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
813
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
810
|
+
BaoCardContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
811
|
+
BaoCardContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoCardContent, selector: "bao-card-content, [bao-card-content], [baoCardContent]", host: { classAttribute: "bao-card-content" }, ngImport: i0 });
|
|
812
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardContent, decorators: [{
|
|
814
813
|
type: Directive,
|
|
815
814
|
args: [{
|
|
816
815
|
selector: 'bao-card-content, [bao-card-content], [baoCardContent]',
|
|
@@ -822,9 +821,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
822
821
|
*/
|
|
823
822
|
class BaoCardTitle {
|
|
824
823
|
}
|
|
825
|
-
BaoCardTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
826
|
-
BaoCardTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
827
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
824
|
+
BaoCardTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
825
|
+
BaoCardTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoCardTitle, selector: "bao-card-title, [bao-card-title], [baoCardTitle]", host: { classAttribute: "bao-card-title" }, ngImport: i0 });
|
|
826
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardTitle, decorators: [{
|
|
828
827
|
type: Directive,
|
|
829
828
|
args: [{
|
|
830
829
|
selector: `bao-card-title, [bao-card-title], [baoCardTitle]`,
|
|
@@ -838,9 +837,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
838
837
|
*/
|
|
839
838
|
class BaoCardTextInterface {
|
|
840
839
|
}
|
|
841
|
-
BaoCardTextInterface.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
842
|
-
BaoCardTextInterface.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
843
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
840
|
+
BaoCardTextInterface.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardTextInterface, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
841
|
+
BaoCardTextInterface.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoCardTextInterface, selector: "bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]", host: { classAttribute: "bao-card-text-interface" }, ngImport: i0 });
|
|
842
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardTextInterface, decorators: [{
|
|
844
843
|
type: Directive,
|
|
845
844
|
args: [{
|
|
846
845
|
selector: `bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]`,
|
|
@@ -851,7 +850,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
851
850
|
}] });
|
|
852
851
|
|
|
853
852
|
/*
|
|
854
|
-
* Copyright (c)
|
|
853
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
855
854
|
* Licensed under the MIT license.
|
|
856
855
|
* See LICENSE file in the project root for full license information.
|
|
857
856
|
*/
|
|
@@ -864,8 +863,8 @@ const CARD_DIRECTIVES = [
|
|
|
864
863
|
];
|
|
865
864
|
class BaoCardModule {
|
|
866
865
|
}
|
|
867
|
-
BaoCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
868
|
-
BaoCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
866
|
+
BaoCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
867
|
+
BaoCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoCardModule, declarations: [BaoCardComponent,
|
|
869
868
|
BaoCardContent,
|
|
870
869
|
BaoCardHeader,
|
|
871
870
|
BaoCardTextInterface,
|
|
@@ -874,8 +873,8 @@ BaoCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
874
873
|
BaoCardHeader,
|
|
875
874
|
BaoCardTextInterface,
|
|
876
875
|
BaoCardTitle] });
|
|
877
|
-
BaoCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
876
|
+
BaoCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardModule, imports: [CommonModule] });
|
|
877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCardModule, decorators: [{
|
|
879
878
|
type: NgModule,
|
|
880
879
|
args: [{
|
|
881
880
|
imports: [CommonModule],
|
|
@@ -885,41 +884,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
885
884
|
}] });
|
|
886
885
|
|
|
887
886
|
/*
|
|
888
|
-
* Copyright (c)
|
|
887
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
889
888
|
* Licensed under the MIT license.
|
|
890
889
|
* See LICENSE file in the project root for full license information.
|
|
891
890
|
*/
|
|
892
891
|
|
|
893
892
|
/*
|
|
894
|
-
* Copyright (c)
|
|
893
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
895
894
|
* Licensed under the MIT license.
|
|
896
895
|
* See LICENSE file in the project root for full license information.
|
|
897
896
|
*/
|
|
898
897
|
class BaoErrorTextComponent {
|
|
899
898
|
}
|
|
900
|
-
BaoErrorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
901
|
-
BaoErrorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
902
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
899
|
+
BaoErrorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoErrorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
900
|
+
BaoErrorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoErrorTextComponent, selector: "bao-error, [bao-error]", ngImport: i0, template: '<div class="bao-error"><ng-content></ng-content></div>', isInline: true, styles: [".bao-error{color:#851a00;font-weight:700;font-size:.875rem;line-height:1.25rem}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
901
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoErrorTextComponent, decorators: [{
|
|
903
902
|
type: Component,
|
|
904
903
|
args: [{ selector: 'bao-error, [bao-error]', template: '<div class="bao-error"><ng-content></ng-content></div>', encapsulation: ViewEncapsulation.None, styles: [".bao-error{color:#851a00;font-weight:700;font-size:.875rem;line-height:1.25rem}\n"] }]
|
|
905
904
|
}] });
|
|
906
905
|
|
|
907
906
|
/*
|
|
908
|
-
* Copyright (c)
|
|
907
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
909
908
|
* Licensed under the MIT license.
|
|
910
909
|
* See LICENSE file in the project root for full license information.
|
|
911
910
|
*/
|
|
912
911
|
class BaoGuidingTextComponent {
|
|
913
912
|
}
|
|
914
|
-
BaoGuidingTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
915
|
-
BaoGuidingTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
916
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
913
|
+
BaoGuidingTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoGuidingTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
914
|
+
BaoGuidingTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoGuidingTextComponent, selector: "bao-guiding-text, [bao-guiding-text]", ngImport: i0, template: '<div class="bao-guiding-text"><ng-content></ng-content></div>', isInline: true, styles: [".bao-guiding-text{color:#637381;font-size:.875rem;line-height:1.25rem}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
915
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoGuidingTextComponent, decorators: [{
|
|
917
916
|
type: Component,
|
|
918
917
|
args: [{ selector: 'bao-guiding-text, [bao-guiding-text]', template: '<div class="bao-guiding-text"><ng-content></ng-content></div>', encapsulation: ViewEncapsulation.None, styles: [".bao-guiding-text{color:#637381;font-size:.875rem;line-height:1.25rem}\n"] }]
|
|
919
918
|
}] });
|
|
920
919
|
|
|
921
920
|
/*
|
|
922
|
-
* Copyright (c)
|
|
921
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
923
922
|
* Licensed under the MIT license.
|
|
924
923
|
* See LICENSE file in the project root for full license information.
|
|
925
924
|
*/
|
|
@@ -928,37 +927,31 @@ class BaoLabelTextComponent {
|
|
|
928
927
|
this.required = false;
|
|
929
928
|
}
|
|
930
929
|
}
|
|
931
|
-
BaoLabelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
932
|
-
BaoLabelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
933
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
930
|
+
BaoLabelTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoLabelTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
931
|
+
BaoLabelTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoLabelTextComponent, selector: "bao-label, [bao-label]", inputs: { required: "required" }, host: { classAttribute: "bao-label" }, ngImport: i0, template: '<ng-content></ng-content><span *ngIf="required"> *</span>', isInline: true, styles: [".bao-label{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:.5rem}.bao-label span{color:#d3310a;margin:0}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
932
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoLabelTextComponent, decorators: [{
|
|
934
933
|
type: Component,
|
|
935
|
-
args: [{ selector: 'bao-label, [bao-label]', encapsulation: ViewEncapsulation.None, template: '<
|
|
934
|
+
args: [{ selector: 'bao-label, [bao-label]', encapsulation: ViewEncapsulation.None, template: '<ng-content></ng-content><span *ngIf="required"> *</span>', host: { class: 'bao-label' }, styles: [".bao-label{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:.5rem}.bao-label span{color:#d3310a;margin:0}\n"] }]
|
|
936
935
|
}], propDecorators: { required: [{
|
|
937
936
|
type: Input
|
|
938
937
|
}] } });
|
|
939
938
|
|
|
940
939
|
/*
|
|
941
|
-
* Copyright (c)
|
|
940
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
942
941
|
* Licensed under the MIT license.
|
|
943
942
|
* See LICENSE file in the project root for full license information.
|
|
944
943
|
*/
|
|
945
944
|
class BaoTitleTextComponent {
|
|
946
945
|
}
|
|
947
|
-
BaoTitleTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
948
|
-
BaoTitleTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
949
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
946
|
+
BaoTitleTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTitleTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
947
|
+
BaoTitleTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoTitleTextComponent, selector: "bao-title-text, [bao-title-text]", ngImport: i0, template: '<div class="bao-title-text"><ng-content></ng-content></div>', isInline: true, styles: [".bao-title-text{font-weight:700;font-size:1.25rem;line-height:1.75rem;margin:0rem 0rem .5rem 0;color:#212529}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
948
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTitleTextComponent, decorators: [{
|
|
950
949
|
type: Component,
|
|
951
950
|
args: [{ selector: 'bao-title-text, [bao-title-text]', template: '<div class="bao-title-text"><ng-content></ng-content></div>', encapsulation: ViewEncapsulation.None, styles: [".bao-title-text{font-weight:700;font-size:1.25rem;line-height:1.75rem;margin:0rem 0rem .5rem 0;color:#212529}\n"] }]
|
|
952
951
|
}] });
|
|
953
952
|
|
|
954
953
|
/*
|
|
955
|
-
* Copyright (c)
|
|
956
|
-
* Licensed under the MIT license.
|
|
957
|
-
* See LICENSE file in the project root for full license information.
|
|
958
|
-
*/
|
|
959
|
-
|
|
960
|
-
/*
|
|
961
|
-
* Copyright (c) 2022 Ville de Montreal. All rights reserved.
|
|
954
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
962
955
|
* Licensed under the MIT license.
|
|
963
956
|
* See LICENSE file in the project root for full license information.
|
|
964
957
|
*/
|
|
@@ -970,16 +963,16 @@ const DIRECTIVES$2 = [
|
|
|
970
963
|
];
|
|
971
964
|
class BaoCommonComponentsModule {
|
|
972
965
|
}
|
|
973
|
-
BaoCommonComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
974
|
-
BaoCommonComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
966
|
+
BaoCommonComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCommonComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
967
|
+
BaoCommonComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoCommonComponentsModule, declarations: [BaoErrorTextComponent,
|
|
975
968
|
BaoGuidingTextComponent,
|
|
976
969
|
BaoLabelTextComponent,
|
|
977
970
|
BaoTitleTextComponent], imports: [CommonModule], exports: [BaoErrorTextComponent,
|
|
978
971
|
BaoGuidingTextComponent,
|
|
979
972
|
BaoLabelTextComponent,
|
|
980
973
|
BaoTitleTextComponent] });
|
|
981
|
-
BaoCommonComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
982
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
974
|
+
BaoCommonComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCommonComponentsModule, imports: [CommonModule] });
|
|
975
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCommonComponentsModule, decorators: [{
|
|
983
976
|
type: NgModule,
|
|
984
977
|
args: [{
|
|
985
978
|
imports: [CommonModule],
|
|
@@ -989,7 +982,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
989
982
|
}] });
|
|
990
983
|
|
|
991
984
|
/*
|
|
992
|
-
* Copyright (c)
|
|
985
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
993
986
|
* Licensed under the MIT license.
|
|
994
987
|
* See LICENSE file in the project root for full license information.
|
|
995
988
|
*/
|
|
@@ -1031,9 +1024,9 @@ class BaoCheckboxGroupComponent {
|
|
|
1031
1024
|
this.ariaDescribedby = value ? `${this.id}-ariadescribedby` : undefined;
|
|
1032
1025
|
}
|
|
1033
1026
|
}
|
|
1034
|
-
BaoCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1035
|
-
BaoCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1036
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1027
|
+
BaoCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1028
|
+
BaoCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoCheckboxGroupComponent, selector: "bao-checkbox-group, [bao-checkbox-group]", inputs: { id: "id" }, viewQueries: [{ propertyName: "staticContainer", first: true, predicate: ["container"], descendants: true }], ngImport: i0, template: "<fieldset\n class=\"bao-checkbox-group\"\n [id]=\"id\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n>\n <ng-content></ng-content>\n <div\n class=\"bao-checkbox-group-description\"\n [attr.id]=\"ariaDescribedby\"\n #container\n (cdkObserveContent)=\"onContentChange()\"\n >\n <ng-content\n select=\"bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]\"\n ></ng-content>\n </div>\n</fieldset>\n", styles: [".bao-checkbox-group .bao-label{margin-bottom:.5rem}.bao-checkbox-group .bao-error,.bao-checkbox-group .bao-guiding-text{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1029
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxGroupComponent, decorators: [{
|
|
1037
1030
|
type: Component,
|
|
1038
1031
|
args: [{ selector: 'bao-checkbox-group, [bao-checkbox-group]', encapsulation: ViewEncapsulation.None, template: "<fieldset\n class=\"bao-checkbox-group\"\n [id]=\"id\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n>\n <ng-content></ng-content>\n <div\n class=\"bao-checkbox-group-description\"\n [attr.id]=\"ariaDescribedby\"\n #container\n (cdkObserveContent)=\"onContentChange()\"\n >\n <ng-content\n select=\"bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]\"\n ></ng-content>\n </div>\n</fieldset>\n", styles: [".bao-checkbox-group .bao-label{margin-bottom:.5rem}.bao-checkbox-group .bao-error,.bao-checkbox-group .bao-guiding-text{margin-top:.5rem}\n"] }]
|
|
1039
1032
|
}], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { id: [{
|
|
@@ -1216,11 +1209,11 @@ class BaoCheckboxComponent {
|
|
|
1216
1209
|
*/
|
|
1217
1210
|
getAriaState() {
|
|
1218
1211
|
if (this.checked) {
|
|
1219
|
-
return "true" /* TRUE */;
|
|
1212
|
+
return "true" /* eCheckboxAriaState.TRUE */;
|
|
1220
1213
|
}
|
|
1221
1214
|
return this.indeterminate
|
|
1222
|
-
? "mixed" /* MIXED */
|
|
1223
|
-
: "false" /* FALSE */;
|
|
1215
|
+
? "mixed" /* eCheckboxAriaState.MIXED */
|
|
1216
|
+
: "false" /* eCheckboxAriaState.FALSE */;
|
|
1224
1217
|
}
|
|
1225
1218
|
/**
|
|
1226
1219
|
* Emit new values whenever the checkbox object has change.
|
|
@@ -1276,15 +1269,15 @@ class BaoCheckboxComponent {
|
|
|
1276
1269
|
this.checked = !this.checked;
|
|
1277
1270
|
}
|
|
1278
1271
|
}
|
|
1279
|
-
BaoCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1280
|
-
BaoCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1272
|
+
BaoCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
|
|
1273
|
+
BaoCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoCheckboxComponent, selector: "bao-checkbox, [bao-checkbox]", inputs: { id: "id", ariaLabel: ["aria-label", "ariaLabel"], brandBorder: "brandBorder", inline: "inline", name: "name", hiddenLabel: "hiddenLabel", checked: "checked", disabled: "disabled", required: "required", indeterminate: "indeterminate" }, outputs: { change: "change", indeterminateChange: "indeterminateChange" }, host: { properties: { "class.bao-checkbox-inline": "inline", "class.bao-checkbox-checked": "checked", "class.bao-checkbox-indeterminate": "indeterminate", "class.bao-checkbox-disabled": "disabled", "class.bao-checkbox-card": "brandBorder", "class.bao-checkbox-required": "required", "class.bao-checkbox-hidden-label": "hiddenLabel" }, classAttribute: "bao-checkbox" }, providers: [
|
|
1281
1274
|
{
|
|
1282
1275
|
provide: NG_VALUE_ACCESSOR,
|
|
1283
1276
|
useExisting: forwardRef(() => BaoCheckboxComponent),
|
|
1284
1277
|
multi: true
|
|
1285
1278
|
}
|
|
1286
1279
|
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<input\n #input\n type=\"checkbox\"\n [id]=\"inputID\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.name]=\"name\"\n [required]=\"required\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n [attr.aria-checked]=\"getAriaState()\"\n (change)=\"onInteractionEvent($event)\"\n (click)=\"onInputClick($event)\"\n role=\"checkbox\"\n/>\n<label class=\"bao-checkbox-content-container\" [attr.for]=\"inputID\">\n <div class=\"bao-checkbox-label\" [id]=\"ariaLabelledby\">\n <ng-content></ng-content>\n </div>\n <ng-content\n select=\"bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]\"\n ></ng-content>\n</label>\n", styles: [".bao-checkbox{display:block;font-size:1rem;line-height:1.5rem;min-height:1.5rem;padding-top:.5rem;padding-bottom:.5rem;padding-left:2rem;position:relative;z-index:1}.bao-checkbox input{box-sizing:border-box;left:0;opacity:0;overflow:visible;padding:0;position:absolute;z-index:-1}.bao-checkbox input:focus~.bao-checkbox-content-container:before{box-shadow:0 0 0 .1875rem #0079c480}.bao-checkbox label.bao-checkbox-content-container{color:#212529;font-weight:400;font-size:1rem;line-height:1.5rem;margin-bottom:0;position:relative;vertical-align:top}.bao-checkbox label.bao-checkbox-content-container:before{border-radius:.125rem;box-sizing:border-box;position:absolute;top:0;left:-2rem;display:block;margin:.125rem;width:1.25rem;height:1.25rem;pointer-events:none;content:\"\";background-color:#fff;border:#ced4da solid 1px;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.bao-checkbox label.bao-checkbox-content-container:after{box-sizing:border-box;background:no-repeat 50%/1.5rem;content:\"\";display:block;height:1.5rem;left:-2rem;margin:0;position:absolute;top:0;width:1.5rem}.bao-checkbox label.bao-checkbox-content-container .bao-checkbox-label{color:#212529;display:block}.bao-checkbox label.bao-checkbox-content-container .bao-checkbox-description{color:#637381;display:block;margin-top:.5rem}.bao-checkbox.bao-checkbox-inline{display:inline-flex;margin-right:1rem}.bao-checkbox.bao-checkbox-card{padding:0;margin-bottom:1rem}.bao-checkbox.bao-checkbox-card:last-of-type{margin-bottom:0}.bao-checkbox.bao-checkbox-card label.bao-checkbox-content-container{display:flex;flex-direction:column;flex:1;justify-content:center;padding:1rem 1rem 1rem 3.5rem;position:relative;border:1px solid #ced4da;border-radius:.25rem;color:#637381;min-height:3.5rem}.bao-checkbox.bao-checkbox-card label.bao-checkbox-content-container:before{top:1rem;left:0;margin-left:1.125rem}.bao-checkbox.bao-checkbox-card label.bao-checkbox-content-container:after{top:1rem;left:0;margin-left:1rem}.bao-checkbox.bao-checkbox-indeterminate .bao-checkbox-content-container:after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3e%3cpath fill='none' stroke='%23097d6c' stroke-linecap='round' stroke-linejoin='round' stroke-width='3' d='M6 10h8'/%3e%3c/svg%3e\")}.bao-checkbox input:checked~.bao-checkbox-content-container:before{border-color:#097d6c;background-color:#097d6c}.bao-checkbox input:checked~.bao-checkbox-content-container:after{background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3cpath fill='%23ffffff' d='M16.7 8.3C17.1 8.7 17.1 9.3 16.7 9.7L10.7 15.7 10.7 15.7C10.6 15.9 10.4 15.9 10.2 16L10.1 16 10.1 16 9.9 16C9.7 16 9.5 15.9 9.3 15.7L7.3 13.7C6.9 13.3 6.9 12.7 7.3 12.3 7.7 11.9 8.3 11.9 8.7 12.3L10 13.6 15.3 8.3C15.7 7.9 16.3 7.9 16.7 8.3Z'/%3e%3c/svg%3e\")}.bao-checkbox input:disabled~.bao-checkbox-content-container{color:#adb2bd;border-color:#dee2e6}.bao-checkbox input:disabled~.bao-checkbox-content-container:before{border-color:#ced4da;background-color:#ced4da}.bao-checkbox input:disabled~.bao-checkbox-content-container .bao-checkbox-label,.bao-checkbox input:disabled~.bao-checkbox-content-container .bao-checkbox-description{color:#adb2bd}.bao-checkbox.bao-checkbox-hidden-label .bao-checkbox-label{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.bao-checkbox.bao-checkbox-hidden-label label.bao-checkbox-content-container .bao-checkbox-description{margin-top:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1287
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1280
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxComponent, decorators: [{
|
|
1288
1281
|
type: Component,
|
|
1289
1282
|
args: [{ selector: 'bao-checkbox, [bao-checkbox]', providers: [
|
|
1290
1283
|
{
|
|
@@ -1333,9 +1326,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1333
1326
|
}] } });
|
|
1334
1327
|
class BaoCheckBoxDescription {
|
|
1335
1328
|
}
|
|
1336
|
-
BaoCheckBoxDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1337
|
-
BaoCheckBoxDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1338
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1329
|
+
BaoCheckBoxDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckBoxDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1330
|
+
BaoCheckBoxDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoCheckBoxDescription, selector: "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", host: { classAttribute: "bao-checkbox-description" }, ngImport: i0 });
|
|
1331
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckBoxDescription, decorators: [{
|
|
1339
1332
|
type: Directive,
|
|
1340
1333
|
args: [{
|
|
1341
1334
|
selector: 'bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]',
|
|
@@ -1344,7 +1337,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1344
1337
|
}] });
|
|
1345
1338
|
|
|
1346
1339
|
/*
|
|
1347
|
-
* Copyright (c)
|
|
1340
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1348
1341
|
* Licensed under the MIT license.
|
|
1349
1342
|
* See LICENSE file in the project root for full license information.
|
|
1350
1343
|
*/
|
|
@@ -1355,14 +1348,14 @@ const CHECKBOX_DIRECTIVES = [
|
|
|
1355
1348
|
];
|
|
1356
1349
|
class BaoCheckboxModule {
|
|
1357
1350
|
}
|
|
1358
|
-
BaoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1359
|
-
BaoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1351
|
+
BaoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1352
|
+
BaoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxModule, declarations: [BaoCheckboxComponent,
|
|
1360
1353
|
BaoCheckboxGroupComponent,
|
|
1361
1354
|
BaoCheckBoxDescription], imports: [CommonModule, BaoCommonComponentsModule, ObserversModule], exports: [BaoCheckboxComponent,
|
|
1362
1355
|
BaoCheckboxGroupComponent,
|
|
1363
1356
|
BaoCheckBoxDescription] });
|
|
1364
|
-
BaoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1365
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1357
|
+
BaoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxModule, imports: [CommonModule, BaoCommonComponentsModule, ObserversModule] });
|
|
1358
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoCheckboxModule, decorators: [{
|
|
1366
1359
|
type: NgModule,
|
|
1367
1360
|
args: [{
|
|
1368
1361
|
imports: [CommonModule, BaoCommonComponentsModule, ObserversModule],
|
|
@@ -1372,13 +1365,19 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1372
1365
|
}] });
|
|
1373
1366
|
|
|
1374
1367
|
/*
|
|
1375
|
-
* Copyright (c)
|
|
1368
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1369
|
+
* Licensed under the MIT license.
|
|
1370
|
+
* See LICENSE file in the project root for full license information.
|
|
1371
|
+
*/
|
|
1372
|
+
|
|
1373
|
+
/*
|
|
1374
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1376
1375
|
* Licensed under the MIT license.
|
|
1377
1376
|
* See LICENSE file in the project root for full license information.
|
|
1378
1377
|
*/
|
|
1379
1378
|
|
|
1380
1379
|
/*
|
|
1381
|
-
* Copyright (c)
|
|
1380
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1382
1381
|
* Licensed under the MIT license.
|
|
1383
1382
|
* See LICENSE file in the project root for full license information.
|
|
1384
1383
|
*/
|
|
@@ -1400,9 +1399,9 @@ class BaoHeaderInfoComponent {
|
|
|
1400
1399
|
this.brandBorder = false;
|
|
1401
1400
|
}
|
|
1402
1401
|
}
|
|
1403
|
-
BaoHeaderInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1404
|
-
BaoHeaderInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1405
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1402
|
+
BaoHeaderInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1403
|
+
BaoHeaderInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoComponent, selector: "bao-header-info", inputs: { notch: "notch", imageUrl: "imageUrl", brandBorder: "brandBorder" }, host: { properties: { "class.document-heading-left-notch": "notch === \"left\"" }, classAttribute: "bao-document-heading" }, ngImport: i0, template: "<div *ngIf=\"imageUrl\" class=\"document-heading-image-container\">\n <div\n [ngStyle]=\"{\n 'background-image': 'url(\\'' + imageUrl + '\\')'}\"\n class=\"document-heading-background\"\n ></div>\n</div>\n\n<div class=\"bao-container document-heading-header-container\">\n <div class=\"bao-row document-heading-header\">\n <div class=\"bao-col-12 bao-col-lg-7\">\n <ng-content select=\"bao-header-info-title-group\"></ng-content>\n <div class=\"bao-header-content\">\n <ng-content></ng-content>\n </div>\n <div *ngIf=\"brandBorder\" class=\"brand-border-bottom\"></div>\n </div>\n </div>\n <div *ngIf=\"notch\" class=\"document-heading-wrapper notch\">\n <div class=\"document-heading-content-wrapper\">\n <div class=\"document-heading-content\"></div>\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-header-info-title-group,.bao-header-info-content,.document-heading-subtitle,.document-heading-surtitle{display:block}.document-heading-header-container{position:relative!important}.bao-document-heading{display:block;padding:2rem 0;position:relative;width:100%}.bao-document-heading .document-heading-title{font-weight:700;color:#212529;font-size:2rem;line-height:2.5rem;margin-bottom:0}.bao-document-heading .document-heading-surtitle{font-weight:700;font-size:1rem;line-height:1.5rem;margin-bottom:1rem;color:#212529}.bao-document-heading .document-heading-subtitle{font-weight:400;font-size:1rem;line-height:1.5rem;color:#000}.bao-document-heading .bao-header-info-title-group>*:not(:first-child){margin-top:1rem}.bao-document-heading .bao-header-content:not(:empty){margin-top:2rem}.bao-document-heading .brand-border-bottom{margin-top:2rem}.bao-document-heading .document-heading-background{background-color:#f8f9fa;background-position:center center;background-repeat:no-repeat;background-size:cover;height:100%;overflow:hidden;position:absolute;top:0;width:100%;z-index:0}.bao-document-heading .document-heading-content{background-color:#fff;height:2rem;padding-left:1rem;padding-right:1rem;position:relative;bottom:-2rem}@media (min-width: 768px){.bao-document-heading .document-heading-title{font-weight:700;color:#212529;font-size:2.5rem;line-height:3.5rem}.bao-document-heading .document-heading-surtitle{font-weight:700;font-size:1.25rem;line-height:1.75rem;margin-bottom:1rem;color:#212529}.bao-document-heading .document-heading-subtitle{font-weight:400;font-size:1.25rem;line-height:1.75rem;color:#000}}@media (min-width: 992px){.bao-document-heading{padding-top:4rem;padding-bottom:4rem}.bao-document-heading .document-heading-content{bottom:-4rem;height:3.5rem;margin:auto}.bao-document-heading.document-heading-left-notch .document-heading-content{max-width:66.66667%;margin:0}.bao-document-heading.document-heading-left-notch .document-heading-content:before{content:\"\";background:#ffffff;width:1000px;height:100%;position:absolute;left:-1000px}.bao-document-heading.document-heading-left-notch .document-heading-content:after{content:\"\";background:#ffffff;width:1rem;height:100%;position:absolute}}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1404
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoComponent, decorators: [{
|
|
1406
1405
|
type: Component,
|
|
1407
1406
|
args: [{ selector: 'bao-header-info', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1408
1407
|
class: 'bao-document-heading',
|
|
@@ -1417,9 +1416,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1417
1416
|
}] } });
|
|
1418
1417
|
class BaoHeaderInfoTitleGroupComponent {
|
|
1419
1418
|
}
|
|
1420
|
-
BaoHeaderInfoTitleGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1421
|
-
BaoHeaderInfoTitleGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1422
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1419
|
+
BaoHeaderInfoTitleGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoTitleGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1420
|
+
BaoHeaderInfoTitleGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoTitleGroupComponent, selector: "bao-header-info-title-group", host: { classAttribute: "bao-header-info-title-group" }, ngImport: i0, template: "<ng-content></ng-content>\n<ng-content\n select=\"bao-header-surtitle, [bao-header-surtitle], [baoHeaderSurtitle], \n bao-header-title, [bao-header-title], [baoHeaderTitle],\n bao-header-subtitle, [bao-header-subtitle], [baoHeaderSubtitle]\"\n></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1421
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoTitleGroupComponent, decorators: [{
|
|
1423
1422
|
type: Component,
|
|
1424
1423
|
args: [{ selector: 'bao-header-info-title-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
1425
1424
|
class: 'bao-header-info-title-group'
|
|
@@ -1427,9 +1426,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1427
1426
|
}] });
|
|
1428
1427
|
class BaoHeaderInfoContent {
|
|
1429
1428
|
}
|
|
1430
|
-
BaoHeaderInfoContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1431
|
-
BaoHeaderInfoContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1432
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1429
|
+
BaoHeaderInfoContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1430
|
+
BaoHeaderInfoContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoContent, selector: "bao-header-info-content", host: { classAttribute: "bao-header-info-content" }, ngImport: i0 });
|
|
1431
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoContent, decorators: [{
|
|
1433
1432
|
type: Directive,
|
|
1434
1433
|
args: [{
|
|
1435
1434
|
selector: 'bao-header-info-content',
|
|
@@ -1440,9 +1439,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1440
1439
|
}] });
|
|
1441
1440
|
class BaoHeaderInfoSurtitle {
|
|
1442
1441
|
}
|
|
1443
|
-
BaoHeaderInfoSurtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1444
|
-
BaoHeaderInfoSurtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1445
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1442
|
+
BaoHeaderInfoSurtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoSurtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1443
|
+
BaoHeaderInfoSurtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoSurtitle, selector: "bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]", host: { classAttribute: "document-heading-surtitle" }, ngImport: i0 });
|
|
1444
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoSurtitle, decorators: [{
|
|
1446
1445
|
type: Directive,
|
|
1447
1446
|
args: [{
|
|
1448
1447
|
selector: 'bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]',
|
|
@@ -1453,9 +1452,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1453
1452
|
}] });
|
|
1454
1453
|
class BaoHeaderInfoSubtitle {
|
|
1455
1454
|
}
|
|
1456
|
-
BaoHeaderInfoSubtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1457
|
-
BaoHeaderInfoSubtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1455
|
+
BaoHeaderInfoSubtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1456
|
+
BaoHeaderInfoSubtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoSubtitle, selector: "bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]", host: { classAttribute: "document-heading-subtitle" }, ngImport: i0 });
|
|
1457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoSubtitle, decorators: [{
|
|
1459
1458
|
type: Directive,
|
|
1460
1459
|
args: [{
|
|
1461
1460
|
selector: 'bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]',
|
|
@@ -1466,9 +1465,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1466
1465
|
}] });
|
|
1467
1466
|
class BaoHeaderInfoTitle {
|
|
1468
1467
|
}
|
|
1469
|
-
BaoHeaderInfoTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1470
|
-
BaoHeaderInfoTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1471
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1468
|
+
BaoHeaderInfoTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1469
|
+
BaoHeaderInfoTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoHeaderInfoTitle, selector: "bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]", host: { classAttribute: "document-heading-title" }, ngImport: i0 });
|
|
1470
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoTitle, decorators: [{
|
|
1472
1471
|
type: Directive,
|
|
1473
1472
|
args: [{
|
|
1474
1473
|
selector: 'bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]',
|
|
@@ -1479,7 +1478,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1479
1478
|
}] });
|
|
1480
1479
|
|
|
1481
1480
|
/*
|
|
1482
|
-
* Copyright (c)
|
|
1481
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1483
1482
|
* Licensed under the MIT license.
|
|
1484
1483
|
* See LICENSE file in the project root for full license information.
|
|
1485
1484
|
*/
|
|
@@ -1493,8 +1492,8 @@ const DIRECTIVES$1 = [
|
|
|
1493
1492
|
];
|
|
1494
1493
|
class BaoHeaderInfoModule {
|
|
1495
1494
|
}
|
|
1496
|
-
BaoHeaderInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1497
|
-
BaoHeaderInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1495
|
+
BaoHeaderInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1496
|
+
BaoHeaderInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoModule, declarations: [BaoHeaderInfoComponent,
|
|
1498
1497
|
BaoHeaderInfoContent,
|
|
1499
1498
|
BaoHeaderInfoTitleGroupComponent,
|
|
1500
1499
|
BaoHeaderInfoSubtitle,
|
|
@@ -1505,8 +1504,8 @@ BaoHeaderInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", ver
|
|
|
1505
1504
|
BaoHeaderInfoSubtitle,
|
|
1506
1505
|
BaoHeaderInfoSurtitle,
|
|
1507
1506
|
BaoHeaderInfoTitle] });
|
|
1508
|
-
BaoHeaderInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1509
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1507
|
+
BaoHeaderInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoModule, imports: [CommonModule] });
|
|
1508
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHeaderInfoModule, decorators: [{
|
|
1510
1509
|
type: NgModule,
|
|
1511
1510
|
args: [{
|
|
1512
1511
|
imports: [CommonModule],
|
|
@@ -1516,27 +1515,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1516
1515
|
}] });
|
|
1517
1516
|
|
|
1518
1517
|
/*
|
|
1519
|
-
* Copyright (c)
|
|
1518
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1520
1519
|
* Licensed under the MIT license.
|
|
1521
1520
|
* See LICENSE file in the project root for full license information.
|
|
1522
1521
|
*/
|
|
1523
1522
|
|
|
1524
1523
|
/*
|
|
1525
|
-
* Copyright (c)
|
|
1524
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1526
1525
|
* Licensed under the MIT license.
|
|
1527
1526
|
* See LICENSE file in the project root for full license information.
|
|
1528
1527
|
*/
|
|
1529
1528
|
|
|
1530
1529
|
/*
|
|
1531
|
-
* Copyright (c)
|
|
1530
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1532
1531
|
* Licensed under the MIT license.
|
|
1533
1532
|
* See LICENSE file in the project root for full license information.
|
|
1534
1533
|
*/
|
|
1535
1534
|
class BaoListItem {
|
|
1536
1535
|
}
|
|
1537
|
-
BaoListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1538
|
-
BaoListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1539
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1536
|
+
BaoListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
1537
|
+
BaoListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoListItem, selector: "bao-list-item, [bao-list-item]", host: { attributes: { "role": "listitem" }, classAttribute: "bao-list-item" }, ngImport: i0, template: "<div class=\"bao-list-item-header\">\n <ng-content select=\"baoIconItemType, [baoIconItemType]\"></ng-content>\n</div>\n<div class=\"bao-list-item-content\">\n <div class=\"bao-list-item-text\">\n <ng-content></ng-content>\n </div>\n <div class=\"bao-list-item-tag\">\n <ng-content\n select=\"bao-tag, [bao-tag], baoIconTag, [baoIconTag]\"\n ></ng-content>\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-list{padding:0;margin:0}.bao-list>.bao-list-item:last-child{border-radius:.125rem;box-shadow:inset 0 .0625rem #ced4da,inset 0 -.0625rem #ced4da}.bao-list>a.bao-list-item{border-bottom:none}.bao-list>a.bao-list-item:focus{box-shadow:0 0 0 .1875rem #98bcde;background-color:#f8f9fa}.bao-list>a.bao-list-item:focus .bao-list-item-title{color:#097d6c}.bao-list>a.bao-list-item:hover{background-color:#f8f9fa}.bao-list>a.bao-list-item:hover .bao-list-item-text,.bao-list>a.bao-list-item:hover .bao-list-item-title{color:#097d6c}.bao-list .bao-list-item{display:flex;padding:1rem;background-color:#fff0;border-radius:.125rem .125rem 0rem 0rem;box-shadow:inset 0 .0625rem #ced4da}.bao-list .bao-list-item>.bao-list-item-header{align-self:flex-start;color:#adb2bd;line-height:0}.bao-list .bao-list-item>.bao-list-item-header .bao-icon{margin-right:1em}.bao-list .bao-list-item>.bao-list-item-content{display:flex;flex-grow:2}@media (min-width: 0){.bao-list .bao-list-item>.bao-list-item-content{flex-direction:column}}@media (min-width: 768px){.bao-list .bao-list-item>.bao-list-item-content{flex-direction:row;justify-content:space-between}}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text{display:flex;flex-direction:column;color:#212529;font-weight:700;font-size:1rem;line-height:1.5rem}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-title{font-weight:700;font-size:1rem;line-height:1.5rem}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>ul.bao-list-item-description{padding:0;margin:0}@media (min-width: 768px){.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>ul.bao-list-item-description{display:inline-flex;flex-wrap:wrap}}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description{color:#637381;margin-right:0 1rem}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>*{font-weight:400;font-size:.875rem;line-height:1.25rem;list-style-type:none}@media (min-width: 0){.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description{display:block}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>*{margin-bottom:.25rem}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>*:last-child{margin-bottom:0}}@media (min-width: 768px){.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>li{display:inline-flex;align-items:center;margin-bottom:0}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>li:before{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'><circle cx='12' cy='12' r='2'/></svg>\");height:1rem;width:1rem;margin:0 .25rem;flex-shrink:0}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-text>.bao-list-item-description>li:first-child:before{content:none}}.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-tag{line-height:0}@media (min-width: 0){.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-tag>*{margin:.5rem 0 0}}@media (min-width: 768px){.bao-list .bao-list-item>.bao-list-item-content>.bao-list-item-tag>*{margin:0 0 0 1rem}}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
1538
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItem, decorators: [{
|
|
1540
1539
|
type: Component,
|
|
1541
1540
|
args: [{ selector: 'bao-list-item, [bao-list-item]', encapsulation: ViewEncapsulation.None, host: {
|
|
1542
1541
|
class: 'bao-list-item',
|
|
@@ -1545,9 +1544,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1545
1544
|
}] });
|
|
1546
1545
|
class BaoList {
|
|
1547
1546
|
}
|
|
1548
|
-
BaoList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1549
|
-
BaoList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1550
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1547
|
+
BaoList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1548
|
+
BaoList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoList, selector: "bao-list, [bao-list]", host: { attributes: { "role": "list" }, classAttribute: "bao-list" }, ngImport: i0 });
|
|
1549
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoList, decorators: [{
|
|
1551
1550
|
type: Directive,
|
|
1552
1551
|
args: [{
|
|
1553
1552
|
selector: 'bao-list, [bao-list]',
|
|
@@ -1559,9 +1558,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1559
1558
|
}] });
|
|
1560
1559
|
class BaoNavList {
|
|
1561
1560
|
}
|
|
1562
|
-
BaoNavList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1563
|
-
BaoNavList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1564
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1561
|
+
BaoNavList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoNavList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1562
|
+
BaoNavList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoNavList, selector: "bao-nav-list, [bao-nav-list]", host: { attributes: { "role": "navigation" }, classAttribute: "bao-list" }, ngImport: i0 });
|
|
1563
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoNavList, decorators: [{
|
|
1565
1564
|
type: Directive,
|
|
1566
1565
|
args: [{
|
|
1567
1566
|
selector: 'bao-nav-list, [bao-nav-list]',
|
|
@@ -1573,9 +1572,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1573
1572
|
}] });
|
|
1574
1573
|
class BaoListItemDescription {
|
|
1575
1574
|
}
|
|
1576
|
-
BaoListItemDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1577
|
-
BaoListItemDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1578
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1575
|
+
BaoListItemDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItemDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1576
|
+
BaoListItemDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoListItemDescription, selector: "bao-list-item-description, [bao-list-item-description]", host: { classAttribute: "bao-list-item-description" }, ngImport: i0 });
|
|
1577
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItemDescription, decorators: [{
|
|
1579
1578
|
type: Directive,
|
|
1580
1579
|
args: [{
|
|
1581
1580
|
selector: 'bao-list-item-description, [bao-list-item-description]',
|
|
@@ -1586,9 +1585,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1586
1585
|
}] });
|
|
1587
1586
|
class BaoListItemTitle {
|
|
1588
1587
|
}
|
|
1589
|
-
BaoListItemTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1590
|
-
BaoListItemTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
1591
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1588
|
+
BaoListItemTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItemTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
1589
|
+
BaoListItemTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoListItemTitle, selector: "bao-list-item-title, [bao-list-item-title]", host: { classAttribute: "bao-list-item-title" }, ngImport: i0 });
|
|
1590
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListItemTitle, decorators: [{
|
|
1592
1591
|
type: Directive,
|
|
1593
1592
|
args: [{
|
|
1594
1593
|
selector: 'bao-list-item-title, [bao-list-item-title]',
|
|
@@ -1599,7 +1598,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1599
1598
|
}] });
|
|
1600
1599
|
|
|
1601
1600
|
/*
|
|
1602
|
-
* Copyright (c)
|
|
1601
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1603
1602
|
* Licensed under the MIT license.
|
|
1604
1603
|
* See LICENSE file in the project root for full license information.
|
|
1605
1604
|
*/
|
|
@@ -1612,8 +1611,8 @@ const DIRECTIVES = [
|
|
|
1612
1611
|
];
|
|
1613
1612
|
class BaoListModule {
|
|
1614
1613
|
}
|
|
1615
|
-
BaoListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1616
|
-
BaoListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
1614
|
+
BaoListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
1615
|
+
BaoListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoListModule, declarations: [BaoListItem,
|
|
1617
1616
|
BaoList,
|
|
1618
1617
|
BaoNavList,
|
|
1619
1618
|
BaoListItemDescription,
|
|
@@ -1622,8 +1621,8 @@ BaoListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
1622
1621
|
BaoNavList,
|
|
1623
1622
|
BaoListItemDescription,
|
|
1624
1623
|
BaoListItemTitle] });
|
|
1625
|
-
BaoListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
1626
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1624
|
+
BaoListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListModule, imports: [CommonModule] });
|
|
1625
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListModule, decorators: [{
|
|
1627
1626
|
type: NgModule,
|
|
1628
1627
|
args: [{
|
|
1629
1628
|
imports: [CommonModule],
|
|
@@ -1633,13 +1632,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
1633
1632
|
}] });
|
|
1634
1633
|
|
|
1635
1634
|
/*
|
|
1636
|
-
* Copyright (c)
|
|
1635
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1637
1636
|
* Licensed under the MIT license.
|
|
1638
1637
|
* See LICENSE file in the project root for full license information.
|
|
1639
1638
|
*/
|
|
1640
1639
|
|
|
1641
1640
|
/*
|
|
1642
|
-
* Copyright (c)
|
|
1641
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
1643
1642
|
* Licensed under the MIT license.
|
|
1644
1643
|
* See LICENSE file in the project root for full license information.
|
|
1645
1644
|
*/
|
|
@@ -1838,8 +1837,8 @@ class BaoRadioButtonGroupComponent {
|
|
|
1838
1837
|
this.ariaDescribedby = value ? `${this.id}-ariadescribedby` : null;
|
|
1839
1838
|
}
|
|
1840
1839
|
}
|
|
1841
|
-
BaoRadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1842
|
-
BaoRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
1840
|
+
BaoRadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioButtonGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
1841
|
+
BaoRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoRadioButtonGroupComponent, selector: "bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]", inputs: { id: "id", name: "name", value: "value", selected: "selected", disabled: "disabled", required: "required" }, outputs: { change: "change" }, providers: [
|
|
1843
1842
|
{
|
|
1844
1843
|
provide: NG_VALUE_ACCESSOR,
|
|
1845
1844
|
useExisting: forwardRef(() => BaoRadioButtonGroupComponent),
|
|
@@ -1847,7 +1846,7 @@ BaoRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14
|
|
|
1847
1846
|
},
|
|
1848
1847
|
{ provide: BAO_RADIO_GROUP, useExisting: BaoRadioButtonGroupComponent }
|
|
1849
1848
|
], queries: [{ propertyName: "staticContainer", predicate: i0.forwardRef(function () { return BaoRadioButtonComponent; }), descendants: true }], viewQueries: [{ propertyName: "staticContainer", first: true, predicate: ["container"], descendants: true }], exportAs: ["baoRadioGroup"], ngImport: i0, template: "<fieldset\n role=\"radiogroup\"\n class=\"bao-radio-button-group\"\n [id]=\"id\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n>\n <ng-content></ng-content>\n <div\n class=\"bao-radio-button-group-description\"\n [attr.id]=\"ariaDescribedby\"\n #container\n (cdkObserveContent)=\"onContentChange()\"\n >\n <ng-content\n select=\"bao-error, [bao-error], bao-guiding-text, [bao-guiding-text]\"\n ></ng-content>\n </div>\n</fieldset>\n", styles: [".bao-radio-button-group .bao-legend{margin-bottom:.5rem}.bao-radio-button-group .bao-error,.bao-radio-button-group .bao-guiding-text{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
1850
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1849
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioButtonGroupComponent, decorators: [{
|
|
1851
1850
|
type: Component,
|
|
1852
1851
|
args: [{ selector: 'bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]', exportAs: 'baoRadioGroup', encapsulation: ViewEncapsulation.None, providers: [
|
|
1853
1852
|
{
|
|
@@ -2096,15 +2095,15 @@ class BaoRadioButtonComponent {
|
|
|
2096
2095
|
}
|
|
2097
2096
|
}
|
|
2098
2097
|
}
|
|
2099
|
-
BaoRadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2100
|
-
BaoRadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2098
|
+
BaoRadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioButtonComponent, deps: [{ token: BAO_RADIO_GROUP, optional: true }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.FocusMonitor }, { token: i2.UniqueSelectionDispatcher }], target: i0.ɵɵFactoryTarget.Component });
|
|
2099
|
+
BaoRadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoRadioButtonComponent, selector: "bao-radio-button, [bao-radio-button]", inputs: { id: "id", ariaLabel: ["aria-label", "ariaLabel"], brandBorder: "brandBorder", inline: "inline", name: "name", hiddenLabel: "hiddenLabel", checked: "checked", value: "value", disabled: "disabled", required: "required" }, outputs: { change: "change" }, host: { properties: { "class.bao-radio-button-inline": "inline", "class.bao-radio-button-checked": "checked", "class.bao-radio-button-disabled": "disabled", "class.bao-radio-button-card": "brandBorder", "class.bao-radio-button-hidden-label": "hiddenLabel" }, classAttribute: "bao-radio-button" }, providers: [
|
|
2101
2100
|
{
|
|
2102
2101
|
provide: NG_VALUE_ACCESSOR,
|
|
2103
2102
|
useExisting: forwardRef(() => BaoRadioButtonComponent),
|
|
2104
2103
|
multi: true
|
|
2105
2104
|
}
|
|
2106
2105
|
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["input"], descendants: true }], ngImport: i0, template: "<input\n #input\n type=\"radio\"\n [id]=\"inputID\"\n [checked]=\"checked\"\n [disabled]=\"disabled\"\n [attr.name]=\"name\"\n [attr.value]=\"value\"\n [required]=\"required\"\n [attr.aria-label]=\"ariaLabel\"\n [attr.aria-labelledby]=\"ariaLabelledby\"\n [attr.aria-describedby]=\"ariaDescribedby\"\n (change)=\"onInputInteraction($event)\"\n role=\"radio\"\n/>\n<label class=\"bao-radio-button-content-container\" [attr.for]=\"inputID\">\n <div class=\"bao-radio-button-label\" [id]=\"ariaLabelledby\">\n <ng-content></ng-content>\n </div>\n <ng-content\n select=\"bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]\"\n ></ng-content>\n</label>\n", styles: [".bao-radio-button{display:block;font-size:1rem;line-height:1.5rem;min-height:1.5rem;padding-top:.5rem;padding-bottom:.5rem;padding-left:2rem;position:relative;z-index:1}.bao-radio-button input{box-sizing:border-box;left:0;opacity:0;overflow:visible;padding:0;position:absolute;z-index:-1}.bao-radio-button input:focus~.bao-radio-button-content-container:before{box-shadow:0 0 0 .1875rem #0079c480}.bao-radio-button label.bao-radio-button-content-container{color:#212529;font-weight:400;font-size:1rem;line-height:1.5rem;margin-bottom:0;position:relative;vertical-align:top}.bao-radio-button label.bao-radio-button-content-container:before{border-radius:50%;box-sizing:border-box;position:absolute;top:0;left:-2rem;display:block;margin:.125rem;width:1.25rem;height:1.25rem;pointer-events:none;content:\"\";background-color:#fff;border:#ced4da solid 1px;transition:background-color .15s ease-in-out,border-color .15s ease-in-out,box-shadow .15s ease-in-out}.bao-radio-button label.bao-radio-button-content-container:after{box-sizing:border-box;background:no-repeat 50%/1.5rem;content:\"\";display:block;height:1.5rem;left:-2rem;margin:0;position:absolute;top:0;width:1.5rem}.bao-radio-button label.bao-radio-button-content-container .bao-radio-button-label{color:#212529;display:block}.bao-radio-button label.bao-radio-button-content-container .bao-radio-button-description{color:#637381;display:block;margin-top:.5rem}.bao-radio-button.bao-radio-button-inline{display:inline-flex;margin-right:1rem}.bao-radio-button.bao-radio-button-card{padding:0;margin-bottom:1rem}.bao-radio-button.bao-radio-button-card:last-of-type{margin-bottom:0}.bao-radio-button.bao-radio-button-card label.bao-radio-button-content-container{display:flex;flex-direction:column;flex:1;justify-content:center;padding:1rem 1rem 1rem 3.5rem;position:relative;border:1px solid #ced4da;border-radius:.25rem;color:#637381;min-height:3.5rem}.bao-radio-button.bao-radio-button-card label.bao-radio-button-content-container:before{top:1rem;left:0;margin-left:1.125rem}.bao-radio-button.bao-radio-button-card label.bao-radio-button-content-container:after{top:1rem;left:0;margin-left:1rem}.bao-radio-button input:checked~.bao-radio-button-content-container:before{border-color:#097d6c;background-color:#097d6c}.bao-radio-button input:checked~.bao-radio-button-content-container:after{background-image:url(\"data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3e%3ccircle cx='12' cy='12' r='4' fill='%23ffffff'/%3e%3c/svg%3e\")}.bao-radio-button input:disabled~.bao-radio-button-content-container{color:#adb2bd;border-color:#dee2e6}.bao-radio-button input:disabled~.bao-radio-button-content-container:before{border-color:#ced4da;background-color:#ced4da}.bao-radio-button input:disabled~.bao-radio-button-content-container .bao-radio-button-label,.bao-radio-button input:disabled~.bao-radio-button-content-container .bao-radio-button-description{color:#adb2bd}.bao-radio-button.bao-radio-button-hidden-label .bao-radio-button-label{clip:rect(1px,1px,1px,1px);clip-path:inset(50%);height:1px;width:1px;margin:-1px;overflow:hidden;padding:0;position:absolute}.bao-radio-button.bao-radio-button-hidden-label label.bao-radio-button-content-container .bao-radio-button-description{margin-top:0}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2107
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2106
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioButtonComponent, decorators: [{
|
|
2108
2107
|
type: Component,
|
|
2109
2108
|
args: [{ selector: 'bao-radio-button, [bao-radio-button]', providers: [
|
|
2110
2109
|
{
|
|
@@ -2154,9 +2153,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2154
2153
|
}] } });
|
|
2155
2154
|
class BaoRadioDescription {
|
|
2156
2155
|
}
|
|
2157
|
-
BaoRadioDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2158
|
-
BaoRadioDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2159
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2156
|
+
BaoRadioDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2157
|
+
BaoRadioDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoRadioDescription, selector: "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]", host: { classAttribute: "bao-radio-button-description" }, ngImport: i0 });
|
|
2158
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioDescription, decorators: [{
|
|
2160
2159
|
type: Directive,
|
|
2161
2160
|
args: [{
|
|
2162
2161
|
selector: 'bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]',
|
|
@@ -2165,7 +2164,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2165
2164
|
}] });
|
|
2166
2165
|
|
|
2167
2166
|
/*
|
|
2168
|
-
* Copyright (c)
|
|
2167
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2169
2168
|
* Licensed under the MIT license.
|
|
2170
2169
|
* See LICENSE file in the project root for full license information.
|
|
2171
2170
|
*/
|
|
@@ -2176,8 +2175,8 @@ const RADIO_DIRECTIVES = [
|
|
|
2176
2175
|
];
|
|
2177
2176
|
class BaoRadioModule {
|
|
2178
2177
|
}
|
|
2179
|
-
BaoRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2180
|
-
BaoRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2178
|
+
BaoRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2179
|
+
BaoRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioModule, declarations: [BaoRadioButtonComponent,
|
|
2181
2180
|
BaoRadioDescription,
|
|
2182
2181
|
BaoRadioButtonGroupComponent], imports: [CommonModule,
|
|
2183
2182
|
FormsModule,
|
|
@@ -2187,13 +2186,13 @@ BaoRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version:
|
|
|
2187
2186
|
ObserversModule], exports: [BaoRadioButtonComponent,
|
|
2188
2187
|
BaoRadioDescription,
|
|
2189
2188
|
BaoRadioButtonGroupComponent] });
|
|
2190
|
-
BaoRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2189
|
+
BaoRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioModule, imports: [CommonModule,
|
|
2191
2190
|
FormsModule,
|
|
2192
2191
|
ReactiveFormsModule,
|
|
2193
2192
|
BaoCommonComponentsModule,
|
|
2194
2193
|
BaoButtonModule,
|
|
2195
2194
|
ObserversModule] });
|
|
2196
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2195
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoRadioModule, decorators: [{
|
|
2197
2196
|
type: NgModule,
|
|
2198
2197
|
args: [{
|
|
2199
2198
|
imports: [
|
|
@@ -2210,13 +2209,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2210
2209
|
}] });
|
|
2211
2210
|
|
|
2212
2211
|
/*
|
|
2213
|
-
* Copyright (c)
|
|
2212
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2214
2213
|
* Licensed under the MIT license.
|
|
2215
2214
|
* See LICENSE file in the project root for full license information.
|
|
2216
2215
|
*/
|
|
2217
2216
|
|
|
2218
2217
|
/*
|
|
2219
|
-
* Copyright (c)
|
|
2218
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2220
2219
|
* Licensed under the MIT license.
|
|
2221
2220
|
* See LICENSE file in the project root for full license information.
|
|
2222
2221
|
*/
|
|
@@ -2263,9 +2262,9 @@ class BaoTagComponent {
|
|
|
2263
2262
|
}
|
|
2264
2263
|
}
|
|
2265
2264
|
}
|
|
2266
|
-
BaoTagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2267
|
-
BaoTagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2268
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2265
|
+
BaoTagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTagComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2266
|
+
BaoTagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoTagComponent, selector: "bao-tag, [bao-tag], [baoTag]", inputs: { type: "type", variant: "variant", hiddenText: "hiddenText" }, host: { properties: { "class.bao-tag-neutral-light": "type === \"neutral\" && variant === \"light\"", "class.bao-tag-neutral-strong": "type === \"neutral\" && variant === \"strong\"", "class.bao-tag-info-light": "type === \"info\" && variant === \"light\"", "class.bao-tag-info-strong": "type === \"info\" && variant === \"strong\"", "class.bao-tag-positive-light": "type === \"positive\" && variant === \"light\"", "class.bao-tag-positive-strong": "type === \"positive\" && variant === \"strong\"", "class.bao-tag-alert-light": "type === \"alert\" && variant === \"light\"", "class.bao-tag-alert-strong": "type === \"alert\" && variant === \"strong\"", "class.bao-tag-negative-light": "type === \"negative\" && variant === \"light\"", "class.bao-tag-negative-strong": "type === \"negative\" && variant === \"strong\"" }, classAttribute: "bao-tag" }, ngImport: i0, template: "<ng-content select=\"bao-icon\"></ng-content>\n<ng-content></ng-content>\n", styles: [".bao-tag{display:inline-flex;align-items:center;padding:.125rem .5rem;border-radius:.125rem;line-height:1.5rem}.bao-tag.has-icon{padding-left:.25rem}.bao-tag.bao-tag-info-light{background-color:#e6f5f9;color:#004b7b}.bao-tag.bao-tag-info-strong{background-color:#0079c4;color:#fff}.bao-tag.bao-tag-positive-light{background-color:#e7f6f0;color:#025d29}.bao-tag.bao-tag-positive-strong{background-color:#0da566;color:#fff}.bao-tag.bao-tag-negative-light{background-color:#ffebe6;color:#851a00}.bao-tag.bao-tag-negative-strong{background-color:#d3310a;color:#fff}.bao-tag.bao-tag-alert-light{background-color:#fefae6;color:#6c4600}.bao-tag.bao-tag-alert-strong{background-color:#ffb833;color:#212529}.bao-tag.bao-tag-neutral-light{background-color:#dee2e6;color:#212529}.bao-tag.bao-tag-neutral-strong{background-color:#212529;color:#fff}.bao-tag>span{font-weight:700;font-size:.875rem;line-height:1.25rem}.bao-tag>.bao-icon{height:1rem;width:1rem;margin-right:.25rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2267
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTagComponent, decorators: [{
|
|
2269
2268
|
type: Component,
|
|
2270
2269
|
args: [{ selector: 'bao-tag, [bao-tag], [baoTag]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2271
2270
|
class: 'bao-tag',
|
|
@@ -2289,17 +2288,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2289
2288
|
}] } });
|
|
2290
2289
|
|
|
2291
2290
|
/*
|
|
2292
|
-
* Copyright (c)
|
|
2291
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2293
2292
|
* Licensed under the MIT license.
|
|
2294
2293
|
* See LICENSE file in the project root for full license information.
|
|
2295
2294
|
*/
|
|
2296
2295
|
const TAG_DIRECTIVES = [BaoTagComponent];
|
|
2297
2296
|
class BaoTagModule {
|
|
2298
2297
|
}
|
|
2299
|
-
BaoTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2300
|
-
BaoTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2301
|
-
BaoTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2302
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2298
|
+
BaoTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2299
|
+
BaoTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoTagModule, declarations: [BaoTagComponent], imports: [CommonModule], exports: [BaoTagComponent] });
|
|
2300
|
+
BaoTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTagModule, imports: [CommonModule] });
|
|
2301
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTagModule, decorators: [{
|
|
2303
2302
|
type: NgModule,
|
|
2304
2303
|
args: [{
|
|
2305
2304
|
imports: [CommonModule],
|
|
@@ -2309,13 +2308,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2309
2308
|
}] });
|
|
2310
2309
|
|
|
2311
2310
|
/*
|
|
2312
|
-
* Copyright (c)
|
|
2311
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2313
2312
|
* Licensed under the MIT license.
|
|
2314
2313
|
* See LICENSE file in the project root for full license information.
|
|
2315
2314
|
*/
|
|
2316
2315
|
|
|
2317
2316
|
/*
|
|
2318
|
-
* Copyright (c)
|
|
2317
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2319
2318
|
* Licensed under the MIT license.
|
|
2320
2319
|
* See LICENSE file in the project root for full license information.
|
|
2321
2320
|
*/
|
|
@@ -2328,7 +2327,7 @@ class BaoSummaryComponent {
|
|
|
2328
2327
|
* RESPONSIVE (viewport width <=> is 576px)
|
|
2329
2328
|
* COMPACT (viewport width < 576px)
|
|
2330
2329
|
*/
|
|
2331
|
-
this.displayMode = "responsive" /* RESPONSIVE */;
|
|
2330
|
+
this.displayMode = "responsive" /* EDisplayMode.RESPONSIVE */;
|
|
2332
2331
|
/**
|
|
2333
2332
|
* Initialize the ID for summary
|
|
2334
2333
|
*/
|
|
@@ -2380,9 +2379,9 @@ class BaoSummaryComponent {
|
|
|
2380
2379
|
return element;
|
|
2381
2380
|
}
|
|
2382
2381
|
}
|
|
2383
|
-
BaoSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2384
|
-
BaoSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2385
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2382
|
+
BaoSummaryComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryComponent, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2383
|
+
BaoSummaryComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoSummaryComponent, selector: "bao-summary, [bao-summary], [baoSummary]", inputs: { displayMode: "displayMode", id: "id" }, host: { properties: { "class.bao-displaymode-compact": "displayMode === \"compact\"" }, classAttribute: "bao-summary" }, ngImport: i0, template: "<ng-content select=\"bao-label\"></ng-content>\n<ng-content select=\"bao-guiding-text, [bao-guiding-text]\"></ng-content>\n\n<div class=\"bao-summary-content\">\n <div class=\"bao-summary-text\">\n <ng-content select=\"bao-title-text, [bao-title-text]\"></ng-content>\n <ng-content select=\"bao-summary-description\"></ng-content>\n <ng-content\n select=\"bao-list-summary, [bao-list-summary], [baoListSummary]\"\n ></ng-content>\n </div>\n <ng-content select=\"button[bao-button]\"></ng-content>\n</div>\n<ng-content select=\"bao-error, [bao-error]\"></ng-content>\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-summary .bao-label,.bao-summary .bao-guiding-text{margin:0 0 .5rem}.bao-summary .bao-summary-content{display:flex;flex-direction:row;align-items:flex-start;justify-content:space-between;border:.063rem solid #ced4da;box-sizing:border-box;border-radius:.25rem;padding:.5rem .5rem 1rem 1rem}.bao-summary .bao-summary-content .bao-summary-text{display:flex;flex-direction:column;padding:.5rem .5rem 0 0}.bao-summary .bao-summary-content .bao-summary-text .bao-summary-description{font-weight:400;font-size:1rem;line-height:1.5rem}.bao-summary .bao-summary-content .bao-summary-text .bao-summary-description p{margin-bottom:0}.bao-summary .bao-summary-content button.buttonText{display:none}.bao-summary .bao-summary-content button.buttonIcon{margin-left:.5rem}@media (min-width: 576px){.bao-summary:not(.bao-displaymode-compact) .bao-summary-content{padding:1.5rem 1.5rem 2rem 2rem}.bao-summary:not(.bao-displaymode-compact) .bao-summary-content button.buttonText{display:block;margin-left:.5rem}.bao-summary:not(.bao-displaymode-compact) .bao-summary-content button.buttonIcon{display:none}}.bao-summary .bao-error{margin-top:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2384
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryComponent, decorators: [{
|
|
2386
2385
|
type: Component,
|
|
2387
2386
|
args: [{ selector: 'bao-summary, [bao-summary], [baoSummary]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2388
2387
|
class: 'bao-summary',
|
|
@@ -2395,9 +2394,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2395
2394
|
}] } });
|
|
2396
2395
|
class BaoSummaryDescription {
|
|
2397
2396
|
}
|
|
2398
|
-
BaoSummaryDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2399
|
-
BaoSummaryDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2400
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2397
|
+
BaoSummaryDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2398
|
+
BaoSummaryDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoSummaryDescription, selector: "bao-summary-description, [bao-summary-description], [baoSummaryDescription]", host: { classAttribute: "bao-summary-description" }, ngImport: i0 });
|
|
2399
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryDescription, decorators: [{
|
|
2401
2400
|
type: Directive,
|
|
2402
2401
|
args: [{
|
|
2403
2402
|
selector: 'bao-summary-description, [bao-summary-description], [baoSummaryDescription]',
|
|
@@ -2406,15 +2405,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2406
2405
|
}] });
|
|
2407
2406
|
|
|
2408
2407
|
/*
|
|
2409
|
-
* Copyright (c)
|
|
2408
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2410
2409
|
* Licensed under the MIT license.
|
|
2411
2410
|
* See LICENSE file in the project root for full license information.
|
|
2412
2411
|
*/
|
|
2413
2412
|
class BaoListSummaryItem {
|
|
2414
2413
|
}
|
|
2415
|
-
BaoListSummaryItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2416
|
-
BaoListSummaryItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2417
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2414
|
+
BaoListSummaryItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListSummaryItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2415
|
+
BaoListSummaryItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoListSummaryItem, selector: "bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]", host: { attributes: { "role": "listitem" }, classAttribute: "bao-list-summary-item" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: ["@charset \"UTF-8\";.bao-list-summary-item{font-weight:600;color:#000}.bao-list-summary-item:before{content:\"\\2022\";color:#d3310a;font-weight:700;display:inline-block;width:1em;margin-left:-1em}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListSummaryItem, decorators: [{
|
|
2418
2417
|
type: Component,
|
|
2419
2418
|
args: [{ selector: 'bao-list-summary-item, [bao-list-summary-item], [baoListSummaryItem]', template: `<ng-content></ng-content>`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2420
2419
|
class: 'bao-list-summary-item',
|
|
@@ -2423,9 +2422,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2423
2422
|
}] });
|
|
2424
2423
|
class BaoListSummary {
|
|
2425
2424
|
}
|
|
2426
|
-
BaoListSummary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2427
|
-
BaoListSummary.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2428
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2425
|
+
BaoListSummary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListSummary, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
2426
|
+
BaoListSummary.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoListSummary, selector: "bao-list-summary, [bao-list-summary], [baoListSummary]", host: { attributes: { "role": "list" }, classAttribute: "bao-list-summary" }, ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [".bao-list-summary{padding-left:2rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
2427
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoListSummary, decorators: [{
|
|
2429
2428
|
type: Component,
|
|
2430
2429
|
args: [{ selector: 'bao-list-summary, [bao-list-summary], [baoListSummary]', template: `<ng-content></ng-content>`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
2431
2430
|
class: 'bao-list-summary',
|
|
@@ -2434,7 +2433,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2434
2433
|
}] });
|
|
2435
2434
|
|
|
2436
2435
|
/*
|
|
2437
|
-
* Copyright (c)
|
|
2436
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2438
2437
|
* Licensed under the MIT license.
|
|
2439
2438
|
* See LICENSE file in the project root for full license information.
|
|
2440
2439
|
*/
|
|
@@ -2446,16 +2445,16 @@ const SUMMARY_DIRECTIVES = [
|
|
|
2446
2445
|
];
|
|
2447
2446
|
class BaoSummaryModule {
|
|
2448
2447
|
}
|
|
2449
|
-
BaoSummaryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2450
|
-
BaoSummaryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2448
|
+
BaoSummaryModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2449
|
+
BaoSummaryModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryModule, declarations: [BaoSummaryComponent,
|
|
2451
2450
|
BaoSummaryDescription,
|
|
2452
2451
|
BaoListSummary,
|
|
2453
2452
|
BaoListSummaryItem], imports: [CommonModule, BaoCommonComponentsModule], exports: [BaoSummaryComponent,
|
|
2454
2453
|
BaoSummaryDescription,
|
|
2455
2454
|
BaoListSummary,
|
|
2456
2455
|
BaoListSummaryItem] });
|
|
2457
|
-
BaoSummaryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2458
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2456
|
+
BaoSummaryModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryModule, imports: [CommonModule, BaoCommonComponentsModule] });
|
|
2457
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoSummaryModule, decorators: [{
|
|
2459
2458
|
type: NgModule,
|
|
2460
2459
|
args: [{
|
|
2461
2460
|
imports: [CommonModule, BaoCommonComponentsModule],
|
|
@@ -2465,21 +2464,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2465
2464
|
}] });
|
|
2466
2465
|
|
|
2467
2466
|
/*
|
|
2468
|
-
* Copyright (c)
|
|
2467
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2469
2468
|
* Licensed under the MIT license.
|
|
2470
2469
|
* See LICENSE file in the project root for full license information.
|
|
2471
2470
|
*/
|
|
2472
2471
|
|
|
2473
2472
|
/*
|
|
2474
|
-
* Copyright (c)
|
|
2473
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2475
2474
|
* Licensed under the MIT license.
|
|
2476
2475
|
* See LICENSE file in the project root for full license information.
|
|
2477
2476
|
*/
|
|
2478
2477
|
class BaoAvatarContent {
|
|
2479
2478
|
}
|
|
2480
|
-
BaoAvatarContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2481
|
-
BaoAvatarContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2482
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2479
|
+
BaoAvatarContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
2480
|
+
BaoAvatarContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoAvatarContent, selector: "bao-avatar-content, [bao-avatar-content]", host: { classAttribute: "bao-avatar-content" }, exportAs: ["baoAvatarContent"], ngImport: i0 });
|
|
2481
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarContent, decorators: [{
|
|
2483
2482
|
type: Directive,
|
|
2484
2483
|
args: [{
|
|
2485
2484
|
selector: 'bao-avatar-content, [bao-avatar-content]',
|
|
@@ -2547,9 +2546,9 @@ class BaoAvatarComponent {
|
|
|
2547
2546
|
this.renderer.addClass(this.nativeElement, 'display-color');
|
|
2548
2547
|
}
|
|
2549
2548
|
}
|
|
2550
|
-
BaoAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2551
|
-
BaoAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2552
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2549
|
+
BaoAvatarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2550
|
+
BaoAvatarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoAvatarComponent, selector: "bao-avatar", inputs: { profileName: "profileName", color: "color" }, host: { properties: { "class.bao-avatar-color-1": "color === \"background-color-1\"", "class.bao-avatar-color-2": "color === \"background-color-2\"", "class.bao-avatar-color-3": "color === \"background-color-3\"", "class.bao-avatar-color-4": "color === \"background-color-4\"", "class.bao-avatar-color-5": "color === \"background-color-5\"", "class.bao-avatar-color-6": "color === \"background-color-6\"", "class.bao-avatar-color-7": "color === \"background-color-7\"", "class.bao-avatar-color-8": "color === \"background-color-8\"", "class.bao-avatar-color-9": "color === \"background-color-9\"", "class.bao-avatar-color-10": "color === \"background-color-10\"" }, classAttribute: "bao-avatar" }, ngImport: i0, template: "<ng-content select=\"bao-avatar-content, [bao-avatar-content]\"></ng-content>\n", styles: [".bao-avatar-color-1.display-color{background-color:#0380a9}.bao-avatar-color-2.display-color{background-color:#bd4f00}.bao-avatar-color-3.display-color{background-color:#448600}.bao-avatar-color-4.display-color{background-color:#dc00ac}.bao-avatar-color-5.display-color{background-color:#01866e}.bao-avatar-color-6.display-color{background-color:#e00}.bao-avatar-color-7.display-color{background-color:#980bad}.bao-avatar-color-8.display-color{background-color:#0057ff}.bao-avatar-color-9.display-color{background-color:#a36b00}.bao-avatar-color-10.display-color{background-color:#e0007c}.bao-avatar{display:inline-flex;justify-content:center;align-items:center;border:.0625rem solid transparent;width:1.5rem;height:1.5rem;border-radius:2rem}.bao-avatar>span.bao-avatar-content{font-weight:700;font-size:.875rem;line-height:1.25rem;text-transform:uppercase;color:#fff}.bao-avatar>img.bao-avatar-content{border-radius:2rem;max-width:100%}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
2551
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarComponent, decorators: [{
|
|
2553
2552
|
type: Component,
|
|
2554
2553
|
args: [{ selector: 'bao-avatar', encapsulation: ViewEncapsulation.None, host: {
|
|
2555
2554
|
class: 'bao-avatar',
|
|
@@ -2571,17 +2570,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2571
2570
|
}] } });
|
|
2572
2571
|
|
|
2573
2572
|
/*
|
|
2574
|
-
* Copyright (c)
|
|
2573
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2575
2574
|
* Licensed under the MIT license.
|
|
2576
2575
|
* See LICENSE file in the project root for full license information.
|
|
2577
2576
|
*/
|
|
2578
2577
|
const AVATAR_DIRECTIVES = [BaoAvatarComponent, BaoAvatarContent];
|
|
2579
2578
|
class BaoAvatarModule {
|
|
2580
2579
|
}
|
|
2581
|
-
BaoAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2582
|
-
BaoAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2583
|
-
BaoAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2584
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2580
|
+
BaoAvatarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2581
|
+
BaoAvatarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarModule, declarations: [BaoAvatarComponent, BaoAvatarContent], imports: [CommonModule], exports: [BaoAvatarComponent, BaoAvatarContent] });
|
|
2582
|
+
BaoAvatarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarModule, imports: [CommonModule] });
|
|
2583
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoAvatarModule, decorators: [{
|
|
2585
2584
|
type: NgModule,
|
|
2586
2585
|
args: [{
|
|
2587
2586
|
imports: [CommonModule],
|
|
@@ -2591,13 +2590,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2591
2590
|
}] });
|
|
2592
2591
|
|
|
2593
2592
|
/*
|
|
2594
|
-
* Copyright (c)
|
|
2593
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2595
2594
|
* Licensed under the MIT license.
|
|
2596
2595
|
* See LICENSE file in the project root for full license information.
|
|
2597
2596
|
*/
|
|
2598
2597
|
|
|
2599
2598
|
/*
|
|
2600
|
-
* Copyright (c)
|
|
2599
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2601
2600
|
* Licensed under the MIT license.
|
|
2602
2601
|
* See LICENSE file in the project root for full license information.
|
|
2603
2602
|
*/
|
|
@@ -2627,9 +2626,9 @@ class BaoTabHeader {
|
|
|
2627
2626
|
this.renderer.setAttribute(this.nativeElement, 'tabindex', '-1');
|
|
2628
2627
|
}
|
|
2629
2628
|
}
|
|
2630
|
-
BaoTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2631
|
-
BaoTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2632
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2629
|
+
BaoTabHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabHeader, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2630
|
+
BaoTabHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoTabHeader, selector: "bao-tab-header, [bao-tab-header]", outputs: { onTabClick: "onTabClick" }, host: { listeners: { "click": "onClick($event.target)" }, classAttribute: "bao-tab-header" }, exportAs: ["baoTabHeader"], ngImport: i0 });
|
|
2631
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabHeader, decorators: [{
|
|
2633
2632
|
type: Directive,
|
|
2634
2633
|
args: [{
|
|
2635
2634
|
selector: 'bao-tab-header, [bao-tab-header]',
|
|
@@ -2659,9 +2658,9 @@ class BaoTabPanel {
|
|
|
2659
2658
|
this.renderer.setAttribute(this.nativeElement, 'aria-expanded', 'false');
|
|
2660
2659
|
}
|
|
2661
2660
|
}
|
|
2662
|
-
BaoTabPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2663
|
-
BaoTabPanel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2664
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2661
|
+
BaoTabPanel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabPanel, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2662
|
+
BaoTabPanel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoTabPanel, selector: "bao-panel, [bao-panel]", host: { classAttribute: "bao-panel" }, exportAs: ["baoPanel"], ngImport: i0 });
|
|
2663
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabPanel, decorators: [{
|
|
2665
2664
|
type: Directive,
|
|
2666
2665
|
args: [{
|
|
2667
2666
|
selector: 'bao-panel, [bao-panel]',
|
|
@@ -2793,9 +2792,9 @@ class BaoTablistComponent {
|
|
|
2793
2792
|
return nextIndexInTablist.toString();
|
|
2794
2793
|
}
|
|
2795
2794
|
}
|
|
2796
|
-
BaoTablistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2797
|
-
BaoTablistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
2798
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2795
|
+
BaoTablistComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTablistComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
2796
|
+
BaoTablistComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoTablistComponent, selector: "bao-tablist, [bao-tablist]", inputs: { size: "size", ariaLabel: "ariaLabel" }, outputs: { activeTabChange: "activeTabChange" }, host: { listeners: { "window:keydown.arrowleft": "leftKeyEvent()", "window:keydown.arrowright": "rightKeyEvent()", "window:keydown.tab": "tabKeyEvent()", "window:keydown.shift.tab": "tabShiftKeyEvent()" }, properties: { "class.bao-tablist-small": "size === \"small\"", "class.bao-tablist-medium": "size === \"medium\"", "class.bao-tablist-large": "size === \"large\"" }, classAttribute: "bao-tablist" }, queries: [{ propertyName: "tabHeaders", predicate: BaoTabHeader }], ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".bao-tablist{color:#637381;display:block;overflow:auto;white-space:nowrap;box-shadow:inset 0 -.125rem #ced4da}.bao-tablist.bao-tablist-small{font-weight:700;font-size:.75rem;line-height:1rem}.bao-tablist.bao-tablist-small>.bao-tab-header{padding:.5rem}.bao-tablist.bao-tablist-medium{font-weight:700;font-size:.875rem;line-height:1.25rem}.bao-tablist.bao-tablist-medium>.bao-tab-header{padding:.625rem 1rem}.bao-tablist.bao-tablist-large{font-weight:700;font-size:1rem;line-height:1.5rem}.bao-tablist.bao-tablist-large>.bao-tab-header{padding:1rem}.bao-tablist button{all:unset}.bao-tablist>.bao-tab-header:hover:not(:disabled){color:#097d6c;cursor:pointer;box-shadow:inset 0 -.125rem #097d6c}.bao-tablist>.bao-tab-header.active{color:#097d6c;box-shadow:inset 0 -.125rem #097d6c}.bao-tablist>.bao-tab-header:focus.focus-visible{box-shadow:inset 0 0 0 .1875rem #98bcde;color:#637381}.bao-tablist>.bao-tab-header:disabled{color:#adb2bd}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
2797
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTablistComponent, decorators: [{
|
|
2799
2798
|
type: Component,
|
|
2800
2799
|
args: [{ selector: 'bao-tablist, [bao-tablist]', encapsulation: ViewEncapsulation.None, host: {
|
|
2801
2800
|
class: 'bao-tablist',
|
|
@@ -2873,9 +2872,9 @@ class BaoTabsContainer {
|
|
|
2873
2872
|
});
|
|
2874
2873
|
}
|
|
2875
2874
|
}
|
|
2876
|
-
BaoTabsContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2877
|
-
BaoTabsContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
2878
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2875
|
+
BaoTabsContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsContainer, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
2876
|
+
BaoTabsContainer.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoTabsContainer, selector: "bao-tabs, [bao-tabs]", host: { classAttribute: "bao-tabs" }, queries: [{ propertyName: "tablist", first: true, predicate: BaoTablistComponent, descendants: true }], exportAs: ["baoTabs"], ngImport: i0 });
|
|
2877
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsContainer, decorators: [{
|
|
2879
2878
|
type: Directive,
|
|
2880
2879
|
args: [{
|
|
2881
2880
|
selector: 'bao-tabs, [bao-tabs]',
|
|
@@ -2890,7 +2889,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2890
2889
|
}] } });
|
|
2891
2890
|
|
|
2892
2891
|
/*
|
|
2893
|
-
* Copyright (c)
|
|
2892
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2894
2893
|
* Licensed under the MIT license.
|
|
2895
2894
|
* See LICENSE file in the project root for full license information.
|
|
2896
2895
|
*/
|
|
@@ -2902,16 +2901,16 @@ const TABS_DIRECTIVES = [
|
|
|
2902
2901
|
];
|
|
2903
2902
|
class BaoTabsModule {
|
|
2904
2903
|
}
|
|
2905
|
-
BaoTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2906
|
-
BaoTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
2904
|
+
BaoTabsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
2905
|
+
BaoTabsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsModule, declarations: [BaoTabsContainer,
|
|
2907
2906
|
BaoTablistComponent,
|
|
2908
2907
|
BaoTabHeader,
|
|
2909
2908
|
BaoTabPanel], imports: [CommonModule], exports: [BaoTabsContainer,
|
|
2910
2909
|
BaoTablistComponent,
|
|
2911
2910
|
BaoTabHeader,
|
|
2912
2911
|
BaoTabPanel] });
|
|
2913
|
-
BaoTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
2914
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2912
|
+
BaoTabsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsModule, imports: [CommonModule] });
|
|
2913
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoTabsModule, decorators: [{
|
|
2915
2914
|
type: NgModule,
|
|
2916
2915
|
args: [{
|
|
2917
2916
|
imports: [CommonModule],
|
|
@@ -2921,41 +2920,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
2921
2920
|
}] });
|
|
2922
2921
|
|
|
2923
2922
|
/*
|
|
2924
|
-
* Copyright (c)
|
|
2923
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2925
2924
|
* Licensed under the MIT license.
|
|
2926
2925
|
* See LICENSE file in the project root for full license information.
|
|
2927
2926
|
*/
|
|
2928
2927
|
|
|
2929
2928
|
/*
|
|
2930
|
-
* Copyright (c)
|
|
2931
|
-
* Licensed under the MIT license.
|
|
2932
|
-
* See LICENSE file in the project root for full license information.
|
|
2933
|
-
*/
|
|
2934
|
-
/**
|
|
2935
|
-
* Animations used by MatDialog.
|
|
2936
|
-
* @docs-private
|
|
2937
|
-
*/
|
|
2938
|
-
const baoModalAnimations = {
|
|
2939
|
-
/** Animation that is applied on the modal container by default. */
|
|
2940
|
-
modalContainer: trigger('modalContainer', [
|
|
2941
|
-
// Note: The `enter` animation transitions to `transform: none`, because for some reason
|
|
2942
|
-
// specifying the transform explicitly, causes IE both to blur the modal content and
|
|
2943
|
-
// decimate the animation performance. Leaving it as `none` solves both issues.
|
|
2944
|
-
state('void, exit', style({ opacity: 0, transform: 'scale(0.7)' })),
|
|
2945
|
-
state('enter', style({ transform: 'none' })),
|
|
2946
|
-
transition('* => enter', group([
|
|
2947
|
-
animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'none', opacity: 1 })),
|
|
2948
|
-
query('@*', animateChild(), { optional: true })
|
|
2949
|
-
])),
|
|
2950
|
-
transition('* => void, * => exit', group([
|
|
2951
|
-
animate('75ms cubic-bezier(0.4, 0.0, 0.2, 1)', style({ opacity: 0 })),
|
|
2952
|
-
query('@*', animateChild(), { optional: true })
|
|
2953
|
-
]))
|
|
2954
|
-
])
|
|
2955
|
-
};
|
|
2956
|
-
|
|
2957
|
-
/*
|
|
2958
|
-
* Copyright (c) 2022 Ville de Montreal. All rights reserved.
|
|
2929
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
2959
2930
|
* Licensed under the MIT license.
|
|
2960
2931
|
* See LICENSE file in the project root for full license information.
|
|
2961
2932
|
*/
|
|
@@ -3198,9 +3169,9 @@ class _BaoModalContainerBase extends BasePortalOutlet {
|
|
|
3198
3169
|
return element === activeElement || element.contains(activeElement);
|
|
3199
3170
|
}
|
|
3200
3171
|
}
|
|
3201
|
-
_BaoModalContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3202
|
-
_BaoModalContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3203
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3172
|
+
_BaoModalContainerBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: _BaoModalContainerBase, deps: [{ token: i0.ElementRef }, { token: i1$3.ConfigurableFocusTrapFactory }, { token: i0.ChangeDetectorRef }, { token: DOCUMENT, optional: true }, { token: BaoModalInitialConfig }, { token: i1$3.InteractivityChecker }, { token: i0.NgZone }, { token: i1$3.FocusMonitor }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3173
|
+
_BaoModalContainerBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: _BaoModalContainerBase, viewQueries: [{ propertyName: "_portalOutlet", first: true, predicate: CdkPortalOutlet, descendants: true, static: true }], usesInheritance: true, ngImport: i0 });
|
|
3174
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: _BaoModalContainerBase, decorators: [{
|
|
3204
3175
|
type: Directive
|
|
3205
3176
|
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i1$3.ConfigurableFocusTrapFactory }, { type: i0.ChangeDetectorRef }, { type: undefined, decorators: [{
|
|
3206
3177
|
type: Optional
|
|
@@ -3217,39 +3188,29 @@ class BaoModalContainer extends _BaoModalContainerBase {
|
|
|
3217
3188
|
/** State of the modal animation. */
|
|
3218
3189
|
this._state = 'enter';
|
|
3219
3190
|
}
|
|
3220
|
-
|
|
3221
|
-
|
|
3222
|
-
|
|
3223
|
-
await this._trapFocus();
|
|
3224
|
-
this._animationStateChanged.next({ state: 'opened', totalTime });
|
|
3225
|
-
}
|
|
3226
|
-
else if (toState === 'exit') {
|
|
3227
|
-
this._restoreFocus();
|
|
3228
|
-
this._animationStateChanged.next({ state: 'closed', totalTime });
|
|
3229
|
-
}
|
|
3230
|
-
}
|
|
3231
|
-
/** Callback, invoked when an animation on the host starts. */
|
|
3232
|
-
_onAnimationStart({ toState, totalTime }) {
|
|
3233
|
-
if (toState === 'enter') {
|
|
3234
|
-
this._animationStateChanged.next({ state: 'opening', totalTime });
|
|
3235
|
-
}
|
|
3236
|
-
else if (toState === 'exit' || toState === 'void') {
|
|
3237
|
-
this._animationStateChanged.next({ state: 'closing', totalTime });
|
|
3238
|
-
}
|
|
3191
|
+
_startOpenAnimation() {
|
|
3192
|
+
this._animationStateChanged.emit({ state: 'opening', totalTime: 20 });
|
|
3193
|
+
void Promise.resolve().then(() => this._finishDialogOpen());
|
|
3239
3194
|
}
|
|
3240
3195
|
/** Starts the modal exit animation. */
|
|
3241
3196
|
_startExitAnimation() {
|
|
3242
|
-
this.
|
|
3243
|
-
|
|
3244
|
-
|
|
3245
|
-
this.
|
|
3197
|
+
this._animationStateChanged.emit({ state: 'closed', totalTime: 20 });
|
|
3198
|
+
}
|
|
3199
|
+
_finishDialogOpen() {
|
|
3200
|
+
this._openAnimationDone(20);
|
|
3201
|
+
}
|
|
3202
|
+
_openAnimationDone(totalTime) {
|
|
3203
|
+
if (this._config.delayFocusTrap) {
|
|
3204
|
+
void this._trapFocus();
|
|
3205
|
+
}
|
|
3206
|
+
this._animationStateChanged.next({ state: 'opened', totalTime });
|
|
3246
3207
|
}
|
|
3247
3208
|
}
|
|
3248
|
-
BaoModalContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3249
|
-
BaoModalContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3250
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3209
|
+
BaoModalContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalContainer, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
3210
|
+
BaoModalContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoModalContainer, selector: "bao-modal-container", host: { attributes: { "tabindex": "-1", "aria-modal": "true" }, properties: { "id": "_id", "attr.role": "_config.role", "attr.aria-labelledby": "_config.ariaLabel ? null : _ariaLabelledBy", "attr.aria-label": "_config.ariaLabel", "attr.aria-describedby": "_config.ariaDescribedBy || null" }, classAttribute: "bao-modal-container" }, usesInheritance: true, ngImport: i0, template: "<ng-template cdkPortalOutlet></ng-template>\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-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex}.cdk-overlay-pane.bao-modal-mobil-full{width:100%;height:100%}.cdk-overlay-pane.bao-modal-mobil-compact{width:300px;height:100%}@media (min-width: 768px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md,.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}@media (min-width: 992px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md{width:800px;height:auto}.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:black}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.bao-modal-container{display:block;overflow:auto;width:100%;height:100%;min-height:inherit;max-height:inherit;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:.5rem;outline:0}.bao-modal-content{display:flex;flex-direction:column;height:100%}.bao-modal-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #ced4da;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.bao-modal-header .bao-modal-title{font-size:1rem;line-height:1.5rem;margin:1rem 0 1rem 1rem}.bao-modal-header button{margin:.5rem}.bao-modal-body{display:block;padding:1rem;overflow:auto;flex-grow:1}@media (min-width: 768px){.bao-modal-body{padding:2rem}}.bao-modal-footer{display:flex;flex-wrap:wrap;padding:1rem;border-top:1px solid #ced4da;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.bao-modal-footer.bao-modal-footer-order{justify-content:unset;flex-direction:column-reverse}.bao-modal-footer button{text-align:center}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:100%;display:block}.bao-modal-footer .bao-button-secondary{margin-bottom:.5rem}.bao-modal-footer .bao-button-tertiary{display:none}@media (min-width: 768px){.bao-modal-footer{justify-content:flex-end}.bao-modal-footer.bao-modal-footer-order{flex-direction:row-reverse}.bao-modal-footer .bao-button-primary{margin-left:1rem}.bao-modal-footer .bao-button-secondary{margin-bottom:0}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:auto}.bao-modal-footer .bao-button-tertiary{display:block}}\n"], dependencies: [{ kind: "directive", type: i3.CdkPortalOutlet, selector: "[cdkPortalOutlet]", inputs: ["cdkPortalOutlet"], outputs: ["attached"], exportAs: ["cdkPortalOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None });
|
|
3211
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalContainer, decorators: [{
|
|
3251
3212
|
type: Component,
|
|
3252
|
-
args: [{ selector: 'bao-modal-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default,
|
|
3213
|
+
args: [{ selector: 'bao-modal-container', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.Default, host: {
|
|
3253
3214
|
class: 'bao-modal-container',
|
|
3254
3215
|
tabindex: '-1',
|
|
3255
3216
|
'aria-modal': 'true',
|
|
@@ -3257,11 +3218,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
3257
3218
|
'[attr.role]': '_config.role',
|
|
3258
3219
|
'[attr.aria-labelledby]': '_config.ariaLabel ? null : _ariaLabelledBy',
|
|
3259
3220
|
'[attr.aria-label]': '_config.ariaLabel',
|
|
3260
|
-
'[attr.aria-describedby]': '_config.ariaDescribedBy || null'
|
|
3261
|
-
|
|
3262
|
-
'(@modalContainer.start)': '_onAnimationStart($event)',
|
|
3263
|
-
'(@modalContainer.done)': '_onAnimationDone($event)'
|
|
3264
|
-
}, template: "<ng-template cdkPortalOutlet></ng-template>\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-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex}.cdk-overlay-pane.bao-modal-mobil-full{width:100%;height:100%}.cdk-overlay-pane.bao-modal-mobil-compact{width:300px;height:100%}@media (min-width: 768px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md,.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}@media (min-width: 992px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md{width:800px;height:auto}.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}.cdk-overlay-backdrop{position:absolute;top:0;bottom:0;left:0;right:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:black}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.bao-modal-container{display:block;overflow:auto;width:100%;height:100%;min-height:inherit;max-height:inherit;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:.5rem;outline:0}.bao-modal-content{display:flex;flex-direction:column;height:100%}.bao-modal-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #ced4da;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.bao-modal-header .bao-modal-title{font-size:1rem;line-height:1.5rem;margin:1rem 0 1rem 1rem}.bao-modal-header button{margin:.5rem}.bao-modal-body{display:block;padding:1rem;overflow:auto;flex-grow:1}@media (min-width: 768px){.bao-modal-body{padding:2rem}}.bao-modal-footer{display:flex;flex-wrap:wrap;padding:1rem;border-top:1px solid #ced4da;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.bao-modal-footer.bao-modal-footer-order{justify-content:unset;flex-direction:column-reverse}.bao-modal-footer button{text-align:center}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:100%;display:block}.bao-modal-footer .bao-button-secondary{margin-bottom:.5rem}.bao-modal-footer .bao-button-tertiary{display:none}@media (min-width: 768px){.bao-modal-footer{justify-content:flex-end}.bao-modal-footer.bao-modal-footer-order{flex-direction:row-reverse}.bao-modal-footer .bao-button-primary{margin-left:1rem}.bao-modal-footer .bao-button-secondary{margin-bottom:0}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:auto}.bao-modal-footer .bao-button-tertiary{display:block}}\n"] }]
|
|
3221
|
+
'[attr.aria-describedby]': '_config.ariaDescribedBy || null'
|
|
3222
|
+
}, template: "<ng-template cdkPortalOutlet></ng-template>\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-container,.cdk-global-overlay-wrapper{pointer-events:none;top:0;left:0;height:100%;width:100%}.cdk-overlay-container{position:fixed;z-index:1000}.cdk-overlay-container:empty{display:none}.cdk-global-overlay-wrapper{display:flex;position:absolute;z-index:1000}.cdk-overlay-pane{position:absolute;pointer-events:auto;box-sizing:border-box;z-index:1000;display:flex}.cdk-overlay-pane.bao-modal-mobil-full{width:100%;height:100%}.cdk-overlay-pane.bao-modal-mobil-compact{width:300px;height:100%}@media (min-width: 768px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md,.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}@media (min-width: 992px){.cdk-overlay-pane{width:500px;height:auto}.cdk-overlay-pane.bao-modal-lg{width:calc(100% - 4rem);height:calc(100% - 4rem)}.cdk-overlay-pane.bao-modal-md{width:800px;height:auto}.cdk-overlay-pane.bao-modal-sm{width:500px;height:auto}}.cdk-overlay-backdrop{position:absolute;inset:0;z-index:1000;pointer-events:auto;-webkit-tap-highlight-color:transparent;transition:opacity .4s cubic-bezier(.25,.8,.25,1);opacity:0}.cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-high-contrast-active .cdk-overlay-backdrop.cdk-overlay-backdrop-showing{opacity:.6}.cdk-overlay-dark-backdrop{background:black}.cdk-overlay-transparent-backdrop,.cdk-overlay-transparent-backdrop.cdk-overlay-backdrop-showing{opacity:.5}.cdk-overlay-connected-position-bounding-box{position:absolute;z-index:1000;display:flex;flex-direction:column;min-width:1px;min-height:1px}.cdk-global-scrollblock{position:fixed;width:100%;overflow-y:scroll}.bao-modal-container{display:block;overflow:auto;width:100%;height:100%;min-height:inherit;max-height:inherit;background-color:#fff;background-clip:padding-box;border:0 solid rgba(0,0,0,.2);border-radius:.5rem;outline:0}.bao-modal-content{display:flex;flex-direction:column;height:100%}.bao-modal-header{flex:0 0 auto;display:flex;align-items:flex-start;justify-content:space-between;border-bottom:1px solid #ced4da;border-top-left-radius:.5rem;border-top-right-radius:.5rem}.bao-modal-header .bao-modal-title{font-size:1rem;line-height:1.5rem;margin:1rem 0 1rem 1rem}.bao-modal-header button{margin:.5rem}.bao-modal-body{display:block;padding:1rem;overflow:auto;flex-grow:1}@media (min-width: 768px){.bao-modal-body{padding:2rem}}.bao-modal-footer{display:flex;flex-wrap:wrap;padding:1rem;border-top:1px solid #ced4da;border-bottom-right-radius:.5rem;border-bottom-left-radius:.5rem}.bao-modal-footer.bao-modal-footer-order{justify-content:unset;flex-direction:column-reverse}.bao-modal-footer button{text-align:center}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:100%;display:block}.bao-modal-footer .bao-button-secondary{margin-bottom:.5rem}.bao-modal-footer .bao-button-tertiary{display:none}@media (min-width: 768px){.bao-modal-footer{justify-content:flex-end}.bao-modal-footer.bao-modal-footer-order{flex-direction:row-reverse}.bao-modal-footer .bao-button-primary{margin-left:1rem}.bao-modal-footer .bao-button-secondary{margin-bottom:0}.bao-modal-footer .bao-button-primary,.bao-modal-footer .bao-button-secondary{width:auto}.bao-modal-footer .bao-button-tertiary{display:block}}\n"] }]
|
|
3265
3223
|
}] });
|
|
3266
3224
|
|
|
3267
3225
|
// Counter for unique modal ids.
|
|
@@ -3285,7 +3243,7 @@ class BaoModalRef {
|
|
|
3285
3243
|
/** Subject for notifying the user that the modal has started closing. */
|
|
3286
3244
|
this._beforeClosed = new Subject();
|
|
3287
3245
|
/** Current state of the modal. */
|
|
3288
|
-
this._state = 0 /* OPEN */;
|
|
3246
|
+
this._state = 0 /* BaoModalState.OPEN */;
|
|
3289
3247
|
// Pass the id along to the container.
|
|
3290
3248
|
_containerInstance._id = id;
|
|
3291
3249
|
// Emit when opening animation completes
|
|
@@ -3350,9 +3308,12 @@ class BaoModalRef {
|
|
|
3350
3308
|
// vast majority of cases the timeout will have been cleared before it has the chance to fire.
|
|
3351
3309
|
this._closeFallbackTimeout = setTimeout(() => this._finishModalClose(), event.totalTime + 100);
|
|
3352
3310
|
});
|
|
3353
|
-
this._state = 1 /* CLOSING */;
|
|
3311
|
+
this._state = 1 /* BaoModalState.CLOSING */;
|
|
3354
3312
|
this._containerInstance._startExitAnimation();
|
|
3355
3313
|
}
|
|
3314
|
+
startOpenAnimation() {
|
|
3315
|
+
this._containerInstance._startOpenAnimation();
|
|
3316
|
+
}
|
|
3356
3317
|
/**
|
|
3357
3318
|
* Gets an observable that is notified when the modal is finished opening.
|
|
3358
3319
|
*/
|
|
@@ -3434,7 +3395,7 @@ class BaoModalRef {
|
|
|
3434
3395
|
* and disposing the overlay.
|
|
3435
3396
|
*/
|
|
3436
3397
|
_finishModalClose() {
|
|
3437
|
-
this._state = 2 /* CLOSED */;
|
|
3398
|
+
this._state = 2 /* BaoModalState.CLOSED */;
|
|
3438
3399
|
this._overlayRef.dispose();
|
|
3439
3400
|
}
|
|
3440
3401
|
/** Fetches the position strategy object from the overlay ref. */
|
|
@@ -3458,14 +3419,14 @@ function _closeModalVia(ref, interactionType, result) {
|
|
|
3458
3419
|
}
|
|
3459
3420
|
|
|
3460
3421
|
/*
|
|
3461
|
-
* Copyright (c)
|
|
3422
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3462
3423
|
* Licensed under the MIT license.
|
|
3463
3424
|
* See LICENSE file in the project root for full license information.
|
|
3464
3425
|
*/
|
|
3465
3426
|
/** Injection token that can be used to access the data that was passed in to a modal. */
|
|
3466
3427
|
const BAO_MODAL_DATA = new InjectionToken('BaoModalData');
|
|
3467
3428
|
class BaoModalBase {
|
|
3468
|
-
constructor(_overlay, _injector, _parentModal, _overlayContainer, _modalRefConstructor, _modalContainerType, _modalDataToken
|
|
3429
|
+
constructor(_overlay, _injector, _parentModal, _overlayContainer, _modalRefConstructor, _modalContainerType, _modalDataToken) {
|
|
3469
3430
|
this._overlay = _overlay;
|
|
3470
3431
|
this._injector = _injector;
|
|
3471
3432
|
this._parentModal = _parentModal;
|
|
@@ -3473,7 +3434,6 @@ class BaoModalBase {
|
|
|
3473
3434
|
this._modalRefConstructor = _modalRefConstructor;
|
|
3474
3435
|
this._modalContainerType = _modalContainerType;
|
|
3475
3436
|
this._modalDataToken = _modalDataToken;
|
|
3476
|
-
this._animationMode = _animationMode;
|
|
3477
3437
|
this.afterAllClosed = defer(() => this.openModals.length
|
|
3478
3438
|
? this.getAfterAllClosed()
|
|
3479
3439
|
: this.getAfterAllClosed().pipe(startWith(undefined)));
|
|
@@ -3513,21 +3473,6 @@ class BaoModalBase {
|
|
|
3513
3473
|
}
|
|
3514
3474
|
const overlayRef = this._createOverlay(conf);
|
|
3515
3475
|
const modalContainer = this._attachModalContainer(overlayRef, conf);
|
|
3516
|
-
if (this._animationMode !== 'NoopAnimations') {
|
|
3517
|
-
const animationStateSubscription = modalContainer._animationStateChanged.subscribe(modalAnimationEvent => {
|
|
3518
|
-
if (modalAnimationEvent.state === 'opening') {
|
|
3519
|
-
this._modalAnimatingOpen = true;
|
|
3520
|
-
}
|
|
3521
|
-
if (modalAnimationEvent.state === 'opened') {
|
|
3522
|
-
this._modalAnimatingOpen = false;
|
|
3523
|
-
animationStateSubscription.unsubscribe();
|
|
3524
|
-
}
|
|
3525
|
-
});
|
|
3526
|
-
if (!this._animationStateSubscriptions) {
|
|
3527
|
-
this._animationStateSubscriptions = new Subscription();
|
|
3528
|
-
}
|
|
3529
|
-
this._animationStateSubscriptions.add(animationStateSubscription);
|
|
3530
|
-
}
|
|
3531
3476
|
const modalRef = this._attachModalContent(componentOrTemplateRef, modalContainer, overlayRef, conf);
|
|
3532
3477
|
this._lastModalRef = modalRef;
|
|
3533
3478
|
// If this is the first modal that we're opening, hide all the non-overlay content.
|
|
@@ -3598,6 +3543,7 @@ class BaoModalBase {
|
|
|
3598
3543
|
});
|
|
3599
3544
|
const containerPortal = new ComponentPortal(this._modalContainerType, config.viewContainerRef, injector);
|
|
3600
3545
|
const containerRef = overlay.attach(containerPortal);
|
|
3546
|
+
containerRef.instance._startOpenAnimation();
|
|
3601
3547
|
return containerRef.instance;
|
|
3602
3548
|
}
|
|
3603
3549
|
/**
|
|
@@ -3711,36 +3657,31 @@ class BaoModalBase {
|
|
|
3711
3657
|
};
|
|
3712
3658
|
}
|
|
3713
3659
|
}
|
|
3714
|
-
BaoModalBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3715
|
-
BaoModalBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3716
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3660
|
+
BaoModalBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalBase, deps: "invalid", target: i0.ɵɵFactoryTarget.Directive });
|
|
3661
|
+
BaoModalBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoModalBase, ngImport: i0 });
|
|
3662
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalBase, decorators: [{
|
|
3717
3663
|
type: Directive
|
|
3718
|
-
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.Injector }, { type: undefined }, { type: i1$4.OverlayContainer }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }
|
|
3664
|
+
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.Injector }, { type: undefined }, { type: i1$4.OverlayContainer }, { type: i0.Type }, { type: i0.Type }, { type: i0.InjectionToken }]; } });
|
|
3719
3665
|
/**
|
|
3720
3666
|
* Service to open modal.
|
|
3721
3667
|
*/
|
|
3722
3668
|
class BaoModal extends BaoModalBase {
|
|
3723
|
-
constructor(overlay, injector, parentModal, overlayContainer
|
|
3724
|
-
super(overlay, injector, parentModal, overlayContainer, BaoModalRef, BaoModalContainer, BAO_MODAL_DATA
|
|
3669
|
+
constructor(overlay, injector, parentModal, overlayContainer) {
|
|
3670
|
+
super(overlay, injector, parentModal, overlayContainer, BaoModalRef, BaoModalContainer, BAO_MODAL_DATA);
|
|
3725
3671
|
}
|
|
3726
3672
|
}
|
|
3727
|
-
BaoModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3728
|
-
BaoModal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
3729
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3673
|
+
BaoModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModal, deps: [{ token: i1$4.Overlay }, { token: i0.Injector }, { token: BaoModal, optional: true, skipSelf: true }, { token: i1$4.OverlayContainer }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3674
|
+
BaoModal.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModal });
|
|
3675
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModal, decorators: [{
|
|
3730
3676
|
type: Injectable
|
|
3731
3677
|
}], ctorParameters: function () { return [{ type: i1$4.Overlay }, { type: i0.Injector }, { type: BaoModal, decorators: [{
|
|
3732
3678
|
type: Optional
|
|
3733
3679
|
}, {
|
|
3734
3680
|
type: SkipSelf
|
|
3735
|
-
}] }, { type: i1$4.OverlayContainer }
|
|
3736
|
-
type: Optional
|
|
3737
|
-
}, {
|
|
3738
|
-
type: Inject,
|
|
3739
|
-
args: [ANIMATION_MODULE_TYPE]
|
|
3740
|
-
}] }]; } });
|
|
3681
|
+
}] }, { type: i1$4.OverlayContainer }]; } });
|
|
3741
3682
|
|
|
3742
3683
|
/*
|
|
3743
|
-
* Copyright (c)
|
|
3684
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3744
3685
|
* Licensed under the MIT license.
|
|
3745
3686
|
* See LICENSE file in the project root for full license information.
|
|
3746
3687
|
*/
|
|
@@ -3780,9 +3721,9 @@ class BaoModalClose {
|
|
|
3780
3721
|
_closeModalVia(this.modalRef, event.screenX === 0 && event.screenY === 0 ? 'keyboard' : 'mouse', this.dialogResult);
|
|
3781
3722
|
}
|
|
3782
3723
|
}
|
|
3783
|
-
BaoModalClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3784
|
-
BaoModalClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
3785
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3724
|
+
BaoModalClose.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalClose, deps: [{ token: BaoModalRef, optional: true }, { token: i0.ElementRef }, { token: BaoModal }], target: i0.ɵɵFactoryTarget.Directive });
|
|
3725
|
+
BaoModalClose.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoModalClose, selector: "[bao-modal-close], [baoModalClose]", inputs: { ariaLabel: ["aria-label", "ariaLabel"], type: "type", dialogResult: ["bao-modal-close", "dialogResult"], _baoModalClose: ["baoModalClose", "_baoModalClose"] }, host: { listeners: { "click": "_onButtonClick($event)" }, properties: { "attr.aria-label": "ariaLabel || null", "attr.type": "type" } }, exportAs: ["BaoModalClose"], usesOnChanges: true, ngImport: i0 });
|
|
3726
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalClose, decorators: [{
|
|
3786
3727
|
type: Directive,
|
|
3787
3728
|
args: [{
|
|
3788
3729
|
selector: '[bao-modal-close], [baoModalClose]',
|
|
@@ -3819,34 +3760,20 @@ function getClosestDialog(element, openDialogs) {
|
|
|
3819
3760
|
}
|
|
3820
3761
|
|
|
3821
3762
|
/*
|
|
3822
|
-
* Copyright (c)
|
|
3763
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3823
3764
|
* Licensed under the MIT license.
|
|
3824
3765
|
* See LICENSE file in the project root for full license information.
|
|
3825
3766
|
*/
|
|
3826
3767
|
const MODAL_DIRECTIVES = [BaoModalContainer, BaoModalClose];
|
|
3827
3768
|
class BaoModalModule {
|
|
3828
3769
|
}
|
|
3829
|
-
BaoModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3830
|
-
BaoModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3831
|
-
|
|
3832
|
-
|
|
3833
|
-
BrowserAnimationsModule,
|
|
3834
|
-
NoopAnimationsModule], exports: [BaoModalContainer, BaoModalClose] });
|
|
3835
|
-
BaoModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: BaoModalModule, providers: [BaoModal], imports: [CommonModule,
|
|
3836
|
-
OverlayModule,
|
|
3837
|
-
PortalModule,
|
|
3838
|
-
BrowserAnimationsModule,
|
|
3839
|
-
NoopAnimationsModule] });
|
|
3840
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: BaoModalModule, decorators: [{
|
|
3770
|
+
BaoModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3771
|
+
BaoModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoModalModule, declarations: [BaoModalContainer, BaoModalClose], imports: [CommonModule, OverlayModule, PortalModule], exports: [BaoModalContainer, BaoModalClose] });
|
|
3772
|
+
BaoModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalModule, providers: [BaoModal], imports: [CommonModule, OverlayModule, PortalModule] });
|
|
3773
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModalModule, decorators: [{
|
|
3841
3774
|
type: NgModule,
|
|
3842
3775
|
args: [{
|
|
3843
|
-
imports: [
|
|
3844
|
-
CommonModule,
|
|
3845
|
-
OverlayModule,
|
|
3846
|
-
PortalModule,
|
|
3847
|
-
BrowserAnimationsModule,
|
|
3848
|
-
NoopAnimationsModule
|
|
3849
|
-
],
|
|
3776
|
+
imports: [CommonModule, OverlayModule, PortalModule],
|
|
3850
3777
|
declarations: MODAL_DIRECTIVES,
|
|
3851
3778
|
exports: MODAL_DIRECTIVES,
|
|
3852
3779
|
providers: [BaoModal]
|
|
@@ -3854,7 +3781,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
3854
3781
|
}] });
|
|
3855
3782
|
|
|
3856
3783
|
/*
|
|
3857
|
-
* Copyright (c)
|
|
3784
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3858
3785
|
* Licensed under the MIT license.
|
|
3859
3786
|
* See LICENSE file in the project root for full license information.
|
|
3860
3787
|
*/
|
|
@@ -3912,9 +3839,9 @@ class BaoHyperlinkComponent {
|
|
|
3912
3839
|
}
|
|
3913
3840
|
}
|
|
3914
3841
|
}
|
|
3915
|
-
BaoHyperlinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3916
|
-
BaoHyperlinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
3917
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3842
|
+
BaoHyperlinkComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
3843
|
+
BaoHyperlinkComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoHyperlinkComponent, selector: "bao-hyperlink, [bao-hyperlink]", inputs: { size: "size" }, host: { properties: { "class.bao-hyperlink-medium": "size === \"medium\"", "class.bao-hyperlink-small": "size === \"small\"", "class.bao-hyperlink-extra-small": "size === \"extra-small\"" }, classAttribute: "bao-hyperlink" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".bao-hyperlink:not(li){display:inline-flex;font-size:inherit;line-height:inherit}.bao-hyperlink:not(li)>a{box-shadow:inset 0 -1px #097d6c;text-decoration:none;border-bottom:none;font-size:inherit}li.bao-hyperlink{display:flex}li.bao-hyperlink>a{text-decoration:none;border-bottom:none}li.bao-hyperlink>a:hover{box-shadow:inset 0 -1px #097d6c}li.bao-hyperlink.bao-hyperlink-extra-small a{font-weight:700;font-size:.75rem;line-height:1rem}li.bao-hyperlink.bao-hyperlink-extra-small .bao-icon{height:1rem;width:1rem}li.bao-hyperlink.bao-hyperlink-small a{font-weight:700;font-size:.875rem;line-height:1.25rem}li.bao-hyperlink.bao-hyperlink-small .bao-icon{height:1.25rem;width:1.25rem}li.bao-hyperlink.bao-hyperlink-medium a{font-weight:700;font-size:1rem;line-height:1.5rem}li.bao-hyperlink.bao-hyperlink-medium .bao-icon{height:1.5rem;width:1.5rem}.bao-hyperlink{align-items:center}.bao-hyperlink>.bao-icon{color:#097d6c;flex-shrink:0}.bao-hyperlink.has-right-icon>.bao-icon{margin-left:.25rem}.bao-hyperlink.has-left-icon>.bao-icon{margin-right:.5rem}ul.bao-hyperlink-list-parent{list-style-type:none}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
3844
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkComponent, decorators: [{
|
|
3918
3845
|
type: Component,
|
|
3919
3846
|
args: [{ selector: 'bao-hyperlink, [bao-hyperlink]', encapsulation: ViewEncapsulation.None, host: {
|
|
3920
3847
|
class: 'bao-hyperlink',
|
|
@@ -3927,17 +3854,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
3927
3854
|
}] } });
|
|
3928
3855
|
|
|
3929
3856
|
/*
|
|
3930
|
-
* Copyright (c)
|
|
3857
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3931
3858
|
* Licensed under the MIT license.
|
|
3932
3859
|
* See LICENSE file in the project root for full license information.
|
|
3933
3860
|
*/
|
|
3934
3861
|
const HYPERLINK_DIRECTIVES = [BaoHyperlinkComponent];
|
|
3935
3862
|
class BaoHyperlinkModule {
|
|
3936
3863
|
}
|
|
3937
|
-
BaoHyperlinkModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
3938
|
-
BaoHyperlinkModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
3939
|
-
BaoHyperlinkModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
3940
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
3864
|
+
BaoHyperlinkModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
3865
|
+
BaoHyperlinkModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkModule, declarations: [BaoHyperlinkComponent], imports: [CommonModule], exports: [BaoHyperlinkComponent] });
|
|
3866
|
+
BaoHyperlinkModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkModule, imports: [CommonModule] });
|
|
3867
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoHyperlinkModule, decorators: [{
|
|
3941
3868
|
type: NgModule,
|
|
3942
3869
|
args: [{
|
|
3943
3870
|
imports: [CommonModule],
|
|
@@ -3947,13 +3874,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
3947
3874
|
}] });
|
|
3948
3875
|
|
|
3949
3876
|
/*
|
|
3950
|
-
* Copyright (c)
|
|
3877
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3951
3878
|
* Licensed under the MIT license.
|
|
3952
3879
|
* See LICENSE file in the project root for full license information.
|
|
3953
3880
|
*/
|
|
3954
3881
|
|
|
3955
3882
|
/*
|
|
3956
|
-
* Copyright (c)
|
|
3883
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
3957
3884
|
* Licensed under the MIT license.
|
|
3958
3885
|
* See LICENSE file in the project root for full license information.
|
|
3959
3886
|
*/
|
|
@@ -3970,6 +3897,10 @@ class BaoDropdownMenuItem {
|
|
|
3970
3897
|
* Is the list item disabled
|
|
3971
3898
|
*/
|
|
3972
3899
|
this.disabled = false;
|
|
3900
|
+
/**
|
|
3901
|
+
* Emits when menu item is clicked
|
|
3902
|
+
*/
|
|
3903
|
+
this.itemClicked = new EventEmitter();
|
|
3973
3904
|
}
|
|
3974
3905
|
get nativeElement() {
|
|
3975
3906
|
return this.elementRef.nativeElement;
|
|
@@ -4050,20 +3981,26 @@ class BaoDropdownMenuItem {
|
|
|
4050
3981
|
}
|
|
4051
3982
|
}
|
|
4052
3983
|
/**
|
|
4053
|
-
* This method propagates a click event to menu item children with inputs (checkbox, radio button)
|
|
3984
|
+
* This method propagates a click event to menu item children with inputs (checkbox, radio button).
|
|
3985
|
+
* It emits event to close menu if item does not contain an input.
|
|
4054
3986
|
*/
|
|
4055
3987
|
propagateClick() {
|
|
3988
|
+
let closeMenu = true;
|
|
4056
3989
|
for (let i = 0; i < this.nativeElement.children.length; i++) {
|
|
4057
3990
|
if (this.nativeElement.children.item(i).firstElementChild.localName ==
|
|
4058
3991
|
'input') {
|
|
4059
3992
|
this.nativeElement.children.item(i).firstElementChild.click();
|
|
3993
|
+
closeMenu = false;
|
|
4060
3994
|
}
|
|
4061
3995
|
}
|
|
3996
|
+
if (closeMenu) {
|
|
3997
|
+
this.itemClicked.emit();
|
|
3998
|
+
}
|
|
4062
3999
|
}
|
|
4063
4000
|
}
|
|
4064
|
-
BaoDropdownMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4065
|
-
BaoDropdownMenuItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4066
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4001
|
+
BaoDropdownMenuItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItem, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: BaoDropdownMenuComponent }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4002
|
+
BaoDropdownMenuItem.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuItem, selector: "bao-dropdown-menu-item, [bao-dropdown-menu-item]", inputs: { disabled: "disabled" }, outputs: { itemClicked: "itemClicked" }, host: { listeners: { "window:keyup.space": "spaceKeyEvent()", "click": "onClick($event.target)", "window:keyup.enter": "enterKeyEvent()" }, properties: { "class.bao-dropdown-menu-item-disabled": "disabled===true" }, classAttribute: "bao-dropdown-menu-item" }, usesOnChanges: true, ngImport: i0 });
|
|
4003
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItem, decorators: [{
|
|
4067
4004
|
type: Directive,
|
|
4068
4005
|
args: [{
|
|
4069
4006
|
selector: 'bao-dropdown-menu-item, [bao-dropdown-menu-item]',
|
|
@@ -4074,6 +4011,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4074
4011
|
}]
|
|
4075
4012
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: BaoDropdownMenuComponent }]; }, propDecorators: { disabled: [{
|
|
4076
4013
|
type: Input
|
|
4014
|
+
}], itemClicked: [{
|
|
4015
|
+
type: Output
|
|
4077
4016
|
}], spaceKeyEvent: [{
|
|
4078
4017
|
type: HostListener,
|
|
4079
4018
|
args: ['window:keyup.space']
|
|
@@ -4082,7 +4021,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4082
4021
|
args: ['click', ['$event.target']]
|
|
4083
4022
|
}], enterKeyEvent: [{
|
|
4084
4023
|
type: HostListener,
|
|
4085
|
-
args: ['window:
|
|
4024
|
+
args: ['window:keyup.enter']
|
|
4086
4025
|
}] } });
|
|
4087
4026
|
class BaoDropdownMenuComponent {
|
|
4088
4027
|
constructor(cdr, renderer, elementRef) {
|
|
@@ -4160,6 +4099,9 @@ class BaoDropdownMenuComponent {
|
|
|
4160
4099
|
this.renderer.setAttribute(this.nativeElement, 'id', this.menuId);
|
|
4161
4100
|
this._menuPortal = new DomPortal(this._menuContent);
|
|
4162
4101
|
}
|
|
4102
|
+
ngAfterContentInit() {
|
|
4103
|
+
this._listItems.forEach((item) => item.itemClicked.subscribe(() => this.isClosedByKeyEvent.emit()));
|
|
4104
|
+
}
|
|
4163
4105
|
focusFirstItem() {
|
|
4164
4106
|
this._activeItemIndex = 0;
|
|
4165
4107
|
this._listItems.first.nativeElement.focus();
|
|
@@ -4225,9 +4167,9 @@ class BaoDropdownMenuComponent {
|
|
|
4225
4167
|
(currentIndex == this._listItems.length - 1 && isDown));
|
|
4226
4168
|
}
|
|
4227
4169
|
}
|
|
4228
|
-
BaoDropdownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4229
|
-
BaoDropdownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4230
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4170
|
+
BaoDropdownMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4171
|
+
BaoDropdownMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuComponent, selector: "bao-dropdown-menu", outputs: { isOpenChange: "isOpenChange", isClosedByKeyEvent: "isClosedByKeyEvent" }, host: { listeners: { "window:keyup.arrowup": "upKeyEvent()", "window:keyup.arrowdown": "downKeyEvent()", "window:keydown.tab": "tabKeyEvent()", "window:keydown.shift.tab": "shiftTabKeyEvent()" }, properties: { "class.bao-overlay-transparent-backdrop": "isOpen===false", "class.bao-dropdown-menu-closed": "isOpen===false", "attr.aria-expanded": "isOpen" }, classAttribute: "bao-dropdown-menu-container" }, queries: [{ propertyName: "_listItems", predicate: BaoDropdownMenuItem, descendants: true }], viewQueries: [{ propertyName: "_menuContent", first: true, predicate: ["menuContent"], descendants: true }], ngImport: i0, template: "<div #menuContent class=\"bao-dropdown-menu\" tabindex=\"-1\">\n <ng-content></ng-content>\n</div>\n", styles: [".bao-dropdown-menu-container.bao-dropdown-menu-closed{display:none}.bao-dropdown-menu{min-width:16rem;max-width:32rem;overflow-y:auto;background:#ffffff;box-shadow:0 .5rem 2rem #0000001a;border-radius:.25rem;padding-top:.5rem;padding-bottom:.5rem}.bao-dropdown-menu .bao-overlay-transparent-backdrop{background-color:#fff0;display:none}.bao-dropdown-menu ul{list-style-type:none;padding:0;margin:0}.bao-dropdown-menu h5{padding:.5rem 0 .5rem 1rem;margin:0}.bao-dropdown-menu .bao-dropdown-menu-item{display:flex;align-items:center;text-decoration:none;border-bottom:none;cursor:default}.bao-dropdown-menu .bao-dropdown-menu-item:hover{background-color:#f8f9fa}.bao-dropdown-menu .bao-dropdown-menu-item:active{background-color:#eefaf8}.bao-dropdown-menu .bao-dropdown-menu-item:focus{box-shadow:inset 0 0 0 .25rem #98bcde}.bao-dropdown-menu .bao-dropdown-menu-item.active-link{background-color:#eefaf8}.bao-dropdown-menu .bao-dropdown-menu-item.has-element-right{padding-right:1.5rem}.bao-dropdown-menu .bao-dropdown-menu-item.has-element-left{padding-left:1rem}.bao-dropdown-menu .bao-dropdown-menu-item.bao-dropdown-menu-item-disabled{cursor:not-allowed;pointer-events:none}.bao-dropdown-menu .bao-dropdown-menu-item.bao-dropdown-menu-item-disabled:hover,.bao-dropdown-menu .bao-dropdown-menu-item.bao-dropdown-menu-item-disabled:active{background:#ffffff}.bao-dropdown-menu .bao-dropdown-menu-item.bao-dropdown-menu-item-disabled .bao-dropdown-menu-item-content .bao-dropdown-menu-item-label,.bao-dropdown-menu .bao-dropdown-menu-item.bao-dropdown-menu-item-disabled .bao-dropdown-menu-item-content .bao-dropdown-menu-item-description{color:#adb2bd}.bao-dropdown-menu .bao-dropdown-menu-item>.bao-dropdown-menu-item-content{display:flex;flex-direction:column;margin:.5rem 1rem;background-color:inherit}.bao-dropdown-menu .bao-dropdown-menu-item>.bao-dropdown-menu-item-content .bao-dropdown-menu-item-label{font-weight:400;font-size:1rem;line-height:1.5rem;color:#212529}.bao-dropdown-menu .bao-dropdown-menu-item>.bao-dropdown-menu-item-content .bao-dropdown-menu-item-description{font-weight:400;font-size:.875rem;line-height:1.25rem;color:#637381}.bao-dropdown-menu .bao-dropdown-menu-item>.bao-icon{color:#adb2bd;flex-shrink:0}.bao-dropdown-menu .bao-dropdown-menu-divider hr{margin-top:.5rem;margin-bottom:.5rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
4172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuComponent, decorators: [{
|
|
4231
4173
|
type: Component,
|
|
4232
4174
|
args: [{ selector: 'bao-dropdown-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
|
|
4233
4175
|
class: 'bao-dropdown-menu-container',
|
|
@@ -4280,8 +4222,9 @@ class BaoDropdownMenuTrigger {
|
|
|
4280
4222
|
}
|
|
4281
4223
|
/** Enter key event triggers click event which opens menu,
|
|
4282
4224
|
* then focus is put on first item in the menu */
|
|
4283
|
-
enterKeyEvent() {
|
|
4225
|
+
enterKeyEvent(event) {
|
|
4284
4226
|
if (this._isMenuOpen && document.activeElement === this.nativeElement) {
|
|
4227
|
+
event.stopImmediatePropagation();
|
|
4285
4228
|
this.menu.focusFirstItem();
|
|
4286
4229
|
}
|
|
4287
4230
|
}
|
|
@@ -4351,6 +4294,13 @@ class BaoDropdownMenuTrigger {
|
|
|
4351
4294
|
originY: 'top',
|
|
4352
4295
|
overlayX: 'start',
|
|
4353
4296
|
overlayY: 'bottom'
|
|
4297
|
+
},
|
|
4298
|
+
{
|
|
4299
|
+
// top-right of the overlay is connected to bottom-left of the origin;
|
|
4300
|
+
originX: 'start',
|
|
4301
|
+
originY: 'bottom',
|
|
4302
|
+
overlayX: 'end',
|
|
4303
|
+
overlayY: 'top'
|
|
4354
4304
|
}
|
|
4355
4305
|
]),
|
|
4356
4306
|
backdropClass: 'bao-overlay-transparent-backdrop',
|
|
@@ -4359,9 +4309,9 @@ class BaoDropdownMenuTrigger {
|
|
|
4359
4309
|
});
|
|
4360
4310
|
}
|
|
4361
4311
|
}
|
|
4362
|
-
BaoDropdownMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4363
|
-
BaoDropdownMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4364
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4312
|
+
BaoDropdownMenuTrigger.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuTrigger, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i1$4.Overlay }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4313
|
+
BaoDropdownMenuTrigger.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuTrigger, selector: "bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]", inputs: { menu: ["baoDropdownMenuTriggerFor", "menu"] }, host: { listeners: { "window:keyup.escape": "escapeKeyEvent()", "window:keyup.enter": "enterKeyEvent($event)", "click": "onClick()" }, classAttribute: "bao-dropdown-menu-trigger" }, ngImport: i0 });
|
|
4314
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuTrigger, decorators: [{
|
|
4365
4315
|
type: Directive,
|
|
4366
4316
|
args: [{
|
|
4367
4317
|
selector: 'bao-dropdown-menu-trigger, [bao-dropdown-menu-trigger], [baoDropdownMenuTriggerFor]',
|
|
@@ -4375,7 +4325,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4375
4325
|
args: ['window:keyup.escape']
|
|
4376
4326
|
}], enterKeyEvent: [{
|
|
4377
4327
|
type: HostListener,
|
|
4378
|
-
args: ['window:keyup.enter']
|
|
4328
|
+
args: ['window:keyup.enter', ['$event']]
|
|
4379
4329
|
}], onClick: [{
|
|
4380
4330
|
type: HostListener,
|
|
4381
4331
|
args: ['click']
|
|
@@ -4406,9 +4356,9 @@ class BaoDropdownMenuSection {
|
|
|
4406
4356
|
this.renderer.insertBefore(this.nativeElement, titleElement, children[listIndex]);
|
|
4407
4357
|
}
|
|
4408
4358
|
}
|
|
4409
|
-
BaoDropdownMenuSection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4410
|
-
BaoDropdownMenuSection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4411
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4359
|
+
BaoDropdownMenuSection.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuSection, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4360
|
+
BaoDropdownMenuSection.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuSection, selector: "bao-dropdown-menu-section, [bao-dropdown-menu-section]", host: { classAttribute: "bao-dropdown-menu-section" }, ngImport: i0 });
|
|
4361
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuSection, decorators: [{
|
|
4412
4362
|
type: Directive,
|
|
4413
4363
|
args: [{
|
|
4414
4364
|
selector: 'bao-dropdown-menu-section, [bao-dropdown-menu-section]',
|
|
@@ -4420,9 +4370,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4420
4370
|
*/
|
|
4421
4371
|
class BaoDropdownMenuItemLabel {
|
|
4422
4372
|
}
|
|
4423
|
-
BaoDropdownMenuItemLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4424
|
-
BaoDropdownMenuItemLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4425
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4373
|
+
BaoDropdownMenuItemLabel.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItemLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4374
|
+
BaoDropdownMenuItemLabel.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuItemLabel, selector: "bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]", host: { classAttribute: "bao-dropdown-menu-item-label" }, ngImport: i0 });
|
|
4375
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItemLabel, decorators: [{
|
|
4426
4376
|
type: Directive,
|
|
4427
4377
|
args: [{
|
|
4428
4378
|
selector: 'bao-dropdown-menu-item-label, [bao-dropdown-menu-item-label]',
|
|
@@ -4434,9 +4384,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4434
4384
|
*/
|
|
4435
4385
|
class BaoDropdownMenuItemDescription {
|
|
4436
4386
|
}
|
|
4437
|
-
BaoDropdownMenuItemDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4438
|
-
BaoDropdownMenuItemDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "
|
|
4439
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4387
|
+
BaoDropdownMenuItemDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItemDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4388
|
+
BaoDropdownMenuItemDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuItemDescription, selector: "bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]", host: { classAttribute: "bao-dropdown-menu-item-description" }, ngImport: i0 });
|
|
4389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuItemDescription, decorators: [{
|
|
4440
4390
|
type: Directive,
|
|
4441
4391
|
args: [{
|
|
4442
4392
|
selector: 'bao-dropdown-menu-item-description, [bao-dropdown-menu-item-description]',
|
|
@@ -4458,9 +4408,9 @@ class BaoDropdownMenuDivider {
|
|
|
4458
4408
|
this.renderer.setAttribute(this.nativeElement, 'role', 'separator');
|
|
4459
4409
|
}
|
|
4460
4410
|
}
|
|
4461
|
-
BaoDropdownMenuDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4462
|
-
BaoDropdownMenuDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4463
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4411
|
+
BaoDropdownMenuDivider.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuDivider, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4412
|
+
BaoDropdownMenuDivider.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoDropdownMenuDivider, selector: "bao-dropdown-menu-divider, [bao-dropdown-menu-divider]", host: { classAttribute: "bao-dropdown-menu-divider" }, ngImport: i0, template: `<hr />`, isInline: true });
|
|
4413
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuDivider, decorators: [{
|
|
4464
4414
|
type: Component,
|
|
4465
4415
|
args: [{
|
|
4466
4416
|
template: `<hr />`,
|
|
@@ -4470,7 +4420,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4470
4420
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
4471
4421
|
|
|
4472
4422
|
/*
|
|
4473
|
-
* Copyright (c)
|
|
4423
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4474
4424
|
* Licensed under the MIT license.
|
|
4475
4425
|
* See LICENSE file in the project root for full license information.
|
|
4476
4426
|
*/
|
|
@@ -4485,8 +4435,8 @@ const DROPDOWN_MENU_DIRECTIVES = [
|
|
|
4485
4435
|
];
|
|
4486
4436
|
class BaoDropdownMenuModule {
|
|
4487
4437
|
}
|
|
4488
|
-
BaoDropdownMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4489
|
-
BaoDropdownMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4438
|
+
BaoDropdownMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4439
|
+
BaoDropdownMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuModule, declarations: [BaoDropdownMenuComponent,
|
|
4490
4440
|
BaoDropdownMenuTrigger,
|
|
4491
4441
|
BaoDropdownMenuItem,
|
|
4492
4442
|
BaoDropdownMenuSection,
|
|
@@ -4499,8 +4449,8 @@ BaoDropdownMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", v
|
|
|
4499
4449
|
BaoDropdownMenuItemLabel,
|
|
4500
4450
|
BaoDropdownMenuItemDescription,
|
|
4501
4451
|
BaoDropdownMenuDivider] });
|
|
4502
|
-
BaoDropdownMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4503
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4452
|
+
BaoDropdownMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuModule, imports: [CommonModule, ObserversModule, OverlayModule, PortalModule] });
|
|
4453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoDropdownMenuModule, decorators: [{
|
|
4504
4454
|
type: NgModule,
|
|
4505
4455
|
args: [{
|
|
4506
4456
|
imports: [CommonModule, ObserversModule, OverlayModule, PortalModule],
|
|
@@ -4510,24 +4460,524 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4510
4460
|
}] });
|
|
4511
4461
|
|
|
4512
4462
|
/*
|
|
4513
|
-
* Copyright (c)
|
|
4463
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4464
|
+
* Licensed under the MIT license.
|
|
4465
|
+
* See LICENSE file in the project root for full license information.
|
|
4466
|
+
*/
|
|
4467
|
+
|
|
4468
|
+
/*
|
|
4469
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4470
|
+
* Licensed under the MIT license.
|
|
4471
|
+
* See LICENSE file in the project root for full license information.
|
|
4472
|
+
*/
|
|
4473
|
+
const KILO_THRESHOLD = 1000;
|
|
4474
|
+
const MEGA_THRESHOLD = 1000000;
|
|
4475
|
+
class BaoFilePreviewComponent {
|
|
4476
|
+
constructor(elementRef, renderer) {
|
|
4477
|
+
this.elementRef = elementRef;
|
|
4478
|
+
this.renderer = renderer;
|
|
4479
|
+
/**
|
|
4480
|
+
* Is file loading
|
|
4481
|
+
*/
|
|
4482
|
+
this.isLoading = false;
|
|
4483
|
+
/**
|
|
4484
|
+
* True if projected content has no icon and file does not have a thumbnail.
|
|
4485
|
+
*/
|
|
4486
|
+
this.insertGenericIcon = false;
|
|
4487
|
+
this.thumbnailURL = '';
|
|
4488
|
+
}
|
|
4489
|
+
get nativeElement() {
|
|
4490
|
+
return this.elementRef.nativeElement;
|
|
4491
|
+
}
|
|
4492
|
+
get fileSize() {
|
|
4493
|
+
return this.formatSize(this.file.size);
|
|
4494
|
+
}
|
|
4495
|
+
ngAfterContentInit() {
|
|
4496
|
+
this.getThumbnail();
|
|
4497
|
+
this.setIcon();
|
|
4498
|
+
}
|
|
4499
|
+
setIcon() {
|
|
4500
|
+
// If no icon is in the projected content, generic icon is added
|
|
4501
|
+
const contentIcon = Array.from(this.nativeElement.children.item(0).children).find((el) => el.localName === 'bao-icon');
|
|
4502
|
+
if (!contentIcon) {
|
|
4503
|
+
this.insertGenericIcon = true;
|
|
4504
|
+
}
|
|
4505
|
+
else {
|
|
4506
|
+
this.renderer.addClass(contentIcon, 'bao-file-media');
|
|
4507
|
+
}
|
|
4508
|
+
}
|
|
4509
|
+
getThumbnail() {
|
|
4510
|
+
if (this.file &&
|
|
4511
|
+
(this.file.type === 'image/png' || this.file.type === 'image/jpeg')) {
|
|
4512
|
+
const reader = new FileReader();
|
|
4513
|
+
reader.onload = (event) => {
|
|
4514
|
+
this.thumbnailURL = event.target.result;
|
|
4515
|
+
};
|
|
4516
|
+
reader.onerror = () => {
|
|
4517
|
+
this.thumbnailURL = '';
|
|
4518
|
+
};
|
|
4519
|
+
reader.readAsDataURL(this.file);
|
|
4520
|
+
}
|
|
4521
|
+
}
|
|
4522
|
+
formatSize(size) {
|
|
4523
|
+
if (size >= KILO_THRESHOLD && size / KILO_THRESHOLD < KILO_THRESHOLD) {
|
|
4524
|
+
return this.getSizeAndUnit(size, KILO_THRESHOLD, 'Ko');
|
|
4525
|
+
}
|
|
4526
|
+
const sizeDividedByKoMultiplicator = size / KILO_THRESHOLD;
|
|
4527
|
+
if (sizeDividedByKoMultiplicator >= KILO_THRESHOLD) {
|
|
4528
|
+
const toFixed = sizeDividedByKoMultiplicator > 10 ? 0 : 1;
|
|
4529
|
+
return this.getSizeAndUnit(size, MEGA_THRESHOLD, 'Mo', toFixed);
|
|
4530
|
+
}
|
|
4531
|
+
return `${size} octets`;
|
|
4532
|
+
}
|
|
4533
|
+
getSizeAndUnit(size, multiplicator, unit, toFixed = 0) {
|
|
4534
|
+
return `${(size / multiplicator).toFixed(toFixed)} ${unit}`;
|
|
4535
|
+
}
|
|
4536
|
+
}
|
|
4537
|
+
BaoFilePreviewComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFilePreviewComponent, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
|
|
4538
|
+
BaoFilePreviewComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoFilePreviewComponent, selector: "bao-file-preview, [bao-file-preview]", inputs: { file: "file", isLoading: "isLoading" }, host: { classAttribute: "bao-file-preview" }, ngImport: i0, template: "<div class=\"bao-file-info\">\n <ng-content select=\"bao-icon\"></ng-content>\n <bao-icon\n *ngIf=\"insertGenericIcon && !thumbnailURL\"\n class=\"bao-file-media\"\n svgIcon=\"icon-file\"\n >\n </bao-icon>\n <ng-container *ngIf=\"thumbnailURL && !isLoading\">\n <img\n class=\"bao-file-media\"\n [src]=\"thumbnailURL\"\n width=\"40px\"\n height=\"40px\"\n />\n </ng-container>\n <div class=\"bao-file-text\">\n <div class=\"bao-file-name\">{{ file.name }}</div>\n <div class=\"bao-file-size\">{{ fileSize }}</div>\n </div>\n</div>\n<ng-container *ngIf=\"!isLoading\">\n <ng-content select=\"button[bao-button]\"></ng-content>\n <ng-content select=\"baoDropdownTriggerFor\"></ng-content>\n</ng-container>\n<bao-icon\n *ngIf=\"isLoading\"\n class=\"loading-spinner\"\n svgIcon=\"icon-spinner\"\n title=\"chargement\"\n></bao-icon>\n", styles: [".bao-file-preview{display:flex;align-items:center;justify-content:space-between;padding-top:.625rem;padding-bottom:.625rem;list-style-type:none}.bao-file-preview>.bao-file-info{display:flex;align-items:center}.bao-file-preview>.bao-file-info>.bao-icon{color:#adb2bd;flex-shrink:0}.bao-file-preview>.bao-file-info>.bao-file-media{margin-right:1rem}.bao-file-preview>.bao-file-info>.bao-file-text{display:inline-flex;flex-direction:column;margin-right:1rem}.bao-file-preview>.bao-file-info>.bao-file-text>.bao-file-name{overflow:hidden;font-weight:700;font-size:.875rem;line-height:1.25rem;color:#212529}.bao-file-preview>.bao-file-info>.bao-file-text>.bao-file-size{font-weight:400;font-size:.75rem;line-height:1rem;color:#637381}.bao-file-preview .loading-spinner{color:#097d6c}.bao-file-preview .bao-dropdown-menu-container{position:absolute;margin-left:auto}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: BaoIconComponent, selector: "bao-icon", inputs: ["color", "size", "svgIcon", "title"], exportAs: ["baoIcon"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFilePreviewComponent, decorators: [{
|
|
4540
|
+
type: Component,
|
|
4541
|
+
args: [{ selector: 'bao-file-preview, [bao-file-preview]', encapsulation: ViewEncapsulation.None, host: {
|
|
4542
|
+
class: 'bao-file-preview'
|
|
4543
|
+
}, template: "<div class=\"bao-file-info\">\n <ng-content select=\"bao-icon\"></ng-content>\n <bao-icon\n *ngIf=\"insertGenericIcon && !thumbnailURL\"\n class=\"bao-file-media\"\n svgIcon=\"icon-file\"\n >\n </bao-icon>\n <ng-container *ngIf=\"thumbnailURL && !isLoading\">\n <img\n class=\"bao-file-media\"\n [src]=\"thumbnailURL\"\n width=\"40px\"\n height=\"40px\"\n />\n </ng-container>\n <div class=\"bao-file-text\">\n <div class=\"bao-file-name\">{{ file.name }}</div>\n <div class=\"bao-file-size\">{{ fileSize }}</div>\n </div>\n</div>\n<ng-container *ngIf=\"!isLoading\">\n <ng-content select=\"button[bao-button]\"></ng-content>\n <ng-content select=\"baoDropdownTriggerFor\"></ng-content>\n</ng-container>\n<bao-icon\n *ngIf=\"isLoading\"\n class=\"loading-spinner\"\n svgIcon=\"icon-spinner\"\n title=\"chargement\"\n></bao-icon>\n", styles: [".bao-file-preview{display:flex;align-items:center;justify-content:space-between;padding-top:.625rem;padding-bottom:.625rem;list-style-type:none}.bao-file-preview>.bao-file-info{display:flex;align-items:center}.bao-file-preview>.bao-file-info>.bao-icon{color:#adb2bd;flex-shrink:0}.bao-file-preview>.bao-file-info>.bao-file-media{margin-right:1rem}.bao-file-preview>.bao-file-info>.bao-file-text{display:inline-flex;flex-direction:column;margin-right:1rem}.bao-file-preview>.bao-file-info>.bao-file-text>.bao-file-name{overflow:hidden;font-weight:700;font-size:.875rem;line-height:1.25rem;color:#212529}.bao-file-preview>.bao-file-info>.bao-file-text>.bao-file-size{font-weight:400;font-size:.75rem;line-height:1rem;color:#637381}.bao-file-preview .loading-spinner{color:#097d6c}.bao-file-preview .bao-dropdown-menu-container{position:absolute;margin-left:auto}\n"] }]
|
|
4544
|
+
}], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.Renderer2 }]; }, propDecorators: { file: [{
|
|
4545
|
+
type: Input
|
|
4546
|
+
}], isLoading: [{
|
|
4547
|
+
type: Input
|
|
4548
|
+
}] } });
|
|
4549
|
+
|
|
4550
|
+
/*
|
|
4551
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4552
|
+
* Licensed under the MIT license.
|
|
4553
|
+
* See LICENSE file in the project root for full license information.
|
|
4554
|
+
*/
|
|
4555
|
+
/**
|
|
4556
|
+
* To modify the labels and text displayed, create a new instance of BaoFileIntl and
|
|
4557
|
+
* include it in a custom provider
|
|
4558
|
+
*/
|
|
4559
|
+
class BaoFileIntl {
|
|
4560
|
+
constructor() {
|
|
4561
|
+
/**
|
|
4562
|
+
* Stream to emit from when labels are changed. Use this to notify components when the labels have
|
|
4563
|
+
* changed after initialization.
|
|
4564
|
+
*/
|
|
4565
|
+
this.changes = new Subject();
|
|
4566
|
+
/** The label for button in dropzone */
|
|
4567
|
+
this.dropzoneButtonLabel = 'Parcourir';
|
|
4568
|
+
/** The default dropzone instructions */
|
|
4569
|
+
this.defaultDropzoneInstructions = 'ou déposer votre fichier ici';
|
|
4570
|
+
/** Error message displayed when uploaded file is too large */
|
|
4571
|
+
this.fileTooBigErrorMessage = 'La taille de ce fichier est trop grande';
|
|
4572
|
+
/** Error message displayed when uploaded file has an invalid type */
|
|
4573
|
+
this.invalidFileTypeErrorMessage = "Ce format de fichier n'est pas autorisé";
|
|
4574
|
+
}
|
|
4575
|
+
}
|
|
4576
|
+
BaoFileIntl.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntl, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
4577
|
+
BaoFileIntl.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntl, providedIn: 'root' });
|
|
4578
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntl, decorators: [{
|
|
4579
|
+
type: Injectable,
|
|
4580
|
+
args: [{ providedIn: 'root' }]
|
|
4581
|
+
}] });
|
|
4582
|
+
class BaoFileIntlEnglish extends BaoFileIntl {
|
|
4583
|
+
constructor() {
|
|
4584
|
+
super(...arguments);
|
|
4585
|
+
/** The label for button in dropzone */
|
|
4586
|
+
this.dropzoneButtonLabel = 'Browse';
|
|
4587
|
+
/** The default dropzone instructions */
|
|
4588
|
+
this.defaultDropzoneInstructions = 'or drop your file here';
|
|
4589
|
+
/** Error message displayed when uploaded file is too large */
|
|
4590
|
+
this.fileTooBigErrorMessage = 'The size of this file is too large';
|
|
4591
|
+
/** Error message displayed when uploaded file has an invalid type */
|
|
4592
|
+
this.invalidFileTypeErrorMessage = 'The format of this file is unauthorized';
|
|
4593
|
+
}
|
|
4594
|
+
}
|
|
4595
|
+
BaoFileIntlEnglish.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntlEnglish, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
|
|
4596
|
+
BaoFileIntlEnglish.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntlEnglish });
|
|
4597
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileIntlEnglish, decorators: [{
|
|
4598
|
+
type: Injectable
|
|
4599
|
+
}] });
|
|
4600
|
+
/** @docs-private */
|
|
4601
|
+
function BAO_FILE_INTL_PROVIDER_FACTORY(parentIntl) {
|
|
4602
|
+
return parentIntl || new BaoFileIntl();
|
|
4603
|
+
}
|
|
4604
|
+
/** @docs-private */
|
|
4605
|
+
const BAO_FILE_INTL_PROVIDER = {
|
|
4606
|
+
// If there is already an BaoFileIntl available, use that. Otherwise, provide a new one.
|
|
4607
|
+
provide: BaoFileIntl,
|
|
4608
|
+
deps: [[new Optional(), new SkipSelf(), BaoFileIntl]],
|
|
4609
|
+
useFactory: BAO_FILE_INTL_PROVIDER_FACTORY
|
|
4610
|
+
};
|
|
4611
|
+
|
|
4612
|
+
/*
|
|
4613
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4614
|
+
* Licensed under the MIT license.
|
|
4615
|
+
* See LICENSE file in the project root for full license information.
|
|
4616
|
+
*/
|
|
4617
|
+
/**
|
|
4618
|
+
* Unique number to generate a unique ID
|
|
4619
|
+
*/
|
|
4620
|
+
let fileInputUniqueId = 0;
|
|
4621
|
+
let fileTextUniqueId = 0;
|
|
4622
|
+
class BaoFileInputComponent {
|
|
4623
|
+
constructor(intl, elementRef, renderer, cdr) {
|
|
4624
|
+
this.intl = intl;
|
|
4625
|
+
this.elementRef = elementRef;
|
|
4626
|
+
this.renderer = renderer;
|
|
4627
|
+
this.cdr = cdr;
|
|
4628
|
+
/**
|
|
4629
|
+
* Size of the file input label
|
|
4630
|
+
*/
|
|
4631
|
+
this.size = 'medium';
|
|
4632
|
+
/**
|
|
4633
|
+
* Maximum size accepted for uploaded files
|
|
4634
|
+
*/
|
|
4635
|
+
this.maximalFileSize = -1;
|
|
4636
|
+
/**
|
|
4637
|
+
* Accepted types of files
|
|
4638
|
+
*/
|
|
4639
|
+
this.acceptedMIMETypes = [];
|
|
4640
|
+
/**
|
|
4641
|
+
* Is field required
|
|
4642
|
+
*/
|
|
4643
|
+
this.required = false;
|
|
4644
|
+
/**
|
|
4645
|
+
* Is field disabled
|
|
4646
|
+
*/
|
|
4647
|
+
this.disabled = false;
|
|
4648
|
+
/**
|
|
4649
|
+
* File selected to be uploaded
|
|
4650
|
+
*/
|
|
4651
|
+
this.uploadedFile = new EventEmitter();
|
|
4652
|
+
this.insertDefaultInstructions = false;
|
|
4653
|
+
this.isFileTooBig = false;
|
|
4654
|
+
this.isFileTypeInvalid = false;
|
|
4655
|
+
/**
|
|
4656
|
+
* Saves the registerOnChange function so the component can call it whenever it wants.
|
|
4657
|
+
*/
|
|
4658
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function, @typescript-eslint/no-unused-vars
|
|
4659
|
+
this.propagateChange = (_) => { };
|
|
4660
|
+
/**
|
|
4661
|
+
* Saves the registerOnTouched function so the component can call it whenever it wants.
|
|
4662
|
+
*/
|
|
4663
|
+
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
4664
|
+
this.propagateTouched = () => { };
|
|
4665
|
+
this._intlChanges = intl.changes.subscribe(() => this.cdr.markForCheck());
|
|
4666
|
+
}
|
|
4667
|
+
get nativeElement() {
|
|
4668
|
+
return this.elementRef.nativeElement;
|
|
4669
|
+
}
|
|
4670
|
+
enterKeyEvent() {
|
|
4671
|
+
if (document.activeElement.id === this.inputId) {
|
|
4672
|
+
document.getElementById(this.inputId).click();
|
|
4673
|
+
}
|
|
4674
|
+
}
|
|
4675
|
+
tabKeyEvent() {
|
|
4676
|
+
if (document.activeElement.id === this.inputId) {
|
|
4677
|
+
this.renderer.addClass(this.dropzoneElement.nativeElement, 'dropzone-focus');
|
|
4678
|
+
}
|
|
4679
|
+
}
|
|
4680
|
+
shiftTabKeyEvent() {
|
|
4681
|
+
if (document.activeElement.id === this.inputId) {
|
|
4682
|
+
this.renderer.addClass(this.dropzoneElement.nativeElement, 'dropzone-focus');
|
|
4683
|
+
}
|
|
4684
|
+
}
|
|
4685
|
+
ngAfterContentInit() {
|
|
4686
|
+
this._errorForm.changes.subscribe(() => this.setErrorTextsAttribute());
|
|
4687
|
+
if (!this.inputId) {
|
|
4688
|
+
this.inputId = `file-input-${fileInputUniqueId++}`;
|
|
4689
|
+
}
|
|
4690
|
+
// If no content was added for dropzone instructions, add default text.
|
|
4691
|
+
const dropzoneElement = Array.from(this.nativeElement.children).find((el) => el.className === 'file-drop-zone');
|
|
4692
|
+
if (!Array.from(dropzoneElement.children).find(el => el.localName === 'bao-file-dropzone-instructions')) {
|
|
4693
|
+
this.insertDefaultInstructions = true;
|
|
4694
|
+
}
|
|
4695
|
+
this.setDescribedByAttribute();
|
|
4696
|
+
this._files.changes.subscribe((files) => {
|
|
4697
|
+
const filesList = files.map((el) => el.file);
|
|
4698
|
+
this.setValue(filesList);
|
|
4699
|
+
});
|
|
4700
|
+
}
|
|
4701
|
+
ngAfterViewInit() {
|
|
4702
|
+
this._errorTexts.changes.subscribe(() => this.setErrorTextsAttribute());
|
|
4703
|
+
}
|
|
4704
|
+
ngOnDestroy() {
|
|
4705
|
+
this._intlChanges.unsubscribe();
|
|
4706
|
+
}
|
|
4707
|
+
/**
|
|
4708
|
+
* Implements ControlValueAccessor interface
|
|
4709
|
+
*/
|
|
4710
|
+
writeValue(obj) {
|
|
4711
|
+
this._value = obj;
|
|
4712
|
+
}
|
|
4713
|
+
/**
|
|
4714
|
+
* Implements ControlValueAccessor interface
|
|
4715
|
+
*/
|
|
4716
|
+
registerOnChange(fn) {
|
|
4717
|
+
this.propagateChange = fn;
|
|
4718
|
+
}
|
|
4719
|
+
/**
|
|
4720
|
+
* Implements ControlValueAccessor interface
|
|
4721
|
+
*/
|
|
4722
|
+
registerOnTouched(fn) {
|
|
4723
|
+
this.propagateTouched = fn;
|
|
4724
|
+
}
|
|
4725
|
+
/**
|
|
4726
|
+
* Implements ControlValueAccessor interface
|
|
4727
|
+
*/
|
|
4728
|
+
setDisabledState(isDisabled) {
|
|
4729
|
+
this.disabled = isDisabled;
|
|
4730
|
+
}
|
|
4731
|
+
uploadFile(file) {
|
|
4732
|
+
if (!this.disabled) {
|
|
4733
|
+
this.isFileTypeInvalid = false;
|
|
4734
|
+
this.isFileTooBig = false;
|
|
4735
|
+
this.uploader.nativeElement.value = '';
|
|
4736
|
+
if (this.maximalFileSize > 0 && file.size > this.maximalFileSize) {
|
|
4737
|
+
this.isFileTooBig = true;
|
|
4738
|
+
}
|
|
4739
|
+
if (this.acceptedMIMETypes.length > 0 &&
|
|
4740
|
+
this.acceptedMIMETypes.indexOf(file.type) < 0) {
|
|
4741
|
+
this.isFileTypeInvalid = true;
|
|
4742
|
+
}
|
|
4743
|
+
if (!this.isFileTooBig && !this.isFileTypeInvalid) {
|
|
4744
|
+
this.uploadedFile.emit(file);
|
|
4745
|
+
}
|
|
4746
|
+
}
|
|
4747
|
+
}
|
|
4748
|
+
setValue(value) {
|
|
4749
|
+
this._value = value;
|
|
4750
|
+
this.propagateChange(this._value);
|
|
4751
|
+
this.propagateTouched();
|
|
4752
|
+
}
|
|
4753
|
+
setDescribedByAttribute() {
|
|
4754
|
+
const helperText = Array.from(this.nativeElement.children).find((el) => el.localName === 'bao-guiding-text');
|
|
4755
|
+
if (helperText) {
|
|
4756
|
+
this._helperTextId = `bao-guiding-text-${fileTextUniqueId++}`;
|
|
4757
|
+
this.renderer.setAttribute(helperText.firstElementChild, 'id', this._helperTextId);
|
|
4758
|
+
const inputElement = Array.from(this.nativeElement.children)
|
|
4759
|
+
.find((el) => el.className == 'file-drop-zone')
|
|
4760
|
+
.children.item(1);
|
|
4761
|
+
this.renderer.setAttribute(inputElement, 'aria-describedby', this._helperTextId);
|
|
4762
|
+
}
|
|
4763
|
+
}
|
|
4764
|
+
setErrorTextsAttribute() {
|
|
4765
|
+
const textsIds = [];
|
|
4766
|
+
const errors = Array.from(this.nativeElement.children).filter((el) => el.localName == 'bao-error');
|
|
4767
|
+
errors.forEach((errorText) => {
|
|
4768
|
+
const errorTextId = `bao-error-${fileTextUniqueId++}`;
|
|
4769
|
+
this.renderer.setAttribute(errorText.firstElementChild, 'id', errorTextId);
|
|
4770
|
+
textsIds.push(errorTextId);
|
|
4771
|
+
});
|
|
4772
|
+
const inputElement = Array.from(this.nativeElement.children)
|
|
4773
|
+
.find((el) => el.classList.contains('file-drop-zone'))
|
|
4774
|
+
.children.item(1);
|
|
4775
|
+
if (this._helperTextId) {
|
|
4776
|
+
textsIds.unshift(this._helperTextId);
|
|
4777
|
+
}
|
|
4778
|
+
this.renderer.setAttribute(inputElement, 'aria-describedby', textsIds.join(' '));
|
|
4779
|
+
}
|
|
4780
|
+
}
|
|
4781
|
+
BaoFileInputComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileInputComponent, deps: [{ token: BaoFileIntl }, { token: i0.ElementRef }, { token: i0.Renderer2 }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
4782
|
+
BaoFileInputComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoFileInputComponent, selector: "bao-file-input, [bao-file-input]", inputs: { inputId: ["id", "inputId"], label: "label", size: "size", maximalFileSize: "maximalFileSize", acceptedMIMETypes: "acceptedMIMETypes", required: "required", disabled: "disabled" }, outputs: { uploadedFile: "uploadedFile" }, host: { listeners: { "window:keyup.enter": "enterKeyEvent()", "window:keyup.tab": "tabKeyEvent()", "window:keyup.shift.tab": "shiftTabKeyEvent()" }, properties: { "class.bao-file-label-small": "size === \"small\"", "class.bao-file-label-medium": "size === \"medium\"", "class.bao-file-input-disabled": "disabled" }, classAttribute: "bao-file-input" }, providers: [
|
|
4783
|
+
{
|
|
4784
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4785
|
+
// tslint:disable-next-line:no-forward-ref
|
|
4786
|
+
useExisting: forwardRef(() => BaoFileInputComponent),
|
|
4787
|
+
multi: true
|
|
4788
|
+
}
|
|
4789
|
+
], queries: [{ propertyName: "_files", predicate: BaoFilePreviewComponent, descendants: true }, { propertyName: "_errorForm", predicate: BaoErrorTextComponent, descendants: true }], viewQueries: [{ propertyName: "uploader", first: true, predicate: ["uploader"], descendants: true }, { propertyName: "dropzoneElement", first: true, predicate: ["dropzone"], descendants: true }, { propertyName: "_errorTexts", predicate: BaoErrorTextComponent, descendants: true }], ngImport: i0, template: "<label bao-label [required]=\"required\" [for]=\"inputId\">{{ label }}</label>\n<ng-content select=\"bao-guiding-text\"></ng-content>\n<div\n baoFileDrop\n class=\"file-drop-zone\"\n (fileDrop)=\"uploadFile($event)\"\n #dropzone\n>\n <button\n bao-button\n type=\"button\"\n displayType=\"utility\"\n level=\"secondary\"\n [disabled]=\"disabled\"\n (click)=\"uploader.click()\"\n aria-hidden=\"true\"\n tabIndex=\"-1\"\n >\n {{ intl.dropzoneButtonLabel }}\n </button>\n <input\n [id]=\"inputId\"\n type=\"file\"\n class=\"sr-only\"\n [disabled]=\"disabled\"\n (change)=\"uploadFile($event.target.files[0])\"\n #uploader\n />\n <ng-container\n ><div #ref>\n <ng-content select=\"bao-file-dropzone-instructions\"></ng-content></div\n ></ng-container>\n <ng-container *ngIf=\"ref.childNodes.length === 0\"\n ><bao-file-dropzone-instructions>{{\n intl.defaultDropzoneInstructions\n }}</bao-file-dropzone-instructions></ng-container\n >\n</div>\n<bao-error *ngIf=\"isFileTooBig\">\n {{ intl.fileTooBigErrorMessage }}\n</bao-error>\n<bao-error *ngIf=\"isFileTypeInvalid\">\n {{ intl.invalidFileTypeErrorMessage }}\n</bao-error>\n<ng-content select=\"bao-error\"></ng-content>\n<ng-content></ng-content>\n", styles: ["bao-file-input{width:100%;display:inline-flex;flex-direction:column}bao-file-input>ul{padding:0;margin:0}bao-file-input .bao-label>span{font-size:inherit;font-weight:inherit}bao-file-input.bao-file-label-small label{font-weight:700;font-size:.875rem;line-height:1.25rem}bao-file-input.bao-file-label-medium label{font-weight:700;font-size:1rem;line-height:1.5rem}bao-file-input .bao-guiding-text{margin-bottom:.5rem}bao-file-input .file-drop-zone{padding:.5rem;background-color:#fff;border-radius:.25rem;border-style:dashed;border-color:#ced4da;border-width:1px;display:inline-flex;align-items:center}bao-file-input .file-drop-zone:focus-within.dropzone-focus{box-shadow:0 0 0 .1875rem #98bcde;background-color:#eefaf8}bao-file-input .file-drop-zone>.bao-button{margin-right:.5rem}bao-file-input .file-drop-zone.drag-over{background-color:#eefaf8;border-color:#097d6c;cursor:drag}bao-file-input .file-drop-zone.drag-over>.bao-button{background-color:#eefaf8}bao-file-input.bao-file-input-disabled .file-drop-zone{background-color:#f8f9fa;border-color:#ced4da}bao-file-input.bao-file-input-disabled .file-drop-zone .bao-button{background-color:#f8f9fa}bao-file-input.bao-file-input-disabled .file-drop-zone .bao-button:hover{background-color:#f8f9fa}bao-file-input .bao-file-preview:first-child{margin-top:1rem}bao-file-input .bao-error{margin-top:.5rem}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(function () { return i1$1.NgIf; }), selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i0.forwardRef(function () { return BaoErrorTextComponent; }), selector: "bao-error, [bao-error]" }, { kind: "component", type: i0.forwardRef(function () { return BaoLabelTextComponent; }), selector: "bao-label, [bao-label]", inputs: ["required"] }, { kind: "component", type: i0.forwardRef(function () { return BaoButtonComponent; }), selector: "button[bao-button]", inputs: ["displayType", "level", "size", "loading", "reversed", "loadingSpinnerAriaLabel", "fullWidth"] }, { kind: "directive", type: i0.forwardRef(function () { return BaoFileDropzoneIntructions; }), selector: "bao-file-dropzone-instructions, [bao-file-dropzone-instructions]" }, { kind: "directive", type: i0.forwardRef(function () { return BaoFileDropDirective; }), selector: "[baoFileDrop]", outputs: ["fileDrop"] }], encapsulation: i0.ViewEncapsulation.None });
|
|
4790
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileInputComponent, decorators: [{
|
|
4791
|
+
type: Component,
|
|
4792
|
+
args: [{ selector: 'bao-file-input, [bao-file-input]', providers: [
|
|
4793
|
+
{
|
|
4794
|
+
provide: NG_VALUE_ACCESSOR,
|
|
4795
|
+
// tslint:disable-next-line:no-forward-ref
|
|
4796
|
+
useExisting: forwardRef(() => BaoFileInputComponent),
|
|
4797
|
+
multi: true
|
|
4798
|
+
}
|
|
4799
|
+
], encapsulation: ViewEncapsulation.None, host: {
|
|
4800
|
+
class: 'bao-file-input',
|
|
4801
|
+
'[class.bao-file-label-small]': 'size === "small"',
|
|
4802
|
+
'[class.bao-file-label-medium]': 'size === "medium"',
|
|
4803
|
+
'[class.bao-file-input-disabled]': 'disabled'
|
|
4804
|
+
}, template: "<label bao-label [required]=\"required\" [for]=\"inputId\">{{ label }}</label>\n<ng-content select=\"bao-guiding-text\"></ng-content>\n<div\n baoFileDrop\n class=\"file-drop-zone\"\n (fileDrop)=\"uploadFile($event)\"\n #dropzone\n>\n <button\n bao-button\n type=\"button\"\n displayType=\"utility\"\n level=\"secondary\"\n [disabled]=\"disabled\"\n (click)=\"uploader.click()\"\n aria-hidden=\"true\"\n tabIndex=\"-1\"\n >\n {{ intl.dropzoneButtonLabel }}\n </button>\n <input\n [id]=\"inputId\"\n type=\"file\"\n class=\"sr-only\"\n [disabled]=\"disabled\"\n (change)=\"uploadFile($event.target.files[0])\"\n #uploader\n />\n <ng-container\n ><div #ref>\n <ng-content select=\"bao-file-dropzone-instructions\"></ng-content></div\n ></ng-container>\n <ng-container *ngIf=\"ref.childNodes.length === 0\"\n ><bao-file-dropzone-instructions>{{\n intl.defaultDropzoneInstructions\n }}</bao-file-dropzone-instructions></ng-container\n >\n</div>\n<bao-error *ngIf=\"isFileTooBig\">\n {{ intl.fileTooBigErrorMessage }}\n</bao-error>\n<bao-error *ngIf=\"isFileTypeInvalid\">\n {{ intl.invalidFileTypeErrorMessage }}\n</bao-error>\n<ng-content select=\"bao-error\"></ng-content>\n<ng-content></ng-content>\n", styles: ["bao-file-input{width:100%;display:inline-flex;flex-direction:column}bao-file-input>ul{padding:0;margin:0}bao-file-input .bao-label>span{font-size:inherit;font-weight:inherit}bao-file-input.bao-file-label-small label{font-weight:700;font-size:.875rem;line-height:1.25rem}bao-file-input.bao-file-label-medium label{font-weight:700;font-size:1rem;line-height:1.5rem}bao-file-input .bao-guiding-text{margin-bottom:.5rem}bao-file-input .file-drop-zone{padding:.5rem;background-color:#fff;border-radius:.25rem;border-style:dashed;border-color:#ced4da;border-width:1px;display:inline-flex;align-items:center}bao-file-input .file-drop-zone:focus-within.dropzone-focus{box-shadow:0 0 0 .1875rem #98bcde;background-color:#eefaf8}bao-file-input .file-drop-zone>.bao-button{margin-right:.5rem}bao-file-input .file-drop-zone.drag-over{background-color:#eefaf8;border-color:#097d6c;cursor:drag}bao-file-input .file-drop-zone.drag-over>.bao-button{background-color:#eefaf8}bao-file-input.bao-file-input-disabled .file-drop-zone{background-color:#f8f9fa;border-color:#ced4da}bao-file-input.bao-file-input-disabled .file-drop-zone .bao-button{background-color:#f8f9fa}bao-file-input.bao-file-input-disabled .file-drop-zone .bao-button:hover{background-color:#f8f9fa}bao-file-input .bao-file-preview:first-child{margin-top:1rem}bao-file-input .bao-error{margin-top:.5rem}\n"] }]
|
|
4805
|
+
}], ctorParameters: function () { return [{ type: BaoFileIntl }, { type: i0.ElementRef }, { type: i0.Renderer2 }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { inputId: [{
|
|
4806
|
+
type: Input,
|
|
4807
|
+
args: ['id']
|
|
4808
|
+
}], label: [{
|
|
4809
|
+
type: Input
|
|
4810
|
+
}], size: [{
|
|
4811
|
+
type: Input
|
|
4812
|
+
}], maximalFileSize: [{
|
|
4813
|
+
type: Input
|
|
4814
|
+
}], acceptedMIMETypes: [{
|
|
4815
|
+
type: Input
|
|
4816
|
+
}], required: [{
|
|
4817
|
+
type: Input
|
|
4818
|
+
}], disabled: [{
|
|
4819
|
+
type: Input
|
|
4820
|
+
}], uploadedFile: [{
|
|
4821
|
+
type: Output
|
|
4822
|
+
}], _files: [{
|
|
4823
|
+
type: ContentChildren,
|
|
4824
|
+
args: [BaoFilePreviewComponent, { descendants: true }]
|
|
4825
|
+
}], _errorForm: [{
|
|
4826
|
+
type: ContentChildren,
|
|
4827
|
+
args: [BaoErrorTextComponent, { descendants: true }]
|
|
4828
|
+
}], _errorTexts: [{
|
|
4829
|
+
type: ViewChildren,
|
|
4830
|
+
args: [BaoErrorTextComponent]
|
|
4831
|
+
}], uploader: [{
|
|
4832
|
+
type: ViewChild,
|
|
4833
|
+
args: ['uploader', { static: false }]
|
|
4834
|
+
}], dropzoneElement: [{
|
|
4835
|
+
type: ViewChild,
|
|
4836
|
+
args: ['dropzone', { static: false }]
|
|
4837
|
+
}], enterKeyEvent: [{
|
|
4838
|
+
type: HostListener,
|
|
4839
|
+
args: ['window:keyup.enter']
|
|
4840
|
+
}], tabKeyEvent: [{
|
|
4841
|
+
type: HostListener,
|
|
4842
|
+
args: ['window:keyup.tab']
|
|
4843
|
+
}], shiftTabKeyEvent: [{
|
|
4844
|
+
type: HostListener,
|
|
4845
|
+
args: ['window:keyup.shift.tab']
|
|
4846
|
+
}] } });
|
|
4847
|
+
class BaoFileDropDirective {
|
|
4848
|
+
constructor() {
|
|
4849
|
+
this.fileDrop = new EventEmitter();
|
|
4850
|
+
this._isDragOver = false;
|
|
4851
|
+
}
|
|
4852
|
+
onDragOver(event) {
|
|
4853
|
+
this.preventAndStop(event);
|
|
4854
|
+
this._isDragOver = true;
|
|
4855
|
+
}
|
|
4856
|
+
onDragLeave(event) {
|
|
4857
|
+
this.preventAndStop(event);
|
|
4858
|
+
this._isDragOver = false;
|
|
4859
|
+
}
|
|
4860
|
+
onDrop(event) {
|
|
4861
|
+
this.preventAndStop(event);
|
|
4862
|
+
this._isDragOver = false;
|
|
4863
|
+
const transfer = this.getDataTransfer(event);
|
|
4864
|
+
this.fileDrop.emit(transfer.files[0]);
|
|
4865
|
+
}
|
|
4866
|
+
preventAndStop(event) {
|
|
4867
|
+
event.preventDefault();
|
|
4868
|
+
event.stopPropagation();
|
|
4869
|
+
}
|
|
4870
|
+
getDataTransfer(event) {
|
|
4871
|
+
// eslint-disable-next-line @typescript-eslint/no-unsafe-return
|
|
4872
|
+
return event.dataTransfer
|
|
4873
|
+
? event.dataTransfer
|
|
4874
|
+
: event.originalEvent.dataTransfer;
|
|
4875
|
+
}
|
|
4876
|
+
}
|
|
4877
|
+
BaoFileDropDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileDropDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
4878
|
+
BaoFileDropDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoFileDropDirective, selector: "[baoFileDrop]", outputs: { fileDrop: "fileDrop" }, host: { listeners: { "dragover": "onDragOver($event)", "dragleave": "onDragLeave($event)", "drop": "onDrop($event)" }, properties: { "class.drag-over": "_isDragOver == true" } }, ngImport: i0 });
|
|
4879
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileDropDirective, decorators: [{
|
|
4880
|
+
type: Directive,
|
|
4881
|
+
args: [{
|
|
4882
|
+
selector: '[baoFileDrop]',
|
|
4883
|
+
host: { '[class.drag-over]': '_isDragOver == true' }
|
|
4884
|
+
}]
|
|
4885
|
+
}], propDecorators: { fileDrop: [{
|
|
4886
|
+
type: Output
|
|
4887
|
+
}], onDragOver: [{
|
|
4888
|
+
type: HostListener,
|
|
4889
|
+
args: ['dragover', ['$event']]
|
|
4890
|
+
}], onDragLeave: [{
|
|
4891
|
+
type: HostListener,
|
|
4892
|
+
args: ['dragleave', ['$event']]
|
|
4893
|
+
}], onDrop: [{
|
|
4894
|
+
type: HostListener,
|
|
4895
|
+
args: ['drop', ['$event']]
|
|
4896
|
+
}] } });
|
|
4897
|
+
class BaoFileDropzoneIntructions {
|
|
4898
|
+
constructor(renderer, elementRef) {
|
|
4899
|
+
this.renderer = renderer;
|
|
4900
|
+
this.elementRef = elementRef;
|
|
4901
|
+
}
|
|
4902
|
+
get nativeElement() {
|
|
4903
|
+
return this.elementRef.nativeElement;
|
|
4904
|
+
}
|
|
4905
|
+
ngAfterContentInit() {
|
|
4906
|
+
this.renderer.setAttribute(this.nativeElement, 'aria-hidden', 'true');
|
|
4907
|
+
}
|
|
4908
|
+
}
|
|
4909
|
+
BaoFileDropzoneIntructions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileDropzoneIntructions, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
|
|
4910
|
+
BaoFileDropzoneIntructions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.3", type: BaoFileDropzoneIntructions, selector: "bao-file-dropzone-instructions, [bao-file-dropzone-instructions]", host: { classAttribute: "bao-file-dropzone-instructions" }, ngImport: i0 });
|
|
4911
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileDropzoneIntructions, decorators: [{
|
|
4912
|
+
type: Directive,
|
|
4913
|
+
args: [{
|
|
4914
|
+
selector: 'bao-file-dropzone-instructions, [bao-file-dropzone-instructions]',
|
|
4915
|
+
host: {
|
|
4916
|
+
class: 'bao-file-dropzone-instructions'
|
|
4917
|
+
}
|
|
4918
|
+
}]
|
|
4919
|
+
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; } });
|
|
4920
|
+
|
|
4921
|
+
/*
|
|
4922
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4514
4923
|
* Licensed under the MIT license.
|
|
4515
4924
|
* See LICENSE file in the project root for full license information.
|
|
4516
4925
|
*/
|
|
4926
|
+
const FILE_DIRECTIVES = [
|
|
4927
|
+
BaoFileInputComponent,
|
|
4928
|
+
BaoFileDropzoneIntructions,
|
|
4929
|
+
BaoFileDropDirective,
|
|
4930
|
+
BaoFilePreviewComponent
|
|
4931
|
+
];
|
|
4932
|
+
class BaoFileModule {
|
|
4933
|
+
}
|
|
4934
|
+
BaoFileModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4935
|
+
BaoFileModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoFileModule, declarations: [BaoFileInputComponent,
|
|
4936
|
+
BaoFileDropzoneIntructions,
|
|
4937
|
+
BaoFileDropDirective,
|
|
4938
|
+
BaoFilePreviewComponent], imports: [CommonModule,
|
|
4939
|
+
BaoDropdownMenuModule,
|
|
4940
|
+
BaoCommonComponentsModule,
|
|
4941
|
+
BaoIconModule,
|
|
4942
|
+
BaoButtonModule], exports: [BaoFileInputComponent,
|
|
4943
|
+
BaoFileDropzoneIntructions,
|
|
4944
|
+
BaoFileDropDirective,
|
|
4945
|
+
BaoFilePreviewComponent] });
|
|
4946
|
+
BaoFileModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileModule, providers: [BAO_FILE_INTL_PROVIDER], imports: [CommonModule,
|
|
4947
|
+
BaoDropdownMenuModule,
|
|
4948
|
+
BaoCommonComponentsModule,
|
|
4949
|
+
BaoIconModule,
|
|
4950
|
+
BaoButtonModule] });
|
|
4951
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoFileModule, decorators: [{
|
|
4952
|
+
type: NgModule,
|
|
4953
|
+
args: [{
|
|
4954
|
+
imports: [
|
|
4955
|
+
CommonModule,
|
|
4956
|
+
BaoDropdownMenuModule,
|
|
4957
|
+
BaoCommonComponentsModule,
|
|
4958
|
+
BaoIconModule,
|
|
4959
|
+
BaoButtonModule
|
|
4960
|
+
],
|
|
4961
|
+
declarations: [FILE_DIRECTIVES],
|
|
4962
|
+
exports: [FILE_DIRECTIVES],
|
|
4963
|
+
providers: [BAO_FILE_INTL_PROVIDER]
|
|
4964
|
+
}]
|
|
4965
|
+
}] });
|
|
4517
4966
|
|
|
4518
4967
|
/*
|
|
4519
|
-
* Copyright (c)
|
|
4968
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4520
4969
|
* Licensed under the MIT license.
|
|
4521
4970
|
* See LICENSE file in the project root for full license information.
|
|
4522
4971
|
*/
|
|
4523
4972
|
class BaoModule {
|
|
4524
4973
|
}
|
|
4525
|
-
BaoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4526
|
-
BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4974
|
+
BaoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
4975
|
+
BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, imports: [BaoIconModule,
|
|
4527
4976
|
BaoButtonModule,
|
|
4528
4977
|
BaoAlertModule,
|
|
4529
4978
|
BaoCardModule,
|
|
4530
|
-
BaoBreadcrumbModule
|
|
4979
|
+
BaoBreadcrumbModule,
|
|
4980
|
+
BaoModalModule], exports: [BaoIconModule,
|
|
4531
4981
|
BaoButtonModule,
|
|
4532
4982
|
BaoAlertModule,
|
|
4533
4983
|
BaoBreadcrumbModule,
|
|
@@ -4543,15 +4993,17 @@ BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.
|
|
|
4543
4993
|
BaoTabsModule,
|
|
4544
4994
|
BaoModalModule,
|
|
4545
4995
|
BaoHyperlinkModule,
|
|
4546
|
-
BaoDropdownMenuModule
|
|
4996
|
+
BaoDropdownMenuModule,
|
|
4997
|
+
BaoFileModule
|
|
4547
4998
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
4548
4999
|
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
4549
5000
|
] });
|
|
4550
|
-
BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
5001
|
+
BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, imports: [BaoIconModule,
|
|
4551
5002
|
BaoButtonModule,
|
|
4552
5003
|
BaoAlertModule,
|
|
4553
5004
|
BaoCardModule,
|
|
4554
|
-
BaoBreadcrumbModule,
|
|
5005
|
+
BaoBreadcrumbModule,
|
|
5006
|
+
BaoModalModule, BaoIconModule,
|
|
4555
5007
|
BaoButtonModule,
|
|
4556
5008
|
BaoAlertModule,
|
|
4557
5009
|
BaoBreadcrumbModule,
|
|
@@ -4567,11 +5019,12 @@ BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.
|
|
|
4567
5019
|
BaoTabsModule,
|
|
4568
5020
|
BaoModalModule,
|
|
4569
5021
|
BaoHyperlinkModule,
|
|
4570
|
-
BaoDropdownMenuModule
|
|
5022
|
+
BaoDropdownMenuModule,
|
|
5023
|
+
BaoFileModule
|
|
4571
5024
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
4572
5025
|
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
4573
5026
|
] });
|
|
4574
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5027
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoModule, decorators: [{
|
|
4575
5028
|
type: NgModule,
|
|
4576
5029
|
args: [{
|
|
4577
5030
|
imports: [
|
|
@@ -4579,7 +5032,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4579
5032
|
BaoButtonModule,
|
|
4580
5033
|
BaoAlertModule,
|
|
4581
5034
|
BaoCardModule,
|
|
4582
|
-
BaoBreadcrumbModule
|
|
5035
|
+
BaoBreadcrumbModule,
|
|
5036
|
+
BaoModalModule
|
|
4583
5037
|
],
|
|
4584
5038
|
exports: [
|
|
4585
5039
|
BaoIconModule,
|
|
@@ -4598,7 +5052,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4598
5052
|
BaoTabsModule,
|
|
4599
5053
|
BaoModalModule,
|
|
4600
5054
|
BaoHyperlinkModule,
|
|
4601
|
-
BaoDropdownMenuModule
|
|
5055
|
+
BaoDropdownMenuModule,
|
|
5056
|
+
BaoFileModule
|
|
4602
5057
|
// TODO: reactivate once component does not depend on global css BaoBadgeModule,
|
|
4603
5058
|
// TODO: reactivate once component does not depend on global css BaoSnackBarModule,
|
|
4604
5059
|
]
|
|
@@ -4606,7 +5061,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4606
5061
|
}] });
|
|
4607
5062
|
|
|
4608
5063
|
/*
|
|
4609
|
-
* Copyright (c)
|
|
5064
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4610
5065
|
* Licensed under the MIT license.
|
|
4611
5066
|
* See LICENSE file in the project root for full license information.
|
|
4612
5067
|
*/
|
|
@@ -4615,9 +5070,9 @@ class BaoBadgeComponent {
|
|
|
4615
5070
|
this.type = '';
|
|
4616
5071
|
}
|
|
4617
5072
|
}
|
|
4618
|
-
BaoBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4619
|
-
BaoBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
4620
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5073
|
+
BaoBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5074
|
+
BaoBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.3", type: BaoBadgeComponent, selector: "bao-badge", inputs: { type: "type" }, host: { properties: { "class.positive": "type === \"success\"", "class.negative": "type === \"danger\"", "class.warning": "type === \"warning\"", "class.informative": "type === \"info\"" } }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [":host{display:inline-block;border:.0625rem solid transparent;color:#fff;padding:0 .4375rem;border-radius:10rem;min-width:1.5rem;font-size:.875rem;font-weight:700;line-height:1.25rem;text-align:center;white-space:nowrap;overflow:hidden;vertical-align:baseline}:host.informative{background-color:#0079c4}:host.positive{background-color:#0da566}:host.warning{background-color:#ffb833;color:#000}:host.negative{background-color:#d3310a}\n"] });
|
|
5075
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeComponent, decorators: [{
|
|
4621
5076
|
type: Component,
|
|
4622
5077
|
args: [{ selector: 'bao-badge', host: {
|
|
4623
5078
|
class: '',
|
|
@@ -4631,17 +5086,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4631
5086
|
}] } });
|
|
4632
5087
|
|
|
4633
5088
|
/*
|
|
4634
|
-
* Copyright (c)
|
|
5089
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4635
5090
|
* Licensed under the MIT license.
|
|
4636
5091
|
* See LICENSE file in the project root for full license information.
|
|
4637
5092
|
*/
|
|
4638
5093
|
const BADGE_DIRECTIVES = [BaoBadgeComponent];
|
|
4639
5094
|
class BaoBadgeModule {
|
|
4640
5095
|
}
|
|
4641
|
-
BaoBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4642
|
-
BaoBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "
|
|
4643
|
-
BaoBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "
|
|
4644
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5096
|
+
BaoBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
5097
|
+
BaoBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeModule, declarations: [BaoBadgeComponent], imports: [CommonModule], exports: [BaoBadgeComponent] });
|
|
5098
|
+
BaoBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeModule, imports: [CommonModule] });
|
|
5099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.3", ngImport: i0, type: BaoBadgeModule, decorators: [{
|
|
4645
5100
|
type: NgModule,
|
|
4646
5101
|
args: [{
|
|
4647
5102
|
imports: [CommonModule],
|
|
@@ -4651,25 +5106,31 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4651
5106
|
}] });
|
|
4652
5107
|
|
|
4653
5108
|
/*
|
|
4654
|
-
* Copyright (c)
|
|
5109
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
5110
|
+
* Licensed under the MIT license.
|
|
5111
|
+
* See LICENSE file in the project root for full license information.
|
|
5112
|
+
*/
|
|
5113
|
+
|
|
5114
|
+
/*
|
|
5115
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4655
5116
|
* Licensed under the MIT license.
|
|
4656
5117
|
* See LICENSE file in the project root for full license information.
|
|
4657
5118
|
*/
|
|
4658
5119
|
|
|
4659
5120
|
/*
|
|
4660
|
-
* Copyright (c)
|
|
5121
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4661
5122
|
* Licensed under the MIT license.
|
|
4662
5123
|
* See LICENSE file in the project root for full license information.
|
|
4663
5124
|
*/
|
|
4664
5125
|
|
|
4665
5126
|
/*
|
|
4666
|
-
* Copyright (c)
|
|
5127
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4667
5128
|
* Licensed under the MIT license.
|
|
4668
5129
|
* See LICENSE file in the project root for full license information.
|
|
4669
5130
|
*/
|
|
4670
5131
|
|
|
4671
5132
|
/*
|
|
4672
|
-
* Copyright (c)
|
|
5133
|
+
* Copyright (c) 2023 Ville de Montreal. All rights reserved.
|
|
4673
5134
|
* Licensed under the MIT license.
|
|
4674
5135
|
* See LICENSE file in the project root for full license information.
|
|
4675
5136
|
*/
|
|
@@ -4678,5 +5139,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
|
|
|
4678
5139
|
* Generated bundle index. Do not edit.
|
|
4679
5140
|
*/
|
|
4680
5141
|
|
|
4681
|
-
export { 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, 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 };
|
|
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 };
|
|
4682
5143
|
//# sourceMappingURL=villedemontreal-angular-ui.mjs.map
|