ngx-bootstrap 5.6.1 → 6.2.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 (483) hide show
  1. package/CHANGELOG.md +127 -0
  2. package/README.md +8 -1
  3. package/accordion/accordion-group.component.d.ts +3 -2
  4. package/accordion/accordion.module.d.ts +1 -1
  5. package/accordion/bundles/ngx-bootstrap-accordion.umd.js +5 -2
  6. package/accordion/bundles/ngx-bootstrap-accordion.umd.js.map +1 -1
  7. package/accordion/bundles/ngx-bootstrap-accordion.umd.min.js +1 -1
  8. package/accordion/bundles/ngx-bootstrap-accordion.umd.min.js.map +1 -1
  9. package/accordion/esm2015/accordion.config.js +6 -2
  10. package/accordion/esm2015/accordion.module.js +2 -3
  11. package/accordion/esm5/accordion.config.js +6 -2
  12. package/accordion/esm5/accordion.module.js +2 -3
  13. package/accordion/fesm2015/ngx-bootstrap-accordion.js +6 -3
  14. package/accordion/fesm2015/ngx-bootstrap-accordion.js.map +1 -1
  15. package/accordion/fesm5/ngx-bootstrap-accordion.js +6 -3
  16. package/accordion/fesm5/ngx-bootstrap-accordion.js.map +1 -1
  17. package/accordion/ngx-bootstrap-accordion.metadata.json +1 -1
  18. package/accordion/package.json +2 -2
  19. package/alert/alert.module.d.ts +1 -1
  20. package/alert/bundles/ngx-bootstrap-alert.umd.js +5 -2
  21. package/alert/bundles/ngx-bootstrap-alert.umd.js.map +1 -1
  22. package/alert/bundles/ngx-bootstrap-alert.umd.min.js +2 -2
  23. package/alert/bundles/ngx-bootstrap-alert.umd.min.js.map +1 -1
  24. package/alert/esm2015/alert.component.js +3 -3
  25. package/alert/esm2015/alert.config.js +6 -2
  26. package/alert/esm2015/alert.module.js +2 -3
  27. package/alert/esm5/alert.component.js +3 -3
  28. package/alert/esm5/alert.config.js +6 -2
  29. package/alert/esm5/alert.module.js +2 -3
  30. package/alert/fesm2015/ngx-bootstrap-alert.js +6 -3
  31. package/alert/fesm2015/ngx-bootstrap-alert.js.map +1 -1
  32. package/alert/fesm5/ngx-bootstrap-alert.js +6 -3
  33. package/alert/fesm5/ngx-bootstrap-alert.js.map +1 -1
  34. package/alert/ngx-bootstrap-alert.metadata.json +1 -1
  35. package/alert/package.json +2 -2
  36. package/buttons/bundles/ngx-bootstrap-buttons.umd.js +293 -16
  37. package/buttons/bundles/ngx-bootstrap-buttons.umd.js.map +1 -1
  38. package/buttons/bundles/ngx-bootstrap-buttons.umd.min.js +1 -1
  39. package/buttons/bundles/ngx-bootstrap-buttons.umd.min.js.map +1 -1
  40. package/buttons/button-checkbox.directive.d.ts +2 -2
  41. package/buttons/button-radio-group.directive.d.ts +12 -1
  42. package/buttons/button-radio.directive.d.ts +19 -7
  43. package/buttons/buttons.module.d.ts +1 -1
  44. package/buttons/esm2015/button-radio-group.directive.js +140 -3
  45. package/buttons/esm2015/button-radio.directive.js +98 -18
  46. package/buttons/esm2015/buttons.module.js +1 -1
  47. package/buttons/esm5/button-radio-group.directive.js +171 -3
  48. package/buttons/esm5/button-radio.directive.js +126 -17
  49. package/buttons/esm5/buttons.module.js +1 -1
  50. package/buttons/fesm2015/ngx-bootstrap-buttons.js +235 -18
  51. package/buttons/fesm2015/ngx-bootstrap-buttons.js.map +1 -1
  52. package/buttons/fesm5/ngx-bootstrap-buttons.js +294 -17
  53. package/buttons/fesm5/ngx-bootstrap-buttons.js.map +1 -1
  54. package/buttons/ngx-bootstrap-buttons.metadata.json +1 -1
  55. package/buttons/package.json +2 -2
  56. package/carousel/bundles/ngx-bootstrap-carousel.umd.js +5 -3
  57. package/carousel/bundles/ngx-bootstrap-carousel.umd.js.map +1 -1
  58. package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js +1 -1
  59. package/carousel/bundles/ngx-bootstrap-carousel.umd.min.js.map +1 -1
  60. package/carousel/carousel.component.d.ts +7 -5
  61. package/carousel/carousel.module.d.ts +1 -1
  62. package/carousel/esm2015/carousel.config.js +6 -2
  63. package/carousel/esm2015/carousel.module.js +2 -4
  64. package/carousel/esm5/carousel.component.js +4 -4
  65. package/carousel/esm5/carousel.config.js +6 -2
  66. package/carousel/esm5/carousel.module.js +2 -4
  67. package/carousel/fesm2015/ngx-bootstrap-carousel.js +6 -4
  68. package/carousel/fesm2015/ngx-bootstrap-carousel.js.map +1 -1
  69. package/carousel/fesm5/ngx-bootstrap-carousel.js +6 -4
  70. package/carousel/fesm5/ngx-bootstrap-carousel.js.map +1 -1
  71. package/carousel/ngx-bootstrap-carousel.metadata.json +1 -1
  72. package/carousel/package.json +2 -2
  73. package/chronos/bundles/ngx-bootstrap-chronos.umd.js +90 -73
  74. package/chronos/bundles/ngx-bootstrap-chronos.umd.js.map +1 -1
  75. package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js +69 -1
  76. package/chronos/bundles/ngx-bootstrap-chronos.umd.min.js.map +1 -1
  77. package/chronos/esm2015/create/from-anything.js +2 -2
  78. package/chronos/esm2015/duration/valid.js +4 -6
  79. package/chronos/esm2015/i18n/ar.js +1 -4
  80. package/chronos/esm2015/i18n/bg.js +18 -20
  81. package/chronos/esm2015/i18n/cs.js +45 -47
  82. package/chronos/esm2015/i18n/et.js +1 -3
  83. package/chronos/esm2015/i18n/th-be.js +21 -1
  84. package/chronos/esm2015/locale/locale.class.js +5 -3
  85. package/chronos/esm5/create/from-anything.js +2 -2
  86. package/chronos/esm5/duration/valid.js +4 -6
  87. package/chronos/esm5/i18n/ar.js +1 -4
  88. package/chronos/esm5/i18n/bg.js +18 -20
  89. package/chronos/esm5/i18n/cs.js +45 -47
  90. package/chronos/esm5/i18n/et.js +1 -3
  91. package/chronos/esm5/i18n/th-be.js +21 -1
  92. package/chronos/esm5/locale/locale.class.js +6 -3
  93. package/chronos/esm5/test/chain.js +4 -4
  94. package/chronos/fesm2015/ngx-bootstrap-chronos.js +89 -73
  95. package/chronos/fesm2015/ngx-bootstrap-chronos.js.map +1 -1
  96. package/chronos/fesm5/ngx-bootstrap-chronos.js +90 -73
  97. package/chronos/fesm5/ngx-bootstrap-chronos.js.map +1 -1
  98. package/chronos/locale/locale.class.d.ts +4 -3
  99. package/chronos/package.json +2 -2
  100. package/collapse/bundles/ngx-bootstrap-collapse.umd.js.map +1 -1
  101. package/collapse/bundles/ngx-bootstrap-collapse.umd.min.js.map +1 -1
  102. package/collapse/collapse.directive.d.ts +3 -2
  103. package/collapse/collapse.module.d.ts +1 -1
  104. package/collapse/esm2015/collapse.module.js +1 -1
  105. package/collapse/esm5/collapse.module.js +1 -1
  106. package/collapse/fesm2015/ngx-bootstrap-collapse.js.map +1 -1
  107. package/collapse/fesm5/ngx-bootstrap-collapse.js.map +1 -1
  108. package/collapse/package.json +2 -2
  109. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js +5 -4
  110. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js.map +1 -1
  111. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js +1 -1
  112. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js.map +1 -1
  113. package/component-loader/component-loader.class.d.ts +4 -3
  114. package/component-loader/esm2015/component-loader.class.js +5 -5
  115. package/component-loader/esm5/component-loader.class.js +6 -5
  116. package/component-loader/fesm2015/ngx-bootstrap-component-loader.js +4 -4
  117. package/component-loader/fesm2015/ngx-bootstrap-component-loader.js.map +1 -1
  118. package/component-loader/fesm5/ngx-bootstrap-component-loader.js +5 -4
  119. package/component-loader/fesm5/ngx-bootstrap-component-loader.js.map +1 -1
  120. package/component-loader/package.json +2 -2
  121. package/datepicker/base/bs-datepicker-container.d.ts +20 -8
  122. package/datepicker/bs-datepicker-inline.component.d.ts +6 -2
  123. package/datepicker/bs-datepicker.component.d.ts +14 -5
  124. package/datepicker/bs-datepicker.config.d.ts +41 -1
  125. package/datepicker/bs-datepicker.css +126 -5
  126. package/datepicker/bs-datepicker.css.map +4 -4
  127. package/datepicker/bs-datepicker.module.d.ts +1 -1
  128. package/datepicker/bs-datepicker.scss +25 -5
  129. package/datepicker/bs-daterangepicker-inline.component.d.ts +1 -1
  130. package/datepicker/bs-daterangepicker.component.d.ts +9 -4
  131. package/datepicker/bs-locale.service.d.ts +3 -3
  132. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js +604 -93
  133. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js.map +1 -1
  134. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js +2 -2
  135. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js.map +1 -1
  136. package/datepicker/datepicker-inner.component.d.ts +2 -1
  137. package/datepicker/datepicker.component.d.ts +2 -1
  138. package/datepicker/datepicker.module.d.ts +1 -1
  139. package/datepicker/daypicker.component.d.ts +1 -1
  140. package/datepicker/engine/flag-days-calendar.d.ts +2 -1
  141. package/datepicker/engine/flag-months-calendar.d.ts +1 -0
  142. package/datepicker/engine/flag-years-calendar.d.ts +1 -0
  143. package/datepicker/esm2015/base/bs-datepicker-container.js +38 -1
  144. package/datepicker/esm2015/bs-datepicker-inline.component.js +12 -1
  145. package/datepicker/esm2015/bs-datepicker-inline.config.js +6 -2
  146. package/datepicker/esm2015/bs-datepicker-input.directive.js +9 -1
  147. package/datepicker/esm2015/bs-datepicker.component.js +45 -6
  148. package/datepicker/esm2015/bs-datepicker.config.js +88 -2
  149. package/datepicker/esm2015/bs-datepicker.module.js +3 -10
  150. package/datepicker/esm2015/bs-daterangepicker-inline.component.js +3 -2
  151. package/datepicker/esm2015/bs-daterangepicker-inline.config.js +6 -2
  152. package/datepicker/esm2015/bs-daterangepicker-input.directive.js +11 -3
  153. package/datepicker/esm2015/bs-daterangepicker.component.js +36 -7
  154. package/datepicker/esm2015/bs-daterangepicker.config.js +6 -2
  155. package/datepicker/esm2015/datepicker.config.js +6 -2
  156. package/datepicker/esm2015/datepicker.module.js +1 -1
  157. package/datepicker/esm2015/engine/flag-days-calendar.js +22 -3
  158. package/datepicker/esm2015/engine/flag-months-calendar.js +14 -3
  159. package/datepicker/esm2015/engine/flag-years-calendar.js +14 -3
  160. package/datepicker/esm2015/models/index.js +13 -1
  161. package/datepicker/esm2015/public_api.js +1 -1
  162. package/datepicker/esm2015/reducer/bs-datepicker.actions.js +14 -1
  163. package/datepicker/esm2015/reducer/bs-datepicker.effects.js +27 -33
  164. package/datepicker/esm2015/reducer/bs-datepicker.reducer.js +10 -2
  165. package/datepicker/esm2015/reducer/bs-datepicker.state.js +3 -1
  166. package/datepicker/esm2015/themes/bs/bs-custom-dates-view.component.js +5 -2
  167. package/datepicker/esm2015/themes/bs/bs-datepicker-container.component.js +57 -5
  168. package/datepicker/esm2015/themes/bs/bs-datepicker-inline-container.component.js +2 -2
  169. package/datepicker/esm2015/themes/bs/bs-daterangepicker-container.component.js +73 -4
  170. package/datepicker/esm2015/themes/bs/bs-daterangepicker-inline-container.component.js +2 -2
  171. package/datepicker/esm2015/themes/bs/bs-days-calendar-view.component.js +42 -4
  172. package/datepicker/esm5/base/bs-datepicker-container.js +52 -1
  173. package/datepicker/esm5/bs-datepicker-inline.component.js +12 -1
  174. package/datepicker/esm5/bs-datepicker-inline.config.js +8 -4
  175. package/datepicker/esm5/bs-datepicker-input.directive.js +9 -1
  176. package/datepicker/esm5/bs-datepicker.component.js +58 -8
  177. package/datepicker/esm5/bs-datepicker.config.js +88 -2
  178. package/datepicker/esm5/bs-datepicker.module.js +3 -10
  179. package/datepicker/esm5/bs-daterangepicker-inline.component.js +3 -2
  180. package/datepicker/esm5/bs-daterangepicker-inline.config.js +8 -4
  181. package/datepicker/esm5/bs-daterangepicker-input.directive.js +11 -3
  182. package/datepicker/esm5/bs-daterangepicker.component.js +49 -9
  183. package/datepicker/esm5/bs-daterangepicker.config.js +8 -4
  184. package/datepicker/esm5/datepicker.config.js +6 -2
  185. package/datepicker/esm5/datepicker.module.js +1 -1
  186. package/datepicker/esm5/engine/flag-days-calendar.js +22 -3
  187. package/datepicker/esm5/engine/flag-months-calendar.js +14 -3
  188. package/datepicker/esm5/engine/flag-years-calendar.js +14 -3
  189. package/datepicker/esm5/engine/format-days-calendar.js +3 -3
  190. package/datepicker/esm5/models/index.js +13 -1
  191. package/datepicker/esm5/public_api.js +1 -1
  192. package/datepicker/esm5/reducer/bs-datepicker.actions.js +18 -1
  193. package/datepicker/esm5/reducer/bs-datepicker.effects.js +33 -35
  194. package/datepicker/esm5/reducer/bs-datepicker.reducer.js +10 -2
  195. package/datepicker/esm5/reducer/bs-datepicker.state.js +3 -1
  196. package/datepicker/esm5/reducer/bs-datepicker.store.js +3 -3
  197. package/datepicker/esm5/themes/bs/bs-custom-dates-view.component.js +5 -2
  198. package/datepicker/esm5/themes/bs/bs-datepicker-container.component.js +74 -8
  199. package/datepicker/esm5/themes/bs/bs-datepicker-inline-container.component.js +4 -4
  200. package/datepicker/esm5/themes/bs/bs-daterangepicker-container.component.js +92 -7
  201. package/datepicker/esm5/themes/bs/bs-daterangepicker-inline-container.component.js +4 -4
  202. package/datepicker/esm5/themes/bs/bs-days-calendar-view.component.js +25 -2
  203. package/datepicker/fesm2015/ngx-bootstrap-datepicker.js +549 -96
  204. package/datepicker/fesm2015/ngx-bootstrap-datepicker.js.map +1 -1
  205. package/datepicker/fesm5/ngx-bootstrap-datepicker.js +606 -94
  206. package/datepicker/fesm5/ngx-bootstrap-datepicker.js.map +1 -1
  207. package/datepicker/models/index.d.ts +5 -0
  208. package/datepicker/monthpicker.component.d.ts +1 -1
  209. package/datepicker/ngx-bootstrap-datepicker.metadata.json +1 -1
  210. package/datepicker/package.json +2 -2
  211. package/datepicker/public_api.d.ts +1 -1
  212. package/datepicker/reducer/bs-datepicker.actions.d.ts +3 -1
  213. package/datepicker/reducer/bs-datepicker.effects.d.ts +2 -1
  214. package/datepicker/reducer/bs-datepicker.state.d.ts +2 -1
  215. package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +1 -0
  216. package/datepicker/themes/bs/bs-datepicker-container.component.d.ts +9 -5
  217. package/datepicker/themes/bs/bs-daterangepicker-container.component.d.ts +9 -5
  218. package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +2 -0
  219. package/datepicker/utils/scss/mixins.css.map +2 -2
  220. package/datepicker/utils/scss/mixins.scss +98 -0
  221. package/datepicker/utils/scss/variables.css.map +1 -1
  222. package/datepicker/utils/scss/variables.scss +14 -0
  223. package/datepicker/yearpicker.component.d.ts +1 -1
  224. package/dropdown/bs-dropdown-container.component.d.ts +1 -1
  225. package/dropdown/bs-dropdown.directive.d.ts +12 -7
  226. package/dropdown/bs-dropdown.module.d.ts +1 -1
  227. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js +13 -8
  228. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js.map +1 -1
  229. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js +1 -1
  230. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js.map +1 -1
  231. package/dropdown/esm2015/bs-dropdown.config.js +6 -2
  232. package/dropdown/esm2015/bs-dropdown.directive.js +8 -3
  233. package/dropdown/esm2015/bs-dropdown.module.js +2 -7
  234. package/dropdown/esm5/bs-dropdown-toggle.directive.js +3 -3
  235. package/dropdown/esm5/bs-dropdown.config.js +6 -2
  236. package/dropdown/esm5/bs-dropdown.directive.js +11 -5
  237. package/dropdown/esm5/bs-dropdown.module.js +2 -7
  238. package/dropdown/fesm2015/ngx-bootstrap-dropdown.js +13 -9
  239. package/dropdown/fesm2015/ngx-bootstrap-dropdown.js.map +1 -1
  240. package/dropdown/fesm5/ngx-bootstrap-dropdown.js +14 -9
  241. package/dropdown/fesm5/ngx-bootstrap-dropdown.js.map +1 -1
  242. package/dropdown/ngx-bootstrap-dropdown.metadata.json +1 -1
  243. package/dropdown/package.json +2 -2
  244. package/locale/package.json +2 -2
  245. package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.js.map +1 -1
  246. package/mini-ngrx/bundles/ngx-bootstrap-mini-ngrx.umd.min.js.map +1 -1
  247. package/mini-ngrx/esm5/state.class.js +3 -3
  248. package/mini-ngrx/esm5/store.class.js +3 -3
  249. package/mini-ngrx/fesm5/ngx-bootstrap-mini-ngrx.js.map +1 -1
  250. package/mini-ngrx/package.json +2 -2
  251. package/modal/bs-modal-ref.service.d.ts +15 -2
  252. package/modal/bs-modal.service.d.ts +7 -4
  253. package/modal/bundles/ngx-bootstrap-modal.umd.js +154 -59
  254. package/modal/bundles/ngx-bootstrap-modal.umd.js.map +1 -1
  255. package/modal/bundles/ngx-bootstrap-modal.umd.min.js +1 -1
  256. package/modal/bundles/ngx-bootstrap-modal.umd.min.js.map +1 -1
  257. package/modal/esm2015/bs-modal-ref.service.js +20 -1
  258. package/modal/esm2015/bs-modal.service.js +102 -47
  259. package/modal/esm2015/modal-container.component.js +10 -2
  260. package/modal/esm2015/modal-options.class.js +14 -3
  261. package/modal/esm2015/modal.directive.js +10 -7
  262. package/modal/esm2015/modal.module.js +1 -1
  263. package/modal/esm2015/models/index.js +3 -1
  264. package/modal/esm2015/ngx-bootstrap-modal.js +2 -2
  265. package/modal/esm2015/public_api.js +2 -2
  266. package/modal/esm5/bs-modal-ref.service.js +19 -1
  267. package/modal/esm5/bs-modal.service.js +109 -57
  268. package/modal/esm5/modal-container.component.js +13 -2
  269. package/modal/esm5/modal-options.class.js +14 -3
  270. package/modal/esm5/modal.directive.js +9 -7
  271. package/modal/esm5/modal.module.js +1 -1
  272. package/modal/esm5/models/index.js +3 -1
  273. package/modal/esm5/ngx-bootstrap-modal.js +2 -2
  274. package/modal/esm5/public_api.js +2 -2
  275. package/modal/fesm2015/ngx-bootstrap-modal.js +148 -52
  276. package/modal/fesm2015/ngx-bootstrap-modal.js.map +1 -1
  277. package/modal/fesm5/ngx-bootstrap-modal.js +155 -61
  278. package/modal/fesm5/ngx-bootstrap-modal.js.map +1 -1
  279. package/modal/modal-backdrop.component.d.ts +4 -2
  280. package/modal/modal-container.component.d.ts +1 -0
  281. package/modal/modal-options.class.d.ts +8 -3
  282. package/modal/modal.directive.d.ts +5 -4
  283. package/modal/modal.module.d.ts +2 -2
  284. package/modal/models/index.d.ts +1 -0
  285. package/modal/ngx-bootstrap-modal.metadata.json +1 -1
  286. package/modal/package.json +2 -2
  287. package/modal/public_api.d.ts +1 -1
  288. package/package.json +2 -2
  289. package/pagination/bundles/ngx-bootstrap-pagination.umd.js +5 -2
  290. package/pagination/bundles/ngx-bootstrap-pagination.umd.js.map +1 -1
  291. package/pagination/bundles/ngx-bootstrap-pagination.umd.min.js +1 -1
  292. package/pagination/bundles/ngx-bootstrap-pagination.umd.min.js.map +1 -1
  293. package/pagination/esm2015/pagination.config.js +6 -2
  294. package/pagination/esm2015/pagination.module.js +2 -3
  295. package/pagination/esm5/pagination.config.js +6 -2
  296. package/pagination/esm5/pagination.module.js +2 -3
  297. package/pagination/fesm2015/ngx-bootstrap-pagination.js +6 -3
  298. package/pagination/fesm2015/ngx-bootstrap-pagination.js.map +1 -1
  299. package/pagination/fesm5/ngx-bootstrap-pagination.js +6 -3
  300. package/pagination/fesm5/ngx-bootstrap-pagination.js.map +1 -1
  301. package/pagination/ngx-bootstrap-pagination.metadata.json +1 -1
  302. package/pagination/package.json +2 -2
  303. package/pagination/pager.component.d.ts +8 -4
  304. package/pagination/pagination.component.d.ts +8 -4
  305. package/pagination/pagination.module.d.ts +1 -1
  306. package/popover/bundles/ngx-bootstrap-popover.umd.js +55 -3
  307. package/popover/bundles/ngx-bootstrap-popover.umd.js.map +1 -1
  308. package/popover/bundles/ngx-bootstrap-popover.umd.min.js +1 -1
  309. package/popover/bundles/ngx-bootstrap-popover.umd.min.js.map +1 -1
  310. package/popover/esm2015/popover-container.component.js +4 -1
  311. package/popover/esm2015/popover.config.js +6 -2
  312. package/popover/esm2015/popover.directive.js +39 -2
  313. package/popover/esm2015/popover.module.js +2 -3
  314. package/popover/esm5/popover-container.component.js +4 -1
  315. package/popover/esm5/popover.config.js +6 -2
  316. package/popover/esm5/popover.directive.js +48 -2
  317. package/popover/esm5/popover.module.js +2 -3
  318. package/popover/fesm2015/ngx-bootstrap-popover.js +47 -4
  319. package/popover/fesm2015/ngx-bootstrap-popover.js.map +1 -1
  320. package/popover/fesm5/ngx-bootstrap-popover.js +56 -4
  321. package/popover/fesm5/ngx-bootstrap-popover.js.map +1 -1
  322. package/popover/ngx-bootstrap-popover.metadata.json +1 -1
  323. package/popover/package.json +2 -2
  324. package/popover/popover-container.component.d.ts +2 -1
  325. package/popover/popover.directive.d.ts +10 -1
  326. package/popover/popover.module.d.ts +1 -1
  327. package/positioning/bundles/ngx-bootstrap-positioning.umd.js +7 -7
  328. package/positioning/bundles/ngx-bootstrap-positioning.umd.js.map +1 -1
  329. package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js +1 -1
  330. package/positioning/bundles/ngx-bootstrap-positioning.umd.min.js.map +1 -1
  331. package/positioning/esm2015/modifiers/flip.js +3 -3
  332. package/positioning/esm2015/modifiers/preventOverflow.js +2 -2
  333. package/positioning/esm2015/modifiers/shift.js +2 -2
  334. package/positioning/esm2015/utils/computeAutoPlacement.js +2 -2
  335. package/positioning/esm2015/utils/getClientRect.js +2 -2
  336. package/positioning/esm5/modifiers/flip.js +4 -4
  337. package/positioning/esm5/modifiers/preventOverflow.js +4 -4
  338. package/positioning/esm5/modifiers/shift.js +3 -3
  339. package/positioning/esm5/utils/computeAutoPlacement.js +3 -3
  340. package/positioning/esm5/utils/getClientRect.js +3 -3
  341. package/positioning/fesm2015/ngx-bootstrap-positioning.js +6 -6
  342. package/positioning/fesm2015/ngx-bootstrap-positioning.js.map +1 -1
  343. package/positioning/fesm5/ngx-bootstrap-positioning.js +7 -7
  344. package/positioning/fesm5/ngx-bootstrap-positioning.js.map +1 -1
  345. package/positioning/package.json +2 -2
  346. package/positioning/positioning.service.d.ts +1 -1
  347. package/progressbar/bar.component.d.ts +4 -5
  348. package/progressbar/bundles/ngx-bootstrap-progressbar.umd.js +45 -66
  349. package/progressbar/bundles/ngx-bootstrap-progressbar.umd.js.map +1 -1
  350. package/progressbar/bundles/ngx-bootstrap-progressbar.umd.min.js +1 -1
  351. package/progressbar/bundles/ngx-bootstrap-progressbar.umd.min.js.map +1 -1
  352. package/progressbar/esm2015/bar.component.js +33 -48
  353. package/progressbar/esm2015/progressbar.component.js +5 -8
  354. package/progressbar/esm2015/progressbar.config.js +6 -2
  355. package/progressbar/esm2015/progressbar.module.js +2 -3
  356. package/progressbar/esm5/bar.component.js +37 -58
  357. package/progressbar/esm5/progressbar.component.js +5 -8
  358. package/progressbar/esm5/progressbar.config.js +6 -2
  359. package/progressbar/esm5/progressbar.module.js +2 -3
  360. package/progressbar/fesm2015/ngx-bootstrap-progressbar.js +42 -57
  361. package/progressbar/fesm2015/ngx-bootstrap-progressbar.js.map +1 -1
  362. package/progressbar/fesm5/ngx-bootstrap-progressbar.js +46 -67
  363. package/progressbar/fesm5/ngx-bootstrap-progressbar.js.map +1 -1
  364. package/progressbar/ngx-bootstrap-progressbar.metadata.json +1 -1
  365. package/progressbar/package.json +2 -2
  366. package/progressbar/progressbar.component.d.ts +7 -6
  367. package/progressbar/progressbar.module.d.ts +1 -1
  368. package/rating/bundles/ngx-bootstrap-rating.umd.js +5 -2
  369. package/rating/bundles/ngx-bootstrap-rating.umd.js.map +1 -1
  370. package/rating/bundles/ngx-bootstrap-rating.umd.min.js +1 -1
  371. package/rating/bundles/ngx-bootstrap-rating.umd.min.js.map +1 -1
  372. package/rating/esm2015/rating.config.js +6 -2
  373. package/rating/esm2015/rating.module.js +2 -3
  374. package/rating/esm5/rating.config.js +6 -2
  375. package/rating/esm5/rating.module.js +2 -3
  376. package/rating/fesm2015/ngx-bootstrap-rating.js +6 -3
  377. package/rating/fesm2015/ngx-bootstrap-rating.js.map +1 -1
  378. package/rating/fesm5/ngx-bootstrap-rating.js +6 -3
  379. package/rating/fesm5/ngx-bootstrap-rating.js.map +1 -1
  380. package/rating/ngx-bootstrap-rating.metadata.json +1 -1
  381. package/rating/package.json +2 -2
  382. package/rating/rating.module.d.ts +1 -1
  383. package/schematics/ng-add/index.spec.js +30 -27
  384. package/schematics/ng-add/index.spec.js.map +1 -1
  385. package/schematics/utils/index.js +18 -5
  386. package/schematics/utils/index.js.map +1 -1
  387. package/sortable/bundles/ngx-bootstrap-sortable.umd.js.map +1 -1
  388. package/sortable/bundles/ngx-bootstrap-sortable.umd.min.js.map +1 -1
  389. package/sortable/esm2015/sortable.module.js +1 -1
  390. package/sortable/esm5/sortable.component.js +4 -4
  391. package/sortable/esm5/sortable.module.js +1 -1
  392. package/sortable/fesm2015/ngx-bootstrap-sortable.js.map +1 -1
  393. package/sortable/fesm5/ngx-bootstrap-sortable.js.map +1 -1
  394. package/sortable/package.json +2 -2
  395. package/sortable/sortable.component.d.ts +2 -1
  396. package/sortable/sortable.module.d.ts +1 -1
  397. package/tabs/bundles/ngx-bootstrap-tabs.umd.js +40 -3
  398. package/tabs/bundles/ngx-bootstrap-tabs.umd.js.map +1 -1
  399. package/tabs/bundles/ngx-bootstrap-tabs.umd.min.js +1 -1
  400. package/tabs/bundles/ngx-bootstrap-tabs.umd.min.js.map +1 -1
  401. package/tabs/esm2015/tab.directive.js +2 -2
  402. package/tabs/esm2015/tabs.module.js +2 -3
  403. package/tabs/esm2015/tabset.component.js +22 -1
  404. package/tabs/esm2015/tabset.config.js +15 -2
  405. package/tabs/esm5/tab.directive.js +2 -2
  406. package/tabs/esm5/tabs.module.js +2 -3
  407. package/tabs/esm5/tabset.component.js +26 -1
  408. package/tabs/esm5/tabset.config.js +15 -2
  409. package/tabs/fesm2015/ngx-bootstrap-tabs.js +37 -4
  410. package/tabs/fesm2015/ngx-bootstrap-tabs.js.map +1 -1
  411. package/tabs/fesm5/ngx-bootstrap-tabs.js +41 -4
  412. package/tabs/fesm5/ngx-bootstrap-tabs.js.map +1 -1
  413. package/tabs/ng-transclude.directive.d.ts +2 -2
  414. package/tabs/ngx-bootstrap-tabs.metadata.json +1 -1
  415. package/tabs/package.json +2 -2
  416. package/tabs/tab.directive.d.ts +5 -3
  417. package/tabs/tabs.module.d.ts +1 -1
  418. package/tabs/tabset.component.d.ts +9 -3
  419. package/tabs/tabset.config.d.ts +2 -0
  420. package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js +11 -6
  421. package/timepicker/bundles/ngx-bootstrap-timepicker.umd.js.map +1 -1
  422. package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js +1 -1
  423. package/timepicker/bundles/ngx-bootstrap-timepicker.umd.min.js.map +1 -1
  424. package/timepicker/esm2015/timepicker-controls.util.js +4 -2
  425. package/timepicker/esm2015/timepicker.component.js +2 -2
  426. package/timepicker/esm2015/timepicker.config.js +8 -4
  427. package/timepicker/esm2015/timepicker.module.js +2 -3
  428. package/timepicker/esm5/reducer/timepicker.store.js +3 -3
  429. package/timepicker/esm5/timepicker-controls.util.js +4 -2
  430. package/timepicker/esm5/timepicker.component.js +2 -2
  431. package/timepicker/esm5/timepicker.config.js +8 -4
  432. package/timepicker/esm5/timepicker.module.js +2 -3
  433. package/timepicker/fesm2015/ngx-bootstrap-timepicker.js +12 -7
  434. package/timepicker/fesm2015/ngx-bootstrap-timepicker.js.map +1 -1
  435. package/timepicker/fesm5/ngx-bootstrap-timepicker.js +12 -7
  436. package/timepicker/fesm5/ngx-bootstrap-timepicker.js.map +1 -1
  437. package/timepicker/ngx-bootstrap-timepicker.metadata.json +1 -1
  438. package/timepicker/package.json +2 -2
  439. package/timepicker/timepicker.component.d.ts +3 -3
  440. package/timepicker/timepicker.config.d.ts +1 -1
  441. package/timepicker/timepicker.module.d.ts +1 -1
  442. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js +5 -2
  443. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js.map +1 -1
  444. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js +1 -1
  445. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js.map +1 -1
  446. package/tooltip/esm2015/tooltip.config.js +6 -2
  447. package/tooltip/esm2015/tooltip.directive.js +3 -3
  448. package/tooltip/esm2015/tooltip.module.js +2 -3
  449. package/tooltip/esm5/tooltip.config.js +6 -2
  450. package/tooltip/esm5/tooltip.directive.js +3 -3
  451. package/tooltip/esm5/tooltip.module.js +2 -3
  452. package/tooltip/fesm2015/ngx-bootstrap-tooltip.js +6 -3
  453. package/tooltip/fesm2015/ngx-bootstrap-tooltip.js.map +1 -1
  454. package/tooltip/fesm5/ngx-bootstrap-tooltip.js +6 -3
  455. package/tooltip/fesm5/ngx-bootstrap-tooltip.js.map +1 -1
  456. package/tooltip/ngx-bootstrap-tooltip.metadata.json +1 -1
  457. package/tooltip/package.json +2 -2
  458. package/tooltip/tooltip-container.component.d.ts +1 -1
  459. package/tooltip/tooltip.directive.d.ts +15 -10
  460. package/tooltip/tooltip.module.d.ts +1 -1
  461. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js +170 -19
  462. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js.map +1 -1
  463. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js +1 -1
  464. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js.map +1 -1
  465. package/typeahead/esm2015/typeahead-utils.js +35 -4
  466. package/typeahead/esm2015/typeahead.config.js +6 -2
  467. package/typeahead/esm2015/typeahead.directive.js +121 -16
  468. package/typeahead/esm2015/typeahead.module.js +2 -3
  469. package/typeahead/esm5/typeahead-utils.js +37 -6
  470. package/typeahead/esm5/typeahead.config.js +6 -2
  471. package/typeahead/esm5/typeahead.directive.js +135 -18
  472. package/typeahead/esm5/typeahead.module.js +2 -3
  473. package/typeahead/fesm2015/ngx-bootstrap-typeahead.js +160 -21
  474. package/typeahead/fesm2015/ngx-bootstrap-typeahead.js.map +1 -1
  475. package/typeahead/fesm5/ngx-bootstrap-typeahead.js +172 -21
  476. package/typeahead/fesm5/ngx-bootstrap-typeahead.js.map +1 -1
  477. package/typeahead/ngx-bootstrap-typeahead.metadata.json +1 -1
  478. package/typeahead/package.json +2 -2
  479. package/typeahead/typeahead-container.component.d.ts +14 -12
  480. package/typeahead/typeahead-utils.d.ts +1 -1
  481. package/typeahead/typeahead.directive.d.ts +20 -1
  482. package/typeahead/typeahead.module.d.ts +1 -1
  483. package/utils/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\nimport { AlertConfig } from './alert.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: AlertModule, providers: [AlertConfig] };\n }\n}\n"],"names":["tslib_1.__decorate"],"mappings":";;;;;;;;;MAGa,WAAW;IADxB;;;;QAGE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;;YAVA,UAAU;;;;;;;IAGT,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;MCM3B,cAAc;;;;;IAyBzB,YAAY,OAAoB,EAAU,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YAAY,EAAW,CAAC;QAG9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,CAAC,SAAS;;;;QAAC,CAAC,WAAoB;YACpD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SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,cAAc,CAAC;gBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;aAClC;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders<AlertModule> {\n return { ngModule: AlertModule, providers: [] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;MAKa,WAAW;IAHxB;;;;QAKE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;;YAZA,UAAU,SAAC;gBACV,UAAU,EAAE,MAAM;aACnB;;;;;;;;IAGC,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;MCI3B,cAAc;;;;;IAyBzB,YAAY,OAAoB,EAAU,eAAkC;QAAlC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YA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E,MAUa,WAAW;;;;IACtB,OAAO,OAAO;QACZ,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACjD;;;YATF,QAAQ,SAAC;gBACR,OAAO,EAAE,CAAC,YAAY,CAAC;gBACvB,YAAY,EAAE,CAAC,cAAc,CAAC;gBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;gBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;aAClC;;;;;;;;;;;;;;;"}
@@ -1,5 +1,5 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
- import { Injectable, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
2
+ import { Injectable, ɵɵdefineInjectable, EventEmitter, Component, ChangeDetectionStrategy, ChangeDetectorRef, Input, Output, NgModule } from '@angular/core';
3
3
  import { OnChange } from 'ngx-bootstrap/utils';
4
4
  import { CommonModule } from '@angular/common';
5
5
 
@@ -23,8 +23,11 @@ var AlertConfig = /** @class */ (function () {
23
23
  this.dismissOnTimeout = undefined;
24
24
  }
25
25
  AlertConfig.decorators = [
26
- { type: Injectable }
26
+ { type: Injectable, args: [{
27
+ providedIn: 'root'
28
+ },] }
27
29
  ];
30
+ /** @nocollapse */ AlertConfig.ɵprov = ɵɵdefineInjectable({ factory: function AlertConfig_Factory() { return new AlertConfig(); }, token: AlertConfig, providedIn: "root" });
28
31
  return AlertConfig;
29
32
  }());
30
33
  if (false) {
@@ -216,7 +219,7 @@ var AlertModule = /** @class */ (function () {
216
219
  * @return {?}
217
220
  */
218
221
  function () {
219
- return { ngModule: AlertModule, providers: [AlertConfig] };
222
+ return { ngModule: AlertModule, providers: [] };
220
223
  };
221
224
  AlertModule.decorators = [
222
225
  { type: NgModule, args: [{
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable()\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\nimport { AlertConfig } from './alert.config';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders {\n return { ngModule: AlertModule, providers: [AlertConfig] };\n }\n}\n"],"names":["tslib_1.__decorate"],"mappings":";;;;;;;;;;IAEA;;;;QAGE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;gBAVA,UAAU;;IAUX,kBAAC;CAVD,IAUC;;;;;;IAPC,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;;IC+BtC,wBAAY,OAAoB,EAAU,eAAkC;QAA5E,iBAMC;QANyC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YAAY,EAAW,CAAC;QAG9C,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;QAC7B,IAAI,CAAC,iBAAiB,CAAC,SAAS;;;;QAAC,UAAC,WAAoB;YACpD,KAAI,CAAC,OAAO,GAAG,KAAI,CAAC,WAAW,GAAG,mBAAmB,GAAG,EAAE,CAAC;YAC3D,KAAI,CAAC,eAAe,CAAC,YAAY,EAAE,CAAC;SACrC,EAAC,CAAC;KACJ;;;;IAED,iC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cAAc,CAAC;oBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;iBAClC;;IAKD,kBAAC;CAVD;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"ngx-bootstrap-alert.js","sources":["ng://ngx-bootstrap/alert/alert.config.ts","ng://ngx-bootstrap/alert/alert.component.ts","ng://ngx-bootstrap/alert/alert.module.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\n\n@Injectable({\n providedIn: 'root'\n})\nexport class AlertConfig {\n /** default alert type */\n type = 'warning';\n\n /** is alerts are dismissible by default */\n dismissible = false;\n\n /** default time before alert will dismiss */\n dismissOnTimeout?: number = undefined;\n}\n","import {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n EventEmitter,\n Input,\n OnInit,\n Output\n} from '@angular/core';\nimport { AlertConfig } from './alert.config';\nimport { OnChange } from 'ngx-bootstrap/utils';\n\n@Component({\n selector: 'alert,bs-alert',\n templateUrl: './alert.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class AlertComponent implements OnInit {\n /** Alert type.\n * Provides one of four bootstrap supported contextual classes:\n * `success`, `info`, `warning` and `danger`\n */\n @Input() type = 'warning';\n /** If set, displays an inline \"Close\" button */\n @OnChange() @Input() dismissible = false;\n /** Number in milliseconds, after which alert will be closed */\n @Input() dismissOnTimeout: number | string;\n\n /** Is alert visible */\n @Input() isOpen = true;\n\n /** This event fires immediately after close instance method is called,\n * $event is an instance of Alert component.\n */\n @Output() onClose = new EventEmitter<AlertComponent>();\n /** This event fires when alert closed, $event is an instance of Alert component */\n @Output() onClosed = new EventEmitter<AlertComponent>();\n\n\n classes = '';\n dismissibleChange = new EventEmitter<boolean>();\n\n constructor(_config: AlertConfig, private changeDetection: ChangeDetectorRef) {\n Object.assign(this, _config);\n this.dismissibleChange.subscribe((dismissible: boolean) => {\n this.classes = this.dismissible ? 'alert-dismissible' : '';\n this.changeDetection.markForCheck();\n });\n }\n\n ngOnInit(): void {\n if (this.dismissOnTimeout) {\n // if dismissOnTimeout used as attr without binding, it will be a string\n setTimeout(\n () => this.close(),\n parseInt(this.dismissOnTimeout as string, 10)\n );\n }\n }\n\n // todo: animation ` If the .fade and .in classes are present on the element,\n // the alert will fade out before it is removed`\n /**\n * Closes an alert by removing it from the DOM.\n */\n close(): void {\n if (!this.isOpen) {\n return;\n }\n\n this.onClose.emit(this);\n this.isOpen = false;\n this.changeDetection.markForCheck();\n this.onClosed.emit(this);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule, ModuleWithProviders } from '@angular/core';\nimport { AlertComponent } from './alert.component';\n\n@NgModule({\n imports: [CommonModule],\n declarations: [AlertComponent],\n exports: [AlertComponent],\n entryComponents: [AlertComponent]\n})\nexport class AlertModule {\n static forRoot(): ModuleWithProviders<AlertModule> {\n return { ngModule: AlertModule, providers: [] };\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;IAEA;;;;QAKE,SAAI,GAAG,SAAS,CAAC;;;;QAGjB,gBAAW,GAAG,KAAK,CAAC;;;;QAGpB,qBAAgB,GAAY,SAAS,CAAC;KACvC;;gBAZA,UAAU,SAAC;oBACV,UAAU,EAAE,MAAM;iBACnB;;;sBAJD;CAEA,IAYC;;;;;;IAPC,2BAAiB;;;;;IAGjB,kCAAoB;;;;;IAGpB,uCAAsC;;;;;;;;IC6BtC,wBAAY,OAAoB,EAAU,eAAkC;QAA5E,iBAMC;QANyC,oBAAe,GAAf,eAAe,CAAmB;;;;;;QApBnE,SAAI,GAAG,SAAS,CAAC;;;;QAED,gBAAW,GAAG,KAAK,CAAC;;;;QAKpC,WAAM,GAAG,IAAI,CAAC;;;;;QAKb,YAAO,GAAG,IAAI,YAAY,EAAkB,CAAC;;;;QAE7C,aAAQ,GAAG,IAAI,YAAY,EAAkB,CAAC;QAGxD,YAAO,GAAG,EAAE,CAAC;QACb,sBAAiB,GAAG,IAAI,YAAY,EAAW,CAAC;QAG9C,MAAM,CAAC,MAAM,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;;IACb,2CAAgD;;;;;IAEd,yCAA0C;;;;;;;AC1C9E;IAIA;KAUC;;;;IAHQ,mBAAO;;;IAAd;QACE,OAAO,EAAE,QAAQ,EAAE,WAAW,EAAE,SAAS,EAAE,EAAE,EAAE,CAAC;KACjD;;gBATF,QAAQ,SAAC;oBACR,OAAO,EAAE,CAAC,YAAY,CAAC;oBACvB,YAAY,EAAE,CAAC,cAAc,CAAC;oBAC9B,OAAO,EAAE,CAAC,cAAc,CAAC;oBACzB,eAAe,EAAE,CAAC,cAAc,CAAC;iBAClC;;IAKD,kBAAC;CAVD;;;;;;;;;;;;;;"}
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"AlertComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"alert,bs-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"template":"<ng-template [ngIf]=\"isOpen\">\n <div [class]=\"'alert alert-' + type\" role=\"alert\" [ngClass]=\"classes\">\n <ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"close()\">\n <span aria-hidden=\"true\">&times;</span>\n <span class=\"sr-only\">Close</span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n </div>\n</ng-template>\n"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"ngx-bootstrap/utils","name":"OnChange","line":24,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":17}}]}],"dismissOnTimeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"onClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":3}}]}],"onClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AlertConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":42,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"AlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":5,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":6,"character":12}],"declarations":[{"__symbolic":"reference","name":"AlertComponent"}],"exports":[{"__symbolic":"reference","name":"AlertComponent"}],"entryComponents":[{"__symbolic":"reference","name":"AlertComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AlertModule"},"providers":[{"__symbolic":"reference","name":"AlertConfig"}]}}}},"AlertConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1}}],"members":{}}},"origins":{"AlertComponent":"./alert.component","AlertModule":"./alert.module","AlertConfig":"./alert.config"},"importAs":"ngx-bootstrap/alert"}
1
+ {"__symbolic":"module","version":4,"metadata":{"AlertComponent":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":12,"character":1},"arguments":[{"selector":"alert,bs-alert","changeDetection":{"__symbolic":"select","expression":{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectionStrategy","line":15,"character":19},"member":"OnPush"},"template":"<ng-template [ngIf]=\"isOpen\">\n <div [class]=\"'alert alert-' + type\" role=\"alert\" [ngClass]=\"classes\">\n <ng-template [ngIf]=\"dismissible\">\n <button type=\"button\" class=\"close\" aria-label=\"Close\" (click)=\"close()\">\n <span aria-hidden=\"true\">&times;</span>\n <span class=\"sr-only\">Close</span>\n </button>\n </ng-template>\n <ng-content></ng-content>\n </div>\n</ng-template>\n"}]}],"members":{"type":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":22,"character":3}}]}],"dismissible":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"ngx-bootstrap/utils","name":"OnChange","line":24,"character":3}},{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":24,"character":17}}]}],"dismissOnTimeout":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":26,"character":3}}]}],"isOpen":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Input","line":29,"character":3}}]}],"onClose":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":34,"character":3}}]}],"onClosed":[{"__symbolic":"property","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Output","line":36,"character":3}}]}],"__ctor__":[{"__symbolic":"constructor","parameters":[{"__symbolic":"reference","name":"AlertConfig"},{"__symbolic":"reference","module":"@angular/core","name":"ChangeDetectorRef","line":42,"character":61}]}],"ngOnInit":[{"__symbolic":"method"}],"close":[{"__symbolic":"method"}]}},"AlertModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"imports":[{"__symbolic":"reference","module":"@angular/common","name":"CommonModule","line":5,"character":12}],"declarations":[{"__symbolic":"reference","name":"AlertComponent"}],"exports":[{"__symbolic":"reference","name":"AlertComponent"}],"entryComponents":[{"__symbolic":"reference","name":"AlertComponent"}]}]}],"members":{},"statics":{"forRoot":{"__symbolic":"function","parameters":[],"value":{"ngModule":{"__symbolic":"reference","name":"AlertModule"},"providers":[]}}}},"AlertConfig":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":2,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{},"statics":{"ɵprov":{}}}},"origins":{"AlertComponent":"./alert.component","AlertModule":"./alert.module","AlertConfig":"./alert.config"},"importAs":"ngx-bootstrap/alert"}
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/alert",
3
- "version": "5.6.1",
3
+ "version": "6.2.0",
4
4
  "description": "Native Angular Bootstrap Components",
5
5
  "private": true,
6
6
  "main": "bundles/ngx-bootstrap-alert.umd.js",
@@ -14,6 +14,6 @@
14
14
  "metadata": "ngx-bootstrap-alert.metadata.json",
15
15
  "sideEffects": false,
16
16
  "peerDependencies": {
17
- "tslib": "^1.9.0"
17
+ "tslib": "^1.10.0"
18
18
  }
19
19
  }
@@ -220,13 +220,15 @@
220
220
  * A value of a selected button is bound to a variable specified via ngModel.
221
221
  */
222
222
  var ButtonRadioDirective = /** @class */ (function () {
223
- function ButtonRadioDirective(el, cdr, group, renderer) {
223
+ function ButtonRadioDirective(el, cdr, renderer, group) {
224
224
  this.el = el;
225
225
  this.cdr = cdr;
226
- this.group = group;
227
226
  this.renderer = renderer;
227
+ this.group = group;
228
228
  this.onChange = Function.prototype;
229
229
  this.onTouched = Function.prototype;
230
+ this.role = 'radio';
231
+ this._hasFocus = false;
230
232
  }
231
233
  Object.defineProperty(ButtonRadioDirective.prototype, "value", {
232
234
  /** Current value of radio component or group */
@@ -265,12 +267,33 @@
265
267
  * @return {?}
266
268
  */
267
269
  function (disabled) {
268
- this._disabled = disabled;
269
270
  this.setDisabledState(disabled);
270
271
  },
271
272
  enumerable: true,
272
273
  configurable: true
273
274
  });
275
+ Object.defineProperty(ButtonRadioDirective.prototype, "controlOrGroupDisabled", {
276
+ get: /**
277
+ * @return {?}
278
+ */
279
+ function () {
280
+ return this.disabled || (this.group && this.group.disabled) ? true : undefined;
281
+ },
282
+ enumerable: true,
283
+ configurable: true
284
+ });
285
+ Object.defineProperty(ButtonRadioDirective.prototype, "hasDisabledClass", {
286
+ get: /**
287
+ * @return {?}
288
+ */
289
+ function () {
290
+ // Although the radio is disabled the active radio should still stand out.
291
+ // The disabled class will prevent this so don't add it on the active radio
292
+ return this.controlOrGroupDisabled && !this.isActive;
293
+ },
294
+ enumerable: true,
295
+ configurable: true
296
+ });
274
297
  Object.defineProperty(ButtonRadioDirective.prototype, "isActive", {
275
298
  get: /**
276
299
  * @return {?}
@@ -281,27 +304,77 @@
281
304
  enumerable: true,
282
305
  configurable: true
283
306
  });
307
+ Object.defineProperty(ButtonRadioDirective.prototype, "tabindex", {
308
+ get: /**
309
+ * @return {?}
310
+ */
311
+ function () {
312
+ if (this.controlOrGroupDisabled) {
313
+ // Disabled radio buttons should not receive focus
314
+ return undefined;
315
+ }
316
+ else if (this.isActive || this.group == null) {
317
+ return 0;
318
+ }
319
+ else {
320
+ return -1;
321
+ }
322
+ },
323
+ enumerable: true,
324
+ configurable: true
325
+ });
326
+ Object.defineProperty(ButtonRadioDirective.prototype, "hasFocus", {
327
+ get: /**
328
+ * @return {?}
329
+ */
330
+ function () {
331
+ return this._hasFocus;
332
+ },
333
+ enumerable: true,
334
+ configurable: true
335
+ });
284
336
  /**
285
337
  * @return {?}
286
338
  */
287
- ButtonRadioDirective.prototype.onClick = /**
339
+ ButtonRadioDirective.prototype.toggleIfAllowed = /**
288
340
  * @return {?}
289
341
  */
290
342
  function () {
291
- if (this.el.nativeElement.attributes.disabled || !this.uncheckable && this.btnRadio === this.value) {
343
+ if (!this.canToggle()) {
292
344
  return;
293
345
  }
294
346
  this.value = this.uncheckable && this.btnRadio === this.value ? undefined : this.btnRadio;
295
347
  this._onChange(this.value);
296
348
  };
297
349
  /**
350
+ * @param {?} event
298
351
  * @return {?}
299
352
  */
300
- ButtonRadioDirective.prototype.ngOnInit = /**
353
+ ButtonRadioDirective.prototype.onSpacePressed = /**
354
+ * @param {?} event
355
+ * @return {?}
356
+ */
357
+ function (event) {
358
+ this.toggleIfAllowed();
359
+ event.preventDefault();
360
+ };
361
+ /**
362
+ * @return {?}
363
+ */
364
+ ButtonRadioDirective.prototype.focus = /**
301
365
  * @return {?}
302
366
  */
303
367
  function () {
304
- this.uncheckable = typeof this.uncheckable !== 'undefined';
368
+ this.el.nativeElement.focus();
369
+ };
370
+ /**
371
+ * @return {?}
372
+ */
373
+ ButtonRadioDirective.prototype.onFocus = /**
374
+ * @return {?}
375
+ */
376
+ function () {
377
+ this._hasFocus = true;
305
378
  };
306
379
  /**
307
380
  * @return {?}
@@ -310,8 +383,27 @@
310
383
  * @return {?}
311
384
  */
312
385
  function () {
386
+ this._hasFocus = false;
313
387
  this.onTouched();
314
388
  };
389
+ /**
390
+ * @return {?}
391
+ */
392
+ ButtonRadioDirective.prototype.canToggle = /**
393
+ * @return {?}
394
+ */
395
+ function () {
396
+ return !this.controlOrGroupDisabled && (this.uncheckable || this.btnRadio !== this.value);
397
+ };
398
+ /**
399
+ * @return {?}
400
+ */
401
+ ButtonRadioDirective.prototype.ngOnInit = /**
402
+ * @return {?}
403
+ */
404
+ function () {
405
+ this.uncheckable = typeof this.uncheckable !== 'undefined';
406
+ };
315
407
  /**
316
408
  * @param {?} value
317
409
  * @return {?}
@@ -322,8 +414,7 @@
322
414
  */
323
415
  function (value) {
324
416
  if (this.group) {
325
- this.group.onTouched();
326
- this.group.onChange(value);
417
+ this.group.value = value;
327
418
  return;
328
419
  }
329
420
  this.onTouched();
@@ -379,6 +470,7 @@
379
470
  * @return {?}
380
471
  */
381
472
  function (disabled) {
473
+ this._disabled = disabled;
382
474
  if (disabled) {
383
475
  this.renderer.setAttribute(this.el.nativeElement, 'disabled', 'disabled');
384
476
  return;
@@ -395,16 +487,26 @@
395
487
  ButtonRadioDirective.ctorParameters = function () { return [
396
488
  { type: core.ElementRef },
397
489
  { type: core.ChangeDetectorRef },
398
- { type: ButtonRadioGroupDirective, decorators: [{ type: core.Optional }] },
399
- { type: core.Renderer2 }
490
+ { type: core.Renderer2 },
491
+ { type: ButtonRadioGroupDirective, decorators: [{ type: core.Optional }, { type: core.Inject, args: [core.forwardRef((/**
492
+ * @return {?}
493
+ */
494
+ function () { return ButtonRadioGroupDirective; })),] }] }
400
495
  ]; };
401
496
  ButtonRadioDirective.propDecorators = {
402
497
  btnRadio: [{ type: core.Input }],
403
498
  uncheckable: [{ type: core.Input }],
404
499
  value: [{ type: core.Input }],
405
500
  disabled: [{ type: core.Input }],
406
- isActive: [{ type: core.HostBinding, args: ['class.active',] }, { type: core.HostBinding, args: ['attr.aria-pressed',] }],
407
- onClick: [{ type: core.HostListener, args: ['click',] }]
501
+ controlOrGroupDisabled: [{ type: core.HostBinding, args: ['attr.aria-disabled',] }],
502
+ hasDisabledClass: [{ type: core.HostBinding, args: ['class.disabled',] }],
503
+ isActive: [{ type: core.HostBinding, args: ['class.active',] }, { type: core.HostBinding, args: ['attr.aria-checked',] }],
504
+ role: [{ type: core.HostBinding, args: ['attr.role',] }],
505
+ tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
506
+ toggleIfAllowed: [{ type: core.HostListener, args: ['click',] }],
507
+ onSpacePressed: [{ type: core.HostListener, args: ['keydown.space', ['$event'],] }],
508
+ onFocus: [{ type: core.HostListener, args: ['focus',] }],
509
+ onBlur: [{ type: core.HostListener, args: ['blur',] }]
408
510
  };
409
511
  return ButtonRadioDirective;
410
512
  }());
@@ -423,6 +525,8 @@
423
525
  * @type {?}
424
526
  */
425
527
  ButtonRadioDirective.prototype.uncheckable;
528
+ /** @type {?} */
529
+ ButtonRadioDirective.prototype.role;
426
530
  /**
427
531
  * @type {?}
428
532
  * @private
@@ -433,6 +537,11 @@
433
537
  * @private
434
538
  */
435
539
  ButtonRadioDirective.prototype._disabled;
540
+ /**
541
+ * @type {?}
542
+ * @private
543
+ */
544
+ ButtonRadioDirective.prototype._hasFocus;
436
545
  /**
437
546
  * @type {?}
438
547
  * @private
@@ -447,12 +556,12 @@
447
556
  * @type {?}
448
557
  * @private
449
558
  */
450
- ButtonRadioDirective.prototype.group;
559
+ ButtonRadioDirective.prototype.renderer;
451
560
  /**
452
561
  * @type {?}
453
562
  * @private
454
563
  */
455
- ButtonRadioDirective.prototype.renderer;
564
+ ButtonRadioDirective.prototype.group;
456
565
  }
457
566
 
458
567
  /**
@@ -478,6 +587,7 @@
478
587
  this.cdr = cdr;
479
588
  this.onChange = Function.prototype;
480
589
  this.onTouched = Function.prototype;
590
+ this.role = 'radiogroup';
481
591
  }
482
592
  Object.defineProperty(ButtonRadioGroupDirective.prototype, "value", {
483
593
  get: /**
@@ -492,6 +602,22 @@
492
602
  */
493
603
  function (value) {
494
604
  this._value = value;
605
+ this.onChange(value);
606
+ },
607
+ enumerable: true,
608
+ configurable: true
609
+ });
610
+ Object.defineProperty(ButtonRadioGroupDirective.prototype, "tabindex", {
611
+ get: /**
612
+ * @return {?}
613
+ */
614
+ function () {
615
+ if (this._disabled) {
616
+ return null;
617
+ }
618
+ else {
619
+ return 0;
620
+ }
495
621
  },
496
622
  enumerable: true,
497
623
  configurable: true
@@ -540,6 +666,7 @@
540
666
  */
541
667
  function (disabled) {
542
668
  if (this.radioButtons) {
669
+ this._disabled = disabled;
543
670
  this.radioButtons.forEach((/**
544
671
  * @param {?} buttons
545
672
  * @return {?}
@@ -547,8 +674,145 @@
547
674
  function (buttons) {
548
675
  buttons.setDisabledState(disabled);
549
676
  }));
677
+ this.cdr.markForCheck();
678
+ }
679
+ };
680
+ /**
681
+ * @return {?}
682
+ */
683
+ ButtonRadioGroupDirective.prototype.onFocus = /**
684
+ * @return {?}
685
+ */
686
+ function () {
687
+ if (this._disabled) {
688
+ return;
689
+ }
690
+ /** @type {?} */
691
+ var activeRadio = this.getActiveOrFocusedRadio();
692
+ if (activeRadio) {
693
+ activeRadio.focus();
694
+ }
695
+ else {
696
+ /** @type {?} */
697
+ var firstEnabled = this.radioButtons.find((/**
698
+ * @param {?} r
699
+ * @return {?}
700
+ */
701
+ function (r) { return !r.disabled; }));
702
+ if (firstEnabled) {
703
+ firstEnabled.focus();
704
+ }
705
+ }
706
+ };
707
+ /**
708
+ * @return {?}
709
+ */
710
+ ButtonRadioGroupDirective.prototype.onBlur = /**
711
+ * @return {?}
712
+ */
713
+ function () {
714
+ if (this.onTouched) {
715
+ this.onTouched();
716
+ }
717
+ };
718
+ /**
719
+ * @param {?} event
720
+ * @return {?}
721
+ */
722
+ ButtonRadioGroupDirective.prototype.selectNext = /**
723
+ * @param {?} event
724
+ * @return {?}
725
+ */
726
+ function (event) {
727
+ this.selectInDirection('next');
728
+ event.preventDefault();
729
+ };
730
+ /**
731
+ * @param {?} event
732
+ * @return {?}
733
+ */
734
+ ButtonRadioGroupDirective.prototype.selectPrevious = /**
735
+ * @param {?} event
736
+ * @return {?}
737
+ */
738
+ function (event) {
739
+ this.selectInDirection('previous');
740
+ event.preventDefault();
741
+ };
742
+ Object.defineProperty(ButtonRadioGroupDirective.prototype, "disabled", {
743
+ get: /**
744
+ * @return {?}
745
+ */
746
+ function () {
747
+ return this._disabled;
748
+ },
749
+ enumerable: true,
750
+ configurable: true
751
+ });
752
+ /**
753
+ * @private
754
+ * @param {?} direction
755
+ * @return {?}
756
+ */
757
+ ButtonRadioGroupDirective.prototype.selectInDirection = /**
758
+ * @private
759
+ * @param {?} direction
760
+ * @return {?}
761
+ */
762
+ function (direction) {
763
+ if (this._disabled) {
764
+ return;
765
+ }
766
+ /**
767
+ * @param {?} currentIndex
768
+ * @param {?} buttonRadioDirectives
769
+ * @return {?}
770
+ */
771
+ function nextIndex(currentIndex, buttonRadioDirectives) {
772
+ /** @type {?} */
773
+ var step = direction === 'next' ? 1 : -1;
774
+ /** @type {?} */
775
+ var calcIndex = (currentIndex + step) % buttonRadioDirectives.length;
776
+ if (calcIndex < 0) {
777
+ calcIndex = buttonRadioDirectives.length - 1;
778
+ }
779
+ return calcIndex;
780
+ }
781
+ /** @type {?} */
782
+ var activeRadio = this.getActiveOrFocusedRadio();
783
+ if (activeRadio) {
784
+ /** @type {?} */
785
+ var buttonRadioDirectives = this.radioButtons.toArray();
786
+ /** @type {?} */
787
+ var currentActiveIndex = buttonRadioDirectives.indexOf(activeRadio);
788
+ for (var i = nextIndex(currentActiveIndex, buttonRadioDirectives); i !== currentActiveIndex; i = nextIndex(i, buttonRadioDirectives)) {
789
+ if (buttonRadioDirectives[i].canToggle()) {
790
+ buttonRadioDirectives[i].toggleIfAllowed();
791
+ buttonRadioDirectives[i].focus();
792
+ break;
793
+ }
794
+ }
550
795
  }
551
796
  };
797
+ /**
798
+ * @private
799
+ * @return {?}
800
+ */
801
+ ButtonRadioGroupDirective.prototype.getActiveOrFocusedRadio = /**
802
+ * @private
803
+ * @return {?}
804
+ */
805
+ function () {
806
+ return this.radioButtons.find((/**
807
+ * @param {?} button
808
+ * @return {?}
809
+ */
810
+ function (button) { return button.isActive; })) || this.radioButtons.find((/**
811
+ * @param {?} button
812
+ * @return {?}
813
+ */
814
+ function (button) { return button.hasFocus; }));
815
+ };
552
816
  ButtonRadioGroupDirective.decorators = [
553
817
  { type: core.Directive, args: [{
554
818
  selector: '[btnRadioGroup]',
@@ -560,10 +824,16 @@
560
824
  { type: core.ChangeDetectorRef }
561
825
  ]; };
562
826
  ButtonRadioGroupDirective.propDecorators = {
827
+ role: [{ type: core.HostBinding, args: ['attr.role',] }],
563
828
  radioButtons: [{ type: core.ContentChildren, args: [core.forwardRef((/**
564
829
  * @return {?}
565
830
  */
566
- function () { return ButtonRadioDirective; })),] }]
831
+ function () { return ButtonRadioDirective; })),] }],
832
+ tabindex: [{ type: core.HostBinding, args: ['attr.tabindex',] }],
833
+ onFocus: [{ type: core.HostListener, args: ['focus',] }],
834
+ onBlur: [{ type: core.HostListener, args: ['blur',] }],
835
+ selectNext: [{ type: core.HostListener, args: ['keydown.ArrowRight', ['$event'],] }, { type: core.HostListener, args: ['keydown.ArrowDown', ['$event'],] }],
836
+ selectPrevious: [{ type: core.HostListener, args: ['keydown.ArrowLeft', ['$event'],] }, { type: core.HostListener, args: ['keydown.ArrowUp', ['$event'],] }]
567
837
  };
568
838
  return ButtonRadioGroupDirective;
569
839
  }());
@@ -573,12 +843,19 @@
573
843
  /** @type {?} */
574
844
  ButtonRadioGroupDirective.prototype.onTouched;
575
845
  /** @type {?} */
846
+ ButtonRadioGroupDirective.prototype.role;
847
+ /** @type {?} */
576
848
  ButtonRadioGroupDirective.prototype.radioButtons;
577
849
  /**
578
850
  * @type {?}
579
851
  * @private
580
852
  */
581
853
  ButtonRadioGroupDirective.prototype._value;
854
+ /**
855
+ * @type {?}
856
+ * @private
857
+ */
858
+ ButtonRadioGroupDirective.prototype._disabled;
582
859
  /**
583
860
  * @type {?}
584
861
  * @private