@bravobit/bb-foundation 0.14.3 → 0.15.2

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 (413) hide show
  1. package/README.md +47 -47
  2. package/auth/bravobit-bb-foundation-auth.d.ts +5 -5
  3. package/auth/lib/auth.interceptor.d.ts +21 -21
  4. package/auth/lib/auth.module.d.ts +15 -15
  5. package/auth/lib/auth.service.d.ts +59 -59
  6. package/auth/lib/auth.session.d.ts +34 -34
  7. package/auth/lib/directives/authenticated.directive.d.ts +14 -14
  8. package/auth/lib/directives/permission.directive.d.ts +24 -24
  9. package/auth/lib/directives/role.directive.d.ts +16 -16
  10. package/auth/lib/guards/anonymous.guard.d.ts +11 -11
  11. package/auth/lib/guards/authenticated.guard.d.ts +11 -11
  12. package/auth/lib/helpers/jwt.helper.d.ts +8 -8
  13. package/auth/lib/helpers/mapper.helper.d.ts +23 -23
  14. package/auth/lib/interfaces/config.interface.d.ts +12 -12
  15. package/auth/lib/interfaces/mapper.interface.d.ts +19 -19
  16. package/auth/lib/interfaces/provider.interface.d.ts +16 -16
  17. package/auth/lib/interfaces/token.interface.d.ts +11 -11
  18. package/auth/lib/permissions.service.d.ts +14 -14
  19. package/auth/lib/providers/email.provider.d.ts +15 -15
  20. package/auth/lib/providers/verify.provider.d.ts +13 -13
  21. package/auth/lib/tokens/use-authorization.token.d.ts +2 -2
  22. package/auth/public_api.d.ts +18 -18
  23. package/bravobit-bb-foundation.d.ts +5 -5
  24. package/bundles/bravobit-bb-foundation-auth.umd.js +1400 -1402
  25. package/bundles/bravobit-bb-foundation-auth.umd.js.map +1 -1
  26. package/bundles/bravobit-bb-foundation-collections.umd.js +868 -0
  27. package/bundles/bravobit-bb-foundation-collections.umd.js.map +1 -0
  28. package/bundles/bravobit-bb-foundation-dashboard.umd.js +817 -819
  29. package/bundles/bravobit-bb-foundation-dashboard.umd.js.map +1 -1
  30. package/bundles/bravobit-bb-foundation-dialog.umd.js +649 -651
  31. package/bundles/bravobit-bb-foundation-dialog.umd.js.map +1 -1
  32. package/bundles/bravobit-bb-foundation-elements.umd.js +2651 -2653
  33. package/bundles/bravobit-bb-foundation-elements.umd.js.map +1 -1
  34. package/bundles/bravobit-bb-foundation-http.umd.js +488 -490
  35. package/bundles/bravobit-bb-foundation-http.umd.js.map +1 -1
  36. package/bundles/bravobit-bb-foundation-localize.umd.js +1208 -1210
  37. package/bundles/bravobit-bb-foundation-localize.umd.js.map +1 -1
  38. package/bundles/bravobit-bb-foundation-notifications.umd.js +743 -745
  39. package/bundles/bravobit-bb-foundation-notifications.umd.js.map +1 -1
  40. package/bundles/bravobit-bb-foundation-recaptcha.umd.js +640 -642
  41. package/bundles/bravobit-bb-foundation-recaptcha.umd.js.map +1 -1
  42. package/bundles/bravobit-bb-foundation-rxjs.umd.js +13 -13
  43. package/bundles/bravobit-bb-foundation-rxjs.umd.js.map +1 -1
  44. package/bundles/bravobit-bb-foundation-storage.umd.js +756 -758
  45. package/bundles/bravobit-bb-foundation-storage.umd.js.map +1 -1
  46. package/bundles/bravobit-bb-foundation-table.umd.js +993 -995
  47. package/bundles/bravobit-bb-foundation-table.umd.js.map +1 -1
  48. package/bundles/bravobit-bb-foundation.umd.js +1332 -1334
  49. package/bundles/bravobit-bb-foundation.umd.js.map +1 -1
  50. package/collections/bravobit-bb-foundation-collections.d.ts +5 -0
  51. package/collections/lib/collection.d.ts +43 -0
  52. package/collections/lib/collections.module.d.ts +10 -0
  53. package/collections/lib/components/collections-pager/collections-pager.component.d.ts +34 -0
  54. package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +12 -0
  55. package/collections/lib/components/collections.directive.d.ts +17 -0
  56. package/collections/lib/interfaces/collection.interface.d.ts +26 -0
  57. package/collections/lib/providers/api-collection.provider.d.ts +15 -0
  58. package/collections/lib/providers/collection.provider.d.ts +6 -0
  59. package/collections/lib/providers/local-collection.provider.d.ts +8 -0
  60. package/collections/package.json +10 -0
  61. package/collections/public_api.d.ts +9 -0
  62. package/dashboard/bravobit-bb-foundation-dashboard.d.ts +5 -5
  63. package/dashboard/lib/dashboard/dashboard.component.d.ts +19 -19
  64. package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +11 -11
  65. package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +9 -9
  66. package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +11 -11
  67. package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +21 -21
  68. package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +27 -27
  69. package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +16 -16
  70. package/dashboard/lib/dashboard.module.d.ts +16 -16
  71. package/dashboard/public_api.d.ts +8 -8
  72. package/dialog/bravobit-bb-foundation-dialog.d.ts +5 -5
  73. package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +5 -5
  74. package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +16 -16
  75. package/dialog/lib/dialog-container/dialog-container.component.d.ts +24 -24
  76. package/dialog/lib/dialog-header/dialog-header.component.d.ts +9 -9
  77. package/dialog/lib/dialog-link/dialog-link.component.d.ts +5 -5
  78. package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +12 -12
  79. package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +22 -22
  80. package/dialog/lib/dialog.injector.d.ts +8 -8
  81. package/dialog/lib/dialog.insertion.d.ts +8 -8
  82. package/dialog/lib/dialog.interfaces.d.ts +3 -3
  83. package/dialog/lib/dialog.module.d.ts +19 -19
  84. package/dialog/lib/dialog.ref.d.ts +8 -8
  85. package/dialog/lib/dialog.service.d.ts +19 -19
  86. package/dialog/public_api.d.ts +9 -9
  87. package/elements/bravobit-bb-foundation-elements.d.ts +5 -5
  88. package/elements/lib/avatar/avatar.component.d.ts +25 -25
  89. package/elements/lib/button/button.component.d.ts +23 -23
  90. package/elements/lib/checkbox/checkbox.component.d.ts +27 -27
  91. package/elements/lib/date-picker/date-picker.component.d.ts +69 -69
  92. package/elements/lib/directives/addon.directive.d.ts +9 -9
  93. package/elements/lib/directives/autosize.directive.d.ts +18 -18
  94. package/elements/lib/directives/focus-trap.directive.d.ts +17 -17
  95. package/elements/lib/directives/focus.directive.d.ts +14 -14
  96. package/elements/lib/directives/form-submit.directive.d.ts +17 -17
  97. package/elements/lib/directives/input.directive.d.ts +38 -38
  98. package/elements/lib/directives/template.directive.d.ts +10 -10
  99. package/elements/lib/dropdown/dropdown.component.d.ts +21 -21
  100. package/elements/lib/elements.interfaces.d.ts +25 -25
  101. package/elements/lib/elements.module.d.ts +116 -116
  102. package/elements/lib/file-picker/file-picker.component.d.ts +49 -49
  103. package/elements/lib/form-control/form-control.component.d.ts +21 -21
  104. package/elements/lib/form-error/form-error.component.d.ts +29 -29
  105. package/elements/lib/form-group/form-group.component.d.ts +10 -10
  106. package/elements/lib/icon/icon.component.d.ts +22 -22
  107. package/elements/lib/image-picker/image-picker.component.d.ts +38 -38
  108. package/elements/lib/pipes/file-image.pipe.d.ts +13 -13
  109. package/elements/lib/pipes/file-size.pipe.d.ts +8 -8
  110. package/elements/lib/pipes/relative-time.pipe.d.ts +19 -19
  111. package/elements/lib/spinner/spinner.component.d.ts +12 -12
  112. package/elements/lib/tag/tag.component.d.ts +7 -7
  113. package/elements/public_api.d.ts +25 -25
  114. package/esm2015/auth/bravobit-bb-foundation-auth.js +4 -4
  115. package/esm2015/auth/lib/auth.interceptor.js +95 -95
  116. package/esm2015/auth/lib/auth.module.js +54 -54
  117. package/esm2015/auth/lib/auth.service.js +299 -299
  118. package/esm2015/auth/lib/auth.session.js +136 -136
  119. package/esm2015/auth/lib/directives/authenticated.directive.js +32 -32
  120. package/esm2015/auth/lib/directives/permission.directive.js +81 -81
  121. package/esm2015/auth/lib/directives/role.directive.js +38 -38
  122. package/esm2015/auth/lib/guards/anonymous.guard.js +35 -35
  123. package/esm2015/auth/lib/guards/authenticated.guard.js +36 -36
  124. package/esm2015/auth/lib/helpers/jwt.helper.js +69 -69
  125. package/esm2015/auth/lib/helpers/mapper.helper.js +35 -35
  126. package/esm2015/auth/lib/interfaces/config.interface.js +3 -3
  127. package/esm2015/auth/lib/interfaces/mapper.interface.js +2 -2
  128. package/esm2015/auth/lib/interfaces/provider.interface.js +2 -2
  129. package/esm2015/auth/lib/interfaces/token.interface.js +2 -2
  130. package/esm2015/auth/lib/permissions.service.js +58 -58
  131. package/esm2015/auth/lib/providers/email.provider.js +26 -26
  132. package/esm2015/auth/lib/providers/verify.provider.js +20 -20
  133. package/esm2015/auth/lib/tokens/use-authorization.token.js +3 -3
  134. package/esm2015/auth/public_api.js +19 -19
  135. package/esm2015/bravobit-bb-foundation.js +4 -4
  136. package/esm2015/collections/bravobit-bb-foundation-collections.js +5 -0
  137. package/esm2015/collections/lib/collection.js +104 -0
  138. package/esm2015/collections/lib/collections.module.js +54 -0
  139. package/esm2015/collections/lib/components/collections-pager/collections-pager.component.js +136 -0
  140. package/esm2015/collections/lib/components/collections-viewer/collections-viewer.component.js +39 -0
  141. package/esm2015/collections/lib/components/collections.directive.js +43 -0
  142. package/esm2015/collections/lib/interfaces/collection.interface.js +2 -0
  143. package/esm2015/collections/lib/providers/api-collection.provider.js +69 -0
  144. package/esm2015/collections/lib/providers/collection.provider.js +14 -0
  145. package/esm2015/collections/lib/providers/local-collection.provider.js +16 -0
  146. package/esm2015/collections/public_api.js +10 -0
  147. package/esm2015/dashboard/bravobit-bb-foundation-dashboard.js +4 -4
  148. package/esm2015/dashboard/lib/dashboard/dashboard.component.js +64 -64
  149. package/esm2015/dashboard/lib/dashboard-header/dashboard-header.component.js +41 -41
  150. package/esm2015/dashboard/lib/dashboard-menu/dashboard-menu.component.js +39 -39
  151. package/esm2015/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.js +38 -38
  152. package/esm2015/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.js +83 -83
  153. package/esm2015/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.js +110 -110
  154. package/esm2015/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.js +71 -71
  155. package/esm2015/dashboard/lib/dashboard.module.js +47 -47
  156. package/esm2015/dashboard/public_api.js +9 -9
  157. package/esm2015/dialog/bravobit-bb-foundation-dialog.js +4 -4
  158. package/esm2015/dialog/lib/dialog-actions/dialog-actions.component.js +20 -20
  159. package/esm2015/dialog/lib/dialog-confirm/dialog-confirm.component.js +45 -45
  160. package/esm2015/dialog/lib/dialog-container/dialog-container.component.js +162 -162
  161. package/esm2015/dialog/lib/dialog-header/dialog-header.component.js +33 -33
  162. package/esm2015/dialog/lib/dialog-link/dialog-link.component.js +19 -19
  163. package/esm2015/dialog/lib/dialog-modal/dialog-modal.component.js +54 -54
  164. package/esm2015/dialog/lib/dialog-overlay/dialog-overlay.component.js +143 -143
  165. package/esm2015/dialog/lib/dialog.injector.js +18 -18
  166. package/esm2015/dialog/lib/dialog.insertion.js +16 -16
  167. package/esm2015/dialog/lib/dialog.interfaces.js +3 -3
  168. package/esm2015/dialog/lib/dialog.module.js +74 -74
  169. package/esm2015/dialog/lib/dialog.ref.js +22 -22
  170. package/esm2015/dialog/lib/dialog.service.js +77 -77
  171. package/esm2015/dialog/public_api.js +10 -10
  172. package/esm2015/elements/bravobit-bb-foundation-elements.js +4 -4
  173. package/esm2015/elements/lib/avatar/avatar.component.js +151 -151
  174. package/esm2015/elements/lib/button/button.component.js +79 -79
  175. package/esm2015/elements/lib/checkbox/checkbox.component.js +83 -83
  176. package/esm2015/elements/lib/date-picker/date-picker.component.js +322 -322
  177. package/esm2015/elements/lib/directives/addon.directive.js +29 -29
  178. package/esm2015/elements/lib/directives/autosize.directive.js +74 -74
  179. package/esm2015/elements/lib/directives/focus-trap.directive.js +77 -77
  180. package/esm2015/elements/lib/directives/focus.directive.js +39 -39
  181. package/esm2015/elements/lib/directives/form-submit.directive.js +53 -53
  182. package/esm2015/elements/lib/directives/input.directive.js +139 -139
  183. package/esm2015/elements/lib/directives/template.directive.js +28 -28
  184. package/esm2015/elements/lib/dropdown/dropdown.component.js +111 -111
  185. package/esm2015/elements/lib/elements.interfaces.js +4 -4
  186. package/esm2015/elements/lib/elements.module.js +177 -177
  187. package/esm2015/elements/lib/file-picker/file-picker.component.js +247 -247
  188. package/esm2015/elements/lib/form-control/form-control.component.js +58 -58
  189. package/esm2015/elements/lib/form-error/form-error.component.js +116 -116
  190. package/esm2015/elements/lib/form-group/form-group.component.js +27 -27
  191. package/esm2015/elements/lib/icon/icon.component.js +110 -110
  192. package/esm2015/elements/lib/image-picker/image-picker.component.js +119 -119
  193. package/esm2015/elements/lib/pipes/file-image.pipe.js +45 -45
  194. package/esm2015/elements/lib/pipes/file-size.pipe.js +28 -28
  195. package/esm2015/elements/lib/pipes/relative-time.pipe.js +96 -96
  196. package/esm2015/elements/lib/spinner/spinner.component.js +34 -34
  197. package/esm2015/elements/lib/tag/tag.component.js +26 -26
  198. package/esm2015/elements/public_api.js +26 -26
  199. package/esm2015/http/bravobit-bb-foundation-http.js +4 -4
  200. package/esm2015/http/lib/classes/http.config.js +31 -31
  201. package/esm2015/http/lib/classes/http.error.js +21 -21
  202. package/esm2015/http/lib/http.interfaces.js +2 -2
  203. package/esm2015/http/lib/http.module.js +43 -43
  204. package/esm2015/http/lib/interceptors/base-url.interceptor.js +52 -52
  205. package/esm2015/http/lib/interceptors/error.interceptor.js +33 -33
  206. package/esm2015/http/public_api.js +7 -7
  207. package/esm2015/lib/core/coercions/boolean-coercion.js +4 -4
  208. package/esm2015/lib/core/miscellaneous/regex.js +5 -5
  209. package/esm2015/lib/core/miscellaneous/validator.js +86 -86
  210. package/esm2015/lib/core/mixins/can-disable.js +16 -16
  211. package/esm2015/lib/core/mixins/can-hide-errors.js +16 -16
  212. package/esm2015/lib/core/mixins/can-load.js +16 -16
  213. package/esm2015/lib/core/mixins/constructor.js +2 -2
  214. package/esm2015/lib/core/mixins/has-error.js +16 -16
  215. package/esm2015/lib/core/mixins/is-focused.js +16 -16
  216. package/esm2015/lib/core/mixins/is-grouped.js +16 -16
  217. package/esm2015/lib/core/mixins/is-readonly.js +16 -16
  218. package/esm2015/lib/core/mixins/is-required.js +16 -16
  219. package/esm2015/lib/core/services/clipboard.service.js +72 -72
  220. package/esm2015/lib/core/services/exif.service.js +168 -168
  221. package/esm2015/lib/core/services/file-loader.service.js +90 -90
  222. package/esm2015/lib/core/services/image-converter.service.js +130 -130
  223. package/esm2015/lib/core/services/languages.service.js +74 -74
  224. package/esm2015/lib/core/services/network.service.js +56 -56
  225. package/esm2015/lib/core/services/patch.service.js +65 -65
  226. package/esm2015/lib/core/services/platform.service.js +42 -42
  227. package/esm2015/lib/core/tokens/accept-language.token.js +3 -3
  228. package/esm2015/lib/core/tokens/base-url.token.js +3 -3
  229. package/esm2015/lib/core/tokens/cookie.token.js +3 -3
  230. package/esm2015/lib/core/tokens/location.token.js +6 -6
  231. package/esm2015/lib/core/tokens/navigator.token.js +6 -6
  232. package/esm2015/lib/core/tokens/window.token.js +12 -12
  233. package/esm2015/localize/bravobit-bb-foundation-localize.js +4 -4
  234. package/esm2015/localize/lib/functions/date.function.js +18 -18
  235. package/esm2015/localize/lib/functions/lowercase.function.js +13 -13
  236. package/esm2015/localize/lib/functions/uppercase.function.js +13 -13
  237. package/esm2015/localize/lib/handlers/missing.handler.js +17 -17
  238. package/esm2015/localize/lib/interfaces/config.interfaces.js +10 -10
  239. package/esm2015/localize/lib/interfaces/dictionary.interfaces.js +8 -8
  240. package/esm2015/localize/lib/interfaces/functions.interfaces.js +8 -8
  241. package/esm2015/localize/lib/interfaces/handlers.interfaces.js +2 -2
  242. package/esm2015/localize/lib/interfaces/options.interfaces.js +6 -6
  243. package/esm2015/localize/lib/localizations/dutch.localization.js +53 -53
  244. package/esm2015/localize/lib/localizations/english.localization.js +53 -53
  245. package/esm2015/localize/lib/localize.dictionary.js +137 -137
  246. package/esm2015/localize/lib/localize.module.js +69 -69
  247. package/esm2015/localize/lib/localize.pipe.js +49 -49
  248. package/esm2015/localize/lib/localize.service.js +282 -282
  249. package/esm2015/localize/lib/views/localize-string/localize-string.component.js +99 -99
  250. package/esm2015/localize/lib/views/localize-template-or-string.directive.js +28 -28
  251. package/esm2015/localize/lib/views/localize-template.directive.js +21 -21
  252. package/esm2015/localize/public_api.js +18 -18
  253. package/esm2015/notifications/bravobit-bb-foundation-notifications.js +4 -4
  254. package/esm2015/notifications/lib/notifications-item/notifications-item.component.js +108 -108
  255. package/esm2015/notifications/lib/notifications-list/notifications-list.component.js +56 -56
  256. package/esm2015/notifications/lib/notifications.animations.js +28 -28
  257. package/esm2015/notifications/lib/notifications.injector.js +18 -18
  258. package/esm2015/notifications/lib/notifications.interfaces.js +20 -20
  259. package/esm2015/notifications/lib/notifications.module.js +31 -31
  260. package/esm2015/notifications/lib/notifications.service.js +145 -145
  261. package/esm2015/notifications/public_api.js +4 -4
  262. package/esm2015/public_api.js +30 -30
  263. package/esm2015/recaptcha/bravobit-bb-foundation-recaptcha.js +4 -4
  264. package/esm2015/recaptcha/lib/recaptcha/recaptcha.component.js +199 -199
  265. package/esm2015/recaptcha/lib/recaptcha-loader.service.js +93 -93
  266. package/esm2015/recaptcha/lib/recaptcha.interface.js +3 -3
  267. package/esm2015/recaptcha/lib/recaptcha.module.js +27 -27
  268. package/esm2015/recaptcha/public_api.js +5 -5
  269. package/esm2015/rxjs/bravobit-bb-foundation-rxjs.js +4 -4
  270. package/esm2015/rxjs/lib/operators/combine-latest-map.operator.js +7 -7
  271. package/esm2015/rxjs/lib/operators/filter-nil.operator.js +5 -5
  272. package/esm2015/rxjs/public_api.js +3 -3
  273. package/esm2015/storage/bravobit-bb-foundation-storage.js +4 -4
  274. package/esm2015/storage/lib/interfaces/attributes.interface.js +2 -2
  275. package/esm2015/storage/lib/interfaces/memory.interface.js +2 -2
  276. package/esm2015/storage/lib/interfaces/strategy.interface.js +2 -2
  277. package/esm2015/storage/lib/storage.service.js +111 -111
  278. package/esm2015/storage/lib/strategies/cookie-storage.strategy.js +143 -143
  279. package/esm2015/storage/lib/strategies/memory-storage.strategy.js +56 -56
  280. package/esm2015/storage/lib/strategies/polyfill-storage.strategy.js +102 -102
  281. package/esm2015/storage/public_api.js +8 -8
  282. package/esm2015/table/bravobit-bb-foundation-table.js +4 -4
  283. package/esm2015/table/lib/components/table/table.component.js +183 -183
  284. package/esm2015/table/lib/components/table-cell/table-cell.component.js +19 -19
  285. package/esm2015/table/lib/components/table-header-cell/table-header-cell.component.js +141 -141
  286. package/esm2015/table/lib/components/table-pager/table-pager.component.js +146 -146
  287. package/esm2015/table/lib/data/datasource.data.js +32 -32
  288. package/esm2015/table/lib/data/generic.data.js +73 -73
  289. package/esm2015/table/lib/interfaces/datasource.interface.js +2 -2
  290. package/esm2015/table/lib/interfaces/table.interfaces.js +2 -2
  291. package/esm2015/table/lib/table.module.js +39 -39
  292. package/esm2015/table/public_api.js +10 -10
  293. package/fesm2015/bravobit-bb-foundation-auth.js +915 -915
  294. package/fesm2015/bravobit-bb-foundation-auth.js.map +1 -1
  295. package/fesm2015/bravobit-bb-foundation-collections.js +463 -0
  296. package/fesm2015/bravobit-bb-foundation-collections.js.map +1 -0
  297. package/fesm2015/bravobit-bb-foundation-dashboard.js +434 -434
  298. package/fesm2015/bravobit-bb-foundation-dashboard.js.map +1 -1
  299. package/fesm2015/bravobit-bb-foundation-dialog.js +603 -603
  300. package/fesm2015/bravobit-bb-foundation-dialog.js.map +1 -1
  301. package/fesm2015/bravobit-bb-foundation-elements.js +2076 -2076
  302. package/fesm2015/bravobit-bb-foundation-elements.js.map +1 -1
  303. package/fesm2015/bravobit-bb-foundation-http.js +154 -154
  304. package/fesm2015/bravobit-bb-foundation-http.js.map +1 -1
  305. package/fesm2015/bravobit-bb-foundation-localize.js +796 -796
  306. package/fesm2015/bravobit-bb-foundation-localize.js.map +1 -1
  307. package/fesm2015/bravobit-bb-foundation-notifications.js +364 -364
  308. package/fesm2015/bravobit-bb-foundation-notifications.js.map +1 -1
  309. package/fesm2015/bravobit-bb-foundation-recaptcha.js +297 -297
  310. package/fesm2015/bravobit-bb-foundation-recaptcha.js.map +1 -1
  311. package/fesm2015/bravobit-bb-foundation-rxjs.js +7 -7
  312. package/fesm2015/bravobit-bb-foundation-rxjs.js.map +1 -1
  313. package/fesm2015/bravobit-bb-foundation-storage.js +399 -399
  314. package/fesm2015/bravobit-bb-foundation-storage.js.map +1 -1
  315. package/fesm2015/bravobit-bb-foundation-table.js +578 -578
  316. package/fesm2015/bravobit-bb-foundation-table.js.map +1 -1
  317. package/fesm2015/bravobit-bb-foundation.js +851 -851
  318. package/fesm2015/bravobit-bb-foundation.js.map +1 -1
  319. package/http/bravobit-bb-foundation-http.d.ts +5 -5
  320. package/http/lib/classes/http.config.d.ts +9 -9
  321. package/http/lib/classes/http.error.d.ts +7 -7
  322. package/http/lib/http.interfaces.d.ts +12 -12
  323. package/http/lib/http.module.d.ts +15 -15
  324. package/http/lib/interceptors/base-url.interceptor.d.ts +15 -15
  325. package/http/lib/interceptors/error.interceptor.d.ts +11 -11
  326. package/http/public_api.d.ts +6 -6
  327. package/lib/core/coercions/boolean-coercion.d.ts +1 -1
  328. package/lib/core/miscellaneous/regex.d.ts +4 -4
  329. package/lib/core/miscellaneous/validator.d.ts +13 -13
  330. package/lib/core/mixins/can-disable.d.ts +6 -6
  331. package/lib/core/mixins/can-hide-errors.d.ts +6 -6
  332. package/lib/core/mixins/can-load.d.ts +6 -6
  333. package/lib/core/mixins/constructor.d.ts +1 -1
  334. package/lib/core/mixins/has-error.d.ts +6 -6
  335. package/lib/core/mixins/is-focused.d.ts +6 -6
  336. package/lib/core/mixins/is-grouped.d.ts +6 -6
  337. package/lib/core/mixins/is-readonly.d.ts +6 -6
  338. package/lib/core/mixins/is-required.d.ts +6 -6
  339. package/lib/core/services/clipboard.service.d.ts +18 -18
  340. package/lib/core/services/exif.service.d.ts +15 -15
  341. package/lib/core/services/file-loader.service.d.ts +13 -13
  342. package/lib/core/services/image-converter.service.d.ts +21 -21
  343. package/lib/core/services/languages.service.d.ts +16 -16
  344. package/lib/core/services/network.service.d.ts +14 -14
  345. package/lib/core/services/patch.service.d.ts +16 -16
  346. package/lib/core/services/platform.service.d.ts +18 -18
  347. package/lib/core/tokens/accept-language.token.d.ts +2 -2
  348. package/lib/core/tokens/base-url.token.d.ts +2 -2
  349. package/lib/core/tokens/cookie.token.d.ts +2 -2
  350. package/lib/core/tokens/location.token.d.ts +2 -2
  351. package/lib/core/tokens/navigator.token.d.ts +2 -2
  352. package/lib/core/tokens/window.token.d.ts +2 -2
  353. package/localize/bravobit-bb-foundation-localize.d.ts +5 -5
  354. package/localize/lib/functions/date.function.d.ts +5 -5
  355. package/localize/lib/functions/lowercase.function.d.ts +5 -5
  356. package/localize/lib/functions/uppercase.function.d.ts +5 -5
  357. package/localize/lib/handlers/missing.handler.d.ts +6 -6
  358. package/localize/lib/interfaces/config.interfaces.d.ts +8 -8
  359. package/localize/lib/interfaces/dictionary.interfaces.d.ts +12 -12
  360. package/localize/lib/interfaces/functions.interfaces.d.ts +9 -9
  361. package/localize/lib/interfaces/handlers.interfaces.d.ts +6 -6
  362. package/localize/lib/interfaces/options.interfaces.d.ts +10 -10
  363. package/localize/lib/localizations/dutch.localization.d.ts +51 -51
  364. package/localize/lib/localizations/english.localization.d.ts +51 -51
  365. package/localize/lib/localize.dictionary.d.ts +24 -24
  366. package/localize/lib/localize.module.d.ts +18 -18
  367. package/localize/lib/localize.pipe.d.ts +12 -12
  368. package/localize/lib/localize.service.d.ts +51 -51
  369. package/localize/lib/views/localize-string/localize-string.component.d.ts +23 -23
  370. package/localize/lib/views/localize-template-or-string.directive.d.ts +10 -10
  371. package/localize/lib/views/localize-template.directive.d.ts +9 -9
  372. package/localize/public_api.d.ts +17 -17
  373. package/notifications/bravobit-bb-foundation-notifications.d.ts +5 -5
  374. package/notifications/lib/notifications-item/notifications-item.component.d.ts +34 -34
  375. package/notifications/lib/notifications-list/notifications-list.component.d.ts +16 -16
  376. package/notifications/lib/notifications.animations.d.ts +1 -1
  377. package/notifications/lib/notifications.injector.d.ts +8 -8
  378. package/notifications/lib/notifications.interfaces.d.ts +49 -49
  379. package/notifications/lib/notifications.module.d.ts +13 -13
  380. package/notifications/lib/notifications.service.d.ts +34 -34
  381. package/notifications/public_api.d.ts +3 -3
  382. package/package.json +5 -5
  383. package/public_api.d.ts +26 -26
  384. package/recaptcha/bravobit-bb-foundation-recaptcha.d.ts +5 -5
  385. package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +47 -47
  386. package/recaptcha/lib/recaptcha-loader.service.d.ts +22 -22
  387. package/recaptcha/lib/recaptcha.interface.d.ts +14 -14
  388. package/recaptcha/lib/recaptcha.module.d.ts +10 -16
  389. package/recaptcha/public_api.d.ts +4 -4
  390. package/rxjs/bravobit-bb-foundation-rxjs.d.ts +5 -5
  391. package/rxjs/lib/operators/combine-latest-map.operator.d.ts +8 -8
  392. package/rxjs/lib/operators/filter-nil.operator.d.ts +1 -1
  393. package/rxjs/public_api.d.ts +2 -2
  394. package/storage/bravobit-bb-foundation-storage.d.ts +5 -5
  395. package/storage/lib/interfaces/attributes.interface.d.ts +13 -13
  396. package/storage/lib/interfaces/memory.interface.d.ts +7 -7
  397. package/storage/lib/interfaces/strategy.interface.d.ts +17 -17
  398. package/storage/lib/storage.service.d.ts +26 -26
  399. package/storage/lib/strategies/cookie-storage.strategy.d.ts +20 -20
  400. package/storage/lib/strategies/memory-storage.strategy.d.ts +11 -11
  401. package/storage/lib/strategies/polyfill-storage.strategy.d.ts +15 -15
  402. package/storage/public_api.d.ts +7 -7
  403. package/table/bravobit-bb-foundation-table.d.ts +5 -5
  404. package/table/lib/components/table/table.component.d.ts +48 -48
  405. package/table/lib/components/table-cell/table-cell.component.d.ts +5 -5
  406. package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +29 -29
  407. package/table/lib/components/table-pager/table-pager.component.d.ts +41 -41
  408. package/table/lib/data/datasource.data.d.ts +14 -14
  409. package/table/lib/data/generic.data.d.ts +23 -23
  410. package/table/lib/interfaces/datasource.interface.d.ts +17 -17
  411. package/table/lib/interfaces/table.interfaces.d.ts +1 -1
  412. package/table/lib/table.module.d.ts +14 -14
  413. package/table/public_api.d.ts +9 -9
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
2
  typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@angular/core'), require('rxjs'), require('rxjs/operators'), require('@bravobit/bb-foundation/storage'), require('@bravobit/bb-foundation'), require('@angular/common'), require('@angular/router'), require('@bravobit/bb-foundation/elements')) :
3
3
  typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/dashboard', ['exports', '@angular/core', 'rxjs', 'rxjs/operators', '@bravobit/bb-foundation/storage', '@bravobit/bb-foundation', '@angular/common', '@angular/router', '@bravobit/bb-foundation/elements'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit['bb-foundation'] = global.bravobit['bb-foundation'] || {}, global.bravobit['bb-foundation'].dashboard = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.bravobit['bb-foundation'].storage, global.bravobit['bb-foundation'], global.ng.common, global.ng.router, global.bravobit['bb-foundation'].elements));
5
- }(this, (function (exports, i0, rxjs, operators, i1, i1$1, i2, i2$1, i2$2) { 'use strict';
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.bravobit = global.bravobit || {}, global.bravobit["bb-foundation"] = global.bravobit["bb-foundation"] || {}, global.bravobit["bb-foundation"].dashboard = {}), global.ng.core, global.rxjs, global.rxjs.operators, global.bravobit["bb-foundation"].storage, global.bravobit["bb-foundation"], global.ng.common, global.ng.router, global.bravobit["bb-foundation"].elements));
5
+ })(this, (function (exports, i0, rxjs, operators, i1, i1$1, i2, i2$1, i2$2) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -13,14 +13,12 @@
13
13
  var d = Object.getOwnPropertyDescriptor(e, k);
14
14
  Object.defineProperty(n, k, d.get ? d : {
15
15
  enumerable: true,
16
- get: function () {
17
- return e[k];
18
- }
16
+ get: function () { return e[k]; }
19
17
  });
20
18
  }
21
19
  });
22
20
  }
23
- n['default'] = e;
21
+ n["default"] = e;
24
22
  return Object.freeze(n);
25
23
  }
26
24
 
@@ -31,836 +29,836 @@
31
29
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
32
30
  var i2__namespace$2 = /*#__PURE__*/_interopNamespace(i2$2);
33
31
 
34
- var BbDashboardSidebar = /** @class */ (function () {
35
- function BbDashboardSidebar(_storage) {
36
- this._storage = _storage;
37
- // Bindings.
38
- this.visibilityChanges = new rxjs.BehaviorSubject(true);
39
- // State.
40
- this._state$ = new rxjs.BehaviorSubject({});
41
- // Token.
42
- this._localStorageToken = 'bb-dashboard-sidebar-state';
43
- }
44
- BbDashboardSidebar.prototype.ngOnInit = function () {
45
- // Retrieve the cache.
46
- this._cache = this._storage.get(this._localStorageToken) || {};
47
- };
48
- BbDashboardSidebar.prototype.registerGroup = function (id) {
49
- var _a;
50
- // Get the old state.
51
- var oldState = this._state$.getValue();
52
- // Get the cache value so when it is undefined
53
- // we will default to true.
54
- var cacheValue = this._cache[id] === undefined ? true : this._cache[id];
55
- // Push the new state.
56
- this._state$.next(Object.assign(Object.assign({}, oldState), (_a = {}, _a[id] = cacheValue, _a)));
57
- // Return the slice of the state that the group needs.
58
- return this._state$.pipe(operators.map(function (state) { return state[id]; }));
59
- };
60
- BbDashboardSidebar.prototype.unregisterGroup = function (id) {
61
- // Get the old groups.
62
- var oldState = this._state$.getValue();
63
- // Generate the new state without the id.
64
- var newState = Object.keys(oldState).reduce(function (object, key) {
65
- if (key !== id) {
66
- object[key] = oldState[key];
67
- }
68
- return object;
69
- }, {});
70
- // Push the new state.
71
- this._state$.next(newState);
72
- };
73
- BbDashboardSidebar.prototype.toggleGroup = function (id, newValue) {
74
- var _a;
75
- // Get the old state.
76
- var oldState = this._state$.getValue();
77
- // Create the new state.
78
- var newState = Object.assign(Object.assign({}, oldState), (_a = {}, _a[id] = newValue, _a));
79
- // Push the new state.
80
- this._state$.next(newState);
81
- // Save in the cache.
82
- this._storage.set(this._localStorageToken, newState);
83
- };
84
- BbDashboardSidebar.prototype.toggle = function () {
85
- var current = this.visibilityChanges.getValue();
86
- this.visibilityChanges.next(!current);
87
- };
88
- BbDashboardSidebar.prototype.open = function () {
89
- this.visibilityChanges.next(true);
90
- };
91
- BbDashboardSidebar.prototype.close = function () {
92
- this.visibilityChanges.next(false);
93
- };
94
- return BbDashboardSidebar;
95
- }());
96
- BbDashboardSidebar.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebar, deps: [{ token: i1__namespace.Storage }], target: i0__namespace.ɵɵFactoryTarget.Component });
97
- BbDashboardSidebar.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardSidebar, selector: "bb-dashboard-sidebar", host: { attributes: { "role": "navigation" }, properties: { "class.visible": "visibilityChanges.getValue()" }, classAttribute: "bb-dashboard-sidebar" }, ngImport: i0__namespace, template: "<!--\r\n The optional header element.\r\n-->\r\n<ng-content select=\"header\"></ng-content>\r\n\r\n<!--\r\n The scroll area that contains the\r\n groups in the navigation.\r\n-->\r\n<div class=\"bb-dashboard-sidebar-scroll\">\r\n <ng-content select=\"bb-dashboard-sidebar-group\"></ng-content>\r\n</div>\r\n\r\n<!--\r\n The optional footer element.\r\n-->\r\n<ng-content select=\"footer\"></ng-content>\r\n", styles: [".bb-dashboard-sidebar{top:0;bottom:0;z-index:10;left:-256px;width:256px;height:100vh;display:flex;position:fixed;min-width:256px;will-change:transform;flex-direction:column;transform:translateX(256px);height:calc(1vh * 100);height:calc(var(--vh, 1vh) * 100);border-right:1px solid rgba(0,0,0,.4);transition:transform .25s cubic-bezier(0,0,.2,1);background:#fff linear-gradient(180deg,#fff,#f2f2f2)}.bb-dashboard-sidebar.visible{transform:none}.bb-dashboard-sidebar-scroll{flex:1;overflow:auto}.bb-dashboard-sidebar>header{border-bottom:1px solid #d8d8d8;background-color:hsla(0,0%,100%,.5)}.bb-dashboard-sidebar>footer{border-top:1px solid #d8d8d8;background-color:hsla(0,0%,100%,.5)}@media only screen and (min-width:768px){.bb-dashboard-sidebar{left:0;z-index:auto;transform:none;position:relative;margin-left:-256px;transition:margin-left .25s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar.visible{margin-left:0}}"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
98
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebar, decorators: [{
99
- type: i0.Component,
100
- args: [{
101
- selector: 'bb-dashboard-sidebar',
102
- templateUrl: './dashboard-sidebar.component.html',
103
- styleUrls: ['./dashboard-sidebar.component.scss'],
104
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
105
- encapsulation: i0.ViewEncapsulation.None,
106
- preserveWhitespaces: false,
107
- host: {
108
- 'class': 'bb-dashboard-sidebar',
109
- '[class.visible]': 'visibilityChanges.getValue()',
110
- 'role': 'navigation'
111
- }
112
- }]
32
+ var BbDashboardSidebar = /** @class */ (function () {
33
+ function BbDashboardSidebar(_storage) {
34
+ this._storage = _storage;
35
+ // Bindings.
36
+ this.visibilityChanges = new rxjs.BehaviorSubject(true);
37
+ // State.
38
+ this._state$ = new rxjs.BehaviorSubject({});
39
+ // Token.
40
+ this._localStorageToken = 'bb-dashboard-sidebar-state';
41
+ }
42
+ BbDashboardSidebar.prototype.ngOnInit = function () {
43
+ // Retrieve the cache.
44
+ this._cache = this._storage.get(this._localStorageToken) || {};
45
+ };
46
+ BbDashboardSidebar.prototype.registerGroup = function (id) {
47
+ var _a;
48
+ // Get the old state.
49
+ var oldState = this._state$.getValue();
50
+ // Get the cache value so when it is undefined
51
+ // we will default to true.
52
+ var cacheValue = this._cache[id] === undefined ? true : this._cache[id];
53
+ // Push the new state.
54
+ this._state$.next(Object.assign(Object.assign({}, oldState), (_a = {}, _a[id] = cacheValue, _a)));
55
+ // Return the slice of the state that the group needs.
56
+ return this._state$.pipe(operators.map(function (state) { return state[id]; }));
57
+ };
58
+ BbDashboardSidebar.prototype.unregisterGroup = function (id) {
59
+ // Get the old groups.
60
+ var oldState = this._state$.getValue();
61
+ // Generate the new state without the id.
62
+ var newState = Object.keys(oldState).reduce(function (object, key) {
63
+ if (key !== id) {
64
+ object[key] = oldState[key];
65
+ }
66
+ return object;
67
+ }, {});
68
+ // Push the new state.
69
+ this._state$.next(newState);
70
+ };
71
+ BbDashboardSidebar.prototype.toggleGroup = function (id, newValue) {
72
+ var _a;
73
+ // Get the old state.
74
+ var oldState = this._state$.getValue();
75
+ // Create the new state.
76
+ var newState = Object.assign(Object.assign({}, oldState), (_a = {}, _a[id] = newValue, _a));
77
+ // Push the new state.
78
+ this._state$.next(newState);
79
+ // Save in the cache.
80
+ this._storage.set(this._localStorageToken, newState);
81
+ };
82
+ BbDashboardSidebar.prototype.toggle = function () {
83
+ var current = this.visibilityChanges.getValue();
84
+ this.visibilityChanges.next(!current);
85
+ };
86
+ BbDashboardSidebar.prototype.open = function () {
87
+ this.visibilityChanges.next(true);
88
+ };
89
+ BbDashboardSidebar.prototype.close = function () {
90
+ this.visibilityChanges.next(false);
91
+ };
92
+ return BbDashboardSidebar;
93
+ }());
94
+ BbDashboardSidebar.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebar, deps: [{ token: i1__namespace.Storage }], target: i0__namespace.ɵɵFactoryTarget.Component });
95
+ BbDashboardSidebar.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardSidebar, selector: "bb-dashboard-sidebar", host: { attributes: { "role": "navigation" }, properties: { "class.visible": "visibilityChanges.getValue()" }, classAttribute: "bb-dashboard-sidebar" }, ngImport: i0__namespace, template: "<!--\n The optional header element.\n-->\n<ng-content select=\"header\"></ng-content>\n\n<!--\n The scroll area that contains the\n groups in the navigation.\n-->\n<div class=\"bb-dashboard-sidebar-scroll\">\n <ng-content select=\"bb-dashboard-sidebar-group\"></ng-content>\n</div>\n\n<!--\n The optional footer element.\n-->\n<ng-content select=\"footer\"></ng-content>\n", styles: [".bb-dashboard-sidebar{top:0;bottom:0;z-index:10;left:-256px;width:256px;height:100vh;display:flex;position:fixed;min-width:256px;will-change:transform;flex-direction:column;transform:translate(256px);height:calc(1vh * 100);height:calc(var(--vh, 1vh) * 100);border-right:1px solid rgba(0,0,0,.4);transition:transform .25s cubic-bezier(0,0,.2,1);background:white linear-gradient(to bottom,white,#f2f2f2)}.bb-dashboard-sidebar.visible{transform:none}.bb-dashboard-sidebar-scroll{flex:1;overflow:auto}.bb-dashboard-sidebar>header{border-bottom:1px solid #d8d8d8;background-color:#ffffff80}.bb-dashboard-sidebar>footer{border-top:1px solid #d8d8d8;background-color:#ffffff80}@media only screen and (min-width: 768px){.bb-dashboard-sidebar{left:0;z-index:auto;transform:none;position:relative;margin-left:-256px;transition:margin-left .25s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar.visible{margin-left:0}}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
96
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebar, decorators: [{
97
+ type: i0.Component,
98
+ args: [{
99
+ selector: 'bb-dashboard-sidebar',
100
+ templateUrl: './dashboard-sidebar.component.html',
101
+ styleUrls: ['./dashboard-sidebar.component.scss'],
102
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
103
+ encapsulation: i0.ViewEncapsulation.None,
104
+ preserveWhitespaces: false,
105
+ host: {
106
+ 'class': 'bb-dashboard-sidebar',
107
+ '[class.visible]': 'visibilityChanges.getValue()',
108
+ 'role': 'navigation'
109
+ }
110
+ }]
113
111
  }], ctorParameters: function () { return [{ type: i1__namespace.Storage }]; } });
114
112
 
115
- var BbDashboard = /** @class */ (function () {
116
- function BbDashboard(_patch, _platform, _renderer) {
117
- this._patch = _patch;
118
- this._platform = _platform;
119
- this._renderer = _renderer;
120
- // Inputs.
121
- this.backgroundColor = '#e7eaed';
122
- this.maxWidth = '1200px';
123
- this.padding = '20px';
124
- }
125
- BbDashboard.prototype.ngOnInit = function () {
126
- // Set the vertical height for mobile devices.
127
- this._patch.mobileVerticalHeight();
128
- // Set the HTML class to prevent scrolling.
129
- return this.setHtmlClass();
130
- };
131
- BbDashboard.prototype.ngOnDestroy = function () {
132
- // Remove the HTML class.
133
- this.setHtmlClass(true);
134
- };
135
- BbDashboard.prototype.setHtmlClass = function (shouldRemove) {
136
- if (shouldRemove === void 0) { shouldRemove = false; }
137
- // Check if we are on a browser.
138
- if (!this._platform.isBrowser) {
139
- return;
140
- }
141
- // Define the class name.
142
- var className = 'bb-dashboard-html';
143
- // Add or remove the class.
144
- return shouldRemove
145
- ? this._renderer.removeClass(document.documentElement, className)
146
- : this._renderer.addClass(document.documentElement, className);
147
- };
148
- return BbDashboard;
149
- }());
150
- BbDashboard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboard, deps: [{ token: i1__namespace$1.Patch }, { token: i1__namespace$1.Platform }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
151
- BbDashboard.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboard, selector: "bb-dashboard", inputs: { backgroundColor: "backgroundColor", maxWidth: "maxWidth", padding: "padding" }, host: { classAttribute: "bb-dashboard" }, queries: [{ propertyName: "sidebar", first: true, predicate: BbDashboardSidebar, descendants: true }], ngImport: i0__namespace, template: "<!--\r\n The outlet for where the sidebar\r\n will be placed (if provided).\r\n-->\r\n<ng-content select=\"bb-dashboard-sidebar\">\r\n</ng-content>\r\n\r\n<!--\r\n The section containing the header\r\n and the main content.\r\n-->\r\n<section [style.background-color]=\"backgroundColor\"\r\n class=\"bb-dashboard-section\">\r\n <!--\r\n The outlet for where the header\r\n will be placed (if provided).\r\n -->\r\n <ng-content select=\"bb-dashboard-header\">\r\n </ng-content>\r\n\r\n <!--\r\n The outlet of the content that\r\n will be provided by the router.\r\n -->\r\n <main [style.padding]=\"padding\"\r\n class=\"bb-dashboard-scroll\">\r\n <div [style.max-width]=\"maxWidth\"\r\n class=\"bb-dashboard-container\">\r\n <ng-content select=\"bb-dashboard-menu\"></ng-content>\r\n\r\n <ng-content></ng-content>\r\n </div>\r\n <!--\r\n The outlet for where the footer\r\n will be placed (if provided).\r\n -->\r\n <ng-content select=\"bb-dashboard-footer\">\r\n </ng-content>\r\n </main>\r\n</section>\r\n\r\n<!--\r\n The backdrop that will be visible when\r\n the sidebar is opened (only on mobile).\r\n-->\r\n<div *ngIf=\"!!sidebar\"\r\n [class.visible]=\"!(sidebar?.visibilityChanges | async)\"\r\n (click)=\"sidebar?.toggle()\"\r\n class=\"bb-dashboard-backdrop\">\r\n</div>\r\n", styles: [".bb-dashboard{overflow:hidden;position:relative}.bb-dashboard,.bb-dashboard-section{height:100vh;display:flex;height:calc(1vh * 100);height:calc(var(--vh, 1vh) * 100)}.bb-dashboard-scroll,.bb-dashboard-section{flex:1;overflow-x:hidden;flex-direction:column}.bb-dashboard-scroll{display:flex;overflow-y:scroll;-webkit-overflow-scrolling:touch}.bb-dashboard-container{width:100%;display:flex;margin:0 auto;flex-direction:column}.bb-dashboard-backdrop{top:0;left:0;right:0;bottom:0;opacity:0;z-index:5;position:absolute;will-change:opacity;pointer-events:none;background-color:rgba(0,0,0,.5);transition:opacity .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-backdrop.visible{opacity:1;cursor:pointer;pointer-events:all}@media only screen and (min-width:768px){.bb-dashboard-backdrop{display:none}}.bb-dashboard-html{height:100%;overflow:hidden}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
152
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboard, decorators: [{
153
- type: i0.Component,
154
- args: [{
155
- selector: 'bb-dashboard',
156
- templateUrl: './dashboard.component.html',
157
- styleUrls: ['./dashboard.component.scss'],
158
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
159
- encapsulation: i0.ViewEncapsulation.None,
160
- preserveWhitespaces: false,
161
- host: {
162
- 'class': 'bb-dashboard'
163
- }
164
- }]
165
- }], ctorParameters: function () { return [{ type: i1__namespace$1.Patch }, { type: i1__namespace$1.Platform }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { sidebar: [{
166
- type: i0.ContentChild,
167
- args: [BbDashboardSidebar]
168
- }], backgroundColor: [{
169
- type: i0.Input
170
- }], maxWidth: [{
171
- type: i0.Input
172
- }], padding: [{
173
- type: i0.Input
113
+ var BbDashboard = /** @class */ (function () {
114
+ function BbDashboard(_patch, _platform, _renderer) {
115
+ this._patch = _patch;
116
+ this._platform = _platform;
117
+ this._renderer = _renderer;
118
+ // Inputs.
119
+ this.backgroundColor = '#e7eaed';
120
+ this.maxWidth = '1200px';
121
+ this.padding = '20px';
122
+ }
123
+ BbDashboard.prototype.ngOnInit = function () {
124
+ // Set the vertical height for mobile devices.
125
+ this._patch.mobileVerticalHeight();
126
+ // Set the HTML class to prevent scrolling.
127
+ return this.setHtmlClass();
128
+ };
129
+ BbDashboard.prototype.ngOnDestroy = function () {
130
+ // Remove the HTML class.
131
+ this.setHtmlClass(true);
132
+ };
133
+ BbDashboard.prototype.setHtmlClass = function (shouldRemove) {
134
+ if (shouldRemove === void 0) { shouldRemove = false; }
135
+ // Check if we are on a browser.
136
+ if (!this._platform.isBrowser) {
137
+ return;
138
+ }
139
+ // Define the class name.
140
+ var className = 'bb-dashboard-html';
141
+ // Add or remove the class.
142
+ return shouldRemove
143
+ ? this._renderer.removeClass(document.documentElement, className)
144
+ : this._renderer.addClass(document.documentElement, className);
145
+ };
146
+ return BbDashboard;
147
+ }());
148
+ BbDashboard.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboard, deps: [{ token: i1__namespace$1.Patch }, { token: i1__namespace$1.Platform }, { token: i0__namespace.Renderer2 }], target: i0__namespace.ɵɵFactoryTarget.Component });
149
+ BbDashboard.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboard, selector: "bb-dashboard", inputs: { backgroundColor: "backgroundColor", maxWidth: "maxWidth", padding: "padding" }, host: { classAttribute: "bb-dashboard" }, queries: [{ propertyName: "sidebar", first: true, predicate: BbDashboardSidebar, descendants: true }], ngImport: i0__namespace, template: "<!--\n The outlet for where the sidebar\n will be placed (if provided).\n-->\n<ng-content select=\"bb-dashboard-sidebar\">\n</ng-content>\n\n<!--\n The section containing the header\n and the main content.\n-->\n<section [style.background-color]=\"backgroundColor\"\n class=\"bb-dashboard-section\">\n <!--\n The outlet for where the header\n will be placed (if provided).\n -->\n <ng-content select=\"bb-dashboard-header\">\n </ng-content>\n\n <!--\n The outlet of the content that\n will be provided by the router.\n -->\n <main [style.padding]=\"padding\"\n class=\"bb-dashboard-scroll\">\n <div [style.max-width]=\"maxWidth\"\n class=\"bb-dashboard-container\">\n <ng-content select=\"bb-dashboard-menu\"></ng-content>\n\n <ng-content></ng-content>\n </div>\n <!--\n The outlet for where the footer\n will be placed (if provided).\n -->\n <ng-content select=\"bb-dashboard-footer\">\n </ng-content>\n </main>\n</section>\n\n<!--\n The backdrop that will be visible when\n the sidebar is opened (only on mobile).\n-->\n<div *ngIf=\"!!sidebar\"\n [class.visible]=\"!(sidebar?.visibilityChanges | async)\"\n (click)=\"sidebar?.toggle()\"\n class=\"bb-dashboard-backdrop\">\n</div>\n", styles: [".bb-dashboard{height:100vh;display:flex;overflow:hidden;position:relative;height:calc(1vh * 100);height:calc(var(--vh, 1vh) * 100)}.bb-dashboard-section{flex:1;height:100vh;display:flex;overflow-x:hidden;flex-direction:column;height:calc(1vh * 100);height:calc(var(--vh, 1vh) * 100)}.bb-dashboard-scroll{flex:1;display:flex;overflow-x:hidden;overflow-y:scroll;flex-direction:column;-webkit-overflow-scrolling:touch}.bb-dashboard-container{width:100%;display:flex;margin:0 auto;flex-direction:column}.bb-dashboard-backdrop{top:0;left:0;right:0;bottom:0;opacity:0;z-index:5;position:absolute;will-change:opacity;pointer-events:none;background-color:#00000080;transition:opacity .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-backdrop.visible{opacity:1;cursor:pointer;pointer-events:all}@media only screen and (min-width: 768px){.bb-dashboard-backdrop{display:none}}.bb-dashboard-html{height:100%;overflow:hidden}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
150
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboard, decorators: [{
151
+ type: i0.Component,
152
+ args: [{
153
+ selector: 'bb-dashboard',
154
+ templateUrl: './dashboard.component.html',
155
+ styleUrls: ['./dashboard.component.scss'],
156
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
157
+ encapsulation: i0.ViewEncapsulation.None,
158
+ preserveWhitespaces: false,
159
+ host: {
160
+ 'class': 'bb-dashboard'
161
+ }
162
+ }]
163
+ }], ctorParameters: function () { return [{ type: i1__namespace$1.Patch }, { type: i1__namespace$1.Platform }, { type: i0__namespace.Renderer2 }]; }, propDecorators: { sidebar: [{
164
+ type: i0.ContentChild,
165
+ args: [BbDashboardSidebar]
166
+ }], backgroundColor: [{
167
+ type: i0.Input
168
+ }], maxWidth: [{
169
+ type: i0.Input
170
+ }], padding: [{
171
+ type: i0.Input
174
172
  }] } });
175
173
 
176
- var BbDashboardHeader = /** @class */ (function () {
177
- function BbDashboardHeader(_parent) {
178
- this._parent = _parent;
179
- }
180
- Object.defineProperty(BbDashboardHeader.prototype, "showSidebarButton", {
181
- get: function () {
182
- var _a;
183
- return !!((_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar);
184
- },
185
- enumerable: false,
186
- configurable: true
187
- });
188
- Object.defineProperty(BbDashboardHeader.prototype, "isSidebarVisible", {
189
- get: function () {
190
- var _a, _b, _c;
191
- return (_c = (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar) === null || _b === void 0 ? void 0 : _b.visibilityChanges) !== null && _c !== void 0 ? _c : rxjs.of(false);
192
- },
193
- enumerable: false,
194
- configurable: true
195
- });
196
- BbDashboardHeader.prototype.onToggleSidebarClicked = function () {
197
- var _a, _b;
198
- (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar) === null || _b === void 0 ? void 0 : _b.toggle();
199
- };
200
- return BbDashboardHeader;
201
- }());
202
- BbDashboardHeader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardHeader, deps: [{ token: BbDashboard, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
203
- BbDashboardHeader.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardHeader, selector: "bb-dashboard-header", host: { classAttribute: "bb-dashboard-header" }, ngImport: i0__namespace, template: "<!--\r\n The button that toggles the sidebar.\r\n-->\r\n<button *ngIf=\"showSidebarButton\"\r\n (click)=\"onToggleSidebarClicked()\"\r\n [class.reversed]=\"isSidebarVisible | async\"\r\n class=\"bb-dashboard-header-button\"\r\n type=\"button\"\r\n tabindex=\"0\"\r\n role=\"switch\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 157 109\"\r\n width=\"17\"\r\n height=\"12\"\r\n role=\"img\">\r\n <title>\r\n Toggle\r\n </title>\r\n <path fill=\"#fff\"\r\n d=\"M82 42V11.2L30 54.5l52 43.3V67h75V42zM9.5 109h-2c-4.1 0-7.5-3.4-7.5-7.5v-94C0 3.4 3.4 0 7.5 0h2C13.6 0 17 3.4 17 7.5v94c0 4.1-3.4 7.5-7.5 7.5z\">\r\n </path>\r\n </svg>\r\n</button>\r\n\r\n<!--\r\n The extra items of the header.\r\n-->\r\n<div class=\"bb-dashboard-header-items\">\r\n <ng-content></ng-content>\r\n</div>\r\n", styles: [".bb-dashboard-header{z-index:1;width:100%;color:#fff;height:50px;display:flex;padding:0 8px;min-height:50px;align-items:center;background-color:#5b53ff;border-bottom:1px solid #4d46d6}.bb-dashboard-header-button{width:68px;height:34px;border-radius:4px;align-items:center;display:inline-flex;justify-content:center;border:1px solid #4d46d6;background-color:transparent}.bb-dashboard-header-button>svg{height:100%;transform:none;transition:transform .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-header-button.reversed>svg{transform:rotateY(180deg)}.bb-dashboard-header-button:hover{background-color:rgba(0,0,0,.04)}.bb-dashboard-header-button:active{background-color:rgba(0,0,0,.08)}.bb-dashboard-header-items{display:flex;margin-left:auto;align-items:center}.bb-dashboard-header-items>:not(:first-child){margin-left:8px}@media only screen and (min-width:768px){.bb-dashboard-header-button>svg{transform:rotateY(180deg)}.bb-dashboard-header-button.reversed>svg{transform:none}}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
204
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardHeader, decorators: [{
205
- type: i0.Component,
206
- args: [{
207
- selector: 'bb-dashboard-header',
208
- templateUrl: './dashboard-header.component.html',
209
- styleUrls: ['./dashboard-header.component.scss'],
210
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
211
- encapsulation: i0.ViewEncapsulation.None,
212
- preserveWhitespaces: false,
213
- host: {
214
- 'class': 'bb-dashboard-header'
215
- }
216
- }]
217
- }], ctorParameters: function () {
218
- return [{ type: BbDashboard, decorators: [{
219
- type: i0.Optional
220
- }] }];
174
+ var BbDashboardHeader = /** @class */ (function () {
175
+ function BbDashboardHeader(_parent) {
176
+ this._parent = _parent;
177
+ }
178
+ Object.defineProperty(BbDashboardHeader.prototype, "showSidebarButton", {
179
+ get: function () {
180
+ var _a;
181
+ return !!((_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar);
182
+ },
183
+ enumerable: false,
184
+ configurable: true
185
+ });
186
+ Object.defineProperty(BbDashboardHeader.prototype, "isSidebarVisible", {
187
+ get: function () {
188
+ var _a, _b, _c;
189
+ return (_c = (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar) === null || _b === void 0 ? void 0 : _b.visibilityChanges) !== null && _c !== void 0 ? _c : rxjs.of(false);
190
+ },
191
+ enumerable: false,
192
+ configurable: true
193
+ });
194
+ BbDashboardHeader.prototype.onToggleSidebarClicked = function () {
195
+ var _a, _b;
196
+ (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.sidebar) === null || _b === void 0 ? void 0 : _b.toggle();
197
+ };
198
+ return BbDashboardHeader;
199
+ }());
200
+ BbDashboardHeader.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardHeader, deps: [{ token: BbDashboard, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
201
+ BbDashboardHeader.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardHeader, selector: "bb-dashboard-header", host: { classAttribute: "bb-dashboard-header" }, ngImport: i0__namespace, template: "<!--\n The button that toggles the sidebar.\n-->\n<button *ngIf=\"showSidebarButton\"\n (click)=\"onToggleSidebarClicked()\"\n [class.reversed]=\"isSidebarVisible | async\"\n class=\"bb-dashboard-header-button\"\n type=\"button\"\n tabindex=\"0\"\n role=\"switch\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 157 109\"\n width=\"17\"\n height=\"12\"\n role=\"img\">\n <title>\n Toggle\n </title>\n <path fill=\"#fff\"\n d=\"M82 42V11.2L30 54.5l52 43.3V67h75V42zM9.5 109h-2c-4.1 0-7.5-3.4-7.5-7.5v-94C0 3.4 3.4 0 7.5 0h2C13.6 0 17 3.4 17 7.5v94c0 4.1-3.4 7.5-7.5 7.5z\">\n </path>\n </svg>\n</button>\n\n<!--\n The extra items of the header.\n-->\n<div class=\"bb-dashboard-header-items\">\n <ng-content></ng-content>\n</div>\n", styles: [".bb-dashboard-header{z-index:1;width:100%;color:#fff;height:50px;display:flex;padding:0 8px;min-height:50px;align-items:center;background-color:#5b53ff;border-bottom:1px solid #4d46d6}.bb-dashboard-header-button{width:68px;height:34px;border-radius:4px;align-items:center;display:inline-flex;justify-content:center;border:1px solid #4d46d6;background-color:transparent}.bb-dashboard-header-button>svg{height:100%;transform:none;transition:transform .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-header-button.reversed>svg{transform:rotateY(180deg)}.bb-dashboard-header-button:hover{background-color:#0000000a}.bb-dashboard-header-button:active{background-color:#00000014}.bb-dashboard-header-items{display:flex;margin-left:auto;align-items:center}.bb-dashboard-header-items>*:not(:first-child){margin-left:8px}@media only screen and (min-width: 768px){.bb-dashboard-header-button>svg{transform:rotateY(180deg)}.bb-dashboard-header-button.reversed>svg{transform:none}}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "async": i2__namespace.AsyncPipe }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
202
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardHeader, decorators: [{
203
+ type: i0.Component,
204
+ args: [{
205
+ selector: 'bb-dashboard-header',
206
+ templateUrl: './dashboard-header.component.html',
207
+ styleUrls: ['./dashboard-header.component.scss'],
208
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
209
+ encapsulation: i0.ViewEncapsulation.None,
210
+ preserveWhitespaces: false,
211
+ host: {
212
+ 'class': 'bb-dashboard-header'
213
+ }
214
+ }]
215
+ }], ctorParameters: function () {
216
+ return [{ type: BbDashboard, decorators: [{
217
+ type: i0.Optional
218
+ }] }];
221
219
  } });
222
220
 
223
- var BbDashboardMenu = /** @class */ (function () {
224
- function BbDashboardMenu() {
225
- // Inputs.
226
- this.title = null;
227
- this.imageUrl = null;
228
- this.backUrlLink = null;
229
- this.backUrlTitle = null;
230
- }
231
- return BbDashboardMenu;
232
- }());
233
- BbDashboardMenu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardMenu, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
234
- BbDashboardMenu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardMenu, selector: "bb-dashboard-menu", inputs: { title: "title", imageUrl: "imageUrl", backUrlLink: "backUrlLink", backUrlTitle: "backUrlTitle" }, host: { attributes: { "role": "navigation" }, classAttribute: "bb-dashboard-menu" }, ngImport: i0__namespace, template: "<a *ngIf=\"backUrlLink && backUrlTitle\"\r\n [routerLink]=\"backUrlLink\"\r\n class=\"bb-dashboard-menu-link\">\r\n {{ backUrlTitle }}\r\n</a>\r\n\r\n<div class=\"bb-dashboard-menu-row\">\r\n <img *ngIf=\"imageUrl\"\r\n [src]=\"imageUrl\"\r\n class=\"bb-dashboard-menu-image\"\r\n alt=\"Menu image\">\r\n <h1 *ngIf=\"title as titleLabel\"\r\n class=\"bb-dashboard-menu-title\">\r\n {{ titleLabel }}\r\n </h1>\r\n</div>\r\n\r\n<nav class=\"bb-dashboard-menu-navigation\">\r\n <ng-content select=\"[bb-dashboard-menu-item]\"></ng-content>\r\n</nav>\r\n", styles: [".bb-dashboard-menu{display:block;margin-bottom:20px}.bb-dashboard-menu-link,.bb-dashboard-menu-title{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dashboard-menu-link{display:block;font-weight:500;margin-bottom:16px;text-decoration:none}.bb-dashboard-menu-link,.bb-dashboard-menu-link:visited{color:#a7a9c4!important}.bb-dashboard-menu-link:before{width:14px;content:\"\";height:13px;margin-right:3px;display:inline-block;background-size:cover;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 492 492'%3E%3Cpath fill='%23a7a9c4' d='M464.344 207.418l.768.168H135.888l103.496-103.724c5.068-5.064 7.848-11.924 7.848-19.124 0-7.2-2.78-14.012-7.848-19.088L223.28 49.538c-5.064-5.064-11.812-7.864-19.008-7.864-7.2 0-13.952 2.78-19.016 7.844L7.844 226.914C2.76 231.998-.02 238.77 0 245.974c-.02 7.244 2.76 14.02 7.844 19.096l177.412 177.412c5.064 5.06 11.812 7.844 19.016 7.844 7.196 0 13.944-2.788 19.008-7.844l16.104-16.112c5.068-5.056 7.848-11.808 7.848-19.008 0-7.196-2.78-13.592-7.848-18.652L134.72 284.406h329.992c14.828 0 27.288-12.78 27.288-27.6v-22.788c0-14.82-12.828-26.6-27.656-26.6z'/%3E%3C/svg%3E\")}.bb-dashboard-menu-row{display:flex;align-items:center;margin-bottom:10px}.bb-dashboard-menu-image{display:block;margin-right:10px;width:30px;height:30px;border-radius:50%}.bb-dashboard-menu-title{color:#272838;display:block;line-height:1;font-size:34px;font-weight:500}.bb-dashboard-menu-navigation{display:flex;overflow-x:auto;border-bottom:1px solid #d8d8d8}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
235
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardMenu, decorators: [{
236
- type: i0.Component,
237
- args: [{
238
- selector: 'bb-dashboard-menu',
239
- templateUrl: './dashboard-menu.component.html',
240
- styleUrls: ['./dashboard-menu.component.scss'],
241
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
242
- encapsulation: i0.ViewEncapsulation.None,
243
- preserveWhitespaces: false,
244
- host: {
245
- 'class': 'bb-dashboard-menu',
246
- 'role': 'navigation'
247
- }
248
- }]
249
- }], propDecorators: { title: [{
250
- type: i0.Input
251
- }], imageUrl: [{
252
- type: i0.Input
253
- }], backUrlLink: [{
254
- type: i0.Input
255
- }], backUrlTitle: [{
256
- type: i0.Input
221
+ var BbDashboardMenu = /** @class */ (function () {
222
+ function BbDashboardMenu() {
223
+ // Inputs.
224
+ this.title = null;
225
+ this.imageUrl = null;
226
+ this.backUrlLink = null;
227
+ this.backUrlTitle = null;
228
+ }
229
+ return BbDashboardMenu;
230
+ }());
231
+ BbDashboardMenu.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardMenu, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
232
+ BbDashboardMenu.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardMenu, selector: "bb-dashboard-menu", inputs: { title: "title", imageUrl: "imageUrl", backUrlLink: "backUrlLink", backUrlTitle: "backUrlTitle" }, host: { attributes: { "role": "navigation" }, classAttribute: "bb-dashboard-menu" }, ngImport: i0__namespace, template: "<a *ngIf=\"backUrlLink && backUrlTitle\"\n [routerLink]=\"backUrlLink\"\n class=\"bb-dashboard-menu-link\">\n {{ backUrlTitle }}\n</a>\n\n<div class=\"bb-dashboard-menu-row\">\n <img *ngIf=\"imageUrl\"\n [src]=\"imageUrl\"\n class=\"bb-dashboard-menu-image\"\n alt=\"Menu image\">\n <h1 *ngIf=\"title as titleLabel\"\n class=\"bb-dashboard-menu-title\">\n {{ titleLabel }}\n </h1>\n</div>\n\n<nav class=\"bb-dashboard-menu-navigation\">\n <ng-content select=\"[bb-dashboard-menu-item]\"></ng-content>\n</nav>\n", styles: [".bb-dashboard-menu{display:block;margin-bottom:20px}.bb-dashboard-menu-link,.bb-dashboard-menu-title{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dashboard-menu-link{display:block;font-weight:500;margin-bottom:16px;text-decoration:none}.bb-dashboard-menu-link,.bb-dashboard-menu-link:visited{color:#a7a9c4!important}.bb-dashboard-menu-link:before{width:14px;content:\"\";height:13px;margin-right:3px;display:inline-block;background-size:cover;background-image:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 492 492'%3E%3Cpath fill='%23a7a9c4' d='M464.344 207.418l.768.168H135.888l103.496-103.724c5.068-5.064 7.848-11.924 7.848-19.124 0-7.2-2.78-14.012-7.848-19.088L223.28 49.538c-5.064-5.064-11.812-7.864-19.008-7.864-7.2 0-13.952 2.78-19.016 7.844L7.844 226.914C2.76 231.998-.02 238.77 0 245.974c-.02 7.244 2.76 14.02 7.844 19.096l177.412 177.412c5.064 5.06 11.812 7.844 19.016 7.844 7.196 0 13.944-2.788 19.008-7.844l16.104-16.112c5.068-5.056 7.848-11.808 7.848-19.008 0-7.196-2.78-13.592-7.848-18.652L134.72 284.406h329.992c14.828 0 27.288-12.78 27.288-27.6v-22.788c0-14.82-12.828-26.6-27.656-26.6z'/%3E%3C/svg%3E\")}.bb-dashboard-menu-row{display:flex;align-items:center;margin-bottom:10px}.bb-dashboard-menu-image{display:block;margin-right:10px;width:30px;height:30px;border-radius:50%}.bb-dashboard-menu-title{color:#272838;display:block;line-height:1;font-size:34px;font-weight:500}.bb-dashboard-menu-navigation{display:flex;overflow-x:auto;border-bottom:1px solid #d8d8d8}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace$1.RouterLinkWithHref, selector: "a[routerLink],area[routerLink]", inputs: ["routerLink", "target", "queryParams", "fragment", "queryParamsHandling", "preserveFragment", "skipLocationChange", "replaceUrl", "state", "relativeTo"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
233
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardMenu, decorators: [{
234
+ type: i0.Component,
235
+ args: [{
236
+ selector: 'bb-dashboard-menu',
237
+ templateUrl: './dashboard-menu.component.html',
238
+ styleUrls: ['./dashboard-menu.component.scss'],
239
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
240
+ encapsulation: i0.ViewEncapsulation.None,
241
+ preserveWhitespaces: false,
242
+ host: {
243
+ 'class': 'bb-dashboard-menu',
244
+ 'role': 'navigation'
245
+ }
246
+ }]
247
+ }], propDecorators: { title: [{
248
+ type: i0.Input
249
+ }], imageUrl: [{
250
+ type: i0.Input
251
+ }], backUrlLink: [{
252
+ type: i0.Input
253
+ }], backUrlTitle: [{
254
+ type: i0.Input
257
255
  }] } });
258
256
 
259
- /*! *****************************************************************************
260
- Copyright (c) Microsoft Corporation.
261
-
262
- Permission to use, copy, modify, and/or distribute this software for any
263
- purpose with or without fee is hereby granted.
264
-
265
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
266
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
267
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
268
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
269
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
270
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
271
- PERFORMANCE OF THIS SOFTWARE.
272
- ***************************************************************************** */
273
- /* global Reflect, Promise */
274
- var extendStatics = function (d, b) {
275
- extendStatics = Object.setPrototypeOf ||
276
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
277
- function (d, b) { for (var p in b)
278
- if (Object.prototype.hasOwnProperty.call(b, p))
279
- d[p] = b[p]; };
280
- return extendStatics(d, b);
281
- };
282
- function __extends(d, b) {
283
- if (typeof b !== "function" && b !== null)
284
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
285
- extendStatics(d, b);
286
- function __() { this.constructor = d; }
287
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
288
- }
289
- var __assign = function () {
290
- __assign = Object.assign || function __assign(t) {
291
- for (var s, i = 1, n = arguments.length; i < n; i++) {
292
- s = arguments[i];
293
- for (var p in s)
294
- if (Object.prototype.hasOwnProperty.call(s, p))
295
- t[p] = s[p];
296
- }
297
- return t;
298
- };
299
- return __assign.apply(this, arguments);
300
- };
301
- function __rest(s, e) {
302
- var t = {};
303
- for (var p in s)
304
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
305
- t[p] = s[p];
306
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
307
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
308
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
309
- t[p[i]] = s[p[i]];
310
- }
311
- return t;
312
- }
313
- function __decorate(decorators, target, key, desc) {
314
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
315
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
316
- r = Reflect.decorate(decorators, target, key, desc);
317
- else
318
- for (var i = decorators.length - 1; i >= 0; i--)
319
- if (d = decorators[i])
320
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
321
- return c > 3 && r && Object.defineProperty(target, key, r), r;
322
- }
323
- function __param(paramIndex, decorator) {
324
- return function (target, key) { decorator(target, key, paramIndex); };
325
- }
326
- function __metadata(metadataKey, metadataValue) {
327
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
328
- return Reflect.metadata(metadataKey, metadataValue);
329
- }
330
- function __awaiter(thisArg, _arguments, P, generator) {
331
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
332
- return new (P || (P = Promise))(function (resolve, reject) {
333
- function fulfilled(value) { try {
334
- step(generator.next(value));
335
- }
336
- catch (e) {
337
- reject(e);
338
- } }
339
- function rejected(value) { try {
340
- step(generator["throw"](value));
341
- }
342
- catch (e) {
343
- reject(e);
344
- } }
345
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
346
- step((generator = generator.apply(thisArg, _arguments || [])).next());
347
- });
348
- }
349
- function __generator(thisArg, body) {
350
- var _ = { label: 0, sent: function () { if (t[0] & 1)
351
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
352
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
353
- function verb(n) { return function (v) { return step([n, v]); }; }
354
- function step(op) {
355
- if (f)
356
- throw new TypeError("Generator is already executing.");
357
- while (_)
358
- try {
359
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
360
- return t;
361
- if (y = 0, t)
362
- op = [op[0] & 2, t.value];
363
- switch (op[0]) {
364
- case 0:
365
- case 1:
366
- t = op;
367
- break;
368
- case 4:
369
- _.label++;
370
- return { value: op[1], done: false };
371
- case 5:
372
- _.label++;
373
- y = op[1];
374
- op = [0];
375
- continue;
376
- case 7:
377
- op = _.ops.pop();
378
- _.trys.pop();
379
- continue;
380
- default:
381
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
382
- _ = 0;
383
- continue;
384
- }
385
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
386
- _.label = op[1];
387
- break;
388
- }
389
- if (op[0] === 6 && _.label < t[1]) {
390
- _.label = t[1];
391
- t = op;
392
- break;
393
- }
394
- if (t && _.label < t[2]) {
395
- _.label = t[2];
396
- _.ops.push(op);
397
- break;
398
- }
399
- if (t[2])
400
- _.ops.pop();
401
- _.trys.pop();
402
- continue;
403
- }
404
- op = body.call(thisArg, _);
405
- }
406
- catch (e) {
407
- op = [6, e];
408
- y = 0;
409
- }
410
- finally {
411
- f = t = 0;
412
- }
413
- if (op[0] & 5)
414
- throw op[1];
415
- return { value: op[0] ? op[1] : void 0, done: true };
416
- }
417
- }
418
- var __createBinding = Object.create ? (function (o, m, k, k2) {
419
- if (k2 === undefined)
420
- k2 = k;
421
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
422
- }) : (function (o, m, k, k2) {
423
- if (k2 === undefined)
424
- k2 = k;
425
- o[k2] = m[k];
426
- });
427
- function __exportStar(m, o) {
428
- for (var p in m)
429
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
430
- __createBinding(o, m, p);
431
- }
432
- function __values(o) {
433
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
434
- if (m)
435
- return m.call(o);
436
- if (o && typeof o.length === "number")
437
- return {
438
- next: function () {
439
- if (o && i >= o.length)
440
- o = void 0;
441
- return { value: o && o[i++], done: !o };
442
- }
443
- };
444
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
445
- }
446
- function __read(o, n) {
447
- var m = typeof Symbol === "function" && o[Symbol.iterator];
448
- if (!m)
449
- return o;
450
- var i = m.call(o), r, ar = [], e;
451
- try {
452
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
453
- ar.push(r.value);
454
- }
455
- catch (error) {
456
- e = { error: error };
457
- }
458
- finally {
459
- try {
460
- if (r && !r.done && (m = i["return"]))
461
- m.call(i);
462
- }
463
- finally {
464
- if (e)
465
- throw e.error;
466
- }
467
- }
468
- return ar;
469
- }
470
- /** @deprecated */
471
- function __spread() {
472
- for (var ar = [], i = 0; i < arguments.length; i++)
473
- ar = ar.concat(__read(arguments[i]));
474
- return ar;
475
- }
476
- /** @deprecated */
477
- function __spreadArrays() {
478
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
479
- s += arguments[i].length;
480
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
481
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
482
- r[k] = a[j];
483
- return r;
484
- }
485
- function __spreadArray(to, from, pack) {
486
- if (pack || arguments.length === 2)
487
- for (var i = 0, l = from.length, ar; i < l; i++) {
488
- if (ar || !(i in from)) {
489
- if (!ar)
490
- ar = Array.prototype.slice.call(from, 0, i);
491
- ar[i] = from[i];
492
- }
493
- }
494
- return to.concat(ar || from);
495
- }
496
- function __await(v) {
497
- return this instanceof __await ? (this.v = v, this) : new __await(v);
498
- }
499
- function __asyncGenerator(thisArg, _arguments, generator) {
500
- if (!Symbol.asyncIterator)
501
- throw new TypeError("Symbol.asyncIterator is not defined.");
502
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
503
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
504
- function verb(n) { if (g[n])
505
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
506
- function resume(n, v) { try {
507
- step(g[n](v));
508
- }
509
- catch (e) {
510
- settle(q[0][3], e);
511
- } }
512
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
513
- function fulfill(value) { resume("next", value); }
514
- function reject(value) { resume("throw", value); }
515
- function settle(f, v) { if (f(v), q.shift(), q.length)
516
- resume(q[0][0], q[0][1]); }
517
- }
518
- function __asyncDelegator(o) {
519
- var i, p;
520
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
521
- function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
522
- }
523
- function __asyncValues(o) {
524
- if (!Symbol.asyncIterator)
525
- throw new TypeError("Symbol.asyncIterator is not defined.");
526
- var m = o[Symbol.asyncIterator], i;
527
- return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
528
- function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
529
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
530
- }
531
- function __makeTemplateObject(cooked, raw) {
532
- if (Object.defineProperty) {
533
- Object.defineProperty(cooked, "raw", { value: raw });
534
- }
535
- else {
536
- cooked.raw = raw;
537
- }
538
- return cooked;
539
- }
540
- ;
541
- var __setModuleDefault = Object.create ? (function (o, v) {
542
- Object.defineProperty(o, "default", { enumerable: true, value: v });
543
- }) : function (o, v) {
544
- o["default"] = v;
545
- };
546
- function __importStar(mod) {
547
- if (mod && mod.__esModule)
548
- return mod;
549
- var result = {};
550
- if (mod != null)
551
- for (var k in mod)
552
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
553
- __createBinding(result, mod, k);
554
- __setModuleDefault(result, mod);
555
- return result;
556
- }
557
- function __importDefault(mod) {
558
- return (mod && mod.__esModule) ? mod : { default: mod };
559
- }
560
- function __classPrivateFieldGet(receiver, state, kind, f) {
561
- if (kind === "a" && !f)
562
- throw new TypeError("Private accessor was defined without a getter");
563
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
564
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
565
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
566
- }
567
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
568
- if (kind === "m")
569
- throw new TypeError("Private method is not writable");
570
- if (kind === "a" && !f)
571
- throw new TypeError("Private accessor was defined without a setter");
572
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
573
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
574
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
257
+ /*! *****************************************************************************
258
+ Copyright (c) Microsoft Corporation.
259
+
260
+ Permission to use, copy, modify, and/or distribute this software for any
261
+ purpose with or without fee is hereby granted.
262
+
263
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
264
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
265
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
266
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
267
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
268
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
269
+ PERFORMANCE OF THIS SOFTWARE.
270
+ ***************************************************************************** */
271
+ /* global Reflect, Promise */
272
+ var extendStatics = function (d, b) {
273
+ extendStatics = Object.setPrototypeOf ||
274
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
275
+ function (d, b) { for (var p in b)
276
+ if (Object.prototype.hasOwnProperty.call(b, p))
277
+ d[p] = b[p]; };
278
+ return extendStatics(d, b);
279
+ };
280
+ function __extends(d, b) {
281
+ if (typeof b !== "function" && b !== null)
282
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
283
+ extendStatics(d, b);
284
+ function __() { this.constructor = d; }
285
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
286
+ }
287
+ var __assign = function () {
288
+ __assign = Object.assign || function __assign(t) {
289
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
290
+ s = arguments[i];
291
+ for (var p in s)
292
+ if (Object.prototype.hasOwnProperty.call(s, p))
293
+ t[p] = s[p];
294
+ }
295
+ return t;
296
+ };
297
+ return __assign.apply(this, arguments);
298
+ };
299
+ function __rest(s, e) {
300
+ var t = {};
301
+ for (var p in s)
302
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
303
+ t[p] = s[p];
304
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
305
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
306
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
307
+ t[p[i]] = s[p[i]];
308
+ }
309
+ return t;
310
+ }
311
+ function __decorate(decorators, target, key, desc) {
312
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
313
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
314
+ r = Reflect.decorate(decorators, target, key, desc);
315
+ else
316
+ for (var i = decorators.length - 1; i >= 0; i--)
317
+ if (d = decorators[i])
318
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
319
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
320
+ }
321
+ function __param(paramIndex, decorator) {
322
+ return function (target, key) { decorator(target, key, paramIndex); };
323
+ }
324
+ function __metadata(metadataKey, metadataValue) {
325
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
326
+ return Reflect.metadata(metadataKey, metadataValue);
327
+ }
328
+ function __awaiter(thisArg, _arguments, P, generator) {
329
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
330
+ return new (P || (P = Promise))(function (resolve, reject) {
331
+ function fulfilled(value) { try {
332
+ step(generator.next(value));
333
+ }
334
+ catch (e) {
335
+ reject(e);
336
+ } }
337
+ function rejected(value) { try {
338
+ step(generator["throw"](value));
339
+ }
340
+ catch (e) {
341
+ reject(e);
342
+ } }
343
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
344
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
345
+ });
346
+ }
347
+ function __generator(thisArg, body) {
348
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
349
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
350
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
351
+ function verb(n) { return function (v) { return step([n, v]); }; }
352
+ function step(op) {
353
+ if (f)
354
+ throw new TypeError("Generator is already executing.");
355
+ while (_)
356
+ try {
357
+ if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done)
358
+ return t;
359
+ if (y = 0, t)
360
+ op = [op[0] & 2, t.value];
361
+ switch (op[0]) {
362
+ case 0:
363
+ case 1:
364
+ t = op;
365
+ break;
366
+ case 4:
367
+ _.label++;
368
+ return { value: op[1], done: false };
369
+ case 5:
370
+ _.label++;
371
+ y = op[1];
372
+ op = [0];
373
+ continue;
374
+ case 7:
375
+ op = _.ops.pop();
376
+ _.trys.pop();
377
+ continue;
378
+ default:
379
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
380
+ _ = 0;
381
+ continue;
382
+ }
383
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
384
+ _.label = op[1];
385
+ break;
386
+ }
387
+ if (op[0] === 6 && _.label < t[1]) {
388
+ _.label = t[1];
389
+ t = op;
390
+ break;
391
+ }
392
+ if (t && _.label < t[2]) {
393
+ _.label = t[2];
394
+ _.ops.push(op);
395
+ break;
396
+ }
397
+ if (t[2])
398
+ _.ops.pop();
399
+ _.trys.pop();
400
+ continue;
401
+ }
402
+ op = body.call(thisArg, _);
403
+ }
404
+ catch (e) {
405
+ op = [6, e];
406
+ y = 0;
407
+ }
408
+ finally {
409
+ f = t = 0;
410
+ }
411
+ if (op[0] & 5)
412
+ throw op[1];
413
+ return { value: op[0] ? op[1] : void 0, done: true };
414
+ }
415
+ }
416
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
417
+ if (k2 === undefined)
418
+ k2 = k;
419
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
420
+ }) : (function (o, m, k, k2) {
421
+ if (k2 === undefined)
422
+ k2 = k;
423
+ o[k2] = m[k];
424
+ });
425
+ function __exportStar(m, o) {
426
+ for (var p in m)
427
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
428
+ __createBinding(o, m, p);
429
+ }
430
+ function __values(o) {
431
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
432
+ if (m)
433
+ return m.call(o);
434
+ if (o && typeof o.length === "number")
435
+ return {
436
+ next: function () {
437
+ if (o && i >= o.length)
438
+ o = void 0;
439
+ return { value: o && o[i++], done: !o };
440
+ }
441
+ };
442
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
443
+ }
444
+ function __read(o, n) {
445
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
446
+ if (!m)
447
+ return o;
448
+ var i = m.call(o), r, ar = [], e;
449
+ try {
450
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
451
+ ar.push(r.value);
452
+ }
453
+ catch (error) {
454
+ e = { error: error };
455
+ }
456
+ finally {
457
+ try {
458
+ if (r && !r.done && (m = i["return"]))
459
+ m.call(i);
460
+ }
461
+ finally {
462
+ if (e)
463
+ throw e.error;
464
+ }
465
+ }
466
+ return ar;
467
+ }
468
+ /** @deprecated */
469
+ function __spread() {
470
+ for (var ar = [], i = 0; i < arguments.length; i++)
471
+ ar = ar.concat(__read(arguments[i]));
472
+ return ar;
473
+ }
474
+ /** @deprecated */
475
+ function __spreadArrays() {
476
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
477
+ s += arguments[i].length;
478
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
479
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
480
+ r[k] = a[j];
481
+ return r;
482
+ }
483
+ function __spreadArray(to, from, pack) {
484
+ if (pack || arguments.length === 2)
485
+ for (var i = 0, l = from.length, ar; i < l; i++) {
486
+ if (ar || !(i in from)) {
487
+ if (!ar)
488
+ ar = Array.prototype.slice.call(from, 0, i);
489
+ ar[i] = from[i];
490
+ }
491
+ }
492
+ return to.concat(ar || Array.prototype.slice.call(from));
493
+ }
494
+ function __await(v) {
495
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
496
+ }
497
+ function __asyncGenerator(thisArg, _arguments, generator) {
498
+ if (!Symbol.asyncIterator)
499
+ throw new TypeError("Symbol.asyncIterator is not defined.");
500
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
501
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
502
+ function verb(n) { if (g[n])
503
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
504
+ function resume(n, v) { try {
505
+ step(g[n](v));
506
+ }
507
+ catch (e) {
508
+ settle(q[0][3], e);
509
+ } }
510
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
511
+ function fulfill(value) { resume("next", value); }
512
+ function reject(value) { resume("throw", value); }
513
+ function settle(f, v) { if (f(v), q.shift(), q.length)
514
+ resume(q[0][0], q[0][1]); }
515
+ }
516
+ function __asyncDelegator(o) {
517
+ var i, p;
518
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
519
+ function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
520
+ }
521
+ function __asyncValues(o) {
522
+ if (!Symbol.asyncIterator)
523
+ throw new TypeError("Symbol.asyncIterator is not defined.");
524
+ var m = o[Symbol.asyncIterator], i;
525
+ return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
526
+ function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
527
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
528
+ }
529
+ function __makeTemplateObject(cooked, raw) {
530
+ if (Object.defineProperty) {
531
+ Object.defineProperty(cooked, "raw", { value: raw });
532
+ }
533
+ else {
534
+ cooked.raw = raw;
535
+ }
536
+ return cooked;
537
+ }
538
+ ;
539
+ var __setModuleDefault = Object.create ? (function (o, v) {
540
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
541
+ }) : function (o, v) {
542
+ o["default"] = v;
543
+ };
544
+ function __importStar(mod) {
545
+ if (mod && mod.__esModule)
546
+ return mod;
547
+ var result = {};
548
+ if (mod != null)
549
+ for (var k in mod)
550
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
551
+ __createBinding(result, mod, k);
552
+ __setModuleDefault(result, mod);
553
+ return result;
554
+ }
555
+ function __importDefault(mod) {
556
+ return (mod && mod.__esModule) ? mod : { default: mod };
557
+ }
558
+ function __classPrivateFieldGet(receiver, state, kind, f) {
559
+ if (kind === "a" && !f)
560
+ throw new TypeError("Private accessor was defined without a getter");
561
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
562
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
563
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
564
+ }
565
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
566
+ if (kind === "m")
567
+ throw new TypeError("Private method is not writable");
568
+ if (kind === "a" && !f)
569
+ throw new TypeError("Private accessor was defined without a setter");
570
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
571
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
572
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
575
573
  }
576
574
 
577
- var BbDashboardMenuItemBase = /** @class */ (function () {
578
- function BbDashboardMenuItemBase() {
579
- }
580
- return BbDashboardMenuItemBase;
581
- }());
582
- var BbDashboardMenuItemMixinBase = i1$1.mixinDisabled(BbDashboardMenuItemBase);
583
- var BbDashboardMenuItem = /** @class */ (function (_super) {
584
- __extends(BbDashboardMenuItem, _super);
585
- function BbDashboardMenuItem() {
586
- return _super !== null && _super.apply(this, arguments) || this;
587
- }
588
- BbDashboardMenuItem.prototype.stopDisabledEvents = function (event) {
589
- // If the menu item is not disabled let all events pass.
590
- if (!this.disabled) {
591
- return;
592
- }
593
- // If the menu item is disabled stop the event from
594
- // bubbling up.
595
- event.preventDefault();
596
- event.stopImmediatePropagation();
597
- };
598
- return BbDashboardMenuItem;
599
- }(BbDashboardMenuItemMixinBase));
600
- BbDashboardMenuItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardMenuItem, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
601
- BbDashboardMenuItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardMenuItem, selector: "[bb-dashboard-menu-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "stopDisabledEvents($event)" }, properties: { "class.disabled": "disabled" }, classAttribute: "bb-dashboard-menu-item" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"[bbPrefix]\"></ng-content>\r\n<span class=\"bb-dashboard-menu-item-content\">\r\n <ng-content></ng-content>\r\n</span>\r\n<ng-content select=\"[bbSuffix]\"></ng-content>\r\n", styles: [".bb-dashboard-menu-item{margin:0;padding:0;display:flex;max-width:100%;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;white-space:nowrap;background-color:transparent;text-decoration:none!important;border:none;border-bottom:2px solid transparent}.bb-dashboard-menu-item,.bb-dashboard-menu-item:visited{color:#6b5c5c}.bb-dashboard-menu-item:not(:first-child){margin-left:10px}.bb-dashboard-menu-item:not(:last-child){margin-right:10px}.bb-dashboard-menu-item:hover:not(.disabled):not(.active){border-color:rgba(117,119,148,.2)}.bb-dashboard-menu-item.active,.bb-dashboard-menu-item.active:visited .bb-dashboard-menu-item.active:hover{color:#5b53ff;border-color:#5b53ff}.bb-dashboard-menu-item.disabled,.bb-dashboard-menu-item.disabled:active,.bb-dashboard-menu-item.disabled:focus,.bb-dashboard-menu-item.disabled:hover{opacity:.4;cursor:default;box-shadow:none}.bb-dashboard-menu-item>.bb-prefix{margin-right:5px}.bb-dashboard-menu-item>.bb-suffix{margin-left:5px}.bb-dashboard-menu-item-content{height:38px;display:block;font-weight:500;line-height:38px}"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
602
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardMenuItem, decorators: [{
603
- type: i0.Component,
604
- args: [{
605
- selector: '[bb-dashboard-menu-item]',
606
- templateUrl: './dashboard-menu-item.component.html',
607
- styleUrls: ['./dashboard-menu-item.component.scss'],
608
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
609
- encapsulation: i0.ViewEncapsulation.None,
610
- preserveWhitespaces: false,
611
- inputs: ['disabled'],
612
- host: {
613
- 'class': 'bb-dashboard-menu-item',
614
- '[class.disabled]': 'disabled',
615
- '(click)': 'stopDisabledEvents($event)'
616
- }
617
- }]
575
+ var BbDashboardMenuItemBase = /** @class */ (function () {
576
+ function BbDashboardMenuItemBase() {
577
+ }
578
+ return BbDashboardMenuItemBase;
579
+ }());
580
+ var BbDashboardMenuItemMixinBase = i1$1.mixinDisabled(BbDashboardMenuItemBase);
581
+ var BbDashboardMenuItem = /** @class */ (function (_super) {
582
+ __extends(BbDashboardMenuItem, _super);
583
+ function BbDashboardMenuItem() {
584
+ return _super !== null && _super.apply(this, arguments) || this;
585
+ }
586
+ BbDashboardMenuItem.prototype.stopDisabledEvents = function (event) {
587
+ // If the menu item is not disabled let all events pass.
588
+ if (!this.disabled) {
589
+ return;
590
+ }
591
+ // If the menu item is disabled stop the event from
592
+ // bubbling up.
593
+ event.preventDefault();
594
+ event.stopImmediatePropagation();
595
+ };
596
+ return BbDashboardMenuItem;
597
+ }(BbDashboardMenuItemMixinBase));
598
+ BbDashboardMenuItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardMenuItem, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
599
+ BbDashboardMenuItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardMenuItem, selector: "[bb-dashboard-menu-item]", inputs: { disabled: "disabled" }, host: { listeners: { "click": "stopDisabledEvents($event)" }, properties: { "class.disabled": "disabled" }, classAttribute: "bb-dashboard-menu-item" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-content select=\"[bbPrefix]\"></ng-content>\n<span class=\"bb-dashboard-menu-item-content\">\n <ng-content></ng-content>\n</span>\n<ng-content select=\"[bbSuffix]\"></ng-content>\n", styles: [".bb-dashboard-menu-item{margin:0;padding:0;border:none;display:flex;max-width:100%;font-size:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;align-items:center;white-space:nowrap;background-color:transparent;text-decoration:none!important;border-bottom:2px solid transparent}.bb-dashboard-menu-item,.bb-dashboard-menu-item:visited{color:#6b5c5c}.bb-dashboard-menu-item:not(:first-child){margin-left:10px}.bb-dashboard-menu-item:not(:last-child){margin-right:10px}.bb-dashboard-menu-item:hover:not(.disabled):not(.active){border-color:#75779433}.bb-dashboard-menu-item.active,.bb-dashboard-menu-item.active:visited .bb-dashboard-menu-item.active:hover{color:#5b53ff;border-color:#5b53ff}.bb-dashboard-menu-item.disabled,.bb-dashboard-menu-item.disabled:focus,.bb-dashboard-menu-item.disabled:hover,.bb-dashboard-menu-item.disabled:active{opacity:.4;cursor:default;box-shadow:none}.bb-dashboard-menu-item>.bb-prefix{margin-right:5px}.bb-dashboard-menu-item>.bb-suffix{margin-left:5px}.bb-dashboard-menu-item-content{height:38px;display:block;font-weight:500;line-height:38px}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
600
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardMenuItem, decorators: [{
601
+ type: i0.Component,
602
+ args: [{
603
+ selector: '[bb-dashboard-menu-item]',
604
+ templateUrl: './dashboard-menu-item.component.html',
605
+ styleUrls: ['./dashboard-menu-item.component.scss'],
606
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
607
+ encapsulation: i0.ViewEncapsulation.None,
608
+ preserveWhitespaces: false,
609
+ inputs: ['disabled'],
610
+ host: {
611
+ 'class': 'bb-dashboard-menu-item',
612
+ '[class.disabled]': 'disabled',
613
+ '(click)': 'stopDisabledEvents($event)'
614
+ }
615
+ }]
618
616
  }] });
619
617
 
620
- var BbDashboardSidebarGroupBase = /** @class */ (function () {
621
- function BbDashboardSidebarGroupBase(_parent) {
622
- this._parent = _parent;
623
- }
624
- return BbDashboardSidebarGroupBase;
625
- }());
626
- var BbDashboardSidebarGroupMixinBase = i1$1.mixinDisabled(BbDashboardSidebarGroupBase);
627
- var BbDashboardSidebarGroup = /** @class */ (function (_super) {
628
- __extends(BbDashboardSidebarGroup, _super);
629
- function BbDashboardSidebarGroup(_parent) {
630
- var _this = _super.call(this, _parent) || this;
631
- _this._parent = _parent;
632
- // Inputs.
633
- _this.id = null;
634
- _this.icon = null;
635
- _this.title = null;
636
- // State.
637
- _this._isExpanded = false;
638
- return _this;
639
- }
640
- Object.defineProperty(BbDashboardSidebarGroup.prototype, "hasToggle", {
641
- get: function () {
642
- // Check if the user provided a icon and/or title.
643
- return !!this.icon || !!this.title;
644
- },
645
- enumerable: false,
646
- configurable: true
647
- });
648
- Object.defineProperty(BbDashboardSidebarGroup.prototype, "isExpanded", {
649
- get: function () {
650
- // If there is an icon or title the group can be
651
- // expanded by clicking, else not.
652
- return this.hasToggle
653
- ? this._isExpanded
654
- : true;
655
- },
656
- enumerable: false,
657
- configurable: true
658
- });
659
- BbDashboardSidebarGroup.prototype.ngOnInit = function () {
660
- var _this = this;
661
- var _a, _b;
662
- // Check if the id has been supplied.
663
- if (!this.id) {
664
- throw new Error('Id is required.');
665
- }
666
- // Register the group at the parent and
667
- // retrieve the slice of the state.
668
- var observable$ = (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.registerGroup(this.id)) !== null && _b !== void 0 ? _b : rxjs.of(false);
669
- // Subscribe to the state.
670
- this._subscription = observable$
671
- .subscribe(function (isExpanded) { return _this._isExpanded = isExpanded; });
672
- };
673
- BbDashboardSidebarGroup.prototype.ngOnDestroy = function () {
674
- // Unsubscribe to prevent memory leaks.
675
- this._subscription && this._subscription.unsubscribe();
676
- // Unregister the group at the parent.
677
- this._parent && this._parent.unregisterGroup(this.id);
678
- };
679
- BbDashboardSidebarGroup.prototype.onClick = function () {
680
- var _a;
681
- // Verify the group is not disabled.
682
- if (this.disabled) {
683
- return;
684
- }
685
- // Change the state.
686
- var newValue = !this._isExpanded;
687
- // Set the state of the sidebar group.
688
- (_a = this._parent) === null || _a === void 0 ? void 0 : _a.toggleGroup(this.id, newValue);
689
- };
690
- BbDashboardSidebarGroup.prototype.onGroupClicked = function (event) {
691
- // If the group is not disabled don't do anything.
692
- if (!this.disabled) {
693
- return;
694
- }
695
- event.preventDefault();
696
- event.stopPropagation();
697
- };
698
- return BbDashboardSidebarGroup;
699
- }(BbDashboardSidebarGroupMixinBase));
700
- BbDashboardSidebarGroup.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebarGroup, deps: [{ token: BbDashboardSidebar, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
701
- BbDashboardSidebarGroup.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardSidebarGroup, selector: "bb-dashboard-sidebar-group", inputs: { disabled: "disabled", id: "id", icon: "icon", title: "title" }, host: { attributes: { "role": "group" }, listeners: { "click": "onGroupClicked($event)" }, properties: { "class.expanded": "isExpanded", "class.with-toggle": "hasToggle", "class.has-icon": "!!icon", "class.disabled": "disabled" }, classAttribute: "bb-dashboard-sidebar-group" }, usesInheritance: true, ngImport: i0__namespace, template: "<!--\r\n The wrapper that contains the title and icon.\r\n-->\r\n<button *ngIf=\"hasToggle\"\r\n (click)=\"onClick()\"\r\n class=\"bb-dashboard-sidebar-group-title\"\r\n type=\"button\"\r\n role=\"switch\">\r\n <bb-icon *ngIf=\"icon as iconName\"\r\n [src]=\"iconName\"\r\n class=\"bb-dashboard-sidebar-group-icon\">\r\n </bb-icon>\r\n <span *ngIf=\"title as titleText\"\r\n role=\"heading\"\r\n class=\"bb-dashboard-sidebar-group-text\">\r\n {{ titleText }}\r\n </span>\r\n <span class=\"bb-dashboard-sidebar-group-toggle\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 21.7 30.9\"\r\n width=\"10\"\r\n height=\"10\"\r\n role=\"img\">\r\n <path\r\n d=\"M10.1.3L.2 11.8c-.6.6-.1 1.7.8 1.7h19.7c.9 0 1.3-1 .8-1.7L11.6.3c-.4-.4-1.1-.4-1.5 0zM10.1 30.6L.2 19.1c-.6-.6-.1-1.7.8-1.7h19.7c.9 0 1.3 1 .8 1.7l-9.8 11.5c-.5.4-1.2.4-1.6 0z\">\r\n </path>\r\n </svg>\r\n </span>\r\n</button>\r\n\r\n<!--\r\n The sidebar items that contain the\r\n links to navigate to other pages.\r\n-->\r\n<ng-content select=\"[bb-dashboard-sidebar-item]\">\r\n</ng-content>\r\n", styles: [".bb-dashboard-sidebar-group{color:#000;display:block;overflow:hidden;border-bottom:1px solid rgba(0,0,0,.1);transition:background-color .2s cubic-bezier(0,0,.2,1),padding-bottom .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group.expanded{background-color:rgba(0,0,0,.04)}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-group-title{color:#000}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-item{opacity:1;height:32px;line-height:32px;padding:6px 16px}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-group-toggle{opacity:0;transform:translateX(10px)}.bb-dashboard-sidebar-group.with-toggle.expanded{padding-bottom:20px}.bb-dashboard-sidebar-group.has-icon .bb-dashboard-sidebar-item{padding-left:54px}.bb-dashboard-sidebar-group.disabled{opacity:.5}.bb-dashboard-sidebar-group-title{margin:0;width:100%;border:none;display:flex;cursor:pointer;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;padding:17px 15px;color:rgba(0,0,0,.8);background-color:transparent;transition:color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group-title:active>.bb-dashboard-sidebar-group-toggle{background-color:rgba(0,0,0,.08)}.bb-dashboard-sidebar-group-icon{margin-right:15px;color:rgba(0,0,0,.25)}.bb-dashboard-sidebar-group-text{width:100%;display:block;font-size:14px;max-width:100%;overflow:hidden;font-weight:500;line-height:15px;white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase}.bb-dashboard-sidebar-group-toggle{width:22px;height:22px;display:flex;min-width:22px;min-height:22px;margin-left:auto;border-radius:3px;align-items:center;justify-content:center;transition:opacity .2s cubic-bezier(0,0,.2,1),transform .2s cubic-bezier(0,0,.2,1),background-color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group-toggle>svg{width:10px;height:10px;fill:rgba(0,0,0,.25)}"], components: [{ type: i2__namespace$2.BbIcon, selector: "bb-icon", inputs: ["alt", "size", "src", "ariaHidden"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
702
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebarGroup, decorators: [{
703
- type: i0.Component,
704
- args: [{
705
- selector: 'bb-dashboard-sidebar-group',
706
- templateUrl: './dashboard-sidebar-group.component.html',
707
- styleUrls: ['./dashboard-sidebar-group.component.scss'],
708
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
709
- encapsulation: i0.ViewEncapsulation.None,
710
- preserveWhitespaces: false,
711
- inputs: ['disabled'],
712
- host: {
713
- 'class': 'bb-dashboard-sidebar-group',
714
- '[class.expanded]': 'isExpanded',
715
- '[class.with-toggle]': 'hasToggle',
716
- '[class.has-icon]': '!!icon',
717
- '[class.disabled]': 'disabled',
718
- 'role': 'group'
719
- }
720
- }]
721
- }], ctorParameters: function () {
722
- return [{ type: BbDashboardSidebar, decorators: [{
723
- type: i0.Optional
724
- }, {
725
- type: i0.Host
726
- }] }];
727
- }, propDecorators: { id: [{
728
- type: i0.Input
729
- }], icon: [{
730
- type: i0.Input
731
- }], title: [{
732
- type: i0.Input
733
- }], onGroupClicked: [{
734
- type: i0.HostListener,
735
- args: ['click', ['$event']]
618
+ var BbDashboardSidebarGroupBase = /** @class */ (function () {
619
+ function BbDashboardSidebarGroupBase(_parent) {
620
+ this._parent = _parent;
621
+ }
622
+ return BbDashboardSidebarGroupBase;
623
+ }());
624
+ var BbDashboardSidebarGroupMixinBase = i1$1.mixinDisabled(BbDashboardSidebarGroupBase);
625
+ var BbDashboardSidebarGroup = /** @class */ (function (_super) {
626
+ __extends(BbDashboardSidebarGroup, _super);
627
+ function BbDashboardSidebarGroup(_parent) {
628
+ var _this = _super.call(this, _parent) || this;
629
+ _this._parent = _parent;
630
+ // Inputs.
631
+ _this.id = null;
632
+ _this.icon = null;
633
+ _this.title = null;
634
+ // State.
635
+ _this._isExpanded = false;
636
+ return _this;
637
+ }
638
+ Object.defineProperty(BbDashboardSidebarGroup.prototype, "hasToggle", {
639
+ get: function () {
640
+ // Check if the user provided a icon and/or title.
641
+ return !!this.icon || !!this.title;
642
+ },
643
+ enumerable: false,
644
+ configurable: true
645
+ });
646
+ Object.defineProperty(BbDashboardSidebarGroup.prototype, "isExpanded", {
647
+ get: function () {
648
+ // If there is an icon or title the group can be
649
+ // expanded by clicking, else not.
650
+ return this.hasToggle
651
+ ? this._isExpanded
652
+ : true;
653
+ },
654
+ enumerable: false,
655
+ configurable: true
656
+ });
657
+ BbDashboardSidebarGroup.prototype.ngOnInit = function () {
658
+ var _this = this;
659
+ var _a, _b;
660
+ // Check if the id has been supplied.
661
+ if (!this.id) {
662
+ throw new Error('Id is required.');
663
+ }
664
+ // Register the group at the parent and
665
+ // retrieve the slice of the state.
666
+ var observable$ = (_b = (_a = this._parent) === null || _a === void 0 ? void 0 : _a.registerGroup(this.id)) !== null && _b !== void 0 ? _b : rxjs.of(false);
667
+ // Subscribe to the state.
668
+ this._subscription = observable$
669
+ .subscribe(function (isExpanded) { return _this._isExpanded = isExpanded; });
670
+ };
671
+ BbDashboardSidebarGroup.prototype.ngOnDestroy = function () {
672
+ // Unsubscribe to prevent memory leaks.
673
+ this._subscription && this._subscription.unsubscribe();
674
+ // Unregister the group at the parent.
675
+ this._parent && this._parent.unregisterGroup(this.id);
676
+ };
677
+ BbDashboardSidebarGroup.prototype.onClick = function () {
678
+ var _a;
679
+ // Verify the group is not disabled.
680
+ if (this.disabled) {
681
+ return;
682
+ }
683
+ // Change the state.
684
+ var newValue = !this._isExpanded;
685
+ // Set the state of the sidebar group.
686
+ (_a = this._parent) === null || _a === void 0 ? void 0 : _a.toggleGroup(this.id, newValue);
687
+ };
688
+ BbDashboardSidebarGroup.prototype.onGroupClicked = function (event) {
689
+ // If the group is not disabled don't do anything.
690
+ if (!this.disabled) {
691
+ return;
692
+ }
693
+ event.preventDefault();
694
+ event.stopPropagation();
695
+ };
696
+ return BbDashboardSidebarGroup;
697
+ }(BbDashboardSidebarGroupMixinBase));
698
+ BbDashboardSidebarGroup.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebarGroup, deps: [{ token: BbDashboardSidebar, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
699
+ BbDashboardSidebarGroup.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardSidebarGroup, selector: "bb-dashboard-sidebar-group", inputs: { disabled: "disabled", id: "id", icon: "icon", title: "title" }, host: { attributes: { "role": "group" }, listeners: { "click": "onGroupClicked($event)" }, properties: { "class.expanded": "isExpanded", "class.with-toggle": "hasToggle", "class.has-icon": "!!icon", "class.disabled": "disabled" }, classAttribute: "bb-dashboard-sidebar-group" }, usesInheritance: true, ngImport: i0__namespace, template: "<!--\n The wrapper that contains the title and icon.\n-->\n<button *ngIf=\"hasToggle\"\n (click)=\"onClick()\"\n class=\"bb-dashboard-sidebar-group-title\"\n type=\"button\"\n role=\"switch\">\n <bb-icon *ngIf=\"icon as iconName\"\n [src]=\"iconName\"\n class=\"bb-dashboard-sidebar-group-icon\">\n </bb-icon>\n <span *ngIf=\"title as titleText\"\n role=\"heading\"\n class=\"bb-dashboard-sidebar-group-text\">\n {{ titleText }}\n </span>\n <span class=\"bb-dashboard-sidebar-group-toggle\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 21.7 30.9\"\n width=\"10\"\n height=\"10\"\n role=\"img\">\n <path\n d=\"M10.1.3L.2 11.8c-.6.6-.1 1.7.8 1.7h19.7c.9 0 1.3-1 .8-1.7L11.6.3c-.4-.4-1.1-.4-1.5 0zM10.1 30.6L.2 19.1c-.6-.6-.1-1.7.8-1.7h19.7c.9 0 1.3 1 .8 1.7l-9.8 11.5c-.5.4-1.2.4-1.6 0z\">\n </path>\n </svg>\n </span>\n</button>\n\n<!--\n The sidebar items that contain the\n links to navigate to other pages.\n-->\n<ng-content select=\"[bb-dashboard-sidebar-item]\">\n</ng-content>\n", styles: [".bb-dashboard-sidebar-group{color:#000;display:block;overflow:hidden;border-bottom:1px solid rgba(0,0,0,.1);transition:background-color .2s cubic-bezier(0,0,.2,1),padding-bottom .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group.expanded{background-color:#0000000a}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-group-title{color:#000}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-item{opacity:1;height:32px;line-height:32px;padding:6px 16px}.bb-dashboard-sidebar-group.expanded .bb-dashboard-sidebar-group-toggle{opacity:0;transform:translate(10px)}.bb-dashboard-sidebar-group.with-toggle.expanded{padding-bottom:20px}.bb-dashboard-sidebar-group.has-icon .bb-dashboard-sidebar-item{padding-left:54px}.bb-dashboard-sidebar-group.disabled{opacity:.5}.bb-dashboard-sidebar-group-title{margin:0;width:100%;border:none;display:flex;cursor:pointer;text-align:left;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;align-items:center;padding:17px 15px;color:#000c;background-color:transparent;transition:color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group-title:active>.bb-dashboard-sidebar-group-toggle{background-color:#00000014}.bb-dashboard-sidebar-group-icon{margin-right:15px;color:#00000040}.bb-dashboard-sidebar-group-text{width:100%;display:block;font-size:14px;max-width:100%;overflow:hidden;font-weight:500;line-height:15px;white-space:nowrap;text-overflow:ellipsis;text-transform:uppercase}.bb-dashboard-sidebar-group-toggle{width:22px;height:22px;display:flex;min-width:22px;min-height:22px;margin-left:auto;border-radius:3px;align-items:center;justify-content:center;transition:opacity .2s cubic-bezier(0,0,.2,1),transform .2s cubic-bezier(0,0,.2,1),background-color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-group-toggle>svg{width:10px;height:10px;fill:#00000040}\n"], components: [{ type: i2__namespace$2.BbIcon, selector: "bb-icon", inputs: ["alt", "size", "src", "ariaHidden"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
700
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebarGroup, decorators: [{
701
+ type: i0.Component,
702
+ args: [{
703
+ selector: 'bb-dashboard-sidebar-group',
704
+ templateUrl: './dashboard-sidebar-group.component.html',
705
+ styleUrls: ['./dashboard-sidebar-group.component.scss'],
706
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
707
+ encapsulation: i0.ViewEncapsulation.None,
708
+ preserveWhitespaces: false,
709
+ inputs: ['disabled'],
710
+ host: {
711
+ 'class': 'bb-dashboard-sidebar-group',
712
+ '[class.expanded]': 'isExpanded',
713
+ '[class.with-toggle]': 'hasToggle',
714
+ '[class.has-icon]': '!!icon',
715
+ '[class.disabled]': 'disabled',
716
+ 'role': 'group'
717
+ }
718
+ }]
719
+ }], ctorParameters: function () {
720
+ return [{ type: BbDashboardSidebar, decorators: [{
721
+ type: i0.Optional
722
+ }, {
723
+ type: i0.Host
724
+ }] }];
725
+ }, propDecorators: { id: [{
726
+ type: i0.Input
727
+ }], icon: [{
728
+ type: i0.Input
729
+ }], title: [{
730
+ type: i0.Input
731
+ }], onGroupClicked: [{
732
+ type: i0.HostListener,
733
+ args: ['click', ['$event']]
736
734
  }] } });
737
735
 
738
- var BbDashboardSidebarItem = /** @class */ (function () {
739
- function BbDashboardSidebarItem(_sidebar, _group) {
740
- this._sidebar = _sidebar;
741
- this._group = _group;
742
- // Inputs.
743
- this.tabIndex = 0;
744
- }
745
- BbDashboardSidebarItem.prototype.onClick = function () {
746
- var _a;
747
- // Try to "open" the sidebar if it exists.
748
- // This will close it on mobile.
749
- (_a = this._sidebar) === null || _a === void 0 ? void 0 : _a.open();
750
- };
751
- Object.defineProperty(BbDashboardSidebarItem.prototype, "attributeTabIndex", {
752
- get: function () {
753
- // Make the items tabindex -1 so it can't
754
- // be tabbed to when the parent is not visible
755
- // or the parent is disabled.
756
- if (this.isHidden) {
757
- return -1;
758
- }
759
- // Else return the specified tabindex.
760
- return this.tabIndex;
761
- },
762
- enumerable: false,
763
- configurable: true
764
- });
765
- Object.defineProperty(BbDashboardSidebarItem.prototype, "isHidden", {
766
- get: function () {
767
- return !this.isVisible || this.isDisabled;
768
- },
769
- enumerable: false,
770
- configurable: true
771
- });
772
- Object.defineProperty(BbDashboardSidebarItem.prototype, "isVisible", {
773
- get: function () {
774
- return this._group
775
- ? this._group.isExpanded
776
- : true;
777
- },
778
- enumerable: false,
779
- configurable: true
780
- });
781
- Object.defineProperty(BbDashboardSidebarItem.prototype, "isDisabled", {
782
- get: function () {
783
- return this._group
784
- ? this._group.disabled
785
- : false;
786
- },
787
- enumerable: false,
788
- configurable: true
789
- });
790
- return BbDashboardSidebarItem;
791
- }());
792
- BbDashboardSidebarItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebarItem, deps: [{ token: BbDashboardSidebar, host: true, optional: true }, { token: BbDashboardSidebarGroup, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
793
- BbDashboardSidebarItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.1.1", type: BbDashboardSidebarItem, selector: "[bb-dashboard-sidebar-item]", inputs: { tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.tabindex": "attributeTabIndex", "attr.aria-hidden": "isHidden" }, classAttribute: "bb-dashboard-sidebar-item" }, ngImport: i0__namespace, template: "<!--\r\n The content between the tags will\r\n be reflected here.\r\n-->\r\n<span class=\"bb-dashboard-sidebar-item-content\">\r\n <ng-content></ng-content>\r\n</span>\r\n", styles: [".bb-dashboard-sidebar-item{height:0;opacity:0;padding:0;display:flex;line-height:0;cursor:pointer;font-size:14px;font-weight:500;align-items:center;text-decoration:none;will-change:opacity,height;color:rgba(0,0,0,.85)!important;transition:height .2s cubic-bezier(0,0,.2,1),opacity .2s cubic-bezier(0,0,.2,1) 50ms,color .2s cubic-bezier(0,0,.2,1),background-color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-item:focus,.bb-dashboard-sidebar-item:hover{background-color:rgba(0,0,0,.02)}.bb-dashboard-sidebar-item:active{background-color:rgba(0,0,0,.04)}.bb-dashboard-sidebar-item.active,.bb-dashboard-sidebar-item.active:active,.bb-dashboard-sidebar-item.active:focus,.bb-dashboard-sidebar-item.active:hover{color:#000!important;background-color:rgba(0,0,0,.06)}.bb-dashboard-sidebar-item-content{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
794
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: BbDashboardSidebarItem, decorators: [{
795
- type: i0.Component,
796
- args: [{
797
- selector: '[bb-dashboard-sidebar-item]',
798
- templateUrl: './dashboard-sidebar-item.component.html',
799
- styleUrls: ['./dashboard-sidebar-item.component.scss'],
800
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
801
- encapsulation: i0.ViewEncapsulation.None,
802
- preserveWhitespaces: false,
803
- host: {
804
- 'class': 'bb-dashboard-sidebar-item',
805
- '[attr.tabindex]': 'attributeTabIndex',
806
- '[attr.aria-hidden]': 'isHidden',
807
- '(click)': 'onClick()'
808
- }
809
- }]
810
- }], ctorParameters: function () {
811
- return [{ type: BbDashboardSidebar, decorators: [{
812
- type: i0.Optional
813
- }, {
814
- type: i0.Host
815
- }] }, { type: BbDashboardSidebarGroup, decorators: [{
816
- type: i0.Optional
817
- }, {
818
- type: i0.Host
819
- }] }];
820
- }, propDecorators: { tabIndex: [{
821
- type: i0.Input
736
+ var BbDashboardSidebarItem = /** @class */ (function () {
737
+ function BbDashboardSidebarItem(_sidebar, _group) {
738
+ this._sidebar = _sidebar;
739
+ this._group = _group;
740
+ // Inputs.
741
+ this.tabIndex = 0;
742
+ }
743
+ BbDashboardSidebarItem.prototype.onClick = function () {
744
+ var _a;
745
+ // Try to "open" the sidebar if it exists.
746
+ // This will close it on mobile.
747
+ (_a = this._sidebar) === null || _a === void 0 ? void 0 : _a.open();
748
+ };
749
+ Object.defineProperty(BbDashboardSidebarItem.prototype, "attributeTabIndex", {
750
+ get: function () {
751
+ // Make the items tabindex -1 so it can't
752
+ // be tabbed to when the parent is not visible
753
+ // or the parent is disabled.
754
+ if (this.isHidden) {
755
+ return -1;
756
+ }
757
+ // Else return the specified tabindex.
758
+ return this.tabIndex;
759
+ },
760
+ enumerable: false,
761
+ configurable: true
762
+ });
763
+ Object.defineProperty(BbDashboardSidebarItem.prototype, "isHidden", {
764
+ get: function () {
765
+ return !this.isVisible || this.isDisabled;
766
+ },
767
+ enumerable: false,
768
+ configurable: true
769
+ });
770
+ Object.defineProperty(BbDashboardSidebarItem.prototype, "isVisible", {
771
+ get: function () {
772
+ return this._group
773
+ ? this._group.isExpanded
774
+ : true;
775
+ },
776
+ enumerable: false,
777
+ configurable: true
778
+ });
779
+ Object.defineProperty(BbDashboardSidebarItem.prototype, "isDisabled", {
780
+ get: function () {
781
+ return this._group
782
+ ? this._group.disabled
783
+ : false;
784
+ },
785
+ enumerable: false,
786
+ configurable: true
787
+ });
788
+ return BbDashboardSidebarItem;
789
+ }());
790
+ BbDashboardSidebarItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebarItem, deps: [{ token: BbDashboardSidebar, host: true, optional: true }, { token: BbDashboardSidebarGroup, host: true, optional: true }], target: i0__namespace.ɵɵFactoryTarget.Component });
791
+ BbDashboardSidebarItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbDashboardSidebarItem, selector: "[bb-dashboard-sidebar-item]", inputs: { tabIndex: "tabIndex" }, host: { listeners: { "click": "onClick()" }, properties: { "attr.tabindex": "attributeTabIndex", "attr.aria-hidden": "isHidden" }, classAttribute: "bb-dashboard-sidebar-item" }, ngImport: i0__namespace, template: "<!--\n The content between the tags will\n be reflected here.\n-->\n<span class=\"bb-dashboard-sidebar-item-content\">\n <ng-content></ng-content>\n</span>\n", styles: [".bb-dashboard-sidebar-item{height:0;opacity:0;padding:0;display:flex;line-height:0;cursor:pointer;font-size:14px;font-weight:500;align-items:center;text-decoration:none;will-change:opacity,height;color:#000000d9!important;transition:height .2s cubic-bezier(0,0,.2,1),opacity .2s 50ms cubic-bezier(0,0,.2,1),color .2s cubic-bezier(0,0,.2,1),background-color .2s cubic-bezier(0,0,.2,1)}.bb-dashboard-sidebar-item:focus,.bb-dashboard-sidebar-item:hover{background-color:#00000005}.bb-dashboard-sidebar-item:active{background-color:#0000000a}.bb-dashboard-sidebar-item.active,.bb-dashboard-sidebar-item.active:hover,.bb-dashboard-sidebar-item.active:focus,.bb-dashboard-sidebar-item.active:active{color:#000!important;background-color:#0000000f}.bb-dashboard-sidebar-item-content{max-width:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}\n"], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
792
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbDashboardSidebarItem, decorators: [{
793
+ type: i0.Component,
794
+ args: [{
795
+ selector: '[bb-dashboard-sidebar-item]',
796
+ templateUrl: './dashboard-sidebar-item.component.html',
797
+ styleUrls: ['./dashboard-sidebar-item.component.scss'],
798
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
799
+ encapsulation: i0.ViewEncapsulation.None,
800
+ preserveWhitespaces: false,
801
+ host: {
802
+ 'class': 'bb-dashboard-sidebar-item',
803
+ '[attr.tabindex]': 'attributeTabIndex',
804
+ '[attr.aria-hidden]': 'isHidden',
805
+ '(click)': 'onClick()'
806
+ }
807
+ }]
808
+ }], ctorParameters: function () {
809
+ return [{ type: BbDashboardSidebar, decorators: [{
810
+ type: i0.Optional
811
+ }, {
812
+ type: i0.Host
813
+ }] }, { type: BbDashboardSidebarGroup, decorators: [{
814
+ type: i0.Optional
815
+ }, {
816
+ type: i0.Host
817
+ }] }];
818
+ }, propDecorators: { tabIndex: [{
819
+ type: i0.Input
822
820
  }] } });
823
821
 
824
- var DECLARATIONS_EXPORTS = [
825
- BbDashboard,
826
- BbDashboardHeader,
827
- BbDashboardMenu,
828
- BbDashboardMenuItem,
829
- BbDashboardSidebar,
830
- BbDashboardSidebarGroup,
831
- BbDashboardSidebarItem
832
- ];
833
- var DashboardModule = /** @class */ (function () {
834
- function DashboardModule() {
835
- }
836
- return DashboardModule;
837
- }());
838
- DashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: DashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
839
- DashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: DashboardModule, declarations: [BbDashboard,
840
- BbDashboardHeader,
841
- BbDashboardMenu,
842
- BbDashboardMenuItem,
843
- BbDashboardSidebar,
844
- BbDashboardSidebarGroup,
845
- BbDashboardSidebarItem], imports: [i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule], exports: [BbDashboard,
846
- BbDashboardHeader,
847
- BbDashboardMenu,
848
- BbDashboardMenuItem,
849
- BbDashboardSidebar,
850
- BbDashboardSidebarGroup,
851
- BbDashboardSidebarItem] });
852
- DashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: DashboardModule, imports: [[i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule]] });
853
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.1.1", ngImport: i0__namespace, type: DashboardModule, decorators: [{
854
- type: i0.NgModule,
855
- args: [{
856
- imports: [i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule],
857
- declarations: __spreadArray([], __read(DECLARATIONS_EXPORTS)),
858
- exports: __spreadArray([], __read(DECLARATIONS_EXPORTS))
859
- }]
822
+ var DECLARATIONS_EXPORTS = [
823
+ BbDashboard,
824
+ BbDashboardHeader,
825
+ BbDashboardMenu,
826
+ BbDashboardMenuItem,
827
+ BbDashboardSidebar,
828
+ BbDashboardSidebarGroup,
829
+ BbDashboardSidebarItem
830
+ ];
831
+ var DashboardModule = /** @class */ (function () {
832
+ function DashboardModule() {
833
+ }
834
+ return DashboardModule;
835
+ }());
836
+ DashboardModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: DashboardModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
837
+ DashboardModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: DashboardModule, declarations: [BbDashboard,
838
+ BbDashboardHeader,
839
+ BbDashboardMenu,
840
+ BbDashboardMenuItem,
841
+ BbDashboardSidebar,
842
+ BbDashboardSidebarGroup,
843
+ BbDashboardSidebarItem], imports: [i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule], exports: [BbDashboard,
844
+ BbDashboardHeader,
845
+ BbDashboardMenu,
846
+ BbDashboardMenuItem,
847
+ BbDashboardSidebar,
848
+ BbDashboardSidebarGroup,
849
+ BbDashboardSidebarItem] });
850
+ DashboardModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: DashboardModule, imports: [[i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule]] });
851
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: DashboardModule, decorators: [{
852
+ type: i0.NgModule,
853
+ args: [{
854
+ imports: [i2.CommonModule, i2$1.RouterModule, i2$2.ElementsModule],
855
+ declarations: __spreadArray([], __read(DECLARATIONS_EXPORTS)),
856
+ exports: __spreadArray([], __read(DECLARATIONS_EXPORTS))
857
+ }]
860
858
  }] });
861
859
 
862
- /**
863
- * Generated bundle index. Do not edit.
860
+ /**
861
+ * Generated bundle index. Do not edit.
864
862
  */
865
863
 
866
864
  exports.BbDashboard = BbDashboard;
@@ -874,5 +872,5 @@
874
872
 
875
873
  Object.defineProperty(exports, '__esModule', { value: true });
876
874
 
877
- })));
875
+ }));
878
876
  //# sourceMappingURL=bravobit-bb-foundation-dashboard.umd.js.map