@odx/angular 1.0.0-rc.9 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (597) hide show
  1. package/cdk/a11y/lib/directives/interactive.directive.d.ts +2 -2
  2. package/cdk/a11y/lib/directives/list-focus-manager-option.directive.d.ts +1 -2
  3. package/cdk/active-indicator/lib/models/active-indicator-direction.d.ts +1 -1
  4. package/cdk/active-indicator/lib/models/active-indicator-position.d.ts +1 -1
  5. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +3 -1
  6. package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +2 -2
  7. package/cdk/connected-overlay/lib/helpers/index.d.ts +0 -2
  8. package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +3 -2
  9. package/cdk/custom-form-control/lib/custom-form-control.d.ts +5 -1
  10. package/cdk/dynamic-view/lib/facade/dynamic-content.d.ts +3 -3
  11. package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +1 -0
  12. package/cdk/radio-group-control/lib/radio-group-control.directive.d.ts +2 -1
  13. package/components/action-group/action-group.component.d.ts +1 -1
  14. package/components/area-header/area-header.component.d.ts +1 -1
  15. package/components/area-header/models/area-header-size.d.ts +1 -1
  16. package/components/avatar/lib/avatar.component.d.ts +3 -2
  17. package/components/avatar/lib/models/avatar-size.d.ts +1 -1
  18. package/components/avatar/lib/models/avatar-variant.d.ts +5 -0
  19. package/components/avatar/lib/models/index.d.ts +1 -0
  20. package/components/badge/lib/badge.component.d.ts +7 -17
  21. package/components/badge/lib/badge.directive.d.ts +16 -12
  22. package/components/badge/lib/models/badge-variant.d.ts +1 -1
  23. package/components/badge/lib/models/index.d.ts +0 -1
  24. package/components/bar/lib/models/bar-button-variant.d.ts +1 -1
  25. package/components/button/index.d.ts +1 -0
  26. package/components/button/lib/directives/index.d.ts +1 -0
  27. package/components/button/lib/directives/responsive-button.directive.d.ts +6 -0
  28. package/components/button/lib/models/button-size.d.ts +1 -1
  29. package/components/button/lib/models/button-variant.d.ts +1 -1
  30. package/components/card/README.md +3 -0
  31. package/components/card/index.d.ts +5 -0
  32. package/components/card/lib/card.component.d.ts +20 -0
  33. package/components/card/lib/card.module.d.ts +16 -0
  34. package/components/card/lib/components/card-footer/card-footer.component.d.ts +5 -0
  35. package/components/card/lib/components/index.d.ts +2 -0
  36. package/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.d.ts +5 -0
  37. package/components/card/lib/directives/card-content.directive.d.ts +5 -0
  38. package/components/card/lib/directives/card-title.directive.d.ts +5 -0
  39. package/components/card/lib/directives/index.d.ts +2 -0
  40. package/components/card/lib/models/card-variant.d.ts +6 -0
  41. package/components/card/lib/models/index.d.ts +1 -0
  42. package/components/chip/lib/models/chip-size.d.ts +1 -1
  43. package/components/chip/lib/models/chip-variant.d.ts +1 -1
  44. package/components/circular-progress/lib/circular-progress.component.d.ts +2 -1
  45. package/components/circular-progress/lib/models/circular-progress-size.d.ts +1 -1
  46. package/components/content-box/lib/content-box.module.d.ts +2 -2
  47. package/components/content-box/lib/directives/index.d.ts +2 -2
  48. package/components/dropdown/lib/dropdown.directive.d.ts +3 -2
  49. package/components/dropdown/lib/models/dropdown-options.d.ts +1 -1
  50. package/components/form-field/index.d.ts +1 -0
  51. package/components/form-field/lib/form-field.component.d.ts +8 -3
  52. package/components/form-field/lib/form-field.config.d.ts +3 -2
  53. package/components/form-field/lib/form-field.module.d.ts +0 -4
  54. package/components/form-field/lib/models/form-field-error-resolver.d.ts +1 -1
  55. package/components/form-field/lib/models/form-field-error.d.ts +1 -0
  56. package/components/form-field/lib/models/form-field-variant.d.ts +5 -0
  57. package/components/form-field/lib/models/index.d.ts +1 -0
  58. package/components/form-field/lib/services/form-field-error.service.d.ts +1 -0
  59. package/components/header/lib/directives/header-avatar.directive.d.ts +5 -2
  60. package/components/header/lib/header.component.d.ts +1 -1
  61. package/components/icon/index.d.ts +1 -0
  62. package/components/icon/lib/icon.component.d.ts +3 -5
  63. package/components/icon/lib/icon.config.d.ts +4 -0
  64. package/components/icon/lib/models/icon-size.d.ts +1 -1
  65. package/components/inline-message/lib/models/inline-message-variant.d.ts +1 -1
  66. package/components/list/lib/components/expandable-list-item/expandable-list-item.component.d.ts +14 -0
  67. package/components/list/lib/components/index.d.ts +1 -0
  68. package/components/list/lib/list.component.d.ts +4 -2
  69. package/components/list/lib/list.module.d.ts +3 -2
  70. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +3 -1
  71. package/components/logo/models/logo-size.d.ts +1 -1
  72. package/components/logo/models/logo-variant.d.ts +1 -1
  73. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +2 -0
  74. package/components/mainfilter-group/README.md +3 -0
  75. package/components/mainfilter-group/index.d.ts +1 -0
  76. package/components/mainfilter-group/lib/mainfilter-group.component.d.ts +6 -0
  77. package/components/menu/lib/directives/menu-item.directive.d.ts +1 -2
  78. package/components/menu/lib/menu.component.d.ts +4 -1
  79. package/components/menu/lib/menu.directive.d.ts +5 -4
  80. package/components/modal/index.d.ts +1 -1
  81. package/components/modal/lib/modal.config.d.ts +2 -2
  82. package/components/modal/lib/modal.module.d.ts +0 -4
  83. package/components/modal/lib/modal.service.d.ts +7 -3
  84. package/components/modal/lib/models/basic-modal-options.d.ts +1 -1
  85. package/components/modal/lib/models/modal-hero-variant.d.ts +1 -1
  86. package/components/modal/lib/models/modal-options.d.ts +2 -1
  87. package/components/modal/lib/models/modal-ref.d.ts +6 -4
  88. package/components/modal/lib/models/modal-size.d.ts +2 -1
  89. package/components/modal/lib/models/modal-type.d.ts +1 -1
  90. package/components/modal/lib/models/modal-variant.d.ts +1 -1
  91. package/components/navigation-back/README.md +3 -0
  92. package/components/navigation-back/index.d.ts +1 -0
  93. package/components/navigation-back/lib/navigation-back.component.d.ts +6 -0
  94. package/components/select/lib/abstract/select-control-option.d.ts +2 -0
  95. package/components/select/lib/abstract/select-control.d.ts +1 -0
  96. package/components/select/lib/components/option/option.component.d.ts +6 -2
  97. package/components/select/lib/select.component.d.ts +10 -5
  98. package/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.d.ts +5 -2
  99. package/components/toast/lib/components/toast-item/toast-item.component.d.ts +1 -1
  100. package/components/toast/lib/models/toast-variant.d.ts +1 -1
  101. package/components/toast/lib/toast.config.d.ts +2 -2
  102. package/components/toast/lib/toast.module.d.ts +0 -4
  103. package/components/toast/lib/toast.service.d.ts +1 -1
  104. package/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.d.ts +4 -1
  105. package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +8 -3
  106. package/components/tooltip/lib/models/tooltip-size.d.ts +1 -1
  107. package/components/tooltip/lib/models/tooltip-trigger.d.ts +1 -1
  108. package/components/tooltip/lib/tooltip.component.d.ts +3 -2
  109. package/components/tooltip/lib/tooltip.directive.d.ts +3 -3
  110. package/esm2020/animations/lib/expand.mjs +3 -3
  111. package/esm2020/cdk/a11y/lib/a11y.module.mjs +4 -4
  112. package/esm2020/cdk/a11y/lib/directives/interactive.directive.mjs +4 -4
  113. package/esm2020/cdk/a11y/lib/directives/list-focus-manager-option.directive.mjs +5 -7
  114. package/esm2020/cdk/a11y/lib/directives/list-focus-manager.directive.mjs +3 -3
  115. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +3 -3
  116. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +16 -12
  117. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +8 -8
  118. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +5 -5
  119. package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +4 -6
  120. package/esm2020/cdk/connected-overlay/lib/helpers/index.mjs +1 -3
  121. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +3 -2
  122. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  123. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +44 -20
  124. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +3 -3
  125. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +7 -5
  126. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +3 -3
  127. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +15 -4
  128. package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +2 -2
  129. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +3 -3
  130. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +3 -3
  131. package/esm2020/cdk/expandable/lib/expandable.module.mjs +4 -4
  132. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +10 -10
  133. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +14 -10
  134. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  135. package/esm2020/components/accordion/lib/accordion.component.mjs +6 -6
  136. package/esm2020/components/accordion/lib/accordion.module.mjs +4 -4
  137. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +5 -5
  138. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  139. package/esm2020/components/action-group/action-group.component.mjs +5 -5
  140. package/esm2020/components/area-header/area-header.component.mjs +7 -6
  141. package/esm2020/components/area-header/area-header.module.mjs +4 -4
  142. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +3 -3
  143. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  144. package/esm2020/components/avatar/lib/avatar.component.mjs +14 -8
  145. package/esm2020/components/avatar/lib/models/avatar-variant.mjs +5 -0
  146. package/esm2020/components/avatar/lib/models/index.mjs +2 -1
  147. package/esm2020/components/badge/lib/badge.component.mjs +18 -65
  148. package/esm2020/components/badge/lib/badge.directive.mjs +50 -25
  149. package/esm2020/components/badge/lib/models/index.mjs +1 -2
  150. package/esm2020/components/bar/lib/bar.component.mjs +3 -3
  151. package/esm2020/components/bar/lib/bar.module.mjs +4 -4
  152. package/esm2020/components/bar/lib/directives/bar-button.directive.mjs +6 -7
  153. package/esm2020/components/bar/lib/directives/bar-label.directive.mjs +3 -3
  154. package/esm2020/components/breadcrumbs/lib/breadcrumbs.component.mjs +3 -3
  155. package/esm2020/components/button/index.mjs +2 -1
  156. package/esm2020/components/button/lib/button.component.mjs +8 -10
  157. package/esm2020/components/button/lib/directives/index.mjs +2 -0
  158. package/esm2020/components/button/lib/directives/responsive-button.directive.mjs +24 -0
  159. package/esm2020/components/button-group/lib/button-group.component.mjs +3 -3
  160. package/esm2020/components/card/index.mjs +6 -0
  161. package/esm2020/components/card/lib/card.component.mjs +67 -0
  162. package/esm2020/components/card/lib/card.module.mjs +53 -0
  163. package/esm2020/components/card/lib/components/card-footer/card-footer.component.mjs +13 -0
  164. package/esm2020/components/card/lib/components/index.mjs +3 -0
  165. package/esm2020/components/card/lib/components/launch-card-subtitle/launch-card-subtitle.component.mjs +13 -0
  166. package/esm2020/components/card/lib/directives/card-content.directive.mjs +17 -0
  167. package/esm2020/components/card/lib/directives/card-title.directive.mjs +17 -0
  168. package/esm2020/components/card/lib/directives/index.mjs +3 -0
  169. package/esm2020/components/card/lib/models/card-variant.mjs +6 -0
  170. package/esm2020/components/card/lib/models/index.mjs +2 -0
  171. package/esm2020/components/card/odx-angular-components-card.mjs +5 -0
  172. package/esm2020/components/checkbox/lib/checkbox.component.mjs +5 -5
  173. package/esm2020/components/checkbox/lib/checkbox.module.mjs +4 -4
  174. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +3 -3
  175. package/esm2020/components/chip/lib/chip.component.mjs +5 -5
  176. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +8 -6
  177. package/esm2020/components/content-box/lib/content-box.component.mjs +3 -3
  178. package/esm2020/components/content-box/lib/content-box.module.mjs +7 -7
  179. package/esm2020/components/content-box/lib/directives/{content-box-footer-directive.mjs → content-box-footer.directive.mjs} +4 -4
  180. package/esm2020/components/content-box/lib/directives/{content-box-header-directive.mjs → content-box-header.directive.mjs} +4 -4
  181. package/esm2020/components/content-box/lib/directives/index.mjs +3 -3
  182. package/esm2020/components/dropdown/lib/dropdown.component.mjs +3 -3
  183. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +10 -7
  184. package/esm2020/components/dropdown/lib/dropdown.module.mjs +4 -4
  185. package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +3 -2
  186. package/esm2020/components/form-field/index.mjs +2 -1
  187. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  188. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
  189. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +6 -6
  190. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  191. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +3 -3
  192. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +3 -3
  193. package/esm2020/components/form-field/lib/directives/form.directive.mjs +3 -3
  194. package/esm2020/components/form-field/lib/form-field.component.mjs +32 -15
  195. package/esm2020/components/form-field/lib/form-field.config.mjs +4 -3
  196. package/esm2020/components/form-field/lib/form-field.module.mjs +5 -13
  197. package/esm2020/components/form-field/lib/form-field.service.mjs +3 -3
  198. package/esm2020/components/form-field/lib/models/form-field-error.mjs +1 -1
  199. package/esm2020/components/form-field/lib/models/form-field-variant.mjs +5 -0
  200. package/esm2020/components/form-field/lib/models/index.mjs +2 -1
  201. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +16 -16
  202. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +13 -6
  203. package/esm2020/components/header/lib/directives/header-title.directive.mjs +3 -3
  204. package/esm2020/components/header/lib/header.component.mjs +5 -5
  205. package/esm2020/components/header/lib/header.module.mjs +4 -4
  206. package/esm2020/components/icon/index.mjs +2 -1
  207. package/esm2020/components/icon/lib/icon.component.mjs +12 -21
  208. package/esm2020/components/icon/lib/icon.config.mjs +5 -0
  209. package/esm2020/components/inline-message/lib/inline-message.component.mjs +8 -9
  210. package/esm2020/components/link/link.directive.mjs +3 -3
  211. package/esm2020/components/list/lib/components/expandable-list-item/expandable-list-item.component.mjs +49 -0
  212. package/esm2020/components/list/lib/components/index.mjs +2 -1
  213. package/esm2020/components/list/lib/components/list-item/list-item.component.mjs +3 -3
  214. package/esm2020/components/list/lib/list.component.mjs +22 -11
  215. package/esm2020/components/list/lib/list.module.mjs +7 -7
  216. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +3 -3
  217. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +13 -6
  218. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +4 -4
  219. package/esm2020/components/logo/logo.directive.mjs +8 -6
  220. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +3 -3
  221. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +13 -5
  222. package/esm2020/components/main-menu/lib/main-menu.component.mjs +5 -5
  223. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  224. package/esm2020/components/main-menu/lib/main-menu.service.mjs +3 -3
  225. package/esm2020/components/mainfilter-group/index.mjs +2 -0
  226. package/esm2020/components/mainfilter-group/lib/mainfilter-group.component.mjs +21 -0
  227. package/esm2020/components/mainfilter-group/odx-angular-components-mainfilter-group.mjs +5 -0
  228. package/esm2020/components/menu/lib/directives/menu-item.directive.mjs +6 -8
  229. package/esm2020/components/menu/lib/menu.component.mjs +22 -11
  230. package/esm2020/components/menu/lib/menu.directive.mjs +11 -4
  231. package/esm2020/components/menu/lib/menu.module.mjs +4 -4
  232. package/esm2020/components/modal/index.mjs +2 -2
  233. package/esm2020/components/modal/lib/components/basic-modal/basic-modal.component.mjs +3 -3
  234. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +3 -3
  235. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +5 -5
  236. package/esm2020/components/modal/lib/components/modal-hero/modal-hero.component.mjs +5 -5
  237. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +3 -3
  238. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +3 -3
  239. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  240. package/esm2020/components/modal/lib/modal.component.mjs +5 -5
  241. package/esm2020/components/modal/lib/modal.config.mjs +4 -3
  242. package/esm2020/components/modal/lib/modal.directive.mjs +3 -3
  243. package/esm2020/components/modal/lib/modal.module.mjs +5 -13
  244. package/esm2020/components/modal/lib/modal.service.mjs +37 -26
  245. package/esm2020/components/modal/lib/models/modal-options.mjs +1 -1
  246. package/esm2020/components/modal/lib/models/modal-ref.mjs +20 -12
  247. package/esm2020/components/modal/lib/models/modal-size.mjs +2 -1
  248. package/esm2020/components/navigation-back/index.mjs +2 -0
  249. package/esm2020/components/navigation-back/lib/navigation-back.component.mjs +22 -0
  250. package/esm2020/components/navigation-back/odx-angular-components-navigation-back.mjs +5 -0
  251. package/esm2020/components/progress/lib/progress.component.mjs +3 -3
  252. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +3 -3
  253. package/esm2020/components/radio-group/lib/radio-group.component.mjs +7 -7
  254. package/esm2020/components/radio-group/lib/radio-group.module.mjs +4 -4
  255. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +5 -5
  256. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +3 -3
  257. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +4 -4
  258. package/esm2020/components/select/lib/abstract/select-control-option.mjs +1 -1
  259. package/esm2020/components/select/lib/abstract/select-control.mjs +1 -1
  260. package/esm2020/components/select/lib/components/option/option.component.mjs +37 -20
  261. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +3 -3
  262. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +3 -3
  263. package/esm2020/components/select/lib/select.component.mjs +82 -35
  264. package/esm2020/components/select/lib/select.module.mjs +4 -4
  265. package/esm2020/components/slider/lib/slider.directive.mjs +3 -3
  266. package/esm2020/components/spinbox/lib/spinbox.component.mjs +8 -8
  267. package/esm2020/components/switch/lib/switch.component.mjs +5 -5
  268. package/esm2020/components/switch/lib/switch.module.mjs +4 -4
  269. package/esm2020/components/switch/lib/switch.validator.mjs +3 -3
  270. package/esm2020/components/tab-bar/lib/components/tab-bar-item/tab-bar-item.component.mjs +15 -6
  271. package/esm2020/components/tab-bar/lib/tab-bar.component.mjs +7 -7
  272. package/esm2020/components/tab-bar/lib/tab-bar.module.mjs +4 -4
  273. package/esm2020/components/toast/lib/components/toast-container/toast-container.component.mjs +3 -3
  274. package/esm2020/components/toast/lib/components/toast-item/toast-item.component.mjs +9 -8
  275. package/esm2020/components/toast/lib/toast.config.mjs +3 -3
  276. package/esm2020/components/toast/lib/toast.module.mjs +5 -13
  277. package/esm2020/components/toast/lib/toast.service.mjs +7 -7
  278. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +13 -7
  279. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +23 -12
  280. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  281. package/esm2020/components/tooltip/lib/tooltip.component.mjs +4 -4
  282. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +11 -12
  283. package/esm2020/internal/decorators/css-component.mjs +3 -8
  284. package/esm2020/internal/decorators/css-modifier.mjs +21 -18
  285. package/esm2020/internal/helpers/decorator-property-name.mjs +4 -0
  286. package/esm2020/internal/helpers/deepmerge.mjs +6 -0
  287. package/esm2020/internal/helpers/index.mjs +3 -1
  288. package/esm2020/internal/helpers/with-mutiple-descriptors.mjs +22 -13
  289. package/esm2020/lib/controllers/controller.mjs +3 -3
  290. package/esm2020/lib/controllers/disabled.controller.mjs +26 -20
  291. package/esm2020/lib/controllers/readonly.controller.mjs +30 -21
  292. package/esm2020/lib/core.module.mjs +9 -8
  293. package/esm2020/lib/directives/click-outside.directive.mjs +29 -17
  294. package/esm2020/lib/directives/delegate-focus.directive.mjs +40 -0
  295. package/esm2020/lib/directives/index.mjs +2 -2
  296. package/esm2020/lib/directives/with-disabled-state.directive.mjs +9 -9
  297. package/esm2020/lib/directives/with-tabindex.directive.mjs +3 -3
  298. package/esm2020/lib/services/window-ref.mjs +13 -6
  299. package/esm2020/theming/index.mjs +5 -0
  300. package/esm2020/theming/lib/helpers/index.mjs +4 -0
  301. package/esm2020/theming/lib/helpers/prefers-dark-theme.mjs +4 -0
  302. package/esm2020/theming/lib/helpers/resolve-theme.mjs +5 -0
  303. package/esm2020/theming/lib/helpers/theme-storage.mjs +19 -0
  304. package/esm2020/theming/lib/models/index.mjs +2 -0
  305. package/esm2020/theming/lib/models/theme.mjs +6 -0
  306. package/esm2020/theming/lib/theming.config.mjs +21 -0
  307. package/esm2020/theming/lib/theming.service.mjs +42 -0
  308. package/esm2020/theming/odx-angular-theming.mjs +5 -0
  309. package/esm2020/utils/lib/decorators/transform.mjs +3 -3
  310. package/esm2020/utils/lib/helpers/build-url.mjs +4 -0
  311. package/esm2020/utils/lib/helpers/dom.mjs +2 -2
  312. package/esm2020/utils/lib/helpers/event-manager.mjs +3 -3
  313. package/esm2020/utils/lib/helpers/get-axis.mjs +14 -0
  314. package/esm2020/utils/lib/helpers/get-opposite-side.mjs +15 -0
  315. package/esm2020/utils/lib/helpers/get-side.mjs +4 -0
  316. package/esm2020/utils/lib/helpers/index.mjs +6 -2
  317. package/esm2020/utils/lib/helpers/provide-config.mjs +25 -0
  318. package/esm2020/utils/lib/helpers/queue.mjs +36 -11
  319. package/esm2020/utils/lib/types/axis.mjs +5 -0
  320. package/esm2020/utils/lib/types/index.mjs +4 -1
  321. package/esm2020/utils/lib/types/position.mjs +15 -0
  322. package/esm2020/utils/lib/types/side.mjs +7 -0
  323. package/fesm2015/odx-angular-animations.mjs +2 -2
  324. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  325. package/fesm2015/odx-angular-cdk-a11y.mjs +13 -14
  326. package/fesm2015/odx-angular-cdk-a11y.mjs.map +1 -1
  327. package/fesm2015/odx-angular-cdk-active-indicator.mjs +3 -3
  328. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +16 -12
  329. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  330. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +13 -31
  331. package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  332. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +47 -24
  333. package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  334. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +26 -12
  335. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  336. package/fesm2015/odx-angular-cdk-expandable.mjs +10 -10
  337. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +26 -23
  338. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  339. package/fesm2015/odx-angular-components-accordion.mjs +16 -16
  340. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  341. package/fesm2015/odx-angular-components-action-group.mjs +4 -4
  342. package/fesm2015/odx-angular-components-action-group.mjs.map +1 -1
  343. package/fesm2015/odx-angular-components-area-header.mjs +16 -15
  344. package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
  345. package/fesm2015/odx-angular-components-avatar.mjs +18 -7
  346. package/fesm2015/odx-angular-components-avatar.mjs.map +1 -1
  347. package/fesm2015/odx-angular-components-badge.mjs +63 -97
  348. package/fesm2015/odx-angular-components-badge.mjs.map +1 -1
  349. package/fesm2015/odx-angular-components-bar.mjs +15 -16
  350. package/fesm2015/odx-angular-components-bar.mjs.map +1 -1
  351. package/fesm2015/odx-angular-components-breadcrumbs.mjs +3 -3
  352. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  353. package/fesm2015/odx-angular-components-button.mjs +31 -11
  354. package/fesm2015/odx-angular-components-button.mjs.map +1 -1
  355. package/fesm2015/odx-angular-components-card.mjs +174 -0
  356. package/fesm2015/odx-angular-components-card.mjs.map +1 -0
  357. package/fesm2015/odx-angular-components-checkbox.mjs +11 -11
  358. package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
  359. package/fesm2015/odx-angular-components-chip.mjs +4 -4
  360. package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
  361. package/fesm2015/odx-angular-components-circular-progress.mjs +7 -5
  362. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  363. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  364. package/fesm2015/odx-angular-components-content-box.mjs.map +1 -1
  365. package/fesm2015/odx-angular-components-dropdown.mjs +18 -14
  366. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -1
  367. package/fesm2015/odx-angular-components-form-field.mjs +80 -64
  368. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  369. package/fesm2015/odx-angular-components-header.mjs +23 -17
  370. package/fesm2015/odx-angular-components-header.mjs.map +1 -1
  371. package/fesm2015/odx-angular-components-icon.mjs +16 -22
  372. package/fesm2015/odx-angular-components-icon.mjs.map +1 -1
  373. package/fesm2015/odx-angular-components-inline-message.mjs +7 -8
  374. package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -1
  375. package/fesm2015/odx-angular-components-link.mjs +3 -3
  376. package/fesm2015/odx-angular-components-list.mjs +70 -20
  377. package/fesm2015/odx-angular-components-list.mjs.map +1 -1
  378. package/fesm2015/odx-angular-components-loading-spinner.mjs +21 -13
  379. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
  380. package/fesm2015/odx-angular-components-logo.mjs +7 -5
  381. package/fesm2015/odx-angular-components-logo.mjs.map +1 -1
  382. package/fesm2015/odx-angular-components-main-menu.mjs +57 -49
  383. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  384. package/fesm2015/odx-angular-components-mainfilter-group.mjs +27 -0
  385. package/fesm2015/odx-angular-components-mainfilter-group.mjs.map +1 -0
  386. package/fesm2015/odx-angular-components-menu.mjs +41 -24
  387. package/fesm2015/odx-angular-components-menu.mjs.map +1 -1
  388. package/fesm2015/odx-angular-components-modal.mjs +91 -118
  389. package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
  390. package/fesm2015/odx-angular-components-navigation-back.mjs +28 -0
  391. package/fesm2015/odx-angular-components-navigation-back.mjs.map +1 -0
  392. package/fesm2015/odx-angular-components-progress.mjs +3 -3
  393. package/fesm2015/odx-angular-components-radio-group.mjs +13 -13
  394. package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -1
  395. package/fesm2015/odx-angular-components-rail-navigation.mjs +11 -11
  396. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -1
  397. package/fesm2015/odx-angular-components-select.mjs +126 -68
  398. package/fesm2015/odx-angular-components-select.mjs.map +1 -1
  399. package/fesm2015/odx-angular-components-slider.mjs +3 -3
  400. package/fesm2015/odx-angular-components-spinbox.mjs +8 -8
  401. package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -1
  402. package/fesm2015/odx-angular-components-switch.mjs +11 -11
  403. package/fesm2015/odx-angular-components-switch.mjs.map +1 -1
  404. package/fesm2015/odx-angular-components-tab-bar.mjs +25 -16
  405. package/fesm2015/odx-angular-components-tab-bar.mjs.map +1 -1
  406. package/fesm2015/odx-angular-components-toast.mjs +23 -29
  407. package/fesm2015/odx-angular-components-toast.mjs.map +1 -1
  408. package/fesm2015/odx-angular-components-toggle-button-group.mjs +40 -20
  409. package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
  410. package/fesm2015/odx-angular-components-tooltip.mjs +13 -14
  411. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -1
  412. package/fesm2015/odx-angular-internal.mjs +69 -53
  413. package/fesm2015/odx-angular-internal.mjs.map +1 -1
  414. package/fesm2015/odx-angular-theming.mjs +99 -0
  415. package/fesm2015/odx-angular-theming.mjs.map +1 -0
  416. package/fesm2015/odx-angular-utils.mjs +119 -25
  417. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  418. package/fesm2015/odx-angular.mjs +147 -108
  419. package/fesm2015/odx-angular.mjs.map +1 -1
  420. package/fesm2020/odx-angular-animations.mjs +2 -2
  421. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  422. package/fesm2020/odx-angular-cdk-a11y.mjs +13 -14
  423. package/fesm2020/odx-angular-cdk-a11y.mjs.map +1 -1
  424. package/fesm2020/odx-angular-cdk-active-indicator.mjs +3 -3
  425. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +16 -12
  426. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  427. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +13 -31
  428. package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -1
  429. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +47 -24
  430. package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  431. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +25 -12
  432. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  433. package/fesm2020/odx-angular-cdk-expandable.mjs +10 -10
  434. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +26 -23
  435. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  436. package/fesm2020/odx-angular-components-accordion.mjs +16 -16
  437. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  438. package/fesm2020/odx-angular-components-action-group.mjs +4 -4
  439. package/fesm2020/odx-angular-components-action-group.mjs.map +1 -1
  440. package/fesm2020/odx-angular-components-area-header.mjs +16 -15
  441. package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
  442. package/fesm2020/odx-angular-components-avatar.mjs +18 -7
  443. package/fesm2020/odx-angular-components-avatar.mjs.map +1 -1
  444. package/fesm2020/odx-angular-components-badge.mjs +60 -90
  445. package/fesm2020/odx-angular-components-badge.mjs.map +1 -1
  446. package/fesm2020/odx-angular-components-bar.mjs +15 -16
  447. package/fesm2020/odx-angular-components-bar.mjs.map +1 -1
  448. package/fesm2020/odx-angular-components-breadcrumbs.mjs +3 -3
  449. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  450. package/fesm2020/odx-angular-components-button.mjs +31 -11
  451. package/fesm2020/odx-angular-components-button.mjs.map +1 -1
  452. package/fesm2020/odx-angular-components-card.mjs +173 -0
  453. package/fesm2020/odx-angular-components-card.mjs.map +1 -0
  454. package/fesm2020/odx-angular-components-checkbox.mjs +11 -11
  455. package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
  456. package/fesm2020/odx-angular-components-chip.mjs +4 -4
  457. package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
  458. package/fesm2020/odx-angular-components-circular-progress.mjs +7 -5
  459. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  460. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  461. package/fesm2020/odx-angular-components-content-box.mjs.map +1 -1
  462. package/fesm2020/odx-angular-components-dropdown.mjs +18 -14
  463. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -1
  464. package/fesm2020/odx-angular-components-form-field.mjs +79 -64
  465. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  466. package/fesm2020/odx-angular-components-header.mjs +23 -17
  467. package/fesm2020/odx-angular-components-header.mjs.map +1 -1
  468. package/fesm2020/odx-angular-components-icon.mjs +16 -22
  469. package/fesm2020/odx-angular-components-icon.mjs.map +1 -1
  470. package/fesm2020/odx-angular-components-inline-message.mjs +7 -8
  471. package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -1
  472. package/fesm2020/odx-angular-components-link.mjs +3 -3
  473. package/fesm2020/odx-angular-components-list.mjs +69 -20
  474. package/fesm2020/odx-angular-components-list.mjs.map +1 -1
  475. package/fesm2020/odx-angular-components-loading-spinner.mjs +20 -13
  476. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
  477. package/fesm2020/odx-angular-components-logo.mjs +7 -5
  478. package/fesm2020/odx-angular-components-logo.mjs.map +1 -1
  479. package/fesm2020/odx-angular-components-main-menu.mjs +56 -49
  480. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  481. package/fesm2020/odx-angular-components-mainfilter-group.mjs +27 -0
  482. package/fesm2020/odx-angular-components-mainfilter-group.mjs.map +1 -0
  483. package/fesm2020/odx-angular-components-menu.mjs +41 -24
  484. package/fesm2020/odx-angular-components-menu.mjs.map +1 -1
  485. package/fesm2020/odx-angular-components-modal.mjs +90 -116
  486. package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
  487. package/fesm2020/odx-angular-components-navigation-back.mjs +28 -0
  488. package/fesm2020/odx-angular-components-navigation-back.mjs.map +1 -0
  489. package/fesm2020/odx-angular-components-progress.mjs +3 -3
  490. package/fesm2020/odx-angular-components-radio-group.mjs +13 -13
  491. package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -1
  492. package/fesm2020/odx-angular-components-rail-navigation.mjs +11 -11
  493. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -1
  494. package/fesm2020/odx-angular-components-select.mjs +126 -62
  495. package/fesm2020/odx-angular-components-select.mjs.map +1 -1
  496. package/fesm2020/odx-angular-components-slider.mjs +3 -3
  497. package/fesm2020/odx-angular-components-spinbox.mjs +7 -7
  498. package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -1
  499. package/fesm2020/odx-angular-components-switch.mjs +11 -11
  500. package/fesm2020/odx-angular-components-switch.mjs.map +1 -1
  501. package/fesm2020/odx-angular-components-tab-bar.mjs +24 -16
  502. package/fesm2020/odx-angular-components-tab-bar.mjs.map +1 -1
  503. package/fesm2020/odx-angular-components-toast.mjs +23 -29
  504. package/fesm2020/odx-angular-components-toast.mjs.map +1 -1
  505. package/fesm2020/odx-angular-components-toggle-button-group.mjs +37 -20
  506. package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
  507. package/fesm2020/odx-angular-components-tooltip.mjs +13 -14
  508. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -1
  509. package/fesm2020/odx-angular-internal.mjs +67 -51
  510. package/fesm2020/odx-angular-internal.mjs.map +1 -1
  511. package/fesm2020/odx-angular-theming.mjs +96 -0
  512. package/fesm2020/odx-angular-theming.mjs.map +1 -0
  513. package/fesm2020/odx-angular-utils.mjs +115 -27
  514. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  515. package/fesm2020/odx-angular.mjs +142 -103
  516. package/fesm2020/odx-angular.mjs.map +1 -1
  517. package/internal/decorators/css-component.d.ts +1 -2
  518. package/internal/decorators/css-modifier.d.ts +0 -1
  519. package/internal/helpers/decorator-property-name.d.ts +1 -0
  520. package/internal/helpers/deepmerge.d.ts +10 -0
  521. package/internal/helpers/index.d.ts +2 -0
  522. package/internal/helpers/with-mutiple-descriptors.d.ts +1 -1
  523. package/lib/controllers/disabled.controller.d.ts +5 -2
  524. package/lib/controllers/readonly.controller.d.ts +1 -0
  525. package/lib/core.module.d.ts +3 -3
  526. package/lib/directives/click-outside.directive.d.ts +5 -4
  527. package/lib/directives/delegate-focus.directive.d.ts +11 -0
  528. package/lib/directives/index.d.ts +1 -1
  529. package/lib/services/window-ref.d.ts +3 -0
  530. package/lib/tokens/identity-matcher.d.ts +1 -1
  531. package/lib/tokens/string-search-handler.d.ts +1 -1
  532. package/lib/tokens/stringify.d.ts +1 -1
  533. package/package.json +37 -11
  534. package/theming/README.md +3 -0
  535. package/theming/index.d.ts +4 -0
  536. package/theming/lib/helpers/index.d.ts +3 -0
  537. package/theming/lib/helpers/prefers-dark-theme.d.ts +1 -0
  538. package/theming/lib/helpers/resolve-theme.d.ts +2 -0
  539. package/theming/lib/helpers/theme-storage.d.ts +4 -0
  540. package/theming/lib/models/index.d.ts +1 -0
  541. package/theming/lib/models/theme.d.ts +6 -0
  542. package/theming/lib/theming.config.d.ts +10 -0
  543. package/theming/lib/theming.service.d.ts +16 -0
  544. package/utils/lib/decorators/transform.d.ts +2 -2
  545. package/utils/lib/helpers/build-url.d.ts +1 -0
  546. package/utils/lib/helpers/get-axis.d.ts +2 -0
  547. package/utils/lib/helpers/get-opposite-side.d.ts +2 -0
  548. package/utils/lib/helpers/get-side.d.ts +2 -0
  549. package/utils/lib/helpers/index.d.ts +5 -1
  550. package/utils/lib/helpers/ng-changes.d.ts +1 -1
  551. package/utils/lib/helpers/provide-config.d.ts +12 -0
  552. package/utils/lib/helpers/queue.d.ts +13 -2
  553. package/utils/lib/types/axis.d.ts +5 -0
  554. package/utils/lib/types/get-properties.d.ts +2 -2
  555. package/utils/lib/types/index.d.ts +3 -0
  556. package/utils/lib/types/position.d.ts +15 -0
  557. package/utils/lib/types/side.d.ts +7 -0
  558. package/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.d.ts +0 -2
  559. package/cdk/connected-overlay/lib/helpers/get-overlay-side.d.ts +0 -2
  560. package/components/badge/lib/badge.config.d.ts +0 -3
  561. package/components/badge/lib/facade/badge-host.d.ts +0 -3
  562. package/components/badge/lib/facade/index.d.ts +0 -1
  563. package/components/badge/lib/models/badge-position.d.ts +0 -5
  564. package/components/launch-tile/README.md +0 -3
  565. package/components/launch-tile/index.d.ts +0 -3
  566. package/components/launch-tile/lib/components/index.d.ts +0 -2
  567. package/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.d.ts +0 -5
  568. package/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.d.ts +0 -5
  569. package/components/launch-tile/lib/launch-tile.component.d.ts +0 -13
  570. package/components/launch-tile/lib/launch-tile.module.d.ts +0 -14
  571. package/components/modal/lib/services/index.d.ts +0 -1
  572. package/components/modal/lib/services/open-modal-manager.service.d.ts +0 -15
  573. package/esm2020/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.mjs +0 -13
  574. package/esm2020/cdk/connected-overlay/lib/helpers/get-overlay-side.mjs +0 -4
  575. package/esm2020/components/badge/lib/badge.config.mjs +0 -3
  576. package/esm2020/components/badge/lib/facade/badge-host.mjs +0 -2
  577. package/esm2020/components/badge/lib/facade/index.mjs +0 -2
  578. package/esm2020/components/badge/lib/models/badge-position.mjs +0 -5
  579. package/esm2020/components/launch-tile/index.mjs +0 -4
  580. package/esm2020/components/launch-tile/lib/components/index.mjs +0 -3
  581. package/esm2020/components/launch-tile/lib/components/launch-tile-footer/launch-tile-footer.component.mjs +0 -13
  582. package/esm2020/components/launch-tile/lib/components/launch-tile-subtitle/launch-tile-subtitle.component.mjs +0 -13
  583. package/esm2020/components/launch-tile/lib/launch-tile.component.mjs +0 -51
  584. package/esm2020/components/launch-tile/lib/launch-tile.module.mjs +0 -23
  585. package/esm2020/components/launch-tile/odx-angular-components-launch-tile.mjs +0 -5
  586. package/esm2020/components/modal/lib/services/index.mjs +0 -2
  587. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +0 -42
  588. package/esm2020/lib/directives/let.directive.mjs +0 -36
  589. package/esm2020/utils/lib/helpers/provide-module-config.mjs +0 -21
  590. package/fesm2015/odx-angular-components-launch-tile.mjs +0 -95
  591. package/fesm2015/odx-angular-components-launch-tile.mjs.map +0 -1
  592. package/fesm2020/odx-angular-components-launch-tile.mjs +0 -94
  593. package/fesm2020/odx-angular-components-launch-tile.mjs.map +0 -1
  594. package/lib/directives/let.directive.d.ts +0 -17
  595. package/utils/lib/helpers/provide-module-config.d.ts +0 -12
  596. /package/components/content-box/lib/directives/{content-box-footer-directive.d.ts → content-box-footer.directive.d.ts} +0 -0
  597. /package/components/content-box/lib/directives/{content-box-header-directive.d.ts → content-box-header.directive.d.ts} +0 -0
@@ -1,12 +1,52 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
+ import { trigger, transition, useAnimation } from '@angular/animations';
2
3
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
3
4
  import * as i0 from '@angular/core';
4
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, NgModule } from '@angular/core';
5
- import * as i1 from '@odx/angular';
6
- import { WithDisabledState, WithTabIndex } from '@odx/angular';
5
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, Input, forwardRef, NgModule } from '@angular/core';
6
+ import * as i1$1 from '@odx/angular';
7
+ import { DisabledController, CoreModule, WithDisabledState, WithTabIndex } from '@odx/angular';
8
+ import { expand, collapse } from '@odx/angular/animations';
9
+ import { InteractiveDirective } from '@odx/angular/cdk/a11y';
10
+ import { ExpandableItemDirective, ExpandableContainerDirective, EXPANDABLE_CONTAINER } from '@odx/angular/cdk/expandable';
11
+ import { IconComponent } from '@odx/angular/components/icon';
7
12
  import { CSSModifier, CSSComponent } from '@odx/angular/internal';
8
13
  import { injectElement, Transform } from '@odx/angular/utils';
9
- import { IconComponent } from '@odx/angular/components/icon';
14
+ import * as i1 from '@angular/common';
15
+
16
+ let ExpandableListItemComponent = class ExpandableListItemComponent extends ExpandableItemDirective {
17
+ constructor() {
18
+ super(...arguments);
19
+ this.disabledController = DisabledController.inject();
20
+ this.element = injectElement();
21
+ this.danger = false;
22
+ }
23
+ get isDisabled() {
24
+ return !!this.disabledController?.disabled;
25
+ }
26
+ get isExpanded() {
27
+ return !this.isDisabled && this.expanded;
28
+ }
29
+ };
30
+ ExpandableListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ExpandableListItemComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
31
+ ExpandableListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ExpandableListItemComponent, isStandalone: true, selector: "odx-expandable-list-item", inputs: { danger: "danger" }, host: { properties: { "class.odx-expandable-list-item--expanded": "isExpanded", "class.odx-expandable-list-item--danger": "danger", "attr.title": "null" } }, providers: [DisabledController.connect()], usesInheritance: true, ngImport: i0, template: "<div\n role=\"button\"\n class=\"odx-expandable-list-item__header odx-list-item\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n [class.is-disabled]=\"isDisabled\"\n [class.odx-list-item--danger]=\"danger\"\n [class.odx-list-item--selected]=\"isExpanded\"\n (odxCdkInteractive)=\"toggle()\"\n>\n <div class=\"odx-expandable-list-item__content\">\n <ng-content></ng-content>\n </div>\n <odx-icon name=\"chevron-down\" iconSet=\"core\" class=\"odx-expandable-list-item__expand-icon\"></odx-icon>\n</div>\n\n<div class=\"odx-expandable-list-item__slot\" @expandSlotAnimation *ngIf=\"isExpanded\">\n <ng-content select=\"odx-list\"></ng-content>\n</div>\n", dependencies: [{ kind: "directive", type: InteractiveDirective, selector: "[odxCdkInteractive]", outputs: ["odxCdkInteractive"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet"] }], animations: [trigger('expandSlotAnimation', [transition(':enter', [useAnimation(expand)]), transition(':leave', [useAnimation(collapse)])])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
32
+ __decorate([
33
+ CSSModifier(),
34
+ Transform(coerceBooleanProperty),
35
+ __metadata("design:type", Object)
36
+ ], ExpandableListItemComponent.prototype, "danger", void 0);
37
+ ExpandableListItemComponent = __decorate([
38
+ CSSComponent('expandable-list-item')
39
+ ], ExpandableListItemComponent);
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ExpandableListItemComponent, decorators: [{
41
+ type: Component,
42
+ args: [{ standalone: true, selector: 'odx-expandable-list-item', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], imports: [InteractiveDirective, CoreModule, IconComponent], host: {
43
+ '[class.odx-expandable-list-item--expanded]': 'isExpanded',
44
+ '[class.odx-expandable-list-item--danger]': 'danger',
45
+ '[attr.title]': 'null',
46
+ }, animations: [trigger('expandSlotAnimation', [transition(':enter', [useAnimation(expand)]), transition(':leave', [useAnimation(collapse)])])], template: "<div\n role=\"button\"\n class=\"odx-expandable-list-item__header odx-list-item\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n [class.is-disabled]=\"isDisabled\"\n [class.odx-list-item--danger]=\"danger\"\n [class.odx-list-item--selected]=\"isExpanded\"\n (odxCdkInteractive)=\"toggle()\"\n>\n <div class=\"odx-expandable-list-item__content\">\n <ng-content></ng-content>\n </div>\n <odx-icon name=\"chevron-down\" iconSet=\"core\" class=\"odx-expandable-list-item__expand-icon\"></odx-icon>\n</div>\n\n<div class=\"odx-expandable-list-item__slot\" @expandSlotAnimation *ngIf=\"isExpanded\">\n <ng-content select=\"odx-list\"></ng-content>\n</div>\n" }]
47
+ }], propDecorators: { danger: [{
48
+ type: Input
49
+ }] } });
10
50
 
11
51
  let ListItemComponent = class ListItemComponent {
12
52
  constructor() {
@@ -15,8 +55,8 @@ let ListItemComponent = class ListItemComponent {
15
55
  this.selected = false;
16
56
  }
17
57
  };
18
- ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
19
- ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: ListItemComponent, isStandalone: true, selector: "[odxListItem]", inputs: { danger: "danger", selected: "selected" }, hostDirectives: [{ directive: i1.WithDisabledState }, { directive: i1.WithTabIndex }], ngImport: i0, template: "<ng-content select=\"[odxListPrefix]\"></ng-content>\n<div class=\"odx-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
58
+ ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
59
+ ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ListItemComponent, isStandalone: true, selector: "[odxListItem]", inputs: { danger: "danger", selected: "selected" }, hostDirectives: [{ directive: i1$1.WithDisabledState }, { directive: i1$1.WithTabIndex }], ngImport: i0, template: "<ng-content select=\"[odxListPrefix]\"></ng-content>\n<div class=\"odx-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
20
60
  __decorate([
21
61
  CSSModifier(),
22
62
  Transform(coerceBooleanProperty),
@@ -30,7 +70,7 @@ __decorate([
30
70
  ListItemComponent = __decorate([
31
71
  CSSComponent('list-item')
32
72
  ], ListItemComponent);
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListItemComponent, decorators: [{
73
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListItemComponent, decorators: [{
34
74
  type: Component,
35
75
  args: [{ standalone: true, selector: '[odxListItem]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, hostDirectives: [WithDisabledState, WithTabIndex], template: "<ng-content select=\"[odxListPrefix]\"></ng-content>\n<div class=\"odx-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n" }]
36
76
  }], propDecorators: { danger: [{
@@ -39,28 +79,37 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
39
79
  type: Input
40
80
  }] } });
41
81
 
42
- let ListComponent = class ListComponent {
82
+ var ListComponent_1;
83
+ let ListComponent = ListComponent_1 = class ListComponent extends ExpandableContainerDirective {
43
84
  constructor() {
85
+ super(...arguments);
44
86
  this.element = injectElement();
87
+ this.multiple = true;
45
88
  }
46
89
  };
47
- ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
48
- ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: ListComponent, isStandalone: true, selector: "odx-list", ngImport: i0, template: "<ng-content select=\"[odxListItem]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
49
- ListComponent = __decorate([
90
+ ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
91
+ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: ListComponent, isStandalone: true, selector: "odx-list", inputs: { multiple: "multiple" }, providers: [{ provide: EXPANDABLE_CONTAINER, useExisting: forwardRef(() => ListComponent_1) }], usesInheritance: true, ngImport: i0, template: "<ng-content select=\"[odxListItem], odx-expandable-list-item\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
92
+ __decorate([
93
+ Transform(coerceBooleanProperty),
94
+ __metadata("design:type", Object)
95
+ ], ListComponent.prototype, "multiple", void 0);
96
+ ListComponent = ListComponent_1 = __decorate([
50
97
  CSSComponent('list')
51
98
  ], ListComponent);
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListComponent, decorators: [{
99
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListComponent, decorators: [{
53
100
  type: Component,
54
- args: [{ selector: 'odx-list', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"[odxListItem]\"></ng-content>\n" }]
55
- }] });
101
+ args: [{ selector: 'odx-list', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [{ provide: EXPANDABLE_CONTAINER, useExisting: forwardRef(() => ListComponent) }], template: "<ng-content select=\"[odxListItem], odx-expandable-list-item\"></ng-content>\n" }]
102
+ }], propDecorators: { multiple: [{
103
+ type: Input
104
+ }] } });
56
105
 
57
- const modules = [ListComponent, ListItemComponent, IconComponent];
106
+ const modules = [ListComponent, ListItemComponent, ExpandableListItemComponent, IconComponent];
58
107
  class ListModule {
59
108
  }
60
- ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
61
- ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: ListModule, imports: [ListComponent, ListItemComponent, IconComponent], exports: [ListComponent, ListItemComponent, IconComponent] });
62
- ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListModule, imports: [modules] });
63
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: ListModule, decorators: [{
109
+ ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
110
+ ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: ListModule, imports: [ListComponent, ListItemComponent, ExpandableListItemComponent, IconComponent], exports: [ListComponent, ListItemComponent, ExpandableListItemComponent, IconComponent] });
111
+ ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListModule, imports: [modules] });
112
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: ListModule, decorators: [{
64
113
  type: NgModule,
65
114
  args: [{
66
115
  imports: modules,
@@ -72,5 +121,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
72
121
  * Generated bundle index. Do not edit.
73
122
  */
74
123
 
75
- export { ListComponent, ListItemComponent, ListModule };
124
+ export { ExpandableListItemComponent, ListComponent, ListItemComponent, ListModule };
76
125
  //# sourceMappingURL=odx-angular-components-list.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-list.mjs","sources":["../../../../libs/angular/components/list/src/lib/components/list-item/list-item.component.ts","../../../../libs/angular/components/list/src/lib/components/list-item/list-item.component.html","../../../../libs/angular/components/list/src/lib/list.component.ts","../../../../libs/angular/components/list/src/lib/list.component.html","../../../../libs/angular/components/list/src/lib/list.module.ts","../../../../libs/angular/components/list/src/odx-angular-components-list.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { WithDisabledState, WithTabIndex } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('list-item')\n@Component({\n standalone: true,\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[odxListItem]',\n templateUrl: './list-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [WithDisabledState, WithTabIndex],\n})\nexport class ListItemComponent {\n public static ngAcceptInputType_selected: BooleanInput;\n public static ngAcceptInputType_danger: BooleanInput;\n\n public readonly element = injectElement<HTMLElement>();\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public danger = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public selected = false;\n}\n","<ng-content select=\"[odxListPrefix]\"></ng-content>\n<div class=\"odx-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('list')\n@Component({\n selector: 'odx-list',\n standalone: true,\n templateUrl: './list.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ListComponent {\n public readonly element = injectElement();\n}\n","<ng-content select=\"[odxListItem]\"></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ListItemComponent } from './components';\nimport { ListComponent } from './list.component';\n\nconst modules = [ListComponent, ListItemComponent, IconComponent];\n\n@NgModule({\n imports: modules,\n exports: modules,\n})\nexport class ListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;AAgBa,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;QAIW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAe,CAAC;QAKhD,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;QAKf,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACzB,KAAA;;8GAfY,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAjB,iBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,iBAAiB,oNChB9B,2LAKA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;ADiBE,UAAA,CAAA;AAAC,IAAA,WAAW,EAAE;IACb,SAAS,CAAC,qBAAqB,CAAC;;AAEX,CAAA,EAAA,iBAAA,CAAA,SAAA,EAAA,QAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAEtB,UAAA,CAAA;AAAC,IAAA,WAAW,EAAE;IACb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BACE,UAAU,EAAA,UAAA,EACR,IAAI,EAED,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,sDAAA,EAAA,CAAA;;;AELjD,MAAM,OAAO,GAAG,CAAC,aAAa,EAAE,iBAAiB,EAAE,aAAa,CAAC,CAAC;MAMrD,UAAU,CAAA;;uGAAV,UAAU,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;wGAAV,UAAU,EAAA,OAAA,EAAA,CANN,aAAa,EAAE,iBAAiB,EAAE,aAAa,CAAA,EAAA,OAAA,EAAA,CAA/C,aAAa,EAAE,iBAAiB,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;AAMnD,UAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,YAHZ,OAAO,CAAA,EAAA,CAAA,CAAA;2FAGL,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AACjB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-list.mjs","sources":["../../../../libs/angular/components/list/src/lib/components/expandable-list-item/expandable-list-item.component.ts","../../../../libs/angular/components/list/src/lib/components/expandable-list-item/expandable-list-item.component.html","../../../../libs/angular/components/list/src/lib/components/list-item/list-item.component.ts","../../../../libs/angular/components/list/src/lib/components/list-item/list-item.component.html","../../../../libs/angular/components/list/src/lib/list.component.ts","../../../../libs/angular/components/list/src/lib/list.component.html","../../../../libs/angular/components/list/src/lib/list.module.ts","../../../../libs/angular/components/list/src/odx-angular-components-list.ts"],"sourcesContent":["import { transition, trigger, useAnimation } from '@angular/animations';\nimport { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, DisabledController } from '@odx/angular';\nimport { collapse, expand } from '@odx/angular/animations';\nimport { InteractiveDirective } from '@odx/angular/cdk/a11y';\nimport { ExpandableItemDirective } from '@odx/angular/cdk/expandable';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('expandable-list-item')\n@Component({\n standalone: true,\n selector: 'odx-expandable-list-item',\n templateUrl: 'expandable-list-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [DisabledController.connect()],\n imports: [InteractiveDirective, CoreModule, IconComponent],\n host: {\n '[class.odx-expandable-list-item--expanded]': 'isExpanded',\n '[class.odx-expandable-list-item--danger]': 'danger',\n '[attr.title]': 'null',\n },\n animations: [trigger('expandSlotAnimation', [transition(':enter', [useAnimation(expand)]), transition(':leave', [useAnimation(collapse)])])],\n})\nexport class ExpandableListItemComponent extends ExpandableItemDirective {\n public static ngAcceptInputType_selected: BooleanInput;\n public static ngAcceptInputType_danger: BooleanInput;\n\n private readonly disabledController = DisabledController.inject();\n public readonly element = injectElement<HTMLElement>();\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public danger = false;\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\n\n public get isExpanded(): boolean {\n return !this.isDisabled && this.expanded;\n }\n}\n","<div\n role=\"button\"\n class=\"odx-expandable-list-item__header odx-list-item\"\n [attr.tabindex]=\"isDisabled ? -1 : 0\"\n [class.is-disabled]=\"isDisabled\"\n [class.odx-list-item--danger]=\"danger\"\n [class.odx-list-item--selected]=\"isExpanded\"\n (odxCdkInteractive)=\"toggle()\"\n>\n <div class=\"odx-expandable-list-item__content\">\n <ng-content></ng-content>\n </div>\n <odx-icon name=\"chevron-down\" iconSet=\"core\" class=\"odx-expandable-list-item__expand-icon\"></odx-icon>\n</div>\n\n<div class=\"odx-expandable-list-item__slot\" @expandSlotAnimation *ngIf=\"isExpanded\">\n <ng-content select=\"odx-list\"></ng-content>\n</div>\n","import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { WithDisabledState, WithTabIndex } from '@odx/angular';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('list-item')\n@Component({\n standalone: true,\n // eslint-disable-next-line @angular-eslint/component-selector\n selector: '[odxListItem]',\n templateUrl: './list-item.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n hostDirectives: [WithDisabledState, WithTabIndex],\n})\nexport class ListItemComponent {\n public static ngAcceptInputType_selected: BooleanInput;\n public static ngAcceptInputType_danger: BooleanInput;\n\n public readonly element = injectElement<HTMLElement>();\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public danger = false;\n\n @CSSModifier()\n @Transform(coerceBooleanProperty)\n @Input()\n public selected = false;\n}\n","<ng-content select=\"[odxListPrefix]\"></ng-content>\n<div class=\"odx-list-item__content\">\n <ng-content></ng-content>\n</div>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n","import { coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, forwardRef, Input, ViewEncapsulation } from '@angular/core';\nimport { ExpandableContainerDirective, EXPANDABLE_CONTAINER } from '@odx/angular/cdk/expandable';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement, Transform } from '@odx/angular/utils';\n\n@CSSComponent('list')\n@Component({\n selector: 'odx-list',\n standalone: true,\n templateUrl: './list.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [{ provide: EXPANDABLE_CONTAINER, useExisting: forwardRef(() => ListComponent) }],\n})\nexport class ListComponent extends ExpandableContainerDirective {\n public readonly element = injectElement();\n\n @Transform(coerceBooleanProperty)\n @Input()\n public override multiple = true;\n}\n","<ng-content select=\"[odxListItem], odx-expandable-list-item\"></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ExpandableListItemComponent, ListItemComponent } from './components';\nimport { ListComponent } from './list.component';\n\nconst modules = [ListComponent, ListItemComponent, ExpandableListItemComponent, IconComponent];\n\n@NgModule({\n imports: modules,\n exports: modules,\n})\nexport class ListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AA2BO,IAAM,2BAA2B,GAAjC,MAAM,2BAA4B,SAAQ,uBAAuB,CAAA;AAAjE,IAAA,WAAA,GAAA;;AAIY,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;QAClD,IAAO,CAAA,OAAA,GAAG,aAAa,EAAe,CAAC;QAKhD,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;AASvB,KAAA;AAPC,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;KAC5C;AAED,IAAA,IAAW,UAAU,GAAA;QACnB,OAAO,CAAC,IAAI,CAAC,UAAU,IAAI,IAAI,CAAC,QAAQ,CAAC;KAC1C;;wHAlBU,2BAA2B,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;4GAA3B,2BAA2B,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,0BAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UA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iB,EAAE,2BAA2B,EAAE,aAAa,CAAA,EAAA,CAAA,CAAA;AAMhF,UAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,UAAU,YAHZ,OAAO,CAAA,EAAA,CAAA,CAAA;2FAGL,UAAU,EAAA,UAAA,EAAA,CAAA;kBAJtB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,OAAO;AACjB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -2,17 +2,19 @@ import { __decorate, __metadata } from 'tslib';
2
2
  import { trigger, transition, useAnimation } from '@angular/animations';
3
3
  import * as i0 from '@angular/core';
4
4
  import { inject, Renderer2, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
5
- import { WindowRef, CoreModule } from '@odx/angular';
5
+ import { DisabledController, WindowRef, CoreModule } from '@odx/angular';
6
6
  import { fadeIn, fadeOut } from '@odx/angular/animations';
7
7
  import { CircularProgressComponent } from '@odx/angular/components/circular-progress';
8
8
  import { CSSModifier, CSSComponent } from '@odx/angular/internal';
9
9
  import { injectElement, getInjector, px, deferFn, Transform } from '@odx/angular/utils';
10
- import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
10
+ import { coerceBooleanProperty, coerceNumberProperty } from '@angular/cdk/coercion';
11
11
  import { DynamicViewService } from '@odx/angular/cdk/dynamic-view';
12
12
 
13
13
  const LOADING_SPINNER_PARENT_CLASS = 'odx-loading-spinner-parent';
14
14
  class LoadingSpinnerDirective {
15
15
  constructor() {
16
+ this.disabledController = DisabledController.inject();
17
+ this.hasDisabledControllerOnHost = !!inject(DisabledController, { optional: true });
16
18
  this.dynamicViewService = inject(DynamicViewService);
17
19
  this.hostElement = injectElement();
18
20
  this.renderer = inject(Renderer2);
@@ -22,6 +24,10 @@ class LoadingSpinnerDirective {
22
24
  this.autoColor = false;
23
25
  }
24
26
  set isLoading(value) {
27
+ const isLoading = coerceBooleanProperty(value);
28
+ if (!this.hasDisabledControllerOnHost) {
29
+ this.disabledController?.setDisabledState(isLoading);
30
+ }
25
31
  if (value) {
26
32
  this.createSpinner();
27
33
  }
@@ -65,8 +71,8 @@ class LoadingSpinnerDirective {
65
71
  return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';
66
72
  }
67
73
  }
68
- LoadingSpinnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
69
- LoadingSpinnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: LoadingSpinnerDirective, isStandalone: true, selector: "[odxLoadingSpinner]", inputs: { autoColor: ["odxLoadingSpinnerAutoColor", "autoColor"], isLoading: ["odxLoadingSpinner", "isLoading"], minHeight: ["odxLoadingSpinnerMinHeight", "minHeight"] }, ngImport: i0 });
74
+ LoadingSpinnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
75
+ LoadingSpinnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: LoadingSpinnerDirective, isStandalone: true, selector: "[odxLoadingSpinner]", inputs: { autoColor: ["odxLoadingSpinnerAutoColor", "autoColor"], isLoading: ["odxLoadingSpinner", "isLoading"], minHeight: ["odxLoadingSpinnerMinHeight", "minHeight"] }, providers: [DisabledController.connect()], ngImport: i0 });
70
76
  __decorate([
71
77
  Transform(coerceBooleanProperty),
72
78
  __metadata("design:type", Object)
@@ -76,11 +82,12 @@ __decorate([
76
82
  __metadata("design:type", Object),
77
83
  __metadata("design:paramtypes", [Object])
78
84
  ], LoadingSpinnerDirective.prototype, "minHeight", null);
79
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerDirective, decorators: [{
85
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerDirective, decorators: [{
80
86
  type: Directive,
81
87
  args: [{
82
- selector: '[odxLoadingSpinner]',
83
88
  standalone: true,
89
+ selector: '[odxLoadingSpinner]',
90
+ providers: [DisabledController.connect()],
84
91
  }]
85
92
  }], propDecorators: { autoColor: [{
86
93
  type: Input,
@@ -121,8 +128,8 @@ let LoadingSpinnerComponent = class LoadingSpinnerComponent {
121
128
  return null;
122
129
  }
123
130
  };
124
- LoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
125
- LoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: LoadingSpinnerComponent, isStandalone: true, selector: "odx-loading-spinner", inputs: { autoColor: "autoColor" }, host: { listeners: { "@hostAnimation.done": "animationFinished($event)" }, properties: { "@hostAnimation": "true" } }, ngImport: i0, template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n", dependencies: [{ kind: "component", type: CircularProgressComponent, selector: "odx-circular-progress", inputs: ["stroke", "size", "value"] }], animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
131
+ LoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
132
+ LoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: LoadingSpinnerComponent, isStandalone: true, selector: "odx-loading-spinner", inputs: { autoColor: "autoColor" }, host: { listeners: { "@hostAnimation.done": "animationFinished($event)" }, properties: { "@hostAnimation": "true" } }, ngImport: i0, template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n", dependencies: [{ kind: "component", type: CircularProgressComponent, selector: "odx-circular-progress", inputs: ["stroke", "size", "value"] }], animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
126
133
  __decorate([
127
134
  CSSModifier(),
128
135
  __metadata("design:type", Object)
@@ -130,7 +137,7 @@ __decorate([
130
137
  LoadingSpinnerComponent = __decorate([
131
138
  CSSComponent('loading-spinner')
132
139
  ], LoadingSpinnerComponent);
133
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
140
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
134
141
  type: Component,
135
142
  args: [{ standalone: true, selector: 'odx-loading-spinner', imports: [CircularProgressComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
136
143
  '[@hostAnimation]': 'true',
@@ -143,10 +150,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
143
150
  const modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];
144
151
  class LoadingSpinnerModule {
145
152
  }
146
- LoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
147
- LoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, LoadingSpinnerDirective], exports: [CoreModule, LoadingSpinnerComponent, LoadingSpinnerDirective] });
148
- LoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, CoreModule] });
149
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
153
+ LoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
154
+ LoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, LoadingSpinnerDirective], exports: [CoreModule, LoadingSpinnerComponent, LoadingSpinnerDirective] });
155
+ LoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, CoreModule] });
156
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
150
157
  type: NgModule,
151
158
  args: [{
152
159
  imports: modules,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-loading-spinner.mjs","sources":["../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.directive.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.html","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.module.ts","../../../../libs/angular/components/loading-spinner/src/odx-angular-components-loading-spinner.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { Directive, inject, Input, Renderer2 } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { DynamicViewRef, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { deferFn, getInjector, injectElement, px, Transform } from '@odx/angular/utils';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\n\nconst LOADING_SPINNER_PARENT_CLASS = 'odx-loading-spinner-parent';\n\n@Directive({\n selector: '[odxLoadingSpinner]',\n standalone: true,\n})\nexport class LoadingSpinnerDirective {\n public static ngAcceptInputType_autoColor: BooleanInput;\n public static ngAcceptInputType_isLoading: BooleanInput;\n public static ngAcceptInputType_minHeight: NumberInput;\n\n private readonly dynamicViewService = inject(DynamicViewService);\n private readonly hostElement = injectElement();\n private readonly renderer = inject(Renderer2);\n private readonly injector = getInjector();\n private readonly windowRef = inject(WindowRef);\n\n private parentMinHeight?: number;\n private viewRef: DynamicViewRef<typeof LoadingSpinnerComponent> | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input('odxLoadingSpinnerAutoColor')\n public autoColor = false;\n\n @Input('odxLoadingSpinner')\n public set isLoading(value: boolean | null | undefined) {\n if (value) {\n this.createSpinner();\n } else {\n this.removeSpinner();\n }\n }\n public get isLoading(): boolean {\n return this.viewRef !== null;\n }\n\n @Transform(coerceNumberProperty)\n @Input('odxLoadingSpinnerMinHeight')\n public set minHeight(value: unknown) {\n this.parentMinHeight = coerceNumberProperty(value);\n this.setParentHeight();\n }\n\n public resetParentStyles(): void {\n this.renderer.removeClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);\n this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'position');\n }\n\n private setParentHeight(): void {\n this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', this.parentMinHeight ? px(this.parentMinHeight) : 'inherit');\n }\n\n private createSpinner(): void {\n this.renderer.addClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);\n this.setParentHeight();\n if (this.hasStaticPosition()) {\n this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');\n }\n this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, {\n injector: this.injector,\n context: { autoColor: this.autoColor },\n host: this.hostElement.nativeElement,\n });\n deferFn(() => (this.hostElement.nativeElement.scrollTop = 0));\n }\n\n private removeSpinner(): void {\n this.viewRef?.destroy();\n this.viewRef = null;\n }\n\n private hasStaticPosition(): boolean {\n return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';\n }\n}\n","import { AnimationEvent, transition, trigger, useAnimation } from '@angular/animations';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { fadeIn, fadeOut } from '@odx/angular/animations';\nimport { CircularProgressComponent } from '@odx/angular/components/circular-progress';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { LoadingSpinnerDirective } from './loading-spinner.directive';\n\nconst BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';\n\n@CSSComponent('loading-spinner')\n@Component({\n standalone: true,\n selector: 'odx-loading-spinner',\n templateUrl: './loading-spinner.component.html',\n imports: [CircularProgressComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[@hostAnimation]': 'true',\n '(@hostAnimation.done)': 'animationFinished($event)',\n },\n animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])],\n})\nexport class LoadingSpinnerComponent implements OnInit {\n private readonly host = inject(LoadingSpinnerDirective);\n private readonly windowRef = inject(WindowRef);\n\n protected backgroundColor: string | null = null;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n @Input()\n public autoColor = false;\n\n public ngOnInit(): void {\n this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);\n }\n\n protected animationFinished({ toState }: AnimationEvent): void {\n if (toState === 'void') {\n this.host.resetParentStyles();\n }\n }\n\n private resolveBackgroundColor(element: HTMLElement): string | null {\n const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);\n if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {\n return backgroundColor;\n }\n if (element.parentElement) {\n return this.resolveBackgroundColor(element.parentElement);\n }\n return null;\n }\n}\n","<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\nimport { LoadingSpinnerDirective } from './loading-spinner.directive';\n\nconst modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class LoadingSpinnerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAM,4BAA4B,GAAG,4BAA4B,CAAC;MAMrD,uBAAuB,CAAA;AAJpC,IAAA,WAAA,GAAA;AASmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAChD,IAAW,CAAA,WAAA,GAAG,aAAa,EAAE,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7B,IAAQ,CAAA,QAAA,GAAG,WAAW,EAAE,CAAC;AACzB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS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BAAuB,aAIrD,UAAU,EAJL,uBAAuB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;kHAMpD,oBAAoB,EAAA,OAAA,EAAA,CANhB,uBAAuB,EAI5B,UAAU,CAAA,EAAA,CAAA,CAAA;2FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-loading-spinner.mjs","sources":["../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.directive.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.ts","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.component.html","../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.module.ts","../../../../libs/angular/components/loading-spinner/src/odx-angular-components-loading-spinner.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { Directive, inject, Input, Renderer2 } from '@angular/core';\nimport { DisabledController, WindowRef } from '@odx/angular';\nimport { DynamicViewRef, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { deferFn, getInjector, injectElement, px, Transform } from '@odx/angular/utils';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\n\nconst LOADING_SPINNER_PARENT_CLASS = 'odx-loading-spinner-parent';\n\n@Directive({\n standalone: true,\n selector: '[odxLoadingSpinner]',\n providers: [DisabledController.connect()],\n})\nexport class LoadingSpinnerDirective {\n public static ngAcceptInputType_autoColor: BooleanInput;\n public static ngAcceptInputType_isLoading: BooleanInput;\n public static ngAcceptInputType_minHeight: NumberInput;\n\n private readonly disabledController = DisabledController.inject();\n private readonly hasDisabledControllerOnHost = !!inject(DisabledController, { optional: true });\n private readonly dynamicViewService = inject(DynamicViewService);\n private readonly hostElement = injectElement();\n private readonly renderer = inject(Renderer2);\n private readonly injector = getInjector();\n private readonly windowRef = inject(WindowRef);\n\n private parentMinHeight?: number;\n private viewRef: DynamicViewRef<typeof LoadingSpinnerComponent> | null = null;\n\n @Transform(coerceBooleanProperty)\n @Input('odxLoadingSpinnerAutoColor')\n public autoColor = false;\n\n @Input('odxLoadingSpinner')\n public set isLoading(value: unknown) {\n const isLoading = coerceBooleanProperty(value);\n if (!this.hasDisabledControllerOnHost) {\n this.disabledController?.setDisabledState(isLoading);\n }\n if (value) {\n this.createSpinner();\n } else {\n this.removeSpinner();\n }\n }\n public get isLoading(): boolean {\n return this.viewRef !== null;\n }\n\n @Transform(coerceNumberProperty)\n @Input('odxLoadingSpinnerMinHeight')\n public set minHeight(value: unknown) {\n this.parentMinHeight = coerceNumberProperty(value);\n this.setParentHeight();\n }\n\n public resetParentStyles(): void {\n this.renderer.removeClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);\n this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'position');\n }\n\n private setParentHeight(): void {\n this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', this.parentMinHeight ? px(this.parentMinHeight) : 'inherit');\n }\n\n private createSpinner(): void {\n this.renderer.addClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);\n this.setParentHeight();\n if (this.hasStaticPosition()) {\n this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');\n }\n this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, {\n injector: this.injector,\n context: { autoColor: this.autoColor },\n host: this.hostElement.nativeElement,\n });\n deferFn(() => (this.hostElement.nativeElement.scrollTop = 0));\n }\n\n private removeSpinner(): void {\n this.viewRef?.destroy();\n this.viewRef = null;\n }\n\n private hasStaticPosition(): boolean {\n return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';\n }\n}\n","import { AnimationEvent, transition, trigger, useAnimation } from '@angular/animations';\nimport { ChangeDetectionStrategy, Component, inject, Input, OnInit, ViewEncapsulation } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { fadeIn, fadeOut } from '@odx/angular/animations';\nimport { CircularProgressComponent } from '@odx/angular/components/circular-progress';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { LoadingSpinnerDirective } from './loading-spinner.directive';\n\nconst BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';\n\n@CSSComponent('loading-spinner')\n@Component({\n standalone: true,\n selector: 'odx-loading-spinner',\n templateUrl: './loading-spinner.component.html',\n imports: [CircularProgressComponent],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[@hostAnimation]': 'true',\n '(@hostAnimation.done)': 'animationFinished($event)',\n },\n animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])],\n})\nexport class LoadingSpinnerComponent implements OnInit {\n private readonly host = inject(LoadingSpinnerDirective);\n private readonly windowRef = inject(WindowRef);\n\n protected backgroundColor: string | null = null;\n\n public readonly element = injectElement();\n\n @CSSModifier()\n @Input()\n public autoColor = false;\n\n public ngOnInit(): void {\n this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);\n }\n\n protected animationFinished({ toState }: AnimationEvent): void {\n if (toState === 'void') {\n this.host.resetParentStyles();\n }\n }\n\n private resolveBackgroundColor(element: HTMLElement): string | null {\n const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);\n if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {\n return backgroundColor;\n }\n if (element.parentElement) {\n return this.resolveBackgroundColor(element.parentElement);\n }\n return null;\n }\n}\n","<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n","import { NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\nimport { LoadingSpinnerDirective } from './loading-spinner.directive';\n\nconst modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];\n\n@NgModule({\n imports: modules,\n exports: [CoreModule, ...modules],\n})\nexport class LoadingSpinnerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;AAOA,MAAM,4BAA4B,GAAG,4BAA4B,CAAC;MAOrD,uBAAuB,CAAA;AALpC,IAAA,WAAA,GAAA;AAUmB,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;AACjD,QAAA,IAAA,CAAA,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC,kBAAkB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC,CAAC;AAC/E,QAAA,IAAA,CAAA,kBAAkB,GAAG,MAAM,CAAC,kBAAkB,CAAC,CAAC;QAChD,IAAW,CAAA,WAAA,GAAG,aAAa,EAAE,CAAC;AAC9B,QAAA,IAAA,CAAA,QAAQ,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAC7B,IAAQ,CAAA,QAAA,GAAG,WAAW,EAAE,CAAC;AACzB,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,SAAS,CAAC,CAAC;QAGvC,IAAO,CAAA,OAAA,GAA0D,IAAI,CAAC;QAIvE,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;AAyD1B,KAAA;IAvDC,IACW,SAAS,CAAC,KAAc,EAAA;AACjC,QAAA,MAAM,SAAS,GAAG,qBAAqB,CAAC,KAAK,CAAC,CAAC;AAC/C,QAAA,IAAI,CAAC,IAAI,CAAC,2BAA2B,EAAE;AACrC,YAAA,IAAI,CAAC,kBAAkB,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;AACtD,SAAA;AACD,QAA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AA,CAAA;2FAET,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAJhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,OAAO;AAChB,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,GAAG,OAAO,CAAC;AAClC,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -18,22 +18,24 @@ const LogoVariant = {
18
18
  let LogoDirective = class LogoDirective {
19
19
  constructor() {
20
20
  this.element = injectElement();
21
+ this.size = LogoSize.SMALL;
22
+ this.variant = LogoVariant.DEFAULT;
21
23
  }
22
24
  };
23
- LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: LogoDirective, isStandalone: true, selector: "odx-logo", inputs: { size: "size", variant: "variant" }, host: { attributes: { "translate": "no", "role": "img" }, properties: { "class.notranslate": "true", "attr.aria-label": "\"Dr\u00E4ger logo\"", "attr.aria-roledescription": "\"logo\"" } }, ngImport: i0 });
25
+ LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
26
+ LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: LogoDirective, isStandalone: true, selector: "odx-logo", inputs: { size: "size", variant: "variant" }, host: { attributes: { "translate": "no", "role": "img" }, properties: { "class.notranslate": "true", "attr.aria-label": "\"Dr\u00E4ger logo\"", "attr.aria-roledescription": "\"logo\"" } }, ngImport: i0 });
25
27
  __decorate([
26
- CSSModifier({ default: LogoSize.SMALL }),
28
+ CSSModifier(),
27
29
  __metadata("design:type", String)
28
30
  ], LogoDirective.prototype, "size", void 0);
29
31
  __decorate([
30
- CSSModifier({ default: LogoVariant.DEFAULT }),
32
+ CSSModifier(),
31
33
  __metadata("design:type", String)
32
34
  ], LogoDirective.prototype, "variant", void 0);
33
35
  LogoDirective = __decorate([
34
36
  CSSComponent('logo')
35
37
  ], LogoDirective);
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: LogoDirective, decorators: [{
38
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: LogoDirective, decorators: [{
37
39
  type: Directive,
38
40
  args: [{
39
41
  selector: 'odx-logo',
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-logo.mjs","sources":["../../../../libs/angular/components/logo/src/models/logo-size.ts","../../../../libs/angular/components/logo/src/models/logo-variant.ts","../../../../libs/angular/components/logo/src/logo.directive.ts","../../../../libs/angular/components/logo/src/odx-angular-components-logo.ts"],"sourcesContent":["export type LogoSize = typeof LogoSize[keyof typeof LogoSize];\n\nexport const LogoSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","export type LogoVariant = typeof LogoVariant[keyof typeof LogoVariant];\n\nexport const LogoVariant = {\n DEFAULT: 'default',\n INVERSE: 'inverse',\n} as const;\n","import { Directive, Input } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { LogoSize, LogoVariant } from './models';\n\n@CSSComponent('logo')\n@Directive({\n selector: 'odx-logo',\n standalone: true,\n host: {\n '[class.notranslate]': 'true',\n '[attr.aria-label]': '\"Dräger logo\"',\n '[attr.aria-roledescription]': '\"logo\"',\n translate: 'no',\n role: 'img',\n },\n})\nexport class LogoDirective {\n public readonly element = injectElement();\n\n @CSSModifier({ default: LogoSize.SMALL })\n @Input()\n public size!: LogoSize;\n\n @CSSModifier({ default: LogoVariant.DEFAULT })\n @Input()\n public variant!: LogoVariant;\n}\n","/**\n * Generated bundle index. Do not edit.\n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AAM,CAAC;AAYR,CAAA,EAAA,aAAa,CAUzB,CAAA;2FAVY,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,MAAM;AAC7B,wBAAA,mBAAmB,EAAE,eAAe;AACpC,wBAAA,6BAA6B,EAAE,QAAQ;AACvC,wBAAA,SAAS,EAAE,IAAI;AACf,wBAAA,IAAI,EAAE,KAAK;AACZ,qBAAA;AACF,iBAAA,CAAA;8BAMQ,IAAI,EAAA,CAAA;sBADV,KAAK;gBAKC,OAAO,EAAA,CAAA;sBADb,KAAK;;;ACzBR;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-logo.mjs","sources":["../../../../libs/angular/components/logo/src/models/logo-size.ts","../../../../libs/angular/components/logo/src/models/logo-variant.ts","../../../../libs/angular/components/logo/src/logo.directive.ts","../../../../libs/angular/components/logo/src/odx-angular-components-logo.ts"],"sourcesContent":["export type LogoSize = typeof LogoSize[keyof typeof LogoSize];\n\nexport const LogoSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","export type LogoVariant = typeof LogoVariant[keyof typeof LogoVariant];\n\nexport const LogoVariant = {\n DEFAULT: 'default',\n INVERSE: 'inverse',\n} as const;\n","import { Directive, Input } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { LogoSize, LogoVariant } from './models';\n\n@CSSComponent('logo')\n@Directive({\n selector: 'odx-logo',\n standalone: true,\n host: {\n '[class.notranslate]': 'true',\n '[attr.aria-label]': '\"Dräger logo\"',\n '[attr.aria-roledescription]': '\"logo\"',\n translate: 'no',\n role: 'img',\n },\n})\nexport class LogoDirective {\n public readonly element = injectElement();\n\n @CSSModifier()\n @Input()\n public size: LogoSize = LogoSize.SMALL;\n\n @CSSModifier()\n @Input()\n public variant: LogoVariant = LogoVariant.DEFAULT;\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;AAEa,MAAA,QAAQ,GAAG;AACtB,IAAA,KAAK,EAAE,OAAO;AACd,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,KAAK,EAAE,OAAO;;;ACHH,MAAA,WAAW,GAAG;AACzB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;;;ACaP,IAAA,aAAa,GAAnB,MAAM,aAAa,CAAA;AAAnB,IAAA,WAAA,GAAA;QACW,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;AAInC,QAAA,IAAA,CAAA,IAAI,GAAa,QAAQ,CAAC,KAAK,CAAC;AAIhC,QAAA,IAAA,CAAA,OAAO,GAAgB,WAAW,CAAC,OAAO,CAAC;AACnD,KAAA;;0GAVY,aAAa,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;8FAAb,aAAa,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,UAAA,EAAA,MAAA,EAAA,EAAA,IAAA,EAAA,MAAA,EAAA,OAAA,EAAA,SAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAAA,EAAA,EAAA,WAAA,EAAA,IAAA,EAAA,MAAA,EAAA,KAAA,EAAA,EAAA,UAAA,EAAA,EAAA,mBAAA,EAAA,MAAA,EAAA,iBAAA,EAAA,sBAAA,EAAA,2BAAA,EAAA,UAAA,EAAA,EAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA,CAAA;AAGxB,UAAA,CAAA;AAAC,IAAA,WAAW,EAAE;;AAEyB,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,MAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AAEvC,UAAA,CAAA;AAAC,IAAA,WAAW,EAAE;;AAEoC,CAAA,EAAA,aAAA,CAAA,SAAA,EAAA,SAAA,EAAA,KAAA,CAAA,CAAA,CAAA;AATvC,aAAa,GAAA,UAAA,CAAA;IAZzB,YAAY,CAAC,MAAM,CAAC;AAYR,CAAA,EAAA,aAAa,CAUzB,CAAA;2FAVY,aAAa,EAAA,UAAA,EAAA,CAAA;kBAXzB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,UAAU;AACpB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,IAAI,EAAE;AACJ,wBAAA,qBAAqB,EAAE,MAAM;AAC7B,wBAAA,mBAAmB,EAAE,eAAe;AACpC,wBAAA,6BAA6B,EAAE,QAAQ;AACvC,wBAAA,SAAS,EAAE,IAAI;AACf,wBAAA,IAAI,EAAE,KAAK;AACZ,qBAAA;AACF,iBAAA,CAAA;8BAMQ,IAAI,EAAA,CAAA;sBADV,KAAK;gBAKC,OAAO,EAAA,CAAA;sBADb,KAAK;;;ACzBR;;AAEG;;;;"}
@@ -1,13 +1,13 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Injectable, inject, Directive, HostListener, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, Output, NgModule } from '@angular/core';
3
+ import { Injectable, inject, Directive, HostListener, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, Output, NgModule } from '@angular/core';
4
4
  import { CSSComponent } from '@odx/angular/internal';
5
5
  import { isBoolean, injectElement, Transform } from '@odx/angular/utils';
6
6
  import { BehaviorSubject, distinctUntilChanged, shareReplay } from 'rxjs';
7
7
  import { coerceBooleanProperty } from '@angular/cdk/coercion';
8
8
  import { RouterLinkActive } from '@angular/router';
9
- import * as i1 from '@odx/angular';
10
- import { WithDisabledState, WithTabIndex, CoreModule } from '@odx/angular';
9
+ import * as i1$1 from '@odx/angular';
10
+ import { CoreModule, WithDisabledState, WithTabIndex } from '@odx/angular';
11
11
  import { trigger, transition, useAnimation } from '@angular/animations';
12
12
  import { slideInLeft, slideOutLeft, fadeIn, fadeOut } from '@odx/angular/animations';
13
13
  import { A11yModule } from '@odx/angular/cdk/a11y';
@@ -18,7 +18,7 @@ import { ButtonComponent } from '@odx/angular/components/button';
18
18
  import * as i6 from '@odx/angular/components/icon';
19
19
  import { IconComponent } from '@odx/angular/components/icon';
20
20
  import { LogoDirective } from '@odx/angular/components/logo';
21
- import * as i1$1 from '@angular/common';
21
+ import * as i1 from '@angular/common';
22
22
  import * as i3 from '@angular/cdk/a11y';
23
23
  import { LinkDirective } from '@odx/angular/components/link';
24
24
 
@@ -48,9 +48,9 @@ class MainMenuService {
48
48
  }
49
49
  }
50
50
  }
51
- MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
- MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuService, providedIn: 'root' });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuService, decorators: [{
51
+ MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
+ MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuService, providedIn: 'root' });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuService, decorators: [{
54
54
  type: Injectable,
55
55
  args: [{ providedIn: 'root' }]
56
56
  }] });
@@ -64,12 +64,12 @@ let MainMenuButtonDirective = class MainMenuButtonDirective {
64
64
  this.mainMenuService.toggle();
65
65
  }
66
66
  };
67
- MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
- MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
67
+ MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
+ MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
69
69
  MainMenuButtonDirective = __decorate([
70
70
  CSSComponent('main-menu-button')
71
71
  ], MainMenuButtonDirective);
72
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
73
73
  type: Directive,
74
74
  args: [{
75
75
  selector: 'button[odxMainMenuButton]',
@@ -80,37 +80,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
80
80
  args: ['click']
81
81
  }] } });
82
82
 
83
- let MainMenuItemDirective = class MainMenuItemDirective {
84
- constructor() {
85
- this.routerLinkActive = inject(RouterLinkActive, { optional: true });
86
- this.element = injectElement();
87
- this.isSelected = false;
88
- }
89
- };
90
- MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
91
- MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.1.4", type: MainMenuItemDirective, isStandalone: true, selector: "[odxMainMenuItem]", inputs: { isSelected: "isSelected" }, host: { properties: { "class.is-selected": "isSelected || routerLinkActive?.isActive", "attr.role": "\"button\"" } }, hostDirectives: [{ directive: i1.WithDisabledState }, { directive: i1.WithTabIndex }], ngImport: i0 });
92
- __decorate([
93
- Transform(coerceBooleanProperty),
94
- __metadata("design:type", Object)
95
- ], MainMenuItemDirective.prototype, "isSelected", void 0);
96
- MainMenuItemDirective = __decorate([
97
- CSSComponent('main-menu-item')
98
- ], MainMenuItemDirective);
99
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuItemDirective, decorators: [{
100
- type: Directive,
101
- args: [{
102
- selector: '[odxMainMenuItem]',
103
- standalone: true,
104
- hostDirectives: [WithDisabledState, WithTabIndex],
105
- host: {
106
- '[class.is-selected]': 'isSelected || routerLinkActive?.isActive',
107
- '[attr.role]': '"button"',
108
- },
109
- }]
110
- }], propDecorators: { isSelected: [{
111
- type: Input
112
- }] } });
113
-
114
83
  let MainMenuComponent = class MainMenuComponent {
115
84
  constructor() {
116
85
  this.mainMenuService = inject(MainMenuService);
@@ -129,22 +98,22 @@ let MainMenuComponent = class MainMenuComponent {
129
98
  this.mainMenuService.close();
130
99
  }
131
100
  };
132
- MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
133
- MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.1.4", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keyup.esc": "close()" }, properties: { "class.is-open": "isOpen" } }, ngImport: i0, template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1$1.AsyncPipe, name: "async" }, { kind: "directive", type: i1.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "directive", type: i3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "ngmodule", type: AreaHeaderModule }, { kind: "component", type: i4.AreaHeaderComponent, selector: "odx-area-header", inputs: ["size"] }, { kind: "directive", type: i4.AreaHeaderSubtitleDirective, selector: "odx-area-header-subtitle" }, { kind: "component", type: i5.ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: i6.IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: LogoDirective, selector: "odx-logo", inputs: ["size", "variant"] }], animations: [
101
+ MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
102
+ MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keyup.esc": "close()" }, properties: { "class.is-open": "isOpen" } }, ngImport: i0, template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\" size=\"large\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "directive", type: i1$1.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { kind: "directive", type: i3.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "ngmodule", type: AreaHeaderModule }, { kind: "component", type: i4.AreaHeaderComponent, selector: "odx-area-header", inputs: ["size"] }, { kind: "directive", type: i4.AreaHeaderSubtitleDirective, selector: "odx-area-header-subtitle" }, { kind: "component", type: i5.ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: i6.IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name", "iconSet"] }, { kind: "directive", type: LogoDirective, selector: "odx-logo", inputs: ["size", "variant"] }], animations: [
134
103
  trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
135
104
  trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
136
105
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
137
106
  MainMenuComponent = __decorate([
138
107
  CSSComponent('main-menu')
139
108
  ], MainMenuComponent);
140
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuComponent, decorators: [{
109
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuComponent, decorators: [{
141
110
  type: Component,
142
111
  args: [{ selector: 'odx-main-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective], standalone: true, host: {
143
112
  '[class.is-open]': 'isOpen',
144
113
  }, animations: [
145
114
  trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
146
115
  trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
147
- ], template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n" }]
116
+ ], template: "<aside @menuAnimation class=\"odx-main-menu__inner\" cdkTrapFocus cdkTrapFocusAutoCapture *ngIf=\"menuOpen | async\">\n <div class=\"odx-main-menu__actions\">\n <button class=\"odx-main-menu__close\" odxButton disabled=\"false\" (click)=\"close()\">\n <odx-icon name=\"close\" iconSet=\"core\"></odx-icon>\n </button>\n </div>\n <odx-area-header class=\"odx-main-menu__header\" size=\"large\">\n {{ title }}\n <odx-area-header-subtitle *ngIf=\"subtitle\">\n {{ subtitle }}\n </odx-area-header-subtitle>\n </odx-area-header>\n <nav class=\"odx-main-menu__content\">\n <ng-content></ng-content>\n </nav>\n <div class=\"odx-main-menu__info\">\n <ng-content select=\"[odxLink]\"></ng-content>\n </div>\n <div class=\"odx-main-menu__footer\">\n <odx-logo variant=\"inverse\"></odx-logo>\n <p class=\"odx-text odx-text--small\" *ngIf=\"copyright\">\n {{ copyright }}\n </p>\n </div>\n</aside>\n<div @overlayAnimation class=\"odx-main-menu__overlay\" (click)=\"close()\" *ngIf=\"menuOpen | async\"></div>\n" }]
148
117
  }], propDecorators: { title: [{
149
118
  type: Input
150
119
  }], subtitle: [{
@@ -160,13 +129,51 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImpor
160
129
  args: ['window:keyup.esc']
161
130
  }] } });
162
131
 
132
+ let MainMenuItemDirective = class MainMenuItemDirective {
133
+ constructor() {
134
+ this.mainMenu = inject(MainMenuComponent, { optional: true });
135
+ this.routerLinkActive = inject(RouterLinkActive, { optional: true });
136
+ this.element = injectElement();
137
+ this.isSelected = false;
138
+ }
139
+ onClick() {
140
+ this.mainMenu?.close();
141
+ }
142
+ };
143
+ MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
144
+ MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.2.8", type: MainMenuItemDirective, isStandalone: true, selector: "[odxMainMenuItem]", inputs: { isSelected: "isSelected" }, host: { listeners: { "click": "onClick()" }, properties: { "class.is-selected": "isSelected || routerLinkActive?.isActive", "attr.role": "\"button\"" } }, hostDirectives: [{ directive: i1$1.WithDisabledState }, { directive: i1$1.WithTabIndex }], ngImport: i0 });
145
+ __decorate([
146
+ Transform(coerceBooleanProperty),
147
+ __metadata("design:type", Object)
148
+ ], MainMenuItemDirective.prototype, "isSelected", void 0);
149
+ MainMenuItemDirective = __decorate([
150
+ CSSComponent('main-menu-item')
151
+ ], MainMenuItemDirective);
152
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuItemDirective, decorators: [{
153
+ type: Directive,
154
+ args: [{
155
+ selector: '[odxMainMenuItem]',
156
+ standalone: true,
157
+ hostDirectives: [WithDisabledState, WithTabIndex],
158
+ host: {
159
+ '[class.is-selected]': 'isSelected || routerLinkActive?.isActive',
160
+ '[attr.role]': '"button"',
161
+ },
162
+ }]
163
+ }], propDecorators: { isSelected: [{
164
+ type: Input
165
+ }], onClick: [{
166
+ type: HostListener,
167
+ args: ['click']
168
+ }] } });
169
+
163
170
  const modules = [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];
164
171
  class MainMenuModule {
165
172
  }
166
- MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
167
- MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.1.4", ngImport: i0, type: MainMenuModule, imports: [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective], exports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective] });
168
- MainMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
169
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.1.4", ngImport: i0, type: MainMenuModule, decorators: [{
173
+ MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
174
+ MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.8", ngImport: i0, type: MainMenuModule, imports: [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective], exports: [CoreModule, LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective] });
175
+ MainMenuModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: MainMenuModule, decorators: [{
170
177
  type: NgModule,
171
178
  args: [{
172
179
  imports: modules,