@villedemontreal/angular-ui 2.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (99) hide show
  1. package/README.md +25 -0
  2. package/esm2020/lib/alert/alert.component.mjs +164 -0
  3. package/esm2020/lib/alert/index.mjs +8 -0
  4. package/esm2020/lib/alert/module.mjs +41 -0
  5. package/esm2020/lib/badge/badge.component.mjs +27 -0
  6. package/esm2020/lib/badge/index.mjs +8 -0
  7. package/esm2020/lib/badge/module.mjs +24 -0
  8. package/esm2020/lib/bao.module.mjs +87 -0
  9. package/esm2020/lib/breadcrumb/breadcrumb.component.mjs +36 -0
  10. package/esm2020/lib/breadcrumb/index.mjs +8 -0
  11. package/esm2020/lib/breadcrumb/module.mjs +25 -0
  12. package/esm2020/lib/button/button.component.mjs +100 -0
  13. package/esm2020/lib/button/index.mjs +8 -0
  14. package/esm2020/lib/button/module.mjs +25 -0
  15. package/esm2020/lib/card/card.component.mjs +94 -0
  16. package/esm2020/lib/card/index.mjs +8 -0
  17. package/esm2020/lib/card/module.mjs +38 -0
  18. package/esm2020/lib/checkbox/checkbox-group.component.mjs +59 -0
  19. package/esm2020/lib/checkbox/checkbox.component.mjs +305 -0
  20. package/esm2020/lib/checkbox/index.mjs +9 -0
  21. package/esm2020/lib/checkbox/module.mjs +35 -0
  22. package/esm2020/lib/common-components/error-text/errorText.component.mjs +16 -0
  23. package/esm2020/lib/common-components/guiding-text/guidingText.component.mjs +16 -0
  24. package/esm2020/lib/common-components/index.mjs +10 -0
  25. package/esm2020/lib/common-components/legend-text/legendText.component.mjs +22 -0
  26. package/esm2020/lib/common-components/module.mjs +32 -0
  27. package/esm2020/lib/core/colors.mjs +42 -0
  28. package/esm2020/lib/header-info/header-info.component.mjs +104 -0
  29. package/esm2020/lib/header-info/index.mjs +8 -0
  30. package/esm2020/lib/header-info/module.mjs +41 -0
  31. package/esm2020/lib/icon/bao-icon-registry.mjs +44 -0
  32. package/esm2020/lib/icon/icon.component.mjs +160 -0
  33. package/esm2020/lib/icon/icons-dictionary.mjs +123 -0
  34. package/esm2020/lib/icon/index.mjs +8 -0
  35. package/esm2020/lib/icon/module.mjs +24 -0
  36. package/esm2020/lib/list/index.mjs +8 -0
  37. package/esm2020/lib/list/list.component.mjs +73 -0
  38. package/esm2020/lib/list/module.mjs +38 -0
  39. package/esm2020/lib/radio/index.mjs +9 -0
  40. package/esm2020/lib/radio/module.mjs +56 -0
  41. package/esm2020/lib/radio/radio-group.component.mjs +250 -0
  42. package/esm2020/lib/radio/radio.component.mjs +292 -0
  43. package/esm2020/lib/tag/index.mjs +8 -0
  44. package/esm2020/lib/tag/module.mjs +24 -0
  45. package/esm2020/lib/tag/tag.component.mjs +75 -0
  46. package/esm2020/public-api.mjs +19 -0
  47. package/esm2020/villedemontreal-angular-ui.mjs +5 -0
  48. package/fesm2015/villedemontreal-angular-ui.mjs +2461 -0
  49. package/fesm2015/villedemontreal-angular-ui.mjs.map +1 -0
  50. package/fesm2020/villedemontreal-angular-ui.mjs +2455 -0
  51. package/fesm2020/villedemontreal-angular-ui.mjs.map +1 -0
  52. package/global.scss +6 -0
  53. package/lib/alert/alert.component.d.ts +77 -0
  54. package/lib/alert/index.d.ts +2 -0
  55. package/lib/alert/module.d.ts +10 -0
  56. package/lib/badge/badge.component.d.ts +6 -0
  57. package/lib/badge/index.d.ts +2 -0
  58. package/lib/badge/module.d.ts +8 -0
  59. package/lib/bao.module.d.ts +17 -0
  60. package/lib/breadcrumb/breadcrumb.component.d.ts +12 -0
  61. package/lib/breadcrumb/index.d.ts +2 -0
  62. package/lib/breadcrumb/module.d.ts +9 -0
  63. package/lib/button/button.component.d.ts +47 -0
  64. package/lib/button/index.d.ts +2 -0
  65. package/lib/button/module.d.ts +9 -0
  66. package/lib/card/card.component.d.ts +44 -0
  67. package/lib/card/index.d.ts +2 -0
  68. package/lib/card/module.d.ts +8 -0
  69. package/lib/checkbox/checkbox-group.component.d.ts +25 -0
  70. package/lib/checkbox/checkbox.component.d.ts +152 -0
  71. package/lib/checkbox/index.d.ts +3 -0
  72. package/lib/checkbox/module.d.ts +11 -0
  73. package/lib/common-components/error-text/errorText.component.d.ts +5 -0
  74. package/lib/common-components/guiding-text/guidingText.component.d.ts +5 -0
  75. package/lib/common-components/index.d.ts +4 -0
  76. package/lib/common-components/legend-text/legendText.component.d.ts +6 -0
  77. package/lib/common-components/module.d.ts +10 -0
  78. package/lib/core/colors.d.ts +12 -0
  79. package/lib/header-info/header-info.component.d.ts +39 -0
  80. package/lib/header-info/index.d.ts +2 -0
  81. package/lib/header-info/module.d.ts +8 -0
  82. package/lib/icon/bao-icon-registry.d.ts +12 -0
  83. package/lib/icon/icon.component.d.ts +43 -0
  84. package/lib/icon/icons-dictionary.d.ts +3 -0
  85. package/lib/icon/index.d.ts +2 -0
  86. package/lib/icon/module.d.ts +8 -0
  87. package/lib/list/index.d.ts +2 -0
  88. package/lib/list/list.component.d.ts +21 -0
  89. package/lib/list/module.d.ts +8 -0
  90. package/lib/radio/index.d.ts +3 -0
  91. package/lib/radio/module.d.ts +13 -0
  92. package/lib/radio/radio-group.component.d.ts +110 -0
  93. package/lib/radio/radio.component.d.ts +112 -0
  94. package/lib/tag/index.d.ts +2 -0
  95. package/lib/tag/module.d.ts +8 -0
  96. package/lib/tag/tag.component.d.ts +25 -0
  97. package/package.json +33 -0
  98. package/public-api.d.ts +13 -0
  99. package/villedemontreal-angular-ui.d.ts +5 -0
@@ -0,0 +1,2455 @@
1
+ import * as i0 from '@angular/core';
2
+ import { SecurityContext, Injectable, Inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Attribute, Input, NgModule, Directive, EventEmitter, Output, CUSTOM_ELEMENTS_SCHEMA, ViewChild, forwardRef, InjectionToken, ContentChildren, Optional } from '@angular/core';
3
+ import * as i1$1 from '@angular/common';
4
+ import { DOCUMENT, CommonModule } from '@angular/common';
5
+ import * as i1 from '@angular/platform-browser';
6
+ import * as i1$2 from '@angular/cdk/observers';
7
+ import { ObserversModule } from '@angular/cdk/observers';
8
+ import { NG_VALUE_ACCESSOR, FormsModule, ReactiveFormsModule } from '@angular/forms';
9
+ import * as i1$3 from '@angular/cdk/a11y';
10
+ import { coerceBooleanProperty } from '@angular/cdk/coercion';
11
+ import * as i2 from '@angular/cdk/collections';
12
+
13
+ /*
14
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
15
+ * Licensed under the MIT license.
16
+ * See LICENSE file in the project root for full license information.
17
+ */
18
+ var BaoColors;
19
+ (function (BaoColors) {
20
+ BaoColors["ACTION"] = "action";
21
+ BaoColors["PRIMARY"] = "primary";
22
+ BaoColors["PRIMARY_REVERSED"] = "primary-reversed";
23
+ BaoColors["SECONDARY"] = "secondary";
24
+ BaoColors["TERTIARY"] = "tertiary";
25
+ BaoColors["INFORMATIVE"] = "informative";
26
+ BaoColors["NEGATIVE"] = "negative";
27
+ BaoColors["POSITIVE"] = "positive";
28
+ BaoColors["WARNING"] = "warning";
29
+ })(BaoColors || (BaoColors = {}));
30
+ function baoColorToHex(baoColor) {
31
+ switch (baoColor) {
32
+ case BaoColors.ACTION:
33
+ return '#097D6C';
34
+ case BaoColors.PRIMARY:
35
+ return '#000000';
36
+ case BaoColors.PRIMARY_REVERSED:
37
+ return '#FFFFFF';
38
+ case BaoColors.SECONDARY:
39
+ return '#637381';
40
+ case BaoColors.TERTIARY:
41
+ return '#ADB5BD';
42
+ case BaoColors.INFORMATIVE:
43
+ return '#0079C4';
44
+ case BaoColors.NEGATIVE:
45
+ return '#D3310A';
46
+ case BaoColors.POSITIVE:
47
+ return '#0DA566';
48
+ case BaoColors.WARNING:
49
+ return '#FFB833';
50
+ default:
51
+ return '#097D6C';
52
+ }
53
+ }
54
+
55
+ /*
56
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
57
+ * Licensed under the MIT license.
58
+ * See LICENSE file in the project root for full license information.
59
+ */
60
+ const ICONS_DCT = {
61
+ 'icon-anchor': "<path fill-rule='evenodd' clip-rule='evenodd' d='M12 1a4 4 0 011 7.874v12.071A9.004 9.004 0 0020.946 13H19a1 1 0 110-2h3a1 1 0 011 1c0 6.075-4.925 11-11 11a1 1 0 01-1-1V8.874A4.002 4.002 0 0112 1zM5 11a1 1 0 110 2H3.055a9.003 9.003 0 005.372 7.263 1 1 0 01-.795 1.835A11.001 11.001 0 011 12a1 1 0 011-1h3zm7-8a2 2 0 100 4 2 2 0 000-4z'/>",
62
+ 'icon-apps': "<path fill-rule='evenodd' d='M4 1h4a3 3 0 013 3v4a3 3 0 01-3 3H4a3 3 0 01-3-3V4a3 3 0 013-3zm0 2a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V4a1 1 0 00-1-1H4zm0 10h4a3 3 0 013 3v4a3 3 0 01-3 3H4a3 3 0 01-3-3v-4a3 3 0 013-3zm0 2a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1v-4a1 1 0 00-1-1H4zM16 1h4a3 3 0 013 3v4a3 3 0 01-3 3h-4a3 3 0 01-3-3V4a3 3 0 013-3zm0 2a1 1 0 00-1 1v4a1 1 0 001 1h4a1 1 0 001-1V4a1 1 0 00-1-1h-4zm4 18a1 1 0 010 2h-4a3 3 0 01-3-3v-4a3 3 0 013-3h4a3 3 0 013 3v3a1 1 0 01-2 0v-3a1 1 0 00-1-1h-4a1 1 0 00-1 1v4a1 1 0 001 1h4z'/>",
63
+ 'icon-archive': "<path fill-rule='evenodd' d='M2 9H1a1 1 0 01-1-1V3a1 1 0 011-1h22a1 1 0 011 1v5a1 1 0 01-1 1H4v11h16v-8a1 1 0 012 0v9a1 1 0 01-1 1H3a1 1 0 01-1-1V9zm0-5v3h20V4H2zm8 9a1 1 0 010-2h4a1 1 0 010 2h-4z'/>",
64
+ 'icon-arrow-left': "<path fill-rule='evenodd' d='M3.073 11.624a1 1 0 00.22 1.083l6 6a1 1 0 001.414-1.414L6.414 13H20a1 1 0 000-2H4a1 1 0 00-.921.61zm7.634-4.917a1 1 0 10-1.414-1.414L6.258 8.328a1 1 0 101.414 1.414l3.035-3.035z'/>",
65
+ 'icon-arrow-right': "<path fill-rule='evenodd' d='M20.927 11.624a1 1 0 01-.22 1.083l-6 6a1 1 0 01-1.414-1.414L17.586 13H4a1 1 0 010-2h16a1 1 0 01.921.61zm-7.634-4.917a1 1 0 111.414-1.414l3.035 3.035a1 1 0 11-1.414 1.414l-3.035-3.035z'/>",
66
+ 'icon-bell-active': "<path fill-rule='evenodd' d='M12 1a1 1 0 01.993.883L13 2v1.07c3.392.486 6 3.404 6 6.93v4.172c0 1.545.614 3.028 1.707 4.12.63.63.184 1.708-.707 1.708h-5l-.005.176A3 3 0 019 20.001L4 20c-.89 0-1.337-1.077-.707-1.707A5.828 5.828 0 005 14.172V10a7.002 7.002 0 016-6.93V2a1 1 0 011-1zm1 19h-2a1 1 0 002 0zM12 5a5 5 0 00-5 5v4.172C7 15.524 6.65 16.84 6 18h12c-.65-1.16-1-2.476-1-3.828V10a5 5 0 00-5-5zM5.6 1.793a1 1 0 010 1.414 8.967 8.967 0 00-2.636 6.364 1 1 0 11-2 0c0-2.898 1.132-5.688 3.222-7.778a1 1 0 011.415 0zm14.143 0a10.967 10.967 0 013.221 7.778 1 1 0 01-2 0 8.967 8.967 0 00-2.636-6.364 1 1 0 111.415-1.414z'/>",
67
+ 'icon-bell-off': "<path fill-rule='evenodd' d='M1.613.21l.094.083 22 22a1 1 0 01-1.32 1.497l-.094-.083L18.584 20H15V20a3 3 0 01-6 0v-.001L4 20c-.852 0-1.297-.986-.783-1.623l.076-.084A5.828 5.828 0 005 14.172c0-.029.001-.057.003-.085L5 14v-4c0-1.004.248-1.875.75-2.832L.294 1.708A1 1 0 011.613.21zM11 19.999V20a1 1 0 002 0v-.001h-2zM7.257 8.674c-.15.385-.23.747-.252 1.126L7 10v4l-.005.083.005.089c0 1.24-.294 2.449-.844 3.535L6 18l10.584-.001-9.327-9.325zM12 1a1 1 0 01.993.883L13 2l.001 1.071A7.002 7.002 0 0119 10v3a1 1 0 01-2 0v-3a5 5 0 00-7.172-4.505 1 1 0 11-.87-1.8A6.955 6.955 0 0111 3.07V2a1 1 0 011-1z'/>",
68
+ 'icon-bell': "<path fill-rule='evenodd' d='M12 1a1 1 0 011 1l.001 1.071A7.002 7.002 0 0119 10v4.172c0 1.545.614 3.028 1.707 4.12.63.63.184 1.708-.707 1.708h-5a3 3 0 01-6 0H4c-.89 0-1.337-1.077-.707-1.707A5.828 5.828 0 005 14.172V10a7.002 7.002 0 016-6.93V2a1 1 0 011-1zm1 19h-2a1 1 0 002 0zM12 5a5 5 0 00-5 5v4.172C7 15.524 6.65 16.84 6 18h12c-.65-1.16-1-2.476-1-3.828V10a5 5 0 00-5-5z'/>",
69
+ 'icon-bolt': "<path fill-rule='evenodd' clip-rule='evenodd' d='M11 15v7c0 .99 1.283 1.378 1.832.555l8-12A1 1 0 0020 9h-7V2c0-.99-1.283-1.378-1.832-.555l-8 12A1 1 0 004 15h7zm0-9.697V10a1 1 0 001 1h6.131L13 18.697V14a1 1 0 00-1-1H5.868L11 5.303z'/>",
70
+ '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'/>",
71
+ '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'/>",
72
+ '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'/>",
73
+ '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'/>",
74
+ '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'/>",
75
+ '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'/>",
76
+ 'icon-chevron-down': "<path fill-rule='evenodd' d='M12 12.586l3.293-3.293a1 1 0 011.414 1.414l-4 4a1 1 0 01-1.414 0l-4-4a1 1 0 011.414-1.414L12 12.586z'/>",
77
+ 'icon-chevron-left': "<path fill-rule='evenodd' d='M11.414 12l3.293-3.293a1 1 0 00-1.414-1.414l-4 4a1 1 0 000 1.414l4 4a1 1 0 001.414-1.414L11.414 12z'/>",
78
+ 'icon-chevron-right': "<path fill-rule='evenodd' 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'/>",
79
+ 'icon-chevron-up': "<path fill-rule='evenodd' d='M12 11.414l3.293 3.293a1 1 0 001.414-1.414l-4-4a1 1 0 00-1.414 0l-4 4a1 1 0 001.414 1.414L12 11.414z'/>",
80
+ 'icon-clipboard': "<path fill-rule='evenodd' clip-rule='evenodd' d='M9 1h6a2 2 0 012 2h1a3 3 0 013 3v10a1 1 0 11-2 0V6a1 1 0 00-1-1h-1a2 2 0 01-2 2H9a2 2 0 01-2-2H6a1 1 0 00-1 1v14a1 1 0 001 1h12a1 1 0 001-1 1 1 0 112 0 3 3 0 01-3 3H6a3 3 0 01-3-3V6a3 3 0 013-3h1a2 2 0 012-2zm0 3v1h6V3H9v1z'/>",
81
+ 'icon-clock': "<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.477zM13 6v5.586l2.707 2.707a1 1 0 01-1.414 1.414l-3-3A1 1 0 0111 12V6a1 1 0 012 0z'/>",
82
+ 'icon-comment': "<path fill-rule='evenodd' d='M4 18.586V5a1 1 0 011-1h14a1 1 0 000-2H5a3 3 0 00-3 3v16c0 .89 1.077 1.337 1.707.707L7.414 18H19a3 3 0 003-3V6a1 1 0 00-2 0v9a1 1 0 01-1 1H7a1 1 0 00-.707.293L4 18.586z'/>",
83
+ 'icon-cone-fill': "<path fill-rule='evenodd' clip-rule='evenodd' d='M9.82 2a1 1 0 00-.98.804L8.2 6h7.6l-.64-3.196A1 1 0 0014.18 2H9.82zm6.78 8H7.4l-.8 4h10.8l-.8-4zm1.18 12H5a1 1 0 01-1-1v-2a1 1 0 011-1H19a1 1 0 011 1v2a1 1 0 01-1 1h-1.22z'/>",
84
+ 'icon-cone': "<path fill-rule='evenodd' clip-rule='evenodd' d='M10 2h2a1 1 0 01.117 1.993L12 4h-1.18l-.601 3h3.561l-.358-1.79a1 1 0 011.932-.505l.03.113L17.818 17H19a1 1 0 011 1v3a1 1 0 01-1 1H5a1 1 0 01-1-1v-3a1 1 0 011-1h1.18L9.02 2.804a1 1 0 01.862-.797L10 2h2-2zm8 17H6v1h12v-1zm-2.82-5H8.819l-.6 3h7.561l-.6-3zm-1-5H9.819l-.6 3h5.561l-.6-3z'/>",
85
+ 'icon-copy': "<path fill-rule='evenodd' d='M11 8h9a3 3 0 013 3v9a3 3 0 01-3 3h-9a3 3 0 01-3-3v-9a3 3 0 013-3zm0 2a1 1 0 00-1 1v9a1 1 0 001 1h9a1 1 0 001-1v-9a1 1 0 00-1-1h-9zm-6 4a1 1 0 010 2H4a3 3 0 01-3-3V4a3 3 0 013-3h9a3 3 0 013 3v1a1 1 0 01-2 0V4a1 1 0 00-1-1H4a1 1 0 00-1 1v9a1 1 0 001 1h1z'/>",
86
+ 'icon-copyright': "<path fill-rule='evenodd' d='M12 23c6.075 0 11-4.925 11-11S18.075 1 12 1 1 5.925 1 12s4.925 11 11 11zm0-2a9 9 0 110-18 9 9 0 010 18zm3.536-12.536a5 5 0 100 7.072 1 1 0 00-1.415-1.415 3 3 0 110-4.242 1 1 0 001.415-1.415z'/>",
87
+ 'icon-cut': "<path fill-rule='evenodd' d='M11.586 12L9.032 9.446a4 4 0 111.414-1.414L13 10.586l7.293-7.293a1 1 0 011.414 1.414l-11.26 11.261a4 4 0 11-1.414-1.414L11.585 12zM8.449 7.378A2 2 0 105.55 4.622a2 2 0 002.9 2.756zm-.07 9.173a2 2 0 10-2.756 2.899 2 2 0 002.755-2.9zm6.385-1.363a1 1 0 011.412-1.416l5.53 5.52a1 1 0 01-1.412 1.416l-5.53-5.52z'/>",
88
+ 'icon-delivery': "<path fill-rule='evenodd' clip-rule='evenodd' d='M15 4H2v5a1 1 0 01-2 0V3a1 1 0 011-1h15a1 1 0 011 1v4h3a1 1 0 01.707.293l3 3A1 1 0 0124 11v5a1 1 0 01-1 1h-1.337a3.5 3.5 0 11-6.326 0H8.663a3.5 3.5 0 11-6.326 0H1a1 1 0 01-1-1v-3a1 1 0 112 0v2h13V4zm3.5 13a1.5 1.5 0 100 3 1.5 1.5 0 000-3zm0-2H22v-3.586L19.586 9H17v6h1.5zM4 18.5a1.5 1.5 0 113 0 1.5 1.5 0 01-3 0z'/>",
89
+ 'icon-dot-bullet': "<circle cx='12' cy='12' r='4' fill-rule='evenodd'/>",
90
+ 'icon-dot-interpunct': "<circle cx='12' cy='12' r='2' fill-rule='evenodd'/>",
91
+ 'icon-download': "<path fill-rule='evenodd' d='M12.376 15.927a1 1 0 01-1.083-.22l-5-5a1 1 0 011.414-1.414L11 12.586V3a1 1 0 012 0v12a1 1 0 01-.61.921zM20 15a1 1 0 012 0v4a3 3 0 01-3 3H5a3 3 0 01-3-3v-4a1 1 0 012 0v4a1 1 0 001 1h14a1 1 0 001-1v-4zm-3.707-5.707a1 1 0 011.414 1.414l-2 2a1 1 0 01-1.414-1.414l2-2z'/>",
92
+ 'icon-droplet': "<path fill-rule='evenodd' clip-rule='evenodd' d='M11.293 1.293a1 1 0 011.414 0l2 2a1 1 0 01-1.414 1.414L12 3.414 8.707 6.707C6.321 9.093 5 11.38 5 13a7 7 0 1014 0c0-1.465-.915-3.295-2.744-5.332a1 1 0 111.488-1.336C19.872 8.702 21 10.957 21 13a9 9 0 11-18 0c0-2.268 1.567-4.982 4.293-7.707l4-4zm2.828 8.171a1 1 0 011.415 0 5 5 0 010 7.071 1 1 0 11-1.415-1.414 3 3 0 000-4.242 1 1 0 010-1.415z'/>",
93
+ 'icon-duplicate': "<path fill-rule='evenodd' clip-rule='evenodd' d='M16 4a8 8 0 11-4 14.93A8 8 0 1112 5.07 7.949 7.949 0 0116 4zM8 6a6 6 0 102.251 11.563A7.975 7.975 0 018 12c0-2.162.857-4.123 2.25-5.563A5.959 5.959 0 008 6zm8 0c-.796 0-1.556.155-2.251.437A7.975 7.975 0 0116 12a7.974 7.974 0 01-2.25 5.563A6 6 0 1016 6z'/>",
94
+ 'icon-edit': "<path fill-rule='evenodd' d='M15.707 4.707a1 1 0 00-1.414-1.414l-2 2-10 10A1 1 0 002 16v5a1 1 0 001 1h5a1 1 0 00.707-.293l10-10 3-3a1 1 0 000-1.414l-3-3a1 1 0 10-1.414 1.414L19.586 8 18 9.586 14.414 6l1.293-1.293zM13 7.414l-9 9V20h3.586l9-9L13 7.414z'/>",
95
+ 'icon-email': "<path fill-rule='evenodd' d='M1 6.012v-.03A3.006 3.006 0 014 3h16a3.006 3.006 0 013 2.983V18c0 1.652-1.348 3-3 3h-2a1 1 0 010-2h2c.548 0 1-.452 1-1V7.92l-8.427 5.9a1 1 0 01-1.146 0L3 7.92V18c0 .548.452 1 1 1h10a1 1 0 010 2H4c-1.652 0-3-1.348-3-3V6.012zM20 5H4c-.388 0-.728.227-.893.554L12 11.779l8.893-6.225A1.006 1.006 0 0020 5z'/>",
96
+ 'icon-error': "<path fill-rule='evenodd' clip-rule='evenodd' d='M21.542 17.477a1 1 0 11-1.734-.997A8.953 8.953 0 0021 12a9 9 0 10-9 9 8.954 8.954 0 004.484-1.195 1 1 0 11.998 1.733A10.952 10.952 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.477zM11 7a1 1 0 112 0v6a1 1 0 11-2 0V7zm1 9a1 1 0 100 2 1 1 0 000-2z'/>",
97
+ 'icon-exclamation': "<path fill-rule='evenodd' clip-rule='evenodd' d='M10.074 1a1 1 0 00-.997 1.071l.857 12a1 1 0 00.997.929h2.138a1 1 0 00.997-.929l.857-12A1 1 0 0013.927 1h-3.852zM12 17a3 3 0 100 6 3 3 0 000-6z'/>",
98
+ 'icon-externallink': "<path fill-rule='evenodd' d='M16.586 6H13a1 1 0 010-2h6a1 1 0 011 1v6a1 1 0 01-2 0V7.414l-6.293 6.293a1 1 0 01-1.414-1.414L16.586 6zM16 15a1 1 0 012 0v2a3 3 0 01-3 3H7a3 3 0 01-3-3V9a3 3 0 013-3h2a1 1 0 110 2H7a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1v-2z'/>",
99
+ 'icon-eye-off': "<path fill-rule='evenodd' d='M16.371 17.786l-2.321-2.322A4 4 0 018.536 9.95L5.987 7.401a17.45 17.45 0 00-3.844 4.602 18.513 18.513 0 002.462 3.313C6.776 17.632 9.255 19 11.984 19a9.07 9.07 0 004.387-1.214zm2.264-.565a1 1 0 01.022.022l5.05 5.05a1 1 0 01-1.414 1.414l-4.467-4.467A11.089 11.089 0 0112 21c-3.38 0-6.339-1.632-8.855-4.316a20.492 20.492 0 01-2.25-2.891 15.188 15.188 0 01-.79-1.346 1 1 0 01.014-.92 19.45 19.45 0 014.45-5.544L.292 1.707A1 1 0 111.707.293L6.755 5.34a1 1 0 01.022.022l3.806 3.806.007.007 4.234 4.234.007.007 3.804 3.804zm-8.607-5.779a1.999 1.999 0 002.53 2.53l-2.53-2.53zm11.398-.15a18.513 18.513 0 00-2.03-2.608C17.223 6.368 14.745 5 11.997 5a8.12 8.12 0 00-1.87.214 1 1 0 01-.456-1.948A10.116 10.116 0 0112 3c3.38 0 6.339 1.632 8.855 4.316a20.492 20.492 0 012.25 2.891c.385.596.649 1.065.79 1.346a1 1 0 01-.013.918 19.5 19.5 0 01-2.277 3.363 1 1 0 01-1.53-1.288 17.5 17.5 0 001.783-2.548c-.126-.217-.27-.454-.432-.705z'/>",
100
+ 'icon-eye': "<path fill-rule='evenodd' d='M2.574 12.707c.575.89 1.254 1.781 2.03 2.61C6.777 17.631 9.255 19 12 19c2.745 0 5.224-1.368 7.395-3.684A18.513 18.513 0 0021.86 12a18.513 18.513 0 00-2.464-3.316C17.224 6.368 14.745 5 12 5 9.255 5 6.776 6.368 4.605 8.684A18.513 18.513 0 002.14 12c.126.218.27.455.433.707zM.106 11.553c.14-.281.404-.75.788-1.346a20.492 20.492 0 012.251-2.89C5.661 4.631 8.62 3 12 3c3.38 0 6.339 1.632 8.855 4.316a20.492 20.492 0 012.25 2.891c.385.596.649 1.065.79 1.346a1 1 0 010 .894c-.141.281-.405.75-.79 1.346a20.492 20.492 0 01-2.25 2.89C18.339 19.369 15.38 21 12 21c-3.38 0-6.339-1.632-8.855-4.316a20.492 20.492 0 01-2.25-2.891 15.188 15.188 0 01-.79-1.346 1 1 0 010-.894zM12 16a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4z'/>",
101
+ 'icon-file-edit': "<path fill-rule='evenodd' d='M16 8.414l-7 7V18h2.586l7-7L16 8.414zM17.414 7L20 9.586 21.586 8 19 5.414 17.414 7zm-4.707 12.707A1 1 0 0112 20H8a1 1 0 01-1-1v-4a1 1 0 01.293-.707l11-11a1 1 0 011.414 0l4 4a1 1 0 010 1.414l-11 11zM16 0a1 1 0 010 2H6a1 1 0 00-1 1v18a1 1 0 001 1h12a1 1 0 001-1v-4a1 1 0 012 0v4a3 3 0 01-3 3H6a3 3 0 01-3-3V3a3 3 0 013-3h10z'/>",
102
+ 'icon-file-pdf': "<path fill-rule='evenodd' d='M21 13h1a1 1 0 010 2h-1v2a1 1 0 01-2 0v-6a1 1 0 011-1h3a1 1 0 010 2h-2v1zm-6-8.586V7h2.586L15 4.414zm5.707 2.879C21.337 7.923 20.891 9 20 9h-6a1 1 0 01-1-1V3H6a1 1 0 00-1 1v16a1 1 0 001 1h12a1 1 0 001-1 1 1 0 012 0 3 3 0 01-3 3H6a3 3 0 01-3-3V4a3 3 0 013-3h8a1 1 0 01.707.293l6 6zM10 13a1 1 0 00-1-1v2a1 1 0 001-1zm-1 4c0 1.333-2 1.333-2 0v-6a1 1 0 011-1h1a3 3 0 010 6v1zm6-1a1 1 0 001-1v-2a1 1 0 00-1-1v4zm-1-6h1a3 3 0 013 3v2a3 3 0 01-3 3h-1a1 1 0 01-1-1v-6a1 1 0 011-1z'/>",
103
+ 'icon-file': "<path fill-rule='evenodd' d='M15 4.414V7h2.586L15 4.414zm5.707 2.879C21.337 7.923 20.891 9 20 9h-6a1 1 0 01-1-1V3H6a1 1 0 00-1 1v16a1 1 0 001 1h12a1 1 0 001-1v-8a1 1 0 012 0v8a3 3 0 01-3 3H6a3 3 0 01-3-3V4a3 3 0 013-3h8a1 1 0 01.707.293l6 6z'/>",
104
+ 'icon-filters': "<path fill-rule='evenodd' clip-rule='evenodd' d='M5 10V3a1 1 0 00-2 0v7a1 1 0 102 0zm-1 3H1a1 1 0 100 2h2v6a1 1 0 102 0v-6h2a1 1 0 100-2H4zm9-1v9a1 1 0 11-2 0v-9a1 1 0 112 0zM9 9h6a1 1 0 100-2h-2V3a1 1 0 10-2 0v4H9a1 1 0 100 2zm12 8v4a1 1 0 11-2 0v-4h-2a1 1 0 110-2h6a1 1 0 110 2h-2zm0-5V3a1 1 0 10-2 0v9a1 1 0 102 0z'/>",
105
+ 'icon-flag': "<path fill-rule='evenodd' clip-rule='evenodd' d='M6.246 3.428A4.09 4.09 0 006 3.536v9.86C6.82 13.143 7.814 13 9 13c1.417 0 2.383.276 4.371 1.072 1.762.704 2.546.928 3.629.928.73 0 1.361-.063 1.902-.177a1 1 0 11.413 1.956c-.68.144-1.45.221-2.315.221-1.417 0-2.383-.276-4.371-1.072C10.867 15.224 10.083 15 9 15c-1.189 0-2.094.165-2.754.428a4.077 4.077 0 00-.246.108V22a1 1 0 11-2 0V3a1 1 0 01.293-.707c.22-.22.614-.483 1.21-.721C6.407 1.21 7.564 1 9 1c1.417 0 2.383.276 4.371 1.072C15.133 2.776 15.917 3 17 3c1.189 0 2.094-.165 2.754-.428.341-.137.508-.249.539-.28C20.923 1.663 22 2.11 22 3v9a1 1 0 11-2 0V4.604c-.82.253-1.814.396-3 .396-1.417 0-2.383-.276-4.371-1.072C10.867 3.224 10.083 3 9 3c-1.189 0-2.094.165-2.754.428z'/>",
106
+ 'icon-folder': "<path fill-rule='evenodd' d='M8.465 4l1.703 2.555A1 1 0 0011 7h9a1 1 0 011 1v10a1 1 0 002 0V8a3 3 0 00-3-3h-8.465L9.832 2.445A1 1 0 009 2H4a3 3 0 00-3 3v14a3 3 0 003 3h16a1 1 0 000-2H4a1 1 0 01-1-1V5a1 1 0 011-1h4.465z'/>",
107
+ 'icon-heart': "<path fill-rule='evenodd' d='M12 4.256l-.353-.353a6.501 6.501 0 00-9.194 9.194l8.84 8.84a1 1 0 001.414 0l5.78-5.78a1 1 0 00-1.414-1.414L12 19.816l-8.133-8.133a4.501 4.501 0 016.366-6.366l1.06 1.06a1 1 0 001.414 0l1.06-1.06a4.5 4.5 0 116.366 6.366 1 1 0 001.414 1.414A6.5 6.5 0 0016.95 1.998a6.5 6.5 0 00-4.597 1.905L12 4.256z'/>",
108
+ 'icon-help': "<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-11.498-8.14a1 1 0 01-1.887-.664 4 4 0 017.773 1.332c0 1.28-.758 2.29-1.945 3.082a7.575 7.575 0 01-1.739.867 1 1 0 01-.632-1.898 5.988 5.988 0 001.262-.633c.687-.459 1.054-.948 1.054-1.42a2 2 0 00-3.886-.666zm1.26 8.375a1 1 0 111.413-1.414 1 1 0 01-1.414 1.414z'/>",
109
+ 'icon-home': "<path fill-rule='evenodd' d='M5 11v10h4v-6a1 1 0 011-1h4a1 1 0 011 1v6h4v-7a1 1 0 012 0v8a1 1 0 01-1 1h-6a1 1 0 01-1-1v-6h-2v6a1 1 0 01-1 1H4a1 1 0 01-1-1V11H2c-.945 0-1.363-1.19-.625-1.78l10-8a1 1 0 011.25 0l10 8c.738.59.32 1.78-.625 1.78H5zm14.15-2L12 3.28 4.85 9h14.3z'/>",
110
+ 'icon-image': "<path fill-rule='evenodd' d='M20 12.586V5a1 1 0 00-1-1H5a1 1 0 00-1 1v14a1 1 0 001 1h14a1 1 0 001-1v-3.586l-4.046-4.045-7.295 6.384a1 1 0 01-1.318-1.506l8-7a1 1 0 011.366.046L20 12.586zM5 2h14a3 3 0 013 3v14a3 3 0 01-3 3H5a3 3 0 01-3-3V5a3 3 0 013-3zm3.5 9a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm0-2a.5.5 0 100-1 .5.5 0 000 1z'/>",
111
+ 'icon-info': "<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.477zM12 6a1 1 0 110 2 1 1 0 010-2zm-1 6h-1a1 1 0 010-2h2a1 1 0 011 1v6a1 1 0 01-2 0v-5z'/>",
112
+ 'icon-key': "<path fill-rule='evenodd' d='M15 10.414l-3.07 3.07a6.017 6.017 0 01.936 5.067 1 1 0 01-1.933-.513 4.012 4.012 0 00-1.054-3.885 4.018 4.018 0 00-5.634.05 4.017 4.017 0 00-.056 5.626A4.018 4.018 0 008.08 20.89a1 1 0 01.513 1.933 6.022 6.022 0 01-5.836-1.597 6.02 6.02 0 017.741-9.14l9.794-9.793a1 1 0 011.414 1.414L20.414 5l2.293 2.293a1 1 0 010 1.414l-4 4a1 1 0 01-1.414 0L15 10.414zM16.414 9L18 10.586 20.586 8 19 6.414 16.414 9z'/>",
113
+ 'icon-layers': "<path fill-rule='evenodd' clip-rule='evenodd' d='M19.764 7L12 10.882 4.236 7l8.211-4.106a1 1 0 10-.894-1.788l-10 5a1 1 0 000 1.788l10 5a1 1 0 00.894 0l10-5a1 1 0 000-1.788l-6-3a1 1 0 10-.894 1.788L19.763 7zM12 20.882l-9.553-4.776a1 1 0 10-.894 1.788l10 5a1 1 0 00.894 0l10-5a1 1 0 10-.894-1.788L12 20.882zm-10.894-9.33a1 1 0 011.341-.446L12 15.882l9.553-4.776a1 1 0 11.894 1.788l-10 5a1 1 0 01-.894 0l-10-5a1 1 0 01-.447-1.341z'/>",
114
+ 'icon-link': "<path fill-rule='evenodd' d='M15 8a1 1 0 010-2h3a6 6 0 010 12h-3a1 1 0 010-2h3a4 4 0 100-8h-3zm-6 8a1 1 0 010 2H6A6 6 0 116 6h3a1 1 0 110 2H6a4 4 0 100 8h3zm-1-3a1 1 0 010-2h8a1 1 0 010 2H8z'/>",
115
+ 'icon-list': "<path fill-rule='evenodd' d='M8 7a1 1 0 110-2h10a1 1 0 010 2H8zm0 6a1 1 0 010-2h13a1 1 0 010 2H8zm0 6a1 1 0 010-2h6a1 1 0 010 2H8zM3 7a1 1 0 110-2h1a1 1 0 110 2H3zm0 6a1 1 0 010-2h1a1 1 0 010 2H3zm0 6a1 1 0 010-2h1a1 1 0 010 2H3z'/>",
116
+ 'icon-location': "<path fill-rule='evenodd' d='M12 1c4.883 0 9 4.215 9 9 0 2.099-.613 4.151-1.826 6.143a1 1 0 01-1.708-1.04C18.493 13.415 19 11.72 19 10c0-3.69-3.232-7-7-7s-7 3.31-7 7c0 3.636 2.283 7.213 6.958 10.728a99.323 99.323 0 003.03-2.638 1 1 0 111.356 1.47c-.797.736-2.03 1.803-3.701 3.206a1 1 0 01-1.227.046C5.846 18.808 3 14.539 3 10c0-4.785 4.117-9 9-9zm0 5a4 4 0 110 8 4 4 0 010-8zm0 2a2 2 0 100 4 2 2 0 000-4z'/>",
117
+ 'icon-lock': "<path fill-rule='evenodd' d='M6 9V7a6 6 0 1112 0v2h1a1 1 0 011 1v12a1 1 0 01-1 1H5a1 1 0 01-1-1V10a1 1 0 011-1h1zm2 0h8V7a4 4 0 10-8 0v2zm-2 2v10h12V11H6zm6 6a1 1 0 110-2 1 1 0 010 2z'/>",
118
+ 'icon-loction': "<path fill-rule='evenodd' d='M14.988 18.09a1 1 0 111.356 1.47c-.797.736-2.03 1.803-3.701 3.206a1 1 0 01-1.227.046C5.846 18.808 3 14.539 3 10c0-4.785 4.117-9 9-9s9 4.215 9 9c0 2.099-.613 4.151-1.826 6.143a1 1 0 01-1.708-1.04C18.493 13.415 19 11.72 19 10c0-3.69-3.232-7-7-7s-7 3.31-7 7c0 3.636 2.283 7.213 6.958 10.728a99.323 99.323 0 003.03-2.638zM12 14a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4z'/>",
119
+ 'icon-log-in': "<path fill-rule='evenodd' d='M16.927 11.624a1 1 0 01-.22 1.083l-5 5a1 1 0 01-1.414-1.414L13.586 13H3a1 1 0 010-2h13a1 1 0 01.921.61l.006.014zm-6.634-3.917a1 1 0 011.414-1.414l2.035 2.035a1 1 0 11-1.414 1.414l-2.035-2.035zM13 3a1 1 0 010-2h6a3 3 0 013 3v16a3 3 0 01-3 3h-6a1 1 0 010-2h6a1 1 0 001-1V4a1 1 0 00-1-1h-6z'/>",
120
+ 'icon-log-out': "<path fill-rule='evenodd' d='M21.927 11.624a1 1 0 01-.22 1.083l-5 5a1 1 0 01-1.414-1.414L18.586 13H8a1 1 0 010-2h13a1 1 0 01.921.61l.006.014zm-6.634-3.917a1 1 0 111.414-1.414l2.035 2.035a1 1 0 11-1.414 1.414l-2.035-2.035zM11 21a1 1 0 010 2H5a3 3 0 01-3-3V4a3 3 0 013-3h6a1 1 0 010 2H5a1 1 0 00-1 1v16a1 1 0 001 1h6z'/>",
121
+ 'icon-map': "<path fill-rule='evenodd' clip-rule='evenodd' d='M8.007 1c.166.001.321.042.458.115l7.504 3.751 6.535-3.734A1 1 0 0124 2v4a1 1 0 11-2 0V3.723L17 6.58v13.697l5-2.857V10a1 1 0 012 0v8a1 1 0 01-.504.868l-6.985 3.992A.994.994 0 0116 23h-.003a.989.989 0 01-.462-.115L8.03 19.134l-6.535 3.734A1 1 0 010 22V6a1 1 0 01.504-.868L7.489 1.14A.995.995 0 018.007 1zM7 3.723L2 6.58v13.697l5-2.857V3.723zm2 13.659l6 3V6.618l-6-3v13.764z'/>",
122
+ 'icon-menu': "<path fill-rule='evenodd' d='M3 13a1 1 0 010-2h18a1 1 0 010 2H3zm.176-6C2.526 7 2 6.552 2 6s.527-1 1.176-1h17.648C21.474 5 22 5.448 22 6s-.527 1-1.176 1H3.176zM3 19a1 1 0 010-2h10a1 1 0 010 2H3zm14-2h4a1 1 0 010 2h-4a1 1 0 010-2z'/>",
123
+ 'icon-minus-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 11zM8 11a1 1 0 000 2h8a1 1 0 000-2H8z'/>",
124
+ 'icon-minus-circle': "<path fill-rule='evenodd' d='M8 11h8a1 1 0 010 2H8a1 1 0 010-2zm13.542 6.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.477z'/>",
125
+ 'icon-minus': "<path fill-rule='evenodd' d='M5 13a1 1 0 010-2h14a1 1 0 010 2H5z'/>",
126
+ 'icon-money': "<path fill-rule='evenodd' d='M11 17h-1a2 2 0 01-2-2 1 1 0 012 0h4a1 1 0 000-2h-4a3 3 0 010-6h1V6a1 1 0 012 0v1h1a2 2 0 012 2 1 1 0 01-2 0h-4a1 1 0 100 2h4a3 3 0 010 6h-1v1a1 1 0 01-2 0v-1zm10.542.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.477z'/>",
127
+ 'icon-more-horizontal': "<path fill-rule='evenodd' d='M18 14a2 2 0 110-4 2 2 0 010 4zm-6 0a2 2 0 110-4 2 2 0 010 4zm-6 0a2 2 0 110-4 2 2 0 010 4z'/>",
128
+ 'icon-more-vertical': "<path fill-rule='evenodd' d='M12 8a2 2 0 110-4 2 2 0 010 4zm0 6a2 2 0 110-4 2 2 0 010 4zm0 6a2 2 0 110-4 2 2 0 010 4z'/>",
129
+ 'icon-music': "<path fill-rule='evenodd' clip-rule='evenodd' d='M10 18V5.847l11.164-1.86a1 1 0 10-.328-1.973l-12 2A1 1 0 008 5v9.535A4 4 0 1010 18zm-2 0a2 2 0 10-4 0 2 2 0 004 0zM21 6a1 1 0 00-1 1v5.535A4 4 0 1022 16V7a1 1 0 00-1-1zm-3 8a2 2 0 110 4 2 2 0 010-4z'/>",
130
+ 'icon-package': "<path fill-rule='evenodd' clip-rule='evenodd' d='M20.5 5.404A3 3 0 0122 8v6a1 1 0 11-2 0V8.18l-7 4.374v8.024l6.504-3.716a1 1 0 11.992 1.736L13.5 22.596a3 3 0 01-2.996.002L3.5 18.596A3 3 0 012 16V7.999a3.002 3.002 0 011.504-2.597L10.5 1.404a2.998 2.998 0 012.996-.002L20.5 5.404zM11 20.578l-6.504-3.716A.998.998 0 014 15.999v-7.82l7 4.375v8.024zm1.5-17.442l6.162 3.521L16.4 8.071 9.935 4.03l1.561-.893c.313-.18.695-.18 1.004-.002zm-4.536 2.02l6.55 4.094L12 10.82 5.338 6.658l2.626-1.5z'/>",
131
+ 'icon-paperclip': "<path fill-rule='evenodd' d='M20.733 10.343l-9.19 9.19a5.003 5.003 0 11-7.076-7.076l9.19-9.19a3.002 3.002 0 014.246 4.246l-9.2 9.19a1.001 1.001 0 11-1.416-1.416l8.49-8.48a1 1 0 00-1.414-1.415l-8.49 8.48a3.001 3.001 0 104.244 4.245l9.2-9.19a5.002 5.002 0 10-7.074-7.074l-9.19 9.19a7.003 7.003 0 009.904 9.904l9.19-9.19a1 1 0 00-1.414-1.414z'/>",
132
+ 'icon-partner-bell': "<path fill-rule='evenodd' clip-rule='evenodd' d='M16.892 13.073a3.393 3.393 0 00-.637-1.4c-.635-.838-1.663-1.368-3.055-1.368-2.164 0-3.495 1.47-3.889 3.019-.354-1.092-1.3-1.83-2.301-2.14.753-.55 1.147-1.335 1.147-2.231 0-.832-.346-1.59-.926-2.082C6.381 6.148 5.221 6 3.793 6H1v12.058h.794c.535-.001 1.074-.002 1.603 0 .706.004 1.395 0 2.037-.026 2.033-.082 3.425-1.105 3.87-2.642.153.683.448 1.24.832 1.663.783.862 1.918 1.199 3.061 1.199 1.408 0 2.425-.409 3.12-1.034l-.995-1.17c-.5.378-1.144.6-1.867.6-1.417-.004-2.042-.9-2.098-1.763h5.535v3.173h2.073V6.06h-2.073v7.013zM3.707 7.629H3.13v3.175h.68c.376 0 .642-.02.827-.058C5.74 10.52 5.94 9.696 5.94 9.17c0-.62-.297-1.117-.922-1.36-.317-.122-.756-.182-1.312-.182zm.933 8.722c.257 0 .575-.01.834-.057 1.182-.213 1.684-.998 1.684-1.93 0-.9-.545-1.579-1.492-1.827-.277-.072-.759-.12-1.185-.12H3.13v3.934H4.64zm8.544-4.476c-.957 0-1.606.632-1.789 1.51h3.55c-.166-.944-.803-1.51-1.761-1.51zM20.35 6.06h2.038v11.998H20.35V6.06z'/>",
133
+ 'icon-partner-hydroquebec': "<path d='M12.989 16.286a6.842 6.842 0 111.292-1.29c.344.257 1.897 1.41 2.063 1.613a1140.2 1140.2 0 01-.256-2.383l5.73 4.288.014.125-4.235-1.863.348 3.224-4.957-3.713zm-1.625-1.284c-.789-.59-3.873-2.833-3.873-2.833h3.013c.173.135 1.521 1.14 2.178 1.63l-.001.002c.622-.82.99-1.847.99-2.96 0-2.694-2.162-4.877-4.828-4.877-2.667 0-4.83 2.183-4.83 4.877s2.163 4.877 4.83 4.877c.924 0 1.786-.262 2.52-.716h.001z'/>",
134
+ 'icon-phone': "<path fill-rule='evenodd' d='M14.62 13.974a3.013 3.013 0 013.173-.677c.842.313 1.716.53 2.607.648a1 1 0 01-.26 1.983 13.938 13.938 0 01-3.047-.758 1.012 1.012 0 00-1.064.223l-1.277 1.275a1 1 0 01-1.2.162 17.074 17.074 0 01-6.41-6.396 1 1 0 01.163-1.203l1.273-1.27c.277-.28.366-.695.227-1.064-.367-.982-.622-2.001-.758-3.03-.07-.5-.503-.872-1.02-.867H4.01a1.013 1.013 0 00-1.007 1.082 18.846 18.846 0 002.936 8.27 18.6 18.6 0 005.733 5.72 18.91 18.91 0 008.225 2.924 1.008 1.008 0 001.102-1.011v-2.011a1 1 0 112 0v2.006a3.005 3.005 0 01-.976 2.23 3.023 3.023 0 01-2.324.776 20.916 20.916 0 01-9.106-3.23 20.58 20.58 0 01-6.336-6.322 20.85 20.85 0 01-3.245-9.156 3.005 3.005 0 01.776-2.299A3.014 3.014 0 014.009 1h3.007a3.012 3.012 0 013.013 2.596c.117.889.335 1.761.648 2.599.414 1.1.15 2.339-.682 3.178l-.723.72a15.074 15.074 0 004.619 4.61l.729-.728z'/>",
135
+ 'icon-plus-circle-full': "<path fill-rule='evenodd' d='M11 11H8a1 1 0 000 2h3v3a1 1 0 002 0v-3h3a1 1 0 000-2h-3V8a1 1 0 00-2 0v3zm1 12C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11z'/>",
136
+ 'icon-plus-circle': "<path fill-rule='evenodd' d='M11 11V8a1 1 0 012 0v3h3a1 1 0 010 2h-3v3a1 1 0 01-2 0v-3H8a1 1 0 010-2h3zm10.542 6.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.477z'/>",
137
+ 'icon-plus': "<path fill-rule='evenodd' d='M11 13H5a1 1 0 010-2h6V5a1 1 0 012 0v14a1 1 0 01-2 0v-6zm5 0a1 1 0 010-2h3a1 1 0 010 2h-3z'/>",
138
+ 'icon-position': "<path fill-rule='evenodd' clip-rule='evenodd' d='M11 21a1 1 0 102 0v-1.062A8.004 8.004 0 0019.938 13H21a1 1 0 100-2h-1.062A8.004 8.004 0 0013 4.062V3a1 1 0 10-2 0v1.062A8.004 8.004 0 004.062 11H3a1 1 0 100 2h1.062A8.004 8.004 0 0011 19.938V21zm0-5v1.917A6.005 6.005 0 016.083 13H8a1 1 0 100-2H6.083A6.005 6.005 0 0111 6.083V8a1 1 0 102 0V6.083A6.005 6.005 0 0117.917 11H16a1 1 0 100 2h1.917A6.005 6.005 0 0113 17.917V16a1 1 0 10-2 0zm1-3a1 1 0 100-2 1 1 0 000 2z'/>",
139
+ 'icon-print': "<path fill-rule='evenodd' d='M19 19v1a1 1 0 01-2 0v-5H7v6h8a1 1 0 010 2H6a1 1 0 01-1-1v-3H4a3 3 0 01-3-3v-5a3 3 0 013-3h1V2a1 1 0 011-1h12a1 1 0 011 1v6h1a3 3 0 013 3v5a3 3 0 01-3 3h-1zm0-2h1a1 1 0 001-1v-5a1 1 0 00-1-1H4a1 1 0 00-1 1v5a1 1 0 001 1h1v-3a1 1 0 011-1h12a1 1 0 011 1v3zM7 8h10V3H7v5z'/>",
140
+ 'icon-refresh': "<path fill-rule='evenodd' d='M22 7.688V4a1 1 0 012 0v6a1 1 0 01-1 1h-6a1 1 0 010-2h3.476l-2.823-2.653a8 8 0 00-13.2 2.987 1 1 0 11-1.886-.668 10 10 0 017.22-6.417 9.985 9.985 0 019.258 2.662L22 7.688zM2 16.312V20a1 1 0 01-2 0v-6a1 1 0 011-1h6a1 1 0 010 2H3.524l2.823 2.653a8 8 0 0013.2-2.987 1 1 0 011.886.668 10 10 0 01-7.22 6.417 9.985 9.985 0 01-9.258-2.662L2 16.312z'/>",
141
+ 'icon-road': "<path fill-rule='evenodd' clip-rule='evenodd' d='M11 4l-.25 4h2.5L13 4h3.22a1 1 0 01.97.757l3.5 14A1 1 0 0119.72 20H14l-.25-4h-3.5L10 20H4.28a1 1 0 01-.97-1.242l3.5-14A1 1 0 017.78 4H11zm2.375 6h-2.75l-.25 4h3.25l-.25-4z'/>",
142
+ 'icon-save': "<path fill-rule='evenodd' d='M6 4H5a1 1 0 00-1 1v14a1 1 0 001 1h1v-7a1 1 0 011-1h10a1 1 0 011 1v7h1a1 1 0 001-1 1 1 0 012 0 3 3 0 01-3 3H5a3 3 0 01-3-3V5a3 3 0 013-3h11a1 1 0 01.707.293l5 5A1 1 0 0122 8v7a1 1 0 01-2 0V8.414L15.586 4H8v3h7a1 1 0 010 2H7a1 1 0 01-1-1V4zm2 16h8v-6H8v6z'/>",
143
+ 'icon-search': "<path fill-rule='evenodd' d='M15.707 14.293l6 6a1 1 0 01-1.414 1.414l-5.34-5.34C13.575 17.42 11.833 18 10 18a8 8 0 117.67-5.718 1 1 0 11-1.918-.57A6 6 0 1010 16c1.663 0 3.209-.62 4.292-1.706a1 1 0 011.414-.002z'/>",
144
+ 'icon-send': "<path fill-rule='evenodd' d='M21.649 1.063a1 1 0 011.288 1.288l-6.993 19.98a1 1 0 11-1.888-.661L19.61 5.806l-7.416 7.415 1.72 3.873a1 1 0 01-1.827.812l-1.844-4.148-8.648-3.844c-.828-.368-.78-1.559.076-1.858l19.979-6.993zm-10.87 10.744l7.415-7.416-13.483 4.72 6.068 2.696z'/>",
145
+ 'icon-settings': "<path fill-rule='evenodd' d='M16 12a1 1 0 01-2 0 2 2 0 10-2 2 1 1 0 010 2 4 4 0 114-4zm4.83-3H21a3 3 0 010 6h-.086a.65.65 0 00-.595.394l-.004.01a.647.647 0 00.122.709l.06.06a3 3 0 11-4.244 4.244l-.052-.052a.654.654 0 00-.727-.126.649.649 0 00-.394.591V21a3 3 0 01-6 0v-.067c-.006-.266-.175-.502-.484-.618a.647.647 0 00-.709.122l-.06.06a3 3 0 11-4.244-4.244l.052-.052a.654.654 0 00.126-.727.649.649 0 00-.591-.394H3a3 3 0 010-6h.067c.266-.006.502-.175.618-.484a.647.647 0 00-.122-.709l-.06-.06a3 3 0 114.244-4.244l.052.052a.65.65 0 00.717.13 1 1 0 01.2-.064A.647.647 0 009 3.17V3a3 3 0 016 0v.086c.001.26.156.493.404.6a.647.647 0 00.709-.123l.06-.06a3 3 0 114.244 4.244l-.052.052a.65.65 0 00-.13.717 1 1 0 01.064.2.647.647 0 00.531.284zm.08 4H21a1 1 0 000-2h-.174a2.65 2.65 0 01-2.425-1.606 1 1 0 01-.073-.264 2.655 2.655 0 01.615-2.737l.06-.06a1 1 0 10-1.416-1.416l-.068.068a2.646 2.646 0 01-2.913.534A2.651 2.651 0 0113 3.09V3a1 1 0 00-2 0v.174a2.65 2.65 0 01-1.606 2.425 1 1 0 01-.264.073 2.655 2.655 0 01-2.737-.615l-.06-.06a1 1 0 10-1.416 1.416l.068.068c.757.774.967 1.932.554 2.864A2.657 2.657 0 013.09 11.08H3a1 1 0 000 2h.174a2.646 2.646 0 012.42 1.596 2.654 2.654 0 01-.537 2.931l-.06.06a1 1 0 101.416 1.416l.068-.068c.774-.757 1.932-.967 2.864-.554a2.657 2.657 0 011.735 2.449V21a1 1 0 002 0v-.174a2.646 2.646 0 011.596-2.42 2.654 2.654 0 012.931.537l.06.06a1 1 0 101.416-1.416l-.068-.068a2.65 2.65 0 01-.532-2.918A2.651 2.651 0 0120.91 13z'/>",
146
+ 'icon-share': "<path fill-rule='evenodd' d='M9.85 10.912a4.003 4.003 0 010 2.175l5.311 3.095A4 4 0 0122 19a1 1 0 01-2 0 2 2 0 00-3.662-1.112 1.01 1.01 0 01-.123.208A2 2 0 0018 21a1 1 0 010 2 4 4 0 01-3.85-5.092l-5.308-3.094a4 4 0 110-5.63L14.15 6.09A4.003 4.003 0 0118 1a4 4 0 11-2.842 6.815L9.85 10.912zm-2.094.13a1.016 1.016 0 01-.056-.097A1.999 1.999 0 004 12a2 2 0 103.756-.959zM16.3 6.054A1.999 1.999 0 0020 5a2 2 0 10-3.7 1.055z'/>",
147
+ 'icon-shoppingbag': "<path fill-rule='evenodd' clip-rule='evenodd' d='M19 5H5l1.5-2h11L19 5zm2.6 1.8a.996.996 0 01-.61.2H4v13a1 1 0 001 1h14a1 1 0 001-1v-9a1 1 0 112 0v9a3 3 0 01-3 3H5a3 3 0 01-3-3V6a1 1 0 01.2-.6l3-4A1 1 0 016 1h12a1 1 0 01.8.4l3 4a1 1 0 01-.2 1.4zM12 13a3 3 0 003-3 1 1 0 112 0 5 5 0 01-10 0 1 1 0 112 0 3 3 0 003 3z'/>",
148
+ 'icon-social-facebook': "<title> Icon/social-facebook </title> <path d='M23 12.067C23 5.955 18.075 1 12 1S1 5.955 1 12.067C1 17.591 5.023 22.17 10.281 23v-7.734H7.488v-3.199h2.793V9.63c0-2.774 1.642-4.306 4.155-4.306 1.204 0 2.462.216 2.462.216v2.724h-1.387c-1.366 0-1.792.853-1.792 1.728v2.076h3.05l-.487 3.2h-2.563V23C18.977 22.17 23 17.591 23 12.067' fill-rule='evenodd'/>",
149
+ 'icon-social-flickr': "<path fill-rule='evenodd' clip-rule='evenodd' d='M2 4a2 2 0 012-2h16a2 2 0 012 2v16a2 2 0 01-2 2H4a2 2 0 01-2-2V4zm9 8a3 3 0 11-6 0 3 3 0 016 0zm5 3a3 3 0 100-6 3 3 0 000 6z'/>",
150
+ 'icon-social-instagram': "<path fill-rule='evenodd' d='M7.8 2h8.4C19.4 2 22 4.6 22 7.8v8.4a5.8 5.8 0 01-5.8 5.8H7.8C4.6 22 2 19.4 2 16.2V7.8A5.8 5.8 0 017.8 2zm-.2 2A3.6 3.6 0 004 7.6v8.8C4 18.39 5.61 20 7.6 20h8.8a3.6 3.6 0 003.6-3.6V7.6C20 5.61 18.39 4 16.4 4H7.6zm9.65 1.5a1.25 1.25 0 110 2.5 1.25 1.25 0 010-2.5zM12 7a5 5 0 110 10 5 5 0 010-10zm0 2a3 3 0 100 6 3 3 0 000-6z'/>",
151
+ 'icon-social-linkedin': "<path fill-rule='evenodd' d='M4 2h16a2 2 0 012 2v16a2 2 0 01-2 2H4a2 2 0 01-2-2V4a2 2 0 012-2zm15.222 11.333c0-2-1.622-3.622-3.622-3.622-.944 0-2.044.578-2.578 1.445V9.922h-3.1v9.3h3.1v-5.478a1.55 1.55 0 011.545-1.555c.859 0 1.555.696 1.555 1.555v5.478h3.1v-5.889zM8.178 6.311A1.873 1.873 0 006.31 4.433c-1.037 0-1.878.841-1.878 1.878a1.873 1.873 0 003.745 0zm-.322 12.911v-9.3H4.778v9.3h3.078z'/>",
152
+ 'icon-social-twitter': "<path fill-rule='evenodd' d='M19.965 8.508c0-.175-.004-.35-.012-.522A8.277 8.277 0 0022 5.894a8.292 8.292 0 01-2.356.636 4.064 4.064 0 001.804-2.234c-.793.462-1.671.799-2.606.98A4.13 4.13 0 0015.847 4c-2.266 0-4.104 1.809-4.104 4.039 0 .317.036.625.107.92a11.712 11.712 0 01-8.458-4.22 3.977 3.977 0 00-.556 2.03 4.02 4.02 0 001.826 3.363 4.122 4.122 0 01-1.858-.505l-.001.051c0 1.957 1.415 3.59 3.292 3.96a4.176 4.176 0 01-1.853.07c.522 1.604 2.037 2.772 3.833 2.805a8.317 8.317 0 01-5.096 1.729c-.331 0-.658-.019-.979-.056A11.751 11.751 0 008.29 20c7.547 0 11.675-6.155 11.675-11.492z'/>",
153
+ 'icon-social-youtube': "<path fill-rule='evenodd' d='M22.547 7.19c.471 1.565.453 4.826.453 4.826s0 3.245-.453 4.81c-.254.856-.997 1.532-1.94 1.762C18.888 19 12 19 12 19s-6.868 0-8.608-.428c-.942-.23-1.685-.906-1.939-1.763C1 15.261 1 12 1 12s0-3.245.453-4.81c.254-.856 1.015-1.548 1.94-1.778C5.112 5 12 5 12 5s6.886 0 8.608.428c.942.23 1.685.906 1.939 1.763zM15 12l-5-3v6l5-3z'/>",
154
+ 'icon-star': "<path fill-rule='evenodd' d='M15.754 7.346l6.39.935a1 1 0 01.554 1.705l-4.623 4.503 1.09 6.362a1 1 0 01-1.45 1.054L12 18.9l-5.715 3.005a1 1 0 01-1.45-1.054l1.09-6.362-4.623-4.503a1 1 0 01.553-1.705l6.39-.935 2.858-5.789a1 1 0 011.794 0l2.857 5.79zm-.809 1.903a1 1 0 01-.752-.546L12 4.259 9.807 8.703a1 1 0 01-.752.546l-4.907.718 3.55 3.457a1 1 0 01.288.885l-.838 4.883 4.387-2.307a1 1 0 01.93 0l4.387 2.307-.838-4.883a1 1 0 01.288-.885l3.55-3.457-4.907-.718z'/>",
155
+ 'icon-steps': "<path fill-rule='evenodd' clip-rule='evenodd' d='M15 7a1 1 0 00-1 1v8a1 1 0 001 1h8a1 1 0 001-1V8a1 1 0 00-1-1h-8zm1 2h6v6h-6V9zm-9 1a1 1 0 00-1 1v5a1 1 0 001 1h5a1 1 0 001-1v-5a1 1 0 00-1-1H7zm1 5v-3h3v3H8zm-8-2a1 1 0 011-1h3a1 1 0 011 1v3a1 1 0 01-1 1H1a1 1 0 01-1-1v-3zm2 1v1h1v-1H2z'/>",
156
+ 'icon-table': "<path fill-rule='evenodd' clip-rule='evenodd' d='M4 22a2 2 0 01-1.995-1.85L2 20V4a2 2 0 011.85-1.995L4 2h16a2 2 0 011.994 1.85L22 4v10a1 1 0 01-1.993.117L20 14V9H9v11h11v-2a1 1 0 011.993-.117L22 18v2a2 2 0 01-1.85 1.994L20 22H4zM7 9H4v11h3V9zm0-5H4v3h3V4zm13 0H9v3h11V4z'/>",
157
+ 'icon-tag': "<path fill-rule='evenodd' d='M4 12.586l8.293 8.293a1 1 0 001.414 0l7.172-7.172a1 1 0 000-1.414 1 1 0 111.414-1.414 3 3 0 010 4.242l-7.172 7.172a3 3 0 01-4.242 0l-8.586-8.586A1 1 0 012 13V3a1 1 0 011-1h10a1 1 0 01.707.293l6 6a1 1 0 11-1.414 1.414L12.586 4H4v8.586zM8.5 11a2.5 2.5 0 110-5 2.5 2.5 0 010 5zm0-2a.5.5 0 100-1 .5.5 0 000 1z'/>",
158
+ 'icon-thumb-down-full': "<path fill-rule='evenodd' d='M13.914 22.406A1 1 0 0113 23a4 4 0 01-4-4v-3H4.351a3 3 0 01-3-3.452l1.38-8.998A2.997 2.997 0 015.72 1H19.652a3.31 3.31 0 013.339 2.866L23 4v7l-.009.134A3.305 3.305 0 0119.67 14h-2.02l-3.736 8.406zM18 12h1.688A1.31 1.31 0 0021 10.923V4.077A1.315 1.315 0 0019.67 3H18v9z'/>",
159
+ 'icon-thumb-down': "<path fill-rule='evenodd' d='M17 1h2.652a3.31 3.31 0 013.339 2.866L23 4v7l-.009.134A3.305 3.305 0 0119.67 14h-2.02l-3.736 8.406A1 1 0 0113 23a4 4 0 01-4-4v-3H4.351a3 3 0 01-3-3.452l1.38-8.998A2.997 2.997 0 015.72 1H13a1 1 0 010 2H5.709a1 1 0 00-1 .852l-1.38 8.998A1 1 0 004.34 14H10a1 1 0 011 1v4a2 2 0 001.392 1.906L16 12.788V2a1 1 0 011-1zm1 2v9h1.688A1.31 1.31 0 0021 10.923V4.077A1.315 1.315 0 0019.67 3H18z'/>",
160
+ 'icon-thumb-up-full': "<path fill-rule='evenodd' d='M6.35 10l3.736-8.406A1 1 0 0111 1a4 4 0 014 4v3h4.649a3 3 0 013 3.452l-1.38 8.998A3 3 0 0118.275 23H4a3 3 0 01-3-3v-7a3 3 0 013-3h2.35zM4 12a1 1 0 00-1 1v7a1 1 0 001 1h2v-9H4z'/>",
161
+ 'icon-thumb-up': "<path fill-rule='evenodd' d='M7.707 22.707A.997.997 0 017 23H4a3 3 0 01-3-3v-7a3 3 0 013-3h2.35l3.736-8.406A1 1 0 0111 1a4 4 0 014 4v3h4.649a3 3 0 013 3.452l-1.38 8.998A2.997 2.997 0 0118.28 23H11a1 1 0 010-2h7.291a1 1 0 001-.852l1.38-8.998A1 1 0 0019.66 10H14a1 1 0 01-1-1V5a2 2 0 00-1.392-1.906L8 11.212V22a.997.997 0 01-.293.707zM6 12H4a1 1 0 00-1 1v7a1 1 0 001 1h2v-9z'/>",
162
+ 'icon-ticket': "<path fill-rule='evenodd' clip-rule='evenodd' d='M13.293 1.293a1 1 0 011.414 0l2.495 2.495.005.005a.997.997 0 010 1.414c-.338.338-.36 1.055.086 1.5.445.445 1.162.424 1.5.086a.996.996 0 011.414 0l.005.005 2.495 2.495a1 1 0 010 1.414l-5 5-7 7a1 1 0 01-1.414 0l-2.5-2.5a1 1 0 01.03-1.443 1.122 1.122 0 00-1.616-1.557 1 1 0 01-1.414 0l-2.5-2.5a1 1 0 010-1.414l7-7 5-5zM17 13.586l-1.793-1.793a1 1 0 00-1.414 1.414L15.586 15 10 20.586l-1.2-1.2A3.123 3.123 0 004.614 15.2l-1.2-1.2L9 8.414l1.793 1.793a1 1 0 001.414-1.414L10.414 7 14 3.414l1.214 1.214c-.527 1.168-.223 2.606.665 3.493.888.888 2.325 1.192 3.493.665L20.586 10 17 13.586z'/>",
163
+ 'icon-trash': "<path fill-rule='evenodd' d='M7 5V4a3 3 0 013-3h4a3 3 0 013 3v1h4a1 1 0 010 2H6v13a1 1 0 001 1h10a1 1 0 001-1V10a1 1 0 012 0v10a3 3 0 01-3 3H7a3 3 0 01-3-3V7H3a1 1 0 110-2h4zm2 0h6V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v1zm0 6a1 1 0 012 0v6a1 1 0 01-2 0v-6zm4 0a1 1 0 012 0v6a1 1 0 01-2 0v-6z'/>",
164
+ 'icon-unlock': "<path fill-rule='evenodd' d='M6 9V7.001a6 6 0 015.397-5.976c1.586-.16 3.025.244 4.223 1.19a1 1 0 11-1.24 1.57c-.785-.62-1.705-.879-2.782-.77A4 4 0 008 7v2h11a1 1 0 011 1v12a1 1 0 01-1 1H5a1 1 0 01-1-1V10a1 1 0 011-1h1zm6 8a1 1 0 110-2 1 1 0 010 2zm-6-6v10h12V11H6z'/>",
165
+ 'icon-upload': "<path fill-rule='evenodd' d='M12.39 2.079A1 1 0 0113 3v12a1 1 0 01-2 0V5.414L7.707 8.707a1 1 0 01-1.414-1.414l5-5a1 1 0 011.083-.22zM20 15a1 1 0 012 0v4a3 3 0 01-3 3H5a3 3 0 01-3-3v-4a1 1 0 012 0v4a1 1 0 001 1h14a1 1 0 001-1v-4zm-2.293-7.707a1 1 0 11-1.414 1.414l-2-2a1 1 0 111.414-1.414l2 2z'/>",
166
+ 'icon-user-circle': "<path fill-rule='evenodd' d='M6 18.708V18a3 3 0 013-3h6a3 3 0 013 3v2.631c0 .145-.03.282-.086.406a.996.996 0 01-.432.501A10.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.477a1 1 0 01-1.734-.997A8.953 8.953 0 0021 12a9 9 0 10-15 6.708zm1.998 1.355c1.205.6 2.564.937 4.002.937 1.41 0 2.77-.324 4-.935V18a1 1 0 00-1-1H9a1 1 0 00-1 1v2c0 .021 0 .042-.002.063zM12 14a4 4 0 110-8 4 4 0 010 8zm0-2a2 2 0 100-4 2 2 0 000 4z'/>",
167
+ 'icon-user': "<path fill-rule='evenodd' d='M21 21a1 1 0 01-2 0v-2a3 3 0 00-3-3H8a3 3 0 00-3 3v2a1 1 0 01-2 0v-2a5 5 0 015-5h8a5 5 0 015 5v2zM14.509 2.674a1 1 0 11-1.005 1.73A3 3 0 1015 7a1 1 0 012 0 5 5 0 11-2.491-4.326z'/>",
168
+ 'icon-users': "<path fill-rule='evenodd' d='M18 21a1 1 0 01-2 0v-2a3 3 0 00-3-3H5a3 3 0 00-3 3v2a1 1 0 01-2 0v-2a5 5 0 015-5h8a5 5 0 015 5v2zm6 0a1 1 0 01-2 0v-2a3 3 0 00-2.25-2.902 1 1 0 11.5-1.936A5 5 0 0124 19v2zM15.752 4.099a1 1 0 11.496-1.938 5 5 0 010 9.688 1 1 0 01-.496-1.938 3 3 0 000-5.812zm-9.26-1.425A5 5 0 114 7a1 1 0 111.999 0 3 3 0 101.496-2.596 1 1 0 01-1.005-1.73z'/>",
169
+ 'icon-warning': "<path fill-rule='evenodd' clip-rule='evenodd' d='M12.857 4.373a1 1 0 00-1.714 0L2.675 18.485A1 1 0 003.532 20h16.936a1 1 0 00.857-1.515l-1.183-1.97a1 1 0 011.716-1.03l1.182 1.971c1.2 2-.24 4.544-2.572 4.544H3.532C1.201 22-.24 19.456.96 17.456L9.428 3.344c1.165-1.942 3.98-1.942 5.144 0l4.886 8.142a1 1 0 11-1.715 1.028l-4.885-8.141zM11 9a1 1 0 112 0v5a1 1 0 11-2 0V9zm1 7a1 1 0 100 2 1 1 0 000-2z'/>",
170
+ 'icon-website': "<path fill-rule='evenodd' clip-rule='evenodd' d='M20.176 17.845a1 1 0 001.366-.368A10.953 10.953 0 0023 12c0-6.075-4.925-11-11-11S1 5.925 1 12s4.925 11 11 11c1.95 0 3.828-.509 5.482-1.462a1 1 0 10-.998-1.733 8.93 8.93 0 01-2.21.905A16.301 16.301 0 0016.95 13h3.995a8.932 8.932 0 01-1.137 3.48 1 1 0 00.368 1.365zm.77-6.845h-3.999a16.331 16.331 0 00-2.673-7.71A9.008 9.008 0 0120.945 11zM9.725 3.29A9.008 9.008 0 003.055 11H7.05a16.3 16.3 0 012.676-7.71zM3.055 13a9.008 9.008 0 006.671 7.71A16.331 16.331 0 017.053 13H3.055zM12 20.45A14.3 14.3 0 019.058 13h5.887A14.288 14.288 0 0112 20.45zM9.055 11h5.887A14.3 14.3 0 0012 3.55 14.288 14.288 0 009.055 11z'/>",
171
+ 'icon-wheelchair': "<path fill-rule='evenodd' clip-rule='evenodd' d='M21 3.5a2.5 2.5 0 10-5 0 2.5 2.5 0 005 0zm-3 0a.5.5 0 111 0 .5.5 0 01-1 0zM8.707 7.707l2.42-2.42 1.303.868-6.086 6.087a6.166 6.166 0 00-.064.05A1 1 0 007.52 13.86a3.987 3.987 0 01.106-.081 3.995 3.995 0 015.201.393 4 4 0 11-6.794 2.304 1 1 0 10-1.983-.26A6 6 0 1015.198 14h2.622l-.806 4.836a1 1 0 101.972.328l1-6A1 1 0 0019 12h-4.586l1.568-1.568a3 3 0 00-.457-4.617l-.955-.637a.917.917 0 00-.033-.021l-2.982-1.99a1 1 0 00-1.262.126l-3 3a1 1 0 001.414 1.414zm5.42-.42l-3.726 3.726c.614.04 1.217.176 1.79.4.03-.042.064-.082.102-.12l2.275-2.275a1 1 0 00-.152-1.54l-.289-.191z'/>",
172
+ 'icon-x-circle-full': "<path fill-rule='evenodd' d='M10.586 12l-2.829 2.828a1 1 0 001.415 1.415L12 13.414l2.828 2.829a1 1 0 001.415-1.415L13.414 12l2.829-2.828a1 1 0 10-1.415-1.415L12 10.586 9.172 7.757a1 1 0 00-1.415 1.415L10.586 12zM12 23C5.925 23 1 18.075 1 12S5.925 1 12 1s11 4.925 11 11-4.925 11-11 11z'/>",
173
+ 'icon-x-circle': "<path fill-rule='evenodd' d='M10.586 12L7.757 9.172a1 1 0 011.415-1.415L12 10.586l2.828-2.829a1 1 0 011.415 1.415L13.414 12l2.829 2.828a1 1 0 01-1.415 1.415L12 13.414l-2.828 2.829a1 1 0 11-1.415-1.415L10.586 12zm10.956 5.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.477z'/>",
174
+ 'icon-x': "<path fill-rule='evenodd' d='M12 13.414l-5.293 5.293a1 1 0 11-1.414-1.414L10.586 12 5.293 6.707a1 1 0 011.414-1.414l12 12a1 1 0 01-1.414 1.414L12 13.414zm5.293-8.121a1 1 0 011.414 1.414l-3 3a1 1 0 11-1.414-1.414l3-3z'/>",
175
+ 'icon-spinner': "<path d='M24 12C24 14.3734 23.2962 16.6935 21.9776 18.6668C20.6591 20.6402 18.7849 22.1783 16.5922 23.0866C14.3995 23.9948 11.9867 24.2324 9.65892 23.7694C7.33114 23.3064 5.19295 22.1635 3.51472 20.4853C1.83649 18.8071 0.693599 16.6689 0.230577 14.3411C-0.232446 12.0133 0.00519403 9.60051 0.913446 7.4078C1.8217 5.21509 3.35977 3.34094 5.33316 2.02236C7.30655 0.703788 9.62662 -2.83022e-08 12 0L12 3C10.22 3 8.47991 3.52784 6.99987 4.51677C5.51983 5.50571 4.36627 6.91131 3.68508 8.55585C3.0039 10.2004 2.82567 12.01 3.17293 13.7558C3.5202 15.5016 4.37737 17.1053 5.63604 18.364C6.89471 19.6226 8.49836 20.4798 10.2442 20.8271C11.99 21.1743 13.7996 20.9961 15.4442 20.3149C17.0887 19.6337 18.4943 18.4802 19.4832 17.0001C20.4722 15.5201 21 13.78 21 12H24Z'/>"
176
+ };
177
+
178
+ /*
179
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
180
+ * Licensed under the MIT license.
181
+ * See LICENSE file in the project root for full license information.
182
+ */
183
+ const SVG_PREFIX = `<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" role="img">`;
184
+ const SVG_SUFFIX = `</svg>`;
185
+ class BaoIconDictionary {
186
+ constructor(document, domSanitizer) {
187
+ this.document = document;
188
+ this.domSanitizer = domSanitizer;
189
+ }
190
+ getNamedSvgIcon(iconName) {
191
+ const rawIconString = this.getRawIconStringFromIconName(iconName);
192
+ const literal = this.domSanitizer.bypassSecurityTrustHtml(rawIconString);
193
+ const svgString = this.domSanitizer.sanitize(SecurityContext.HTML, literal);
194
+ return this.svgElementFromString(svgString || '');
195
+ }
196
+ getRawIconStringFromIconName(iconName) {
197
+ const iconSvgPath = ICONS_DCT[iconName] || '';
198
+ return `${SVG_PREFIX}${iconSvgPath}${SVG_SUFFIX}`;
199
+ }
200
+ svgElementFromString(svgString) {
201
+ const div = this.document.createElement('DIV');
202
+ div.innerHTML = svgString;
203
+ const svg = div.querySelector('svg');
204
+ return svg;
205
+ }
206
+ }
207
+ BaoIconDictionary.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconDictionary, deps: [{ token: DOCUMENT }, { token: i1.DomSanitizer }], target: i0.ɵɵFactoryTarget.Injectable });
208
+ BaoIconDictionary.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconDictionary, providedIn: 'root' });
209
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconDictionary, decorators: [{
210
+ type: Injectable,
211
+ args: [{ providedIn: 'root' }]
212
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
213
+ type: Inject,
214
+ args: [DOCUMENT]
215
+ }] }, { type: i1.DomSanitizer }]; } });
216
+
217
+ /*
218
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
219
+ * Licensed under the MIT license.
220
+ * See LICENSE file in the project root for full license information.
221
+ */
222
+ const SVG_NAMESPACE = 'http://www.w3.org/2000/svg';
223
+ const TITLE = 'title';
224
+ /**
225
+ * Component to display an icon. It can be used in the following ways:
226
+ *
227
+ * - Specify the svgIcon input to load an SVG icon from a preset list of icons.
228
+ * Examples:
229
+ * `<bao-icon svgIcon="heart"></bao-icon>`
230
+ */
231
+ class BaoIconComponent {
232
+ constructor(elementRef, iconRegistry, renderer, ariaHidden) {
233
+ this.elementRef = elementRef;
234
+ this.iconRegistry = iconRegistry;
235
+ this.renderer = renderer;
236
+ /**
237
+ * The size of the icon
238
+ */
239
+ this.size = 'x-small';
240
+ // If the user has not explicitly set aria-hidden, mark the icon as hidden, as this is
241
+ // the right thing to do for the majority of icon use-cases.
242
+ if (!ariaHidden) {
243
+ this.elementRef.nativeElement.setAttribute('aria-hidden', 'true');
244
+ }
245
+ this._titleId = '';
246
+ this._title = '';
247
+ this._svgIcon = '';
248
+ }
249
+ /** Name of the icon in the SVG icon set. */
250
+ get svgIcon() {
251
+ return this._svgIcon;
252
+ }
253
+ set svgIcon(value) {
254
+ if (value !== this._svgIcon) {
255
+ if (value) {
256
+ this.updateSvgIcon(value, this.title);
257
+ }
258
+ else if (this._svgIcon) {
259
+ this.clearSvgElement();
260
+ }
261
+ this._svgIcon = value;
262
+ this.renderer.addClass(this.elementRef.nativeElement, `bao-${this._svgIcon}`);
263
+ }
264
+ }
265
+ get hexColor() {
266
+ if (this.color) {
267
+ return baoColorToHex(this.color);
268
+ }
269
+ }
270
+ /** Title that will be used as an aria-label for the icon */
271
+ get title() {
272
+ return this._title;
273
+ }
274
+ set title(value) {
275
+ if (value !== this._title) {
276
+ this._title = value;
277
+ this._titleId = this.generateUniqueTitleId();
278
+ this.updateSvgIcon(this.svgIcon, value);
279
+ }
280
+ }
281
+ get titleId() {
282
+ return this._titleId;
283
+ }
284
+ ngOnDestroy() {
285
+ if (this._elementsWithExternalReferences) {
286
+ this._elementsWithExternalReferences.clear();
287
+ }
288
+ }
289
+ setSvgElement(svg) {
290
+ this.clearSvgElement();
291
+ // Workaround for IE11 and Edge ignoring `style` tags inside dynamically-created SVGs.
292
+ // See: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/10898469/
293
+ // Do this before inserting the element into the DOM, in order to avoid a style recalculation.
294
+ const styleTags = svg.querySelectorAll('style');
295
+ // eslint-disable-next-line @typescript-eslint/prefer-for-of
296
+ for (let i = 0; i < styleTags.length; i++) {
297
+ styleTags[i].textContent += ' ';
298
+ }
299
+ this.elementRef.nativeElement.appendChild(svg);
300
+ }
301
+ clearSvgElement() {
302
+ const layoutElement = this.elementRef.nativeElement;
303
+ let childCount = layoutElement.childNodes.length;
304
+ if (this._elementsWithExternalReferences) {
305
+ this._elementsWithExternalReferences.clear();
306
+ }
307
+ // Remove existing non-element child nodes and SVGs, and add the new SVG element. Note that
308
+ // we can't use innerHTML, because IE will throw if the element has a data binding.
309
+ while (childCount--) {
310
+ const child = layoutElement.childNodes[childCount];
311
+ // 1 corresponds to Node.ELEMENT_NODE. We remove all non-element nodes in order to get rid
312
+ // of any loose text nodes, as well as any SVG elements in order to remove any old icons.
313
+ if (child.nodeType !== 1 || child.nodeName.toLowerCase() === 'svg') {
314
+ layoutElement.removeChild(child);
315
+ }
316
+ }
317
+ }
318
+ // Sets a new SVG icon with a particular name.
319
+ updateSvgIcon(iconName, title) {
320
+ if (iconName) {
321
+ let svg = this.iconRegistry.getNamedSvgIcon(iconName);
322
+ if (title) {
323
+ svg = this.addTitleToSVG(svg, title);
324
+ }
325
+ this.setSvgElement(svg);
326
+ }
327
+ }
328
+ addTitleToSVG(svg, title) {
329
+ const titleNode = this.renderer.createElement(TITLE, SVG_NAMESPACE);
330
+ titleNode.id = this._titleId;
331
+ const titleText = this.renderer.createText(title);
332
+ this.renderer.appendChild(titleNode, titleText);
333
+ this.renderer.appendChild(svg, titleNode);
334
+ return svg;
335
+ }
336
+ generateUniqueTitleId() {
337
+ return this.title
338
+ ? `${this.title}-${Math.random() * 10000000000000000}`
339
+ : '';
340
+ }
341
+ }
342
+ BaoIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconComponent, deps: [{ token: i0.ElementRef }, { token: BaoIconDictionary }, { token: i0.Renderer2 }, { token: 'aria-hidden', attribute: true }], target: i0.ɵɵFactoryTarget.Component });
343
+ BaoIconComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoIconComponent, selector: "bao-icon", inputs: { svgIcon: "svgIcon", color: "color", title: "title", size: "size" }, 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\"", "attr.aria-labelledby": "titleId", "attr.aria-hidden": "!title", "style.color": "hexColor" } }, exportAs: ["baoIcon"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["bao-icon{background-repeat:no-repeat;display:inline-flex;align-items:center;fill:currentColor;line-height:normal}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:1.15rem}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 });
344
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconComponent, decorators: [{
345
+ type: Component,
346
+ args: [{ template: '<ng-content></ng-content>', selector: 'bao-icon', exportAs: 'baoIcon', host: {
347
+ role: 'img',
348
+ // '[class]': "'bao-icon notranslate ' + svgIcon",
349
+ '[class.bao-icon]': 'true',
350
+ '[class.notranslate]': 'true',
351
+ '[class.bao-icon-medium]': 'size === "medium"',
352
+ '[class.bao-icon-small]': 'size === "small"',
353
+ '[class.bao-icon-x-small]': 'size === "x-small"',
354
+ '[class.bao-icon-xx-small]': 'size === "xx-small"',
355
+ '[attr.data-bao-icon-type]': '"svg"',
356
+ '[attr.aria-labelledby]': 'titleId',
357
+ '[attr.aria-hidden]': '!title',
358
+ '[style.color]': 'hexColor'
359
+ }, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, styles: ["bao-icon{background-repeat:no-repeat;display:inline-flex;align-items:center;fill:currentColor;line-height:normal}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:1.15rem}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"] }]
360
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: BaoIconDictionary }, { type: i0.Renderer2 }, { type: undefined, decorators: [{
361
+ type: Attribute,
362
+ args: ['aria-hidden']
363
+ }] }]; }, propDecorators: { svgIcon: [{
364
+ type: Input
365
+ }], color: [{
366
+ type: Input
367
+ }], title: [{
368
+ type: Input
369
+ }], size: [{
370
+ type: Input
371
+ }] } });
372
+
373
+ /*
374
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
375
+ * Licensed under the MIT license.
376
+ * See LICENSE file in the project root for full license information.
377
+ */
378
+ const ICON_DIRECTIVES = [BaoIconComponent];
379
+ class BaoIconModule {
380
+ }
381
+ BaoIconModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
382
+ BaoIconModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconModule, declarations: [BaoIconComponent], imports: [CommonModule], exports: [BaoIconComponent] });
383
+ BaoIconModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconModule, imports: [[CommonModule]] });
384
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoIconModule, decorators: [{
385
+ type: NgModule,
386
+ args: [{
387
+ imports: [CommonModule],
388
+ declarations: ICON_DIRECTIVES,
389
+ exports: ICON_DIRECTIVES
390
+ }]
391
+ }] });
392
+
393
+ /*
394
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
395
+ * Licensed under the MIT license.
396
+ * See LICENSE file in the project root for full license information.
397
+ */
398
+ const BAO_ICON_NODE_NAME = 'BAO-ICON';
399
+ const LOADING_SPINNER_CLASS = 'loading-spinner';
400
+ class BaoButtonComponent {
401
+ constructor(elementRef, cdr) {
402
+ this.elementRef = elementRef;
403
+ this.cdr = cdr;
404
+ /**
405
+ * The display type of the button
406
+ */
407
+ this.displayType = 'utility';
408
+ /**
409
+ * The hierarchy level of the button
410
+ */
411
+ this.level = 'primary';
412
+ /**
413
+ * The size of the button
414
+ */
415
+ this.size = 'medium';
416
+ /**
417
+ * Flag to set the button in loading state
418
+ */
419
+ this.loading = false;
420
+ /**
421
+ * Flag to set the button reversed color mode
422
+ */
423
+ this.reversed = false;
424
+ /**
425
+ * The aria-label of the loading spinner if it displayed alone
426
+ */
427
+ this.loadingSpinnerAriaLabel = 'chargement';
428
+ /**
429
+ * Allows the button to grow to the width of it's container
430
+ */
431
+ this.fullWidth = false;
432
+ /**
433
+ * If there is no text, some margin/padding will be different, i.e. for the spinner
434
+ */
435
+ this.noText = false;
436
+ /**
437
+ * If the icon is on the right of the label, the loading spinner will need to be on the right of the label
438
+ */
439
+ this.rightIcon = false;
440
+ }
441
+ get nativeElement() {
442
+ return this.elementRef.nativeElement;
443
+ }
444
+ ngAfterViewInit() {
445
+ const childNodes = Array.from(this.nativeElement.childNodes);
446
+ const textIndex = childNodes.findIndex(c => c.nodeType === Node.TEXT_NODE);
447
+ this.noText = textIndex === -1;
448
+ const iconIdex = childNodes.findIndex(c => c.nodeName === BAO_ICON_NODE_NAME &&
449
+ !c.classList.contains(LOADING_SPINNER_CLASS));
450
+ this.rightIcon = iconIdex > textIndex;
451
+ this.cdr.detectChanges();
452
+ }
453
+ }
454
+ BaoButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
455
+ BaoButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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]=\"noText ? 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]=\"noText ? 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-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-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"], components: [{ type: BaoIconComponent, selector: "bao-icon", inputs: ["svgIcon", "color", "title", "size"], exportAs: ["baoIcon"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonComponent, decorators: [{
457
+ type: Component,
458
+ args: [{ selector: 'button[bao-button]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
459
+ class: 'bao-button',
460
+ '[class.bao-button-utility]': 'displayType === "utility"',
461
+ '[class.bao-button-editorial]': 'displayType === "editorial"',
462
+ '[class.bao-button-primary]': 'level === "primary"',
463
+ '[class.bao-button-secondary]': 'level === "secondary"',
464
+ '[class.bao-button-tertiary]': 'level === "tertiary"',
465
+ '[class.bao-button-large]': 'size === "large"',
466
+ '[class.bao-button-medium]': 'size === "medium"',
467
+ '[class.bao-button-small]': 'size === "small"',
468
+ '[class.bao-button-reversed]': 'reversed === true',
469
+ '[class.bao-button-loading]': 'loading === true',
470
+ '[class.bao-button-no-text]': 'noText === true',
471
+ '[class.bao-button-full-width]': 'fullWidth === true'
472
+ }, template: "<bao-icon\n *ngIf=\"loading && !rightIcon\"\n class=\"loading-spinner\"\n svgIcon=\"icon-spinner\"\n [title]=\"noText ? 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]=\"noText ? 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-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-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"] }]
473
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { displayType: [{
474
+ type: Input
475
+ }], level: [{
476
+ type: Input
477
+ }], size: [{
478
+ type: Input
479
+ }], loading: [{
480
+ type: Input
481
+ }], reversed: [{
482
+ type: Input
483
+ }], loadingSpinnerAriaLabel: [{
484
+ type: Input
485
+ }], fullWidth: [{
486
+ type: Input
487
+ }] } });
488
+
489
+ /*
490
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
491
+ * Licensed under the MIT license.
492
+ * See LICENSE file in the project root for full license information.
493
+ */
494
+ const BUTTON_DIRECTIVES = [BaoButtonComponent];
495
+ class BaoButtonModule {
496
+ }
497
+ BaoButtonModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
498
+ BaoButtonModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonModule, declarations: [BaoButtonComponent], imports: [CommonModule, BaoIconModule], exports: [BaoButtonComponent, BaoIconModule] });
499
+ BaoButtonModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonModule, imports: [[CommonModule, BaoIconModule], BaoIconModule] });
500
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoButtonModule, decorators: [{
501
+ type: NgModule,
502
+ args: [{
503
+ imports: [CommonModule, BaoIconModule],
504
+ declarations: BUTTON_DIRECTIVES,
505
+ exports: [...BUTTON_DIRECTIVES, BaoIconModule]
506
+ }]
507
+ }] });
508
+
509
+ /*
510
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
511
+ * Licensed under the MIT license.
512
+ * See LICENSE file in the project root for full license information.
513
+ */
514
+ /**
515
+ * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
516
+ * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
517
+ * content block element may be used in its place.
518
+ *
519
+ * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
520
+ */
521
+ /**
522
+ * Title of an alert, intended for use within `<bao-alert>`. This component is an optional
523
+ * convenience for one variety of alert title; any custom title element may be used in its place.
524
+ *
525
+ * BaoAlertTitle provides no behaviors, instead serving as a purely visual treatment.
526
+ */
527
+ class BaoAlertTitle {
528
+ }
529
+ BaoAlertTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
530
+ BaoAlertTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoAlertTitle, selector: "bao-alert-title", host: { classAttribute: "bao-alert-title" }, ngImport: i0 });
531
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertTitle, decorators: [{
532
+ type: Directive,
533
+ args: [{
534
+ selector: 'bao-alert-title',
535
+ host: { class: 'bao-alert-title' }
536
+ }]
537
+ }] });
538
+ /**
539
+ * Content of an alert, intended for use within `<bao-alert>`. This component is an optional
540
+ * convenience for use with other convenience elements, such as `<bao-alert-title>`; any custom
541
+ * content block element may be used in its place.
542
+ *
543
+ * BaoAlertContent provides no behaviors, instead serving as a purely visual treatment.
544
+ */
545
+ class BaoAlertContent {
546
+ }
547
+ BaoAlertContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
548
+ BaoAlertContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoAlertContent, selector: "bao-alert-content", host: { classAttribute: "bao-alert-content" }, ngImport: i0 });
549
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertContent, decorators: [{
550
+ type: Directive,
551
+ args: [{
552
+ selector: 'bao-alert-content',
553
+ host: { class: 'bao-alert-content' }
554
+ }]
555
+ }] });
556
+ /**
557
+ * Bottom area of an alert that contains action buttons, intended for use within `<bao-alert>`.
558
+ * This component is an optional convenience for use with other convenience elements, such as
559
+ * `<bao-alert-content>`; any custom action block element may be used in its place.
560
+ *
561
+ * BaoAlertActions provides no behaviors, instead serving as a purely visual treatment.
562
+ */
563
+ class BaoAlertActions {
564
+ }
565
+ BaoAlertActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertActions, deps: [], target: i0.ɵɵFactoryTarget.Directive });
566
+ BaoAlertActions.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoAlertActions, selector: "bao-alert-actions", host: { classAttribute: "bao-alert-actions" }, exportAs: ["baoAlertActions"], ngImport: i0 });
567
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertActions, decorators: [{
568
+ type: Directive,
569
+ args: [{
570
+ selector: 'bao-alert-actions',
571
+ exportAs: 'baoAlertActions',
572
+ host: {
573
+ class: 'bao-alert-actions'
574
+ }
575
+ }]
576
+ }] });
577
+ /**
578
+ * Link inside an alert message, intended for use within `<bao-alert>`.
579
+ * This component is an optional convenience for use with other convenience elements, such as
580
+ * `<bao-alert-content>`; any custom action block element may be used in its place.
581
+ *
582
+ * BaoAlertLink provides no behaviors, instead serving as a purely visual treatment.
583
+ */
584
+ class BaoAlertLink {
585
+ }
586
+ BaoAlertLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertLink, deps: [], target: i0.ɵɵFactoryTarget.Directive });
587
+ BaoAlertLink.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoAlertLink, selector: "bao-alert-link", host: { classAttribute: "bao-alert-link" }, ngImport: i0 });
588
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertLink, decorators: [{
589
+ type: Directive,
590
+ args: [{
591
+ // eslint-disable-next-line @angular-eslint/directive-selector
592
+ selector: 'bao-alert-link',
593
+ host: {
594
+ class: 'bao-alert-link'
595
+ }
596
+ }]
597
+ }] });
598
+ /**
599
+ * BAO alert component. Alerts should be used when the message concerns an
600
+ * external subject or a part of the page
601
+ *
602
+ * See https://zeroheight.com/575tugn0n/p/03c51f-messages-dalerte/t/80b47c
603
+ *
604
+ * BaoAlertComponent provides no behaviors, instead serving as a purely visual treatment.
605
+ */
606
+ class BaoAlertComponent {
607
+ constructor() {
608
+ /**
609
+ * Alert type
610
+ */
611
+ this.type = '';
612
+ this.dismissible = false;
613
+ this.showIcon = true;
614
+ this.dismiss = new EventEmitter();
615
+ this.iconType = 'icon-info';
616
+ this.iconTitle = 'Information';
617
+ }
618
+ ngOnChanges(changes) {
619
+ if (changes['type']) {
620
+ this.iconType = this.alertTypeIcon(changes['type'].currentValue);
621
+ this.iconTitle = this.alertTitleIcon(changes['type'].currentValue);
622
+ }
623
+ }
624
+ alertTypeIcon(value) {
625
+ const typesAlertIcon = {
626
+ success: 'icon-check-circle',
627
+ danger: 'icon-error',
628
+ warning: 'icon-warning',
629
+ default: 'icon-info'
630
+ };
631
+ return typesAlertIcon[value] || typesAlertIcon.default;
632
+ }
633
+ alertTitleIcon(value) {
634
+ const titleIcon = {
635
+ success: 'Succès',
636
+ danger: 'Erreur',
637
+ warning: 'Attention',
638
+ default: 'Information'
639
+ };
640
+ return titleIcon[value] || titleIcon.default;
641
+ }
642
+ onDismissClicked() {
643
+ this.dismiss.emit();
644
+ }
645
+ }
646
+ BaoAlertComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
647
+ BaoAlertComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoAlertComponent, selector: "bao-alert", inputs: { type: "type", dismissible: "dismissible", showIcon: "showIcon" }, 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\"" }, classAttribute: "bao-alert bao-alert-with-icon bao-alert-dismissible fade show" }, usesOnChanges: true, ngImport: i0, template: "<div *ngIf=\"showIcon\" class=\"bao-alert-icon-container\">\n <bao-icon [svgIcon]=\"iconType\" [title]=\"iconTitle\"></bao-icon>\n</div>\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-icon-container .bao-icon{display:flex}.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}\n"], components: [{ type: BaoIconComponent, selector: "bao-icon", inputs: ["svgIcon", "color", "title", "size"], exportAs: ["baoIcon"] }, { type: BaoButtonComponent, selector: "button[bao-button]", inputs: ["displayType", "level", "size", "loading", "reversed", "loadingSpinnerAriaLabel", "fullWidth"] }], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
648
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertComponent, decorators: [{
649
+ type: Component,
650
+ args: [{ selector: 'bao-alert', encapsulation: ViewEncapsulation.None, host: {
651
+ class: 'bao-alert bao-alert-with-icon bao-alert-dismissible fade show',
652
+ '[class.bao-alert-success]': 'type === "success"',
653
+ '[class.bao-alert-danger]': 'type === "danger"',
654
+ '[class.bao-alert-warning]': 'type === "warning"',
655
+ '[class.bao-alert-info]': 'type === "info"',
656
+ role: 'alert'
657
+ }, template: "<div *ngIf=\"showIcon\" class=\"bao-alert-icon-container\">\n <bao-icon [svgIcon]=\"iconType\" [title]=\"iconTitle\"></bao-icon>\n</div>\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-icon-container .bao-icon{display:flex}.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}\n"] }]
658
+ }], propDecorators: { type: [{
659
+ type: Input
660
+ }], dismissible: [{
661
+ type: Input
662
+ }], showIcon: [{
663
+ type: Input
664
+ }], dismiss: [{
665
+ type: Output
666
+ }] } });
667
+
668
+ /*
669
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
670
+ * Licensed under the MIT license.
671
+ * See LICENSE file in the project root for full license information.
672
+ */
673
+ const ALERT_DIRECTIVES = [
674
+ BaoAlertTitle,
675
+ BaoAlertContent,
676
+ BaoAlertActions,
677
+ BaoAlertLink,
678
+ BaoAlertComponent
679
+ ];
680
+ class BaoAlertModule {
681
+ }
682
+ BaoAlertModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
683
+ BaoAlertModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertModule, declarations: [BaoAlertTitle,
684
+ BaoAlertContent,
685
+ BaoAlertActions,
686
+ BaoAlertLink,
687
+ BaoAlertComponent], imports: [CommonModule, BaoIconModule, BaoButtonModule], exports: [BaoAlertTitle,
688
+ BaoAlertContent,
689
+ BaoAlertActions,
690
+ BaoAlertLink,
691
+ BaoAlertComponent, BaoIconModule, BaoButtonModule] });
692
+ BaoAlertModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertModule, imports: [[CommonModule, BaoIconModule, BaoButtonModule], BaoIconModule, BaoButtonModule] });
693
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoAlertModule, decorators: [{
694
+ type: NgModule,
695
+ args: [{
696
+ imports: [CommonModule, BaoIconModule, BaoButtonModule],
697
+ declarations: ALERT_DIRECTIVES,
698
+ exports: [...ALERT_DIRECTIVES, BaoIconModule, BaoButtonModule],
699
+ schemas: [CUSTOM_ELEMENTS_SCHEMA]
700
+ }]
701
+ }] });
702
+
703
+ /*
704
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
705
+ * Licensed under the MIT license.
706
+ * See LICENSE file in the project root for full license information.
707
+ */
708
+
709
+ /*
710
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
711
+ * Licensed under the MIT license.
712
+ * See LICENSE file in the project root for full license information.
713
+ */
714
+ const LAST_NODE_ATTRIBUTE = { 'aria-current': 'page' };
715
+ class BaoBreadcrumbComponent {
716
+ constructor(renderer) {
717
+ this.renderer = renderer;
718
+ }
719
+ setLastLinkAttribute() {
720
+ const children = Array.from(this.staticContainer.nativeElement.children);
721
+ this.renderer.setAttribute(children[children.length - 1], Object.keys(LAST_NODE_ATTRIBUTE)[0], Object.values(LAST_NODE_ATTRIBUTE)[0]);
722
+ }
723
+ ngAfterViewInit() {
724
+ this.setLastLinkAttribute();
725
+ }
726
+ onContentChange() {
727
+ this.setLastLinkAttribute();
728
+ }
729
+ }
730
+ BaoBreadcrumbComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbComponent, deps: [{ token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Component });
731
+ BaoBreadcrumbComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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"], directives: [{ type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
732
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbComponent, decorators: [{
733
+ type: Component,
734
+ args: [{ selector: 'bao-breadcrumb', encapsulation: ViewEncapsulation.None, host: {
735
+ class: 'bao-breadcrumb'
736
+ }, 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"] }]
737
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }]; }, propDecorators: { staticContainer: [{
738
+ type: ViewChild,
739
+ args: ['container', { static: false }]
740
+ }] } });
741
+
742
+ /*
743
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
744
+ * Licensed under the MIT license.
745
+ * See LICENSE file in the project root for full license information.
746
+ */
747
+ const BREADCRUMB_DIRECTIVES = [BaoBreadcrumbComponent];
748
+ class BaoBreadcrumbModule {
749
+ }
750
+ BaoBreadcrumbModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
751
+ BaoBreadcrumbModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbModule, declarations: [BaoBreadcrumbComponent], imports: [CommonModule, ObserversModule], exports: [BaoBreadcrumbComponent] });
752
+ BaoBreadcrumbModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbModule, imports: [[CommonModule, ObserversModule]] });
753
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBreadcrumbModule, decorators: [{
754
+ type: NgModule,
755
+ args: [{
756
+ imports: [CommonModule, ObserversModule],
757
+ declarations: [BREADCRUMB_DIRECTIVES],
758
+ exports: [BREADCRUMB_DIRECTIVES]
759
+ }]
760
+ }] });
761
+
762
+ /*
763
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
764
+ * Licensed under the MIT license.
765
+ * See LICENSE file in the project root for full license information.
766
+ */
767
+
768
+ /*
769
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
770
+ * Licensed under the MIT license.
771
+ * See LICENSE file in the project root for full license information.
772
+ */
773
+
774
+ /*
775
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
776
+ * Licensed under the MIT license.
777
+ * See LICENSE file in the project root for full license information.
778
+ */
779
+ /**
780
+ * A basic content container component that adds the styles of a BAO design card.
781
+ *
782
+ * While this component can be used alone, it also provides a number
783
+ * of preset styles for common card sections, including:
784
+ * * bao-card-body
785
+ * * bao-card-title
786
+ * * bao-card-bao-text-interface
787
+ * * More to come!
788
+ */
789
+ class BaoCardComponent {
790
+ constructor() {
791
+ this.padding = 'normal';
792
+ }
793
+ }
794
+ BaoCardComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
795
+ BaoCardComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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:#adb5bd}.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 });
796
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardComponent, decorators: [{
797
+ type: Component,
798
+ args: [{ selector: 'bao-card, [bao-card], [baoCard]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
799
+ class: 'bao-card',
800
+ '[class.bao-card-large-padding]': 'padding === "large"'
801
+ }, 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:#adb5bd}.bao-card>bao-card-header+bao-card-content{margin-top:1rem}.bao-card.bao-card-large-padding{padding:2rem}\n"] }]
802
+ }], propDecorators: { padding: [{
803
+ type: Input
804
+ }] } });
805
+ /**
806
+ * Header of a card, needed as it's used as a selector in the API.
807
+ */
808
+ class BaoCardHeader {
809
+ }
810
+ BaoCardHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
811
+ BaoCardHeader.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoCardHeader, selector: "bao-card-header, [bao-card-header], [baoCardHeader]", host: { classAttribute: "bao-card-header" }, ngImport: i0 });
812
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardHeader, decorators: [{
813
+ type: Directive,
814
+ args: [{
815
+ selector: 'bao-card-header, [bao-card-header], [baoCardHeader]',
816
+ host: { class: 'bao-card-header' }
817
+ }]
818
+ }] });
819
+ /**
820
+ * Body of a card, needed as it's used as a selector in the API.
821
+ */
822
+ class BaoCardContent {
823
+ }
824
+ BaoCardContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
825
+ BaoCardContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoCardContent, selector: "bao-card-content, [bao-card-content], [baoCardContent]", host: { classAttribute: "bao-card-content" }, ngImport: i0 });
826
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardContent, decorators: [{
827
+ type: Directive,
828
+ args: [{
829
+ selector: 'bao-card-content, [bao-card-content], [baoCardContent]',
830
+ host: { class: 'bao-card-content' }
831
+ }]
832
+ }] });
833
+ /**
834
+ * Title of a card, needed as it's used as a selector in the API.
835
+ */
836
+ class BaoCardTitle {
837
+ }
838
+ BaoCardTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
839
+ BaoCardTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoCardTitle, selector: "bao-card-title, [bao-card-title], [baoCardTitle]", host: { classAttribute: "bao-card-title" }, ngImport: i0 });
840
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardTitle, decorators: [{
841
+ type: Directive,
842
+ args: [{
843
+ selector: `bao-card-title, [bao-card-title], [baoCardTitle]`,
844
+ host: {
845
+ class: 'bao-card-title'
846
+ }
847
+ }]
848
+ }] });
849
+ /**
850
+ * Text of a card, needed as it's used as a selector in the API.
851
+ */
852
+ class BaoCardTextInterface {
853
+ }
854
+ BaoCardTextInterface.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardTextInterface, deps: [], target: i0.ɵɵFactoryTarget.Directive });
855
+ BaoCardTextInterface.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoCardTextInterface, selector: "bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]", host: { classAttribute: "bao-card-text-interface" }, ngImport: i0 });
856
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardTextInterface, decorators: [{
857
+ type: Directive,
858
+ args: [{
859
+ selector: `bao-card-text-interface, [bao-card-text-interface], [baoCardTextInterface]`,
860
+ host: {
861
+ class: 'bao-card-text-interface'
862
+ }
863
+ }]
864
+ }] });
865
+
866
+ /*
867
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
868
+ * Licensed under the MIT license.
869
+ * See LICENSE file in the project root for full license information.
870
+ */
871
+ const CARD_DIRECTIVES = [
872
+ BaoCardComponent,
873
+ BaoCardContent,
874
+ BaoCardHeader,
875
+ BaoCardTextInterface,
876
+ BaoCardTitle
877
+ ];
878
+ class BaoCardModule {
879
+ }
880
+ BaoCardModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
881
+ BaoCardModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardModule, declarations: [BaoCardComponent,
882
+ BaoCardContent,
883
+ BaoCardHeader,
884
+ BaoCardTextInterface,
885
+ BaoCardTitle], imports: [CommonModule], exports: [BaoCardComponent,
886
+ BaoCardContent,
887
+ BaoCardHeader,
888
+ BaoCardTextInterface,
889
+ BaoCardTitle] });
890
+ BaoCardModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardModule, imports: [[CommonModule]] });
891
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCardModule, decorators: [{
892
+ type: NgModule,
893
+ args: [{
894
+ imports: [CommonModule],
895
+ declarations: [CARD_DIRECTIVES],
896
+ exports: [CARD_DIRECTIVES]
897
+ }]
898
+ }] });
899
+
900
+ /*
901
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
902
+ * Licensed under the MIT license.
903
+ * See LICENSE file in the project root for full license information.
904
+ */
905
+
906
+ /*
907
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
908
+ * Licensed under the MIT license.
909
+ * See LICENSE file in the project root for full license information.
910
+ */
911
+ class BaoErrorTextComponent {
912
+ }
913
+ BaoErrorTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoErrorTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
914
+ BaoErrorTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 });
915
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoErrorTextComponent, decorators: [{
916
+ type: Component,
917
+ 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"] }]
918
+ }] });
919
+
920
+ /*
921
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
922
+ * Licensed under the MIT license.
923
+ * See LICENSE file in the project root for full license information.
924
+ */
925
+ class BaoGuidingTextComponent {
926
+ }
927
+ BaoGuidingTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoGuidingTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
928
+ BaoGuidingTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 });
929
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoGuidingTextComponent, decorators: [{
930
+ type: Component,
931
+ 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"] }]
932
+ }] });
933
+
934
+ /*
935
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
936
+ * Licensed under the MIT license.
937
+ * See LICENSE file in the project root for full license information.
938
+ */
939
+ class BaoLegendTextComponent {
940
+ constructor() {
941
+ this.required = false;
942
+ }
943
+ }
944
+ BaoLegendTextComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoLegendTextComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
945
+ BaoLegendTextComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoLegendTextComponent, selector: "bao-legend, [bao-legend]", inputs: { required: "required" }, ngImport: i0, template: '<legend class="bao-legend"><ng-content></ng-content><span *ngIf="required">&nbsp;*</span></legend>', isInline: true, styles: [".bao-legend{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:0}.bao-legend span{color:#d3310a}\n"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], encapsulation: i0.ViewEncapsulation.None });
946
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoLegendTextComponent, decorators: [{
947
+ type: Component,
948
+ args: [{ selector: 'bao-legend, [bao-legend]', encapsulation: ViewEncapsulation.None, template: '<legend class="bao-legend"><ng-content></ng-content><span *ngIf="required">&nbsp;*</span></legend>', styles: [".bao-legend{color:#212529!important;font-weight:700;line-height:1.5em;font-size:1rem;margin-bottom:0}.bao-legend span{color:#d3310a}\n"] }]
949
+ }], propDecorators: { required: [{
950
+ type: Input
951
+ }] } });
952
+
953
+ /*
954
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
955
+ * Licensed under the MIT license.
956
+ * See LICENSE file in the project root for full license information.
957
+ */
958
+
959
+ /*
960
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
961
+ * Licensed under the MIT license.
962
+ * See LICENSE file in the project root for full license information.
963
+ */
964
+ const DIRECTIVES$2 = [
965
+ BaoErrorTextComponent,
966
+ BaoLegendTextComponent,
967
+ BaoGuidingTextComponent
968
+ ];
969
+ class BaoCommonComponentsModule {
970
+ }
971
+ BaoCommonComponentsModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCommonComponentsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
972
+ BaoCommonComponentsModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCommonComponentsModule, declarations: [BaoErrorTextComponent,
973
+ BaoLegendTextComponent,
974
+ BaoGuidingTextComponent], imports: [CommonModule], exports: [BaoErrorTextComponent,
975
+ BaoLegendTextComponent,
976
+ BaoGuidingTextComponent] });
977
+ BaoCommonComponentsModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCommonComponentsModule, imports: [[CommonModule]] });
978
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCommonComponentsModule, decorators: [{
979
+ type: NgModule,
980
+ args: [{
981
+ imports: [CommonModule],
982
+ declarations: DIRECTIVES$2,
983
+ exports: DIRECTIVES$2
984
+ }]
985
+ }] });
986
+
987
+ /*
988
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
989
+ * Licensed under the MIT license.
990
+ * See LICENSE file in the project root for full license information.
991
+ */
992
+ /**
993
+ * Unique ID for each checkbox group counter
994
+ */
995
+ let checkboxGroupNextUniqueId = 0;
996
+ class BaoCheckboxGroupComponent {
997
+ constructor(cdr) {
998
+ this.cdr = cdr;
999
+ this._uniqueId = `bao-checkbox-group-${++checkboxGroupNextUniqueId}`;
1000
+ /**
1001
+ * The checkbox group ID. It is set dynamically with an unique ID by default
1002
+ */
1003
+ this.id = this._uniqueId;
1004
+ /**
1005
+ * The aria-describedby id for web accessibilty
1006
+ */
1007
+ this.ariaDescribedby = undefined;
1008
+ }
1009
+ ngAfterViewInit() {
1010
+ this.setAriaDescribedByToDescription();
1011
+ this.cdr.detectChanges();
1012
+ }
1013
+ onContentChange() {
1014
+ this.setAriaDescribedByToDescription();
1015
+ }
1016
+ /**
1017
+ * Set the aria-describedby property to bao-guiding-text if available
1018
+ */
1019
+ setAriaDescribedByToDescription() {
1020
+ const children = Array.from(this.staticContainer.nativeElement.children);
1021
+ if (children.length === 0) {
1022
+ this.showAriaDescribedBy(false);
1023
+ return;
1024
+ }
1025
+ this.showAriaDescribedBy(true);
1026
+ }
1027
+ showAriaDescribedBy(value) {
1028
+ this.ariaDescribedby = value ? `${this.id}-ariadescribedby` : undefined;
1029
+ }
1030
+ }
1031
+ BaoCheckboxGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1032
+ BaoCheckboxGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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-legend{margin-bottom:.5rem}.bao-checkbox-group .bao-error,.bao-checkbox-group .bao-guiding-text{margin-top:.5rem}\n"], directives: [{ type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
1033
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxGroupComponent, decorators: [{
1034
+ type: Component,
1035
+ 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-legend{margin-bottom:.5rem}.bao-checkbox-group .bao-error,.bao-checkbox-group .bao-guiding-text{margin-top:.5rem}\n"] }]
1036
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { id: [{
1037
+ type: Input
1038
+ }], staticContainer: [{
1039
+ type: ViewChild,
1040
+ args: ['container', { static: false }]
1041
+ }] } });
1042
+
1043
+ /**
1044
+ * Unique ID for each checkbox counter
1045
+ */
1046
+ let checkboxNextUniqueId = 0;
1047
+ class BaoCheckboxComponent {
1048
+ constructor(elementRef, cdr, focusMonitor) {
1049
+ this.elementRef = elementRef;
1050
+ this.cdr = cdr;
1051
+ this.focusMonitor = focusMonitor;
1052
+ this._disabled = false;
1053
+ this._checked = false;
1054
+ this._indeterminate = false;
1055
+ this._uniqueId = `bao-checkbox-${++checkboxNextUniqueId}`;
1056
+ /**
1057
+ * The checkbox ID. It is set dynamically with an unique ID by default
1058
+ */
1059
+ this.id = this._uniqueId;
1060
+ /**
1061
+ * Whether the checkbox has a border and is considered as a card.
1062
+ */
1063
+ this.brandBorder = false;
1064
+ /**
1065
+ * Whether the checkbox is inline.
1066
+ */
1067
+ this.inline = false;
1068
+ /**
1069
+ * The visible state of the label
1070
+ */
1071
+ this.hiddenLabel = false;
1072
+ /**
1073
+ * Emitted object on change event
1074
+ */
1075
+ this.change = new EventEmitter();
1076
+ /**
1077
+ * Inderminate value of the checkbox whenever
1078
+ */
1079
+ this.indeterminateChange = new EventEmitter();
1080
+ this.onModelChange = () => undefined;
1081
+ this.onTouch = () => undefined;
1082
+ }
1083
+ /**
1084
+ * Whether the checkbox is checked. Default value : false
1085
+ */
1086
+ get checked() {
1087
+ return this._checked;
1088
+ }
1089
+ set checked(value) {
1090
+ if (value !== this.checked) {
1091
+ this._checked = value;
1092
+ this.cdr.markForCheck();
1093
+ }
1094
+ }
1095
+ /**
1096
+ * Whether the checkbox is disabled. Default value : false
1097
+ */
1098
+ get disabled() {
1099
+ return this._disabled;
1100
+ }
1101
+ set disabled(value) {
1102
+ // In the case the value is string or boolean
1103
+ const newValue = value;
1104
+ if (newValue !== this.disabled) {
1105
+ this._disabled = newValue;
1106
+ this.cdr.markForCheck();
1107
+ }
1108
+ }
1109
+ /**
1110
+ * Whether the checkbox is required. Default value : false
1111
+ */
1112
+ get required() {
1113
+ return this._required;
1114
+ }
1115
+ set required(value) {
1116
+ this._required = value;
1117
+ }
1118
+ /**
1119
+ * Whether the checkbox is indeterminate. Default value : false
1120
+ */
1121
+ get indeterminate() {
1122
+ return this._indeterminate;
1123
+ }
1124
+ set indeterminate(value) {
1125
+ const newValue = value;
1126
+ if (newValue !== this._indeterminate) {
1127
+ this._indeterminate = newValue;
1128
+ this.indeterminateChange.emit(this._indeterminate);
1129
+ }
1130
+ // Update the inderteminate value of the html element object
1131
+ this.syncIndeterminate(this._indeterminate);
1132
+ }
1133
+ get nativeElement() {
1134
+ return this.elementRef.nativeElement;
1135
+ }
1136
+ ngOnInit() {
1137
+ // Set all unique ids for the html elements
1138
+ this.inputID = `${this.id}-input`;
1139
+ this.ariaLabelledby = `${this.id}-arialabelledby`;
1140
+ }
1141
+ ngAfterViewInit() {
1142
+ this.focusMonitor.monitor(this.elementRef, true).subscribe(focusOrigin => {
1143
+ if (!focusOrigin) {
1144
+ // When a focused element becomes disabled, the browser *immediately* fires a blur event.
1145
+ // Angular does not expect events to be raised during change detection, so any state change
1146
+ // (such as a form control's 'ng-touched') will cause a changed-after-checked error.
1147
+ // See https://github.com/angular/angular/issues/17793. To work around this, we defer
1148
+ // telling the form control it has been touched until the next tick.
1149
+ Promise.resolve()
1150
+ .then(() => {
1151
+ this.onTouch();
1152
+ this.cdr.markForCheck();
1153
+ })
1154
+ .catch(() => undefined);
1155
+ }
1156
+ });
1157
+ this.setAriaDescribedByToDescription();
1158
+ this.syncIndeterminate(this.indeterminate);
1159
+ }
1160
+ ngOnDestroy() {
1161
+ this.focusMonitor.stopMonitoring(this.elementRef);
1162
+ }
1163
+ /**
1164
+ * Implement ControlValueAccessor
1165
+ */
1166
+ writeValue(value) {
1167
+ this.checked = !!value;
1168
+ }
1169
+ /**
1170
+ * Implement ControlValueAccessor
1171
+ */
1172
+ registerOnChange(fn) {
1173
+ this.onModelChange = fn;
1174
+ }
1175
+ /**
1176
+ * Implement ControlValueAccessor
1177
+ */
1178
+ registerOnTouched(fn) {
1179
+ this.onTouch = fn;
1180
+ }
1181
+ /**
1182
+ * Implement ControlValueAccessor
1183
+ */
1184
+ setDisabledState(isDisabled) {
1185
+ this.disabled = isDisabled;
1186
+ }
1187
+ focus(origin, options) {
1188
+ if (origin) {
1189
+ this.focusMonitor.focusVia(this.inputElement, origin, options);
1190
+ }
1191
+ else {
1192
+ this.inputElement.nativeElement.focus(options);
1193
+ }
1194
+ }
1195
+ /**
1196
+ * Whenever there is change on the input html element
1197
+ */
1198
+ onInteractionEvent(event) {
1199
+ // We always have to stop propagation on the change event.
1200
+ // Otherwise the change event, from the input element, will bubble up and
1201
+ // emit its event object to the `change` output.
1202
+ event.stopPropagation();
1203
+ }
1204
+ /**
1205
+ * Whenever there is click event triggered on the checkbox
1206
+ */
1207
+ onInputClick(event) {
1208
+ event.stopPropagation();
1209
+ this.toggle();
1210
+ this.emitChangeEvent();
1211
+ }
1212
+ /**
1213
+ * Get the value for the aria-checked property (web accessibility)
1214
+ */
1215
+ getAriaState() {
1216
+ if (this.checked) {
1217
+ return "true" /* TRUE */;
1218
+ }
1219
+ return this.indeterminate
1220
+ ? "mixed" /* MIXED */
1221
+ : "false" /* FALSE */;
1222
+ }
1223
+ /**
1224
+ * Emit new values whenever the checkbox object has change.
1225
+ */
1226
+ emitChangeEvent() {
1227
+ this.onModelChange(this.checked);
1228
+ this.change.emit(this.checked);
1229
+ this.syncChecked(this.checked);
1230
+ }
1231
+ /**
1232
+ * Set the checked property on the input html element
1233
+ */
1234
+ syncChecked(value) {
1235
+ if (this.inputElement) {
1236
+ this.inputElement.nativeElement.checked = value;
1237
+ }
1238
+ }
1239
+ /**
1240
+ * Set the indeterminate property on the input html element
1241
+ */
1242
+ syncIndeterminate(value) {
1243
+ if (this.inputElement) {
1244
+ this.inputElement.nativeElement.indeterminate = value;
1245
+ }
1246
+ }
1247
+ /**
1248
+ * Set the aria-describedby property to bao-checkbox-description
1249
+ */
1250
+ setAriaDescribedByToDescription() {
1251
+ const childNodes = Array.from(this.nativeElement.childNodes);
1252
+ const labelNode = childNodes.find(x => {
1253
+ return x.nodeName === 'LABEL';
1254
+ });
1255
+ if (labelNode) {
1256
+ const labelChildNodes = Array.from(labelNode.childNodes);
1257
+ const descriptionNode = labelChildNodes.find(x => {
1258
+ return x.nodeName === 'BAO-CHECKBOX-DESCRIPTION';
1259
+ });
1260
+ if (descriptionNode) {
1261
+ this.ariaDescribedby = `${this.id}-ariadescribedby`;
1262
+ descriptionNode.setAttribute('id', this.ariaDescribedby);
1263
+ }
1264
+ else {
1265
+ this.ariaDescribedby = undefined;
1266
+ }
1267
+ this.cdr.detectChanges();
1268
+ }
1269
+ }
1270
+ /**
1271
+ * Set checked value
1272
+ */
1273
+ toggle() {
1274
+ this.checked = !this.checked;
1275
+ }
1276
+ }
1277
+ BaoCheckboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxComponent, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1$3.FocusMonitor }], target: i0.ɵɵFactoryTarget.Component });
1278
+ BaoCheckboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoCheckboxComponent, selector: "bao-checkbox, [bao-checkbox]", inputs: { checked: "checked", disabled: "disabled", required: "required", indeterminate: "indeterminate", id: "id", ariaLabel: ["aria-label", "ariaLabel"], brandBorder: "brandBorder", inline: "inline", name: "name", hiddenLabel: "hiddenLabel" }, 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: [
1279
+ {
1280
+ provide: NG_VALUE_ACCESSOR,
1281
+ useExisting: forwardRef(() => BaoCheckboxComponent),
1282
+ multi: true
1283
+ }
1284
+ ], 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:#637381}.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:#637381}.bao-checkbox.bao-checkbox-hidden-label .bao-checkbox-label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);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 });
1285
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxComponent, decorators: [{
1286
+ type: Component,
1287
+ args: [{ selector: 'bao-checkbox, [bao-checkbox]', providers: [
1288
+ {
1289
+ provide: NG_VALUE_ACCESSOR,
1290
+ useExisting: forwardRef(() => BaoCheckboxComponent),
1291
+ multi: true
1292
+ }
1293
+ ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
1294
+ class: 'bao-checkbox',
1295
+ '[class.bao-checkbox-inline]': 'inline',
1296
+ '[class.bao-checkbox-checked]': 'checked',
1297
+ '[class.bao-checkbox-indeterminate]': 'indeterminate',
1298
+ '[class.bao-checkbox-disabled]': 'disabled',
1299
+ '[class.bao-checkbox-card]': 'brandBorder',
1300
+ '[class.bao-checkbox-required]': 'required',
1301
+ '[class.bao-checkbox-hidden-label]': 'hiddenLabel'
1302
+ }, 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:#637381}.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:#637381}.bao-checkbox.bao-checkbox-hidden-label .bao-checkbox-label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);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"] }]
1303
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.FocusMonitor }]; }, propDecorators: { checked: [{
1304
+ type: Input
1305
+ }], disabled: [{
1306
+ type: Input
1307
+ }], required: [{
1308
+ type: Input
1309
+ }], indeterminate: [{
1310
+ type: Input
1311
+ }], id: [{
1312
+ type: Input
1313
+ }], ariaLabel: [{
1314
+ type: Input,
1315
+ args: ['aria-label']
1316
+ }], brandBorder: [{
1317
+ type: Input
1318
+ }], inline: [{
1319
+ type: Input
1320
+ }], name: [{
1321
+ type: Input
1322
+ }], hiddenLabel: [{
1323
+ type: Input
1324
+ }], change: [{
1325
+ type: Output
1326
+ }], indeterminateChange: [{
1327
+ type: Output
1328
+ }], inputElement: [{
1329
+ type: ViewChild,
1330
+ args: ['input', { static: false }]
1331
+ }] } });
1332
+ class BaoCheckBoxDescription {
1333
+ }
1334
+ BaoCheckBoxDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckBoxDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1335
+ BaoCheckBoxDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoCheckBoxDescription, selector: "bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]", host: { classAttribute: "bao-checkbox-description" }, ngImport: i0 });
1336
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckBoxDescription, decorators: [{
1337
+ type: Directive,
1338
+ args: [{
1339
+ selector: 'bao-checkbox-description, [bao-checkbox-description], [baoCheckboxDescription]',
1340
+ host: { class: 'bao-checkbox-description' }
1341
+ }]
1342
+ }] });
1343
+
1344
+ /*
1345
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1346
+ * Licensed under the MIT license.
1347
+ * See LICENSE file in the project root for full license information.
1348
+ */
1349
+ const CHECKBOX_DIRECTIVES = [
1350
+ BaoCheckboxComponent,
1351
+ BaoCheckboxGroupComponent,
1352
+ BaoCheckBoxDescription
1353
+ ];
1354
+ class BaoCheckboxModule {
1355
+ }
1356
+ BaoCheckboxModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1357
+ BaoCheckboxModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxModule, declarations: [BaoCheckboxComponent,
1358
+ BaoCheckboxGroupComponent,
1359
+ BaoCheckBoxDescription], imports: [CommonModule, BaoCommonComponentsModule, ObserversModule], exports: [BaoCheckboxComponent,
1360
+ BaoCheckboxGroupComponent,
1361
+ BaoCheckBoxDescription] });
1362
+ BaoCheckboxModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxModule, imports: [[CommonModule, BaoCommonComponentsModule, ObserversModule]] });
1363
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoCheckboxModule, decorators: [{
1364
+ type: NgModule,
1365
+ args: [{
1366
+ imports: [CommonModule, BaoCommonComponentsModule, ObserversModule],
1367
+ declarations: CHECKBOX_DIRECTIVES,
1368
+ exports: CHECKBOX_DIRECTIVES
1369
+ }]
1370
+ }] });
1371
+
1372
+ /*
1373
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1374
+ * Licensed under the MIT license.
1375
+ * See LICENSE file in the project root for full license information.
1376
+ */
1377
+
1378
+ /*
1379
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1380
+ * Licensed under the MIT license.
1381
+ * See LICENSE file in the project root for full license information.
1382
+ */
1383
+ /**
1384
+ * A basic content container component that adds the styles of a BAO header-info
1385
+ *
1386
+ * While this component can be used alone, it also provides a number
1387
+ * of preset styles for common header-info sections, including:
1388
+ * - bao-header-info-title-group
1389
+ * - bao-header-info-content
1390
+ * - bao-header-info-title
1391
+ * - bao-header-info-surtitle
1392
+ * - bao-header-info-subtitle
1393
+ */
1394
+ class BaoHeaderInfoComponent {
1395
+ constructor() {
1396
+ this.notch = '';
1397
+ this.imageUrl = '';
1398
+ this.brandBorder = false;
1399
+ }
1400
+ }
1401
+ BaoHeaderInfoComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1402
+ BaoHeaderInfoComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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: 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"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1$1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
1403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoComponent, decorators: [{
1404
+ type: Component,
1405
+ args: [{ selector: 'bao-header-info', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
1406
+ class: 'bao-document-heading',
1407
+ '[class.document-heading-left-notch]': 'notch === "left"'
1408
+ }, 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: 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"] }]
1409
+ }], propDecorators: { notch: [{
1410
+ type: Input
1411
+ }], imageUrl: [{
1412
+ type: Input
1413
+ }], brandBorder: [{
1414
+ type: Input
1415
+ }] } });
1416
+ class BaoHeaderInfoTitleGroupComponent {
1417
+ }
1418
+ BaoHeaderInfoTitleGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoTitleGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
1419
+ BaoHeaderInfoTitleGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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 });
1420
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoTitleGroupComponent, decorators: [{
1421
+ type: Component,
1422
+ args: [{ selector: 'bao-header-info-title-group', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
1423
+ class: 'bao-header-info-title-group'
1424
+ }, 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" }]
1425
+ }] });
1426
+ class BaoHeaderInfoContent {
1427
+ }
1428
+ BaoHeaderInfoContent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1429
+ BaoHeaderInfoContent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoHeaderInfoContent, selector: "bao-header-info-content", host: { classAttribute: "bao-header-info-content" }, ngImport: i0 });
1430
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoContent, decorators: [{
1431
+ type: Directive,
1432
+ args: [{
1433
+ selector: 'bao-header-info-content',
1434
+ host: {
1435
+ class: 'bao-header-info-content'
1436
+ }
1437
+ }]
1438
+ }] });
1439
+ class BaoHeaderInfoSurtitle {
1440
+ }
1441
+ BaoHeaderInfoSurtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoSurtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1442
+ BaoHeaderInfoSurtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoHeaderInfoSurtitle, selector: "bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]", host: { classAttribute: "document-heading-surtitle" }, ngImport: i0 });
1443
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoSurtitle, decorators: [{
1444
+ type: Directive,
1445
+ args: [{
1446
+ selector: 'bao-header-info-surtitle, [bao-header-info-surtitle], [baoHeaderInfoSurtitle]',
1447
+ host: {
1448
+ class: 'document-heading-surtitle'
1449
+ }
1450
+ }]
1451
+ }] });
1452
+ class BaoHeaderInfoSubtitle {
1453
+ }
1454
+ BaoHeaderInfoSubtitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoSubtitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1455
+ BaoHeaderInfoSubtitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoHeaderInfoSubtitle, selector: "bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]", host: { classAttribute: "document-heading-subtitle" }, ngImport: i0 });
1456
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoSubtitle, decorators: [{
1457
+ type: Directive,
1458
+ args: [{
1459
+ selector: 'bao-header-info-subtitle, [bao-header-info-subtitle], [baoHeaderInfoSubtitle]',
1460
+ host: {
1461
+ class: 'document-heading-subtitle'
1462
+ }
1463
+ }]
1464
+ }] });
1465
+ class BaoHeaderInfoTitle {
1466
+ }
1467
+ BaoHeaderInfoTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1468
+ BaoHeaderInfoTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoHeaderInfoTitle, selector: "bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]", host: { classAttribute: "document-heading-title" }, ngImport: i0 });
1469
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoTitle, decorators: [{
1470
+ type: Directive,
1471
+ args: [{
1472
+ selector: 'bao-header-info-title, [bao-header-info-title], [baoHeaderInfoTitle]',
1473
+ host: {
1474
+ class: 'document-heading-title'
1475
+ }
1476
+ }]
1477
+ }] });
1478
+
1479
+ /*
1480
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1481
+ * Licensed under the MIT license.
1482
+ * See LICENSE file in the project root for full license information.
1483
+ */
1484
+ const DIRECTIVES$1 = [
1485
+ BaoHeaderInfoComponent,
1486
+ BaoHeaderInfoContent,
1487
+ BaoHeaderInfoTitleGroupComponent,
1488
+ BaoHeaderInfoSubtitle,
1489
+ BaoHeaderInfoSurtitle,
1490
+ BaoHeaderInfoTitle
1491
+ ];
1492
+ class BaoHeaderInfoModule {
1493
+ }
1494
+ BaoHeaderInfoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1495
+ BaoHeaderInfoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoModule, declarations: [BaoHeaderInfoComponent,
1496
+ BaoHeaderInfoContent,
1497
+ BaoHeaderInfoTitleGroupComponent,
1498
+ BaoHeaderInfoSubtitle,
1499
+ BaoHeaderInfoSurtitle,
1500
+ BaoHeaderInfoTitle], imports: [CommonModule], exports: [BaoHeaderInfoComponent,
1501
+ BaoHeaderInfoContent,
1502
+ BaoHeaderInfoTitleGroupComponent,
1503
+ BaoHeaderInfoSubtitle,
1504
+ BaoHeaderInfoSurtitle,
1505
+ BaoHeaderInfoTitle] });
1506
+ BaoHeaderInfoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoModule, imports: [[CommonModule]] });
1507
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoHeaderInfoModule, decorators: [{
1508
+ type: NgModule,
1509
+ args: [{
1510
+ imports: [CommonModule],
1511
+ declarations: DIRECTIVES$1,
1512
+ exports: DIRECTIVES$1
1513
+ }]
1514
+ }] });
1515
+
1516
+ /*
1517
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1518
+ * Licensed under the MIT license.
1519
+ * See LICENSE file in the project root for full license information.
1520
+ */
1521
+
1522
+ /*
1523
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1524
+ * Licensed under the MIT license.
1525
+ * See LICENSE file in the project root for full license information.
1526
+ */
1527
+
1528
+ /*
1529
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1530
+ * Licensed under the MIT license.
1531
+ * See LICENSE file in the project root for full license information.
1532
+ */
1533
+ class BaoListItem {
1534
+ }
1535
+ BaoListItem.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItem, deps: [], target: i0.ɵɵFactoryTarget.Component });
1536
+ BaoListItem.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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: 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:#adb5bd;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 });
1537
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItem, decorators: [{
1538
+ type: Component,
1539
+ args: [{ selector: 'bao-list-item, [bao-list-item]', encapsulation: ViewEncapsulation.None, host: {
1540
+ class: 'bao-list-item',
1541
+ role: 'listitem'
1542
+ }, 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: 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:#adb5bd;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"] }]
1543
+ }] });
1544
+ class BaoList {
1545
+ }
1546
+ BaoList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1547
+ BaoList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoList, selector: "bao-list, [bao-list]", host: { attributes: { "role": "list" }, classAttribute: "bao-list" }, ngImport: i0 });
1548
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoList, decorators: [{
1549
+ type: Directive,
1550
+ args: [{
1551
+ selector: 'bao-list, [bao-list]',
1552
+ host: {
1553
+ class: 'bao-list',
1554
+ role: 'list'
1555
+ }
1556
+ }]
1557
+ }] });
1558
+ class BaoNavList {
1559
+ }
1560
+ BaoNavList.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoNavList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1561
+ BaoNavList.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoNavList, selector: "bao-nav-list, [bao-nav-list]", host: { attributes: { "role": "navigation" }, classAttribute: "bao-list" }, ngImport: i0 });
1562
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoNavList, decorators: [{
1563
+ type: Directive,
1564
+ args: [{
1565
+ selector: 'bao-nav-list, [bao-nav-list]',
1566
+ host: {
1567
+ class: 'bao-list',
1568
+ role: 'navigation'
1569
+ }
1570
+ }]
1571
+ }] });
1572
+ class BaoListItemDescription {
1573
+ }
1574
+ BaoListItemDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItemDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1575
+ BaoListItemDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoListItemDescription, selector: "bao-list-item-description, [bao-list-item-description]", host: { classAttribute: "bao-list-item-description" }, ngImport: i0 });
1576
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItemDescription, decorators: [{
1577
+ type: Directive,
1578
+ args: [{
1579
+ selector: 'bao-list-item-description, [bao-list-item-description]',
1580
+ host: {
1581
+ class: 'bao-list-item-description'
1582
+ }
1583
+ }]
1584
+ }] });
1585
+ class BaoListItemTitle {
1586
+ }
1587
+ BaoListItemTitle.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItemTitle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
1588
+ BaoListItemTitle.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoListItemTitle, selector: "bao-list-item-title, [bao-list-item-title]", host: { classAttribute: "bao-list-item-title" }, ngImport: i0 });
1589
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListItemTitle, decorators: [{
1590
+ type: Directive,
1591
+ args: [{
1592
+ selector: 'bao-list-item-title, [bao-list-item-title]',
1593
+ host: {
1594
+ class: 'bao-list-item-title'
1595
+ }
1596
+ }]
1597
+ }] });
1598
+
1599
+ /*
1600
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1601
+ * Licensed under the MIT license.
1602
+ * See LICENSE file in the project root for full license information.
1603
+ */
1604
+ const DIRECTIVES = [
1605
+ BaoListItem,
1606
+ BaoList,
1607
+ BaoNavList,
1608
+ BaoListItemDescription,
1609
+ BaoListItemTitle
1610
+ ];
1611
+ class BaoListModule {
1612
+ }
1613
+ BaoListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
1614
+ BaoListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListModule, declarations: [BaoListItem,
1615
+ BaoList,
1616
+ BaoNavList,
1617
+ BaoListItemDescription,
1618
+ BaoListItemTitle], imports: [CommonModule], exports: [BaoListItem,
1619
+ BaoList,
1620
+ BaoNavList,
1621
+ BaoListItemDescription,
1622
+ BaoListItemTitle] });
1623
+ BaoListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListModule, imports: [[CommonModule]] });
1624
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoListModule, decorators: [{
1625
+ type: NgModule,
1626
+ args: [{
1627
+ imports: [CommonModule],
1628
+ declarations: DIRECTIVES,
1629
+ exports: DIRECTIVES
1630
+ }]
1631
+ }] });
1632
+
1633
+ /*
1634
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1635
+ * Licensed under the MIT license.
1636
+ * See LICENSE file in the project root for full license information.
1637
+ */
1638
+
1639
+ /*
1640
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
1641
+ * Licensed under the MIT license.
1642
+ * See LICENSE file in the project root for full license information.
1643
+ */
1644
+ /**
1645
+ * We have to inject the radio button group and all its children to each child.
1646
+ */
1647
+ const BAO_RADIO_GROUP = new InjectionToken('BaoRadioButtonGroup');
1648
+ /**
1649
+ * Unique ID for each radio group counter
1650
+ */
1651
+ let radioGroupNextUniqueId = 0;
1652
+ class BaoRadioButtonGroupComponent {
1653
+ constructor(cdr) {
1654
+ this.cdr = cdr;
1655
+ this._value = null;
1656
+ this._name = null;
1657
+ this._selected = null;
1658
+ this._isInitialized = false;
1659
+ this._disabled = false;
1660
+ this._required = false;
1661
+ this._uniqueId = `bao-checkbox-group-${++radioGroupNextUniqueId}`;
1662
+ /**
1663
+ * The checkbox group ID. It is set dynamically with an unique ID by default
1664
+ */
1665
+ this.id = this._uniqueId;
1666
+ /**
1667
+ * Emit the value of the selected radio button
1668
+ */
1669
+ this.change = new EventEmitter();
1670
+ /**
1671
+ * The aria-describedby for web accessibilty
1672
+ */
1673
+ this.ariaDescribedby = null;
1674
+ this.onModelChange = () => undefined;
1675
+ this.onTouch = () => undefined;
1676
+ }
1677
+ /**
1678
+ * Define the name property of all radio buttons. Default : null
1679
+ */
1680
+ get name() {
1681
+ return this._name;
1682
+ }
1683
+ set name(value) {
1684
+ this._name = value;
1685
+ this.updateRadioButtonNames();
1686
+ }
1687
+ /**
1688
+ * Define the value of the selected radio button. Default : null
1689
+ */
1690
+ get value() {
1691
+ return this._value;
1692
+ }
1693
+ set value(newValue) {
1694
+ if (this._value !== newValue) {
1695
+ this._value = newValue;
1696
+ this.updateSelectedRadioFromValue();
1697
+ this.checkSelectedRadioButton();
1698
+ }
1699
+ }
1700
+ /**
1701
+ * Define which radio button is selected. Default : null
1702
+ */
1703
+ get selected() {
1704
+ return this._selected;
1705
+ }
1706
+ set selected(selected) {
1707
+ this._selected = selected;
1708
+ this.value = selected ? selected.value : null;
1709
+ this.checkSelectedRadioButton();
1710
+ }
1711
+ /**
1712
+ * Whether the radio button groupd is disabled. Default : false
1713
+ */
1714
+ get disabled() {
1715
+ return this._disabled;
1716
+ }
1717
+ set disabled(value) {
1718
+ this._disabled = coerceBooleanProperty(value);
1719
+ this.markRadiosForCheck();
1720
+ }
1721
+ /**
1722
+ * Whether the radio button groupd is required. Default : false
1723
+ */
1724
+ get required() {
1725
+ return this._required;
1726
+ }
1727
+ set required(value) {
1728
+ this._required = coerceBooleanProperty(value);
1729
+ this.markRadiosForCheck();
1730
+ }
1731
+ ngAfterContentInit() {
1732
+ this._isInitialized = true;
1733
+ }
1734
+ ngAfterViewInit() {
1735
+ this.setAriaDescribedByToDescription();
1736
+ this.cdr.detectChanges();
1737
+ }
1738
+ /**
1739
+ * Implement ControlValueAccessor
1740
+ */
1741
+ writeValue(value) {
1742
+ this.value = value;
1743
+ this.cdr.markForCheck();
1744
+ }
1745
+ /**
1746
+ * Implement ControlValueAccessor
1747
+ */
1748
+ registerOnChange(fn) {
1749
+ this.onModelChange = fn;
1750
+ }
1751
+ /**
1752
+ * Implement ControlValueAccessor
1753
+ */
1754
+ registerOnTouched(fn) {
1755
+ this.onTouch = fn;
1756
+ }
1757
+ /**
1758
+ * Implement ControlValueAccessor
1759
+ */
1760
+ setDisabledState(isDisabled) {
1761
+ this.disabled = isDisabled;
1762
+ this.cdr.markForCheck();
1763
+ }
1764
+ /**
1765
+ * onTouch() called from the button children
1766
+ */
1767
+ onGroupTouch() {
1768
+ if (this.onTouch) {
1769
+ this.onTouch();
1770
+ }
1771
+ }
1772
+ /**
1773
+ * Update all radio button name
1774
+ */
1775
+ updateRadioButtonNames() {
1776
+ if (this._radios) {
1777
+ this._radios.forEach((radio) => {
1778
+ radio.name = this.name;
1779
+ radio.markForCheck();
1780
+ });
1781
+ }
1782
+ }
1783
+ /**
1784
+ * Define which radio button is selected.
1785
+ */
1786
+ updateSelectedRadioFromValue() {
1787
+ const isAlreadySelected = this._selected !== null && this._selected.value === this._value;
1788
+ if (this._radios && !isAlreadySelected) {
1789
+ this._selected = null;
1790
+ this._radios.forEach((radio) => {
1791
+ radio.checked = this.value === radio.value;
1792
+ if (radio.checked) {
1793
+ this._selected = radio;
1794
+ }
1795
+ });
1796
+ }
1797
+ }
1798
+ /**
1799
+ * Update checked property on selected radio button
1800
+ */
1801
+ checkSelectedRadioButton() {
1802
+ if (this._selected && !this._selected.checked) {
1803
+ this._selected.checked = true;
1804
+ }
1805
+ }
1806
+ /**
1807
+ * Emit the value of the new selected radio button
1808
+ */
1809
+ emitChangeEvent() {
1810
+ if (this._isInitialized) {
1811
+ this.change.emit(this.value);
1812
+ }
1813
+ }
1814
+ /**
1815
+ * Call markForCheck function on all radio buttons since one of the parent inputs could't have change meanwhile. Prevent change detection error.
1816
+ */
1817
+ markRadiosForCheck() {
1818
+ if (this._radios) {
1819
+ this._radios.forEach((radio) => radio.markForCheck());
1820
+ }
1821
+ }
1822
+ onContentChange() {
1823
+ this.setAriaDescribedByToDescription();
1824
+ }
1825
+ /**
1826
+ * Set the aria-describedby property to bao-guiding-text if available
1827
+ */
1828
+ setAriaDescribedByToDescription() {
1829
+ const children = Array.from(this.staticContainer.nativeElement.children);
1830
+ if (children.length === 0) {
1831
+ this.showAriaDescribedBy(false);
1832
+ return;
1833
+ }
1834
+ this.showAriaDescribedBy(true);
1835
+ }
1836
+ showAriaDescribedBy(value) {
1837
+ this.ariaDescribedby = value ? `${this.id}-ariadescribedby` : null;
1838
+ }
1839
+ }
1840
+ BaoRadioButtonGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioButtonGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
1841
+ BaoRadioButtonGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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: [
1842
+ {
1843
+ provide: NG_VALUE_ACCESSOR,
1844
+ useExisting: forwardRef(() => BaoRadioButtonGroupComponent),
1845
+ multi: true
1846
+ },
1847
+ { provide: BAO_RADIO_GROUP, useExisting: BaoRadioButtonGroupComponent }
1848
+ ], queries: [{ propertyName: "_radios", 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"], directives: [{ type: i1$2.CdkObserveContent, selector: "[cdkObserveContent]", inputs: ["cdkObserveContentDisabled", "debounce"], outputs: ["cdkObserveContent"], exportAs: ["cdkObserveContent"] }], encapsulation: i0.ViewEncapsulation.None });
1849
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioButtonGroupComponent, decorators: [{
1850
+ type: Component,
1851
+ args: [{ selector: 'bao-radio-button-group, [bao-radio-button-group], [baoRadioButtonGroup]', exportAs: 'baoRadioGroup', encapsulation: ViewEncapsulation.None, providers: [
1852
+ {
1853
+ provide: NG_VALUE_ACCESSOR,
1854
+ useExisting: forwardRef(() => BaoRadioButtonGroupComponent),
1855
+ multi: true
1856
+ },
1857
+ { provide: BAO_RADIO_GROUP, useExisting: BaoRadioButtonGroupComponent }
1858
+ ], 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"] }]
1859
+ }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }]; }, propDecorators: { _radios: [{
1860
+ type: ContentChildren,
1861
+ args: [forwardRef(() => BaoRadioButtonComponent), {
1862
+ descendants: true
1863
+ }]
1864
+ }], id: [{
1865
+ type: Input
1866
+ }], name: [{
1867
+ type: Input
1868
+ }], value: [{
1869
+ type: Input
1870
+ }], selected: [{
1871
+ type: Input
1872
+ }], disabled: [{
1873
+ type: Input
1874
+ }], required: [{
1875
+ type: Input
1876
+ }], change: [{
1877
+ type: Output
1878
+ }], staticContainer: [{
1879
+ type: ViewChild,
1880
+ args: ['container', { static: false }]
1881
+ }] } });
1882
+
1883
+ /**
1884
+ * Unique ID for each radio button
1885
+ */
1886
+ let radioNextUniqueId = 0;
1887
+ class BaoRadioButtonComponent {
1888
+ constructor(radioGroup, elementRef, cdr, focusMonitor, radioDispatcher) {
1889
+ this.elementRef = elementRef;
1890
+ this.cdr = cdr;
1891
+ this.focusMonitor = focusMonitor;
1892
+ this.radioDispatcher = radioDispatcher;
1893
+ this._checked = false;
1894
+ this._disabled = false;
1895
+ this._required = false;
1896
+ this._value = null;
1897
+ this._uniqueId = `bao-radio-button-${++radioNextUniqueId}`;
1898
+ /**
1899
+ * The radio button ID. It is set dynamically with an unique ID by default
1900
+ */
1901
+ this.id = this._uniqueId;
1902
+ /**
1903
+ * The aria-label for web accessibility
1904
+ */
1905
+ this.ariaLabel = null;
1906
+ /**
1907
+ * Whether the radio button has a border and is considered as a card.
1908
+ */
1909
+ this.brandBorder = false;
1910
+ /**
1911
+ * Whether the radio button is inline.
1912
+ */
1913
+ this.inline = false;
1914
+ /**
1915
+ * The name property of the radio button
1916
+ */
1917
+ this.name = null;
1918
+ /**
1919
+ * The visible state of the label
1920
+ */
1921
+ this.hiddenLabel = false;
1922
+ /**
1923
+ * Emitted boolean on change
1924
+ */
1925
+ this.change = new EventEmitter();
1926
+ /**
1927
+ * The aria-describedby id for web accessibilty
1928
+ */
1929
+ this.ariaDescribedby = null;
1930
+ /**
1931
+ * The aria-labeledby id for web accessibilty
1932
+ */
1933
+ this.ariaLabelledby = null;
1934
+ /** Unregister function for radioDispatcher */
1935
+ this._removeUniqueSelectionListener = () => undefined;
1936
+ this.radioGroup = radioGroup;
1937
+ this._removeUniqueSelectionListener = radioDispatcher.listen((id, name) => {
1938
+ if (id !== this.id && name === this.name) {
1939
+ this.checked = false;
1940
+ }
1941
+ });
1942
+ }
1943
+ /**
1944
+ * Whether the radio button is checked. Default : false
1945
+ */
1946
+ get checked() {
1947
+ return this._checked;
1948
+ }
1949
+ set checked(value) {
1950
+ const newCheckedState = coerceBooleanProperty(value);
1951
+ if (this._checked !== newCheckedState) {
1952
+ this._checked = newCheckedState;
1953
+ if (newCheckedState &&
1954
+ this.radioGroup &&
1955
+ this.radioGroup.value !== this.value) {
1956
+ this.radioGroup.selected = this;
1957
+ }
1958
+ else if (!newCheckedState &&
1959
+ this.radioGroup &&
1960
+ this.radioGroup.value === this.value) {
1961
+ this.radioGroup.selected = null;
1962
+ }
1963
+ if (newCheckedState) {
1964
+ this.radioDispatcher.notify(this.id, this.name);
1965
+ }
1966
+ this.cdr.markForCheck();
1967
+ }
1968
+ }
1969
+ /**
1970
+ * Define the radio button value. Default : null
1971
+ */
1972
+ get value() {
1973
+ return this._value;
1974
+ }
1975
+ set value(value) {
1976
+ if (value !== this._value) {
1977
+ this._value = value;
1978
+ if (this.radioGroup) {
1979
+ if (!this.checked) {
1980
+ this.checked = this.radioGroup.value === value;
1981
+ }
1982
+ if (this.checked) {
1983
+ this.radioGroup.selected = this;
1984
+ }
1985
+ }
1986
+ }
1987
+ }
1988
+ /**
1989
+ * Whether the radio button is disabled. Default : false
1990
+ */
1991
+ get disabled() {
1992
+ return this._disabled || (this.radioGroup && this.radioGroup.disabled);
1993
+ }
1994
+ set disabled(value) {
1995
+ this.setDisabled(coerceBooleanProperty(value));
1996
+ }
1997
+ /**
1998
+ * Whether the radio button is required. Default : false
1999
+ */
2000
+ get required() {
2001
+ return this._required || (this.radioGroup && this.radioGroup.required);
2002
+ }
2003
+ set required(value) {
2004
+ this._required = coerceBooleanProperty(value);
2005
+ }
2006
+ get nativeElement() {
2007
+ return this.elementRef.nativeElement;
2008
+ }
2009
+ focus(options, origin) {
2010
+ if (origin) {
2011
+ this.focusMonitor.focusVia(this.inputElement, origin, options);
2012
+ }
2013
+ else {
2014
+ this.inputElement.nativeElement.focus(options);
2015
+ }
2016
+ }
2017
+ /**
2018
+ * Method called from the parent as one of the parent input has changed. Prevent change detection error.
2019
+ */
2020
+ markForCheck() {
2021
+ this.cdr.markForCheck();
2022
+ }
2023
+ ngOnInit() {
2024
+ // Set all unique ids for the html elements
2025
+ this.inputID = `${this.id}-input`;
2026
+ this.ariaLabelledby = `${this.id}-arialabelledby`;
2027
+ if (this.radioGroup) {
2028
+ this.checked = this.radioGroup.value === this._value;
2029
+ if (this.checked) {
2030
+ this.radioGroup.selected = this;
2031
+ }
2032
+ this.name = this.radioGroup.name;
2033
+ }
2034
+ }
2035
+ ngAfterViewInit() {
2036
+ this.focusMonitor
2037
+ .monitor(this.inputElement, true)
2038
+ .subscribe(focusOrigin => {
2039
+ if (!focusOrigin && this.radioGroup) {
2040
+ this.radioGroup.onGroupTouch();
2041
+ }
2042
+ });
2043
+ this.setAriaDescribedByToDescription();
2044
+ }
2045
+ ngOnDestroy() {
2046
+ this.focusMonitor.stopMonitoring(this.inputElement);
2047
+ this._removeUniqueSelectionListener();
2048
+ }
2049
+ /**
2050
+ * Emit the new value from the selected radio-button and the parent
2051
+ */
2052
+ onInputInteraction(event) {
2053
+ event.stopPropagation();
2054
+ if (!this.checked && !this.disabled) {
2055
+ const groupValueChanged = this.radioGroup && this.value !== this.radioGroup.value;
2056
+ this.checked = true;
2057
+ this.emitChangeEvent();
2058
+ if (this.radioGroup) {
2059
+ this.radioGroup.onModelChange(this.value);
2060
+ if (groupValueChanged) {
2061
+ this.radioGroup.emitChangeEvent();
2062
+ }
2063
+ }
2064
+ }
2065
+ }
2066
+ emitChangeEvent() {
2067
+ this.change.emit(this.value);
2068
+ }
2069
+ setDisabled(value) {
2070
+ if (this._disabled !== value) {
2071
+ this._disabled = value;
2072
+ this.cdr.markForCheck();
2073
+ }
2074
+ }
2075
+ /**
2076
+ * Set the id property to bao-radio-button-description as a description to the input
2077
+ */
2078
+ setAriaDescribedByToDescription() {
2079
+ const childNodes = Array.from(this.nativeElement.childNodes);
2080
+ const labelNode = childNodes.find(x => {
2081
+ return x.nodeName === 'LABEL';
2082
+ });
2083
+ if (labelNode) {
2084
+ const labelChildNodes = Array.from(labelNode.childNodes);
2085
+ const descriptionNode = labelChildNodes.find(x => {
2086
+ return x.nodeName === 'BAO-RADIO-BUTTON-DESCRIPTION';
2087
+ });
2088
+ if (descriptionNode) {
2089
+ this.ariaDescribedby = `${this.id}-ariadescribedby`;
2090
+ descriptionNode.setAttribute('id', this.ariaDescribedby);
2091
+ }
2092
+ else {
2093
+ this.ariaDescribedby = null;
2094
+ }
2095
+ this.cdr.detectChanges();
2096
+ }
2097
+ }
2098
+ }
2099
+ BaoRadioButtonComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", 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 });
2100
+ BaoRadioButtonComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", type: BaoRadioButtonComponent, selector: "bao-radio-button, [bao-radio-button]", inputs: { id: "id", ariaLabel: ["aria-label", "ariaLabel"], brandBorder: "brandBorder", inline: "inline", name: "name", checked: "checked", value: "value", disabled: "disabled", required: "required", hiddenLabel: "hiddenLabel" }, 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
+ {
2102
+ provide: NG_VALUE_ACCESSOR,
2103
+ useExisting: forwardRef(() => BaoRadioButtonComponent),
2104
+ multi: true
2105
+ }
2106
+ ], 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:#637381}.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:#637381}.bao-radio-button.bao-radio-button-hidden-label .bao-radio-button-label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);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: "13.1.1", ngImport: i0, type: BaoRadioButtonComponent, decorators: [{
2108
+ type: Component,
2109
+ args: [{ selector: 'bao-radio-button, [bao-radio-button]', providers: [
2110
+ {
2111
+ provide: NG_VALUE_ACCESSOR,
2112
+ useExisting: forwardRef(() => BaoRadioButtonComponent),
2113
+ multi: true
2114
+ }
2115
+ ], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
2116
+ class: 'bao-radio-button',
2117
+ '[class.bao-radio-button-inline]': 'inline',
2118
+ '[class.bao-radio-button-checked]': 'checked',
2119
+ '[class.bao-radio-button-disabled]': 'disabled',
2120
+ '[class.bao-radio-button-card]': 'brandBorder',
2121
+ '[class.bao-radio-button-hidden-label]': 'hiddenLabel'
2122
+ }, 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:#637381}.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:#637381}.bao-radio-button.bao-radio-button-hidden-label .bao-radio-button-label{clip:rect(1px,1px,1px,1px);-webkit-clip-path:inset(50%);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"] }]
2123
+ }], ctorParameters: function () { return [{ type: BaoRadioButtonGroupComponent, decorators: [{
2124
+ type: Optional
2125
+ }, {
2126
+ type: Inject,
2127
+ args: [BAO_RADIO_GROUP]
2128
+ }] }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1$3.FocusMonitor }, { type: i2.UniqueSelectionDispatcher }]; }, propDecorators: { id: [{
2129
+ type: Input
2130
+ }], ariaLabel: [{
2131
+ type: Input,
2132
+ args: ['aria-label']
2133
+ }], brandBorder: [{
2134
+ type: Input
2135
+ }], inline: [{
2136
+ type: Input
2137
+ }], name: [{
2138
+ type: Input
2139
+ }], checked: [{
2140
+ type: Input
2141
+ }], value: [{
2142
+ type: Input
2143
+ }], disabled: [{
2144
+ type: Input
2145
+ }], required: [{
2146
+ type: Input
2147
+ }], hiddenLabel: [{
2148
+ type: Input
2149
+ }], change: [{
2150
+ type: Output
2151
+ }], inputElement: [{
2152
+ type: ViewChild,
2153
+ args: ['input', { static: false }]
2154
+ }] } });
2155
+ class BaoRadioDescription {
2156
+ }
2157
+ BaoRadioDescription.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioDescription, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2158
+ BaoRadioDescription.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.1.1", type: BaoRadioDescription, selector: "bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]", host: { classAttribute: "bao-radio-button-description" }, ngImport: i0 });
2159
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioDescription, decorators: [{
2160
+ type: Directive,
2161
+ args: [{
2162
+ selector: 'bao-radio-button-description, [bao-radio-button-description], [baoRadioButtonDescription]',
2163
+ host: { class: 'bao-radio-button-description' }
2164
+ }]
2165
+ }] });
2166
+
2167
+ /*
2168
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2169
+ * Licensed under the MIT license.
2170
+ * See LICENSE file in the project root for full license information.
2171
+ */
2172
+ const RADIO_DIRECTIVES = [
2173
+ BaoRadioButtonComponent,
2174
+ BaoRadioDescription,
2175
+ BaoRadioButtonGroupComponent
2176
+ ];
2177
+ class BaoRadioModule {
2178
+ }
2179
+ BaoRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2180
+ BaoRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioModule, declarations: [BaoRadioButtonComponent,
2181
+ BaoRadioDescription,
2182
+ BaoRadioButtonGroupComponent], imports: [CommonModule,
2183
+ FormsModule,
2184
+ ReactiveFormsModule,
2185
+ BaoCommonComponentsModule,
2186
+ BaoButtonModule,
2187
+ ObserversModule], exports: [BaoRadioButtonComponent,
2188
+ BaoRadioDescription,
2189
+ BaoRadioButtonGroupComponent] });
2190
+ BaoRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioModule, imports: [[
2191
+ CommonModule,
2192
+ FormsModule,
2193
+ ReactiveFormsModule,
2194
+ BaoCommonComponentsModule,
2195
+ BaoButtonModule,
2196
+ ObserversModule
2197
+ ]] });
2198
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoRadioModule, decorators: [{
2199
+ type: NgModule,
2200
+ args: [{
2201
+ imports: [
2202
+ CommonModule,
2203
+ FormsModule,
2204
+ ReactiveFormsModule,
2205
+ BaoCommonComponentsModule,
2206
+ BaoButtonModule,
2207
+ ObserversModule
2208
+ ],
2209
+ declarations: RADIO_DIRECTIVES,
2210
+ exports: RADIO_DIRECTIVES
2211
+ }]
2212
+ }] });
2213
+
2214
+ /*
2215
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2216
+ * Licensed under the MIT license.
2217
+ * See LICENSE file in the project root for full license information.
2218
+ */
2219
+
2220
+ /*
2221
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2222
+ * Licensed under the MIT license.
2223
+ * See LICENSE file in the project root for full license information.
2224
+ */
2225
+ const SPAN = 'span';
2226
+ const SPAN_TEXT_PROPERTY = 'textContent';
2227
+ const SCREEN_READER_CLASS_NAME = 'sr-only';
2228
+ const BAO_ICON = 'bao-icon';
2229
+ const HAS_ICON = 'has-icon';
2230
+ class BaoTagComponent {
2231
+ constructor(renderer, elementRef) {
2232
+ this.renderer = renderer;
2233
+ this.elementRef = elementRef;
2234
+ /**
2235
+ * The color of the tag.
2236
+ */
2237
+ this.type = 'neutral';
2238
+ /**
2239
+ * The shade of the tags color.
2240
+ */
2241
+ this.variant = 'light';
2242
+ /**
2243
+ * The hidden text for screen readers.
2244
+ */
2245
+ this.hiddenText = 'Étiquette';
2246
+ }
2247
+ get nativeElement() {
2248
+ return this.elementRef.nativeElement;
2249
+ }
2250
+ ngAfterViewInit() {
2251
+ this.addHiddenText();
2252
+ this.addIconClass();
2253
+ }
2254
+ addHiddenText() {
2255
+ const screenReaderSpan = this.renderer.createElement(SPAN);
2256
+ this.renderer.setProperty(screenReaderSpan, SPAN_TEXT_PROPERTY, this.hiddenText);
2257
+ this.renderer.addClass(screenReaderSpan, SCREEN_READER_CLASS_NAME);
2258
+ const labelChild = Array.from(this.nativeElement.children).find(c => c.localName === SPAN);
2259
+ this.renderer.insertBefore(this.nativeElement, screenReaderSpan, labelChild);
2260
+ }
2261
+ addIconClass() {
2262
+ const children = Array.from(this.nativeElement.children);
2263
+ if (children.some(c => c.localName === BAO_ICON)) {
2264
+ this.renderer.addClass(this.nativeElement, HAS_ICON);
2265
+ }
2266
+ }
2267
+ }
2268
+ BaoTagComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component });
2269
+ BaoTagComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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;flex-shrink:0;margin-right:.25rem}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
2270
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagComponent, decorators: [{
2271
+ type: Component,
2272
+ args: [{ selector: 'bao-tag, [bao-tag], [baoTag]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
2273
+ class: 'bao-tag',
2274
+ '[class.bao-tag-neutral-light]': 'type === "neutral" && variant === "light"',
2275
+ '[class.bao-tag-neutral-strong]': 'type === "neutral" && variant === "strong"',
2276
+ '[class.bao-tag-info-light]': 'type === "info" && variant === "light"',
2277
+ '[class.bao-tag-info-strong]': 'type === "info" && variant === "strong"',
2278
+ '[class.bao-tag-positive-light]': 'type === "positive" && variant === "light"',
2279
+ '[class.bao-tag-positive-strong]': 'type === "positive" && variant === "strong"',
2280
+ '[class.bao-tag-alert-light]': 'type === "alert" && variant === "light"',
2281
+ '[class.bao-tag-alert-strong]': 'type === "alert" && variant === "strong"',
2282
+ '[class.bao-tag-negative-light]': 'type === "negative" && variant === "light"',
2283
+ '[class.bao-tag-negative-strong]': 'type === "negative" && variant === "strong"'
2284
+ }, 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;flex-shrink:0;margin-right:.25rem}\n"] }]
2285
+ }], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }]; }, propDecorators: { type: [{
2286
+ type: Input
2287
+ }], variant: [{
2288
+ type: Input
2289
+ }], hiddenText: [{
2290
+ type: Input
2291
+ }] } });
2292
+
2293
+ /*
2294
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2295
+ * Licensed under the MIT license.
2296
+ * See LICENSE file in the project root for full license information.
2297
+ */
2298
+ const TAG_DIRECTIVES = [BaoTagComponent];
2299
+ class BaoTagModule {
2300
+ }
2301
+ BaoTagModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2302
+ BaoTagModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagModule, declarations: [BaoTagComponent], imports: [CommonModule], exports: [BaoTagComponent] });
2303
+ BaoTagModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagModule, imports: [[CommonModule]] });
2304
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoTagModule, decorators: [{
2305
+ type: NgModule,
2306
+ args: [{
2307
+ imports: [CommonModule],
2308
+ declarations: [TAG_DIRECTIVES],
2309
+ exports: [TAG_DIRECTIVES]
2310
+ }]
2311
+ }] });
2312
+
2313
+ /*
2314
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2315
+ * Licensed under the MIT license.
2316
+ * See LICENSE file in the project root for full license information.
2317
+ */
2318
+
2319
+ /*
2320
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2321
+ * Licensed under the MIT license.
2322
+ * See LICENSE file in the project root for full license information.
2323
+ */
2324
+ class BaoModule {
2325
+ }
2326
+ BaoModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2327
+ BaoModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoModule, imports: [BaoIconModule,
2328
+ BaoButtonModule,
2329
+ BaoAlertModule,
2330
+ BaoCardModule,
2331
+ BaoBreadcrumbModule], exports: [BaoIconModule,
2332
+ BaoButtonModule,
2333
+ BaoAlertModule,
2334
+ BaoBreadcrumbModule,
2335
+ BaoCardModule,
2336
+ BaoTagModule,
2337
+ BaoHeaderInfoModule,
2338
+ BaoListModule,
2339
+ BaoCommonComponentsModule,
2340
+ BaoCheckboxModule,
2341
+ BaoRadioModule
2342
+ // TODO: reactivate once component does not depend on global css BaoBadgeModule,
2343
+ // TODO: reactivate once component does not depend on global css BaoSnackBarModule,
2344
+ ] });
2345
+ BaoModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoModule, imports: [[
2346
+ BaoIconModule,
2347
+ BaoButtonModule,
2348
+ BaoAlertModule,
2349
+ BaoCardModule,
2350
+ BaoBreadcrumbModule
2351
+ ], BaoIconModule,
2352
+ BaoButtonModule,
2353
+ BaoAlertModule,
2354
+ BaoBreadcrumbModule,
2355
+ BaoCardModule,
2356
+ BaoTagModule,
2357
+ BaoHeaderInfoModule,
2358
+ BaoListModule,
2359
+ BaoCommonComponentsModule,
2360
+ BaoCheckboxModule,
2361
+ BaoRadioModule
2362
+ // TODO: reactivate once component does not depend on global css BaoBadgeModule,
2363
+ // TODO: reactivate once component does not depend on global css BaoSnackBarModule,
2364
+ ] });
2365
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoModule, decorators: [{
2366
+ type: NgModule,
2367
+ args: [{
2368
+ imports: [
2369
+ BaoIconModule,
2370
+ BaoButtonModule,
2371
+ BaoAlertModule,
2372
+ BaoCardModule,
2373
+ BaoBreadcrumbModule
2374
+ ],
2375
+ exports: [
2376
+ BaoIconModule,
2377
+ BaoButtonModule,
2378
+ BaoAlertModule,
2379
+ BaoBreadcrumbModule,
2380
+ BaoCardModule,
2381
+ BaoTagModule,
2382
+ BaoHeaderInfoModule,
2383
+ BaoListModule,
2384
+ BaoCommonComponentsModule,
2385
+ BaoCheckboxModule,
2386
+ BaoRadioModule
2387
+ // TODO: reactivate once component does not depend on global css BaoBadgeModule,
2388
+ // TODO: reactivate once component does not depend on global css BaoSnackBarModule,
2389
+ ]
2390
+ }]
2391
+ }] });
2392
+
2393
+ /*
2394
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2395
+ * Licensed under the MIT license.
2396
+ * See LICENSE file in the project root for full license information.
2397
+ */
2398
+ class BaoBadgeComponent {
2399
+ constructor() {
2400
+ this.type = '';
2401
+ }
2402
+ }
2403
+ BaoBadgeComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
2404
+ BaoBadgeComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.1.1", 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"] });
2405
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeComponent, decorators: [{
2406
+ type: Component,
2407
+ args: [{ selector: 'bao-badge', host: {
2408
+ class: '',
2409
+ '[class.positive]': 'type === "success"',
2410
+ '[class.negative]': 'type === "danger"',
2411
+ '[class.warning]': 'type === "warning"',
2412
+ '[class.informative]': 'type === "info"'
2413
+ }, 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"] }]
2414
+ }], propDecorators: { type: [{
2415
+ type: Input
2416
+ }] } });
2417
+
2418
+ /*
2419
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2420
+ * Licensed under the MIT license.
2421
+ * See LICENSE file in the project root for full license information.
2422
+ */
2423
+ const BADGE_DIRECTIVES = [BaoBadgeComponent];
2424
+ class BaoBadgeModule {
2425
+ }
2426
+ BaoBadgeModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
2427
+ BaoBadgeModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeModule, declarations: [BaoBadgeComponent], imports: [CommonModule], exports: [BaoBadgeComponent] });
2428
+ BaoBadgeModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeModule, imports: [[CommonModule]] });
2429
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.1.1", ngImport: i0, type: BaoBadgeModule, decorators: [{
2430
+ type: NgModule,
2431
+ args: [{
2432
+ imports: [CommonModule],
2433
+ declarations: [BADGE_DIRECTIVES],
2434
+ exports: [BADGE_DIRECTIVES]
2435
+ }]
2436
+ }] });
2437
+
2438
+ /*
2439
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2440
+ * Licensed under the MIT license.
2441
+ * See LICENSE file in the project root for full license information.
2442
+ */
2443
+
2444
+ /*
2445
+ * Copyright (c) 2022 Ville de Montreal. All rights reserved.
2446
+ * Licensed under the MIT license.
2447
+ * See LICENSE file in the project root for full license information.
2448
+ */
2449
+
2450
+ /**
2451
+ * Generated bundle index. Do not edit.
2452
+ */
2453
+
2454
+ export { BAO_RADIO_GROUP, BaoAlertActions, BaoAlertComponent, BaoAlertContent, BaoAlertLink, BaoAlertModule, BaoAlertTitle, BaoBadgeComponent, BaoBadgeModule, BaoBreadcrumbComponent, BaoBreadcrumbModule, BaoButtonComponent, BaoButtonModule, BaoCardComponent, BaoCardContent, BaoCardHeader, BaoCardModule, BaoCardTextInterface, BaoCardTitle, BaoCheckBoxDescription, BaoCheckboxComponent, BaoCheckboxGroupComponent, BaoCheckboxModule, BaoCommonComponentsModule, BaoErrorTextComponent, BaoGuidingTextComponent, BaoHeaderInfoComponent, BaoHeaderInfoContent, BaoHeaderInfoModule, BaoHeaderInfoSubtitle, BaoHeaderInfoSurtitle, BaoHeaderInfoTitle, BaoHeaderInfoTitleGroupComponent, BaoIconComponent, BaoIconModule, BaoLegendTextComponent, BaoList, BaoListItem, BaoListItemDescription, BaoListItemTitle, BaoListModule, BaoModule, BaoNavList, BaoRadioButtonComponent, BaoRadioButtonGroupComponent, BaoRadioDescription, BaoRadioModule, BaoTagComponent, BaoTagModule };
2455
+ //# sourceMappingURL=villedemontreal-angular-ui.mjs.map