@odx/angular 1.0.0-rc.4 → 1.0.0-rc.6

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 (326) hide show
  1. package/animations/index.d.ts +1 -0
  2. package/animations/lib/wait-for-child-animations.d.ts +1 -0
  3. package/cdk/active-indicator/README.md +3 -0
  4. package/cdk/active-indicator/index.d.ts +2 -0
  5. package/cdk/active-indicator/lib/active-indicator.directive.d.ts +24 -0
  6. package/cdk/active-indicator/lib/models/active-indicator-direction.d.ts +5 -0
  7. package/cdk/active-indicator/lib/models/active-indicator-position.d.ts +6 -0
  8. package/cdk/active-indicator/lib/models/index.d.ts +2 -0
  9. package/cdk/checkbox-control/lib/checkbox-control.directive.d.ts +2 -3
  10. package/cdk/custom-form-control/lib/custom-form-control.d.ts +7 -14
  11. package/cdk/dynamic-view/lib/dynamic-view.service.d.ts +1 -0
  12. package/cdk/dynamic-view/lib/facade/dynamic-view-ref.d.ts +1 -0
  13. package/cdk/dynamic-view/lib/models/dynamic-component-ref.d.ts +1 -0
  14. package/cdk/dynamic-view/lib/models/dynamic-template-ref.d.ts +1 -0
  15. package/cdk/dynamic-view/lib/models/dynamic-view-options.d.ts +6 -3
  16. package/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.d.ts +3 -0
  17. package/cdk/dynamic-view/lib/tokens/index.d.ts +1 -0
  18. package/components/checkbox/index.d.ts +2 -0
  19. package/components/checkbox/lib/checkbox.module.d.ts +9 -0
  20. package/components/checkbox/lib/checkbox.validator.d.ts +6 -0
  21. package/components/form-field/lib/components/form-group/form-group.component.d.ts +0 -1
  22. package/components/form-field/lib/directives/form-field-control.directive.d.ts +3 -4
  23. package/components/form-field/lib/form-field.config.d.ts +0 -5
  24. package/components/list/README.md +3 -0
  25. package/components/list/index.d.ts +3 -0
  26. package/components/list/lib/components/index.d.ts +1 -0
  27. package/components/list/lib/components/list-item.component.d.ts +14 -0
  28. package/components/list/lib/list.component.d.ts +5 -0
  29. package/components/list/lib/list.module.d.ts +9 -0
  30. package/components/main-menu/lib/directives/main-menu-item.directive.d.ts +1 -1
  31. package/components/modal/lib/modal.component.d.ts +2 -2
  32. package/components/modal/lib/modal.service.d.ts +0 -2
  33. package/components/modal/lib/models/index.d.ts +1 -0
  34. package/components/modal/lib/models/modal-options.d.ts +2 -0
  35. package/components/modal/lib/models/modal-variant.d.ts +5 -0
  36. package/components/rail-navigation/README.md +3 -0
  37. package/components/rail-navigation/index.d.ts +3 -0
  38. package/components/rail-navigation/lib/components/rail-navigation-item.component.d.ts +15 -0
  39. package/components/rail-navigation/lib/rail-navigation.component.d.ts +14 -0
  40. package/components/rail-navigation/lib/rail-navigation.module.d.ts +9 -0
  41. package/components/slider/README.md +3 -0
  42. package/components/slider/index.d.ts +1 -0
  43. package/components/slider/lib/slider.directive.d.ts +13 -0
  44. package/components/switch/index.d.ts +2 -0
  45. package/components/switch/lib/switch.module.d.ts +9 -0
  46. package/components/switch/lib/switch.validator.d.ts +6 -0
  47. package/components/toggle-button-group/lib/toggle-button-group.component.d.ts +5 -1
  48. package/esm2020/animations/index.mjs +2 -1
  49. package/esm2020/animations/lib/expand.mjs +4 -4
  50. package/esm2020/animations/lib/wait-for-child-animations.mjs +3 -0
  51. package/esm2020/cdk/active-indicator/index.mjs +3 -0
  52. package/esm2020/cdk/active-indicator/lib/active-indicator.directive.mjs +127 -0
  53. package/esm2020/cdk/active-indicator/lib/models/active-indicator-direction.mjs +5 -0
  54. package/esm2020/cdk/active-indicator/lib/models/active-indicator-position.mjs +6 -0
  55. package/esm2020/cdk/active-indicator/lib/models/index.mjs +3 -0
  56. package/esm2020/cdk/active-indicator/odx-angular-cdk-active-indicator.mjs +5 -0
  57. package/esm2020/cdk/checkbox-control/lib/checkbox-control.directive.mjs +11 -13
  58. package/esm2020/cdk/custom-form-control/lib/control.directive.mjs +4 -4
  59. package/esm2020/cdk/custom-form-control/lib/custom-form-control.mjs +20 -47
  60. package/esm2020/cdk/dynamic-view/lib/dynamic-view.component.mjs +4 -4
  61. package/esm2020/cdk/dynamic-view/lib/dynamic-view.directive.mjs +5 -5
  62. package/esm2020/cdk/dynamic-view/lib/dynamic-view.service.mjs +11 -9
  63. package/esm2020/cdk/dynamic-view/lib/facade/dynamic-view-ref.mjs +1 -1
  64. package/esm2020/cdk/dynamic-view/lib/models/dynamic-component-ref.mjs +12 -5
  65. package/esm2020/cdk/dynamic-view/lib/models/dynamic-template-ref.mjs +9 -5
  66. package/esm2020/cdk/dynamic-view/lib/models/dynamic-view-options.mjs +1 -1
  67. package/esm2020/cdk/dynamic-view/lib/tokens/dynamic-view-default-host.mjs +10 -0
  68. package/esm2020/cdk/dynamic-view/lib/tokens/index.mjs +2 -1
  69. package/esm2020/cdk/expandable/lib/directives/expandable-item.directive.mjs +4 -4
  70. package/esm2020/cdk/expandable/lib/directives/extandable-container.directive.mjs +4 -4
  71. package/esm2020/cdk/expandable/lib/expandable.module.mjs +5 -5
  72. package/esm2020/cdk/radio-group-control/lib/radio-control.directive.mjs +5 -5
  73. package/esm2020/cdk/radio-group-control/lib/radio-group-control.directive.mjs +4 -4
  74. package/esm2020/cdk/radio-group-control/lib/radio-group-control.module.mjs +5 -5
  75. package/esm2020/components/accordion/lib/accordion.component.mjs +4 -4
  76. package/esm2020/components/accordion/lib/accordion.module.mjs +5 -5
  77. package/esm2020/components/accordion/lib/components/accordion-item/accordion-item.component.mjs +4 -4
  78. package/esm2020/components/accordion/lib/directives/accordion-item-title.mjs +4 -4
  79. package/esm2020/components/action-group/action-group.component.mjs +4 -4
  80. package/esm2020/components/area-header/area-header.component.mjs +5 -5
  81. package/esm2020/components/area-header/area-header.module.mjs +5 -5
  82. package/esm2020/components/area-header/directives/area-header-content.directive.mjs +4 -4
  83. package/esm2020/components/area-header/directives/area-header-subtitle.directive.mjs +4 -4
  84. package/esm2020/components/avatar/lib/avatar.component.mjs +4 -4
  85. package/esm2020/components/badge/lib/badge.component.mjs +6 -6
  86. package/esm2020/components/badge/lib/badge.directive.mjs +7 -7
  87. package/esm2020/components/button/lib/button.component.mjs +5 -5
  88. package/esm2020/components/button-group/lib/button-group.component.mjs +4 -4
  89. package/esm2020/components/checkbox/index.mjs +3 -1
  90. package/esm2020/components/checkbox/lib/checkbox.component.mjs +5 -5
  91. package/esm2020/components/checkbox/lib/checkbox.module.mjs +19 -0
  92. package/esm2020/components/checkbox/lib/checkbox.validator.mjs +28 -0
  93. package/esm2020/components/chip/lib/chip.component.mjs +4 -4
  94. package/esm2020/components/circular-progress/lib/circular-progress.component.mjs +4 -4
  95. package/esm2020/components/content-box/lib/content-box.component.mjs +4 -4
  96. package/esm2020/components/content-box/lib/content-box.module.mjs +5 -5
  97. package/esm2020/components/content-box/lib/directives/content-box-footer-directive.mjs +4 -4
  98. package/esm2020/components/content-box/lib/directives/content-box-header-directive.mjs +4 -4
  99. package/esm2020/components/form-field/lib/components/form-field-info/form-field-info.component.mjs +4 -4
  100. package/esm2020/components/form-field/lib/components/form-group/form-group.component.mjs +11 -13
  101. package/esm2020/components/form-field/lib/directives/form-field-control.directive.mjs +20 -13
  102. package/esm2020/components/form-field/lib/directives/form-field-error.directive.mjs +4 -4
  103. package/esm2020/components/form-field/lib/directives/form-field-hint.directive.mjs +4 -4
  104. package/esm2020/components/form-field/lib/directives/form-field-label.directive.mjs +4 -4
  105. package/esm2020/components/form-field/lib/directives/form.directive.mjs +4 -4
  106. package/esm2020/components/form-field/lib/form-field.component.mjs +4 -4
  107. package/esm2020/components/form-field/lib/form-field.config.mjs +1 -2
  108. package/esm2020/components/form-field/lib/form-field.module.mjs +5 -5
  109. package/esm2020/components/form-field/lib/form-field.service.mjs +4 -4
  110. package/esm2020/components/form-field/lib/services/form-field-error.service.mjs +4 -4
  111. package/esm2020/components/header/lib/directives/header-avatar.directive.mjs +4 -4
  112. package/esm2020/components/header/lib/directives/header-title.directive.mjs +4 -4
  113. package/esm2020/components/header/lib/header.component.mjs +4 -4
  114. package/esm2020/components/header/lib/header.module.mjs +5 -5
  115. package/esm2020/components/icon/lib/icon.component.mjs +4 -4
  116. package/esm2020/components/link/link.directive.mjs +4 -4
  117. package/esm2020/components/list/index.mjs +4 -0
  118. package/esm2020/components/list/lib/components/index.mjs +2 -0
  119. package/esm2020/components/list/lib/components/list-item.component.mjs +46 -0
  120. package/esm2020/components/list/lib/list.component.mjs +13 -0
  121. package/esm2020/components/list/lib/list.module.mjs +19 -0
  122. package/esm2020/components/list/odx-angular-components-list.mjs +5 -0
  123. package/esm2020/components/loading-spinner/lib/loading-spinner.component.mjs +4 -4
  124. package/esm2020/components/loading-spinner/lib/loading-spinner.directive.mjs +7 -7
  125. package/esm2020/components/loading-spinner/lib/loading-spinner.module.mjs +5 -5
  126. package/esm2020/components/loading-spinner/lib/loading-spinner.service.mjs +4 -4
  127. package/esm2020/components/logo/logo.directive.mjs +4 -4
  128. package/esm2020/components/main-menu/lib/directives/main-menu-button.directive.mjs +4 -4
  129. package/esm2020/components/main-menu/lib/directives/main-menu-item.directive.mjs +4 -4
  130. package/esm2020/components/main-menu/lib/main-menu.component.mjs +4 -4
  131. package/esm2020/components/main-menu/lib/main-menu.module.mjs +5 -5
  132. package/esm2020/components/main-menu/lib/main-menu.service.mjs +4 -4
  133. package/esm2020/components/modal/lib/components/modal-footer/modal-footer.component.mjs +4 -4
  134. package/esm2020/components/modal/lib/components/modal-header/modal-header.component.mjs +4 -4
  135. package/esm2020/components/modal/lib/directives/modal-close.directive.mjs +4 -4
  136. package/esm2020/components/modal/lib/directives/modal-content.directive.mjs +4 -4
  137. package/esm2020/components/modal/lib/directives/modal-dismiss.directive.mjs +4 -4
  138. package/esm2020/components/modal/lib/modal.component.mjs +23 -14
  139. package/esm2020/components/modal/lib/modal.config.mjs +3 -1
  140. package/esm2020/components/modal/lib/modal.directive.mjs +4 -4
  141. package/esm2020/components/modal/lib/modal.module.mjs +5 -5
  142. package/esm2020/components/modal/lib/modal.service.mjs +8 -21
  143. package/esm2020/components/modal/lib/models/index.mjs +2 -1
  144. package/esm2020/components/modal/lib/models/modal-options.mjs +1 -1
  145. package/esm2020/components/modal/lib/models/modal-variant.mjs +5 -0
  146. package/esm2020/components/modal/lib/services/open-modal-manager.service.mjs +4 -4
  147. package/esm2020/components/progress/lib/progress.component.mjs +4 -4
  148. package/esm2020/components/radio-group/lib/components/radio-button/radio-button.component.mjs +5 -5
  149. package/esm2020/components/radio-group/lib/radio-group.component.mjs +4 -4
  150. package/esm2020/components/radio-group/lib/radio-group.module.mjs +5 -5
  151. package/esm2020/components/rail-navigation/index.mjs +4 -0
  152. package/esm2020/components/rail-navigation/lib/components/rail-navigation-item.component.mjs +43 -0
  153. package/esm2020/components/rail-navigation/lib/rail-navigation.component.mjs +47 -0
  154. package/esm2020/components/rail-navigation/lib/rail-navigation.module.mjs +19 -0
  155. package/esm2020/components/rail-navigation/odx-angular-components-rail-navigation.mjs +5 -0
  156. package/esm2020/components/slider/index.mjs +2 -0
  157. package/esm2020/components/slider/lib/slider.directive.mjs +45 -0
  158. package/esm2020/components/slider/odx-angular-components-slider.mjs +5 -0
  159. package/esm2020/components/switch/index.mjs +3 -1
  160. package/esm2020/components/switch/lib/switch.component.mjs +5 -5
  161. package/esm2020/components/switch/lib/switch.module.mjs +19 -0
  162. package/esm2020/components/switch/lib/switch.validator.mjs +28 -0
  163. package/esm2020/components/toggle-button-group/lib/components/toggle-button/toggle-button.component.mjs +5 -5
  164. package/esm2020/components/toggle-button-group/lib/toggle-button-group.component.mjs +20 -11
  165. package/esm2020/components/toggle-button-group/lib/toggle-button-group.module.mjs +5 -5
  166. package/esm2020/lib/controllers/controller.mjs +10 -9
  167. package/esm2020/lib/controllers/disabled.controller.mjs +7 -6
  168. package/esm2020/lib/controllers/readonly.controller.mjs +7 -6
  169. package/esm2020/lib/core.module.mjs +5 -5
  170. package/esm2020/lib/directives/click-outside.directive.mjs +4 -4
  171. package/esm2020/lib/services/window-ref.mjs +4 -4
  172. package/esm2020/rxjs/index.mjs +2 -2
  173. package/esm2020/rxjs/lib/from-element-resize.mjs +14 -0
  174. package/esm2020/utils/lib/helpers/angular.mjs +5 -2
  175. package/esm2020/utils/lib/helpers/dom.mjs +24 -1
  176. package/fesm2015/odx-angular-animations.mjs +7 -5
  177. package/fesm2015/odx-angular-animations.mjs.map +1 -1
  178. package/fesm2015/odx-angular-cdk-active-indicator.mjs +142 -0
  179. package/fesm2015/odx-angular-cdk-active-indicator.mjs.map +1 -0
  180. package/fesm2015/odx-angular-cdk-checkbox-control.mjs +10 -12
  181. package/fesm2015/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  182. package/fesm2015/odx-angular-cdk-custom-form-control.mjs +24 -51
  183. package/fesm2015/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  184. package/fesm2015/odx-angular-cdk-dynamic-view.mjs +46 -25
  185. package/fesm2015/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  186. package/fesm2015/odx-angular-cdk-expandable.mjs +10 -10
  187. package/fesm2015/odx-angular-cdk-expandable.mjs.map +1 -1
  188. package/fesm2015/odx-angular-cdk-radio-group-control.mjs +11 -11
  189. package/fesm2015/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  190. package/fesm2015/odx-angular-components-accordion.mjs +13 -13
  191. package/fesm2015/odx-angular-components-accordion.mjs.map +1 -1
  192. package/fesm2015/odx-angular-components-action-group.mjs +3 -3
  193. package/fesm2015/odx-angular-components-action-group.mjs.map +1 -1
  194. package/fesm2015/odx-angular-components-area-header.mjs +14 -14
  195. package/fesm2015/odx-angular-components-area-header.mjs.map +1 -1
  196. package/fesm2015/odx-angular-components-avatar.mjs +3 -3
  197. package/fesm2015/odx-angular-components-avatar.mjs.map +1 -1
  198. package/fesm2015/odx-angular-components-badge.mjs +10 -10
  199. package/fesm2015/odx-angular-components-badge.mjs.map +1 -1
  200. package/fesm2015/odx-angular-components-button-group.mjs +3 -3
  201. package/fesm2015/odx-angular-components-button-group.mjs.map +1 -1
  202. package/fesm2015/odx-angular-components-button.mjs +4 -5
  203. package/fesm2015/odx-angular-components-button.mjs.map +1 -1
  204. package/fesm2015/odx-angular-components-checkbox.mjs +47 -7
  205. package/fesm2015/odx-angular-components-checkbox.mjs.map +1 -1
  206. package/fesm2015/odx-angular-components-chip.mjs +3 -3
  207. package/fesm2015/odx-angular-components-chip.mjs.map +1 -1
  208. package/fesm2015/odx-angular-components-circular-progress.mjs +3 -3
  209. package/fesm2015/odx-angular-components-circular-progress.mjs.map +1 -1
  210. package/fesm2015/odx-angular-components-content-box.mjs +13 -13
  211. package/fesm2015/odx-angular-components-content-box.mjs.map +1 -1
  212. package/fesm2015/odx-angular-components-form-field.mjs +52 -51
  213. package/fesm2015/odx-angular-components-form-field.mjs.map +1 -1
  214. package/fesm2015/odx-angular-components-header.mjs +13 -13
  215. package/fesm2015/odx-angular-components-header.mjs.map +1 -1
  216. package/fesm2015/odx-angular-components-icon.mjs +3 -3
  217. package/fesm2015/odx-angular-components-icon.mjs.map +1 -1
  218. package/fesm2015/odx-angular-components-link.mjs +3 -3
  219. package/fesm2015/odx-angular-components-link.mjs.map +1 -1
  220. package/fesm2015/odx-angular-components-list.mjs +79 -0
  221. package/fesm2015/odx-angular-components-list.mjs.map +1 -0
  222. package/fesm2015/odx-angular-components-loading-spinner.mjs +16 -16
  223. package/fesm2015/odx-angular-components-loading-spinner.mjs.map +1 -1
  224. package/fesm2015/odx-angular-components-logo.mjs +3 -3
  225. package/fesm2015/odx-angular-components-logo.mjs.map +1 -1
  226. package/fesm2015/odx-angular-components-main-menu.mjs +16 -16
  227. package/fesm2015/odx-angular-components-main-menu.mjs.map +1 -1
  228. package/fesm2015/odx-angular-components-modal.mjs +61 -58
  229. package/fesm2015/odx-angular-components-modal.mjs.map +1 -1
  230. package/fesm2015/odx-angular-components-progress.mjs +3 -3
  231. package/fesm2015/odx-angular-components-progress.mjs.map +1 -1
  232. package/fesm2015/odx-angular-components-radio-group.mjs +11 -11
  233. package/fesm2015/odx-angular-components-radio-group.mjs.map +1 -1
  234. package/fesm2015/odx-angular-components-rail-navigation.mjs +103 -0
  235. package/fesm2015/odx-angular-components-rail-navigation.mjs.map +1 -0
  236. package/fesm2015/odx-angular-components-slider.mjs +51 -0
  237. package/fesm2015/odx-angular-components-slider.mjs.map +1 -0
  238. package/fesm2015/odx-angular-components-switch.mjs +47 -7
  239. package/fesm2015/odx-angular-components-switch.mjs.map +1 -1
  240. package/fesm2015/odx-angular-components-toggle-button-group.mjs +26 -18
  241. package/fesm2015/odx-angular-components-toggle-button-group.mjs.map +1 -1
  242. package/fesm2015/odx-angular-rxjs.mjs +15 -6
  243. package/fesm2015/odx-angular-rxjs.mjs.map +1 -1
  244. package/fesm2015/odx-angular-utils.mjs +28 -2
  245. package/fesm2015/odx-angular-utils.mjs.map +1 -1
  246. package/fesm2015/odx-angular.mjs +32 -28
  247. package/fesm2015/odx-angular.mjs.map +1 -1
  248. package/fesm2020/odx-angular-animations.mjs +7 -5
  249. package/fesm2020/odx-angular-animations.mjs.map +1 -1
  250. package/fesm2020/odx-angular-cdk-active-indicator.mjs +142 -0
  251. package/fesm2020/odx-angular-cdk-active-indicator.mjs.map +1 -0
  252. package/fesm2020/odx-angular-cdk-checkbox-control.mjs +10 -12
  253. package/fesm2020/odx-angular-cdk-checkbox-control.mjs.map +1 -1
  254. package/fesm2020/odx-angular-cdk-custom-form-control.mjs +22 -49
  255. package/fesm2020/odx-angular-cdk-custom-form-control.mjs.map +1 -1
  256. package/fesm2020/odx-angular-cdk-dynamic-view.mjs +42 -22
  257. package/fesm2020/odx-angular-cdk-dynamic-view.mjs.map +1 -1
  258. package/fesm2020/odx-angular-cdk-expandable.mjs +10 -10
  259. package/fesm2020/odx-angular-cdk-expandable.mjs.map +1 -1
  260. package/fesm2020/odx-angular-cdk-radio-group-control.mjs +11 -11
  261. package/fesm2020/odx-angular-cdk-radio-group-control.mjs.map +1 -1
  262. package/fesm2020/odx-angular-components-accordion.mjs +13 -13
  263. package/fesm2020/odx-angular-components-accordion.mjs.map +1 -1
  264. package/fesm2020/odx-angular-components-action-group.mjs +3 -3
  265. package/fesm2020/odx-angular-components-action-group.mjs.map +1 -1
  266. package/fesm2020/odx-angular-components-area-header.mjs +14 -14
  267. package/fesm2020/odx-angular-components-area-header.mjs.map +1 -1
  268. package/fesm2020/odx-angular-components-avatar.mjs +3 -3
  269. package/fesm2020/odx-angular-components-avatar.mjs.map +1 -1
  270. package/fesm2020/odx-angular-components-badge.mjs +10 -10
  271. package/fesm2020/odx-angular-components-badge.mjs.map +1 -1
  272. package/fesm2020/odx-angular-components-button-group.mjs +3 -3
  273. package/fesm2020/odx-angular-components-button-group.mjs.map +1 -1
  274. package/fesm2020/odx-angular-components-button.mjs +4 -4
  275. package/fesm2020/odx-angular-components-button.mjs.map +1 -1
  276. package/fesm2020/odx-angular-components-checkbox.mjs +47 -7
  277. package/fesm2020/odx-angular-components-checkbox.mjs.map +1 -1
  278. package/fesm2020/odx-angular-components-chip.mjs +3 -3
  279. package/fesm2020/odx-angular-components-chip.mjs.map +1 -1
  280. package/fesm2020/odx-angular-components-circular-progress.mjs +3 -3
  281. package/fesm2020/odx-angular-components-circular-progress.mjs.map +1 -1
  282. package/fesm2020/odx-angular-components-content-box.mjs +13 -13
  283. package/fesm2020/odx-angular-components-content-box.mjs.map +1 -1
  284. package/fesm2020/odx-angular-components-form-field.mjs +52 -51
  285. package/fesm2020/odx-angular-components-form-field.mjs.map +1 -1
  286. package/fesm2020/odx-angular-components-header.mjs +13 -13
  287. package/fesm2020/odx-angular-components-header.mjs.map +1 -1
  288. package/fesm2020/odx-angular-components-icon.mjs +3 -3
  289. package/fesm2020/odx-angular-components-icon.mjs.map +1 -1
  290. package/fesm2020/odx-angular-components-link.mjs +3 -3
  291. package/fesm2020/odx-angular-components-link.mjs.map +1 -1
  292. package/fesm2020/odx-angular-components-list.mjs +78 -0
  293. package/fesm2020/odx-angular-components-list.mjs.map +1 -0
  294. package/fesm2020/odx-angular-components-loading-spinner.mjs +16 -16
  295. package/fesm2020/odx-angular-components-loading-spinner.mjs.map +1 -1
  296. package/fesm2020/odx-angular-components-logo.mjs +3 -3
  297. package/fesm2020/odx-angular-components-logo.mjs.map +1 -1
  298. package/fesm2020/odx-angular-components-main-menu.mjs +16 -16
  299. package/fesm2020/odx-angular-components-main-menu.mjs.map +1 -1
  300. package/fesm2020/odx-angular-components-modal.mjs +61 -58
  301. package/fesm2020/odx-angular-components-modal.mjs.map +1 -1
  302. package/fesm2020/odx-angular-components-progress.mjs +3 -3
  303. package/fesm2020/odx-angular-components-progress.mjs.map +1 -1
  304. package/fesm2020/odx-angular-components-radio-group.mjs +11 -11
  305. package/fesm2020/odx-angular-components-radio-group.mjs.map +1 -1
  306. package/fesm2020/odx-angular-components-rail-navigation.mjs +102 -0
  307. package/fesm2020/odx-angular-components-rail-navigation.mjs.map +1 -0
  308. package/fesm2020/odx-angular-components-slider.mjs +51 -0
  309. package/fesm2020/odx-angular-components-slider.mjs.map +1 -0
  310. package/fesm2020/odx-angular-components-switch.mjs +47 -7
  311. package/fesm2020/odx-angular-components-switch.mjs.map +1 -1
  312. package/fesm2020/odx-angular-components-toggle-button-group.mjs +26 -18
  313. package/fesm2020/odx-angular-components-toggle-button-group.mjs.map +1 -1
  314. package/fesm2020/odx-angular-rxjs.mjs +15 -6
  315. package/fesm2020/odx-angular-rxjs.mjs.map +1 -1
  316. package/fesm2020/odx-angular-utils.mjs +28 -2
  317. package/fesm2020/odx-angular-utils.mjs.map +1 -1
  318. package/fesm2020/odx-angular.mjs +32 -28
  319. package/fesm2020/odx-angular.mjs.map +1 -1
  320. package/package.json +34 -2
  321. package/rxjs/index.d.ts +1 -1
  322. package/rxjs/lib/from-element-resize.d.ts +2 -0
  323. package/utils/lib/helpers/angular.d.ts +2 -1
  324. package/utils/lib/helpers/dom.d.ts +5 -1
  325. package/esm2020/rxjs/lib/mark-for-check.mjs +0 -5
  326. package/rxjs/lib/mark-for-check.d.ts +0 -3
@@ -1,8 +1,8 @@
1
1
  import { __decorate, __metadata } from 'tslib';
2
2
  import * as i0 from '@angular/core';
3
- import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, Directive, Input, HostListener, ContentChild, Injector, Injectable, TemplateRef, EventEmitter, Output, NgModule } from '@angular/core';
3
+ import { Component, ViewEncapsulation, ChangeDetectionStrategy, inject, Directive, Input, HostListener, ContentChild, Injectable, Injector, TemplateRef, EventEmitter, Output, NgModule } from '@angular/core';
4
4
  import { CSSComponent, CSSModifier } from '@odx/angular/internal';
5
- import { injectElement, createModuleConfigTokens, isViewContainer, hasChanged, provideModuleConfig } from '@odx/angular/utils';
5
+ import { injectElement, getInjector, createModuleConfigTokens, hasChanged, provideModuleConfig } from '@odx/angular/utils';
6
6
  import * as i2 from '@odx/angular';
7
7
  import { Controller, detectControllerChanges, CoreModule } from '@odx/angular';
8
8
  import { ActionGroupComponent } from '@odx/angular/components/action-group';
@@ -12,11 +12,11 @@ import { IconComponent } from '@odx/angular/components/icon';
12
12
  import { deepmerge } from 'deepmerge-ts';
13
13
  import { Subject, share, merge, BehaviorSubject, shareReplay, finalize } from 'rxjs';
14
14
  import * as i1 from '@angular/common';
15
- import { Location, DOCUMENT } from '@angular/common';
15
+ import { Location } from '@angular/common';
16
16
  import { trigger, transition, group, useAnimation, query } from '@angular/animations';
17
17
  import * as i1$1 from '@angular/cdk/a11y';
18
18
  import { A11yModule } from '@angular/cdk/a11y';
19
- import { fadeIn, slideInY, fadeOut, slideOutY } from '@odx/angular/animations';
19
+ import { fadeIn, slideInY, fadeOut, slideOutY, slideInRight, slideOutRight } from '@odx/angular/animations';
20
20
  import { DynamicViewDirective, DynamicViewService } from '@odx/angular/cdk/dynamic-view';
21
21
  import { ButtonGroupComponent } from '@odx/angular/components/button-group';
22
22
 
@@ -25,12 +25,12 @@ let ModalFooterComponent = class ModalFooterComponent {
25
25
  this.element = injectElement();
26
26
  }
27
27
  };
28
- ModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
- ModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalFooterComponent, isStandalone: true, selector: "odx-modal-footer", ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
28
+ ModalFooterComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalFooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
29
+ ModalFooterComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ModalFooterComponent, isStandalone: true, selector: "odx-modal-footer", ngImport: i0, template: "<ng-content></ng-content>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
30
30
  ModalFooterComponent = __decorate([
31
31
  CSSComponent('modal__footer')
32
32
  ], ModalFooterComponent);
33
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalFooterComponent, decorators: [{
33
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalFooterComponent, decorators: [{
34
34
  type: Component,
35
35
  args: [{ standalone: true, selector: 'odx-modal-footer', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content></ng-content>\n" }]
36
36
  }] });
@@ -78,6 +78,11 @@ const ModalSize = {
78
78
  LARGE: 'large',
79
79
  };
80
80
 
81
+ const ModalVariant = {
82
+ DEFAULT: 'default',
83
+ SIDESHEET: 'sidesheet',
84
+ };
85
+
81
86
  function injectModalRef() {
82
87
  return inject((ModalRef));
83
88
  }
@@ -96,9 +101,9 @@ class ModalCloseDirective {
96
101
  this.modalRef.close(result !== null && result !== void 0 ? result : null);
97
102
  }
98
103
  }
99
- ModalCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
100
- ModalCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: ModalCloseDirective, isStandalone: true, selector: "[odxModalClose]", inputs: { result: ["odxModalClose", "result"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
101
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalCloseDirective, decorators: [{
104
+ ModalCloseDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalCloseDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
105
+ ModalCloseDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ModalCloseDirective, isStandalone: true, selector: "[odxModalClose]", inputs: { result: ["odxModalClose", "result"] }, host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
106
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalCloseDirective, decorators: [{
102
107
  type: Directive,
103
108
  args: [{
104
109
  standalone: true,
@@ -117,12 +122,12 @@ let ModalContentDirective = class ModalContentDirective {
117
122
  this.element = injectElement();
118
123
  }
119
124
  };
120
- ModalContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
121
- ModalContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: ModalContentDirective, isStandalone: true, selector: "odx-modal-content", ngImport: i0 });
125
+ ModalContentDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
126
+ ModalContentDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ModalContentDirective, isStandalone: true, selector: "odx-modal-content", ngImport: i0 });
122
127
  ModalContentDirective = __decorate([
123
128
  CSSComponent('modal__content')
124
129
  ], ModalContentDirective);
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalContentDirective, decorators: [{
130
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalContentDirective, decorators: [{
126
131
  type: Directive,
127
132
  args: [{
128
133
  standalone: true,
@@ -138,9 +143,9 @@ class ModalDismissDirective {
138
143
  this.modalRef.dismiss();
139
144
  }
140
145
  }
141
- ModalDismissDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalDismissDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
142
- ModalDismissDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: ModalDismissDirective, isStandalone: true, selector: "[odxModalDismiss]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
143
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalDismissDirective, decorators: [{
146
+ ModalDismissDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalDismissDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
147
+ ModalDismissDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ModalDismissDirective, isStandalone: true, selector: "[odxModalDismiss]", host: { listeners: { "click": "onClick()" } }, ngImport: i0 });
148
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalDismissDirective, decorators: [{
144
149
  type: Directive,
145
150
  args: [{
146
151
  standalone: true,
@@ -163,13 +168,13 @@ let ModalHeaderComponent = class ModalHeaderComponent {
163
168
  }
164
169
  }
165
170
  };
166
- ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
167
- ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalHeaderComponent, isStandalone: true, selector: "odx-modal-header", queries: [{ propertyName: "areaHeaderComponent", first: true, predicate: AreaHeaderComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"odx-area-header\"></ng-content>\n<odx-action-group class=\"odx-modal__dismiss\" *ngIf=\"modalRef.options.dismissable\">\n <button odxButton odxModalDismiss>\n <odx-icon name=\"close\"></odx-icon>\n </button>\n</odx-action-group>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: ModalDismissDirective, selector: "[odxModalDismiss]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
171
+ ModalHeaderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalHeaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
172
+ ModalHeaderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ModalHeaderComponent, isStandalone: true, selector: "odx-modal-header", queries: [{ propertyName: "areaHeaderComponent", first: true, predicate: AreaHeaderComponent, descendants: true }], ngImport: i0, template: "<ng-content select=\"odx-area-header\"></ng-content>\n<odx-action-group class=\"odx-modal__dismiss\" *ngIf=\"modalRef.options.dismissable\">\n <button odxButton odxModalDismiss>\n <odx-icon name=\"close\"></odx-icon>\n </button>\n</odx-action-group>\n", dependencies: [{ kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: ActionGroupComponent, selector: "odx-action-group", inputs: ["reverse"] }, { kind: "component", type: ButtonComponent, selector: "button[odxButton], a[odxButton]", inputs: ["variant", "size"] }, { kind: "component", type: IconComponent, selector: "odx-icon", inputs: ["inline", "size", "name"] }, { kind: "directive", type: ModalDismissDirective, selector: "[odxModalDismiss]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
168
173
  ModalHeaderComponent = __decorate([
169
174
  CSSComponent('modal__header'),
170
175
  __metadata("design:paramtypes", [])
171
176
  ], ModalHeaderComponent);
172
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalHeaderComponent, decorators: [{
177
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalHeaderComponent, decorators: [{
173
178
  type: Component,
174
179
  args: [{ standalone: true, selector: 'odx-modal-header', imports: [CoreModule, ActionGroupComponent, ButtonComponent, IconComponent, ModalDismissDirective], encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-content select=\"odx-area-header\"></ng-content>\n<odx-action-group class=\"odx-modal__dismiss\" *ngIf=\"modalRef.options.dismissable\">\n <button odxButton odxModalDismiss>\n <odx-icon name=\"close\"></odx-icon>\n </button>\n</odx-action-group>\n" }]
175
180
  }], ctorParameters: function () { return []; }, propDecorators: { areaHeaderComponent: [{
@@ -180,10 +185,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
180
185
  let ModalComponent = class ModalComponent {
181
186
  constructor() {
182
187
  this.modalRef = injectModalRef();
183
- this.injector = inject(Injector);
188
+ this.injector = getInjector();
184
189
  this.context = { $implicit: this.modalRef };
185
190
  this.element = injectElement();
186
191
  this.size = this.modalRef.options.size;
192
+ this.variant = this.modalRef.options.variant;
187
193
  detectControllerChanges(this.modalRef).subscribe(() => {
188
194
  this.size = this.modalRef.options.size;
189
195
  });
@@ -194,33 +200,41 @@ let ModalComponent = class ModalComponent {
194
200
  }
195
201
  }
196
202
  };
197
- ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
198
- ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ModalComponent, isStandalone: true, selector: "odx-modal", inputs: { content: "content" }, host: { listeners: { "keyup.esc": "onClose()" }, properties: { "@hostAnimation": "true", "attr.id": "modalRef.options.id" } }, ngImport: i0, template: "<div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [odxClickOutsideActive]=\"modalRef.options.dismissable\"\n [attr.aria-labelledby]=\"modalRef.modalTitleId\"\n class=\"odx-modal__container\"\n role=\"dialog\"\n (odxClickOutside)=\"modalRef.dismiss()\"\n>\n <ng-template [odxDynamicView]=\"content\" [odxDynamicViewContext]=\"context\" [odxDynamicViewInjector]=\"injector\"></ng-template>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.ClickOutsideDirective, selector: "[odxClickOutside]", inputs: ["odxClickOutsideActive"], outputs: ["odxClickOutside"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }], animations: [
203
+ ModalComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
204
+ ModalComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ModalComponent, isStandalone: true, selector: "odx-modal", inputs: { content: "content" }, host: { listeners: { "keyup.esc": "onClose()" }, properties: { "@hostAnimation": "variant", "attr.id": "modalRef.options.id" } }, ngImport: i0, template: "<div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [odxClickOutsideActive]=\"modalRef.options.dismissable\"\n [attr.aria-labelledby]=\"modalRef.modalTitleId\"\n class=\"odx-modal__container\"\n role=\"dialog\"\n (odxClickOutside)=\"modalRef.dismiss()\"\n>\n <ng-template [odxDynamicView]=\"content\" [odxDynamicViewContext]=\"context\" [odxDynamicViewInjector]=\"injector\"></ng-template>\n</div>\n", dependencies: [{ kind: "ngmodule", type: A11yModule }, { kind: "directive", type: i1$1.CdkTrapFocus, selector: "[cdkTrapFocus]", inputs: ["cdkTrapFocus", "cdkTrapFocusAutoCapture"], exportAs: ["cdkTrapFocus"] }, { kind: "ngmodule", type: CoreModule }, { kind: "directive", type: i2.ClickOutsideDirective, selector: "[odxClickOutside]", inputs: ["odxClickOutsideActive"], outputs: ["odxClickOutside"] }, { kind: "directive", type: DynamicViewDirective, selector: "ng-template[odxDynamicView]", inputs: ["odxDynamicView", "odxDynamicViewInjector", "odxDynamicViewContext"] }], animations: [
199
205
  trigger('hostAnimation', [
200
- transition(':enter', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),
201
- transition(':leave', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),
206
+ transition('void => default', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),
207
+ transition('default => void', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),
208
+ transition('void => sidesheet', query('.odx-modal__container', useAnimation(slideInRight))),
209
+ transition('sidesheet => void', query('.odx-modal__container', useAnimation(slideOutRight))),
202
210
  ]),
203
211
  ], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
204
212
  __decorate([
205
213
  CSSModifier(),
206
214
  __metadata("design:type", Object)
207
215
  ], ModalComponent.prototype, "size", void 0);
216
+ __decorate([
217
+ CSSModifier(),
218
+ __metadata("design:type", Object)
219
+ ], ModalComponent.prototype, "variant", void 0);
208
220
  ModalComponent = __decorate([
209
221
  CSSComponent('modal'),
210
222
  __metadata("design:paramtypes", [])
211
223
  ], ModalComponent);
212
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalComponent, decorators: [{
224
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalComponent, decorators: [{
213
225
  type: Component,
214
226
  args: [{ standalone: true, selector: 'odx-modal', imports: [A11yModule, ActionGroupComponent, ButtonComponent, IconComponent, CoreModule, DynamicViewDirective], changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, host: {
215
- '[@hostAnimation]': 'true',
227
+ '[@hostAnimation]': 'variant',
216
228
  '[attr.id]': 'modalRef.options.id',
217
229
  }, animations: [
218
230
  trigger('hostAnimation', [
219
- transition(':enter', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),
220
- transition(':leave', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),
231
+ transition('void => default', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),
232
+ transition('default => void', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),
233
+ transition('void => sidesheet', query('.odx-modal__container', useAnimation(slideInRight))),
234
+ transition('sidesheet => void', query('.odx-modal__container', useAnimation(slideOutRight))),
221
235
  ]),
222
236
  ], template: "<div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [odxClickOutsideActive]=\"modalRef.options.dismissable\"\n [attr.aria-labelledby]=\"modalRef.modalTitleId\"\n class=\"odx-modal__container\"\n role=\"dialog\"\n (odxClickOutside)=\"modalRef.dismiss()\"\n>\n <ng-template [odxDynamicView]=\"content\" [odxDynamicViewContext]=\"context\" [odxDynamicViewInjector]=\"injector\"></ng-template>\n</div>\n" }]
223
- }], ctorParameters: function () { return []; }, propDecorators: { size: [], content: [{
237
+ }], ctorParameters: function () { return []; }, propDecorators: { size: [], variant: [], content: [{
224
238
  type: Input
225
239
  }], onClose: [{
226
240
  type: HostListener,
@@ -231,6 +245,7 @@ const { ModalDefaultModuleConfig, ModalModuleConfig, injectModalModuleConfig } =
231
245
  dismissable: true,
232
246
  size: ModalSize.MEDIUM,
233
247
  dismissOnNavigation: true,
248
+ variant: ModalVariant.DEFAULT,
234
249
  });
235
250
 
236
251
  class OpenModalManagerService {
@@ -266,18 +281,17 @@ class OpenModalManagerService {
266
281
  }
267
282
  }
268
283
  }
269
- OpenModalManagerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: OpenModalManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
270
- OpenModalManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: OpenModalManagerService, providedIn: 'root' });
271
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: OpenModalManagerService, decorators: [{
284
+ OpenModalManagerService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OpenModalManagerService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
285
+ OpenModalManagerService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OpenModalManagerService, providedIn: 'root' });
286
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: OpenModalManagerService, decorators: [{
272
287
  type: Injectable,
273
288
  args: [{ providedIn: 'root' }]
274
289
  }] });
275
290
 
276
291
  class ModalService {
277
292
  constructor() {
278
- this.injector = inject(Injector);
293
+ this.injector = getInjector();
279
294
  this.moduleConfig = injectModalModuleConfig();
280
- this.document = inject(DOCUMENT);
281
295
  this.openModalManager = inject(OpenModalManagerService);
282
296
  this.dynamicViewService = inject(DynamicViewService);
283
297
  this.openModals$ = this.openModalManager.modals$;
@@ -289,15 +303,13 @@ class ModalService {
289
303
  return this.openModalManager.getById(id);
290
304
  }
291
305
  open(content, options) {
292
- const mergedOptions = this.mergeOptions(options);
306
+ const mergedOptions = deepmerge(this.moduleConfig, { id: `odx-modal-${ModalService.ID++}` }, options !== null && options !== void 0 ? options : {});
293
307
  const modalRef = new ModalRef(mergedOptions);
294
308
  this.openModalManager.add(modalRef);
295
309
  this.attachModal(modalRef, content);
296
310
  return modalRef;
297
311
  }
298
312
  attachModal(modalRef, content) {
299
- const hostElement = modalRef.options.host;
300
- const isViewContainerHost = isViewContainer(hostElement);
301
313
  const injector = Injector.create({
302
314
  providers: [provideModalRef(modalRef)],
303
315
  parent: this.injector,
@@ -305,28 +317,19 @@ class ModalService {
305
317
  const viewRef = this.dynamicViewService.createView(ModalComponent, {
306
318
  context: { content },
307
319
  injector,
308
- vcr: isViewContainerHost ? hostElement : undefined,
320
+ host: modalRef.options.host,
309
321
  });
310
322
  const onDestroy = () => {
311
323
  viewRef.destroy();
312
324
  this.openModalManager.remove(modalRef);
313
325
  };
314
- if (!isViewContainerHost) {
315
- hostElement.appendChild(viewRef.getElement());
316
- }
317
326
  modalRef.onDestroy$.pipe(finalize(() => onDestroy())).subscribe();
318
327
  }
319
- mergeOptions(options) {
320
- return deepmerge(this.moduleConfig, {
321
- id: `odx-modal-${ModalService.ID++}`,
322
- host: this.document.body,
323
- }, options !== null && options !== void 0 ? options : {});
324
- }
325
328
  }
326
329
  ModalService.ID = 0;
327
- ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
328
- ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalService, providedIn: 'root' });
329
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalService, decorators: [{
330
+ ModalService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
331
+ ModalService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalService, providedIn: 'root' });
332
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalService, decorators: [{
330
333
  type: Injectable,
331
334
  args: [{ providedIn: 'root' }]
332
335
  }] });
@@ -360,9 +363,9 @@ class ModalDirective {
360
363
  (_a = this.modalRef) === null || _a === void 0 ? void 0 : _a.dismiss();
361
364
  }
362
365
  }
363
- ModalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
364
- ModalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.9", type: ModalDirective, isStandalone: true, selector: "ng-template[odxModal]", inputs: { modalOptions: ["odxModal", "modalOptions"] }, outputs: { modalClose: "odxModalClose", modalDismiss: "odxModalDismiss" }, exportAs: ["odxModal"], usesOnChanges: true, ngImport: i0 });
365
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalDirective, decorators: [{
366
+ ModalDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
367
+ ModalDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.12", type: ModalDirective, isStandalone: true, selector: "ng-template[odxModal]", inputs: { modalOptions: ["odxModal", "modalOptions"] }, outputs: { modalClose: "odxModalClose", modalDismiss: "odxModalDismiss" }, exportAs: ["odxModal"], usesOnChanges: true, ngImport: i0 });
368
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalDirective, decorators: [{
366
369
  type: Directive,
367
370
  args: [{
368
371
  standalone: true,
@@ -389,10 +392,10 @@ class ModalModule {
389
392
  };
390
393
  }
391
394
  }
392
- ModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
393
- ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.9", ngImport: i0, type: ModalModule, imports: [ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective], exports: [CoreModule, AreaHeaderModule, ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective] });
394
- ModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalModule, imports: [ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, CoreModule, AreaHeaderModule] });
395
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ModalModule, decorators: [{
395
+ ModalModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
396
+ ModalModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.12", ngImport: i0, type: ModalModule, imports: [ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective], exports: [CoreModule, AreaHeaderModule, ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective] });
397
+ ModalModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalModule, imports: [ButtonComponent, ButtonGroupComponent, ModalComponent, ModalHeaderComponent, ModalFooterComponent, CoreModule, AreaHeaderModule] });
398
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ModalModule, decorators: [{
396
399
  type: NgModule,
397
400
  args: [{
398
401
  imports: [ButtonComponent, ButtonGroupComponent, ...modules],
@@ -404,5 +407,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImpor
404
407
  * Generated bundle index. Do not edit.
405
408
  */
406
409
 
407
- export { ModalCloseDirective, ModalComponent, ModalContentDirective, ModalDefaultModuleConfig, ModalDirective, ModalDismissDirective, ModalFooterComponent, ModalHeaderComponent, ModalModule, ModalModuleConfig, ModalRef, ModalService, ModalSize, OpenModalManagerService, injectModalModuleConfig };
410
+ export { ModalCloseDirective, ModalComponent, ModalContentDirective, ModalDefaultModuleConfig, ModalDirective, ModalDismissDirective, ModalFooterComponent, ModalHeaderComponent, ModalModule, ModalModuleConfig, ModalRef, ModalService, ModalSize, ModalVariant, OpenModalManagerService, injectModalModuleConfig };
408
411
  //# sourceMappingURL=odx-angular-components-modal.mjs.map
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-modal.mjs","sources":["../../../../libs/angular/components/modal/src/lib/components/modal-footer/modal-footer.component.ts","../../../../libs/angular/components/modal/src/lib/components/modal-footer/modal-footer.component.html","../../../../libs/angular/components/modal/src/lib/models/modal-ref.ts","../../../../libs/angular/components/modal/src/lib/models/modal-size.ts","../../../../libs/angular/components/modal/src/lib/helpers/inject-modal-ref.ts","../../../../libs/angular/components/modal/src/lib/helpers/provide-modal-ref.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-close.directive.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-content.directive.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-dismiss.directive.ts","../../../../libs/angular/components/modal/src/lib/components/modal-header/modal-header.component.ts","../../../../libs/angular/components/modal/src/lib/components/modal-header/modal-header.component.html","../../../../libs/angular/components/modal/src/lib/modal.component.ts","../../../../libs/angular/components/modal/src/lib/modal.component.html","../../../../libs/angular/components/modal/src/lib/modal.config.ts","../../../../libs/angular/components/modal/src/lib/services/open-modal-manager.service.ts","../../../../libs/angular/components/modal/src/lib/modal.service.ts","../../../../libs/angular/components/modal/src/lib/modal.directive.ts","../../../../libs/angular/components/modal/src/lib/modal.module.ts","../../../../libs/angular/components/modal/src/odx-angular-components-modal.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('modal__footer')\n@Component({\n standalone: true,\n selector: 'odx-modal-footer',\n templateUrl: './modal-footer.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalFooterComponent {\n public readonly element = injectElement();\n}\n","<ng-content></ng-content>\n","import { Controller } from '@odx/angular';\nimport { deepmerge } from 'deepmerge-ts';\nimport { merge, share, Subject } from 'rxjs';\nimport { ModalOptions } from './modal-options';\n\nexport class ModalRef<Data = unknown, Result = unknown> extends Controller {\n private readonly onClose$$ = new Subject<Result>();\n private readonly onDismiss$$ = new Subject<void>();\n\n public readonly onClose$ = this.onClose$$.pipe(share({ resetOnRefCountZero: true }));\n public readonly onDismiss$ = this.onDismiss$$.pipe(share({ resetOnRefCountZero: true }));\n public readonly onDestroy$ = merge(this.onClose$, this.onDismiss$);\n\n public get modalTitleId(): string {\n return `${this.options.id}-title`;\n }\n\n public get data(): Data {\n return this.internalOptions.data;\n }\n\n public get options(): ModalOptions<Data> {\n return this.internalOptions;\n }\n\n constructor(private internalOptions: ModalOptions<Data>) {\n super();\n }\n\n public update(options: Partial<ModalOptions<Data>>): void {\n this.internalOptions = deepmerge(this.internalOptions, options) as ModalOptions<Data>;\n this.triggerControllerChange();\n }\n\n public dismiss(): void {\n this.onDismiss$$.next();\n this.destroy();\n }\n\n public close(result: Result): void {\n this.onClose$$.next(result);\n this.destroy();\n }\n\n private destroy(): void {\n this.onClose$$.complete();\n this.onDismiss$$.complete();\n }\n}\n","export type ModalSize = typeof ModalSize[keyof typeof ModalSize];\n\nexport const ModalSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","import { inject } from '@angular/core';\nimport { ModalRef } from '../models';\n\nexport function injectModalRef<T>(): ModalRef<T> {\n return inject(ModalRef<T>);\n}\n","import { ValueProvider } from '@angular/core';\nimport { ModalRef } from '../models';\n\nexport function provideModalRef<D = unknown, R = unknown>(modalRef: ModalRef<D, R>): ValueProvider {\n return { provide: ModalRef, useValue: modalRef };\n}\n","import { Directive, HostListener, Input } from '@angular/core';\nimport { injectModalRef } from '../helpers';\n\n@Directive({\n standalone: true,\n selector: '[odxModalClose]',\n})\nexport class ModalCloseDirective<T = unknown> {\n private readonly modalRef = injectModalRef();\n\n @Input('odxModalClose')\n public result: T | null = null;\n\n @HostListener('click')\n public onClick(): void {\n const result = this.result === '' ? null : this.result;\n\n this.modalRef.close(result ?? null);\n }\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('modal__content')\n@Directive({\n standalone: true,\n selector: 'odx-modal-content',\n})\nexport class ModalContentDirective {\n public readonly element = injectElement();\n}\n","import { Directive, HostListener } from '@angular/core';\nimport { injectModalRef } from '../helpers';\n\n@Directive({\n standalone: true,\n selector: '[odxModalDismiss]',\n})\nexport class ModalDismissDirective {\n private readonly modalRef = injectModalRef();\n\n @HostListener('click')\n public onClick(): void {\n this.modalRef.dismiss();\n }\n}\n","import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges } from '@odx/angular';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { AreaHeaderComponent, AreaHeaderSize } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { ModalDismissDirective } from '../../directives';\nimport { injectModalRef } from '../../helpers';\n\n@CSSComponent('modal__header')\n@Component({\n standalone: true,\n selector: 'odx-modal-header',\n templateUrl: './modal-header.component.html',\n imports: [CoreModule, ActionGroupComponent, ButtonComponent, IconComponent, ModalDismissDirective],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalHeaderComponent implements AfterContentInit {\n protected readonly modalRef = injectModalRef();\n\n public readonly element = injectElement();\n\n @ContentChild(AreaHeaderComponent)\n public areaHeaderComponent?: AreaHeaderComponent;\n\n constructor() {\n detectControllerChanges(this.modalRef).subscribe();\n }\n\n public ngAfterContentInit(): void {\n if (this.areaHeaderComponent) {\n this.areaHeaderComponent.size = AreaHeaderSize.MEDIUM;\n }\n }\n}\n","<ng-content select=\"odx-area-header\"></ng-content>\n<odx-action-group class=\"odx-modal__dismiss\" *ngIf=\"modalRef.options.dismissable\">\n <button odxButton odxModalDismiss>\n <odx-icon name=\"close\"></odx-icon>\n </button>\n</odx-action-group>\n","import { group, query, transition, trigger, useAnimation } from '@angular/animations';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ChangeDetectionStrategy, Component, HostListener, inject, Injector, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges } from '@odx/angular';\nimport { fadeIn, fadeOut, slideInY, slideOutY } from '@odx/angular/animations';\nimport { DynamicContent, DynamicTextContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { injectModalRef } from './helpers';\n\n@CSSComponent('modal')\n@Component({\n standalone: true,\n selector: 'odx-modal',\n templateUrl: './modal.component.html',\n imports: [A11yModule, ActionGroupComponent, ButtonComponent, IconComponent, CoreModule, DynamicViewDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[@hostAnimation]': 'true',\n '[attr.id]': 'modalRef.options.id',\n },\n animations: [\n trigger('hostAnimation', [\n transition(':enter', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),\n transition(':leave', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),\n ]),\n ],\n})\nexport class ModalComponent {\n protected readonly modalRef = injectModalRef();\n protected readonly injector = inject(Injector);\n protected readonly context = { $implicit: this.modalRef };\n\n public readonly element = injectElement();\n\n @CSSModifier()\n public size = this.modalRef.options.size;\n\n @Input()\n public content!: Exclude<DynamicContent, DynamicTextContent>;\n\n constructor() {\n detectControllerChanges(this.modalRef).subscribe(() => {\n this.size = this.modalRef.options.size;\n });\n }\n\n @HostListener('keyup.esc')\n public onClose(): void {\n if (this.modalRef.options.dismissable) {\n this.modalRef.dismiss();\n }\n }\n}\n","<div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [odxClickOutsideActive]=\"modalRef.options.dismissable\"\n [attr.aria-labelledby]=\"modalRef.modalTitleId\"\n class=\"odx-modal__container\"\n role=\"dialog\"\n (odxClickOutside)=\"modalRef.dismiss()\"\n>\n <ng-template [odxDynamicView]=\"content\" [odxDynamicViewContext]=\"context\" [odxDynamicViewInjector]=\"injector\"></ng-template>\n</div>\n","import { createModuleConfigTokens } from '@odx/angular/utils';\nimport { ModalInstanceOptions, ModalSize } from './models';\n\nexport type ModalModuleConfig = Omit<ModalInstanceOptions, 'id' | 'host' | 'data'>;\n\nexport const { ModalDefaultModuleConfig, ModalModuleConfig, injectModalModuleConfig } = createModuleConfigTokens('Modal', '@odx/angular/components/modal', {\n dismissable: true,\n size: ModalSize.MEDIUM,\n dismissOnNavigation: true,\n} as ModalModuleConfig);\n","import { Location } from '@angular/common';\nimport { inject, Injectable } from '@angular/core';\nimport { BehaviorSubject, shareReplay } from 'rxjs';\nimport { ModalOptions } from '../models/modal-options';\nimport { ModalRef } from '../models/modal-ref';\n\n@Injectable({ providedIn: 'root' })\nexport class OpenModalManagerService {\n private readonly location = inject(Location);\n private readonly modals$$ = new BehaviorSubject<ModalRef[]>([]);\n private urlChangeListener?: VoidFunction;\n\n public readonly modals$ = this.modals$$.pipe(shareReplay({ refCount: true }));\n\n public getById<Data = unknown, Result = unknown>(id: ModalOptions['id']): ModalRef<Data, Result> | null {\n return (this.modals$$.getValue().find((modalRef) => modalRef.options.id === id) as ModalRef<Data, Result>) ?? null;\n }\n\n public add(modalRef: ModalRef) {\n if (this.getById(modalRef.options.id)) {\n throw Error(`Modal with ID ${modalRef.options.id} already open`);\n }\n const openModals = [...this.modals$$.getValue(), modalRef];\n this.modals$$.next(openModals);\n if (modalRef.options.dismissOnNavigation) {\n this.urlChangeListener = this.location.onUrlChange(() => modalRef.dismiss());\n }\n }\n\n public remove(modalRef: ModalRef): void {\n const openModals = this.modals$$.getValue().filter(({ options: { id } }) => id !== modalRef.options.id);\n this.modals$$.next(openModals);\n this.urlChangeListener?.();\n this.urlChangeListener = undefined;\n }\n\n public dismissAll(): void {\n for (const modalRef of this.modals$$.getValue()) {\n modalRef.dismiss();\n }\n }\n}\n","import { DOCUMENT } from '@angular/common';\nimport { inject, Injectable, Injector, TemplateRef } from '@angular/core';\nimport { DynamicContent, DynamicTextContent, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { isViewContainer } from '@odx/angular/utils';\nimport { deepmerge } from 'deepmerge-ts';\nimport { finalize } from 'rxjs';\nimport { provideModalRef } from './helpers';\nimport { ModalComponent } from './modal.component';\nimport { injectModalModuleConfig } from './modal.config';\nimport { ModalOptions, ModalRef, ModalType } from './models';\nimport { OpenModalManagerService } from './services';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private static ID = 0;\n private readonly injector = inject(Injector);\n private readonly moduleConfig = injectModalModuleConfig();\n private readonly document = inject(DOCUMENT);\n private readonly openModalManager = inject(OpenModalManagerService);\n private readonly dynamicViewService = inject(DynamicViewService);\n\n public readonly openModals$ = this.openModalManager.modals$;\n\n public dismissAll(): void {\n this.openModalManager.dismissAll();\n }\n\n public getModalById<Data = unknown, Result = unknown>(id: ModalOptions['id']): ModalRef<Data, Result> | null {\n return this.openModalManager.getById(id);\n }\n\n public open<Data, Result, T>(content: TemplateRef<T>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;\n public open<Data, Result, T = unknown>(content: ModalType<T, Data, Result>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;\n public open(content: ModalType<unknown> | TemplateRef<unknown>, options?: Partial<ModalOptions>): ModalRef {\n const mergedOptions = this.mergeOptions(options);\n const modalRef = new ModalRef(mergedOptions);\n this.openModalManager.add(modalRef);\n this.attachModal(modalRef, content);\n\n return modalRef;\n }\n\n private attachModal(modalRef: ModalRef, content: Exclude<DynamicContent, DynamicTextContent>): void {\n const hostElement = modalRef.options.host;\n const isViewContainerHost = isViewContainer(hostElement);\n const injector = Injector.create({\n providers: [provideModalRef(modalRef)],\n parent: this.injector,\n });\n const viewRef = this.dynamicViewService.createView(ModalComponent, {\n context: { content },\n injector,\n vcr: isViewContainerHost ? hostElement : undefined,\n });\n const onDestroy = () => {\n viewRef.destroy();\n this.openModalManager.remove(modalRef);\n };\n\n if (!isViewContainerHost) {\n hostElement.appendChild(viewRef.getElement());\n }\n modalRef.onDestroy$.pipe(finalize(() => onDestroy())).subscribe();\n }\n\n private mergeOptions(options?: Partial<ModalOptions>): ModalOptions {\n return deepmerge(\n this.moduleConfig,\n {\n id: `odx-modal-${ModalService.ID++}`,\n host: this.document.body,\n },\n options ?? {}\n ) as ModalOptions;\n }\n}\n","import { Directive, EventEmitter, inject, Input, OnChanges, OnDestroy, Output, TemplateRef } from '@angular/core';\nimport { hasChanged, NgChanges } from '@odx/angular/utils';\nimport { ModalService } from './modal.service';\nimport { ModalOptions, ModalRef } from './models';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[odxModal]',\n exportAs: 'odxModal',\n})\nexport class ModalDirective implements OnChanges, OnDestroy {\n private readonly modalService = inject(ModalService);\n private modalRef: ModalRef | null = null;\n\n protected readonly template = inject(TemplateRef);\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('odxModal')\n public modalOptions?: Partial<ModalOptions> | '' | null;\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxModalClose')\n public modalClose = new EventEmitter();\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxModalDismiss')\n public modalDismiss = new EventEmitter();\n\n public ngOnChanges(changes: NgChanges<ModalDirective>): void {\n if (hasChanged(changes, 'modalOptions') && this.modalOptions) {\n this.modalRef?.update(this.modalOptions);\n }\n }\n\n public ngOnDestroy() {\n this.dismiss();\n }\n\n public open(): void {\n this.modalRef = this.modalService.open(this.template, this.modalOptions || {});\n this.modalRef.onClose$.subscribe((result) => this.modalClose.next(result));\n this.modalRef.onDismiss$.subscribe((result) => this.modalDismiss.next(result));\n }\n\n public dismiss(): void {\n this.modalRef?.dismiss();\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { AreaHeaderModule } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { ButtonGroupComponent } from '@odx/angular/components/button-group';\nimport { ModuleConfigDependencies, ModuleConfigProvider, provideModuleConfig } from '@odx/angular/utils';\nimport { ModalFooterComponent, ModalHeaderComponent } from './components';\nimport { ModalCloseDirective, ModalContentDirective, ModalDismissDirective } from './directives';\nimport { ModalComponent } from './modal.component';\nimport { ModalModuleConfig } from './modal.config';\nimport { ModalDirective } from './modal.directive';\n\nconst modules = [ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective];\n\n@NgModule({\n imports: [ButtonComponent, ButtonGroupComponent, ...modules],\n exports: [CoreModule, AreaHeaderModule, ButtonComponent, ButtonGroupComponent, ...modules],\n})\nexport class ModalModule {\n public static forRoot<D extends ModuleConfigDependencies>(config: ModuleConfigProvider<Partial<ModalModuleConfig>, D>): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [provideModuleConfig(ModalModuleConfig, config)],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAYa,IAAA,oBAAoB,GAA1B,MAAM,oBAAoB,CAAA;AAA1B,IAAA,WAAA,GAAA;AACW,QAAA,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;KAC3C;;iHAFY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAA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AA,EAAA,IAAA,EAAA,WAAW,EAHZ,OAAA,EAAA,CAAA,eAAe,EAAE,oBAAoB,EAHhC,cAAc,EAAE,oBAAoB,EAAE,oBAAoB,EAI/D,UAAU,EAAE,gBAAgB,CAAA,EAAA,CAAA,CAAA;2FAE3B,WAAW,EAAA,UAAA,EAAA,CAAA;kBAJvB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,OAAO,EAAE,CAAC,eAAe,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;AAC5D,oBAAA,OAAO,EAAE,CAAC,UAAU,EAAE,gBAAgB,EAAE,eAAe,EAAE,oBAAoB,EAAE,GAAG,OAAO,CAAC;iBAC3F,CAAA;;;ACjBD;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-modal.mjs","sources":["../../../../libs/angular/components/modal/src/lib/components/modal-footer/modal-footer.component.ts","../../../../libs/angular/components/modal/src/lib/components/modal-footer/modal-footer.component.html","../../../../libs/angular/components/modal/src/lib/models/modal-ref.ts","../../../../libs/angular/components/modal/src/lib/models/modal-size.ts","../../../../libs/angular/components/modal/src/lib/models/modal-variant.ts","../../../../libs/angular/components/modal/src/lib/helpers/inject-modal-ref.ts","../../../../libs/angular/components/modal/src/lib/helpers/provide-modal-ref.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-close.directive.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-content.directive.ts","../../../../libs/angular/components/modal/src/lib/directives/modal-dismiss.directive.ts","../../../../libs/angular/components/modal/src/lib/components/modal-header/modal-header.component.ts","../../../../libs/angular/components/modal/src/lib/components/modal-header/modal-header.component.html","../../../../libs/angular/components/modal/src/lib/modal.component.ts","../../../../libs/angular/components/modal/src/lib/modal.component.html","../../../../libs/angular/components/modal/src/lib/modal.config.ts","../../../../libs/angular/components/modal/src/lib/services/open-modal-manager.service.ts","../../../../libs/angular/components/modal/src/lib/modal.service.ts","../../../../libs/angular/components/modal/src/lib/modal.directive.ts","../../../../libs/angular/components/modal/src/lib/modal.module.ts","../../../../libs/angular/components/modal/src/odx-angular-components-modal.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Component, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('modal__footer')\n@Component({\n standalone: true,\n selector: 'odx-modal-footer',\n templateUrl: './modal-footer.component.html',\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalFooterComponent {\n public readonly element = injectElement();\n}\n","<ng-content></ng-content>\n","import { Controller } from '@odx/angular';\nimport { deepmerge } from 'deepmerge-ts';\nimport { merge, share, Subject } from 'rxjs';\nimport { ModalOptions } from './modal-options';\n\nexport class ModalRef<Data = unknown, Result = unknown> extends Controller {\n private readonly onClose$$ = new Subject<Result>();\n private readonly onDismiss$$ = new Subject<void>();\n\n public readonly onClose$ = this.onClose$$.pipe(share({ resetOnRefCountZero: true }));\n public readonly onDismiss$ = this.onDismiss$$.pipe(share({ resetOnRefCountZero: true }));\n public readonly onDestroy$ = merge(this.onClose$, this.onDismiss$);\n\n public get modalTitleId(): string {\n return `${this.options.id}-title`;\n }\n\n public get data(): Data {\n return this.internalOptions.data;\n }\n\n public get options(): ModalOptions<Data> {\n return this.internalOptions;\n }\n\n constructor(private internalOptions: ModalOptions<Data>) {\n super();\n }\n\n public update(options: Partial<ModalOptions<Data>>): void {\n this.internalOptions = deepmerge(this.internalOptions, options) as ModalOptions<Data>;\n this.triggerControllerChange();\n }\n\n public dismiss(): void {\n this.onDismiss$$.next();\n this.destroy();\n }\n\n public close(result: Result): void {\n this.onClose$$.next(result);\n this.destroy();\n }\n\n private destroy(): void {\n this.onClose$$.complete();\n this.onDismiss$$.complete();\n }\n}\n","export type ModalSize = typeof ModalSize[keyof typeof ModalSize];\n\nexport const ModalSize = {\n SMALL: 'small',\n MEDIUM: 'medium',\n LARGE: 'large',\n} as const;\n","export type ModalVariant = typeof ModalVariant[keyof typeof ModalVariant];\n\nexport const ModalVariant = {\n DEFAULT: 'default',\n SIDESHEET: 'sidesheet',\n} as const;\n","import { inject } from '@angular/core';\nimport { ModalRef } from '../models';\n\nexport function injectModalRef<T>(): ModalRef<T> {\n return inject(ModalRef<T>);\n}\n","import { ValueProvider } from '@angular/core';\nimport { ModalRef } from '../models';\n\nexport function provideModalRef<D = unknown, R = unknown>(modalRef: ModalRef<D, R>): ValueProvider {\n return { provide: ModalRef, useValue: modalRef };\n}\n","import { Directive, HostListener, Input } from '@angular/core';\nimport { injectModalRef } from '../helpers';\n\n@Directive({\n standalone: true,\n selector: '[odxModalClose]',\n})\nexport class ModalCloseDirective<T = unknown> {\n private readonly modalRef = injectModalRef();\n\n @Input('odxModalClose')\n public result: T | null = null;\n\n @HostListener('click')\n public onClick(): void {\n const result = this.result === '' ? null : this.result;\n\n this.modalRef.close(result ?? null);\n }\n}\n","import { Directive } from '@angular/core';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('modal__content')\n@Directive({\n standalone: true,\n selector: 'odx-modal-content',\n})\nexport class ModalContentDirective {\n public readonly element = injectElement();\n}\n","import { Directive, HostListener } from '@angular/core';\nimport { injectModalRef } from '../helpers';\n\n@Directive({\n standalone: true,\n selector: '[odxModalDismiss]',\n})\nexport class ModalDismissDirective {\n private readonly modalRef = injectModalRef();\n\n @HostListener('click')\n public onClick(): void {\n this.modalRef.dismiss();\n }\n}\n","import { AfterContentInit, ChangeDetectionStrategy, Component, ContentChild, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges } from '@odx/angular';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { AreaHeaderComponent, AreaHeaderSize } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\nimport { ModalDismissDirective } from '../../directives';\nimport { injectModalRef } from '../../helpers';\n\n@CSSComponent('modal__header')\n@Component({\n standalone: true,\n selector: 'odx-modal-header',\n templateUrl: './modal-header.component.html',\n imports: [CoreModule, ActionGroupComponent, ButtonComponent, IconComponent, ModalDismissDirective],\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n})\nexport class ModalHeaderComponent implements AfterContentInit {\n protected readonly modalRef = injectModalRef();\n\n public readonly element = injectElement();\n\n @ContentChild(AreaHeaderComponent)\n public areaHeaderComponent?: AreaHeaderComponent;\n\n constructor() {\n detectControllerChanges(this.modalRef).subscribe();\n }\n\n public ngAfterContentInit(): void {\n if (this.areaHeaderComponent) {\n this.areaHeaderComponent.size = AreaHeaderSize.MEDIUM;\n }\n }\n}\n","<ng-content select=\"odx-area-header\"></ng-content>\n<odx-action-group class=\"odx-modal__dismiss\" *ngIf=\"modalRef.options.dismissable\">\n <button odxButton odxModalDismiss>\n <odx-icon name=\"close\"></odx-icon>\n </button>\n</odx-action-group>\n","import { group, query, transition, trigger, useAnimation } from '@angular/animations';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { ChangeDetectionStrategy, Component, HostListener, Input, ViewEncapsulation } from '@angular/core';\nimport { CoreModule, detectControllerChanges } from '@odx/angular';\nimport { fadeIn, fadeOut, slideInRight, slideInY, slideOutRight, slideOutY } from '@odx/angular/animations';\nimport { DynamicContent, DynamicTextContent, DynamicViewDirective } from '@odx/angular/cdk/dynamic-view';\nimport { ActionGroupComponent } from '@odx/angular/components/action-group';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { IconComponent } from '@odx/angular/components/icon';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { getInjector, injectElement } from '@odx/angular/utils';\nimport { injectModalRef } from './helpers';\n\n@CSSComponent('modal')\n@Component({\n standalone: true,\n selector: 'odx-modal',\n templateUrl: './modal.component.html',\n imports: [A11yModule, ActionGroupComponent, ButtonComponent, IconComponent, CoreModule, DynamicViewDirective],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n '[@hostAnimation]': 'variant',\n '[attr.id]': 'modalRef.options.id',\n },\n animations: [\n trigger('hostAnimation', [\n transition('void => default', group([useAnimation(fadeIn()), query('.odx-modal__container', useAnimation(slideInY('8px')))])),\n transition('default => void', group([useAnimation(fadeOut()), query('.odx-modal__container', useAnimation(slideOutY('8px')))])),\n transition('void => sidesheet', query('.odx-modal__container', useAnimation(slideInRight))),\n transition('sidesheet => void', query('.odx-modal__container', useAnimation(slideOutRight))),\n ]),\n ],\n})\nexport class ModalComponent {\n protected readonly modalRef = injectModalRef();\n protected readonly injector = getInjector();\n protected readonly context = { $implicit: this.modalRef };\n\n public readonly element = injectElement();\n\n @CSSModifier()\n public size = this.modalRef.options.size;\n\n @CSSModifier()\n public variant = this.modalRef.options.variant;\n\n @Input()\n public content!: Exclude<DynamicContent, DynamicTextContent>;\n\n constructor() {\n detectControllerChanges(this.modalRef).subscribe(() => {\n this.size = this.modalRef.options.size;\n });\n }\n\n @HostListener('keyup.esc')\n public onClose(): void {\n if (this.modalRef.options.dismissable) {\n this.modalRef.dismiss();\n }\n }\n}\n","<div\n cdkTrapFocus\n cdkTrapFocusAutoCapture\n [odxClickOutsideActive]=\"modalRef.options.dismissable\"\n [attr.aria-labelledby]=\"modalRef.modalTitleId\"\n class=\"odx-modal__container\"\n role=\"dialog\"\n (odxClickOutside)=\"modalRef.dismiss()\"\n>\n <ng-template [odxDynamicView]=\"content\" [odxDynamicViewContext]=\"context\" [odxDynamicViewInjector]=\"injector\"></ng-template>\n</div>\n","import { createModuleConfigTokens } from '@odx/angular/utils';\nimport { ModalInstanceOptions, ModalSize } from './models';\nimport { ModalVariant } from './models/modal-variant';\n\nexport type ModalModuleConfig = Omit<ModalInstanceOptions, 'id' | 'host' | 'data'>;\n\nexport const { ModalDefaultModuleConfig, ModalModuleConfig, injectModalModuleConfig } = createModuleConfigTokens('Modal', '@odx/angular/components/modal', {\n dismissable: true,\n size: ModalSize.MEDIUM,\n dismissOnNavigation: true,\n variant: ModalVariant.DEFAULT,\n} as ModalModuleConfig);\n","import { Location } from '@angular/common';\nimport { inject, Injectable } from '@angular/core';\nimport { BehaviorSubject, shareReplay } from 'rxjs';\nimport { ModalOptions } from '../models/modal-options';\nimport { ModalRef } from '../models/modal-ref';\n\n@Injectable({ providedIn: 'root' })\nexport class OpenModalManagerService {\n private readonly location = inject(Location);\n private readonly modals$$ = new BehaviorSubject<ModalRef[]>([]);\n private urlChangeListener?: VoidFunction;\n\n public readonly modals$ = this.modals$$.pipe(shareReplay({ refCount: true }));\n\n public getById<Data = unknown, Result = unknown>(id: ModalOptions['id']): ModalRef<Data, Result> | null {\n return (this.modals$$.getValue().find((modalRef) => modalRef.options.id === id) as ModalRef<Data, Result>) ?? null;\n }\n\n public add(modalRef: ModalRef) {\n if (this.getById(modalRef.options.id)) {\n throw Error(`Modal with ID ${modalRef.options.id} already open`);\n }\n const openModals = [...this.modals$$.getValue(), modalRef];\n this.modals$$.next(openModals);\n if (modalRef.options.dismissOnNavigation) {\n this.urlChangeListener = this.location.onUrlChange(() => modalRef.dismiss());\n }\n }\n\n public remove(modalRef: ModalRef): void {\n const openModals = this.modals$$.getValue().filter(({ options: { id } }) => id !== modalRef.options.id);\n this.modals$$.next(openModals);\n this.urlChangeListener?.();\n this.urlChangeListener = undefined;\n }\n\n public dismissAll(): void {\n for (const modalRef of this.modals$$.getValue()) {\n modalRef.dismiss();\n }\n }\n}\n","import { inject, Injectable, Injector, TemplateRef } from '@angular/core';\nimport { DynamicContent, DynamicTextContent, DynamicViewService } from '@odx/angular/cdk/dynamic-view';\nimport { getInjector } from '@odx/angular/utils';\nimport { deepmerge } from 'deepmerge-ts';\nimport { finalize } from 'rxjs';\nimport { provideModalRef } from './helpers';\nimport { ModalComponent } from './modal.component';\nimport { injectModalModuleConfig } from './modal.config';\nimport { ModalOptions, ModalRef, ModalType } from './models';\nimport { OpenModalManagerService } from './services';\n\n@Injectable({ providedIn: 'root' })\nexport class ModalService {\n private static ID = 0;\n private readonly injector = getInjector();\n private readonly moduleConfig = injectModalModuleConfig();\n private readonly openModalManager = inject(OpenModalManagerService);\n private readonly dynamicViewService = inject(DynamicViewService);\n\n public readonly openModals$ = this.openModalManager.modals$;\n\n public dismissAll(): void {\n this.openModalManager.dismissAll();\n }\n\n public getModalById<Data = unknown, Result = unknown>(id: ModalOptions['id']): ModalRef<Data, Result> | null {\n return this.openModalManager.getById(id);\n }\n\n public open<Data, Result, T>(content: TemplateRef<T>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;\n public open<Data, Result, T = unknown>(content: ModalType<T, Data, Result>, options?: Partial<ModalOptions<Data>>): ModalRef<Data, Result>;\n public open(content: ModalType<unknown> | TemplateRef<unknown>, options?: Partial<ModalOptions>): ModalRef {\n const mergedOptions = deepmerge(this.moduleConfig, { id: `odx-modal-${ModalService.ID++}` }, options ?? {}) as ModalOptions;\n const modalRef = new ModalRef(mergedOptions);\n this.openModalManager.add(modalRef);\n this.attachModal(modalRef, content);\n\n return modalRef;\n }\n\n private attachModal(modalRef: ModalRef, content: Exclude<DynamicContent, DynamicTextContent>): void {\n const injector = Injector.create({\n providers: [provideModalRef(modalRef)],\n parent: this.injector,\n });\n const viewRef = this.dynamicViewService.createView(ModalComponent, {\n context: { content },\n injector,\n host: modalRef.options.host,\n });\n const onDestroy = () => {\n viewRef.destroy();\n this.openModalManager.remove(modalRef);\n };\n\n modalRef.onDestroy$.pipe(finalize(() => onDestroy())).subscribe();\n }\n}\n","import { Directive, EventEmitter, inject, Input, OnChanges, OnDestroy, Output, TemplateRef } from '@angular/core';\nimport { hasChanged, NgChanges } from '@odx/angular/utils';\nimport { ModalService } from './modal.service';\nimport { ModalOptions, ModalRef } from './models';\n\n@Directive({\n standalone: true,\n selector: 'ng-template[odxModal]',\n exportAs: 'odxModal',\n})\nexport class ModalDirective implements OnChanges, OnDestroy {\n private readonly modalService = inject(ModalService);\n private modalRef: ModalRef | null = null;\n\n protected readonly template = inject(TemplateRef);\n\n // eslint-disable-next-line @angular-eslint/no-input-rename\n @Input('odxModal')\n public modalOptions?: Partial<ModalOptions> | '' | null;\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxModalClose')\n public modalClose = new EventEmitter();\n\n // eslint-disable-next-line @angular-eslint/no-output-rename\n @Output('odxModalDismiss')\n public modalDismiss = new EventEmitter();\n\n public ngOnChanges(changes: NgChanges<ModalDirective>): void {\n if (hasChanged(changes, 'modalOptions') && this.modalOptions) {\n this.modalRef?.update(this.modalOptions);\n }\n }\n\n public ngOnDestroy() {\n this.dismiss();\n }\n\n public open(): void {\n this.modalRef = this.modalService.open(this.template, this.modalOptions || {});\n this.modalRef.onClose$.subscribe((result) => this.modalClose.next(result));\n this.modalRef.onDismiss$.subscribe((result) => this.modalDismiss.next(result));\n }\n\n public dismiss(): void {\n this.modalRef?.dismiss();\n }\n}\n","import { ModuleWithProviders, NgModule } from '@angular/core';\nimport { CoreModule } from '@odx/angular';\nimport { AreaHeaderModule } from '@odx/angular/components/area-header';\nimport { ButtonComponent } from '@odx/angular/components/button';\nimport { ButtonGroupComponent } from '@odx/angular/components/button-group';\nimport { ModuleConfigDependencies, ModuleConfigProvider, provideModuleConfig } from '@odx/angular/utils';\nimport { ModalFooterComponent, ModalHeaderComponent } from './components';\nimport { ModalCloseDirective, ModalContentDirective, ModalDismissDirective } from './directives';\nimport { ModalComponent } from './modal.component';\nimport { ModalModuleConfig } from './modal.config';\nimport { ModalDirective } from './modal.directive';\n\nconst modules = [ModalComponent, ModalHeaderComponent, ModalFooterComponent, ModalDirective, ModalCloseDirective, ModalContentDirective, ModalDismissDirective];\n\n@NgModule({\n imports: [ButtonComponent, ButtonGroupComponent, ...modules],\n exports: [CoreModule, AreaHeaderModule, ButtonComponent, ButtonGroupComponent, ...modules],\n})\nexport class ModalModule {\n public static forRoot<D extends ModuleConfigDependencies>(config: ModuleConfigProvider<Partial<ModalModuleConfig>, D>): ModuleWithProviders<ModalModule> {\n return {\n ngModule: ModalModule,\n providers: [provideModuleConfig(ModalModuleConfig, config)],\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAYa,IAAA,oBAAoB,GAA1B,MAAM,oBAAoB,CAAA;AAA1B,IAAA,WAAA,GAAA;AACW,QAAA,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;KAC3C;;kHAFY,oBAAoB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAApB,oBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,oBAAoB,4ECZjC,6BACA,EAAA,eAAA,EAAA,EAAA,CAAA,uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA,CAAA;ADWa,oBAAoB,GAAA,UAAA,CAAA;IARhC,YAAY,CAAC,eAAe,CAAC;CAQjB,EAAA,oBAAoB,CAEhC,CAAA;4FAFY,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAPhC,SAAS;iCACI,IAAI,EAAA,QAAA,EACN,kBAAkB,EAEb,aAAA,EAAA,iBAAiB,CAAC,IAAI,EAAA,eAAA,EACpB,uBAAuB,CAAC,MAAM,EAAA,QAAA,EAAA,6BAAA,EAAA,CAAA;;;AEL3C,MAAO,QAA2C,SAAQ,UAAU,CAAA;AAoBxE,IAAA,WAAA,CAAoB,eAAmC,EAAA;AACrD,QAAA,KAAK,EAAE,CAAC;AADU,QAAA,IAAe,CAAA,eAAA,GAAf,eAAe,CAAoB;AAnBtC,QAAA,IAAA,CAAA,SAAS,GAAG,IAAI,OAAO,EAAU,CAAC;AAClC,QAAA,I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
- ProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
- ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.9", type: ProgressComponent, isStandalone: true, selector: "odx-progress", inputs: { value: "value" }, host: { properties: { "attr.aria-valuenow": "ariaValueNow", "attr.aria-valuemax": "100", "attr.aria-valuemin": "0", "attr.role": "\"meter\"" } }, ngImport: i0, template: "<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
31
+ ProgressComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ProgressComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
32
+ ProgressComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.12", type: ProgressComponent, isStandalone: true, selector: "odx-progress", inputs: { value: "value" }, host: { properties: { "attr.aria-valuenow": "ariaValueNow", "attr.aria-valuemax": "100", "attr.aria-valuemin": "0", "attr.role": "\"meter\"" } }, ngImport: i0, template: "<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
33
33
  __decorate([
34
34
  CSSModifier(),
35
35
  __metadata("design:type", Object)
@@ -37,7 +37,7 @@ __decorate([
37
37
  ProgressComponent = __decorate([
38
38
  CSSComponent('progress')
39
39
  ], ProgressComponent);
40
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.9", ngImport: i0, type: ProgressComponent, decorators: [{
40
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.12", ngImport: i0, type: ProgressComponent, decorators: [{
41
41
  type: Component,
42
42
  args: [{ selector: 'odx-progress', standalone: true, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, host: {
43
43
  '[attr.aria-valuenow]': 'ariaValueNow',
@@ -1 +1 @@
1
- {"version":3,"file":"odx-angular-components-progress.mjs","sources":["../../../../libs/angular/components/progress/src/lib/progress.component.ts","../../../../libs/angular/components/progress/src/lib/progress.component.html","../../../../libs/angular/components/progress/src/odx-angular-components-progress.ts"],"sourcesContent":["import { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('progress')\n@Component({\n selector: 'odx-progress',\n templateUrl: './progress.component.html',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.aria-valuenow]': 'ariaValueNow',\n '[attr.aria-valuemax]': '100',\n '[attr.aria-valuemin]': '0',\n '[attr.role]': '\"meter\"',\n },\n})\nexport class ProgressComponent {\n public static ngAcceptInputType_value: NumberInput;\n\n private _value = 0;\n\n protected get ariaValueNow(): null | number {\n return this.indeterminate ? null : this.value;\n }\n\n protected get progressValue(): number {\n return this.indeterminate ? 1 : this.value / 100;\n }\n\n public readonly element = injectElement();\n\n @Input()\n public set value(value: unknown) {\n const coercedValue = coerceNumberProperty(value);\n if (coercedValue <= 100 && coercedValue >= -1) {\n this._value = coercedValue;\n this.indeterminate = coercedValue === -1;\n }\n }\n\n public get value(): number {\n return this._value;\n }\n\n @CSSModifier()\n public indeterminate = false;\n}\n","<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAmBa,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GA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,EAAA,KAAA,CAAA,CAAA,CAAA;AA7BlB,iBAAiB,GAAA,UAAA,CAAA;IAd7B,YAAY,CAAC,UAAU,CAAC;CAcZ,EAAA,iBAAiB,CA8B7B,CAAA;2FA9BY,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAb7B,SAAS;+BACE,cAAc,EAAA,UAAA,EAEZ,IAAI,EAAA,aAAA,EACD,iBAAiB,CAAC,IAAI,EACpB,eAAA,EAAA,uBAAuB,CAAC,MAAM,EACzC,IAAA,EAAA;AACJ,wBAAA,sBAAsB,EAAE,cAAc;AACtC,wBAAA,sBAAsB,EAAE,KAAK;AAC7B,wBAAA,sBAAsB,EAAE,GAAG;AAC3B,wBAAA,aAAa,EAAE,SAAS;AACzB,qBAAA,EAAA,QAAA,EAAA,kGAAA,EAAA,CAAA;8BAkBU,KAAK,EAAA,CAAA;sBADf,KAAK;gBAcC,aAAa,EAAA,EAAA,EAAA,EAAA,CAAA;;AEhDtB;;AAEG;;;;"}
1
+ {"version":3,"file":"odx-angular-components-progress.mjs","sources":["../../../../libs/angular/components/progress/src/lib/progress.component.ts","../../../../libs/angular/components/progress/src/lib/progress.component.html","../../../../libs/angular/components/progress/src/odx-angular-components-progress.ts"],"sourcesContent":["import { coerceNumberProperty, NumberInput } from '@angular/cdk/coercion';\nimport { ChangeDetectionStrategy, Component, Input, ViewEncapsulation } from '@angular/core';\nimport { CSSComponent, CSSModifier } from '@odx/angular/internal';\nimport { injectElement } from '@odx/angular/utils';\n\n@CSSComponent('progress')\n@Component({\n selector: 'odx-progress',\n templateUrl: './progress.component.html',\n standalone: true,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '[attr.aria-valuenow]': 'ariaValueNow',\n '[attr.aria-valuemax]': '100',\n '[attr.aria-valuemin]': '0',\n '[attr.role]': '\"meter\"',\n },\n})\nexport class ProgressComponent {\n public static ngAcceptInputType_value: NumberInput;\n\n private _value = 0;\n\n protected get ariaValueNow(): null | number {\n return this.indeterminate ? null : this.value;\n }\n\n protected get progressValue(): number {\n return this.indeterminate ? 1 : this.value / 100;\n }\n\n public readonly element = injectElement();\n\n @Input()\n public set value(value: unknown) {\n const coercedValue = coerceNumberProperty(value);\n if (coercedValue <= 100 && coercedValue >= -1) {\n this._value = coercedValue;\n this.indeterminate = coercedValue === -1;\n }\n }\n\n public get value(): number {\n return this._value;\n }\n\n @CSSModifier()\n public indeterminate = false;\n}\n","<div class=\"odx-progress__indicator\" style=\"transform: scaleX({{ progressValue }})\"></div>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;AAmBa,IAAA,iBAAiB,GAAvB,MAAM,iBAAiB,CAAA;AAAvB,IAAA,WAAA,GAAA;AAGG,QAAA,IAAM,CAAA,MAAA,GAAG,CAAC,CAAC;AAUH,QAAA,IAAO,CAAA,OAAA,GAAG,aAAa,EAAE,CAAC;AAgBnC,QAAA,IAAa,CAAA,aAAA,GAAG,KAAK,CAAC;KAC9B;AAzBC,IAAA,IAAc,YAAY,GAAA;AACxB,QAAA,OAAO,IAAI,CAAC,aAAa,GAAG,IAAI,GAAG,IAAI,CAAC,KAAK,CAAC;KAC/C;AAED,IAAA,IAAc,aAAa,GAAA;AACzB,QAAA,OAAO,IAAI,CAAC,aAAa,GAAG,CAAC,GAAG,IAAI,CAAC,KAAK,GAAG,GAAG,CAAC;KAClD;IAID,IACW,KAAK,CAAC,KAAc,EAAA;AAC7B,QAAA,MAAM,YAAY,GAAG,oBAAoB,CAAC,KAAK,CAAC,CAAC;QACjD,IAAI,YAAY,IAAI,GAAG,IAAI,YAAY,IAAI,CAAC,CAAC,EAAE;AAC7C,YAAA,IAAI,CAAC,MAAM,GAAG,YAAY,CAAC;AAC3B,YAAA,IAAI,CAAC,aAAa,GAAG,YAAY,KAAK,CAAC,CAAC,CAAC;AAC1C,SAAA;KACF;AAED,IAAA,IAAW,KAAK,GAAA;QACd,OAAO,IAAI,CAAC,MAA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