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

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 (358) hide show
  1. package/cdk/connected-overlay/README.md +3 -0
  2. package/cdk/connected-overlay/index.d.ts +3 -0
  3. package/cdk/connected-overlay/lib/connected-overlay.component.d.ts +28 -0
  4. package/cdk/connected-overlay/lib/connected-overlay.service.d.ts +10 -0
  5. package/cdk/connected-overlay/lib/helpers/compute-overlay-position.d.ts +3 -0
  6. package/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.d.ts +2 -0
  7. package/cdk/connected-overlay/lib/helpers/get-overlay-side.d.ts +2 -0
  8. package/cdk/connected-overlay/lib/helpers/index.d.ts +3 -0
  9. package/cdk/connected-overlay/lib/models/connected-overlay-options.d.ts +23 -0
  10. package/cdk/connected-overlay/lib/models/connected-overlay-ref.d.ts +12 -0
  11. package/cdk/connected-overlay/lib/models/index.d.ts +2 -0
  12. package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +1 -1
  13. package/components/circular-progress/lib/circular-progress.component.d.ts +1 -0
  14. package/components/dropdown/README.md +3 -0
  15. package/components/dropdown/index.d.ts +3 -0
  16. package/components/dropdown/lib/dropdown.component.d.ts +11 -0
  17. package/components/dropdown/lib/dropdown.directive.d.ts +32 -0
  18. package/components/dropdown/lib/dropdown.module.d.ts +8 -0
  19. package/components/dropdown/lib/models/dropdown-options.d.ts +3 -0
  20. package/components/dropdown/lib/models/index.d.ts +1 -0
  21. package/components/inline-message/README.md +3 -0
  22. package/components/inline-message/index.d.ts +2 -0
  23. package/components/inline-message/lib/inline-message.component.d.ts +9 -0
  24. package/components/inline-message/lib/models/inline-message-variant.d.ts +7 -0
  25. package/components/loading-spinner/lib/loading-spinner.component.d.ts +2 -2
  26. package/components/loading-spinner/lib/loading-spinner.directive.d.ts +6 -7
  27. package/components/rail-navigation/lib/rail-navigation.component.d.ts +3 -1
  28. package/components/select/README.md +3 -0
  29. package/components/select/index.d.ts +7 -0
  30. package/components/select/lib/abstract/index.d.ts +2 -0
  31. package/components/select/lib/abstract/select-control-option.d.ts +7 -0
  32. package/components/select/lib/abstract/select-control.d.ts +11 -0
  33. package/components/select/lib/components/index.d.ts +1 -0
  34. package/components/select/lib/components/option/option.component.d.ts +22 -0
  35. package/components/select/lib/directives/index.d.ts +1 -0
  36. package/components/select/lib/directives/select-search-field.directive.d.ts +13 -0
  37. package/components/select/lib/pipes/index.d.ts +1 -0
  38. package/components/select/lib/pipes/select-search-filter.pipe.d.ts +13 -0
  39. package/components/select/lib/select.component.d.ts +50 -0
  40. package/components/select/lib/select.module.d.ts +11 -0
  41. package/components/select/lib/select.tokens.d.ts +3 -0
  42. package/components/slider/README.md +3 -0
  43. package/components/slider/index.d.ts +1 -0
  44. package/components/slider/lib/slider.directive.d.ts +13 -0
  45. package/components/spinbox/README.md +3 -0
  46. package/components/spinbox/index.d.ts +1 -0
  47. package/components/spinbox/lib/spinbox.component.d.ts +25 -0
  48. package/components/tooltip/README.md +3 -0
  49. package/components/tooltip/index.d.ts +3 -0
  50. package/components/tooltip/lib/helpers/index.d.ts +1 -0
  51. package/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.d.ts +2 -0
  52. package/components/tooltip/lib/models/index.d.ts +3 -0
  53. package/components/tooltip/lib/models/tooltip-options.d.ts +10 -0
  54. package/components/tooltip/lib/models/tooltip-size.d.ts +7 -0
  55. package/components/tooltip/lib/models/tooltip-trigger.d.ts +1 -0
  56. package/components/tooltip/lib/tooltip.component.d.ts +12 -0
  57. package/components/tooltip/lib/tooltip.directive.d.ts +33 -0
  58. package/esm2020/animations/lib/expand.mjs +4 -4
  59. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +3 -3
  60. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +3 -3
  61. package/esm2020/cdk/connected-overlay/index.mjs +4 -0
  62. package/esm2020/cdk/connected-overlay/lib/connected-overlay.component.mjs +112 -0
  63. package/esm2020/cdk/connected-overlay/lib/connected-overlay.service.mjs +25 -0
  64. package/esm2020/cdk/connected-overlay/lib/helpers/compute-overlay-position.mjs +57 -0
  65. package/esm2020/cdk/connected-overlay/lib/helpers/get-opposite-overlay-side.mjs +13 -0
  66. package/esm2020/cdk/connected-overlay/lib/helpers/get-overlay-side.mjs +4 -0
  67. package/esm2020/cdk/connected-overlay/lib/helpers/index.mjs +4 -0
  68. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-options.mjs +10 -0
  69. package/esm2020/cdk/connected-overlay/lib/models/connected-overlay-ref.mjs +15 -0
  70. package/esm2020/cdk/connected-overlay/lib/models/index.mjs +3 -0
  71. package/esm2020/cdk/connected-overlay/odx-angular-cdk-connected-overlay.mjs +5 -0
  72. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +3 -3
  73. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +3 -3
  74. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +3 -3
  75. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +3 -3
  76. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +3 -3
  77. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +5 -3
  78. package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +4 -2
  79. package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +1 -1
  80. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +3 -3
  81. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +3 -3
  82. package/esm2020/cdk/expandable/lib/expandable.module.mjs +4 -4
  83. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +3 -3
  84. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +3 -3
  85. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +4 -4
  86. package/esm2020/components/accordion/lib/accordion.component.mjs +3 -3
  87. package/esm2020/components/accordion/lib/accordion.module.mjs +4 -4
  88. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +5 -5
  89. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +3 -3
  90. package/esm2020/components/action-group/action-group.component.mjs +3 -3
  91. package/esm2020/components/area-header/area-header.component.mjs +5 -5
  92. package/esm2020/components/area-header/area-header.module.mjs +4 -4
  93. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +3 -3
  94. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +3 -3
  95. package/esm2020/components/avatar/lib/avatar.component.mjs +3 -3
  96. package/esm2020/components/badge/lib/badge.component.mjs +3 -3
  97. package/esm2020/components/badge/lib/badge.directive.mjs +3 -3
  98. package/esm2020/components/button/lib/button.component.mjs +3 -3
  99. package/esm2020/components/button-group/lib/button-group.component.mjs +3 -3
  100. package/esm2020/components/checkbox/lib/checkbox.component.mjs +3 -3
  101. package/esm2020/components/checkbox/lib/checkbox.module.mjs +4 -4
  102. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +3 -3
  103. package/esm2020/components/chip/lib/chip.component.mjs +3 -3
  104. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +14 -7
  105. package/esm2020/components/content-box/lib/content-box.component.mjs +3 -3
  106. package/esm2020/components/content-box/lib/content-box.module.mjs +4 -4
  107. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +3 -3
  108. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +3 -3
  109. package/esm2020/components/dropdown/index.mjs +4 -0
  110. package/esm2020/components/dropdown/lib/dropdown.component.mjs +31 -0
  111. package/esm2020/components/dropdown/lib/dropdown.directive.mjs +123 -0
  112. package/esm2020/components/dropdown/lib/dropdown.module.mjs +18 -0
  113. package/esm2020/components/dropdown/lib/models/dropdown-options.mjs +7 -0
  114. package/esm2020/components/dropdown/lib/models/index.mjs +2 -0
  115. package/esm2020/components/dropdown/odx-angular-components-dropdown.mjs +5 -0
  116. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +3 -3
  117. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +3 -3
  118. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +3 -3
  119. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +3 -3
  120. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +3 -3
  121. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +3 -3
  122. package/esm2020/components/form-field/lib/directives/form.directive.mjs +3 -3
  123. package/esm2020/components/form-field/lib/form-field.component.mjs +3 -3
  124. package/esm2020/components/form-field/lib/form-field.module.mjs +4 -4
  125. package/esm2020/components/form-field/lib/form-field.service.mjs +3 -3
  126. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +3 -3
  127. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +3 -3
  128. package/esm2020/components/header/lib/directives/header-title.directive.mjs +3 -3
  129. package/esm2020/components/header/lib/header.component.mjs +3 -3
  130. package/esm2020/components/header/lib/header.module.mjs +4 -4
  131. package/esm2020/components/icon/lib/icon.component.mjs +3 -3
  132. package/esm2020/components/inline-message/index.mjs +3 -0
  133. package/esm2020/components/inline-message/lib/inline-message.component.mjs +43 -0
  134. package/esm2020/components/inline-message/lib/models/inline-message-variant.mjs +7 -0
  135. package/esm2020/components/inline-message/odx-angular-components-inline-message.mjs +5 -0
  136. package/esm2020/components/link/link.directive.mjs +3 -3
  137. package/esm2020/components/list/lib/components/list-item.component.mjs +5 -5
  138. package/esm2020/components/list/lib/list.component.mjs +3 -3
  139. package/esm2020/components/list/lib/list.module.mjs +4 -4
  140. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +10 -10
  141. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +30 -26
  142. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +4 -4
  143. package/esm2020/components/logo/logo.directive.mjs +3 -3
  144. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +3 -3
  145. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +3 -3
  146. package/esm2020/components/main-menu/lib/main-menu.component.mjs +5 -5
  147. package/esm2020/components/main-menu/lib/main-menu.module.mjs +4 -4
  148. package/esm2020/components/main-menu/lib/main-menu.service.mjs +3 -3
  149. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +3 -3
  150. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +3 -3
  151. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +3 -3
  152. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +3 -3
  153. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +3 -3
  154. package/esm2020/components/modal/lib/modal.component.mjs +3 -3
  155. package/esm2020/components/modal/lib/modal.directive.mjs +3 -3
  156. package/esm2020/components/modal/lib/modal.module.mjs +4 -4
  157. package/esm2020/components/modal/lib/modal.service.mjs +3 -3
  158. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +3 -3
  159. package/esm2020/components/progress/lib/progress.component.mjs +3 -3
  160. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +3 -3
  161. package/esm2020/components/radio-group/lib/radio-group.component.mjs +3 -3
  162. package/esm2020/components/radio-group/lib/radio-group.module.mjs +4 -4
  163. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +3 -3
  164. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +11 -5
  165. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +4 -4
  166. package/esm2020/components/select/index.mjs +8 -0
  167. package/esm2020/components/select/lib/abstract/index.mjs +3 -0
  168. package/esm2020/components/select/lib/abstract/select-control-option.mjs +2 -0
  169. package/esm2020/components/select/lib/abstract/select-control.mjs +2 -0
  170. package/esm2020/components/select/lib/components/index.mjs +2 -0
  171. package/esm2020/components/select/lib/components/option/option.component.mjs +78 -0
  172. package/esm2020/components/select/lib/directives/index.mjs +2 -0
  173. package/esm2020/components/select/lib/directives/select-search-field.directive.mjs +47 -0
  174. package/esm2020/components/select/lib/pipes/index.mjs +2 -0
  175. package/esm2020/components/select/lib/pipes/select-search-filter.pipe.mjs +51 -0
  176. package/esm2020/components/select/lib/select.component.mjs +190 -0
  177. package/esm2020/components/select/lib/select.module.mjs +21 -0
  178. package/esm2020/components/select/lib/select.tokens.mjs +3 -0
  179. package/esm2020/components/select/odx-angular-components-select.mjs +5 -0
  180. package/esm2020/components/slider/index.mjs +2 -0
  181. package/esm2020/components/slider/lib/slider.directive.mjs +45 -0
  182. package/esm2020/components/slider/odx-angular-components-slider.mjs +5 -0
  183. package/esm2020/components/spinbox/index.mjs +2 -0
  184. package/esm2020/components/spinbox/lib/spinbox.component.mjs +91 -0
  185. package/esm2020/components/spinbox/odx-angular-components-spinbox.mjs +5 -0
  186. package/esm2020/components/switch/lib/switch.component.mjs +3 -3
  187. package/esm2020/components/switch/lib/switch.module.mjs +4 -4
  188. package/esm2020/components/switch/lib/switch.validator.mjs +3 -3
  189. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +3 -3
  190. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +6 -6
  191. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +4 -4
  192. package/esm2020/components/tooltip/index.mjs +4 -0
  193. package/esm2020/components/tooltip/lib/helpers/index.mjs +2 -0
  194. package/esm2020/components/tooltip/lib/helpers/resolve-tooltip-trigger-events.mjs +9 -0
  195. package/esm2020/components/tooltip/lib/models/index.mjs +4 -0
  196. package/esm2020/components/tooltip/lib/models/tooltip-options.mjs +10 -0
  197. package/esm2020/components/tooltip/lib/models/tooltip-size.mjs +7 -0
  198. package/esm2020/components/tooltip/lib/models/tooltip-trigger.mjs +2 -0
  199. package/esm2020/components/tooltip/lib/tooltip.component.mjs +39 -0
  200. package/esm2020/components/tooltip/lib/tooltip.directive.mjs +132 -0
  201. package/esm2020/components/tooltip/odx-angular-components-tooltip.mjs +5 -0
  202. package/esm2020/index.mjs +2 -1
  203. package/esm2020/lib/controllers/controller.mjs +3 -3
  204. package/esm2020/lib/controllers/disabled.controller.mjs +3 -3
  205. package/esm2020/lib/controllers/readonly.controller.mjs +3 -3
  206. package/esm2020/lib/core.module.mjs +4 -4
  207. package/esm2020/lib/directives/click-outside.directive.mjs +3 -3
  208. package/esm2020/lib/services/window-ref.mjs +3 -3
  209. package/esm2020/lib/tokens/identity-matcher.mjs +7 -0
  210. package/esm2020/lib/tokens/index.mjs +4 -0
  211. package/esm2020/lib/tokens/string-search-handler.mjs +9 -0
  212. package/esm2020/lib/tokens/stringify.mjs +8 -0
  213. package/esm2020/rxjs/index.mjs +2 -1
  214. package/esm2020/rxjs/lib/delay-until.mjs +5 -0
  215. package/esm2020/utils/lib/decorators/index.mjs +2 -1
  216. package/esm2020/utils/lib/decorators/pure.mjs +37 -0
  217. package/esm2020/utils/lib/helpers/defer-fn.mjs +4 -0
  218. package/esm2020/utils/lib/helpers/event-manager.mjs +30 -0
  219. package/esm2020/utils/lib/helpers/index.mjs +3 -1
  220. package/fesm2015/odx-angular-animations.mjs +3 -3
  221. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  222. package/fesm2015/odx-angular-cdk-active-indicator.mjs +3 -3
  223. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +3 -3
  224. package/fesm2015/odx-angular-cdk-connected-overlay.mjs +234 -0
  225. package/fesm2015/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  226. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +6 -6
  227. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +15 -12
  228. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  229. package/fesm2015/odx-angular-cdk-expandable.mjs +10 -10
  230. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +10 -10
  231. package/fesm2015/odx-angular-components-accordion.mjs +14 -14
  232. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  233. package/fesm2015/odx-angular-components-action-group.mjs +3 -3
  234. package/fesm2015/odx-angular-components-area-header.mjs +14 -14
  235. package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
  236. package/fesm2015/odx-angular-components-avatar.mjs +3 -3
  237. package/fesm2015/odx-angular-components-badge.mjs +6 -6
  238. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  239. package/fesm2015/odx-angular-components-button.mjs +3 -3
  240. package/fesm2015/odx-angular-components-checkbox.mjs +10 -10
  241. package/fesm2015/odx-angular-components-chip.mjs +3 -3
  242. package/fesm2015/odx-angular-components-circular-progress.mjs +13 -6
  243. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  244. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  245. package/fesm2015/odx-angular-components-dropdown.mjs +168 -0
  246. package/fesm2015/odx-angular-components-dropdown.mjs.map +1 -0
  247. package/fesm2015/odx-angular-components-form-field.mjs +34 -34
  248. package/fesm2015/odx-angular-components-header.mjs +13 -13
  249. package/fesm2015/odx-angular-components-icon.mjs +3 -3
  250. package/fesm2015/odx-angular-components-inline-message.mjs +55 -0
  251. package/fesm2015/odx-angular-components-inline-message.mjs.map +1 -0
  252. package/fesm2015/odx-angular-components-link.mjs +3 -3
  253. package/fesm2015/odx-angular-components-list.mjs +11 -11
  254. package/fesm2015/odx-angular-components-list.mjs.map +1 -1
  255. package/fesm2015/odx-angular-components-loading-spinner.mjs +81 -91
  256. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
  257. package/fesm2015/odx-angular-components-logo.mjs +3 -3
  258. package/fesm2015/odx-angular-components-main-menu.mjs +17 -17
  259. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  260. package/fesm2015/odx-angular-components-modal.mjs +31 -31
  261. package/fesm2015/odx-angular-components-progress.mjs +3 -3
  262. package/fesm2015/odx-angular-components-radio-group.mjs +10 -10
  263. package/fesm2015/odx-angular-components-rail-navigation.mjs +17 -11
  264. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -1
  265. package/fesm2015/odx-angular-components-select.mjs +375 -0
  266. package/fesm2015/odx-angular-components-select.mjs.map +1 -0
  267. package/fesm2015/odx-angular-components-slider.mjs +51 -0
  268. package/fesm2015/odx-angular-components-slider.mjs.map +1 -0
  269. package/fesm2015/odx-angular-components-spinbox.mjs +100 -0
  270. package/fesm2015/odx-angular-components-spinbox.mjs.map +1 -0
  271. package/fesm2015/odx-angular-components-switch.mjs +10 -10
  272. package/fesm2015/odx-angular-components-toggle-button-group.mjs +12 -12
  273. package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
  274. package/fesm2015/odx-angular-components-tooltip.mjs +187 -0
  275. package/fesm2015/odx-angular-components-tooltip.mjs.map +1 -0
  276. package/fesm2015/odx-angular-rxjs.mjs +6 -2
  277. package/fesm2015/odx-angular-rxjs.mjs.map +1 -1
  278. package/fesm2015/odx-angular-utils.mjs +72 -2
  279. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  280. package/fesm2015/odx-angular.mjs +40 -20
  281. package/fesm2015/odx-angular.mjs.map +1 -1
  282. package/fesm2020/odx-angular-animations.mjs +3 -3
  283. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  284. package/fesm2020/odx-angular-cdk-active-indicator.mjs +3 -3
  285. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +3 -3
  286. package/fesm2020/odx-angular-cdk-connected-overlay.mjs +230 -0
  287. package/fesm2020/odx-angular-cdk-connected-overlay.mjs.map +1 -0
  288. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +6 -6
  289. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +15 -12
  290. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  291. package/fesm2020/odx-angular-cdk-expandable.mjs +10 -10
  292. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +10 -10
  293. package/fesm2020/odx-angular-components-accordion.mjs +14 -14
  294. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  295. package/fesm2020/odx-angular-components-action-group.mjs +3 -3
  296. package/fesm2020/odx-angular-components-area-header.mjs +14 -14
  297. package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
  298. package/fesm2020/odx-angular-components-avatar.mjs +3 -3
  299. package/fesm2020/odx-angular-components-badge.mjs +6 -6
  300. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  301. package/fesm2020/odx-angular-components-button.mjs +3 -3
  302. package/fesm2020/odx-angular-components-checkbox.mjs +10 -10
  303. package/fesm2020/odx-angular-components-chip.mjs +3 -3
  304. package/fesm2020/odx-angular-components-circular-progress.mjs +13 -6
  305. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  306. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  307. package/fesm2020/odx-angular-components-dropdown.mjs +172 -0
  308. package/fesm2020/odx-angular-components-dropdown.mjs.map +1 -0
  309. package/fesm2020/odx-angular-components-form-field.mjs +34 -34
  310. package/fesm2020/odx-angular-components-header.mjs +13 -13
  311. package/fesm2020/odx-angular-components-icon.mjs +3 -3
  312. package/fesm2020/odx-angular-components-inline-message.mjs +55 -0
  313. package/fesm2020/odx-angular-components-inline-message.mjs.map +1 -0
  314. package/fesm2020/odx-angular-components-link.mjs +3 -3
  315. package/fesm2020/odx-angular-components-list.mjs +11 -11
  316. package/fesm2020/odx-angular-components-list.mjs.map +1 -1
  317. package/fesm2020/odx-angular-components-loading-spinner.mjs +80 -90
  318. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
  319. package/fesm2020/odx-angular-components-logo.mjs +3 -3
  320. package/fesm2020/odx-angular-components-main-menu.mjs +17 -17
  321. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  322. package/fesm2020/odx-angular-components-modal.mjs +31 -31
  323. package/fesm2020/odx-angular-components-progress.mjs +3 -3
  324. package/fesm2020/odx-angular-components-radio-group.mjs +10 -10
  325. package/fesm2020/odx-angular-components-rail-navigation.mjs +17 -11
  326. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -1
  327. package/fesm2020/odx-angular-components-select.mjs +362 -0
  328. package/fesm2020/odx-angular-components-select.mjs.map +1 -0
  329. package/fesm2020/odx-angular-components-slider.mjs +51 -0
  330. package/fesm2020/odx-angular-components-slider.mjs.map +1 -0
  331. package/fesm2020/odx-angular-components-spinbox.mjs +97 -0
  332. package/fesm2020/odx-angular-components-spinbox.mjs.map +1 -0
  333. package/fesm2020/odx-angular-components-switch.mjs +10 -10
  334. package/fesm2020/odx-angular-components-toggle-button-group.mjs +12 -12
  335. package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
  336. package/fesm2020/odx-angular-components-tooltip.mjs +192 -0
  337. package/fesm2020/odx-angular-components-tooltip.mjs.map +1 -0
  338. package/fesm2020/odx-angular-rxjs.mjs +6 -2
  339. package/fesm2020/odx-angular-rxjs.mjs.map +1 -1
  340. package/fesm2020/odx-angular-utils.mjs +71 -2
  341. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  342. package/fesm2020/odx-angular.mjs +40 -20
  343. package/fesm2020/odx-angular.mjs.map +1 -1
  344. package/index.d.ts +1 -0
  345. package/lib/tokens/identity-matcher.d.ts +3 -0
  346. package/lib/tokens/index.d.ts +3 -0
  347. package/lib/tokens/string-search-handler.d.ts +3 -0
  348. package/lib/tokens/stringify.d.ts +3 -0
  349. package/package.json +58 -2
  350. package/rxjs/index.d.ts +1 -0
  351. package/rxjs/lib/delay-until.d.ts +2 -0
  352. package/utils/lib/decorators/index.d.ts +1 -0
  353. package/utils/lib/decorators/pure.d.ts +1 -0
  354. package/utils/lib/helpers/defer-fn.d.ts +1 -0
  355. package/utils/lib/helpers/event-manager.d.ts +12 -0
  356. package/utils/lib/helpers/index.d.ts +2 -0
  357. package/components/loading-spinner/lib/loading-spinner.service.d.ts +0 -9
  358. package/esm2020/components/loading-spinner/lib/loading-spinner.service.mjs +0 -17
@@ -0,0 +1 @@
1
+ {"version":3,"file":"odx-angular-components-inline-message.mjs","sources":["../../../../libs/angular/components/inline-message/src/lib/models/inline-message-variant.ts","../../../../libs/angular/components/inline-message/src/lib/inline-message.component.ts","../../../../libs/angular/components/inline-message/src/lib/inline-message.component.html","../../../../libs/angular/components/inline-message/src/odx-angular-components-inline-message.ts"],"sourcesContent":["export type InlineMessageVariant = typeof InlineMessageVariant[keyof typeof InlineMessageVariant];\n\nexport const InlineMessageVariant = {\n DEFAULT: 'default',\n WARNING: 'warning',\n DANGER: 'danger',\n SUCCESS: 'success',\n} as const;\n","import { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { InlineMessageVariant } from './models/inline-message-variant';\n\n@CSSComponent('inline-message')\n@Component({\n selector: 'odx-inline-message',\n templateUrl: 'inline-message.component.html',\n standalone: true,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n imports: [IconComponent],\n})\nexport class InlineMessageComponent {\n public readonly element = injectElement<HTMLElement>();\n\n @CSSModifier({\n default: InlineMessageVariant.DEFAULT,\n })\n @Input()\n public variant?: InlineMessageVariant | null;\n\n public get icon(): string {\n switch (this.variant) {\n case InlineMessageVariant.WARNING:\n return 'warning';\n case InlineMessageVariant.DANGER:\n return 'danger';\n case InlineMessageVariant.SUCCESS:\n return 'check';\n default:\n return 'info';\n }\n }\n}\n","<odx-icon size=\"medium\" [name]=\"icon\"></odx-icon>\n<div class=\"odx-inline-message__content\">\n <ng-content></ng-content>\n</div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAEa,MAAA,oBAAoB,GAAG;AAClC,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,OAAO,EAAE,SAAS;AAClB,IAAA,MAAM,EAAE,QAAQ;AAChB,IAAA,OAAO,EAAE,SAAS;;;ACSP,IAAA,sB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;AASlB,CAAA,EAAA,sBAAsB,CAqBlC,CAAA;4FArBY,sBAAsB,EAAA,UAAA,EAAA,CAAA;kBARlC,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,oBAAoB,EAElB,UAAA,EAAA,IAAI,EACC,eAAA,EAAA,uBAAuB,CAAC,MAAM,EAChC,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAC5B,OAAA,EAAA,CAAC,aAAa,CAAC,EAAA,QAAA,EAAA,2IAAA,EAAA,CAAA;8BASjB,OAAO,EAAA,CAAA;sBADb,KAAK;;;AErBR;;AAEG;;;;"}
@@ -14,12 +14,12 @@ let LinkDirective = class LinkDirective {
14
14
  return !!this.disabledController?.disabled;
15
15
  }
16
16
  };
17
- LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
- LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: LinkDirective, isStandalone: true, selector: "a[odxLink]", host: { properties: { "class.is-disabled": "isDisabled", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
17
+ LinkDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LinkDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
18
+ LinkDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: LinkDirective, isStandalone: true, selector: "a[odxLink]", host: { properties: { "class.is-disabled": "isDisabled", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
19
19
  LinkDirective = __decorate([
20
20
  CSSComponent('link')
21
21
  ], LinkDirective);
22
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LinkDirective, decorators: [{
22
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LinkDirective, decorators: [{
23
23
  type: Directive,
24
24
  args: [{
25
25
  selector: 'a[odxLink]',
@@ -18,8 +18,8 @@ let ListItemComponent = class ListItemComponent {
18
18
  return !!this.disabledController?.disabled;
19
19
  }
20
20
  };
21
- ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
- ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: ListItemComponent, isStandalone: true, selector: "[odxListItem]", inputs: { danger: "danger", selected: "selected" }, host: { properties: { "class.is-disabled": "isDisabled", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0, template: "<ng-content select=\"[odxListPrefix]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
21
+ ListItemComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListItemComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
22
+ ListItemComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ListItemComponent, isStandalone: true, selector: "[odxListItem]", inputs: { danger: "danger", selected: "selected" }, host: { properties: { "class.is-disabled": "isDisabled", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], 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 });
23
23
  __decorate([
24
24
  CSSModifier(),
25
25
  Transform(coerceBooleanProperty),
@@ -33,12 +33,12 @@ __decorate([
33
33
  ListItemComponent = __decorate([
34
34
  CSSComponent('list-item')
35
35
  ], ListItemComponent);
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListItemComponent, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListItemComponent, decorators: [{
37
37
  type: Component,
38
38
  args: [{ standalone: true, selector: '[odxListItem]', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [DisabledController.connect()], host: {
39
39
  '[class.is-disabled]': 'isDisabled',
40
40
  '[tabindex]': 'isDisabled ? -1 : 0',
41
- }, template: "<ng-content select=\"[odxListPrefix]\"></ng-content>\n<ng-content></ng-content>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n" }]
41
+ }, 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" }]
42
42
  }], propDecorators: { danger: [{
43
43
  type: Input
44
44
  }], selected: [{
@@ -47,9 +47,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
47
47
 
48
48
  class ListComponent {
49
49
  }
50
- ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
51
- ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: ListComponent, isStandalone: true, selector: "odx-list", host: { properties: { "class.odx-list": "true" } }, ngImport: i0, template: "<ng-content select=\"[odxListItem]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
52
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListComponent, decorators: [{
50
+ ListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
51
+ ListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ListComponent, isStandalone: true, selector: "odx-list", host: { properties: { "class.odx-list": "true" } }, ngImport: i0, template: "<ng-content select=\"[odxListItem]\"></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
52
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListComponent, decorators: [{
53
53
  type: Component,
54
54
  args: [{ selector: 'odx-list', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
55
55
  '[class.odx-list]': 'true',
@@ -59,10 +59,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
59
59
  const modules = [ListComponent, ListItemComponent, IconComponent];
60
60
  class ListModule {
61
61
  }
62
- ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
63
- ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.10", ngImport: i0, type: ListModule, imports: [ListComponent, ListItemComponent, IconComponent], exports: [ListComponent, ListItemComponent, IconComponent] });
64
- ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListModule, imports: [modules] });
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: ListModule, decorators: [{
62
+ ListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
63
+ ListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: ListModule, imports: [ListComponent, ListItemComponent, IconComponent], exports: [ListComponent, ListItemComponent, IconComponent] });
64
+ ListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListModule, imports: [modules] });
65
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ListModule, decorators: [{
66
66
  type: NgModule,
67
67
  args: [{
68
68
  imports: modules,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-list.mjs","sources":["../../../../libs/angular/components/list/src/lib/components/list-item.component.ts","../../../../libs/angular/components/list/src/lib/components/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 { DisabledController } 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 providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\n\nexport class ListItemComponent {\n public static ngAcceptInputType_selected: BooleanInput;\n public static ngAcceptInputType_danger: BooleanInput;\n\n protected readonly disabledController = DisabledController.inject();\n public readonly element = injectElement<HTMLElement>();\n\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\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<ng-content></ng-content>\n<ng-content select=\"[odxListSuffix]\"></ng-content>\n","import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\n\n@Component({\n selector: 'odx-list',\n standalone: true,\n templateUrl: './list.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.odx-list]': 'true',\n },\n})\nexport class ListComponent{}\n","<ng-content select=\"[odxListItem]\"></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ListItemComponent } from './components/list-item.component';\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":";;;;;;;;;AAqBa,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;AAIc,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;QACpD,IAAO,CAAA,OAAA,GAAG,aAAa,EAAe,CAAC;QAUhD,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;QAKf,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACzB,KAAA;AAbC,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;KAC5C;;+GAVU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,C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U,YAHZ,OAAO,CAAA,EAAA,CAAA,CAAA;4FAGL,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/list-item.component.ts","../../../../libs/angular/components/list/src/lib/components/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 { DisabledController } 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 providers: [DisabledController.connect()],\n host: {\n '[class.is-disabled]': 'isDisabled',\n '[tabindex]': 'isDisabled ? -1 : 0',\n },\n})\n\nexport class ListItemComponent {\n public static ngAcceptInputType_selected: BooleanInput;\n public static ngAcceptInputType_danger: BooleanInput;\n\n protected readonly disabledController = DisabledController.inject();\n public readonly element = injectElement<HTMLElement>();\n\n\n public get isDisabled(): boolean {\n return !!this.disabledController?.disabled;\n }\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';\n\n@Component({\n selector: 'odx-list',\n standalone: true,\n templateUrl: './list.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[class.odx-list]': 'true',\n },\n})\nexport class ListComponent{}\n","<ng-content select=\"[odxListItem]\"></ng-content>\n","import { NgModule } from '@angular/core';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { ListItemComponent } from './components/list-item.component';\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":";;;;;;;;;AAqBa,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;AAIc,QAAA,IAAA,CAAA,kBAAkB,GAAG,kBAAkB,CAAC,MAAM,EAAE,CAAC;QACpD,IAAO,CAAA,OAAA,GAAG,aAAa,EAAe,CAAC;QAUhD,IAAM,CAAA,MAAA,GAAG,KAAK,CAAC;QAKf,IAAQ,CAAA,QAAA,GAAG,KAAK,CAAC;AACzB,KAAA;AAbC,IAAA,IAAW,UAAU,GAAA;AACnB,QAAA,OAAO,CAAC,CAAC,IAAI,CAAC,kBAAkB,EAAE,QAAQ,CAAC;KAC5C;;+GAVU,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;mGAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,eAAA,EAAA,MAAA,EAAA,EAAA,MAAA,EAAA,QAAA,EAAA,QAAA,EAAA,UAAA,EAAA,EAAA,IAAA,EAAA,EAAA,UAA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E,OAAO;AACjB,iBAAA,CAAA;;;ACVD;;AAEG;;;;"}
@@ -1,119 +1,63 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
2
  import { trigger, transition, useAnimation } from '@angular/animations';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, inject, Component, ViewEncapsulation, ChangeDetectionStrategy, Input, ElementRef, Renderer2, Directive, NgModule } from '@angular/core';
4
+ import { inject, Renderer2, Directive, Input, Component, ViewEncapsulation, ChangeDetectionStrategy, NgModule } from '@angular/core';
5
5
  import { 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
- import { injectElement, getInjector, px, Transform } from '@odx/angular/utils';
10
- import { Subject } from 'rxjs';
9
+ import { injectElement, getInjector, px, deferFn, Transform } from '@odx/angular/utils';
11
10
  import { coerceNumberProperty, coerceBooleanProperty } from '@angular/cdk/coercion';
12
11
  import { DynamicViewService } from '@odx/angular/cdk/dynamic-view';
13
12
 
14
- class LoadingSpinnerService {
15
- constructor() {
16
- this.spinnerDestroyed$ = new Subject();
17
- }
18
- ngOnDestroy() {
19
- this.spinnerDestroyed$.complete();
20
- }
21
- }
22
- LoadingSpinnerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
23
- LoadingSpinnerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerService });
24
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerService, decorators: [{
25
- type: Injectable
26
- }] });
27
-
28
- const BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';
29
- let LoadingSpinnerComponent = class LoadingSpinnerComponent {
30
- constructor() {
31
- this.spinnerService = inject(LoadingSpinnerService);
32
- this.windowRef = inject(WindowRef);
33
- this.backgroundColor = null;
34
- this.element = injectElement();
35
- this.autoColor = false;
36
- }
37
- animationFinished({ toState }) {
38
- if (toState === 'void') {
39
- this.spinnerService.spinnerDestroyed$.next();
40
- }
41
- }
42
- ngOnInit() {
43
- this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);
44
- }
45
- resolveBackgroundColor(element) {
46
- const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);
47
- if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {
48
- return backgroundColor;
49
- }
50
- if (element.parentElement) {
51
- return this.resolveBackgroundColor(element.parentElement);
52
- }
53
- return null;
54
- }
55
- };
56
- LoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
57
- LoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", 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 });
58
- __decorate([
59
- CSSModifier(),
60
- __metadata("design:type", Object)
61
- ], LoadingSpinnerComponent.prototype, "autoColor", void 0);
62
- LoadingSpinnerComponent = __decorate([
63
- CSSComponent('loading-spinner')
64
- ], LoadingSpinnerComponent);
65
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
66
- type: Component,
67
- args: [{ standalone: true, selector: 'odx-loading-spinner', imports: [CircularProgressComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
68
- '[@hostAnimation]': 'true',
69
- '(@hostAnimation.done)': 'animationFinished($event)',
70
- }, animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n" }]
71
- }], propDecorators: { autoColor: [{
72
- type: Input
73
- }] } });
74
-
13
+ const LOADING_SPINNER_PARENT_CLASS = 'odx-loading-spinner-parent';
75
14
  class LoadingSpinnerDirective {
76
15
  constructor() {
77
16
  this.dynamicViewService = inject(DynamicViewService);
78
- this.hostElement = inject(ElementRef);
17
+ this.hostElement = injectElement();
79
18
  this.renderer = inject(Renderer2);
80
- this.spinnerService = inject(LoadingSpinnerService);
81
19
  this.injector = getInjector();
82
20
  this.windowRef = inject(WindowRef);
83
- this.parentMinHeight = 0;
84
21
  this.viewRef = null;
85
22
  this.autoColor = false;
86
- this.spinnerService.spinnerDestroyed$.subscribe(() => this.resetParentElement());
87
23
  }
88
24
  set isLoading(value) {
89
25
  if (value) {
90
- this.setParent();
91
- this.appendSpinner();
26
+ this.createSpinner();
92
27
  }
93
28
  else {
94
- this.viewRef?.destroy();
29
+ this.removeSpinner();
95
30
  }
96
31
  }
32
+ get isLoading() {
33
+ return this.viewRef !== null;
34
+ }
97
35
  set minHeight(value) {
98
36
  this.parentMinHeight = coerceNumberProperty(value);
99
37
  this.setParentHeight();
100
38
  }
101
- setParent() {
102
- this.renderer.addClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');
39
+ setParentHeight() {
40
+ this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', this.parentMinHeight ? px(this.parentMinHeight) : 'inherit');
41
+ }
42
+ createSpinner() {
43
+ this.renderer.addClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);
103
44
  this.setParentHeight();
104
45
  if (this.hasStaticPosition()) {
105
46
  this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');
106
47
  }
48
+ this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, {
49
+ injector: this.injector,
50
+ context: { autoColor: this.autoColor },
51
+ host: this.hostElement.nativeElement,
52
+ });
53
+ deferFn(() => (this.hostElement.nativeElement.scrollTop = 0));
107
54
  }
108
- setParentHeight() {
109
- this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', px(this.parentMinHeight));
110
- }
111
- appendSpinner() {
112
- this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, { injector: this.injector, context: { autoColor: this.autoColor } });
113
- this.renderer.appendChild(this.hostElement.nativeElement, this.viewRef.getElement());
55
+ removeSpinner() {
56
+ this.viewRef?.destroy();
57
+ this.viewRef = null;
114
58
  }
115
- resetParentElement() {
116
- this.renderer.removeClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');
59
+ resetParentStyles() {
60
+ this.renderer.removeClass(this.hostElement.nativeElement, LOADING_SPINNER_PARENT_CLASS);
117
61
  this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');
118
62
  this.renderer.removeStyle(this.hostElement.nativeElement, 'position');
119
63
  }
@@ -121,8 +65,8 @@ class LoadingSpinnerDirective {
121
65
  return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';
122
66
  }
123
67
  }
124
- LoadingSpinnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
125
- LoadingSpinnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: LoadingSpinnerDirective, isStandalone: true, selector: "[odxLoadingSpinner]", inputs: { autoColor: ["odxLoadingSpinnerAutoColor", "autoColor"], isLoading: ["odxLoadingSpinner", "isLoading"], minHeight: ["odxLoadingSpinnerMinHeight", "minHeight"] }, providers: [LoadingSpinnerService], ngImport: i0 });
68
+ LoadingSpinnerDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
69
+ LoadingSpinnerDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: LoadingSpinnerDirective, isStandalone: true, selector: "[odxLoadingSpinner]", inputs: { autoColor: ["odxLoadingSpinnerAutoColor", "autoColor"], isLoading: ["odxLoadingSpinner", "isLoading"], minHeight: ["odxLoadingSpinnerMinHeight", "minHeight"] }, ngImport: i0 });
126
70
  __decorate([
127
71
  Transform(coerceBooleanProperty),
128
72
  __metadata("design:type", Object)
@@ -132,14 +76,13 @@ __decorate([
132
76
  __metadata("design:type", Object),
133
77
  __metadata("design:paramtypes", [Object])
134
78
  ], LoadingSpinnerDirective.prototype, "minHeight", null);
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerDirective, decorators: [{
79
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerDirective, decorators: [{
136
80
  type: Directive,
137
81
  args: [{
138
82
  selector: '[odxLoadingSpinner]',
139
83
  standalone: true,
140
- providers: [LoadingSpinnerService],
141
84
  }]
142
- }], ctorParameters: function () { return []; }, propDecorators: { autoColor: [{
85
+ }], propDecorators: { autoColor: [{
143
86
  type: Input,
144
87
  args: ['odxLoadingSpinnerAutoColor']
145
88
  }], isLoading: [{
@@ -150,13 +93,60 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
150
93
  args: ['odxLoadingSpinnerMinHeight']
151
94
  }] } });
152
95
 
96
+ const BROWSER_TRANSPARENT_COLOR = 'rgba(0, 0, 0, 0)';
97
+ let LoadingSpinnerComponent = class LoadingSpinnerComponent {
98
+ constructor() {
99
+ this.host = inject(LoadingSpinnerDirective);
100
+ this.windowRef = inject(WindowRef);
101
+ this.backgroundColor = null;
102
+ this.element = injectElement();
103
+ this.autoColor = false;
104
+ }
105
+ ngOnInit() {
106
+ this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);
107
+ }
108
+ animationFinished({ toState }) {
109
+ if (toState === 'void') {
110
+ this.host.resetParentStyles();
111
+ }
112
+ }
113
+ resolveBackgroundColor(element) {
114
+ const { backgroundColor } = this.windowRef.nativeWindow.getComputedStyle(element);
115
+ if (backgroundColor !== BROWSER_TRANSPARENT_COLOR) {
116
+ return backgroundColor;
117
+ }
118
+ if (element.parentElement) {
119
+ return this.resolveBackgroundColor(element.parentElement);
120
+ }
121
+ return null;
122
+ }
123
+ };
124
+ LoadingSpinnerComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
125
+ LoadingSpinnerComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", 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
+ __decorate([
127
+ CSSModifier(),
128
+ __metadata("design:type", Object)
129
+ ], LoadingSpinnerComponent.prototype, "autoColor", void 0);
130
+ LoadingSpinnerComponent = __decorate([
131
+ CSSComponent('loading-spinner')
132
+ ], LoadingSpinnerComponent);
133
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerComponent, decorators: [{
134
+ type: Component,
135
+ args: [{ standalone: true, selector: 'odx-loading-spinner', imports: [CircularProgressComponent], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
136
+ '[@hostAnimation]': 'true',
137
+ '(@hostAnimation.done)': 'animationFinished($event)',
138
+ }, animations: [trigger('hostAnimation', [transition(':enter', useAnimation(fadeIn())), transition(':leave', useAnimation(fadeOut()))])], template: "<odx-circular-progress size=\"auto\" value=\"-1\"></odx-circular-progress>\n<div class=\"odx-loading-spinner__backdrop\" [style.backgroundColor]=\"backgroundColor\"></div>\n" }]
139
+ }], propDecorators: { autoColor: [{
140
+ type: Input
141
+ }] } });
142
+
153
143
  const modules = [LoadingSpinnerComponent, LoadingSpinnerDirective];
154
144
  class LoadingSpinnerModule {
155
145
  }
156
- LoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
157
- LoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, LoadingSpinnerDirective], exports: [CoreModule, LoadingSpinnerComponent, LoadingSpinnerDirective] });
158
- LoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, CoreModule] });
159
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
146
+ LoadingSpinnerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
147
+ LoadingSpinnerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, LoadingSpinnerDirective], exports: [CoreModule, LoadingSpinnerComponent, LoadingSpinnerDirective] });
148
+ LoadingSpinnerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerModule, imports: [LoadingSpinnerComponent, CoreModule] });
149
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LoadingSpinnerModule, decorators: [{
160
150
  type: NgModule,
161
151
  args: [{
162
152
  imports: modules,
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-loading-spinner.mjs","sources":["../../../../libs/angular/components/loading-spinner/src/lib/loading-spinner.service.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.directive.ts","../../../../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 { Injectable, OnDestroy } from '@angular/core';\nimport { Subject } from 'rxjs';\n\n@Injectable()\nexport class LoadingSpinnerService implements OnDestroy {\n public readonly spinnerDestroyed$ = new Subject<void>();\n\n public ngOnDestroy(): void {\n this.spinnerDestroyed$.complete();\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 { LoadingSpinnerService } from './loading-spinner.service';\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 spinnerService = inject(LoadingSpinnerService);\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 animationFinished({ toState }: AnimationEvent): void {\n if (toState === 'void') {\n this.spinnerService.spinnerDestroyed$.next();\n }\n }\n\n public ngOnInit(): void {\n this.backgroundColor = this.resolveBackgroundColor(this.element.nativeElement);\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 { BooleanInput, coerceBooleanProperty, coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { Directive, ElementRef, inject, Input, Renderer2 } from '@angular/core';\nimport { WindowRef } from '@odx/angular';\nimport { DynamicViewRef, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { getInjector, px, Transform } from '@odx/angular/utils';\nimport { LoadingSpinnerComponent } from './loading-spinner.component';\nimport { LoadingSpinnerService } from './loading-spinner.service';\n\n@Directive({\n selector: '[odxLoadingSpinner]',\n standalone: true,\n providers: [LoadingSpinnerService],\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 = inject(ElementRef);\n private readonly renderer = inject(Renderer2);\n private readonly spinnerService = inject(LoadingSpinnerService);\n private readonly injector = getInjector();\n private readonly windowRef = inject(WindowRef);\n\n private parentMinHeight = 0;\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) {\n if (value) {\n this.setParent();\n this.appendSpinner();\n } else {\n this.viewRef?.destroy();\n }\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 private setParent(): void {\n this.renderer.addClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');\n this.setParentHeight();\n if (this.hasStaticPosition()) {\n this.renderer.setStyle(this.hostElement.nativeElement, 'position', 'relative');\n }\n }\n\n private setParentHeight(): void {\n this.renderer.setStyle(this.hostElement.nativeElement, 'minHeight', px(this.parentMinHeight));\n }\n\n private appendSpinner(): void {\n this.viewRef = this.dynamicViewService.createView(LoadingSpinnerComponent, { injector: this.injector, context: { autoColor: this.autoColor } });\n this.renderer.appendChild(this.hostElement.nativeElement, this.viewRef.getElement());\n }\n\n private resetParentElement(): void {\n this.renderer.removeClass(this.hostElement.nativeElement, 'odx-loading-spinner-parent');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'minHeight');\n this.renderer.removeStyle(this.hostElement.nativeElement, 'position');\n }\n\n private hasStaticPosition(): boolean {\n return this.windowRef.nativeWindow.getComputedStyle(this.hostElement.nativeElement).position === 'static';\n }\n\n constructor() {\n this.spinnerService.spinnerDestroyed$.subscribe(() => this.resetParentElement());\n }\n}\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":";;;;;;;;;;;;;MAIa,qBAAqB,CAAA;AADlC,IAAA,WAAA,GAAA;AAEkB,QAAA,IAAA,CAAA,iBAAiB,GAAG,IAAI,OAAO,EAAQ,CAAC;AAKzD,KAAA;IAHQ,WAAW,GAAA;AAChB,QAAA,IAAI,CAAC,iBAAiB,CAAC,QAAQ,EAAE,CAAC;KACnC;;mHALU,qBAAqB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;uHAArB,qBAAqB,EAAA,CAAA,CAAA;4FAArB,qBAAqB,EAAA,UAAA,EAAA,CAAA;kBADjC,UAAU;;;ACMX,MAAM,yBAAyB,GAAG,kBAAkB,CAAC;AAgBxC,IAAA,uBAAuB,GAA7B,MAAM,uBAAuB,CAAA;AAA7B,IAAA,WAAA,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ADnB,KAAK;uBAAC,mBAAmB,CAAA;gBAYf,SAAS,EAAA,CAAA;sBADnB,KAAK;uBAAC,4BAA4B,CAAA;;;ACtCrC,MAAM,OAAO,GAAG,CAAC,uBAAuB,EAAE,uBAAuB,CAAC,CAAC;MAMtD,oBAAoB,CAAA;;kHAApB,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;mHAApB,oBAAoB,EAAA,OAAA,EAAA,CANhB,uBAAuB,EAAE,uBAAuB,aAIrD,UAAU,EAJL,uBAAuB,EAAE,uBAAuB,CAAA,EAAA,CAAA,CAAA;mHAMpD,oBAAoB,EAAA,OAAA,EAAA,CANhB,uBAAuB,EAI5B,UAAU,CAAA,EAAA,CAAA,CAAA;4FAET,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 { 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 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 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 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,CAAC,CAAC;QAGvC,IAAO,CAAA,OAAA,GAA0D,IAAI,CAAC;QAIvE,IAAS,CAAA,SAAA,GAAG,KAAK,CAAC;AAqD1B,KAAA;IAnDC,IACW,SAAS,CAAC,KAAiC,EAAA;AACpD,QAAA,IAAI,KAAK,EAAE;YACT,IAAI,CAAC,aAAa,EAAE,CAAC;AACtB,SAAA;AAAM,aAAA;YACL,IAAI,CAAC,aAAa,EAAE,CAAC;AACtB,SAAA;KACF;AACD,IAAA,IAAW,SAAS,GAAA;AAClB,QAAA,OAAO,IAAI,CAAC,OAAO,KAAK,IAAI,CA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;"}
@@ -20,8 +20,8 @@ let LogoDirective = class LogoDirective {
20
20
  this.element = injectElement();
21
21
  }
22
22
  };
23
- LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
- LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", 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 });
23
+ LogoDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LogoDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
24
+ LogoDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", 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
25
  __decorate([
26
26
  CSSModifier({ default: LogoSize.SMALL }),
27
27
  __metadata("design:type", String)
@@ -33,7 +33,7 @@ __decorate([
33
33
  LogoDirective = __decorate([
34
34
  CSSComponent('logo')
35
35
  ], LogoDirective);
36
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: LogoDirective, decorators: [{
36
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: LogoDirective, decorators: [{
37
37
  type: Directive,
38
38
  args: [{
39
39
  selector: 'odx-logo',
@@ -48,9 +48,9 @@ class MainMenuService {
48
48
  }
49
49
  }
50
50
  }
51
- MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
- MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuService, providedIn: 'root' });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuService, decorators: [{
51
+ MainMenuService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
52
+ MainMenuService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuService, providedIn: 'root' });
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", 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: "14.2.10", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
- MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: MainMenuButtonDirective, isStandalone: true, selector: "button[odxMainMenuButton]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
67
+ MainMenuButtonDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuButtonDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
68
+ MainMenuButtonDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", 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: "14.2.10", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
72
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuButtonDirective, decorators: [{
73
73
  type: Directive,
74
74
  args: [{
75
75
  selector: 'button[odxMainMenuButton]',
@@ -91,8 +91,8 @@ let MainMenuItemDirective = class MainMenuItemDirective {
91
91
  return !!this.disabledController?.disabled;
92
92
  }
93
93
  };
94
- MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
95
- MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.10", type: MainMenuItemDirective, isStandalone: true, selector: "[odxMainMenuItem]", inputs: { isSelected: "isSelected" }, host: { properties: { "class.is-selected": "isSelected || routerLinkActive?.isActive", "class.is-disabled": "isDisabled", "attr.disabled": "isDisabled || null", "attr.role": "\"button\"", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
94
+ MainMenuItemDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
95
+ MainMenuItemDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: MainMenuItemDirective, isStandalone: true, selector: "[odxMainMenuItem]", inputs: { isSelected: "isSelected" }, host: { properties: { "class.is-selected": "isSelected || routerLinkActive?.isActive", "class.is-disabled": "isDisabled", "attr.disabled": "isDisabled || null", "attr.role": "\"button\"", "tabindex": "isDisabled ? -1 : 0" } }, providers: [DisabledController.connect()], ngImport: i0 });
96
96
  __decorate([
97
97
  Transform(coerceBooleanProperty),
98
98
  __metadata("design:type", Object)
@@ -100,7 +100,7 @@ __decorate([
100
100
  MainMenuItemDirective = __decorate([
101
101
  CSSComponent('main-menu-item')
102
102
  ], MainMenuItemDirective);
103
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuItemDirective, decorators: [{
103
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuItemDirective, decorators: [{
104
104
  type: Directive,
105
105
  args: [{
106
106
  selector: '[odxMainMenuItem]',
@@ -136,15 +136,15 @@ let MainMenuComponent = class MainMenuComponent {
136
136
  this.mainMenuService.close();
137
137
  }
138
138
  };
139
- MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
140
- MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.10", type: MainMenuComponent, isStandalone: true, selector: "odx-main-menu", inputs: { title: "title", subtitle: "subtitle", copyright: "copyright", isOpen: "isOpen" }, outputs: { menuOpen: "menuOpen" }, host: { listeners: { "window:keydown.escape": "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.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "directive", type: i3.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { 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: [
139
+ MainMenuComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
140
+ MainMenuComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", 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.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "pipe", type: i2.AsyncPipe, name: "async" }, { kind: "directive", type: i3.DisabledController, selector: "[disabled]", inputs: ["disabled"] }, { 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: [
141
141
  trigger('menuAnimation', [transition(':enter', [useAnimation(slideInLeft)]), transition(':leave', [useAnimation(slideOutLeft)])]),
142
142
  trigger('overlayAnimation', [transition(':enter', [useAnimation(fadeIn())]), transition(':leave', [useAnimation(fadeOut())])]),
143
143
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
144
144
  MainMenuComponent = __decorate([
145
145
  CSSComponent('main-menu')
146
146
  ], MainMenuComponent);
147
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuComponent, decorators: [{
147
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuComponent, decorators: [{
148
148
  type: Component,
149
149
  args: [{ selector: 'odx-main-menu', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [A11yModule, CoreModule, AreaHeaderModule, ButtonComponent, IconComponent, LogoDirective], standalone: true, host: {
150
150
  '[class.is-open]': 'isOpen',
@@ -164,16 +164,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImpo
164
164
  type: Output
165
165
  }], close: [{
166
166
  type: HostListener,
167
- args: ['window:keydown.escape']
167
+ args: ['window:keyup.esc']
168
168
  }] } });
169
169
 
170
170
  const modules = [LinkDirective, MainMenuComponent, MainMenuItemDirective, MainMenuButtonDirective];
171
171
  class MainMenuModule {
172
172
  }
173
- MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
174
- MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.10", 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: "14.2.10", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
176
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.10", ngImport: i0, type: MainMenuModule, decorators: [{
173
+ MainMenuModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
174
+ MainMenuModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", 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: "14.2.12", ngImport: i0, type: MainMenuModule, imports: [MainMenuComponent, CoreModule] });
176
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: MainMenuModule, decorators: [{
177
177
  type: NgModule,
178
178
  args: [{
179
179
  imports: modules,