ngx-bootstrap 10.3.0 → 11.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (616) hide show
  1. package/README.md +3 -5
  2. package/accordion/accordion-group.component.d.ts +1 -1
  3. package/accordion/accordion.component.d.ts +1 -1
  4. package/accordion/esm2022/accordion-group.component.mjs +84 -0
  5. package/accordion/{esm2020 → esm2022}/accordion.component.mjs +4 -4
  6. package/accordion/{esm2020 → esm2022}/accordion.config.mjs +4 -4
  7. package/accordion/{esm2020 → esm2022}/accordion.module.mjs +5 -5
  8. package/accordion/{fesm2020 → fesm2022}/ngx-bootstrap-accordion.mjs +29 -29
  9. package/accordion/fesm2022/ngx-bootstrap-accordion.mjs.map +1 -0
  10. package/accordion/package.json +8 -14
  11. package/alert/alert.component.d.ts +1 -1
  12. package/alert/esm2022/alert.component.mjs +77 -0
  13. package/alert/{esm2020 → esm2022}/alert.config.mjs +4 -4
  14. package/alert/{esm2020 → esm2022}/alert.module.mjs +5 -5
  15. package/alert/{fesm2015 → fesm2022}/ngx-bootstrap-alert.mjs +10 -10
  16. package/alert/fesm2022/ngx-bootstrap-alert.mjs.map +1 -0
  17. package/alert/package.json +8 -14
  18. package/buttons/button-checkbox.directive.d.ts +2 -2
  19. package/buttons/button-radio.directive.d.ts +1 -1
  20. package/buttons/{esm2020 → esm2022}/button-checkbox.directive.mjs +4 -4
  21. package/buttons/{esm2020 → esm2022}/button-radio-group.directive.mjs +4 -4
  22. package/buttons/esm2022/button-radio.directive.mjs +188 -0
  23. package/buttons/{esm2020 → esm2022}/buttons.module.mjs +5 -5
  24. package/buttons/{fesm2020 → fesm2022}/ngx-bootstrap-buttons.mjs +26 -26
  25. package/buttons/fesm2022/ngx-bootstrap-buttons.mjs.map +1 -0
  26. package/buttons/package.json +7 -13
  27. package/carousel/carousel.component.d.ts +1 -1
  28. package/carousel/esm2022/carousel.component.mjs +713 -0
  29. package/carousel/{esm2020 → esm2022}/carousel.config.mjs +4 -4
  30. package/carousel/{esm2020 → esm2022}/carousel.module.mjs +5 -5
  31. package/carousel/{esm2020 → esm2022}/slide.component.mjs +6 -6
  32. package/carousel/{fesm2020 → fesm2022}/ngx-bootstrap-carousel.mjs +65 -56
  33. package/carousel/fesm2022/ngx-bootstrap-carousel.mjs.map +1 -0
  34. package/carousel/package.json +8 -14
  35. package/carousel/slide.component.d.ts +1 -1
  36. package/chronos/duration/create.d.ts +1 -1
  37. package/chronos/{fesm2020 → fesm2022}/ngx-bootstrap-chronos.mjs +4 -0
  38. package/chronos/fesm2022/ngx-bootstrap-chronos.mjs.map +1 -0
  39. package/chronos/locale/locale.class.d.ts +3 -3
  40. package/chronos/moment/calendar.d.ts +1 -1
  41. package/chronos/package.json +5 -11
  42. package/chronos/parse/regex.d.ts +1 -1
  43. package/chronos/testing/chain.d.ts +3 -3
  44. package/chronos/types.d.ts +4 -4
  45. package/chronos/units/aliases.d.ts +1 -1
  46. package/collapse/collapse.directive.d.ts +1 -1
  47. package/collapse/esm2022/collapse.directive.mjs +168 -0
  48. package/collapse/{esm2020 → esm2022}/collapse.module.mjs +5 -5
  49. package/collapse/{fesm2020 → fesm2022}/ngx-bootstrap-collapse.mjs +26 -26
  50. package/collapse/fesm2022/ngx-bootstrap-collapse.mjs.map +1 -0
  51. package/collapse/package.json +8 -14
  52. package/component-loader/{esm2020 → esm2022}/component-loader.factory.mjs +4 -4
  53. package/component-loader/{fesm2020 → fesm2022}/ngx-bootstrap-component-loader.mjs +5 -3
  54. package/component-loader/fesm2022/ngx-bootstrap-component-loader.mjs.map +1 -0
  55. package/component-loader/listen-options.model.d.ts +1 -1
  56. package/component-loader/package.json +7 -13
  57. package/datepicker/bs-datepicker-inline.component.d.ts +1 -1
  58. package/datepicker/bs-datepicker.component.d.ts +1 -1
  59. package/datepicker/bs-daterangepicker-inline.component.d.ts +1 -1
  60. package/datepicker/bs-daterangepicker.component.d.ts +1 -1
  61. package/datepicker/{esm2020 → esm2022}/bs-datepicker-inline.component.mjs +4 -4
  62. package/datepicker/{esm2020 → esm2022}/bs-datepicker-inline.config.mjs +4 -4
  63. package/datepicker/{esm2020 → esm2022}/bs-datepicker-input.directive.mjs +4 -4
  64. package/datepicker/esm2022/bs-datepicker.component.mjs +303 -0
  65. package/datepicker/{esm2020 → esm2022}/bs-datepicker.config.mjs +4 -4
  66. package/datepicker/{esm2020 → esm2022}/bs-datepicker.module.mjs +32 -32
  67. package/datepicker/esm2022/bs-daterangepicker-inline.component.mjs +163 -0
  68. package/datepicker/{esm2020 → esm2022}/bs-daterangepicker-inline.config.mjs +4 -4
  69. package/datepicker/{esm2020 → esm2022}/bs-daterangepicker-input.directive.mjs +4 -4
  70. package/datepicker/esm2022/bs-daterangepicker.component.mjs +296 -0
  71. package/datepicker/{esm2020 → esm2022}/bs-daterangepicker.config.mjs +4 -4
  72. package/datepicker/{esm2020 → esm2022}/bs-locale.service.mjs +4 -4
  73. package/datepicker/esm2022/reducer/bs-datepicker.actions.mjs +143 -0
  74. package/datepicker/{esm2020 → esm2022}/reducer/bs-datepicker.effects.mjs +4 -4
  75. package/datepicker/{esm2020 → esm2022}/reducer/bs-datepicker.store.mjs +4 -4
  76. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-calendar-layout.component.mjs +6 -6
  77. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-current-date-view.component.mjs +4 -4
  78. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-custom-dates-view.component.mjs +6 -6
  79. package/datepicker/esm2022/themes/bs/bs-datepicker-container.component.mjs +192 -0
  80. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-datepicker-day-decorator.directive.mjs +4 -4
  81. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-datepicker-inline-container.component.mjs +9 -9
  82. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-datepicker-navigation-view.component.mjs +6 -6
  83. package/datepicker/esm2022/themes/bs/bs-daterangepicker-container.component.mjs +261 -0
  84. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-daterangepicker-inline-container.component.mjs +9 -9
  85. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-days-calendar-view.component.mjs +6 -6
  86. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-months-calendar-view.component.mjs +6 -6
  87. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-timepicker-view.component.mjs +6 -6
  88. package/datepicker/{esm2020 → esm2022}/themes/bs/bs-years-calendar-view.component.mjs +6 -6
  89. package/datepicker/{fesm2020 → fesm2022}/ngx-bootstrap-datepicker.mjs +226 -226
  90. package/datepicker/fesm2022/ngx-bootstrap-datepicker.mjs.map +1 -0
  91. package/datepicker/models/index.d.ts +1 -1
  92. package/datepicker/package.json +13 -19
  93. package/datepicker/themes/bs/bs-current-date-view.component.d.ts +1 -1
  94. package/datepicker/themes/bs/bs-custom-dates-view.component.d.ts +1 -1
  95. package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.d.ts +1 -1
  96. package/datepicker/themes/bs/bs-datepicker-navigation-view.component.d.ts +1 -1
  97. package/datepicker/themes/bs/bs-days-calendar-view.component.d.ts +1 -1
  98. package/datepicker/themes/bs/bs-months-calendar-view.component.d.ts +1 -1
  99. package/datepicker/themes/bs/bs-years-calendar-view.component.d.ts +1 -1
  100. package/datepicker/utils/matrix-utils.d.ts +1 -1
  101. package/dropdown/bs-dropdown.directive.d.ts +1 -1
  102. package/dropdown/esm2022/bs-dropdown-container.component.mjs +79 -0
  103. package/dropdown/{esm2020 → esm2022}/bs-dropdown-menu.directive.mjs +4 -4
  104. package/dropdown/{esm2020 → esm2022}/bs-dropdown-toggle.directive.mjs +4 -4
  105. package/dropdown/{esm2020 → esm2022}/bs-dropdown.config.mjs +4 -4
  106. package/dropdown/esm2022/bs-dropdown.directive.mjs +340 -0
  107. package/dropdown/{esm2020 → esm2022}/bs-dropdown.module.mjs +10 -10
  108. package/dropdown/{esm2020 → esm2022}/bs-dropdown.state.mjs +4 -4
  109. package/dropdown/{fesm2020 → fesm2022}/ngx-bootstrap-dropdown.mjs +62 -62
  110. package/dropdown/fesm2022/ngx-bootstrap-dropdown.mjs.map +1 -0
  111. package/dropdown/package.json +10 -16
  112. package/fesm2022/ngx-bootstrap.mjs.map +1 -0
  113. package/focus-trap/boolean-property.d.ts +1 -1
  114. package/focus-trap/{esm2020 → esm2022}/focus-trap-manager.mjs +4 -4
  115. package/focus-trap/esm2022/focus-trap.mjs +399 -0
  116. package/focus-trap/{esm2020 → esm2022}/focus-trap.module.mjs +5 -5
  117. package/focus-trap/{esm2020 → esm2022}/interactivity-checker.mjs +4 -4
  118. package/focus-trap/{esm2020 → esm2022}/platform.mjs +4 -4
  119. package/focus-trap/{fesm2020 → fesm2022}/ngx-bootstrap-focus-trap.mjs +43 -39
  120. package/focus-trap/fesm2022/ngx-bootstrap-focus-trap.mjs.map +1 -0
  121. package/focus-trap/focus-trap.d.ts +1 -1
  122. package/focus-trap/package.json +8 -14
  123. package/locale/fesm2022/ngx-bootstrap-locale.mjs.map +1 -0
  124. package/locale/package.json +6 -12
  125. package/mini-ngrx/fesm2022/ngx-bootstrap-mini-ngrx.mjs.map +1 -0
  126. package/mini-ngrx/package.json +6 -12
  127. package/mini-ngrx/public_api.d.ts +1 -1
  128. package/modal/{esm2020 → esm2022}/bs-modal-ref.service.mjs +4 -4
  129. package/modal/{esm2020 → esm2022}/bs-modal.service.mjs +4 -4
  130. package/modal/esm2022/modal-backdrop.component.mjs +50 -0
  131. package/modal/{esm2020 → esm2022}/modal-container.component.mjs +6 -6
  132. package/modal/{esm2020 → esm2022}/modal-options.class.mjs +4 -4
  133. package/modal/esm2022/modal.directive.mjs +364 -0
  134. package/modal/{esm2020 → esm2022}/modal.module.mjs +7 -7
  135. package/modal/{fesm2020 → fesm2022}/ngx-bootstrap-modal.mjs +44 -42
  136. package/modal/fesm2022/ngx-bootstrap-modal.mjs.map +1 -0
  137. package/modal/modal.directive.d.ts +1 -1
  138. package/modal/models/index.d.ts +1 -1
  139. package/modal/package.json +8 -14
  140. package/package.json +81 -87
  141. package/pagination/{esm2020 → esm2022}/pager.component.mjs +4 -4
  142. package/pagination/{esm2020 → esm2022}/pagination.component.mjs +4 -4
  143. package/pagination/{esm2020 → esm2022}/pagination.config.mjs +4 -4
  144. package/pagination/{esm2020 → esm2022}/pagination.module.mjs +5 -5
  145. package/pagination/{fesm2020 → fesm2022}/ngx-bootstrap-pagination.mjs +13 -13
  146. package/pagination/fesm2022/ngx-bootstrap-pagination.mjs.map +1 -0
  147. package/pagination/package.json +8 -14
  148. package/pagination/pager.component.d.ts +1 -1
  149. package/pagination/pagination.component.d.ts +1 -1
  150. package/popover/esm2022/popover-container.component.mjs +46 -0
  151. package/popover/{esm2020 → esm2022}/popover.config.mjs +4 -4
  152. package/popover/esm2022/popover.directive.mjs +241 -0
  153. package/popover/{esm2020 → esm2022}/popover.module.mjs +5 -5
  154. package/popover/{fesm2020 → fesm2022}/ngx-bootstrap-popover.mjs +31 -31
  155. package/popover/fesm2022/ngx-bootstrap-popover.mjs.map +1 -0
  156. package/popover/package.json +9 -15
  157. package/popover/popover-container.component.d.ts +1 -1
  158. package/popover/popover.directive.d.ts +1 -1
  159. package/positioning/{esm2020 → esm2022}/positioning.service.mjs +4 -4
  160. package/positioning/{fesm2020 → fesm2022}/ngx-bootstrap-positioning.mjs +3 -3
  161. package/positioning/fesm2022/ngx-bootstrap-positioning.mjs.map +1 -0
  162. package/positioning/models/index.d.ts +1 -1
  163. package/positioning/package.json +10 -16
  164. package/progressbar/bar.component.d.ts +1 -1
  165. package/progressbar/{esm2020 → esm2022}/bar.component.mjs +4 -4
  166. package/progressbar/esm2022/progressbar.component.mjs +53 -0
  167. package/progressbar/{esm2020 → esm2022}/progressbar.config.mjs +4 -4
  168. package/progressbar/{esm2020 → esm2022}/progressbar.module.mjs +5 -5
  169. package/progressbar/{fesm2020 → fesm2022}/ngx-bootstrap-progressbar.mjs +24 -24
  170. package/progressbar/fesm2022/ngx-bootstrap-progressbar.mjs.map +1 -0
  171. package/progressbar/package.json +7 -13
  172. package/progressbar/progressbar-type.interface.d.ts +1 -1
  173. package/progressbar/progressbar.component.d.ts +1 -1
  174. package/rating/{esm2020 → esm2022}/rating.component.mjs +4 -4
  175. package/rating/{esm2020 → esm2022}/rating.config.mjs +4 -4
  176. package/rating/{esm2020 → esm2022}/rating.module.mjs +5 -5
  177. package/rating/{fesm2015 → fesm2022}/ngx-bootstrap-rating.mjs +10 -10
  178. package/rating/fesm2022/ngx-bootstrap-rating.mjs.map +1 -0
  179. package/rating/package.json +8 -14
  180. package/rating/rating.component.d.ts +1 -1
  181. package/schematics/collection.json +1 -1
  182. package/schematics/package.json +7 -7
  183. package/schematics/utils/current_dependency_versions.json +1 -1
  184. package/schematics/utils/index.d.ts +0 -2
  185. package/schematics/utils/index.js +1 -13
  186. package/schematics/utils/index.js.map +1 -1
  187. package/sortable/{esm2020 → esm2022}/draggable-item.service.mjs +4 -4
  188. package/sortable/esm2022/sortable.component.mjs +266 -0
  189. package/sortable/{esm2020 → esm2022}/sortable.module.mjs +5 -5
  190. package/sortable/{fesm2020 → fesm2022}/ngx-bootstrap-sortable.mjs +28 -28
  191. package/sortable/fesm2022/ngx-bootstrap-sortable.mjs.map +1 -0
  192. package/sortable/package.json +10 -16
  193. package/sortable/sortable.component.d.ts +1 -1
  194. package/tabs/esm2022/ng-transclude.directive.mjs +28 -0
  195. package/tabs/{esm2020 → esm2022}/tab-heading.directive.mjs +4 -4
  196. package/tabs/esm2022/tab.directive.mjs +115 -0
  197. package/tabs/{esm2020 → esm2022}/tabs.module.mjs +11 -11
  198. package/tabs/esm2022/tabset.component.mjs +216 -0
  199. package/tabs/{esm2020 → esm2022}/tabset.config.mjs +4 -4
  200. package/tabs/{fesm2015 → fesm2022}/ngx-bootstrap-tabs.mjs +63 -63
  201. package/tabs/fesm2022/ngx-bootstrap-tabs.mjs.map +1 -0
  202. package/tabs/ng-transclude.directive.d.ts +1 -1
  203. package/tabs/package.json +7 -13
  204. package/tabs/tab.directive.d.ts +1 -1
  205. package/tabs/tabset.component.d.ts +1 -1
  206. package/timepicker/esm2022/reducer/timepicker.actions.mjs +53 -0
  207. package/timepicker/{esm2020 → esm2022}/reducer/timepicker.store.mjs +4 -4
  208. package/timepicker/{esm2020 → esm2022}/timepicker.component.mjs +4 -4
  209. package/timepicker/{esm2020 → esm2022}/timepicker.config.mjs +4 -4
  210. package/timepicker/{esm2020 → esm2022}/timepicker.module.mjs +5 -5
  211. package/timepicker/{fesm2020 → fesm2022}/ngx-bootstrap-timepicker.mjs +22 -22
  212. package/timepicker/fesm2022/ngx-bootstrap-timepicker.mjs.map +1 -0
  213. package/timepicker/package.json +10 -16
  214. package/timepicker/reducer/timepicker.reducer.d.ts +1 -3
  215. package/timepicker/timepicker.component.d.ts +1 -1
  216. package/timepicker/timepicker.models.d.ts +1 -1
  217. package/tooltip/{esm2020 → esm2022}/tooltip-container.component.mjs +9 -9
  218. package/tooltip/{esm2020 → esm2022}/tooltip.config.mjs +4 -4
  219. package/tooltip/esm2022/tooltip.directive.mjs +342 -0
  220. package/tooltip/{esm2020 → esm2022}/tooltip.module.mjs +5 -5
  221. package/tooltip/{fesm2020 → fesm2022}/ngx-bootstrap-tooltip.mjs +61 -61
  222. package/tooltip/fesm2022/ngx-bootstrap-tooltip.mjs.map +1 -0
  223. package/tooltip/package.json +10 -16
  224. package/tooltip/tooltip.directive.d.ts +1 -1
  225. package/typeahead/esm2022/typeahead-container.component.mjs +311 -0
  226. package/typeahead/{esm2020 → esm2022}/typeahead.config.mjs +4 -4
  227. package/typeahead/{esm2020 → esm2022}/typeahead.directive.mjs +4 -4
  228. package/typeahead/{esm2020 → esm2022}/typeahead.module.mjs +5 -5
  229. package/typeahead/{fesm2020 → fesm2022}/ngx-bootstrap-typeahead.mjs +20 -20
  230. package/typeahead/fesm2022/ngx-bootstrap-typeahead.mjs.map +1 -0
  231. package/typeahead/package.json +12 -18
  232. package/typeahead/typeahead.directive.d.ts +3 -3
  233. package/utils/fesm2022/ngx-bootstrap-utils.mjs.map +1 -0
  234. package/utils/package.json +6 -12
  235. package/utils/theme-provider.d.ts +1 -1
  236. package/utils/triggers.d.ts +1 -1
  237. package/accordion/esm2020/accordion-group.component.mjs +0 -84
  238. package/accordion/fesm2015/ngx-bootstrap-accordion.mjs +0 -182
  239. package/accordion/fesm2015/ngx-bootstrap-accordion.mjs.map +0 -1
  240. package/accordion/fesm2020/ngx-bootstrap-accordion.mjs.map +0 -1
  241. package/alert/esm2020/alert.component.mjs +0 -77
  242. package/alert/fesm2015/ngx-bootstrap-alert.mjs.map +0 -1
  243. package/alert/fesm2020/ngx-bootstrap-alert.mjs +0 -119
  244. package/alert/fesm2020/ngx-bootstrap-alert.mjs.map +0 -1
  245. package/buttons/esm2020/button-radio.directive.mjs +0 -188
  246. package/buttons/fesm2015/ngx-bootstrap-buttons.mjs +0 -448
  247. package/buttons/fesm2015/ngx-bootstrap-buttons.mjs.map +0 -1
  248. package/buttons/fesm2020/ngx-bootstrap-buttons.mjs.map +0 -1
  249. package/carousel/esm2020/carousel.component.mjs +0 -713
  250. package/carousel/fesm2015/ngx-bootstrap-carousel.mjs +0 -851
  251. package/carousel/fesm2015/ngx-bootstrap-carousel.mjs.map +0 -1
  252. package/carousel/fesm2020/ngx-bootstrap-carousel.mjs.map +0 -1
  253. package/chronos/fesm2015/ngx-bootstrap-chronos.mjs +0 -7384
  254. package/chronos/fesm2015/ngx-bootstrap-chronos.mjs.map +0 -1
  255. package/chronos/fesm2020/ngx-bootstrap-chronos.mjs.map +0 -1
  256. package/collapse/esm2020/collapse.directive.mjs +0 -168
  257. package/collapse/fesm2015/ngx-bootstrap-collapse.mjs +0 -200
  258. package/collapse/fesm2015/ngx-bootstrap-collapse.mjs.map +0 -1
  259. package/collapse/fesm2020/ngx-bootstrap-collapse.mjs.map +0 -1
  260. package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs +0 -345
  261. package/component-loader/fesm2015/ngx-bootstrap-component-loader.mjs.map +0 -1
  262. package/component-loader/fesm2020/ngx-bootstrap-component-loader.mjs.map +0 -1
  263. package/datepicker/esm2020/bs-datepicker.component.mjs +0 -303
  264. package/datepicker/esm2020/bs-daterangepicker-inline.component.mjs +0 -163
  265. package/datepicker/esm2020/bs-daterangepicker.component.mjs +0 -296
  266. package/datepicker/esm2020/reducer/bs-datepicker.actions.mjs +0 -143
  267. package/datepicker/esm2020/themes/bs/bs-datepicker-container.component.mjs +0 -192
  268. package/datepicker/esm2020/themes/bs/bs-daterangepicker-container.component.mjs +0 -261
  269. package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs +0 -3971
  270. package/datepicker/fesm2015/ngx-bootstrap-datepicker.mjs.map +0 -1
  271. package/datepicker/fesm2020/ngx-bootstrap-datepicker.mjs.map +0 -1
  272. package/dropdown/esm2020/bs-dropdown-container.component.mjs +0 -79
  273. package/dropdown/esm2020/bs-dropdown.directive.mjs +0 -340
  274. package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs +0 -603
  275. package/dropdown/fesm2015/ngx-bootstrap-dropdown.mjs.map +0 -1
  276. package/dropdown/fesm2020/ngx-bootstrap-dropdown.mjs.map +0 -1
  277. package/fesm2015/ngx-bootstrap.mjs.map +0 -1
  278. package/fesm2020/ngx-bootstrap.mjs +0 -6
  279. package/fesm2020/ngx-bootstrap.mjs.map +0 -1
  280. package/focus-trap/esm2020/focus-trap.mjs +0 -399
  281. package/focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs +0 -800
  282. package/focus-trap/fesm2015/ngx-bootstrap-focus-trap.mjs.map +0 -1
  283. package/focus-trap/fesm2020/ngx-bootstrap-focus-trap.mjs.map +0 -1
  284. package/locale/fesm2015/ngx-bootstrap-locale.mjs.map +0 -1
  285. package/locale/fesm2020/ngx-bootstrap-locale.mjs +0 -6
  286. package/locale/fesm2020/ngx-bootstrap-locale.mjs.map +0 -1
  287. package/mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.mjs +0 -64
  288. package/mini-ngrx/fesm2015/ngx-bootstrap-mini-ngrx.mjs.map +0 -1
  289. package/mini-ngrx/fesm2020/ngx-bootstrap-mini-ngrx.mjs.map +0 -1
  290. package/modal/esm2020/modal-backdrop.component.mjs +0 -50
  291. package/modal/esm2020/modal.directive.mjs +0 -364
  292. package/modal/fesm2015/ngx-bootstrap-modal.mjs +0 -888
  293. package/modal/fesm2015/ngx-bootstrap-modal.mjs.map +0 -1
  294. package/modal/fesm2020/ngx-bootstrap-modal.mjs.map +0 -1
  295. package/pagination/fesm2015/ngx-bootstrap-pagination.mjs +0 -565
  296. package/pagination/fesm2015/ngx-bootstrap-pagination.mjs.map +0 -1
  297. package/pagination/fesm2020/ngx-bootstrap-pagination.mjs.map +0 -1
  298. package/popover/esm2020/popover-container.component.mjs +0 -46
  299. package/popover/esm2020/popover.directive.mjs +0 -241
  300. package/popover/fesm2015/ngx-bootstrap-popover.mjs +0 -339
  301. package/popover/fesm2015/ngx-bootstrap-popover.mjs.map +0 -1
  302. package/popover/fesm2020/ngx-bootstrap-popover.mjs.map +0 -1
  303. package/positioning/fesm2015/ngx-bootstrap-positioning.mjs +0 -1018
  304. package/positioning/fesm2015/ngx-bootstrap-positioning.mjs.map +0 -1
  305. package/positioning/fesm2020/ngx-bootstrap-positioning.mjs.map +0 -1
  306. package/progressbar/esm2020/progressbar.component.mjs +0 -53
  307. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs +0 -163
  308. package/progressbar/fesm2015/ngx-bootstrap-progressbar.mjs.map +0 -1
  309. package/progressbar/fesm2020/ngx-bootstrap-progressbar.mjs.map +0 -1
  310. package/rating/fesm2015/ngx-bootstrap-rating.mjs.map +0 -1
  311. package/rating/fesm2020/ngx-bootstrap-rating.mjs +0 -163
  312. package/rating/fesm2020/ngx-bootstrap-rating.mjs.map +0 -1
  313. package/sortable/esm2020/sortable.component.mjs +0 -266
  314. package/sortable/fesm2015/ngx-bootstrap-sortable.mjs +0 -324
  315. package/sortable/fesm2015/ngx-bootstrap-sortable.mjs.map +0 -1
  316. package/sortable/fesm2020/ngx-bootstrap-sortable.mjs.map +0 -1
  317. package/tabs/esm2020/ng-transclude.directive.mjs +0 -28
  318. package/tabs/esm2020/tab.directive.mjs +0 -115
  319. package/tabs/esm2020/tabset.component.mjs +0 -216
  320. package/tabs/fesm2015/ngx-bootstrap-tabs.mjs.map +0 -1
  321. package/tabs/fesm2020/ngx-bootstrap-tabs.mjs +0 -427
  322. package/tabs/fesm2020/ngx-bootstrap-tabs.mjs.map +0 -1
  323. package/timepicker/esm2020/reducer/timepicker.actions.mjs +0 -53
  324. package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs +0 -830
  325. package/timepicker/fesm2015/ngx-bootstrap-timepicker.mjs.map +0 -1
  326. package/timepicker/fesm2020/ngx-bootstrap-timepicker.mjs.map +0 -1
  327. package/tooltip/esm2020/tooltip.directive.mjs +0 -342
  328. package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs +0 -431
  329. package/tooltip/fesm2015/ngx-bootstrap-tooltip.mjs.map +0 -1
  330. package/tooltip/fesm2020/ngx-bootstrap-tooltip.mjs.map +0 -1
  331. package/typeahead/esm2020/typeahead-container.component.mjs +0 -311
  332. package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs +0 -1890
  333. package/typeahead/fesm2015/ngx-bootstrap-typeahead.mjs.map +0 -1
  334. package/typeahead/fesm2020/ngx-bootstrap-typeahead.mjs.map +0 -1
  335. package/utils/fesm2015/ngx-bootstrap-utils.mjs +0 -523
  336. package/utils/fesm2015/ngx-bootstrap-utils.mjs.map +0 -1
  337. package/utils/fesm2020/ngx-bootstrap-utils.mjs.map +0 -1
  338. /package/accordion/{esm2020 → esm2022}/index.mjs +0 -0
  339. /package/accordion/{esm2020 → esm2022}/ngx-bootstrap-accordion.mjs +0 -0
  340. /package/accordion/{esm2020 → esm2022}/public_api.mjs +0 -0
  341. /package/alert/{esm2020 → esm2022}/index.mjs +0 -0
  342. /package/alert/{esm2020 → esm2022}/ngx-bootstrap-alert.mjs +0 -0
  343. /package/alert/{esm2020 → esm2022}/public_api.mjs +0 -0
  344. /package/buttons/{esm2020 → esm2022}/index.mjs +0 -0
  345. /package/buttons/{esm2020 → esm2022}/ngx-bootstrap-buttons.mjs +0 -0
  346. /package/buttons/{esm2020 → esm2022}/public_api.mjs +0 -0
  347. /package/carousel/{esm2020 → esm2022}/index.mjs +0 -0
  348. /package/carousel/{esm2020 → esm2022}/models/index.mjs +0 -0
  349. /package/carousel/{esm2020 → esm2022}/ngx-bootstrap-carousel.mjs +0 -0
  350. /package/carousel/{esm2020 → esm2022}/public_api.mjs +0 -0
  351. /package/carousel/{esm2020 → esm2022}/utils.mjs +0 -0
  352. /package/chronos/{esm2020 → esm2022}/create/check-overflow.mjs +0 -0
  353. /package/chronos/{esm2020 → esm2022}/create/clone.mjs +0 -0
  354. /package/chronos/{esm2020 → esm2022}/create/date-from-array.mjs +0 -0
  355. /package/chronos/{esm2020 → esm2022}/create/from-anything.mjs +0 -0
  356. /package/chronos/{esm2020 → esm2022}/create/from-array.mjs +0 -0
  357. /package/chronos/{esm2020 → esm2022}/create/from-object.mjs +0 -0
  358. /package/chronos/{esm2020 → esm2022}/create/from-string-and-array.mjs +0 -0
  359. /package/chronos/{esm2020 → esm2022}/create/from-string-and-format.mjs +0 -0
  360. /package/chronos/{esm2020 → esm2022}/create/from-string.mjs +0 -0
  361. /package/chronos/{esm2020 → esm2022}/create/local.mjs +0 -0
  362. /package/chronos/{esm2020 → esm2022}/create/parsing-flags.mjs +0 -0
  363. /package/chronos/{esm2020 → esm2022}/create/parsing.types.mjs +0 -0
  364. /package/chronos/{esm2020 → esm2022}/create/valid.mjs +0 -0
  365. /package/chronos/{esm2020 → esm2022}/duration/bubble.mjs +0 -0
  366. /package/chronos/{esm2020 → esm2022}/duration/constructor.mjs +0 -0
  367. /package/chronos/{esm2020 → esm2022}/duration/create.mjs +0 -0
  368. /package/chronos/{esm2020 → esm2022}/duration/humanize.mjs +0 -0
  369. /package/chronos/{esm2020 → esm2022}/duration/valid.mjs +0 -0
  370. /package/chronos/{esm2020 → esm2022}/format/format.mjs +0 -0
  371. /package/chronos/{esm2020 → esm2022}/format.mjs +0 -0
  372. /package/chronos/{esm2020 → esm2022}/i18n/ar.mjs +0 -0
  373. /package/chronos/{esm2020 → esm2022}/i18n/bg.mjs +0 -0
  374. /package/chronos/{esm2020 → esm2022}/i18n/ca.mjs +0 -0
  375. /package/chronos/{esm2020 → esm2022}/i18n/cs.mjs +0 -0
  376. /package/chronos/{esm2020 → esm2022}/i18n/da.mjs +0 -0
  377. /package/chronos/{esm2020 → esm2022}/i18n/de.mjs +0 -0
  378. /package/chronos/{esm2020 → esm2022}/i18n/en-gb.mjs +0 -0
  379. /package/chronos/{esm2020 → esm2022}/i18n/es-do.mjs +0 -0
  380. /package/chronos/{esm2020 → esm2022}/i18n/es-pr.mjs +0 -0
  381. /package/chronos/{esm2020 → esm2022}/i18n/es-us.mjs +0 -0
  382. /package/chronos/{esm2020 → esm2022}/i18n/es.mjs +0 -0
  383. /package/chronos/{esm2020 → esm2022}/i18n/et.mjs +0 -0
  384. /package/chronos/{esm2020 → esm2022}/i18n/fi.mjs +0 -0
  385. /package/chronos/{esm2020 → esm2022}/i18n/fr.mjs +0 -0
  386. /package/chronos/{esm2020 → esm2022}/i18n/gl.mjs +0 -0
  387. /package/chronos/{esm2020 → esm2022}/i18n/he.mjs +0 -0
  388. /package/chronos/{esm2020 → esm2022}/i18n/hi.mjs +0 -0
  389. /package/chronos/{esm2020 → esm2022}/i18n/hr.mjs +0 -0
  390. /package/chronos/{esm2020 → esm2022}/i18n/hu.mjs +0 -0
  391. /package/chronos/{esm2020 → esm2022}/i18n/id.mjs +0 -0
  392. /package/chronos/{esm2020 → esm2022}/i18n/it.mjs +0 -0
  393. /package/chronos/{esm2020 → esm2022}/i18n/ja.mjs +0 -0
  394. /package/chronos/{esm2020 → esm2022}/i18n/ka.mjs +0 -0
  395. /package/chronos/{esm2020 → esm2022}/i18n/kk.mjs +0 -0
  396. /package/chronos/{esm2020 → esm2022}/i18n/ko.mjs +0 -0
  397. /package/chronos/{esm2020 → esm2022}/i18n/lt.mjs +0 -0
  398. /package/chronos/{esm2020 → esm2022}/i18n/lv.mjs +0 -0
  399. /package/chronos/{esm2020 → esm2022}/i18n/mn.mjs +0 -0
  400. /package/chronos/{esm2020 → esm2022}/i18n/nb.mjs +0 -0
  401. /package/chronos/{esm2020 → esm2022}/i18n/nl-be.mjs +0 -0
  402. /package/chronos/{esm2020 → esm2022}/i18n/nl.mjs +0 -0
  403. /package/chronos/{esm2020 → esm2022}/i18n/pl.mjs +0 -0
  404. /package/chronos/{esm2020 → esm2022}/i18n/pt-br.mjs +0 -0
  405. /package/chronos/{esm2020 → esm2022}/i18n/ro.mjs +0 -0
  406. /package/chronos/{esm2020 → esm2022}/i18n/ru.mjs +0 -0
  407. /package/chronos/{esm2020 → esm2022}/i18n/sk.mjs +0 -0
  408. /package/chronos/{esm2020 → esm2022}/i18n/sl.mjs +0 -0
  409. /package/chronos/{esm2020 → esm2022}/i18n/sq.mjs +0 -0
  410. /package/chronos/{esm2020 → esm2022}/i18n/sv.mjs +0 -0
  411. /package/chronos/{esm2020 → esm2022}/i18n/th-be.mjs +0 -0
  412. /package/chronos/{esm2020 → esm2022}/i18n/th.mjs +0 -0
  413. /package/chronos/{esm2020 → esm2022}/i18n/tr.mjs +0 -0
  414. /package/chronos/{esm2020 → esm2022}/i18n/uk.mjs +0 -0
  415. /package/chronos/{esm2020 → esm2022}/i18n/vi.mjs +0 -0
  416. /package/chronos/{esm2020 → esm2022}/i18n/zh-cn.mjs +0 -0
  417. /package/chronos/{esm2020 → esm2022}/index.mjs +0 -0
  418. /package/chronos/{esm2020 → esm2022}/locale/calendar.mjs +0 -0
  419. /package/chronos/{esm2020 → esm2022}/locale/locale.class.mjs +0 -0
  420. /package/chronos/{esm2020 → esm2022}/locale/locale.defaults.mjs +0 -0
  421. /package/chronos/{esm2020 → esm2022}/locale/locales.mjs +0 -0
  422. /package/chronos/{esm2020 → esm2022}/moment/add-subtract.mjs +0 -0
  423. /package/chronos/{esm2020 → esm2022}/moment/calendar.mjs +0 -0
  424. /package/chronos/{esm2020 → esm2022}/moment/diff.mjs +0 -0
  425. /package/chronos/{esm2020 → esm2022}/moment/min-max.mjs +0 -0
  426. /package/chronos/{esm2020 → esm2022}/ngx-bootstrap-chronos.mjs +0 -0
  427. /package/chronos/{esm2020 → esm2022}/parse/regex.mjs +0 -0
  428. /package/chronos/{esm2020 → esm2022}/parse/token.mjs +0 -0
  429. /package/chronos/{esm2020 → esm2022}/public_api.mjs +0 -0
  430. /package/chronos/{esm2020 → esm2022}/testing/chain.mjs +0 -0
  431. /package/chronos/{esm2020 → esm2022}/types.mjs +0 -0
  432. /package/chronos/{esm2020 → esm2022}/units/aliases.mjs +0 -0
  433. /package/chronos/{esm2020 → esm2022}/units/constants.mjs +0 -0
  434. /package/chronos/{esm2020 → esm2022}/units/day-of-month.mjs +0 -0
  435. /package/chronos/{esm2020 → esm2022}/units/day-of-week.mjs +0 -0
  436. /package/chronos/{esm2020 → esm2022}/units/day-of-year.mjs +0 -0
  437. /package/chronos/{esm2020 → esm2022}/units/hour.mjs +0 -0
  438. /package/chronos/{esm2020 → esm2022}/units/index.mjs +0 -0
  439. /package/chronos/{esm2020 → esm2022}/units/millisecond.mjs +0 -0
  440. /package/chronos/{esm2020 → esm2022}/units/minute.mjs +0 -0
  441. /package/chronos/{esm2020 → esm2022}/units/month.mjs +0 -0
  442. /package/chronos/{esm2020 → esm2022}/units/offset.mjs +0 -0
  443. /package/chronos/{esm2020 → esm2022}/units/priorities.mjs +0 -0
  444. /package/chronos/{esm2020 → esm2022}/units/quarter.mjs +0 -0
  445. /package/chronos/{esm2020 → esm2022}/units/second.mjs +0 -0
  446. /package/chronos/{esm2020 → esm2022}/units/timestamp.mjs +0 -0
  447. /package/chronos/{esm2020 → esm2022}/units/timezone.mjs +0 -0
  448. /package/chronos/{esm2020 → esm2022}/units/week-calendar-utils.mjs +0 -0
  449. /package/chronos/{esm2020 → esm2022}/units/week-year.mjs +0 -0
  450. /package/chronos/{esm2020 → esm2022}/units/week.mjs +0 -0
  451. /package/chronos/{esm2020 → esm2022}/units/year.mjs +0 -0
  452. /package/chronos/{esm2020 → esm2022}/utils/abs-ceil.mjs +0 -0
  453. /package/chronos/{esm2020 → esm2022}/utils/abs-round.mjs +0 -0
  454. /package/chronos/{esm2020 → esm2022}/utils/compare-arrays.mjs +0 -0
  455. /package/chronos/{esm2020 → esm2022}/utils/date-compare.mjs +0 -0
  456. /package/chronos/{esm2020 → esm2022}/utils/date-getters.mjs +0 -0
  457. /package/chronos/{esm2020 → esm2022}/utils/date-setters.mjs +0 -0
  458. /package/chronos/{esm2020 → esm2022}/utils/defaults.mjs +0 -0
  459. /package/chronos/{esm2020 → esm2022}/utils/start-end-of.mjs +0 -0
  460. /package/chronos/{esm2020 → esm2022}/utils/type-checks.mjs +0 -0
  461. /package/chronos/{esm2020 → esm2022}/utils/zero-fill.mjs +0 -0
  462. /package/chronos/{esm2020 → esm2022}/utils.mjs +0 -0
  463. /package/collapse/{esm2020 → esm2022}/collapse-animations.mjs +0 -0
  464. /package/collapse/{esm2020 → esm2022}/index.mjs +0 -0
  465. /package/collapse/{esm2020 → esm2022}/ngx-bootstrap-collapse.mjs +0 -0
  466. /package/collapse/{esm2020 → esm2022}/public_api.mjs +0 -0
  467. /package/component-loader/{esm2020 → esm2022}/bs-component-ref.class.mjs +0 -0
  468. /package/component-loader/{esm2020 → esm2022}/component-loader.class.mjs +0 -0
  469. /package/component-loader/{esm2020 → esm2022}/content-ref.class.mjs +0 -0
  470. /package/component-loader/{esm2020 → esm2022}/index.mjs +0 -0
  471. /package/component-loader/{esm2020 → esm2022}/listen-options.model.mjs +0 -0
  472. /package/component-loader/{esm2020 → esm2022}/ngx-bootstrap-component-loader.mjs +0 -0
  473. /package/component-loader/{esm2020 → esm2022}/public_api.mjs +0 -0
  474. /package/datepicker/{esm2020 → esm2022}/base/bs-datepicker-container.mjs +0 -0
  475. /package/datepicker/{esm2020 → esm2022}/datepicker-animations.mjs +0 -0
  476. /package/datepicker/{esm2020 → esm2022}/engine/calc-days-calendar.mjs +0 -0
  477. /package/datepicker/{esm2020 → esm2022}/engine/flag-days-calendar.mjs +0 -0
  478. /package/datepicker/{esm2020 → esm2022}/engine/flag-months-calendar.mjs +0 -0
  479. /package/datepicker/{esm2020 → esm2022}/engine/flag-years-calendar.mjs +0 -0
  480. /package/datepicker/{esm2020 → esm2022}/engine/format-days-calendar.mjs +0 -0
  481. /package/datepicker/{esm2020 → esm2022}/engine/format-months-calendar.mjs +0 -0
  482. /package/datepicker/{esm2020 → esm2022}/engine/format-years-calendar.mjs +0 -0
  483. /package/datepicker/{esm2020 → esm2022}/engine/view-mode.mjs +0 -0
  484. /package/datepicker/{esm2020 → esm2022}/index.mjs +0 -0
  485. /package/datepicker/{esm2020 → esm2022}/models/index.mjs +0 -0
  486. /package/datepicker/{esm2020 → esm2022}/ngx-bootstrap-datepicker.mjs +0 -0
  487. /package/datepicker/{esm2020 → esm2022}/public_api.mjs +0 -0
  488. /package/datepicker/{esm2020 → esm2022}/reducer/_defaults.mjs +0 -0
  489. /package/datepicker/{esm2020 → esm2022}/reducer/bs-datepicker.reducer.mjs +0 -0
  490. /package/datepicker/{esm2020 → esm2022}/reducer/bs-datepicker.state.mjs +0 -0
  491. /package/datepicker/{esm2020 → esm2022}/utils/bs-calendar-utils.mjs +0 -0
  492. /package/datepicker/{esm2020 → esm2022}/utils/copy-time-utils.mjs +0 -0
  493. /package/datepicker/{esm2020 → esm2022}/utils/matrix-utils.mjs +0 -0
  494. /package/dropdown/{esm2020 → esm2022}/dropdown-animations.mjs +0 -0
  495. /package/dropdown/{esm2020 → esm2022}/index.mjs +0 -0
  496. /package/dropdown/{esm2020 → esm2022}/ngx-bootstrap-dropdown.mjs +0 -0
  497. /package/dropdown/{esm2020 → esm2022}/public_api.mjs +0 -0
  498. /package/{esm2020 → esm2022}/index.mjs +0 -0
  499. /package/{esm2020 → esm2022}/ngx-bootstrap.mjs +0 -0
  500. /package/{fesm2015 → fesm2022}/ngx-bootstrap.mjs +0 -0
  501. /package/focus-trap/{esm2020 → esm2022}/boolean-property.mjs +0 -0
  502. /package/focus-trap/{esm2020 → esm2022}/index.mjs +0 -0
  503. /package/focus-trap/{esm2020 → esm2022}/ngx-bootstrap-focus-trap.mjs +0 -0
  504. /package/focus-trap/{esm2020 → esm2022}/public_api.mjs +0 -0
  505. /package/locale/{esm2020 → esm2022}/index.mjs +0 -0
  506. /package/locale/{esm2020 → esm2022}/ngx-bootstrap-locale.mjs +0 -0
  507. /package/locale/{esm2020 → esm2022}/public_api.mjs +0 -0
  508. /package/locale/{fesm2015 → fesm2022}/ngx-bootstrap-locale.mjs +0 -0
  509. /package/mini-ngrx/{esm2020 → esm2022}/index.mjs +0 -0
  510. /package/mini-ngrx/{esm2020 → esm2022}/ngx-bootstrap-mini-ngrx.mjs +0 -0
  511. /package/mini-ngrx/{esm2020 → esm2022}/public_api.mjs +0 -0
  512. /package/mini-ngrx/{esm2020 → esm2022}/state.class.mjs +0 -0
  513. /package/mini-ngrx/{esm2020 → esm2022}/store.class.mjs +0 -0
  514. /package/mini-ngrx/{fesm2020 → fesm2022}/ngx-bootstrap-mini-ngrx.mjs +0 -0
  515. /package/modal/{esm2020 → esm2022}/index.mjs +0 -0
  516. /package/modal/{esm2020 → esm2022}/modal-backdrop.options.mjs +0 -0
  517. /package/modal/{esm2020 → esm2022}/models/index.mjs +0 -0
  518. /package/modal/{esm2020 → esm2022}/ngx-bootstrap-modal.mjs +0 -0
  519. /package/modal/{esm2020 → esm2022}/public_api.mjs +0 -0
  520. /package/pagination/{esm2020 → esm2022}/index.mjs +0 -0
  521. /package/pagination/{esm2020 → esm2022}/models/index.mjs +0 -0
  522. /package/pagination/{esm2020 → esm2022}/ngx-bootstrap-pagination.mjs +0 -0
  523. /package/pagination/{esm2020 → esm2022}/public_api.mjs +0 -0
  524. /package/popover/{esm2020 → esm2022}/index.mjs +0 -0
  525. /package/popover/{esm2020 → esm2022}/ngx-bootstrap-popover.mjs +0 -0
  526. /package/popover/{esm2020 → esm2022}/public_api.mjs +0 -0
  527. /package/positioning/{esm2020 → esm2022}/index.mjs +0 -0
  528. /package/positioning/{esm2020 → esm2022}/models/index.mjs +0 -0
  529. /package/positioning/{esm2020 → esm2022}/modifiers/arrow.mjs +0 -0
  530. /package/positioning/{esm2020 → esm2022}/modifiers/flip.mjs +0 -0
  531. /package/positioning/{esm2020 → esm2022}/modifiers/index.mjs +0 -0
  532. /package/positioning/{esm2020 → esm2022}/modifiers/initData.mjs +0 -0
  533. /package/positioning/{esm2020 → esm2022}/modifiers/preventOverflow.mjs +0 -0
  534. /package/positioning/{esm2020 → esm2022}/modifiers/shift.mjs +0 -0
  535. /package/positioning/{esm2020 → esm2022}/ng-positioning.mjs +0 -0
  536. /package/positioning/{esm2020 → esm2022}/ngx-bootstrap-positioning.mjs +0 -0
  537. /package/positioning/{esm2020 → esm2022}/public_api.mjs +0 -0
  538. /package/positioning/{esm2020 → esm2022}/utils/checkMargin.mjs +0 -0
  539. /package/positioning/{esm2020 → esm2022}/utils/computeAutoPlacement.mjs +0 -0
  540. /package/positioning/{esm2020 → esm2022}/utils/findCommonOffsetParent.mjs +0 -0
  541. /package/positioning/{esm2020 → esm2022}/utils/getBordersSize.mjs +0 -0
  542. /package/positioning/{esm2020 → esm2022}/utils/getBoundaries.mjs +0 -0
  543. /package/positioning/{esm2020 → esm2022}/utils/getBoundingClientRect.mjs +0 -0
  544. /package/positioning/{esm2020 → esm2022}/utils/getClientRect.mjs +0 -0
  545. /package/positioning/{esm2020 → esm2022}/utils/getFixedPositionOffsetParent.mjs +0 -0
  546. /package/positioning/{esm2020 → esm2022}/utils/getOffsetParent.mjs +0 -0
  547. /package/positioning/{esm2020 → esm2022}/utils/getOffsetRectRelativeToArbitraryNode.mjs +0 -0
  548. /package/positioning/{esm2020 → esm2022}/utils/getOffsets.mjs +0 -0
  549. /package/positioning/{esm2020 → esm2022}/utils/getOppositePlacement.mjs +0 -0
  550. /package/positioning/{esm2020 → esm2022}/utils/getOppositeVariation.mjs +0 -0
  551. /package/positioning/{esm2020 → esm2022}/utils/getOuterSizes.mjs +0 -0
  552. /package/positioning/{esm2020 → esm2022}/utils/getParentNode.mjs +0 -0
  553. /package/positioning/{esm2020 → esm2022}/utils/getReferenceOffsets.mjs +0 -0
  554. /package/positioning/{esm2020 → esm2022}/utils/getRoot.mjs +0 -0
  555. /package/positioning/{esm2020 → esm2022}/utils/getScroll.mjs +0 -0
  556. /package/positioning/{esm2020 → esm2022}/utils/getScrollParent.mjs +0 -0
  557. /package/positioning/{esm2020 → esm2022}/utils/getStyleComputedProperty.mjs +0 -0
  558. /package/positioning/{esm2020 → esm2022}/utils/getTargetOffsets.mjs +0 -0
  559. /package/positioning/{esm2020 → esm2022}/utils/getViewportOffsetRectRelativeToArtbitraryNode.mjs +0 -0
  560. /package/positioning/{esm2020 → esm2022}/utils/getWindowSizes.mjs +0 -0
  561. /package/positioning/{esm2020 → esm2022}/utils/includeScroll.mjs +0 -0
  562. /package/positioning/{esm2020 → esm2022}/utils/index.mjs +0 -0
  563. /package/positioning/{esm2020 → esm2022}/utils/isFixed.mjs +0 -0
  564. /package/positioning/{esm2020 → esm2022}/utils/isModifierEnabled.mjs +0 -0
  565. /package/positioning/{esm2020 → esm2022}/utils/isNumeric.mjs +0 -0
  566. /package/positioning/{esm2020 → esm2022}/utils/isOffsetContainer.mjs +0 -0
  567. /package/positioning/{esm2020 → esm2022}/utils/setStyles.mjs +0 -0
  568. /package/positioning/{esm2020 → esm2022}/utils/updateContainerClass.mjs +0 -0
  569. /package/progressbar/{esm2020 → esm2022}/index.mjs +0 -0
  570. /package/progressbar/{esm2020 → esm2022}/ngx-bootstrap-progressbar.mjs +0 -0
  571. /package/progressbar/{esm2020 → esm2022}/progressbar-type.interface.mjs +0 -0
  572. /package/progressbar/{esm2020 → esm2022}/public_api.mjs +0 -0
  573. /package/rating/{esm2020 → esm2022}/index.mjs +0 -0
  574. /package/rating/{esm2020 → esm2022}/models/index.mjs +0 -0
  575. /package/rating/{esm2020 → esm2022}/ngx-bootstrap-rating.mjs +0 -0
  576. /package/rating/{esm2020 → esm2022}/public_api.mjs +0 -0
  577. /package/sortable/{esm2020 → esm2022}/draggable-item.mjs +0 -0
  578. /package/sortable/{esm2020 → esm2022}/index.mjs +0 -0
  579. /package/sortable/{esm2020 → esm2022}/ngx-bootstrap-sortable.mjs +0 -0
  580. /package/sortable/{esm2020 → esm2022}/public_api.mjs +0 -0
  581. /package/tabs/{esm2020 → esm2022}/index.mjs +0 -0
  582. /package/tabs/{esm2020 → esm2022}/ngx-bootstrap-tabs.mjs +0 -0
  583. /package/tabs/{esm2020 → esm2022}/public_api.mjs +0 -0
  584. /package/timepicker/{esm2020 → esm2022}/index.mjs +0 -0
  585. /package/timepicker/{esm2020 → esm2022}/models/index.mjs +0 -0
  586. /package/timepicker/{esm2020 → esm2022}/ngx-bootstrap-timepicker.mjs +0 -0
  587. /package/timepicker/{esm2020 → esm2022}/public_api.mjs +0 -0
  588. /package/timepicker/{esm2020 → esm2022}/reducer/timepicker.reducer.mjs +0 -0
  589. /package/timepicker/{esm2020 → esm2022}/timepicker-controls.util.mjs +0 -0
  590. /package/timepicker/{esm2020 → esm2022}/timepicker.models.mjs +0 -0
  591. /package/timepicker/{esm2020 → esm2022}/timepicker.utils.mjs +0 -0
  592. /package/tooltip/{esm2020 → esm2022}/index.mjs +0 -0
  593. /package/tooltip/{esm2020 → esm2022}/ngx-bootstrap-tooltip.mjs +0 -0
  594. /package/tooltip/{esm2020 → esm2022}/public_api.mjs +0 -0
  595. /package/typeahead/{esm2020 → esm2022}/index.mjs +0 -0
  596. /package/typeahead/{esm2020 → esm2022}/latin-map.mjs +0 -0
  597. /package/typeahead/{esm2020 → esm2022}/models/index.mjs +0 -0
  598. /package/typeahead/{esm2020 → esm2022}/ngx-bootstrap-typeahead.mjs +0 -0
  599. /package/typeahead/{esm2020 → esm2022}/public_api.mjs +0 -0
  600. /package/typeahead/{esm2020 → esm2022}/typeahead-animations.mjs +0 -0
  601. /package/typeahead/{esm2020 → esm2022}/typeahead-match.class.mjs +0 -0
  602. /package/typeahead/{esm2020 → esm2022}/typeahead-options.class.mjs +0 -0
  603. /package/typeahead/{esm2020 → esm2022}/typeahead-order.class.mjs +0 -0
  604. /package/typeahead/{esm2020 → esm2022}/typeahead-utils.mjs +0 -0
  605. /package/utils/{esm2020 → esm2022}/decorators.mjs +0 -0
  606. /package/utils/{esm2020 → esm2022}/facade/browser.mjs +0 -0
  607. /package/utils/{esm2020 → esm2022}/index.mjs +0 -0
  608. /package/utils/{esm2020 → esm2022}/linked-list.class.mjs +0 -0
  609. /package/utils/{esm2020 → esm2022}/ngx-bootstrap-utils.mjs +0 -0
  610. /package/utils/{esm2020 → esm2022}/public_api.mjs +0 -0
  611. /package/utils/{esm2020 → esm2022}/theme-provider.mjs +0 -0
  612. /package/utils/{esm2020 → esm2022}/trigger.class.mjs +0 -0
  613. /package/utils/{esm2020 → esm2022}/triggers.mjs +0 -0
  614. /package/utils/{esm2020 → esm2022}/utils.class.mjs +0 -0
  615. /package/utils/{esm2020 → esm2022}/warn-once.mjs +0 -0
  616. /package/utils/{fesm2020 → fesm2022}/ngx-bootstrap-utils.mjs +0 -0
@@ -1,800 +0,0 @@
1
- import * as i0 from '@angular/core';
2
- import { Injectable, PLATFORM_ID, Inject, Directive, Input, NgModule } from '@angular/core';
3
- import { isPlatformBrowser, DOCUMENT, CommonModule } from '@angular/common';
4
- import { take } from 'rxjs/operators';
5
-
6
- /**
7
- * @license
8
- * Copyright Google LLC All Rights Reserved.
9
- *
10
- * Use of this source code is governed by an MIT-style license that can be
11
- * found in the LICENSE file at https://angular.io/license
12
- */
13
- /** Injectable that ensures only the most recently enabled FocusTrap is active. */
14
- class FocusTrapManager {
15
- constructor() {
16
- // A stack of the FocusTraps on the page. Only the FocusTrap at the
17
- // top of the stack is active.
18
- this._focusTrapStack = [];
19
- }
20
- /**
21
- * Disables the FocusTrap at the top of the stack, and then pushes
22
- * the new FocusTrap onto the stack.
23
- */
24
- register(focusTrap) {
25
- // Dedupe focusTraps that register multiple times.
26
- this._focusTrapStack = this._focusTrapStack.filter((ft) => ft !== focusTrap);
27
- let stack = this._focusTrapStack;
28
- if (stack.length) {
29
- stack[stack.length - 1]._disable();
30
- }
31
- stack.push(focusTrap);
32
- focusTrap._enable();
33
- }
34
- /**
35
- * Removes the FocusTrap from the stack, and activates the
36
- * FocusTrap that is the new top of the stack.
37
- */
38
- deregister(focusTrap) {
39
- focusTrap._disable();
40
- const stack = this._focusTrapStack;
41
- const i = stack.indexOf(focusTrap);
42
- if (i !== -1) {
43
- stack.splice(i, 1);
44
- if (stack.length) {
45
- stack[stack.length - 1]._enable();
46
- }
47
- }
48
- }
49
- }
50
- FocusTrapManager.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapManager, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
51
- FocusTrapManager.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapManager, providedIn: 'root' });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapManager, decorators: [{
53
- type: Injectable,
54
- args: [{ providedIn: 'root' }]
55
- }] });
56
-
57
- /**
58
- * @license
59
- * Copyright Google LLC All Rights Reserved.
60
- *
61
- * Use of this source code is governed by an MIT-style license that can be
62
- * found in the LICENSE file at https://angular.io/license
63
- */
64
- // Whether the current platform supports the V8 Break Iterator. The V8 check
65
- // is necessary to detect all Blink based browsers.
66
- let hasV8BreakIterator;
67
- // We need a try/catch around the reference to `Intl`, because accessing it in some cases can
68
- // cause IE to throw. These cases are tied to particular versions of Windows and can happen if
69
- // the consumer is providing a polyfilled `Map`. See:
70
- // https://github.com/Microsoft/ChakraCore/issues/3189
71
- // https://github.com/angular/components/issues/15687
72
- try {
73
- hasV8BreakIterator = (typeof Intl !== 'undefined' && Intl.v8BreakIterator);
74
- }
75
- catch (_a) {
76
- hasV8BreakIterator = false;
77
- }
78
- /**
79
- * Service to detect the current platform by comparing the userAgent strings and
80
- * checking browser-specific global properties.
81
- */
82
- class Platform {
83
- constructor(_platformId) {
84
- this._platformId = _platformId;
85
- // We want to use the Angular platform check because if the Document is shimmed
86
- // without the navigator, the following checks will fail. This is preferred because
87
- // sometimes the Document may be shimmed without the user's knowledge or intention
88
- /** Whether the Angular application is being rendered in the browser. */
89
- this.isBrowser = this._platformId ?
90
- isPlatformBrowser(this._platformId) : typeof document === 'object' && !!document;
91
- /** Whether the current browser is Microsoft Edge. */
92
- this.EDGE = this.isBrowser && /(edge)/i.test(navigator.userAgent);
93
- /** Whether the current rendering engine is Microsoft Trident. */
94
- this.TRIDENT = this.isBrowser && /(msie|trident)/i.test(navigator.userAgent);
95
- // EdgeHTML and Trident mock Blink specific things and need to be excluded from this check.
96
- /** Whether the current rendering engine is Blink. */
97
- this.BLINK = this.isBrowser && (!!(window.chrome || hasV8BreakIterator) &&
98
- typeof CSS !== 'undefined' && !this.EDGE && !this.TRIDENT);
99
- // Webkit is part of the userAgent in EdgeHTML, Blink and Trident. Therefore we need to
100
- // ensure that Webkit runs standalone and is not used as another engine's base.
101
- /** Whether the current rendering engine is WebKit. */
102
- this.WEBKIT = this.isBrowser &&
103
- /AppleWebKit/i.test(navigator.userAgent) && !this.BLINK && !this.EDGE && !this.TRIDENT;
104
- /** Whether the current platform is Apple iOS. */
105
- this.IOS = this.isBrowser && /iPad|iPhone|iPod/.test(navigator.userAgent) &&
106
- !('MSStream' in window);
107
- // It's difficult to detect the plain Gecko engine, because most of the browsers identify
108
- // them self as Gecko-like browsers and modify the userAgent's according to that.
109
- // Since we only cover one explicit Firefox case, we can simply check for Firefox
110
- // instead of having an unstable check for Gecko.
111
- /** Whether the current browser is Firefox. */
112
- this.FIREFOX = this.isBrowser && /(firefox|minefield)/i.test(navigator.userAgent);
113
- /** Whether the current platform is Android. */
114
- // Trident on mobile adds the android platform to the userAgent to trick detections.
115
- this.ANDROID = this.isBrowser && /android/i.test(navigator.userAgent) && !this.TRIDENT;
116
- // Safari browsers will include the Safari keyword in their userAgent. Some browsers may fake
117
- // this and just place the Safari keyword in the userAgent. To be more safe about Safari every
118
- // Safari browser should also use Webkit as its layout engine.
119
- /** Whether the current browser is Safari. */
120
- this.SAFARI = this.isBrowser && /safari/i.test(navigator.userAgent) && this.WEBKIT;
121
- }
122
- }
123
- Platform.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: Platform, deps: [{ token: PLATFORM_ID }], target: i0.ɵɵFactoryTarget.Injectable });
124
- Platform.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: Platform, providedIn: 'root' });
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: Platform, decorators: [{
126
- type: Injectable,
127
- args: [{ providedIn: 'root' }]
128
- }], ctorParameters: function () {
129
- return [{ type: Object, decorators: [{
130
- type: Inject,
131
- args: [PLATFORM_ID]
132
- }] }];
133
- } });
134
-
135
- /**
136
- * Configuration for the isFocusable method.
137
- */
138
- class IsFocusableConfig {
139
- constructor() {
140
- /**
141
- * Whether to count an element as focusable even if it is not currently visible.
142
- */
143
- this.ignoreVisibility = false;
144
- }
145
- }
146
- // The InteractivityChecker leans heavily on the ally.js accessibility utilities.
147
- // Methods like `isTabbable` are only covering specific edge-cases for the browsers which are
148
- // supported.
149
- /**
150
- * Utility for checking the interactivity of an element, such as whether is is focusable or
151
- * tabbable.
152
- */
153
- class InteractivityChecker {
154
- constructor(_platform) {
155
- this._platform = _platform;
156
- }
157
- /**
158
- * Gets whether an element is disabled.
159
- *
160
- * @param element Element to be checked.
161
- * @returns Whether the element is disabled.
162
- */
163
- isDisabled(element) {
164
- // This does not capture some cases, such as a non-form control with a disabled attribute or
165
- // a form control inside of a disabled form, but should capture the most common cases.
166
- return element.hasAttribute('disabled');
167
- }
168
- /**
169
- * Gets whether an element is visible for the purposes of interactivity.
170
- *
171
- * This will capture states like `display: none` and `visibility: hidden`, but not things like
172
- * being clipped by an `overflow: hidden` parent or being outside the viewport.
173
- *
174
- * @returns Whether the element is visible.
175
- */
176
- isVisible(element) {
177
- return hasGeometry(element) && getComputedStyle(element).visibility === 'visible';
178
- }
179
- /**
180
- * Gets whether an element can be reached via Tab key.
181
- * Assumes that the element has already been checked with isFocusable.
182
- *
183
- * @param element Element to be checked.
184
- * @returns Whether the element is tabbable.
185
- */
186
- isTabbable(element) {
187
- // Nothing is tabbable on the server 😎
188
- if (!this._platform.isBrowser) {
189
- return false;
190
- }
191
- const frameElement = getFrameElement(getWindow(element));
192
- if (frameElement) {
193
- // Frame elements inherit their tabindex onto all child elements.
194
- if (getTabIndexValue(frameElement) === -1) {
195
- return false;
196
- }
197
- // Browsers disable tabbing to an element inside of an invisible frame.
198
- if (!this.isVisible(frameElement)) {
199
- return false;
200
- }
201
- }
202
- let nodeName = element.nodeName.toLowerCase();
203
- let tabIndexValue = getTabIndexValue(element);
204
- if (element.hasAttribute('contenteditable')) {
205
- return tabIndexValue !== -1;
206
- }
207
- if (nodeName === 'iframe' || nodeName === 'object') {
208
- // The frame or object's content may be tabbable depending on the content, but it's
209
- // not possibly to reliably detect the content of the frames. We always consider such
210
- // elements as non-tabbable.
211
- return false;
212
- }
213
- // In iOS, the browser only considers some specific elements as tabbable.
214
- if (this._platform.WEBKIT && this._platform.IOS && !isPotentiallyTabbableIOS(element)) {
215
- return false;
216
- }
217
- if (nodeName === 'audio') {
218
- // Audio elements without controls enabled are never tabbable, regardless
219
- // of the tabindex attribute explicitly being set.
220
- if (!element.hasAttribute('controls')) {
221
- return false;
222
- }
223
- // Audio elements with controls are by default tabbable unless the
224
- // tabindex attribute is set to `-1` explicitly.
225
- return tabIndexValue !== -1;
226
- }
227
- if (nodeName === 'video') {
228
- // For all video elements, if the tabindex attribute is set to `-1`, the video
229
- // is not tabbable. Note: We cannot rely on the default `HTMLElement.tabIndex`
230
- // property as that one is set to `-1` in Chrome, Edge and Safari v13.1. The
231
- // tabindex attribute is the source of truth here.
232
- if (tabIndexValue === -1) {
233
- return false;
234
- }
235
- // If the tabindex is explicitly set, and not `-1` (as per check before), the
236
- // video element is always tabbable (regardless of whether it has controls or not).
237
- if (tabIndexValue !== null) {
238
- return true;
239
- }
240
- // Otherwise (when no explicit tabindex is set), a video is only tabbable if it
241
- // has controls enabled. Firefox is special as videos are always tabbable regardless
242
- // of whether there are controls or not.
243
- return this._platform.FIREFOX || element.hasAttribute('controls');
244
- }
245
- return element.tabIndex >= 0;
246
- }
247
- /**
248
- * Gets whether an element can be focused by the user.
249
- *
250
- * @param element Element to be checked.
251
- * @param config The config object with options to customize this method's behavior
252
- * @returns Whether the element is focusable.
253
- */
254
- isFocusable(element, config) {
255
- // Perform checks in order of left to most expensive.
256
- // Again, naive approach that does not capture many edge cases and browser quirks.
257
- return isPotentiallyFocusable(element) && !this.isDisabled(element) &&
258
- ((config === null || config === void 0 ? void 0 : config.ignoreVisibility) || this.isVisible(element));
259
- }
260
- }
261
- InteractivityChecker.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InteractivityChecker, deps: [{ token: Platform }], target: i0.ɵɵFactoryTarget.Injectable });
262
- InteractivityChecker.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InteractivityChecker, providedIn: 'root' });
263
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: InteractivityChecker, decorators: [{
264
- type: Injectable,
265
- args: [{ providedIn: 'root' }]
266
- }], ctorParameters: function () { return [{ type: Platform }]; } });
267
- /**
268
- * Returns the frame element from a window object. Since browsers like MS Edge throw errors if
269
- * the frameElement property is being accessed from a different host address, this property
270
- * should be accessed carefully.
271
- */
272
- function getFrameElement(window) {
273
- try {
274
- return window.frameElement;
275
- }
276
- catch (_a) {
277
- return null;
278
- }
279
- }
280
- /** Checks whether the specified element has any geometry / rectangles. */
281
- function hasGeometry(element) {
282
- // Use logic from jQuery to check for an invisible element.
283
- // See https://github.com/jquery/jquery/blob/master/src/css/hiddenVisibleSelectors.js#L12
284
- return !!(element.offsetWidth || element.offsetHeight ||
285
- (typeof element.getClientRects === 'function' && element.getClientRects().length));
286
- }
287
- /** Gets whether an element's */
288
- function isNativeFormElement(element) {
289
- let nodeName = element.nodeName.toLowerCase();
290
- return nodeName === 'input' ||
291
- nodeName === 'select' ||
292
- nodeName === 'button' ||
293
- nodeName === 'textarea';
294
- }
295
- /** Gets whether an element is an `<input type="hidden">`. */
296
- function isHiddenInput(element) {
297
- return isInputElement(element) && element.type == 'hidden';
298
- }
299
- /** Gets whether an element is an anchor that has an href attribute. */
300
- function isAnchorWithHref(element) {
301
- return isAnchorElement(element) && element.hasAttribute('href');
302
- }
303
- /** Gets whether an element is an input element. */
304
- function isInputElement(element) {
305
- return element.nodeName.toLowerCase() == 'input';
306
- }
307
- /** Gets whether an element is an anchor element. */
308
- function isAnchorElement(element) {
309
- return element.nodeName.toLowerCase() == 'a';
310
- }
311
- /** Gets whether an element has a valid tabindex. */
312
- function hasValidTabIndex(element) {
313
- if (!element.hasAttribute('tabindex') || element.tabIndex === undefined) {
314
- return false;
315
- }
316
- let tabIndex = element.getAttribute('tabindex');
317
- // IE11 parses tabindex="" as the value "-32768"
318
- if (tabIndex == '-32768') {
319
- return false;
320
- }
321
- return !!(tabIndex && !isNaN(parseInt(tabIndex, 10)));
322
- }
323
- /**
324
- * Returns the parsed tabindex from the element attributes instead of returning the
325
- * evaluated tabindex from the browsers defaults.
326
- */
327
- function getTabIndexValue(element) {
328
- if (!hasValidTabIndex(element)) {
329
- return null;
330
- }
331
- // See browser issue in Gecko https://bugzilla.mozilla.org/show_bug.cgi?id=1128054
332
- const tabIndex = parseInt(element.getAttribute('tabindex') || '', 10);
333
- return isNaN(tabIndex) ? -1 : tabIndex;
334
- }
335
- /** Checks whether the specified element is potentially tabbable on iOS */
336
- function isPotentiallyTabbableIOS(element) {
337
- let nodeName = element.nodeName.toLowerCase();
338
- let inputType = nodeName === 'input' && element.type;
339
- return inputType === 'text'
340
- || inputType === 'password'
341
- || nodeName === 'select'
342
- || nodeName === 'textarea';
343
- }
344
- /**
345
- * Gets whether an element is potentially focusable without taking current visible/disabled state
346
- * into account.
347
- */
348
- function isPotentiallyFocusable(element) {
349
- // Inputs are potentially focusable *unless* they're type="hidden".
350
- if (isHiddenInput(element)) {
351
- return false;
352
- }
353
- return isNativeFormElement(element) ||
354
- isAnchorWithHref(element) ||
355
- element.hasAttribute('contenteditable') ||
356
- hasValidTabIndex(element);
357
- }
358
- /** Gets the parent window of a DOM node with regards of being inside of an iframe. */
359
- function getWindow(node) {
360
- // ownerDocument is null if `node` itself *is* a document.
361
- return node.ownerDocument && node.ownerDocument.defaultView || window;
362
- }
363
-
364
- /**
365
- * @license
366
- * Copyright Google LLC All Rights Reserved.
367
- *
368
- * Use of this source code is governed by an MIT-style license that can be
369
- * found in the LICENSE file at https://angular.io/license
370
- */
371
- /** Coerces a data-bound value (typically a string) to a boolean. */
372
- function coerceBooleanProperty(value) {
373
- return value != null && `${value}` !== 'false';
374
- }
375
-
376
- /**
377
- * @license
378
- * Copyright Google LLC All Rights Reserved.
379
- *
380
- * Use of this source code is governed by an MIT-style license that can be
381
- * found in the LICENSE file at https://angular.io/license
382
- */
383
- /**
384
- * Class that allows for trapping focus within a DOM element.
385
- *
386
- * This class currently uses a relatively simple approach to focus trapping.
387
- * It assumes that the tab order is the same as DOM order, which is not necessarily true.
388
- * Things like `tabIndex > 0`, flex `order`, and shadow roots can cause the two to misalign.
389
- *
390
- * @deprecated Use `ConfigurableFocusTrap` instead.
391
- * @breaking-change for 11.0.0 Remove this class.
392
- */
393
- class FocusTrap {
394
- constructor(_element, _checker, _ngZone, _document, deferAnchors = false) {
395
- this._element = _element;
396
- this._checker = _checker;
397
- this._ngZone = _ngZone;
398
- this._document = _document;
399
- this._hasAttached = false;
400
- // Event listeners for the anchors. Need to be regular functions so that we can unbind them later.
401
- this.startAnchorListener = () => this.focusLastTabbableElement();
402
- this.endAnchorListener = () => this.focusFirstTabbableElement();
403
- this._enabled = true;
404
- if (!deferAnchors) {
405
- this.attachAnchors();
406
- }
407
- }
408
- /** Whether the focus trap is active. */
409
- get enabled() {
410
- return this._enabled;
411
- }
412
- set enabled(value) {
413
- this._enabled = value;
414
- if (this._startAnchor && this._endAnchor) {
415
- this._toggleAnchorTabIndex(value, this._startAnchor);
416
- this._toggleAnchorTabIndex(value, this._endAnchor);
417
- }
418
- }
419
- /** Destroys the focus trap by cleaning up the anchors. */
420
- destroy() {
421
- const startAnchor = this._startAnchor;
422
- const endAnchor = this._endAnchor;
423
- if (startAnchor) {
424
- startAnchor.removeEventListener('focus', this.startAnchorListener);
425
- if (startAnchor.parentNode) {
426
- startAnchor.parentNode.removeChild(startAnchor);
427
- }
428
- }
429
- if (endAnchor) {
430
- endAnchor.removeEventListener('focus', this.endAnchorListener);
431
- if (endAnchor.parentNode) {
432
- endAnchor.parentNode.removeChild(endAnchor);
433
- }
434
- }
435
- this._startAnchor = this._endAnchor = null;
436
- this._hasAttached = false;
437
- }
438
- /**
439
- * Inserts the anchors into the DOM. This is usually done automatically
440
- * in the constructor, but can be deferred for cases like directives with `*ngIf`.
441
- * @returns Whether the focus trap managed to attach successfuly. This may not be the case
442
- * if the target element isn't currently in the DOM.
443
- */
444
- attachAnchors() {
445
- // If we're not on the browser, there can be no focus to trap.
446
- if (this._hasAttached) {
447
- return true;
448
- }
449
- this._ngZone.runOutsideAngular(() => {
450
- if (!this._startAnchor) {
451
- this._startAnchor = this._createAnchor();
452
- this._startAnchor.addEventListener('focus', this.startAnchorListener);
453
- }
454
- if (!this._endAnchor) {
455
- this._endAnchor = this._createAnchor();
456
- this._endAnchor.addEventListener('focus', this.endAnchorListener);
457
- }
458
- });
459
- if (this._element.parentNode) {
460
- this._element.parentNode.insertBefore(this._startAnchor, this._element);
461
- this._element.parentNode.insertBefore(this._endAnchor, this._element.nextSibling);
462
- this._hasAttached = true;
463
- }
464
- return this._hasAttached;
465
- }
466
- /**
467
- * Waits for the zone to stabilize, then either focuses the first element that the
468
- * user specified, or the first tabbable element.
469
- * @returns Returns a promise that resolves with a boolean, depending
470
- * on whether focus was moved successfully.
471
- */
472
- focusInitialElementWhenReady() {
473
- return new Promise(resolve => {
474
- this._executeOnStable(() => resolve(this.focusInitialElement()));
475
- });
476
- }
477
- /**
478
- * Waits for the zone to stabilize, then focuses
479
- * the first tabbable element within the focus trap region.
480
- * @returns Returns a promise that resolves with a boolean, depending
481
- * on whether focus was moved successfully.
482
- */
483
- focusFirstTabbableElementWhenReady() {
484
- return new Promise(resolve => {
485
- this._executeOnStable(() => resolve(this.focusFirstTabbableElement()));
486
- });
487
- }
488
- /**
489
- * Waits for the zone to stabilize, then focuses
490
- * the last tabbable element within the focus trap region.
491
- * @returns Returns a promise that resolves with a boolean, depending
492
- * on whether focus was moved successfully.
493
- */
494
- focusLastTabbableElementWhenReady() {
495
- return new Promise(resolve => {
496
- this._executeOnStable(() => resolve(this.focusLastTabbableElement()));
497
- });
498
- }
499
- /**
500
- * Get the specified boundary element of the trapped region.
501
- * @param bound The boundary to get (start or end of trapped region).
502
- * @returns The boundary element.
503
- */
504
- _getRegionBoundary(bound) {
505
- // Contains the deprecated version of selector, for temporary backwards comparability.
506
- let markers = this._element.querySelectorAll(`[cdk-focus-region-${bound}], ` +
507
- `[cdkFocusRegion${bound}], ` +
508
- `[cdk-focus-${bound}]`);
509
- for (let i = 0; i < markers.length; i++) {
510
- // @breaking-change 8.0.0
511
- if (markers[i].hasAttribute(`cdk-focus-${bound}`)) {
512
- console.warn(`Found use of deprecated attribute 'cdk-focus-${bound}', ` +
513
- `use 'cdkFocusRegion${bound}' instead. The deprecated ` +
514
- `attribute will be removed in 8.0.0.`, markers[i]);
515
- }
516
- else if (markers[i].hasAttribute(`cdk-focus-region-${bound}`)) {
517
- console.warn(`Found use of deprecated attribute 'cdk-focus-region-${bound}', ` +
518
- `use 'cdkFocusRegion${bound}' instead. The deprecated attribute ` +
519
- `will be removed in 8.0.0.`, markers[i]);
520
- }
521
- }
522
- if (bound == 'start') {
523
- return markers.length ? markers[0] : this._getFirstTabbableElement(this._element);
524
- }
525
- return markers.length ?
526
- markers[markers.length - 1] : this._getLastTabbableElement(this._element);
527
- }
528
- /**
529
- * Focuses the element that should be focused when the focus trap is initialized.
530
- * @returns Whether focus was moved successfully.
531
- */
532
- focusInitialElement() {
533
- // Contains the deprecated version of selector, for temporary backwards comparability.
534
- const redirectToElement = this._element.querySelector(`[cdk-focus-initial], ` +
535
- `[cdkFocusInitial]`);
536
- if (redirectToElement) {
537
- // @breaking-change 8.0.0
538
- if (redirectToElement.hasAttribute(`cdk-focus-initial`)) {
539
- console.warn(`Found use of deprecated attribute 'cdk-focus-initial', ` +
540
- `use 'cdkFocusInitial' instead. The deprecated attribute ` +
541
- `will be removed in 8.0.0`, redirectToElement);
542
- }
543
- // Warn the consumer if the element they've pointed to
544
- // isn't focusable, when not in production mode.
545
- if (!this._checker.isFocusable(redirectToElement)) {
546
- const focusableChild = this._getFirstTabbableElement(redirectToElement);
547
- focusableChild === null || focusableChild === void 0 ? void 0 : focusableChild.focus();
548
- return !!focusableChild;
549
- }
550
- redirectToElement.focus();
551
- return true;
552
- }
553
- return this.focusFirstTabbableElement();
554
- }
555
- /**
556
- * Focuses the first tabbable element within the focus trap region.
557
- * @returns Whether focus was moved successfully.
558
- */
559
- focusFirstTabbableElement() {
560
- const redirectToElement = this._getRegionBoundary('start');
561
- if (redirectToElement) {
562
- redirectToElement.focus();
563
- }
564
- return !!redirectToElement;
565
- }
566
- /**
567
- * Focuses the last tabbable element within the focus trap region.
568
- * @returns Whether focus was moved successfully.
569
- */
570
- focusLastTabbableElement() {
571
- const redirectToElement = this._getRegionBoundary('end');
572
- if (redirectToElement) {
573
- redirectToElement.focus();
574
- }
575
- return !!redirectToElement;
576
- }
577
- /**
578
- * Checks whether the focus trap has successfully been attached.
579
- */
580
- hasAttached() {
581
- return this._hasAttached;
582
- }
583
- /** Get the first tabbable element from a DOM subtree (inclusive). */
584
- _getFirstTabbableElement(root) {
585
- if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
586
- return root;
587
- }
588
- // Iterate in DOM order. Note that IE doesn't have `children` for SVG so we fall
589
- // back to `childNodes` which includes text nodes, comments etc.
590
- let children = root.children || root.childNodes;
591
- for (let i = 0; i < children.length; i++) {
592
- let tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?
593
- this._getFirstTabbableElement(children[i]) :
594
- null;
595
- if (tabbableChild) {
596
- return tabbableChild;
597
- }
598
- }
599
- return null;
600
- }
601
- /** Get the last tabbable element from a DOM subtree (inclusive). */
602
- _getLastTabbableElement(root) {
603
- if (this._checker.isFocusable(root) && this._checker.isTabbable(root)) {
604
- return root;
605
- }
606
- // Iterate in reverse DOM order.
607
- let children = root.children || root.childNodes;
608
- for (let i = children.length - 1; i >= 0; i--) {
609
- let tabbableChild = children[i].nodeType === this._document.ELEMENT_NODE ?
610
- this._getLastTabbableElement(children[i]) :
611
- null;
612
- if (tabbableChild) {
613
- return tabbableChild;
614
- }
615
- }
616
- return null;
617
- }
618
- /** Creates an anchor element. */
619
- _createAnchor() {
620
- const anchor = this._document.createElement('div');
621
- this._toggleAnchorTabIndex(this._enabled, anchor);
622
- anchor.classList.add('cdk-visually-hidden');
623
- anchor.classList.add('cdk-focus-trap-anchor');
624
- anchor.setAttribute('aria-hidden', 'true');
625
- return anchor;
626
- }
627
- /**
628
- * Toggles the `tabindex` of an anchor, based on the enabled state of the focus trap.
629
- * @param isEnabled Whether the focus trap is enabled.
630
- * @param anchor Anchor on which to toggle the tabindex.
631
- */
632
- _toggleAnchorTabIndex(isEnabled, anchor) {
633
- // Remove the tabindex completely, rather than setting it to -1, because if the
634
- // element has a tabindex, the user might still hit it when navigating with the arrow keys.
635
- isEnabled ? anchor.setAttribute('tabindex', '0') : anchor.removeAttribute('tabindex');
636
- }
637
- /**
638
- * Toggles the`tabindex` of both anchors to either trap Tab focus or allow it to escape.
639
- * @param enabled: Whether the anchors should trap Tab.
640
- */
641
- toggleAnchors(enabled) {
642
- if (this._startAnchor && this._endAnchor) {
643
- this._toggleAnchorTabIndex(enabled, this._startAnchor);
644
- this._toggleAnchorTabIndex(enabled, this._endAnchor);
645
- }
646
- }
647
- /** Executes a function when the zone is stable. */
648
- _executeOnStable(fn) {
649
- if (this._ngZone.isStable) {
650
- fn();
651
- }
652
- else {
653
- this._ngZone.onStable.pipe(take(1)).subscribe(fn);
654
- }
655
- }
656
- }
657
- /**
658
- * Factory that allows easy instantiation of focus traps.
659
- * @deprecated Use `ConfigurableFocusTrapFactory` instead.
660
- * @breaking-change for 11.0.0 Remove this class.
661
- */
662
- class FocusTrapFactory {
663
- constructor(_checker, _ngZone, _document) {
664
- this._checker = _checker;
665
- this._ngZone = _ngZone;
666
- this._document = _document;
667
- }
668
- /**
669
- * Creates a focus-trapped region around the given element.
670
- * @param element The element around which focus will be trapped.
671
- * @param deferCaptureElements Defers the creation of focus-capturing elements to be done
672
- * manually by the user.
673
- * @returns The created focus trap instance.
674
- */
675
- create(element, deferCaptureElements = false) {
676
- return new FocusTrap(element, this._checker, this._ngZone, this._document, deferCaptureElements);
677
- }
678
- }
679
- FocusTrapFactory.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapFactory, deps: [{ token: InteractivityChecker }, { token: i0.NgZone }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Injectable });
680
- FocusTrapFactory.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapFactory, providedIn: 'root' });
681
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapFactory, decorators: [{
682
- type: Injectable,
683
- args: [{ providedIn: 'root' }]
684
- }], ctorParameters: function () {
685
- return [{ type: InteractivityChecker }, { type: i0.NgZone }, { type: undefined, decorators: [{
686
- type: Inject,
687
- args: [DOCUMENT]
688
- }] }];
689
- } });
690
- /** Directive for trapping focus within a region. */
691
- class FocusTrapDirective {
692
- constructor(_elementRef, _focusTrapFactory, _document) {
693
- this._elementRef = _elementRef;
694
- this._focusTrapFactory = _focusTrapFactory;
695
- /** Previously focused element to restore focus to upon destroy when using autoCapture. */
696
- this._previouslyFocusedElement = null;
697
- this._autoCapture = false;
698
- this._document = _document;
699
- this.focusTrap = this._focusTrapFactory.create(this._elementRef.nativeElement, true);
700
- }
701
- /** Whether the focus trap is active. */
702
- get enabled() {
703
- return this.focusTrap.enabled;
704
- }
705
- set enabled(value) {
706
- this.focusTrap.enabled = coerceBooleanProperty(value);
707
- }
708
- /**
709
- * Whether the directive should automatically move focus into the trapped region upon
710
- * initialization and return focus to the previous activeElement upon destruction.
711
- */
712
- get autoCapture() {
713
- return this._autoCapture;
714
- }
715
- set autoCapture(value) {
716
- this._autoCapture = coerceBooleanProperty(value);
717
- }
718
- ngOnDestroy() {
719
- this.focusTrap.destroy();
720
- // If we stored a previously focused element when using autoCapture, return focus to that
721
- // element now that the trapped region is being destroyed.
722
- if (this._previouslyFocusedElement) {
723
- this._previouslyFocusedElement.focus();
724
- this._previouslyFocusedElement = null;
725
- }
726
- }
727
- ngAfterContentInit() {
728
- this.focusTrap.attachAnchors();
729
- if (this.autoCapture) {
730
- this._captureFocus();
731
- }
732
- }
733
- ngDoCheck() {
734
- if (!this.focusTrap.hasAttached()) {
735
- this.focusTrap.attachAnchors();
736
- }
737
- }
738
- ngOnChanges(changes) {
739
- const autoCaptureChange = changes['autoCapture'];
740
- if (autoCaptureChange && !autoCaptureChange.firstChange && this.autoCapture &&
741
- this.focusTrap.hasAttached()) {
742
- this._captureFocus();
743
- }
744
- }
745
- _captureFocus() {
746
- this._previouslyFocusedElement = this._document.activeElement;
747
- this.focusTrap.focusInitialElementWhenReady();
748
- }
749
- }
750
- FocusTrapDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapDirective, deps: [{ token: i0.ElementRef }, { token: FocusTrapFactory }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
751
- FocusTrapDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.3", type: FocusTrapDirective, selector: "[focusTrap]", inputs: { enabled: ["cdkTrapFocus", "enabled"], autoCapture: ["cdkTrapFocusAutoCapture", "autoCapture"] }, exportAs: ["focusTrap"], usesOnChanges: true, ngImport: i0 });
752
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapDirective, decorators: [{
753
- type: Directive,
754
- args: [{
755
- selector: '[focusTrap]',
756
- exportAs: 'focusTrap'
757
- }]
758
- }], ctorParameters: function () {
759
- return [{ type: i0.ElementRef }, { type: FocusTrapFactory }, { type: undefined, decorators: [{
760
- type: Inject,
761
- args: [DOCUMENT]
762
- }] }];
763
- }, propDecorators: { enabled: [{
764
- type: Input,
765
- args: ['cdkTrapFocus']
766
- }], autoCapture: [{
767
- type: Input,
768
- args: ['cdkTrapFocusAutoCapture']
769
- }] } });
770
-
771
- class FocusTrapModule {
772
- static forRoot() {
773
- return {
774
- ngModule: FocusTrapModule,
775
- providers: [
776
- FocusTrapManager,
777
- Platform,
778
- InteractivityChecker
779
- ]
780
- };
781
- }
782
- }
783
- FocusTrapModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
784
- FocusTrapModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapModule, declarations: [FocusTrapDirective], imports: [CommonModule], exports: [FocusTrapDirective] });
785
- FocusTrapModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapModule, imports: [CommonModule] });
786
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.3", ngImport: i0, type: FocusTrapModule, decorators: [{
787
- type: NgModule,
788
- args: [{
789
- imports: [CommonModule],
790
- declarations: [FocusTrapDirective],
791
- exports: [FocusTrapDirective]
792
- }]
793
- }] });
794
-
795
- /**
796
- * Generated bundle index. Do not edit.
797
- */
798
-
799
- export { FocusTrap, FocusTrapDirective, FocusTrapModule };
800
- //# sourceMappingURL=ngx-bootstrap-focus-trap.mjs.map