@bravobit/bb-foundation 0.14.2 → 0.15.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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 +851 -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 +1336 -1263
  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 +40 -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 +88 -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 -0
  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 -29
  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 +447 -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 +854 -785
  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 -0
  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 -25
  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 -10
  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('@angular/animations'), require('@bravobit/bb-foundation'), require('@angular/common'), require('@bravobit/bb-foundation/localize'), require('rxjs'), require('rxjs/operators')) :
3
3
  typeof define === 'function' && define.amd ? define('@bravobit/bb-foundation/notifications', ['exports', '@angular/core', '@angular/animations', '@bravobit/bb-foundation', '@angular/common', '@bravobit/bb-foundation/localize', 'rxjs', 'rxjs/operators'], 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'].notifications = {}), global.ng.core, global.ng.animations, global.bravobit['bb-foundation'], global.ng.common, global.bravobit['bb-foundation'].localize, global.rxjs, global.rxjs.operators));
5
- }(this, (function (exports, i0, animations, i1, i2, i2$1, rxjs, operators) { '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"].notifications = {}), global.ng.core, global.ng.animations, global.bravobit["bb-foundation"], global.ng.common, global.bravobit["bb-foundation"].localize, global.rxjs, global.rxjs.operators));
5
+ })(this, (function (exports, i0, animations, i1, i2, i2$1, rxjs, operators) { '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
 
@@ -29,760 +27,760 @@
29
27
  var i2__namespace = /*#__PURE__*/_interopNamespace(i2);
30
28
  var i2__namespace$1 = /*#__PURE__*/_interopNamespace(i2$1);
31
29
 
32
- exports.NotificationType = void 0;
33
- (function (NotificationType) {
34
- NotificationType["Success"] = "success";
35
- NotificationType["Error"] = "error";
36
- NotificationType["Warning"] = "warning";
37
- NotificationType["Info"] = "info";
38
- NotificationType["Custom"] = "custom";
39
- })(exports.NotificationType || (exports.NotificationType = {}));
40
- var NotificationsConfig = /** @class */ (function () {
41
- function NotificationsConfig() {
42
- }
43
- return NotificationsConfig;
44
- }());
45
- exports.NotificationsPosition = void 0;
46
- (function (NotificationsPosition) {
47
- NotificationsPosition["TopRight"] = "flex-start|flex-end";
48
- NotificationsPosition["BottomRight"] = "flex-end|flex-end";
49
- NotificationsPosition["TopLeft"] = "flex-start|flex-start";
50
- NotificationsPosition["BottomLeft"] = "flex-end|flex-start";
51
- })(exports.NotificationsPosition || (exports.NotificationsPosition = {}));
52
- var NotificationsData = /** @class */ (function () {
53
- function NotificationsData() {
54
- }
55
- return NotificationsData;
30
+ exports.NotificationType = void 0;
31
+ (function (NotificationType) {
32
+ NotificationType["Success"] = "success";
33
+ NotificationType["Error"] = "error";
34
+ NotificationType["Warning"] = "warning";
35
+ NotificationType["Info"] = "info";
36
+ NotificationType["Custom"] = "custom";
37
+ })(exports.NotificationType || (exports.NotificationType = {}));
38
+ var NotificationsConfig = /** @class */ (function () {
39
+ function NotificationsConfig() {
40
+ }
41
+ return NotificationsConfig;
42
+ }());
43
+ exports.NotificationsPosition = void 0;
44
+ (function (NotificationsPosition) {
45
+ NotificationsPosition["TopRight"] = "flex-start|flex-end";
46
+ NotificationsPosition["BottomRight"] = "flex-end|flex-end";
47
+ NotificationsPosition["TopLeft"] = "flex-start|flex-start";
48
+ NotificationsPosition["BottomLeft"] = "flex-end|flex-start";
49
+ })(exports.NotificationsPosition || (exports.NotificationsPosition = {}));
50
+ var NotificationsData = /** @class */ (function () {
51
+ function NotificationsData() {
52
+ }
53
+ return NotificationsData;
56
54
  }());
57
55
 
58
- /*! *****************************************************************************
59
- Copyright (c) Microsoft Corporation.
60
-
61
- Permission to use, copy, modify, and/or distribute this software for any
62
- purpose with or without fee is hereby granted.
63
-
64
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
65
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
66
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
67
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
68
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
69
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
70
- PERFORMANCE OF THIS SOFTWARE.
71
- ***************************************************************************** */
72
- /* global Reflect, Promise */
73
- var extendStatics = function (d, b) {
74
- extendStatics = Object.setPrototypeOf ||
75
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
76
- function (d, b) { for (var p in b)
77
- if (Object.prototype.hasOwnProperty.call(b, p))
78
- d[p] = b[p]; };
79
- return extendStatics(d, b);
80
- };
81
- function __extends(d, b) {
82
- if (typeof b !== "function" && b !== null)
83
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
84
- extendStatics(d, b);
85
- function __() { this.constructor = d; }
86
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
87
- }
88
- var __assign = function () {
89
- __assign = Object.assign || function __assign(t) {
90
- for (var s, i = 1, n = arguments.length; i < n; i++) {
91
- s = arguments[i];
92
- for (var p in s)
93
- if (Object.prototype.hasOwnProperty.call(s, p))
94
- t[p] = s[p];
95
- }
96
- return t;
97
- };
98
- return __assign.apply(this, arguments);
99
- };
100
- function __rest(s, e) {
101
- var t = {};
102
- for (var p in s)
103
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
104
- t[p] = s[p];
105
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
106
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
107
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
108
- t[p[i]] = s[p[i]];
109
- }
110
- return t;
111
- }
112
- function __decorate(decorators, target, key, desc) {
113
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
114
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
115
- r = Reflect.decorate(decorators, target, key, desc);
116
- else
117
- for (var i = decorators.length - 1; i >= 0; i--)
118
- if (d = decorators[i])
119
- r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
120
- return c > 3 && r && Object.defineProperty(target, key, r), r;
121
- }
122
- function __param(paramIndex, decorator) {
123
- return function (target, key) { decorator(target, key, paramIndex); };
124
- }
125
- function __metadata(metadataKey, metadataValue) {
126
- if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
127
- return Reflect.metadata(metadataKey, metadataValue);
128
- }
129
- function __awaiter(thisArg, _arguments, P, generator) {
130
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
131
- return new (P || (P = Promise))(function (resolve, reject) {
132
- function fulfilled(value) { try {
133
- step(generator.next(value));
134
- }
135
- catch (e) {
136
- reject(e);
137
- } }
138
- function rejected(value) { try {
139
- step(generator["throw"](value));
140
- }
141
- catch (e) {
142
- reject(e);
143
- } }
144
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
145
- step((generator = generator.apply(thisArg, _arguments || [])).next());
146
- });
147
- }
148
- function __generator(thisArg, body) {
149
- var _ = { label: 0, sent: function () { if (t[0] & 1)
150
- throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
151
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
152
- function verb(n) { return function (v) { return step([n, v]); }; }
153
- function step(op) {
154
- if (f)
155
- throw new TypeError("Generator is already executing.");
156
- while (_)
157
- try {
158
- 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)
159
- return t;
160
- if (y = 0, t)
161
- op = [op[0] & 2, t.value];
162
- switch (op[0]) {
163
- case 0:
164
- case 1:
165
- t = op;
166
- break;
167
- case 4:
168
- _.label++;
169
- return { value: op[1], done: false };
170
- case 5:
171
- _.label++;
172
- y = op[1];
173
- op = [0];
174
- continue;
175
- case 7:
176
- op = _.ops.pop();
177
- _.trys.pop();
178
- continue;
179
- default:
180
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
181
- _ = 0;
182
- continue;
183
- }
184
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
185
- _.label = op[1];
186
- break;
187
- }
188
- if (op[0] === 6 && _.label < t[1]) {
189
- _.label = t[1];
190
- t = op;
191
- break;
192
- }
193
- if (t && _.label < t[2]) {
194
- _.label = t[2];
195
- _.ops.push(op);
196
- break;
197
- }
198
- if (t[2])
199
- _.ops.pop();
200
- _.trys.pop();
201
- continue;
202
- }
203
- op = body.call(thisArg, _);
204
- }
205
- catch (e) {
206
- op = [6, e];
207
- y = 0;
208
- }
209
- finally {
210
- f = t = 0;
211
- }
212
- if (op[0] & 5)
213
- throw op[1];
214
- return { value: op[0] ? op[1] : void 0, done: true };
215
- }
216
- }
217
- var __createBinding = Object.create ? (function (o, m, k, k2) {
218
- if (k2 === undefined)
219
- k2 = k;
220
- Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
221
- }) : (function (o, m, k, k2) {
222
- if (k2 === undefined)
223
- k2 = k;
224
- o[k2] = m[k];
225
- });
226
- function __exportStar(m, o) {
227
- for (var p in m)
228
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
229
- __createBinding(o, m, p);
230
- }
231
- function __values(o) {
232
- var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
233
- if (m)
234
- return m.call(o);
235
- if (o && typeof o.length === "number")
236
- return {
237
- next: function () {
238
- if (o && i >= o.length)
239
- o = void 0;
240
- return { value: o && o[i++], done: !o };
241
- }
242
- };
243
- throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
244
- }
245
- function __read(o, n) {
246
- var m = typeof Symbol === "function" && o[Symbol.iterator];
247
- if (!m)
248
- return o;
249
- var i = m.call(o), r, ar = [], e;
250
- try {
251
- while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
252
- ar.push(r.value);
253
- }
254
- catch (error) {
255
- e = { error: error };
256
- }
257
- finally {
258
- try {
259
- if (r && !r.done && (m = i["return"]))
260
- m.call(i);
261
- }
262
- finally {
263
- if (e)
264
- throw e.error;
265
- }
266
- }
267
- return ar;
268
- }
269
- /** @deprecated */
270
- function __spread() {
271
- for (var ar = [], i = 0; i < arguments.length; i++)
272
- ar = ar.concat(__read(arguments[i]));
273
- return ar;
274
- }
275
- /** @deprecated */
276
- function __spreadArrays() {
277
- for (var s = 0, i = 0, il = arguments.length; i < il; i++)
278
- s += arguments[i].length;
279
- for (var r = Array(s), k = 0, i = 0; i < il; i++)
280
- for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
281
- r[k] = a[j];
282
- return r;
283
- }
284
- function __spreadArray(to, from, pack) {
285
- if (pack || arguments.length === 2)
286
- for (var i = 0, l = from.length, ar; i < l; i++) {
287
- if (ar || !(i in from)) {
288
- if (!ar)
289
- ar = Array.prototype.slice.call(from, 0, i);
290
- ar[i] = from[i];
291
- }
292
- }
293
- return to.concat(ar || from);
294
- }
295
- function __await(v) {
296
- return this instanceof __await ? (this.v = v, this) : new __await(v);
297
- }
298
- function __asyncGenerator(thisArg, _arguments, generator) {
299
- if (!Symbol.asyncIterator)
300
- throw new TypeError("Symbol.asyncIterator is not defined.");
301
- var g = generator.apply(thisArg, _arguments || []), i, q = [];
302
- return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
303
- function verb(n) { if (g[n])
304
- i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
305
- function resume(n, v) { try {
306
- step(g[n](v));
307
- }
308
- catch (e) {
309
- settle(q[0][3], e);
310
- } }
311
- function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
312
- function fulfill(value) { resume("next", value); }
313
- function reject(value) { resume("throw", value); }
314
- function settle(f, v) { if (f(v), q.shift(), q.length)
315
- resume(q[0][0], q[0][1]); }
316
- }
317
- function __asyncDelegator(o) {
318
- var i, p;
319
- return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
320
- 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; }
321
- }
322
- function __asyncValues(o) {
323
- if (!Symbol.asyncIterator)
324
- throw new TypeError("Symbol.asyncIterator is not defined.");
325
- var m = o[Symbol.asyncIterator], i;
326
- 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);
327
- 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); }); }; }
328
- function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
329
- }
330
- function __makeTemplateObject(cooked, raw) {
331
- if (Object.defineProperty) {
332
- Object.defineProperty(cooked, "raw", { value: raw });
333
- }
334
- else {
335
- cooked.raw = raw;
336
- }
337
- return cooked;
338
- }
339
- ;
340
- var __setModuleDefault = Object.create ? (function (o, v) {
341
- Object.defineProperty(o, "default", { enumerable: true, value: v });
342
- }) : function (o, v) {
343
- o["default"] = v;
344
- };
345
- function __importStar(mod) {
346
- if (mod && mod.__esModule)
347
- return mod;
348
- var result = {};
349
- if (mod != null)
350
- for (var k in mod)
351
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
352
- __createBinding(result, mod, k);
353
- __setModuleDefault(result, mod);
354
- return result;
355
- }
356
- function __importDefault(mod) {
357
- return (mod && mod.__esModule) ? mod : { default: mod };
358
- }
359
- function __classPrivateFieldGet(receiver, state, kind, f) {
360
- if (kind === "a" && !f)
361
- throw new TypeError("Private accessor was defined without a getter");
362
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
363
- throw new TypeError("Cannot read private member from an object whose class did not declare it");
364
- return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
365
- }
366
- function __classPrivateFieldSet(receiver, state, value, kind, f) {
367
- if (kind === "m")
368
- throw new TypeError("Private method is not writable");
369
- if (kind === "a" && !f)
370
- throw new TypeError("Private accessor was defined without a setter");
371
- if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
372
- throw new TypeError("Cannot write private member to an object whose class did not declare it");
373
- return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
56
+ /*! *****************************************************************************
57
+ Copyright (c) Microsoft Corporation.
58
+
59
+ Permission to use, copy, modify, and/or distribute this software for any
60
+ purpose with or without fee is hereby granted.
61
+
62
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
63
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
64
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
65
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
66
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
67
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
68
+ PERFORMANCE OF THIS SOFTWARE.
69
+ ***************************************************************************** */
70
+ /* global Reflect, Promise */
71
+ var extendStatics = function (d, b) {
72
+ extendStatics = Object.setPrototypeOf ||
73
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
74
+ function (d, b) { for (var p in b)
75
+ if (Object.prototype.hasOwnProperty.call(b, p))
76
+ d[p] = b[p]; };
77
+ return extendStatics(d, b);
78
+ };
79
+ function __extends(d, b) {
80
+ if (typeof b !== "function" && b !== null)
81
+ throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
82
+ extendStatics(d, b);
83
+ function __() { this.constructor = d; }
84
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
85
+ }
86
+ var __assign = function () {
87
+ __assign = Object.assign || function __assign(t) {
88
+ for (var s, i = 1, n = arguments.length; i < n; i++) {
89
+ s = arguments[i];
90
+ for (var p in s)
91
+ if (Object.prototype.hasOwnProperty.call(s, p))
92
+ t[p] = s[p];
93
+ }
94
+ return t;
95
+ };
96
+ return __assign.apply(this, arguments);
97
+ };
98
+ function __rest(s, e) {
99
+ var t = {};
100
+ for (var p in s)
101
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
102
+ t[p] = s[p];
103
+ if (s != null && typeof Object.getOwnPropertySymbols === "function")
104
+ for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
105
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
106
+ t[p[i]] = s[p[i]];
107
+ }
108
+ return t;
109
+ }
110
+ function __decorate(decorators, target, key, desc) {
111
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
112
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function")
113
+ r = Reflect.decorate(decorators, target, key, desc);
114
+ else
115
+ for (var i = decorators.length - 1; i >= 0; i--)
116
+ if (d = decorators[i])
117
+ r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
118
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
119
+ }
120
+ function __param(paramIndex, decorator) {
121
+ return function (target, key) { decorator(target, key, paramIndex); };
122
+ }
123
+ function __metadata(metadataKey, metadataValue) {
124
+ if (typeof Reflect === "object" && typeof Reflect.metadata === "function")
125
+ return Reflect.metadata(metadataKey, metadataValue);
126
+ }
127
+ function __awaiter(thisArg, _arguments, P, generator) {
128
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
129
+ return new (P || (P = Promise))(function (resolve, reject) {
130
+ function fulfilled(value) { try {
131
+ step(generator.next(value));
132
+ }
133
+ catch (e) {
134
+ reject(e);
135
+ } }
136
+ function rejected(value) { try {
137
+ step(generator["throw"](value));
138
+ }
139
+ catch (e) {
140
+ reject(e);
141
+ } }
142
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
143
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
144
+ });
145
+ }
146
+ function __generator(thisArg, body) {
147
+ var _ = { label: 0, sent: function () { if (t[0] & 1)
148
+ throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
149
+ return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function () { return this; }), g;
150
+ function verb(n) { return function (v) { return step([n, v]); }; }
151
+ function step(op) {
152
+ if (f)
153
+ throw new TypeError("Generator is already executing.");
154
+ while (_)
155
+ try {
156
+ 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)
157
+ return t;
158
+ if (y = 0, t)
159
+ op = [op[0] & 2, t.value];
160
+ switch (op[0]) {
161
+ case 0:
162
+ case 1:
163
+ t = op;
164
+ break;
165
+ case 4:
166
+ _.label++;
167
+ return { value: op[1], done: false };
168
+ case 5:
169
+ _.label++;
170
+ y = op[1];
171
+ op = [0];
172
+ continue;
173
+ case 7:
174
+ op = _.ops.pop();
175
+ _.trys.pop();
176
+ continue;
177
+ default:
178
+ if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
179
+ _ = 0;
180
+ continue;
181
+ }
182
+ if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) {
183
+ _.label = op[1];
184
+ break;
185
+ }
186
+ if (op[0] === 6 && _.label < t[1]) {
187
+ _.label = t[1];
188
+ t = op;
189
+ break;
190
+ }
191
+ if (t && _.label < t[2]) {
192
+ _.label = t[2];
193
+ _.ops.push(op);
194
+ break;
195
+ }
196
+ if (t[2])
197
+ _.ops.pop();
198
+ _.trys.pop();
199
+ continue;
200
+ }
201
+ op = body.call(thisArg, _);
202
+ }
203
+ catch (e) {
204
+ op = [6, e];
205
+ y = 0;
206
+ }
207
+ finally {
208
+ f = t = 0;
209
+ }
210
+ if (op[0] & 5)
211
+ throw op[1];
212
+ return { value: op[0] ? op[1] : void 0, done: true };
213
+ }
214
+ }
215
+ var __createBinding = Object.create ? (function (o, m, k, k2) {
216
+ if (k2 === undefined)
217
+ k2 = k;
218
+ Object.defineProperty(o, k2, { enumerable: true, get: function () { return m[k]; } });
219
+ }) : (function (o, m, k, k2) {
220
+ if (k2 === undefined)
221
+ k2 = k;
222
+ o[k2] = m[k];
223
+ });
224
+ function __exportStar(m, o) {
225
+ for (var p in m)
226
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p))
227
+ __createBinding(o, m, p);
228
+ }
229
+ function __values(o) {
230
+ var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
231
+ if (m)
232
+ return m.call(o);
233
+ if (o && typeof o.length === "number")
234
+ return {
235
+ next: function () {
236
+ if (o && i >= o.length)
237
+ o = void 0;
238
+ return { value: o && o[i++], done: !o };
239
+ }
240
+ };
241
+ throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
242
+ }
243
+ function __read(o, n) {
244
+ var m = typeof Symbol === "function" && o[Symbol.iterator];
245
+ if (!m)
246
+ return o;
247
+ var i = m.call(o), r, ar = [], e;
248
+ try {
249
+ while ((n === void 0 || n-- > 0) && !(r = i.next()).done)
250
+ ar.push(r.value);
251
+ }
252
+ catch (error) {
253
+ e = { error: error };
254
+ }
255
+ finally {
256
+ try {
257
+ if (r && !r.done && (m = i["return"]))
258
+ m.call(i);
259
+ }
260
+ finally {
261
+ if (e)
262
+ throw e.error;
263
+ }
264
+ }
265
+ return ar;
266
+ }
267
+ /** @deprecated */
268
+ function __spread() {
269
+ for (var ar = [], i = 0; i < arguments.length; i++)
270
+ ar = ar.concat(__read(arguments[i]));
271
+ return ar;
272
+ }
273
+ /** @deprecated */
274
+ function __spreadArrays() {
275
+ for (var s = 0, i = 0, il = arguments.length; i < il; i++)
276
+ s += arguments[i].length;
277
+ for (var r = Array(s), k = 0, i = 0; i < il; i++)
278
+ for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
279
+ r[k] = a[j];
280
+ return r;
281
+ }
282
+ function __spreadArray(to, from, pack) {
283
+ if (pack || arguments.length === 2)
284
+ for (var i = 0, l = from.length, ar; i < l; i++) {
285
+ if (ar || !(i in from)) {
286
+ if (!ar)
287
+ ar = Array.prototype.slice.call(from, 0, i);
288
+ ar[i] = from[i];
289
+ }
290
+ }
291
+ return to.concat(ar || Array.prototype.slice.call(from));
292
+ }
293
+ function __await(v) {
294
+ return this instanceof __await ? (this.v = v, this) : new __await(v);
295
+ }
296
+ function __asyncGenerator(thisArg, _arguments, generator) {
297
+ if (!Symbol.asyncIterator)
298
+ throw new TypeError("Symbol.asyncIterator is not defined.");
299
+ var g = generator.apply(thisArg, _arguments || []), i, q = [];
300
+ return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
301
+ function verb(n) { if (g[n])
302
+ i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
303
+ function resume(n, v) { try {
304
+ step(g[n](v));
305
+ }
306
+ catch (e) {
307
+ settle(q[0][3], e);
308
+ } }
309
+ function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
310
+ function fulfill(value) { resume("next", value); }
311
+ function reject(value) { resume("throw", value); }
312
+ function settle(f, v) { if (f(v), q.shift(), q.length)
313
+ resume(q[0][0], q[0][1]); }
314
+ }
315
+ function __asyncDelegator(o) {
316
+ var i, p;
317
+ return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
318
+ 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; }
319
+ }
320
+ function __asyncValues(o) {
321
+ if (!Symbol.asyncIterator)
322
+ throw new TypeError("Symbol.asyncIterator is not defined.");
323
+ var m = o[Symbol.asyncIterator], i;
324
+ 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);
325
+ 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); }); }; }
326
+ function settle(resolve, reject, d, v) { Promise.resolve(v).then(function (v) { resolve({ value: v, done: d }); }, reject); }
327
+ }
328
+ function __makeTemplateObject(cooked, raw) {
329
+ if (Object.defineProperty) {
330
+ Object.defineProperty(cooked, "raw", { value: raw });
331
+ }
332
+ else {
333
+ cooked.raw = raw;
334
+ }
335
+ return cooked;
336
+ }
337
+ ;
338
+ var __setModuleDefault = Object.create ? (function (o, v) {
339
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
340
+ }) : function (o, v) {
341
+ o["default"] = v;
342
+ };
343
+ function __importStar(mod) {
344
+ if (mod && mod.__esModule)
345
+ return mod;
346
+ var result = {};
347
+ if (mod != null)
348
+ for (var k in mod)
349
+ if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
350
+ __createBinding(result, mod, k);
351
+ __setModuleDefault(result, mod);
352
+ return result;
353
+ }
354
+ function __importDefault(mod) {
355
+ return (mod && mod.__esModule) ? mod : { default: mod };
356
+ }
357
+ function __classPrivateFieldGet(receiver, state, kind, f) {
358
+ if (kind === "a" && !f)
359
+ throw new TypeError("Private accessor was defined without a getter");
360
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
361
+ throw new TypeError("Cannot read private member from an object whose class did not declare it");
362
+ return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
363
+ }
364
+ function __classPrivateFieldSet(receiver, state, value, kind, f) {
365
+ if (kind === "m")
366
+ throw new TypeError("Private method is not writable");
367
+ if (kind === "a" && !f)
368
+ throw new TypeError("Private accessor was defined without a setter");
369
+ if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver))
370
+ throw new TypeError("Cannot write private member to an object whose class did not declare it");
371
+ return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
374
372
  }
375
373
 
376
- var s = '250ms cubic-bezier(0, 0, .2, 1)';
377
- var l = '400ms cubic-bezier(0, 0, .2, 1)';
378
- var notificationAnimation = animations.trigger('notificationListAnimation', [
379
- animations.transition('* => *', [
380
- animations.query(':enter', animations.group([
381
- // 1. Set the initial state.
382
- animations.style({ height: 0, opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' }),
383
- // 2. Start the animation to show the item.
384
- animations.stagger(0, [
385
- animations.animate(s, animations.style({ height: '*' })),
386
- animations.animate(l, animations.style({ opacity: 1, transform: 'translateX(0) scale(0.95)' })),
387
- animations.animate(s, animations.style({ transform: 'translateX(0) scale(1)' }))
388
- ])
389
- ]), { optional: true }),
390
- animations.query(':leave', animations.group([
391
- // 1. Set the initial state.
392
- animations.style({ height: '*', opacity: 1, transform: 'translateX(0) scale(1)' }),
393
- // 2. Start the animation to hide the item.
394
- animations.stagger(0, [
395
- animations.animate(s, animations.style({ transform: 'translateX(0) scale(0.95)' })),
396
- animations.animate(l, animations.style({ opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' })),
397
- animations.animate(s, animations.style({ height: 0 }))
398
- ])
399
- ]), { optional: true })
400
- ])
374
+ var s = '250ms cubic-bezier(0, 0, .2, 1)';
375
+ var l = '400ms cubic-bezier(0, 0, .2, 1)';
376
+ var notificationAnimation = animations.trigger('notificationListAnimation', [
377
+ animations.transition('* => *', [
378
+ animations.query(':enter', animations.group([
379
+ // 1. Set the initial state.
380
+ animations.style({ height: 0, opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' }),
381
+ // 2. Start the animation to show the item.
382
+ animations.stagger(0, [
383
+ animations.animate(s, animations.style({ height: '*' })),
384
+ animations.animate(l, animations.style({ opacity: 1, transform: 'translateX(0) scale(0.95)' })),
385
+ animations.animate(s, animations.style({ transform: 'translateX(0) scale(1)' }))
386
+ ])
387
+ ]), { optional: true }),
388
+ animations.query(':leave', animations.group([
389
+ // 1. Set the initial state.
390
+ animations.style({ height: '*', opacity: 1, transform: 'translateX(0) scale(1)' }),
391
+ // 2. Start the animation to hide the item.
392
+ animations.stagger(0, [
393
+ animations.animate(s, animations.style({ transform: 'translateX(0) scale(0.95)' })),
394
+ animations.animate(l, animations.style({ opacity: 0, transform: 'translateX({{ to }}%) scale(0.95)' })),
395
+ animations.animate(s, animations.style({ height: 0 }))
396
+ ])
397
+ ]), { optional: true })
398
+ ])
401
399
  ]);
402
400
 
403
- var BbNotificationsItem = /** @class */ (function () {
404
- function BbNotificationsItem(_zone, _platform, _changeDetection) {
405
- var _this = this;
406
- this._zone = _zone;
407
- this._platform = _platform;
408
- this._changeDetection = _changeDetection;
409
- // Data.
410
- this._progress = 0;
411
- this._count = 0;
412
- // Data.
413
- this._radius = 19;
414
- this._circumference = this._radius * 2 * Math.PI;
415
- this.callActionAndDestroy = function (notification, action) {
416
- // Perform the callback (if it exists).
417
- action && action.callback && action.callback();
418
- // Call the destroy method (if it exists).
419
- notification && notification.destroy && notification.destroy();
420
- };
421
- this.instance = function () {
422
- // Calculate the difference.
423
- _this._difference = (Date.now() - _this._startTime) - (_this._count * _this._speed);
424
- // Add up the count.
425
- if (_this._count++ === _this._steps) {
426
- _this.notification.destroy();
427
- }
428
- // Add the steps to the progress.
429
- _this._progress += 100 / _this._steps;
430
- // Set a new timer.
431
- _this._timer = _this.setTimeout(_this.instance, _this._speed - _this._difference);
432
- // Run a new change detection cycle.
433
- _this._zone.run(function () { return _this._changeDetection.detectChanges(); });
434
- };
435
- this.setTimeout = function (method, timeout) {
436
- // Check if the window and method exist.
437
- if (!window || !window.setTimeout) {
438
- return null;
439
- }
440
- return window.setTimeout(method, timeout);
441
- };
442
- }
443
- Object.defineProperty(BbNotificationsItem.prototype, "getClass", {
444
- get: function () {
445
- return "bb-notifications-item " + this.notification.type;
446
- },
447
- enumerable: false,
448
- configurable: true
449
- });
450
- Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeArray", {
451
- get: function () {
452
- var value = Math.floor(this._circumference);
453
- return value + ", " + value;
454
- },
455
- enumerable: false,
456
- configurable: true
457
- });
458
- Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeOffset", {
459
- get: function () {
460
- return Math.floor(this._circumference - this._progress / 100 * this._circumference);
461
- },
462
- enumerable: false,
463
- configurable: true
464
- });
465
- Object.defineProperty(BbNotificationsItem.prototype, "isContentString", {
466
- get: function () {
467
- return typeof this.notification.content === 'string';
468
- },
469
- enumerable: false,
470
- configurable: true
471
- });
472
- BbNotificationsItem.prototype.ngOnInit = function () {
473
- // Check if the notification timeout is not 0 and the platform is a browser.
474
- if (this.notification.timeout <= 0 || !this._platform.isBrowser) {
475
- this.notification.dismiss = true;
476
- return;
477
- }
478
- // Start the timeout.
479
- this.startTimeout();
480
- };
481
- BbNotificationsItem.prototype.ngOnDestroy = function () {
482
- // Clear the timeout if it was set.
483
- this._timer && window && window.clearTimeout && window.clearTimeout(this._timer);
484
- };
485
- BbNotificationsItem.prototype.startTimeout = function () {
486
- var _this = this;
487
- // Calculate the steps of the timeout.
488
- this._steps = this.notification.timeout / 10;
489
- // Calculate the speed of the timeout.
490
- this._speed = this.notification.timeout / this._steps;
491
- // Get the start time.
492
- this._startTime = Date.now();
493
- // Set a new timer outside of Angular.
494
- this._zone.runOutsideAngular(function () { return _this._timer = _this.setTimeout(_this.instance, _this._speed); });
495
- };
496
- return BbNotificationsItem;
497
- }());
498
- BbNotificationsItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: BbNotificationsItem, deps: [{ token: i0__namespace.NgZone }, { token: i1__namespace.Platform }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
499
- BbNotificationsItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: BbNotificationsItem, selector: "bb-notifications-item", inputs: { notification: "notification", dismissButtonText: "dismissButtonText" }, host: { attributes: { "role": "alert" }, properties: { "class": "this.getClass" } }, viewQueries: [{ propertyName: "progressElementRef", first: true, predicate: ["progress"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"notification-content-wrapper\">\r\n <!--\r\n The icon for the notification.\r\n\r\n The icon is reflected by the type of the\r\n notification. Same goes for the color and\r\n background-color.\r\n -->\r\n <div [style.color]=\"notification?.color\"\r\n [style.background-color]=\"notification?.backgroundColor\"\r\n class=\"notification-icon-wrapper\">\r\n <svg xmlns=\"http://www.w3.org/2000/svg\"\r\n viewBox=\"0 0 16 19.5\"\r\n class=\"notification-icon\">\r\n <path\r\n d=\"M8 19.5c1.1 0 2-.9 2-2H6c0 1.1.9 2 2 2zM14 13.5v-5c0-3.1-1.6-5.6-4.5-6.3v-.7C9.5.7 8.8 0 8 0S6.5.7 6.5 1.5v.7C3.6 2.9 2 5.4 2 8.5v5l-2 2v1h16v-1l-2-2z\">\r\n </path>\r\n </svg>\r\n\r\n <!--\r\n The circular progress for the notification.\r\n\r\n The progress is only visible when a timeout is\r\n set. The progress adapts to the time remaining\r\n for the notification.\r\n -->\r\n <svg *ngIf=\"notification?.timeout > 0\"\r\n class=\"notification-progress-ring\"\r\n viewBox=\"0 0 40 40\"\r\n role=\"progressbar\">\r\n <circle #progress\r\n [attr.stroke-dasharray]=\"progressStrokeArray\"\r\n [attr.stroke-dashoffset]=\"progressStrokeOffset\"\r\n [style.stroke]=\"notification?.color\"\r\n class=\"notification-progress-circle\"\r\n stroke-width=\"2\"\r\n fill=\"transparent\"\r\n r=\"19\"\r\n cx=\"20\"\r\n cy=\"20\">\r\n </circle>\r\n </svg>\r\n </div>\r\n\r\n <!--\r\n The content for the notification.\r\n\r\n This displays a string or a template based\r\n on the given parameter by the user.\r\n -->\r\n <div class=\"notification-content\">\r\n <ng-container *ngIf=\"isContentString; else templateContent\"\r\n [ngSwitch]=\"notification?.localize\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n {{ $any(notification?.content) | bbLocalize:{data: notification?.data} }}\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ notification?.content }}\r\n </ng-container>\r\n </ng-container>\r\n </div>\r\n</div>\r\n\r\n<!--\r\n The actions of the notification.\r\n\r\n All actions are displayed here and are\r\n based on the actions array the user provided.\r\n-->\r\n<div *ngIf=\"notification?.actions?.length > 0 || notification?.dismiss\"\r\n class=\"notification-actions\">\r\n <button *ngFor=\"let action of notification?.actions\"\r\n (click)=\"callActionAndDestroy(notification, action)\"\r\n type=\"button\"\r\n [class.destructive]=\"action?.type === 'cancel'\"\r\n class=\"notification-actions-button\">\r\n <span [ngSwitch]=\"notification?.localize\"\r\n class=\"notification-actions-button-highlight\">\r\n <ng-container *ngSwitchCase=\"true\">\r\n {{ action?.title | bbLocalize:{data: notification?.data} }}\r\n </ng-container>\r\n <ng-container *ngSwitchDefault>\r\n {{ action?.title }}\r\n </ng-container>\r\n </span>\r\n </button>\r\n <button *ngIf=\"notification?.dismiss\"\r\n (click)=\"notification?.destroy()\"\r\n class=\"notification-actions-button destructive\"\r\n type=\"button\">\r\n <span class=\"notification-actions-button-highlight\">\r\n {{ notification?.dismissText || dismissButtonText }}\r\n </span>\r\n </button>\r\n</div>\r\n\r\n<!--\r\n The outlet for the notification content template ref.\r\n-->\r\n<ng-template #templateContent>\r\n <ng-container *ngTemplateOutlet=\"$any(notification?.content)\"></ng-container>\r\n</ng-template>\r\n", styles: [".bb-notifications-item{display:flex;border-radius:4px;flex-direction:column;background-color:#fff;border:1px solid #d6dbe0}.bb-notifications-item.success .notification-icon-wrapper{color:#2dc05d;background-color:#ebfaf0}.bb-notifications-item.success .notification-progress-circle{stroke:#36d068}.bb-notifications-item.error .notification-icon-wrapper{color:#f43e3e;background-color:#feeeee}.bb-notifications-item.error .notification-progress-circle{stroke:#f55656}.bb-notifications-item.warning .notification-icon-wrapper{color:#f1ae00;background-color:#fff8e7}.bb-notifications-item.warning .notification-progress-circle{stroke:#ffbc0b}.bb-notifications-item.info .notification-icon-wrapper{color:#099bf6;background-color:#e9f6fe}.bb-notifications-item.info .notification-progress-circle{stroke:#22a5f7}.bb-notifications-item.custom .notification-icon-wrapper{color:#657385;background-color:#f3f5f6}.bb-notifications-item.custom .notification-progress-circle{stroke:#657385}.notification-content-wrapper{padding:20px;display:flex;align-items:center}.notification-icon-wrapper{width:40px;height:40px;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border-radius:50%;align-items:center;justify-content:center;color:#657385;background-color:#f3f5f6}.notification-icon{width:100%;height:100%;padding:10px;fill:currentColor}.notification-content{flex:1;font-size:14px;line-height:1.5;font-weight:500;margin-left:20px;color:rgba(0,0,0,.85)}.notification-content i{font-style:italic}.notification-actions-button,.notification-content{font-family:inherit}.notification-actions{display:flex;margin:0 20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-top:1px solid #f3f5f6}.notification-actions-button{flex:1;border:none;color:#22a5f7;cursor:pointer;font-size:14px;font-weight:500;padding:12px 2px;text-align:center;background-color:transparent}.notification-actions-button:focus>.notification-actions-button-highlight,.notification-actions-button:hover>.notification-actions-button-highlight{background-color:rgba(34,165,247,.1)}.notification-actions-button:active>.notification-actions-button-highlight{background-color:rgba(34,165,247,.2)}.notification-actions-button.destructive{color:#f55656}.notification-actions-button.destructive:focus>.notification-actions-button-highlight,.notification-actions-button.destructive:hover>.notification-actions-button-highlight{background-color:rgba(245,86,86,.1)}.notification-actions-button.destructive:active>.notification-actions-button-highlight{background-color:rgba(245,86,86,.2)}.notification-actions-button-highlight{padding:4px 12px;border-radius:12px;display:inline-flex;transition:background-color .15s cubic-bezier(0,0,.2,1)}.notification-progress-ring{top:0;left:0;right:0;bottom:0;width:100%;height:100%;position:absolute}.notification-progress-circle{transform:rotate(-90deg);transform-origin:50% 50%;stroke:#657385}"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "bbLocalize": i2__namespace$1.BbLocalize }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
500
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: BbNotificationsItem, decorators: [{
501
- type: i0.Component,
502
- args: [{
503
- selector: 'bb-notifications-item',
504
- templateUrl: './notifications-item.component.html',
505
- styleUrls: ['./notifications-item.component.scss'],
506
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
507
- encapsulation: i0.ViewEncapsulation.None,
508
- preserveWhitespaces: false,
509
- host: {
510
- 'role': 'alert'
511
- }
512
- }]
513
- }], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace.Platform }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { notification: [{
514
- type: i0.Input
515
- }], dismissButtonText: [{
516
- type: i0.Input
517
- }], progressElementRef: [{
518
- type: i0.ViewChild,
519
- args: ['progress']
520
- }], getClass: [{
521
- type: i0.HostBinding,
522
- args: ['class']
401
+ var BbNotificationsItem = /** @class */ (function () {
402
+ function BbNotificationsItem(_zone, _platform, _changeDetection) {
403
+ var _this = this;
404
+ this._zone = _zone;
405
+ this._platform = _platform;
406
+ this._changeDetection = _changeDetection;
407
+ // Data.
408
+ this._progress = 0;
409
+ this._count = 0;
410
+ // Data.
411
+ this._radius = 19;
412
+ this._circumference = this._radius * 2 * Math.PI;
413
+ this.callActionAndDestroy = function (notification, action) {
414
+ // Perform the callback (if it exists).
415
+ action && action.callback && action.callback();
416
+ // Call the destroy method (if it exists).
417
+ notification && notification.destroy && notification.destroy();
418
+ };
419
+ this.instance = function () {
420
+ // Calculate the difference.
421
+ _this._difference = (Date.now() - _this._startTime) - (_this._count * _this._speed);
422
+ // Add up the count.
423
+ if (_this._count++ === _this._steps) {
424
+ _this.notification.destroy();
425
+ }
426
+ // Add the steps to the progress.
427
+ _this._progress += 100 / _this._steps;
428
+ // Set a new timer.
429
+ _this._timer = _this.setTimeout(_this.instance, _this._speed - _this._difference);
430
+ // Run a new change detection cycle.
431
+ _this._zone.run(function () { return _this._changeDetection.detectChanges(); });
432
+ };
433
+ this.setTimeout = function (method, timeout) {
434
+ // Check if the window and method exist.
435
+ if (!window || !window.setTimeout) {
436
+ return null;
437
+ }
438
+ return window.setTimeout(method, timeout);
439
+ };
440
+ }
441
+ Object.defineProperty(BbNotificationsItem.prototype, "getClass", {
442
+ get: function () {
443
+ return "bb-notifications-item " + this.notification.type;
444
+ },
445
+ enumerable: false,
446
+ configurable: true
447
+ });
448
+ Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeArray", {
449
+ get: function () {
450
+ var value = Math.floor(this._circumference);
451
+ return value + ", " + value;
452
+ },
453
+ enumerable: false,
454
+ configurable: true
455
+ });
456
+ Object.defineProperty(BbNotificationsItem.prototype, "progressStrokeOffset", {
457
+ get: function () {
458
+ return Math.floor(this._circumference - this._progress / 100 * this._circumference);
459
+ },
460
+ enumerable: false,
461
+ configurable: true
462
+ });
463
+ Object.defineProperty(BbNotificationsItem.prototype, "isContentString", {
464
+ get: function () {
465
+ return typeof this.notification.content === 'string';
466
+ },
467
+ enumerable: false,
468
+ configurable: true
469
+ });
470
+ BbNotificationsItem.prototype.ngOnInit = function () {
471
+ // Check if the notification timeout is not 0 and the platform is a browser.
472
+ if (this.notification.timeout <= 0 || !this._platform.isBrowser) {
473
+ this.notification.dismiss = true;
474
+ return;
475
+ }
476
+ // Start the timeout.
477
+ this.startTimeout();
478
+ };
479
+ BbNotificationsItem.prototype.ngOnDestroy = function () {
480
+ // Clear the timeout if it was set.
481
+ this._timer && window && window.clearTimeout && window.clearTimeout(this._timer);
482
+ };
483
+ BbNotificationsItem.prototype.startTimeout = function () {
484
+ var _this = this;
485
+ // Calculate the steps of the timeout.
486
+ this._steps = this.notification.timeout / 10;
487
+ // Calculate the speed of the timeout.
488
+ this._speed = this.notification.timeout / this._steps;
489
+ // Get the start time.
490
+ this._startTime = Date.now();
491
+ // Set a new timer outside of Angular.
492
+ this._zone.runOutsideAngular(function () { return _this._timer = _this.setTimeout(_this.instance, _this._speed); });
493
+ };
494
+ return BbNotificationsItem;
495
+ }());
496
+ BbNotificationsItem.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbNotificationsItem, deps: [{ token: i0__namespace.NgZone }, { token: i1__namespace.Platform }, { token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
497
+ BbNotificationsItem.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbNotificationsItem, selector: "bb-notifications-item", inputs: { notification: "notification", dismissButtonText: "dismissButtonText" }, host: { attributes: { "role": "alert" }, properties: { "class": "this.getClass" } }, viewQueries: [{ propertyName: "progressElementRef", first: true, predicate: ["progress"], descendants: true }], ngImport: i0__namespace, template: "<div class=\"notification-content-wrapper\">\n <!--\n The icon for the notification.\n\n The icon is reflected by the type of the\n notification. Same goes for the color and\n background-color.\n -->\n <div [style.color]=\"notification?.color\"\n [style.background-color]=\"notification?.backgroundColor\"\n class=\"notification-icon-wrapper\">\n <svg xmlns=\"http://www.w3.org/2000/svg\"\n viewBox=\"0 0 16 19.5\"\n class=\"notification-icon\">\n <path\n d=\"M8 19.5c1.1 0 2-.9 2-2H6c0 1.1.9 2 2 2zM14 13.5v-5c0-3.1-1.6-5.6-4.5-6.3v-.7C9.5.7 8.8 0 8 0S6.5.7 6.5 1.5v.7C3.6 2.9 2 5.4 2 8.5v5l-2 2v1h16v-1l-2-2z\">\n </path>\n </svg>\n\n <!--\n The circular progress for the notification.\n\n The progress is only visible when a timeout is\n set. The progress adapts to the time remaining\n for the notification.\n -->\n <svg *ngIf=\"notification?.timeout > 0\"\n class=\"notification-progress-ring\"\n viewBox=\"0 0 40 40\"\n role=\"progressbar\">\n <circle #progress\n [attr.stroke-dasharray]=\"progressStrokeArray\"\n [attr.stroke-dashoffset]=\"progressStrokeOffset\"\n [style.stroke]=\"notification?.color\"\n class=\"notification-progress-circle\"\n stroke-width=\"2\"\n fill=\"transparent\"\n r=\"19\"\n cx=\"20\"\n cy=\"20\">\n </circle>\n </svg>\n </div>\n\n <!--\n The content for the notification.\n\n This displays a string or a template based\n on the given parameter by the user.\n -->\n <div class=\"notification-content\">\n <ng-container *ngIf=\"isContentString; else templateContent\"\n [ngSwitch]=\"notification?.localize\">\n <ng-container *ngSwitchCase=\"true\">\n {{ $any(notification?.content) | bbLocalize:{data: notification?.data} }}\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{ notification?.content }}\n </ng-container>\n </ng-container>\n </div>\n</div>\n\n<!--\n The actions of the notification.\n\n All actions are displayed here and are\n based on the actions array the user provided.\n-->\n<div *ngIf=\"notification?.actions?.length > 0 || notification?.dismiss\"\n class=\"notification-actions\">\n <button *ngFor=\"let action of notification?.actions\"\n (click)=\"callActionAndDestroy(notification, action)\"\n type=\"button\"\n [class.destructive]=\"action?.type === 'cancel'\"\n class=\"notification-actions-button\">\n <span [ngSwitch]=\"notification?.localize\"\n class=\"notification-actions-button-highlight\">\n <ng-container *ngSwitchCase=\"true\">\n {{ action?.title | bbLocalize:{data: notification?.data} }}\n </ng-container>\n <ng-container *ngSwitchDefault>\n {{ action?.title }}\n </ng-container>\n </span>\n </button>\n <button *ngIf=\"notification?.dismiss\"\n (click)=\"notification?.destroy()\"\n class=\"notification-actions-button destructive\"\n type=\"button\">\n <span class=\"notification-actions-button-highlight\">\n {{ notification?.dismissText || dismissButtonText }}\n </span>\n </button>\n</div>\n\n<!--\n The outlet for the notification content template ref.\n-->\n<ng-template #templateContent>\n <ng-container *ngTemplateOutlet=\"$any(notification?.content)\"></ng-container>\n</ng-template>\n", styles: [".bb-notifications-item{display:flex;border-radius:4px;flex-direction:column;background-color:#fff;border:1px solid #d6dbe0}.bb-notifications-item.success .notification-icon-wrapper{color:#2dc05d;background-color:#ebfaf0}.bb-notifications-item.success .notification-progress-circle{stroke:#36d068}.bb-notifications-item.error .notification-icon-wrapper{color:#f43e3e;background-color:#feeeee}.bb-notifications-item.error .notification-progress-circle{stroke:#f55656}.bb-notifications-item.warning .notification-icon-wrapper{color:#f1ae00;background-color:#fff8e7}.bb-notifications-item.warning .notification-progress-circle{stroke:#ffbc0b}.bb-notifications-item.info .notification-icon-wrapper{color:#099bf6;background-color:#e9f6fe}.bb-notifications-item.info .notification-progress-circle{stroke:#22a5f7}.bb-notifications-item.custom .notification-icon-wrapper{color:#657385;background-color:#f3f5f6}.bb-notifications-item.custom .notification-progress-circle{stroke:#657385}.notification-content-wrapper{padding:20px;display:flex;align-items:center}.notification-icon-wrapper{width:40px;height:40px;display:flex;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;position:relative;border-radius:50%;align-items:center;justify-content:center;color:#657385;background-color:#f3f5f6}.notification-icon{width:100%;height:100%;padding:10px;fill:currentColor}.notification-content{flex:1;font-size:14px;line-height:1.5;font-weight:500;margin-left:20px;color:#000000d9}.notification-content i{font-style:italic}.notification-content,.notification-actions-button{font-family:inherit}.notification-actions{display:flex;margin:0 20px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;border-top:1px solid #f3f5f6}.notification-actions-button{flex:1;border:none;color:#22a5f7;cursor:pointer;font-size:14px;font-weight:500;padding:12px 2px;text-align:center;background-color:transparent}.notification-actions-button:hover>.notification-actions-button-highlight,.notification-actions-button:focus>.notification-actions-button-highlight{background-color:#22a5f71a}.notification-actions-button:active>.notification-actions-button-highlight{background-color:#22a5f733}.notification-actions-button.destructive{color:#f55656}.notification-actions-button.destructive:hover>.notification-actions-button-highlight,.notification-actions-button.destructive:focus>.notification-actions-button-highlight{background-color:#f556561a}.notification-actions-button.destructive:active>.notification-actions-button-highlight{background-color:#f5565633}.notification-actions-button-highlight{padding:4px 12px;border-radius:12px;display:inline-flex;transition:background-color .15s cubic-bezier(0,0,.2,1)}.notification-progress-ring{top:0;left:0;right:0;bottom:0;width:100%;height:100%;position:absolute}.notification-progress-circle{transform:rotate(-90deg);transform-origin:50% 50%;stroke:#657385}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }], pipes: { "bbLocalize": i2__namespace$1.BbLocalize }, changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
498
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbNotificationsItem, decorators: [{
499
+ type: i0.Component,
500
+ args: [{
501
+ selector: 'bb-notifications-item',
502
+ templateUrl: './notifications-item.component.html',
503
+ styleUrls: ['./notifications-item.component.scss'],
504
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
505
+ encapsulation: i0.ViewEncapsulation.None,
506
+ preserveWhitespaces: false,
507
+ host: {
508
+ 'role': 'alert'
509
+ }
510
+ }]
511
+ }], ctorParameters: function () { return [{ type: i0__namespace.NgZone }, { type: i1__namespace.Platform }, { type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { notification: [{
512
+ type: i0.Input
513
+ }], dismissButtonText: [{
514
+ type: i0.Input
515
+ }], progressElementRef: [{
516
+ type: i0.ViewChild,
517
+ args: ['progress']
518
+ }], getClass: [{
519
+ type: i0.HostBinding,
520
+ args: ['class']
523
521
  }] } });
524
522
 
525
- var BbNotificationsList = /** @class */ (function () {
526
- function BbNotificationsList(data) {
527
- this.data = data;
528
- // Data.
529
- this.position = null;
530
- // Track by function.
531
- this.trackByFn = function (_, item) { return item.id; };
532
- }
533
- Object.defineProperty(BbNotificationsList.prototype, "horizontalPosition", {
534
- get: function () {
535
- return this.location.horizontal;
536
- },
537
- enumerable: false,
538
- configurable: true
539
- });
540
- Object.defineProperty(BbNotificationsList.prototype, "verticalPosition", {
541
- get: function () {
542
- return this.location.vertical;
543
- },
544
- enumerable: false,
545
- configurable: true
546
- });
547
- Object.defineProperty(BbNotificationsList.prototype, "animation", {
548
- get: function () {
549
- var to = this.horizontalPosition === 'flex-start'
550
- ? -50
551
- : 50;
552
- return { to: to };
553
- },
554
- enumerable: false,
555
- configurable: true
556
- });
557
- Object.defineProperty(BbNotificationsList.prototype, "location", {
558
- get: function () {
559
- var _a = __read((this.data.position || '').split('|'), 2), y = _a[0], x = _a[1];
560
- return { vertical: y || null, horizontal: x || null };
561
- },
562
- enumerable: false,
563
- configurable: true
564
- });
565
- return BbNotificationsList;
566
- }());
567
- BbNotificationsList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: BbNotificationsList, deps: [{ token: NotificationsData }], target: i0__namespace.ɵɵFactoryTarget.Component });
568
- BbNotificationsList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.0.4", type: BbNotificationsList, selector: "bb-notifications-list", host: { attributes: { "role": "list" }, properties: { "style.justify-content": "this.horizontalPosition", "style.align-items": "this.verticalPosition" }, classAttribute: "bb-notifications-list" }, ngImport: i0__namespace, template: "<!--\r\n The notifications list.\r\n\r\n The list provides the animation effect for the\r\n incoming notifications.\r\n-->\r\n<div *ngIf=\"data?.data | async as notifications\"\r\n [@notificationListAnimation]=\"{value: notifications?.length, params: animation}\"\r\n class=\"notifications-list-wrapper\">\r\n <!--\r\n The loop for the notifications.\r\n\r\n All notifications will be displayed here. They\r\n are wrapped within a wrapper which separates them.\r\n -->\r\n <div *ngFor=\"let notification of notifications; trackBy: trackByFn\"\r\n class=\"notifications-item-wrapper\">\r\n <bb-notifications-item [notification]=\"notification\"\r\n [dismissButtonText]=\"data?.dismissText\">\r\n </bb-notifications-item>\r\n </div>\r\n</div>\r\n", styles: [".bb-notifications-list{top:0;left:0;right:0;bottom:0;z-index:1100;padding:10px;display:flex;position:fixed;pointer-events:none}.notifications-list-wrapper{width:100%;display:block;max-width:400px;position:relative}.notifications-item-wrapper{padding:0;margin:0 0 10px;pointer-events:all}"], components: [{ type: BbNotificationsItem, selector: "bb-notifications-item", inputs: ["notification", "dismissButtonText"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [notificationAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
569
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: BbNotificationsList, decorators: [{
570
- type: i0.Component,
571
- args: [{
572
- selector: 'bb-notifications-list',
573
- templateUrl: './notifications-list.component.html',
574
- styleUrls: ['./notifications-list.component.scss'],
575
- animations: [notificationAnimation],
576
- changeDetection: i0.ChangeDetectionStrategy.OnPush,
577
- encapsulation: i0.ViewEncapsulation.None,
578
- preserveWhitespaces: false,
579
- host: {
580
- 'class': 'bb-notifications-list',
581
- 'role': 'list'
582
- }
583
- }]
584
- }], ctorParameters: function () { return [{ type: NotificationsData }]; }, propDecorators: { horizontalPosition: [{
585
- type: i0.HostBinding,
586
- args: ['style.justify-content']
587
- }], verticalPosition: [{
588
- type: i0.HostBinding,
589
- args: ['style.align-items']
523
+ var BbNotificationsList = /** @class */ (function () {
524
+ function BbNotificationsList(data) {
525
+ this.data = data;
526
+ // Data.
527
+ this.position = null;
528
+ // Track by function.
529
+ this.trackByFn = function (_, item) { return item.id; };
530
+ }
531
+ Object.defineProperty(BbNotificationsList.prototype, "horizontalPosition", {
532
+ get: function () {
533
+ return this.location.horizontal;
534
+ },
535
+ enumerable: false,
536
+ configurable: true
537
+ });
538
+ Object.defineProperty(BbNotificationsList.prototype, "verticalPosition", {
539
+ get: function () {
540
+ return this.location.vertical;
541
+ },
542
+ enumerable: false,
543
+ configurable: true
544
+ });
545
+ Object.defineProperty(BbNotificationsList.prototype, "animation", {
546
+ get: function () {
547
+ var to = this.horizontalPosition === 'flex-start'
548
+ ? -50
549
+ : 50;
550
+ return { to: to };
551
+ },
552
+ enumerable: false,
553
+ configurable: true
554
+ });
555
+ Object.defineProperty(BbNotificationsList.prototype, "location", {
556
+ get: function () {
557
+ var _a = __read((this.data.position || '').split('|'), 2), y = _a[0], x = _a[1];
558
+ return { vertical: y || null, horizontal: x || null };
559
+ },
560
+ enumerable: false,
561
+ configurable: true
562
+ });
563
+ return BbNotificationsList;
564
+ }());
565
+ BbNotificationsList.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbNotificationsList, deps: [{ token: NotificationsData }], target: i0__namespace.ɵɵFactoryTarget.Component });
566
+ BbNotificationsList.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.10", type: BbNotificationsList, selector: "bb-notifications-list", host: { attributes: { "role": "list" }, properties: { "style.justify-content": "this.horizontalPosition", "style.align-items": "this.verticalPosition" }, classAttribute: "bb-notifications-list" }, ngImport: i0__namespace, template: "<!--\n The notifications list.\n\n The list provides the animation effect for the\n incoming notifications.\n-->\n<div *ngIf=\"data?.data | async as notifications\"\n [@notificationListAnimation]=\"{value: notifications?.length, params: animation}\"\n class=\"notifications-list-wrapper\">\n <!--\n The loop for the notifications.\n\n All notifications will be displayed here. They\n are wrapped within a wrapper which separates them.\n -->\n <div *ngFor=\"let notification of notifications; trackBy: trackByFn\"\n class=\"notifications-item-wrapper\">\n <bb-notifications-item [notification]=\"notification\"\n [dismissButtonText]=\"data?.dismissText\">\n </bb-notifications-item>\n </div>\n</div>\n", styles: [".bb-notifications-list{top:0;left:0;right:0;bottom:0;z-index:1100;padding:10px;display:flex;position:fixed;pointer-events:none}.notifications-list-wrapper{width:100%;display:block;max-width:400px;position:relative}.notifications-item-wrapper{padding:0;margin:0 0 10px;pointer-events:all}\n"], components: [{ type: BbNotificationsItem, selector: "bb-notifications-item", inputs: ["notification", "dismissButtonText"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], pipes: { "async": i2__namespace.AsyncPipe }, animations: [notificationAnimation], changeDetection: i0__namespace.ChangeDetectionStrategy.OnPush, encapsulation: i0__namespace.ViewEncapsulation.None });
567
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: BbNotificationsList, decorators: [{
568
+ type: i0.Component,
569
+ args: [{
570
+ selector: 'bb-notifications-list',
571
+ templateUrl: './notifications-list.component.html',
572
+ styleUrls: ['./notifications-list.component.scss'],
573
+ animations: [notificationAnimation],
574
+ changeDetection: i0.ChangeDetectionStrategy.OnPush,
575
+ encapsulation: i0.ViewEncapsulation.None,
576
+ preserveWhitespaces: false,
577
+ host: {
578
+ 'class': 'bb-notifications-list',
579
+ 'role': 'list'
580
+ }
581
+ }]
582
+ }], ctorParameters: function () { return [{ type: NotificationsData }]; }, propDecorators: { horizontalPosition: [{
583
+ type: i0.HostBinding,
584
+ args: ['style.justify-content']
585
+ }], verticalPosition: [{
586
+ type: i0.HostBinding,
587
+ args: ['style.align-items']
590
588
  }] } });
591
589
 
592
- var NotificationsInjector = /** @class */ (function () {
593
- function NotificationsInjector(_parentInjector, _additionalTokens) {
594
- this._parentInjector = _parentInjector;
595
- this._additionalTokens = _additionalTokens;
596
- }
597
- NotificationsInjector.prototype.get = function (token, notFoundValue) {
598
- // First check if the additional token
599
- // contains the token.
600
- var value = this._additionalTokens.get(token);
601
- // If that value exists return it.
602
- if (value) {
603
- return value;
604
- }
605
- // Else query the parent injector.
606
- return this._parentInjector.get(token, notFoundValue);
607
- };
608
- return NotificationsInjector;
590
+ var NotificationsInjector = /** @class */ (function () {
591
+ function NotificationsInjector(_parentInjector, _additionalTokens) {
592
+ this._parentInjector = _parentInjector;
593
+ this._additionalTokens = _additionalTokens;
594
+ }
595
+ NotificationsInjector.prototype.get = function (token, notFoundValue) {
596
+ // First check if the additional token
597
+ // contains the token.
598
+ var value = this._additionalTokens.get(token);
599
+ // If that value exists return it.
600
+ if (value) {
601
+ return value;
602
+ }
603
+ // Else query the parent injector.
604
+ return this._parentInjector.get(token, notFoundValue);
605
+ };
606
+ return NotificationsInjector;
609
607
  }());
610
608
 
611
- var Notifications = /** @class */ (function () {
612
- function Notifications(_injector, _platform, _applicationRef, _localize, _config, _componentFactoryResolver) {
613
- this._injector = _injector;
614
- this._platform = _platform;
615
- this._applicationRef = _applicationRef;
616
- this._localize = _localize;
617
- this._config = _config;
618
- this._componentFactoryResolver = _componentFactoryResolver;
619
- // The data containing the notifications.
620
- this._notifications$ = new rxjs.BehaviorSubject([]);
621
- this.getProperty = function (property, defaultValue) {
622
- return typeof property === 'undefined'
623
- ? defaultValue
624
- : property;
625
- };
626
- // Get the config.
627
- var config = this._config || {};
628
- // Set the config.
629
- this._defaultMode = this.getProperty(config.mode, 'prepend');
630
- this._defaultTimeout = this.getProperty(config.timeout, 8000);
631
- this._defaultLocalize = this.getProperty(config.localize, false);
632
- this._defaultDismiss = this.getProperty(config.dismiss, true);
633
- this._defaultDismissText = this.getProperty(config.dismissText, 'Dismiss');
634
- this._defaultPosition = this.getProperty(config.position, exports.NotificationsPosition.TopRight);
635
- // Create the element that holds all notifications.
636
- this.createElement();
637
- }
638
- Notifications.prototype.success = function (content, actions, timeout) {
639
- if (actions === void 0) { actions = []; }
640
- if (timeout === void 0) { timeout = this._defaultTimeout; }
641
- return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Success });
642
- };
643
- Notifications.prototype.error = function (content, actions, timeout) {
644
- if (actions === void 0) { actions = []; }
645
- if (timeout === void 0) { timeout = this._defaultTimeout; }
646
- return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Error });
647
- };
648
- Notifications.prototype.warn = function (content, actions, timeout) {
649
- if (actions === void 0) { actions = []; }
650
- if (timeout === void 0) { timeout = this._defaultTimeout; }
651
- return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Warning });
652
- };
653
- Notifications.prototype.info = function (content, actions, timeout) {
654
- if (actions === void 0) { actions = []; }
655
- if (timeout === void 0) { timeout = this._defaultTimeout; }
656
- return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Info });
657
- };
658
- Notifications.prototype.create = function (notification) {
659
- var _this = this;
660
- // Compose a new notification item.
661
- var item = this.compose(notification);
662
- // Add the destroy function to the notification.
663
- item.destroy = function () { return _this.pull(item); };
664
- // Add the notification to the list
665
- // and return the item.
666
- return this.push(item);
667
- };
668
- Notifications.prototype.push = function (notification) {
669
- // Get the current list.
670
- var oldList = this._notifications$.getValue();
671
- // Check which mode is activated.
672
- var newList;
673
- switch (this._defaultMode) {
674
- case 'append':
675
- newList = __spreadArray(__spreadArray([], __read(oldList)), [notification]);
676
- break;
677
- case 'prepend':
678
- default:
679
- newList = __spreadArray([notification], __read(oldList));
680
- }
681
- // Push the new notifications.
682
- this._notifications$.next(newList);
683
- // Return the notification for further use.
684
- return notification;
685
- };
686
- Notifications.prototype.pull = function (notification) {
687
- // Get the current list.
688
- var newList = this._notifications$
689
- .getValue()
690
- .filter(function (item) { return item.id !== notification.id; });
691
- // Push a new list.
692
- this._notifications$.next(newList);
693
- };
694
- Notifications.prototype.compose = function (notification) {
695
- // Attach a random id to the notification.
696
- notification.id = Math.random().toString(36).substr(2, 10);
697
- // Set all properties.
698
- notification.type = this.getProperty(notification.type, exports.NotificationType.Custom);
699
- notification.content = this.getProperty(notification.content, null);
700
- notification.data = this.getProperty(notification.data, {});
701
- notification.timeout = this.getProperty(notification.timeout, this._defaultTimeout);
702
- notification.localize = this.getProperty(notification.localize, this._defaultLocalize);
703
- notification.dismiss = this.getProperty(notification.dismiss, this._defaultDismiss);
704
- // Dismiss text localization.
705
- var dismissText = this.getProperty(notification.dismissText, this._defaultDismissText);
706
- notification.dismissText = this._defaultLocalize && this._localize
707
- ? this._localize.translate(dismissText)
708
- : dismissText;
709
- // Return the composed notification.
710
- return notification;
711
- };
712
- Notifications.prototype.createElement = function () {
713
- // Create a map with the config.
714
- var map = new WeakMap();
715
- map.set(NotificationsData, {
716
- data: this._notifications$.pipe(operators.share()),
717
- dismissText: this._defaultDismissText,
718
- position: this._defaultPosition
719
- });
720
- // Create a custom injector.
721
- var notificationsInjector = new NotificationsInjector(this._injector, map);
722
- // Create the notification list and
723
- // get a reference to the component.
724
- this._ref = this._componentFactoryResolver
725
- .resolveComponentFactory(BbNotificationsList)
726
- .create(notificationsInjector);
727
- // Detect the changes.
728
- this._ref.changeDetectorRef.detectChanges();
729
- // Attach the component's view to the application
730
- // so that the change detection will run properly.
731
- this._applicationRef.attachView(this._ref.hostView);
732
- // If the platform is not a browser return.
733
- if (!this._platform.isBrowser) {
734
- return;
735
- }
736
- try {
737
- // Append the element to the DOM.
738
- document.body.appendChild(this._ref.location.nativeElement);
739
- }
740
- catch (_a) {
741
- // Don't do anything, because it must've failed.
742
- }
743
- };
744
- return Notifications;
745
- }());
746
- Notifications.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: Notifications, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Platform }, { token: i0__namespace.ApplicationRef }, { token: i2__namespace$1.Localize, optional: true }, { token: NotificationsConfig, optional: true }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
747
- Notifications.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: Notifications });
748
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: Notifications, decorators: [{
749
- type: i0.Injectable
750
- }], ctorParameters: function () {
751
- return [{ type: i0__namespace.Injector }, { type: i1__namespace.Platform }, { type: i0__namespace.ApplicationRef }, { type: i2__namespace$1.Localize, decorators: [{
752
- type: i0.Optional
753
- }] }, { type: NotificationsConfig, decorators: [{
754
- type: i0.Optional
755
- }] }, { type: i0__namespace.ComponentFactoryResolver }];
609
+ var Notifications = /** @class */ (function () {
610
+ function Notifications(_injector, _platform, _applicationRef, _localize, _config, _componentFactoryResolver) {
611
+ this._injector = _injector;
612
+ this._platform = _platform;
613
+ this._applicationRef = _applicationRef;
614
+ this._localize = _localize;
615
+ this._config = _config;
616
+ this._componentFactoryResolver = _componentFactoryResolver;
617
+ // The data containing the notifications.
618
+ this._notifications$ = new rxjs.BehaviorSubject([]);
619
+ this.getProperty = function (property, defaultValue) {
620
+ return typeof property === 'undefined'
621
+ ? defaultValue
622
+ : property;
623
+ };
624
+ // Get the config.
625
+ var config = this._config || {};
626
+ // Set the config.
627
+ this._defaultMode = this.getProperty(config.mode, 'prepend');
628
+ this._defaultTimeout = this.getProperty(config.timeout, 8000);
629
+ this._defaultLocalize = this.getProperty(config.localize, false);
630
+ this._defaultDismiss = this.getProperty(config.dismiss, true);
631
+ this._defaultDismissText = this.getProperty(config.dismissText, 'Dismiss');
632
+ this._defaultPosition = this.getProperty(config.position, exports.NotificationsPosition.TopRight);
633
+ // Create the element that holds all notifications.
634
+ this.createElement();
635
+ }
636
+ Notifications.prototype.success = function (content, actions, timeout) {
637
+ if (actions === void 0) { actions = []; }
638
+ if (timeout === void 0) { timeout = this._defaultTimeout; }
639
+ return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Success });
640
+ };
641
+ Notifications.prototype.error = function (content, actions, timeout) {
642
+ if (actions === void 0) { actions = []; }
643
+ if (timeout === void 0) { timeout = this._defaultTimeout; }
644
+ return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Error });
645
+ };
646
+ Notifications.prototype.warn = function (content, actions, timeout) {
647
+ if (actions === void 0) { actions = []; }
648
+ if (timeout === void 0) { timeout = this._defaultTimeout; }
649
+ return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Warning });
650
+ };
651
+ Notifications.prototype.info = function (content, actions, timeout) {
652
+ if (actions === void 0) { actions = []; }
653
+ if (timeout === void 0) { timeout = this._defaultTimeout; }
654
+ return this.create({ content: content, timeout: timeout, actions: actions, type: exports.NotificationType.Info });
655
+ };
656
+ Notifications.prototype.create = function (notification) {
657
+ var _this = this;
658
+ // Compose a new notification item.
659
+ var item = this.compose(notification);
660
+ // Add the destroy function to the notification.
661
+ item.destroy = function () { return _this.pull(item); };
662
+ // Add the notification to the list
663
+ // and return the item.
664
+ return this.push(item);
665
+ };
666
+ Notifications.prototype.push = function (notification) {
667
+ // Get the current list.
668
+ var oldList = this._notifications$.getValue();
669
+ // Check which mode is activated.
670
+ var newList;
671
+ switch (this._defaultMode) {
672
+ case 'append':
673
+ newList = __spreadArray(__spreadArray([], __read(oldList)), [notification]);
674
+ break;
675
+ case 'prepend':
676
+ default:
677
+ newList = __spreadArray([notification], __read(oldList));
678
+ }
679
+ // Push the new notifications.
680
+ this._notifications$.next(newList);
681
+ // Return the notification for further use.
682
+ return notification;
683
+ };
684
+ Notifications.prototype.pull = function (notification) {
685
+ // Get the current list.
686
+ var newList = this._notifications$
687
+ .getValue()
688
+ .filter(function (item) { return item.id !== notification.id; });
689
+ // Push a new list.
690
+ this._notifications$.next(newList);
691
+ };
692
+ Notifications.prototype.compose = function (notification) {
693
+ // Attach a random id to the notification.
694
+ notification.id = Math.random().toString(36).substr(2, 10);
695
+ // Set all properties.
696
+ notification.type = this.getProperty(notification.type, exports.NotificationType.Custom);
697
+ notification.content = this.getProperty(notification.content, null);
698
+ notification.data = this.getProperty(notification.data, {});
699
+ notification.timeout = this.getProperty(notification.timeout, this._defaultTimeout);
700
+ notification.localize = this.getProperty(notification.localize, this._defaultLocalize);
701
+ notification.dismiss = this.getProperty(notification.dismiss, this._defaultDismiss);
702
+ // Dismiss text localization.
703
+ var dismissText = this.getProperty(notification.dismissText, this._defaultDismissText);
704
+ notification.dismissText = this._defaultLocalize && this._localize
705
+ ? this._localize.translate(dismissText)
706
+ : dismissText;
707
+ // Return the composed notification.
708
+ return notification;
709
+ };
710
+ Notifications.prototype.createElement = function () {
711
+ // Create a map with the config.
712
+ var map = new WeakMap();
713
+ map.set(NotificationsData, {
714
+ data: this._notifications$.pipe(operators.share()),
715
+ dismissText: this._defaultDismissText,
716
+ position: this._defaultPosition
717
+ });
718
+ // Create a custom injector.
719
+ var notificationsInjector = new NotificationsInjector(this._injector, map);
720
+ // Create the notification list and
721
+ // get a reference to the component.
722
+ this._ref = this._componentFactoryResolver
723
+ .resolveComponentFactory(BbNotificationsList)
724
+ .create(notificationsInjector);
725
+ // Detect the changes.
726
+ this._ref.changeDetectorRef.detectChanges();
727
+ // Attach the component's view to the application
728
+ // so that the change detection will run properly.
729
+ this._applicationRef.attachView(this._ref.hostView);
730
+ // If the platform is not a browser return.
731
+ if (!this._platform.isBrowser) {
732
+ return;
733
+ }
734
+ try {
735
+ // Append the element to the DOM.
736
+ document.body.appendChild(this._ref.location.nativeElement);
737
+ }
738
+ catch (_a) {
739
+ // Don't do anything, because it must've failed.
740
+ }
741
+ };
742
+ return Notifications;
743
+ }());
744
+ Notifications.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Notifications, deps: [{ token: i0__namespace.Injector }, { token: i1__namespace.Platform }, { token: i0__namespace.ApplicationRef }, { token: i2__namespace$1.Localize, optional: true }, { token: NotificationsConfig, optional: true }, { token: i0__namespace.ComponentFactoryResolver }], target: i0__namespace.ɵɵFactoryTarget.Injectable });
745
+ Notifications.ɵprov = i0__namespace.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Notifications });
746
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: Notifications, decorators: [{
747
+ type: i0.Injectable
748
+ }], ctorParameters: function () {
749
+ return [{ type: i0__namespace.Injector }, { type: i1__namespace.Platform }, { type: i0__namespace.ApplicationRef }, { type: i2__namespace$1.Localize, decorators: [{
750
+ type: i0.Optional
751
+ }] }, { type: NotificationsConfig, decorators: [{
752
+ type: i0.Optional
753
+ }] }, { type: i0__namespace.ComponentFactoryResolver }];
756
754
  } });
757
755
 
758
- var NotificationsModule = /** @class */ (function () {
759
- function NotificationsModule() {
760
- }
761
- NotificationsModule.forRoot = function (config) {
762
- return {
763
- ngModule: NotificationsModule,
764
- providers: [
765
- { provide: NotificationsConfig, useValue: config },
766
- Notifications
767
- ]
768
- };
769
- };
770
- return NotificationsModule;
771
- }());
772
- NotificationsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: NotificationsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
773
- NotificationsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: NotificationsModule, declarations: [BbNotificationsList, BbNotificationsItem], imports: [i2.CommonModule, i2$1.LocalizeModule] });
774
- NotificationsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: NotificationsModule, imports: [[i2.CommonModule, i2$1.LocalizeModule]] });
775
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.0.4", ngImport: i0__namespace, type: NotificationsModule, decorators: [{
776
- type: i0.NgModule,
777
- args: [{
778
- imports: [i2.CommonModule, i2$1.LocalizeModule],
779
- declarations: [BbNotificationsList, BbNotificationsItem],
780
- entryComponents: [BbNotificationsList]
781
- }]
756
+ var NotificationsModule = /** @class */ (function () {
757
+ function NotificationsModule() {
758
+ }
759
+ NotificationsModule.forRoot = function (config) {
760
+ return {
761
+ ngModule: NotificationsModule,
762
+ providers: [
763
+ { provide: NotificationsConfig, useValue: config },
764
+ Notifications
765
+ ]
766
+ };
767
+ };
768
+ return NotificationsModule;
769
+ }());
770
+ NotificationsModule.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: NotificationsModule, deps: [], target: i0__namespace.ɵɵFactoryTarget.NgModule });
771
+ NotificationsModule.ɵmod = i0__namespace.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: NotificationsModule, declarations: [BbNotificationsList, BbNotificationsItem], imports: [i2.CommonModule, i2$1.LocalizeModule] });
772
+ NotificationsModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: NotificationsModule, imports: [[i2.CommonModule, i2$1.LocalizeModule]] });
773
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.10", ngImport: i0__namespace, type: NotificationsModule, decorators: [{
774
+ type: i0.NgModule,
775
+ args: [{
776
+ imports: [i2.CommonModule, i2$1.LocalizeModule],
777
+ declarations: [BbNotificationsList, BbNotificationsItem],
778
+ entryComponents: [BbNotificationsList]
779
+ }]
782
780
  }] });
783
781
 
784
- /**
785
- * Generated bundle index. Do not edit.
782
+ /**
783
+ * Generated bundle index. Do not edit.
786
784
  */
787
785
 
788
786
  exports.Notifications = Notifications;
@@ -792,5 +790,5 @@
792
790
 
793
791
  Object.defineProperty(exports, '__esModule', { value: true });
794
792
 
795
- })));
793
+ }));
796
794
  //# sourceMappingURL=bravobit-bb-foundation-notifications.umd.js.map