@eui/components 19.1.1-snapshot-1741071838252 → 19.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (269) hide show
  1. package/directives/eui-clearable.directive.d.ts.map +1 -1
  2. package/directives/eui-loading.directive.d.ts.map +1 -1
  3. package/directives/eui-maxlength.directive.d.ts.map +1 -1
  4. package/directives/eui-scroll-handler.directive.d.ts.map +1 -1
  5. package/directives/eui-smooth-scroll.directive.d.ts.map +1 -1
  6. package/directives/eui-tooltip/eui-tooltip.directive.d.ts.map +1 -1
  7. package/docs/components/EuiAutocompleteComponent.html +1 -1
  8. package/docs/components/EuiAvatarBadgeComponent.html +52 -0
  9. package/docs/components/EuiAvatarComponent.html +109 -1
  10. package/docs/components/EuiAvatarIconComponent.html +16 -0
  11. package/docs/components/EuiAvatarImageComponent.html +42 -0
  12. package/docs/components/EuiAvatarListComponent.html +45 -0
  13. package/docs/components/EuiAvatarTextComponent.html +38 -0
  14. package/docs/components/EuiDiscussionThreadComponent.html +77 -1
  15. package/docs/components/EuiDiscussionThreadItemComponent.html +118 -0
  16. package/docs/components/EuiIconToggleComponent.html +149 -0
  17. package/docs/components/EuiListComponent.html +130 -0
  18. package/docs/components/EuiListItemComponent.html +29 -0
  19. package/docs/components/EuiMessageBoxComponent.html +192 -2
  20. package/docs/components/EuiPopoverComponent.html +119 -8
  21. package/docs/components/EuiTimebarComponent.html +87 -2
  22. package/docs/dependencies.html +33 -33
  23. package/docs/directives/EuiPopoverArrowPositionDirective.html +29 -0
  24. package/docs/injectables/EuiMessageBoxService.html +49 -3
  25. package/docs/interfaces/EuiDiscussionThreadItem.html +61 -0
  26. package/docs/js/menu-wc.js +41 -46
  27. package/docs/js/menu-wc_es5.js +1 -1
  28. package/docs/js/search/search_index.js +2 -2
  29. package/docs/miscellaneous/typealiases.html +6 -0
  30. package/docs/miscellaneous/variables.html +59 -5
  31. package/docs/modules/EuiAvatarModule.html +25 -4
  32. package/docs/modules/EuiDiscussionThreadModule.html +16 -1
  33. package/docs/modules/EuiIconToggleModule.html +23 -11
  34. package/docs/modules/EuiListModule.html +17 -2
  35. package/docs/modules/EuiMessageBoxModule.html +13 -1
  36. package/docs/modules/EuiPopoverModule.html +16 -1
  37. package/docs/modules/EuiTimebarModule.html +23 -14
  38. package/eui-alert/eui-alert.component.d.ts.map +1 -1
  39. package/eui-autocomplete/eui-autocomplete-option/eui-autocomplete-option.component.d.ts.map +1 -1
  40. package/eui-autocomplete/eui-autocomplete.component.d.ts.map +1 -1
  41. package/eui-avatar/avatar-badge/avatar-badge.component.d.ts +37 -0
  42. package/eui-avatar/avatar-badge/avatar-badge.component.d.ts.map +1 -1
  43. package/eui-avatar/avatar-icon/avatar-icon.component.d.ts +18 -0
  44. package/eui-avatar/avatar-icon/avatar-icon.component.d.ts.map +1 -1
  45. package/eui-avatar/avatar-image/avatar-image.component.d.ts +26 -0
  46. package/eui-avatar/avatar-image/avatar-image.component.d.ts.map +1 -1
  47. package/eui-avatar/avatar-list/avatar-list.component.d.ts +30 -0
  48. package/eui-avatar/avatar-list/avatar-list.component.d.ts.map +1 -1
  49. package/eui-avatar/avatar-text/avatar-text.component.d.ts +35 -0
  50. package/eui-avatar/avatar-text/avatar-text.component.d.ts.map +1 -1
  51. package/eui-avatar/eui-avatar.component.d.ts +85 -1
  52. package/eui-avatar/eui-avatar.component.d.ts.map +1 -1
  53. package/eui-avatar/eui-avatar.module.d.ts +33 -10
  54. package/eui-avatar/eui-avatar.module.d.ts.map +1 -1
  55. package/eui-badge/eui-badge.component.d.ts.map +1 -1
  56. package/eui-block-content/eui-block-content.component.d.ts.map +1 -1
  57. package/eui-block-document/eui-block-document.component.d.ts.map +1 -1
  58. package/eui-button/eui-button.component.d.ts.map +1 -1
  59. package/eui-button-group/eui-button-group.component.d.ts.map +1 -1
  60. package/eui-button-v2/eui-button-v2.component.d.ts.map +1 -1
  61. package/eui-card/components/eui-card-header/eui-card-header.component.d.ts.map +1 -1
  62. package/eui-card/eui-card.component.d.ts.map +1 -1
  63. package/eui-chip/eui-chip.component.d.ts.map +1 -1
  64. package/eui-chip-list/eui-chip-list.component.d.ts.map +1 -1
  65. package/eui-dashboard-card/eui-dashboard-card.component.d.ts.map +1 -1
  66. package/eui-date-range-selector/eui-date-range-selector.component.d.ts.map +1 -1
  67. package/eui-datepicker/eui-datepicker.component.d.ts.map +1 -1
  68. package/eui-dialog/eui-dialog.component.d.ts.map +1 -1
  69. package/eui-discussion-thread/eui-discussion-thread-item.component.d.ts +65 -0
  70. package/eui-discussion-thread/eui-discussion-thread-item.component.d.ts.map +1 -1
  71. package/eui-discussion-thread/eui-discussion-thread.component.d.ts +51 -0
  72. package/eui-discussion-thread/eui-discussion-thread.component.d.ts.map +1 -1
  73. package/eui-discussion-thread/eui-discussion-thread.module.d.ts +19 -1
  74. package/eui-discussion-thread/eui-discussion-thread.module.d.ts.map +1 -1
  75. package/eui-discussion-thread/models/eui-discussion-thread-item.model.d.ts +45 -0
  76. package/eui-discussion-thread/models/eui-discussion-thread-item.model.d.ts.map +1 -1
  77. package/eui-dropdown/dropdown-item/eui-dropdown-item.component.d.ts.map +1 -1
  78. package/eui-dropdown/eui-dropdown.component.d.ts.map +1 -1
  79. package/eui-feedback-message/eui-feedback-message.component.d.ts.map +1 -1
  80. package/eui-fieldset/eui-fieldset.component.d.ts.map +1 -1
  81. package/eui-file-upload/eui-file-upload.component.d.ts.map +1 -1
  82. package/eui-file-upload/file-preview/file-preview.component.d.ts.map +1 -1
  83. package/eui-growl/eui-growl.component.d.ts.map +1 -1
  84. package/eui-icon/eui-icon-svg.component.d.ts.map +1 -1
  85. package/eui-icon-button/eui-icon-button.component.d.ts.map +1 -1
  86. package/eui-icon-button-expander/eui-icon-button-expander.component.d.ts.map +1 -1
  87. package/eui-icon-input/eui-icon-input.component.d.ts.map +1 -1
  88. package/eui-icon-toggle/eui-icon-toggle.component.d.ts +96 -1
  89. package/eui-icon-toggle/eui-icon-toggle.component.d.ts.map +1 -1
  90. package/eui-icon-toggle/eui-icon-toggle.module.d.ts +19 -4
  91. package/eui-icon-toggle/eui-icon-toggle.module.d.ts.map +1 -1
  92. package/eui-input-number/eui-input-number.component.d.ts.map +1 -1
  93. package/eui-label/eui-label.component.d.ts.map +1 -1
  94. package/eui-language-selector/language-selector.component.d.ts.map +1 -1
  95. package/eui-list/eui-list-item/eui-list-item.component.d.ts +34 -0
  96. package/eui-list/eui-list-item/eui-list-item.component.d.ts.map +1 -1
  97. package/eui-list/eui-list.component.d.ts +56 -0
  98. package/eui-list/eui-list.component.d.ts.map +1 -1
  99. package/eui-list/eui-list.module.d.ts +18 -1
  100. package/eui-list/eui-list.module.d.ts.map +1 -1
  101. package/eui-menu/eui-menu-item.component.d.ts.map +1 -1
  102. package/eui-menu/eui-menu.component.d.ts.map +1 -1
  103. package/eui-message-box/eui-message-box.component.d.ts +148 -2
  104. package/eui-message-box/eui-message-box.component.d.ts.map +1 -1
  105. package/eui-message-box/eui-message-box.module.d.ts +15 -1
  106. package/eui-message-box/eui-message-box.module.d.ts.map +1 -1
  107. package/eui-message-box/services/eui-message-box.service.d.ts +58 -3
  108. package/eui-message-box/services/eui-message-box.service.d.ts.map +1 -1
  109. package/eui-navbar/eui-navbar-item/eui-navbar-item.component.d.ts.map +1 -1
  110. package/eui-overlay/eui-overlay.component.d.ts.map +1 -1
  111. package/eui-page/components/eui-page-column/eui-page-column.component.d.ts.map +1 -1
  112. package/eui-page/components/eui-page-columns/eui-page-columns.component.d.ts.map +1 -1
  113. package/eui-page/components/eui-page-header/eui-page-header.component.d.ts.map +1 -1
  114. package/eui-paginator/eui-paginator.component.d.ts.map +1 -1
  115. package/eui-popover/directives/eui-popover-arrow-position.directive.d.ts +32 -0
  116. package/eui-popover/directives/eui-popover-arrow-position.directive.d.ts.map +1 -1
  117. package/eui-popover/eui-popover.component.d.ts +119 -7
  118. package/eui-popover/eui-popover.component.d.ts.map +1 -1
  119. package/eui-popover/eui-popover.module.d.ts +18 -1
  120. package/eui-popover/eui-popover.module.d.ts.map +1 -1
  121. package/eui-popover/models/eui-popover-position.model.d.ts +26 -0
  122. package/eui-popover/models/eui-popover-position.model.d.ts.map +1 -1
  123. package/eui-progress-circle/eui-progress-circle.component.d.ts.map +1 -1
  124. package/eui-select/eui-select-option.directive.d.ts.map +1 -1
  125. package/eui-select/eui-select.component.d.ts.map +1 -1
  126. package/eui-sidebar-menu/eui-sidebar-menu.component.d.ts.map +1 -1
  127. package/eui-skeleton/eui-skeleton.component.d.ts.map +1 -1
  128. package/eui-slide-toggle/eui-slide-toggle.component.d.ts.map +1 -1
  129. package/eui-table/eui-table.component.d.ts.map +1 -1
  130. package/eui-table/filter/eui-table-filter.component.d.ts.map +1 -1
  131. package/eui-table/selectable-header/eui-table-selectable-header.component.d.ts.map +1 -1
  132. package/eui-table/selectable-row/eui-table-selectable-row.component.d.ts.map +1 -1
  133. package/eui-table/sortable-col/eui-table-sortable-col.component.d.ts.map +1 -1
  134. package/eui-table-v2/eui-table-v2.component.d.ts.map +1 -1
  135. package/eui-table-v2/selectable-header/eui-table-v2-selectable-header.component.d.ts.map +1 -1
  136. package/eui-table-v2/selectable-row/eui-table-v2-selectable-row.component.d.ts.map +1 -1
  137. package/eui-table-v2/sortable-col/eui-table-v2-sortable-col.component.d.ts.map +1 -1
  138. package/eui-tabs/eui-tab/eui-tab.component.d.ts.map +1 -1
  139. package/eui-tabs/eui-tab-content/eui-tab-content.component.d.ts.map +1 -1
  140. package/eui-tabs/eui-tabs.component.d.ts.map +1 -1
  141. package/eui-textarea/auto-resize.directive.d.ts.map +1 -1
  142. package/eui-textarea/eui-textarea.component.d.ts.map +1 -1
  143. package/eui-timebar/eui-timebar-item.model.d.ts +20 -1
  144. package/eui-timebar/eui-timebar-item.model.d.ts.map +1 -1
  145. package/eui-timebar/eui-timebar.component.d.ts +83 -6
  146. package/eui-timebar/eui-timebar.component.d.ts.map +1 -1
  147. package/eui-timeline/eui-timeline-item.component.d.ts.map +1 -1
  148. package/eui-timeline/eui-timeline.component.d.ts.map +1 -1
  149. package/eui-timepicker/eui-timepicker.component.d.ts.map +1 -1
  150. package/eui-tree/eui-tree.component.d.ts.map +1 -1
  151. package/eui-tree-list/eui-tree-list-item.component.d.ts.map +1 -1
  152. package/eui-tree-list/eui-tree-list.component.d.ts.map +1 -1
  153. package/eui-tree-list/toolbar/toolbar.component.d.ts.map +1 -1
  154. package/eui-user-profile/user-profile-card/user-profile-card.component.d.ts.map +1 -1
  155. package/eui-user-profile/user-profile.component.d.ts.map +1 -1
  156. package/eui-wizard/eui-wizard-step.component.d.ts.map +1 -1
  157. package/eui-wizard/eui-wizard.component.d.ts.map +1 -1
  158. package/externals/eui-editor/counters/eui-editor-counters.component.d.ts.map +1 -1
  159. package/externals/quill/quill-editor.component.d.ts.map +1 -1
  160. package/fesm2022/eui-components-directives.mjs +70 -70
  161. package/fesm2022/eui-components-eui-accordion.mjs +13 -13
  162. package/fesm2022/eui-components-eui-alert.mjs +10 -10
  163. package/fesm2022/eui-components-eui-autocomplete.mjs +15 -14
  164. package/fesm2022/eui-components-eui-autocomplete.mjs.map +1 -1
  165. package/fesm2022/eui-components-eui-avatar.mjs +286 -36
  166. package/fesm2022/eui-components-eui-avatar.mjs.map +1 -1
  167. package/fesm2022/eui-components-eui-badge.mjs +7 -7
  168. package/fesm2022/eui-components-eui-block-content.mjs +7 -7
  169. package/fesm2022/eui-components-eui-block-document.mjs +7 -7
  170. package/fesm2022/eui-components-eui-breadcrumb.mjs +13 -13
  171. package/fesm2022/eui-components-eui-button-group.mjs +7 -7
  172. package/fesm2022/eui-components-eui-button-v2.mjs +7 -7
  173. package/fesm2022/eui-components-eui-button.mjs +7 -7
  174. package/fesm2022/eui-components-eui-card.mjs +49 -49
  175. package/fesm2022/eui-components-eui-chip-group.mjs +7 -7
  176. package/fesm2022/eui-components-eui-chip-list.mjs +13 -13
  177. package/fesm2022/eui-components-eui-chip.mjs +7 -7
  178. package/fesm2022/eui-components-eui-dashboard-button.mjs +13 -13
  179. package/fesm2022/eui-components-eui-dashboard-button.mjs.map +1 -1
  180. package/fesm2022/eui-components-eui-dashboard-card.mjs +13 -13
  181. package/fesm2022/eui-components-eui-dashboard-card.mjs.map +1 -1
  182. package/fesm2022/eui-components-eui-date-range-selector.mjs +10 -10
  183. package/fesm2022/eui-components-eui-datepicker.mjs +19 -19
  184. package/fesm2022/eui-components-eui-dialog.mjs +19 -19
  185. package/fesm2022/eui-components-eui-dimmer.mjs +7 -7
  186. package/fesm2022/eui-components-eui-disable-content.mjs +7 -7
  187. package/fesm2022/eui-components-eui-discussion-thread.mjs +113 -12
  188. package/fesm2022/eui-components-eui-discussion-thread.mjs.map +1 -1
  189. package/fesm2022/eui-components-eui-dropdown.mjs +20 -20
  190. package/fesm2022/eui-components-eui-feedback-message.mjs +8 -8
  191. package/fesm2022/eui-components-eui-feedback-message.mjs.map +1 -1
  192. package/fesm2022/eui-components-eui-fieldset.mjs +13 -13
  193. package/fesm2022/eui-components-eui-file-upload.mjs +19 -19
  194. package/fesm2022/eui-components-eui-growl.mjs +7 -7
  195. package/fesm2022/eui-components-eui-icon-button-expander.mjs +7 -7
  196. package/fesm2022/eui-components-eui-icon-button.mjs +7 -7
  197. package/fesm2022/eui-components-eui-icon-color.mjs +7 -7
  198. package/fesm2022/eui-components-eui-icon-input.mjs +7 -7
  199. package/fesm2022/eui-components-eui-icon-state.mjs +7 -7
  200. package/fesm2022/eui-components-eui-icon-toggle.mjs +106 -10
  201. package/fesm2022/eui-components-eui-icon-toggle.mjs.map +1 -1
  202. package/fesm2022/eui-components-eui-icon.mjs +7 -7
  203. package/fesm2022/eui-components-eui-input-checkbox.mjs +7 -7
  204. package/fesm2022/eui-components-eui-input-group.mjs +13 -13
  205. package/fesm2022/eui-components-eui-input-number.mjs +10 -10
  206. package/fesm2022/eui-components-eui-input-radio.mjs +7 -7
  207. package/fesm2022/eui-components-eui-input-text.mjs +7 -7
  208. package/fesm2022/eui-components-eui-label.mjs +8 -8
  209. package/fesm2022/eui-components-eui-label.mjs.map +1 -1
  210. package/fesm2022/eui-components-eui-language-selector.mjs +10 -10
  211. package/fesm2022/eui-components-eui-list.mjs +116 -15
  212. package/fesm2022/eui-components-eui-list.mjs.map +1 -1
  213. package/fesm2022/eui-components-eui-menu.mjs +10 -10
  214. package/fesm2022/eui-components-eui-message-box.mjs +208 -20
  215. package/fesm2022/eui-components-eui-message-box.mjs.map +1 -1
  216. package/fesm2022/eui-components-eui-navbar.mjs +10 -10
  217. package/fesm2022/eui-components-eui-overlay.mjs +19 -19
  218. package/fesm2022/eui-components-eui-page.mjs +58 -58
  219. package/fesm2022/eui-components-eui-paginator.mjs +7 -7
  220. package/fesm2022/eui-components-eui-popover.mjs +195 -21
  221. package/fesm2022/eui-components-eui-popover.mjs.map +1 -1
  222. package/fesm2022/eui-components-eui-progress-bar.mjs +7 -7
  223. package/fesm2022/eui-components-eui-progress-circle.mjs +7 -7
  224. package/fesm2022/eui-components-eui-select.mjs +19 -19
  225. package/fesm2022/eui-components-eui-sidebar-menu.mjs +7 -7
  226. package/fesm2022/eui-components-eui-skeleton.mjs +7 -7
  227. package/fesm2022/eui-components-eui-slide-toggle.mjs +7 -7
  228. package/fesm2022/eui-components-eui-split-button.mjs +7 -7
  229. package/fesm2022/eui-components-eui-table-v2.mjs +34 -34
  230. package/fesm2022/eui-components-eui-table.mjs +34 -34
  231. package/fesm2022/eui-components-eui-tabs.mjs +24 -24
  232. package/fesm2022/eui-components-eui-tabs.mjs.map +1 -1
  233. package/fesm2022/eui-components-eui-textarea.mjs +10 -10
  234. package/fesm2022/eui-components-eui-timebar.mjs +82 -10
  235. package/fesm2022/eui-components-eui-timebar.mjs.map +1 -1
  236. package/fesm2022/eui-components-eui-timeline.mjs +10 -10
  237. package/fesm2022/eui-components-eui-timepicker.mjs +7 -7
  238. package/fesm2022/eui-components-eui-tree-list.mjs +25 -25
  239. package/fesm2022/eui-components-eui-tree.mjs +21 -21
  240. package/fesm2022/eui-components-eui-user-profile.mjs +16 -16
  241. package/fesm2022/eui-components-eui-user-profile.mjs.map +1 -1
  242. package/fesm2022/eui-components-eui-wizard.mjs +13 -13
  243. package/fesm2022/eui-components-externals-charts.mjs +7 -7
  244. package/fesm2022/eui-components-externals-eui-editor.mjs +28 -28
  245. package/fesm2022/eui-components-externals-quill.mjs +10 -10
  246. package/fesm2022/eui-components-layout.mjs +183 -182
  247. package/fesm2022/eui-components-layout.mjs.map +1 -1
  248. package/fesm2022/eui-components-pipes.mjs +14 -14
  249. package/fesm2022/eui-components-shared.mjs +6 -6
  250. package/fesm2022/eui-components.mjs +4 -4
  251. package/layout/eui-app/eui-app-sidebar/sidebar-header-user-profile/sidebar-header-user-profile.component.d.ts.map +1 -1
  252. package/layout/eui-app/eui-app-sidebar/sidebar-menu/sidebar-menu.component.d.ts.map +1 -1
  253. package/layout/eui-app/eui-app-toolbar/toolbar.component.d.ts.map +1 -1
  254. package/layout/eui-app/eui-app-top-message/top-message.component.d.ts.map +1 -1
  255. package/layout/eui-app/eui-app.component.d.ts.map +1 -1
  256. package/layout/eui-footer/footer.component.d.ts.map +1 -1
  257. package/layout/eui-header/header-user-profile/header-user-profile.component.d.ts.map +1 -1
  258. package/layout/eui-notifications/eui-notification-item.component.d.ts.map +1 -1
  259. package/layout/eui-notifications/eui-notifications.component.d.ts.map +1 -1
  260. package/layout/eui-notifications-v2/eui-notification-item.component.d.ts.map +1 -1
  261. package/layout/eui-notifications-v2/eui-notifications.component.d.ts.map +1 -1
  262. package/layout/eui-toolbar/toolbar-items/toolbar-items.component.d.ts.map +1 -1
  263. package/layout/eui-toolbar/toolbar-navbar-item/toolbar-navbar-item.component.d.ts.map +1 -1
  264. package/layout/eui-toolbar/toolbar-search/toolbar-search.component.d.ts.map +1 -1
  265. package/layout/eui-toolbar/toolbar-selector/toolbar-selector.component.d.ts.map +1 -1
  266. package/layout/eui-toolbar/toolbar.component.d.ts.map +1 -1
  267. package/package.json +4 -4
  268. package/shared/base/base-states.directive.d.ts.map +1 -1
  269. package/shared/input.directive.d.ts.map +1 -1
@@ -12,17 +12,70 @@ import { TranslateModule } from '@ngx-translate/core';
12
12
  import { OverlayModule } from '@angular/cdk/overlay';
13
13
  import { A11yModule } from '@angular/cdk/a11y';
14
14
  import { DragDropModule } from '@angular/cdk/drag-drop';
15
- import { EuiButtonModule } from '@eui/components/eui-button';
15
+ import { EuiButtonComponent } from '@eui/components/eui-button';
16
16
  import { EuiIconModule } from '@eui/components/eui-icon';
17
17
 
18
+ /**
19
+ * @description
20
+ * Service for programmatically creating, opening, and controlling message boxes in the eui application.
21
+ *
22
+ * The EuiMessageBoxService wraps the EuiDialogService to provide a simplified API specifically
23
+ * for message box functionality. Message boxes are specialized dialog windows typically used
24
+ * for alerts, confirmations, and prompts.
25
+ *
26
+ * The service handles the configuration of common message box properties and delegates to the
27
+ * underlying dialog service for rendering.
28
+ *
29
+ * @example
30
+ * // Basic usage in a component:
31
+ * import { EuiMessageBoxService } from '@eui/components/eui-message-box';
32
+ *
33
+ * @Component({...})
34
+ * export class MyComponent {
35
+ * constructor(private messageBoxService: EuiMessageBoxService) {}
36
+ *
37
+ * showConfirmation() {
38
+ * this.messageBoxService.openMessageBox({
39
+ * title: 'Confirm Action',
40
+ * content: 'Are you sure you want to proceed?',
41
+ * acceptLabel: 'Yes',
42
+ * dismissLabel: 'No',
43
+ * accept: () => this.handleConfirmation(),
44
+ * dismiss: () => console.log('Action cancelled')
45
+ * });
46
+ * }
47
+ *
48
+ * closeActiveMessageBox() {
49
+ * this.messageBoxService.closeMessageBox();
50
+ * }
51
+ * }
52
+ *
53
+ * @see EuiMessageBoxComponent
54
+ * @see EuiDialogService
55
+ */
18
56
  class EuiMessageBoxService {
57
+ /**
58
+ * Creates an instance of EuiMessageBoxService.
59
+ *
60
+ * @param euiDialogService - The underlying dialog service used to render message boxes
61
+ */
19
62
  constructor(euiDialogService) {
20
63
  this.euiDialogService = euiDialogService;
21
64
  }
22
65
  /**
23
- * Open a Message box.
66
+ * Opens a message box with the specified configuration.
24
67
  *
25
- * @param config Configuration applied to the Message box.
68
+ * This method sets default message box properties and delegates to the dialog service
69
+ * to render the message box. Message boxes don't close on outside click or escape key,
70
+ * and have no header component or close button by default.
71
+ *
72
+ * @param config - Configuration options for the message box
73
+ * @typeParam HC - Header content type
74
+ * @typeParam HCC - Header component context type
75
+ * @typeParam BC - Body content type
76
+ * @typeParam BCC - Body component context type
77
+ * @typeParam FC - Footer content type
78
+ * @typeParam FCC - Footer component context type
26
79
  */
27
80
  openMessageBox(config = {}) {
28
81
  this.euiDialogService.openDialog({
@@ -36,53 +89,173 @@ class EuiMessageBoxService {
36
89
  });
37
90
  }
38
91
  /**
39
- * Close a Message box.
92
+ * Closes the currently active message box.
93
+ *
94
+ * This method delegates to the dialog service to close any open dialog.
40
95
  */
41
96
  closeMessageBox() {
42
97
  this.euiDialogService.closeDialog();
43
98
  }
44
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxService, deps: [{ token: i1.EuiDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
45
- static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxService }); }
99
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxService, deps: [{ token: i1.EuiDialogService }], target: i0.ɵɵFactoryTarget.Injectable }); }
100
+ static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxService }); }
46
101
  }
47
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxService, decorators: [{
102
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxService, decorators: [{
48
103
  type: Injectable
49
104
  }], ctorParameters: () => [{ type: i1.EuiDialogService }] });
50
105
 
106
+ /**
107
+ * @description
108
+ * Component for displaying modal message boxes with structured content and customizable actions.
109
+ * This component provides a user-friendly interface for confirmation dialogs, alerts, and other
110
+ * types of modal messages.
111
+ *
112
+ * The component supports various styling variants through the BaseStatesDirective hostDirective,
113
+ * customizable buttons, and configurable behavior for dialog actions.
114
+ *
115
+ * @example
116
+ * // Basic usage with title and default buttons:
117
+ * <eui-message-box
118
+ * title="Confirmation Required"
119
+ * (accept)="onConfirm()"
120
+ * (dismiss)="onCancel()">
121
+ * Are you sure you want to proceed with this action?
122
+ * </eui-message-box>
123
+ *
124
+ * @example
125
+ * // Custom styled message box with modified button labels:
126
+ * <eui-message-box
127
+ * title="Warning"
128
+ * euiWarning
129
+ * acceptLabel="Proceed Anyway"
130
+ * dismissLabel="Go Back"
131
+ * [isDraggable]="true">
132
+ * This action cannot be undone.
133
+ * </eui-message-box>
134
+ *
135
+ * @example
136
+ * // Message box with custom footer content:
137
+ * <eui-message-box title="Custom Actions">
138
+ * Select an option below.
139
+ * <eui-message-box-footer>
140
+ * <button eui-button (click)="optionOne()">Option 1</button>
141
+ * <button eui-button (click)="optionTwo()">Option 2</button>
142
+ * </eui-message-box-footer>
143
+ * </eui-message-box>
144
+ */
51
145
  class EuiMessageBoxComponent {
146
+ /**
147
+ * Creates an instance of EuiMessageBoxComponent.
148
+ *
149
+ * @param viewContainerRef - Reference to the view container for creating portals
150
+ * @param euiMessageBoxService - Service used to open and close message boxes
151
+ * @param baseStatesDirective - Directive that provides styling state management for the component
152
+ */
52
153
  constructor(viewContainerRef, euiMessageBoxService, baseStatesDirective) {
53
154
  this.viewContainerRef = viewContainerRef;
54
155
  this.euiMessageBoxService = euiMessageBoxService;
55
156
  this.baseStatesDirective = baseStatesDirective;
157
+ /**
158
+ * Data attribute for e2e testing purposes.
159
+ * @default 'eui-dialog'
160
+ */
56
161
  this.e2eAttr = 'eui-dialog';
162
+ /**
163
+ * Width of the message box.
164
+ * @default '33rem'
165
+ */
57
166
  this.width = '33rem';
167
+ /**
168
+ * Height of the message box.
169
+ * @default 'auto'
170
+ */
58
171
  this.height = 'auto';
172
+ /**
173
+ * Whether to show the accept/confirm button.
174
+ * @default true
175
+ */
59
176
  this.hasAcceptButton = true;
177
+ /**
178
+ * Whether to show the dismiss/cancel button.
179
+ * @default true
180
+ */
60
181
  this.hasDismissButton = true;
182
+ /**
183
+ * Label for the accept/confirm button. Can be a translation key.
184
+ * @default 'eui.OK'
185
+ */
61
186
  this.acceptLabel = 'eui.OK';
187
+ /**
188
+ * Label for the dismiss/cancel button. Can be a translation key.
189
+ * @default 'eui.CANCEL'
190
+ */
62
191
  this.dismissLabel = 'eui.CANCEL';
192
+ /**
193
+ * Whether to manually handle closing the dialog on dismiss button click.
194
+ * @default false
195
+ */
63
196
  this.isHandleCloseOnDismiss = false;
197
+ /**
198
+ * Whether to manually handle closing the dialog on close button click.
199
+ * @default false
200
+ */
64
201
  this.isHandleCloseOnClose = false;
202
+ /**
203
+ * Whether to manually handle closing the dialog on accept button click.
204
+ * @default false
205
+ */
65
206
  this.isHandleCloseOnAccept = false;
207
+ /**
208
+ * Whether the message box can be dragged around the screen.
209
+ * @default false
210
+ */
66
211
  this.isDraggable = false;
212
+ /**
213
+ * Whether to remove padding from the message box body.
214
+ * @default false
215
+ */
67
216
  this.hasNoBodyPadding = false;
217
+ /**
218
+ * Event emitted when the message box opens.
219
+ */
68
220
  this.messageBoxOpen = new EventEmitter();
221
+ /**
222
+ * Event emitted when the message box closes.
223
+ */
69
224
  this.messageBoxClose = new EventEmitter();
225
+ /**
226
+ * Event emitted when the dismiss/cancel button is clicked.
227
+ */
70
228
  this.dismiss = new EventEmitter();
229
+ /**
230
+ * Event emitted when the accept/confirm button is clicked.
231
+ */
71
232
  this.accept = new EventEmitter();
233
+ /**
234
+ * Subject used for cleaning up subscriptions when the component is destroyed.
235
+ */
72
236
  this.destroy$ = new Subject();
73
237
  }
238
+ /**
239
+ * Lifecycle hook that's called after Angular has fully initialized the component's view.
240
+ * Creates the template portals for content and footer (if available).
241
+ */
74
242
  ngAfterViewInit() {
75
243
  this.templatePortalContent = new TemplatePortal(this.templateRefContent, this.viewContainerRef);
76
244
  if (this.euiMessageBoxFooterDirective) {
77
245
  this.templatePortalFooter = new TemplatePortal(this.templateRefFooter, this.viewContainerRef);
78
246
  }
79
247
  }
248
+ /**
249
+ * Lifecycle hook that's called when the component is destroyed.
250
+ * Cleans up any subscriptions to prevent memory leaks.
251
+ */
80
252
  ngOnDestroy() {
81
253
  this.destroy$.next(true);
82
254
  this.destroy$.unsubscribe();
83
255
  }
84
256
  /**
85
- * Open a Message Box.
257
+ * Opens the message box with the current configuration.
258
+ * This method configures and displays the message box using the EuiMessageBoxService.
86
259
  */
87
260
  openMessageBox() {
88
261
  const config = {
@@ -124,15 +297,16 @@ class EuiMessageBoxComponent {
124
297
  this.euiMessageBoxService.openMessageBox(config);
125
298
  }
126
299
  /**
127
- * Close a Message Box.
300
+ * Closes the currently open message box.
301
+ * This method uses the EuiMessageBoxService to close the dialog.
128
302
  */
129
303
  closeMessageBox() {
130
304
  this.euiMessageBoxService.closeMessageBox();
131
305
  }
132
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxComponent, deps: [{ token: i0.ViewContainerRef }, { token: EuiMessageBoxService }, { token: i2.BaseStatesDirective }], target: i0.ɵɵFactoryTarget.Component }); }
133
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: EuiMessageBoxComponent, isStandalone: false, selector: "eui-message-box", inputs: { e2eAttr: "e2eAttr", title: "title", width: "width", height: "height", hasAcceptButton: ["hasAcceptButton", "hasAcceptButton", booleanAttribute], hasDismissButton: ["hasDismissButton", "hasDismissButton", booleanAttribute], acceptLabel: "acceptLabel", dismissLabel: "dismissLabel", isHandleCloseOnDismiss: ["isHandleCloseOnDismiss", "isHandleCloseOnDismiss", booleanAttribute], isHandleCloseOnClose: ["isHandleCloseOnClose", "isHandleCloseOnClose", booleanAttribute], isHandleCloseOnAccept: ["isHandleCloseOnAccept", "isHandleCloseOnAccept", booleanAttribute], isDraggable: ["isDraggable", "isDraggable", booleanAttribute], hasNoBodyPadding: ["hasNoBodyPadding", "hasNoBodyPadding", booleanAttribute] }, outputs: { messageBoxOpen: "messageBoxOpen", messageBoxClose: "messageBoxClose", dismiss: "dismiss", accept: "accept" }, queries: [{ propertyName: "euiMessageBoxFooterDirective", first: true, predicate: i0.forwardRef(() => EuiMessageBoxFooterDirective), descendants: true }], viewQueries: [{ propertyName: "templateRefContent", first: true, predicate: ["templateRefContent"], descendants: true }, { propertyName: "templateRefFooter", first: true, predicate: ["templateRefFooter"], descendants: true }], hostDirectives: [{ directive: i2.BaseStatesDirective, inputs: ["euiPrimary", "euiPrimary", "euiSecondary", "euiSecondary", "euiInfo", "euiInfo", "euiSuccess", "euiSuccess", "euiWarning", "euiWarning", "euiDanger", "euiDanger", "euiAccent", "euiAccent", "euiVariant", "euiVariant"] }], ngImport: i0, template: "<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-message-box-footer\"></ng-content>\n</ng-template>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
306
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxComponent, deps: [{ token: i0.ViewContainerRef }, { token: EuiMessageBoxService }, { token: i2.BaseStatesDirective }], target: i0.ɵɵFactoryTarget.Component }); }
307
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.1", type: EuiMessageBoxComponent, isStandalone: false, selector: "eui-message-box", inputs: { e2eAttr: "e2eAttr", title: "title", width: "width", height: "height", hasAcceptButton: ["hasAcceptButton", "hasAcceptButton", booleanAttribute], hasDismissButton: ["hasDismissButton", "hasDismissButton", booleanAttribute], acceptLabel: "acceptLabel", dismissLabel: "dismissLabel", isHandleCloseOnDismiss: ["isHandleCloseOnDismiss", "isHandleCloseOnDismiss", booleanAttribute], isHandleCloseOnClose: ["isHandleCloseOnClose", "isHandleCloseOnClose", booleanAttribute], isHandleCloseOnAccept: ["isHandleCloseOnAccept", "isHandleCloseOnAccept", booleanAttribute], isDraggable: ["isDraggable", "isDraggable", booleanAttribute], hasNoBodyPadding: ["hasNoBodyPadding", "hasNoBodyPadding", booleanAttribute] }, outputs: { messageBoxOpen: "messageBoxOpen", messageBoxClose: "messageBoxClose", dismiss: "dismiss", accept: "accept" }, queries: [{ propertyName: "euiMessageBoxFooterDirective", first: true, predicate: i0.forwardRef(() => EuiMessageBoxFooterDirective), descendants: true }], viewQueries: [{ propertyName: "templateRefContent", first: true, predicate: ["templateRefContent"], descendants: true }, { propertyName: "templateRefFooter", first: true, predicate: ["templateRefFooter"], descendants: true }], hostDirectives: [{ directive: i2.BaseStatesDirective, inputs: ["euiPrimary", "euiPrimary", "euiSecondary", "euiSecondary", "euiInfo", "euiInfo", "euiSuccess", "euiSuccess", "euiWarning", "euiWarning", "euiDanger", "euiDanger", "euiAccent", "euiAccent", "euiVariant", "euiVariant"] }], ngImport: i0, template: "<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-message-box-footer\"></ng-content>\n</ng-template>\n", changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
134
308
  }
135
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxComponent, decorators: [{
309
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxComponent, decorators: [{
136
310
  type: Component,
137
311
  args: [{ selector: 'eui-message-box', changeDetection: ChangeDetectionStrategy.OnPush, encapsulation: ViewEncapsulation.None, standalone: false, hostDirectives: [
138
312
  {
@@ -202,10 +376,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
202
376
  }] } });
203
377
  /* eslint-disable */
204
378
  class EuiMessageBoxFooterDirective {
205
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
206
- static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.1.7", type: EuiMessageBoxFooterDirective, isStandalone: false, selector: "eui-message-box-footer", ngImport: i0 }); }
379
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxFooterDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
380
+ static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "19.2.1", type: EuiMessageBoxFooterDirective, isStandalone: false, selector: "eui-message-box-footer", ngImport: i0 }); }
207
381
  }
208
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxFooterDirective, decorators: [{
382
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxFooterDirective, decorators: [{
209
383
  type: Directive,
210
384
  args: [{ selector: 'eui-message-box-footer', standalone: false, }]
211
385
  }] });
@@ -243,15 +417,29 @@ class EuiMessageBoxComponentInstances {
243
417
  }
244
418
  }
245
419
 
420
+ /**
421
+ * @description
422
+ * Provides message box functionality for displaying modal dialogs with structured content.
423
+ *
424
+ * @example
425
+ * import { EuiMessageBoxModule } from '@eui/components/eui-message-box';
426
+ *
427
+ * @NgModule({
428
+ * imports: [
429
+ * EuiMessageBoxModule,
430
+ * ],
431
+ * })
432
+ * export class MyFeatureModule {}
433
+ */
246
434
  class EuiMessageBoxModule {
247
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
248
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxModule, declarations: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective], imports: [CommonModule, EuiButtonModule, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule], exports: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective] }); }
249
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxModule, providers: [EuiMessageBoxService, EuiDialogService], imports: [CommonModule, EuiButtonModule, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule] }); }
435
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
436
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxModule, declarations: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective], imports: [CommonModule, EuiButtonComponent, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule], exports: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective] }); }
437
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxModule, providers: [EuiMessageBoxService, EuiDialogService], imports: [CommonModule, EuiButtonComponent, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule] }); }
250
438
  }
251
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiMessageBoxModule, decorators: [{
439
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiMessageBoxModule, decorators: [{
252
440
  type: NgModule,
253
441
  args: [{
254
- imports: [CommonModule, EuiButtonModule, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule],
442
+ imports: [CommonModule, EuiButtonComponent, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule],
255
443
  exports: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],
256
444
  declarations: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],
257
445
  providers: [EuiMessageBoxService, EuiDialogService],
@@ -1 +1 @@
1
- {"version":3,"file":"eui-components-eui-message-box.mjs","sources":["../../eui-message-box/services/eui-message-box.service.ts","../../eui-message-box/eui-message-box.component.ts","../../eui-message-box/eui-message-box.component.html","../../eui-message-box/models/eui-message-box.config.ts","../../eui-message-box/eui-message-box.module.ts","../../eui-message-box/eui-components-eui-message-box.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { EuiDialogInterface, EuiDialogService } from '@eui/components/eui-dialog';\n\n@Injectable()\nexport class EuiMessageBoxService {\n constructor(private euiDialogService: EuiDialogService) {}\n\n /**\n * Open a Message box.\n *\n * @param config Configuration applied to the Message box.\n */\n public openMessageBox<HC, HCC, BC, BCC, FC, FCC>(config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {}): void {\n this.euiDialogService.openDialog({\n ...config,\n header: null,\n headerComponent: null,\n hasClosedOnClickOutside: false,\n hasCloseButton: false,\n hasClosedOnEscape: false,\n hasFooter: true,\n });\n }\n\n /**\n * Close a Message box.\n */\n public closeMessageBox(): void {\n this.euiDialogService.closeDialog();\n }\n}\n","import { Component, ChangeDetectionStrategy, ViewEncapsulation, Input, ViewChild, TemplateRef, ViewContainerRef, AfterViewInit, OnDestroy, Output, EventEmitter,\n Directive, ContentChild, forwardRef, QueryList, ElementRef, booleanAttribute } from '@angular/core';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Subject } from 'rxjs';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\n\nimport { BaseStatesDirective } from '@eui/components/shared';\nimport { EuiDialogInterface } from '@eui/components/eui-dialog';\n\nimport { EuiMessageBoxService } from './services/eui-message-box.service';\n\n@Component({\n selector: 'eui-message-box',\n templateUrl: './eui-message-box.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n hostDirectives: [\n {\n directive: BaseStatesDirective,\n inputs: [\n 'euiPrimary',\n 'euiSecondary',\n 'euiInfo',\n 'euiSuccess',\n 'euiWarning',\n 'euiDanger',\n 'euiAccent',\n 'euiVariant',\n ],\n },\n ],\n})\nexport class EuiMessageBoxComponent implements AfterViewInit, OnDestroy {\n @Input() e2eAttr = 'eui-dialog';\n @Input() title: string;\n @Input() width = '33rem';\n @Input() height = 'auto';\n @Input({ transform: booleanAttribute }) hasAcceptButton = true;\n @Input({ transform: booleanAttribute }) hasDismissButton = true;\n @Input() acceptLabel = 'eui.OK';\n @Input() dismissLabel = 'eui.CANCEL';\n @Input({ transform: booleanAttribute }) isHandleCloseOnDismiss = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnClose = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnAccept = false;\n @Input({ transform: booleanAttribute }) isDraggable = false;\n @Input({ transform: booleanAttribute }) hasNoBodyPadding = false;\n\n @Output() messageBoxOpen = new EventEmitter();\n @Output() messageBoxClose = new EventEmitter();\n @Output() dismiss = new EventEmitter();\n @Output() accept = new EventEmitter();\n\n @ViewChild('templateRefContent') templateRefContent: TemplateRef<ElementRef>;\n @ViewChild('templateRefFooter') templateRefFooter: TemplateRef<EuiMessageBoxFooterDirective>;\n @ContentChild(forwardRef(() => EuiMessageBoxFooterDirective)) euiMessageBoxFooterDirective: QueryList<EuiMessageBoxFooterDirective>;\n\n public content: string | TemplatePortal;\n\n private templatePortalContent: TemplatePortal<ElementRef>;\n private templatePortalFooter: TemplatePortal<EuiMessageBoxFooterDirective>;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(private viewContainerRef: ViewContainerRef, private euiMessageBoxService: EuiMessageBoxService, public baseStatesDirective: BaseStatesDirective) {\n }\n\n ngAfterViewInit(): void {\n this.templatePortalContent = new TemplatePortal(this.templateRefContent, this.viewContainerRef);\n\n if (this.euiMessageBoxFooterDirective) {\n this.templatePortalFooter = new TemplatePortal(this.templateRefFooter, this.viewContainerRef);\n }\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Open a Message Box.\n */\n public openMessageBox<HC, HCC, BC, BCC, FC, FCC>(): void {\n const config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {\n e2eAttr: this.e2eAttr,\n title: this.title,\n width: this.width,\n height: this.height,\n variant: this.baseStatesDirective.euiVariant.length > 0 ? this.baseStatesDirective.euiVariant : 'primary',\n acceptLabel: this.acceptLabel,\n dismissLabel: this.dismissLabel,\n hasCloseButton: false,\n hasAcceptButton: this.hasAcceptButton,\n hasDismissButton: this.hasDismissButton,\n hasClosedOnClickOutside: false,\n hasClosedOnEscape: false,\n isHandleCloseOnDismiss: this.isHandleCloseOnDismiss,\n isHandleCloseOnClose: this.isHandleCloseOnClose,\n isHandleCloseOnAccept: this.isHandleCloseOnAccept,\n isHandleCloseOnClickOutside: false,\n isHandleCloseOnEscape: false,\n isDraggable: coerceBooleanProperty(this.isDraggable),\n hasNoBodyPadding: coerceBooleanProperty(this.hasNoBodyPadding),\n content: this.templatePortalContent,\n footer: this.templatePortalFooter,\n isMessageBox: true,\n open: () => {\n this.messageBoxOpen.emit();\n },\n close: () => {\n this.messageBoxClose.emit();\n },\n dismiss: () => {\n this.dismiss.emit();\n },\n accept: () => {\n this.accept.emit();\n },\n };\n\n this.euiMessageBoxService.openMessageBox(config);\n }\n\n /**\n * Close a Message Box.\n */\n public closeMessageBox(): void {\n this.euiMessageBoxService.closeMessageBox();\n }\n}\n\n/* eslint-disable */\n@Directive({ selector: 'eui-message-box-footer', standalone: false, })\nexport class EuiMessageBoxFooterDirective {}\n/* eslint-enable */\n","<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-message-box-footer\"></ng-content>\n</ng-template>\n","import { EuiDialogInterface } from '@eui/components/eui-dialog';\n\nexport class EuiMessageBoxConfig<HC, HCC, BC, BCC, FC, FCC> implements EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> {\n e2eAttr = 'eui-message-box';\n acceptLabel = 'eui.OK';\n dismissLabel = 'eui.CANCEL';\n variant: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent' | string = 'primary';\n width = '33rem';\n height = 'auto';\n hasCloseButton = false;\n hasAcceptButton = true;\n hasDismissButton = true;\n hasClosedOnClickOutside = false;\n hasClosedOnEscape = false;\n isHandleCloseOnDismiss = false;\n isHandleCloseOnClose = false;\n isHandleCloseOnAccept = false;\n isHandleCloseOnClickOutside = false;\n isHandleCloseOnEscape = false;\n hasFooter = true;\n isMessageBox = true;\n header = null;\n headerComponent = null;\n\n constructor(values: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>) {\n Object.assign(this, values);\n }\n}\n\nexport class EuiMessageBoxComponentInstances<HC, BC, FC> {\n headerComponent: HC = null;\n bodyComponent: BC = null;\n footerComponent: FC = null;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { EuiButtonModule } from '@eui/components/eui-button';\nimport { EuiIconModule } from '@eui/components/eui-icon';\nimport { EuiDialogService } from '@eui/components/eui-dialog';\n\nimport { EuiMessageBoxComponent, EuiMessageBoxFooterDirective } from './eui-message-box.component';\nimport { EuiMessageBoxService } from './services/eui-message-box.service';\n\n@NgModule({\n imports: [CommonModule, EuiButtonModule, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule],\n exports: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],\n declarations: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],\n providers: [EuiMessageBoxService, EuiDialogService],\n})\nexport class EuiMessageBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.EuiMessageBoxService"],"mappings":";;;;;;;;;;;;;;;;;MAIa,oBAAoB,CAAA;AAC7B,IAAA,WAAA,CAAoB,gBAAkC,EAAA;QAAlC,IAAgB,CAAA,gBAAA,GAAhB,gBAAgB;;AAEpC;;;;AAIG;IACI,cAAc,CAA4B,SAAwD,EAAE,EAAA;AACvG,QAAA,IAAI,CAAC,gBAAgB,CAAC,UAAU,CAAC;AAC7B,YAAA,GAAG,MAAM;AACT,YAAA,MAAM,EAAE,IAAI;AACZ,YAAA,eAAe,EAAE,IAAI;AACrB,YAAA,uBAAuB,EAAE,KAAK;AAC9B,YAAA,cAAc,EAAE,KAAK;AACrB,YAAA,iBAAiB,EAAE,KAAK;AACxB,YAAA,SAAS,EAAE,IAAI;AAClB,SAAA,CAAC;;AAGN;;AAEG;IACI,eAAe,GAAA;AAClB,QAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,EAAE;;8GAxB9B,oBAAoB,EAAA,IAAA,EAAA,CAAA,EAAA,KAAA,EAAA,EAAA,CAAA,gBAAA,EAAA,CAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,UAAA,EAAA,CAAA,CAAA;kHAApB,oBAAoB,EAAA,CAAA,CAAA;;2FAApB,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBADhC;;;MC8BY,sBAAsB,CAAA;AA8B/B,IAAA,WAAA,CAAoB,gBA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BAAgB,CAAC,EAAA,OAAA,EAAA,CAHzC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAKvH,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,eAAe,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,CAAC;AACjI,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;AAC/D,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;AACpE,oBAAA,SAAS,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;AACtD,iBAAA;;;ACnBD;;AAEG;;;;"}
1
+ {"version":3,"file":"eui-components-eui-message-box.mjs","sources":["../../eui-message-box/services/eui-message-box.service.ts","../../eui-message-box/eui-message-box.component.ts","../../eui-message-box/eui-message-box.component.html","../../eui-message-box/models/eui-message-box.config.ts","../../eui-message-box/eui-message-box.module.ts","../../eui-message-box/eui-components-eui-message-box.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\nimport { EuiDialogInterface, EuiDialogService } from '@eui/components/eui-dialog';\n\n/**\n * @description\n * Service for programmatically creating, opening, and controlling message boxes in the eui application.\n *\n * The EuiMessageBoxService wraps the EuiDialogService to provide a simplified API specifically\n * for message box functionality. Message boxes are specialized dialog windows typically used\n * for alerts, confirmations, and prompts.\n *\n * The service handles the configuration of common message box properties and delegates to the\n * underlying dialog service for rendering.\n *\n * @example\n * // Basic usage in a component:\n * import { EuiMessageBoxService } from '@eui/components/eui-message-box';\n *\n * @Component({...})\n * export class MyComponent {\n * constructor(private messageBoxService: EuiMessageBoxService) {}\n *\n * showConfirmation() {\n * this.messageBoxService.openMessageBox({\n * title: 'Confirm Action',\n * content: 'Are you sure you want to proceed?',\n * acceptLabel: 'Yes',\n * dismissLabel: 'No',\n * accept: () => this.handleConfirmation(),\n * dismiss: () => console.log('Action cancelled')\n * });\n * }\n *\n * closeActiveMessageBox() {\n * this.messageBoxService.closeMessageBox();\n * }\n * }\n *\n * @see EuiMessageBoxComponent\n * @see EuiDialogService\n */\n@Injectable()\nexport class EuiMessageBoxService {\n /**\n * Creates an instance of EuiMessageBoxService.\n *\n * @param euiDialogService - The underlying dialog service used to render message boxes\n */\n constructor(private euiDialogService: EuiDialogService) {}\n\n /**\n * Opens a message box with the specified configuration.\n *\n * This method sets default message box properties and delegates to the dialog service\n * to render the message box. Message boxes don't close on outside click or escape key,\n * and have no header component or close button by default.\n *\n * @param config - Configuration options for the message box\n * @typeParam HC - Header content type\n * @typeParam HCC - Header component context type\n * @typeParam BC - Body content type\n * @typeParam BCC - Body component context type\n * @typeParam FC - Footer content type\n * @typeParam FCC - Footer component context type\n */\n public openMessageBox<HC, HCC, BC, BCC, FC, FCC>(config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {}): void {\n this.euiDialogService.openDialog({\n ...config,\n header: null,\n headerComponent: null,\n hasClosedOnClickOutside: false,\n hasCloseButton: false,\n hasClosedOnEscape: false,\n hasFooter: true,\n });\n }\n\n /**\n * Closes the currently active message box.\n *\n * This method delegates to the dialog service to close any open dialog.\n */\n public closeMessageBox(): void {\n this.euiDialogService.closeDialog();\n }\n}\n","import {\n Component,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n Input,\n ViewChild,\n TemplateRef,\n ViewContainerRef,\n AfterViewInit,\n OnDestroy,\n Output,\n EventEmitter,\n Directive,\n ContentChild,\n forwardRef,\n QueryList,\n ElementRef,\n booleanAttribute,\n} from '@angular/core';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { Subject } from 'rxjs';\nimport { coerceBooleanProperty } from '@angular/cdk/coercion';\n\nimport { BaseStatesDirective } from '@eui/components/shared';\nimport { EuiDialogInterface } from '@eui/components/eui-dialog';\n\nimport { EuiMessageBoxService } from './services/eui-message-box.service';\n\n/**\n * @description\n * Component for displaying modal message boxes with structured content and customizable actions.\n * This component provides a user-friendly interface for confirmation dialogs, alerts, and other\n * types of modal messages.\n *\n * The component supports various styling variants through the BaseStatesDirective hostDirective,\n * customizable buttons, and configurable behavior for dialog actions.\n *\n * @example\n * // Basic usage with title and default buttons:\n * <eui-message-box\n * title=\"Confirmation Required\"\n * (accept)=\"onConfirm()\"\n * (dismiss)=\"onCancel()\">\n * Are you sure you want to proceed with this action?\n * </eui-message-box>\n *\n * @example\n * // Custom styled message box with modified button labels:\n * <eui-message-box\n * title=\"Warning\"\n * euiWarning\n * acceptLabel=\"Proceed Anyway\"\n * dismissLabel=\"Go Back\"\n * [isDraggable]=\"true\">\n * This action cannot be undone.\n * </eui-message-box>\n *\n * @example\n * // Message box with custom footer content:\n * <eui-message-box title=\"Custom Actions\">\n * Select an option below.\n * <eui-message-box-footer>\n * <button eui-button (click)=\"optionOne()\">Option 1</button>\n * <button eui-button (click)=\"optionTwo()\">Option 2</button>\n * </eui-message-box-footer>\n * </eui-message-box>\n */\n@Component({\n selector: 'eui-message-box',\n templateUrl: './eui-message-box.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n standalone: false,\n hostDirectives: [\n {\n directive: BaseStatesDirective,\n inputs: [\n 'euiPrimary',\n 'euiSecondary',\n 'euiInfo',\n 'euiSuccess',\n 'euiWarning',\n 'euiDanger',\n 'euiAccent',\n 'euiVariant',\n ],\n },\n ],\n})\nexport class EuiMessageBoxComponent implements AfterViewInit, OnDestroy {\n /**\n * Data attribute for e2e testing purposes.\n * @default 'eui-dialog'\n */\n @Input() e2eAttr = 'eui-dialog';\n\n /**\n * Title text displayed in the message box header.\n */\n @Input() title: string;\n\n /**\n * Width of the message box.\n * @default '33rem'\n */\n @Input() width = '33rem';\n\n /**\n * Height of the message box.\n * @default 'auto'\n */\n @Input() height = 'auto';\n\n /**\n * Whether to show the accept/confirm button.\n * @default true\n */\n @Input({ transform: booleanAttribute }) hasAcceptButton = true;\n\n /**\n * Whether to show the dismiss/cancel button.\n * @default true\n */\n @Input({ transform: booleanAttribute }) hasDismissButton = true;\n\n /**\n * Label for the accept/confirm button. Can be a translation key.\n * @default 'eui.OK'\n */\n @Input() acceptLabel = 'eui.OK';\n\n /**\n * Label for the dismiss/cancel button. Can be a translation key.\n * @default 'eui.CANCEL'\n */\n @Input() dismissLabel = 'eui.CANCEL';\n\n /**\n * Whether to manually handle closing the dialog on dismiss button click.\n * @default false\n */\n @Input({ transform: booleanAttribute }) isHandleCloseOnDismiss = false;\n\n /**\n * Whether to manually handle closing the dialog on close button click.\n * @default false\n */\n @Input({ transform: booleanAttribute }) isHandleCloseOnClose = false;\n\n /**\n * Whether to manually handle closing the dialog on accept button click.\n * @default false\n */\n @Input({ transform: booleanAttribute }) isHandleCloseOnAccept = false;\n\n /**\n * Whether the message box can be dragged around the screen.\n * @default false\n */\n @Input({ transform: booleanAttribute }) isDraggable = false;\n\n /**\n * Whether to remove padding from the message box body.\n * @default false\n */\n @Input({ transform: booleanAttribute }) hasNoBodyPadding = false;\n\n /**\n * Event emitted when the message box opens.\n */\n @Output() messageBoxOpen = new EventEmitter();\n\n /**\n * Event emitted when the message box closes.\n */\n @Output() messageBoxClose = new EventEmitter();\n\n /**\n * Event emitted when the dismiss/cancel button is clicked.\n */\n @Output() dismiss = new EventEmitter();\n\n /**\n * Event emitted when the accept/confirm button is clicked.\n */\n @Output() accept = new EventEmitter();\n\n /**\n * Reference to the template containing the message box content.\n * This will be used to create a portal for the content section.\n */\n @ViewChild('templateRefContent') templateRefContent: TemplateRef<ElementRef>;\n\n /**\n * Reference to the template containing the message box footer.\n * This will be used to create a portal for the footer section.\n */\n @ViewChild('templateRefFooter') templateRefFooter: TemplateRef<EuiMessageBoxFooterDirective>;\n\n /**\n * Reference to any custom footer content provided through the eui-message-box-footer directive.\n * Forward reference is used to resolve the circular dependency between the component and directive.\n */\n @ContentChild(forwardRef(() => EuiMessageBoxFooterDirective)) euiMessageBoxFooterDirective: QueryList<EuiMessageBoxFooterDirective>;\n\n /**\n * Content that will be displayed in the message box body.\n * Can be either a simple string message or a TemplatePortal for more complex content.\n */\n public content: string | TemplatePortal;\n\n /**\n * Portal instance for the content section of the message box.\n * Created from the templateRefContent template reference.\n */\n private templatePortalContent: TemplatePortal<ElementRef>;\n\n /**\n * Portal instance for the footer section of the message box.\n * Created from the templateRefFooter template reference when a custom footer is provided.\n */\n private templatePortalFooter: TemplatePortal<EuiMessageBoxFooterDirective>;\n\n /**\n * Subject used for cleaning up subscriptions when the component is destroyed.\n */\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n /**\n * Creates an instance of EuiMessageBoxComponent.\n *\n * @param viewContainerRef - Reference to the view container for creating portals\n * @param euiMessageBoxService - Service used to open and close message boxes\n * @param baseStatesDirective - Directive that provides styling state management for the component\n */\n constructor(\n private viewContainerRef: ViewContainerRef,\n private euiMessageBoxService: EuiMessageBoxService,\n public baseStatesDirective: BaseStatesDirective,\n ) {}\n\n /**\n * Lifecycle hook that's called after Angular has fully initialized the component's view.\n * Creates the template portals for content and footer (if available).\n */\n ngAfterViewInit(): void {\n this.templatePortalContent = new TemplatePortal(this.templateRefContent, this.viewContainerRef);\n\n if (this.euiMessageBoxFooterDirective) {\n this.templatePortalFooter = new TemplatePortal(this.templateRefFooter, this.viewContainerRef);\n }\n }\n\n /**\n * Lifecycle hook that's called when the component is destroyed.\n * Cleans up any subscriptions to prevent memory leaks.\n */\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n /**\n * Opens the message box with the current configuration.\n * This method configures and displays the message box using the EuiMessageBoxService.\n */\n public openMessageBox<HC, HCC, BC, BCC, FC, FCC>(): void {\n const config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {\n e2eAttr: this.e2eAttr,\n title: this.title,\n width: this.width,\n height: this.height,\n variant: this.baseStatesDirective.euiVariant.length > 0 ? this.baseStatesDirective.euiVariant : 'primary',\n acceptLabel: this.acceptLabel,\n dismissLabel: this.dismissLabel,\n hasCloseButton: false,\n hasAcceptButton: this.hasAcceptButton,\n hasDismissButton: this.hasDismissButton,\n hasClosedOnClickOutside: false,\n hasClosedOnEscape: false,\n isHandleCloseOnDismiss: this.isHandleCloseOnDismiss,\n isHandleCloseOnClose: this.isHandleCloseOnClose,\n isHandleCloseOnAccept: this.isHandleCloseOnAccept,\n isHandleCloseOnClickOutside: false,\n isHandleCloseOnEscape: false,\n isDraggable: coerceBooleanProperty(this.isDraggable),\n hasNoBodyPadding: coerceBooleanProperty(this.hasNoBodyPadding),\n content: this.templatePortalContent,\n footer: this.templatePortalFooter,\n isMessageBox: true,\n open: () => {\n this.messageBoxOpen.emit();\n },\n close: () => {\n this.messageBoxClose.emit();\n },\n dismiss: () => {\n this.dismiss.emit();\n },\n accept: () => {\n this.accept.emit();\n },\n };\n\n this.euiMessageBoxService.openMessageBox(config);\n }\n\n /**\n * Closes the currently open message box.\n * This method uses the EuiMessageBoxService to close the dialog.\n */\n public closeMessageBox(): void {\n this.euiMessageBoxService.closeMessageBox();\n }\n}\n\n/* eslint-disable */\n@Directive({ selector: 'eui-message-box-footer', standalone: false, })\nexport class EuiMessageBoxFooterDirective {}\n/* eslint-enable */\n","<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-message-box-footer\"></ng-content>\n</ng-template>\n","import { EuiDialogInterface } from '@eui/components/eui-dialog';\n\nexport class EuiMessageBoxConfig<HC, HCC, BC, BCC, FC, FCC> implements EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> {\n e2eAttr = 'eui-message-box';\n acceptLabel = 'eui.OK';\n dismissLabel = 'eui.CANCEL';\n variant: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent' | string = 'primary';\n width = '33rem';\n height = 'auto';\n hasCloseButton = false;\n hasAcceptButton = true;\n hasDismissButton = true;\n hasClosedOnClickOutside = false;\n hasClosedOnEscape = false;\n isHandleCloseOnDismiss = false;\n isHandleCloseOnClose = false;\n isHandleCloseOnAccept = false;\n isHandleCloseOnClickOutside = false;\n isHandleCloseOnEscape = false;\n hasFooter = true;\n isMessageBox = true;\n header = null;\n headerComponent = null;\n\n constructor(values: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>) {\n Object.assign(this, values);\n }\n}\n\nexport class EuiMessageBoxComponentInstances<HC, BC, FC> {\n headerComponent: HC = null;\n bodyComponent: BC = null;\n footerComponent: FC = null;\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { TranslateModule } from '@ngx-translate/core';\nimport { PortalModule } from '@angular/cdk/portal';\nimport { OverlayModule } from '@angular/cdk/overlay';\nimport { A11yModule } from '@angular/cdk/a11y';\nimport { DragDropModule } from '@angular/cdk/drag-drop';\nimport { EuiButtonComponent } from '@eui/components/eui-button';\nimport { EuiIconModule } from '@eui/components/eui-icon';\nimport { EuiDialogService } from '@eui/components/eui-dialog';\n\nimport { EuiMessageBoxComponent, EuiMessageBoxFooterDirective } from './eui-message-box.component';\nimport { EuiMessageBoxService } from './services/eui-message-box.service';\n\n/**\n * @description\n * Provides message box functionality for displaying modal dialogs with structured content.\n *\n * @example\n * import { EuiMessageBoxModule } from '@eui/components/eui-message-box';\n *\n * @NgModule({\n * imports: [\n * EuiMessageBoxModule,\n * ],\n * })\n * export class MyFeatureModule {}\n */\n@NgModule({\n imports: [CommonModule, EuiButtonComponent, EuiIconModule, TranslateModule, PortalModule, OverlayModule, A11yModule, DragDropModule],\n exports: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],\n declarations: [EuiMessageBoxComponent, EuiMessageBoxFooterDirective],\n providers: [EuiMessageBoxService, EuiDialogService],\n})\nexport class EuiMessageBoxModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1.Eui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sB,EAAE,4BAA4B,CAAA,EAAA,CAAA,CAAA;+GAIrD,mBAAmB,EAAA,SAAA,EAFjB,CAAC,oBAAoB,EAAE,gBAAgB,CAAC,EAAA,OAAA,EAAA,CAHzC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,CAAA,EAAA,CAAA,CAAA;;2FAK1H,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAN/B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACN,oBAAA,OAAO,EAAE,CAAC,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,cAAc,CAAC;AACpI,oBAAA,OAAO,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;AAC/D,oBAAA,YAAY,EAAE,CAAC,sBAAsB,EAAE,4BAA4B,CAAC;AACpE,oBAAA,SAAS,EAAE,CAAC,oBAAoB,EAAE,gBAAgB,CAAC;AACtD,iBAAA;;;ACjCD;;AAEG;;;;"}
@@ -39,10 +39,10 @@ class EuiNavbarItemComponent {
39
39
  _click() {
40
40
  this.navBarComponentParent.itemSelected(this.id);
41
41
  }
42
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarItemComponent, deps: [{ token: forwardRef(() => EuiNavbarComponent), host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
43
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.1.7", type: EuiNavbarItemComponent, isStandalone: true, selector: "eui-navbar-item", inputs: { id: "id", label: "label", isActive: ["isActive", "isActive", booleanAttribute] }, host: { listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "class": "this.cssClasses", "attr.tabindex": "this.tabindex" } }, ngImport: i0, template: '{{ label }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
42
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarItemComponent, deps: [{ token: forwardRef(() => EuiNavbarComponent), host: true, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
43
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "16.1.0", version: "19.2.1", type: EuiNavbarItemComponent, isStandalone: true, selector: "eui-navbar-item", inputs: { id: "id", label: "label", isActive: ["isActive", "isActive", booleanAttribute] }, host: { listeners: { "click": "onClick()", "keydown": "onKeydown($event)" }, properties: { "class": "this.cssClasses", "attr.tabindex": "this.tabindex" } }, ngImport: i0, template: '{{ label }}', isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
44
44
  }
45
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarItemComponent, decorators: [{
45
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarItemComponent, decorators: [{
46
46
  type: Component,
47
47
  args: [{
48
48
  selector: 'eui-navbar-item',
@@ -116,10 +116,10 @@ class EuiNavbarComponent {
116
116
  });
117
117
  this.itemClick.emit(id);
118
118
  }
119
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarComponent, deps: [{ token: i1.EuiAppShellService }, { token: i0.ElementRef }, { token: i2.BaseStatesDirective }], target: i0.ɵɵFactoryTarget.Component }); }
120
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.1.7", type: EuiNavbarComponent, isStandalone: true, selector: "eui-navbar", outputs: { itemClick: "itemClick" }, host: { properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "items", predicate: i0.forwardRef(() => EuiNavbarItemComponent) }], hostDirectives: [{ directive: i2.BaseStatesDirective, inputs: ["euiPrimary", "euiPrimary", "euiSecondary", "euiSecondary"] }], ngImport: i0, template: "@if ( (asService.breakpoints$ | async).isLtLargeTablet || isDropdownView ) {\n <eui-dropdown isLabelUpdatedFromSelectedItem>\n <button euiButton euiSecondary euiSizeS [attr.aria-label]=\"'Button trigger'\">\n <span class=\"eui-label\">{{ baseItemSelected.label }}</span>\n <eui-icon-svg icon=\"chevron-down:sharp\" size=\"s\"></eui-icon-svg>\n </button>\n <eui-dropdown-content>\n <button *ngFor=\"let item of items\" euiDropdownItem (click)=\"itemSelected(item.id)\" ariaLabel=\"{{ item.label }}\">\n {{ item.label }}\n </button>\n </eui-dropdown-content>\n </eui-dropdown>\n} @else {\n <ng-content></ng-content>\n}\n", styles: [":root{--_eui-scrollbars-foreground-color: var(--eui-c-neutral-lightest)}html.eui-t-dark{--_eui-scrollbars-foreground-color: var(--eui-c-neutral-light)}.eui-19 .eui-navbar{display:flex;align-items:center;width:100%;padding:0 var(--eui-s-s);height:var(--eui-s-5xl)}.eui-19 .eui-navbar-item{display:flex;align-items:center;height:100%;padding:var(--eui-s-m) var(--eui-s-s);border-bottom:2px solid transparent;font:var(--eui-f-bold);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.eui-19 .eui-navbar-item:focus-visible:not([readonly]){outline:2px solid var(--eui-c-focus-visible)!important;outline-offset:-2px!important;transition:none}.eui-19 .eui-navbar-item:hover{background-color:var(--eui-c-neutral-bg)}.eui-19 .eui-navbar-item--active{border-bottom:3px solid var(--eui-c-primary);color:var(--eui-c-primary)}\n"], dependencies: [{ kind: "ngmodule", type: EuiDropdownModule }, { kind: "component", type: i3.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "subDropdownPosition", "isBlock", "isDropDownRightAligned", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled", "euiDisabled"], outputs: ["expand"] }, { kind: "component", type: i3.EuiDropdownItemComponent, selector: "eui-dropdown-item, [euiDropdownItem]", inputs: ["subDropdown", "isActive", "isFocus"] }, { kind: "directive", type: i3.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "ngmodule", type: EuiButtonModule }, { kind: "component", type: i4.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "ngmodule", type: EuiIconModule }, { kind: "component", type: i5.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
119
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarComponent, deps: [{ token: i1.EuiAppShellService }, { token: i0.ElementRef }, { token: i2.BaseStatesDirective }], target: i0.ɵɵFactoryTarget.Component }); }
120
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.1", type: EuiNavbarComponent, isStandalone: true, selector: "eui-navbar", outputs: { itemClick: "itemClick" }, host: { properties: { "class": "this.cssClasses" } }, queries: [{ propertyName: "items", predicate: i0.forwardRef(() => EuiNavbarItemComponent) }], hostDirectives: [{ directive: i2.BaseStatesDirective, inputs: ["euiPrimary", "euiPrimary", "euiSecondary", "euiSecondary"] }], ngImport: i0, template: "@if ( (asService.breakpoints$ | async).isLtLargeTablet || isDropdownView ) {\n <eui-dropdown isLabelUpdatedFromSelectedItem>\n <button euiButton euiSecondary euiSizeS [attr.aria-label]=\"'Button trigger'\">\n <span class=\"eui-label\">{{ baseItemSelected.label }}</span>\n <eui-icon-svg icon=\"chevron-down:sharp\" size=\"s\"></eui-icon-svg>\n </button>\n <eui-dropdown-content>\n <button *ngFor=\"let item of items\" euiDropdownItem (click)=\"itemSelected(item.id)\" ariaLabel=\"{{ item.label }}\">\n {{ item.label }}\n </button>\n </eui-dropdown-content>\n </eui-dropdown>\n} @else {\n <ng-content></ng-content>\n}\n", styles: [":root{--_eui-scrollbars-foreground-color: var(--eui-c-neutral-lightest)}html.eui-t-dark{--_eui-scrollbars-foreground-color: var(--eui-c-neutral-light)}.eui-19 .eui-navbar{display:flex;align-items:center;width:100%;padding:0 var(--eui-s-s);height:var(--eui-s-5xl)}.eui-19 .eui-navbar-item{display:flex;align-items:center;height:100%;padding:var(--eui-s-m) var(--eui-s-s);border-bottom:2px solid transparent;font:var(--eui-f-bold);cursor:pointer;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px}.eui-19 .eui-navbar-item:focus-visible:not([readonly]){outline:2px solid var(--eui-c-focus-visible)!important;outline-offset:-2px!important;transition:none}.eui-19 .eui-navbar-item:hover{background-color:var(--eui-c-neutral-bg)}.eui-19 .eui-navbar-item--active{border-bottom:3px solid var(--eui-c-primary);color:var(--eui-c-primary)}\n"], dependencies: [{ kind: "ngmodule", type: EuiDropdownModule }, { kind: "component", type: i3.EuiDropdownComponent, selector: "eui-dropdown", inputs: ["e2eAttr", "tabIndex", "width", "position", "subDropdownPosition", "isBlock", "isDropDownRightAligned", "hasClosedOnClickInside", "isLabelUpdatedFromSelectedItem", "isExpandOnHover", "hasTabNavigation", "isRightClickEnabled", "euiDisabled"], outputs: ["expand"] }, { kind: "component", type: i3.EuiDropdownItemComponent, selector: "eui-dropdown-item, [euiDropdownItem]", inputs: ["subDropdown", "isActive", "isFocus"] }, { kind: "directive", type: i3.EuiDropdownContentDirective, selector: "eui-dropdown-content" }, { kind: "ngmodule", type: EuiButtonModule }, { kind: "component", type: i4.EuiButtonComponent, selector: "button[euiButton], a[euiButton]", inputs: ["e2eAttr", "id", "euiBasicButton", "euiButtonCall", "euiBlockButton", "euiIconButton", "euiLineWrap", "isChecked", "euiDisabled"], outputs: ["buttonClick"] }, { kind: "ngmodule", type: EuiIconModule }, { kind: "component", type: i5.EuiIconSvgComponent, selector: "eui-icon-svg, span[euiIconSvg], i[euiIconSvg]", inputs: ["icon", "fillColor", "set", "size", "style", "iconUrl", "transform", "euiVariant", "aria-label", "ariaHidden", "focusable", "isLoading", "isInputIcon", "euiStart", "euiEnd"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "directive", type: NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.Default, encapsulation: i0.ViewEncapsulation.None }); }
121
121
  }
122
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarComponent, decorators: [{
122
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarComponent, decorators: [{
123
123
  type: Component,
124
124
  args: [{ selector: 'eui-navbar', changeDetection: ChangeDetectionStrategy.Default, encapsulation: ViewEncapsulation.None, standalone: true, imports: [
125
125
  EuiDropdownModule,
@@ -148,11 +148,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImpor
148
148
  }] } });
149
149
 
150
150
  class EuiNavbarModule {
151
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
152
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarModule, imports: [CommonModule, EuiNavbarComponent, EuiNavbarItemComponent], exports: [EuiNavbarComponent, EuiNavbarItemComponent] }); }
153
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarModule, imports: [CommonModule, EuiNavbarComponent] }); }
151
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
152
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarModule, imports: [CommonModule, EuiNavbarComponent, EuiNavbarItemComponent], exports: [EuiNavbarComponent, EuiNavbarItemComponent] }); }
153
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarModule, imports: [CommonModule, EuiNavbarComponent] }); }
154
154
  }
155
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.1.7", ngImport: i0, type: EuiNavbarModule, decorators: [{
155
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.1", ngImport: i0, type: EuiNavbarModule, decorators: [{
156
156
  type: NgModule,
157
157
  args: [{
158
158
  imports: [CommonModule, EuiNavbarComponent, EuiNavbarItemComponent],