ngx-bootstrap 3.1.3 → 3.1.4

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 (154) hide show
  1. package/CHANGELOG.md +67 -0
  2. package/CONTRIBUTING.md +1 -1
  3. package/README.md +5 -5
  4. package/accordion/package.json +1 -1
  5. package/alert/package.json +1 -1
  6. package/bundles/ngx-bootstrap.es2015.js +117 -23
  7. package/bundles/ngx-bootstrap.es2015.js.map +1 -1
  8. package/buttons/package.json +1 -1
  9. package/carousel/package.json +1 -1
  10. package/chronos/package.json +1 -1
  11. package/collapse/package.json +1 -1
  12. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js +10 -1
  13. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.js.map +1 -1
  14. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js +1 -1
  15. package/component-loader/bundles/ngx-bootstrap-component-loader.umd.min.js.map +1 -1
  16. package/component-loader/esm2015/component-loader.class.js +11 -2
  17. package/component-loader/esm2015/listen-options.model.js +3 -1
  18. package/component-loader/esm5/component-loader.class.js +11 -2
  19. package/component-loader/esm5/listen-options.model.js +3 -1
  20. package/component-loader/fesm2015/ngx-bootstrap-component-loader.js +11 -2
  21. package/component-loader/fesm2015/ngx-bootstrap-component-loader.js.map +1 -1
  22. package/component-loader/fesm5/ngx-bootstrap-component-loader.js +11 -2
  23. package/component-loader/fesm5/ngx-bootstrap-component-loader.js.map +1 -1
  24. package/component-loader/listen-options.model.d.ts +1 -0
  25. package/component-loader/ngx-bootstrap-component-loader.metadata.json +1 -1
  26. package/component-loader/package.json +1 -1
  27. package/datepicker/bs-datepicker.component.d.ts +1 -0
  28. package/datepicker/bs-datepicker.config.d.ts +4 -0
  29. package/datepicker/bs-datepicker.css +5 -6
  30. package/datepicker/bs-datepicker.css.map +2 -2
  31. package/datepicker/bs-datepicker.module.d.ts +0 -1
  32. package/datepicker/bs-datepicker.scss +7 -8
  33. package/datepicker/bs-daterangepicker.component.d.ts +1 -0
  34. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js +42 -9
  35. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.js.map +1 -1
  36. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js +1 -1
  37. package/datepicker/bundles/ngx-bootstrap-datepicker.umd.min.js.map +1 -1
  38. package/datepicker/esm2015/bs-datepicker-input.directive.js +2 -1
  39. package/datepicker/esm2015/bs-datepicker.component.js +6 -1
  40. package/datepicker/esm2015/bs-datepicker.config.js +6 -1
  41. package/datepicker/esm2015/bs-datepicker.module.js +1 -9
  42. package/datepicker/esm2015/bs-daterangepicker-input.directive.js +9 -4
  43. package/datepicker/esm2015/bs-daterangepicker.component.js +6 -1
  44. package/datepicker/esm2015/engine/flag-days-calendar.js +5 -2
  45. package/datepicker/esm2015/models/index.js +3 -1
  46. package/datepicker/esm2015/themes/bs/bs-datepicker-day-decorator.directive.js +32 -2
  47. package/datepicker/esm5/bs-datepicker-input.directive.js +2 -1
  48. package/datepicker/esm5/bs-datepicker.component.js +6 -1
  49. package/datepicker/esm5/bs-datepicker.config.js +6 -1
  50. package/datepicker/esm5/bs-datepicker.module.js +1 -5
  51. package/datepicker/esm5/bs-daterangepicker-input.directive.js +9 -4
  52. package/datepicker/esm5/bs-daterangepicker.component.js +6 -1
  53. package/datepicker/esm5/engine/flag-days-calendar.js +5 -2
  54. package/datepicker/esm5/models/index.js +3 -1
  55. package/datepicker/esm5/themes/bs/bs-datepicker-day-decorator.directive.js +29 -3
  56. package/datepicker/fesm2015/ngx-bootstrap-datepicker.js +44 -13
  57. package/datepicker/fesm2015/ngx-bootstrap-datepicker.js.map +1 -1
  58. package/datepicker/fesm5/ngx-bootstrap-datepicker.js +41 -10
  59. package/datepicker/fesm5/ngx-bootstrap-datepicker.js.map +1 -1
  60. package/datepicker/models/index.d.ts +1 -0
  61. package/datepicker/ngx-bootstrap-datepicker.metadata.json +1 -1
  62. package/datepicker/package.json +1 -1
  63. package/datepicker/themes/bs/bs-datepicker-day-decorator.directive.d.ts +8 -1
  64. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js +3 -1
  65. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.js.map +1 -1
  66. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js +1 -1
  67. package/dropdown/bundles/ngx-bootstrap-dropdown.umd.min.js.map +1 -1
  68. package/dropdown/esm2015/bs-dropdown.directive.js +3 -1
  69. package/dropdown/esm5/bs-dropdown.directive.js +3 -1
  70. package/dropdown/fesm2015/ngx-bootstrap-dropdown.js +3 -1
  71. package/dropdown/fesm2015/ngx-bootstrap-dropdown.js.map +1 -1
  72. package/dropdown/fesm5/ngx-bootstrap-dropdown.js +3 -1
  73. package/dropdown/fesm5/ngx-bootstrap-dropdown.js.map +1 -1
  74. package/dropdown/package.json +1 -1
  75. package/locale/package.json +1 -1
  76. package/mini-ngrx/package.json +1 -1
  77. package/modal/package.json +1 -1
  78. package/package.json +2 -2
  79. package/pagination/package.json +1 -1
  80. package/popover/bundles/ngx-bootstrap-popover.umd.js +2 -2
  81. package/popover/bundles/ngx-bootstrap-popover.umd.js.map +1 -1
  82. package/popover/bundles/ngx-bootstrap-popover.umd.min.js +1 -1
  83. package/popover/bundles/ngx-bootstrap-popover.umd.min.js.map +1 -1
  84. package/popover/esm2015/popover-container.component.js +3 -3
  85. package/popover/esm5/popover-container.component.js +2 -2
  86. package/popover/fesm2015/ngx-bootstrap-popover.js +3 -3
  87. package/popover/fesm2015/ngx-bootstrap-popover.js.map +1 -1
  88. package/popover/fesm5/ngx-bootstrap-popover.js +2 -2
  89. package/popover/fesm5/ngx-bootstrap-popover.js.map +1 -1
  90. package/popover/ngx-bootstrap-popover.metadata.json +1 -1
  91. package/popover/package.json +1 -1
  92. package/positioning/package.json +1 -1
  93. package/progressbar/package.json +1 -1
  94. package/rating/package.json +1 -1
  95. package/sortable/package.json +1 -1
  96. package/tabs/package.json +1 -1
  97. package/timepicker/package.json +1 -1
  98. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js +10 -4
  99. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.js.map +1 -1
  100. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js +1 -1
  101. package/tooltip/bundles/ngx-bootstrap-tooltip.umd.min.js.map +1 -1
  102. package/tooltip/esm2015/tooltip-container.component.js +6 -3
  103. package/tooltip/esm2015/tooltip.directive.js +13 -4
  104. package/tooltip/esm5/tooltip-container.component.js +5 -2
  105. package/tooltip/esm5/tooltip.directive.js +13 -4
  106. package/tooltip/fesm2015/ngx-bootstrap-tooltip.js +12 -6
  107. package/tooltip/fesm2015/ngx-bootstrap-tooltip.js.map +1 -1
  108. package/tooltip/fesm5/ngx-bootstrap-tooltip.js +11 -5
  109. package/tooltip/fesm5/ngx-bootstrap-tooltip.js.map +1 -1
  110. package/tooltip/ngx-bootstrap-tooltip.metadata.json +1 -1
  111. package/tooltip/package.json +1 -1
  112. package/tooltip/tooltip-container.component.d.ts +1 -0
  113. package/tooltip/tooltip.directive.d.ts +2 -0
  114. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js +35 -7
  115. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.js.map +1 -1
  116. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js +1 -1
  117. package/typeahead/bundles/ngx-bootstrap-typeahead.umd.min.js.map +1 -1
  118. package/typeahead/esm2015/ngx-bootstrap-typeahead.js +2 -2
  119. package/typeahead/esm2015/public_api.js +2 -1
  120. package/typeahead/esm2015/typeahead.config.js +35 -0
  121. package/typeahead/esm2015/typeahead.directive.js +21 -7
  122. package/typeahead/esm2015/typeahead.module.js +3 -2
  123. package/typeahead/esm5/ngx-bootstrap-typeahead.js +2 -2
  124. package/typeahead/esm5/public_api.js +2 -1
  125. package/typeahead/esm5/typeahead.config.js +37 -0
  126. package/typeahead/esm5/typeahead.directive.js +20 -7
  127. package/typeahead/esm5/typeahead.module.js +3 -2
  128. package/typeahead/fesm2015/ngx-bootstrap-typeahead.js +37 -10
  129. package/typeahead/fesm2015/ngx-bootstrap-typeahead.js.map +1 -1
  130. package/typeahead/fesm5/ngx-bootstrap-typeahead.js +37 -10
  131. package/typeahead/fesm5/ngx-bootstrap-typeahead.js.map +1 -1
  132. package/typeahead/ngx-bootstrap-typeahead.metadata.json +1 -1
  133. package/typeahead/package.json +1 -1
  134. package/typeahead/public_api.d.ts +1 -0
  135. package/typeahead/typeahead.config.d.ts +5 -0
  136. package/typeahead/typeahead.directive.d.ts +4 -1
  137. package/utils/bundles/ngx-bootstrap-utils.umd.js +22 -1
  138. package/utils/bundles/ngx-bootstrap-utils.umd.js.map +1 -1
  139. package/utils/bundles/ngx-bootstrap-utils.umd.min.js +1 -1
  140. package/utils/bundles/ngx-bootstrap-utils.umd.min.js.map +1 -1
  141. package/utils/esm2015/ngx-bootstrap-utils.js +2 -2
  142. package/utils/esm2015/public_api.js +2 -2
  143. package/utils/esm2015/triggers.js +23 -1
  144. package/utils/esm5/ngx-bootstrap-utils.js +2 -2
  145. package/utils/esm5/public_api.js +2 -2
  146. package/utils/esm5/triggers.js +23 -1
  147. package/utils/fesm2015/ngx-bootstrap-utils.js +22 -2
  148. package/utils/fesm2015/ngx-bootstrap-utils.js.map +1 -1
  149. package/utils/fesm5/ngx-bootstrap-utils.js +22 -2
  150. package/utils/fesm5/ngx-bootstrap-utils.js.map +1 -1
  151. package/utils/ngx-bootstrap-utils.metadata.json +1 -1
  152. package/utils/package.json +1 -1
  153. package/utils/public_api.d.ts +1 -1
  154. package/utils/triggers.d.ts +2 -0
package/CHANGELOG.md CHANGED
@@ -1,3 +1,70 @@
1
+ <a name="3.1.4"></a>
2
+ ## [3.1.4](https://github.com/valor-software/ngx-bootstrap/compare/v3.1.3...v3.1.4) (2018-12-27)
3
+
4
+
5
+ ### Bug Fixes
6
+
7
+ * **core:** remove important properties for styles ([#4939](https://github.com/valor-software/ngx-bootstrap/issues/4939)) ([46d1d23](https://github.com/valor-software/ngx-bootstrap/commit/46d1d23))
8
+ * **datepicker:** remove min-max logic from formats demo ([#4967](https://github.com/valor-software/ngx-bootstrap/issues/4967)) ([ac7b7a3](https://github.com/valor-software/ngx-bootstrap/commit/ac7b7a3))
9
+ * **demo:** The typeaheadAsync property was missing, which I found to be necessary for the dropdown/functionality to be used. ([#4662](https://github.com/valor-software/ngx-bootstrap/issues/4662)) ([9fe4acc](https://github.com/valor-software/ngx-bootstrap/commit/9fe4acc))
10
+ * **dropdown:** fix bottom position for dropdownlist ([#4626](https://github.com/valor-software/ngx-bootstrap/issues/4626)) ([6e04b33](https://github.com/valor-software/ngx-bootstrap/commit/6e04b33)), closes [#4545](https://github.com/valor-software/ngx-bootstrap/issues/4545)
11
+ * **popover/tooltip:** use translate for relative offset positioning for tooltip and popover arrows ([#4850](https://github.com/valor-software/ngx-bootstrap/issues/4850)) ([92efe9a](https://github.com/valor-software/ngx-bootstrap/commit/92efe9a)), closes [#4849](https://github.com/valor-software/ngx-bootstrap/issues/4849)
12
+ * **timepicker:** demo enhancement to custom meridian example ([#4769](https://github.com/valor-software/ngx-bootstrap/issues/4769)) ([8c3cb31](https://github.com/valor-software/ngx-bootstrap/commit/8c3cb31))
13
+ * **tooltip:** tooltipEnable inconsistent value ([#4911](https://github.com/valor-software/ngx-bootstrap/issues/4911)) ([acb9dc3](https://github.com/valor-software/ngx-bootstrap/commit/acb9dc3))
14
+ * **typeahead:** fix typeahead's breaking if typeahead property receives NULL ([#4957](https://github.com/valor-software/ngx-bootstrap/issues/4957)) ([3f536bf](https://github.com/valor-software/ngx-bootstrap/commit/3f536bf)), closes [#4417](https://github.com/valor-software/ngx-bootstrap/issues/4417)
15
+
16
+
17
+ ### Features
18
+
19
+ * **datepicker:** add custom class via bsConfig, add demo also ([#4062](https://github.com/valor-software/ngx-bootstrap/issues/4062)) ([d2a5c25](https://github.com/valor-software/ngx-bootstrap/commit/d2a5c25))
20
+ * **datepicker:** esc can close datepicker ([#3966](https://github.com/valor-software/ngx-bootstrap/issues/3966)) ([3ee6eac](https://github.com/valor-software/ngx-bootstrap/commit/3ee6eac)), closes [#3890](https://github.com/valor-software/ngx-bootstrap/issues/3890)
21
+ * **demo:** update landing page ([#4981](https://github.com/valor-software/ngx-bootstrap/issues/4981)) ([ab87b3d](https://github.com/valor-software/ngx-bootstrap/commit/ab87b3d))
22
+ * **demo:** update landing page ([#4972](https://github.com/valor-software/ngx-bootstrap/issues/4972)) ([a6f27ab](https://github.com/valor-software/ngx-bootstrap/commit/a6f27ab)), closes [#4970](https://github.com/valor-software/ngx-bootstrap/issues/4970)
23
+ * **doc:** reverse of docs list ([#4912](https://github.com/valor-software/ngx-bootstrap/issues/4912)) ([f17459f](https://github.com/valor-software/ngx-bootstrap/commit/f17459f))
24
+ * **tests:** add full e2e coverage for Progressbar component ([#4924](https://github.com/valor-software/ngx-bootstrap/issues/4924)) ([3386261](https://github.com/valor-software/ngx-bootstrap/commit/3386261))
25
+ * **tests:** add support for cypress dashboard for debugging ([#4908](https://github.com/valor-software/ngx-bootstrap/issues/4908)) ([055220e](https://github.com/valor-software/ngx-bootstrap/commit/055220e))
26
+ * **tests:** cypress update ([#4919](https://github.com/valor-software/ngx-bootstrap/issues/4919)) ([c545860](https://github.com/valor-software/ngx-bootstrap/commit/c545860))
27
+ * **typeahead:** optionally do not hide the results on blur ([#4783](https://github.com/valor-software/ngx-bootstrap/issues/4783)) ([b6e3b62](https://github.com/valor-software/ngx-bootstrap/commit/b6e3b62)), closes [#2059](https://github.com/valor-software/ngx-bootstrap/issues/2059)
28
+
29
+
30
+
31
+ <a name="3.1.3"></a>
32
+ ## [3.1.3](https://github.com/valor-software/ngx-bootstrap/compare/v3.1.2...v3.1.3) (2018-12-07)
33
+
34
+
35
+ ### Bug Fixes
36
+
37
+ * **ci:** update dep on npm-run-all to fix link to event-stream 3.3.6 ([#4882](https://github.com/valor-software/ngx-bootstrap/issues/4882)) ([0de72f9](https://github.com/valor-software/ngx-bootstrap/commit/0de72f9))
38
+ * **components-spec:** fix paths in spec.ts files ([#4859](https://github.com/valor-software/ngx-bootstrap/issues/4859)) ([1662554](https://github.com/valor-software/ngx-bootstrap/commit/1662554))
39
+ * **datepicker:** cursor fixes for weeks & disabled dates in datepicker ([#4905](https://github.com/valor-software/ngx-bootstrap/issues/4905)) ([5c0efdd](https://github.com/valor-software/ngx-bootstrap/commit/5c0efdd))
40
+ * **datepicker:** fix datepickers cypress test ([#4771](https://github.com/valor-software/ngx-bootstrap/issues/4771)) ([9671c7e](https://github.com/valor-software/ngx-bootstrap/commit/9671c7e))
41
+ * **datepicker:** fix responsive on Date Range Picker ([#4127](https://github.com/valor-software/ngx-bootstrap/issues/4127)) ([#4891](https://github.com/valor-software/ngx-bootstrap/issues/4891)) ([53b88c0](https://github.com/valor-software/ngx-bootstrap/commit/53b88c0))
42
+ * **datepicker:** select correct month and year from month picker view… ([#4501](https://github.com/valor-software/ngx-bootstrap/issues/4501)) ([3a17cc3](https://github.com/valor-software/ngx-bootstrap/commit/3a17cc3))
43
+ * **dropdown:** fix dropdown inside click ([#4609](https://github.com/valor-software/ngx-bootstrap/issues/4609)) ([75f7105](https://github.com/valor-software/ngx-bootstrap/commit/75f7105)), closes [#1933](https://github.com/valor-software/ngx-bootstrap/issues/1933)
44
+ * **schematics:** fix component option ([#4892](https://github.com/valor-software/ngx-bootstrap/issues/4892)) ([6cc0ce6](https://github.com/valor-software/ngx-bootstrap/commit/6cc0ce6))
45
+ * **tests:** datepicker smoke test for reactive form ([#4895](https://github.com/valor-software/ngx-bootstrap/issues/4895)) ([55862b8](https://github.com/valor-software/ngx-bootstrap/commit/55862b8))
46
+ * **tests:** fix for clickOnBtn method name ([#4873](https://github.com/valor-software/ngx-bootstrap/issues/4873)) ([8b1ebf1](https://github.com/valor-software/ngx-bootstrap/commit/8b1ebf1))
47
+ * **tests:** remove check for ng-reflect-model, reconfigure travis for test run ([#4885](https://github.com/valor-software/ngx-bootstrap/issues/4885)) ([b2bd459](https://github.com/valor-software/ngx-bootstrap/commit/b2bd459))
48
+ * **travis:** update deployed instance for correct testing ([#4896](https://github.com/valor-software/ngx-bootstrap/issues/4896)) ([48d1b3d](https://github.com/valor-software/ngx-bootstrap/commit/48d1b3d))
49
+
50
+
51
+ ### Features
52
+
53
+ * **ci:** speed up travis builds ([#4883](https://github.com/valor-software/ngx-bootstrap/issues/4883)) ([c0b1870](https://github.com/valor-software/ngx-bootstrap/commit/c0b1870))
54
+ * **common:** add strict mode support ([#4869](https://github.com/valor-software/ngx-bootstrap/issues/4869)) ([58d4517](https://github.com/valor-software/ngx-bootstrap/commit/58d4517)), closes [#4848](https://github.com/valor-software/ngx-bootstrap/issues/4848)
55
+ * **datepicker:** add min mode ([#4874](https://github.com/valor-software/ngx-bootstrap/issues/4874)) ([1183875](https://github.com/valor-software/ngx-bootstrap/commit/1183875)), closes [#3354](https://github.com/valor-software/ngx-bootstrap/issues/3354) [#2627](https://github.com/valor-software/ngx-bootstrap/issues/2627)
56
+ * **datepicker:** allow to select dates from other months ([#4828](https://github.com/valor-software/ngx-bootstrap/issues/4828)) ([b17926b](https://github.com/valor-software/ngx-bootstrap/commit/b17926b)), closes [#4485](https://github.com/valor-software/ngx-bootstrap/issues/4485) [#3746](https://github.com/valor-software/ngx-bootstrap/issues/3746)
57
+ * **datepicker:** Making it possible to disable certain days in the DatePicker ([#4491](https://github.com/valor-software/ngx-bootstrap/issues/4491)) ([4cc77f8](https://github.com/valor-software/ngx-bootstrap/commit/4cc77f8))
58
+ * **demo:** opportunity to change bs theme by url query ([#4870](https://github.com/valor-software/ngx-bootstrap/issues/4870)) ([0e806e1](https://github.com/valor-software/ngx-bootstrap/commit/0e806e1))
59
+ * **dropdown:** add insideClick property to config ([#4898](https://github.com/valor-software/ngx-bootstrap/issues/4898)) ([d6e3534](https://github.com/valor-software/ngx-bootstrap/commit/d6e3534))
60
+ * **modal:** add method to change modal window class ([#4811](https://github.com/valor-software/ngx-bootstrap/issues/4811)) ([2fcdd7f](https://github.com/valor-software/ngx-bootstrap/commit/2fcdd7f)), closes [#2824](https://github.com/valor-software/ngx-bootstrap/issues/2824)
61
+ * **tests:** add 2 test scopes and examples ([#4838](https://github.com/valor-software/ngx-bootstrap/issues/4838)) ([52fc9e8](https://github.com/valor-software/ngx-bootstrap/commit/52fc9e8))
62
+ * **tests:** add full coverage for Collapse component demo ([#4847](https://github.com/valor-software/ngx-bootstrap/issues/4847)) ([bb65d16](https://github.com/valor-software/ngx-bootstrap/commit/bb65d16))
63
+ * **tests:** add full coverage for Pagination component demo ([#4867](https://github.com/valor-software/ngx-bootstrap/issues/4867)) ([30d2734](https://github.com/valor-software/ngx-bootstrap/commit/30d2734))
64
+ * **tests:** add possibility to run e2e tests for different bs versions ([#4886](https://github.com/valor-software/ngx-bootstrap/issues/4886)) ([86436ca](https://github.com/valor-software/ngx-bootstrap/commit/86436ca))
65
+
66
+
67
+
1
68
  <a name="3.1.3"></a>
2
69
  ## [3.1.3](https://github.com/valor-software/ngx-bootstrap/compare/v3.1.2...v3.1.3) (2018-12-07)
3
70
 
package/CONTRIBUTING.md CHANGED
@@ -243,7 +243,7 @@ This `CONTRIBUTING.md` is adapted from the Angular's `CONTRIBUTING.md`, availabl
243
243
  [coc]: https://github.com/valor-software/ngx-bootstrap/blob/development/CODE_OF_CONDUCT.md
244
244
  [commit-message-format]: https://docs.google.com/document/d/1QrDFcIiPjSLDn3EL15IJygNPiHORgU1_OOAqWjiDU5Y/edit#
245
245
  [github]: https://github.com/valor-software/ngx-bootstrap
246
- [slack]: https://ngx-slack.herokuapp.com
246
+ [slack]: https://join.slack.com/t/ngx-home/shared_invite/enQtNTExMTY5MzcwMTM0LWQ5M2Y4OWM0OGJjNmZiOGYyNjFlZTdlOGI1YjcxYWQ2ODhiOTY4NzhiODgwMTIzNDczODIyNWNmM2RlYWRhNTg
247
247
  [js-style-guide]: https://google.github.io/styleguide/jsguide.html
248
248
  [plunker]: http://plnkr.co/edit
249
249
  [stackoverflow]: http://stackoverflow.com/questions/tagged/ngx-bootstrap
package/README.md CHANGED
@@ -12,14 +12,14 @@ Best way to quickly integrate <a href="https://getbootstrap.com/">Bootstrap 3</a
12
12
  <a href="https://travis-ci.org/valor-software/ngx-bootstrap"><img alt="" src="https://travis-ci.org/valor-software/ngx-bootstrap.svg?branch=development"></a>
13
13
 
14
14
  <br/>
15
- <a href="https://ngx-slack.herokuapp.com"><img src="https://ngx-slack.herokuapp.com/badge.svg" alt="slack" ></a>
15
+ <a href="https://join.slack.com/t/ngx-home/shared_invite/enQtNTExMTY5MzcwMTM0LWQ5M2Y4OWM0OGJjNmZiOGYyNjFlZTdlOGI1YjcxYWQ2ODhiOTY4NzhiODgwMTIzNDczODIyNWNmM2RlYWRhNTg"><img src="https://a.slack-edge.com/66f9/img/icons/ios-256.png" width="25" height="25" alt="slack" ></a>
16
16
  </p>
17
17
 
18
18
  ## Links
19
19
 
20
20
  - [Documentation](http://valor-software.com/ngx-bootstrap/)
21
21
  - [Release Notes](https://github.com/valor-software/ngx-bootstrap/blob/development/CHANGELOG.md)
22
- - [Slack Community](https://ngx-slack.herokuapp.com)
22
+ - [Slack Community](https://join.slack.com/t/ngx-home/shared_invite/enQtNTExMTY5MzcwMTM0LWQ5M2Y4OWM0OGJjNmZiOGYyNjFlZTdlOGI1YjcxYWQ2ODhiOTY4NzhiODgwMTIzNDczODIyNWNmM2RlYWRhNTg)
23
23
 
24
24
  <!-- [![codecov](https://codecov.io/gh/valor-software/ngx-bootstrap/branch/development/graph/badge.svg)](https://codecov.io/gh/valor-software/ngx-bootstrap) -->
25
25
 
@@ -157,7 +157,7 @@ If you want to run the demo with Angular Universal:
157
157
  So if you are in trouble, here's where you can look for help.
158
158
 
159
159
  The best place to ask questions is on [StackOverflow (under the `ngx-bootstrap` tag)](https://stackoverflow.com/questions/tagged/ngx-bootstrap)
160
- You can also join [our Slack channel](https://ngx-slack.herokuapp.com/) and link your stackoverflow question there. But try to avoid asking generic help questions directly on Slack since they can easily get lost in the chat. You can also [search among the existing GitHub issues](https://github.com/valor-software/ngx-bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue).
160
+ You can also join [our Slack channel](https://join.slack.com/t/ngx-home/shared_invite/enQtNTExMTY5MzcwMTM0LWQ5M2Y4OWM0OGJjNmZiOGYyNjFlZTdlOGI1YjcxYWQ2ODhiOTY4NzhiODgwMTIzNDczODIyNWNmM2RlYWRhNTg) and link your stackoverflow question there. But try to avoid asking generic help questions directly on Slack since they can easily get lost in the chat. You can also [search among the existing GitHub issues](https://github.com/valor-software/ngx-bootstrap/issues?utf8=%E2%9C%93&q=is%3Aissue).
161
161
 
162
162
  If, **and only if**, none of the above helped, please open a [new issue](https://github.com/valor-software/ngx-bootstrap/issues/new).
163
163
 
@@ -172,8 +172,8 @@ Please read our [contribution guidelines](https://github.com/valor-software/ngx-
172
172
  Please read central `ngx` modules [readme](https://github.com/valor-software/ng2-plans) for details, plans and approach
173
173
 
174
174
  ### Credits
175
- Crossbrowser testing sponsored by [Browser Stack](https://www.browserstack.com)
176
- [<img src="https://camo.githubusercontent.com/a7b268f2785656ab3ca7b1cbb1633ee5affceb8f/68747470733a2f2f64677a6f7139623561736a67312e636c6f756466726f6e742e6e65742f70726f64756374696f6e2f696d616765732f6c61796f75742f6c6f676f2d6865616465722e706e67" alt="Browser Stack" height="31px" style="background: cornflowerblue;">](https://www.browserstack.com)
175
+ Crossbrowser testing sponsored by [Saucelabs](https://saucelabs.com/)
176
+ [<img src="https://saucelabs.com/content/images/circle-logo@2x.png" alt="Saucelabs" width="31" height="31">](https://saucelabs.com/)
177
177
 
178
178
  ### License
179
179
 
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/accordion",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Native Angular Bootstrap Components",
5
5
  "private": true,
6
6
  "main": "bundles/ngx-bootstrap-accordion.umd.js",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ngx-bootstrap/alert",
3
- "version": "3.1.3",
3
+ "version": "3.1.4",
4
4
  "description": "Native Angular Bootstrap Components",
5
5
  "private": true,
6
6
  "main": "bundles/ngx-bootstrap-alert.umd.js",
@@ -3344,6 +3344,26 @@ function registerOutsideClick(renderer, options) {
3344
3344
  options.hide();
3345
3345
  });
3346
3346
  }
3347
+ /**
3348
+ * @param {?} renderer
3349
+ * @param {?} options
3350
+ * @return {?}
3351
+ */
3352
+ function registerEscClick(renderer, options) {
3353
+ if (!options.outsideEsc) {
3354
+ return Function.prototype;
3355
+ }
3356
+ return renderer.listen('document', 'keyup.esc', function (event) {
3357
+ if (options.target && options.target.contains(event.target)) {
3358
+ return undefined;
3359
+ }
3360
+ if (options.targets &&
3361
+ options.targets.some(function (target) { return target.contains(event.target); })) {
3362
+ return undefined;
3363
+ }
3364
+ options.hide();
3365
+ });
3366
+ }
3347
3367
 
3348
3368
  /**
3349
3369
  * @fileoverview added by tsickle
@@ -5601,6 +5621,7 @@ ComponentLoader = /** @class */ (function () {
5601
5621
  var _this = this;
5602
5622
  this.triggers = listenOpts.triggers || this.triggers;
5603
5623
  this._listenOpts.outsideClick = listenOpts.outsideClick;
5624
+ this._listenOpts.outsideEsc = listenOpts.outsideEsc;
5604
5625
  listenOpts.target = listenOpts.target || this._elementRef.nativeElement;
5605
5626
  var /** @type {?} */ hide = (this._listenOpts.hide = function () {
5606
5627
  return listenOpts.hide ? listenOpts.hide() : void _this.hide();
@@ -5671,6 +5692,14 @@ ComponentLoader = /** @class */ (function () {
5671
5692
  });
5672
5693
  });
5673
5694
  }
5695
+ if (this._listenOpts.outsideEsc) {
5696
+ var /** @type {?} */ target = this._componentRef.location.nativeElement;
5697
+ this._globalListener = registerEscClick(this._renderer, {
5698
+ targets: [target, this._elementRef.nativeElement],
5699
+ outsideEsc: this._listenOpts.outsideEsc,
5700
+ hide: function () { return _this._listenOpts.hide(); }
5701
+ });
5702
+ }
5674
5703
  };
5675
5704
  /**
5676
5705
  * @return {?}
@@ -13659,6 +13688,13 @@ var VirtualAction = /*@__PURE__*/ (function (_super) {
13659
13688
  /** PURE_IMPORTS_START PURE_IMPORTS_END */
13660
13689
 
13661
13690
  /** PURE_IMPORTS_START _Observable PURE_IMPORTS_END */
13691
+ /**
13692
+ * Tests to see if the object is an RxJS {@link Observable}
13693
+ * @param obj the object to test
13694
+ */
13695
+ function isObservable(obj) {
13696
+ return obj && obj instanceof Observable || (typeof obj.lift === 'function' && typeof obj.subscribe === 'function');
13697
+ }
13662
13698
 
13663
13699
  /** PURE_IMPORTS_START tslib PURE_IMPORTS_END */
13664
13700
  /**
@@ -15057,6 +15093,8 @@ function flagDaysCalendar(formattedMonth, options) {
15057
15093
  isBefore$1(day.date, options.minDate, 'day') ||
15058
15094
  isAfter$1(day.date, options.maxDate, 'day') ||
15059
15095
  isDisabledDay$1(day.date, options.daysDisabled);
15096
+ const currentDate = new Date();
15097
+ const isToday = !isOtherMonth && isSameDay$2(day.date, currentDate);
15060
15098
  // decide update or not
15061
15099
  const newDay = Object.assign({}, day, {
15062
15100
  isOtherMonth,
@@ -15065,7 +15103,8 @@ function flagDaysCalendar(formattedMonth, options) {
15065
15103
  isSelectionStart,
15066
15104
  isSelectionEnd,
15067
15105
  isInRange,
15068
- isDisabled
15106
+ isDisabled,
15107
+ isToday
15069
15108
  });
15070
15109
  if (day.isOtherMonth !== newDay.isOtherMonth ||
15071
15110
  day.isHovered !== newDay.isHovered ||
@@ -15548,6 +15587,7 @@ class BsDatepickerDirective {
15548
15587
  * Currently only supports "body".
15549
15588
  */
15550
15589
  this.container = 'body';
15590
+ this.outsideEsc = true;
15551
15591
  /**
15552
15592
  * Emits when datepicker value has been changed
15553
15593
  */
@@ -15586,6 +15626,7 @@ class BsDatepickerDirective {
15586
15626
  ngOnInit() {
15587
15627
  this._datepicker.listen({
15588
15628
  outsideClick: this.outsideClick,
15629
+ outsideEsc: this.outsideEsc,
15589
15630
  triggers: this.triggers,
15590
15631
  show: () => this.show()
15591
15632
  });
@@ -15691,6 +15732,7 @@ BsDatepickerDirective.propDecorators = {
15691
15732
  "triggers": [{ type: Input },],
15692
15733
  "outsideClick": [{ type: Input },],
15693
15734
  "container": [{ type: Input },],
15735
+ "outsideEsc": [{ type: Input },],
15694
15736
  "isOpen": [{ type: Input },],
15695
15737
  "onShown": [{ type: Output },],
15696
15738
  "onHidden": [{ type: Output },],
@@ -15808,6 +15850,7 @@ class BsDatepickerInputDirective {
15808
15850
  }
15809
15851
  hide() {
15810
15852
  this._picker.hide();
15853
+ this._renderer.selectRootElement(this._elRef.nativeElement).blur();
15811
15854
  }
15812
15855
  }
15813
15856
  BsDatepickerInputDirective.decorators = [
@@ -15943,6 +15986,7 @@ class BsDaterangepickerDirective {
15943
15986
  * to. Currently only supports "body".
15944
15987
  */
15945
15988
  this.container = 'body';
15989
+ this.outsideEsc = true;
15946
15990
  /**
15947
15991
  * Emits when daterangepicker value has been changed
15948
15992
  */
@@ -15980,6 +16024,7 @@ class BsDaterangepickerDirective {
15980
16024
  ngOnInit() {
15981
16025
  this._datepicker.listen({
15982
16026
  outsideClick: this.outsideClick,
16027
+ outsideEsc: this.outsideEsc,
15983
16028
  triggers: this.triggers,
15984
16029
  show: () => this.show()
15985
16030
  });
@@ -16082,6 +16127,7 @@ BsDaterangepickerDirective.propDecorators = {
16082
16127
  "triggers": [{ type: Input },],
16083
16128
  "outsideClick": [{ type: Input },],
16084
16129
  "container": [{ type: Input },],
16130
+ "outsideEsc": [{ type: Input },],
16085
16131
  "isOpen": [{ type: Input },],
16086
16132
  "onShown": [{ type: Output },],
16087
16133
  "onHidden": [{ type: Output },],
@@ -16153,9 +16199,13 @@ class BsDaterangepickerInputDirective {
16153
16199
  if (_value === null || _value === undefined || !isArray$1(_value)) {
16154
16200
  return null;
16155
16201
  }
16156
- const _isDateValid = isDateValid$1(_value[0]) && isDateValid$1(_value[0]);
16157
- if (!_isDateValid) {
16158
- return { bsDate: { invalid: _value } };
16202
+ const _isFirstDateValid = isDateValid$1(_value[0]);
16203
+ const _isSecondDateValid = isDateValid$1(_value[1]);
16204
+ if (!_isFirstDateValid) {
16205
+ return { bsDate: { invalid: _value[0] } };
16206
+ }
16207
+ if (!_isSecondDateValid) {
16208
+ return { bsDate: { invalid: _value[1] } };
16159
16209
  }
16160
16210
  if (this._picker && this._picker.minDate && isBefore$1(_value[0], this._picker.minDate, 'date')) {
16161
16211
  return { bsDate: { minDate: this._picker.minDate } };
@@ -16211,6 +16261,7 @@ class BsDaterangepickerInputDirective {
16211
16261
  }
16212
16262
  hide() {
16213
16263
  this._picker.hide();
16264
+ this._renderer.selectRootElement(this._elRef.nativeElement).blur();
16214
16265
  }
16215
16266
  }
16216
16267
  BsDaterangepickerInputDirective.decorators = [
@@ -16291,6 +16342,16 @@ BsCustomDatesViewComponent.propDecorators = {
16291
16342
  };
16292
16343
 
16293
16344
  class BsDatepickerDayDecoratorComponent {
16345
+ constructor(_config, _elRef, _renderer) {
16346
+ this._config = _config;
16347
+ this._elRef = _elRef;
16348
+ this._renderer = _renderer;
16349
+ }
16350
+ ngOnInit() {
16351
+ if (this.day.isToday && this._config && this._config.customTodayClass) {
16352
+ this._renderer.addClass(this._elRef.nativeElement, this._config.customTodayClass);
16353
+ }
16354
+ }
16294
16355
  }
16295
16356
  BsDatepickerDayDecoratorComponent.decorators = [
16296
16357
  { type: Component, args: [{
@@ -16310,6 +16371,11 @@ BsDatepickerDayDecoratorComponent.decorators = [
16310
16371
  },] },
16311
16372
  ];
16312
16373
  /** @nocollapse */
16374
+ BsDatepickerDayDecoratorComponent.ctorParameters = () => [
16375
+ { type: BsDatepickerConfig, },
16376
+ { type: ElementRef, },
16377
+ { type: Renderer2, },
16378
+ ];
16313
16379
  BsDatepickerDayDecoratorComponent.propDecorators = {
16314
16380
  "day": [{ type: Input },],
16315
16381
  };
@@ -16625,11 +16691,6 @@ const _exports = [
16625
16691
  BsDaterangepickerDirective
16626
16692
  ];
16627
16693
  class BsDatepickerModule {
16628
- constructor() {
16629
- warnOnce(`BsDatepickerModule is under development,
16630
- BREAKING CHANGES are possible,
16631
- PLEASE, read changelog`);
16632
- }
16633
16694
  static forRoot() {
16634
16695
  return {
16635
16696
  ngModule: BsDatepickerModule,
@@ -16668,8 +16729,6 @@ BsDatepickerModule.decorators = [
16668
16729
  exports: _exports
16669
16730
  },] },
16670
16731
  ];
16671
- /** @nocollapse */
16672
- BsDatepickerModule.ctorParameters = () => [];
16673
16732
 
16674
16733
  class DateFormatter {
16675
16734
  format(date, format, locale) {
@@ -18518,12 +18577,14 @@ class BsDropdownDirective {
18518
18577
  // a little hack to not break support of bootstrap 4 beta
18519
18578
  this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'top', this.dropup ? 'auto' : '100%');
18520
18579
  this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'transform', this.dropup ? 'translateY(-101%)' : 'translateY(0)');
18580
+ this._renderer.setStyle(this._inlinedMenu.rootNodes[0], 'bottom', 'auto');
18521
18581
  }
18522
18582
  }
18523
18583
  removeDropupStyles() {
18524
18584
  if (this._inlinedMenu && this._inlinedMenu.rootNodes[0]) {
18525
18585
  this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'top');
18526
18586
  this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'transform');
18587
+ this._renderer.removeStyle(this._inlinedMenu.rootNodes[0], 'bottom');
18527
18588
  }
18528
18589
  }
18529
18590
  }
@@ -20749,6 +20810,7 @@ TooltipContainerComponent.decorators = [
20749
20810
  host: {
20750
20811
  '[class]': '"tooltip in tooltip-" + placement + " " + "bs-tooltip-" + placement + " " + placement + " " + containerClass',
20751
20812
  '[class.show]': '!isBs3',
20813
+ '[attr.id]': 'this.id',
20752
20814
  role: 'tooltip'
20753
20815
  },
20754
20816
  styles: [
@@ -20759,11 +20821,11 @@ TooltipContainerComponent.decorators = [
20759
20821
  }
20760
20822
  :host.bs-tooltip-top .arrow, :host.bs-tooltip-bottom .arrow {
20761
20823
  left: 50%;
20762
- margin-left: -6px;
20824
+ transform: translateX(-50%);
20763
20825
  }
20764
20826
  :host.bs-tooltip-left .arrow, :host.bs-tooltip-right .arrow {
20765
20827
  top: 50%;
20766
- margin-top: -6px;
20828
+ transform: translateY(-50%);
20767
20829
  }
20768
20830
  `
20769
20831
  ],
@@ -20787,10 +20849,12 @@ var __decorate$2 = (undefined && undefined.__decorate) || function (decorators,
20787
20849
  var __metadata$2 = (undefined && undefined.__metadata) || function (k, v) {
20788
20850
  if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
20789
20851
  };
20852
+ let id = 0;
20790
20853
  class TooltipDirective {
20791
20854
  constructor(_viewContainerRef, _renderer, _elementRef, cis, config$$1) {
20792
20855
  this._renderer = _renderer;
20793
20856
  this._elementRef = _elementRef;
20857
+ this.tooltipId = id++;
20794
20858
  /** Fired when tooltip content changes */
20795
20859
  /* tslint:disable-next-line:no-any */
20796
20860
  this.tooltipChange = new EventEmitter();
@@ -20802,6 +20866,7 @@ class TooltipDirective {
20802
20866
  this.tooltipAnimation = true;
20803
20867
  /** @deprecated */
20804
20868
  this.tooltipFadeDuration = 150;
20869
+ this.ariaDescribedby = `tooltip-${this.tooltipId}`;
20805
20870
  /** @deprecated */
20806
20871
  this.tooltipStateChanged = new EventEmitter();
20807
20872
  this._tooltip = cis
@@ -20848,7 +20913,7 @@ class TooltipDirective {
20848
20913
  /** @deprecated - please use `isDisabled` instead */
20849
20914
  set _enable(value) {
20850
20915
  warnOnce('tooltipEnable was deprecated, please use `isDisabled` instead');
20851
- this.isDisabled = value;
20916
+ this.isDisabled = !value;
20852
20917
  }
20853
20918
  get _enable() {
20854
20919
  warnOnce('tooltipEnable was deprecated, please use `isDisabled` instead');
@@ -20930,7 +20995,8 @@ class TooltipDirective {
20930
20995
  .show({
20931
20996
  content: this.tooltip,
20932
20997
  placement: this.placement,
20933
- containerClass: this.containerClass
20998
+ containerClass: this.containerClass,
20999
+ id: this.ariaDescribedby
20934
21000
  });
20935
21001
  };
20936
21002
  const cancelDelayedTooltipShowing = () => {
@@ -21013,6 +21079,7 @@ TooltipDirective.propDecorators = {
21013
21079
  "_tooltipPopupDelay": [{ type: Input, args: ['tooltipPopupDelay',] },],
21014
21080
  "tooltipFadeDuration": [{ type: Input },],
21015
21081
  "_tooltipTrigger": [{ type: Input, args: ['tooltipTrigger',] },],
21082
+ "ariaDescribedby": [{ type: HostBinding, args: ['attr.aria-describedby',] },],
21016
21083
  "tooltipStateChanged": [{ type: Output },],
21017
21084
  };
21018
21085
  __decorate$2([
@@ -22146,8 +22213,19 @@ TypeaheadContainerComponent.propDecorators = {
22146
22213
  "focusLost": [{ type: HostListener, args: ['mouseleave',] }, { type: HostListener, args: ['blur',] },],
22147
22214
  };
22148
22215
 
22216
+ /** Default values provider for typeahead */
22217
+ class TypeaheadConfig {
22218
+ constructor() {
22219
+ /** used to hide results on blur */
22220
+ this.hideResultsOnBlur = true;
22221
+ }
22222
+ }
22223
+ TypeaheadConfig.decorators = [
22224
+ { type: Injectable },
22225
+ ];
22226
+
22149
22227
  class TypeaheadDirective {
22150
- constructor(ngControl, element, viewContainerRef, renderer, cis, changeDetection) {
22228
+ constructor(ngControl, element, viewContainerRef, renderer, config$$1, cis, changeDetection) {
22151
22229
  this.ngControl = ngControl;
22152
22230
  this.element = element;
22153
22231
  this.renderer = renderer;
@@ -22203,7 +22281,9 @@ class TypeaheadDirective {
22203
22281
  this.keyUpEventEmitter = new EventEmitter();
22204
22282
  this.placement = 'bottom-left';
22205
22283
  this._subscriptions = [];
22206
- this._typeahead = cis.createLoader(element, viewContainerRef, renderer);
22284
+ this._typeahead = cis.createLoader(element, viewContainerRef, renderer)
22285
+ .provide({ provide: TypeaheadConfig, useValue: config$$1 });
22286
+ Object.assign(this, { typeaheadHideResultsOnBlur: config$$1.hideResultsOnBlur });
22207
22287
  }
22208
22288
  ngOnInit() {
22209
22289
  this.typeaheadOptionsLimit = this.typeaheadOptionsLimit || 20;
@@ -22212,10 +22292,10 @@ class TypeaheadDirective {
22212
22292
  this.typeaheadWaitMs = this.typeaheadWaitMs || 0;
22213
22293
  // async should be false in case of array
22214
22294
  if (this.typeaheadAsync === undefined &&
22215
- !(this.typeahead instanceof Observable)) {
22295
+ !(isObservable(this.typeahead))) {
22216
22296
  this.typeaheadAsync = false;
22217
22297
  }
22218
- if (this.typeahead instanceof Observable) {
22298
+ if (isObservable(this.typeahead)) {
22219
22299
  this.typeaheadAsync = true;
22220
22300
  }
22221
22301
  if (this.typeaheadAsync) {
@@ -22329,6 +22409,9 @@ class TypeaheadDirective {
22329
22409
  if (this.typeaheadMinLength === 0 && this.element.nativeElement.contains(e.target)) {
22330
22410
  return undefined;
22331
22411
  }
22412
+ if (!this.typeaheadHideResultsOnBlur || this.element.nativeElement.contains(e.target)) {
22413
+ return undefined;
22414
+ }
22332
22415
  this.onOutsideClick();
22333
22416
  });
22334
22417
  this._container = this._typeahead.instance;
@@ -22420,7 +22503,7 @@ class TypeaheadDirective {
22420
22503
  return match.indexOf(test) >= 0;
22421
22504
  }
22422
22505
  finalizeAsyncCall(matches) {
22423
- this.prepareMatches(matches);
22506
+ this.prepareMatches(matches || []);
22424
22507
  this.typeaheadLoading.emit(false);
22425
22508
  this.typeaheadNoResults.emit(!this.hasMatches());
22426
22509
  if (!this.hasMatches()) {
@@ -22484,6 +22567,7 @@ TypeaheadDirective.ctorParameters = () => [
22484
22567
  { type: ElementRef, },
22485
22568
  { type: ViewContainerRef, },
22486
22569
  { type: Renderer2, },
22570
+ { type: TypeaheadConfig, },
22487
22571
  { type: ComponentLoaderFactory, },
22488
22572
  { type: ChangeDetectorRef, },
22489
22573
  ];
@@ -22503,6 +22587,7 @@ TypeaheadDirective.propDecorators = {
22503
22587
  "optionsListTemplate": [{ type: Input },],
22504
22588
  "typeaheadScrollable": [{ type: Input },],
22505
22589
  "typeaheadOptionsInScrollableView": [{ type: Input },],
22590
+ "typeaheadHideResultsOnBlur": [{ type: Input },],
22506
22591
  "typeaheadLoading": [{ type: Output },],
22507
22592
  "typeaheadNoResults": [{ type: Output },],
22508
22593
  "typeaheadOnSelect": [{ type: Output },],
@@ -22520,7 +22605,7 @@ class TypeaheadModule {
22520
22605
  static forRoot() {
22521
22606
  return {
22522
22607
  ngModule: TypeaheadModule,
22523
- providers: [ComponentLoaderFactory, PositioningService]
22608
+ providers: [ComponentLoaderFactory, PositioningService, TypeaheadConfig]
22524
22609
  };
22525
22610
  }
22526
22611
  }
@@ -22580,11 +22665,11 @@ PopoverContainerComponent.decorators = [
22580
22665
  `
22581
22666
  :host.bs-popover-top .arrow, :host.bs-popover-bottom .arrow {
22582
22667
  left: 50%;
22583
- margin-left: -8px;
22668
+ transform: translateX(-50%);
22584
22669
  }
22585
22670
  :host.bs-popover-left .arrow, :host.bs-popover-right .arrow {
22586
22671
  top: 50%;
22587
- margin-top: -8px;
22672
+ transform: translateY(-50%);
22588
22673
  }
22589
22674
  `
22590
22675
  ],
@@ -23289,6 +23374,7 @@ class ComponentLoader$1 {
23289
23374
  listen(listenOpts) {
23290
23375
  this.triggers = listenOpts.triggers || this.triggers;
23291
23376
  this._listenOpts.outsideClick = listenOpts.outsideClick;
23377
+ this._listenOpts.outsideEsc = listenOpts.outsideEsc;
23292
23378
  listenOpts.target = listenOpts.target || this._elementRef.nativeElement;
23293
23379
  const hide = (this._listenOpts.hide = () => listenOpts.hide ? listenOpts.hide() : void this.hide());
23294
23380
  const show = (this._listenOpts.show = (registerHide) => {
@@ -23334,6 +23420,14 @@ class ComponentLoader$1 {
23334
23420
  });
23335
23421
  });
23336
23422
  }
23423
+ if (this._listenOpts.outsideEsc) {
23424
+ const target = this._componentRef.location.nativeElement;
23425
+ this._globalListener = registerEscClick(this._renderer, {
23426
+ targets: [target, this._elementRef.nativeElement],
23427
+ outsideEsc: this._listenOpts.outsideEsc,
23428
+ hide: () => this._listenOpts.hide()
23429
+ });
23430
+ }
23337
23431
  }
23338
23432
  getInnerComponent() {
23339
23433
  return this._innerComponent;