@odx/angular 1.0.0-rc.2 → 1.0.0-rc.21

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 (834) hide show
  1. package/README.md +6 -7
  2. package/animations/index.d.ts +1 -0
  3. package/animations/lib/wait-for-child-animations.d.ts +1 -0
  4. package/cdk/a11y/README.md +3 -0
  5. package/cdk/a11y/index.d.ts +2 -0
  6. package/cdk/a11y/lib/a11y.module.d.ts +11 -0
  7. package/cdk/a11y/lib/directives/index.d.ts +3 -0
  8. package/cdk/a11y/lib/directives/interactive.directive.d.ts +11 -0
  9. package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +10 -0
  10. package/cdk/a11y/lib/directives/list-focus-manager.directive.d.ts +12 -0
  11. package/cdk/active-indicator/README.md +3 -0
  12. package/cdk/active-indicator/index.d.ts +2 -0
  13. package/cdk/active-indicator/lib/active-indicator.directive.d.ts +25 -0
  14. package/cdk/active-indicator/lib/models/active-indicator-direction.d.ts +5 -0
  15. package/cdk/active-indicator/lib/models/active-indicator-position.d.ts +6 -0
  16. package/cdk/active-indicator/lib/models/index.d.ts +2 -0
  17. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +4 -3
  18. package/cdk/connected-overlay/README.md +3 -0
  19. package/cdk/connected-overlay/index.d.ts +3 -0
  20. package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +28 -0
  21. package/cdk/connected-overlay/lib/connected-overlay.service.d.ts +10 -0
  22. package/cdk/connected-overlay/lib/helpers/compute-overlay-position.d.ts +3 -0
  23. package/cdk/connected-overlay/lib/helpers/index.d.ts +1 -0
  24. package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +25 -0
  25. package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +12 -0
  26. package/cdk/connected-overlay/lib/models/index.d.ts +2 -0
  27. package/cdk/custom-form-control/lib/control.directive.d.ts +1 -1
  28. package/cdk/custom-form-control/lib/custom-form-control.d.ts +8 -14
  29. package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +4 -4
  30. package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +3 -1
  31. package/cdk/dynamic-view/lib/dynamic-view.service.d.ts +1 -0
  32. package/cdk/dynamic-view/lib/facade/dynamic-content.d.ts +3 -3
  33. package/cdk/dynamic-view/lib/facade/dynamic-view-ref.d.ts +1 -0
  34. package/cdk/dynamic-view/lib/helpers/create-projectable-nodes.d.ts +2 -0
  35. package/cdk/dynamic-view/lib/helpers/index.d.ts +1 -0
  36. package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +2 -0
  37. package/cdk/dynamic-view/lib/models/dynamic-template-ref.d.ts +1 -0
  38. package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +7 -3
  39. package/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.d.ts +3 -0
  40. package/cdk/dynamic-view/lib/tokens/index.d.ts +1 -0
  41. package/cdk/expandable/index.d.ts +1 -0
  42. package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +2 -2
  43. package/cdk/expandable/lib/directives/extandable-container.directive.d.ts +2 -2
  44. package/cdk/expandable/lib/expandable.tokens.d.ts +3 -0
  45. package/cdk/expandable/lib/facade/expandable-container.d.ts +4 -4
  46. package/cdk/expandable/lib/facade/expandable-item.d.ts +6 -6
  47. package/cdk/radio-group-control/lib/radio-control.directive.d.ts +1 -1
  48. package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +3 -2
  49. package/components/accordion/lib/accordion.component.d.ts +1 -1
  50. package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +1 -1
  51. package/components/accordion/lib/directives/accordion-item-title.d.ts +1 -1
  52. package/components/action-group/action-group.component.d.ts +1 -1
  53. package/components/area-header/area-header.component.d.ts +1 -1
  54. package/components/area-header/directives/area-header-content.directive.d.ts +1 -1
  55. package/components/area-header/directives/area-header-subtitle.directive.d.ts +1 -1
  56. package/components/area-header/models/area-header-size.d.ts +1 -1
  57. package/components/avatar/lib/avatar.component.d.ts +3 -2
  58. package/components/avatar/lib/models/avatar-size.d.ts +1 -1
  59. package/components/avatar/lib/models/avatar-variant.d.ts +5 -0
  60. package/components/avatar/lib/models/index.d.ts +1 -0
  61. package/components/badge/lib/badge.component.d.ts +7 -17
  62. package/components/badge/lib/badge.directive.d.ts +17 -13
  63. package/components/badge/lib/models/badge-variant.d.ts +1 -1
  64. package/components/badge/lib/models/index.d.ts +0 -1
  65. package/components/bar/README.md +3 -0
  66. package/components/bar/index.d.ts +5 -0
  67. package/components/bar/lib/bar.component.d.ts +6 -0
  68. package/components/bar/lib/bar.module.d.ts +10 -0
  69. package/components/bar/lib/directives/bar-button.directive.d.ts +10 -0
  70. package/components/bar/lib/directives/bar-label.directive.d.ts +6 -0
  71. package/components/bar/lib/models/bar-button-variant.d.ts +5 -0
  72. package/components/breadcrumbs/README.md +3 -0
  73. package/components/breadcrumbs/index.d.ts +1 -0
  74. package/components/breadcrumbs/lib/breadcrumbs.component.d.ts +17 -0
  75. package/components/button/index.d.ts +1 -0
  76. package/components/button/lib/button.component.d.ts +3 -4
  77. package/components/button/lib/directives/index.d.ts +1 -0
  78. package/components/button/lib/directives/responsive-button.directive.d.ts +6 -0
  79. package/components/button/lib/models/button-size.d.ts +1 -1
  80. package/components/button/lib/models/button-variant.d.ts +1 -1
  81. package/components/button-group/lib/button-group.component.d.ts +1 -1
  82. package/components/checkbox/index.d.ts +2 -0
  83. package/components/checkbox/lib/checkbox.component.d.ts +2 -1
  84. package/components/checkbox/lib/checkbox.module.d.ts +9 -0
  85. package/components/checkbox/lib/checkbox.validator.d.ts +6 -0
  86. package/components/chip/README.md +3 -0
  87. package/components/chip/index.d.ts +2 -0
  88. package/components/chip/lib/chip.component.d.ts +15 -0
  89. package/components/chip/lib/models/chip-size.d.ts +5 -0
  90. package/components/chip/lib/models/chip-variant.d.ts +7 -0
  91. package/components/chip/lib/models/index.d.ts +2 -0
  92. package/components/circular-progress/README.md +3 -0
  93. package/components/circular-progress/index.d.ts +2 -0
  94. package/components/circular-progress/lib/circular-progress.component.d.ts +29 -0
  95. package/components/circular-progress/lib/models/circular-progress-size.d.ts +7 -0
  96. package/components/circular-progress/lib/models/index.d.ts +1 -0
  97. package/components/content-box/lib/content-box.component.d.ts +1 -1
  98. package/components/content-box/lib/directives/content-box-footer-directive.d.ts +1 -1
  99. package/components/content-box/lib/directives/content-box-header-directive.d.ts +1 -1
  100. package/components/dropdown/README.md +3 -0
  101. package/components/dropdown/index.d.ts +5 -0
  102. package/components/dropdown/lib/dropdown.component.d.ts +12 -0
  103. package/components/dropdown/lib/dropdown.directive.d.ts +42 -0
  104. package/components/dropdown/lib/dropdown.module.d.ts +8 -0
  105. package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +1 -0
  106. package/components/dropdown/lib/helpers/index.d.ts +1 -0
  107. package/components/dropdown/lib/models/close-dropdown-event.d.ts +4 -0
  108. package/components/dropdown/lib/models/dropdown-options.d.ts +3 -0
  109. package/components/dropdown/lib/models/index.d.ts +2 -0
  110. package/components/form-field/index.d.ts +1 -0
  111. package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +1 -1
  112. package/components/form-field/lib/components/form-group/form-group.component.d.ts +1 -2
  113. package/components/form-field/lib/directives/form-field-control.directive.d.ts +3 -4
  114. package/components/form-field/lib/directives/form-field-error.directive.d.ts +1 -1
  115. package/components/form-field/lib/directives/form-field-hint.directive.d.ts +1 -1
  116. package/components/form-field/lib/directives/form-field-label.directive.d.ts +1 -1
  117. package/components/form-field/lib/directives/form.directive.d.ts +1 -1
  118. package/components/form-field/lib/form-field.component.d.ts +8 -2
  119. package/components/form-field/lib/form-field.config.d.ts +3 -7
  120. package/components/form-field/lib/form-field.module.d.ts +0 -4
  121. package/components/form-field/lib/models/form-field-error-resolver.d.ts +1 -1
  122. package/components/form-field/lib/models/form-field-error.d.ts +1 -0
  123. package/components/form-field/lib/models/form-field-variant.d.ts +5 -0
  124. package/components/form-field/lib/models/index.d.ts +1 -0
  125. package/components/form-field/lib/services/form-field-error.service.d.ts +1 -0
  126. package/components/header/lib/directives/header-avatar.directive.d.ts +5 -2
  127. package/components/header/lib/directives/header-title.directive.d.ts +1 -1
  128. package/components/header/lib/header.component.d.ts +1 -1
  129. package/components/header/lib/header.module.d.ts +2 -3
  130. package/components/icon/lib/icon.component.d.ts +1 -1
  131. package/components/icon/lib/models/icon-size.d.ts +2 -1
  132. package/components/inline-message/README.md +3 -0
  133. package/components/inline-message/index.d.ts +2 -0
  134. package/components/inline-message/lib/inline-message.component.d.ts +9 -0
  135. package/components/inline-message/lib/models/index.d.ts +1 -0
  136. package/components/inline-message/lib/models/inline-message-variant.d.ts +7 -0
  137. package/components/launch-tile/README.md +3 -0
  138. package/components/launch-tile/index.d.ts +3 -0
  139. package/components/launch-tile/lib/components/index.d.ts +2 -0
  140. package/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.d.ts +5 -0
  141. package/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.d.ts +5 -0
  142. package/components/launch-tile/lib/launch-tile.component.d.ts +17 -0
  143. package/components/launch-tile/lib/launch-tile.module.d.ts +14 -0
  144. package/components/link/link.directive.d.ts +2 -4
  145. package/components/list/README.md +3 -0
  146. package/components/list/index.d.ts +3 -0
  147. package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +14 -0
  148. package/components/list/lib/components/index.d.ts +2 -0
  149. package/components/list/lib/components/list-item/list-item.component.d.ts +12 -0
  150. package/components/list/lib/list.component.d.ts +8 -0
  151. package/components/list/lib/list.module.d.ts +10 -0
  152. package/components/loading-spinner/README.md +3 -0
  153. package/components/loading-spinner/index.d.ts +3 -0
  154. package/components/loading-spinner/lib/loading-spinner.component.d.ts +15 -0
  155. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +27 -0
  156. package/components/loading-spinner/lib/loading-spinner.module.d.ts +9 -0
  157. package/components/logo/logo.directive.d.ts +1 -1
  158. package/components/logo/models/logo-size.d.ts +1 -1
  159. package/components/logo/models/logo-variant.d.ts +1 -1
  160. package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +1 -1
  161. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +9 -4
  162. package/components/main-menu/lib/main-menu.component.d.ts +3 -1
  163. package/components/mainfilter-group/README.md +3 -0
  164. package/components/mainfilter-group/index.d.ts +1 -0
  165. package/components/mainfilter-group/lib/mainfilter-group.component.d.ts +6 -0
  166. package/components/menu/README.md +3 -0
  167. package/components/menu/index.d.ts +4 -0
  168. package/components/menu/lib/directives/index.d.ts +1 -0
  169. package/components/menu/lib/directives/menu-item.directive.d.ts +8 -0
  170. package/components/menu/lib/menu.component.d.ts +11 -0
  171. package/components/menu/lib/menu.directive.d.ts +17 -0
  172. package/components/menu/lib/menu.module.d.ts +10 -0
  173. package/components/modal/index.d.ts +0 -1
  174. package/components/modal/lib/components/basic-modal/basic-modal.component.d.ts +10 -0
  175. package/components/modal/lib/components/index.d.ts +2 -0
  176. package/components/modal/lib/components/modal-footer/modal-footer.component.d.ts +1 -1
  177. package/components/modal/lib/components/modal-header/modal-header.component.d.ts +2 -1
  178. package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +11 -0
  179. package/components/modal/lib/directives/modal-close.directive.d.ts +2 -2
  180. package/components/modal/lib/directives/modal-content.directive.d.ts +1 -1
  181. package/components/modal/lib/directives/modal-dismiss.directive.d.ts +1 -1
  182. package/components/modal/lib/helpers/inject-modal-ref.d.ts +1 -1
  183. package/components/modal/lib/modal.component.d.ts +11 -6
  184. package/components/modal/lib/modal.config.d.ts +2 -2
  185. package/components/modal/lib/modal.directive.d.ts +8 -4
  186. package/components/modal/lib/modal.module.d.ts +9 -12
  187. package/components/modal/lib/modal.service.d.ts +9 -6
  188. package/components/modal/lib/models/basic-modal-options.d.ts +17 -0
  189. package/components/modal/lib/models/index.d.ts +3 -0
  190. package/components/modal/lib/models/modal-hero-variant.d.ts +7 -0
  191. package/components/modal/lib/models/modal-options.d.ts +3 -1
  192. package/components/modal/lib/models/modal-ref.d.ts +9 -5
  193. package/components/modal/lib/models/modal-size.d.ts +2 -1
  194. package/components/modal/lib/models/modal-type.d.ts +1 -1
  195. package/components/modal/lib/models/modal-variant.d.ts +5 -0
  196. package/components/progress/README.md +3 -0
  197. package/components/progress/index.d.ts +1 -0
  198. package/components/progress/lib/progress.component.d.ts +14 -0
  199. package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +2 -2
  200. package/components/radio-group/lib/radio-group.component.d.ts +1 -1
  201. package/components/rail-navigation/README.md +3 -0
  202. package/components/rail-navigation/index.d.ts +3 -0
  203. package/components/rail-navigation/lib/components/rail-navigation-item.component.d.ts +13 -0
  204. package/components/rail-navigation/lib/rail-navigation.component.d.ts +14 -0
  205. package/components/rail-navigation/lib/rail-navigation.module.d.ts +9 -0
  206. package/components/select/README.md +3 -0
  207. package/components/select/index.d.ts +7 -0
  208. package/components/select/lib/abstract/index.d.ts +2 -0
  209. package/components/select/lib/abstract/select-control-option.d.ts +9 -0
  210. package/components/select/lib/abstract/select-control.d.ts +12 -0
  211. package/components/select/lib/components/index.d.ts +1 -0
  212. package/components/select/lib/components/option/option.component.d.ts +27 -0
  213. package/components/select/lib/directives/index.d.ts +1 -0
  214. package/components/select/lib/directives/select-search-field.directive.d.ts +13 -0
  215. package/components/select/lib/pipes/index.d.ts +1 -0
  216. package/components/select/lib/pipes/select-search-filter.pipe.d.ts +13 -0
  217. package/components/select/lib/select.component.d.ts +53 -0
  218. package/components/select/lib/select.module.d.ts +11 -0
  219. package/components/select/lib/select.tokens.d.ts +3 -0
  220. package/components/slider/README.md +3 -0
  221. package/components/slider/index.d.ts +1 -0
  222. package/components/slider/lib/slider.directive.d.ts +12 -0
  223. package/components/spinbox/README.md +3 -0
  224. package/components/spinbox/index.d.ts +1 -0
  225. package/components/spinbox/lib/spinbox.component.d.ts +25 -0
  226. package/components/switch/index.d.ts +2 -0
  227. package/components/switch/lib/switch.component.d.ts +2 -1
  228. package/components/switch/lib/switch.module.d.ts +9 -0
  229. package/components/switch/lib/switch.validator.d.ts +6 -0
  230. package/components/tab-bar/README.md +3 -0
  231. package/components/tab-bar/index.d.ts +4 -0
  232. package/components/tab-bar/lib/components/index.d.ts +1 -0
  233. package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +23 -0
  234. package/components/tab-bar/lib/models/index.d.ts +1 -0
  235. package/components/tab-bar/lib/models/tab-change-event.d.ts +5 -0
  236. package/components/tab-bar/lib/tab-bar.component.d.ts +31 -0
  237. package/components/tab-bar/lib/tab-bar.config.d.ts +3 -0
  238. package/components/tab-bar/lib/tab-bar.module.d.ts +9 -0
  239. package/components/toast/README.md +3 -0
  240. package/components/toast/index.d.ts +5 -0
  241. package/components/toast/lib/components/index.d.ts +2 -0
  242. package/components/toast/lib/components/toast-container/toast-container.component.d.ts +23 -0
  243. package/components/toast/lib/components/toast-item/toast-item.component.d.ts +20 -0
  244. package/components/toast/lib/models/index.d.ts +5 -0
  245. package/components/toast/lib/models/toast-action.d.ts +7 -0
  246. package/components/toast/lib/models/toast-ref.d.ts +7 -0
  247. package/components/toast/lib/models/toast-variant.d.ts +7 -0
  248. package/components/toast/lib/models/toast.d.ts +10 -0
  249. package/components/toast/lib/models/toast.options.d.ts +4 -0
  250. package/components/toast/lib/toast.config.d.ts +3 -0
  251. package/components/toast/lib/toast.module.d.ts +9 -0
  252. package/components/toast/lib/toast.service.d.ts +16 -0
  253. package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +5 -2
  254. package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +11 -2
  255. package/components/tooltip/README.md +3 -0
  256. package/components/tooltip/index.d.ts +3 -0
  257. package/components/tooltip/lib/helpers/index.d.ts +1 -0
  258. package/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.d.ts +2 -0
  259. package/components/tooltip/lib/models/index.d.ts +3 -0
  260. package/components/tooltip/lib/models/tooltip-options.d.ts +10 -0
  261. package/components/tooltip/lib/models/tooltip-size.d.ts +7 -0
  262. package/components/tooltip/lib/models/tooltip-trigger.d.ts +1 -0
  263. package/components/tooltip/lib/tooltip.component.d.ts +13 -0
  264. package/components/tooltip/lib/tooltip.directive.d.ts +33 -0
  265. package/esm2020/animations/index.mjs +2 -1
  266. package/esm2020/animations/lib/expand.mjs +6 -4
  267. package/esm2020/animations/lib/fade.mjs +2 -5
  268. package/esm2020/animations/lib/wait-for-child-animations.mjs +3 -0
  269. package/esm2020/cdk/a11y/index.mjs +3 -0
  270. package/esm2020/cdk/a11y/lib/a11y.module.mjs +19 -0
  271. package/esm2020/cdk/a11y/lib/directives/index.mjs +4 -0
  272. package/esm2020/cdk/a11y/lib/directives/interactive.directive.mjs +49 -0
  273. package/esm2020/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +26 -0
  274. package/esm2020/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +40 -0
  275. package/esm2020/cdk/a11y/odx-angular-cdk-a11y.mjs +5 -0
  276. package/esm2020/cdk/active-indicator/index.mjs +3 -0
  277. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +128 -0
  278. package/esm2020/cdk/active-indicator/lib/models/active-indicator-direction.mjs +5 -0
  279. package/esm2020/cdk/active-indicator/lib/models/active-indicator-position.mjs +6 -0
  280. package/esm2020/cdk/active-indicator/lib/models/index.mjs +3 -0
  281. package/esm2020/cdk/active-indicator/odx-angular-cdk-active-indicator.mjs +5 -0
  282. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +21 -19
  283. package/esm2020/cdk/connected-overlay/index.mjs +4 -0
  284. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +116 -0
  285. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +25 -0
  286. package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +55 -0
  287. package/esm2020/cdk/connected-overlay/lib/helpers/index.mjs +2 -0
  288. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +12 -0
  289. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +15 -0
  290. package/esm2020/cdk/connected-overlay/lib/models/index.mjs +3 -0
  291. package/esm2020/cdk/connected-overlay/odx-angular-cdk-connected-overlay.mjs +5 -0
  292. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  293. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +35 -59
  294. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +23 -14
  295. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +24 -10
  296. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +11 -9
  297. package/esm2020/cdk/dynamic-view/lib/facade/dynamic-view-ref.mjs +1 -1
  298. package/esm2020/cdk/dynamic-view/lib/helpers/create-projectable-nodes.mjs +9 -0
  299. package/esm2020/cdk/dynamic-view/lib/helpers/index.mjs +2 -1
  300. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +29 -8
  301. package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +12 -6
  302. package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +1 -1
  303. package/esm2020/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.mjs +10 -0
  304. package/esm2020/cdk/dynamic-view/lib/tokens/index.mjs +2 -1
  305. package/esm2020/cdk/expandable/index.mjs +2 -1
  306. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +7 -8
  307. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +5 -7
  308. package/esm2020/cdk/expandable/lib/expandable.module.mjs +4 -4
  309. package/esm2020/cdk/expandable/lib/expandable.tokens.mjs +3 -0
  310. package/esm2020/cdk/expandable/lib/facade/expandable-container.mjs +2 -3
  311. package/esm2020/cdk/expandable/lib/facade/expandable-item.mjs +2 -3
  312. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +12 -12
  313. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +14 -10
  314. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  315. package/esm2020/components/accordion/lib/accordion.component.mjs +7 -7
  316. package/esm2020/components/accordion/lib/accordion.module.mjs +4 -4
  317. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +8 -6
  318. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  319. package/esm2020/components/action-group/action-group.component.mjs +5 -5
  320. package/esm2020/components/area-header/area-header.component.mjs +6 -5
  321. package/esm2020/components/area-header/area-header.module.mjs +4 -4
  322. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +3 -3
  323. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  324. package/esm2020/components/avatar/lib/avatar.component.mjs +14 -8
  325. package/esm2020/components/avatar/lib/models/avatar-variant.mjs +5 -0
  326. package/esm2020/components/avatar/lib/models/index.mjs +2 -1
  327. package/esm2020/components/badge/lib/badge.component.mjs +18 -65
  328. package/esm2020/components/badge/lib/badge.directive.mjs +50 -25
  329. package/esm2020/components/badge/lib/models/index.mjs +1 -2
  330. package/esm2020/components/bar/index.mjs +6 -0
  331. package/esm2020/components/bar/lib/bar.component.mjs +21 -0
  332. package/esm2020/components/bar/lib/bar.module.mjs +20 -0
  333. package/esm2020/components/bar/lib/directives/bar-button.directive.mjs +38 -0
  334. package/esm2020/components/bar/lib/directives/bar-label.directive.mjs +24 -0
  335. package/esm2020/components/bar/lib/models/bar-button-variant.mjs +5 -0
  336. package/esm2020/components/bar/odx-angular-components-bar.mjs +5 -0
  337. package/esm2020/components/breadcrumbs/index.mjs +2 -0
  338. package/esm2020/components/breadcrumbs/lib/breadcrumbs.component.mjs +50 -0
  339. package/esm2020/components/breadcrumbs/odx-angular-components-breadcrumbs.mjs +5 -0
  340. package/esm2020/components/button/index.mjs +2 -1
  341. package/esm2020/components/button/lib/button.component.mjs +12 -18
  342. package/esm2020/components/button/lib/directives/index.mjs +2 -0
  343. package/esm2020/components/button/lib/directives/responsive-button.directive.mjs +24 -0
  344. package/esm2020/components/button-group/lib/button-group.component.mjs +3 -3
  345. package/esm2020/components/checkbox/index.mjs +3 -1
  346. package/esm2020/components/checkbox/lib/checkbox.component.mjs +8 -7
  347. package/esm2020/components/checkbox/lib/checkbox.module.mjs +19 -0
  348. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +28 -0
  349. package/esm2020/components/chip/index.mjs +3 -0
  350. package/esm2020/components/chip/lib/chip.component.mjs +54 -0
  351. package/esm2020/components/chip/lib/models/chip-size.mjs +5 -0
  352. package/esm2020/components/chip/lib/models/chip-variant.mjs +7 -0
  353. package/esm2020/components/chip/lib/models/index.mjs +3 -0
  354. package/esm2020/components/chip/odx-angular-components-chip.mjs +5 -0
  355. package/esm2020/components/circular-progress/index.mjs +3 -0
  356. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +98 -0
  357. package/esm2020/components/circular-progress/lib/models/circular-progress-size.mjs +7 -0
  358. package/esm2020/components/circular-progress/lib/models/index.mjs +2 -0
  359. package/esm2020/components/circular-progress/odx-angular-components-circular-progress.mjs +5 -0
  360. package/esm2020/components/content-box/lib/content-box.component.mjs +3 -3
  361. package/esm2020/components/content-box/lib/content-box.module.mjs +4 -4
  362. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +3 -3
  363. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +3 -3
  364. package/esm2020/components/dropdown/index.mjs +6 -0
  365. package/esm2020/components/dropdown/lib/dropdown.component.mjs +40 -0
  366. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +157 -0
  367. package/esm2020/components/dropdown/lib/dropdown.module.mjs +18 -0
  368. package/esm2020/components/dropdown/lib/helpers/close-current-dropdown.mjs +5 -0
  369. package/esm2020/components/dropdown/lib/helpers/index.mjs +2 -0
  370. package/esm2020/components/dropdown/lib/models/close-dropdown-event.mjs +7 -0
  371. package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +8 -0
  372. package/esm2020/components/dropdown/lib/models/index.mjs +3 -0
  373. package/esm2020/components/dropdown/odx-angular-components-dropdown.mjs +5 -0
  374. package/esm2020/components/form-field/index.mjs +2 -1
  375. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  376. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +11 -13
  377. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +22 -15
  378. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  379. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +3 -3
  380. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +3 -3
  381. package/esm2020/components/form-field/lib/directives/form.directive.mjs +3 -3
  382. package/esm2020/components/form-field/lib/form-field.component.mjs +29 -11
  383. package/esm2020/components/form-field/lib/form-field.config.mjs +4 -4
  384. package/esm2020/components/form-field/lib/form-field.module.mjs +5 -13
  385. package/esm2020/components/form-field/lib/form-field.service.mjs +3 -3
  386. package/esm2020/components/form-field/lib/models/form-field-error.mjs +1 -1
  387. package/esm2020/components/form-field/lib/models/form-field-variant.mjs +5 -0
  388. package/esm2020/components/form-field/lib/models/index.mjs +2 -1
  389. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +16 -16
  390. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +13 -6
  391. package/esm2020/components/header/lib/directives/header-title.directive.mjs +3 -3
  392. package/esm2020/components/header/lib/header.component.mjs +5 -6
  393. package/esm2020/components/header/lib/header.module.mjs +7 -11
  394. package/esm2020/components/icon/lib/icon.component.mjs +3 -3
  395. package/esm2020/components/icon/lib/models/icon-size.mjs +2 -1
  396. package/esm2020/components/inline-message/index.mjs +3 -0
  397. package/esm2020/components/inline-message/lib/inline-message.component.mjs +42 -0
  398. package/esm2020/components/inline-message/lib/models/index.mjs +2 -0
  399. package/esm2020/components/inline-message/lib/models/inline-message-variant.mjs +7 -0
  400. package/esm2020/components/inline-message/odx-angular-components-inline-message.mjs +5 -0
  401. package/esm2020/components/launch-tile/index.mjs +4 -0
  402. package/esm2020/components/launch-tile/lib/components/index.mjs +3 -0
  403. package/esm2020/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.mjs +13 -0
  404. package/esm2020/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.mjs +13 -0
  405. package/esm2020/components/launch-tile/lib/launch-tile.component.mjs +56 -0
  406. package/esm2020/components/launch-tile/lib/launch-tile.module.mjs +23 -0
  407. package/esm2020/components/launch-tile/odx-angular-components-launch-tile.mjs +5 -0
  408. package/esm2020/components/link/link.directive.mjs +7 -14
  409. package/esm2020/components/list/index.mjs +4 -0
  410. package/esm2020/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +49 -0
  411. package/esm2020/components/list/lib/components/index.mjs +3 -0
  412. package/esm2020/components/list/lib/components/list-item/list-item.component.mjs +40 -0
  413. package/esm2020/components/list/lib/list.component.mjs +32 -0
  414. package/esm2020/components/list/lib/list.module.mjs +19 -0
  415. package/esm2020/components/list/odx-angular-components-list.mjs +5 -0
  416. package/esm2020/components/loading-spinner/index.mjs +4 -0
  417. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +58 -0
  418. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +98 -0
  419. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +19 -0
  420. package/esm2020/components/loading-spinner/odx-angular-components-loading-spinner.mjs +5 -0
  421. package/esm2020/components/logo/logo.directive.mjs +8 -6
  422. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +3 -3
  423. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +30 -17
  424. package/esm2020/components/main-menu/lib/main-menu.component.mjs +12 -11
  425. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  426. package/esm2020/components/main-menu/lib/main-menu.service.mjs +3 -3
  427. package/esm2020/components/mainfilter-group/index.mjs +2 -0
  428. package/esm2020/components/mainfilter-group/lib/mainfilter-group.component.mjs +21 -0
  429. package/esm2020/components/mainfilter-group/odx-angular-components-mainfilter-group.mjs +5 -0
  430. package/esm2020/components/menu/index.mjs +5 -0
  431. package/esm2020/components/menu/lib/directives/index.mjs +2 -0
  432. package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +37 -0
  433. package/esm2020/components/menu/lib/menu.component.mjs +46 -0
  434. package/esm2020/components/menu/lib/menu.directive.mjs +58 -0
  435. package/esm2020/components/menu/lib/menu.module.mjs +20 -0
  436. package/esm2020/components/menu/odx-angular-components-menu.mjs +5 -0
  437. package/esm2020/components/modal/index.mjs +1 -2
  438. package/esm2020/components/modal/lib/components/basic-modal/basic-modal.component.mjs +42 -0
  439. package/esm2020/components/modal/lib/components/index.mjs +3 -1
  440. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +3 -3
  441. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +10 -8
  442. package/esm2020/components/modal/lib/components/modal-hero/modal-hero.component.mjs +39 -0
  443. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +10 -5
  444. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +3 -3
  445. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  446. package/esm2020/components/modal/lib/helpers/inject-modal-ref.mjs +1 -1
  447. package/esm2020/components/modal/lib/modal.component.mjs +43 -20
  448. package/esm2020/components/modal/lib/modal.config.mjs +5 -3
  449. package/esm2020/components/modal/lib/modal.directive.mjs +24 -6
  450. package/esm2020/components/modal/lib/modal.module.mjs +33 -15
  451. package/esm2020/components/modal/lib/modal.service.mjs +47 -40
  452. package/esm2020/components/modal/lib/models/basic-modal-options.mjs +2 -0
  453. package/esm2020/components/modal/lib/models/index.mjs +4 -1
  454. package/esm2020/components/modal/lib/models/modal-hero-variant.mjs +7 -0
  455. package/esm2020/components/modal/lib/models/modal-options.mjs +1 -1
  456. package/esm2020/components/modal/lib/models/modal-ref.mjs +25 -10
  457. package/esm2020/components/modal/lib/models/modal-size.mjs +2 -1
  458. package/esm2020/components/modal/lib/models/modal-variant.mjs +5 -0
  459. package/esm2020/components/progress/index.mjs +2 -0
  460. package/esm2020/components/progress/lib/progress.component.mjs +51 -0
  461. package/esm2020/components/progress/odx-angular-components-progress.mjs +5 -0
  462. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +8 -9
  463. package/esm2020/components/radio-group/lib/radio-group.component.mjs +9 -9
  464. package/esm2020/components/radio-group/lib/radio-group.module.mjs +4 -4
  465. package/esm2020/components/rail-navigation/index.mjs +4 -0
  466. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +38 -0
  467. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +47 -0
  468. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +19 -0
  469. package/esm2020/components/rail-navigation/odx-angular-components-rail-navigation.mjs +5 -0
  470. package/esm2020/components/select/index.mjs +8 -0
  471. package/esm2020/components/select/lib/abstract/index.mjs +3 -0
  472. package/esm2020/components/select/lib/abstract/select-control-option.mjs +2 -0
  473. package/esm2020/components/select/lib/abstract/select-control.mjs +2 -0
  474. package/esm2020/components/select/lib/components/index.mjs +2 -0
  475. package/esm2020/components/select/lib/components/option/option.component.mjs +96 -0
  476. package/esm2020/components/select/lib/directives/index.mjs +2 -0
  477. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +47 -0
  478. package/esm2020/components/select/lib/pipes/index.mjs +2 -0
  479. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +51 -0
  480. package/esm2020/components/select/lib/select.component.mjs +223 -0
  481. package/esm2020/components/select/lib/select.module.mjs +21 -0
  482. package/esm2020/components/select/lib/select.tokens.mjs +3 -0
  483. package/esm2020/components/select/odx-angular-components-select.mjs +5 -0
  484. package/esm2020/components/slider/index.mjs +2 -0
  485. package/esm2020/components/slider/lib/slider.directive.mjs +42 -0
  486. package/esm2020/components/slider/odx-angular-components-slider.mjs +5 -0
  487. package/esm2020/components/spinbox/index.mjs +2 -0
  488. package/esm2020/components/spinbox/lib/spinbox.component.mjs +91 -0
  489. package/esm2020/components/spinbox/odx-angular-components-spinbox.mjs +5 -0
  490. package/esm2020/components/switch/index.mjs +3 -1
  491. package/esm2020/components/switch/lib/switch.component.mjs +8 -7
  492. package/esm2020/components/switch/lib/switch.module.mjs +19 -0
  493. package/esm2020/components/switch/lib/switch.validator.mjs +28 -0
  494. package/esm2020/components/tab-bar/index.mjs +5 -0
  495. package/esm2020/components/tab-bar/lib/components/index.mjs +2 -0
  496. package/esm2020/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +79 -0
  497. package/esm2020/components/tab-bar/lib/models/index.mjs +2 -0
  498. package/esm2020/components/tab-bar/lib/models/tab-change-event.mjs +2 -0
  499. package/esm2020/components/tab-bar/lib/tab-bar.component.mjs +115 -0
  500. package/esm2020/components/tab-bar/lib/tab-bar.config.mjs +3 -0
  501. package/esm2020/components/tab-bar/lib/tab-bar.module.mjs +19 -0
  502. package/esm2020/components/tab-bar/odx-angular-components-tab-bar.mjs +5 -0
  503. package/esm2020/components/toast/index.mjs +6 -0
  504. package/esm2020/components/toast/lib/components/index.mjs +3 -0
  505. package/esm2020/components/toast/lib/components/toast-container/toast-container.component.mjs +87 -0
  506. package/esm2020/components/toast/lib/components/toast-item/toast-item.component.mjs +75 -0
  507. package/esm2020/components/toast/lib/models/index.mjs +6 -0
  508. package/esm2020/components/toast/lib/models/toast-action.mjs +2 -0
  509. package/esm2020/components/toast/lib/models/toast-ref.mjs +2 -0
  510. package/esm2020/components/toast/lib/models/toast-variant.mjs +7 -0
  511. package/esm2020/components/toast/lib/models/toast.mjs +2 -0
  512. package/esm2020/components/toast/lib/models/toast.options.mjs +2 -0
  513. package/esm2020/components/toast/lib/toast.config.mjs +6 -0
  514. package/esm2020/components/toast/lib/toast.module.mjs +18 -0
  515. package/esm2020/components/toast/lib/toast.service.mjs +38 -0
  516. package/esm2020/components/toast/odx-angular-components-toast.mjs +5 -0
  517. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +14 -12
  518. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +41 -13
  519. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  520. package/esm2020/components/tooltip/index.mjs +4 -0
  521. package/esm2020/components/tooltip/lib/helpers/index.mjs +2 -0
  522. package/esm2020/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.mjs +9 -0
  523. package/esm2020/components/tooltip/lib/models/index.mjs +4 -0
  524. package/esm2020/components/tooltip/lib/models/tooltip-options.mjs +10 -0
  525. package/esm2020/components/tooltip/lib/models/tooltip-size.mjs +7 -0
  526. package/esm2020/components/tooltip/lib/models/tooltip-trigger.mjs +2 -0
  527. package/esm2020/components/tooltip/lib/tooltip.component.mjs +39 -0
  528. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +132 -0
  529. package/esm2020/components/tooltip/odx-angular-components-tooltip.mjs +5 -0
  530. package/esm2020/index.mjs +2 -1
  531. package/esm2020/internal/decorators/css-component.mjs +3 -8
  532. package/esm2020/internal/decorators/css-modifier.mjs +21 -18
  533. package/esm2020/internal/helpers/decorator-property-name.mjs +4 -0
  534. package/esm2020/internal/helpers/index.mjs +2 -1
  535. package/esm2020/internal/helpers/with-mutiple-descriptors.mjs +22 -13
  536. package/esm2020/lib/controllers/controller.mjs +16 -14
  537. package/esm2020/lib/controllers/disabled.controller.mjs +29 -43
  538. package/esm2020/lib/controllers/readonly.controller.mjs +33 -23
  539. package/esm2020/lib/core.module.mjs +7 -6
  540. package/esm2020/lib/directives/click-outside.directive.mjs +17 -13
  541. package/esm2020/lib/directives/delegate-focus.directive.mjs +40 -0
  542. package/esm2020/lib/directives/index.mjs +4 -1
  543. package/esm2020/lib/directives/with-disabled-state.directive.mjs +41 -0
  544. package/esm2020/lib/directives/with-tabindex.directive.mjs +23 -0
  545. package/esm2020/lib/services/window-ref.mjs +18 -7
  546. package/esm2020/lib/tokens/identity-matcher.mjs +7 -0
  547. package/esm2020/lib/tokens/index.mjs +4 -0
  548. package/esm2020/lib/tokens/string-search-handler.mjs +9 -0
  549. package/esm2020/lib/tokens/stringify.mjs +8 -0
  550. package/esm2020/rxjs/index.mjs +4 -2
  551. package/esm2020/rxjs/lib/delay-until.mjs +5 -0
  552. package/esm2020/rxjs/lib/form-query-list.mjs +5 -0
  553. package/esm2020/rxjs/lib/from-element-resize.mjs +14 -0
  554. package/esm2020/utils/lib/decorators/index.mjs +2 -1
  555. package/esm2020/utils/lib/decorators/pure.mjs +37 -0
  556. package/esm2020/utils/lib/decorators/transform.mjs +3 -3
  557. package/esm2020/utils/lib/helpers/angular.mjs +5 -2
  558. package/esm2020/utils/lib/helpers/build-url.mjs +4 -0
  559. package/esm2020/utils/lib/helpers/defer-fn.mjs +4 -0
  560. package/esm2020/utils/lib/helpers/dom.mjs +32 -2
  561. package/esm2020/utils/lib/helpers/event-manager.mjs +30 -0
  562. package/esm2020/utils/lib/helpers/get-axis.mjs +14 -0
  563. package/esm2020/utils/lib/helpers/get-opposite-side.mjs +15 -0
  564. package/esm2020/utils/lib/helpers/get-side.mjs +4 -0
  565. package/esm2020/utils/lib/helpers/get-unique-id.mjs +7 -0
  566. package/esm2020/utils/lib/helpers/index.mjs +10 -2
  567. package/esm2020/utils/lib/helpers/provide-config.mjs +25 -0
  568. package/esm2020/utils/lib/helpers/queue.mjs +49 -0
  569. package/esm2020/utils/lib/types/axis.mjs +5 -0
  570. package/esm2020/utils/lib/types/index.mjs +4 -1
  571. package/esm2020/utils/lib/types/position.mjs +15 -0
  572. package/esm2020/utils/lib/types/side.mjs +7 -0
  573. package/fesm2015/odx-angular-animations.mjs +10 -6
  574. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  575. package/fesm2015/odx-angular-cdk-a11y.mjs +131 -0
  576. package/fesm2015/odx-angular-cdk-a11y.mjs.map +1 -0
  577. package/fesm2015/odx-angular-cdk-active-indicator.mjs +145 -0
  578. package/fesm2015/odx-angular-cdk-active-indicator.mjs.map +1 -0
  579. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +21 -19
  580. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  581. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +222 -0
  582. package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  583. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +39 -63
  584. package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  585. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +109 -42
  586. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  587. package/fesm2015/odx-angular-cdk-expandable.mjs +16 -22
  588. package/fesm2015/odx-angular-cdk-expandable.mjs.map +1 -1
  589. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +27 -24
  590. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  591. package/fesm2015/odx-angular-components-accordion.mjs +20 -18
  592. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  593. package/fesm2015/odx-angular-components-action-group.mjs +4 -4
  594. package/fesm2015/odx-angular-components-action-group.mjs.map +1 -1
  595. package/fesm2015/odx-angular-components-area-header.mjs +15 -14
  596. package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
  597. package/fesm2015/odx-angular-components-avatar.mjs +18 -7
  598. package/fesm2015/odx-angular-components-avatar.mjs.map +1 -1
  599. package/fesm2015/odx-angular-components-badge.mjs +63 -97
  600. package/fesm2015/odx-angular-components-badge.mjs.map +1 -1
  601. package/fesm2015/odx-angular-components-bar.mjs +95 -0
  602. package/fesm2015/odx-angular-components-bar.mjs.map +1 -0
  603. package/fesm2015/odx-angular-components-breadcrumbs.mjs +56 -0
  604. package/fesm2015/odx-angular-components-breadcrumbs.mjs.map +1 -0
  605. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  606. package/fesm2015/odx-angular-components-button.mjs +35 -20
  607. package/fesm2015/odx-angular-components-button.mjs.map +1 -1
  608. package/fesm2015/odx-angular-components-checkbox.mjs +49 -8
  609. package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
  610. package/fesm2015/odx-angular-components-chip.mjs +71 -0
  611. package/fesm2015/odx-angular-components-chip.mjs.map +1 -0
  612. package/fesm2015/odx-angular-components-circular-progress.mjs +110 -0
  613. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -0
  614. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  615. package/fesm2015/odx-angular-components-dropdown.mjs +223 -0
  616. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -0
  617. package/fesm2015/odx-angular-components-form-field.mjs +95 -77
  618. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  619. package/fesm2015/odx-angular-components-header.mjs +25 -23
  620. package/fesm2015/odx-angular-components-header.mjs.map +1 -1
  621. package/fesm2015/odx-angular-components-icon.mjs +4 -3
  622. package/fesm2015/odx-angular-components-icon.mjs.map +1 -1
  623. package/fesm2015/odx-angular-components-inline-message.mjs +54 -0
  624. package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -0
  625. package/fesm2015/odx-angular-components-launch-tile.mjs +100 -0
  626. package/fesm2015/odx-angular-components-launch-tile.mjs.map +1 -0
  627. package/fesm2015/odx-angular-components-link.mjs +6 -14
  628. package/fesm2015/odx-angular-components-link.mjs.map +1 -1
  629. package/fesm2015/odx-angular-components-list.mjs +126 -0
  630. package/fesm2015/odx-angular-components-list.mjs.map +1 -0
  631. package/fesm2015/odx-angular-components-loading-spinner.mjs +171 -0
  632. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -0
  633. package/fesm2015/odx-angular-components-logo.mjs +7 -5
  634. package/fesm2015/odx-angular-components-logo.mjs.map +1 -1
  635. package/fesm2015/odx-angular-components-main-menu.mjs +64 -53
  636. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  637. package/fesm2015/odx-angular-components-mainfilter-group.mjs +27 -0
  638. package/fesm2015/odx-angular-components-mainfilter-group.mjs.map +1 -0
  639. package/fesm2015/odx-angular-components-menu.mjs +144 -0
  640. package/fesm2015/odx-angular-components-menu.mjs.map +1 -0
  641. package/fesm2015/odx-angular-components-modal.mjs +265 -155
  642. package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
  643. package/fesm2015/odx-angular-components-progress.mjs +57 -0
  644. package/fesm2015/odx-angular-components-progress.mjs.map +1 -0
  645. package/fesm2015/odx-angular-components-radio-group.mjs +18 -19
  646. package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -1
  647. package/fesm2015/odx-angular-components-rail-navigation.mjs +97 -0
  648. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -0
  649. package/fesm2015/odx-angular-components-select.mjs +420 -0
  650. package/fesm2015/odx-angular-components-select.mjs.map +1 -0
  651. package/fesm2015/odx-angular-components-slider.mjs +48 -0
  652. package/fesm2015/odx-angular-components-slider.mjs.map +1 -0
  653. package/fesm2015/odx-angular-components-spinbox.mjs +100 -0
  654. package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -0
  655. package/fesm2015/odx-angular-components-switch.mjs +49 -8
  656. package/fesm2015/odx-angular-components-switch.mjs.map +1 -1
  657. package/fesm2015/odx-angular-components-tab-bar.mjs +209 -0
  658. package/fesm2015/odx-angular-components-tab-bar.mjs.map +1 -0
  659. package/fesm2015/odx-angular-components-toast.mjs +216 -0
  660. package/fesm2015/odx-angular-components-toast.mjs.map +1 -0
  661. package/fesm2015/odx-angular-components-toggle-button-group.mjs +58 -26
  662. package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
  663. package/fesm2015/odx-angular-components-tooltip.mjs +187 -0
  664. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -0
  665. package/fesm2015/odx-angular-internal.mjs +63 -54
  666. package/fesm2015/odx-angular-internal.mjs.map +1 -1
  667. package/fesm2015/odx-angular-rxjs.mjs +23 -6
  668. package/fesm2015/odx-angular-rxjs.mjs.map +1 -1
  669. package/fesm2015/odx-angular-utils.mjs +242 -15
  670. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  671. package/fesm2015/odx-angular.mjs +231 -98
  672. package/fesm2015/odx-angular.mjs.map +1 -1
  673. package/fesm2020/odx-angular-animations.mjs +10 -9
  674. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  675. package/fesm2020/odx-angular-cdk-a11y.mjs +127 -0
  676. package/fesm2020/odx-angular-cdk-a11y.mjs.map +1 -0
  677. package/fesm2020/odx-angular-cdk-active-indicator.mjs +143 -0
  678. package/fesm2020/odx-angular-cdk-active-indicator.mjs.map +1 -0
  679. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +21 -19
  680. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  681. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +218 -0
  682. package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  683. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +37 -61
  684. package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  685. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +102 -37
  686. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  687. package/fesm2020/odx-angular-cdk-expandable.mjs +16 -22
  688. package/fesm2020/odx-angular-cdk-expandable.mjs.map +1 -1
  689. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +27 -24
  690. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  691. package/fesm2020/odx-angular-components-accordion.mjs +20 -18
  692. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  693. package/fesm2020/odx-angular-components-action-group.mjs +4 -4
  694. package/fesm2020/odx-angular-components-action-group.mjs.map +1 -1
  695. package/fesm2020/odx-angular-components-area-header.mjs +15 -14
  696. package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
  697. package/fesm2020/odx-angular-components-avatar.mjs +18 -7
  698. package/fesm2020/odx-angular-components-avatar.mjs.map +1 -1
  699. package/fesm2020/odx-angular-components-badge.mjs +60 -90
  700. package/fesm2020/odx-angular-components-badge.mjs.map +1 -1
  701. package/fesm2020/odx-angular-components-bar.mjs +95 -0
  702. package/fesm2020/odx-angular-components-bar.mjs.map +1 -0
  703. package/fesm2020/odx-angular-components-breadcrumbs.mjs +56 -0
  704. package/fesm2020/odx-angular-components-breadcrumbs.mjs.map +1 -0
  705. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  706. package/fesm2020/odx-angular-components-button.mjs +35 -19
  707. package/fesm2020/odx-angular-components-button.mjs.map +1 -1
  708. package/fesm2020/odx-angular-components-checkbox.mjs +49 -8
  709. package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
  710. package/fesm2020/odx-angular-components-chip.mjs +71 -0
  711. package/fesm2020/odx-angular-components-chip.mjs.map +1 -0
  712. package/fesm2020/odx-angular-components-circular-progress.mjs +110 -0
  713. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -0
  714. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  715. package/fesm2020/odx-angular-components-dropdown.mjs +226 -0
  716. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -0
  717. package/fesm2020/odx-angular-components-form-field.mjs +94 -77
  718. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  719. package/fesm2020/odx-angular-components-header.mjs +25 -23
  720. package/fesm2020/odx-angular-components-header.mjs.map +1 -1
  721. package/fesm2020/odx-angular-components-icon.mjs +4 -3
  722. package/fesm2020/odx-angular-components-icon.mjs.map +1 -1
  723. package/fesm2020/odx-angular-components-inline-message.mjs +54 -0
  724. package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -0
  725. package/fesm2020/odx-angular-components-launch-tile.mjs +99 -0
  726. package/fesm2020/odx-angular-components-launch-tile.mjs.map +1 -0
  727. package/fesm2020/odx-angular-components-link.mjs +6 -13
  728. package/fesm2020/odx-angular-components-link.mjs.map +1 -1
  729. package/fesm2020/odx-angular-components-list.mjs +125 -0
  730. package/fesm2020/odx-angular-components-list.mjs.map +1 -0
  731. package/fesm2020/odx-angular-components-loading-spinner.mjs +169 -0
  732. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -0
  733. package/fesm2020/odx-angular-components-logo.mjs +7 -5
  734. package/fesm2020/odx-angular-components-logo.mjs.map +1 -1
  735. package/fesm2020/odx-angular-components-main-menu.mjs +63 -52
  736. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  737. package/fesm2020/odx-angular-components-mainfilter-group.mjs +27 -0
  738. package/fesm2020/odx-angular-components-mainfilter-group.mjs.map +1 -0
  739. package/fesm2020/odx-angular-components-menu.mjs +146 -0
  740. package/fesm2020/odx-angular-components-menu.mjs.map +1 -0
  741. package/fesm2020/odx-angular-components-modal.mjs +268 -152
  742. package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
  743. package/fesm2020/odx-angular-components-progress.mjs +57 -0
  744. package/fesm2020/odx-angular-components-progress.mjs.map +1 -0
  745. package/fesm2020/odx-angular-components-radio-group.mjs +18 -19
  746. package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -1
  747. package/fesm2020/odx-angular-components-rail-navigation.mjs +97 -0
  748. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -0
  749. package/fesm2020/odx-angular-components-select.mjs +413 -0
  750. package/fesm2020/odx-angular-components-select.mjs.map +1 -0
  751. package/fesm2020/odx-angular-components-slider.mjs +48 -0
  752. package/fesm2020/odx-angular-components-slider.mjs.map +1 -0
  753. package/fesm2020/odx-angular-components-spinbox.mjs +97 -0
  754. package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -0
  755. package/fesm2020/odx-angular-components-switch.mjs +49 -8
  756. package/fesm2020/odx-angular-components-switch.mjs.map +1 -1
  757. package/fesm2020/odx-angular-components-tab-bar.mjs +203 -0
  758. package/fesm2020/odx-angular-components-tab-bar.mjs.map +1 -0
  759. package/fesm2020/odx-angular-components-toast.mjs +215 -0
  760. package/fesm2020/odx-angular-components-toast.mjs.map +1 -0
  761. package/fesm2020/odx-angular-components-toggle-button-group.mjs +55 -26
  762. package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
  763. package/fesm2020/odx-angular-components-tooltip.mjs +192 -0
  764. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -0
  765. package/fesm2020/odx-angular-internal.mjs +61 -52
  766. package/fesm2020/odx-angular-internal.mjs.map +1 -1
  767. package/fesm2020/odx-angular-rxjs.mjs +23 -6
  768. package/fesm2020/odx-angular-rxjs.mjs.map +1 -1
  769. package/fesm2020/odx-angular-utils.mjs +236 -15
  770. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  771. package/fesm2020/odx-angular.mjs +225 -95
  772. package/fesm2020/odx-angular.mjs.map +1 -1
  773. package/index.d.ts +1 -0
  774. package/internal/decorators/css-component.d.ts +1 -2
  775. package/internal/decorators/css-modifier.d.ts +0 -1
  776. package/internal/helpers/decorator-property-name.d.ts +1 -0
  777. package/internal/helpers/index.d.ts +1 -0
  778. package/internal/helpers/with-mutiple-descriptors.d.ts +1 -1
  779. package/lib/controllers/controller.d.ts +2 -3
  780. package/lib/controllers/disabled.controller.d.ts +5 -7
  781. package/lib/controllers/readonly.controller.d.ts +5 -2
  782. package/lib/core.module.d.ts +2 -1
  783. package/lib/directives/click-outside.directive.d.ts +3 -4
  784. package/lib/directives/delegate-focus.directive.d.ts +11 -0
  785. package/lib/directives/index.d.ts +3 -0
  786. package/lib/directives/with-disabled-state.directive.d.ts +13 -0
  787. package/lib/directives/with-tabindex.directive.d.ts +7 -0
  788. package/lib/services/window-ref.d.ts +5 -0
  789. package/lib/tokens/identity-matcher.d.ts +3 -0
  790. package/lib/tokens/index.d.ts +3 -0
  791. package/lib/tokens/string-search-handler.d.ts +3 -0
  792. package/lib/tokens/stringify.d.ts +3 -0
  793. package/package.json +189 -12
  794. package/rxjs/index.d.ts +3 -1
  795. package/rxjs/lib/delay-until.d.ts +2 -0
  796. package/rxjs/lib/form-query-list.d.ts +3 -0
  797. package/rxjs/lib/from-element-resize.d.ts +2 -0
  798. package/utils/lib/decorators/index.d.ts +1 -0
  799. package/utils/lib/decorators/pure.d.ts +1 -0
  800. package/utils/lib/decorators/transform.d.ts +2 -2
  801. package/utils/lib/helpers/angular.d.ts +2 -1
  802. package/utils/lib/helpers/build-url.d.ts +1 -0
  803. package/utils/lib/helpers/defer-fn.d.ts +1 -0
  804. package/utils/lib/helpers/dom.d.ts +6 -1
  805. package/utils/lib/helpers/event-manager.d.ts +12 -0
  806. package/utils/lib/helpers/get-axis.d.ts +2 -0
  807. package/utils/lib/helpers/get-opposite-side.d.ts +2 -0
  808. package/utils/lib/helpers/get-side.d.ts +2 -0
  809. package/utils/lib/helpers/get-unique-id.d.ts +1 -0
  810. package/utils/lib/helpers/index.d.ts +9 -1
  811. package/utils/lib/helpers/ng-changes.d.ts +1 -1
  812. package/utils/lib/helpers/provide-config.d.ts +12 -0
  813. package/utils/lib/helpers/queue.d.ts +22 -0
  814. package/utils/lib/types/axis.d.ts +5 -0
  815. package/utils/lib/types/get-properties.d.ts +2 -2
  816. package/utils/lib/types/index.d.ts +3 -0
  817. package/utils/lib/types/position.d.ts +15 -0
  818. package/utils/lib/types/side.d.ts +7 -0
  819. package/components/badge/lib/badge.config.d.ts +0 -3
  820. package/components/badge/lib/facade/badge-host.d.ts +0 -3
  821. package/components/badge/lib/facade/index.d.ts +0 -1
  822. package/components/badge/lib/models/badge-position.d.ts +0 -5
  823. package/components/modal/lib/services/index.d.ts +0 -1
  824. package/components/modal/lib/services/open-modal-manager.service.d.ts +0 -15
  825. package/esm2020/components/badge/lib/badge.config.mjs +0 -3
  826. package/esm2020/components/badge/lib/facade/badge-host.mjs +0 -2
  827. package/esm2020/components/badge/lib/facade/index.mjs +0 -2
  828. package/esm2020/components/badge/lib/models/badge-position.mjs +0 -5
  829. package/esm2020/components/modal/lib/services/index.mjs +0 -2
  830. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +0 -42
  831. package/esm2020/rxjs/lib/mark-for-check.mjs +0 -5
  832. package/esm2020/utils/lib/helpers/provide-module-config.mjs +0 -21
  833. package/rxjs/lib/mark-for-check.d.ts +0 -3
  834. package/utils/lib/helpers/provide-module-config.d.ts +0 -12
@@ -0,0 +1,97 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { coerceNumberProperty } from '@angular/cdk/coercion';
3
+ import * as i0 from '@angular/core';
4
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, ViewChild, Input } from '@angular/core';
5
+ import { detectControllerChanges, DisabledController, ReadonlyController } from '@odx/angular';
6
+ import { CustomFormControl, ControlDirective } from '@odx/angular/cdk/custom-form-control';
7
+ import { CSSComponent } from '@odx/angular/internal';
8
+ import { fromEvents } from '@odx/angular/rxjs';
9
+ import { untilDestroyed, injectElement, Transform } from '@odx/angular/utils';
10
+ import { filter, tap, switchMap, NEVER, timer, startWith } from 'rxjs';
11
+
12
+ let SpinboxComponent = class SpinboxComponent extends CustomFormControl {
13
+ get inputElement() {
14
+ return this.control?.element.nativeElement;
15
+ }
16
+ constructor() {
17
+ super(0);
18
+ this.takeUntilDestroyed = untilDestroyed();
19
+ this.element = injectElement();
20
+ this.max = Infinity;
21
+ this.min = -Infinity;
22
+ this.step = 1;
23
+ detectControllerChanges(this).subscribe();
24
+ }
25
+ ngAfterViewInit() {
26
+ this.registerPressHold(this.decrementButton).subscribe(() => {
27
+ this.inputElement?.stepDown();
28
+ this.onInputChange();
29
+ });
30
+ this.registerPressHold(this.incrementButton).subscribe(() => {
31
+ this.inputElement?.stepUp();
32
+ this.onInputChange();
33
+ });
34
+ }
35
+ maxSteps({ code }) {
36
+ if (code === 'End' && this.min !== -Infinity) {
37
+ this.updateValue(this.min);
38
+ }
39
+ else if (code === 'Home' && this.max !== Infinity) {
40
+ this.updateValue(this.max);
41
+ }
42
+ }
43
+ checkValue() {
44
+ const value = coerceNumberProperty(this.inputElement.value);
45
+ this.updateValue(value < this.min ? this.min : value > this.max ? this.max : value);
46
+ }
47
+ onInputChange() {
48
+ this.updateValue(coerceNumberProperty(this.inputElement.value));
49
+ }
50
+ registerPressHold(target) {
51
+ return fromEvents(target.nativeElement, 'keydown', 'mousedown', 'mouseup', 'keyup').pipe(filter((event) => event?.type !== 'keydown' || ['Space', 'Enter'].includes(event.code)), tap((event) => {
52
+ event.preventDefault();
53
+ event.stopPropagation();
54
+ }), switchMap(({ type }) => (['mouseup', 'keyup'].includes(type) ? NEVER : timer(500, 100).pipe(startWith(undefined)))), this.takeUntilDestroyed());
55
+ }
56
+ };
57
+ SpinboxComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SpinboxComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ SpinboxComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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 });
59
+ __decorate([
60
+ Transform(coerceNumberProperty),
61
+ __metadata("design:type", Object)
62
+ ], SpinboxComponent.prototype, "max", void 0);
63
+ __decorate([
64
+ Transform(coerceNumberProperty),
65
+ __metadata("design:type", Object)
66
+ ], SpinboxComponent.prototype, "min", void 0);
67
+ __decorate([
68
+ Transform(coerceNumberProperty),
69
+ __metadata("design:type", Object)
70
+ ], SpinboxComponent.prototype, "step", void 0);
71
+ SpinboxComponent = __decorate([
72
+ CSSComponent('spinbox'),
73
+ __metadata("design:paramtypes", [])
74
+ ], SpinboxComponent);
75
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SpinboxComponent, decorators: [{
76
+ type: Component,
77
+ 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" }]
78
+ }], ctorParameters: function () { return []; }, propDecorators: { decrementButton: [{
79
+ type: ViewChild,
80
+ args: ['decrementButton']
81
+ }], incrementButton: [{
82
+ type: ViewChild,
83
+ args: ['incrementButton']
84
+ }], max: [{
85
+ type: Input
86
+ }], min: [{
87
+ type: Input
88
+ }], step: [{
89
+ type: Input
90
+ }] } });
91
+
92
+ /**
93
+ * Generated bundle index. Do not edit.
94
+ */
95
+
96
+ export { SpinboxComponent };
97
+ //# sourceMappingURL=odx-angular-components-spinbox.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odx-angular-components-spinbox.mjs","sources":["../../../../libs/angular/components/spinbox/src/lib/spinbox.component.ts","../../../../libs/angular/components/spinbox/src/lib/spinbox.component.html","../../../../libs/angular/components/spinbox/src/odx-angular-components-spinbox.ts"],"sourcesContent":["import { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { AfterViewInit, ChangeDetectionStrategy, Component, ElementRef, Input, ViewChild, ViewEncapsulation } from '@angular/core';\nimport { detectControllerChanges, DisabledController, ReadonlyController } from '@odx/angular';\nimport { ControlDirective, CustomFormControl } from '@odx/angular/cdk/custom-form-control';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { fromEvents } from '@odx/angular/rxjs';\nimport { injectElement, Transform, untilDestroyed } from '@odx/angular/utils';\nimport { filter, NEVER, Observable, startWith, switchMap, tap, timer } from 'rxjs';\n\n@CSSComponent('spinbox')\n@Component({\n standalone: true,\n selector: 'odx-spinbox',\n templateUrl: 'spinbox.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [ControlDirective],\n providers: [DisabledController.connect(), ReadonlyController.connect()],\n})\nexport class SpinboxComponent extends CustomFormControl<number> implements AfterViewInit {\n public static ngAcceptInputType_max: NumberInput;\n public static ngAcceptInputType_min: NumberInput;\n public static ngAcceptInputType_step: NumberInput;\n\n private readonly takeUntilDestroyed = untilDestroyed();\n\n private get inputElement(): HTMLInputElement {\n return this.control?.element.nativeElement as HTMLInputElement;\n }\n\n @ViewChild('decrementButton')\n protected decrementButton!: ElementRef<HTMLButtonElement>;\n\n @ViewChild('incrementButton')\n protected incrementButton!: ElementRef<HTMLButtonElement>;\n\n public readonly element = injectElement();\n\n @Transform(coerceNumberProperty)\n @Input()\n public max = Infinity;\n\n @Transform(coerceNumberProperty)\n @Input()\n public min = -Infinity;\n\n @Transform(coerceNumberProperty)\n @Input()\n public step = 1;\n\n constructor() {\n super(0);\n detectControllerChanges(this).subscribe();\n }\n\n public ngAfterViewInit(): void {\n this.registerPressHold(this.decrementButton).subscribe(() => {\n this.inputElement?.stepDown();\n this.onInputChange();\n });\n this.registerPressHold(this.incrementButton).subscribe(() => {\n this.inputElement?.stepUp();\n this.onInputChange();\n });\n }\n\n protected maxSteps({ code }: KeyboardEvent) {\n if (code === 'End' && this.min !== -Infinity) {\n this.updateValue(this.min);\n } else if (code === 'Home' && this.max !== Infinity) {\n this.updateValue(this.max);\n }\n }\n\n protected checkValue(): void {\n const value = coerceNumberProperty(this.inputElement.value);\n this.updateValue(value < this.min ? this.min : value > this.max ? this.max : value);\n }\n\n protected onInputChange(): void {\n this.updateValue(coerceNumberProperty(this.inputElement.value));\n }\n\n private registerPressHold(target: ElementRef<HTMLElement>): Observable<unknown> {\n return fromEvents(target.nativeElement, 'keydown', 'mousedown', 'mouseup', 'keyup').pipe(\n filter((event) => event?.type !== 'keydown' || ['Space', 'Enter'].includes((event as KeyboardEvent).code)),\n tap((event) => {\n event.preventDefault();\n event.stopPropagation();\n }),\n switchMap(({ type }) => (['mouseup', 'keyup'].includes(type) ? NEVER : timer(500, 100).pipe(startWith(undefined)))),\n this.takeUntilDestroyed()\n );\n }\n}\n","<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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;AAmB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A;AAEvB,UAAA,CAAA;IAAC,SAAS,CAAC,oBAAoB,CAAC;;AAEhB,CAAA,EAAA,gBAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AA7BL,gBAAgB,GAAA,UAAA,CAAA;IAV5B,YAAY,CAAC,SAAS,CAAC;;AAUX,CAAA,EAAA,gBAAgB,CA2E5B,CAAA;2FA3EY,gBAAgB,EAAA,UAAA,EAAA,CAAA;kBAT5B,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,aAAa,EAAA,eAAA,EAEN,uBAAuB,CAAC,MAAM,EAChC,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAC5B,OAAA,EAAA,CAAC,gBAAgB,CAAC,EAAA,SAAA,EAChB,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,kBAAkB,CAAC,OAAO,EAAE,CAAC,EAAA,QAAA,EAAA,mlBAAA,EAAA,CAAA;0EAc7D,eAAe,EAAA,CAAA;sBADxB,SAAS;uBAAC,iBAAiB,CAAA;gBAIlB,eAAe,EAAA,CAAA;sBADxB,SAAS;uBAAC,iBAAiB,CAAA;gBAOrB,GAAG,EAAA,CAAA;sBADT,KAAK;gBAKC,GAAG,EAAA,CAAA;sBADT,KAAK;gBAKC,IAAI,EAAA,CAAA;sBADV,KAAK;;;AE/CR;;AAEG;;;;"}
@@ -1,28 +1,69 @@
1
1
  import { __decorate } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, ChangeDetectionStrategy, ViewEncapsulation } from '@angular/core';
4
- import { DisabledController, ReadonlyController } from '@odx/angular';
3
+ import { Component, ChangeDetectionStrategy, ViewEncapsulation, forwardRef, Directive, NgModule } from '@angular/core';
4
+ import * as i1 from '@odx/angular';
5
+ import { ReadonlyController, WithDisabledState, CoreModule } from '@odx/angular';
5
6
  import { CheckBoxControl } from '@odx/angular/cdk/checkbox-control';
6
7
  import { ControlDirective } from '@odx/angular/cdk/custom-form-control';
7
8
  import { CSSComponent } from '@odx/angular/internal';
9
+ import { CheckboxRequiredValidator, NG_VALIDATORS } from '@angular/forms';
8
10
 
9
11
  let SwitchComponent = class SwitchComponent extends CheckBoxControl {
10
12
  };
11
- SwitchComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
12
- SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.7", type: SwitchComponent, isStandalone: true, selector: "odx-switch", host: { properties: { "class.is-active": "checked" } }, providers: [DisabledController.connect(), ReadonlyController.connect()], usesInheritance: true, 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]=\"required || 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.4", ngImport: i0, type: SwitchComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
14
+ SwitchComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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
15
  SwitchComponent = __decorate([
14
16
  CSSComponent('switch')
15
17
  ], SwitchComponent);
16
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.7", ngImport: i0, type: SwitchComponent, decorators: [{
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchComponent, decorators: [{
17
19
  type: Component,
18
- args: [{ standalone: true, selector: 'odx-switch', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ControlDirective], providers: [DisabledController.connect(), ReadonlyController.connect()], host: {
20
+ args: [{ standalone: true, selector: 'odx-switch', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, imports: [ControlDirective], providers: [ReadonlyController.connect()], hostDirectives: [WithDisabledState], host: {
19
21
  '[class.is-active]': 'checked',
20
- }, 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]=\"required || 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" }]
22
+ }, 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" }]
23
+ }] });
24
+
25
+ class SwitchValidator extends CheckboxRequiredValidator {
26
+ }
27
+ SwitchValidator.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchValidator, deps: null, target: i0.ɵɵFactoryTarget.Directive });
28
+ SwitchValidator.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.4", type: SwitchValidator, isStandalone: true, selector: "odx-switch[required][formControlName], odx-switch[required][formControl], odx-switch[required][ngModel]", providers: [
29
+ {
30
+ provide: NG_VALIDATORS,
31
+ useExisting: forwardRef(() => SwitchValidator),
32
+ multi: true,
33
+ },
34
+ ], usesInheritance: true, ngImport: i0 });
35
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchValidator, decorators: [{
36
+ type: Directive,
37
+ args: [{
38
+ standalone: true,
39
+ selector: 'odx-switch[required][formControlName], odx-switch[required][formControl], odx-switch[required][ngModel]',
40
+ providers: [
41
+ {
42
+ provide: NG_VALIDATORS,
43
+ useExisting: forwardRef(() => SwitchValidator),
44
+ multi: true,
45
+ },
46
+ ],
47
+ }]
48
+ }] });
49
+
50
+ const modules = [SwitchComponent, SwitchValidator];
51
+ class SwitchModule {
52
+ }
53
+ SwitchModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
54
+ SwitchModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, SwitchValidator], exports: [CoreModule, SwitchComponent, SwitchValidator] });
55
+ SwitchModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchModule, imports: [SwitchComponent, CoreModule] });
56
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: SwitchModule, decorators: [{
57
+ type: NgModule,
58
+ args: [{
59
+ imports: modules,
60
+ exports: [CoreModule, ...modules],
61
+ }]
21
62
  }] });
22
63
 
23
64
  /**
24
65
  * Generated bundle index. Do not edit.
25
66
  */
26
67
 
27
- export { SwitchComponent };
68
+ export { SwitchComponent, SwitchModule, SwitchValidator };
28
69
  //# sourceMappingURL=odx-angular-components-switch.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-switch.mjs","sources":["../../../../libs/angular/components/switch/src/lib/switch.component.ts","../../../../libs/angular/components/switch/src/lib/switch.component.html","../../../../libs/angular/components/switch/src/odx-angular-components-switch.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { DisabledController, ReadonlyController } from '@odx/angular';\nimport { CheckBoxControl } from '@odx/angular/cdk/checkbox-control';\nimport { ControlDirective } from '@odx/angular/cdk/custom-form-control';\nimport { CSSComponent } from '@odx/angular/internal';\n\n@CSSComponent('switch')\n@Component({\n standalone: true,\n selector: 'odx-switch',\n templateUrl: 'switch.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [ControlDirective],\n providers: [DisabledController.connect(), ReadonlyController.connect()],\n host: {\n '[class.is-active]': 'checked',\n },\n})\nexport class SwitchComponent extends CheckBoxControl {}\n","<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]=\"required || 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","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAmBO,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,eAAe,CAAA;;4GAAvC,eAAe,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAf,eAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,eAAe,EALf,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,YAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,iBAAA,EAAA,SAAA,EAAA,EAAA,EAAA,SAAA,EAAA,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,kBAAkB,CAAC,OAAO,EAAE,CAAC,ECdzE,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,kpBAsBA,4CDTY,gBAAgB,EAAA,QAAA,EAAA,cAAA,EAAA,QAAA,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;AAMf,eAAe,GAAA,UAAA,CAAA;IAb3B,YAAY,CAAC,QAAQ,CAAC;AAaV,CAAA,EAAA,eAAe,CAA2B,CAAA;2FAA1C,eAAe,EAAA,UAAA,EAAA,CAAA;kBAZ3B,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,YAAY,EAAA,eAAA,EAEL,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,OAAA,EAC5B,CAAC,gBAAgB,CAAC,EAChB,SAAA,EAAA,CAAC,kBAAkB,CAAC,OAAO,EAAE,EAAE,kBAAkB,CAAC,OAAO,EAAE,CAAC,EACjE,IAAA,EAAA;AACJ,wBAAA,mBAAmB,EAAE,SAAS;AAC/B,qBAAA,EAAA,QAAA,EAAA,kpBAAA,EAAA,CAAA;;;AEjBH;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-switch.mjs","sources":["../../../../libs/angular/components/switch/src/lib/switch.component.ts","../../../../libs/angular/components/switch/src/lib/switch.component.html","../../../../libs/angular/components/switch/src/lib/switch.validator.ts","../../../../libs/angular/components/switch/src/lib/switch.module.ts","../../../../libs/angular/components/switch/src/odx-angular-components-switch.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { ReadonlyController, WithDisabledState } from '@odx/angular';\nimport { CheckBoxControl } from '@odx/angular/cdk/checkbox-control';\nimport { ControlDirective } from '@odx/angular/cdk/custom-form-control';\nimport { CSSComponent } from '@odx/angular/internal';\n\n@CSSComponent('switch')\n@Component({\n standalone: true,\n selector: 'odx-switch',\n templateUrl: 'switch.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [ControlDirective],\n providers: [ReadonlyController.connect()],\n hostDirectives: [WithDisabledState],\n host: {\n '[class.is-active]': 'checked',\n },\n})\nexport class SwitchComponent extends CheckBoxControl {}\n","<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","import { Directive, forwardRef } from '@angular/core';\nimport { CheckboxRequiredValidator, NG_VALIDATORS } from '@angular/forms';\n\n@Directive({\n standalone: true,\n selector: 'odx-switch[required][formControlName], odx-switch[required][formControl], odx-switch[required][ngModel]',\n providers: [\n {\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => SwitchValidator),\n multi: true,\n },\n ],\n})\nexport class SwitchValidator extends CheckboxRequiredValidator {}\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { SwitchComponent } from './switch.component';\nimport { SwitchValidator } from './switch.validator';\n\nconst modules = [SwitchComponent, SwitchValidator];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class SwitchModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAoBO,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,eAAe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AAe,EAIpB,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;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -0,0 +1,203 @@
1
+ import { __decorate, __metadata } from 'tslib';
2
+ import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
3
+ import * as i1 from '@angular/common';
4
+ import { CommonModule } from '@angular/common';
5
+ import * as i0 from '@angular/core';
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';
8
+ import { DisabledController, CoreModule } from '@odx/angular';
9
+ import { IconComponent } from '@odx/angular/components/icon';
10
+ import { CSSComponent, CSSModifier } from '@odx/angular/internal';
11
+ import { untilDestroyed, deferFn, Transform, injectElement, applyStyles, cssTranslate, px } from '@odx/angular/utils';
12
+ import { filter, BehaviorSubject, merge, debounceTime, tap, fromEvent } from 'rxjs';
13
+ import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
14
+ import { ActiveIndicatorDirective } from '@odx/angular/cdk/active-indicator';
15
+ import { fromQueryList, fromElementResize$ } from '@odx/angular/rxjs';
16
+
17
+ const TAB_BAR = new InjectionToken('tabBar');
18
+
19
+ let TabBarItemComponent = class TabBarItemComponent {
20
+ constructor() {
21
+ this.disabledController = DisabledController.inject();
22
+ this.tabBar = inject(TAB_BAR);
23
+ this.routerLinkActive = inject(RouterLinkActive, { optional: true, self: true });
24
+ this.takeUntilDestroyed = untilDestroyed();
25
+ this.isActive = false;
26
+ this.element = inject(ElementRef);
27
+ this.closable = false;
28
+ this.tabClose = new EventEmitter();
29
+ }
30
+ get disabled() {
31
+ return !!this.disabledController?.disabled;
32
+ }
33
+ ngOnInit() {
34
+ this.routerLinkActive?.isActiveChange.pipe(this.takeUntilDestroyed(), filter(Boolean)).subscribe(() => {
35
+ this.onClick();
36
+ });
37
+ }
38
+ setActiveStyles() {
39
+ deferFn(() => (this.isActive = true));
40
+ }
41
+ setInactiveStyles() {
42
+ deferFn(() => (this.isActive = false));
43
+ }
44
+ onClick() {
45
+ if (this.disabled)
46
+ return;
47
+ this.tabBar.activateItem(this);
48
+ }
49
+ handleClose(event) {
50
+ event.stopPropagation();
51
+ if (this.disabled || !this.closable)
52
+ return;
53
+ this.tabBar.removeItem(this);
54
+ this.tabClose.emit(this);
55
+ }
56
+ };
57
+ TabBarItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
58
+ TabBarItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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
+ __decorate([
60
+ Transform(coerceBooleanProperty),
61
+ __metadata("design:type", Object)
62
+ ], TabBarItemComponent.prototype, "closable", void 0);
63
+ TabBarItemComponent = __decorate([
64
+ CSSComponent('tab-bar-item')
65
+ ], TabBarItemComponent);
66
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarItemComponent, decorators: [{
67
+ type: Component,
68
+ args: [{ selector: 'odx-tab-bar-item', standalone: true, imports: [CommonModule, IconComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], host: {
69
+ '[class.is-disabled]': 'disabled',
70
+ '[class.is-active]': 'isActive',
71
+ '[attr.aria-selected]': 'isActive',
72
+ '[class.is-closable]': 'closable',
73
+ role: 'tab',
74
+ }, 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" }]
75
+ }], propDecorators: { closable: [{
76
+ type: Input
77
+ }], tabClose: [{
78
+ type: Output
79
+ }], onClick: [{
80
+ type: HostListener,
81
+ args: ['click']
82
+ }] } });
83
+
84
+ var TabBarComponent_1;
85
+ let TabBarComponent = TabBarComponent_1 = class TabBarComponent {
86
+ constructor() {
87
+ this.changeDetector = inject(ChangeDetectorRef);
88
+ this.takeUntilDestroyed = untilDestroyed();
89
+ this.selectedIndex$$ = new BehaviorSubject(0);
90
+ this.activeItem = null;
91
+ this.element = injectElement();
92
+ this.overflowLeft = false;
93
+ this.overflowRight = false;
94
+ this.selectedTabChanged = new EventEmitter();
95
+ }
96
+ set selectedIndex(value) {
97
+ this.selectedIndex$$.next(coerceNumberProperty(value));
98
+ }
99
+ ngAfterViewInit() {
100
+ this.keyManager = new ActiveDescendantKeyManager(this.tabs).withWrap().withHomeAndEnd().withHorizontalOrientation('ltr').withVerticalOrientation(false);
101
+ const updatePanelPosition$ = merge(this.selectedTabChanged, fromQueryList(this.tabs), fromElementResize$(this.element.nativeElement)).pipe(debounceTime(0), tap(() => this.updatePanelPosition()));
102
+ const updateActionVisibility$ = fromEvent(this.tabBarPanelElement.nativeElement, 'transitionend').pipe(tap(({ target }) => target === this.tabBarPanelElement.nativeElement && this.updateActionVisbility()));
103
+ const activeItemChange$ = merge(this.keyManager.change.pipe(tap(() => this.activeItemChange())), this.selectedIndex$$.pipe(tap((index) => this.keyManager?.setActiveItem(index))));
104
+ merge(activeItemChange$, updatePanelPosition$, updateActionVisibility$).pipe(this.takeUntilDestroyed()).subscribe();
105
+ }
106
+ activateItem(item) {
107
+ if (item === this.activeItem)
108
+ return;
109
+ const selectedIndex = item ? this.tabs.toArray().indexOf(item) : -1;
110
+ this.keyManager?.setActiveItem(selectedIndex);
111
+ }
112
+ removeItem(item) {
113
+ if (this.activeItem !== item)
114
+ return;
115
+ deferFn(() => this.keyManager?.setPreviousItemActive());
116
+ }
117
+ onKeydown(event) {
118
+ this.keyManager?.onKeydown(event);
119
+ }
120
+ updatePanelPosition() {
121
+ const activeElement = this.activeItem?.element.nativeElement;
122
+ if (!activeElement)
123
+ return;
124
+ const panelRect = this.tabBarPanelElement.nativeElement.getBoundingClientRect();
125
+ const tabBarRect = this.element.nativeElement.getBoundingClientRect();
126
+ const maxPanelPositionX = Math.floor(tabBarRect.width - panelRect.width);
127
+ const panelPositionX = tabBarRect.width / 2 - activeElement.offsetLeft - activeElement.offsetWidth / 2;
128
+ const positionX = Math.min(0, Math.max(panelPositionX, maxPanelPositionX));
129
+ applyStyles(this.tabBarPanelElement.nativeElement, {
130
+ transform: cssTranslate(px(positionX), 0),
131
+ });
132
+ this.updateActionVisbility();
133
+ }
134
+ updateActionVisbility() {
135
+ const panelRect = this.tabBarPanelElement.nativeElement.getBoundingClientRect();
136
+ const tabBarRect = this.element.nativeElement.getBoundingClientRect();
137
+ this.overflowLeft = panelRect.left < tabBarRect.left;
138
+ this.overflowRight = panelRect.right > tabBarRect.right;
139
+ this.changeDetector.detectChanges();
140
+ }
141
+ activeItemChange() {
142
+ const { activeItemIndex, activeItem } = this.keyManager ?? {};
143
+ this.activeItem = activeItem ?? null;
144
+ this.selectedTabChanged.emit({ selectedIndex: activeItemIndex ?? -1, selectedTab: this.keyManager?.activeItem ?? null });
145
+ }
146
+ };
147
+ TabBarComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
148
+ TabBarComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.4", 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 });
149
+ __decorate([
150
+ CSSModifier(),
151
+ __metadata("design:type", Object)
152
+ ], TabBarComponent.prototype, "overflowLeft", void 0);
153
+ __decorate([
154
+ CSSModifier(),
155
+ __metadata("design:type", Object)
156
+ ], TabBarComponent.prototype, "overflowRight", void 0);
157
+ TabBarComponent = TabBarComponent_1 = __decorate([
158
+ CSSComponent('tab-bar')
159
+ ], TabBarComponent);
160
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarComponent, decorators: [{
161
+ type: Component,
162
+ 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: {
163
+ role: 'tabpanel',
164
+ tabindex: '0',
165
+ }, 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" }]
166
+ }], propDecorators: { tabBarPanelElement: [{
167
+ type: ViewChild,
168
+ args: ['tabBarPanel']
169
+ }], tabActionElements: [{
170
+ type: ViewChildren,
171
+ args: ['tabAction']
172
+ }], tabs: [{
173
+ type: ContentChildren,
174
+ args: [TabBarItemComponent]
175
+ }], overflowLeft: [], overflowRight: [], selectedIndex: [{
176
+ type: Input
177
+ }], selectedTabChanged: [{
178
+ type: Output
179
+ }], onKeydown: [{
180
+ type: HostListener,
181
+ args: ['keydown', ['$event']]
182
+ }] } });
183
+
184
+ const modules = [TabBarComponent, TabBarItemComponent];
185
+ class TabBarModule {
186
+ }
187
+ TabBarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
188
+ TabBarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.4", ngImport: i0, type: TabBarModule, imports: [TabBarComponent, TabBarItemComponent], exports: [CoreModule, TabBarComponent, TabBarItemComponent] });
189
+ TabBarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarModule, imports: [modules, CoreModule] });
190
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.4", ngImport: i0, type: TabBarModule, decorators: [{
191
+ type: NgModule,
192
+ args: [{
193
+ imports: modules,
194
+ exports: [CoreModule, ...modules],
195
+ }]
196
+ }] });
197
+
198
+ /**
199
+ * Generated bundle index. Do not edit.
200
+ */
201
+
202
+ export { TabBarComponent, TabBarItemComponent, TabBarModule };
203
+ //# sourceMappingURL=odx-angular-components-tab-bar.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odx-angular-components-tab-bar.mjs","sources":["../../../../libs/angular/components/tab-bar/src/lib/tab-bar.config.ts","../../../../libs/angular/components/tab-bar/src/lib/components/tab-bar-item/tab-bar-item.component.ts","../../../../libs/angular/components/tab-bar/src/lib/components/tab-bar-item/tab-bar-item.component.html","../../../../libs/angular/components/tab-bar/src/lib/tab-bar.component.ts","../../../../libs/angular/components/tab-bar/src/lib/tab-bar.component.html","../../../../libs/angular/components/tab-bar/src/lib/tab-bar.module.ts","../../../../libs/angular/components/tab-bar/src/odx-angular-components-tab-bar.ts"],"sourcesContent":["import { InjectionToken } from '@angular/core';\nimport { TabBarComponent } from './tab-bar.component';\n\nexport const TAB_BAR = new InjectionToken<TabBarComponent>('tabBar');\n","import { Highlightable } from '@angular/cdk/a11y';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CommonModule } from '@angular/common';\nimport { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, HostListener, inject, Input, OnInit, Output, ViewEncapsulation } from '@angular/core';\nimport { RouterLinkActive } from '@angular/router';\nimport { DisabledController } from '@odx/angular';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { deferFn, Transform, untilDestroyed } from '@odx/angular/utils';\nimport { filter } from 'rxjs';\nimport { TAB_BAR } from '../../tab-bar.config';\n\n@CSSComponent('tab-bar-item')\n@Component({\n selector: 'odx-tab-bar-item',\n standalone: true,\n imports: [CommonModule, IconComponent],\n templateUrl: './tab-bar-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'disabled',\n '[class.is-active]': 'isActive',\n '[attr.aria-selected]': 'isActive',\n '[class.is-closable]': 'closable',\n role: 'tab',\n },\n})\nexport class TabBarItemComponent implements Highlightable, OnInit {\n public static ngAcceptInputType_closable: BooleanInput;\n\n private readonly disabledController = DisabledController.inject();\n private readonly tabBar = inject(TAB_BAR);\n private readonly routerLinkActive = inject(RouterLinkActive, { optional: true, self: true });\n private readonly takeUntilDestroyed = untilDestroyed();\n\n protected isActive = false;\n\n public readonly element: ElementRef<HTMLElement> = inject(ElementRef);\n\n public get disabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n\n @Transform(coerceBooleanProperty)\n @Input()\n public closable = false;\n\n @Output()\n public tabClose = new EventEmitter<TabBarItemComponent>();\n\n public ngOnInit(): void {\n this.routerLinkActive?.isActiveChange.pipe(this.takeUntilDestroyed(), filter(Boolean)).subscribe(() => {\n this.onClick();\n });\n }\n\n public setActiveStyles(): void {\n deferFn(() => (this.isActive = true));\n }\n\n public setInactiveStyles(): void {\n deferFn(() => (this.isActive = false));\n }\n\n @HostListener('click')\n protected onClick(): void {\n if (this.disabled) return;\n this.tabBar.activateItem(this);\n }\n\n protected handleClose(event: Event): void {\n event.stopPropagation();\n if (this.disabled || !this.closable) return;\n this.tabBar.removeItem(this);\n this.tabClose.emit(this);\n }\n}\n","<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","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { CommonModule } from '@angular/common';\nimport {\n AfterViewInit,\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n ContentChildren,\n ElementRef,\n EventEmitter,\n forwardRef,\n HostListener,\n inject,\n Input,\n Output,\n QueryList,\n ViewChild,\n ViewChildren,\n ViewEncapsulation,\n} from '@angular/core';\nimport { ActiveIndicatorDirective } from '@odx/angular/cdk/active-indicator';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { fromElementResize$, fromQueryList } from '@odx/angular/rxjs';\nimport { applyStyles, cssTranslate, deferFn, injectElement, px, untilDestroyed } from '@odx/angular/utils';\nimport { BehaviorSubject, debounceTime, fromEvent, merge, tap } from 'rxjs';\nimport { TabBarItemComponent } from './components';\nimport { TabChangeEvent } from './models';\nimport { TAB_BAR } from './tab-bar.config';\n\n@CSSComponent('tab-bar')\n@Component({\n selector: 'odx-tab-bar',\n standalone: true,\n imports: [CommonModule, IconComponent, ActiveIndicatorDirective],\n templateUrl: './tab-bar.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: TAB_BAR, useExisting: forwardRef(() => TabBarComponent) }],\n host: {\n role: 'tabpanel',\n tabindex: '0',\n },\n})\nexport class TabBarComponent implements AfterViewInit {\n public static ngAcceptInputType_selectedIndex: NumberInput;\n\n private readonly changeDetector = inject(ChangeDetectorRef);\n private readonly takeUntilDestroyed = untilDestroyed();\n private readonly selectedIndex$$ = new BehaviorSubject(0);\n\n protected activeItem: TabBarItemComponent | null = null;\n\n protected keyManager?: ActiveDescendantKeyManager<TabBarItemComponent>;\n\n @ViewChild('tabBarPanel')\n protected tabBarPanelElement!: ElementRef<HTMLElement>;\n\n @ViewChildren('tabAction')\n protected tabActionElements!: QueryList<ElementRef<HTMLElement>>;\n\n @ContentChildren(TabBarItemComponent)\n protected tabs!: QueryList<TabBarItemComponent>;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n public overflowLeft = false;\n\n @CSSModifier()\n public overflowRight = false;\n\n @Input()\n public set selectedIndex(value: unknown) {\n this.selectedIndex$$.next(coerceNumberProperty(value));\n }\n\n @Output()\n public selectedTabChanged = new EventEmitter<TabChangeEvent>();\n\n public ngAfterViewInit(): void {\n this.keyManager = new ActiveDescendantKeyManager(this.tabs).withWrap().withHomeAndEnd().withHorizontalOrientation('ltr').withVerticalOrientation(false);\n const updatePanelPosition$ = merge(this.selectedTabChanged, fromQueryList(this.tabs), fromElementResize$(this.element.nativeElement)).pipe(\n debounceTime(0),\n tap(() => this.updatePanelPosition())\n );\n const updateActionVisibility$ = fromEvent(this.tabBarPanelElement.nativeElement, 'transitionend').pipe(\n tap(({ target }) => target === this.tabBarPanelElement.nativeElement && this.updateActionVisbility())\n );\n const activeItemChange$ = merge(\n this.keyManager.change.pipe(tap(() => this.activeItemChange())),\n this.selectedIndex$$.pipe(tap((index) => this.keyManager?.setActiveItem(index)))\n );\n merge(activeItemChange$, updatePanelPosition$, updateActionVisibility$).pipe(this.takeUntilDestroyed()).subscribe();\n }\n\n public activateItem(item?: TabBarItemComponent | null): void {\n if (item === this.activeItem) return;\n const selectedIndex = item ? this.tabs.toArray().indexOf(item) : -1;\n this.keyManager?.setActiveItem(selectedIndex);\n }\n\n public removeItem(item: TabBarItemComponent): void {\n if (this.activeItem !== item) return;\n deferFn(() => this.keyManager?.setPreviousItemActive());\n }\n\n @HostListener('keydown', ['$event'])\n protected onKeydown(event: KeyboardEvent): void {\n this.keyManager?.onKeydown(event);\n }\n\n private updatePanelPosition(): void {\n const activeElement = this.activeItem?.element.nativeElement;\n if (!activeElement) return;\n const panelRect = this.tabBarPanelElement.nativeElement.getBoundingClientRect();\n const tabBarRect = this.element.nativeElement.getBoundingClientRect();\n const maxPanelPositionX = Math.floor(tabBarRect.width - panelRect.width);\n const panelPositionX = tabBarRect.width / 2 - activeElement.offsetLeft - activeElement.offsetWidth / 2;\n const positionX = Math.min(0, Math.max(panelPositionX, maxPanelPositionX));\n applyStyles(this.tabBarPanelElement.nativeElement, {\n transform: cssTranslate(px(positionX), 0),\n });\n this.updateActionVisbility();\n }\n\n private updateActionVisbility(): void {\n const panelRect = this.tabBarPanelElement.nativeElement.getBoundingClientRect();\n const tabBarRect = this.element.nativeElement.getBoundingClientRect();\n this.overflowLeft = panelRect.left < tabBarRect.left;\n this.overflowRight = panelRect.right > tabBarRect.right;\n this.changeDetector.detectChanges();\n }\n\n private activeItemChange(): void {\n const { activeItemIndex, activeItem } = this.keyManager ?? {};\n this.activeItem = activeItem ?? null;\n this.selectedTabChanged.emit({ selectedIndex: activeItemIndex ?? -1, selectedTab: this.keyManager?.activeItem ?? null });\n }\n}\n","<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","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { TabBarItemComponent } from './components';\nimport { TabBarComponent } from './tab-bar.component';\n\nconst modules = [TabBarComponent, TabBarItemComponent];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class TabBarModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAGO,MAAM,OAAO,GAAG,IAAI,cAAc,CAAkB,QAAQ,CAAC;;AC0BvD,IAAA,mBAAmB,GAAzB,MAAM,mBAAmB,CAAA;AAAzB,IAAA,WAAA,GAAA;AAGY,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,OAAO,CAAC,CAAC;AACzB,QAAA,IAAA,CAAA,gBAAgB,GAAG,MAAM,CAAC,gBAAgB,EAA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