@odx/angular 1.0.0-rc.7 → 1.0.0-rc.9

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 (572) hide show
  1. package/README.md +6 -6
  2. package/cdk/a11y/README.md +3 -0
  3. package/cdk/a11y/index.d.ts +2 -0
  4. package/cdk/a11y/lib/a11y.module.d.ts +11 -0
  5. package/cdk/a11y/lib/directives/index.d.ts +3 -0
  6. package/cdk/a11y/lib/directives/interactive.directive.d.ts +11 -0
  7. package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +11 -0
  8. package/cdk/a11y/lib/directives/list-focus-manager.directive.d.ts +12 -0
  9. package/cdk/active-indicator/lib/active-indicator.directive.d.ts +3 -2
  10. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +1 -1
  11. package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +1 -1
  12. package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +1 -0
  13. package/cdk/custom-form-control/lib/control.directive.d.ts +1 -1
  14. package/cdk/custom-form-control/lib/custom-form-control.d.ts +1 -1
  15. package/cdk/dynamic-view/lib/dynamic-view.component.d.ts +1 -1
  16. package/cdk/dynamic-view/lib/dynamic-view.directive.d.ts +1 -1
  17. package/cdk/expandable/index.d.ts +1 -0
  18. package/cdk/expandable/lib/directives/expandable-item.directive.d.ts +2 -2
  19. package/cdk/expandable/lib/directives/extandable-container.directive.d.ts +2 -2
  20. package/cdk/expandable/lib/expandable.tokens.d.ts +3 -0
  21. package/cdk/expandable/lib/facade/expandable-container.d.ts +4 -4
  22. package/cdk/expandable/lib/facade/expandable-item.d.ts +6 -6
  23. package/cdk/radio-group-control/lib/radio-control.directive.d.ts +1 -1
  24. package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +1 -1
  25. package/components/accordion/lib/accordion.component.d.ts +1 -1
  26. package/components/accordion/lib/components/accordion-item/accordion-item.component.d.ts +1 -1
  27. package/components/accordion/lib/directives/accordion-item-title.d.ts +1 -1
  28. package/components/action-group/action-group.component.d.ts +1 -1
  29. package/components/area-header/area-header.component.d.ts +1 -1
  30. package/components/area-header/directives/area-header-content.directive.d.ts +1 -1
  31. package/components/area-header/directives/area-header-subtitle.directive.d.ts +1 -1
  32. package/components/avatar/lib/avatar.component.d.ts +1 -1
  33. package/components/badge/lib/badge.component.d.ts +1 -1
  34. package/components/badge/lib/badge.directive.d.ts +1 -1
  35. package/components/bar/README.md +3 -0
  36. package/components/bar/index.d.ts +5 -0
  37. package/components/bar/lib/bar.component.d.ts +6 -0
  38. package/components/bar/lib/bar.module.d.ts +10 -0
  39. package/components/bar/lib/directives/bar-button.directive.d.ts +10 -0
  40. package/components/bar/lib/directives/bar-label.directive.d.ts +6 -0
  41. package/components/bar/lib/models/bar-button-variant.d.ts +5 -0
  42. package/components/breadcrumbs/README.md +3 -0
  43. package/components/breadcrumbs/index.d.ts +1 -0
  44. package/components/breadcrumbs/lib/breadcrumbs.component.d.ts +17 -0
  45. package/components/button/lib/button.component.d.ts +3 -4
  46. package/components/button-group/lib/button-group.component.d.ts +1 -1
  47. package/components/checkbox/lib/checkbox.component.d.ts +2 -1
  48. package/components/checkbox/lib/checkbox.validator.d.ts +1 -1
  49. package/components/chip/lib/chip.component.d.ts +1 -1
  50. package/components/circular-progress/lib/circular-progress.component.d.ts +1 -1
  51. package/components/content-box/lib/content-box.component.d.ts +1 -1
  52. package/components/content-box/lib/directives/content-box-footer-directive.d.ts +1 -1
  53. package/components/content-box/lib/directives/content-box-header-directive.d.ts +1 -1
  54. package/components/dropdown/index.d.ts +2 -0
  55. package/components/dropdown/lib/dropdown.component.d.ts +2 -1
  56. package/components/dropdown/lib/dropdown.directive.d.ts +13 -4
  57. package/components/dropdown/lib/helpers/close-current-dropdown.d.ts +1 -0
  58. package/components/dropdown/lib/helpers/index.d.ts +1 -0
  59. package/components/dropdown/lib/models/close-dropdown-event.d.ts +4 -0
  60. package/components/dropdown/lib/models/dropdown-options.d.ts +1 -1
  61. package/components/dropdown/lib/models/index.d.ts +1 -0
  62. package/components/form-field/lib/components/form-field-info/form-field-info.component.d.ts +1 -1
  63. package/components/form-field/lib/components/form-group/form-group.component.d.ts +1 -1
  64. package/components/form-field/lib/directives/form-field-control.directive.d.ts +1 -1
  65. package/components/form-field/lib/directives/form-field-error.directive.d.ts +1 -1
  66. package/components/form-field/lib/directives/form-field-hint.directive.d.ts +1 -1
  67. package/components/form-field/lib/directives/form-field-label.directive.d.ts +1 -1
  68. package/components/form-field/lib/directives/form.directive.d.ts +1 -1
  69. package/components/form-field/lib/form-field.component.d.ts +2 -1
  70. package/components/header/lib/directives/header-avatar.directive.d.ts +1 -1
  71. package/components/header/lib/directives/header-title.directive.d.ts +1 -1
  72. package/components/header/lib/header.component.d.ts +1 -1
  73. package/components/header/lib/header.module.d.ts +2 -3
  74. package/components/icon/lib/icon.component.d.ts +1 -1
  75. package/components/icon/lib/models/icon-size.d.ts +2 -1
  76. package/components/inline-message/index.d.ts +1 -1
  77. package/components/inline-message/lib/inline-message.component.d.ts +2 -2
  78. package/components/inline-message/lib/models/index.d.ts +1 -0
  79. package/components/launch-tile/README.md +3 -0
  80. package/components/launch-tile/index.d.ts +3 -0
  81. package/components/launch-tile/lib/components/index.d.ts +2 -0
  82. package/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.d.ts +5 -0
  83. package/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.d.ts +5 -0
  84. package/components/launch-tile/lib/launch-tile.component.d.ts +13 -0
  85. package/components/launch-tile/lib/launch-tile.module.d.ts +14 -0
  86. package/components/link/link.directive.d.ts +2 -4
  87. package/components/list/lib/components/index.d.ts +1 -1
  88. package/components/list/lib/components/{list-item.component.d.ts → list-item/list-item.component.d.ts} +2 -4
  89. package/components/list/lib/list.component.d.ts +2 -1
  90. package/components/list/lib/list.module.d.ts +1 -1
  91. package/components/loading-spinner/lib/loading-spinner.component.d.ts +1 -1
  92. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +2 -2
  93. package/components/logo/logo.directive.d.ts +1 -1
  94. package/components/main-menu/lib/directives/main-menu-button.directive.d.ts +1 -1
  95. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +2 -4
  96. package/components/main-menu/lib/main-menu.component.d.ts +1 -1
  97. package/components/menu/README.md +3 -0
  98. package/components/menu/index.d.ts +4 -0
  99. package/components/menu/lib/directives/index.d.ts +1 -0
  100. package/components/menu/lib/directives/menu-item.directive.d.ts +9 -0
  101. package/components/menu/lib/menu.component.d.ts +8 -0
  102. package/components/menu/lib/menu.directive.d.ts +16 -0
  103. package/components/menu/lib/menu.module.d.ts +10 -0
  104. package/components/modal/lib/components/basic-modal/basic-modal.component.d.ts +10 -0
  105. package/components/modal/lib/components/index.d.ts +2 -0
  106. package/components/modal/lib/components/modal-footer/modal-footer.component.d.ts +1 -1
  107. package/components/modal/lib/components/modal-header/modal-header.component.d.ts +1 -1
  108. package/components/modal/lib/components/modal-hero/modal-hero.component.d.ts +11 -0
  109. package/components/modal/lib/directives/modal-close.directive.d.ts +2 -2
  110. package/components/modal/lib/directives/modal-content.directive.d.ts +1 -1
  111. package/components/modal/lib/directives/modal-dismiss.directive.d.ts +1 -1
  112. package/components/modal/lib/helpers/inject-modal-ref.d.ts +1 -1
  113. package/components/modal/lib/modal.component.d.ts +7 -3
  114. package/components/modal/lib/modal.directive.d.ts +1 -1
  115. package/components/modal/lib/modal.module.d.ts +9 -8
  116. package/components/modal/lib/modal.service.d.ts +2 -1
  117. package/components/modal/lib/models/basic-modal-options.d.ts +17 -0
  118. package/components/modal/lib/models/index.d.ts +2 -0
  119. package/components/modal/lib/models/modal-hero-variant.d.ts +7 -0
  120. package/components/progress/lib/progress.component.d.ts +2 -2
  121. package/components/radio-group/lib/components/radio-button/radio-button.component.d.ts +2 -2
  122. package/components/radio-group/lib/radio-group.component.d.ts +1 -1
  123. package/components/rail-navigation/lib/components/rail-navigation-item.component.d.ts +2 -4
  124. package/components/rail-navigation/lib/rail-navigation.component.d.ts +1 -1
  125. package/components/select/lib/components/option/option.component.d.ts +1 -1
  126. package/components/select/lib/directives/select-search-field.directive.d.ts +1 -1
  127. package/components/select/lib/select.component.d.ts +4 -4
  128. package/components/slider/lib/slider.directive.d.ts +2 -3
  129. package/components/spinbox/lib/spinbox.component.d.ts +2 -2
  130. package/components/switch/lib/switch.component.d.ts +2 -1
  131. package/components/switch/lib/switch.validator.d.ts +1 -1
  132. package/components/tab-bar/README.md +3 -0
  133. package/components/tab-bar/index.d.ts +4 -0
  134. package/components/tab-bar/lib/components/index.d.ts +1 -0
  135. package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +20 -0
  136. package/components/tab-bar/lib/models/index.d.ts +1 -0
  137. package/components/tab-bar/lib/models/tab-change-event.d.ts +5 -0
  138. package/components/tab-bar/lib/tab-bar.component.d.ts +31 -0
  139. package/components/tab-bar/lib/tab-bar.config.d.ts +3 -0
  140. package/components/tab-bar/lib/tab-bar.module.d.ts +9 -0
  141. package/components/toast/README.md +3 -0
  142. package/components/toast/index.d.ts +5 -0
  143. package/components/toast/lib/components/index.d.ts +2 -0
  144. package/components/toast/lib/components/toast-container/toast-container.component.d.ts +23 -0
  145. package/components/toast/lib/components/toast-item/toast-item.component.d.ts +20 -0
  146. package/components/toast/lib/models/index.d.ts +5 -0
  147. package/components/toast/lib/models/toast-action.d.ts +7 -0
  148. package/components/toast/lib/models/toast-ref.d.ts +7 -0
  149. package/components/toast/lib/models/toast-variant.d.ts +7 -0
  150. package/components/toast/lib/models/toast.d.ts +10 -0
  151. package/components/toast/lib/models/toast.options.d.ts +4 -0
  152. package/components/toast/lib/toast.config.d.ts +3 -0
  153. package/components/toast/lib/toast.module.d.ts +13 -0
  154. package/components/toast/lib/toast.service.d.ts +16 -0
  155. package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +1 -1
  156. package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +2 -2
  157. package/components/tooltip/lib/tooltip.component.d.ts +1 -1
  158. package/components/tooltip/lib/tooltip.directive.d.ts +1 -1
  159. package/esm2020/animations/lib/expand.mjs +6 -4
  160. package/esm2020/cdk/a11y/index.mjs +3 -0
  161. package/esm2020/cdk/a11y/lib/a11y.module.mjs +19 -0
  162. package/esm2020/cdk/a11y/lib/directives/index.mjs +4 -0
  163. package/esm2020/cdk/a11y/lib/directives/interactive.directive.mjs +49 -0
  164. package/esm2020/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +28 -0
  165. package/esm2020/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +40 -0
  166. package/esm2020/cdk/a11y/odx-angular-cdk-a11y.mjs +5 -0
  167. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +11 -10
  168. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +4 -4
  169. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +8 -4
  170. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +4 -4
  171. package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +3 -3
  172. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +3 -2
  173. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +4 -4
  174. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +4 -4
  175. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +4 -4
  176. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +4 -4
  177. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +4 -4
  178. package/esm2020/cdk/expandable/index.mjs +2 -1
  179. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +7 -8
  180. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +5 -7
  181. package/esm2020/cdk/expandable/lib/expandable.module.mjs +5 -5
  182. package/esm2020/cdk/expandable/lib/expandable.tokens.mjs +3 -0
  183. package/esm2020/cdk/expandable/lib/facade/expandable-container.mjs +2 -3
  184. package/esm2020/cdk/expandable/lib/facade/expandable-item.mjs +2 -3
  185. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +4 -4
  186. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +4 -4
  187. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +5 -5
  188. package/esm2020/components/accordion/lib/accordion.component.mjs +6 -6
  189. package/esm2020/components/accordion/lib/accordion.module.mjs +5 -5
  190. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +8 -6
  191. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +4 -4
  192. package/esm2020/components/action-group/action-group.component.mjs +4 -4
  193. package/esm2020/components/area-header/area-header.component.mjs +4 -4
  194. package/esm2020/components/area-header/area-header.module.mjs +5 -5
  195. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +4 -4
  196. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +4 -4
  197. package/esm2020/components/avatar/lib/avatar.component.mjs +4 -4
  198. package/esm2020/components/badge/lib/badge.component.mjs +4 -4
  199. package/esm2020/components/badge/lib/badge.directive.mjs +4 -4
  200. package/esm2020/components/bar/index.mjs +6 -0
  201. package/esm2020/components/bar/lib/bar.component.mjs +21 -0
  202. package/esm2020/components/bar/lib/bar.module.mjs +20 -0
  203. package/esm2020/components/bar/lib/directives/bar-button.directive.mjs +39 -0
  204. package/esm2020/components/bar/lib/directives/bar-label.directive.mjs +24 -0
  205. package/esm2020/components/bar/lib/models/bar-button-variant.mjs +5 -0
  206. package/esm2020/components/bar/odx-angular-components-bar.mjs +5 -0
  207. package/esm2020/components/breadcrumbs/index.mjs +2 -0
  208. package/esm2020/components/breadcrumbs/lib/breadcrumbs.component.mjs +50 -0
  209. package/esm2020/components/breadcrumbs/odx-angular-components-breadcrumbs.mjs +5 -0
  210. package/esm2020/components/button/lib/button.component.mjs +8 -12
  211. package/esm2020/components/button-group/lib/button-group.component.mjs +4 -4
  212. package/esm2020/components/checkbox/lib/checkbox.component.mjs +7 -6
  213. package/esm2020/components/checkbox/lib/checkbox.module.mjs +5 -5
  214. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +4 -4
  215. package/esm2020/components/chip/lib/chip.component.mjs +4 -4
  216. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +5 -5
  217. package/esm2020/components/content-box/lib/content-box.component.mjs +4 -4
  218. package/esm2020/components/content-box/lib/content-box.module.mjs +5 -5
  219. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +4 -4
  220. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +4 -4
  221. package/esm2020/components/dropdown/index.mjs +3 -1
  222. package/esm2020/components/dropdown/lib/dropdown.component.mjs +15 -6
  223. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +48 -17
  224. package/esm2020/components/dropdown/lib/dropdown.module.mjs +5 -5
  225. package/esm2020/components/dropdown/lib/helpers/close-current-dropdown.mjs +5 -0
  226. package/esm2020/components/dropdown/lib/helpers/index.mjs +2 -0
  227. package/esm2020/components/dropdown/lib/models/close-dropdown-event.mjs +7 -0
  228. package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +2 -1
  229. package/esm2020/components/dropdown/lib/models/index.mjs +2 -1
  230. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +4 -4
  231. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +4 -4
  232. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +4 -4
  233. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +4 -4
  234. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +4 -4
  235. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +4 -4
  236. package/esm2020/components/form-field/lib/directives/form.directive.mjs +4 -4
  237. package/esm2020/components/form-field/lib/form-field.component.mjs +8 -7
  238. package/esm2020/components/form-field/lib/form-field.module.mjs +5 -5
  239. package/esm2020/components/form-field/lib/form-field.service.mjs +4 -4
  240. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +4 -4
  241. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +4 -4
  242. package/esm2020/components/header/lib/directives/header-title.directive.mjs +4 -4
  243. package/esm2020/components/header/lib/header.component.mjs +5 -6
  244. package/esm2020/components/header/lib/header.module.mjs +7 -11
  245. package/esm2020/components/icon/lib/icon.component.mjs +4 -4
  246. package/esm2020/components/icon/lib/models/icon-size.mjs +2 -1
  247. package/esm2020/components/inline-message/index.mjs +2 -2
  248. package/esm2020/components/inline-message/lib/inline-message.component.mjs +5 -5
  249. package/esm2020/components/inline-message/lib/models/index.mjs +2 -0
  250. package/esm2020/components/launch-tile/index.mjs +4 -0
  251. package/esm2020/components/launch-tile/lib/components/index.mjs +3 -0
  252. package/esm2020/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.mjs +13 -0
  253. package/esm2020/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.mjs +13 -0
  254. package/esm2020/components/launch-tile/lib/launch-tile.component.mjs +51 -0
  255. package/esm2020/components/launch-tile/lib/launch-tile.module.mjs +23 -0
  256. package/esm2020/components/launch-tile/odx-angular-components-launch-tile.mjs +5 -0
  257. package/esm2020/components/link/link.directive.mjs +7 -14
  258. package/esm2020/components/list/lib/components/index.mjs +2 -2
  259. package/esm2020/components/list/lib/components/list-item/list-item.component.mjs +40 -0
  260. package/esm2020/components/list/lib/list.component.mjs +17 -9
  261. package/esm2020/components/list/lib/list.module.mjs +6 -6
  262. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +4 -4
  263. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +9 -9
  264. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +5 -5
  265. package/esm2020/components/logo/logo.directive.mjs +4 -4
  266. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +4 -4
  267. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +7 -13
  268. package/esm2020/components/main-menu/lib/main-menu.component.mjs +8 -8
  269. package/esm2020/components/main-menu/lib/main-menu.module.mjs +5 -5
  270. package/esm2020/components/main-menu/lib/main-menu.service.mjs +4 -4
  271. package/esm2020/components/menu/index.mjs +5 -0
  272. package/esm2020/components/menu/lib/directives/index.mjs +2 -0
  273. package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +39 -0
  274. package/esm2020/components/menu/lib/menu.component.mjs +35 -0
  275. package/esm2020/components/menu/lib/menu.directive.mjs +51 -0
  276. package/esm2020/components/menu/lib/menu.module.mjs +20 -0
  277. package/esm2020/components/menu/odx-angular-components-menu.mjs +5 -0
  278. package/esm2020/components/modal/lib/components/basic-modal/basic-modal.component.mjs +42 -0
  279. package/esm2020/components/modal/lib/components/index.mjs +3 -1
  280. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +4 -4
  281. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +4 -4
  282. package/esm2020/components/modal/lib/components/modal-hero/modal-hero.component.mjs +39 -0
  283. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +10 -5
  284. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +4 -4
  285. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +4 -4
  286. package/esm2020/components/modal/lib/helpers/inject-modal-ref.mjs +1 -1
  287. package/esm2020/components/modal/lib/modal.component.mjs +19 -9
  288. package/esm2020/components/modal/lib/modal.directive.mjs +4 -4
  289. package/esm2020/components/modal/lib/modal.module.mjs +33 -7
  290. package/esm2020/components/modal/lib/modal.service.mjs +14 -5
  291. package/esm2020/components/modal/lib/models/basic-modal-options.mjs +2 -0
  292. package/esm2020/components/modal/lib/models/index.mjs +3 -1
  293. package/esm2020/components/modal/lib/models/modal-hero-variant.mjs +7 -0
  294. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +4 -4
  295. package/esm2020/components/progress/lib/progress.component.mjs +6 -6
  296. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +8 -9
  297. package/esm2020/components/radio-group/lib/radio-group.component.mjs +6 -6
  298. package/esm2020/components/radio-group/lib/radio-group.module.mjs +5 -5
  299. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +7 -12
  300. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +4 -4
  301. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +5 -5
  302. package/esm2020/components/select/lib/components/option/option.component.mjs +5 -5
  303. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +4 -4
  304. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +4 -4
  305. package/esm2020/components/select/lib/select.component.mjs +15 -19
  306. package/esm2020/components/select/lib/select.module.mjs +5 -5
  307. package/esm2020/components/slider/lib/slider.directive.mjs +7 -10
  308. package/esm2020/components/spinbox/lib/spinbox.component.mjs +5 -5
  309. package/esm2020/components/switch/lib/switch.component.mjs +7 -6
  310. package/esm2020/components/switch/lib/switch.module.mjs +5 -5
  311. package/esm2020/components/switch/lib/switch.validator.mjs +4 -4
  312. package/esm2020/components/tab-bar/index.mjs +5 -0
  313. package/esm2020/components/tab-bar/lib/components/index.mjs +2 -0
  314. package/esm2020/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +70 -0
  315. package/esm2020/components/tab-bar/lib/models/index.mjs +2 -0
  316. package/esm2020/components/tab-bar/lib/models/tab-change-event.mjs +2 -0
  317. package/esm2020/components/tab-bar/lib/tab-bar.component.mjs +115 -0
  318. package/esm2020/components/tab-bar/lib/tab-bar.config.mjs +3 -0
  319. package/esm2020/components/tab-bar/lib/tab-bar.module.mjs +19 -0
  320. package/esm2020/components/tab-bar/odx-angular-components-tab-bar.mjs +5 -0
  321. package/esm2020/components/toast/index.mjs +6 -0
  322. package/esm2020/components/toast/lib/components/index.mjs +3 -0
  323. package/esm2020/components/toast/lib/components/toast-container/toast-container.component.mjs +87 -0
  324. package/esm2020/components/toast/lib/components/toast-item/toast-item.component.mjs +74 -0
  325. package/esm2020/components/toast/lib/models/index.mjs +6 -0
  326. package/esm2020/components/toast/lib/models/toast-action.mjs +2 -0
  327. package/esm2020/components/toast/lib/models/toast-ref.mjs +2 -0
  328. package/esm2020/components/toast/lib/models/toast-variant.mjs +7 -0
  329. package/esm2020/components/toast/lib/models/toast.mjs +2 -0
  330. package/esm2020/components/toast/lib/models/toast.options.mjs +2 -0
  331. package/esm2020/components/toast/lib/toast.config.mjs +6 -0
  332. package/esm2020/components/toast/lib/toast.module.mjs +26 -0
  333. package/esm2020/components/toast/lib/toast.service.mjs +38 -0
  334. package/esm2020/components/toast/odx-angular-components-toast.mjs +5 -0
  335. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +6 -10
  336. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +15 -7
  337. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +5 -5
  338. package/esm2020/components/tooltip/lib/tooltip.component.mjs +4 -4
  339. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +4 -4
  340. package/esm2020/lib/controllers/controller.mjs +6 -6
  341. package/esm2020/lib/controllers/disabled.controller.mjs +21 -42
  342. package/esm2020/lib/controllers/readonly.controller.mjs +6 -6
  343. package/esm2020/lib/core.module.mjs +7 -7
  344. package/esm2020/lib/directives/click-outside.directive.mjs +7 -6
  345. package/esm2020/lib/directives/index.mjs +4 -1
  346. package/esm2020/lib/directives/let.directive.mjs +36 -0
  347. package/esm2020/lib/directives/with-disabled-state.directive.mjs +41 -0
  348. package/esm2020/lib/directives/with-tabindex.directive.mjs +23 -0
  349. package/esm2020/lib/services/window-ref.mjs +9 -5
  350. package/esm2020/rxjs/index.mjs +2 -1
  351. package/esm2020/rxjs/lib/form-query-list.mjs +5 -0
  352. package/esm2020/utils/lib/helpers/dom.mjs +8 -1
  353. package/esm2020/utils/lib/helpers/event-manager.mjs +4 -4
  354. package/esm2020/utils/lib/helpers/get-unique-id.mjs +7 -0
  355. package/esm2020/utils/lib/helpers/index.mjs +3 -1
  356. package/esm2020/utils/lib/helpers/provide-module-config.mjs +1 -1
  357. package/esm2020/utils/lib/helpers/queue.mjs +24 -0
  358. package/fesm2015/odx-angular-animations.mjs +5 -3
  359. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  360. package/fesm2015/odx-angular-cdk-a11y.mjs +132 -0
  361. package/fesm2015/odx-angular-cdk-a11y.mjs.map +1 -0
  362. package/fesm2015/odx-angular-cdk-active-indicator.mjs +12 -9
  363. package/fesm2015/odx-angular-cdk-active-indicator.mjs.map +1 -1
  364. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +3 -3
  365. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  366. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +14 -9
  367. package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  368. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +6 -6
  369. package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  370. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +9 -9
  371. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  372. package/fesm2015/odx-angular-cdk-expandable.mjs +16 -22
  373. package/fesm2015/odx-angular-cdk-expandable.mjs.map +1 -1
  374. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +10 -10
  375. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  376. package/fesm2015/odx-angular-components-accordion.mjs +19 -17
  377. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  378. package/fesm2015/odx-angular-components-action-group.mjs +3 -3
  379. package/fesm2015/odx-angular-components-action-group.mjs.map +1 -1
  380. package/fesm2015/odx-angular-components-area-header.mjs +13 -13
  381. package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
  382. package/fesm2015/odx-angular-components-avatar.mjs +3 -3
  383. package/fesm2015/odx-angular-components-avatar.mjs.map +1 -1
  384. package/fesm2015/odx-angular-components-badge.mjs +6 -6
  385. package/fesm2015/odx-angular-components-badge.mjs.map +1 -1
  386. package/fesm2015/odx-angular-components-bar.mjs +96 -0
  387. package/fesm2015/odx-angular-components-bar.mjs.map +1 -0
  388. package/fesm2015/odx-angular-components-breadcrumbs.mjs +56 -0
  389. package/fesm2015/odx-angular-components-breadcrumbs.mjs.map +1 -0
  390. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  391. package/fesm2015/odx-angular-components-button-group.mjs.map +1 -1
  392. package/fesm2015/odx-angular-components-button.mjs +7 -11
  393. package/fesm2015/odx-angular-components-button.mjs.map +1 -1
  394. package/fesm2015/odx-angular-components-checkbox.mjs +13 -12
  395. package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
  396. package/fesm2015/odx-angular-components-chip.mjs +3 -3
  397. package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
  398. package/fesm2015/odx-angular-components-circular-progress.mjs +4 -4
  399. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  400. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  401. package/fesm2015/odx-angular-components-content-box.mjs.map +1 -1
  402. package/fesm2015/odx-angular-components-dropdown.mjs +92 -40
  403. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -1
  404. package/fesm2015/odx-angular-components-form-field.mjs +37 -36
  405. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  406. package/fesm2015/odx-angular-components-header.mjs +16 -20
  407. package/fesm2015/odx-angular-components-header.mjs.map +1 -1
  408. package/fesm2015/odx-angular-components-icon.mjs +4 -3
  409. package/fesm2015/odx-angular-components-icon.mjs.map +1 -1
  410. package/fesm2015/odx-angular-components-inline-message.mjs +3 -3
  411. package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -1
  412. package/fesm2015/odx-angular-components-launch-tile.mjs +95 -0
  413. package/fesm2015/odx-angular-components-launch-tile.mjs.map +1 -0
  414. package/fesm2015/odx-angular-components-link.mjs +6 -14
  415. package/fesm2015/odx-angular-components-link.mjs.map +1 -1
  416. package/fesm2015/odx-angular-components-list.mjs +22 -25
  417. package/fesm2015/odx-angular-components-list.mjs.map +1 -1
  418. package/fesm2015/odx-angular-components-loading-spinner.mjs +15 -15
  419. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
  420. package/fesm2015/odx-angular-components-logo.mjs +3 -3
  421. package/fesm2015/odx-angular-components-logo.mjs.map +1 -1
  422. package/fesm2015/odx-angular-components-main-menu.mjs +22 -30
  423. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  424. package/fesm2015/odx-angular-components-menu.mjs +127 -0
  425. package/fesm2015/odx-angular-components-menu.mjs.map +1 -0
  426. package/fesm2015/odx-angular-components-modal.mjs +161 -55
  427. package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
  428. package/fesm2015/odx-angular-components-progress.mjs +5 -5
  429. package/fesm2015/odx-angular-components-progress.mjs.map +1 -1
  430. package/fesm2015/odx-angular-components-radio-group.mjs +15 -16
  431. package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -1
  432. package/fesm2015/odx-angular-components-rail-navigation.mjs +13 -19
  433. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -1
  434. package/fesm2015/odx-angular-components-select.mjs +28 -32
  435. package/fesm2015/odx-angular-components-select.mjs.map +1 -1
  436. package/fesm2015/odx-angular-components-slider.mjs +6 -9
  437. package/fesm2015/odx-angular-components-slider.mjs.map +1 -1
  438. package/fesm2015/odx-angular-components-spinbox.mjs +5 -5
  439. package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -1
  440. package/fesm2015/odx-angular-components-switch.mjs +13 -12
  441. package/fesm2015/odx-angular-components-switch.mjs.map +1 -1
  442. package/fesm2015/odx-angular-components-tab-bar.mjs +200 -0
  443. package/fesm2015/odx-angular-components-tab-bar.mjs.map +1 -0
  444. package/fesm2015/odx-angular-components-toast.mjs +221 -0
  445. package/fesm2015/odx-angular-components-toast.mjs.map +1 -0
  446. package/fesm2015/odx-angular-components-toggle-button-group.mjs +23 -19
  447. package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
  448. package/fesm2015/odx-angular-components-tooltip.mjs +6 -6
  449. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -1
  450. package/fesm2015/odx-angular-rxjs.mjs +6 -2
  451. package/fesm2015/odx-angular-rxjs.mjs.map +1 -1
  452. package/fesm2015/odx-angular-utils.mjs +41 -5
  453. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  454. package/fesm2015/odx-angular.mjs +140 -64
  455. package/fesm2015/odx-angular.mjs.map +1 -1
  456. package/fesm2020/odx-angular-animations.mjs +5 -3
  457. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  458. package/fesm2020/odx-angular-cdk-a11y.mjs +128 -0
  459. package/fesm2020/odx-angular-cdk-a11y.mjs.map +1 -0
  460. package/fesm2020/odx-angular-cdk-active-indicator.mjs +10 -9
  461. package/fesm2020/odx-angular-cdk-active-indicator.mjs.map +1 -1
  462. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +3 -3
  463. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  464. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +14 -9
  465. package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  466. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +6 -6
  467. package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  468. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +9 -9
  469. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  470. package/fesm2020/odx-angular-cdk-expandable.mjs +16 -22
  471. package/fesm2020/odx-angular-cdk-expandable.mjs.map +1 -1
  472. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +10 -10
  473. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  474. package/fesm2020/odx-angular-components-accordion.mjs +19 -17
  475. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  476. package/fesm2020/odx-angular-components-action-group.mjs +3 -3
  477. package/fesm2020/odx-angular-components-action-group.mjs.map +1 -1
  478. package/fesm2020/odx-angular-components-area-header.mjs +13 -13
  479. package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
  480. package/fesm2020/odx-angular-components-avatar.mjs +3 -3
  481. package/fesm2020/odx-angular-components-avatar.mjs.map +1 -1
  482. package/fesm2020/odx-angular-components-badge.mjs +6 -6
  483. package/fesm2020/odx-angular-components-badge.mjs.map +1 -1
  484. package/fesm2020/odx-angular-components-bar.mjs +96 -0
  485. package/fesm2020/odx-angular-components-bar.mjs.map +1 -0
  486. package/fesm2020/odx-angular-components-breadcrumbs.mjs +56 -0
  487. package/fesm2020/odx-angular-components-breadcrumbs.mjs.map +1 -0
  488. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  489. package/fesm2020/odx-angular-components-button-group.mjs.map +1 -1
  490. package/fesm2020/odx-angular-components-button.mjs +7 -11
  491. package/fesm2020/odx-angular-components-button.mjs.map +1 -1
  492. package/fesm2020/odx-angular-components-checkbox.mjs +13 -12
  493. package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
  494. package/fesm2020/odx-angular-components-chip.mjs +3 -3
  495. package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
  496. package/fesm2020/odx-angular-components-circular-progress.mjs +4 -4
  497. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  498. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  499. package/fesm2020/odx-angular-components-content-box.mjs.map +1 -1
  500. package/fesm2020/odx-angular-components-dropdown.mjs +91 -40
  501. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -1
  502. package/fesm2020/odx-angular-components-form-field.mjs +37 -36
  503. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  504. package/fesm2020/odx-angular-components-header.mjs +16 -20
  505. package/fesm2020/odx-angular-components-header.mjs.map +1 -1
  506. package/fesm2020/odx-angular-components-icon.mjs +4 -3
  507. package/fesm2020/odx-angular-components-icon.mjs.map +1 -1
  508. package/fesm2020/odx-angular-components-inline-message.mjs +3 -3
  509. package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -1
  510. package/fesm2020/odx-angular-components-launch-tile.mjs +94 -0
  511. package/fesm2020/odx-angular-components-launch-tile.mjs.map +1 -0
  512. package/fesm2020/odx-angular-components-link.mjs +6 -13
  513. package/fesm2020/odx-angular-components-link.mjs.map +1 -1
  514. package/fesm2020/odx-angular-components-list.mjs +22 -24
  515. package/fesm2020/odx-angular-components-list.mjs.map +1 -1
  516. package/fesm2020/odx-angular-components-loading-spinner.mjs +15 -15
  517. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
  518. package/fesm2020/odx-angular-components-logo.mjs +3 -3
  519. package/fesm2020/odx-angular-components-logo.mjs.map +1 -1
  520. package/fesm2020/odx-angular-components-main-menu.mjs +22 -29
  521. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  522. package/fesm2020/odx-angular-components-menu.mjs +129 -0
  523. package/fesm2020/odx-angular-components-menu.mjs.map +1 -0
  524. package/fesm2020/odx-angular-components-modal.mjs +166 -55
  525. package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
  526. package/fesm2020/odx-angular-components-progress.mjs +5 -5
  527. package/fesm2020/odx-angular-components-progress.mjs.map +1 -1
  528. package/fesm2020/odx-angular-components-radio-group.mjs +15 -16
  529. package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -1
  530. package/fesm2020/odx-angular-components-rail-navigation.mjs +13 -18
  531. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -1
  532. package/fesm2020/odx-angular-components-select.mjs +28 -32
  533. package/fesm2020/odx-angular-components-select.mjs.map +1 -1
  534. package/fesm2020/odx-angular-components-slider.mjs +6 -9
  535. package/fesm2020/odx-angular-components-slider.mjs.map +1 -1
  536. package/fesm2020/odx-angular-components-spinbox.mjs +5 -5
  537. package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -1
  538. package/fesm2020/odx-angular-components-switch.mjs +13 -12
  539. package/fesm2020/odx-angular-components-switch.mjs.map +1 -1
  540. package/fesm2020/odx-angular-components-tab-bar.mjs +195 -0
  541. package/fesm2020/odx-angular-components-tab-bar.mjs.map +1 -0
  542. package/fesm2020/odx-angular-components-toast.mjs +220 -0
  543. package/fesm2020/odx-angular-components-toast.mjs.map +1 -0
  544. package/fesm2020/odx-angular-components-toggle-button-group.mjs +23 -19
  545. package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
  546. package/fesm2020/odx-angular-components-tooltip.mjs +6 -6
  547. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -1
  548. package/fesm2020/odx-angular-rxjs.mjs +6 -2
  549. package/fesm2020/odx-angular-rxjs.mjs.map +1 -1
  550. package/fesm2020/odx-angular-utils.mjs +42 -5
  551. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  552. package/fesm2020/odx-angular.mjs +137 -63
  553. package/fesm2020/odx-angular.mjs.map +1 -1
  554. package/lib/controllers/controller.d.ts +1 -1
  555. package/lib/controllers/disabled.controller.d.ts +4 -9
  556. package/lib/controllers/readonly.controller.d.ts +4 -2
  557. package/lib/core.module.d.ts +3 -2
  558. package/lib/directives/click-outside.directive.d.ts +1 -1
  559. package/lib/directives/index.d.ts +3 -0
  560. package/lib/directives/let.directive.d.ts +17 -0
  561. package/lib/directives/with-disabled-state.directive.d.ts +13 -0
  562. package/lib/directives/with-tabindex.directive.d.ts +7 -0
  563. package/lib/services/window-ref.d.ts +2 -0
  564. package/package.json +67 -11
  565. package/rxjs/index.d.ts +1 -0
  566. package/rxjs/lib/form-query-list.d.ts +3 -0
  567. package/utils/lib/helpers/dom.d.ts +1 -0
  568. package/utils/lib/helpers/get-unique-id.d.ts +1 -0
  569. package/utils/lib/helpers/index.d.ts +2 -0
  570. package/utils/lib/helpers/provide-module-config.d.ts +1 -1
  571. package/utils/lib/helpers/queue.d.ts +11 -0
  572. package/esm2020/components/list/lib/components/list-item.component.mjs +0 -46
@@ -1,14 +1,15 @@
1
1
  import * as i0 from '@angular/core';
2
- import { inject, ChangeDetectorRef, Directive, InjectionToken, forwardRef, Input, EventEmitter, Output, NgModule, Injectable } from '@angular/core';
3
- import { pluckFromArray, isPresent, booleanToOptionalAttributeString } from '@odx/angular/utils';
4
- import { merge, tap, Subject, shareReplay, map, distinctUntilChanged, startWith } from 'rxjs';
2
+ import { inject, ChangeDetectorRef, Directive, InjectionToken, forwardRef, Input, EventEmitter, Output, NgModule, reflectComponentType, Injectable } from '@angular/core';
3
+ import { pluckFromArray, isPresent, Transform, deferFn, booleanToOptionalAttributeString } from '@odx/angular/utils';
4
+ import { merge, EMPTY, tap, Subject, shareReplay, map, distinctUntilChanged, startWith } from 'rxjs';
5
+ import { __decorate, __metadata } from 'tslib';
5
6
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
6
7
  import { CommonModule, DOCUMENT } from '@angular/common';
7
8
  import { fromEvents } from '@odx/angular/rxjs';
8
9
 
9
10
  function controllerChanges(controllers) {
10
11
  const changes$ = pluckFromArray(controllers.filter(isPresent), 'change$');
11
- return merge(...changes$);
12
+ return changes$.length > 0 ? merge(...changes$) : EMPTY;
12
13
  }
13
14
  function detectControllerChanges(...controllers) {
14
15
  const changeDetector = inject(ChangeDetectorRef);
@@ -35,46 +36,21 @@ class Controller {
35
36
  this.change$$.next();
36
37
  }
37
38
  }
38
- Controller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Controller, deps: [], target: i0.ɵɵFactoryTarget.Directive });
39
- Controller.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: Controller, usesOnChanges: true, ngImport: i0 });
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: Controller, decorators: [{
39
+ Controller.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: Controller, deps: [], target: i0.ɵɵFactoryTarget.Directive });
40
+ Controller.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: Controller, usesOnChanges: true, ngImport: i0 });
41
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: Controller, decorators: [{
41
42
  type: Directive
42
43
  }] });
43
44
 
44
- const ELEMENTS_WITH_DISABLED_ATTRIBUTE = {
45
- button: true,
46
- fieldset: true,
47
- input: true,
48
- optgroup: true,
49
- option: true,
50
- select: true,
51
- textarea: true,
52
- };
53
45
  const DISABLED_CONTROLLER = new InjectionToken('@odx/angular::DisabledWatchedController');
54
46
  const DISABLED_INTERNAL_CONTROLLER = new InjectionToken('@odx/angular::DisabledController', {
55
- factory: () => new DisabledController(null),
47
+ factory: () => new DisabledController(),
56
48
  });
57
49
  class DisabledController extends Controller {
58
- constructor(element) {
59
- var _a;
60
- super();
61
- this.isDisabled = false;
62
- this.hasDisabledAttribute = false;
63
- this.isDisabled$ = this.change$.pipe(map(() => this.isDisabled), distinctUntilChanged(), shareReplay({ refCount: true }));
64
- this.nodeName = (_a = element === null || element === void 0 ? void 0 : element.nativeElement.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : '';
65
- }
66
- set disabled(value) {
67
- const coercedValue = coerceBooleanProperty(value);
68
- if (this.isDisabled !== coercedValue) {
69
- this.isDisabled = coercedValue;
70
- this.hasDisabledAttribute = this.isDisabled && ELEMENTS_WITH_DISABLED_ATTRIBUTE[this.nodeName];
71
- }
72
- }
73
- get disabled() {
74
- return this.isDisabled;
75
- }
76
- get ariaDisabled() {
77
- return booleanToOptionalAttributeString(this.hasDisabledAttribute);
50
+ constructor() {
51
+ super(...arguments);
52
+ this.isDisabled$ = this.change$.pipe(map(() => this.disabled), distinctUntilChanged(), shareReplay({ refCount: true }));
53
+ this.disabled = false;
78
54
  }
79
55
  static inject() {
80
56
  return inject(DISABLED_CONTROLLER, { optional: true });
@@ -87,18 +63,24 @@ class DisabledController extends Controller {
87
63
  };
88
64
  }
89
65
  setDisabledState(state) {
90
- this.disabled = state;
91
- this.ngOnChanges();
66
+ if (this.disabled !== state) {
67
+ this.disabled = state;
68
+ this.ngOnChanges();
69
+ }
92
70
  }
93
71
  }
94
- DisabledController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DisabledController, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
95
- DisabledController.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: DisabledController, isStandalone: true, selector: "[disabled]", inputs: { disabled: "disabled" }, host: { properties: { "attr.aria-disabled": "ariaDisabled", "attr.disabled": "hasDisabledAttribute || null" } }, providers: [
72
+ DisabledController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: DisabledController, deps: null, target: i0.ɵɵFactoryTarget.Directive });
73
+ DisabledController.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: DisabledController, isStandalone: true, selector: "[disabled]", inputs: { disabled: "disabled" }, providers: [
96
74
  {
97
75
  provide: DISABLED_INTERNAL_CONTROLLER,
98
76
  useExisting: forwardRef(() => DisabledController),
99
77
  },
100
78
  ], usesInheritance: true, ngImport: i0 });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: DisabledController, decorators: [{
79
+ __decorate([
80
+ Transform(coerceBooleanProperty),
81
+ __metadata("design:type", Object)
82
+ ], DisabledController.prototype, "disabled", void 0);
83
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: DisabledController, decorators: [{
102
84
  type: Directive,
103
85
  args: [{
104
86
  standalone: true,
@@ -109,12 +91,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
109
91
  useExisting: forwardRef(() => DisabledController),
110
92
  },
111
93
  ],
112
- host: {
113
- '[attr.aria-disabled]': 'ariaDisabled',
114
- '[attr.disabled]': 'hasDisabledAttribute || null',
115
- },
116
94
  }]
117
- }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { disabled: [{
95
+ }], propDecorators: { disabled: [{
118
96
  type: Input
119
97
  }] } });
120
98
 
@@ -157,14 +135,14 @@ class ReadonlyController extends Controller {
157
135
  };
158
136
  }
159
137
  }
160
- ReadonlyController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ReadonlyController, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
161
- ReadonlyController.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ReadonlyController, isStandalone: true, selector: "[readonly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "hasReadonlyAttribute || null" } }, providers: [
138
+ ReadonlyController.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ReadonlyController, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
139
+ ReadonlyController.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ReadonlyController, isStandalone: true, selector: "[readonly]", inputs: { readonly: "readonly" }, host: { properties: { "attr.readonly": "hasReadonlyAttribute || null" } }, providers: [
162
140
  {
163
141
  provide: READONLY_INTERNAL_CONTROLLER,
164
142
  useExisting: forwardRef(() => ReadonlyController),
165
143
  },
166
144
  ], usesInheritance: true, ngImport: i0 });
167
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ReadonlyController, decorators: [{
145
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ReadonlyController, decorators: [{
168
146
  type: Directive,
169
147
  args: [{
170
148
  standalone: true,
@@ -216,7 +194,7 @@ class ClickOutsideDirective {
216
194
  }
217
195
  }
218
196
  registerHandler() {
219
- setTimeout(() => {
197
+ deferFn(() => {
220
198
  var _a;
221
199
  (_a = this.listener) !== null && _a !== void 0 ? _a : (this.listener = this.renderer.listen('document', 'click', (event) => {
222
200
  var _a, _b;
@@ -224,12 +202,12 @@ class ClickOutsideDirective {
224
202
  this.odxClickOutside.emit(event);
225
203
  }
226
204
  }));
227
- }, 0);
205
+ });
228
206
  }
229
207
  }
230
- ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
231
- ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ClickOutsideDirective, isStandalone: true, selector: "[odxClickOutside]", inputs: { odxClickOutsideActive: "odxClickOutsideActive" }, outputs: { odxClickOutside: "odxClickOutside" }, usesOnChanges: true, ngImport: i0 });
232
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ClickOutsideDirective, decorators: [{
208
+ ClickOutsideDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ClickOutsideDirective, deps: [{ token: i0.ElementRef }, { token: i0.Renderer2 }], target: i0.ɵɵFactoryTarget.Directive });
209
+ ClickOutsideDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ClickOutsideDirective, isStandalone: true, selector: "[odxClickOutside]", inputs: { odxClickOutsideActive: "odxClickOutsideActive" }, outputs: { odxClickOutside: "odxClickOutside" }, usesOnChanges: true, ngImport: i0 });
210
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ClickOutsideDirective, decorators: [{
233
211
  type: Directive,
234
212
  args: [{
235
213
  standalone: true,
@@ -241,14 +219,108 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImpo
241
219
  type: Output
242
220
  }] } });
243
221
 
222
+ class LetContext {
223
+ constructor(directive) {
224
+ this.$implicit = directive.value;
225
+ this.odxLet = directive.value;
226
+ }
227
+ }
228
+ class LetDirective {
229
+ constructor(viewContainer, templateRef) {
230
+ this.viewRef = viewContainer.createEmbeddedView(templateRef, new LetContext(this));
231
+ }
232
+ static ngTemplateContextGuard(_dir, _ctx) {
233
+ return true;
234
+ }
235
+ ngOnChanges(changes) {
236
+ if (changes.value) {
237
+ const value = changes.value.currentValue;
238
+ this.viewRef.context.$implicit = value;
239
+ this.viewRef.context.odxLet = value;
240
+ }
241
+ }
242
+ }
243
+ LetDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LetDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.TemplateRef }], target: i0.ɵɵFactoryTarget.Directive });
244
+ LetDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: LetDirective, isStandalone: true, selector: "ng-template[odxLet]", inputs: { value: ["odxLet", "value"] }, usesOnChanges: true, ngImport: i0 });
245
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LetDirective, decorators: [{
246
+ type: Directive,
247
+ args: [{
248
+ standalone: true,
249
+ selector: 'ng-template[odxLet]',
250
+ }]
251
+ }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.TemplateRef }]; }, propDecorators: { value: [{
252
+ type: Input,
253
+ args: ['odxLet']
254
+ }] } });
255
+
256
+ const ELEMENTS_WITH_DISABLED_ATTRIBUTE = {
257
+ button: true,
258
+ fieldset: true,
259
+ input: true,
260
+ optgroup: true,
261
+ option: true,
262
+ select: true,
263
+ textarea: true,
264
+ };
265
+ class WithDisabledState {
266
+ constructor(element) {
267
+ var _a;
268
+ this.disabledController = DisabledController.inject();
269
+ this.hasDisabledAttribute = ELEMENTS_WITH_DISABLED_ATTRIBUTE[(_a = element.nativeElement.nodeName.toLowerCase()) !== null && _a !== void 0 ? _a : ''];
270
+ this.hasAriaRole = element.nativeElement.hasAttribute('role');
271
+ }
272
+ get isDisabled() {
273
+ var _a;
274
+ return !!((_a = this.disabledController) === null || _a === void 0 ? void 0 : _a.disabled);
275
+ }
276
+ get ariaDisabled() {
277
+ return booleanToOptionalAttributeString(this.hasAriaRole && this.isDisabled);
278
+ }
279
+ }
280
+ WithDisabledState.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WithDisabledState, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
281
+ WithDisabledState.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: WithDisabledState, isStandalone: true, host: { properties: { "class.is-disabled": "isDisabled", "attr.aria-disabled": "ariaDisabled", "attr.disabled": "hasDisabledAttribute && isDisabled || null" } }, providers: [DisabledController.connect()], ngImport: i0 });
282
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WithDisabledState, decorators: [{
283
+ type: Directive,
284
+ args: [{
285
+ standalone: true,
286
+ providers: [DisabledController.connect()],
287
+ host: {
288
+ '[class.is-disabled]': 'isDisabled',
289
+ '[attr.aria-disabled]': 'ariaDisabled',
290
+ '[attr.disabled]': 'hasDisabledAttribute && isDisabled || null',
291
+ },
292
+ }]
293
+ }], ctorParameters: function () { return [{ type: i0.ElementRef }]; } });
294
+
295
+ class WithTabIndex {
296
+ constructor() {
297
+ this.disabledController = DisabledController.inject();
298
+ }
299
+ get isDisabled() {
300
+ var _a;
301
+ return !!((_a = this.disabledController) === null || _a === void 0 ? void 0 : _a.disabled);
302
+ }
303
+ }
304
+ WithTabIndex.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WithTabIndex, deps: [], target: i0.ɵɵFactoryTarget.Directive });
305
+ WithTabIndex.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: WithTabIndex, isStandalone: true, host: { properties: { "attr.tabindex": "isDisabled ? -1 : 0" } }, ngImport: i0 });
306
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WithTabIndex, decorators: [{
307
+ type: Directive,
308
+ args: [{
309
+ standalone: true,
310
+ host: {
311
+ '[attr.tabindex]': 'isDisabled ? -1 : 0',
312
+ },
313
+ }]
314
+ }] });
315
+
244
316
  const controllers = [DisabledController, ReadonlyController];
245
- const modules = [ClickOutsideDirective];
317
+ const modules = [ClickOutsideDirective, LetDirective];
246
318
  class CoreModule {
247
319
  }
248
- CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
249
- CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: CoreModule, imports: [DisabledController, ReadonlyController, ClickOutsideDirective], exports: [CommonModule, DisabledController, ReadonlyController, ClickOutsideDirective] });
250
- CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CoreModule, imports: [CommonModule] });
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: CoreModule, decorators: [{
320
+ CoreModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CoreModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
321
+ CoreModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: CoreModule, imports: [DisabledController, ReadonlyController, ClickOutsideDirective, LetDirective], exports: [CommonModule, DisabledController, ReadonlyController, ClickOutsideDirective, LetDirective] });
322
+ CoreModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CoreModule, imports: [CommonModule] });
323
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: CoreModule, decorators: [{
252
324
  type: NgModule,
253
325
  args: [{
254
326
  imports: [...controllers, ...modules],
@@ -274,10 +346,14 @@ class WindowRef {
274
346
  reloadPage() {
275
347
  return this.location.reload();
276
348
  }
349
+ queryByComponent(type) {
350
+ const componentType = reflectComponentType(type);
351
+ return componentType ? this.nativeWindow.document.querySelector(componentType.selector) : null;
352
+ }
277
353
  }
278
- WindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
279
- WindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WindowRef, providedIn: 'root' });
280
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: WindowRef, decorators: [{
354
+ WindowRef.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WindowRef, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
355
+ WindowRef.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WindowRef, providedIn: 'root' });
356
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: WindowRef, decorators: [{
281
357
  type: Injectable,
282
358
  args: [{
283
359
  providedIn: 'root',
@@ -308,5 +384,5 @@ const ODX_STRINGIFY = new InjectionToken('@odx/angular::Stringify', {
308
384
  * Generated bundle index. Do not edit.
309
385
  */
310
386
 
311
- export { ClickOutsideDirective, Controller, CoreModule, DISABLED_CONTROLLER, DisabledController, ODX_IDENTITY_MATCHER, ODX_STRINGIFY, ODX_STRING_SEARCH_HANDLER, ReadonlyController, WindowRef, detectControllerChanges };
387
+ export { ClickOutsideDirective, Controller, CoreModule, DISABLED_CONTROLLER, DISABLED_INTERNAL_CONTROLLER, DisabledController, LetContext, LetDirective, ODX_IDENTITY_MATCHER, ODX_STRINGIFY, ODX_STRING_SEARCH_HANDLER, READONLY_CONTROLLER, READONLY_INTERNAL_CONTROLLER, ReadonlyController, WindowRef, WithDisabledState, WithTabIndex, detectControllerChanges };
312
388
  //# sourceMappingURL=odx-angular.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular.mjs","sources":["../../../../libs/angular/src/lib/controllers/controller.ts","../../../../libs/angular/src/lib/controllers/disabled.controller.ts","../../../../libs/angular/src/lib/controllers/readonly.controller.ts","../../../../libs/angular/src/lib/directives/click-outside.directive.ts","../../../../libs/angular/src/lib/core.module.ts","../../../../libs/angular/src/lib/services/window-ref.ts","../../../../libs/angular/src/lib/tokens/identity-matcher.ts","../../../../libs/angular/src/lib/tokens/string-search-handler.ts","../../../../libs/angular/src/lib/tokens/stringify.ts","../../../../libs/angular/src/odx-angular.ts"],"sourcesContent":["import { ChangeDetectorRef, Directive, inject, OnChanges, OnDestroy } from '@angular/core';\nimport { isPresent, pluckFromArray } from '@odx/angular/utils';\nimport { merge, Observable, shareReplay, Subject, tap } from 'rxjs';\n\nfunction controllerChanges(controllers: Array<Controller | undefined | null>): Observable<void> {\n const changes$ = pluckFromArray(controllers.filter(isPresent), 'change$');\n\n return merge(...changes$);\n}\n\nexport function detectControllerChanges(...controllers: Array<Controller | undefined | null>): Observable<void> {\n const changeDetector = inject(ChangeDetectorRef);\n\n return controllerChanges(controllers).pipe(tap(() => changeDetector.markForCheck()));\n}\n\n@Directive()\nexport abstract class Controller implements OnChanges, OnDestroy {\n private readonly change$$ = new Subject<void>();\n\n public readonly change$ = this.change$$.pipe(shareReplay({ refCount: true }));\n\n public static setup(controller: Controller | null, changeDetector: ChangeDetectorRef): Controller | null {\n controllerChanges([controller])\n .pipe(tap(() => changeDetector.markForCheck()))\n .subscribe();\n\n return controller;\n }\n\n public ngOnChanges(): void {\n this.triggerControllerChange();\n }\n\n public ngOnDestroy(): void {\n this.change$$.complete();\n }\n\n protected triggerControllerChange() {\n this.change$$.next();\n }\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectorRef, Directive, ElementRef, forwardRef, inject, InjectionToken, Input, Provider } from '@angular/core';\nimport { booleanToOptionalAttributeString } from '@odx/angular/utils';\nimport { distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { Controller } from './controller';\n\nconst ELEMENTS_WITH_DISABLED_ATTRIBUTE = {\n button: true,\n fieldset: true,\n input: true,\n optgroup: true,\n option: true,\n select: true,\n textarea: true,\n} as Record<string, boolean>;\n\nexport const DISABLED_CONTROLLER = new InjectionToken<DisabledController>('@odx/angular::DisabledWatchedController');\nconst DISABLED_INTERNAL_CONTROLLER = new InjectionToken<DisabledController | null>('@odx/angular::DisabledController', {\n factory: () => new DisabledController(null),\n});\n\n@Directive({\n standalone: true,\n selector: '[disabled]',\n providers: [\n {\n provide: DISABLED_INTERNAL_CONTROLLER,\n useExisting: forwardRef(() => DisabledController),\n },\n ],\n host: {\n '[attr.aria-disabled]': 'ariaDisabled',\n '[attr.disabled]': 'hasDisabledAttribute || null',\n },\n})\nexport class DisabledController extends Controller {\n public static ngAcceptInputType_disabled: BooleanInput;\n\n private readonly nodeName: string;\n private isDisabled = false;\n\n protected hasDisabledAttribute = false;\n public readonly isDisabled$ = this.change$.pipe(\n map(() => this.isDisabled),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n @Input()\n public set disabled(value: unknown) {\n const coercedValue = coerceBooleanProperty(value);\n if (this.isDisabled !== coercedValue) {\n this.isDisabled = coercedValue;\n this.hasDisabledAttribute = this.isDisabled && ELEMENTS_WITH_DISABLED_ATTRIBUTE[this.nodeName];\n }\n }\n public get disabled(): boolean {\n return this.isDisabled;\n }\n\n public get ariaDisabled(): string | null {\n return booleanToOptionalAttributeString(this.hasDisabledAttribute);\n }\n\n constructor(element: ElementRef<HTMLElement> | null) {\n super();\n this.nodeName = element?.nativeElement.nodeName.toLowerCase() ?? '';\n }\n\n public static inject(): DisabledController | null {\n return inject(DISABLED_CONTROLLER, { optional: true });\n }\n\n public static connect(): Provider {\n return {\n provide: DISABLED_CONTROLLER,\n useFactory: Controller.setup,\n deps: [DISABLED_INTERNAL_CONTROLLER, ChangeDetectorRef],\n };\n }\n\n public setDisabledState(state: boolean): void {\n this.disabled = state;\n this.ngOnChanges();\n }\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectorRef, Directive, ElementRef, forwardRef, inject, InjectionToken, Input, Provider } from '@angular/core';\nimport { distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { Controller } from './controller';\n\nconst ELEMENTS_WITH_READONLY_ATTRIBUTE = {\n input: true,\n textarea: true,\n select: true,\n} as Record<string, boolean>;\n\nconst READONLY_CONTROLLER = new InjectionToken<ReadonlyController>('@odx/angular::ReadonlyWatchedController');\nconst READONLY_INTERNAL_CONTROLLER = new InjectionToken<ReadonlyController | null>('@odx/angular::ReadonlyController', {\n factory: () => new ReadonlyController(null),\n});\n\n@Directive({\n standalone: true,\n selector: '[readonly]',\n providers: [\n {\n provide: READONLY_INTERNAL_CONTROLLER,\n useExisting: forwardRef(() => ReadonlyController),\n },\n ],\n host: {\n '[attr.readonly]': 'hasReadonlyAttribute || null',\n },\n})\nexport class ReadonlyController extends Controller {\n public static ngAcceptInputType_readonly: BooleanInput;\n\n private readonly nodeName: string;\n private isReadonly = false;\n\n protected hasReadonlyAttribute = false;\n\n public readonly isReadonly$ = this.change$.pipe(\n map(() => this.isReadonly),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n @Input()\n public set readonly(value: unknown) {\n const coercedValue = coerceBooleanProperty(value);\n if (this.isReadonly !== coercedValue) {\n this.isReadonly = coercedValue;\n this.hasReadonlyAttribute = this.isReadonly && ELEMENTS_WITH_READONLY_ATTRIBUTE[this.nodeName];\n }\n }\n public get readonly(): boolean {\n return this.isReadonly;\n }\n\n constructor(element: ElementRef<HTMLElement> | null) {\n super();\n this.nodeName = element?.nativeElement.nodeName.toLowerCase() ?? '';\n }\n\n public static inject(): ReadonlyController | null {\n return inject(READONLY_CONTROLLER, { optional: true });\n }\n\n public static connect(): Provider {\n return {\n provide: READONLY_CONTROLLER,\n useFactory: Controller.setup,\n deps: [READONLY_INTERNAL_CONTROLLER, ChangeDetectorRef],\n };\n }\n}\n","import { Directive, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, Renderer2 } from '@angular/core';\nimport { NgChanges } from '@odx/angular/utils';\n\n@Directive({\n standalone: true,\n selector: '[odxClickOutside]',\n})\nexport class ClickOutsideDirective implements OnChanges, OnInit, OnDestroy {\n private listener?: () => void;\n\n @Input()\n public odxClickOutsideActive = true;\n\n @Output()\n public readonly odxClickOutside = new EventEmitter<MouseEvent>();\n\n constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {\n this.odxClickOutsideActive = true;\n }\n\n public ngOnInit(): void {\n if (this.odxClickOutsideActive) {\n this.registerHandler();\n }\n }\n\n public ngOnChanges({ odxClickOutsideActive: clickOutsideActive }: NgChanges<ClickOutsideDirective>): void {\n if (!clickOutsideActive?.firstChange && clickOutsideActive?.previousValue !== clickOutsideActive?.currentValue) {\n if (clickOutsideActive?.currentValue) {\n this.registerHandler();\n } else {\n this.destroy();\n }\n }\n }\n\n public ngOnDestroy(): void {\n this.destroy();\n }\n\n private destroy() {\n if (this.listener) {\n this.listener();\n this.listener = undefined;\n }\n }\n\n private registerHandler() {\n setTimeout(() => {\n this.listener ??= this.renderer.listen('document', 'click', (event) => {\n if (this.odxClickOutsideActive && this.element?.nativeElement.isConnected && !this.element?.nativeElement.contains(event.target)) {\n this.odxClickOutside.emit(event);\n }\n });\n }, 0);\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DisabledController, ReadonlyController } from './controllers';\nimport { ClickOutsideDirective } from './directives';\n\nconst controllers = [DisabledController, ReadonlyController];\nconst modules = [ClickOutsideDirective];\n\n@NgModule({\n imports: [...controllers, ...modules],\n exports: [CommonModule, ...controllers, ...modules],\n})\nexport class CoreModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { inject, Injectable } from '@angular/core';\nimport { fromEvents } from '@odx/angular/rxjs';\nimport { distinctUntilChanged, map, shareReplay, startWith } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WindowRef {\n public readonly nativeWindow = inject(DOCUMENT).defaultView ?? window;\n public readonly isOnline$ = fromEvents(this.nativeWindow, 'offline', 'online').pipe(\n startWith(null),\n map(() => this.nativeWindow.navigator.onLine),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n public get location(): Location {\n return this.nativeWindow.location;\n }\n\n public getLanguage(): string {\n return this.nativeWindow.navigator.language;\n }\n\n public getOrigin(): string {\n return this.location.origin;\n }\n\n public reloadPage(): void {\n return this.location.reload();\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nexport type IdentityMatcher<T> = (item1: T, item2: T) => boolean;\n\nconst ODX_DEFAULT_IDENTITY_MATCHER: IdentityMatcher<unknown> = (item1, item2) => item1 === item2;\n\nexport const ODX_IDENTITY_MATCHER = new InjectionToken<IdentityMatcher<unknown>>('@odx/angular::StringHandler', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_IDENTITY_MATCHER,\n});\n","import { InjectionToken } from '@angular/core';\n\nexport type StringSearchHandler = (item: string, query: string) => boolean;\n\nconst ODX_DEFAULT_STRING_SEARCH_HANDLER: StringSearchHandler = (item, query) => {\n return item.toLocaleLowerCase().includes(query.toLocaleLowerCase());\n};\n\nexport const ODX_STRING_SEARCH_HANDLER = new InjectionToken<StringSearchHandler>('@odx/angular::StringHandler', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_STRING_SEARCH_HANDLER,\n});\n","import { InjectionToken } from '@angular/core';\nimport { isPresent } from '@odx/angular/utils';\n\nexport type StringifyFn<T> = (item: T) => string;\n\nconst ODX_DEFAULT_STRINGIFY: StringifyFn<unknown> = (item) => (isPresent(item) ? String(item) : '');\n\nexport const ODX_STRINGIFY = new InjectionToken<StringifyFn<unknown>>('@odx/angular::Stringify', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_STRINGIFY,\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAIA,SAAS,iBAAiB,CAAC,WAAiD,EAAA;AAC1E,IAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1E,IAAA,OAAO,KAAK,CAAC,GAAG,QAAQ,CAAC,CAAC;AAC5B,CAAC;AAEe,SAAA,uBAAuB,CAAC,GAAG,WAAiD,EAAA;AAC1F,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEjD,IAAA,OAAO,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AACvF,CAAC;MAGqB,UAAU,CAAA;AADhC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AAEhC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;KAqB/E;AAnBQ,IAAA,OAAO,KAAK,CAAC,UAA6B,EAAE,cAAiC,EAAA;AAClF,QAAA,iBAAiB,CAAC,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,yBAAyB,EAAE;AAC/F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,qBAAqB;AACrC,CAAA;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular.mjs","sources":["../../../../libs/angular/src/lib/controllers/controller.ts","../../../../libs/angular/src/lib/controllers/disabled.controller.ts","../../../../libs/angular/src/lib/controllers/readonly.controller.ts","../../../../libs/angular/src/lib/directives/click-outside.directive.ts","../../../../libs/angular/src/lib/directives/let.directive.ts","../../../../libs/angular/src/lib/directives/with-disabled-state.directive.ts","../../../../libs/angular/src/lib/directives/with-tabindex.directive.ts","../../../../libs/angular/src/lib/core.module.ts","../../../../libs/angular/src/lib/services/window-ref.ts","../../../../libs/angular/src/lib/tokens/identity-matcher.ts","../../../../libs/angular/src/lib/tokens/string-search-handler.ts","../../../../libs/angular/src/lib/tokens/stringify.ts","../../../../libs/angular/src/odx-angular.ts"],"sourcesContent":["import { ChangeDetectorRef, Directive, inject, OnChanges, OnDestroy } from '@angular/core';\nimport { isPresent, pluckFromArray } from '@odx/angular/utils';\nimport { EMPTY, merge, Observable, shareReplay, Subject, tap } from 'rxjs';\n\nfunction controllerChanges(controllers: Array<Controller | undefined | null>): Observable<void> {\n const changes$ = pluckFromArray(controllers.filter(isPresent), 'change$');\n\n return changes$.length > 0 ? merge(...changes$) : EMPTY;\n}\n\nexport function detectControllerChanges(...controllers: Array<Controller | undefined | null>): Observable<void> {\n const changeDetector = inject(ChangeDetectorRef);\n\n return controllerChanges(controllers).pipe(tap(() => changeDetector.markForCheck()));\n}\n\n@Directive()\nexport abstract class Controller implements OnChanges, OnDestroy {\n private readonly change$$ = new Subject<void>();\n\n public readonly change$ = this.change$$.pipe(shareReplay({ refCount: true }));\n\n public static setup(controller: Controller | null, changeDetector: ChangeDetectorRef): Controller | null {\n controllerChanges([controller])\n .pipe(tap(() => changeDetector.markForCheck()))\n .subscribe();\n\n return controller;\n }\n\n public ngOnChanges(): void {\n this.triggerControllerChange();\n }\n\n public ngOnDestroy(): void {\n this.change$$.complete();\n }\n\n protected triggerControllerChange() {\n this.change$$.next();\n }\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectorRef, Directive, forwardRef, inject, InjectionToken, Input, Provider } from '@angular/core';\nimport { Transform } from '@odx/angular/utils';\nimport { distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { Controller } from './controller';\n\nexport const DISABLED_CONTROLLER = new InjectionToken<DisabledController>('@odx/angular::DisabledWatchedController');\nexport const DISABLED_INTERNAL_CONTROLLER = new InjectionToken<DisabledController | null>('@odx/angular::DisabledController', {\n factory: () => new DisabledController(),\n});\n\n@Directive({\n standalone: true,\n selector: '[disabled]',\n providers: [\n {\n provide: DISABLED_INTERNAL_CONTROLLER,\n useExisting: forwardRef(() => DisabledController),\n },\n ],\n})\nexport class DisabledController extends Controller {\n public static ngAcceptInputType_disabled: BooleanInput;\n\n public readonly isDisabled$ = this.change$.pipe(\n map(() => this.disabled),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n @Transform(coerceBooleanProperty)\n @Input()\n public disabled = false;\n\n public static inject(): DisabledController | null {\n return inject(DISABLED_CONTROLLER, { optional: true });\n }\n\n public static connect(): Provider {\n return {\n provide: DISABLED_CONTROLLER,\n useFactory: Controller.setup,\n deps: [DISABLED_INTERNAL_CONTROLLER, ChangeDetectorRef],\n };\n }\n\n public setDisabledState(state: boolean): void {\n if (this.disabled !== state) {\n this.disabled = state;\n this.ngOnChanges();\n }\n }\n}\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectorRef, Directive, ElementRef, forwardRef, inject, InjectionToken, Input, Provider } from '@angular/core';\nimport { distinctUntilChanged, map, shareReplay } from 'rxjs';\nimport { Controller } from './controller';\n\nconst ELEMENTS_WITH_READONLY_ATTRIBUTE = {\n input: true,\n textarea: true,\n select: true,\n} as Record<string, boolean>;\n\nexport const READONLY_CONTROLLER = new InjectionToken<ReadonlyController>('@odx/angular::ReadonlyWatchedController');\nexport const READONLY_INTERNAL_CONTROLLER = new InjectionToken<ReadonlyController | null>('@odx/angular::ReadonlyController', {\n factory: () => new ReadonlyController(null),\n});\n\n@Directive({\n standalone: true,\n selector: '[readonly]',\n providers: [\n {\n provide: READONLY_INTERNAL_CONTROLLER,\n useExisting: forwardRef(() => ReadonlyController),\n },\n ],\n host: {\n '[attr.readonly]': 'hasReadonlyAttribute || null',\n },\n})\nexport class ReadonlyController extends Controller {\n public static ngAcceptInputType_readonly: BooleanInput;\n\n private readonly nodeName: string;\n private isReadonly = false;\n\n protected hasReadonlyAttribute = false;\n\n public readonly isReadonly$ = this.change$.pipe(\n map(() => this.isReadonly),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n @Input()\n public set readonly(value: unknown) {\n const coercedValue = coerceBooleanProperty(value);\n if (this.isReadonly !== coercedValue) {\n this.isReadonly = coercedValue;\n this.hasReadonlyAttribute = this.isReadonly && ELEMENTS_WITH_READONLY_ATTRIBUTE[this.nodeName];\n }\n }\n public get readonly(): boolean {\n return this.isReadonly;\n }\n\n constructor(element: ElementRef<HTMLElement> | null) {\n super();\n this.nodeName = element?.nativeElement.nodeName.toLowerCase() ?? '';\n }\n\n public static inject(): ReadonlyController | null {\n return inject(READONLY_CONTROLLER, { optional: true });\n }\n\n public static connect(): Provider {\n return {\n provide: READONLY_CONTROLLER,\n useFactory: Controller.setup,\n deps: [READONLY_INTERNAL_CONTROLLER, ChangeDetectorRef],\n };\n }\n}\n","import { Directive, ElementRef, EventEmitter, Input, OnChanges, OnDestroy, OnInit, Output, Renderer2 } from '@angular/core';\nimport { deferFn, NgChanges } from '@odx/angular/utils';\n\n@Directive({\n standalone: true,\n selector: '[odxClickOutside]',\n})\nexport class ClickOutsideDirective implements OnChanges, OnInit, OnDestroy {\n private listener?: () => void;\n\n @Input()\n public odxClickOutsideActive = true;\n\n @Output()\n public readonly odxClickOutside = new EventEmitter<MouseEvent>();\n\n constructor(private readonly element: ElementRef<HTMLElement>, private readonly renderer: Renderer2) {\n this.odxClickOutsideActive = true;\n }\n\n public ngOnInit(): void {\n if (this.odxClickOutsideActive) {\n this.registerHandler();\n }\n }\n\n public ngOnChanges({ odxClickOutsideActive: clickOutsideActive }: NgChanges<ClickOutsideDirective>): void {\n if (!clickOutsideActive?.firstChange && clickOutsideActive?.previousValue !== clickOutsideActive?.currentValue) {\n if (clickOutsideActive?.currentValue) {\n this.registerHandler();\n } else {\n this.destroy();\n }\n }\n }\n\n public ngOnDestroy(): void {\n this.destroy();\n }\n\n private destroy() {\n if (this.listener) {\n this.listener();\n this.listener = undefined;\n }\n }\n\n private registerHandler() {\n deferFn(() => {\n this.listener ??= this.renderer.listen('document', 'click', (event) => {\n if (this.odxClickOutsideActive && this.element?.nativeElement.isConnected && !this.element?.nativeElement.contains(event.target)) {\n this.odxClickOutside.emit(event);\n }\n });\n });\n }\n}\n","import { Directive, EmbeddedViewRef, Input, OnChanges, TemplateRef, ViewContainerRef } from '@angular/core';\nimport { NgChanges } from '@odx/angular/utils';\n\nexport class LetContext<T> {\n public $implicit: T;\n public odxLet: T;\n\n constructor(directive: LetDirective<T>) {\n this.$implicit = directive.value;\n this.odxLet = directive.value;\n }\n}\n\n@Directive({\n standalone: true,\n selector: 'ng-template[odxLet]',\n})\nexport class LetDirective<T> implements OnChanges {\n private readonly viewRef: EmbeddedViewRef<LetContext<T>>;\n\n @Input('odxLet')\n public value!: T;\n\n constructor(viewContainer: ViewContainerRef, templateRef: TemplateRef<LetContext<T>>) {\n this.viewRef = viewContainer.createEmbeddedView(templateRef, new LetContext<T>(this));\n }\n\n public static ngTemplateContextGuard<T>(_dir: LetDirective<T>, _ctx: unknown): _ctx is LetContext<T> {\n return true;\n }\n\n public ngOnChanges(changes: NgChanges<LetDirective<unknown>>) {\n if (changes.value) {\n const value = changes.value.currentValue as T;\n this.viewRef.context.$implicit = value;\n this.viewRef.context.odxLet = value;\n }\n }\n}\n","import { Directive, ElementRef } from '@angular/core';\nimport { booleanToOptionalAttributeString } from '@odx/angular/utils';\nimport { DisabledController } from '../controllers';\n\nconst ELEMENTS_WITH_DISABLED_ATTRIBUTE = {\n button: true,\n fieldset: true,\n input: true,\n optgroup: true,\n option: true,\n select: true,\n textarea: true,\n} as Record<string, boolean>;\n\n@Directive({\n standalone: true,\n providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[attr.aria-disabled]': 'ariaDisabled',\n '[attr.disabled]': 'hasDisabledAttribute && isDisabled || null',\n },\n})\nexport class WithDisabledState {\n protected readonly hasAriaRole: boolean;\n protected readonly hasDisabledAttribute: boolean;\n protected readonly disabledController = DisabledController.inject();\n\n protected get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n\n public get ariaDisabled(): string | null {\n return booleanToOptionalAttributeString(this.hasAriaRole && this.isDisabled);\n }\n\n constructor(element: ElementRef<HTMLElement>) {\n this.hasDisabledAttribute = ELEMENTS_WITH_DISABLED_ATTRIBUTE[element.nativeElement.nodeName.toLowerCase() ?? ''];\n this.hasAriaRole = element.nativeElement.hasAttribute('role');\n }\n}\n","import { Directive } from '@angular/core';\nimport { DisabledController } from '../controllers';\n\n@Directive({\n standalone: true,\n host: {\n '[attr.tabindex]': 'isDisabled ? -1 : 0',\n },\n})\nexport class WithTabIndex {\n private readonly disabledController = DisabledController.inject();\n\n protected get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n}\n","import { CommonModule } from '@angular/common';\nimport { NgModule } from '@angular/core';\nimport { DisabledController, ReadonlyController } from './controllers';\nimport { ClickOutsideDirective, LetDirective } from './directives';\n\nconst controllers = [DisabledController, ReadonlyController];\nconst modules = [ClickOutsideDirective, LetDirective];\n\n@NgModule({\n imports: [...controllers, ...modules],\n exports: [CommonModule, ...controllers, ...modules],\n})\nexport class CoreModule {}\n","import { DOCUMENT } from '@angular/common';\nimport { inject, Injectable, reflectComponentType, Type } from '@angular/core';\nimport { fromEvents } from '@odx/angular/rxjs';\nimport { distinctUntilChanged, map, shareReplay, startWith } from 'rxjs';\n\n@Injectable({\n providedIn: 'root',\n})\nexport class WindowRef {\n public readonly nativeWindow = inject(DOCUMENT).defaultView ?? window;\n public readonly isOnline$ = fromEvents(this.nativeWindow, 'offline', 'online').pipe(\n startWith(null),\n map(() => this.nativeWindow.navigator.onLine),\n distinctUntilChanged(),\n shareReplay({ refCount: true })\n );\n\n public get location(): Location {\n return this.nativeWindow.location;\n }\n\n public getLanguage(): string {\n return this.nativeWindow.navigator.language;\n }\n\n public getOrigin(): string {\n return this.location.origin;\n }\n\n public reloadPage(): void {\n return this.location.reload();\n }\n\n public queryByComponent<T>(type: Type<T>): HTMLElement | null {\n const componentType = reflectComponentType(type);\n\n return componentType ? this.nativeWindow.document.querySelector(componentType.selector) : null;\n }\n}\n","import { InjectionToken } from '@angular/core';\n\nexport type IdentityMatcher<T> = (item1: T, item2: T) => boolean;\n\nconst ODX_DEFAULT_IDENTITY_MATCHER: IdentityMatcher<unknown> = (item1, item2) => item1 === item2;\n\nexport const ODX_IDENTITY_MATCHER = new InjectionToken<IdentityMatcher<unknown>>('@odx/angular::StringHandler', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_IDENTITY_MATCHER,\n});\n","import { InjectionToken } from '@angular/core';\n\nexport type StringSearchHandler = (item: string, query: string) => boolean;\n\nconst ODX_DEFAULT_STRING_SEARCH_HANDLER: StringSearchHandler = (item, query) => {\n return item.toLocaleLowerCase().includes(query.toLocaleLowerCase());\n};\n\nexport const ODX_STRING_SEARCH_HANDLER = new InjectionToken<StringSearchHandler>('@odx/angular::StringHandler', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_STRING_SEARCH_HANDLER,\n});\n","import { InjectionToken } from '@angular/core';\nimport { isPresent } from '@odx/angular/utils';\n\nexport type StringifyFn<T> = (item: T) => string;\n\nconst ODX_DEFAULT_STRINGIFY: StringifyFn<unknown> = (item) => (isPresent(item) ? String(item) : '');\n\nexport const ODX_STRINGIFY = new InjectionToken<StringifyFn<unknown>>('@odx/angular::Stringify', {\n providedIn: 'root',\n factory: () => ODX_DEFAULT_STRINGIFY,\n});\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAIA,SAAS,iBAAiB,CAAC,WAAiD,EAAA;AAC1E,IAAA,MAAM,QAAQ,GAAG,cAAc,CAAC,WAAW,CAAC,MAAM,CAAC,SAAS,CAAC,EAAE,SAAS,CAAC,CAAC;AAE1E,IAAA,OAAO,QAAQ,CAAC,MAAM,GAAG,CAAC,GAAG,KAAK,CAAC,GAAG,QAAQ,CAAC,GAAG,KAAK,CAAC;AAC1D,CAAC;AAEe,SAAA,uBAAuB,CAAC,GAAG,WAAiD,EAAA;AAC1F,IAAA,MAAM,cAAc,GAAG,MAAM,CAAC,iBAAiB,CAAC,CAAC;AAEjD,IAAA,OAAO,iBAAiB,CAAC,WAAW,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC;AACvF,CAAC;MAGqB,UAAU,CAAA;AADhC,IAAA,WAAA,GAAA;AAEmB,QAAA,IAAA,CAAA,QAAQ,GAAG,IAAI,OAAO,EAAQ,CAAC;AAEhC,QAAA,IAAA,CAAA,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,WAAW,CAAC,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;KAqB/E;AAnBQ,IAAA,OAAO,KAAK,CAAC,UAA6B,EAAE,cAAiC,EAAA;AAClF,QAAA,iBAAiB,CAAC,CAAC,UAAU,CAAC,CAAC;aAC5B,IAAI,CAAC,GAAG,CAAC,MAAM,cAAc,CAAC,YAAY,EAAE,CAAC,CAAC;AAC9C,aAAA,SAAS,EAAE,CAAC;AAEf,QAAA,OAAO,UAAU,CAAC;KACnB;IAEM,WAAW,GAAA;QAChB,IAAI,CAAC,uBAAuB,EAAE,CA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A,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,iCAAiC;AACjD,CAAA;;ACND,MAAM,qBAAqB,GAAyB,CAAC,IAAI,MAAM,SAAS,CAAC,IAAI,CAAC,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;MAEvF,aAAa,GAAG,IAAI,cAAc,CAAuB,yBAAyB,EAAE;AAC/F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,qBAAqB;AACrC,CAAA;;ACVD;;AAEG;;;;"}
@@ -9,12 +9,14 @@ const DEFAULT_ANIMATION_PARAMS = {
9
9
  };
10
10
 
11
11
  const expand = animation([
12
- style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0 }),
13
- animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: '*', paddingTop: '*', paddingBottom: '*', opacity: 1 })),
12
+ style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0, marginTop: 0, marginBottom: 0 }),
13
+ animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: '*', paddingTop: '*', paddingBottom: '*', opacity: 1, marginTop: '*', marginBottom: '*' })),
14
14
  ], {
15
15
  params: DEFAULT_ANIMATION_PARAMS,
16
16
  });
17
- const collapse = animation([animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0 }))], {
17
+ const collapse = animation([
18
+ animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0, marginTop: 0, marginBottom: 0 })),
19
+ ], {
18
20
  params: DEFAULT_ANIMATION_PARAMS,
19
21
  });
20
22
 
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-animations.mjs","sources":["../../../../libs/angular/animations/src/lib/config.ts","../../../../libs/angular/animations/src/lib/expand.ts","../../../../libs/angular/animations/src/lib/fade.ts","../../../../libs/angular/animations/src/lib/slide.ts","../../../../libs/angular/animations/src/lib/wait-for-child-animations.ts","../../../../libs/angular/animations/src/odx-angular-animations.ts"],"sourcesContent":["export const DEFAULT_ANIMATION_TIMING_FN = 'ease';\nexport const DEFAULT_ANIMATION_DURATION = '250ms';\nexport const DEFAULT_ANIMATION_PARAMS = {\n timingFn: DEFAULT_ANIMATION_TIMING_FN,\n duration: DEFAULT_ANIMATION_DURATION,\n delay: '0ms',\n};\n","import { animate, animation, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nexport const expand = animation(\n [\n style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0 }),\n animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: '*', paddingTop: '*', paddingBottom: '*', opacity: 1 })),\n ],\n {\n params: DEFAULT_ANIMATION_PARAMS,\n }\n);\n\nexport const collapse = animation(\n [animate('{{duration}} {{ delay }} {{ timingFn }}', style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0 }))],\n {\n params: DEFAULT_ANIMATION_PARAMS,\n }\n);\n","import { animate, animation, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nexport const fadeIn = (to = 1) =>\n animation([style({ opacity: 0 }), animate('{{duration}} {{ delay }} {{ timingFn }}', style({ opacity: to }))], {\n params: DEFAULT_ANIMATION_PARAMS,\n });\n\nexport const fadeOut = (to = 0) =>\n animation([animate('{{duration}} {{ delay }} {{ timingFn }}', style({ opacity: to }))], {\n params: DEFAULT_ANIMATION_PARAMS,\n });\n","import { animate, animation, AnimationReferenceMetadata, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nfunction createSlideInAnimation(from: string, direction: 'X' | 'Y'): AnimationReferenceMetadata {\n return animation(\n [\n style({ transform: `translate${direction}({{ from }})` }),\n animate('{{duration}} {{ delay }} {{ timingFn }}', style({ transform: `translate${direction}(0)` })),\n ],\n {\n params: {\n ...DEFAULT_ANIMATION_PARAMS,\n from,\n },\n }\n );\n}\n\nfunction createSlideOutAnimation(to: string, direction: 'X' | 'Y'): AnimationReferenceMetadata {\n return animation([animate('{{duration}} {{ delay }} {{ timingFn }}', style({ transform: `translate${direction}({{ to }})` }))], {\n params: {\n ...DEFAULT_ANIMATION_PARAMS,\n to,\n },\n });\n}\n\nexport const slideInX = (from: string) => createSlideInAnimation(from, 'X');\nexport const slideInY = (from: string) => createSlideInAnimation(from, 'Y');\nexport const slideInDown = slideInY('-100%');\nexport const slideInUp = slideInY('100%');\nexport const slideInLeft = slideInX('-100%');\nexport const slideInRight = slideInX('100%');\n\nexport const slideOutX = (to: string) => createSlideOutAnimation(to, 'X');\nexport const slideOutY = (to: string) => createSlideOutAnimation(to, 'Y');\nexport const slideOutDown = slideOutY('100%');\nexport const slideOutUp = slideOutY('-100%');\nexport const slideOutLeft = slideOutX('-100%');\nexport const slideOutRight = slideOutX('100%');\n","import { animateChild, query, transition } from '@angular/animations';\n\nexport const waitForChildAnimations = transition(':enter, :leave', [query('@*', animateChild(), { optional: true })]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAO,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAC3C,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAC3C,MAAM,wBAAwB,GAAG;AACtC,IAAA,QAAQ,EAAE,2BAA2B;AACrC,IAAA,QAAQ,EAAE,0BAA0B;AACpC,IAAA,KAAK,EAAE,KAAK;CACb;;ACHM,MAAM,MAAM,GAAG,SAAS,CAC7B;IACE,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC/E,OAAO,CAAC,yCAAyC,EAAE,KAAK,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,aAA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":["../../../../libs/angular/animations/src/lib/config.ts","../../../../libs/angular/animations/src/lib/expand.ts","../../../../libs/angular/animations/src/lib/fade.ts","../../../../libs/angular/animations/src/lib/slide.ts","../../../../libs/angular/animations/src/lib/wait-for-child-animations.ts","../../../../libs/angular/animations/src/odx-angular-animations.ts"],"sourcesContent":["export const DEFAULT_ANIMATION_TIMING_FN = 'ease';\nexport const DEFAULT_ANIMATION_DURATION = '250ms';\nexport const DEFAULT_ANIMATION_PARAMS = {\n timingFn: DEFAULT_ANIMATION_TIMING_FN,\n duration: DEFAULT_ANIMATION_DURATION,\n delay: '0ms',\n};\n","import { animate, animation, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nexport const expand = animation(\n [\n style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0, marginTop: 0, marginBottom: 0 }),\n animate(\n '{{duration}} {{ delay }} {{ timingFn }}',\n style({ height: '*', paddingTop: '*', paddingBottom: '*', opacity: 1, marginTop: '*', marginBottom: '*' })\n ),\n ],\n {\n params: DEFAULT_ANIMATION_PARAMS,\n }\n);\n\nexport const collapse = animation(\n [\n animate(\n '{{duration}} {{ delay }} {{ timingFn }}',\n style({ height: 0, minHeight: 0, paddingTop: 0, paddingBottom: 0, opacity: 0, marginTop: 0, marginBottom: 0 })\n ),\n ],\n {\n params: DEFAULT_ANIMATION_PARAMS,\n }\n);\n","import { animate, animation, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nexport const fadeIn = (to = 1) =>\n animation([style({ opacity: 0 }), animate('{{duration}} {{ delay }} {{ timingFn }}', style({ opacity: to }))], {\n params: DEFAULT_ANIMATION_PARAMS,\n });\n\nexport const fadeOut = (to = 0) =>\n animation([animate('{{duration}} {{ delay }} {{ timingFn }}', style({ opacity: to }))], {\n params: DEFAULT_ANIMATION_PARAMS,\n });\n","import { animate, animation, AnimationReferenceMetadata, style } from '@angular/animations';\nimport { DEFAULT_ANIMATION_PARAMS } from './config';\n\nfunction createSlideInAnimation(from: string, direction: 'X' | 'Y'): AnimationReferenceMetadata {\n return animation(\n [\n style({ transform: `translate${direction}({{ from }})` }),\n animate('{{duration}} {{ delay }} {{ timingFn }}', style({ transform: `translate${direction}(0)` })),\n ],\n {\n params: {\n ...DEFAULT_ANIMATION_PARAMS,\n from,\n },\n }\n );\n}\n\nfunction createSlideOutAnimation(to: string, direction: 'X' | 'Y'): AnimationReferenceMetadata {\n return animation([animate('{{duration}} {{ delay }} {{ timingFn }}', style({ transform: `translate${direction}({{ to }})` }))], {\n params: {\n ...DEFAULT_ANIMATION_PARAMS,\n to,\n },\n });\n}\n\nexport const slideInX = (from: string) => createSlideInAnimation(from, 'X');\nexport const slideInY = (from: string) => createSlideInAnimation(from, 'Y');\nexport const slideInDown = slideInY('-100%');\nexport const slideInUp = slideInY('100%');\nexport const slideInLeft = slideInX('-100%');\nexport const slideInRight = slideInX('100%');\n\nexport const slideOutX = (to: string) => createSlideOutAnimation(to, 'X');\nexport const slideOutY = (to: string) => createSlideOutAnimation(to, 'Y');\nexport const slideOutDown = slideOutY('100%');\nexport const slideOutUp = slideOutY('-100%');\nexport const slideOutLeft = slideOutX('-100%');\nexport const slideOutRight = slideOutX('100%');\n","import { animateChild, query, transition } from '@angular/animations';\n\nexport const waitForChildAnimations = transition(':enter, :leave', [query('@*', animateChild(), { optional: true })]);\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;AAAO,MAAM,2BAA2B,GAAG,MAAM,CAAC;AAC3C,MAAM,0BAA0B,GAAG,OAAO,CAAC;AAC3C,MAAM,wBAAwB,GAAG;AACtC,IAAA,QAAQ,EAAE,2BAA2B;AACrC,IAAA,QAAQ,EAAE,0BAA0B;AACpC,IAAA,KAAK,EAAE,KAAK;CACb;;ACHM,MAAM,MAAM,GAAG,SAAS,CAC7B;AACE,IAAA,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,SAAS,EAAE,CAA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AAC,MAAM,EAAE;MACjC,UAAU,GAAG,SAAS,CAAC,OAAO,EAAE;MAChC,YAAY,GAAG,SAAS,CAAC,OAAO,EAAE;MAClC,aAAa,GAAG,SAAS,CAAC,MAAM;;ACrChC,MAAA,sBAAsB,GAAG,UAAU,CAAC,gBAAgB,EAAE,CAAC,KAAK,CAAC,IAAI,EAAE,YAAY,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;;ACFpH;;AAEG;;;;"}
@@ -0,0 +1,128 @@
1
+ import { FocusKeyManager, A11yModule as A11yModule$1 } from '@angular/cdk/a11y';
2
+ import * as i0 from '@angular/core';
3
+ import { EventEmitter, Directive, Output, HostListener, ContentChildren, NgModule } from '@angular/core';
4
+ import * as i1 from '@odx/angular';
5
+ import { DisabledController, WithDisabledState, WithTabIndex, CoreModule } from '@odx/angular';
6
+ import { __decorate } from 'tslib';
7
+ import { CSSComponent } from '@odx/angular/internal';
8
+ import { injectElement, deferFn } from '@odx/angular/utils';
9
+
10
+ let InteractiveDirective = class InteractiveDirective {
11
+ constructor() {
12
+ this.disabledController = DisabledController.inject();
13
+ this.element = injectElement();
14
+ this.interact = new EventEmitter();
15
+ }
16
+ handleEvents(event) {
17
+ if (!this.disabledController?.disabled) {
18
+ this.interact.next(event);
19
+ }
20
+ }
21
+ };
22
+ InteractiveDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: InteractiveDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
23
+ InteractiveDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: InteractiveDirective, isStandalone: true, selector: "[odxCdkInteractive]", outputs: { interact: "odxCdkInteractive" }, host: { attributes: { "role": "button" }, listeners: { "click": "handleEvents($event)", "keyup.enter": "handleEvents($event)", "keyup.space": "handleEvents($event)" } }, hostDirectives: [{ directive: i1.WithDisabledState }, { directive: i1.WithTabIndex }], ngImport: i0 });
24
+ InteractiveDirective = __decorate([
25
+ CSSComponent('cdk-interactive')
26
+ ], InteractiveDirective);
27
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: InteractiveDirective, decorators: [{
28
+ type: Directive,
29
+ args: [{
30
+ selector: '[odxCdkInteractive]',
31
+ standalone: true,
32
+ hostDirectives: [WithDisabledState, WithTabIndex],
33
+ host: {
34
+ role: 'button',
35
+ },
36
+ }]
37
+ }], propDecorators: { interact: [{
38
+ type: Output,
39
+ args: ['odxCdkInteractive']
40
+ }], handleEvents: [{
41
+ type: HostListener,
42
+ args: ['click', ['$event']]
43
+ }, {
44
+ type: HostListener,
45
+ args: ['keyup.enter', ['$event']]
46
+ }, {
47
+ type: HostListener,
48
+ args: ['keyup.space', ['$event']]
49
+ }] } });
50
+
51
+ class ListFocusManagerOptionDirective {
52
+ constructor() {
53
+ this.disabledController = DisabledController.inject();
54
+ this.element = injectElement();
55
+ }
56
+ get disabled() {
57
+ return !!this.disabledController?.disabled;
58
+ }
59
+ focus() {
60
+ this.element.nativeElement.focus();
61
+ }
62
+ }
63
+ ListFocusManagerOptionDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListFocusManagerOptionDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
64
+ ListFocusManagerOptionDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ListFocusManagerOptionDirective, isStandalone: true, selector: "[odxListFocusManager]", hostDirectives: [{ directive: i1.WithDisabledState }], ngImport: i0 });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListFocusManagerOptionDirective, decorators: [{
66
+ type: Directive,
67
+ args: [{
68
+ selector: '[odxListFocusManager]',
69
+ standalone: true,
70
+ hostDirectives: [WithDisabledState],
71
+ }]
72
+ }] });
73
+
74
+ class ListFocusManagerDirective {
75
+ constructor() {
76
+ this.keyManager = null;
77
+ }
78
+ ngAfterContentInit() {
79
+ this.keyManager = new FocusKeyManager(this.options)
80
+ .withHomeAndEnd()
81
+ .withWrap()
82
+ .skipPredicate((item) => item.disabled);
83
+ deferFn(() => this.keyManager?.setFirstItemActive());
84
+ }
85
+ ngOnDestroy() {
86
+ this.keyManager?.destroy();
87
+ this.keyManager = null;
88
+ }
89
+ onKeyDown(event) {
90
+ this.keyManager?.onKeydown(event);
91
+ }
92
+ }
93
+ ListFocusManagerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListFocusManagerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
94
+ ListFocusManagerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: ListFocusManagerDirective, isStandalone: true, selector: "[odxListFocusManager]", host: { listeners: { "keydown": "onKeyDown($event)" } }, queries: [{ propertyName: "options", predicate: ListFocusManagerOptionDirective }], ngImport: i0 });
95
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListFocusManagerDirective, decorators: [{
96
+ type: Directive,
97
+ args: [{
98
+ selector: '[odxListFocusManager]',
99
+ standalone: true,
100
+ }]
101
+ }], propDecorators: { options: [{
102
+ type: ContentChildren,
103
+ args: [ListFocusManagerOptionDirective]
104
+ }], onKeyDown: [{
105
+ type: HostListener,
106
+ args: ['keydown', ['$event']]
107
+ }] } });
108
+
109
+ const modules = [ListFocusManagerDirective, ListFocusManagerOptionDirective, InteractiveDirective];
110
+ class A11yModule {
111
+ }
112
+ A11yModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: A11yModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
113
+ A11yModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: A11yModule, imports: [A11yModule$1, ListFocusManagerDirective, ListFocusManagerOptionDirective, InteractiveDirective], exports: [CoreModule, A11yModule$1, ListFocusManagerDirective, ListFocusManagerOptionDirective, InteractiveDirective] });
114
+ A11yModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: A11yModule, imports: [A11yModule$1, CoreModule, A11yModule$1] });
115
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: A11yModule, decorators: [{
116
+ type: NgModule,
117
+ args: [{
118
+ imports: [A11yModule$1, ...modules],
119
+ exports: [CoreModule, A11yModule$1, ...modules],
120
+ }]
121
+ }] });
122
+
123
+ /**
124
+ * Generated bundle index. Do not edit.
125
+ */
126
+
127
+ export { A11yModule, InteractiveDirective, ListFocusManagerDirective, ListFocusManagerOptionDirective };
128
+ //# sourceMappingURL=odx-angular-cdk-a11y.mjs.map