@bravobit/bb-foundation 0.20.3 → 0.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (471) hide show
  1. package/README.md +47 -47
  2. package/auth/{bravobit-bb-foundation-auth.d.ts → index.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/collections/{bravobit-bb-foundation-collections.d.ts → index.d.ts} +5 -5
  24. package/collections/lib/collection.d.ts +43 -43
  25. package/collections/lib/collections.module.d.ts +10 -10
  26. package/collections/lib/components/collections-pager/collections-pager.component.d.ts +34 -34
  27. package/collections/lib/components/collections-viewer/collections-viewer.component.d.ts +12 -12
  28. package/collections/lib/components/collections.directive.d.ts +17 -17
  29. package/collections/lib/interfaces/collection.interface.d.ts +26 -26
  30. package/collections/lib/providers/api-collection.provider.d.ts +19 -19
  31. package/collections/lib/providers/collection.provider.d.ts +6 -6
  32. package/collections/lib/providers/local-collection.provider.d.ts +8 -8
  33. package/collections/public_api.d.ts +9 -9
  34. package/controls/{bravobit-bb-foundation-controls.d.ts → index.d.ts} +5 -5
  35. package/controls/lib/checkbox/checkbox/checkbox.component.d.ts +47 -47
  36. package/controls/lib/checkbox/checkbox-group/checkbox-group.component.d.ts +22 -18
  37. package/controls/lib/checkbox/checkbox.module.d.ts +9 -9
  38. package/controls/lib/controls.module.d.ts +7 -7
  39. package/controls/public_api.d.ts +4 -4
  40. package/dashboard/{bravobit-bb-foundation-dashboard.d.ts → index.d.ts} +5 -5
  41. package/dashboard/lib/dashboard/dashboard.component.d.ts +19 -19
  42. package/dashboard/lib/dashboard-header/dashboard-header.component.d.ts +11 -11
  43. package/dashboard/lib/dashboard-menu/dashboard-menu.component.d.ts +9 -9
  44. package/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.d.ts +11 -11
  45. package/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.d.ts +21 -21
  46. package/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.d.ts +27 -27
  47. package/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.d.ts +16 -16
  48. package/dashboard/lib/dashboard.module.d.ts +16 -16
  49. package/dashboard/public_api.d.ts +8 -8
  50. package/dialog/{bravobit-bb-foundation-dialog.d.ts → index.d.ts} +5 -5
  51. package/dialog/lib/dialog-actions/dialog-actions.component.d.ts +5 -5
  52. package/dialog/lib/dialog-confirm/dialog-confirm.component.d.ts +16 -16
  53. package/dialog/lib/dialog-container/dialog-container.component.d.ts +24 -24
  54. package/dialog/lib/dialog-header/dialog-header.component.d.ts +9 -9
  55. package/dialog/lib/dialog-link/dialog-link.component.d.ts +5 -5
  56. package/dialog/lib/dialog-modal/dialog-modal.component.d.ts +12 -12
  57. package/dialog/lib/dialog-overlay/dialog-overlay.component.d.ts +22 -22
  58. package/dialog/lib/dialog.injector.d.ts +8 -8
  59. package/dialog/lib/dialog.insertion.d.ts +8 -8
  60. package/dialog/lib/dialog.interfaces.d.ts +3 -3
  61. package/dialog/lib/dialog.module.d.ts +19 -19
  62. package/dialog/lib/dialog.ref.d.ts +8 -8
  63. package/dialog/lib/dialog.service.d.ts +19 -19
  64. package/dialog/public_api.d.ts +9 -9
  65. package/elements/{bravobit-bb-foundation-elements.d.ts → index.d.ts} +5 -5
  66. package/elements/lib/avatar/avatar.component.d.ts +25 -25
  67. package/elements/lib/button/button.component.d.ts +23 -23
  68. package/elements/lib/checkbox/checkbox.component.d.ts +27 -27
  69. package/elements/lib/date-picker/date-picker.component.d.ts +69 -69
  70. package/elements/lib/directives/addon.directive.d.ts +9 -9
  71. package/elements/lib/directives/autosize.directive.d.ts +18 -18
  72. package/elements/lib/directives/focus-trap.directive.d.ts +17 -17
  73. package/elements/lib/directives/focus.directive.d.ts +14 -14
  74. package/elements/lib/directives/form-submit.directive.d.ts +17 -17
  75. package/elements/lib/directives/input.directive.d.ts +38 -38
  76. package/elements/lib/directives/template.directive.d.ts +10 -10
  77. package/elements/lib/dropdown/dropdown.component.d.ts +21 -21
  78. package/elements/lib/elements.interfaces.d.ts +25 -25
  79. package/elements/lib/elements.module.d.ts +116 -116
  80. package/elements/lib/file-picker/file-picker.component.d.ts +49 -49
  81. package/elements/lib/form-control/form-control.component.d.ts +21 -21
  82. package/elements/lib/form-error/form-error.component.d.ts +29 -29
  83. package/elements/lib/form-group/form-group.component.d.ts +10 -10
  84. package/elements/lib/icon/icon.component.d.ts +22 -22
  85. package/elements/lib/image-picker/image-picker.component.d.ts +38 -38
  86. package/elements/lib/pipes/file-image.pipe.d.ts +13 -13
  87. package/elements/lib/pipes/file-size.pipe.d.ts +8 -8
  88. package/elements/lib/pipes/relative-time.pipe.d.ts +19 -19
  89. package/elements/lib/spinner/spinner.component.d.ts +12 -12
  90. package/elements/lib/tag/tag.component.d.ts +7 -7
  91. package/elements/public_api.d.ts +25 -25
  92. package/esm2020/auth/bravobit-bb-foundation-auth.mjs +4 -4
  93. package/esm2020/auth/lib/auth.interceptor.mjs +93 -93
  94. package/esm2020/auth/lib/auth.module.mjs +54 -54
  95. package/esm2020/auth/lib/auth.service.mjs +281 -281
  96. package/esm2020/auth/lib/auth.session.mjs +131 -131
  97. package/esm2020/auth/lib/directives/authenticated.directive.mjs +31 -31
  98. package/esm2020/auth/lib/directives/permission.directive.mjs +80 -80
  99. package/esm2020/auth/lib/directives/role.directive.mjs +37 -37
  100. package/esm2020/auth/lib/guards/anonymous.guard.mjs +34 -34
  101. package/esm2020/auth/lib/guards/authenticated.guard.mjs +35 -35
  102. package/esm2020/auth/lib/helpers/jwt.helper.mjs +69 -69
  103. package/esm2020/auth/lib/helpers/mapper.helper.mjs +35 -35
  104. package/esm2020/auth/lib/interfaces/config.interface.mjs +3 -3
  105. package/esm2020/auth/lib/interfaces/mapper.interface.mjs +2 -2
  106. package/esm2020/auth/lib/interfaces/provider.interface.mjs +2 -2
  107. package/esm2020/auth/lib/interfaces/token.interface.mjs +2 -2
  108. package/esm2020/auth/lib/permissions.service.mjs +56 -56
  109. package/esm2020/auth/lib/providers/email.provider.mjs +25 -25
  110. package/esm2020/auth/lib/providers/verify.provider.mjs +19 -19
  111. package/esm2020/auth/lib/tokens/use-authorization.token.mjs +3 -3
  112. package/esm2020/auth/public_api.mjs +19 -19
  113. package/esm2020/bravobit-bb-foundation.mjs +4 -4
  114. package/esm2020/collections/bravobit-bb-foundation-collections.mjs +4 -4
  115. package/esm2020/collections/lib/collection.mjs +102 -102
  116. package/esm2020/collections/lib/collections.module.mjs +54 -54
  117. package/esm2020/collections/lib/components/collections-pager/collections-pager.component.mjs +123 -123
  118. package/esm2020/collections/lib/components/collections-viewer/collections-viewer.component.mjs +31 -31
  119. package/esm2020/collections/lib/components/collections.directive.mjs +43 -43
  120. package/esm2020/collections/lib/interfaces/collection.interface.mjs +2 -2
  121. package/esm2020/collections/lib/providers/api-collection.provider.mjs +71 -71
  122. package/esm2020/collections/lib/providers/collection.provider.mjs +13 -13
  123. package/esm2020/collections/lib/providers/local-collection.provider.mjs +16 -16
  124. package/esm2020/collections/public_api.mjs +10 -10
  125. package/esm2020/controls/bravobit-bb-foundation-controls.mjs +4 -4
  126. package/esm2020/controls/lib/checkbox/checkbox/checkbox.component.mjs +153 -153
  127. package/esm2020/controls/lib/checkbox/checkbox-group/checkbox-group.component.mjs +61 -48
  128. package/esm2020/controls/lib/checkbox/checkbox.module.mjs +19 -19
  129. package/esm2020/controls/lib/controls.module.mjs +16 -16
  130. package/esm2020/controls/public_api.mjs +5 -5
  131. package/esm2020/dashboard/bravobit-bb-foundation-dashboard.mjs +4 -4
  132. package/esm2020/dashboard/lib/dashboard/dashboard.component.mjs +56 -56
  133. package/esm2020/dashboard/lib/dashboard-header/dashboard-header.component.mjs +30 -30
  134. package/esm2020/dashboard/lib/dashboard-menu/dashboard-menu.component.mjs +31 -31
  135. package/esm2020/dashboard/lib/dashboard-menu-item/dashboard-menu-item.component.mjs +29 -29
  136. package/esm2020/dashboard/lib/dashboard-sidebar/dashboard-sidebar.component.mjs +75 -75
  137. package/esm2020/dashboard/lib/dashboard-sidebar-group/dashboard-sidebar-group.component.mjs +99 -99
  138. package/esm2020/dashboard/lib/dashboard-sidebar-item/dashboard-sidebar-item.component.mjs +62 -62
  139. package/esm2020/dashboard/lib/dashboard.module.mjs +47 -47
  140. package/esm2020/dashboard/public_api.mjs +9 -9
  141. package/esm2020/dialog/bravobit-bb-foundation-dialog.mjs +4 -4
  142. package/esm2020/dialog/lib/dialog-actions/dialog-actions.component.mjs +12 -12
  143. package/esm2020/dialog/lib/dialog-confirm/dialog-confirm.component.mjs +37 -37
  144. package/esm2020/dialog/lib/dialog-container/dialog-container.component.mjs +153 -153
  145. package/esm2020/dialog/lib/dialog-header/dialog-header.component.mjs +25 -25
  146. package/esm2020/dialog/lib/dialog-link/dialog-link.component.mjs +11 -11
  147. package/esm2020/dialog/lib/dialog-modal/dialog-modal.component.mjs +46 -46
  148. package/esm2020/dialog/lib/dialog-overlay/dialog-overlay.component.mjs +134 -134
  149. package/esm2020/dialog/lib/dialog.injector.mjs +18 -18
  150. package/esm2020/dialog/lib/dialog.insertion.mjs +16 -16
  151. package/esm2020/dialog/lib/dialog.interfaces.mjs +3 -3
  152. package/esm2020/dialog/lib/dialog.module.mjs +68 -70
  153. package/esm2020/dialog/lib/dialog.ref.mjs +22 -22
  154. package/esm2020/dialog/lib/dialog.service.mjs +77 -77
  155. package/esm2020/dialog/public_api.mjs +10 -10
  156. package/esm2020/elements/bravobit-bb-foundation-elements.mjs +4 -4
  157. package/esm2020/elements/lib/avatar/avatar.component.mjs +145 -145
  158. package/esm2020/elements/lib/button/button.component.mjs +61 -61
  159. package/esm2020/elements/lib/checkbox/checkbox.component.mjs +73 -73
  160. package/esm2020/elements/lib/date-picker/date-picker.component.mjs +304 -304
  161. package/esm2020/elements/lib/directives/addon.directive.mjs +29 -29
  162. package/esm2020/elements/lib/directives/autosize.directive.mjs +72 -72
  163. package/esm2020/elements/lib/directives/focus-trap.directive.mjs +77 -77
  164. package/esm2020/elements/lib/directives/focus.directive.mjs +39 -39
  165. package/esm2020/elements/lib/directives/form-submit.directive.mjs +50 -50
  166. package/esm2020/elements/lib/directives/input.directive.mjs +136 -136
  167. package/esm2020/elements/lib/directives/template.directive.mjs +28 -28
  168. package/esm2020/elements/lib/dropdown/dropdown.component.mjs +100 -100
  169. package/esm2020/elements/lib/elements.interfaces.mjs +4 -4
  170. package/esm2020/elements/lib/elements.module.mjs +177 -177
  171. package/esm2020/elements/lib/file-picker/file-picker.component.mjs +236 -236
  172. package/esm2020/elements/lib/form-control/form-control.component.mjs +49 -49
  173. package/esm2020/elements/lib/form-error/form-error.component.mjs +108 -108
  174. package/esm2020/elements/lib/form-group/form-group.component.mjs +18 -18
  175. package/esm2020/elements/lib/icon/icon.component.mjs +102 -102
  176. package/esm2020/elements/lib/image-picker/image-picker.component.mjs +106 -106
  177. package/esm2020/elements/lib/pipes/file-image.pipe.mjs +42 -42
  178. package/esm2020/elements/lib/pipes/file-size.pipe.mjs +28 -28
  179. package/esm2020/elements/lib/pipes/relative-time.pipe.mjs +94 -94
  180. package/esm2020/elements/lib/spinner/spinner.component.mjs +25 -25
  181. package/esm2020/elements/lib/tag/tag.component.mjs +18 -18
  182. package/esm2020/elements/public_api.mjs +26 -26
  183. package/esm2020/http/bravobit-bb-foundation-http.mjs +4 -4
  184. package/esm2020/http/lib/classes/http.config.mjs +29 -29
  185. package/esm2020/http/lib/classes/http.error.mjs +20 -20
  186. package/esm2020/http/lib/http.interfaces.mjs +2 -2
  187. package/esm2020/http/lib/http.module.mjs +43 -43
  188. package/esm2020/http/lib/interceptors/base-url.interceptor.mjs +50 -50
  189. package/esm2020/http/lib/interceptors/error.interceptor.mjs +32 -32
  190. package/esm2020/http/public_api.mjs +7 -7
  191. package/esm2020/lib/core/miscellaneous/regex.mjs +5 -5
  192. package/esm2020/lib/core/miscellaneous/validator.mjs +85 -85
  193. package/esm2020/lib/core/mixins/can-disable.mjs +16 -16
  194. package/esm2020/lib/core/mixins/can-hide-errors.mjs +16 -16
  195. package/esm2020/lib/core/mixins/can-load.mjs +16 -16
  196. package/esm2020/lib/core/mixins/constructor.mjs +2 -2
  197. package/esm2020/lib/core/mixins/has-error.mjs +16 -16
  198. package/esm2020/lib/core/mixins/is-focused.mjs +16 -16
  199. package/esm2020/lib/core/mixins/is-grouped.mjs +16 -16
  200. package/esm2020/lib/core/mixins/is-readonly.mjs +16 -16
  201. package/esm2020/lib/core/mixins/is-required.mjs +16 -16
  202. package/esm2020/lib/core/services/clipboard.service.mjs +70 -70
  203. package/esm2020/lib/core/services/exif.service.mjs +163 -163
  204. package/esm2020/lib/core/services/file-loader.service.mjs +87 -87
  205. package/esm2020/lib/core/services/image-converter.service.mjs +123 -123
  206. package/esm2020/lib/core/services/languages.service.mjs +74 -74
  207. package/esm2020/lib/core/services/network.service.mjs +55 -55
  208. package/esm2020/lib/core/services/patch.service.mjs +63 -63
  209. package/esm2020/lib/core/services/platform.service.mjs +42 -42
  210. package/esm2020/lib/core/tokens/accept-language.token.mjs +3 -3
  211. package/esm2020/lib/core/tokens/base-url.token.mjs +3 -3
  212. package/esm2020/lib/core/tokens/cookie.token.mjs +3 -3
  213. package/esm2020/lib/core/tokens/location.token.mjs +6 -6
  214. package/esm2020/lib/core/tokens/navigator.token.mjs +6 -6
  215. package/esm2020/lib/core/tokens/window.token.mjs +12 -12
  216. package/esm2020/localize/bravobit-bb-foundation-localize.mjs +4 -4
  217. package/esm2020/localize/lib/functions/date.function.mjs +18 -18
  218. package/esm2020/localize/lib/functions/lowercase.function.mjs +13 -13
  219. package/esm2020/localize/lib/functions/uppercase.function.mjs +13 -13
  220. package/esm2020/localize/lib/handlers/missing.handler.mjs +15 -15
  221. package/esm2020/localize/lib/interfaces/config.interfaces.mjs +7 -7
  222. package/esm2020/localize/lib/interfaces/functions.interfaces.mjs +8 -8
  223. package/esm2020/localize/lib/interfaces/handlers.interfaces.mjs +2 -2
  224. package/esm2020/localize/lib/interfaces/options.interfaces.mjs +6 -6
  225. package/esm2020/localize/lib/localizations/dutch.localization.mjs +45 -45
  226. package/esm2020/localize/lib/localizations/english.localization.mjs +45 -45
  227. package/esm2020/localize/lib/localize.dictionary.mjs +26 -26
  228. package/esm2020/localize/lib/localize.module.mjs +71 -71
  229. package/esm2020/localize/lib/localize.pipe.mjs +49 -49
  230. package/esm2020/localize/lib/localize.service.mjs +207 -207
  231. package/esm2020/localize/lib/views/localize-string/localize-string.component.mjs +88 -88
  232. package/esm2020/localize/lib/views/localize-template-or-string.directive.mjs +28 -28
  233. package/esm2020/localize/lib/views/localize-template.directive.mjs +21 -21
  234. package/esm2020/localize/public_api.mjs +17 -17
  235. package/esm2020/masking/bravobit-bb-foundation-masking.mjs +5 -0
  236. package/esm2020/masking/lib/input-mask.directive.mjs +110 -0
  237. package/esm2020/masking/lib/input-mask.interface.mjs +2 -0
  238. package/esm2020/masking/lib/masking.module.mjs +16 -0
  239. package/esm2020/masking/lib/masking.service.mjs +94 -0
  240. package/esm2020/masking/public_api.mjs +5 -0
  241. package/esm2020/notifications/bravobit-bb-foundation-notifications.mjs +4 -4
  242. package/esm2020/notifications/lib/notifications-item/notifications-item.component.mjs +100 -100
  243. package/esm2020/notifications/lib/notifications-list/notifications-list.component.mjs +47 -47
  244. package/esm2020/notifications/lib/notifications.animations.mjs +28 -28
  245. package/esm2020/notifications/lib/notifications.injector.mjs +18 -18
  246. package/esm2020/notifications/lib/notifications.interfaces.mjs +20 -20
  247. package/esm2020/notifications/lib/notifications.module.mjs +30 -30
  248. package/esm2020/notifications/lib/notifications.service.mjs +145 -145
  249. package/esm2020/notifications/public_api.mjs +4 -4
  250. package/esm2020/public_api.mjs +29 -29
  251. package/esm2020/recaptcha/bravobit-bb-foundation-recaptcha.mjs +4 -4
  252. package/esm2020/recaptcha/lib/recaptcha/recaptcha.component.mjs +185 -185
  253. package/esm2020/recaptcha/lib/recaptcha-loader.service.mjs +90 -90
  254. package/esm2020/recaptcha/lib/recaptcha.interface.mjs +3 -3
  255. package/esm2020/recaptcha/lib/recaptcha.module.mjs +27 -27
  256. package/esm2020/recaptcha/public_api.mjs +5 -5
  257. package/esm2020/rxjs/bravobit-bb-foundation-rxjs.mjs +4 -4
  258. package/esm2020/rxjs/lib/operators/combine-latest-map.operator.mjs +10 -10
  259. package/esm2020/rxjs/lib/operators/filter-nil.operator.mjs +5 -5
  260. package/esm2020/rxjs/public_api.mjs +3 -3
  261. package/esm2020/storage/bravobit-bb-foundation-storage.mjs +4 -4
  262. package/esm2020/storage/lib/interfaces/attributes.interface.mjs +2 -2
  263. package/esm2020/storage/lib/interfaces/memory.interface.mjs +2 -2
  264. package/esm2020/storage/lib/interfaces/strategy.interface.mjs +2 -2
  265. package/esm2020/storage/lib/storage.service.mjs +109 -109
  266. package/esm2020/storage/lib/strategies/cookie-storage.strategy.mjs +142 -142
  267. package/esm2020/storage/lib/strategies/memory-storage.strategy.mjs +56 -56
  268. package/esm2020/storage/lib/strategies/polyfill-storage.strategy.mjs +102 -102
  269. package/esm2020/storage/public_api.mjs +8 -8
  270. package/esm2020/table/bravobit-bb-foundation-table.mjs +4 -4
  271. package/esm2020/table/lib/components/table/table.component.mjs +191 -191
  272. package/esm2020/table/lib/components/table-cell/table-cell.component.mjs +11 -11
  273. package/esm2020/table/lib/components/table-header-cell/table-header-cell.component.mjs +131 -131
  274. package/esm2020/table/lib/components/table-pager/table-pager.component.mjs +136 -136
  275. package/esm2020/table/lib/data/datasource.data.mjs +32 -32
  276. package/esm2020/table/lib/data/generic.data.mjs +72 -72
  277. package/esm2020/table/lib/interfaces/datasource.interface.mjs +2 -2
  278. package/esm2020/table/lib/interfaces/table.interfaces.mjs +2 -2
  279. package/esm2020/table/lib/table.module.mjs +42 -42
  280. package/esm2020/table/public_api.mjs +10 -10
  281. package/esm2020/theming/bravobit-bb-foundation-theming.mjs +5 -0
  282. package/esm2020/theming/lib/themes/checkbox-group.theme.mjs +2 -0
  283. package/esm2020/theming/lib/themes/checkbox.theme.mjs +2 -0
  284. package/esm2020/theming/lib/theming.interface.mjs +3 -0
  285. package/esm2020/theming/lib/theming.module.mjs +38 -0
  286. package/esm2020/theming/lib/theming.service.mjs +100 -0
  287. package/esm2020/theming/public_api.mjs +4 -0
  288. package/fesm2015/bravobit-bb-foundation-auth.mjs +930 -930
  289. package/fesm2015/bravobit-bb-foundation-auth.mjs.map +1 -1
  290. package/fesm2015/bravobit-bb-foundation-collections.mjs +423 -423
  291. package/fesm2015/bravobit-bb-foundation-collections.mjs.map +1 -1
  292. package/fesm2015/bravobit-bb-foundation-controls.mjs +229 -216
  293. package/fesm2015/bravobit-bb-foundation-controls.mjs.map +1 -1
  294. package/fesm2015/bravobit-bb-foundation-dashboard.mjs +383 -383
  295. package/fesm2015/bravobit-bb-foundation-dashboard.mjs.map +1 -1
  296. package/fesm2015/bravobit-bb-foundation-dialog.mjs +541 -543
  297. package/fesm2015/bravobit-bb-foundation-dialog.mjs.map +1 -1
  298. package/fesm2015/bravobit-bb-foundation-elements.mjs +1977 -1977
  299. package/fesm2015/bravobit-bb-foundation-elements.mjs.map +1 -1
  300. package/fesm2015/bravobit-bb-foundation-http.mjs +156 -156
  301. package/fesm2015/bravobit-bb-foundation-http.mjs.map +1 -1
  302. package/fesm2015/bravobit-bb-foundation-localize.mjs +608 -608
  303. package/fesm2015/bravobit-bb-foundation-localize.mjs.map +1 -1
  304. package/fesm2015/bravobit-bb-foundation-masking.mjs +235 -0
  305. package/fesm2015/bravobit-bb-foundation-masking.mjs.map +1 -0
  306. package/fesm2015/bravobit-bb-foundation-notifications.mjs +349 -349
  307. package/fesm2015/bravobit-bb-foundation-notifications.mjs.map +1 -1
  308. package/fesm2015/bravobit-bb-foundation-recaptcha.mjs +290 -290
  309. package/fesm2015/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
  310. package/fesm2015/bravobit-bb-foundation-rxjs.mjs +7 -7
  311. package/fesm2015/bravobit-bb-foundation-rxjs.mjs.map +1 -1
  312. package/fesm2015/bravobit-bb-foundation-storage.mjs +401 -401
  313. package/fesm2015/bravobit-bb-foundation-storage.mjs.map +1 -1
  314. package/fesm2015/bravobit-bb-foundation-table.mjs +575 -575
  315. package/fesm2015/bravobit-bb-foundation-table.mjs.map +1 -1
  316. package/fesm2015/bravobit-bb-foundation-theming.mjs +153 -0
  317. package/fesm2015/bravobit-bb-foundation-theming.mjs.map +1 -0
  318. package/fesm2015/bravobit-bb-foundation.mjs +859 -859
  319. package/fesm2015/bravobit-bb-foundation.mjs.map +1 -1
  320. package/fesm2020/bravobit-bb-foundation-auth.mjs +882 -882
  321. package/fesm2020/bravobit-bb-foundation-auth.mjs.map +1 -1
  322. package/fesm2020/bravobit-bb-foundation-collections.mjs +413 -413
  323. package/fesm2020/bravobit-bb-foundation-collections.mjs.map +1 -1
  324. package/fesm2020/bravobit-bb-foundation-controls.mjs +227 -214
  325. package/fesm2020/bravobit-bb-foundation-controls.mjs.map +1 -1
  326. package/fesm2020/bravobit-bb-foundation-dashboard.mjs +371 -371
  327. package/fesm2020/bravobit-bb-foundation-dashboard.mjs.map +1 -1
  328. package/fesm2020/bravobit-bb-foundation-dialog.mjs +540 -542
  329. package/fesm2020/bravobit-bb-foundation-dialog.mjs.map +1 -1
  330. package/fesm2020/bravobit-bb-foundation-elements.mjs +1934 -1934
  331. package/fesm2020/bravobit-bb-foundation-elements.mjs.map +1 -1
  332. package/fesm2020/bravobit-bb-foundation-http.mjs +148 -148
  333. package/fesm2020/bravobit-bb-foundation-http.mjs.map +1 -1
  334. package/fesm2020/bravobit-bb-foundation-localize.mjs +587 -587
  335. package/fesm2020/bravobit-bb-foundation-localize.mjs.map +1 -1
  336. package/fesm2020/bravobit-bb-foundation-masking.mjs +223 -0
  337. package/fesm2020/bravobit-bb-foundation-masking.mjs.map +1 -0
  338. package/fesm2020/bravobit-bb-foundation-notifications.mjs +347 -347
  339. package/fesm2020/bravobit-bb-foundation-notifications.mjs.map +1 -1
  340. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs +280 -280
  341. package/fesm2020/bravobit-bb-foundation-recaptcha.mjs.map +1 -1
  342. package/fesm2020/bravobit-bb-foundation-rxjs.mjs +10 -10
  343. package/fesm2020/bravobit-bb-foundation-rxjs.mjs.map +1 -1
  344. package/fesm2020/bravobit-bb-foundation-storage.mjs +396 -396
  345. package/fesm2020/bravobit-bb-foundation-storage.mjs.map +1 -1
  346. package/fesm2020/bravobit-bb-foundation-table.mjs +564 -564
  347. package/fesm2020/bravobit-bb-foundation-table.mjs.map +1 -1
  348. package/fesm2020/bravobit-bb-foundation-theming.mjs +143 -0
  349. package/fesm2020/bravobit-bb-foundation-theming.mjs.map +1 -0
  350. package/fesm2020/bravobit-bb-foundation.mjs +831 -831
  351. package/fesm2020/bravobit-bb-foundation.mjs.map +1 -1
  352. package/http/{bravobit-bb-foundation-http.d.ts → index.d.ts} +5 -5
  353. package/http/lib/classes/http.config.d.ts +9 -9
  354. package/http/lib/classes/http.error.d.ts +7 -7
  355. package/http/lib/http.interfaces.d.ts +12 -12
  356. package/http/lib/http.module.d.ts +15 -15
  357. package/http/lib/interceptors/base-url.interceptor.d.ts +15 -15
  358. package/http/lib/interceptors/error.interceptor.d.ts +11 -11
  359. package/http/public_api.d.ts +6 -6
  360. package/{bravobit-bb-foundation.d.ts → index.d.ts} +5 -5
  361. package/lib/core/miscellaneous/regex.d.ts +4 -4
  362. package/lib/core/miscellaneous/validator.d.ts +13 -13
  363. package/lib/core/mixins/can-disable.d.ts +6 -6
  364. package/lib/core/mixins/can-hide-errors.d.ts +6 -6
  365. package/lib/core/mixins/can-load.d.ts +6 -6
  366. package/lib/core/mixins/constructor.d.ts +1 -1
  367. package/lib/core/mixins/has-error.d.ts +6 -6
  368. package/lib/core/mixins/is-focused.d.ts +6 -6
  369. package/lib/core/mixins/is-grouped.d.ts +6 -6
  370. package/lib/core/mixins/is-readonly.d.ts +6 -6
  371. package/lib/core/mixins/is-required.d.ts +6 -6
  372. package/lib/core/services/clipboard.service.d.ts +18 -18
  373. package/lib/core/services/exif.service.d.ts +15 -15
  374. package/lib/core/services/file-loader.service.d.ts +13 -13
  375. package/lib/core/services/image-converter.service.d.ts +21 -21
  376. package/lib/core/services/languages.service.d.ts +16 -16
  377. package/lib/core/services/network.service.d.ts +14 -14
  378. package/lib/core/services/patch.service.d.ts +16 -16
  379. package/lib/core/services/platform.service.d.ts +18 -18
  380. package/lib/core/tokens/accept-language.token.d.ts +2 -2
  381. package/lib/core/tokens/base-url.token.d.ts +2 -2
  382. package/lib/core/tokens/cookie.token.d.ts +2 -2
  383. package/lib/core/tokens/location.token.d.ts +2 -2
  384. package/lib/core/tokens/navigator.token.d.ts +2 -2
  385. package/lib/core/tokens/window.token.d.ts +2 -2
  386. package/localize/{bravobit-bb-foundation-localize.d.ts → index.d.ts} +5 -5
  387. package/localize/lib/functions/date.function.d.ts +5 -5
  388. package/localize/lib/functions/lowercase.function.d.ts +5 -5
  389. package/localize/lib/functions/uppercase.function.d.ts +5 -5
  390. package/localize/lib/handlers/missing.handler.d.ts +6 -6
  391. package/localize/lib/interfaces/config.interfaces.d.ts +18 -18
  392. package/localize/lib/interfaces/functions.interfaces.d.ts +9 -9
  393. package/localize/lib/interfaces/handlers.interfaces.d.ts +6 -6
  394. package/localize/lib/interfaces/options.interfaces.d.ts +10 -10
  395. package/localize/lib/localizations/dutch.localization.d.ts +44 -44
  396. package/localize/lib/localizations/english.localization.d.ts +44 -44
  397. package/localize/lib/localize.dictionary.d.ts +7 -7
  398. package/localize/lib/localize.module.d.ts +17 -17
  399. package/localize/lib/localize.pipe.d.ts +12 -12
  400. package/localize/lib/localize.service.d.ts +40 -40
  401. package/localize/lib/views/localize-string/localize-string.component.d.ts +23 -23
  402. package/localize/lib/views/localize-template-or-string.directive.d.ts +10 -10
  403. package/localize/lib/views/localize-template.directive.d.ts +9 -9
  404. package/localize/public_api.d.ts +16 -16
  405. package/masking/index.d.ts +5 -0
  406. package/masking/lib/input-mask.directive.d.ts +36 -0
  407. package/masking/lib/input-mask.interface.d.ts +20 -0
  408. package/masking/lib/masking.module.d.ts +7 -0
  409. package/masking/lib/masking.service.d.ts +12 -0
  410. package/masking/public_api.d.ts +4 -0
  411. package/notifications/{bravobit-bb-foundation-notifications.d.ts → index.d.ts} +5 -5
  412. package/notifications/lib/notifications-item/notifications-item.component.d.ts +34 -34
  413. package/notifications/lib/notifications-list/notifications-list.component.d.ts +16 -16
  414. package/notifications/lib/notifications.animations.d.ts +1 -1
  415. package/notifications/lib/notifications.injector.d.ts +8 -8
  416. package/notifications/lib/notifications.interfaces.d.ts +49 -49
  417. package/notifications/lib/notifications.module.d.ts +13 -13
  418. package/notifications/lib/notifications.service.d.ts +34 -34
  419. package/notifications/public_api.d.ts +3 -3
  420. package/package.json +36 -19
  421. package/public_api.d.ts +25 -25
  422. package/recaptcha/{bravobit-bb-foundation-recaptcha.d.ts → index.d.ts} +5 -5
  423. package/recaptcha/lib/recaptcha/recaptcha.component.d.ts +47 -47
  424. package/recaptcha/lib/recaptcha-loader.service.d.ts +22 -22
  425. package/recaptcha/lib/recaptcha.interface.d.ts +14 -14
  426. package/recaptcha/lib/recaptcha.module.d.ts +10 -10
  427. package/recaptcha/public_api.d.ts +4 -4
  428. package/rxjs/{bravobit-bb-foundation-rxjs.d.ts → index.d.ts} +5 -5
  429. package/rxjs/lib/operators/combine-latest-map.operator.d.ts +8 -8
  430. package/rxjs/lib/operators/filter-nil.operator.d.ts +1 -1
  431. package/rxjs/public_api.d.ts +2 -2
  432. package/storage/{bravobit-bb-foundation-storage.d.ts → index.d.ts} +5 -5
  433. package/storage/lib/interfaces/attributes.interface.d.ts +13 -13
  434. package/storage/lib/interfaces/memory.interface.d.ts +7 -7
  435. package/storage/lib/interfaces/strategy.interface.d.ts +17 -17
  436. package/storage/lib/storage.service.d.ts +26 -26
  437. package/storage/lib/strategies/cookie-storage.strategy.d.ts +20 -20
  438. package/storage/lib/strategies/memory-storage.strategy.d.ts +11 -11
  439. package/storage/lib/strategies/polyfill-storage.strategy.d.ts +15 -15
  440. package/storage/public_api.d.ts +7 -7
  441. package/table/{bravobit-bb-foundation-table.d.ts → index.d.ts} +5 -5
  442. package/table/lib/components/table/table.component.d.ts +56 -56
  443. package/table/lib/components/table-cell/table-cell.component.d.ts +5 -5
  444. package/table/lib/components/table-header-cell/table-header-cell.component.d.ts +29 -29
  445. package/table/lib/components/table-pager/table-pager.component.d.ts +41 -41
  446. package/table/lib/data/datasource.data.d.ts +14 -14
  447. package/table/lib/data/generic.data.d.ts +23 -23
  448. package/table/lib/interfaces/datasource.interface.d.ts +17 -17
  449. package/table/lib/interfaces/table.interfaces.d.ts +1 -1
  450. package/table/lib/table.module.d.ts +14 -14
  451. package/table/public_api.d.ts +9 -9
  452. package/theming/index.d.ts +5 -0
  453. package/theming/lib/themes/checkbox-group.theme.d.ts +5 -0
  454. package/theming/lib/themes/checkbox.theme.d.ts +19 -0
  455. package/theming/lib/theming.interface.d.ts +14 -0
  456. package/theming/lib/theming.module.d.ts +13 -0
  457. package/theming/lib/theming.service.d.ts +24 -0
  458. package/theming/public_api.d.ts +3 -0
  459. package/auth/package.json +0 -10
  460. package/collections/package.json +0 -10
  461. package/controls/package.json +0 -10
  462. package/dashboard/package.json +0 -10
  463. package/dialog/package.json +0 -10
  464. package/elements/package.json +0 -10
  465. package/http/package.json +0 -10
  466. package/localize/package.json +0 -10
  467. package/notifications/package.json +0 -10
  468. package/recaptcha/package.json +0 -10
  469. package/rxjs/package.json +0 -10
  470. package/storage/package.json +0 -10
  471. package/table/package.json +0 -10
@@ -6,579 +6,577 @@ import { trigger, transition, group, query, style, animate } from '@angular/anim
6
6
  import * as i1 from '@bravobit/bb-foundation';
7
7
  import * as i1$1 from '@angular/common';
8
8
  import { CommonModule } from '@angular/common';
9
- import * as i6 from '@bravobit/bb-foundation/elements';
9
+ import * as i4 from '@bravobit/bb-foundation/elements';
10
10
  import { BbButton, ElementsModule } from '@bravobit/bb-foundation/elements';
11
11
  import * as i8 from '@bravobit/bb-foundation/localize';
12
12
  import { LocalizeModule } from '@bravobit/bb-foundation/localize';
13
13
 
14
- class BbDialogRef {
15
- constructor() {
16
- // Data.
17
- this._afterClosed$ = new Subject();
18
- this._overlayClicked$ = new Subject();
19
- }
20
- get afterClosed() {
21
- return this._afterClosed$.pipe(take(1));
22
- }
23
- get overlayClicked() {
24
- return this._overlayClicked$.pipe(take(1));
25
- }
26
- onOverlayClicked() {
27
- this._overlayClicked$.next();
28
- }
29
- close(result) {
30
- this._afterClosed$.next(result);
31
- }
14
+ class BbDialogRef {
15
+ constructor() {
16
+ // Data.
17
+ this._afterClosed$ = new Subject();
18
+ this._overlayClicked$ = new Subject();
19
+ }
20
+ get afterClosed() {
21
+ return this._afterClosed$.pipe(take(1));
22
+ }
23
+ get overlayClicked() {
24
+ return this._overlayClicked$.pipe(take(1));
25
+ }
26
+ onOverlayClicked() {
27
+ this._overlayClicked$.next();
28
+ }
29
+ close(result) {
30
+ this._afterClosed$.next(result);
31
+ }
32
32
  }
33
33
 
34
- class BbDialogConfig {
34
+ class BbDialogConfig {
35
35
  }
36
36
 
37
- class BbDialogOverlay {
38
- constructor(_elementRef, _changeDetection) {
39
- this._elementRef = _elementRef;
40
- this._changeDetection = _changeDetection;
41
- // Inputs.
42
- this.animations = true;
43
- // Outputs.
44
- this.closeRequested = new EventEmitter();
45
- // State.
46
- this._state = 'open';
47
- this._closed$ = new Subject();
48
- }
49
- get state() {
50
- return this.animations
51
- ? this._state
52
- : 'none';
53
- }
54
- ngAfterViewInit() {
55
- this.listenForClicks();
56
- }
57
- ngOnDestroy() {
58
- var _a;
59
- (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
60
- }
61
- onKeyEvent(event) {
62
- if (event.key === 'Escape') {
63
- this.closeRequested.emit();
64
- }
65
- }
66
- onAnimationDone(event) {
67
- // Check if the dialog is being destroyed.
68
- if (!['close', 'none'].includes(event.toState)) {
69
- return;
70
- }
71
- this._closed$.next();
72
- this._closed$.complete();
73
- }
74
- close() {
75
- // We need change detection to run
76
- // here else it won't close in all scenario's.
77
- this._state = 'close';
78
- this._changeDetection.markForCheck();
79
- // Listen for the closed trigger.
80
- const observable$ = this._closed$.pipe(take(1));
81
- return lastValueFrom(observable$);
82
- }
83
- listenForClicks() {
84
- if (!this._elementRef || !this._elementRef.nativeElement) {
85
- return;
86
- }
87
- const mouseDown$ = fromEvent(this._elementRef.nativeElement, 'mousedown');
88
- const touchStart$ = fromEvent(this._elementRef.nativeElement, 'touchstart');
89
- const start$ = race([mouseDown$, touchStart$]);
90
- const mouseUp$ = fromEvent(this._elementRef.nativeElement, 'mouseup');
91
- const touchEnd$ = fromEvent(this._elementRef.nativeElement, 'touchend');
92
- const end$ = race([mouseUp$, touchEnd$]);
93
- this._subscription = start$.pipe(switchMap(() => end$)).subscribe(() => {
94
- this.closeRequested.next();
95
- });
96
- }
97
- }
98
- BbDialogOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogOverlay, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
99
- BbDialogOverlay.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogOverlay, selector: "bb-dialog-overlay", inputs: { animations: "animations" }, outputs: { closeRequested: "closeRequested" }, host: { listeners: { "window:keyup": "onKeyEvent($event)", "@bbDialogAnimation.done": "onAnimationDone($event)" }, properties: { "@bbDialogAnimation": "state" }, classAttribute: "bb-dialog-overlay" }, ngImport: i0, template: "<div class=\"bb-dialog-overlay-backdrop\"></div>\n\n<ng-content select=\"[bb-dialog-modal]\"></ng-content>\n", styles: [".bb-dialog-overlay,.bb-dialog-overlay-backdrop{top:0;left:0;right:0;bottom:0;display:flex;z-index:1000;position:fixed;flex-direction:column}.bb-dialog-overlay{padding:20px}.bb-dialog-overlay-backdrop{background-color:#00000080}.bb-dialog-overlay-component{z-index:1001;display:block;position:relative}\n"], animations: [
100
- trigger('bbDialogAnimation', [
101
- transition('* => none', []),
102
- transition(':enter, * => open', [
103
- group([
104
- query('.bb-dialog-overlay-backdrop', [
105
- style({ opacity: 0 }),
106
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1 }))
107
- ]),
108
- query('.bb-dialog-modal', [
109
- style({ transform: 'scale(0.95)' }),
110
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
111
- ])
112
- ])
113
- ]),
114
- transition(':leave, * => close', [
115
- group([
116
- query('.bb-dialog-overlay-backdrop', [
117
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))
118
- ]),
119
- query('.bb-dialog-modal', [
120
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0, transform: 'scale(0.95)' }))
121
- ])
122
- ])
123
- ])
124
- ])
125
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
126
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogOverlay, decorators: [{
127
- type: Component,
128
- args: [{ selector: 'bb-dialog-overlay', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-overlay', '[@bbDialogAnimation]': 'state' }, animations: [
129
- trigger('bbDialogAnimation', [
130
- transition('* => none', []),
131
- transition(':enter, * => open', [
132
- group([
133
- query('.bb-dialog-overlay-backdrop', [
134
- style({ opacity: 0 }),
135
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1 }))
136
- ]),
137
- query('.bb-dialog-modal', [
138
- style({ transform: 'scale(0.95)' }),
139
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
140
- ])
141
- ])
142
- ]),
143
- transition(':leave, * => close', [
144
- group([
145
- query('.bb-dialog-overlay-backdrop', [
146
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))
147
- ]),
148
- query('.bb-dialog-modal', [
149
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0, transform: 'scale(0.95)' }))
150
- ])
151
- ])
152
- ])
153
- ])
154
- ], template: "<div class=\"bb-dialog-overlay-backdrop\"></div>\n\n<ng-content select=\"[bb-dialog-modal]\"></ng-content>\n", styles: [".bb-dialog-overlay,.bb-dialog-overlay-backdrop{top:0;left:0;right:0;bottom:0;display:flex;z-index:1000;position:fixed;flex-direction:column}.bb-dialog-overlay{padding:20px}.bb-dialog-overlay-backdrop{background-color:#00000080}.bb-dialog-overlay-component{z-index:1001;display:block;position:relative}\n"] }]
155
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { animations: [{
156
- type: Input
157
- }], closeRequested: [{
158
- type: Output
159
- }], onKeyEvent: [{
160
- type: HostListener,
161
- args: ['window:keyup', ['$event']]
162
- }], onAnimationDone: [{
163
- type: HostListener,
164
- args: ['@bbDialogAnimation.done', ['$event']]
37
+ class BbDialogOverlay {
38
+ constructor(_elementRef, _changeDetection) {
39
+ this._elementRef = _elementRef;
40
+ this._changeDetection = _changeDetection;
41
+ // Inputs.
42
+ this.animations = true;
43
+ // Outputs.
44
+ this.closeRequested = new EventEmitter();
45
+ // State.
46
+ this._state = 'open';
47
+ this._closed$ = new Subject();
48
+ }
49
+ get state() {
50
+ return this.animations
51
+ ? this._state
52
+ : 'none';
53
+ }
54
+ ngAfterViewInit() {
55
+ this.listenForClicks();
56
+ }
57
+ ngOnDestroy() {
58
+ var _a;
59
+ (_a = this._subscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
60
+ }
61
+ onKeyEvent(event) {
62
+ if (event.key === 'Escape') {
63
+ this.closeRequested.emit();
64
+ }
65
+ }
66
+ onAnimationDone(event) {
67
+ // Check if the dialog is being destroyed.
68
+ if (!['close', 'none'].includes(event.toState)) {
69
+ return;
70
+ }
71
+ this._closed$.next();
72
+ this._closed$.complete();
73
+ }
74
+ close() {
75
+ // We need change detection to run
76
+ // here else it won't close in all scenario's.
77
+ this._state = 'close';
78
+ this._changeDetection.markForCheck();
79
+ // Listen for the closed trigger.
80
+ const observable$ = this._closed$.pipe(take(1));
81
+ return lastValueFrom(observable$);
82
+ }
83
+ listenForClicks() {
84
+ if (!this._elementRef || !this._elementRef.nativeElement) {
85
+ return;
86
+ }
87
+ const mouseDown$ = fromEvent(this._elementRef.nativeElement, 'mousedown');
88
+ const touchStart$ = fromEvent(this._elementRef.nativeElement, 'touchstart');
89
+ const start$ = race([mouseDown$, touchStart$]);
90
+ const mouseUp$ = fromEvent(this._elementRef.nativeElement, 'mouseup');
91
+ const touchEnd$ = fromEvent(this._elementRef.nativeElement, 'touchend');
92
+ const end$ = race([mouseUp$, touchEnd$]);
93
+ this._subscription = start$.pipe(switchMap(() => end$)).subscribe(() => {
94
+ this.closeRequested.next();
95
+ });
96
+ }
97
+ }
98
+ BbDialogOverlay.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogOverlay, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
99
+ BbDialogOverlay.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogOverlay, selector: "bb-dialog-overlay", inputs: { animations: "animations" }, outputs: { closeRequested: "closeRequested" }, host: { listeners: { "window:keyup": "onKeyEvent($event)", "@bbDialogAnimation.done": "onAnimationDone($event)" }, properties: { "@bbDialogAnimation": "state" }, classAttribute: "bb-dialog-overlay" }, ngImport: i0, template: "<div class=\"bb-dialog-overlay-backdrop\"></div>\r\n\r\n<ng-content select=\"[bb-dialog-modal]\"></ng-content>\r\n", styles: [".bb-dialog-overlay,.bb-dialog-overlay-backdrop{top:0;left:0;right:0;bottom:0;display:flex;z-index:1000;position:fixed;flex-direction:column}.bb-dialog-overlay{padding:20px}.bb-dialog-overlay-backdrop{background-color:#00000080}.bb-dialog-overlay-component{z-index:1001;display:block;position:relative}\n"], animations: [
100
+ trigger('bbDialogAnimation', [
101
+ transition('* => none', []),
102
+ transition(':enter, * => open', [
103
+ group([
104
+ query('.bb-dialog-overlay-backdrop', [
105
+ style({ opacity: 0 }),
106
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1 }))
107
+ ]),
108
+ query('.bb-dialog-modal', [
109
+ style({ transform: 'scale(0.95)' }),
110
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
111
+ ])
112
+ ])
113
+ ]),
114
+ transition(':leave, * => close', [
115
+ group([
116
+ query('.bb-dialog-overlay-backdrop', [
117
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))
118
+ ]),
119
+ query('.bb-dialog-modal', [
120
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0, transform: 'scale(0.95)' }))
121
+ ])
122
+ ])
123
+ ])
124
+ ])
125
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
126
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogOverlay, decorators: [{
127
+ type: Component,
128
+ args: [{ selector: 'bb-dialog-overlay', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-overlay', '[@bbDialogAnimation]': 'state' }, animations: [
129
+ trigger('bbDialogAnimation', [
130
+ transition('* => none', []),
131
+ transition(':enter, * => open', [
132
+ group([
133
+ query('.bb-dialog-overlay-backdrop', [
134
+ style({ opacity: 0 }),
135
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 1 }))
136
+ ]),
137
+ query('.bb-dialog-modal', [
138
+ style({ transform: 'scale(0.95)' }),
139
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ transform: 'scale(1)' }))
140
+ ])
141
+ ])
142
+ ]),
143
+ transition(':leave, * => close', [
144
+ group([
145
+ query('.bb-dialog-overlay-backdrop', [
146
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0 }))
147
+ ]),
148
+ query('.bb-dialog-modal', [
149
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({ opacity: 0, transform: 'scale(0.95)' }))
150
+ ])
151
+ ])
152
+ ])
153
+ ])
154
+ ], template: "<div class=\"bb-dialog-overlay-backdrop\"></div>\r\n\r\n<ng-content select=\"[bb-dialog-modal]\"></ng-content>\r\n", styles: [".bb-dialog-overlay,.bb-dialog-overlay-backdrop{top:0;left:0;right:0;bottom:0;display:flex;z-index:1000;position:fixed;flex-direction:column}.bb-dialog-overlay{padding:20px}.bb-dialog-overlay-backdrop{background-color:#00000080}.bb-dialog-overlay-component{z-index:1001;display:block;position:relative}\n"] }]
155
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { animations: [{
156
+ type: Input
157
+ }], closeRequested: [{
158
+ type: Output
159
+ }], onKeyEvent: [{
160
+ type: HostListener,
161
+ args: ['window:keyup', ['$event']]
162
+ }], onAnimationDone: [{
163
+ type: HostListener,
164
+ args: ['@bbDialogAnimation.done', ['$event']]
165
165
  }] } });
166
166
 
167
- class BbDialogModal {
168
- constructor(_patch) {
169
- this._patch = _patch;
170
- // Styling.
171
- this.maxWidth = '420px';
172
- }
173
- onOverlayClickedEvent(event) {
174
- event.stopPropagation();
175
- }
176
- ngOnInit() {
177
- this._patch.mobileVerticalHeight();
178
- }
179
- }
180
- BbDialogModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogModal, deps: [{ token: i1.Patch }], target: i0.ɵɵFactoryTarget.Component });
181
- BbDialogModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogModal, selector: "[bb-dialog-modal]", inputs: { maxWidth: "maxWidth" }, host: { attributes: { "role": "dialog" }, listeners: { "click": "onOverlayClickedEvent($event)", "touchstart": "onOverlayClickedEvent($event)", "touchend": "onOverlayClickedEvent($event)", "mouseup": "onOverlayClickedEvent($event)", "mousedown": "onOverlayClickedEvent($event)" }, properties: { "style.max-width": "this.maxWidth" }, classAttribute: "bb-dialog-modal" }, ngImport: i0, template: "<ng-content select=\"[bb-dialog-header]\">\n\n</ng-content>\n\n<div class=\"bb-dialog-modal-body\">\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"[bb-dialog-actions]\">\n\n</ng-content>\n", styles: [".bb-dialog-modal{width:100%;margin:auto;z-index:1001;display:flex;max-width:420px;border-radius:4px;position:relative;flex-direction:column;background-color:#fff;max-height:calc(var(--vh, 1vh) * 100 - 40px)}.bb-dialog-modal-body{padding:20px;color:#738694;font-size:13px;overflow-y:auto;line-height:1.4;background-color:#f1f3f6}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
182
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogModal, decorators: [{
183
- type: Component,
184
- args: [{ selector: '[bb-dialog-modal]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: {
185
- 'class': 'bb-dialog-modal',
186
- 'role': 'dialog'
187
- }, template: "<ng-content select=\"[bb-dialog-header]\">\n\n</ng-content>\n\n<div class=\"bb-dialog-modal-body\">\n <ng-content></ng-content>\n</div>\n\n<ng-content select=\"[bb-dialog-actions]\">\n\n</ng-content>\n", styles: [".bb-dialog-modal{width:100%;margin:auto;z-index:1001;display:flex;max-width:420px;border-radius:4px;position:relative;flex-direction:column;background-color:#fff;max-height:calc(var(--vh, 1vh) * 100 - 40px)}.bb-dialog-modal-body{padding:20px;color:#738694;font-size:13px;overflow-y:auto;line-height:1.4;background-color:#f1f3f6}\n"] }]
188
- }], ctorParameters: function () { return [{ type: i1.Patch }]; }, propDecorators: { maxWidth: [{
189
- type: HostBinding,
190
- args: ['style.max-width']
191
- }, {
192
- type: Input
193
- }], onOverlayClickedEvent: [{
194
- type: HostListener,
195
- args: ['click', ['$event']]
196
- }, {
197
- type: HostListener,
198
- args: ['touchstart', ['$event']]
199
- }, {
200
- type: HostListener,
201
- args: ['touchend', ['$event']]
202
- }, {
203
- type: HostListener,
204
- args: ['mouseup', ['$event']]
205
- }, {
206
- type: HostListener,
207
- args: ['mousedown', ['$event']]
167
+ class BbDialogModal {
168
+ constructor(_patch) {
169
+ this._patch = _patch;
170
+ // Styling.
171
+ this.maxWidth = '420px';
172
+ }
173
+ onOverlayClickedEvent(event) {
174
+ event.stopPropagation();
175
+ }
176
+ ngOnInit() {
177
+ this._patch.mobileVerticalHeight();
178
+ }
179
+ }
180
+ BbDialogModal.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogModal, deps: [{ token: i1.Patch }], target: i0.ɵɵFactoryTarget.Component });
181
+ BbDialogModal.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogModal, selector: "[bb-dialog-modal]", inputs: { maxWidth: "maxWidth" }, host: { attributes: { "role": "dialog" }, listeners: { "click": "onOverlayClickedEvent($event)", "touchstart": "onOverlayClickedEvent($event)", "touchend": "onOverlayClickedEvent($event)", "mouseup": "onOverlayClickedEvent($event)", "mousedown": "onOverlayClickedEvent($event)" }, properties: { "style.max-width": "this.maxWidth" }, classAttribute: "bb-dialog-modal" }, ngImport: i0, template: "<ng-content select=\"[bb-dialog-header]\">\r\n\r\n</ng-content>\r\n\r\n<div class=\"bb-dialog-modal-body\">\r\n <ng-content></ng-content>\r\n</div>\r\n\r\n<ng-content select=\"[bb-dialog-actions]\">\r\n\r\n</ng-content>\r\n", styles: [".bb-dialog-modal{width:100%;margin:auto;z-index:1001;display:flex;max-width:420px;border-radius:4px;position:relative;flex-direction:column;background-color:#fff;max-height:calc(var(--vh, 1vh) * 100 - 40px)}.bb-dialog-modal-body{padding:20px;color:#738694;font-size:13px;overflow-y:auto;line-height:1.4;background-color:#f1f3f6}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
182
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogModal, decorators: [{
183
+ type: Component,
184
+ args: [{ selector: '[bb-dialog-modal]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: {
185
+ 'class': 'bb-dialog-modal',
186
+ 'role': 'dialog'
187
+ }, template: "<ng-content select=\"[bb-dialog-header]\">\r\n\r\n</ng-content>\r\n\r\n<div class=\"bb-dialog-modal-body\">\r\n <ng-content></ng-content>\r\n</div>\r\n\r\n<ng-content select=\"[bb-dialog-actions]\">\r\n\r\n</ng-content>\r\n", styles: [".bb-dialog-modal{width:100%;margin:auto;z-index:1001;display:flex;max-width:420px;border-radius:4px;position:relative;flex-direction:column;background-color:#fff;max-height:calc(var(--vh, 1vh) * 100 - 40px)}.bb-dialog-modal-body{padding:20px;color:#738694;font-size:13px;overflow-y:auto;line-height:1.4;background-color:#f1f3f6}\n"] }]
188
+ }], ctorParameters: function () { return [{ type: i1.Patch }]; }, propDecorators: { maxWidth: [{
189
+ type: HostBinding,
190
+ args: ['style.max-width']
191
+ }, {
192
+ type: Input
193
+ }], onOverlayClickedEvent: [{
194
+ type: HostListener,
195
+ args: ['click', ['$event']]
196
+ }, {
197
+ type: HostListener,
198
+ args: ['touchstart', ['$event']]
199
+ }, {
200
+ type: HostListener,
201
+ args: ['touchend', ['$event']]
202
+ }, {
203
+ type: HostListener,
204
+ args: ['mouseup', ['$event']]
205
+ }, {
206
+ type: HostListener,
207
+ args: ['mousedown', ['$event']]
208
208
  }] } });
209
209
 
210
- class BbDialogHeader {
211
- constructor() {
212
- // Inputs.
213
- this.iconName = null;
214
- this.iconColor = 'black';
215
- // Outputs.
216
- this.closeRequested = new EventEmitter();
217
- }
218
- }
219
- BbDialogHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
220
- BbDialogHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogHeader, selector: "[bb-dialog-header]", inputs: { iconName: "iconName", iconColor: "iconColor" }, outputs: { closeRequested: "closeRequested" }, host: { classAttribute: "bb-dialog-header" }, ngImport: i0, template: "<div class=\"bb-dialog-header-row\">\n <div *ngIf=\"iconName as icon\"\n [style.color]=\"iconColor\"\n class=\"bb-dialog-header-icon\">\n <i class=\"material-icons\">{{ icon }}</i>\n </div>\n\n <div class=\"bb-dialog-header-content\">\n <ng-content></ng-content>\n </div>\n\n <button *ngIf=\"closeRequested?.observed\"\n (click)=\"closeRequested?.emit()\"\n type=\"button\"\n class=\"bb-dialog-header-close\">\n </button>\n</div>\n\n<nav class=\"bb-dialog-header-navigation\">\n <ng-content select=\"[bb-dialog-link]\"></ng-content>\n</nav>\n", styles: [".bb-dialog-header{display:flex;min-height:60px;flex-direction:column;justify-content:center;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid #d8d8d8}.bb-dialog-header .bb-dialog-header-content,.bb-dialog-header .bb-dialog-header-content h1{max-width:100%;font-size:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dialog-header-row,.bb-dialog-header-navigation{width:100%;display:flex;align-items:center}.bb-dialog-header-row{padding:10px 20px}.bb-dialog-header-navigation{width:100%;padding:0 20px;overflow-x:auto;white-space:nowrap}.bb-dialog-header-navigation:empty{margin:0;height:0;padding:0;visibility:hidden}.bb-dialog-header-content{flex:1}.bb-dialog-header-icon{width:40px;height:40px;display:flex;min-width:40px;overflow:hidden;min-height:40px;margin-right:10px;border-radius:50%;position:relative;align-items:center;justify-content:center}.bb-dialog-header-icon:after{top:0;left:0;right:0;bottom:0;content:\"\";opacity:.14;position:absolute;background-color:currentColor}.bb-dialog-header-close{width:32px;height:32px;border:none;min-width:32px;min-height:32px;overflow:hidden;margin-left:10px;border-radius:4px;position:relative;margin-right:-10px;display:inline-block;background-color:transparent}.bb-dialog-header-close:before,.bb-dialog-header-close:after{top:50%;left:20%;width:60%;height:2px;content:\"\";margin-top:-1px;position:absolute;background-color:#a2a9ba}.bb-dialog-header-close:before{transform:rotate(45deg)}.bb-dialog-header-close:after{transform:rotate(-45deg)}.bb-dialog-header-close:hover{background-color:#00000014}.bb-dialog-header-close:focus{background-color:#0000001f}.bb-dialog-header-close:active{background-color:#00000029}\n"], directives: [{ type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
221
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogHeader, decorators: [{
222
- type: Component,
223
- args: [{ selector: '[bb-dialog-header]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-header' }, template: "<div class=\"bb-dialog-header-row\">\n <div *ngIf=\"iconName as icon\"\n [style.color]=\"iconColor\"\n class=\"bb-dialog-header-icon\">\n <i class=\"material-icons\">{{ icon }}</i>\n </div>\n\n <div class=\"bb-dialog-header-content\">\n <ng-content></ng-content>\n </div>\n\n <button *ngIf=\"closeRequested?.observed\"\n (click)=\"closeRequested?.emit()\"\n type=\"button\"\n class=\"bb-dialog-header-close\">\n </button>\n</div>\n\n<nav class=\"bb-dialog-header-navigation\">\n <ng-content select=\"[bb-dialog-link]\"></ng-content>\n</nav>\n", styles: [".bb-dialog-header{display:flex;min-height:60px;flex-direction:column;justify-content:center;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid #d8d8d8}.bb-dialog-header .bb-dialog-header-content,.bb-dialog-header .bb-dialog-header-content h1{max-width:100%;font-size:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dialog-header-row,.bb-dialog-header-navigation{width:100%;display:flex;align-items:center}.bb-dialog-header-row{padding:10px 20px}.bb-dialog-header-navigation{width:100%;padding:0 20px;overflow-x:auto;white-space:nowrap}.bb-dialog-header-navigation:empty{margin:0;height:0;padding:0;visibility:hidden}.bb-dialog-header-content{flex:1}.bb-dialog-header-icon{width:40px;height:40px;display:flex;min-width:40px;overflow:hidden;min-height:40px;margin-right:10px;border-radius:50%;position:relative;align-items:center;justify-content:center}.bb-dialog-header-icon:after{top:0;left:0;right:0;bottom:0;content:\"\";opacity:.14;position:absolute;background-color:currentColor}.bb-dialog-header-close{width:32px;height:32px;border:none;min-width:32px;min-height:32px;overflow:hidden;margin-left:10px;border-radius:4px;position:relative;margin-right:-10px;display:inline-block;background-color:transparent}.bb-dialog-header-close:before,.bb-dialog-header-close:after{top:50%;left:20%;width:60%;height:2px;content:\"\";margin-top:-1px;position:absolute;background-color:#a2a9ba}.bb-dialog-header-close:before{transform:rotate(45deg)}.bb-dialog-header-close:after{transform:rotate(-45deg)}.bb-dialog-header-close:hover{background-color:#00000014}.bb-dialog-header-close:focus{background-color:#0000001f}.bb-dialog-header-close:active{background-color:#00000029}\n"] }]
224
- }], propDecorators: { iconName: [{
225
- type: Input
226
- }], iconColor: [{
227
- type: Input
228
- }], closeRequested: [{
229
- type: Output
210
+ class BbDialogHeader {
211
+ constructor() {
212
+ // Inputs.
213
+ this.iconName = null;
214
+ this.iconColor = 'black';
215
+ // Outputs.
216
+ this.closeRequested = new EventEmitter();
217
+ }
218
+ }
219
+ BbDialogHeader.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogHeader, deps: [], target: i0.ɵɵFactoryTarget.Component });
220
+ BbDialogHeader.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogHeader, selector: "[bb-dialog-header]", inputs: { iconName: "iconName", iconColor: "iconColor" }, outputs: { closeRequested: "closeRequested" }, host: { classAttribute: "bb-dialog-header" }, ngImport: i0, template: "<div class=\"bb-dialog-header-row\">\r\n <div *ngIf=\"iconName as icon\"\r\n [style.color]=\"iconColor\"\r\n class=\"bb-dialog-header-icon\">\r\n <i class=\"material-icons\">{{ icon }}</i>\r\n </div>\r\n\r\n <div class=\"bb-dialog-header-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <button *ngIf=\"closeRequested?.observed\"\r\n (click)=\"closeRequested?.emit()\"\r\n type=\"button\"\r\n class=\"bb-dialog-header-close\">\r\n </button>\r\n</div>\r\n\r\n<nav class=\"bb-dialog-header-navigation\">\r\n <ng-content select=\"[bb-dialog-link]\"></ng-content>\r\n</nav>\r\n", styles: [".bb-dialog-header{display:flex;min-height:60px;flex-direction:column;justify-content:center;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid #d8d8d8}.bb-dialog-header .bb-dialog-header-content,.bb-dialog-header .bb-dialog-header-content h1{max-width:100%;font-size:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dialog-header-row,.bb-dialog-header-navigation{width:100%;display:flex;align-items:center}.bb-dialog-header-row{padding:10px 20px}.bb-dialog-header-navigation{width:100%;padding:0 20px;overflow-x:auto;white-space:nowrap}.bb-dialog-header-navigation:empty{margin:0;height:0;padding:0;visibility:hidden}.bb-dialog-header-content{flex:1}.bb-dialog-header-icon{width:40px;height:40px;display:flex;min-width:40px;overflow:hidden;min-height:40px;margin-right:10px;border-radius:50%;position:relative;align-items:center;justify-content:center}.bb-dialog-header-icon:after{top:0;left:0;right:0;bottom:0;content:\"\";opacity:.14;position:absolute;background-color:currentColor}.bb-dialog-header-close{width:32px;height:32px;border:none;min-width:32px;min-height:32px;overflow:hidden;margin-left:10px;border-radius:4px;position:relative;margin-right:-10px;display:inline-block;background-color:transparent}.bb-dialog-header-close:before,.bb-dialog-header-close:after{top:50%;left:20%;width:60%;height:2px;content:\"\";margin-top:-1px;position:absolute;background-color:#a2a9ba}.bb-dialog-header-close:before{transform:rotate(45deg)}.bb-dialog-header-close:after{transform:rotate(-45deg)}.bb-dialog-header-close:hover{background-color:#00000014}.bb-dialog-header-close:focus{background-color:#0000001f}.bb-dialog-header-close:active{background-color:#00000029}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
221
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogHeader, decorators: [{
222
+ type: Component,
223
+ args: [{ selector: '[bb-dialog-header]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-header' }, template: "<div class=\"bb-dialog-header-row\">\r\n <div *ngIf=\"iconName as icon\"\r\n [style.color]=\"iconColor\"\r\n class=\"bb-dialog-header-icon\">\r\n <i class=\"material-icons\">{{ icon }}</i>\r\n </div>\r\n\r\n <div class=\"bb-dialog-header-content\">\r\n <ng-content></ng-content>\r\n </div>\r\n\r\n <button *ngIf=\"closeRequested?.observed\"\r\n (click)=\"closeRequested?.emit()\"\r\n type=\"button\"\r\n class=\"bb-dialog-header-close\">\r\n </button>\r\n</div>\r\n\r\n<nav class=\"bb-dialog-header-navigation\">\r\n <ng-content select=\"[bb-dialog-link]\"></ng-content>\r\n</nav>\r\n", styles: [".bb-dialog-header{display:flex;min-height:60px;flex-direction:column;justify-content:center;background-color:#fff;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom:1px solid #d8d8d8}.bb-dialog-header .bb-dialog-header-content,.bb-dialog-header .bb-dialog-header-content h1{max-width:100%;font-size:20px;font-weight:500;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.bb-dialog-header-row,.bb-dialog-header-navigation{width:100%;display:flex;align-items:center}.bb-dialog-header-row{padding:10px 20px}.bb-dialog-header-navigation{width:100%;padding:0 20px;overflow-x:auto;white-space:nowrap}.bb-dialog-header-navigation:empty{margin:0;height:0;padding:0;visibility:hidden}.bb-dialog-header-content{flex:1}.bb-dialog-header-icon{width:40px;height:40px;display:flex;min-width:40px;overflow:hidden;min-height:40px;margin-right:10px;border-radius:50%;position:relative;align-items:center;justify-content:center}.bb-dialog-header-icon:after{top:0;left:0;right:0;bottom:0;content:\"\";opacity:.14;position:absolute;background-color:currentColor}.bb-dialog-header-close{width:32px;height:32px;border:none;min-width:32px;min-height:32px;overflow:hidden;margin-left:10px;border-radius:4px;position:relative;margin-right:-10px;display:inline-block;background-color:transparent}.bb-dialog-header-close:before,.bb-dialog-header-close:after{top:50%;left:20%;width:60%;height:2px;content:\"\";margin-top:-1px;position:absolute;background-color:#a2a9ba}.bb-dialog-header-close:before{transform:rotate(45deg)}.bb-dialog-header-close:after{transform:rotate(-45deg)}.bb-dialog-header-close:hover{background-color:#00000014}.bb-dialog-header-close:focus{background-color:#0000001f}.bb-dialog-header-close:active{background-color:#00000029}\n"] }]
224
+ }], propDecorators: { iconName: [{
225
+ type: Input
226
+ }], iconColor: [{
227
+ type: Input
228
+ }], closeRequested: [{
229
+ type: Output
230
230
  }] } });
231
231
 
232
- class BbDialogLink {
233
- }
234
- BbDialogLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogLink, deps: [], target: i0.ɵɵFactoryTarget.Component });
235
- BbDialogLink.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogLink, selector: "[bb-dialog-link]", host: { classAttribute: "bb-dialog-link" }, ngImport: i0, template: "<ng-content></ng-content>\n", styles: [".bb-dialog-link{height:30px;display:flex;font-size:16px;font-weight:500;white-space:nowrap;align-items:center;color:#6b5c5c!important;background-color:transparent;text-decoration:none!important;border-bottom:2px solid transparent}.bb-dialog-link+.bb-dialog-link{margin-left:10px}.bb-dialog-link:hover:not(.disabled){border-bottom:2px solid rgba(117,119,148,.2)}.bb-dialog-link.active,.bb-dialog-link.active:hover{color:#5b53ff!important;border-bottom-color:#5b53ff}.bb-dialog-link.disabled,.bb-dialog-link.disabled:focus,.bb-dialog-link.disabled:hover,.bb-dialog-link.disabled:active{opacity:.4;cursor:default;box-shadow:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
236
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogLink, decorators: [{
237
- type: Component,
238
- args: [{ selector: '[bb-dialog-link]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-link' }, template: "<ng-content></ng-content>\n", styles: [".bb-dialog-link{height:30px;display:flex;font-size:16px;font-weight:500;white-space:nowrap;align-items:center;color:#6b5c5c!important;background-color:transparent;text-decoration:none!important;border-bottom:2px solid transparent}.bb-dialog-link+.bb-dialog-link{margin-left:10px}.bb-dialog-link:hover:not(.disabled){border-bottom:2px solid rgba(117,119,148,.2)}.bb-dialog-link.active,.bb-dialog-link.active:hover{color:#5b53ff!important;border-bottom-color:#5b53ff}.bb-dialog-link.disabled,.bb-dialog-link.disabled:focus,.bb-dialog-link.disabled:hover,.bb-dialog-link.disabled:active{opacity:.4;cursor:default;box-shadow:none}\n"] }]
232
+ class BbDialogLink {
233
+ }
234
+ BbDialogLink.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogLink, deps: [], target: i0.ɵɵFactoryTarget.Component });
235
+ BbDialogLink.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogLink, selector: "[bb-dialog-link]", host: { classAttribute: "bb-dialog-link" }, ngImport: i0, template: "<ng-content></ng-content>\r\n", styles: [".bb-dialog-link{height:30px;display:flex;font-size:16px;font-weight:500;white-space:nowrap;align-items:center;color:#6b5c5c!important;background-color:transparent;text-decoration:none!important;border-bottom:2px solid transparent}.bb-dialog-link+.bb-dialog-link{margin-left:10px}.bb-dialog-link:hover:not(.disabled){border-bottom:2px solid rgba(117,119,148,.2)}.bb-dialog-link.active,.bb-dialog-link.active:hover{color:#5b53ff!important;border-bottom-color:#5b53ff}.bb-dialog-link.disabled,.bb-dialog-link.disabled:focus,.bb-dialog-link.disabled:hover,.bb-dialog-link.disabled:active{opacity:.4;cursor:default;box-shadow:none}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
236
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogLink, decorators: [{
237
+ type: Component,
238
+ args: [{ selector: '[bb-dialog-link]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-link' }, template: "<ng-content></ng-content>\r\n", styles: [".bb-dialog-link{height:30px;display:flex;font-size:16px;font-weight:500;white-space:nowrap;align-items:center;color:#6b5c5c!important;background-color:transparent;text-decoration:none!important;border-bottom:2px solid transparent}.bb-dialog-link+.bb-dialog-link{margin-left:10px}.bb-dialog-link:hover:not(.disabled){border-bottom:2px solid rgba(117,119,148,.2)}.bb-dialog-link.active,.bb-dialog-link.active:hover{color:#5b53ff!important;border-bottom-color:#5b53ff}.bb-dialog-link.disabled,.bb-dialog-link.disabled:focus,.bb-dialog-link.disabled:hover,.bb-dialog-link.disabled:active{opacity:.4;cursor:default;box-shadow:none}\n"] }]
239
239
  }] });
240
240
 
241
- class BbDialogActions {
242
- }
243
- BbDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
244
- BbDialogActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogActions, selector: "[bb-dialog-actions]", host: { classAttribute: "bb-dialog-actions" }, ngImport: i0, template: "<bb-form-group class=\"end\">\n <ng-content></ng-content>\n</bb-form-group>\n", styles: [".bb-dialog-actions{padding:20px;display:block;background-color:#fff;border-top:1px solid #d8d8d8;border-bottom-left-radius:4px;border-bottom-right-radius:4px}\n"], components: [{ type: i6.BbFormGroup, selector: "bb-form-group", inputs: ["grouped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
245
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogActions, decorators: [{
246
- type: Component,
247
- args: [{ selector: '[bb-dialog-actions]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-actions' }, template: "<bb-form-group class=\"end\">\n <ng-content></ng-content>\n</bb-form-group>\n", styles: [".bb-dialog-actions{padding:20px;display:block;background-color:#fff;border-top:1px solid #d8d8d8;border-bottom-left-radius:4px;border-bottom-right-radius:4px}\n"] }]
241
+ class BbDialogActions {
242
+ }
243
+ BbDialogActions.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogActions, deps: [], target: i0.ɵɵFactoryTarget.Component });
244
+ BbDialogActions.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogActions, selector: "[bb-dialog-actions]", host: { classAttribute: "bb-dialog-actions" }, ngImport: i0, template: "<bb-form-group class=\"end\">\r\n <ng-content></ng-content>\r\n</bb-form-group>\r\n", styles: [".bb-dialog-actions{padding:20px;display:block;background-color:#fff;border-top:1px solid #d8d8d8;border-bottom-left-radius:4px;border-bottom-right-radius:4px}\n"], dependencies: [{ kind: "component", type: i4.BbFormGroup, selector: "bb-form-group", inputs: ["grouped"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogActions, decorators: [{
246
+ type: Component,
247
+ args: [{ selector: '[bb-dialog-actions]', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-actions' }, template: "<bb-form-group class=\"end\">\r\n <ng-content></ng-content>\r\n</bb-form-group>\r\n", styles: [".bb-dialog-actions{padding:20px;display:block;background-color:#fff;border-top:1px solid #d8d8d8;border-bottom-left-radius:4px;border-bottom-right-radius:4px}\n"] }]
248
248
  }] });
249
249
 
250
- class BbDialogInsertion {
251
- constructor(viewContainerRef) {
252
- this.viewContainerRef = viewContainerRef;
253
- }
254
- }
255
- BbDialogInsertion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogInsertion, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
256
- BbDialogInsertion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogInsertion, selector: "[bbDialogInsertion]", ngImport: i0 });
257
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogInsertion, decorators: [{
258
- type: Directive,
259
- args: [{
260
- selector: '[bbDialogInsertion]'
261
- }]
250
+ class BbDialogInsertion {
251
+ constructor(viewContainerRef) {
252
+ this.viewContainerRef = viewContainerRef;
253
+ }
254
+ }
255
+ BbDialogInsertion.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogInsertion, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Directive });
256
+ BbDialogInsertion.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogInsertion, selector: "[bbDialogInsertion]", ngImport: i0 });
257
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogInsertion, decorators: [{
258
+ type: Directive,
259
+ args: [{
260
+ selector: '[bbDialogInsertion]'
261
+ }]
262
262
  }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; } });
263
263
 
264
- class BbDialogContainer {
265
- constructor(_elementRef, _changeDetection, _componentFactoryResolver) {
266
- this._elementRef = _elementRef;
267
- this._changeDetection = _changeDetection;
268
- this._componentFactoryResolver = _componentFactoryResolver;
269
- // Data.
270
- this.componentRef = null;
271
- this.childComponentType = null;
272
- // State.
273
- this.overlayClicked$ = new Subject();
274
- }
275
- get onOverlayClicked() {
276
- return this.overlayClicked$.pipe(take(1));
277
- }
278
- ngAfterViewInit() {
279
- // Load the child component.
280
- this.loadChildComponent(this.childComponentType);
281
- // Listen for mouse click on the dialog container.
282
- this.listenForClicks();
283
- // Detect changes to notify change detection.
284
- this._changeDetection.detectChanges();
285
- }
286
- ngOnDestroy() {
287
- this._subscription && this._subscription.unsubscribe();
288
- }
289
- onAnimationDone(event) {
290
- // Check if the dialog is being destroyed.
291
- if (event.toState !== 'void') {
292
- return;
293
- }
294
- // Destroy the ref if it exists.
295
- this.componentRef && this.componentRef.destroy();
296
- }
297
- listenForClicks() {
298
- if (!this._elementRef || !this._elementRef.nativeElement) {
299
- return;
300
- }
301
- const mouseDown$ = fromEvent(this._elementRef.nativeElement, 'mousedown');
302
- const touchStart$ = fromEvent(this._elementRef.nativeElement, 'touchstart');
303
- const start$ = race([mouseDown$, touchStart$]);
304
- const mouseUp$ = fromEvent(this._elementRef.nativeElement, 'mouseup');
305
- const touchEnd$ = fromEvent(this._elementRef.nativeElement, 'touchend');
306
- const end$ = race([mouseUp$, touchEnd$]);
307
- this._subscription = start$.pipe(switchMap(() => end$)).subscribe(() => {
308
- this.overlayClicked$.next();
309
- });
310
- }
311
- loadChildComponent(componentType) {
312
- // Resolve the component.
313
- const componentFactory = this._componentFactoryResolver.resolveComponentFactory(componentType);
314
- // Get the view container ref and clear it.
315
- const viewContainerRef = this.insertion.viewContainerRef;
316
- viewContainerRef.clear();
317
- // Create an instance of the component.
318
- this.componentRef = viewContainerRef.createComponent(componentFactory);
319
- }
320
- }
321
- BbDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogContainer, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
322
- BbDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogContainer, selector: "bb-dialog-container", host: { listeners: { "@bbDialogAnimation.done": "onAnimationDone($event)" }, properties: { "@bbDialogAnimation": "true" }, classAttribute: "bb-dialog-container" }, viewQueries: [{ propertyName: "insertion", first: true, predicate: BbDialogInsertion, descendants: true, static: true }], ngImport: i0, template: "<div class=\"bb-dialog-container-backdrop\">\n</div>\n\n<div class=\"bb-dialog-container-component\">\n <ng-container bbDialogInsertion>\n </ng-container>\n</div>\n", styles: [".bb-dialog-container,.bb-dialog-container-backdrop{top:0;left:0;right:0;bottom:0;z-index:1000;position:fixed}.bb-dialog-container{display:flex}.bb-dialog-container-backdrop{background-color:#00000080}.bb-dialog-container-component{width:100%;margin:auto;padding:20px;z-index:1001;display:block}\n"], directives: [{ type: BbDialogInsertion, selector: "[bbDialogInsertion]" }], animations: [
323
- trigger('bbDialogAnimation', [
324
- transition(':enter', [
325
- group([
326
- query('.bb-dialog-container-backdrop', [
327
- style({
328
- opacity: 0
329
- }),
330
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
331
- opacity: 1
332
- }))
333
- ]),
334
- query('.bb-dialog-container-component', [
335
- style({
336
- transform: 'scale(0.95)'
337
- }),
338
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
339
- transform: 'scale(1)'
340
- }))
341
- ])
342
- ])
343
- ]),
344
- transition(':leave', [
345
- group([
346
- query('.bb-dialog-container-backdrop', [
347
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
348
- opacity: 0
349
- }))
350
- ]),
351
- query('.bb-dialog-container-component', [
352
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
353
- opacity: 0,
354
- transform: 'scale(0.95)'
355
- }))
356
- ])
357
- ])
358
- ])
359
- ])
360
- ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
361
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogContainer, decorators: [{
362
- type: Component,
363
- args: [{ selector: 'bb-dialog-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'class': 'bb-dialog-container', '[@bbDialogAnimation]': 'true' }, preserveWhitespaces: false, animations: [
364
- trigger('bbDialogAnimation', [
365
- transition(':enter', [
366
- group([
367
- query('.bb-dialog-container-backdrop', [
368
- style({
369
- opacity: 0
370
- }),
371
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
372
- opacity: 1
373
- }))
374
- ]),
375
- query('.bb-dialog-container-component', [
376
- style({
377
- transform: 'scale(0.95)'
378
- }),
379
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
380
- transform: 'scale(1)'
381
- }))
382
- ])
383
- ])
384
- ]),
385
- transition(':leave', [
386
- group([
387
- query('.bb-dialog-container-backdrop', [
388
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
389
- opacity: 0
390
- }))
391
- ]),
392
- query('.bb-dialog-container-component', [
393
- animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
394
- opacity: 0,
395
- transform: 'scale(0.95)'
396
- }))
397
- ])
398
- ])
399
- ])
400
- ])
401
- ], template: "<div class=\"bb-dialog-container-backdrop\">\n</div>\n\n<div class=\"bb-dialog-container-component\">\n <ng-container bbDialogInsertion>\n </ng-container>\n</div>\n", styles: [".bb-dialog-container,.bb-dialog-container-backdrop{top:0;left:0;right:0;bottom:0;z-index:1000;position:fixed}.bb-dialog-container{display:flex}.bb-dialog-container-backdrop{background-color:#00000080}.bb-dialog-container-component{width:100%;margin:auto;padding:20px;z-index:1001;display:block}\n"] }]
402
- }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { insertion: [{
403
- type: ViewChild,
404
- args: [BbDialogInsertion, { static: true }]
405
- }], onAnimationDone: [{
406
- type: HostListener,
407
- args: ['@bbDialogAnimation.done', ['$event']]
264
+ class BbDialogContainer {
265
+ constructor(_elementRef, _changeDetection, _componentFactoryResolver) {
266
+ this._elementRef = _elementRef;
267
+ this._changeDetection = _changeDetection;
268
+ this._componentFactoryResolver = _componentFactoryResolver;
269
+ // Data.
270
+ this.componentRef = null;
271
+ this.childComponentType = null;
272
+ // State.
273
+ this.overlayClicked$ = new Subject();
274
+ }
275
+ get onOverlayClicked() {
276
+ return this.overlayClicked$.pipe(take(1));
277
+ }
278
+ ngAfterViewInit() {
279
+ // Load the child component.
280
+ this.loadChildComponent(this.childComponentType);
281
+ // Listen for mouse click on the dialog container.
282
+ this.listenForClicks();
283
+ // Detect changes to notify change detection.
284
+ this._changeDetection.detectChanges();
285
+ }
286
+ ngOnDestroy() {
287
+ this._subscription && this._subscription.unsubscribe();
288
+ }
289
+ onAnimationDone(event) {
290
+ // Check if the dialog is being destroyed.
291
+ if (event.toState !== 'void') {
292
+ return;
293
+ }
294
+ // Destroy the ref if it exists.
295
+ this.componentRef && this.componentRef.destroy();
296
+ }
297
+ listenForClicks() {
298
+ if (!this._elementRef || !this._elementRef.nativeElement) {
299
+ return;
300
+ }
301
+ const mouseDown$ = fromEvent(this._elementRef.nativeElement, 'mousedown');
302
+ const touchStart$ = fromEvent(this._elementRef.nativeElement, 'touchstart');
303
+ const start$ = race([mouseDown$, touchStart$]);
304
+ const mouseUp$ = fromEvent(this._elementRef.nativeElement, 'mouseup');
305
+ const touchEnd$ = fromEvent(this._elementRef.nativeElement, 'touchend');
306
+ const end$ = race([mouseUp$, touchEnd$]);
307
+ this._subscription = start$.pipe(switchMap(() => end$)).subscribe(() => {
308
+ this.overlayClicked$.next();
309
+ });
310
+ }
311
+ loadChildComponent(componentType) {
312
+ // Resolve the component.
313
+ const componentFactory = this._componentFactoryResolver.resolveComponentFactory(componentType);
314
+ // Get the view container ref and clear it.
315
+ const viewContainerRef = this.insertion.viewContainerRef;
316
+ viewContainerRef.clear();
317
+ // Create an instance of the component.
318
+ this.componentRef = viewContainerRef.createComponent(componentFactory);
319
+ }
320
+ }
321
+ BbDialogContainer.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogContainer, deps: [{ token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Component });
322
+ BbDialogContainer.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogContainer, selector: "bb-dialog-container", host: { listeners: { "@bbDialogAnimation.done": "onAnimationDone($event)" }, properties: { "@bbDialogAnimation": "true" }, classAttribute: "bb-dialog-container" }, viewQueries: [{ propertyName: "insertion", first: true, predicate: BbDialogInsertion, descendants: true, static: true }], ngImport: i0, template: "<div class=\"bb-dialog-container-backdrop\">\r\n</div>\r\n\r\n<div class=\"bb-dialog-container-component\">\r\n <ng-container bbDialogInsertion>\r\n </ng-container>\r\n</div>\r\n", styles: [".bb-dialog-container,.bb-dialog-container-backdrop{top:0;left:0;right:0;bottom:0;z-index:1000;position:fixed}.bb-dialog-container{display:flex}.bb-dialog-container-backdrop{background-color:#00000080}.bb-dialog-container-component{width:100%;margin:auto;padding:20px;z-index:1001;display:block}\n"], dependencies: [{ kind: "directive", type: BbDialogInsertion, selector: "[bbDialogInsertion]" }], animations: [
323
+ trigger('bbDialogAnimation', [
324
+ transition(':enter', [
325
+ group([
326
+ query('.bb-dialog-container-backdrop', [
327
+ style({
328
+ opacity: 0
329
+ }),
330
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
331
+ opacity: 1
332
+ }))
333
+ ]),
334
+ query('.bb-dialog-container-component', [
335
+ style({
336
+ transform: 'scale(0.95)'
337
+ }),
338
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
339
+ transform: 'scale(1)'
340
+ }))
341
+ ])
342
+ ])
343
+ ]),
344
+ transition(':leave', [
345
+ group([
346
+ query('.bb-dialog-container-backdrop', [
347
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
348
+ opacity: 0
349
+ }))
350
+ ]),
351
+ query('.bb-dialog-container-component', [
352
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
353
+ opacity: 0,
354
+ transform: 'scale(0.95)'
355
+ }))
356
+ ])
357
+ ])
358
+ ])
359
+ ])
360
+ ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
361
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogContainer, decorators: [{
362
+ type: Component,
363
+ args: [{ selector: 'bb-dialog-container', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: { 'class': 'bb-dialog-container', '[@bbDialogAnimation]': 'true' }, preserveWhitespaces: false, animations: [
364
+ trigger('bbDialogAnimation', [
365
+ transition(':enter', [
366
+ group([
367
+ query('.bb-dialog-container-backdrop', [
368
+ style({
369
+ opacity: 0
370
+ }),
371
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
372
+ opacity: 1
373
+ }))
374
+ ]),
375
+ query('.bb-dialog-container-component', [
376
+ style({
377
+ transform: 'scale(0.95)'
378
+ }),
379
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
380
+ transform: 'scale(1)'
381
+ }))
382
+ ])
383
+ ])
384
+ ]),
385
+ transition(':leave', [
386
+ group([
387
+ query('.bb-dialog-container-backdrop', [
388
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
389
+ opacity: 0
390
+ }))
391
+ ]),
392
+ query('.bb-dialog-container-component', [
393
+ animate('150ms cubic-bezier(0, 0, 0.2, 1)', style({
394
+ opacity: 0,
395
+ transform: 'scale(0.95)'
396
+ }))
397
+ ])
398
+ ])
399
+ ])
400
+ ])
401
+ ], template: "<div class=\"bb-dialog-container-backdrop\">\r\n</div>\r\n\r\n<div class=\"bb-dialog-container-component\">\r\n <ng-container bbDialogInsertion>\r\n </ng-container>\r\n</div>\r\n", styles: [".bb-dialog-container,.bb-dialog-container-backdrop{top:0;left:0;right:0;bottom:0;z-index:1000;position:fixed}.bb-dialog-container{display:flex}.bb-dialog-container-backdrop{background-color:#00000080}.bb-dialog-container-component{width:100%;margin:auto;padding:20px;z-index:1001;display:block}\n"] }]
402
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i0.ComponentFactoryResolver }]; }, propDecorators: { insertion: [{
403
+ type: ViewChild,
404
+ args: [BbDialogInsertion, { static: true }]
405
+ }], onAnimationDone: [{
406
+ type: HostListener,
407
+ args: ['@bbDialogAnimation.done', ['$event']]
408
408
  }] } });
409
409
 
410
- let nextUniqueId = 0;
411
- class BbDialogConfirm {
412
- constructor(config, dialogRef) {
413
- this.config = config;
414
- this.dialogRef = dialogRef;
415
- // Id.
416
- this.dialogId = `bb-dialog-confirm-${nextUniqueId++}`;
417
- }
418
- ngAfterViewInit() {
419
- // Initial focus the button.
420
- this.confirmButton.focus();
421
- }
422
- onClose(result) {
423
- this.dialogRef.close(result);
424
- }
425
- }
426
- BbDialogConfirm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogConfirm, deps: [{ token: BbDialogConfig }, { token: BbDialogRef }], target: i0.ɵɵFactoryTarget.Component });
427
- BbDialogConfirm.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: BbDialogConfirm, selector: "bb-dialog-confirm", host: { classAttribute: "bb-dialog-confirm" }, viewQueries: [{ propertyName: "confirmButton", first: true, predicate: ["confirm"], descendants: true, read: BbButton }], ngImport: i0, template: "<div [attr.aria-labelledby]=\"dialogId\"\n bb-dialog-modal\n bbFocusTrap>\n <header bb-dialog-header>\n <h1 *ngIf=\"config?.data?.title as title\"\n [id]=\"dialogId\">\n {{ title | bbLocalize:{optional: true} }}\n </h1>\n </header>\n\n <p>\n {{ config?.data?.description | bbLocalize:{optional: true} }}\n </p>\n\n <footer bb-dialog-actions>\n <button *ngIf=\"config?.data?.cancelButtonText as cancelButtonText\"\n (click)=\"onClose(false)\"\n bb-button\n type=\"button\">\n {{ cancelButtonText | bbLocalize:{optional: true} }}\n </button>\n <button #confirm\n *ngIf=\"config?.data?.confirmButtonText as confirmButtonText\"\n (click)=\"onClose(true)\"\n bb-button\n type=\"button\"\n class=\"destructive\">\n {{ confirmButtonText | bbLocalize:{optional: true} }}\n </button>\n </footer>\n</div>\n", styles: [".bb-dialog-confirm{display:block}\n"], components: [{ type: BbDialogModal, selector: "[bb-dialog-modal]", inputs: ["maxWidth"] }, { type: BbDialogHeader, selector: "[bb-dialog-header]", inputs: ["iconName", "iconColor"], outputs: ["closeRequested"] }, { type: BbDialogActions, selector: "[bb-dialog-actions]" }, { type: i6.BbButton, selector: "button[bb-button]", inputs: ["disabled", "loading"], exportAs: ["bbButton"] }], directives: [{ type: i6.BbFocusTrap, selector: "[bbFocusTrap]" }, { type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }], pipes: { "bbLocalize": i8.BbLocalize }, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
428
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: BbDialogConfirm, decorators: [{
429
- type: Component,
430
- args: [{ selector: 'bb-dialog-confirm', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-confirm' }, template: "<div [attr.aria-labelledby]=\"dialogId\"\n bb-dialog-modal\n bbFocusTrap>\n <header bb-dialog-header>\n <h1 *ngIf=\"config?.data?.title as title\"\n [id]=\"dialogId\">\n {{ title | bbLocalize:{optional: true} }}\n </h1>\n </header>\n\n <p>\n {{ config?.data?.description | bbLocalize:{optional: true} }}\n </p>\n\n <footer bb-dialog-actions>\n <button *ngIf=\"config?.data?.cancelButtonText as cancelButtonText\"\n (click)=\"onClose(false)\"\n bb-button\n type=\"button\">\n {{ cancelButtonText | bbLocalize:{optional: true} }}\n </button>\n <button #confirm\n *ngIf=\"config?.data?.confirmButtonText as confirmButtonText\"\n (click)=\"onClose(true)\"\n bb-button\n type=\"button\"\n class=\"destructive\">\n {{ confirmButtonText | bbLocalize:{optional: true} }}\n </button>\n </footer>\n</div>\n", styles: [".bb-dialog-confirm{display:block}\n"] }]
431
- }], ctorParameters: function () { return [{ type: BbDialogConfig }, { type: BbDialogRef }]; }, propDecorators: { confirmButton: [{
432
- type: ViewChild,
433
- args: ['confirm', { read: BbButton }]
410
+ let nextUniqueId = 0;
411
+ class BbDialogConfirm {
412
+ constructor(config, dialogRef) {
413
+ this.config = config;
414
+ this.dialogRef = dialogRef;
415
+ // Id.
416
+ this.dialogId = `bb-dialog-confirm-${nextUniqueId++}`;
417
+ }
418
+ ngAfterViewInit() {
419
+ // Initial focus the button.
420
+ this.confirmButton.focus();
421
+ }
422
+ onClose(result) {
423
+ this.dialogRef.close(result);
424
+ }
425
+ }
426
+ BbDialogConfirm.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogConfirm, deps: [{ token: BbDialogConfig }, { token: BbDialogRef }], target: i0.ɵɵFactoryTarget.Component });
427
+ BbDialogConfirm.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.0.3", type: BbDialogConfirm, selector: "bb-dialog-confirm", host: { classAttribute: "bb-dialog-confirm" }, viewQueries: [{ propertyName: "confirmButton", first: true, predicate: ["confirm"], descendants: true, read: BbButton }], ngImport: i0, template: "<div [attr.aria-labelledby]=\"dialogId\"\r\n bb-dialog-modal\r\n bbFocusTrap>\r\n <header bb-dialog-header>\r\n <h1 *ngIf=\"config?.data?.title as title\"\r\n [id]=\"dialogId\">\r\n {{ title | bbLocalize:{optional: true} }}\r\n </h1>\r\n </header>\r\n\r\n <p>\r\n {{ config?.data?.description | bbLocalize:{optional: true} }}\r\n </p>\r\n\r\n <footer bb-dialog-actions>\r\n <button *ngIf=\"config?.data?.cancelButtonText as cancelButtonText\"\r\n (click)=\"onClose(false)\"\r\n bb-button\r\n type=\"button\">\r\n {{ cancelButtonText | bbLocalize:{optional: true} }}\r\n </button>\r\n <button #confirm\r\n *ngIf=\"config?.data?.confirmButtonText as confirmButtonText\"\r\n (click)=\"onClose(true)\"\r\n bb-button\r\n type=\"button\"\r\n class=\"destructive\">\r\n {{ confirmButtonText | bbLocalize:{optional: true} }}\r\n </button>\r\n </footer>\r\n</div>\r\n", styles: [".bb-dialog-confirm{display:block}\n"], dependencies: [{ kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i4.BbFocusTrap, selector: "[bbFocusTrap]" }, { kind: "component", type: i4.BbButton, selector: "button[bb-button]", inputs: ["disabled", "loading"], exportAs: ["bbButton"] }, { kind: "component", type: BbDialogModal, selector: "[bb-dialog-modal]", inputs: ["maxWidth"] }, { kind: "component", type: BbDialogHeader, selector: "[bb-dialog-header]", inputs: ["iconName", "iconColor"], outputs: ["closeRequested"] }, { kind: "component", type: BbDialogActions, selector: "[bb-dialog-actions]" }, { kind: "pipe", type: i8.BbLocalize, name: "bbLocalize" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: BbDialogConfirm, decorators: [{
429
+ type: Component,
430
+ args: [{ selector: 'bb-dialog-confirm', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, preserveWhitespaces: false, host: { 'class': 'bb-dialog-confirm' }, template: "<div [attr.aria-labelledby]=\"dialogId\"\r\n bb-dialog-modal\r\n bbFocusTrap>\r\n <header bb-dialog-header>\r\n <h1 *ngIf=\"config?.data?.title as title\"\r\n [id]=\"dialogId\">\r\n {{ title | bbLocalize:{optional: true} }}\r\n </h1>\r\n </header>\r\n\r\n <p>\r\n {{ config?.data?.description | bbLocalize:{optional: true} }}\r\n </p>\r\n\r\n <footer bb-dialog-actions>\r\n <button *ngIf=\"config?.data?.cancelButtonText as cancelButtonText\"\r\n (click)=\"onClose(false)\"\r\n bb-button\r\n type=\"button\">\r\n {{ cancelButtonText | bbLocalize:{optional: true} }}\r\n </button>\r\n <button #confirm\r\n *ngIf=\"config?.data?.confirmButtonText as confirmButtonText\"\r\n (click)=\"onClose(true)\"\r\n bb-button\r\n type=\"button\"\r\n class=\"destructive\">\r\n {{ confirmButtonText | bbLocalize:{optional: true} }}\r\n </button>\r\n </footer>\r\n</div>\r\n", styles: [".bb-dialog-confirm{display:block}\n"] }]
431
+ }], ctorParameters: function () { return [{ type: BbDialogConfig }, { type: BbDialogRef }]; }, propDecorators: { confirmButton: [{
432
+ type: ViewChild,
433
+ args: ['confirm', { read: BbButton }]
434
434
  }] } });
435
435
 
436
- class BbDialogInjector {
437
- constructor(_parentInjector, _additionalTokens) {
438
- this._parentInjector = _parentInjector;
439
- this._additionalTokens = _additionalTokens;
440
- }
441
- get(token, notFoundValue) {
442
- // First check if the additional token
443
- // contains the token.
444
- const value = this._additionalTokens.get(token);
445
- // If that value exists return it.
446
- if (value) {
447
- return value;
448
- }
449
- // Else query the parent injector.
450
- return this._parentInjector.get(token, notFoundValue);
451
- }
436
+ class BbDialogInjector {
437
+ constructor(_parentInjector, _additionalTokens) {
438
+ this._parentInjector = _parentInjector;
439
+ this._additionalTokens = _additionalTokens;
440
+ }
441
+ get(token, notFoundValue) {
442
+ // First check if the additional token
443
+ // contains the token.
444
+ const value = this._additionalTokens.get(token);
445
+ // If that value exists return it.
446
+ if (value) {
447
+ return value;
448
+ }
449
+ // Else query the parent injector.
450
+ return this._parentInjector.get(token, notFoundValue);
451
+ }
452
452
  }
453
453
 
454
- class Dialog {
455
- constructor(_injector, _applicationRef, _componentFactoryResolver) {
456
- this._injector = _injector;
457
- this._applicationRef = _applicationRef;
458
- this._componentFactoryResolver = _componentFactoryResolver;
459
- }
460
- open(componentType, config) {
461
- return this.createDialog(componentType, config);
462
- }
463
- confirm(title, description, options = {}) {
464
- return this.open(BbDialogConfirm, {
465
- data: {
466
- title,
467
- description,
468
- cancelButtonText: options.cancelButtonText || 'dialog.default_cancel_button',
469
- confirmButtonText: options.confirmButtonText || 'dialog.default_confirm_button'
470
- }
471
- });
472
- }
473
- createDialog(componentType, config) {
474
- // Create a reference.
475
- const dialogRef = new BbDialogRef();
476
- // Create a map with the config.
477
- const map = new WeakMap();
478
- map.set(BbDialogConfig, config);
479
- map.set(BbDialogRef, dialogRef);
480
- // Create a custom injector.
481
- const dialogInjector = new BbDialogInjector(this._injector, map);
482
- // Resolve the dialog component reference.
483
- const dialogComponentRef = this._componentFactoryResolver
484
- .resolveComponentFactory(BbDialogContainer)
485
- .create(dialogInjector);
486
- // Attach the host view to the application.
487
- this._applicationRef.attachView(dialogComponentRef.hostView);
488
- try {
489
- // Remove the current focus.
490
- const activeElement = document.activeElement;
491
- activeElement.blur();
492
- // Append the element to the DOM.
493
- document.body.appendChild(dialogComponentRef.location.nativeElement);
494
- }
495
- catch (_a) {
496
- // Don't do anything, because it must've failed.
497
- }
498
- // Set the child component type on the component.
499
- dialogComponentRef.instance.childComponentType = componentType;
500
- dialogComponentRef.instance.onOverlayClicked.subscribe(() => dialogRef.onOverlayClicked());
501
- // Listen for close events.
502
- dialogRef.afterClosed.subscribe(() => this.deleteDialog(dialogComponentRef));
503
- // Return the reference.
504
- return dialogRef;
505
- }
506
- deleteDialog(dialogComponentRef) {
507
- // Only continue if the dialog component ref exists.
508
- if (!dialogComponentRef) {
509
- return;
510
- }
511
- // Detach the dialog.
512
- this._applicationRef.detachView(dialogComponentRef.hostView);
513
- // Destroy the dialog.
514
- dialogComponentRef.destroy();
515
- dialogComponentRef = null;
516
- }
517
- }
518
- Dialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Dialog, deps: [{ token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
519
- Dialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Dialog });
520
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: Dialog, decorators: [{
521
- type: Injectable
454
+ class Dialog {
455
+ constructor(_injector, _applicationRef, _componentFactoryResolver) {
456
+ this._injector = _injector;
457
+ this._applicationRef = _applicationRef;
458
+ this._componentFactoryResolver = _componentFactoryResolver;
459
+ }
460
+ open(componentType, config) {
461
+ return this.createDialog(componentType, config);
462
+ }
463
+ confirm(title, description, options = {}) {
464
+ return this.open(BbDialogConfirm, {
465
+ data: {
466
+ title,
467
+ description,
468
+ cancelButtonText: options.cancelButtonText || 'dialog.default_cancel_button',
469
+ confirmButtonText: options.confirmButtonText || 'dialog.default_confirm_button'
470
+ }
471
+ });
472
+ }
473
+ createDialog(componentType, config) {
474
+ // Create a reference.
475
+ const dialogRef = new BbDialogRef();
476
+ // Create a map with the config.
477
+ const map = new WeakMap();
478
+ map.set(BbDialogConfig, config);
479
+ map.set(BbDialogRef, dialogRef);
480
+ // Create a custom injector.
481
+ const dialogInjector = new BbDialogInjector(this._injector, map);
482
+ // Resolve the dialog component reference.
483
+ const dialogComponentRef = this._componentFactoryResolver
484
+ .resolveComponentFactory(BbDialogContainer)
485
+ .create(dialogInjector);
486
+ // Attach the host view to the application.
487
+ this._applicationRef.attachView(dialogComponentRef.hostView);
488
+ try {
489
+ // Remove the current focus.
490
+ const activeElement = document.activeElement;
491
+ activeElement.blur();
492
+ // Append the element to the DOM.
493
+ document.body.appendChild(dialogComponentRef.location.nativeElement);
494
+ }
495
+ catch (_a) {
496
+ // Don't do anything, because it must've failed.
497
+ }
498
+ // Set the child component type on the component.
499
+ dialogComponentRef.instance.childComponentType = componentType;
500
+ dialogComponentRef.instance.onOverlayClicked.subscribe(() => dialogRef.onOverlayClicked());
501
+ // Listen for close events.
502
+ dialogRef.afterClosed.subscribe(() => this.deleteDialog(dialogComponentRef));
503
+ // Return the reference.
504
+ return dialogRef;
505
+ }
506
+ deleteDialog(dialogComponentRef) {
507
+ // Only continue if the dialog component ref exists.
508
+ if (!dialogComponentRef) {
509
+ return;
510
+ }
511
+ // Detach the dialog.
512
+ this._applicationRef.detachView(dialogComponentRef.hostView);
513
+ // Destroy the dialog.
514
+ dialogComponentRef.destroy();
515
+ dialogComponentRef = null;
516
+ }
517
+ }
518
+ Dialog.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: Dialog, deps: [{ token: i0.Injector }, { token: i0.ApplicationRef }, { token: i0.ComponentFactoryResolver }], target: i0.ɵɵFactoryTarget.Injectable });
519
+ Dialog.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: Dialog });
520
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: Dialog, decorators: [{
521
+ type: Injectable
522
522
  }], ctorParameters: function () { return [{ type: i0.Injector }, { type: i0.ApplicationRef }, { type: i0.ComponentFactoryResolver }]; } });
523
523
 
524
- class DialogModule {
525
- static forRoot() {
526
- return {
527
- ngModule: DialogModule,
528
- providers: [Dialog]
529
- };
530
- }
531
- }
532
- DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
533
- DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DialogModule, declarations: [BbDialogContainer,
534
- BbDialogOverlay,
535
- BbDialogModal,
536
- BbDialogHeader,
537
- BbDialogLink,
538
- BbDialogActions,
539
- BbDialogConfirm,
540
- BbDialogInsertion], imports: [CommonModule,
541
- LocalizeModule,
542
- ElementsModule], exports: [BbDialogOverlay,
543
- BbDialogModal,
544
- BbDialogHeader,
545
- BbDialogLink,
546
- BbDialogActions] });
547
- DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DialogModule, imports: [[
548
- CommonModule,
549
- LocalizeModule,
550
- ElementsModule
551
- ]] });
552
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: DialogModule, decorators: [{
553
- type: NgModule,
554
- args: [{
555
- imports: [
556
- CommonModule,
557
- LocalizeModule,
558
- ElementsModule
559
- ],
560
- declarations: [
561
- BbDialogContainer,
562
- BbDialogOverlay,
563
- BbDialogModal,
564
- BbDialogHeader,
565
- BbDialogLink,
566
- BbDialogActions,
567
- BbDialogConfirm,
568
- BbDialogInsertion
569
- ],
570
- exports: [
571
- BbDialogOverlay,
572
- BbDialogModal,
573
- BbDialogHeader,
574
- BbDialogLink,
575
- BbDialogActions
576
- ]
577
- }]
524
+ class DialogModule {
525
+ static forRoot() {
526
+ return {
527
+ ngModule: DialogModule,
528
+ providers: [Dialog]
529
+ };
530
+ }
531
+ }
532
+ DialogModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DialogModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
533
+ DialogModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.0.3", ngImport: i0, type: DialogModule, declarations: [BbDialogContainer,
534
+ BbDialogOverlay,
535
+ BbDialogModal,
536
+ BbDialogHeader,
537
+ BbDialogLink,
538
+ BbDialogActions,
539
+ BbDialogConfirm,
540
+ BbDialogInsertion], imports: [CommonModule,
541
+ LocalizeModule,
542
+ ElementsModule], exports: [BbDialogOverlay,
543
+ BbDialogModal,
544
+ BbDialogHeader,
545
+ BbDialogLink,
546
+ BbDialogActions] });
547
+ DialogModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DialogModule, imports: [CommonModule,
548
+ LocalizeModule,
549
+ ElementsModule] });
550
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.0.3", ngImport: i0, type: DialogModule, decorators: [{
551
+ type: NgModule,
552
+ args: [{
553
+ imports: [
554
+ CommonModule,
555
+ LocalizeModule,
556
+ ElementsModule
557
+ ],
558
+ declarations: [
559
+ BbDialogContainer,
560
+ BbDialogOverlay,
561
+ BbDialogModal,
562
+ BbDialogHeader,
563
+ BbDialogLink,
564
+ BbDialogActions,
565
+ BbDialogConfirm,
566
+ BbDialogInsertion
567
+ ],
568
+ exports: [
569
+ BbDialogOverlay,
570
+ BbDialogModal,
571
+ BbDialogHeader,
572
+ BbDialogLink,
573
+ BbDialogActions
574
+ ]
575
+ }]
578
576
  }] });
579
577
 
580
- /**
581
- * Generated bundle index. Do not edit.
578
+ /**
579
+ * Generated bundle index. Do not edit.
582
580
  */
583
581
 
584
582
  export { BbDialogActions, BbDialogConfig, BbDialogHeader, BbDialogLink, BbDialogModal, BbDialogOverlay, BbDialogRef, Dialog, DialogModule };