@eui/components 18.0.0-next.17 → 18.0.0-next.19

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 (344) hide show
  1. package/docs/classes/EuiDialogConfig.html +56 -0
  2. package/docs/components/ChartComponent.html +2 -2
  3. package/docs/components/CollapsedBreadcrumbComponent.html +2 -2
  4. package/docs/components/DefaultComponent.html +2 -2
  5. package/docs/components/EuiAlertComponent.html +4 -8
  6. package/docs/components/EuiAlertTitleComponent.html +389 -0
  7. package/docs/components/EuiAppBreadcrumbComponent.html +2 -2
  8. package/docs/components/EuiAppComponent.html +2 -2
  9. package/docs/components/EuiAppFooterComponent.html +2 -2
  10. package/docs/components/EuiAppHeaderComponent.html +2 -2
  11. package/docs/components/EuiAppSidebarBodyComponent.html +2 -2
  12. package/docs/components/EuiAppSidebarComponent.html +2 -2
  13. package/docs/components/EuiAppSidebarDrawerComponent.html +2 -2
  14. package/docs/components/EuiAppSidebarFooterComponent.html +2 -2
  15. package/docs/components/EuiAppSidebarHeaderComponent.html +2 -2
  16. package/docs/components/EuiAppSidebarHeaderUserProfileComponent.html +2 -2
  17. package/docs/components/EuiAppSidebarMenuComponent.html +2 -2
  18. package/docs/components/EuiAppToolbarComponent.html +2 -2
  19. package/docs/components/EuiAppTopMessageComponent.html +2 -2
  20. package/docs/components/EuiAutocompleteAsyncTestComponent.html +2 -2
  21. package/docs/components/EuiAutocompleteChipsAsyncTestComponent.html +2 -2
  22. package/docs/components/EuiAutocompleteChipsTestComponent.html +2 -2
  23. package/docs/components/EuiAutocompleteComponent.html +2 -2
  24. package/docs/components/EuiAutocompleteOptionComponent.html +2 -2
  25. package/docs/components/EuiAutocompleteOptionGroupComponent.html +2 -2
  26. package/docs/components/EuiAutocompleteTestComponent.html +2 -2
  27. package/docs/components/EuiAvatarBadgeComponent.html +2 -2
  28. package/docs/components/EuiAvatarComponent.html +2 -2
  29. package/docs/components/EuiAvatarIconComponent.html +2 -2
  30. package/docs/components/EuiAvatarImageComponent.html +2 -2
  31. package/docs/components/EuiAvatarListComponent.html +2 -2
  32. package/docs/components/EuiAvatarTextComponent.html +2 -2
  33. package/docs/components/EuiBadgeComponent.html +2 -2
  34. package/docs/components/EuiBlockContentComponent.html +2 -2
  35. package/docs/components/EuiBlockDocumentComponent.html +2 -2
  36. package/docs/components/EuiBreadcrumbComponent.html +2 -2
  37. package/docs/components/EuiBreadcrumbItemComponent.html +2 -2
  38. package/docs/components/EuiButtonComponent.html +2 -2
  39. package/docs/components/EuiButtonGroupComponent.html +2 -2
  40. package/docs/components/EuiButtonsComponent.html +2 -2
  41. package/docs/components/EuiCardComponent.html +2 -2
  42. package/docs/components/EuiCardContentComponent.html +2 -2
  43. package/docs/components/EuiCardFooterActionButtonsComponent.html +2 -2
  44. package/docs/components/EuiCardFooterActionIconsComponent.html +2 -2
  45. package/docs/components/EuiCardFooterComponent.html +2 -2
  46. package/docs/components/EuiCardFooterMenuContentComponent.html +2 -2
  47. package/docs/components/EuiCardHeaderBodyComponent.html +2 -2
  48. package/docs/components/EuiCardHeaderComponent.html +2 -2
  49. package/docs/components/EuiCardHeaderLeftContentComponent.html +2 -2
  50. package/docs/components/EuiCardHeaderRightContentComponent.html +2 -2
  51. package/docs/components/EuiCardHeaderSubtitleComponent.html +2 -2
  52. package/docs/components/EuiCardHeaderTitleComponent.html +2 -2
  53. package/docs/components/EuiCardMediaComponent.html +2 -2
  54. package/docs/components/EuiChipComponent.html +2 -2
  55. package/docs/components/EuiChipListComponent.html +2 -2
  56. package/docs/components/EuiDashboardButtonComponent.html +2 -2
  57. package/docs/components/EuiDashboardCardComponent.html +2 -2
  58. package/docs/components/EuiDateRangeSelectorComponent.html +2 -2
  59. package/docs/components/EuiDatepickerComponent.html +2 -2
  60. package/docs/components/EuiDialogComponent.html +132 -1006
  61. package/docs/components/EuiDialogContainerComponent.html +2 -2
  62. package/docs/components/EuiDimmerComponent.html +2 -2
  63. package/docs/components/EuiDisableContentComponent.html +2 -2
  64. package/docs/components/EuiDiscussionThreadComponent.html +2 -2
  65. package/docs/components/EuiDiscussionThreadItemComponent.html +2 -2
  66. package/docs/components/EuiDropdownComponent.html +26 -2
  67. package/docs/components/EuiDropdownItemComponent.html +2 -2
  68. package/docs/components/EuiEditorComponent.html +2 -2
  69. package/docs/components/EuiEditorCountersComponent.html +2 -2
  70. package/docs/components/EuiEditorHtmlViewComponent.html +2 -2
  71. package/docs/components/EuiEditorImageDialogComponent.html +2 -2
  72. package/docs/components/EuiEditorJsonViewComponent.html +2 -2
  73. package/docs/components/EuiFeedbackMessageComponent.html +2 -2
  74. package/docs/components/EuiFieldsetComponent.html +2 -2
  75. package/docs/components/EuiFilePreviewComponent.html +2 -2
  76. package/docs/components/EuiFileUploadComponent.html +2 -2
  77. package/docs/components/EuiFileUploadProgressComponent.html +2 -2
  78. package/docs/components/EuiFooterComponent.html +2 -2
  79. package/docs/components/EuiGrowlComponent.html +2 -2
  80. package/docs/components/EuiHeaderAppComponent.html +2 -2
  81. package/docs/components/EuiHeaderAppNameComponent.html +2 -2
  82. package/docs/components/EuiHeaderAppNameLogoComponent.html +2 -2
  83. package/docs/components/EuiHeaderAppSubtitleComponent.html +2 -2
  84. package/docs/components/EuiHeaderComponent.html +2 -2
  85. package/docs/components/EuiHeaderEnvironmentComponent.html +2 -2
  86. package/docs/components/EuiHeaderLogoComponent.html +2 -2
  87. package/docs/components/EuiHeaderRightContentComponent.html +2 -2
  88. package/docs/components/EuiHeaderUserProfileComponent.html +2 -2
  89. package/docs/components/EuiIconColorComponent.html +2 -2
  90. package/docs/components/EuiIconSvgButtonComponent.html +2 -2
  91. package/docs/components/EuiIconSvgComponent.html +2 -2
  92. package/docs/components/EuiIconToggleComponent.html +2 -2
  93. package/docs/components/EuiInputCheckboxComponent.html +2 -2
  94. package/docs/components/EuiInputGroupComponent.html +2 -2
  95. package/docs/components/EuiInputNumberComponent.html +2 -2
  96. package/docs/components/EuiInputRadioComponent.html +2 -2
  97. package/docs/components/EuiInputTextComponent.html +2 -2
  98. package/docs/components/EuiLabelComponent.html +101 -822
  99. package/docs/components/EuiLanguageSelectorComponent.html +2 -2
  100. package/docs/components/EuiListComponent.html +2 -2
  101. package/docs/components/EuiListItemComponent.html +2 -2
  102. package/docs/components/EuiMenuComponent.html +2 -2
  103. package/docs/components/EuiMenuItemComponent.html +2 -2
  104. package/docs/components/EuiMessageBoxComponent.html +121 -2
  105. package/docs/components/EuiModalSelectorComponent.html +2 -2
  106. package/docs/components/EuiNotificationItemComponent.html +2 -2
  107. package/docs/components/EuiNotificationItemV2Component.html +2 -2
  108. package/docs/components/EuiNotificationsComponent.html +2 -2
  109. package/docs/components/EuiNotificationsV2Component.html +2 -2
  110. package/docs/components/EuiOverlayBodyComponent.html +2 -2
  111. package/docs/components/EuiOverlayComponent.html +2 -2
  112. package/docs/components/EuiOverlayFooterComponent.html +2 -2
  113. package/docs/components/EuiOverlayHeaderComponent.html +2 -2
  114. package/docs/components/EuiOverlayHeaderTitleComponent.html +2 -2
  115. package/docs/components/EuiPageBreadcrumbComponent.html +2 -2
  116. package/docs/components/EuiPageColumnComponent.html +2 -2
  117. package/docs/components/EuiPageColumnsComponent.html +2 -2
  118. package/docs/components/EuiPageComponent.html +2 -2
  119. package/docs/components/EuiPageContentComponent.html +2 -2
  120. package/docs/components/EuiPageFooterComponent.html +2 -2
  121. package/docs/components/EuiPageHeaderComponent.html +2 -2
  122. package/docs/components/EuiPageHeroHeaderComponent.html +2 -2
  123. package/docs/components/EuiPageTopContentComponent.html +2 -2
  124. package/docs/components/EuiPaginatorComponent.html +2 -2
  125. package/docs/components/EuiPopoverComponent.html +2 -2
  126. package/docs/components/EuiProgressBarComponent.html +2 -2
  127. package/docs/components/EuiProgressCircleComponent.html +2 -2
  128. package/docs/components/EuiResizableComponent.html +2 -2
  129. package/docs/components/EuiSearchComponent.html +2 -2
  130. package/docs/components/EuiSelectComponent.html +2 -2
  131. package/docs/components/EuiSidebarMenuComponent.html +2 -2
  132. package/docs/components/EuiSidebarToggleComponent.html +2 -2
  133. package/docs/components/EuiSkeletonComponent.html +2 -2
  134. package/docs/components/EuiSlideToggleComponent.html +2 -2
  135. package/docs/components/EuiSlideToggleTestComponent.html +2 -2
  136. package/docs/components/EuiTabComponent.html +2 -2
  137. package/docs/components/EuiTabContentComponent.html +2 -2
  138. package/docs/components/EuiTabLabelComponent.html +2 -2
  139. package/docs/components/EuiTableComponent.html +2 -2
  140. package/docs/components/EuiTableExpandableRowComponent.html +2 -2
  141. package/docs/components/EuiTableFilterComponent.html +2 -2
  142. package/docs/components/EuiTableSelectableHeaderComponent.html +2 -2
  143. package/docs/components/EuiTableSelectableRowComponent.html +2 -2
  144. package/docs/components/EuiTableSortableColComponent.html +2 -2
  145. package/docs/components/EuiTabsComponent.html +2 -2
  146. package/docs/components/EuiTextareaComponent.html +2 -2
  147. package/docs/components/EuiTimebarComponent.html +2 -2
  148. package/docs/components/EuiTimelineComponent.html +2 -2
  149. package/docs/components/EuiTimelineItemComponent.html +2 -2
  150. package/docs/components/EuiTimepickerComponent.html +2 -2
  151. package/docs/components/EuiToolbarAppComponent.html +2 -2
  152. package/docs/components/EuiToolbarCenterComponent.html +2 -2
  153. package/docs/components/EuiToolbarComponent.html +2 -2
  154. package/docs/components/EuiToolbarEnvironmentComponent.html +2 -2
  155. package/docs/components/EuiToolbarItemComponent.html +2 -2
  156. package/docs/components/EuiToolbarItemsComponent.html +2 -2
  157. package/docs/components/EuiToolbarLogoComponent.html +2 -2
  158. package/docs/components/EuiToolbarMenuComponent.html +2 -2
  159. package/docs/components/EuiTooltipContainerComponent.html +2 -2
  160. package/docs/components/EuiTreeComponent.html +2 -2
  161. package/docs/components/EuiTreeListComponent.html +2 -2
  162. package/docs/components/EuiTreeListItemComponent.html +2 -2
  163. package/docs/components/EuiTreeListItemContentComponent.html +2 -2
  164. package/docs/components/EuiTreeListToolbarComponent.html +2 -2
  165. package/docs/components/EuiUserProfileCardComponent.html +2 -2
  166. package/docs/components/EuiUserProfileComponent.html +2 -2
  167. package/docs/components/EuiUserProfileMenuComponent.html +2 -2
  168. package/docs/components/EuiUserProfileMenuItemComponent.html +2 -2
  169. package/docs/components/EuiWizardComponent.html +2 -2
  170. package/docs/components/EuiWizardStepComponent.html +2 -2
  171. package/docs/components/PlaygroundComponent.html +2 -2
  172. package/docs/components/PlaygroundStickyLastColumnComponent.html +2 -2
  173. package/docs/components/QuillEditorComponent.html +2 -2
  174. package/docs/dependencies.html +1 -1
  175. package/docs/index.html +2 -2
  176. package/docs/interfaces/EuiDialogInterface.html +102 -0
  177. package/docs/js/menu-wc.js +39 -138
  178. package/docs/js/menu-wc_es5.js +1 -1
  179. package/docs/js/search/search_index.js +2 -2
  180. package/docs/miscellaneous/variables.html +1 -1
  181. package/docs/modules/EuiAlertModule.html +2 -2
  182. package/docs/modules/EuiAppSidebarModule.html +2 -2
  183. package/docs/modules/EuiAppToolbarModule.html +2 -2
  184. package/docs/modules/EuiAvatarModule.html +2 -2
  185. package/docs/modules/EuiChartsModule.html +2 -2
  186. package/docs/modules/EuiHeaderModule.html +2 -2
  187. package/docs/modules/EuiPageModule.html +2 -2
  188. package/docs/modules/EuiSidebarMenuModule.html +2 -2
  189. package/docs/modules/EuiSkeletonModule.html +2 -2
  190. package/docs/modules/EuiToolbarModule.html +2 -2
  191. package/docs/modules/EuiUserProfileModule.html +2 -2
  192. package/esm2022/directives/eui-tooltip/container/eui-tooltip-container.component.mjs +3 -3
  193. package/esm2022/eui-alert/components/eui-alert-title.component.mjs +18 -0
  194. package/esm2022/eui-alert/eui-alert.component.mjs +7 -27
  195. package/esm2022/eui-alert/eui-alert.module.mjs +6 -5
  196. package/esm2022/eui-alert/index.mjs +2 -1
  197. package/esm2022/eui-avatar/eui-avatar.component.mjs +2 -2
  198. package/esm2022/eui-badge/eui-badge.component.mjs +2 -2
  199. package/esm2022/eui-button/eui-button.component.mjs +2 -2
  200. package/esm2022/eui-buttons/eui-buttons.component.mjs +1 -1
  201. package/esm2022/eui-card/components/eui-card-footer/eui-card-footer-menu-content.component.mjs +1 -1
  202. package/esm2022/eui-card/eui-card.component.mjs +2 -2
  203. package/esm2022/eui-chip/eui-chip.component.mjs +2 -2
  204. package/esm2022/eui-dashboard-card/eui-dashboard-card.component.mjs +2 -2
  205. package/esm2022/eui-dialog/container/eui-dialog-container.component.mjs +2 -2
  206. package/esm2022/eui-dialog/eui-dialog.component.mjs +99 -161
  207. package/esm2022/eui-dialog/models/eui-dialog.config.mjs +5 -1
  208. package/esm2022/eui-dialog/services/eui-dialog.service.mjs +5 -3
  209. package/esm2022/eui-discussion-thread/eui-discussion-thread.component.mjs +2 -2
  210. package/esm2022/eui-dropdown/dropdown-item/eui-dropdown-item.component.mjs +2 -2
  211. package/esm2022/eui-dropdown/eui-dropdown.component.mjs +20 -14
  212. package/esm2022/eui-feedback-message/eui-feedback-message.component.mjs +2 -2
  213. package/esm2022/eui-fieldset/eui-fieldset.component.mjs +2 -2
  214. package/esm2022/eui-file-upload/eui-file-upload.component.mjs +2 -2
  215. package/esm2022/eui-growl/eui-growl.component.mjs +2 -2
  216. package/esm2022/eui-input-checkbox/eui-input-checkbox.component.mjs +2 -2
  217. package/esm2022/eui-input-group/eui-input-group.component.mjs +2 -2
  218. package/esm2022/eui-input-number/eui-input-number.component.mjs +2 -2
  219. package/esm2022/eui-input-text/eui-input-text.component.mjs +2 -2
  220. package/esm2022/eui-label/eui-label.component.mjs +41 -41
  221. package/esm2022/eui-menu/eui-menu-item.component.mjs +2 -2
  222. package/esm2022/eui-menu/eui-menu.component.mjs +2 -2
  223. package/esm2022/eui-message-box/eui-message-box.component.mjs +23 -3
  224. package/esm2022/eui-overlay/components/eui-overlay-body/eui-overlay-body.component.mjs +2 -2
  225. package/esm2022/eui-overlay/components/eui-overlay-footer/eui-overlay-footer.component.mjs +2 -2
  226. package/esm2022/eui-overlay/components/eui-overlay-header/eui-overlay-header.component.mjs +2 -2
  227. package/esm2022/eui-overlay/eui-overlay.component.mjs +2 -2
  228. package/esm2022/eui-page/eui-page.component.mjs +2 -2
  229. package/esm2022/eui-paginator/eui-paginator.component.mjs +2 -2
  230. package/esm2022/eui-popover/eui-popover.component.mjs +2 -2
  231. package/esm2022/eui-progress-bar/eui-progress-bar.component.mjs +2 -2
  232. package/esm2022/eui-select/eui-select.component.mjs +2 -2
  233. package/esm2022/eui-table/eui-table.component.mjs +2 -2
  234. package/esm2022/eui-table/sortable-col/eui-table-sortable-col.component.mjs +1 -1
  235. package/esm2022/eui-tabs/eui-tab/eui-tab.component.mjs +2 -2
  236. package/esm2022/eui-tabs/eui-tabs.component.mjs +2 -2
  237. package/esm2022/eui-textarea/eui-textarea.component.mjs +2 -2
  238. package/esm2022/eui-timebar/eui-timebar.component.mjs +2 -2
  239. package/esm2022/eui-timeline/eui-timeline-item.component.mjs +2 -2
  240. package/esm2022/eui-timeline/eui-timeline.component.mjs +2 -2
  241. package/esm2022/eui-tree/eui-tree.component.mjs +1 -1
  242. package/esm2022/eui-tree-list/eui-tree-list.component.mjs +2 -2
  243. package/esm2022/eui-wizard/eui-wizard-step.component.mjs +2 -2
  244. package/esm2022/eui-wizard/eui-wizard.component.mjs +2 -2
  245. package/esm2022/externals/charts/chart/chart.component.mjs +2 -2
  246. package/esm2022/externals/eui-editor/eui-editor.component.mjs +2 -2
  247. package/esm2022/layout/eui-breadcrumb/collapsed-breadcrumb/collapsed-breadcrumb.component.mjs +1 -1
  248. package/esm2022/layout/eui-header/header.component.mjs +2 -2
  249. package/esm2022/layout/eui-language-selector/language-selector.component.mjs +2 -2
  250. package/esm2022/layout/eui-language-selector/modal-selector/modal-selector.component.mjs +2 -2
  251. package/esm2022/layout/eui-notifications/eui-notifications.component.mjs +2 -2
  252. package/esm2022/layout/eui-notifications-v2/eui-notifications.component.mjs +2 -2
  253. package/esm2022/layout/eui-user-profile/user-profile.component.mjs +2 -2
  254. package/eui-alert/components/eui-alert-title.component.d.ts +7 -0
  255. package/eui-alert/components/eui-alert-title.component.d.ts.map +1 -0
  256. package/eui-alert/eui-alert.component.d.ts +2 -6
  257. package/eui-alert/eui-alert.component.d.ts.map +1 -1
  258. package/eui-alert/eui-alert.module.d.ts +8 -7
  259. package/eui-alert/eui-alert.module.d.ts.map +1 -1
  260. package/eui-alert/index.d.ts +1 -0
  261. package/eui-alert/index.d.ts.map +1 -1
  262. package/eui-dialog/eui-dialog.component.d.ts +44 -55
  263. package/eui-dialog/eui-dialog.component.d.ts.map +1 -1
  264. package/eui-dialog/models/eui-dialog.config.d.ts +8 -0
  265. package/eui-dialog/models/eui-dialog.config.d.ts.map +1 -1
  266. package/eui-dialog/services/eui-dialog.service.d.ts.map +1 -1
  267. package/eui-dropdown/eui-dropdown.component.d.ts +9 -6
  268. package/eui-dropdown/eui-dropdown.component.d.ts.map +1 -1
  269. package/eui-label/eui-label.component.d.ts +12 -15
  270. package/eui-label/eui-label.component.d.ts.map +1 -1
  271. package/eui-message-box/eui-message-box.component.d.ts +13 -2
  272. package/eui-message-box/eui-message-box.component.d.ts.map +1 -1
  273. package/fesm2022/eui-components-directives.mjs +2 -2
  274. package/fesm2022/eui-components-directives.mjs.map +1 -1
  275. package/fesm2022/eui-components-eui-alert.mjs +46 -45
  276. package/fesm2022/eui-components-eui-alert.mjs.map +4 -4
  277. package/fesm2022/eui-components-eui-avatar.mjs +2 -2
  278. package/fesm2022/eui-components-eui-badge.mjs +2 -2
  279. package/fesm2022/eui-components-eui-badge.mjs.map +1 -1
  280. package/fesm2022/eui-components-eui-button.mjs +2 -2
  281. package/fesm2022/eui-components-eui-button.mjs.map +1 -1
  282. package/fesm2022/eui-components-eui-buttons.mjs +1 -1
  283. package/fesm2022/eui-components-eui-buttons.mjs.map +1 -1
  284. package/fesm2022/eui-components-eui-card.mjs +3 -3
  285. package/fesm2022/eui-components-eui-card.mjs.map +1 -1
  286. package/fesm2022/eui-components-eui-chip.mjs +2 -2
  287. package/fesm2022/eui-components-eui-chip.mjs.map +1 -1
  288. package/fesm2022/eui-components-eui-dashboard-card.mjs +2 -2
  289. package/fesm2022/eui-components-eui-dashboard-card.mjs.map +1 -1
  290. package/fesm2022/eui-components-eui-dialog.mjs +104 -164
  291. package/fesm2022/eui-components-eui-dialog.mjs.map +2 -2
  292. package/fesm2022/eui-components-eui-discussion-thread.mjs +2 -2
  293. package/fesm2022/eui-components-eui-discussion-thread.mjs.map +1 -1
  294. package/fesm2022/eui-components-eui-dropdown.mjs +21 -16
  295. package/fesm2022/eui-components-eui-dropdown.mjs.map +2 -2
  296. package/fesm2022/eui-components-eui-feedback-message.mjs +2 -2
  297. package/fesm2022/eui-components-eui-fieldset.mjs +2 -2
  298. package/fesm2022/eui-components-eui-fieldset.mjs.map +1 -1
  299. package/fesm2022/eui-components-eui-file-upload.mjs +2 -2
  300. package/fesm2022/eui-components-eui-growl.mjs +2 -2
  301. package/fesm2022/eui-components-eui-input-checkbox.mjs +2 -2
  302. package/fesm2022/eui-components-eui-input-checkbox.mjs.map +1 -1
  303. package/fesm2022/eui-components-eui-input-group.mjs +2 -2
  304. package/fesm2022/eui-components-eui-input-number.mjs +2 -2
  305. package/fesm2022/eui-components-eui-input-number.mjs.map +1 -1
  306. package/fesm2022/eui-components-eui-input-text.mjs +2 -2
  307. package/fesm2022/eui-components-eui-input-text.mjs.map +1 -1
  308. package/fesm2022/eui-components-eui-label.mjs +40 -40
  309. package/fesm2022/eui-components-eui-label.mjs.map +2 -2
  310. package/fesm2022/eui-components-eui-menu.mjs +4 -4
  311. package/fesm2022/eui-components-eui-menu.mjs.map +1 -1
  312. package/fesm2022/eui-components-eui-message-box.mjs +18 -2
  313. package/fesm2022/eui-components-eui-message-box.mjs.map +2 -2
  314. package/fesm2022/eui-components-eui-overlay.mjs +8 -8
  315. package/fesm2022/eui-components-eui-overlay.mjs.map +1 -1
  316. package/fesm2022/eui-components-eui-page.mjs +2 -2
  317. package/fesm2022/eui-components-eui-page.mjs.map +1 -1
  318. package/fesm2022/eui-components-eui-paginator.mjs +2 -2
  319. package/fesm2022/eui-components-eui-paginator.mjs.map +1 -1
  320. package/fesm2022/eui-components-eui-popover.mjs +2 -2
  321. package/fesm2022/eui-components-eui-progress-bar.mjs +2 -2
  322. package/fesm2022/eui-components-eui-select.mjs +2 -2
  323. package/fesm2022/eui-components-eui-select.mjs.map +1 -1
  324. package/fesm2022/eui-components-eui-table.mjs +3 -3
  325. package/fesm2022/eui-components-eui-table.mjs.map +1 -1
  326. package/fesm2022/eui-components-eui-tabs.mjs +4 -4
  327. package/fesm2022/eui-components-eui-tabs.mjs.map +1 -1
  328. package/fesm2022/eui-components-eui-textarea.mjs +2 -2
  329. package/fesm2022/eui-components-eui-textarea.mjs.map +1 -1
  330. package/fesm2022/eui-components-eui-timebar.mjs +2 -2
  331. package/fesm2022/eui-components-eui-timebar.mjs.map +1 -1
  332. package/fesm2022/eui-components-eui-timeline.mjs +4 -4
  333. package/fesm2022/eui-components-eui-timeline.mjs.map +1 -1
  334. package/fesm2022/eui-components-eui-tree-list.mjs +2 -2
  335. package/fesm2022/eui-components-eui-tree.mjs +1 -1
  336. package/fesm2022/eui-components-eui-tree.mjs.map +1 -1
  337. package/fesm2022/eui-components-eui-wizard.mjs +4 -4
  338. package/fesm2022/eui-components-externals-charts.mjs +2 -2
  339. package/fesm2022/eui-components-externals-eui-editor.mjs +2 -2
  340. package/fesm2022/eui-components-externals-eui-editor.mjs.map +1 -1
  341. package/fesm2022/eui-components-layout.mjs +13 -13
  342. package/fesm2022/eui-components-layout.mjs.map +1 -1
  343. package/package.json +3 -3
  344. package/docs/directives/EuiAlertTitleDirective.html +0 -342
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "version": 3,
3
3
  "sources": ["../../eui-dialog/services/eui-dialog.token.ts", "../../eui-dialog/models/eui-dialog.config.ts", "../../eui-dialog/container/eui-dialog-container.component.ts", "../../eui-dialog/container/eui-dialog-container.component.html", "../../eui-dialog/models/opened-dialog.model.ts", "../../eui-dialog/services/eui-dialog.service.ts", "../../eui-dialog/eui-dialog.component.ts", "../../eui-dialog/eui-dialog.component.html", "../../eui-dialog/eui-dialog.module.ts"],
4
- "sourcesContent": ["import { InjectionToken } from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const DIALOG_CONTAINER_CONFIG = new InjectionToken<any>('DIALOG_CONTAINER_CONFIG');\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const DIALOG_COMPONENT_CONFIG = new InjectionToken<any>('DIALOG_COMPONENT_CONFIG');\n", "import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport { EuiDialogVerticalPosition } from './eui-dialog-alignment';\n\nexport class EuiDialogConfig<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 width = '50%';\n height = 'auto';\n isFullScreen = false;\n hasCloseButton = true;\n hasAcceptButton = true;\n hasDismissButton = true;\n hasMobileCustomSize = false;\n hasClosedOnClickOutside = false;\n hasClosedOnEscape = true;\n isHandleCloseOnDismiss = false;\n isHandleCloseOnClose = false;\n isHandleCloseOnAccept = false;\n isHandleCloseOnClickOutside = false;\n isHandleCloseOnEscape = false;\n hasFooter = true;\n isMessageBox = false;\n\n constructor(values: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>) {\n Object.assign(this, values);\n }\n}\n\nexport interface EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> {\n dialogId?: string;\n e2eAttr?: string;\n title?: string;\n typeClass?: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent';\n acceptLabel?: string;\n dismissLabel?: string;\n width?: string;\n height?: string;\n isFullScreen?: boolean;\n headerComponent?: {\n component: ComponentType<HC>;\n config?: HCC;\n };\n bodyComponent?: {\n component: ComponentType<BC>;\n config?: BCC;\n };\n footerComponent?: {\n component: ComponentType<FC>;\n config?: FCC;\n };\n header?: TemplatePortal;\n content?: TemplatePortal | string | null;\n footer?: TemplatePortal;\n hasCloseButton?: boolean;\n hasAcceptButton?: boolean;\n hasDismissButton?: boolean;\n hasMobileCustomSize?: boolean;\n hasClosedOnClickOutside?: boolean;\n hasClosedOnEscape?: boolean;\n isHandleCloseOnDismiss?: boolean;\n isHandleCloseOnClose?: boolean;\n isHandleCloseOnAccept?: boolean;\n isHandleCloseOnClickOutside?: boolean;\n isHandleCloseOnEscape?: boolean;\n isDraggable?: boolean;\n hasNoBodyPadding?: boolean;\n hasFooter?: boolean;\n isMessageBox?: boolean;\n verticalPosition?: EuiDialogVerticalPosition;\n\n overlayRef?: OverlayRef;\n\n open?: () => void;\n init?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n clickOutside?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n escape?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n close?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n dismiss?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n accept?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n}\n\nexport class EuiDialogComponentInstances<HC, BC, FC> {\n headerComponent: HC = null;\n bodyComponent: BC = null;\n footerComponent: FC = null;\n}\n", "import {\n Component,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n OnInit,\n ComponentRef,\n Inject,\n Injector,\n StaticProvider,\n OnDestroy,\n HostBinding,\n ChangeDetectorRef,\n} from '@angular/core';\nimport { CdkPortalOutletAttachedRef, ComponentPortal, ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { DIALOG_CONTAINER_CONFIG } from '../services/eui-dialog.token';\nimport { EuiDialogInterface, EuiDialogComponentInstances } from '../models/eui-dialog.config';\nimport { DIALOG_COMPONENT_CONFIG } from '../services/eui-dialog.token';\n\n@Component({\n selector: 'eui-dialog-container',\n templateUrl: './eui-dialog-container.component.html',\n styleUrls: ['../styles/_index.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC> implements OnInit, OnDestroy {\n public isHeaderTemplatePortal = false;\n public isBodyTemplatePortal = false;\n public isFooterTemplatePortal = false;\n\n public isHeaderComponentPortal = false;\n public isBodyComponentPortal = false;\n public isFooterComponentPortal = false;\n\n public headerComponentPortal: ComponentPortal<HC>;\n public bodyComponentPortal: ComponentPortal<BC>;\n public footerComponentPortal: ComponentPortal<FC>;\n\n public componentInstances = new EuiDialogComponentInstances<HC, BC, FC>();\n public acceptButtonDisabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n public dismissButtonDisabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n\n @HostBinding('class') string = 'eui-dialog-container';\n @HostBinding('attr.aria-modal') ariaModal = true;\n\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n @Inject(DIALOG_CONTAINER_CONFIG) public dialogContainerConfig: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>,\n private injector: Injector,\n private cd: ChangeDetectorRef,\n ) {}\n\n ngOnInit(): void {\n if (this.dialogContainerConfig.header instanceof TemplatePortal) {\n this.isHeaderTemplatePortal = true;\n }\n if (this.dialogContainerConfig.content instanceof TemplatePortal) {\n this.isBodyTemplatePortal = true;\n }\n if (this.dialogContainerConfig.footer instanceof TemplatePortal) {\n this.isFooterTemplatePortal = true;\n }\n\n if (this.dialogContainerConfig.headerComponent?.component) {\n this.isHeaderComponentPortal = true;\n this.headerComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.headerComponent.component,\n this.dialogContainerConfig.headerComponent.config,\n ) as ComponentPortal<HC>;\n }\n if (this.dialogContainerConfig.bodyComponent?.component) {\n this.isBodyComponentPortal = true;\n this.bodyComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.bodyComponent.component,\n this.dialogContainerConfig.bodyComponent.config,\n ) as ComponentPortal<BC>;\n }\n if (this.dialogContainerConfig.footerComponent?.component) {\n this.isFooterComponentPortal = true;\n this.footerComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.footerComponent.component,\n this.dialogContainerConfig.footerComponent.config,\n ) as ComponentPortal<FC>;\n }\n\n this.dialogContainerConfig.open();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n get getComponentInstances(): EuiDialogComponentInstances<HC, BC, FC> {\n return this.componentInstances;\n }\n\n get getPortalOutlet(): TemplatePortal | null {\n return this.dialogContainerConfig.content as TemplatePortal;\n }\n\n get dialogContainerConfigContent(): string {\n return this.dialogContainerConfig.content as string;\n }\n\n public portalAttached(\n attachedRef: CdkPortalOutletAttachedRef,\n component: 'headerComponent' | 'bodyComponent' | 'footerComponent',\n ): void {\n const componentRef = attachedRef as ComponentRef<HC | BC | FC>;\n\n componentRef.instance['overlayRef'] = this.dialogContainerConfig.overlayRef;\n\n this.componentInstances = {\n ...this.componentInstances,\n [component]: componentRef.instance,\n };\n\n this.dialogContainerConfig.init(this.componentInstances);\n\n if (this.dialogContainerConfig[component].config) {\n Object.keys(this.dialogContainerConfig[component].config).forEach((c) => {\n if (typeof this.dialogContainerConfig[component].config[c] === 'function') {\n if (componentRef.instance[c] && typeof componentRef.instance[c] !== 'function') {\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n componentRef.instance[c].pipe(takeUntil(this.destroy$)).subscribe((args: any) => {\n this.dialogContainerConfig[component].config[c].apply(componentRef.instance[c], [args]);\n });\n }\n } else {\n componentRef.instance[c] = this.dialogContainerConfig[component].config[c];\n }\n });\n }\n }\n\n public closeDialog(): void {\n this.dialogContainerConfig.close(this.componentInstances);\n }\n\n public onDismiss(): void {\n this.dialogContainerConfig.dismiss(this.componentInstances);\n if (!this.dialogContainerConfig.isHandleCloseOnDismiss) {\n this.closeDialog();\n }\n }\n\n public onAccept(): void {\n this.dialogContainerConfig.accept(this.componentInstances);\n if (!this.dialogContainerConfig.isHandleCloseOnAccept) {\n this.closeDialog();\n }\n }\n\n /**\n * Based on certain conditions returns the id of the body content to the aria-describedby attr of the container\n */\n public getContentId(): string {\n if(!this.isBodyTemplatePortal && !this.isBodyComponentPortal) {\n return 'containerConfigId';\n } else if (this.isBodyTemplatePortal && !this.isBodyComponentPortal) {\n return 'bodyTemplatePortalId';\n } else if(this.isBodyComponentPortal) {\n return 'bodyComponentPortalId'\n }\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.acceptButtonDisabled$.next(true);\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.acceptButtonDisabled$.next(false);\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.dismissButtonDisabled$.next(true);\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.dismissButtonDisabled$.next(false);\n }\n\n public onScroll(): void {\n this.cd.detectChanges();\n }\n\n private createComponentPortal(component: ComponentType<HC | BC | FC>, config: HCC | BCC | FCC): ComponentPortal<HC | BC | FC> {\n const extendedConfig = { ...config, id: this.dialogContainerConfig.dialogId, overlayRef: this.dialogContainerConfig.overlayRef };\n return new ComponentPortal(component, null, this.createInjector(extendedConfig));\n }\n\n private createInjector(data: HCC | BCC | FCC): Injector {\n const injectorTokens: StaticProvider = [{ provide: DIALOG_COMPONENT_CONFIG, useValue: data }];\n return Injector.create({\n parent: this.injector,\n providers: injectorTokens,\n });\n }\n}\n", "<div\n class=\"eui-dialog eui-dialog--{{ dialogContainerConfig.typeClass }}\"\n [class.eui-dialog--draggable]=\"dialogContainerConfig.isDraggable\"\n [class.eui-dialog--message-box]=\"dialogContainerConfig.isMessageBox\"\n [class.eui-dialog--no-padding]=\"dialogContainerConfig.hasNoBodyPadding\"\n [class.eui-dialog--custom-size]=\"dialogContainerConfig.hasMobileCustomSize\"\n [attr.role]=\"dialogContainerConfig.isMessageBox ? 'alertdialog' : 'dialog'\"\n aria-labelledby=\"dialogContent\"\n [attr.aria-describedby]=\"getContentId()\"\n tabindex=\"-1\"\n attr.data-e2e=\"{{ dialogContainerConfig.e2eAttr }}\"\n cdkDrag\n cdkDragRootElement=\".cdk-overlay-pane\"\n [cdkDragDisabled]=\"!dialogContainerConfig.isDraggable\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture>\n <div class=\"eui-dialog__content\" role=\"document\" id=\"dialogContent\" aria-labelledby=\"headerTitle\">\n <div class=\"eui-dialog__header\" [class.eui-dialog__header--handle-disabled]=\"!dialogContainerConfig.isDraggable\" cdkDragHandle>\n <ng-container *ngIf=\"!isHeaderTemplatePortal && !isHeaderComponentPortal\">\n <h5 id=\"headerTitle\" class=\"eui-dialog__header-title\">{{ dialogContainerConfig.title | translate }}</h5>\n <button\n *ngIf=\"dialogContainerConfig.hasCloseButton\"\n class=\"dialog-close-button\"\n (click)=\"closeDialog()\"\n euiButton\n euiIconButton\n euiRounded\n euiBasicButton\n euiSizeS\n aria-label=\"Dialog close icon\">\n <eui-icon-svg icon=\"eui-close\"></eui-icon-svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"isHeaderTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.header\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"isHeaderComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"headerComponentPortal\" (attached)=\"portalAttached($event, 'headerComponent')\"></ng-template>\n </ng-container>\n </div>\n <div\n class=\"eui-dialog__body\"\n cdkScrollable\n [style.height]=\"dialogContainerConfig.height\"\n [style.max-height]=\"dialogContainerConfig.height\"\n (scroll)=\"onScroll()\"\n tabindex=\"0\">\n <span *ngIf=\"dialogContainerConfig.isMessageBox\" class=\"eui-dialog__body-content-icon-container\">\n <div class=\"eui-dialog__body-content-icon\">\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'primary'\">\n <eui-icon-svg icon=\"eui-question\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'secondary'\">\n <eui-icon-svg icon=\"eui-ecl-warning\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'info'\">\n <eui-icon-svg icon=\"eui-info\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'success'\">\n <eui-icon-svg icon=\"eui-check\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'warning'\">\n <eui-icon-svg icon=\"eui-ecl-warning\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'danger'\">\n <eui-icon-svg icon=\"eui-ecl-error\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n </div>\n </span>\n <div\n *ngIf=\"!isBodyTemplatePortal && !isBodyComponentPortal\"\n id=\"containerConfigId\"\n class=\"eui-dialog__body-content not-isBodyTemplatePortal\"\n [innerHTML]=\"dialogContainerConfig.content ? (dialogContainerConfigContent | translate) : null\"></div>\n <div *ngIf=\"isBodyTemplatePortal && !isBodyComponentPortal\" id=\"bodyTemplatePortalId\" class=\"eui-dialog__body-content isBodyTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"getPortalOutlet\"></ng-template>\n </div>\n <div *ngIf=\"isBodyComponentPortal\" id=\"bodyComponentPortalId\" class=\"eui-dialog__body-content isBodyComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"bodyComponentPortal\" (attached)=\"portalAttached($event, 'bodyComponent')\"></ng-template>\n </div>\n </div>\n <div class=\"eui-dialog__footer\" *ngIf=\"dialogContainerConfig.hasFooter\">\n <ng-container *ngIf=\"!isFooterTemplatePortal && !isFooterComponentPortal\">\n <ng-container *ngIf=\"isFooterTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.footer\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"!isFooterTemplatePortal\">\n <div class=\"eui-dialog__footer-content\">\n <button\n euiButton\n type=\"button\"\n *ngIf=\"dialogContainerConfig.hasDismissButton\"\n [euiDisabled]=\"dismissButtonDisabled$ | async\"\n class=\"eui-dialog__footer-dismiss-button\"\n [class.eui-dialog__footer-dismiss-button--with-accept-button]=\"dialogContainerConfig.hasAcceptButton\"\n (click)=\"onDismiss()\">\n {{ dialogContainerConfig.dismissLabel | translate }}\n </button>\n <button\n euiButton\n euiPrimary\n type=\"button\"\n *ngIf=\"dialogContainerConfig.hasAcceptButton\"\n [euiDisabled]=\"acceptButtonDisabled$ | async\"\n class=\"eui-dialog__footer-accept-button\"\n (click)=\"onAccept()\">\n {{ dialogContainerConfig.acceptLabel | translate }}\n </button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"isFooterTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.footer\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"isFooterComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"footerComponentPortal\" (attached)=\"portalAttached($event, 'footerComponent')\"></ng-template>\n </ng-container>\n </div>\n </div>\n</div>\n", "import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentRef } from '@angular/core';\n\nimport { EuiDialogContainerComponent } from '../container/eui-dialog-container.component';\n\nexport class OpenedDialog implements OpenedDialogInterface {\n id: string = null;\n order: number = null;\n overlayRef: OverlayRef = null;\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n containerRef: ComponentRef<EuiDialogContainerComponent<any, any, any, any, any, any>> = null;\n\n constructor(values: OpenedDialogInterface) {\n Object.assign(this, values);\n }\n}\n\nexport interface OpenedDialogInterface {\n id: string;\n order: number;\n overlayRef: OverlayRef;\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n containerRef: ComponentRef<EuiDialogContainerComponent<any, any, any, any, any, any>>;\n}\n", "import { GlobalPositionStrategy, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ComponentRef, Injectable, Injector, OnDestroy, StaticProvider } from '@angular/core';\nimport { Subject, BehaviorSubject, Observable } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { EuiDialogContainerComponent } from '../container/eui-dialog-container.component';\nimport { EuiDialogInterface, EuiDialogComponentInstances, EuiDialogConfig } from '../models/eui-dialog.config';\nimport { OpenedDialog } from '../models/opened-dialog.model';\nimport { DIALOG_CONTAINER_CONFIG } from './eui-dialog.token';\nimport { EuiDialogVerticalPosition } from '../models/eui-dialog-alignment';\n\n@Injectable()\nexport class EuiDialogService implements OnDestroy {\n private overlayRef: OverlayRef;\n private openedDialogs$: BehaviorSubject<OpenedDialog[]> = new BehaviorSubject<OpenedDialog[]>([]);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n private overlay: Overlay,\n private injector: Injector,\n ) {}\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.openedDialogs$.next(null);\n }\n\n /**\n * Open a dialog.\n *\n * @param config Configuration applied to the dialog.\n * @returns A dialog object of type `OpenedDialog`\n */\n public openDialog<HC, HCC, BC, BCC, FC, FCC>(config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {}): OpenedDialog {\n const positionStrategy = this.getPositionStrategy(config.verticalPosition);\n const scrollStrategy = this.overlay.scrollStrategies.block();\n const hasClosedOnEscape = config.hasClosedOnEscape;\n const hasCloseButton = config.hasCloseButton;\n const dialogConfig = new EuiDialogConfig({\n ...config,\n hasClosedOnEscape,\n hasCloseButton,\n width: config.isFullScreen ? '98vw' : config.width,\n height: config.isFullScreen ? '97vh' : config.height,\n });\n const dialogId = 'eui-dialog-' + Math.floor(Math.random() * 10000);\n const overlayRef = this.overlay.create({\n backdropClass: ['eui-dialog__backdrop', dialogId + '__backdrop'],\n hasBackdrop: true,\n height: dialogConfig.height,\n width: dialogConfig.width,\n positionStrategy,\n scrollStrategy,\n disposeOnNavigation: true,\n });\n\n this.overlayRef = overlayRef;\n let openedDialog = new OpenedDialog({\n id: dialogId,\n order: this.openedDialogs$.value.length + 1,\n overlayRef,\n containerRef: null,\n });\n\n const extendedConfig: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {\n ...dialogConfig,\n dialogId,\n overlayRef,\n init: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.init?.(instances);\n },\n open: () => {\n config.open?.();\n },\n clickOutside: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.clickOutside?.(instances);\n },\n escape: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.escape?.(instances);\n },\n close: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n if(!config.isHandleCloseOnClose) {\n this.closeDialog(dialogId);\n }\n config.close?.(instances);\n },\n dismiss: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.dismiss?.(instances);\n },\n accept: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.accept?.(instances);\n },\n };\n const containerPortal = new ComponentPortal<EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC>>(\n EuiDialogContainerComponent,\n null,\n this.createInjector(extendedConfig),\n );\n const containerRef: ComponentRef<EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC>> =\n openedDialog.overlayRef.attach(containerPortal);\n openedDialog = { ...openedDialog, containerRef };\n\n openedDialog.overlayRef\n .backdropClick()\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n if (extendedConfig.hasClosedOnClickOutside) {\n config.clickOutside?.(containerRef.instance.componentInstances);\n if (!config.isHandleCloseOnClickOutside) {\n containerRef.instance.closeDialog();\n }\n }\n });\n\n if (extendedConfig.hasClosedOnEscape) {\n openedDialog.overlayRef\n .keydownEvents()\n .pipe(takeUntil(this.destroy$))\n .subscribe((keyboardEvent) => {\n if (keyboardEvent.key?.toLowerCase() === 'escape') {\n config.escape?.(containerRef.instance.componentInstances);\n if (!config.isHandleCloseOnEscape) {\n containerRef.instance.closeDialog();\n }\n }\n });\n }\n\n this.openedDialogs$.next([...this.openedDialogs$.value, openedDialog]);\n\n return openedDialog;\n }\n\n /**\n * Close a dialog\n *\n * @param dialogId The id of the dialog to close. If not provided the last opened one will be closed.\n */\n public closeDialog(dialogId?: string): void {\n if (dialogId) {\n this.openedDialogs$.value.find((o) => o.id === dialogId).overlayRef.dispose();\n this.openedDialogs$.next(this.openedDialogs$.value.filter((o) => o.id !== dialogId));\n this.overlayRef =\n this.openedDialogs$.value.length > 0 ? this.openedDialogs$.value[this.openedDialogs$.value.length - 1].overlayRef : null;\n } else {\n this.overlayRef?.dispose();\n this.openedDialogs$.next(this.openedDialogs$.value.filter((o, i) => i < this.openedDialogs$.value.length - 1));\n this.overlayRef =\n this.openedDialogs$.value.length > 0 ? this.openedDialogs$.value[this.openedDialogs$.value.length - 1].overlayRef : null;\n }\n }\n\n /**\n * Close all the dialogs.\n */\n public closeAllDialogs(): void {\n this.openedDialogs$.value.forEach((dialog) => {\n dialog.containerRef.instance.dialogContainerConfig.close?.(dialog.containerRef.instance.getComponentInstances);\n });\n }\n\n /**\n * Returns an `Observable` with all opened windows.\n *\n * @returns `Observable` of `OpenedDialog[]`.\n */\n public getOpenedDialog(): Observable<OpenedDialog[]> {\n return this.openedDialogs$;\n }\n\n /**\n * Returns an `Object` with a dialog\n *\n * @param dialogId id of the dialog to be returned\n * @returns `OpenedDialog`\n */\n public getDialog(dialogId: string): OpenedDialog {\n return this.openedDialogs$.value.find((o) => o.id === dialogId);\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.disableAcceptButton();\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.enableAcceptButton();\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.disableDismissButton();\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.enableDismissButton();\n }\n\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private createInjector(data: any): Injector {\n const injectorTokens: StaticProvider = [{ provide: DIALOG_CONTAINER_CONFIG, useValue: data }];\n return Injector.create({\n parent: this.injector,\n providers: injectorTokens,\n });\n }\n\n private getPositionStrategy(verticalPosition: EuiDialogVerticalPosition): GlobalPositionStrategy {\n const positionStrategy = this.overlay.position().global().centerHorizontally().centerVertically();\n if (verticalPosition === 'top') {\n positionStrategy.top();\n }\n return positionStrategy;\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 OnInit,\n} from '@angular/core';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { coerceBooleanProperty, BooleanInput } from '@angular/cdk/coercion';\nimport { BaseDirective } from '@eui/components/shared';\n\nimport { EuiDialogService } from './services/eui-dialog.service';\nimport { EuiDialogInterface } from './models/eui-dialog.config';\nimport { DIALOG_COMPONENT_CONFIG } from './services/eui-dialog.token';\nimport { OpenedDialog } from './models/opened-dialog.model';\nimport { EuiDialogVerticalPosition } from './models/eui-dialog-alignment';\n\n@Component({\n selector: 'eui-dialog',\n templateUrl: './eui-dialog.component.html',\n styleUrls: ['./styles/_index.scss'],\n providers: [{ provide: DIALOG_COMPONENT_CONFIG, useValue: null }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDialogComponent extends BaseDirective implements AfterViewInit, OnDestroy, OnInit {\n @Input() e2eAttr = 'eui-dialog';\n @Input() title: string;\n @Input() acceptLabel = 'eui.OK';\n @Input() dismissLabel = 'eui.CANCEL';\n @Input() typeClass: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent';\n @Input() verticalPosition: EuiDialogVerticalPosition;\n\n @Output() clickOutside = new EventEmitter();\n @Output() escape = new EventEmitter();\n @Output() dialogOpen = new EventEmitter();\n @Output() dialogClose = new EventEmitter();\n @Output() dismiss = new EventEmitter();\n @Output() accept = new EventEmitter();\n\n public content: string | TemplatePortal;\n public isOpen$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n\n @ViewChild('templateRefHeader') templateRefHeader: TemplateRef<EuiDialogHeaderDirective>;\n @ViewChild('templateRefContent') templateRefContent: TemplateRef<ElementRef>;\n @ViewChild('templateRefFooter') templateRefFooter: TemplateRef<EuiDialogFooterDirective>;\n\n @ContentChild(forwardRef(() => EuiDialogHeaderDirective)) euiDialogHeaderDirective: QueryList<EuiDialogHeaderDirective>;\n @ContentChild(forwardRef(() => EuiDialogFooterDirective)) euiDialogFooterDirective: QueryList<EuiDialogFooterDirective>;\n\n @Input() width = '50%';\n @Input() height = 'auto';\n\n @Input()\n get isFullScreen(): boolean {\n return this._isFullScreen;\n }\n set isFullScreen(value: BooleanInput) {\n this._isFullScreen = coerceBooleanProperty(value);\n if (this._isFullScreen) {\n this.width = '98vw';\n this.height = '97vh';\n }\n }\n private _isFullScreen = false;\n\n @Input()\n get hasCloseButton(): boolean {\n return this._hasCloseButton;\n }\n set hasCloseButton(value: BooleanInput) {\n this._hasCloseButton = coerceBooleanProperty(value);\n }\n private _hasCloseButton = true;\n @Input()\n get hasAcceptButton(): boolean {\n return this._hasAcceptButton;\n }\n set hasAcceptButton(value: BooleanInput) {\n this._hasAcceptButton = coerceBooleanProperty(value);\n }\n private _hasAcceptButton = true;\n @Input()\n get hasDismissButton(): boolean {\n return this._hasDismissButton;\n }\n set hasDismissButton(value: BooleanInput) {\n this._hasDismissButton = coerceBooleanProperty(value);\n }\n private _hasDismissButton = true;\n @Input()\n get hasMobileCustomSize(): boolean {\n return this._hasMobileCustomSize;\n }\n set hasMobileCustomSize(value: BooleanInput) {\n this._hasMobileCustomSize = coerceBooleanProperty(value);\n }\n private _hasMobileCustomSize = false;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnClickOutside */\n @Input()\n get hasClosedOnClickOutside(): boolean {\n return this._hasClosedOnClickOutside;\n }\n set hasClosedOnClickOutside(value: BooleanInput) {\n this._hasClosedOnClickOutside = coerceBooleanProperty(value);\n }\n private _hasClosedOnClickOutside = false;\n @Input()\n get hasClosedOnEscape(): boolean {\n return this._hasClosedOnEscape;\n }\n set hasClosedOnEscape(value: BooleanInput) {\n this._hasClosedOnEscape = coerceBooleanProperty(value);\n }\n private _hasClosedOnEscape = true;\n @Input()\n get isHandleCloseOnDismiss(): boolean {\n return this._isHandleCloseOnDismiss;\n }\n set isHandleCloseOnDismiss(value: BooleanInput) {\n this._isHandleCloseOnDismiss = coerceBooleanProperty(value);\n }\n private _isHandleCloseOnDismiss = false;\n @Input()\n get isHandleCloseOnClose(): boolean {\n return this._isHandleCloseOnClose;\n }\n set isHandleCloseOnClose(value: BooleanInput) {\n this._isHandleCloseOnClose = coerceBooleanProperty(value);\n }\n private _isHandleCloseOnClose = false;\n @Input()\n get isHandleCloseOnAccept(): boolean {\n return this._isHandleCloseOnAccept;\n }\n set isHandleCloseOnAccept(value: BooleanInput) {\n this._isHandleCloseOnAccept = coerceBooleanProperty(value);\n }\n private _isHandleCloseOnAccept = false;\n @Input()\n get isHandleCloseOnClickOutside(): boolean {\n return this._isHandleCloseOnClickOutside;\n }\n set isHandleCloseOnClickOutside(value: BooleanInput) {\n this._isHandleCloseOnClickOutside = coerceBooleanProperty(value);\n }\n private _isHandleCloseOnClickOutside = false;\n @Input()\n get isHandleCloseOnEscape(): boolean {\n return this._isHandleCloseOnEscape;\n }\n set isHandleCloseOnEscape(value: BooleanInput) {\n this._isHandleCloseOnEscape = coerceBooleanProperty(value);\n }\n private _isHandleCloseOnEscape = false;\n @Input()\n get isMessageBox(): boolean {\n return this._isMessageBox;\n }\n set isMessageBox(value: BooleanInput) {\n this._isMessageBox = coerceBooleanProperty(value);\n }\n private _isMessageBox = false;\n @Input()\n get isDraggable(): boolean {\n return this._isDraggable;\n }\n set isDraggable(value: BooleanInput) {\n this._isDraggable = coerceBooleanProperty(value);\n }\n private _isDraggable = false;\n @Input()\n get hasNoBodyPadding(): boolean {\n return this._hasNoBodyPadding;\n }\n set hasNoBodyPadding(value: BooleanInput) {\n this._hasNoBodyPadding = coerceBooleanProperty(value);\n }\n private _hasNoBodyPadding = false;\n @Input()\n get hasFooter(): boolean {\n return this._hasFooter;\n }\n set hasFooter(value: BooleanInput) {\n this._hasFooter = coerceBooleanProperty(value);\n }\n private _hasFooter = true;\n\n private dialog: OpenedDialog;\n private templatePortalHeader: TemplatePortal<EuiDialogHeaderDirective>;\n private templatePortalContent: TemplatePortal<ElementRef>;\n private templatePortalFooter: TemplatePortal<EuiDialogFooterDirective>;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private euiDialogService: EuiDialogService,\n ) {\n super();\n }\n\n ngOnInit(): void {\n if (this.isMessageBox) {\n this.hasClosedOnEscape = false;\n this.hasCloseButton = false;\n }\n\n if (this.euiPrimary) {\n this.typeClass = 'primary';\n }\n if (this.euiSecondary) {\n this.typeClass = 'secondary';\n }\n if (this.euiInfo) {\n this.typeClass = 'info';\n }\n if (this.euiSuccess) {\n this.typeClass = 'success';\n }\n if (this.euiWarning) {\n this.typeClass = 'warning';\n }\n if (this.euiDanger) {\n this.typeClass = 'danger';\n }\n if (this.euiAccent) {\n this.typeClass = 'accent';\n }\n }\n\n ngAfterViewInit(): void {\n if (this.euiDialogHeaderDirective) {\n this.templatePortalHeader = new TemplatePortal(this.templateRefHeader, this.viewContainerRef);\n }\n\n this.templatePortalContent = new TemplatePortal(this.templateRefContent, this.viewContainerRef);\n\n if (this.euiDialogFooterDirective) {\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 * Whether the eui-dialog is open.\n *\n * @usageNotes\n * ```html\n * <eui-dialog #dialog>\n * <my-component *ngIf=\"dialog.isOpen\"></my-component>\n * </eui-dialog>\n * ```\n * @returns A boolean with value `true` when open, otherwise `false`.\n */\n get isOpen(): boolean {\n return this.isOpen$.value;\n }\n\n /**\n * Open a dialog.\n *\n * @returns A dialog object of type `OpenedDialog`\n */\n public openDialog<HC, HCC, BC, BCC, FC, FCC>(): OpenedDialog {\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 isFullScreen: this.isFullScreen,\n typeClass: this.typeClass,\n acceptLabel: this.acceptLabel,\n dismissLabel: this.dismissLabel,\n hasCloseButton: this.hasCloseButton,\n hasAcceptButton: this.hasAcceptButton,\n hasDismissButton: this.hasDismissButton,\n hasMobileCustomSize: this.hasMobileCustomSize,\n hasClosedOnClickOutside: this.hasClosedOnClickOutside,\n hasClosedOnEscape: this.hasClosedOnEscape,\n isHandleCloseOnDismiss: this.isHandleCloseOnDismiss,\n isHandleCloseOnClose: this.isHandleCloseOnClose,\n isHandleCloseOnAccept: this.isHandleCloseOnAccept,\n isHandleCloseOnClickOutside: this.isHandleCloseOnClickOutside,\n isHandleCloseOnEscape: this.isHandleCloseOnEscape,\n isDraggable: this.isDraggable,\n hasNoBodyPadding: this.hasNoBodyPadding,\n hasFooter: this.hasFooter,\n verticalPosition: this.verticalPosition,\n header: this.templatePortalHeader,\n content: this.templatePortalContent,\n footer: this.templatePortalFooter,\n clickOutside: () => {\n if (this.hasClosedOnClickOutside) {\n this.isOpen$.next(false);\n }\n this.clickOutside.emit();\n },\n escape: () => {\n if (this.hasClosedOnEscape) {\n this.isOpen$.next(false);\n }\n this.escape.emit();\n },\n open: () => {\n this.dialogOpen.emit();\n },\n close: () => {\n if (!this.isHandleCloseOnClose) {\n this.isOpen$.next(false);\n }\n this.dialogClose.emit();\n },\n dismiss: () => {\n if (!this.isHandleCloseOnDismiss) {\n this.isOpen$.next(false);\n }\n this.dismiss.emit();\n },\n accept: () => {\n if (!this.isHandleCloseOnAccept) {\n this.isOpen$.next(false);\n }\n this.accept.emit();\n },\n };\n\n this.isOpen$.next(true);\n this.dialog = this.euiDialogService.openDialog(config);\n\n return this.dialog;\n }\n\n /**\n * Close a Dialog\n */\n public closeDialog(): void {\n this.isOpen$.next(false);\n this.euiDialogService.closeDialog();\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.disableAcceptButton();\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.enableAcceptButton();\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.disableDismissButton();\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.enableDismissButton();\n }\n}\n\n/* eslint-disable */\n@Directive({ selector: 'eui-dialog-header' })\nexport class EuiDialogHeaderDirective {}\n\n@Directive({ selector: 'eui-dialog-footer' })\nexport class EuiDialogFooterDirective {}\n/* eslint-enable */\n", "<ng-template #templateRefHeader>\n <ng-content select=\"eui-dialog-header\"></ng-content>\n</ng-template>\n<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-dialog-footer\"></ng-content>\n</ng-template>\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 { CdkScrollableModule } from '@angular/cdk/scrolling';\n\nimport { EuiDialogComponent, EuiDialogFooterDirective, EuiDialogHeaderDirective } from './eui-dialog.component';\nimport { EuiDialogService } from './services/eui-dialog.service';\nimport { EuiDialogContainerComponent } from './container/eui-dialog-container.component';\n\n@NgModule({\n imports: [\n CommonModule,\n EuiButtonModule,\n EuiIconModule,\n TranslateModule,\n PortalModule,\n OverlayModule,\n A11yModule,\n DragDropModule,\n CdkScrollableModule,\n ],\n exports: [EuiDialogComponent, EuiDialogHeaderDirective, EuiDialogFooterDirective],\n declarations: [EuiDialogComponent, EuiDialogHeaderDirective, EuiDialogFooterDirective, EuiDialogContainerComponent],\n providers: [EuiDialogService],\n})\nexport class EuiDialogModule {}\n"],
5
- "mappings": ";AAAA,SAAS,sBAAsB;AAGxB,IAAM,0BAA0B,IAAI,eAAoB,yBAAyB;AAEjF,IAAM,0BAA0B,IAA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AAA;QADpC;SAAU,EAAE,UAAU,oBAAmB,CAAE;;;;AEtY5C,SAAS,gBAAgB;AACzB,SAAS,oBAAoB;AAC7B,SAAS,uBAAuB;AAChC,SAAS,oBAAoB;AAC7B,SAAS,qBAAqB;AAC9B,SAAS,kBAAkB;AAC3B,SAAS,sBAAsB;AAC/B,SAAS,uBAAuB;AAChC,SAAS,qBAAqB;AAC9B,SAAS,2BAA2B;;AAsB9B,IAAO,kBAAP,MAAO,iBAAe;;8GAAf,kBAAe,MAAA,CAAA,GAAA,QAAA,oBAAA,SAAA,CAAA;EAAA;;+GAAf,kBAAe,cAAA,CAHT,oBAAoB,0BAA0B,0BAA0B,2BAA2B,GAAA,SAAA;MAX9G;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IAAmB,GAAA,SAAA,CAEb,oBAAoB,0BAA0B,wBAAwB,EAAA,CAAA;EAAA;;+GAIvE,kBAAe,WAFb,CAAC,gBAAgB,GAAC,SAAA;MAZzB;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IAAmB,EAAA,CAAA;EAAA;;oGAMd,iBAAe,YAAA,CAAA;QAhB3B;SAAS;IACN,SAAS;MACL;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;IAEJ,SAAS,CAAC,oBAAoB,0BAA0B,wBAAwB;IAChF,cAAc,CAAC,oBAAoB,0BAA0B,0BAA0B,2BAA2B;IAClH,WAAW,CAAC,gBAAgB;GAC/B;;",
4
+ "sourcesContent": ["import { InjectionToken } from '@angular/core';\n\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const DIALOG_CONTAINER_CONFIG = new InjectionToken<any>('DIALOG_CONTAINER_CONFIG');\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport const DIALOG_COMPONENT_CONFIG = new InjectionToken<any>('DIALOG_COMPONENT_CONFIG');\n", "import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport { EuiDialogVerticalPosition } from './eui-dialog-alignment';\n\nexport class EuiDialogConfig<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 width = '50%';\n height = 'auto';\n isFullScreen = false;\n hasCloseButton = true;\n hasAcceptButton = true;\n hasDismissButton = true;\n hasMobileCustomSize = false;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnClickOutside */\n isClosedOnClickOutside = false;\n hasClosedOnClickOutside = false;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnEscape */\n isClosedOnEscape = true;\n hasClosedOnEscape = true;\n isHandleCloseOnDismiss = false;\n isHandleCloseOnClose = false;\n isHandleCloseOnAccept = false;\n isHandleCloseOnClickOutside = false;\n isHandleCloseOnEscape = false;\n hasFooter = true;\n isMessageBox = false;\n\n constructor(values: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>) {\n Object.assign(this, values);\n }\n}\n\nexport interface EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> {\n dialogId?: string;\n e2eAttr?: string;\n title?: string;\n typeClass?: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent';\n acceptLabel?: string;\n dismissLabel?: string;\n width?: string;\n height?: string;\n isFullScreen?: boolean;\n headerComponent?: {\n component: ComponentType<HC>;\n config?: HCC;\n };\n bodyComponent?: {\n component: ComponentType<BC>;\n config?: BCC;\n };\n footerComponent?: {\n component: ComponentType<FC>;\n config?: FCC;\n };\n header?: TemplatePortal;\n content?: TemplatePortal | string | null;\n footer?: TemplatePortal;\n hasCloseButton?: boolean;\n hasAcceptButton?: boolean;\n hasDismissButton?: boolean;\n hasMobileCustomSize?: boolean;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnClickOutside */\n isClosedOnClickOutside?: boolean;\n hasClosedOnClickOutside?: boolean;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnEscape */\n isClosedOnEscape?: boolean;\n hasClosedOnEscape?: boolean;\n isHandleCloseOnDismiss?: boolean;\n isHandleCloseOnClose?: boolean;\n isHandleCloseOnAccept?: boolean;\n isHandleCloseOnClickOutside?: boolean;\n isHandleCloseOnEscape?: boolean;\n isDraggable?: boolean;\n hasNoBodyPadding?: boolean;\n hasFooter?: boolean;\n isMessageBox?: boolean;\n verticalPosition?: EuiDialogVerticalPosition;\n\n overlayRef?: OverlayRef;\n\n open?: () => void;\n init?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n clickOutside?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n escape?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n close?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n dismiss?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n accept?: (instances: EuiDialogComponentInstances<HC, BC, FC>) => void;\n}\n\nexport class EuiDialogComponentInstances<HC, BC, FC> {\n headerComponent: HC = null;\n bodyComponent: BC = null;\n footerComponent: FC = null;\n}\n", "import {\n Component,\n ChangeDetectionStrategy,\n ViewEncapsulation,\n OnInit,\n ComponentRef,\n Inject,\n Injector,\n StaticProvider,\n OnDestroy,\n HostBinding,\n ChangeDetectorRef,\n} from '@angular/core';\nimport { CdkPortalOutletAttachedRef, ComponentPortal, ComponentType, TemplatePortal } from '@angular/cdk/portal';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { DIALOG_CONTAINER_CONFIG } from '../services/eui-dialog.token';\nimport { EuiDialogInterface, EuiDialogComponentInstances } from '../models/eui-dialog.config';\nimport { DIALOG_COMPONENT_CONFIG } from '../services/eui-dialog.token';\n\n@Component({\n selector: 'eui-dialog-container',\n templateUrl: './eui-dialog-container.component.html',\n styleUrls: ['../styles/_index.scss'],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC> implements OnInit, OnDestroy {\n public isHeaderTemplatePortal = false;\n public isBodyTemplatePortal = false;\n public isFooterTemplatePortal = false;\n\n public isHeaderComponentPortal = false;\n public isBodyComponentPortal = false;\n public isFooterComponentPortal = false;\n\n public headerComponentPortal: ComponentPortal<HC>;\n public bodyComponentPortal: ComponentPortal<BC>;\n public footerComponentPortal: ComponentPortal<FC>;\n\n public componentInstances = new EuiDialogComponentInstances<HC, BC, FC>();\n public acceptButtonDisabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n public dismissButtonDisabled$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n\n @HostBinding('class') string = 'eui-dialog-container';\n @HostBinding('attr.aria-modal') ariaModal = true;\n\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n @Inject(DIALOG_CONTAINER_CONFIG) public dialogContainerConfig: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC>,\n private injector: Injector,\n private cd: ChangeDetectorRef,\n ) {}\n\n ngOnInit(): void {\n if (this.dialogContainerConfig.header instanceof TemplatePortal) {\n this.isHeaderTemplatePortal = true;\n }\n if (this.dialogContainerConfig.content instanceof TemplatePortal) {\n this.isBodyTemplatePortal = true;\n }\n if (this.dialogContainerConfig.footer instanceof TemplatePortal) {\n this.isFooterTemplatePortal = true;\n }\n\n if (this.dialogContainerConfig.headerComponent?.component) {\n this.isHeaderComponentPortal = true;\n this.headerComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.headerComponent.component,\n this.dialogContainerConfig.headerComponent.config,\n ) as ComponentPortal<HC>;\n }\n if (this.dialogContainerConfig.bodyComponent?.component) {\n this.isBodyComponentPortal = true;\n this.bodyComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.bodyComponent.component,\n this.dialogContainerConfig.bodyComponent.config,\n ) as ComponentPortal<BC>;\n }\n if (this.dialogContainerConfig.footerComponent?.component) {\n this.isFooterComponentPortal = true;\n this.footerComponentPortal = this.createComponentPortal(\n this.dialogContainerConfig.footerComponent.component,\n this.dialogContainerConfig.footerComponent.config,\n ) as ComponentPortal<FC>;\n }\n\n this.dialogContainerConfig.open();\n }\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n }\n\n get getComponentInstances(): EuiDialogComponentInstances<HC, BC, FC> {\n return this.componentInstances;\n }\n\n get getPortalOutlet(): TemplatePortal | null {\n return this.dialogContainerConfig.content as TemplatePortal;\n }\n\n get dialogContainerConfigContent(): string {\n return this.dialogContainerConfig.content as string;\n }\n\n public portalAttached(\n attachedRef: CdkPortalOutletAttachedRef,\n component: 'headerComponent' | 'bodyComponent' | 'footerComponent',\n ): void {\n const componentRef = attachedRef as ComponentRef<HC | BC | FC>;\n\n componentRef.instance['overlayRef'] = this.dialogContainerConfig.overlayRef;\n\n this.componentInstances = {\n ...this.componentInstances,\n [component]: componentRef.instance,\n };\n\n this.dialogContainerConfig.init(this.componentInstances);\n\n if (this.dialogContainerConfig[component].config) {\n Object.keys(this.dialogContainerConfig[component].config).forEach((c) => {\n if (typeof this.dialogContainerConfig[component].config[c] === 'function') {\n if (componentRef.instance[c] && typeof componentRef.instance[c] !== 'function') {\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n componentRef.instance[c].pipe(takeUntil(this.destroy$)).subscribe((args: any) => {\n this.dialogContainerConfig[component].config[c].apply(componentRef.instance[c], [args]);\n });\n }\n } else {\n componentRef.instance[c] = this.dialogContainerConfig[component].config[c];\n }\n });\n }\n }\n\n public closeDialog(): void {\n this.dialogContainerConfig.close(this.componentInstances);\n }\n\n public onDismiss(): void {\n this.dialogContainerConfig.dismiss(this.componentInstances);\n if (!this.dialogContainerConfig.isHandleCloseOnDismiss) {\n this.closeDialog();\n }\n }\n\n public onAccept(): void {\n this.dialogContainerConfig.accept(this.componentInstances);\n if (!this.dialogContainerConfig.isHandleCloseOnAccept) {\n this.closeDialog();\n }\n }\n\n /**\n * Based on certain conditions returns the id of the body content to the aria-describedby attr of the container\n */\n public getContentId(): string {\n if(!this.isBodyTemplatePortal && !this.isBodyComponentPortal) {\n return 'containerConfigId';\n } else if (this.isBodyTemplatePortal && !this.isBodyComponentPortal) {\n return 'bodyTemplatePortalId';\n } else if(this.isBodyComponentPortal) {\n return 'bodyComponentPortalId'\n }\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.acceptButtonDisabled$.next(true);\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.acceptButtonDisabled$.next(false);\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.dismissButtonDisabled$.next(true);\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.dismissButtonDisabled$.next(false);\n }\n\n public onScroll(): void {\n this.cd.detectChanges();\n }\n\n private createComponentPortal(component: ComponentType<HC | BC | FC>, config: HCC | BCC | FCC): ComponentPortal<HC | BC | FC> {\n const extendedConfig = { ...config, id: this.dialogContainerConfig.dialogId, overlayRef: this.dialogContainerConfig.overlayRef };\n return new ComponentPortal(component, null, this.createInjector(extendedConfig));\n }\n\n private createInjector(data: HCC | BCC | FCC): Injector {\n const injectorTokens: StaticProvider = [{ provide: DIALOG_COMPONENT_CONFIG, useValue: data }];\n return Injector.create({\n parent: this.injector,\n providers: injectorTokens,\n });\n }\n}\n", "<div\n class=\"eui-dialog eui-dialog--{{ dialogContainerConfig.typeClass }}\"\n [class.eui-dialog--draggable]=\"dialogContainerConfig.isDraggable\"\n [class.eui-dialog--message-box]=\"dialogContainerConfig.isMessageBox\"\n [class.eui-dialog--no-padding]=\"dialogContainerConfig.hasNoBodyPadding\"\n [class.eui-dialog--custom-size]=\"dialogContainerConfig.hasMobileCustomSize\"\n [attr.role]=\"dialogContainerConfig.isMessageBox ? 'alertdialog' : 'dialog'\"\n aria-labelledby=\"dialogContent\"\n [attr.aria-describedby]=\"getContentId()\"\n tabindex=\"-1\"\n attr.data-e2e=\"{{ dialogContainerConfig.e2eAttr }}\"\n cdkDrag\n cdkDragRootElement=\".cdk-overlay-pane\"\n [cdkDragDisabled]=\"!dialogContainerConfig.isDraggable\"\n cdkTrapFocus\n cdkTrapFocusAutoCapture>\n <div class=\"eui-dialog__content\" role=\"document\" id=\"dialogContent\" aria-labelledby=\"headerTitle\">\n <div class=\"eui-dialog__header\" [class.eui-dialog__header--handle-disabled]=\"!dialogContainerConfig.isDraggable\" cdkDragHandle>\n <ng-container *ngIf=\"!isHeaderTemplatePortal && !isHeaderComponentPortal\">\n <h5 id=\"headerTitle\" class=\"eui-dialog__header-title\">{{ dialogContainerConfig.title | translate }}</h5>\n <button\n *ngIf=\"dialogContainerConfig.hasCloseButton\"\n class=\"dialog-close-button\"\n (click)=\"closeDialog()\"\n euiButton\n euiIconButton\n euiRounded\n euiBasicButton\n euiSizeS\n aria-label=\"Dialog close icon\">\n <eui-icon-svg icon=\"eui-close\"></eui-icon-svg>\n </button>\n </ng-container>\n <ng-container *ngIf=\"isHeaderTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.header\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"isHeaderComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"headerComponentPortal\" (attached)=\"portalAttached($event, 'headerComponent')\"></ng-template>\n </ng-container>\n </div>\n <div\n class=\"eui-dialog__body\"\n cdkScrollable\n [style.height]=\"dialogContainerConfig.height\"\n [style.max-height]=\"dialogContainerConfig.height\"\n (scroll)=\"onScroll()\"\n tabindex=\"0\">\n <span *ngIf=\"dialogContainerConfig.isMessageBox\" class=\"eui-dialog__body-content-icon-container\">\n <div class=\"eui-dialog__body-content-icon\">\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'primary'\">\n <eui-icon-svg icon=\"eui-question\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'secondary'\">\n <eui-icon-svg icon=\"eui-ecl-warning\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'info'\">\n <eui-icon-svg icon=\"eui-info\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'success'\">\n <eui-icon-svg icon=\"eui-check\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'warning'\">\n <eui-icon-svg icon=\"eui-ecl-warning\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n <ng-container *ngIf=\"dialogContainerConfig.typeClass === 'danger'\">\n <eui-icon-svg icon=\"eui-ecl-error\" fillColor=\"{{ dialogContainerConfig.typeClass }}\"></eui-icon-svg>\n </ng-container>\n </div>\n </span>\n <div\n *ngIf=\"!isBodyTemplatePortal && !isBodyComponentPortal\"\n id=\"containerConfigId\"\n class=\"eui-dialog__body-content not-isBodyTemplatePortal\"\n [innerHTML]=\"dialogContainerConfig.content ? (dialogContainerConfigContent | translate) : null\"></div>\n <div *ngIf=\"isBodyTemplatePortal && !isBodyComponentPortal\" id=\"bodyTemplatePortalId\" class=\"eui-dialog__body-content isBodyTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"getPortalOutlet\"></ng-template>\n </div>\n <div *ngIf=\"isBodyComponentPortal\" id=\"bodyComponentPortalId\" class=\"eui-dialog__body-content isBodyComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"bodyComponentPortal\" (attached)=\"portalAttached($event, 'bodyComponent')\"></ng-template>\n </div>\n </div>\n <div class=\"eui-dialog__footer\" *ngIf=\"dialogContainerConfig.hasFooter\">\n <ng-container *ngIf=\"!isFooterTemplatePortal && !isFooterComponentPortal\">\n <ng-container *ngIf=\"isFooterTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.footer\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"!isFooterTemplatePortal\">\n <div class=\"eui-dialog__footer-content\">\n <button\n euiButton\n type=\"button\"\n *ngIf=\"dialogContainerConfig.hasDismissButton\"\n [euiDisabled]=\"dismissButtonDisabled$ | async\"\n class=\"eui-dialog__footer-dismiss-button\"\n [class.eui-dialog__footer-dismiss-button--with-accept-button]=\"dialogContainerConfig.hasAcceptButton\"\n (click)=\"onDismiss()\">\n {{ dialogContainerConfig.dismissLabel | translate }}\n </button>\n <button\n euiButton\n euiPrimary\n type=\"button\"\n *ngIf=\"dialogContainerConfig.hasAcceptButton\"\n [euiDisabled]=\"acceptButtonDisabled$ | async\"\n class=\"eui-dialog__footer-accept-button\"\n (click)=\"onAccept()\">\n {{ dialogContainerConfig.acceptLabel | translate }}\n </button>\n </div>\n </ng-container>\n </ng-container>\n\n <ng-container *ngIf=\"isFooterTemplatePortal\">\n <ng-template [cdkPortalOutlet]=\"dialogContainerConfig.footer\"></ng-template>\n </ng-container>\n <ng-container *ngIf=\"isFooterComponentPortal\">\n <ng-template [cdkPortalOutlet]=\"footerComponentPortal\" (attached)=\"portalAttached($event, 'footerComponent')\"></ng-template>\n </ng-container>\n </div>\n </div>\n</div>\n", "import { OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentRef } from '@angular/core';\n\nimport { EuiDialogContainerComponent } from '../container/eui-dialog-container.component';\n\nexport class OpenedDialog implements OpenedDialogInterface {\n id: string = null;\n order: number = null;\n overlayRef: OverlayRef = null;\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n containerRef: ComponentRef<EuiDialogContainerComponent<any, any, any, any, any, any>> = null;\n\n constructor(values: OpenedDialogInterface) {\n Object.assign(this, values);\n }\n}\n\nexport interface OpenedDialogInterface {\n id: string;\n order: number;\n overlayRef: OverlayRef;\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n containerRef: ComponentRef<EuiDialogContainerComponent<any, any, any, any, any, any>>;\n}\n", "import { GlobalPositionStrategy, Overlay, OverlayRef } from '@angular/cdk/overlay';\nimport { ComponentPortal } from '@angular/cdk/portal';\nimport { ComponentRef, Injectable, Injector, OnDestroy, StaticProvider } from '@angular/core';\nimport { Subject, BehaviorSubject, Observable } from 'rxjs';\nimport { takeUntil } from 'rxjs/operators';\n\nimport { EuiDialogContainerComponent } from '../container/eui-dialog-container.component';\nimport { EuiDialogInterface, EuiDialogComponentInstances, EuiDialogConfig } from '../models/eui-dialog.config';\nimport { OpenedDialog } from '../models/opened-dialog.model';\nimport { DIALOG_CONTAINER_CONFIG } from './eui-dialog.token';\nimport { EuiDialogVerticalPosition } from '../models/eui-dialog-alignment';\n\n@Injectable()\nexport class EuiDialogService implements OnDestroy {\n private overlayRef: OverlayRef;\n private openedDialogs$: BehaviorSubject<OpenedDialog[]> = new BehaviorSubject<OpenedDialog[]>([]);\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n private overlay: Overlay,\n private injector: Injector,\n ) {}\n\n ngOnDestroy(): void {\n this.destroy$.next(true);\n this.destroy$.unsubscribe();\n this.overlayRef?.dispose();\n this.overlayRef = null;\n this.openedDialogs$.next(null);\n }\n\n /**\n * Open a dialog.\n *\n * @param config Configuration applied to the dialog.\n * @returns A dialog object of type `OpenedDialog`\n */\n public openDialog<HC, HCC, BC, BCC, FC, FCC>(config: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {}): OpenedDialog {\n const positionStrategy = this.getPositionStrategy(config.verticalPosition);\n const scrollStrategy = this.overlay.scrollStrategies.block();\n const isClosedOnEscape = config.isClosedOnEscape;\n const hasClosedOnEscape = config.hasClosedOnEscape;\n const hasCloseButton = config.hasCloseButton;\n const dialogConfig = new EuiDialogConfig({\n ...config,\n isClosedOnEscape,\n hasClosedOnEscape,\n hasCloseButton,\n width: config.isFullScreen ? '98vw' : config.width,\n height: config.isFullScreen ? '97vh' : config.height,\n });\n const dialogId = 'eui-dialog-' + Math.floor(Math.random() * 10000);\n const overlayRef = this.overlay.create({\n backdropClass: ['eui-dialog__backdrop', dialogId + '__backdrop'],\n hasBackdrop: true,\n height: dialogConfig.height,\n width: dialogConfig.width,\n positionStrategy,\n scrollStrategy,\n disposeOnNavigation: true,\n });\n\n this.overlayRef = overlayRef;\n let openedDialog = new OpenedDialog({\n id: dialogId,\n order: this.openedDialogs$.value.length + 1,\n overlayRef,\n containerRef: null,\n });\n\n const extendedConfig: EuiDialogInterface<HC, HCC, BC, BCC, FC, FCC> = {\n ...dialogConfig,\n dialogId,\n overlayRef,\n init: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.init?.(instances);\n },\n open: () => {\n config.open?.();\n },\n clickOutside: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.clickOutside?.(instances);\n },\n escape: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.escape?.(instances);\n },\n close: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n if(!config.isHandleCloseOnClose) {\n this.closeDialog(dialogId);\n }\n config.close?.(instances);\n },\n dismiss: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.dismiss?.(instances);\n },\n accept: (instances: EuiDialogComponentInstances<HC, BC, FC>) => {\n config.accept?.(instances);\n },\n };\n const containerPortal = new ComponentPortal<EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC>>(\n EuiDialogContainerComponent,\n null,\n this.createInjector(extendedConfig),\n );\n const containerRef: ComponentRef<EuiDialogContainerComponent<HC, HCC, BC, BCC, FC, FCC>> =\n openedDialog.overlayRef.attach(containerPortal);\n openedDialog = { ...openedDialog, containerRef };\n\n openedDialog.overlayRef\n .backdropClick()\n .pipe(takeUntil(this.destroy$))\n .subscribe(() => {\n if (extendedConfig.hasClosedOnClickOutside || extendedConfig.isClosedOnClickOutside) {\n config.clickOutside?.(containerRef.instance.componentInstances);\n if (!config.isHandleCloseOnClickOutside) {\n containerRef.instance.closeDialog();\n }\n }\n });\n\n if (extendedConfig.isClosedOnEscape && extendedConfig.hasClosedOnEscape) {\n openedDialog.overlayRef\n .keydownEvents()\n .pipe(takeUntil(this.destroy$))\n .subscribe((keyboardEvent) => {\n if (keyboardEvent.key?.toLowerCase() === 'escape') {\n config.escape?.(containerRef.instance.componentInstances);\n if (!config.isHandleCloseOnEscape) {\n containerRef.instance.closeDialog();\n }\n }\n });\n }\n\n this.openedDialogs$.next([...this.openedDialogs$.value, openedDialog]);\n\n return openedDialog;\n }\n\n /**\n * Close a dialog\n *\n * @param dialogId The id of the dialog to close. If not provided the last opened one will be closed.\n */\n public closeDialog(dialogId?: string): void {\n if (dialogId) {\n this.openedDialogs$.value.find((o) => o.id === dialogId).overlayRef.dispose();\n this.openedDialogs$.next(this.openedDialogs$.value.filter((o) => o.id !== dialogId));\n this.overlayRef =\n this.openedDialogs$.value.length > 0 ? this.openedDialogs$.value[this.openedDialogs$.value.length - 1].overlayRef : null;\n } else {\n this.overlayRef?.dispose();\n this.openedDialogs$.next(this.openedDialogs$.value.filter((o, i) => i < this.openedDialogs$.value.length - 1));\n this.overlayRef =\n this.openedDialogs$.value.length > 0 ? this.openedDialogs$.value[this.openedDialogs$.value.length - 1].overlayRef : null;\n }\n }\n\n /**\n * Close all the dialogs.\n */\n public closeAllDialogs(): void {\n this.openedDialogs$.value.forEach((dialog) => {\n dialog.containerRef.instance.dialogContainerConfig.close?.(dialog.containerRef.instance.getComponentInstances);\n });\n }\n\n /**\n * Returns an `Observable` with all opened windows.\n *\n * @returns `Observable` of `OpenedDialog[]`.\n */\n public getOpenedDialog(): Observable<OpenedDialog[]> {\n return this.openedDialogs$;\n }\n\n /**\n * Returns an `Object` with a dialog\n *\n * @param dialogId id of the dialog to be returned\n * @returns `OpenedDialog`\n */\n public getDialog(dialogId: string): OpenedDialog {\n return this.openedDialogs$.value.find((o) => o.id === dialogId);\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.disableAcceptButton();\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.enableAcceptButton();\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.disableDismissButton();\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.openedDialogs$.value[this.openedDialogs$.value.length - 1].containerRef.instance.enableDismissButton();\n }\n\n // TODO: find the correct type or turn into a generic, https://www.typescriptlang.org/docs/handbook/2/generics.html\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n private createInjector(data: any): Injector {\n const injectorTokens: StaticProvider = [{ provide: DIALOG_CONTAINER_CONFIG, useValue: data }];\n return Injector.create({\n parent: this.injector,\n providers: injectorTokens,\n });\n }\n\n private getPositionStrategy(verticalPosition: EuiDialogVerticalPosition): GlobalPositionStrategy {\n const positionStrategy = this.overlay.position().global().centerHorizontally().centerVertically();\n if (verticalPosition === 'top') {\n positionStrategy.top();\n }\n return positionStrategy;\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 OnInit,\n booleanAttribute,\n SimpleChanges,\n OnChanges,\n} from '@angular/core';\nimport { TemplatePortal } from '@angular/cdk/portal';\nimport { BehaviorSubject, Subject } from 'rxjs';\nimport { BaseDirective } from '@eui/components/shared';\n\nimport { EuiDialogService } from './services/eui-dialog.service';\nimport { EuiDialogInterface } from './models/eui-dialog.config';\nimport { DIALOG_COMPONENT_CONFIG } from './services/eui-dialog.token';\nimport { OpenedDialog } from './models/opened-dialog.model';\nimport { EuiDialogVerticalPosition } from './models/eui-dialog-alignment';\n\n@Component({\n selector: 'eui-dialog',\n templateUrl: './eui-dialog.component.html',\n styleUrls: ['./styles/_index.scss'],\n providers: [{ provide: DIALOG_COMPONENT_CONFIG, useValue: null }],\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDialogComponent extends BaseDirective implements AfterViewInit, OnDestroy, OnInit, OnChanges {\n @Input() e2eAttr = 'eui-dialog';\n @Input() title: string;\n @Input() acceptLabel = 'eui.OK';\n @Input() dismissLabel = 'eui.CANCEL';\n @Input() typeClass: 'primary' | 'secondary' | 'info' | 'success' | 'warning' | 'danger' | 'accent';\n @Input() verticalPosition: EuiDialogVerticalPosition;\n @Input() width = '50%';\n @Input() height = 'auto';\n @Input({ transform: booleanAttribute }) isFullScreen = false;\n @Input({ transform: booleanAttribute }) hasCloseButton = true;\n @Input({ transform: booleanAttribute }) hasAcceptButton = true;\n @Input({ transform: booleanAttribute }) hasDismissButton = true;\n @Input({ transform: booleanAttribute }) hasMobileCustomSize = false;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnClickOutside */\n @Input({ transform: booleanAttribute }) isClosedOnClickOutside = false;\n @Input({ transform: booleanAttribute }) hasClosedOnClickOutside = false;\n /** @deprecated This will be removed in next version of eui in favor of hasClosedOnEscape */\n @Input({ transform: booleanAttribute }) isClosedOnEscape = true;\n @Input({ transform: booleanAttribute }) hasClosedOnEscape = true;\n @Input({ transform: booleanAttribute }) isHandleCloseOnDismiss = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnClose = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnAccept = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnClickOutside = false;\n @Input({ transform: booleanAttribute }) isHandleCloseOnEscape = false;\n @Input({ transform: booleanAttribute }) isMessageBox = false;\n @Input({ transform: booleanAttribute }) isDraggable = false;\n @Input({ transform: booleanAttribute }) hasNoBodyPadding = false;\n @Input({ transform: booleanAttribute }) hasFooter = true;\n\n @Output() clickOutside = new EventEmitter();\n @Output() escape = new EventEmitter();\n @Output() dialogOpen = new EventEmitter();\n @Output() dialogClose = new EventEmitter();\n @Output() dismiss = new EventEmitter();\n @Output() accept = new EventEmitter();\n\n public content: string | TemplatePortal;\n public isOpen$: BehaviorSubject<boolean> = new BehaviorSubject<boolean>(false);\n\n @ViewChild('templateRefHeader') templateRefHeader: TemplateRef<EuiDialogHeaderDirective>;\n @ViewChild('templateRefContent') templateRefContent: TemplateRef<ElementRef>;\n @ViewChild('templateRefFooter') templateRefFooter: TemplateRef<EuiDialogFooterDirective>;\n\n @ContentChild(forwardRef(() => EuiDialogHeaderDirective)) euiDialogHeaderDirective: QueryList<EuiDialogHeaderDirective>;\n @ContentChild(forwardRef(() => EuiDialogFooterDirective)) euiDialogFooterDirective: QueryList<EuiDialogFooterDirective>;\n\n private dialog: OpenedDialog;\n private templatePortalHeader: TemplatePortal<EuiDialogHeaderDirective>;\n private templatePortalContent: TemplatePortal<ElementRef>;\n private templatePortalFooter: TemplatePortal<EuiDialogFooterDirective>;\n private destroy$: Subject<boolean> = new Subject<boolean>();\n\n constructor(\n private viewContainerRef: ViewContainerRef,\n private euiDialogService: EuiDialogService,\n ) {\n super();\n }\n\n ngOnChanges(c: SimpleChanges): void {\n if (c.isClosedOnClickOutside) {\n this.hasClosedOnClickOutside = c.isClosedOnClickOutside.currentValue;\n }\n if (c.isClosedOnEscape) {\n this.hasClosedOnEscape = c.isClosedOnEscape.currentValue;\n }\n }\n\n ngOnInit(): void {\n if (this.isFullScreen) {\n this.width = '98vw';\n this.height = '97vh';\n }\n\n if (this.isMessageBox) {\n this.isClosedOnEscape = false;\n this.hasClosedOnEscape = false;\n this.hasCloseButton = false;\n }\n\n if (this.euiPrimary) {\n this.typeClass = 'primary';\n }\n if (this.euiSecondary) {\n this.typeClass = 'secondary';\n }\n if (this.euiInfo) {\n this.typeClass = 'info';\n }\n if (this.euiSuccess) {\n this.typeClass = 'success';\n }\n if (this.euiWarning) {\n this.typeClass = 'warning';\n }\n if (this.euiDanger) {\n this.typeClass = 'danger';\n }\n if (this.euiAccent) {\n this.typeClass = 'accent';\n }\n }\n\n ngAfterViewInit(): void {\n if (this.euiDialogHeaderDirective) {\n this.templatePortalHeader = new TemplatePortal(this.templateRefHeader, this.viewContainerRef);\n }\n\n this.templatePortalContent = new TemplatePortal(this.templateRefContent, this.viewContainerRef);\n\n if (this.euiDialogFooterDirective) {\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 * Whether the eui-dialog is open.\n *\n * @usageNotes\n * ```html\n * <eui-dialog #dialog>\n * <my-component *ngIf=\"dialog.isOpen\"></my-component>\n * </eui-dialog>\n * ```\n * @returns A boolean with value `true` when open, otherwise `false`.\n */\n get isOpen(): boolean {\n return this.isOpen$.value;\n }\n\n /**\n * Open a dialog.\n *\n * @returns A dialog object of type `OpenedDialog`\n */\n public openDialog<HC, HCC, BC, BCC, FC, FCC>(): OpenedDialog {\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 isFullScreen: this.isFullScreen,\n typeClass: this.typeClass,\n acceptLabel: this.acceptLabel,\n dismissLabel: this.dismissLabel,\n hasCloseButton: this.hasCloseButton,\n hasAcceptButton: this.hasAcceptButton,\n hasDismissButton: this.hasDismissButton,\n hasMobileCustomSize: this.hasMobileCustomSize,\n hasClosedOnClickOutside: this.hasClosedOnClickOutside,\n hasClosedOnEscape: this.hasClosedOnEscape,\n isClosedOnEscape: this.isClosedOnEscape,\n isHandleCloseOnDismiss: this.isHandleCloseOnDismiss,\n isHandleCloseOnClose: this.isHandleCloseOnClose,\n isHandleCloseOnAccept: this.isHandleCloseOnAccept,\n isHandleCloseOnClickOutside: this.isHandleCloseOnClickOutside,\n isHandleCloseOnEscape: this.isHandleCloseOnEscape,\n isDraggable: this.isDraggable,\n hasNoBodyPadding: this.hasNoBodyPadding,\n hasFooter: this.hasFooter,\n verticalPosition: this.verticalPosition,\n header: this.templatePortalHeader,\n content: this.templatePortalContent,\n footer: this.templatePortalFooter,\n clickOutside: () => {\n if (this.hasClosedOnClickOutside) {\n this.isOpen$.next(false);\n }\n this.clickOutside.emit();\n },\n escape: () => {\n if (this.isClosedOnEscape) {\n this.isOpen$.next(false);\n }\n this.escape.emit();\n },\n open: () => {\n this.dialogOpen.emit();\n },\n close: () => {\n if (!this.isHandleCloseOnClose) {\n this.isOpen$.next(false);\n }\n this.dialogClose.emit();\n },\n dismiss: () => {\n if (!this.isHandleCloseOnDismiss) {\n this.isOpen$.next(false);\n }\n this.dismiss.emit();\n },\n accept: () => {\n if (!this.isHandleCloseOnAccept) {\n this.isOpen$.next(false);\n }\n this.accept.emit();\n },\n };\n\n this.isOpen$.next(true);\n this.dialog = this.euiDialogService.openDialog(config);\n\n return this.dialog;\n }\n\n /**\n * Close a Dialog\n */\n public closeDialog(): void {\n this.isOpen$.next(false);\n this.euiDialogService.closeDialog();\n }\n\n /**\n * Disable Accept button of default eui-dialog footer.\n */\n public disableAcceptButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.disableAcceptButton();\n }\n\n /**\n * Enable Accept button of default eui-dialog footer.\n */\n public enableAcceptButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.enableAcceptButton();\n }\n\n /**\n * Disable Dismiss button of default eui-dialog footer.\n */\n public disableDismissButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.disableDismissButton();\n }\n\n /**\n * Enable Dismiss button of default eui-dialog footer.\n */\n public enableDismissButton(): void {\n this.euiDialogService.getDialog(this.dialog.id).containerRef.instance.enableDismissButton();\n }\n}\n\n/* eslint-disable */\n@Directive({ selector: 'eui-dialog-header' })\nexport class EuiDialogHeaderDirective {}\n\n@Directive({ selector: 'eui-dialog-footer' })\nexport class EuiDialogFooterDirective {}\n/* eslint-enable */\n", "<ng-template #templateRefHeader>\n <ng-content select=\"eui-dialog-header\"></ng-content>\n</ng-template>\n<ng-template #templateRefContent>\n <ng-content></ng-content>\n</ng-template>\n<ng-template #templateRefFooter>\n <ng-content select=\"eui-dialog-footer\"></ng-content>\n</ng-template>\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 { CdkScrollableModule } from '@angular/cdk/scrolling';\n\nimport { EuiDialogComponent, EuiDialogFooterDirective, EuiDialogHeaderDirective } from './eui-dialog.component';\nimport { EuiDialogService } from './services/eui-dialog.service';\nimport { EuiDialogContainerComponent } from './container/eui-dialog-container.component';\n\n@NgModule({\n imports: [\n CommonModule,\n EuiButtonModule,\n EuiIconModule,\n TranslateModule,\n PortalModule,\n OverlayModule,\n A11yModule,\n DragDropModule,\n CdkScrollableModule,\n ],\n exports: [EuiDialogComponent, EuiDialogHeaderDirective, EuiDialogFooterDirective],\n declarations: [EuiDialogComponent, EuiDialogHeaderDirective, EuiDialogFooterDirective, EuiDialogContainerComponent],\n providers: [EuiDialogService],\n})\nexport class EuiDialogModule {}\n"],
5
+ "mappings": ";AAAA,SAAS,sBAAsB;AAGxB,IAAM,0BAA0B,IAAI,eAAoB,yBAAyB;AAEjF,IAAM,0BAA0B,IAAI,eAAoB,yBAAyB;;;ACDlF,IAA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O,kBAAP,MAAO,iBAAe;;8GAAf,kBAAe,MAAA,CAAA,GAAA,QAAA,oBAAA,SAAA,CAAA;EAAA;;+GAAf,kBAAe,cAAA,CAHT,oBAAoB,0BAA0B,0BAA0B,2BAA2B,GAAA,SAAA;MAX9G;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IAAmB,GAAA,SAAA,CAEb,oBAAoB,0BAA0B,wBAAwB,EAAA,CAAA;EAAA;;+GAIvE,kBAAe,WAFb,CAAC,gBAAgB,GAAC,SAAA;MAZzB;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;IAAmB,EAAA,CAAA;EAAA;;oGAMd,iBAAe,YAAA,CAAA;QAhB3B;SAAS;IACN,SAAS;MACL;MACA;MACA;MACA;MACA;MACA;MACA;MACA;MACA;;IAEJ,SAAS,CAAC,oBAAoB,0BAA0B,wBAAwB;IAChF,cAAc,CAAC,oBAAoB,0BAA0B,0BAA0B,2BAA2B;IAClH,WAAW,CAAC,gBAAgB;GAC/B;;",
6
6
  "names": ["ComponentPortal", "Injector", "Subject", "BehaviorSubject", "takeUntil", "Component", "ChangeDetectionStrategy", "ViewEncapsulation", "TemplatePortal", "BehaviorSubject", "Subject", "i0"]
7
7
  }
@@ -126,12 +126,12 @@ var EuiDiscussionThreadComponent = class _EuiDiscussionThreadComponent {
126
126
  this.ɵfac = i02.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: _EuiDiscussionThreadComponent, deps: [], target: i02.ɵɵFactoryTarget.Component });
127
127
  }
128
128
  static {
129
- this.ɵcmp = i02.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.3", type: _EuiDiscussionThreadComponent, selector: "eui-discussion-thread", inputs: { items: "items", titleLabel: "titleLabel", subTitleLabel: "subTitleLabel", tooltip: "tooltip" }, host: { properties: { "attr.role": "this.role" } }, ngImport: i02, template: '<div class="eui-discussion-thread-wrapper">\n <div class="eui-discussion-thread-wrapper-header">\n <div class="eui-discussion-thread-wrapper-header__title">{{ titleLabel }}</div>\n <div class="eui-discussion-thread-wrapper-header__subtitle">{{ subTitleLabel }}</div>\n </div>\n <ul role="none" class="eui-discussion-thread">\n <ng-template [ngIf]="items">\n <eui-discussion-thread-item\n *ngFor="let item of items; let o = odd; let e = even; trackBy: trackByFn"\n [isOdd]="o"\n id="{{ item.id }}"\n typeClass="{{ item.typeClass }}"\n date="{{ item.date }}"\n author="{{ item.author }}"\n body="{{ item.body }}"\n tooltip="{{ item.tooltip }}">\n </eui-discussion-thread-item>\n </ng-template>\n\n <ng-template [ngIf]="!items">\n <ng-content></ng-content>\n </ng-template>\n </ul>\n</div>\n', styles: ['.eui-discussion-thread-wrapper{margin:0;padding:0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header{display:flex;flex-direction:column;position:relative;width:100%}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__title{border-bottom:1px solid var(--eui-base-color-grey-20);color:var(--eui-base-color-primary-100);display:flex;margin-bottom:var(--eui-base-spacing-xs);padding-bottom:var(--eui-base-spacing-2xs);width:100%;font:normal normal 400 1.25rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__subtitle{color:var(--eui-base-color-grey-100);display:flex;width:100%;font:normal normal 400 1.125rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread{list-style:none;padding:20px 0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread:before{background-color:var(--eui-base-color-grey-15);bottom:0;content:" ";left:50%;margin-left:-1.5px;position:absolute;top:0;width:2px}.eui-discussion-thread-wrapper .eui-discussion-thread__item{margin-bottom:var(--eui-base-spacing-m);position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread__item:before,.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{content:" ";display:table}.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{clear:both}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel{background-color:var(--eui-base-color-white);border:1px solid #d4d4d4;border-radius:.5rem;box-shadow:0 1px 6px #0000002d;float:left;padding:var(--eui-base-spacing-m) var(--eui-base-spacing-m) 0;position:relative;width:44%}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:before{border-bottom:15px solid transparent;border-left:15px solid #ccc;border-right:0 solid #ccc;border-top:15px solid transparent;content:" ";display:inline-block;position:absolute;right:-15px;top:26px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:after{border-bottom:14px solid transparent;border-left:14px solid var(--eui-base-color-white);border-right:0 solid var(--eui-base-color-white);border-top:14px solid transparent;content:" ";display:inline-block;position:absolute;right:-14px;top:27px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge{border-radius:100%;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;color:var(--eui-base-color-white);font-size:1.4rem;height:50px;left:50%;line-height:50px;margin-left:-25px;position:absolute;text-align:center;top:16px;width:50px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge--small{height:1.5rem;left:51.75%;top:2.5rem;width:1.5rem}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel{float:right}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread-badge{background-color:var(--eui-base-color-grey-25)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.primary{background-color:var(--eui-base-color-primary-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.success{background-color:var(--eui-base-color-success-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.warning{background-color:var(--eui-base-color-warning-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.danger{background-color:var(--eui-base-color-danger-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.info{background-color:var(--eui-base-color-info-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.accent{background-color:var(--eui-base-color-accent-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-header{border-bottom:1px solid var(--eui-base-color-grey-15);margin-bottom:var(--eui-base-spacing-s);padding-bottom:var(--eui-base-spacing-s)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading{align-items:center;display:flex;justify-content:space-between}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-title{align-items:center;display:flex;color:var(--eui-base-color-primary-100);font:normal normal 400 1.125rem/1.5rem var(--eui-base-font-family);font-weight:700}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time{align-items:center;display:flex;margin-left:auto;font:normal normal 400 .875rem/1rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time-icon{margin-right:var(--eui-base-spacing-xs)}.eui-discussion-thread-wrapper .eui-discussion-thread-subheading{margin-top:var(--eui-base-spacing-xs);font:normal normal 400 .75rem/1rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-body{margin:var(--eui-base-spacing-m) 0}.eui-discussion-thread-wrapper .eui-discussion-thread-body__word-break{word-break:break-word}.eui-discussion-thread-wrapper hr .eui-discussion-thread-separator{border-top:1px solid var(--eui-base-color-black);height:1px;margin:0!important;opacity:.4}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p,.eui-discussion-thread-wrapper .eui-discussion-thread-body>ul{margin-bottom:0}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p+p{margin-top:5px}.eui-discussion-thread-wrapper .eui-discussion-thread-footer{border-top:1px solid rgba(0,0,0,.2);margin:0 0 .5rem}.eui-discussion-thread-wrapper .eui-discussion-thread-tooltip{background-color:#000000bf;font:normal normal 400 .875rem/1rem var(--eui-base-font-family)}@media screen and (min-width: 1140px){.eui-discussion-thread-panel{width:42%}}@media screen and (min-width: 768px) and (max-width: 995px){.eui-discussion-thread-panel{float:right;width:calc(100% - 90px);width:-moz-calc(100% - 90px);width:-webkit-calc(100% - 90px)}.eui-discussion-thread-badge{left:15px;margin-left:0;top:16px}.eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}}\n'], dependencies: [{ kind: "directive", type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EuiDiscussionThreadItemComponent, selector: "eui-discussion-thread-item", inputs: ["id", "typeClass", "date", "author", "body", "tooltip", "isOdd"] }], encapsulation: i02.ViewEncapsulation.None });
129
+ this.ɵcmp = i02.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.0.0-next.3", type: _EuiDiscussionThreadComponent, selector: "eui-discussion-thread", inputs: { items: "items", titleLabel: "titleLabel", subTitleLabel: "subTitleLabel", tooltip: "tooltip" }, host: { properties: { "attr.role": "this.role" } }, ngImport: i02, template: '<div class="eui-discussion-thread-wrapper">\n <div class="eui-discussion-thread-wrapper-header">\n <div class="eui-discussion-thread-wrapper-header__title">{{ titleLabel }}</div>\n <div class="eui-discussion-thread-wrapper-header__subtitle">{{ subTitleLabel }}</div>\n </div>\n <ul role="none" class="eui-discussion-thread">\n <ng-template [ngIf]="items">\n <eui-discussion-thread-item\n *ngFor="let item of items; let o = odd; let e = even; trackBy: trackByFn"\n [isOdd]="o"\n id="{{ item.id }}"\n typeClass="{{ item.typeClass }}"\n date="{{ item.date }}"\n author="{{ item.author }}"\n body="{{ item.body }}"\n tooltip="{{ item.tooltip }}">\n </eui-discussion-thread-item>\n </ng-template>\n\n <ng-template [ngIf]="!items">\n <ng-content></ng-content>\n </ng-template>\n </ul>\n</div>\n', styles: ['.eui-discussion-thread-wrapper{margin:0;padding:0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header{display:flex;flex-direction:column;position:relative;width:100%}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__title{border-bottom:1px solid var(--eui-base-color-grey-20);color:var(--eui-base-color-primary-100);display:flex;margin-bottom:var(--eui-base-spacing-xs);padding-bottom:var(--eui-base-spacing-2xs);width:100%;font:normal normal 400 1.5rem/2.25rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__subtitle{color:var(--eui-base-color-grey-100);display:flex;width:100%;font:normal normal 400 1.25rem/2rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread{list-style:none;padding:20px 0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread:before{background-color:var(--eui-base-color-grey-15);bottom:0;content:" ";left:50%;margin-left:-1.5px;position:absolute;top:0;width:2px}.eui-discussion-thread-wrapper .eui-discussion-thread__item{margin-bottom:var(--eui-base-spacing-m);position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread__item:before,.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{content:" ";display:table}.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{clear:both}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel{background-color:var(--eui-base-color-white);border:1px solid #d4d4d4;border-radius:.5rem;box-shadow:0 1px 6px #0000002d;float:left;padding:var(--eui-base-spacing-m) var(--eui-base-spacing-m) 0;position:relative;width:44%}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:before{border-bottom:15px solid transparent;border-left:15px solid #ccc;border-right:0 solid #ccc;border-top:15px solid transparent;content:" ";display:inline-block;position:absolute;right:-15px;top:26px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:after{border-bottom:14px solid transparent;border-left:14px solid var(--eui-base-color-white);border-right:0 solid var(--eui-base-color-white);border-top:14px solid transparent;content:" ";display:inline-block;position:absolute;right:-14px;top:27px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge{border-radius:100%;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;color:var(--eui-base-color-white);font-size:1.4rem;height:50px;left:50%;line-height:50px;margin-left:-25px;position:absolute;text-align:center;top:16px;width:50px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge--small{height:1.5rem;left:51.75%;top:2.5rem;width:1.5rem}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel{float:right}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread-badge{background-color:var(--eui-base-color-grey-25)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.primary{background-color:var(--eui-base-color-primary-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.success{background-color:var(--eui-base-color-success-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.warning{background-color:var(--eui-base-color-warning-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.danger{background-color:var(--eui-base-color-danger-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.info{background-color:var(--eui-base-color-info-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.accent{background-color:var(--eui-base-color-accent-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-header{border-bottom:1px solid var(--eui-base-color-grey-15);margin-bottom:var(--eui-base-spacing-s);padding-bottom:var(--eui-base-spacing-s)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading{align-items:center;display:flex;justify-content:space-between}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-title{align-items:center;display:flex;color:var(--eui-base-color-primary-100);font:normal normal 400 1.25rem/2rem var(--eui-base-font-family);font-weight:700}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time{align-items:center;display:flex;margin-left:auto;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time-icon{margin-right:var(--eui-base-spacing-xs)}.eui-discussion-thread-wrapper .eui-discussion-thread-subheading{margin-top:var(--eui-base-spacing-xs);font:normal normal 400 .75rem/1.25rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-body{margin:var(--eui-base-spacing-m) 0}.eui-discussion-thread-wrapper .eui-discussion-thread-body__word-break{word-break:break-word}.eui-discussion-thread-wrapper hr .eui-discussion-thread-separator{border-top:1px solid var(--eui-base-color-black);height:1px;margin:0!important;opacity:.4}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p,.eui-discussion-thread-wrapper .eui-discussion-thread-body>ul{margin-bottom:0}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p+p{margin-top:5px}.eui-discussion-thread-wrapper .eui-discussion-thread-footer{border-top:1px solid rgba(0,0,0,.2);margin:0 0 .5rem}.eui-discussion-thread-wrapper .eui-discussion-thread-tooltip{background-color:#000000bf;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family)}@media screen and (min-width: 1140px){.eui-discussion-thread-panel{width:42%}}@media screen and (min-width: 768px) and (max-width: 995px){.eui-discussion-thread-panel{float:right;width:calc(100% - 90px);width:-moz-calc(100% - 90px);width:-webkit-calc(100% - 90px)}.eui-discussion-thread-badge{left:15px;margin-left:0;top:16px}.eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}}\n'], dependencies: [{ kind: "directive", type: i12.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i12.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: EuiDiscussionThreadItemComponent, selector: "eui-discussion-thread-item", inputs: ["id", "typeClass", "date", "author", "body", "tooltip", "isOdd"] }], encapsulation: i02.ViewEncapsulation.None });
130
130
  }
131
131
  };
132
132
  i02.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.0-next.3", ngImport: i02, type: EuiDiscussionThreadComponent, decorators: [{
133
133
  type: Component2,
134
- args: [{ selector: "eui-discussion-thread", encapsulation: ViewEncapsulation.None, template: '<div class="eui-discussion-thread-wrapper">\n <div class="eui-discussion-thread-wrapper-header">\n <div class="eui-discussion-thread-wrapper-header__title">{{ titleLabel }}</div>\n <div class="eui-discussion-thread-wrapper-header__subtitle">{{ subTitleLabel }}</div>\n </div>\n <ul role="none" class="eui-discussion-thread">\n <ng-template [ngIf]="items">\n <eui-discussion-thread-item\n *ngFor="let item of items; let o = odd; let e = even; trackBy: trackByFn"\n [isOdd]="o"\n id="{{ item.id }}"\n typeClass="{{ item.typeClass }}"\n date="{{ item.date }}"\n author="{{ item.author }}"\n body="{{ item.body }}"\n tooltip="{{ item.tooltip }}">\n </eui-discussion-thread-item>\n </ng-template>\n\n <ng-template [ngIf]="!items">\n <ng-content></ng-content>\n </ng-template>\n </ul>\n</div>\n', styles: ['.eui-discussion-thread-wrapper{margin:0;padding:0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header{display:flex;flex-direction:column;position:relative;width:100%}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__title{border-bottom:1px solid var(--eui-base-color-grey-20);color:var(--eui-base-color-primary-100);display:flex;margin-bottom:var(--eui-base-spacing-xs);padding-bottom:var(--eui-base-spacing-2xs);width:100%;font:normal normal 400 1.25rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__subtitle{color:var(--eui-base-color-grey-100);display:flex;width:100%;font:normal normal 400 1.125rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread{list-style:none;padding:20px 0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread:before{background-color:var(--eui-base-color-grey-15);bottom:0;content:" ";left:50%;margin-left:-1.5px;position:absolute;top:0;width:2px}.eui-discussion-thread-wrapper .eui-discussion-thread__item{margin-bottom:var(--eui-base-spacing-m);position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread__item:before,.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{content:" ";display:table}.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{clear:both}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel{background-color:var(--eui-base-color-white);border:1px solid #d4d4d4;border-radius:.5rem;box-shadow:0 1px 6px #0000002d;float:left;padding:var(--eui-base-spacing-m) var(--eui-base-spacing-m) 0;position:relative;width:44%}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:before{border-bottom:15px solid transparent;border-left:15px solid #ccc;border-right:0 solid #ccc;border-top:15px solid transparent;content:" ";display:inline-block;position:absolute;right:-15px;top:26px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:after{border-bottom:14px solid transparent;border-left:14px solid var(--eui-base-color-white);border-right:0 solid var(--eui-base-color-white);border-top:14px solid transparent;content:" ";display:inline-block;position:absolute;right:-14px;top:27px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge{border-radius:100%;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;color:var(--eui-base-color-white);font-size:1.4rem;height:50px;left:50%;line-height:50px;margin-left:-25px;position:absolute;text-align:center;top:16px;width:50px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge--small{height:1.5rem;left:51.75%;top:2.5rem;width:1.5rem}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel{float:right}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread-badge{background-color:var(--eui-base-color-grey-25)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.primary{background-color:var(--eui-base-color-primary-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.success{background-color:var(--eui-base-color-success-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.warning{background-color:var(--eui-base-color-warning-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.danger{background-color:var(--eui-base-color-danger-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.info{background-color:var(--eui-base-color-info-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.accent{background-color:var(--eui-base-color-accent-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-header{border-bottom:1px solid var(--eui-base-color-grey-15);margin-bottom:var(--eui-base-spacing-s);padding-bottom:var(--eui-base-spacing-s)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading{align-items:center;display:flex;justify-content:space-between}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-title{align-items:center;display:flex;color:var(--eui-base-color-primary-100);font:normal normal 400 1.125rem/1.5rem var(--eui-base-font-family);font-weight:700}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time{align-items:center;display:flex;margin-left:auto;font:normal normal 400 .875rem/1rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time-icon{margin-right:var(--eui-base-spacing-xs)}.eui-discussion-thread-wrapper .eui-discussion-thread-subheading{margin-top:var(--eui-base-spacing-xs);font:normal normal 400 .75rem/1rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-body{margin:var(--eui-base-spacing-m) 0}.eui-discussion-thread-wrapper .eui-discussion-thread-body__word-break{word-break:break-word}.eui-discussion-thread-wrapper hr .eui-discussion-thread-separator{border-top:1px solid var(--eui-base-color-black);height:1px;margin:0!important;opacity:.4}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p,.eui-discussion-thread-wrapper .eui-discussion-thread-body>ul{margin-bottom:0}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p+p{margin-top:5px}.eui-discussion-thread-wrapper .eui-discussion-thread-footer{border-top:1px solid rgba(0,0,0,.2);margin:0 0 .5rem}.eui-discussion-thread-wrapper .eui-discussion-thread-tooltip{background-color:#000000bf;font:normal normal 400 .875rem/1rem var(--eui-base-font-family)}@media screen and (min-width: 1140px){.eui-discussion-thread-panel{width:42%}}@media screen and (min-width: 768px) and (max-width: 995px){.eui-discussion-thread-panel{float:right;width:calc(100% - 90px);width:-moz-calc(100% - 90px);width:-webkit-calc(100% - 90px)}.eui-discussion-thread-badge{left:15px;margin-left:0;top:16px}.eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}}\n'] }]
134
+ args: [{ selector: "eui-discussion-thread", encapsulation: ViewEncapsulation.None, template: '<div class="eui-discussion-thread-wrapper">\n <div class="eui-discussion-thread-wrapper-header">\n <div class="eui-discussion-thread-wrapper-header__title">{{ titleLabel }}</div>\n <div class="eui-discussion-thread-wrapper-header__subtitle">{{ subTitleLabel }}</div>\n </div>\n <ul role="none" class="eui-discussion-thread">\n <ng-template [ngIf]="items">\n <eui-discussion-thread-item\n *ngFor="let item of items; let o = odd; let e = even; trackBy: trackByFn"\n [isOdd]="o"\n id="{{ item.id }}"\n typeClass="{{ item.typeClass }}"\n date="{{ item.date }}"\n author="{{ item.author }}"\n body="{{ item.body }}"\n tooltip="{{ item.tooltip }}">\n </eui-discussion-thread-item>\n </ng-template>\n\n <ng-template [ngIf]="!items">\n <ng-content></ng-content>\n </ng-template>\n </ul>\n</div>\n', styles: ['.eui-discussion-thread-wrapper{margin:0;padding:0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header{display:flex;flex-direction:column;position:relative;width:100%}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__title{border-bottom:1px solid var(--eui-base-color-grey-20);color:var(--eui-base-color-primary-100);display:flex;margin-bottom:var(--eui-base-spacing-xs);padding-bottom:var(--eui-base-spacing-2xs);width:100%;font:normal normal 400 1.5rem/2.25rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-wrapper-header__subtitle{color:var(--eui-base-color-grey-100);display:flex;width:100%;font:normal normal 400 1.25rem/2rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread{list-style:none;padding:20px 0;position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread:before{background-color:var(--eui-base-color-grey-15);bottom:0;content:" ";left:50%;margin-left:-1.5px;position:absolute;top:0;width:2px}.eui-discussion-thread-wrapper .eui-discussion-thread__item{margin-bottom:var(--eui-base-spacing-m);position:relative}.eui-discussion-thread-wrapper .eui-discussion-thread__item:before,.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{content:" ";display:table}.eui-discussion-thread-wrapper .eui-discussion-thread__item:after{clear:both}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel{background-color:var(--eui-base-color-white);border:1px solid #d4d4d4;border-radius:.5rem;box-shadow:0 1px 6px #0000002d;float:left;padding:var(--eui-base-spacing-m) var(--eui-base-spacing-m) 0;position:relative;width:44%}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:before{border-bottom:15px solid transparent;border-left:15px solid #ccc;border-right:0 solid #ccc;border-top:15px solid transparent;content:" ";display:inline-block;position:absolute;right:-15px;top:26px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-panel:after{border-bottom:14px solid transparent;border-left:14px solid var(--eui-base-color-white);border-right:0 solid var(--eui-base-color-white);border-top:14px solid transparent;content:" ";display:inline-block;position:absolute;right:-14px;top:27px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge{border-radius:100%;box-shadow:0 1px 3px #0000001f,0 1px 2px #0000003d;color:var(--eui-base-color-white);font-size:1.4rem;height:50px;left:50%;line-height:50px;margin-left:-25px;position:absolute;text-align:center;top:16px;width:50px}.eui-discussion-thread-wrapper .eui-discussion-thread__item .eui-discussion-thread-badge--small{height:1.5rem;left:51.75%;top:2.5rem;width:1.5rem}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel{float:right}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread__item.eui-discussion-thread-inverted .eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}.eui-discussion-thread-wrapper .eui-discussion-thread-badge{background-color:var(--eui-base-color-grey-25)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.primary{background-color:var(--eui-base-color-primary-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.success{background-color:var(--eui-base-color-success-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.warning{background-color:var(--eui-base-color-warning-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.danger{background-color:var(--eui-base-color-danger-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.info{background-color:var(--eui-base-color-info-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-badge.accent{background-color:var(--eui-base-color-accent-100)!important}.eui-discussion-thread-wrapper .eui-discussion-thread-header{border-bottom:1px solid var(--eui-base-color-grey-15);margin-bottom:var(--eui-base-spacing-s);padding-bottom:var(--eui-base-spacing-s)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading{align-items:center;display:flex;justify-content:space-between}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-title{align-items:center;display:flex;color:var(--eui-base-color-primary-100);font:normal normal 400 1.25rem/2rem var(--eui-base-font-family);font-weight:700}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time{align-items:center;display:flex;margin-left:auto;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-heading .eui-discussion-thread-time-icon{margin-right:var(--eui-base-spacing-xs)}.eui-discussion-thread-wrapper .eui-discussion-thread-subheading{margin-top:var(--eui-base-spacing-xs);font:normal normal 400 .75rem/1.25rem var(--eui-base-font-family)}.eui-discussion-thread-wrapper .eui-discussion-thread-body{margin:var(--eui-base-spacing-m) 0}.eui-discussion-thread-wrapper .eui-discussion-thread-body__word-break{word-break:break-word}.eui-discussion-thread-wrapper hr .eui-discussion-thread-separator{border-top:1px solid var(--eui-base-color-black);height:1px;margin:0!important;opacity:.4}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p,.eui-discussion-thread-wrapper .eui-discussion-thread-body>ul{margin-bottom:0}.eui-discussion-thread-wrapper .eui-discussion-thread-body>p+p{margin-top:5px}.eui-discussion-thread-wrapper .eui-discussion-thread-footer{border-top:1px solid rgba(0,0,0,.2);margin:0 0 .5rem}.eui-discussion-thread-wrapper .eui-discussion-thread-tooltip{background-color:#000000bf;font:normal normal 400 .875rem/1.5rem var(--eui-base-font-family)}@media screen and (min-width: 1140px){.eui-discussion-thread-panel{width:42%}}@media screen and (min-width: 768px) and (max-width: 995px){.eui-discussion-thread-panel{float:right;width:calc(100% - 90px);width:-moz-calc(100% - 90px);width:-webkit-calc(100% - 90px)}.eui-discussion-thread-badge{left:15px;margin-left:0;top:16px}.eui-discussion-thread-panel:before{border-left-width:0;border-right-width:15px;left:-15px;right:auto}.eui-discussion-thread-panel:after{border-left-width:0;border-right-width:14px;left:-14px;right:auto}}\n'] }]
135
135
  }], propDecorators: { role: [{
136
136
  type: HostBinding2,
137
137
  args: ["attr.role"]
@@ -2,6 +2,6 @@
2
2
  "version": 3,
3
3
  "sources": ["../../eui-discussion-thread/eui-discussion-thread-item.component.ts", "../../eui-discussion-thread/eui-discussion-thread-item.component.html", "../../eui-discussion-thread/eui-discussion-thread.component.ts", "../../eui-discussion-thread/eui-discussion-thread.component.html", "../../eui-discussion-thread/eui-discussion-thread.module.ts"],
4
4
  "sourcesContent": ["import { Component, HostBinding, Input } from '@angular/core';\nimport { coerceBooleanProperty, BooleanInput } from '@angular/cdk/coercion';\n\n@Component({\n selector: 'eui-discussion-thread-item',\n templateUrl: './eui-discussion-thread-item.component.html',\n})\nexport class EuiDiscussionThreadItemComponent {\n\n @HostBinding('attr.role') role = 'listitem';\n\n @Input() id: string;\n @Input() typeClass: string;\n @Input() date: string;\n @Input() author: string;\n @Input() body: string;\n @Input() tooltip: string;\n\n @Input()\n get isOdd(): boolean {\n return this._isOdd;\n }\n set isOdd(value: BooleanInput) {\n this._isOdd = coerceBooleanProperty(value);\n }\n private _isOdd = false;\n\n get iconClass(): string {\n let iconClass = 'eui-icon-more-horizontal';\n switch (this.typeClass) {\n case 'info':\n iconClass = 'eui-icon-info';\n break;\n case 'success':\n iconClass = 'eui-icon-check';\n break;\n case 'warning':\n iconClass = 'eui-icon-exclamation';\n break;\n case 'danger':\n iconClass = 'eui-icon-times';\n break;\n }\n return `eui-icon ${iconClass}`;\n }\n}\n", "<li role=\"none\" class=\"eui-discussion-thread__item\" [class.eui-discussion-thread-inverted]=\"isOdd\">\n <div class=\"eui-discussion-thread-badge {{ typeClass }}\" title=\"{{ tooltip }}\">\n <span class=\"{{ iconClass }}\"></span>\n </div>\n <div class=\"eui-discussion-thread-panel\">\n <div class=\"eui-discussion-thread-header\">\n <div class=\"eui-discussion-thread-heading\">\n <div class=\"eui-discussion-thread-title\">\n {{ date | date: 'dd/MM/YYYY' }}\n </div>\n <div class=\"eui-discussion-thread-time\">\n <eui-icon-svg icon=\"time\" set=\"outline\" size=\"s\" fillColor=\"grey-75\" class=\"eui-discussion-thread-time-icon\"></eui-icon-svg>\n <span euiLabel euiSizeS>{{ date | date: 'HH:mm' }}</span>\n </div>\n </div>\n <div class=\"eui-discussion-thread-subheading\">\n {{ author }}\n </div>\n </div>\n <div class=\"eui-discussion-thread-body\">\n <p class=\"eui-discussion-thread-body__word-break\" [innerHTML]=\"body\"></p>\n </div>\n </div>\n</li>\n", "import { Component, HostBinding, Input, ViewEncapsulation } from '@angular/core';\n\nimport { EuiDiscussionThreadItem } from './models/eui-discussion-thread-item.model';\n\n@Component({\n selector: 'eui-discussion-thread',\n templateUrl: './eui-discussion-thread.component.html',\n styleUrls: ['./styles/_index.scss'],\n encapsulation: ViewEncapsulation.None,\n})\nexport class EuiDiscussionThreadComponent {\n\n @HostBinding('attr.role') role = 'list';\n \n @Input() items: EuiDiscussionThreadItem[];\n @Input() titleLabel: string;\n @Input() subTitleLabel: string;\n @Input() tooltip: string;\n\n public trackByFn(index: number, item: EuiDiscussionThreadItem): string {\n return item.id;\n }\n}\n", "<div class=\"eui-discussion-thread-wrapper\">\n <div class=\"eui-discussion-thread-wrapper-header\">\n <div class=\"eui-discussion-thread-wrapper-header__title\">{{ titleLabel }}</div>\n <div class=\"eui-discussion-thread-wrapper-header__subtitle\">{{ subTitleLabel }}</div>\n </div>\n <ul role=\"none\" class=\"eui-discussion-thread\">\n <ng-template [ngIf]=\"items\">\n <eui-discussion-thread-item\n *ngFor=\"let item of items; let o = odd; let e = even; trackBy: trackByFn\"\n [isOdd]=\"o\"\n id=\"{{ item.id }}\"\n typeClass=\"{{ item.typeClass }}\"\n date=\"{{ item.date }}\"\n author=\"{{ item.author }}\"\n body=\"{{ item.body }}\"\n tooltip=\"{{ item.tooltip }}\">\n </eui-discussion-thread-item>\n </ng-template>\n\n <ng-template [ngIf]=\"!items\">\n <ng-content></ng-content>\n </ng-template>\n </ul>\n</div>\n", "import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { EuiDiscussionThreadComponent } from './eui-discussion-thread.component';\nimport { EuiDiscussionThreadItemComponent } from './eui-discussion-thread-item.component';\nimport { EuiIconModule } from '@eui/components/eui-icon';\nimport { EuiLabelModule } from '@eui/components/eui-label';\n\n@NgModule({\n imports: [CommonModule, EuiIconModule, EuiLabelModule],\n declarations: [EuiDiscussionThreadComponent, EuiDiscussionThreadItemComponent],\n exports: [EuiDiscussionThreadComponent, EuiDiscussionThreadItemComponent],\n})\nexport class EuiDiscussionThreadModule {}\n"],
5
- "mappings": ";AAAA,SAAS,WAAW,aAAa,aAAa;AAC9C,SAAS,6BAA2C;;;;;AAM9C,IAAO,mCAAP,MAAO,kCAAgC;EAJ7C,cAAA;AAM8B,SAAA,OAAO;AAgBzB,SAAA,SAAS;;EAPjB,IACI,QAAK;AACL,WAAO,KAAK;EAChB;EACA,IAAI,MAAM,OAAmB;AACzB,SAAK,SAAS,sBAAsB,KAAK;EAC7C;EAGA,IAAI,YAAS;AACT,QAAI,YAAY;AAChB,YAAQ,KAAK,WAAW;MACpB,KAAK;AACD,oBAAY;AACZ;MACJ,KAAK;AACD,oBAAY;AACZ;MACJ,KAAK;AACD,oBAAY;AACZ;MACJ,KAAK;AACD,oBAAY;AACZ;IACR;AACA,WAAO,YAAY,SAAS;EAChC;;4GArCS,mCAAgC,MAAA,CAAA,GAAA,QAAA,mBAAA,UAAA,CAAA;EAAA;;gGAAhC,mCAAgC,UAAA,8BAAA,QAAA,EAAA,IAAA,MAAA,WAAA,aAAA,MAAA,QAAA,QAAA,UAAA,MAAA,QAAA,SAAA,WAAA,OAAA,QAAA,GAAA,MAAA,EAAA,YAAA,EAAA,aAAA,YAAA,EAAA,GAAA,UAAA,IAAA,UCP7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