@odx/angular 1.0.0-rc.17 → 1.0.0-rc.19

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 (263) hide show
  1. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +3 -1
  2. package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +2 -1
  3. package/components/form-field/lib/form-field.component.d.ts +8 -2
  4. package/components/form-field/lib/form-field.config.d.ts +1 -0
  5. package/components/form-field/lib/models/form-field-error.d.ts +1 -0
  6. package/components/form-field/lib/models/form-field-variant.d.ts +5 -0
  7. package/components/form-field/lib/models/index.d.ts +1 -0
  8. package/components/form-field/lib/services/form-field-error.service.d.ts +1 -0
  9. package/components/select/lib/select.component.d.ts +1 -0
  10. package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +5 -2
  11. package/components/tooltip/lib/tooltip.component.d.ts +3 -2
  12. package/components/tooltip/lib/tooltip.directive.d.ts +3 -3
  13. package/esm2020/cdk/a11y/lib/a11y.module.mjs +4 -4
  14. package/esm2020/cdk/a11y/lib/directives/interactive.directive.mjs +3 -3
  15. package/esm2020/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +3 -3
  16. package/esm2020/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +3 -3
  17. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +3 -3
  18. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +9 -5
  19. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +3 -3
  20. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +3 -3
  21. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  22. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +3 -3
  23. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +3 -3
  24. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +3 -3
  25. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +3 -3
  26. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +3 -3
  27. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +3 -3
  28. package/esm2020/cdk/expandable/lib/expandable.module.mjs +4 -4
  29. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +3 -3
  30. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +11 -7
  31. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  32. package/esm2020/components/accordion/lib/accordion.component.mjs +3 -3
  33. package/esm2020/components/accordion/lib/accordion.module.mjs +4 -4
  34. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +3 -3
  35. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  36. package/esm2020/components/action-group/action-group.component.mjs +3 -3
  37. package/esm2020/components/area-header/area-header.component.mjs +3 -3
  38. package/esm2020/components/area-header/area-header.module.mjs +4 -4
  39. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +3 -3
  40. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  41. package/esm2020/components/avatar/lib/avatar.component.mjs +3 -3
  42. package/esm2020/components/badge/lib/badge.component.mjs +3 -3
  43. package/esm2020/components/badge/lib/badge.directive.mjs +3 -3
  44. package/esm2020/components/bar/lib/bar.component.mjs +3 -3
  45. package/esm2020/components/bar/lib/bar.module.mjs +4 -4
  46. package/esm2020/components/bar/lib/directives/bar-button.directive.mjs +3 -3
  47. package/esm2020/components/bar/lib/directives/bar-label.directive.mjs +3 -3
  48. package/esm2020/components/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  49. package/esm2020/components/button/lib/button.component.mjs +3 -3
  50. package/esm2020/components/button-group/lib/button-group.component.mjs +3 -3
  51. package/esm2020/components/checkbox/lib/checkbox.component.mjs +3 -3
  52. package/esm2020/components/checkbox/lib/checkbox.module.mjs +4 -4
  53. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +3 -3
  54. package/esm2020/components/chip/lib/chip.component.mjs +3 -3
  55. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +5 -5
  56. package/esm2020/components/content-box/lib/content-box.component.mjs +3 -3
  57. package/esm2020/components/content-box/lib/content-box.module.mjs +4 -4
  58. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +3 -3
  59. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +3 -3
  60. package/esm2020/components/dropdown/lib/dropdown.component.mjs +3 -3
  61. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +3 -3
  62. package/esm2020/components/dropdown/lib/dropdown.module.mjs +4 -4
  63. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  64. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
  65. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +3 -3
  66. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  67. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +3 -3
  68. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +3 -3
  69. package/esm2020/components/form-field/lib/directives/form.directive.mjs +3 -3
  70. package/esm2020/components/form-field/lib/form-field.component.mjs +26 -8
  71. package/esm2020/components/form-field/lib/form-field.config.mjs +2 -1
  72. package/esm2020/components/form-field/lib/form-field.module.mjs +4 -4
  73. package/esm2020/components/form-field/lib/form-field.service.mjs +3 -3
  74. package/esm2020/components/form-field/lib/models/form-field-error.mjs +1 -1
  75. package/esm2020/components/form-field/lib/models/form-field-variant.mjs +5 -0
  76. package/esm2020/components/form-field/lib/models/index.mjs +2 -1
  77. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +14 -14
  78. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +3 -3
  79. package/esm2020/components/header/lib/directives/header-title.directive.mjs +3 -3
  80. package/esm2020/components/header/lib/header.component.mjs +3 -3
  81. package/esm2020/components/header/lib/header.module.mjs +4 -4
  82. package/esm2020/components/icon/lib/icon.component.mjs +3 -3
  83. package/esm2020/components/inline-message/lib/inline-message.component.mjs +3 -3
  84. package/esm2020/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.mjs +3 -3
  85. package/esm2020/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.mjs +3 -3
  86. package/esm2020/components/launch-tile/lib/launch-tile.component.mjs +3 -3
  87. package/esm2020/components/launch-tile/lib/launch-tile.module.mjs +4 -4
  88. package/esm2020/components/link/link.directive.mjs +3 -3
  89. package/esm2020/components/list/lib/components/list-item/list-item.component.mjs +3 -3
  90. package/esm2020/components/list/lib/list.component.mjs +3 -3
  91. package/esm2020/components/list/lib/list.module.mjs +4 -4
  92. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +3 -3
  93. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +3 -3
  94. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +4 -4
  95. package/esm2020/components/logo/logo.directive.mjs +3 -3
  96. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +3 -3
  97. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +3 -3
  98. package/esm2020/components/main-menu/lib/main-menu.component.mjs +3 -3
  99. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  100. package/esm2020/components/main-menu/lib/main-menu.service.mjs +3 -3
  101. package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +3 -3
  102. package/esm2020/components/menu/lib/menu.component.mjs +3 -3
  103. package/esm2020/components/menu/lib/menu.directive.mjs +3 -3
  104. package/esm2020/components/menu/lib/menu.module.mjs +4 -4
  105. package/esm2020/components/modal/lib/components/basic-modal/basic-modal.component.mjs +3 -3
  106. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +3 -3
  107. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +3 -3
  108. package/esm2020/components/modal/lib/components/modal-hero/modal-hero.component.mjs +3 -3
  109. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +3 -3
  110. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +3 -3
  111. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  112. package/esm2020/components/modal/lib/modal.component.mjs +3 -3
  113. package/esm2020/components/modal/lib/modal.directive.mjs +3 -3
  114. package/esm2020/components/modal/lib/modal.module.mjs +4 -4
  115. package/esm2020/components/modal/lib/modal.service.mjs +3 -3
  116. package/esm2020/components/progress/lib/progress.component.mjs +3 -3
  117. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +3 -3
  118. package/esm2020/components/radio-group/lib/radio-group.component.mjs +3 -3
  119. package/esm2020/components/radio-group/lib/radio-group.module.mjs +4 -4
  120. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +3 -3
  121. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +3 -3
  122. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +4 -4
  123. package/esm2020/components/select/lib/components/option/option.component.mjs +3 -3
  124. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +3 -3
  125. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +3 -3
  126. package/esm2020/components/select/lib/select.component.mjs +16 -11
  127. package/esm2020/components/select/lib/select.module.mjs +4 -4
  128. package/esm2020/components/slider/lib/slider.directive.mjs +3 -3
  129. package/esm2020/components/spinbox/lib/spinbox.component.mjs +3 -3
  130. package/esm2020/components/switch/lib/switch.component.mjs +3 -3
  131. package/esm2020/components/switch/lib/switch.module.mjs +4 -4
  132. package/esm2020/components/switch/lib/switch.validator.mjs +3 -3
  133. package/esm2020/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +14 -5
  134. package/esm2020/components/tab-bar/lib/tab-bar.component.mjs +3 -3
  135. package/esm2020/components/tab-bar/lib/tab-bar.module.mjs +4 -4
  136. package/esm2020/components/toast/lib/components/toast-container/toast-container.component.mjs +3 -3
  137. package/esm2020/components/toast/lib/components/toast-item/toast-item.component.mjs +3 -3
  138. package/esm2020/components/toast/lib/toast.module.mjs +4 -4
  139. package/esm2020/components/toast/lib/toast.service.mjs +3 -3
  140. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  141. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +3 -3
  142. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  143. package/esm2020/components/tooltip/lib/tooltip.component.mjs +4 -4
  144. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +4 -4
  145. package/esm2020/lib/controllers/controller.mjs +3 -3
  146. package/esm2020/lib/controllers/disabled.controller.mjs +3 -3
  147. package/esm2020/lib/controllers/readonly.controller.mjs +3 -3
  148. package/esm2020/lib/core.module.mjs +4 -4
  149. package/esm2020/lib/directives/click-outside.directive.mjs +3 -3
  150. package/esm2020/lib/directives/delegate-focus.directive.mjs +3 -3
  151. package/esm2020/lib/directives/with-disabled-state.directive.mjs +3 -3
  152. package/esm2020/lib/directives/with-tabindex.directive.mjs +3 -3
  153. package/esm2020/lib/services/window-ref.mjs +3 -3
  154. package/esm2020/utils/lib/helpers/event-manager.mjs +3 -3
  155. package/fesm2015/odx-angular-cdk-a11y.mjs +13 -13
  156. package/fesm2015/odx-angular-cdk-active-indicator.mjs +3 -3
  157. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +8 -4
  158. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  159. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +6 -6
  160. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +6 -6
  161. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +9 -9
  162. package/fesm2015/odx-angular-cdk-expandable.mjs +10 -10
  163. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +17 -14
  164. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  165. package/fesm2015/odx-angular-components-accordion.mjs +13 -13
  166. package/fesm2015/odx-angular-components-action-group.mjs +3 -3
  167. package/fesm2015/odx-angular-components-area-header.mjs +13 -13
  168. package/fesm2015/odx-angular-components-avatar.mjs +3 -3
  169. package/fesm2015/odx-angular-components-badge.mjs +6 -6
  170. package/fesm2015/odx-angular-components-bar.mjs +13 -13
  171. package/fesm2015/odx-angular-components-breadcrumbs.mjs +3 -3
  172. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  173. package/fesm2015/odx-angular-components-button.mjs +3 -3
  174. package/fesm2015/odx-angular-components-checkbox.mjs +10 -10
  175. package/fesm2015/odx-angular-components-chip.mjs +3 -3
  176. package/fesm2015/odx-angular-components-circular-progress.mjs +4 -4
  177. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  178. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  179. package/fesm2015/odx-angular-components-dropdown.mjs +10 -10
  180. package/fesm2015/odx-angular-components-form-field.mjs +72 -49
  181. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  182. package/fesm2015/odx-angular-components-header.mjs +13 -13
  183. package/fesm2015/odx-angular-components-icon.mjs +3 -3
  184. package/fesm2015/odx-angular-components-inline-message.mjs +3 -3
  185. package/fesm2015/odx-angular-components-launch-tile.mjs +13 -13
  186. package/fesm2015/odx-angular-components-link.mjs +3 -3
  187. package/fesm2015/odx-angular-components-list.mjs +10 -10
  188. package/fesm2015/odx-angular-components-loading-spinner.mjs +10 -10
  189. package/fesm2015/odx-angular-components-logo.mjs +3 -3
  190. package/fesm2015/odx-angular-components-main-menu.mjs +16 -16
  191. package/fesm2015/odx-angular-components-menu.mjs +13 -13
  192. package/fesm2015/odx-angular-components-modal.mjs +34 -34
  193. package/fesm2015/odx-angular-components-progress.mjs +3 -3
  194. package/fesm2015/odx-angular-components-radio-group.mjs +10 -10
  195. package/fesm2015/odx-angular-components-rail-navigation.mjs +10 -10
  196. package/fesm2015/odx-angular-components-select.mjs +29 -23
  197. package/fesm2015/odx-angular-components-select.mjs.map +1 -1
  198. package/fesm2015/odx-angular-components-slider.mjs +3 -3
  199. package/fesm2015/odx-angular-components-spinbox.mjs +3 -3
  200. package/fesm2015/odx-angular-components-switch.mjs +10 -10
  201. package/fesm2015/odx-angular-components-tab-bar.mjs +21 -12
  202. package/fesm2015/odx-angular-components-tab-bar.mjs.map +1 -1
  203. package/fesm2015/odx-angular-components-toast.mjs +13 -13
  204. package/fesm2015/odx-angular-components-toggle-button-group.mjs +10 -10
  205. package/fesm2015/odx-angular-components-tooltip.mjs +6 -6
  206. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -1
  207. package/fesm2015/odx-angular-utils.mjs +3 -3
  208. package/fesm2015/odx-angular.mjs +28 -28
  209. package/fesm2020/odx-angular-cdk-a11y.mjs +13 -13
  210. package/fesm2020/odx-angular-cdk-active-indicator.mjs +3 -3
  211. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +8 -4
  212. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  213. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +6 -6
  214. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +6 -6
  215. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +9 -9
  216. package/fesm2020/odx-angular-cdk-expandable.mjs +10 -10
  217. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +17 -14
  218. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  219. package/fesm2020/odx-angular-components-accordion.mjs +13 -13
  220. package/fesm2020/odx-angular-components-action-group.mjs +3 -3
  221. package/fesm2020/odx-angular-components-area-header.mjs +13 -13
  222. package/fesm2020/odx-angular-components-avatar.mjs +3 -3
  223. package/fesm2020/odx-angular-components-badge.mjs +6 -6
  224. package/fesm2020/odx-angular-components-bar.mjs +13 -13
  225. package/fesm2020/odx-angular-components-breadcrumbs.mjs +3 -3
  226. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  227. package/fesm2020/odx-angular-components-button.mjs +3 -3
  228. package/fesm2020/odx-angular-components-checkbox.mjs +10 -10
  229. package/fesm2020/odx-angular-components-chip.mjs +3 -3
  230. package/fesm2020/odx-angular-components-circular-progress.mjs +4 -4
  231. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  232. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  233. package/fesm2020/odx-angular-components-dropdown.mjs +10 -10
  234. package/fesm2020/odx-angular-components-form-field.mjs +71 -49
  235. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  236. package/fesm2020/odx-angular-components-header.mjs +13 -13
  237. package/fesm2020/odx-angular-components-icon.mjs +3 -3
  238. package/fesm2020/odx-angular-components-inline-message.mjs +3 -3
  239. package/fesm2020/odx-angular-components-launch-tile.mjs +13 -13
  240. package/fesm2020/odx-angular-components-link.mjs +3 -3
  241. package/fesm2020/odx-angular-components-list.mjs +10 -10
  242. package/fesm2020/odx-angular-components-loading-spinner.mjs +10 -10
  243. package/fesm2020/odx-angular-components-logo.mjs +3 -3
  244. package/fesm2020/odx-angular-components-main-menu.mjs +16 -16
  245. package/fesm2020/odx-angular-components-menu.mjs +13 -13
  246. package/fesm2020/odx-angular-components-modal.mjs +34 -34
  247. package/fesm2020/odx-angular-components-progress.mjs +3 -3
  248. package/fesm2020/odx-angular-components-radio-group.mjs +10 -10
  249. package/fesm2020/odx-angular-components-rail-navigation.mjs +10 -10
  250. package/fesm2020/odx-angular-components-select.mjs +29 -23
  251. package/fesm2020/odx-angular-components-select.mjs.map +1 -1
  252. package/fesm2020/odx-angular-components-slider.mjs +3 -3
  253. package/fesm2020/odx-angular-components-spinbox.mjs +3 -3
  254. package/fesm2020/odx-angular-components-switch.mjs +10 -10
  255. package/fesm2020/odx-angular-components-tab-bar.mjs +20 -12
  256. package/fesm2020/odx-angular-components-tab-bar.mjs.map +1 -1
  257. package/fesm2020/odx-angular-components-toast.mjs +13 -13
  258. package/fesm2020/odx-angular-components-toggle-button-group.mjs +10 -10
  259. package/fesm2020/odx-angular-components-tooltip.mjs +6 -6
  260. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -1
  261. package/fesm2020/odx-angular-utils.mjs +3 -3
  262. package/fesm2020/odx-angular.mjs +28 -28
  263. package/package.json +2 -2
@@ -9,12 +9,13 @@ import { CheckboxComponent } from '@odx/angular/components/checkbox';
9
9
  import { CSSComponent, CSSModifier } from '@odx/angular/internal';
10
10
  import { untilDestroyed, injectElement, Transform, Pure, deferFn } from '@odx/angular/utils';
11
11
  import * as i1 from '@angular/common';
12
- import { fromEvent, map, distinctUntilChanged, filter } from 'rxjs';
12
+ import { fromEvent, map, distinctUntilChanged } from 'rxjs';
13
13
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
14
14
  import { CustomFormControl } from '@odx/angular/cdk/custom-form-control';
15
15
  import { DropdownDirective } from '@odx/angular/components/dropdown';
16
16
  import { IconComponent } from '@odx/angular/components/icon';
17
17
  import { LoadingSpinnerModule } from '@odx/angular/components/loading-spinner';
18
+ import { fromQueryList } from '@odx/angular/rxjs';
18
19
 
19
20
  const SELECT_CONTROL = new InjectionToken('@odx/angular/components/select::SelectControl');
20
21
 
@@ -75,8 +76,8 @@ let OptionComponent = class OptionComponent {
75
76
  this.selectControl.selectOption(this);
76
77
  }
77
78
  };
78
- OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
79
- OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: OptionComponent, isStandalone: true, selector: "odx-option", inputs: { value: "value", notFoundMessage: "notFoundMessage" }, host: { attributes: { "role": "option" }, listeners: { "click": "select($event)" }, properties: { "attr.aria-selected": "isSelected", "attr.aria-disabled": "disabled || null", "class.is-disabled": "disabled", "class.is-selected": "isSelected", "class.is-active": "isActive" } }, providers: [DisabledController.connect(), ReadonlyController.connect()], ngImport: i0, template: "<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CheckboxComponent, selector: "odx-checkbox", inputs: ["indeterminate"], outputs: ["indeterminateChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
79
+ OptionComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: OptionComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
80
+ OptionComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: OptionComponent, isStandalone: true, selector: "odx-option", inputs: { value: "value", notFoundMessage: "notFoundMessage" }, host: { attributes: { "role": "option" }, listeners: { "click": "select($event)" }, properties: { "attr.aria-selected": "isSelected", "attr.aria-disabled": "disabled || null", "class.is-disabled": "disabled", "class.is-selected": "isSelected", "class.is-active": "isActive" } }, providers: [DisabledController.connect(), ReadonlyController.connect()], ngImport: i0, template: "<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: CheckboxComponent, selector: "odx-checkbox", inputs: ["indeterminate"], outputs: ["indeterminateChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
80
81
  __decorate([
81
82
  Transform(coerceBooleanProperty),
82
83
  __metadata("design:type", Object)
@@ -85,7 +86,7 @@ OptionComponent = __decorate([
85
86
  CSSComponent('option'),
86
87
  __metadata("design:paramtypes", [])
87
88
  ], OptionComponent);
88
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: OptionComponent, decorators: [{
89
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: OptionComponent, decorators: [{
89
90
  type: Component,
90
91
  args: [{ standalone: true, selector: 'odx-option', imports: [CoreModule, DynamicViewDirective, CheckboxComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect(), ReadonlyController.connect()], host: {
91
92
  '[attr.aria-selected]': 'isSelected',
@@ -122,12 +123,12 @@ let SelectSearchFieldDirective = class SelectSearchFieldDirective {
122
123
  return this.element.nativeElement.value;
123
124
  }
124
125
  };
125
- SelectSearchFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectSearchFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
126
- SelectSearchFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SelectSearchFieldDirective, isStandalone: true, selector: "input[odxSelectSearchField]", inputs: { notFoundContent: ["odxSelectSearchField", "notFoundContent"] }, host: { listeners: { "keydown.delete": "reset()" }, properties: { "class.odx-form-field-control": "true" } }, ngImport: i0 });
126
+ SelectSearchFieldDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectSearchFieldDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
127
+ SelectSearchFieldDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.3", type: SelectSearchFieldDirective, isStandalone: true, selector: "input[odxSelectSearchField]", inputs: { notFoundContent: ["odxSelectSearchField", "notFoundContent"] }, host: { listeners: { "keydown.delete": "reset()" }, properties: { "class.odx-form-field-control": "true" } }, ngImport: i0 });
127
128
  SelectSearchFieldDirective = __decorate([
128
129
  CSSComponent('select__search')
129
130
  ], SelectSearchFieldDirective);
130
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectSearchFieldDirective, decorators: [{
131
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectSearchFieldDirective, decorators: [{
131
132
  type: Directive,
132
133
  args: [{
133
134
  standalone: true,
@@ -174,15 +175,15 @@ class SelectSearchFilterPipe {
174
175
  return items.filter((item) => search(stringify(item), query));
175
176
  }
176
177
  }
177
- SelectSearchFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectSearchFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
178
- SelectSearchFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SelectSearchFilterPipe, isStandalone: true, name: "odxSelectSearchFilter", pure: false });
178
+ SelectSearchFilterPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectSearchFilterPipe, deps: [], target: i0.ɵɵFactoryTarget.Pipe });
179
+ SelectSearchFilterPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SelectSearchFilterPipe, isStandalone: true, name: "odxSelectSearchFilter", pure: false });
179
180
  __decorate([
180
181
  Pure,
181
182
  __metadata("design:type", Function),
182
183
  __metadata("design:paramtypes", [Object, String, Function]),
183
184
  __metadata("design:returntype", Object)
184
185
  ], SelectSearchFilterPipe.prototype, "filter", null);
185
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectSearchFilterPipe, decorators: [{
186
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectSearchFilterPipe, decorators: [{
186
187
  type: Pipe,
187
188
  args: [{
188
189
  pure: false,
@@ -224,12 +225,13 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
224
225
  if (!this.options)
225
226
  return;
226
227
  this.keyManager = new ActiveDescendantKeyManager(this.options).withHomeAndEnd().skipPredicate((item) => item.disabled);
227
- this.options.changes.pipe(filter(() => this.isOpen)).subscribe(() => {
228
- deferFn(() => this.activateSelectedOption());
229
- this.triggerControllerChange();
228
+ fromQueryList(this.options).subscribe(() => {
229
+ this.updateSelectedOption();
230
+ if (this.isOpen) {
231
+ deferFn(() => this.activateSelectedOption());
232
+ }
230
233
  });
231
234
  (_a = this.searchField) === null || _a === void 0 ? void 0 : _a.valueChange$.subscribe(() => this.triggerControllerChange());
232
- deferFn(() => this.updateSelectedOption());
233
235
  }
234
236
  registerOnChange(fn) {
235
237
  super.registerOnChange((value) => {
@@ -275,10 +277,11 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
275
277
  }
276
278
  (_b = this.keyManager) === null || _b === void 0 ? void 0 : _b.onKeydown(event);
277
279
  }
280
+ handleFocusOut() {
281
+ this.onTouched();
282
+ }
278
283
  activateSelectedOption() {
279
284
  var _a, _b, _c, _d;
280
- if (this.multiple)
281
- return;
282
285
  let activeIndex = (_a = this.options) === null || _a === void 0 ? void 0 : _a.toArray().findIndex((option) => option.isSelected && !option.disabled);
283
286
  if (!activeIndex || activeIndex === -1) {
284
287
  activeIndex = (_c = (_b = this.options) === null || _b === void 0 ? void 0 : _b.toArray().findIndex((option) => !option.disabled)) !== null && _c !== void 0 ? _c : -1;
@@ -324,8 +327,8 @@ let SelectComponent = SelectComponent_1 = class SelectComponent extends CustomFo
324
327
  this.triggerControllerChange();
325
328
  }
326
329
  };
327
- SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
328
- SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: SelectComponent, isStandalone: true, selector: "odx-select", inputs: { placeholder: "placeholder", isLoading: "isLoading", multiple: "multiple", selectedOptionTemplate: "selectedOptionTemplate", stringify: "stringify", identityMatcher: "identityMatcher" }, outputs: { change: "change" }, host: { listeners: { "click": "openDropdown($event)", "keydown": "openDropdown($event)" }, properties: { "attr.aria-disabled": "isDisabled || null", "class.is-open": "isOpen", "tabindex": "searchFieldEnabled || isDisabled ? -1 : 0", "attr.aria-multiselectable": "multiple" } }, providers: [
330
+ SelectComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
331
+ SelectComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: SelectComponent, isStandalone: true, selector: "odx-select", inputs: { placeholder: "placeholder", isLoading: "isLoading", multiple: "multiple", selectedOptionTemplate: "selectedOptionTemplate", stringify: "stringify", identityMatcher: "identityMatcher" }, outputs: { change: "change" }, host: { listeners: { "click": "openDropdown($event)", "keydown": "openDropdown($event)", "focusout": "handleFocusOut()" }, properties: { "attr.aria-disabled": "isDisabled || null", "class.is-open": "isOpen", "tabindex": "searchFieldEnabled || isDisabled ? -1 : 0", "attr.aria-multiselectable": "multiple" } }, providers: [
329
332
  {
330
333
  provide: SELECT_CONTROL,
331
334
  useExisting: forwardRef(() => SelectComponent_1),
@@ -344,7 +347,7 @@ SelectComponent = SelectComponent_1 = __decorate([
344
347
  CSSComponent('select'),
345
348
  __metadata("design:paramtypes", [])
346
349
  ], SelectComponent);
347
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectComponent, decorators: [{
350
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectComponent, decorators: [{
348
351
  type: Component,
349
352
  args: [{ standalone: true, selector: 'odx-select', imports: [CoreModule, DropdownDirective, IconComponent, DynamicViewDirective, OptionComponent, LoadingSpinnerModule], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [
350
353
  {
@@ -386,15 +389,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
386
389
  }, {
387
390
  type: HostListener,
388
391
  args: ['keydown', ['$event']]
392
+ }], handleFocusOut: [{
393
+ type: HostListener,
394
+ args: ['focusout']
389
395
  }] } });
390
396
 
391
397
  const modules = [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent];
392
398
  class SelectModule {
393
399
  }
394
- SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
395
- SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SelectModule, imports: [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent], exports: [CoreModule, SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent] });
396
- SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectModule, imports: [SelectComponent, OptionComponent, CoreModule] });
397
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SelectModule, decorators: [{
400
+ SelectModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
401
+ SelectModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SelectModule, imports: [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent], exports: [CoreModule, SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent] });
402
+ SelectModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectModule, imports: [SelectComponent, OptionComponent, CoreModule] });
403
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SelectModule, decorators: [{
398
404
  type: NgModule,
399
405
  args: [{
400
406
  imports: modules,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-select.mjs","sources":["../../../../libs/angular/components/select/src/lib/select.tokens.ts","../../../../libs/angular/components/select/src/lib/components/option/option.component.ts","../../../../libs/angular/components/select/src/lib/components/option/option.component.html","../../../../libs/angular/components/select/src/lib/directives/select-search-field.directive.ts","../../../../libs/angular/components/select/src/lib/pipes/select-search-filter.pipe.ts","../../../../libs/angular/components/select/src/lib/select.component.ts","../../../../libs/angular/components/select/src/lib/select.component.html","../../../../libs/angular/components/select/src/lib/select.module.ts","../../../../libs/angular/components/select/src/odx-angular-components-select.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { SelectControl } from './abstract';\n\nexport const SELECT_CONTROL = new InjectionToken<SelectControl>('@odx/angular/components/select::SelectControl');\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostListener, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges, DisabledController, ReadonlyController } from '@odx/angular';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { CheckboxComponent } from '@odx/angular/components/checkbox';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, Transform, untilDestroyed } from '@odx/angular/utils';\nimport { SelectControlOption } from '../../abstract';\nimport { SELECT_CONTROL } from '../../select.tokens';\n\n@CSSComponent('option')\n@Component({\n standalone: true,\n selector: 'odx-option',\n imports: [CoreModule, DynamicViewDirective, CheckboxComponent],\n templateUrl: './option.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DisabledController.connect(), ReadonlyController.connect()],\n host: {\n '[attr.aria-selected]': 'isSelected',\n '[attr.aria-disabled]': 'disabled || null',\n '[class.is-disabled]': 'disabled',\n '[class.is-selected]': 'isSelected',\n '[class.is-active]': 'isActive',\n role: 'option',\n },\n})\nexport class OptionComponent<T = unknown> implements OnInit, SelectControlOption<T> {\n public static ngAcceptInputType_notFoundMessage: BooleanInput;\n\n private readonly disabledController = DisabledController.inject();\n private readonly readonlyController = ReadonlyController.inject();\n private readonly takeUntilDestroyed = untilDestroyed();\n private readonly cdr = inject(ChangeDetectorRef);\n\n protected readonly selectControl = inject(SELECT_CONTROL);\n protected isActive = false;\n\n public readonly element = injectElement();\n public isSelected = false;\n\n @Input()\n public value: T | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input()\n public notFoundMessage = false;\n\n public get disabled(): boolean {\n return !!this.disabledController?.disabled || !!this.readonlyController?.readonly;\n }\n\n constructor() {\n if (!this.selectControl.multiple) {\n detectControllerChanges(this.selectControl)\n .pipe(this.takeUntilDestroyed())\n .subscribe(() => {\n this.isSelected = this.selectControl.isOptionSelected(this);\n });\n }\n }\n\n public ngOnInit(): void {\n this.isSelected = this.selectControl.isOptionSelected(this);\n }\n\n public getLabel(): string {\n return this.element.nativeElement.textContent ?? '';\n }\n\n public setActiveStyles(): void {\n if (this.disabled) return;\n this.isActive = true;\n if (this.selectControl.isOpen) {\n this.selectControl.scrollOptionIntoView(this);\n } else {\n this.selectControl.selectOption(this);\n }\n }\n\n public setInactiveStyles(): void {\n this.isActive = false;\n }\n\n public switchCheckbox(): void {\n if (this.selectControl.multiple) {\n this.isSelected = !this.isSelected;\n this.cdr.markForCheck();\n }\n }\n\n @HostListener('click', ['$event'])\n protected select(event: Event): void {\n event.stopPropagation();\n event.preventDefault();\n this.selectControl.selectOption(this);\n }\n}\n","<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { Directive, HostListener, Input } from '@angular/core';\nimport { DynamicContent } from '@odx/angular/cdk/dynamic-view';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, untilDestroyed } from '@odx/angular/utils';\nimport { distinctUntilChanged, fromEvent, map } from 'rxjs';\n\n@CSSComponent('select__search')\n@Directive({\n standalone: true,\n selector: 'input[odxSelectSearchField]',\n host: {\n '[class.odx-form-field-control]': 'true',\n },\n})\nexport class SelectSearchFieldDirective {\n private readonly takeUntilDestroyed = untilDestroyed();\n\n public readonly element = injectElement<HTMLInputElement>();\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('odxSelectSearchField')\n public notFoundContent: DynamicContent | null = null;\n\n public valueChange$ = fromEvent(this.element.nativeElement, 'input').pipe(\n map(() => this.getValue()),\n distinctUntilChanged(),\n this.takeUntilDestroyed()\n );\n\n @HostListener('keydown.delete')\n public reset(): void {\n this.element.nativeElement.value = '';\n }\n\n public focus(): void {\n this.element.nativeElement.focus();\n }\n\n public getValue(): string {\n return this.element.nativeElement.value;\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { ODX_STRINGIFY, ODX_STRING_SEARCH_HANDLER, StringSearchHandler } from '@odx/angular';\nimport { Pure } from '@odx/angular/utils';\nimport { SelectSearchFieldDirective } from '../directives';\nimport { SELECT_CONTROL } from '../select.tokens';\n\n@Pipe({\n pure: false,\n name: 'odxSelectSearchFilter',\n standalone: true,\n})\nexport class SelectSearchFilterPipe implements PipeTransform {\n private readonly searchController = inject(SELECT_CONTROL, { optional: true });\n private readonly stringify = inject(ODX_STRINGIFY);\n private readonly stringSearchHandler = inject(ODX_STRING_SEARCH_HANDLER);\n\n private get searchField(): SelectSearchFieldDirective | undefined {\n return this.searchController?.searchField;\n }\n\n public transform<T>(items: T[] | null, searchHandler?: StringSearchHandler): T[] | null {\n if (this.searchField) {\n return this.filter(items, this.searchField.getValue(), searchHandler);\n }\n return items;\n }\n\n @Pure\n private filter<T>(items: T[] | null, query: string, searchHandler?: StringSearchHandler): T[] | null {\n if (!items) {\n return null;\n }\n query = query.trim();\n if (query === '') {\n return items;\n }\n const search = searchHandler ?? this.stringSearchHandler;\n const stringify = this.searchController?.stringify ?? this.stringify;\n\n return items.filter((item) => search(stringify(item), query));\n }\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n forwardRef,\n HostListener,\n inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CoreModule, detectControllerChanges, IdentityMatcher, ODX_IDENTITY_MATCHER, StringifyFn } from '@odx/angular';\nimport { CustomFormControl } from '@odx/angular/cdk/custom-form-control';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { DropdownDirective } from '@odx/angular/components/dropdown';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LoadingSpinnerModule } from '@odx/angular/components/loading-spinner';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { deferFn, injectElement, Transform } from '@odx/angular/utils';\nimport { filter } from 'rxjs';\nimport { SelectControl, SelectControlOption } from './abstract';\nimport { OptionComponent } from './components';\nimport { SelectSearchFieldDirective } from './directives';\nimport { SELECT_CONTROL } from './select.tokens';\n\n@CSSComponent('select')\n@Component({\n standalone: true,\n selector: 'odx-select',\n imports: [CoreModule, DropdownDirective, IconComponent, DynamicViewDirective, OptionComponent, LoadingSpinnerModule],\n templateUrl: './select.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: SELECT_CONTROL,\n useExisting: forwardRef(() => SelectComponent),\n },\n ],\n host: {\n '[attr.aria-disabled]': 'isDisabled || null',\n '[class.is-open]': 'isOpen',\n '[tabindex]': 'searchFieldEnabled || isDisabled ? -1 : 0',\n '[attr.aria-multiselectable]': 'multiple',\n },\n})\nexport class SelectComponent<T = unknown | unknown[]> extends CustomFormControl<T | null> implements AfterViewInit, SelectControl<T> {\n public static ngAcceptInputType_isLoading: BooleanInput;\n public static ngAcceptInputType_multiple: BooleanInput;\n\n private keyManager?: ActiveDescendantKeyManager<OptionComponent<T>>;\n\n protected searchFieldEnabled = false;\n protected smoothScrollEnabled = false;\n protected selectedOption: OptionComponent<T> | null = null;\n protected selectedOptionText: string | null = null;\n\n @ContentChildren(OptionComponent, { descendants: true, emitDistinctChangesOnly: true })\n protected options?: QueryList<OptionComponent<T>>;\n\n @ViewChild(DropdownDirective)\n protected dropdown?: DropdownDirective;\n\n public get hasOptions(): boolean {\n return !!this.options && this.options.length > 0;\n }\n\n public readonly element = injectElement();\n\n public get isOpen(): boolean {\n return !!this.dropdown?.isOpen;\n }\n\n public get selectedOptionContent(): TemplateRef<{ $implicit: T | null }> | string | null {\n return this.selectedOption ? this.selectedOptionTemplate ?? this.selectedOptionText : null;\n }\n\n @Input()\n public placeholder = '';\n\n @Transform(coerceBooleanProperty)\n @Input()\n public isLoading = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public multiple = false;\n\n @Input()\n public selectedOptionTemplate?: TemplateRef<{ $implicit: T }> | null = null;\n\n @Input()\n public stringify?: StringifyFn<T | null>;\n\n @Input()\n public identityMatcher: IdentityMatcher<T | null> = inject(ODX_IDENTITY_MATCHER);\n\n @Output()\n // eslint-disable-next-line @angular-eslint/no-output-native\n public change = new EventEmitter<void>();\n\n @ContentChild(SelectSearchFieldDirective)\n public searchField?: SelectSearchFieldDirective;\n\n constructor() {\n super(null);\n detectControllerChanges(this).subscribe();\n }\n\n public ngAfterViewInit(): void {\n if (!this.options) return;\n this.keyManager = new ActiveDescendantKeyManager(this.options).withHomeAndEnd().skipPredicate((item) => item.disabled);\n this.options.changes.pipe(filter(() => this.isOpen)).subscribe(() => {\n deferFn(() => this.activateSelectedOption());\n this.triggerControllerChange();\n });\n this.searchField?.valueChange$.subscribe(() => this.triggerControllerChange());\n deferFn(() => this.updateSelectedOption());\n }\n\n public override registerOnChange(fn: (value: T | null) => void): void {\n super.registerOnChange((value) => {\n this.updateSelectedOption();\n fn(value);\n });\n }\n\n public selectOption(option?: SelectControlOption<T | T[]> | null): void {\n if (option && !option.disabled) {\n option.switchCheckbox();\n const value = this.multiple\n ? this.options\n ?.toArray()\n .filter(({ isSelected }) => isSelected)\n .map(({ value }) => value)\n : option.value;\n this.updateValue((value as T) ?? null);\n }\n\n !this.multiple && this.dropdown?.close();\n }\n\n public isOptionSelected(option: SelectControlOption<T | T[]>): boolean {\n if (option && !option.disabled) {\n if (this.multiple && Array.isArray(this.value)) {\n return (this.value as T[]).includes(option.value as T);\n }\n return this.identityMatcher(option.value as T, this.value);\n }\n return false;\n }\n\n public scrollOptionIntoView({ element }: SelectControlOption<T>): void {\n const behavior = this.smoothScrollEnabled ? 'smooth' : undefined;\n element.nativeElement.scrollIntoView({ block: 'center', behavior });\n }\n\n @HostListener('click', ['$event'])\n @HostListener('keydown', ['$event'])\n protected openDropdown(event: KeyboardEvent) {\n if (this.isLoading) return;\n if (this.isOpen && this.hasOptions) {\n if (event.key === 'Enter' || event.key === 'Tab') {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.selectOption(this.keyManager?.activeItem);\n return;\n }\n }\n this.keyManager?.onKeydown(event);\n }\n\n protected activateSelectedOption(): void {\n if (this.multiple) return;\n let activeIndex = this.options?.toArray().findIndex((option) => option.isSelected && !option.disabled);\n if (!activeIndex || activeIndex === -1) {\n activeIndex = this.options?.toArray().findIndex((option) => !option.disabled) ?? -1;\n }\n this.keyManager?.setActiveItem(activeIndex);\n }\n\n protected onDropdownOpen(): void {\n this.activateSelectedOption();\n if (!this.searchFieldEnabled) {\n this.searchFieldEnabled = !!this.searchField;\n deferFn(() => this.searchField?.focus());\n }\n }\n\n protected onDropdownClose(): void {\n this.disableSmoothScroll();\n if (this.searchFieldEnabled) {\n this.searchFieldEnabled = false;\n this.element.nativeElement?.focus();\n }\n }\n\n protected onDropdownClosed(): void {\n this.searchField?.reset();\n }\n\n protected disableSmoothScroll(): void {\n this.smoothScrollEnabled = false;\n }\n\n protected enableSmoothScroll(): void {\n this.smoothScrollEnabled = true;\n }\n\n private updateSelectedOption(): void {\n const options = this.options?.toArray();\n this.selectedOption = options?.find((option) => option.isSelected) ?? null;\n if (this.multiple) {\n this.selectedOptionText =\n options\n ?.filter(({ isSelected }) => isSelected)\n .map((option) => this.stringify?.(option.value) ?? option.getLabel())\n .join(', ') ?? null;\n\n this.triggerControllerChange();\n return;\n }\n this.selectedOptionText = this.selectedOption ? this.stringify?.(this.selectedOption?.value) ?? this.selectedOption.getLabel() : null;\n this.triggerControllerChange();\n }\n}\n","<div\n aria-haspopup=\"listbox\"\n class=\"odx-select__trigger\"\n [odxDropdown]=\"dropdownContent\"\n [odxDropdownDisabled]=\"isDisabled || isReadonly\"\n [odxDropdownOptions]=\"{ matchReferenceWidth: true, offset: 4 }\"\n [odxDropdownReferenceElement]=\"element.nativeElement\"\n [odxDropdownShowLoader]=\"isLoading\"\n (odxDropdownBeforeOpen)=\"onDropdownOpen()\"\n (odxDropdownBeforeClose)=\"onDropdownClose()\"\n (odxDropdownAfterClose)=\"onDropdownClosed()\"\n (odxDropdownAfterOpen)=\"enableSmoothScroll()\"\n>\n <ng-template [ngIf]=\"!searchFieldEnabled\" [ngIfElse]=\"searchFieldTemplate\">\n <div class=\"odx-select__value\" *ngIf=\"selectedOptionContent; else placeholderTemplate\">\n <ng-template [odxDynamicView]=\"selectedOptionContent\" [odxDynamicViewContext]=\"{ $implicit: value }\"></ng-template>\n </div>\n </ng-template>\n <ng-template #placeholderTemplate>\n <div class=\"odx-select__placeholder\">\n {{ placeholder }}\n </div>\n </ng-template>\n <ng-template #searchFieldTemplate>\n <ng-content select=\"[odxSelectSearchField]\"></ng-content>\n </ng-template>\n <odx-icon class=\"odx-select__indicator\" name=\"chevron-down\"></odx-icon>\n</div>\n<ng-template #dropdownContent>\n <div class=\"odx-select-dropdown\" role=\"listbox\">\n <ng-template [ngIf]=\"hasOptions\" [ngIfElse]=\"noOptionsTemplate\">\n <ng-content></ng-content>\n </ng-template>\n <ng-template #noOptionsTemplate>\n <odx-option disabled notFoundMessage>\n <ng-template [odxDynamicView]=\"searchField?.notFoundContent\"></ng-template>\n </odx-option>\n </ng-template>\n </div>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { OptionComponent } from './components';\nimport { SelectSearchFieldDirective } from './directives';\nimport { SelectSearchFilterPipe } from './pipes';\nimport { SelectComponent } from './select.component';\n\nconst modules = [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class SelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n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e,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,eAAe,CAIzF,EAAA,OAAA,EAAA,CAAA,UAAU,EAJL,eAAe,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;AAMxF,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EANR,OAAA,EAAA,CAAA,eAAe,EAAsD,eAAe,EAIzF,UAAU,CAAA,EAAA,CAAA,CAAA;2FAET,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;iBAClC,CAAA;;;ACZD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-select.mjs","sources":["../../../../libs/angular/components/select/src/lib/select.tokens.ts","../../../../libs/angular/components/select/src/lib/components/option/option.component.ts","../../../../libs/angular/components/select/src/lib/components/option/option.component.html","../../../../libs/angular/components/select/src/lib/directives/select-search-field.directive.ts","../../../../libs/angular/components/select/src/lib/pipes/select-search-filter.pipe.ts","../../../../libs/angular/components/select/src/lib/select.component.ts","../../../../libs/angular/components/select/src/lib/select.component.html","../../../../libs/angular/components/select/src/lib/select.module.ts","../../../../libs/angular/components/select/src/odx-angular-components-select.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { SelectControl } from './abstract';\n\nexport const SELECT_CONTROL = new InjectionToken<SelectControl>('@odx/angular/components/select::SelectControl');\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, ChangeDetectorRef, Component, HostListener, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges, DisabledController, ReadonlyController } from '@odx/angular';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { CheckboxComponent } from '@odx/angular/components/checkbox';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, Transform, untilDestroyed } from '@odx/angular/utils';\nimport { SelectControlOption } from '../../abstract';\nimport { SELECT_CONTROL } from '../../select.tokens';\n\n@CSSComponent('option')\n@Component({\n standalone: true,\n selector: 'odx-option',\n imports: [CoreModule, DynamicViewDirective, CheckboxComponent],\n templateUrl: './option.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DisabledController.connect(), ReadonlyController.connect()],\n host: {\n '[attr.aria-selected]': 'isSelected',\n '[attr.aria-disabled]': 'disabled || null',\n '[class.is-disabled]': 'disabled',\n '[class.is-selected]': 'isSelected',\n '[class.is-active]': 'isActive',\n role: 'option',\n },\n})\nexport class OptionComponent<T = unknown> implements OnInit, SelectControlOption<T> {\n public static ngAcceptInputType_notFoundMessage: BooleanInput;\n\n private readonly disabledController = DisabledController.inject();\n private readonly readonlyController = ReadonlyController.inject();\n private readonly takeUntilDestroyed = untilDestroyed();\n private readonly cdr = inject(ChangeDetectorRef);\n\n protected readonly selectControl = inject(SELECT_CONTROL);\n protected isActive = false;\n\n public readonly element = injectElement();\n public isSelected = false;\n\n @Input()\n public value: T | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input()\n public notFoundMessage = false;\n\n public get disabled(): boolean {\n return !!this.disabledController?.disabled || !!this.readonlyController?.readonly;\n }\n\n constructor() {\n if (!this.selectControl.multiple) {\n detectControllerChanges(this.selectControl)\n .pipe(this.takeUntilDestroyed())\n .subscribe(() => {\n this.isSelected = this.selectControl.isOptionSelected(this);\n });\n }\n }\n\n public ngOnInit(): void {\n this.isSelected = this.selectControl.isOptionSelected(this);\n }\n\n public getLabel(): string {\n return this.element.nativeElement.textContent ?? '';\n }\n\n public setActiveStyles(): void {\n if (this.disabled) return;\n this.isActive = true;\n if (this.selectControl.isOpen) {\n this.selectControl.scrollOptionIntoView(this);\n } else {\n this.selectControl.selectOption(this);\n }\n }\n\n public setInactiveStyles(): void {\n this.isActive = false;\n }\n\n public switchCheckbox(): void {\n if (this.selectControl.multiple) {\n this.isSelected = !this.isSelected;\n this.cdr.markForCheck();\n }\n }\n\n @HostListener('click', ['$event'])\n protected select(event: Event): void {\n event.stopPropagation();\n event.preventDefault();\n this.selectControl.selectOption(this);\n }\n}\n","<odx-checkbox [checked]=\"isSelected\" *ngIf=\"selectControl.multiple && !notFoundMessage; else single\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</odx-checkbox>\n\n<ng-template #single>\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n</ng-template>\n\n<ng-template #content>\n <ng-content></ng-content>\n</ng-template>\n","import { Directive, HostListener, Input } from '@angular/core';\nimport { DynamicContent } from '@odx/angular/cdk/dynamic-view';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, untilDestroyed } from '@odx/angular/utils';\nimport { distinctUntilChanged, fromEvent, map } from 'rxjs';\n\n@CSSComponent('select__search')\n@Directive({\n standalone: true,\n selector: 'input[odxSelectSearchField]',\n host: {\n '[class.odx-form-field-control]': 'true',\n },\n})\nexport class SelectSearchFieldDirective {\n private readonly takeUntilDestroyed = untilDestroyed();\n\n public readonly element = injectElement<HTMLInputElement>();\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('odxSelectSearchField')\n public notFoundContent: DynamicContent | null = null;\n\n public valueChange$ = fromEvent(this.element.nativeElement, 'input').pipe(\n map(() => this.getValue()),\n distinctUntilChanged(),\n this.takeUntilDestroyed()\n );\n\n @HostListener('keydown.delete')\n public reset(): void {\n this.element.nativeElement.value = '';\n }\n\n public focus(): void {\n this.element.nativeElement.focus();\n }\n\n public getValue(): string {\n return this.element.nativeElement.value;\n }\n}\n","import { inject, Pipe, PipeTransform } from '@angular/core';\nimport { ODX_STRINGIFY, ODX_STRING_SEARCH_HANDLER, StringSearchHandler } from '@odx/angular';\nimport { Pure } from '@odx/angular/utils';\nimport { SelectSearchFieldDirective } from '../directives';\nimport { SELECT_CONTROL } from '../select.tokens';\n\n@Pipe({\n pure: false,\n name: 'odxSelectSearchFilter',\n standalone: true,\n})\nexport class SelectSearchFilterPipe implements PipeTransform {\n private readonly searchController = inject(SELECT_CONTROL, { optional: true });\n private readonly stringify = inject(ODX_STRINGIFY);\n private readonly stringSearchHandler = inject(ODX_STRING_SEARCH_HANDLER);\n\n private get searchField(): SelectSearchFieldDirective | undefined {\n return this.searchController?.searchField;\n }\n\n public transform<T>(items: T[] | null, searchHandler?: StringSearchHandler): T[] | null {\n if (this.searchField) {\n return this.filter(items, this.searchField.getValue(), searchHandler);\n }\n return items;\n }\n\n @Pure\n private filter<T>(items: T[] | null, query: string, searchHandler?: StringSearchHandler): T[] | null {\n if (!items) {\n return null;\n }\n query = query.trim();\n if (query === '') {\n return items;\n }\n const search = searchHandler ?? this.stringSearchHandler;\n const stringify = this.searchController?.stringify ?? this.stringify;\n\n return items.filter((item) => search(stringify(item), query));\n }\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n Component,\n ContentChild,\n ContentChildren,\n EventEmitter,\n forwardRef,\n HostListener,\n inject,\n Input,\n Output,\n QueryList,\n TemplateRef,\n ViewChild,\n ViewEncapsulation,\n} from '@angular/core';\nimport { CoreModule, detectControllerChanges, IdentityMatcher, ODX_IDENTITY_MATCHER, StringifyFn } from '@odx/angular';\nimport { CustomFormControl } from '@odx/angular/cdk/custom-form-control';\nimport { DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { DropdownDirective } from '@odx/angular/components/dropdown';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { LoadingSpinnerModule } from '@odx/angular/components/loading-spinner';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { fromQueryList } from '@odx/angular/rxjs';\nimport { deferFn, injectElement, Transform } from '@odx/angular/utils';\nimport { SelectControl, SelectControlOption } from './abstract';\nimport { OptionComponent } from './components';\nimport { SelectSearchFieldDirective } from './directives';\nimport { SELECT_CONTROL } from './select.tokens';\n\n@CSSComponent('select')\n@Component({\n standalone: true,\n selector: 'odx-select',\n imports: [CoreModule, DropdownDirective, IconComponent, DynamicViewDirective, OptionComponent, LoadingSpinnerModule],\n templateUrl: './select.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: SELECT_CONTROL,\n useExisting: forwardRef(() => SelectComponent),\n },\n ],\n host: {\n '[attr.aria-disabled]': 'isDisabled || null',\n '[class.is-open]': 'isOpen',\n '[tabindex]': 'searchFieldEnabled || isDisabled ? -1 : 0',\n '[attr.aria-multiselectable]': 'multiple',\n },\n})\nexport class SelectComponent<T = unknown | unknown[]> extends CustomFormControl<T | null> implements AfterViewInit, SelectControl<T> {\n public static ngAcceptInputType_isLoading: BooleanInput;\n public static ngAcceptInputType_multiple: BooleanInput;\n\n private keyManager?: ActiveDescendantKeyManager<OptionComponent<T>>;\n\n protected searchFieldEnabled = false;\n protected smoothScrollEnabled = false;\n protected selectedOption: OptionComponent<T> | null = null;\n protected selectedOptionText: string | null = null;\n\n @ContentChildren(OptionComponent, { descendants: true, emitDistinctChangesOnly: true })\n protected options?: QueryList<OptionComponent<T>>;\n\n @ViewChild(DropdownDirective)\n protected dropdown?: DropdownDirective;\n\n public get hasOptions(): boolean {\n return !!this.options && this.options.length > 0;\n }\n\n public readonly element = injectElement();\n\n public get isOpen(): boolean {\n return !!this.dropdown?.isOpen;\n }\n\n public get selectedOptionContent(): TemplateRef<{ $implicit: T | null }> | string | null {\n return this.selectedOption ? this.selectedOptionTemplate ?? this.selectedOptionText : null;\n }\n\n @Input()\n public placeholder = '';\n\n @Transform(coerceBooleanProperty)\n @Input()\n public isLoading = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public multiple = false;\n\n @Input()\n public selectedOptionTemplate?: TemplateRef<{ $implicit: T }> | null = null;\n\n @Input()\n public stringify?: StringifyFn<T | null>;\n\n @Input()\n public identityMatcher: IdentityMatcher<T | null> = inject(ODX_IDENTITY_MATCHER);\n\n @Output()\n // eslint-disable-next-line @angular-eslint/no-output-native\n public change = new EventEmitter<void>();\n\n @ContentChild(SelectSearchFieldDirective)\n public searchField?: SelectSearchFieldDirective;\n\n constructor() {\n super(null);\n detectControllerChanges(this).subscribe();\n }\n\n public ngAfterViewInit(): void {\n if (!this.options) return;\n this.keyManager = new ActiveDescendantKeyManager(this.options).withHomeAndEnd().skipPredicate((item) => item.disabled);\n fromQueryList(this.options).subscribe(() => {\n this.updateSelectedOption();\n if (this.isOpen) {\n deferFn(() => this.activateSelectedOption());\n }\n });\n this.searchField?.valueChange$.subscribe(() => this.triggerControllerChange());\n }\n\n public override registerOnChange(fn: (value: T | null) => void): void {\n super.registerOnChange((value) => {\n this.updateSelectedOption();\n fn(value);\n });\n }\n\n public selectOption(option?: SelectControlOption<T | T[]> | null): void {\n if (option && !option.disabled) {\n option.switchCheckbox();\n const value = this.multiple\n ? this.options\n ?.toArray()\n .filter(({ isSelected }) => isSelected)\n .map(({ value }) => value)\n : option.value;\n this.updateValue((value as T) ?? null);\n }\n\n !this.multiple && this.dropdown?.close();\n }\n\n public isOptionSelected(option: SelectControlOption<T | T[]>): boolean {\n if (option && !option.disabled) {\n if (this.multiple && Array.isArray(this.value)) {\n return (this.value as T[]).includes(option.value as T);\n }\n return this.identityMatcher(option.value as T, this.value);\n }\n return false;\n }\n\n public scrollOptionIntoView({ element }: SelectControlOption<T>): void {\n const behavior = this.smoothScrollEnabled ? 'smooth' : undefined;\n element.nativeElement.scrollIntoView({ block: 'center', behavior });\n }\n\n @HostListener('click', ['$event'])\n @HostListener('keydown', ['$event'])\n protected openDropdown(event: KeyboardEvent) {\n if (this.isLoading) return;\n if (this.isOpen && this.hasOptions) {\n if (event.key === 'Enter' || event.key === 'Tab') {\n event.preventDefault();\n event.stopImmediatePropagation();\n this.selectOption(this.keyManager?.activeItem);\n return;\n }\n }\n this.keyManager?.onKeydown(event);\n }\n\n @HostListener('focusout')\n protected handleFocusOut(): void {\n this.onTouched();\n }\n\n protected activateSelectedOption(): void {\n let activeIndex = this.options?.toArray().findIndex((option) => option.isSelected && !option.disabled);\n if (!activeIndex || activeIndex === -1) {\n activeIndex = this.options?.toArray().findIndex((option) => !option.disabled) ?? -1;\n }\n this.keyManager?.setActiveItem(activeIndex);\n }\n\n protected onDropdownOpen(): void {\n this.activateSelectedOption();\n if (!this.searchFieldEnabled) {\n this.searchFieldEnabled = !!this.searchField;\n deferFn(() => this.searchField?.focus());\n }\n }\n\n protected onDropdownClose(): void {\n this.disableSmoothScroll();\n if (this.searchFieldEnabled) {\n this.searchFieldEnabled = false;\n this.element.nativeElement?.focus();\n }\n }\n\n protected onDropdownClosed(): void {\n this.searchField?.reset();\n }\n\n protected disableSmoothScroll(): void {\n this.smoothScrollEnabled = false;\n }\n\n protected enableSmoothScroll(): void {\n this.smoothScrollEnabled = true;\n }\n\n private updateSelectedOption(): void {\n const options = this.options?.toArray();\n this.selectedOption = options?.find((option) => option.isSelected) ?? null;\n if (this.multiple) {\n this.selectedOptionText =\n options\n ?.filter(({ isSelected }) => isSelected)\n .map((option) => this.stringify?.(option.value) ?? option.getLabel())\n .join(', ') ?? null;\n\n this.triggerControllerChange();\n return;\n }\n this.selectedOptionText = this.selectedOption ? this.stringify?.(this.selectedOption?.value) ?? this.selectedOption.getLabel() : null;\n this.triggerControllerChange();\n }\n}\n","<div\n aria-haspopup=\"listbox\"\n class=\"odx-select__trigger\"\n [odxDropdown]=\"dropdownContent\"\n [odxDropdownDisabled]=\"isDisabled || isReadonly\"\n [odxDropdownOptions]=\"{ matchReferenceWidth: true, offset: 4 }\"\n [odxDropdownReferenceElement]=\"element.nativeElement\"\n [odxDropdownShowLoader]=\"isLoading\"\n (odxDropdownBeforeOpen)=\"onDropdownOpen()\"\n (odxDropdownBeforeClose)=\"onDropdownClose()\"\n (odxDropdownAfterClose)=\"onDropdownClosed()\"\n (odxDropdownAfterOpen)=\"enableSmoothScroll()\"\n>\n <ng-template [ngIf]=\"!searchFieldEnabled\" [ngIfElse]=\"searchFieldTemplate\">\n <div class=\"odx-select__value\" *ngIf=\"selectedOptionContent; else placeholderTemplate\">\n <ng-template [odxDynamicView]=\"selectedOptionContent\" [odxDynamicViewContext]=\"{ $implicit: value }\"></ng-template>\n </div>\n </ng-template>\n <ng-template #placeholderTemplate>\n <div class=\"odx-select__placeholder\">\n {{ placeholder }}\n </div>\n </ng-template>\n <ng-template #searchFieldTemplate>\n <ng-content select=\"[odxSelectSearchField]\"></ng-content>\n </ng-template>\n <odx-icon class=\"odx-select__indicator\" name=\"chevron-down\"></odx-icon>\n</div>\n<ng-template #dropdownContent>\n <div class=\"odx-select-dropdown\" role=\"listbox\">\n <ng-template [ngIf]=\"hasOptions\" [ngIfElse]=\"noOptionsTemplate\">\n <ng-content></ng-content>\n </ng-template>\n <ng-template #noOptionsTemplate>\n <odx-option disabled notFoundMessage>\n <ng-template [odxDynamicView]=\"searchField?.notFoundContent\"></ng-template>\n </odx-option>\n </ng-template>\n </div>\n</ng-template>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { OptionComponent } from './components';\nimport { SelectSearchFieldDirective } from './directives';\nimport { SelectSearchFilterPipe } from './pipes';\nimport { SelectComponent } from './select.component';\n\nconst modules = [SelectComponent, SelectSearchFieldDirective, SelectSearchFilterPipe, OptionComponent];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class SelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;MAGa,cAAc,GAAG,IAAI,cAAc,CAAgB,+CAA+C;;ACyBlG,IAAA,eAAe,GAArB,MAAM,eAAe,CAAA;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B,EAAE,sBAAsB,EAAE,eAAe,CAAA,EAAA,CAAA,CAAA;AAMxF,YAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,YAAY,EANR,OAAA,EAAA,CAAA,eAAe,EAAsD,eAAe,EAIzF,UAAU,CAAA,EAAA,CAAA,CAAA;2FAET,YAAY,EAAA,UAAA,EAAA,CAAA;kBAJxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;iBAClC,CAAA;;;ACZD;;AAEG;;;;"}
@@ -23,12 +23,12 @@ let SliderDirective = class SliderDirective {
23
23
  return (100 * (this.value - this.min)) / (this.max - this.min) || 0;
24
24
  }
25
25
  };
26
- SliderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SliderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
- SliderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SliderDirective, isStandalone: true, selector: "input[type=range][odxSlider]", host: { properties: { "style.--odx-slider-filled.%": "this.valuePercentage" } }, hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0 });
26
+ SliderDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SliderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
27
+ SliderDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.3", type: SliderDirective, isStandalone: true, selector: "input[type=range][odxSlider]", host: { properties: { "style.--odx-slider-filled.%": "this.valuePercentage" } }, hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0 });
28
28
  SliderDirective = __decorate([
29
29
  CSSComponent('slider')
30
30
  ], SliderDirective);
31
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SliderDirective, decorators: [{
31
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SliderDirective, decorators: [{
32
32
  type: Directive,
33
33
  args: [{
34
34
  standalone: true,
@@ -57,8 +57,8 @@ let SpinboxComponent = class SpinboxComponent extends CustomFormControl {
57
57
  }), switchMap(({ type }) => (['mouseup', 'keyup'].includes(type) ? NEVER : timer(500, 100).pipe(startWith(undefined)))), this.takeUntilDestroyed());
58
58
  }
59
59
  };
60
- SpinboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SpinboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
- SpinboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: SpinboxComponent, isStandalone: true, selector: "odx-spinbox", inputs: { max: "max", min: "min", step: "step" }, providers: [DisabledController.connect(), ReadonlyController.connect()], viewQueries: [{ propertyName: "decrementButton", first: true, predicate: ["decrementButton"], descendants: true }, { propertyName: "incrementButton", first: true, predicate: ["incrementButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-minus\" #decrementButton></button>\n<input\n odxControl\n class=\"odx-spinbox__input\"\n [disabled]=\"isDisabled\"\n [readonly]=\"isReadonly\"\n type=\"number\"\n [value]=\"value\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n (keydown)=\"maxSteps($event)\"\n (change)=\"onInputChange()\"\n (blur)=\"checkValue()\"\n/>\n<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-plus\" #incrementButton></button>\n", dependencies: [{ kind: "directive", type: ControlDirective, selector: "[odxControl]", exportAs: ["odxControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
60
+ SpinboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SpinboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
61
+ SpinboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: SpinboxComponent, isStandalone: true, selector: "odx-spinbox", inputs: { max: "max", min: "min", step: "step" }, providers: [DisabledController.connect(), ReadonlyController.connect()], viewQueries: [{ propertyName: "decrementButton", first: true, predicate: ["decrementButton"], descendants: true }, { propertyName: "incrementButton", first: true, predicate: ["incrementButton"], descendants: true }], usesInheritance: true, ngImport: i0, template: "<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-minus\" #decrementButton></button>\n<input\n odxControl\n class=\"odx-spinbox__input\"\n [disabled]=\"isDisabled\"\n [readonly]=\"isReadonly\"\n type=\"number\"\n [value]=\"value\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n (keydown)=\"maxSteps($event)\"\n (change)=\"onInputChange()\"\n (blur)=\"checkValue()\"\n/>\n<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-plus\" #incrementButton></button>\n", dependencies: [{ kind: "directive", type: ControlDirective, selector: "[odxControl]", exportAs: ["odxControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
62
62
  __decorate([
63
63
  Transform(coerceNumberProperty),
64
64
  __metadata("design:type", Object)
@@ -75,7 +75,7 @@ SpinboxComponent = __decorate([
75
75
  CSSComponent('spinbox'),
76
76
  __metadata("design:paramtypes", [])
77
77
  ], SpinboxComponent);
78
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SpinboxComponent, decorators: [{
78
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SpinboxComponent, decorators: [{
79
79
  type: Component,
80
80
  args: [{ standalone: true, selector: 'odx-spinbox', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ControlDirective], providers: [DisabledController.connect(), ReadonlyController.connect()], template: "<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-minus\" #decrementButton></button>\n<input\n odxControl\n class=\"odx-spinbox__input\"\n [disabled]=\"isDisabled\"\n [readonly]=\"isReadonly\"\n type=\"number\"\n [value]=\"value\"\n [min]=\"min\"\n [max]=\"max\"\n [step]=\"step\"\n (keydown)=\"maxSteps($event)\"\n (change)=\"onInputChange()\"\n (blur)=\"checkValue()\"\n/>\n<button [disabled]=\"isDisabled || isReadonly\" type=\"button\" class=\"odx-spinbox__action odx-icon odx-icon-plus\" #incrementButton></button>\n" }]
81
81
  }], ctorParameters: function () { return []; }, propDecorators: { decrementButton: [{
@@ -10,12 +10,12 @@ import { CheckboxRequiredValidator, NG_VALIDATORS } from '@angular/forms';
10
10
 
11
11
  let SwitchComponent = class SwitchComponent extends CheckBoxControl {
12
12
  };
13
- SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
14
- SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: SwitchComponent, isStandalone: true, selector: "odx-switch", host: { properties: { "class.is-active": "checked" } }, providers: [ReadonlyController.connect()], usesInheritance: true, hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0, template: "<label class=\"odx-switch__label\">\n <input\n odxControl\n class=\"odx-switch__input\"\n [attr.aria-checked]=\"ariaChecked\"\n [attr.aria-invalid]=\"hasError || null\"\n [attr.aria-readonly]=\"isReadonly || null\"\n [attr.aria-required]=\"isRequired || null\"\n [attr.tabindex]=\"tabindex || null\"\n [checked]=\"checked\"\n [disabled]=\"isDisabled || isReadonly\"\n [name]=\"name\"\n [readonly]=\"isReadonly\"\n [value]=\"value\"\n type=\"checkbox\"\n (blur)=\"onTouched()\"\n (change)=\"onChanged($event)\"\n />\n <div class=\"odx-switch__indicator\"></div>\n <div class=\"odx-switch__content\">\n <ng-content></ng-content>\n </div>\n</label>\n", dependencies: [{ kind: "directive", type: ControlDirective, selector: "[odxControl]", exportAs: ["odxControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
13
+ SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
14
+ SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: SwitchComponent, isStandalone: true, selector: "odx-switch", host: { properties: { "class.is-active": "checked" } }, providers: [ReadonlyController.connect()], usesInheritance: true, hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0, template: "<label class=\"odx-switch__label\">\n <input\n odxControl\n class=\"odx-switch__input\"\n [attr.aria-checked]=\"ariaChecked\"\n [attr.aria-invalid]=\"hasError || null\"\n [attr.aria-readonly]=\"isReadonly || null\"\n [attr.aria-required]=\"isRequired || null\"\n [attr.tabindex]=\"tabindex || null\"\n [checked]=\"checked\"\n [disabled]=\"isDisabled || isReadonly\"\n [name]=\"name\"\n [readonly]=\"isReadonly\"\n [value]=\"value\"\n type=\"checkbox\"\n (blur)=\"onTouched()\"\n (change)=\"onChanged($event)\"\n />\n <div class=\"odx-switch__indicator\"></div>\n <div class=\"odx-switch__content\">\n <ng-content></ng-content>\n </div>\n</label>\n", dependencies: [{ kind: "directive", type: ControlDirective, selector: "[odxControl]", exportAs: ["odxControl"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
15
15
  SwitchComponent = __decorate([
16
16
  CSSComponent('switch')
17
17
  ], SwitchComponent);
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchComponent, decorators: [{
19
19
  type: Component,
20
20
  args: [{ standalone: true, selector: 'odx-switch', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ControlDirective], providers: [ReadonlyController.connect()], hostDirectives: [WithDisabledState], host: {
21
21
  '[class.is-active]': 'checked',
@@ -24,15 +24,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
24
24
 
25
25
  class SwitchValidator extends CheckboxRequiredValidator {
26
26
  }
27
- SwitchValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
28
- SwitchValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.1", type: SwitchValidator, isStandalone: true, selector: "odx-switch[required][formControlName], odx-switch[required][formControl], odx-switch[required][ngModel]", providers: [
27
+ SwitchValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
28
+ SwitchValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.3", type: SwitchValidator, isStandalone: true, selector: "odx-switch[required][formControlName], odx-switch[required][formControl], odx-switch[required][ngModel]", providers: [
29
29
  {
30
30
  provide: NG_VALIDATORS,
31
31
  useExisting: forwardRef(() => SwitchValidator),
32
32
  multi: true,
33
33
  },
34
34
  ], usesInheritance: true, ngImport: i0 });
35
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchValidator, decorators: [{
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchValidator, decorators: [{
36
36
  type: Directive,
37
37
  args: [{
38
38
  standalone: true,
@@ -50,10 +50,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
50
50
  const modules = [SwitchComponent, SwitchValidator];
51
51
  class SwitchModule {
52
52
  }
53
- SwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
54
- SwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, SwitchValidator], exports: [CoreModule, SwitchComponent, SwitchValidator] });
55
- SwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, CoreModule] });
56
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: SwitchModule, decorators: [{
53
+ SwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
54
+ SwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, SwitchValidator], exports: [CoreModule, SwitchComponent, SwitchValidator] });
55
+ SwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, CoreModule] });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: SwitchModule, decorators: [{
57
57
  type: NgModule,
58
58
  args: [{
59
59
  imports: modules,
@@ -4,14 +4,15 @@ import * as i1 from '@angular/common';
4
4
  import { CommonModule } from '@angular/common';
5
5
  import * as i0 from '@angular/core';
6
6
  import { InjectionToken, inject, ElementRef, EventEmitter, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, HostListener, ChangeDetectorRef, forwardRef, ViewChild, ViewChildren, ContentChildren, NgModule } from '@angular/core';
7
+ import { RouterLinkActive } from '@angular/router';
7
8
  import { DisabledController, CoreModule } from '@odx/angular';
8
9
  import { IconComponent } from '@odx/angular/components/icon';
9
10
  import { CSSComponent, CSSModifier } from '@odx/angular/internal';
10
- import { deferFn, Transform, untilDestroyed, injectElement, applyStyles, cssTranslate, px } from '@odx/angular/utils';
11
+ import { untilDestroyed, deferFn, Transform, injectElement, applyStyles, cssTranslate, px } from '@odx/angular/utils';
12
+ import { filter, BehaviorSubject, merge, debounceTime, tap, fromEvent } from 'rxjs';
11
13
  import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
12
14
  import { ActiveIndicatorDirective } from '@odx/angular/cdk/active-indicator';
13
15
  import { fromQueryList, fromElementResize$ } from '@odx/angular/rxjs';
14
- import { BehaviorSubject, merge, debounceTime, tap, fromEvent } from 'rxjs';
15
16
 
16
17
  const TAB_BAR = new InjectionToken('tabBar');
17
18
 
@@ -19,6 +20,8 @@ let TabBarItemComponent = class TabBarItemComponent {
19
20
  constructor() {
20
21
  this.disabledController = DisabledController.inject();
21
22
  this.tabBar = inject(TAB_BAR);
23
+ this.routerLinkActive = inject(RouterLinkActive, { optional: true, self: true });
24
+ this.takeUntilDestroyed = untilDestroyed();
22
25
  this.isActive = false;
23
26
  this.element = inject(ElementRef);
24
27
  this.closable = false;
@@ -28,6 +31,12 @@ let TabBarItemComponent = class TabBarItemComponent {
28
31
  var _a;
29
32
  return !!((_a = this.disabledController) === null || _a === void 0 ? void 0 : _a.disabled);
30
33
  }
34
+ ngOnInit() {
35
+ var _a;
36
+ (_a = this.routerLinkActive) === null || _a === void 0 ? void 0 : _a.isActiveChange.pipe(this.takeUntilDestroyed(), filter(Boolean)).subscribe(() => {
37
+ this.onClick();
38
+ });
39
+ }
31
40
  setActiveStyles() {
32
41
  deferFn(() => (this.isActive = true));
33
42
  }
@@ -47,8 +56,8 @@ let TabBarItemComponent = class TabBarItemComponent {
47
56
  this.tabClose.emit(this);
48
57
  }
49
58
  };
50
- TabBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
51
- TabBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TabBarItemComponent, isStandalone: true, selector: "odx-tab-bar-item", inputs: { closable: "closable" }, outputs: { tabClose: "tabClose" }, host: { attributes: { "role": "tab" }, listeners: { "click": "onClick()" }, properties: { "class.is-disabled": "disabled", "class.is-active": "isActive", "attr.aria-selected": "isActive", "class.is-closable": "closable" } }, providers: [DisabledController.connect()], ngImport: i0, template: "<ng-content select=\"odx-icon\"></ng-content>\n<ng-content></ng-content>\n<odx-icon name=\"close\" size=\"small\" *ngIf=\"closable\" (click)=\"handleClose($event)\"></odx-icon>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
59
+ TabBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
60
+ TabBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: TabBarItemComponent, isStandalone: true, selector: "odx-tab-bar-item", inputs: { closable: "closable" }, outputs: { tabClose: "tabClose" }, host: { attributes: { "role": "tab" }, listeners: { "click": "onClick()" }, properties: { "class.is-disabled": "disabled", "class.is-active": "isActive", "attr.aria-selected": "isActive", "class.is-closable": "closable" } }, providers: [DisabledController.connect()], ngImport: i0, template: "<ng-content select=\"odx-icon\"></ng-content>\n<ng-content></ng-content>\n<odx-icon name=\"close\" size=\"small\" *ngIf=\"closable\" (click)=\"handleClose($event)\"></odx-icon>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
52
61
  __decorate([
53
62
  Transform(coerceBooleanProperty),
54
63
  __metadata("design:type", Object)
@@ -56,7 +65,7 @@ __decorate([
56
65
  TabBarItemComponent = __decorate([
57
66
  CSSComponent('tab-bar-item')
58
67
  ], TabBarItemComponent);
59
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarItemComponent, decorators: [{
68
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarItemComponent, decorators: [{
60
69
  type: Component,
61
70
  args: [{ selector: 'odx-tab-bar-item', standalone: true, imports: [CommonModule, IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], host: {
62
71
  '[class.is-disabled]': 'disabled',
@@ -141,8 +150,8 @@ let TabBarComponent = TabBarComponent_1 = class TabBarComponent {
141
150
  this.selectedTabChanged.emit({ selectedIndex: activeItemIndex !== null && activeItemIndex !== void 0 ? activeItemIndex : -1, selectedTab: (_c = (_b = this.keyManager) === null || _b === void 0 ? void 0 : _b.activeItem) !== null && _c !== void 0 ? _c : null });
142
151
  }
143
152
  };
144
- TabBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
145
- TabBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.1", type: TabBarComponent, isStandalone: true, selector: "odx-tab-bar", inputs: { selectedIndex: "selectedIndex" }, outputs: { selectedTabChanged: "selectedTabChanged" }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, listeners: { "keydown": "onKeydown($event)" } }, providers: [{ provide: TAB_BAR, useExisting: forwardRef(() => TabBarComponent_1) }], queries: [{ propertyName: "tabs", predicate: TabBarItemComponent }], viewQueries: [{ propertyName: "tabBarPanelElement", first: true, predicate: ["tabBarPanel"], descendants: true }, { propertyName: "tabActionElements", predicate: ["tabAction"], descendants: true }], ngImport: i0, template: "<button\n #tabAction\n class=\"odx-tab-bar__action odx-tab-bar__action--prev\"\n [class.is-active]=\"overflowLeft\"\n (click)=\"keyManager?.setPreviousItemActive()\"\n tabindex=\"-1\"\n>\n <odx-icon class=\"tab-bar-action-icon\" name=\"chevron-left\"></odx-icon>\n</button>\n<div class=\"odx-tab-bar__inner\">\n <div class=\"odx-tab-bar__panel\" role=\"tablist\" #tabBarPanel>\n <ng-content></ng-content>\n <div class=\"odx-tab-bar__indicator\" [odxActiveIndicator]=\"activeItem?.element?.nativeElement\" odxActiveIndicatorPosition=\"start\"></div>\n </div>\n</div>\n<button\n #tabAction\n class=\"odx-tab-bar__action odx-tab-bar__action--next\"\n [class.is-active]=\"overflowRight\"\n (click)=\"keyManager?.setNextItemActive()\"\n tabindex=\"-1\"\n>\n <odx-icon class=\"tab-bar-action-icon\" name=\"chevron-right\"></odx-icon>\n</button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: ActiveIndicatorDirective, selector: "[odxActiveIndicator]", inputs: ["odxActiveIndicator", "odxActiveIndicatorParent", "odxActiveIndicatorDirection", "odxActiveIndicatorPosition"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
153
+ TabBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
154
+ TabBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.3", type: TabBarComponent, isStandalone: true, selector: "odx-tab-bar", inputs: { selectedIndex: "selectedIndex" }, outputs: { selectedTabChanged: "selectedTabChanged" }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, listeners: { "keydown": "onKeydown($event)" } }, providers: [{ provide: TAB_BAR, useExisting: forwardRef(() => TabBarComponent_1) }], queries: [{ propertyName: "tabs", predicate: TabBarItemComponent }], viewQueries: [{ propertyName: "tabBarPanelElement", first: true, predicate: ["tabBarPanel"], descendants: true }, { propertyName: "tabActionElements", predicate: ["tabAction"], descendants: true }], ngImport: i0, template: "<button\n #tabAction\n class=\"odx-tab-bar__action odx-tab-bar__action--prev\"\n [class.is-active]=\"overflowLeft\"\n (click)=\"keyManager?.setPreviousItemActive()\"\n tabindex=\"-1\"\n>\n <odx-icon class=\"tab-bar-action-icon\" name=\"chevron-left\"></odx-icon>\n</button>\n<div class=\"odx-tab-bar__inner\">\n <div class=\"odx-tab-bar__panel\" role=\"tablist\" #tabBarPanel>\n <ng-content></ng-content>\n <div class=\"odx-tab-bar__indicator\" [odxActiveIndicator]=\"activeItem?.element?.nativeElement\" odxActiveIndicatorPosition=\"start\"></div>\n </div>\n</div>\n<button\n #tabAction\n class=\"odx-tab-bar__action odx-tab-bar__action--next\"\n [class.is-active]=\"overflowRight\"\n (click)=\"keyManager?.setNextItemActive()\"\n tabindex=\"-1\"\n>\n <odx-icon class=\"tab-bar-action-icon\" name=\"chevron-right\"></odx-icon>\n</button>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: ActiveIndicatorDirective, selector: "[odxActiveIndicator]", inputs: ["odxActiveIndicator", "odxActiveIndicatorParent", "odxActiveIndicatorDirection", "odxActiveIndicatorPosition"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
146
155
  __decorate([
147
156
  CSSModifier(),
148
157
  __metadata("design:type", Object)
@@ -154,7 +163,7 @@ __decorate([
154
163
  TabBarComponent = TabBarComponent_1 = __decorate([
155
164
  CSSComponent('tab-bar')
156
165
  ], TabBarComponent);
157
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarComponent, decorators: [{
166
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarComponent, decorators: [{
158
167
  type: Component,
159
168
  args: [{ selector: 'odx-tab-bar', standalone: true, imports: [CommonModule, IconComponent, ActiveIndicatorDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: TAB_BAR, useExisting: forwardRef(() => TabBarComponent) }], host: {
160
169
  role: 'tabpanel',
@@ -181,10 +190,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImpor
181
190
  const modules = [TabBarComponent, TabBarItemComponent];
182
191
  class TabBarModule {
183
192
  }
184
- TabBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
185
- TabBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.1", ngImport: i0, type: TabBarModule, imports: [TabBarComponent, TabBarItemComponent], exports: [CoreModule, TabBarComponent, TabBarItemComponent] });
186
- TabBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarModule, imports: [modules, CoreModule] });
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.1", ngImport: i0, type: TabBarModule, decorators: [{
193
+ TabBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
194
+ TabBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.3", ngImport: i0, type: TabBarModule, imports: [TabBarComponent, TabBarItemComponent], exports: [CoreModule, TabBarComponent, TabBarItemComponent] });
195
+ TabBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarModule, imports: [modules, CoreModule] });
196
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.3", ngImport: i0, type: TabBarModule, decorators: [{
188
197
  type: NgModule,
189
198
  args: [{
190
199
  imports: modules,