@ember-eui/core 14.1.3 → 15.0.0

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 (502) hide show
  1. package/README.md +3 -3
  2. package/declarations/-private/basic-table.d.ts +366 -0
  3. package/declarations/-private/basic-table.d.ts.map +1 -0
  4. package/declarations/-private/eui-apply-props.d.ts +37 -0
  5. package/declarations/-private/eui-apply-props.d.ts.map +1 -0
  6. package/declarations/-private/eui-button-context.d.ts +65 -0
  7. package/declarations/-private/eui-button-context.d.ts.map +1 -0
  8. package/declarations/-private/eui-button-group-item.d.ts +17 -0
  9. package/declarations/-private/eui-button-group-item.d.ts.map +1 -0
  10. package/declarations/-private/eui-comment-item.d.ts +72 -0
  11. package/declarations/-private/eui-comment-item.d.ts.map +1 -0
  12. package/declarations/-private/eui-context-menu-entry.d.ts +18 -0
  13. package/declarations/-private/eui-context-menu-entry.d.ts.map +1 -0
  14. package/declarations/-private/eui-disabled-element.d.ts +24 -0
  15. package/declarations/-private/eui-disabled-element.d.ts.map +1 -0
  16. package/declarations/-private/eui-filter-group-context.d.ts +18 -0
  17. package/declarations/-private/eui-filter-group-context.d.ts.map +1 -0
  18. package/declarations/-private/eui-flyout-context.d.ts +32 -0
  19. package/declarations/-private/eui-flyout-context.d.ts.map +1 -0
  20. package/declarations/-private/eui-form-context.d.ts +18 -0
  21. package/declarations/-private/eui-form-context.d.ts.map +1 -0
  22. package/declarations/-private/eui-form-control-layout-context.d.ts +22 -0
  23. package/declarations/-private/eui-form-control-layout-context.d.ts.map +1 -0
  24. package/declarations/-private/eui-list-context.d.ts +42 -0
  25. package/declarations/-private/eui-list-context.d.ts.map +1 -0
  26. package/declarations/-private/eui-maybe-popover.d.ts +26 -0
  27. package/declarations/-private/eui-maybe-popover.d.ts.map +1 -0
  28. package/declarations/-private/eui-maybe-tool-tip.d.ts +29 -0
  29. package/declarations/-private/eui-maybe-tool-tip.d.ts.map +1 -0
  30. package/declarations/-private/eui-node.d.ts +19 -0
  31. package/declarations/-private/eui-node.d.ts.map +1 -0
  32. package/declarations/-private/eui-popover-panel-context.d.ts +19 -0
  33. package/declarations/-private/eui-popover-panel-context.d.ts.map +1 -0
  34. package/declarations/-private/eui-render-node.d.ts +19 -0
  35. package/declarations/-private/eui-render-node.d.ts.map +1 -0
  36. package/declarations/-private/eui-split-button-context.d.ts +23 -0
  37. package/declarations/-private/eui-split-button-context.d.ts.map +1 -0
  38. package/declarations/-private/eui-split-panel-context.d.ts +22 -0
  39. package/declarations/-private/eui-split-panel-context.d.ts.map +1 -0
  40. package/declarations/-private/eui-spread-attributes.d.ts +17 -0
  41. package/declarations/-private/eui-spread-attributes.d.ts.map +1 -0
  42. package/declarations/-private/eui-steps-context.d.ts +18 -0
  43. package/declarations/-private/eui-steps-context.d.ts.map +1 -0
  44. package/declarations/-private/eui-steps-horizontal-context.d.ts +15 -0
  45. package/declarations/-private/eui-steps-horizontal-context.d.ts.map +1 -0
  46. package/declarations/-private/eui-tabs-context.d.ts +16 -0
  47. package/declarations/-private/eui-tabs-context.d.ts.map +1 -0
  48. package/declarations/-private/eui-tour-parts.d.ts +28 -0
  49. package/declarations/-private/eui-tour-parts.d.ts.map +1 -0
  50. package/declarations/-private/focus-trap-effects.d.ts +14 -0
  51. package/declarations/-private/focus-trap-effects.d.ts.map +1 -0
  52. package/declarations/-private/focus-trap-registry.d.ts +20 -0
  53. package/declarations/-private/focus-trap-registry.d.ts.map +1 -0
  54. package/declarations/-private/live-text.d.ts +18 -0
  55. package/declarations/-private/live-text.d.ts.map +1 -0
  56. package/declarations/-private/next-frame.d.ts +7 -0
  57. package/declarations/-private/next-frame.d.ts.map +1 -0
  58. package/declarations/-private/removed-upstream.d.ts +12 -0
  59. package/declarations/-private/removed-upstream.d.ts.map +1 -0
  60. package/declarations/-private/search-bar.d.ts +85 -0
  61. package/declarations/-private/search-bar.d.ts.map +1 -0
  62. package/declarations/-private/table-node.d.ts +25 -0
  63. package/declarations/-private/table-node.d.ts.map +1 -0
  64. package/declarations/-private/table-pagination-defaults.d.ts +19 -0
  65. package/declarations/-private/table-pagination-defaults.d.ts.map +1 -0
  66. package/declarations/-private/tabular-copy-marker.d.ts +17 -0
  67. package/declarations/-private/tabular-copy-marker.d.ts.map +1 -0
  68. package/declarations/-private/unused-after-borealis.d.ts +12 -0
  69. package/declarations/-private/unused-after-borealis.d.ts.map +1 -0
  70. package/declarations/-private/value-modifier.d.ts +17 -0
  71. package/declarations/-private/value-modifier.d.ts.map +1 -0
  72. package/declarations/-private/window-resize.d.ts +10 -0
  73. package/declarations/-private/window-resize.d.ts.map +1 -0
  74. package/declarations/components/eui-accordion.d.ts.map +1 -1
  75. package/declarations/components/eui-auto-refresh-button.d.ts +73 -0
  76. package/declarations/components/eui-auto-refresh-button.d.ts.map +1 -0
  77. package/declarations/components/eui-auto-refresh.d.ts +73 -0
  78. package/declarations/components/eui-auto-refresh.d.ts.map +1 -0
  79. package/declarations/components/eui-banner.d.ts +132 -0
  80. package/declarations/components/eui-banner.d.ts.map +1 -0
  81. package/declarations/components/eui-basic-table/collapsed-item-actions.d.ts +40 -0
  82. package/declarations/components/eui-basic-table/collapsed-item-actions.d.ts.map +1 -0
  83. package/declarations/components/eui-basic-table/default-item-action.d.ts +28 -0
  84. package/declarations/components/eui-basic-table/default-item-action.d.ts.map +1 -0
  85. package/declarations/components/eui-basic-table/expanded-item-actions.d.ts +25 -0
  86. package/declarations/components/eui-basic-table/expanded-item-actions.d.ts.map +1 -0
  87. package/declarations/components/eui-basic-table/pagination-bar.d.ts +47 -0
  88. package/declarations/components/eui-basic-table/pagination-bar.d.ts.map +1 -0
  89. package/declarations/components/eui-basic-table-panel.d.ts +43 -0
  90. package/declarations/components/eui-basic-table-panel.d.ts.map +1 -0
  91. package/declarations/components/eui-basic-table.d.ts +264 -0
  92. package/declarations/components/eui-basic-table.d.ts.map +1 -0
  93. package/declarations/components/eui-button.d.ts.map +1 -1
  94. package/declarations/components/eui-card.d.ts.map +1 -1
  95. package/declarations/components/eui-code-block/annotation.d.ts +41 -0
  96. package/declarations/components/eui-code-block/annotation.d.ts.map +1 -0
  97. package/declarations/components/eui-collapsible-nav-group.d.ts.map +1 -1
  98. package/declarations/components/eui-combo-box/node.d.ts +21 -0
  99. package/declarations/components/eui-combo-box/node.d.ts.map +1 -0
  100. package/declarations/components/eui-combo-box/option-text.d.ts +37 -0
  101. package/declarations/components/eui-combo-box/option-text.d.ts.map +1 -0
  102. package/declarations/components/eui-container-query.d.ts +44 -0
  103. package/declarations/components/eui-container-query.d.ts.map +1 -0
  104. package/declarations/components/eui-data-grid/body-base.d.ts +66 -0
  105. package/declarations/components/eui-data-grid/body-base.d.ts.map +1 -0
  106. package/declarations/components/eui-data-grid/body.d.ts +215 -0
  107. package/declarations/components/eui-data-grid/body.d.ts.map +1 -0
  108. package/declarations/components/eui-data-grid/cell-actions.d.ts +78 -0
  109. package/declarations/components/eui-data-grid/cell-actions.d.ts.map +1 -0
  110. package/declarations/components/eui-data-grid/cell.d.ts +220 -0
  111. package/declarations/components/eui-data-grid/cell.d.ts.map +1 -0
  112. package/declarations/components/eui-data-grid/column-actions.d.ts +61 -0
  113. package/declarations/components/eui-data-grid/column-actions.d.ts.map +1 -0
  114. package/declarations/components/eui-data-grid/column-resizer.d.ts +22 -0
  115. package/declarations/components/eui-data-grid/column-resizer.d.ts.map +1 -0
  116. package/declarations/components/eui-data-grid/column-selector.d.ts +47 -0
  117. package/declarations/components/eui-data-grid/column-selector.d.ts.map +1 -0
  118. package/declarations/components/eui-data-grid/column-sorting.d.ts +61 -0
  119. package/declarations/components/eui-data-grid/column-sorting.d.ts.map +1 -0
  120. package/declarations/components/eui-data-grid/copy-marker.d.ts +16 -0
  121. package/declarations/components/eui-data-grid/copy-marker.d.ts.map +1 -0
  122. package/declarations/components/eui-data-grid/custom-body.d.ts +113 -0
  123. package/declarations/components/eui-data-grid/custom-body.d.ts.map +1 -0
  124. package/declarations/components/eui-data-grid/default-cell-popover.d.ts +23 -0
  125. package/declarations/components/eui-data-grid/default-cell-popover.d.ts.map +1 -0
  126. package/declarations/components/eui-data-grid/display-selector.d.ts +56 -0
  127. package/declarations/components/eui-data-grid/display-selector.d.ts.map +1 -0
  128. package/declarations/components/eui-data-grid/footer-row.d.ts +21 -0
  129. package/declarations/components/eui-data-grid/footer-row.d.ts.map +1 -0
  130. package/declarations/components/eui-data-grid/fullscreen-selector.d.ts +14 -0
  131. package/declarations/components/eui-data-grid/fullscreen-selector.d.ts.map +1 -0
  132. package/declarations/components/eui-data-grid/header-cell.d.ts +159 -0
  133. package/declarations/components/eui-data-grid/header-cell.d.ts.map +1 -0
  134. package/declarations/components/eui-data-grid/header-row.d.ts +91 -0
  135. package/declarations/components/eui-data-grid/header-row.d.ts.map +1 -0
  136. package/declarations/components/eui-data-grid/in-memory-renderer.d.ts +46 -0
  137. package/declarations/components/eui-data-grid/in-memory-renderer.d.ts.map +1 -0
  138. package/declarations/components/eui-data-grid/keyboard-shortcuts.d.ts +24 -0
  139. package/declarations/components/eui-data-grid/keyboard-shortcuts.d.ts.map +1 -0
  140. package/declarations/components/eui-data-grid/pagination.d.ts +31 -0
  141. package/declarations/components/eui-data-grid/pagination.d.ts.map +1 -0
  142. package/declarations/components/eui-data-grid/row-model.d.ts +81 -0
  143. package/declarations/components/eui-data-grid/row-model.d.ts.map +1 -0
  144. package/declarations/components/eui-data-grid/row-tree-hooks.d.ts +65 -0
  145. package/declarations/components/eui-data-grid/row-tree-hooks.d.ts.map +1 -0
  146. package/declarations/components/eui-data-grid/row.d.ts +26 -0
  147. package/declarations/components/eui-data-grid/row.d.ts.map +1 -0
  148. package/declarations/components/eui-data-grid/toolbar.d.ts +43 -0
  149. package/declarations/components/eui-data-grid/toolbar.d.ts.map +1 -0
  150. package/declarations/components/eui-data-grid/tree-cell.d.ts +36 -0
  151. package/declarations/components/eui-data-grid/tree-cell.d.ts.map +1 -0
  152. package/declarations/components/eui-data-grid-toolbar-control.d.ts +61 -0
  153. package/declarations/components/eui-data-grid-toolbar-control.d.ts.map +1 -0
  154. package/declarations/components/eui-data-grid.d.ts +405 -0
  155. package/declarations/components/eui-data-grid.d.ts.map +1 -0
  156. package/declarations/components/eui-emotion-button.d.ts +31 -0
  157. package/declarations/components/eui-emotion-button.d.ts.map +1 -0
  158. package/declarations/components/eui-emotion-provider.d.ts +100 -0
  159. package/declarations/components/eui-emotion-provider.d.ts.map +1 -0
  160. package/declarations/components/eui-error-message.d.ts +36 -0
  161. package/declarations/components/eui-error-message.d.ts.map +1 -0
  162. package/declarations/components/eui-expression.d.ts.map +1 -1
  163. package/declarations/components/eui-flex-grid.d.ts.map +1 -1
  164. package/declarations/components/eui-flex-item.d.ts.map +1 -1
  165. package/declarations/components/eui-flyout-menu.d.ts +194 -0
  166. package/declarations/components/eui-flyout-menu.d.ts.map +1 -0
  167. package/declarations/components/eui-flyout-resizable.d.ts +21 -0
  168. package/declarations/components/eui-flyout-resizable.d.ts.map +1 -0
  169. package/declarations/components/eui-flyout-resize-button.d.ts +25 -0
  170. package/declarations/components/eui-flyout-resize-button.d.ts.map +1 -0
  171. package/declarations/components/eui-flyout.d.ts.map +1 -1
  172. package/declarations/components/eui-focus-trap.d.ts +96 -0
  173. package/declarations/components/eui-focus-trap.d.ts.map +1 -0
  174. package/declarations/components/eui-form-append.d.ts +18 -0
  175. package/declarations/components/eui-form-append.d.ts.map +1 -0
  176. package/declarations/components/eui-form-control-button.d.ts +108 -0
  177. package/declarations/components/eui-form-control-button.d.ts.map +1 -0
  178. package/declarations/components/eui-form-control-layout/eui-form-append-prepend.d.ts +75 -0
  179. package/declarations/components/eui-form-control-layout/eui-form-append-prepend.d.ts.map +1 -0
  180. package/declarations/components/eui-form-prepend.d.ts +18 -0
  181. package/declarations/components/eui-form-prepend.d.ts.map +1 -0
  182. package/declarations/components/eui-header-logo/elastic-logo-full.d.ts +11 -0
  183. package/declarations/components/eui-header-logo/elastic-logo-full.d.ts.map +1 -0
  184. package/declarations/components/eui-illustration.d.ts +53 -0
  185. package/declarations/components/eui-illustration.d.ts.map +1 -0
  186. package/declarations/components/eui-in-memory-table.d.ts +171 -0
  187. package/declarations/components/eui-in-memory-table.d.ts.map +1 -0
  188. package/declarations/components/eui-inline-edit/eui-inline-edit-form.d.ts +205 -0
  189. package/declarations/components/eui-inline-edit/eui-inline-edit-form.d.ts.map +1 -0
  190. package/declarations/components/eui-inline-edit-text.d.ts +23 -0
  191. package/declarations/components/eui-inline-edit-text.d.ts.map +1 -0
  192. package/declarations/components/eui-inline-edit-title.d.ts +38 -0
  193. package/declarations/components/eui-inline-edit-title.d.ts.map +1 -0
  194. package/declarations/components/eui-key-pad-menu-item.d.ts.map +1 -1
  195. package/declarations/components/eui-live-announcer.d.ts +60 -0
  196. package/declarations/components/eui-live-announcer.d.ts.map +1 -0
  197. package/declarations/components/eui-markdown-format/markdown-horizontal-rule.d.ts +16 -0
  198. package/declarations/components/eui-markdown-format/markdown-horizontal-rule.d.ts.map +1 -0
  199. package/declarations/components/eui-markdown-format/markdown-link.d.ts +28 -0
  200. package/declarations/components/eui-markdown-format/markdown-link.d.ts.map +1 -0
  201. package/declarations/components/eui-notification-event.d.ts.map +1 -1
  202. package/declarations/components/eui-page-body.d.ts +2 -1
  203. package/declarations/components/eui-page-body.d.ts.map +1 -1
  204. package/declarations/components/eui-page-content-body.d.ts +2 -1
  205. package/declarations/components/eui-page-content-body.d.ts.map +1 -1
  206. package/declarations/components/eui-page-content.d.ts +1 -1
  207. package/declarations/components/eui-page-content.d.ts.map +1 -1
  208. package/declarations/components/eui-page-section.d.ts +76 -0
  209. package/declarations/components/eui-page-section.d.ts.map +1 -0
  210. package/declarations/components/eui-page-sidebar.d.ts +60 -0
  211. package/declarations/components/eui-page-sidebar.d.ts.map +1 -0
  212. package/declarations/components/eui-page-template/bottom-bar.d.ts +54 -0
  213. package/declarations/components/eui-page-template/bottom-bar.d.ts.map +1 -0
  214. package/declarations/components/eui-page-template/empty-prompt.d.ts +91 -0
  215. package/declarations/components/eui-page-template/empty-prompt.d.ts.map +1 -0
  216. package/declarations/components/eui-page-template/sidebar.d.ts +32 -0
  217. package/declarations/components/eui-page-template/sidebar.d.ts.map +1 -0
  218. package/declarations/components/eui-page-template.d.ts +16 -15
  219. package/declarations/components/eui-page-template.d.ts.map +1 -1
  220. package/declarations/components/eui-page.d.ts +2 -1
  221. package/declarations/components/eui-page.d.ts.map +1 -1
  222. package/declarations/components/eui-pagination/arrow-button.d.ts +26 -0
  223. package/declarations/components/eui-pagination/arrow-button.d.ts.map +1 -0
  224. package/declarations/components/eui-pagination.d.ts.map +1 -1
  225. package/declarations/components/eui-panel.d.ts.map +1 -1
  226. package/declarations/components/eui-pretty-duration.d.ts +29 -0
  227. package/declarations/components/eui-pretty-duration.d.ts.map +1 -0
  228. package/declarations/components/eui-refresh-interval.d.ts +2 -0
  229. package/declarations/components/eui-refresh-interval.d.ts.map +1 -1
  230. package/declarations/components/eui-screen-reader-live.d.ts +75 -0
  231. package/declarations/components/eui-screen-reader-live.d.ts.map +1 -0
  232. package/declarations/components/eui-search-bar/eui-search-box.d.ts +106 -0
  233. package/declarations/components/eui-search-bar/eui-search-box.d.ts.map +1 -0
  234. package/declarations/components/eui-search-bar/field-value-selection-filter.d.ts +70 -0
  235. package/declarations/components/eui-search-bar/field-value-selection-filter.d.ts.map +1 -0
  236. package/declarations/components/eui-search-bar/field-value-toggle-filter.d.ts +23 -0
  237. package/declarations/components/eui-search-bar/field-value-toggle-filter.d.ts.map +1 -0
  238. package/declarations/components/eui-search-bar/field-value-toggle-group-filter.d.ts +26 -0
  239. package/declarations/components/eui-search-bar/field-value-toggle-group-filter.d.ts.map +1 -0
  240. package/declarations/components/eui-search-bar/is-filter.d.ts +23 -0
  241. package/declarations/components/eui-search-bar/is-filter.d.ts.map +1 -0
  242. package/declarations/components/eui-search-bar-filters.d.ts +28 -0
  243. package/declarations/components/eui-search-bar-filters.d.ts.map +1 -0
  244. package/declarations/components/eui-search-bar.d.ts +134 -0
  245. package/declarations/components/eui-search-bar.d.ts.map +1 -0
  246. package/declarations/components/eui-selectable-list/option-text.d.ts +31 -0
  247. package/declarations/components/eui-selectable-list/option-text.d.ts.map +1 -0
  248. package/declarations/components/eui-side-nav.d.ts.map +1 -1
  249. package/declarations/components/eui-skeleton-circle.d.ts +60 -0
  250. package/declarations/components/eui-skeleton-circle.d.ts.map +1 -0
  251. package/declarations/components/eui-skeleton-loading/screen-reader-live.d.ts +60 -0
  252. package/declarations/components/eui-skeleton-loading/screen-reader-live.d.ts.map +1 -0
  253. package/declarations/components/eui-skeleton-loading.d.ts +86 -0
  254. package/declarations/components/eui-skeleton-loading.d.ts.map +1 -0
  255. package/declarations/components/eui-skeleton-rectangle.d.ts +70 -0
  256. package/declarations/components/eui-skeleton-rectangle.d.ts.map +1 -0
  257. package/declarations/components/eui-skeleton-text.d.ts +64 -0
  258. package/declarations/components/eui-skeleton-text.d.ts.map +1 -0
  259. package/declarations/components/eui-skeleton-title.d.ts +60 -0
  260. package/declarations/components/eui-skeleton-title.d.ts.map +1 -0
  261. package/declarations/components/eui-split-button/eui-split-button-action-primary.d.ts +58 -0
  262. package/declarations/components/eui-split-button/eui-split-button-action-primary.d.ts.map +1 -0
  263. package/declarations/components/eui-split-button/eui-split-button-action-secondary.d.ts +63 -0
  264. package/declarations/components/eui-split-button/eui-split-button-action-secondary.d.ts.map +1 -0
  265. package/declarations/components/eui-split-button.d.ts +76 -0
  266. package/declarations/components/eui-split-button.d.ts.map +1 -0
  267. package/declarations/components/eui-stat/description.d.ts.map +1 -1
  268. package/declarations/components/eui-stat/title.d.ts.map +1 -1
  269. package/declarations/components/eui-suggest-item.d.ts.map +1 -1
  270. package/declarations/components/eui-super-date-picker/date-popover/eui-time-zone-display.d.ts +59 -0
  271. package/declarations/components/eui-super-date-picker/date-popover/eui-time-zone-display.d.ts.map +1 -0
  272. package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select-panel.d.ts +46 -0
  273. package/declarations/components/eui-super-date-picker/eui-quick-select-popover/eui-quick-select-panel.d.ts.map +1 -0
  274. package/declarations/components/eui-super-date-picker/eui-time-window-buttons.d.ts +63 -0
  275. package/declarations/components/eui-super-date-picker/eui-time-window-buttons.d.ts.map +1 -0
  276. package/declarations/components/eui-super-date-picker/utils/pretty-interval.d.ts +14 -0
  277. package/declarations/components/eui-super-date-picker/utils/pretty-interval.d.ts.map +1 -0
  278. package/declarations/components/eui-super-date-picker/utils/time-window.d.ts +34 -0
  279. package/declarations/components/eui-super-date-picker/utils/time-window.d.ts.map +1 -0
  280. package/declarations/components/eui-super-date-picker.d.ts +1 -1
  281. package/declarations/components/eui-super-date-picker.d.ts.map +1 -1
  282. package/declarations/components/eui-tabbed-content.d.ts.map +1 -1
  283. package/declarations/components/eui-table/sticky-header.d.ts +56 -0
  284. package/declarations/components/eui-table/sticky-header.d.ts.map +1 -0
  285. package/declarations/components/eui-table/sticky-scrollbar.d.ts +47 -0
  286. package/declarations/components/eui-table/sticky-scrollbar.d.ts.map +1 -0
  287. package/declarations/components/eui-table-header-cell.d.ts.map +1 -1
  288. package/declarations/components/eui-text-block-truncate.d.ts +42 -0
  289. package/declarations/components/eui-text-block-truncate.d.ts.map +1 -0
  290. package/declarations/components/eui-text-truncate.d.ts +116 -0
  291. package/declarations/components/eui-text-truncate.d.ts.map +1 -0
  292. package/declarations/components/eui-timeline-item-event.d.ts +21 -0
  293. package/declarations/components/eui-timeline-item-event.d.ts.map +1 -0
  294. package/declarations/components/eui-timeline-item-icon.d.ts +41 -0
  295. package/declarations/components/eui-timeline-item-icon.d.ts.map +1 -0
  296. package/declarations/components/eui-timeline-item.d.ts +46 -0
  297. package/declarations/components/eui-timeline-item.d.ts.map +1 -0
  298. package/declarations/components/eui-timeline.d.ts +24 -0
  299. package/declarations/components/eui-timeline.d.ts.map +1 -0
  300. package/declarations/components/eui-window-event.d.ts +16 -0
  301. package/declarations/components/eui-window-event.d.ts.map +1 -0
  302. package/declarations/helpers/eui-page-restrict-width.d.ts.map +1 -1
  303. package/declarations/modifiers/container-query.d.ts +26 -0
  304. package/declarations/modifiers/container-query.d.ts.map +1 -0
  305. package/declarations/services/eui-emotion.d.ts +21 -0
  306. package/declarations/services/eui-emotion.d.ts.map +1 -0
  307. package/declarations/services/eui-flyout-manager.d.ts +103 -0
  308. package/declarations/services/eui-flyout-manager.d.ts.map +1 -0
  309. package/declarations/theming.d.ts +84 -0
  310. package/declarations/theming.d.ts.map +1 -0
  311. package/declarations/utils/color/eui_palettes_deprecated.d.ts +20 -0
  312. package/declarations/utils/color/eui_palettes_deprecated.d.ts.map +1 -0
  313. package/declarations/utils/container-query/match-container.d.ts +85 -0
  314. package/declarations/utils/container-query/match-container.d.ts.map +1 -0
  315. package/declarations/utils/data-grid/focus.d.ts +33 -0
  316. package/declarations/utils/data-grid/focus.d.ts.map +1 -0
  317. package/declarations/utils/data-grid/row-heights.d.ts +26 -0
  318. package/declarations/utils/data-grid/row-heights.d.ts.map +1 -0
  319. package/declarations/utils/data-grid/row-tree.d.ts +102 -0
  320. package/declarations/utils/data-grid/row-tree.d.ts.map +1 -0
  321. package/declarations/utils/data-grid/scheduling.d.ts +12 -0
  322. package/declarations/utils/data-grid/scheduling.d.ts.map +1 -0
  323. package/declarations/utils/data-grid/schema.d.ts +21 -0
  324. package/declarations/utils/data-grid/schema.d.ts.map +1 -0
  325. package/declarations/utils/data-grid/sorting.d.ts +13 -0
  326. package/declarations/utils/data-grid/sorting.d.ts.map +1 -0
  327. package/declarations/utils/data-grid/tabular-copy.d.ts +25 -0
  328. package/declarations/utils/data-grid/tabular-copy.d.ts.map +1 -0
  329. package/declarations/utils/data-grid/toolbar.d.ts +14 -0
  330. package/declarations/utils/data-grid/toolbar.d.ts.map +1 -0
  331. package/declarations/utils/data-grid/types.d.ts +495 -0
  332. package/declarations/utils/data-grid/types.d.ts.map +1 -0
  333. package/declarations/utils/emotion/consume.d.ts +10 -0
  334. package/declarations/utils/emotion/consume.d.ts.map +1 -0
  335. package/declarations/utils/emotion/context.d.ts +56 -0
  336. package/declarations/utils/emotion/context.d.ts.map +1 -0
  337. package/declarations/utils/emotion/system.d.ts +27 -0
  338. package/declarations/utils/emotion/system.d.ts.map +1 -0
  339. package/declarations/utils/emotion/theme.d.ts +27 -0
  340. package/declarations/utils/emotion/theme.d.ts.map +1 -0
  341. package/declarations/utils/eui/buttons-misc.d.ts +21 -0
  342. package/declarations/utils/eui/buttons-misc.d.ts.map +1 -0
  343. package/declarations/utils/eui/code-block.d.ts +16 -0
  344. package/declarations/utils/eui/code-block.d.ts.map +1 -0
  345. package/declarations/utils/eui/color-picker.d.ts +43 -0
  346. package/declarations/utils/eui/color-picker.d.ts.map +1 -0
  347. package/declarations/utils/eui/combo-box.d.ts +130 -0
  348. package/declarations/utils/eui/combo-box.d.ts.map +1 -0
  349. package/declarations/utils/eui/content-blocks.d.ts +14 -0
  350. package/declarations/utils/eui/content-blocks.d.ts.map +1 -0
  351. package/declarations/utils/eui/control-bar.d.ts +36 -0
  352. package/declarations/utils/eui/control-bar.d.ts.map +1 -0
  353. package/declarations/utils/eui/css-variables.d.ts +34 -0
  354. package/declarations/utils/eui/css-variables.d.ts.map +1 -0
  355. package/declarations/utils/eui/data-grid.d.ts +20 -0
  356. package/declarations/utils/eui/data-grid.d.ts.map +1 -0
  357. package/declarations/utils/eui/date-pickers.d.ts +73 -0
  358. package/declarations/utils/eui/date-pickers.d.ts.map +1 -0
  359. package/declarations/utils/eui/flyout-manager/actions.d.ts +168 -0
  360. package/declarations/utils/eui/flyout-manager/actions.d.ts.map +1 -0
  361. package/declarations/utils/eui/flyout-manager/activity-stage.d.ts +27 -0
  362. package/declarations/utils/eui/flyout-manager/activity-stage.d.ts.map +1 -0
  363. package/declarations/utils/eui/flyout-manager/const.d.ts +49 -0
  364. package/declarations/utils/eui/flyout-manager/const.d.ts.map +1 -0
  365. package/declarations/utils/eui/flyout-manager/history.d.ts +9 -0
  366. package/declarations/utils/eui/flyout-manager/history.d.ts.map +1 -0
  367. package/declarations/utils/eui/flyout-manager/layout-mode.d.ts +15 -0
  368. package/declarations/utils/eui/flyout-manager/layout-mode.d.ts.map +1 -0
  369. package/declarations/utils/eui/flyout-manager/reducer.d.ts +11 -0
  370. package/declarations/utils/eui/flyout-manager/reducer.d.ts.map +1 -0
  371. package/declarations/utils/eui/flyout-manager/selectors.d.ts +34 -0
  372. package/declarations/utils/eui/flyout-manager/selectors.d.ts.map +1 -0
  373. package/declarations/utils/eui/flyout-manager/types.d.ts +84 -0
  374. package/declarations/utils/eui/flyout-manager/types.d.ts.map +1 -0
  375. package/declarations/utils/eui/flyout-manager/validation.d.ts +30 -0
  376. package/declarations/utils/eui/flyout-manager/validation.d.ts.map +1 -0
  377. package/declarations/utils/eui/flyout-menu.d.ts +12 -0
  378. package/declarations/utils/eui/flyout-menu.d.ts.map +1 -0
  379. package/declarations/utils/eui/form-controls.d.ts +36 -0
  380. package/declarations/utils/eui/form-controls.d.ts.map +1 -0
  381. package/declarations/utils/eui/format.d.ts +43 -0
  382. package/declarations/utils/eui/format.d.ts.map +1 -0
  383. package/declarations/utils/eui/global-styles.d.ts +11 -0
  384. package/declarations/utils/eui/global-styles.d.ts.map +1 -0
  385. package/declarations/utils/eui/lists.d.ts +20 -0
  386. package/declarations/utils/eui/lists.d.ts.map +1 -0
  387. package/declarations/utils/eui/markdown.d.ts +16 -0
  388. package/declarations/utils/eui/markdown.d.ts.map +1 -0
  389. package/declarations/utils/eui/modal-flyout.d.ts +63 -0
  390. package/declarations/utils/eui/modal-flyout.d.ts.map +1 -0
  391. package/declarations/utils/eui/notification-event.d.ts +23 -0
  392. package/declarations/utils/eui/notification-event.d.ts.map +1 -0
  393. package/declarations/utils/eui/page-layout.d.ts +39 -0
  394. package/declarations/utils/eui/page-layout.d.ts.map +1 -0
  395. package/declarations/utils/eui/range.d.ts +37 -0
  396. package/declarations/utils/eui/range.d.ts.map +1 -0
  397. package/declarations/utils/eui/search-bar/ast-to-es-query-dsl.d.ts +38 -0
  398. package/declarations/utils/eui/search-bar/ast-to-es-query-dsl.d.ts.map +1 -0
  399. package/declarations/utils/eui/search-bar/ast-to-es-query-string.d.ts +3 -0
  400. package/declarations/utils/eui/search-bar/ast-to-es-query-string.d.ts.map +1 -0
  401. package/declarations/utils/eui/search-bar/ast.d.ts +287 -0
  402. package/declarations/utils/eui/search-bar/ast.d.ts.map +1 -0
  403. package/declarations/utils/eui/search-bar/date-format.d.ts +28 -0
  404. package/declarations/utils/eui/search-bar/date-format.d.ts.map +1 -0
  405. package/declarations/utils/eui/search-bar/date-value.d.ts +19 -0
  406. package/declarations/utils/eui/search-bar/date-value.d.ts.map +1 -0
  407. package/declarations/utils/eui/search-bar/default-syntax-parser.d.ts +9 -0
  408. package/declarations/utils/eui/search-bar/default-syntax-parser.d.ts.map +1 -0
  409. package/declarations/utils/eui/search-bar/default-syntax.d.ts +17 -0
  410. package/declarations/utils/eui/search-bar/default-syntax.d.ts.map +1 -0
  411. package/declarations/utils/eui/search-bar/execute-ast.d.ts +20 -0
  412. package/declarations/utils/eui/search-bar/execute-ast.d.ts.map +1 -0
  413. package/declarations/utils/eui/search-bar/index.d.ts +10 -0
  414. package/declarations/utils/eui/search-bar/index.d.ts.map +1 -0
  415. package/declarations/utils/eui/search-bar/operators.d.ts +16 -0
  416. package/declarations/utils/eui/search-bar/operators.d.ts.map +1 -0
  417. package/declarations/utils/eui/search-bar/predicate.d.ts +8 -0
  418. package/declarations/utils/eui/search-bar/predicate.d.ts.map +1 -0
  419. package/declarations/utils/eui/search-bar/query.d.ts +89 -0
  420. package/declarations/utils/eui/search-bar/query.d.ts.map +1 -0
  421. package/declarations/utils/eui/selectable.d.ts +33 -0
  422. package/declarations/utils/eui/selectable.d.ts.map +1 -0
  423. package/declarations/utils/eui/sort.d.ts +23 -0
  424. package/declarations/utils/eui/sort.d.ts.map +1 -0
  425. package/declarations/utils/eui/split-button.d.ts +13 -0
  426. package/declarations/utils/eui/split-button.d.ts.map +1 -0
  427. package/declarations/utils/eui/styles.d.ts +37 -0
  428. package/declarations/utils/eui/styles.d.ts.map +1 -0
  429. package/declarations/utils/eui/styles.generated.d.ts +4467 -0
  430. package/declarations/utils/eui/styles.generated.d.ts.map +1 -0
  431. package/declarations/utils/eui/suggest.d.ts +24 -0
  432. package/declarations/utils/eui/suggest.d.ts.map +1 -0
  433. package/declarations/utils/eui/table.d.ts +12 -0
  434. package/declarations/utils/eui/table.d.ts.map +1 -0
  435. package/declarations/utils/eui/text-truncate.d.ts +5 -0
  436. package/declarations/utils/eui/text-truncate.d.ts.map +1 -0
  437. package/declarations/utils/eui/theme.d.ts +30 -0
  438. package/declarations/utils/eui/theme.d.ts.map +1 -0
  439. package/declarations/utils/eui/token.d.ts +7 -0
  440. package/declarations/utils/eui/token.d.ts.map +1 -0
  441. package/declarations/utils/eui/utilities.d.ts +18 -0
  442. package/declarations/utils/eui/utilities.d.ts.map +1 -0
  443. package/declarations/utils/html-id-generator.d.ts +11 -0
  444. package/declarations/utils/html-id-generator.d.ts.map +1 -0
  445. package/declarations/utils/markdown/plugins/markdown-link-validator.d.ts +53 -0
  446. package/declarations/utils/markdown/plugins/markdown-link-validator.d.ts.map +1 -0
  447. package/declarations/utils/markdown/remark/remark-intraword-underscore.d.ts +4 -0
  448. package/declarations/utils/markdown/remark/remark-intraword-underscore.d.ts.map +1 -0
  449. package/declarations/utils/pretty-duration.d.ts +12 -0
  450. package/declarations/utils/pretty-duration.d.ts.map +1 -0
  451. package/dist/components/eui-accordion.js +1 -3
  452. package/dist/components/eui-accordion.js.map +1 -1
  453. package/dist/components/eui-button.js +0 -2
  454. package/dist/components/eui-button.js.map +1 -1
  455. package/dist/components/eui-card.js +0 -2
  456. package/dist/components/eui-card.js.map +1 -1
  457. package/dist/components/eui-collapsible-nav-group.js +1 -3
  458. package/dist/components/eui-collapsible-nav-group.js.map +1 -1
  459. package/dist/components/eui-expression.js +0 -2
  460. package/dist/components/eui-expression.js.map +1 -1
  461. package/dist/components/eui-flex-grid.js +1 -3
  462. package/dist/components/eui-flex-grid.js.map +1 -1
  463. package/dist/components/eui-flex-item.js +1 -3
  464. package/dist/components/eui-flex-item.js.map +1 -1
  465. package/dist/components/eui-flyout.js +0 -2
  466. package/dist/components/eui-flyout.js.map +1 -1
  467. package/dist/components/eui-key-pad-menu-item.js +0 -2
  468. package/dist/components/eui-key-pad-menu-item.js.map +1 -1
  469. package/dist/components/eui-notification-event.js +0 -2
  470. package/dist/components/eui-notification-event.js.map +1 -1
  471. package/dist/components/eui-page-body.js +1 -3
  472. package/dist/components/eui-page-body.js.map +1 -1
  473. package/dist/components/eui-page-content-body.js.map +1 -1
  474. package/dist/components/eui-page-content.js.map +1 -1
  475. package/dist/components/eui-page-template.js +5 -5
  476. package/dist/components/eui-page-template.js.map +1 -1
  477. package/dist/components/eui-page.js.map +1 -1
  478. package/dist/components/eui-pagination.js +7 -4
  479. package/dist/components/eui-pagination.js.map +1 -1
  480. package/dist/components/eui-panel.js +1 -1
  481. package/dist/components/eui-panel.js.map +1 -1
  482. package/dist/components/eui-range.js +1 -1
  483. package/dist/components/eui-range.js.map +1 -1
  484. package/dist/components/eui-refresh-interval.js +22 -1
  485. package/dist/components/eui-refresh-interval.js.map +1 -1
  486. package/dist/components/eui-side-nav.js +0 -2
  487. package/dist/components/eui-side-nav.js.map +1 -1
  488. package/dist/components/eui-stat/description.js +0 -2
  489. package/dist/components/eui-stat/description.js.map +1 -1
  490. package/dist/components/eui-stat/title.js +0 -2
  491. package/dist/components/eui-stat/title.js.map +1 -1
  492. package/dist/components/eui-suggest-item.js +0 -2
  493. package/dist/components/eui-suggest-item.js.map +1 -1
  494. package/dist/components/eui-super-date-picker.js.map +1 -1
  495. package/dist/components/eui-tabbed-content.js +6 -5
  496. package/dist/components/eui-tabbed-content.js.map +1 -1
  497. package/dist/components/eui-table-header-cell.js +0 -2
  498. package/dist/components/eui-table-header-cell.js.map +1 -1
  499. package/dist/helpers/eui-page-restrict-width.js +1 -1
  500. package/dist/helpers/eui-page-restrict-width.js.map +1 -1
  501. package/dist/icons-CQELx6Ce.js.map +1 -1
  502. package/package.json +5 -6
@@ -1 +1 @@
1
- {"version":3,"file":"eui-collapsible-nav-group.js","sources":["../../src/components/eui-collapsible-nav-group.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport { element } from 'ember-element-helper';\nimport { and, or } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiAccordion from './eui-accordion.gts';\nimport EuiFlexGroup from './eui-flex-group.gts';\nimport EuiFlexItem from './eui-flex-item.gts';\nimport EuiIcon from './eui-icon.gts';\n\nimport type { EuiAccordionSignature } from './eui-accordion';\nimport type { EuiIconSignature } from './eui-icon';\nimport type { EuiTitleSignature } from './eui-title';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiCollapsibleNavGroupSignature {\n Element: EuiAccordionSignature['Element'];\n Args: {\n /** Id of the group. Defaults to a random id. */\n id?: string;\n /** Tag of the title, e.g. `'h2'` or `'div'`. Defaults to `'h3'`. */\n titleElement?: string;\n /**\n * Makes the group an accordion that opens and closes from its title\n * (needs a `<:title>` block).\n */\n isCollapsible?: boolean;\n /** Whether a collapsible group starts open. Defaults to `true`. */\n initialIsOpen?: boolean;\n /** Icon before the title; anything `EuiIcon`'s `@type` accepts. */\n iconType?: EuiIconSignature['Args']['type'];\n /** Size of the icon. Defaults to `'l'`. */\n iconSize?: EuiIconSignature['Args']['size'];\n /** Same as `@titleElement`, limited to `EuiTitle`'s tags. Defaults to `'h3'`. */\n titleTagName?: EuiTitleSignature['Args']['tagName'];\n /** Size of the title, any `EuiTitle` size. Defaults to `'xxs'`. */\n titleSize?: EuiTitleSignature['Args']['size'];\n /**\n * Background of the group: `'none'`, `'light'` or `'dark'`.\n * Defaults to `'none'`.\n */\n background?: string;\n };\n Blocks: {\n /** Unused, use `<:title>` and `<:content>`. */\n default: [];\n /** The group's title; without it the group has no heading. */\n title: [];\n /** The group's links, e.g. an `EuiListGroup`. */\n content: [];\n };\n}\n\nconst EuiCollapsibleNavGroup: TemplateOnlyComponent<EuiCollapsibleNavGroupSignature> =\n <template>\n {{#let\n (argOrDefault @id (randomId)) (or @titleElement @titleTagName \"h3\")\n as |groupID titleElement|\n }}\n {{#let (concat groupID \"__title\") as |titleID|}}\n {{#if (and @isCollapsible (has-block \"title\"))}}\n <EuiAccordion\n id={{groupID}}\n class={{classNames\n (if (has-block \"title\") \"euiCollapsibleNavGroup--withHeading\")\n componentName=\"EuiCollapsibleNavGroup\"\n backgroundColor=(argOrDefault @background \"none\")\n }}\n @buttonClassName=\"euiCollapsibleNavGroup__heading\"\n @initialIsOpen={{argOrDefault @initialIsOpen true}}\n @arrowDisplay=\"right\"\n ...attributes\n >\n <:buttonContent>\n <EuiFlexGroup\n @gutterSize=\"m\"\n @alignItems=\"center\"\n @responsive={{false}}\n >\n {{#if @iconType}}\n <EuiFlexItem @grow={{false}}>\n <EuiIcon\n @type={{@iconType}}\n @size={{argOrDefault @iconSize \"l\"}}\n />\n </EuiFlexItem>\n {{/if}}\n <EuiFlexItem>\n {{#let (element titleElement) as |TitleElement|}}\n <TitleElement\n id={{titleID}}\n class={{classNames\n \"euiCollapsibleNavGroup__title\"\n componentName=\"EuiTitle\"\n size=(argOrDefault @titleSize \"xxs\")\n }}\n >\n {{yield to=\"title\"}}\n </TitleElement>\n {{/let}}\n </EuiFlexItem>\n </EuiFlexGroup>\n </:buttonContent>\n <:content>\n {{#if (has-block \"content\")}}\n <div class=\"euiCollapsibleNavGroup__children\">\n {{yield to=\"content\"}}\n </div>\n {{/if}}\n </:content>\n </EuiAccordion>\n {{else}}\n <div\n id={{groupID}}\n class={{classNames\n (if (has-block \"title\") \"euiCollapsibleNavGroup--withHeading\")\n componentName=\"EuiCollapsibleNavGroup\"\n backgroundColor=(argOrDefault @background \"none\")\n }}\n ...attributes\n >\n {{#if (has-block \"title\")}}\n <div class=\"euiCollapsibleNavGroup__heading\">\n <EuiFlexGroup\n @gutterSize=\"m\"\n @alignItems=\"center\"\n @responsive={{false}}\n >\n {{#if @iconType}}\n <EuiFlexItem @grow={{false}}>\n <EuiIcon\n @type={{@iconType}}\n @size={{argOrDefault @iconSize \"l\"}}\n />\n </EuiFlexItem>\n {{/if}}\n <EuiFlexItem>\n {{#let (element titleElement) as |TitleElement|}}\n <TitleElement\n id={{titleID}}\n class={{classNames\n \"euiCollapsibleNavGroup__title\"\n componentName=\"EuiTitle\"\n size=(argOrDefault @titleSize \"xxs\")\n }}\n >\n {{yield to=\"title\"}}\n </TitleElement>\n {{/let}}\n </EuiFlexItem>\n </EuiFlexGroup>\n </div>\n {{/if}}\n {{#if (has-block \"content\")}}\n <div class=\"euiCollapsibleNavGroup__children\">\n {{yield to=\"content\"}}\n </div>\n {{/if}}\n </div>\n {{/if}}\n {{/let}}\n {{/let}}\n </template>;\n\nexport default EuiCollapsibleNavGroup;\n"],"names":["EuiCollapsibleNavGroup","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","or","concat","and","EuiAccordion","classNames","EuiFlexGroup","EuiFlexItem","EuiIcon","element","templateOnly"],"mappings":";;;;;;;;;;;;;;AAwDA,MAAMA,sBAA8C,GAAAC,oBAAA,CAClDC,kBAAA,CAAA,u3FAAA,EA4GA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,EAAA;IAAAC,MAAA;IAAAC,GAAA;kBAAAC,qBAAA;IAAAC,UAAA;IAAAC,YAAA;IAAAC,WAAA;IAAAC,OAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-collapsible-nav-group.js","sources":["../../src/components/eui-collapsible-nav-group.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport { and, or } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiAccordion from './eui-accordion.gts';\nimport EuiFlexGroup from './eui-flex-group.gts';\nimport EuiFlexItem from './eui-flex-item.gts';\nimport EuiIcon from './eui-icon.gts';\n\nimport type { EuiAccordionSignature } from './eui-accordion';\nimport type { EuiIconSignature } from './eui-icon';\nimport type { EuiTitleSignature } from './eui-title';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiCollapsibleNavGroupSignature {\n Element: EuiAccordionSignature['Element'];\n Args: {\n /** Id of the group. Defaults to a random id. */\n id?: string;\n /** Tag of the title, e.g. `'h2'` or `'div'`. Defaults to `'h3'`. */\n titleElement?: string;\n /**\n * Makes the group an accordion that opens and closes from its title\n * (needs a `<:title>` block).\n */\n isCollapsible?: boolean;\n /** Whether a collapsible group starts open. Defaults to `true`. */\n initialIsOpen?: boolean;\n /** Icon before the title; anything `EuiIcon`'s `@type` accepts. */\n iconType?: EuiIconSignature['Args']['type'];\n /** Size of the icon. Defaults to `'l'`. */\n iconSize?: EuiIconSignature['Args']['size'];\n /** Same as `@titleElement`, limited to `EuiTitle`'s tags. Defaults to `'h3'`. */\n titleTagName?: EuiTitleSignature['Args']['tagName'];\n /** Size of the title, any `EuiTitle` size. Defaults to `'xxs'`. */\n titleSize?: EuiTitleSignature['Args']['size'];\n /**\n * Background of the group: `'none'`, `'light'` or `'dark'`.\n * Defaults to `'none'`.\n */\n background?: string;\n };\n Blocks: {\n /** Unused, use `<:title>` and `<:content>`. */\n default: [];\n /** The group's title; without it the group has no heading. */\n title: [];\n /** The group's links, e.g. an `EuiListGroup`. */\n content: [];\n };\n}\n\nconst EuiCollapsibleNavGroup: TemplateOnlyComponent<EuiCollapsibleNavGroupSignature> =\n <template>\n {{#let\n (argOrDefault @id (randomId)) (or @titleElement @titleTagName \"h3\")\n as |groupID titleElement|\n }}\n {{#let (concat groupID \"__title\") as |titleID|}}\n {{#if (and @isCollapsible (has-block \"title\"))}}\n <EuiAccordion\n id={{groupID}}\n class={{classNames\n (if (has-block \"title\") \"euiCollapsibleNavGroup--withHeading\")\n componentName=\"EuiCollapsibleNavGroup\"\n backgroundColor=(argOrDefault @background \"none\")\n }}\n @buttonClassName=\"euiCollapsibleNavGroup__heading\"\n @initialIsOpen={{argOrDefault @initialIsOpen true}}\n @arrowDisplay=\"right\"\n ...attributes\n >\n <:buttonContent>\n <EuiFlexGroup\n @gutterSize=\"m\"\n @alignItems=\"center\"\n @responsive={{false}}\n >\n {{#if @iconType}}\n <EuiFlexItem @grow={{false}}>\n <EuiIcon\n @type={{@iconType}}\n @size={{argOrDefault @iconSize \"l\"}}\n />\n </EuiFlexItem>\n {{/if}}\n <EuiFlexItem>\n {{#let (element titleElement) as |TitleElement|}}\n <TitleElement\n id={{titleID}}\n class={{classNames\n \"euiCollapsibleNavGroup__title\"\n componentName=\"EuiTitle\"\n size=(argOrDefault @titleSize \"xxs\")\n }}\n >\n {{yield to=\"title\"}}\n </TitleElement>\n {{/let}}\n </EuiFlexItem>\n </EuiFlexGroup>\n </:buttonContent>\n <:content>\n {{#if (has-block \"content\")}}\n <div class=\"euiCollapsibleNavGroup__children\">\n {{yield to=\"content\"}}\n </div>\n {{/if}}\n </:content>\n </EuiAccordion>\n {{else}}\n <div\n id={{groupID}}\n class={{classNames\n (if (has-block \"title\") \"euiCollapsibleNavGroup--withHeading\")\n componentName=\"EuiCollapsibleNavGroup\"\n backgroundColor=(argOrDefault @background \"none\")\n }}\n ...attributes\n >\n {{#if (has-block \"title\")}}\n <div class=\"euiCollapsibleNavGroup__heading\">\n <EuiFlexGroup\n @gutterSize=\"m\"\n @alignItems=\"center\"\n @responsive={{false}}\n >\n {{#if @iconType}}\n <EuiFlexItem @grow={{false}}>\n <EuiIcon\n @type={{@iconType}}\n @size={{argOrDefault @iconSize \"l\"}}\n />\n </EuiFlexItem>\n {{/if}}\n <EuiFlexItem>\n {{#let (element titleElement) as |TitleElement|}}\n <TitleElement\n id={{titleID}}\n class={{classNames\n \"euiCollapsibleNavGroup__title\"\n componentName=\"EuiTitle\"\n size=(argOrDefault @titleSize \"xxs\")\n }}\n >\n {{yield to=\"title\"}}\n </TitleElement>\n {{/let}}\n </EuiFlexItem>\n </EuiFlexGroup>\n </div>\n {{/if}}\n {{#if (has-block \"content\")}}\n <div class=\"euiCollapsibleNavGroup__children\">\n {{yield to=\"content\"}}\n </div>\n {{/if}}\n </div>\n {{/if}}\n {{/let}}\n {{/let}}\n </template>;\n\nexport default EuiCollapsibleNavGroup;\n"],"names":["EuiCollapsibleNavGroup","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","randomId","or","concat","and","EuiAccordion","classNames","EuiFlexGroup","EuiFlexItem","EuiIcon","templateOnly"],"mappings":";;;;;;;;;;;;;AAuDA,MAAMA,sBAA8C,GAAAC,oBAAA,CAClDC,kBAAA,CAAA,u3FAAA,EA4GA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,EAAA;IAAAC,MAAA;IAAAC,GAAA;kBAAAC,qBAAA;IAAAC,UAAA;IAAAC,YAAA;IAAAC,WAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -1,6 +1,5 @@
1
1
  import { hash } from '@ember/helper';
2
2
  import { on } from '@ember/modifier';
3
- import { element } from 'ember-element-helper';
4
3
  import cssStyle from '../-private/css-style.js';
5
4
  import EuiIcon from './eui-icon.js';
6
5
  import { precompileTemplate } from '@ember/template-compilation';
@@ -28,7 +27,6 @@ function noop() {}
28
27
  const EuiExpression = setComponentTemplate(precompileTemplate("{{#let (element (if @onClick \"button\" \"span\")) as |Tag|}}\n <Tag class={{classes @color @isInvalid @isActive (if @onClick true false) @uppercase @display @textWrap}} type={{if @onClick \"button\"}} {{on \"click\" (if @onClick @onClick noop)}} ...attributes>\n <span class=\"euiExpression__description\" style={{if (isColumns @display) (cssStyle (hash flexBasis=(if @descriptionWidth @descriptionWidth \"20%\")))}}>\n {{~#if (has-block \"description\")~}}\n {{yield to=\"description\"}}\n {{~else~}}\n {{@description}}\n {{~/if~}}\n </span>\n {{#if (has-block \"value\")}}\n <span class=\"euiExpression__value\">{{yield to=\"value\"}}</span>\n {{else if @value}}\n <span class=\"euiExpression__value\">{{@value}}</span>\n {{/if}}\n {{#if @isInvalid}}\n <EuiIcon class=\"euiExpression__icon\" @type=\"alert\" @color=\"danger\" />\n {{/if}}\n </Tag>\n{{/let}}", {
29
28
  strictMode: true,
30
29
  scope: () => ({
31
- element,
32
30
  classes,
33
31
  on,
34
32
  noop,
@@ -1 +1 @@
1
- {"version":3,"file":"eui-expression.js","sources":["../../src/components/eui-expression.gts"],"sourcesContent":["import { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\n\nimport { element } from 'ember-element-helper';\n\nimport cssStyle from '../-private/css-style.ts';\nimport EuiIcon from './eui-icon.gts';\n\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nconst COLORS = {\n subdued: 'euiExpression--subdued',\n primary: 'euiExpression--primary',\n success: 'euiExpression--success',\n accent: 'euiExpression--accent',\n warning: 'euiExpression--warning',\n danger: 'euiExpression--danger'\n};\n\n/**\n * One part of a sentence-like query or rule, e.g. **WHEN** `avg()` or\n * **IS ABOVE** `100`: a description and a value. With `@onClick` it is a\n * button, usually opening a popover to edit the value.\n */\nexport interface EuiExpressionSignature {\n Element: HTMLButtonElement | HTMLSpanElement;\n Args: {\n /** First part, e.g. \"when\". Use the `<:description>` block for markup. */\n description?: string;\n /** Second part, e.g. \"avg()\". Use the `<:value>` block for markup. */\n value?: string;\n /**\n * Color of the description: `'subdued'`, `'primary'`, `'success'`,\n * `'accent'`, `'warning'` or `'danger'`. Defaults to `'success'`.\n */\n color?: 'subdued' | 'primary' | 'success' | 'accent' | 'warning' | 'danger';\n /** Uppercases the description. Defaults to `true`. */\n uppercase?: boolean;\n /** Solid underline, e.g. while its popover is open. */\n isActive?: boolean;\n /** Shows it in danger color with an alert icon. */\n isInvalid?: boolean;\n /** Makes it a `<button>` with a dashed underline. */\n onClick?: (event: MouseEvent) => void;\n /**\n * `'inline'` (in a sentence) or `'columns'` (description and value in\n * two columns, to stack several). Defaults to `'inline'`.\n */\n display?: 'inline' | 'columns';\n /** Width of the description in columns display. Defaults to `'20%'`. */\n descriptionWidth?: number | string;\n /** `'break-word'` or `'truncate'` long values. Defaults to `'break-word'`. */\n textWrap?: 'break-word' | 'truncate';\n };\n Blocks: {\n /** Markup for the description, instead of `@description`. */\n description: [];\n /** Markup for the value, instead of `@value`. */\n value: [];\n };\n}\n\nfunction classes(\n color: keyof typeof COLORS = 'success',\n isInvalid?: boolean,\n isActive?: boolean,\n clickable?: boolean,\n uppercase = true,\n display?: string,\n textWrap?: string\n): string {\n return [\n 'euiExpression',\n isActive && 'euiExpression-isActive',\n clickable && 'euiExpression-isClickable',\n uppercase && 'euiExpression-isUppercase',\n display === 'columns' && 'euiExpression--columns',\n COLORS[isInvalid ? 'danger' : color],\n textWrap === 'truncate' && 'euiExpression--truncate'\n ]\n .filter(Boolean)\n .join(' ');\n}\n\nfunction noop(): void {}\n\nconst EuiExpression: TemplateOnlyComponent<EuiExpressionSignature> = <template>\n {{#let (element (if @onClick \"button\" \"span\")) as |Tag|}}\n <Tag\n class={{classes\n @color\n @isInvalid\n @isActive\n (if @onClick true false)\n @uppercase\n @display\n @textWrap\n }}\n type={{if @onClick \"button\"}}\n {{on \"click\" (if @onClick @onClick noop)}}\n ...attributes\n >\n <span\n class=\"euiExpression__description\"\n style={{if\n (isColumns @display)\n (cssStyle\n (hash flexBasis=(if @descriptionWidth @descriptionWidth \"20%\"))\n )\n }}\n >\n {{~#if (has-block \"description\")~}}\n {{yield to=\"description\"}}\n {{~else~}}\n {{@description}}\n {{~/if~}}\n </span>\n {{#if (has-block \"value\")}}\n <span class=\"euiExpression__value\">{{yield to=\"value\"}}</span>\n {{else if @value}}\n <span class=\"euiExpression__value\">{{@value}}</span>\n {{/if}}\n {{#if @isInvalid}}\n <EuiIcon class=\"euiExpression__icon\" @type=\"alert\" @color=\"danger\" />\n {{/if}}\n </Tag>\n {{/let}}\n</template>;\n\nfunction isColumns(display?: string): boolean {\n return display === 'columns';\n}\n\nexport default EuiExpression;\n"],"names":["COLORS","subdued","primary","success","accent","warning","danger","classes","color","isInvalid","isActive","clickable","uppercase","display","textWrap","filter","Boolean","join","noop","EuiExpression","setComponentTemplate","precompileTemplate","strictMode","scope","element","on","isColumns","cssStyle","hash","EuiIcon","templateOnly"],"mappings":";;;;;;;;;AAUA,MAAMA,MAAA,GAAS;AACbC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,MAAA,EAAQ,uBAAA;AACRC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,MAAA,EAAQ;AACV,CAAA;AAEA;;;;AAIC;;AAuCD,SAASC,OAAAA,CACPC,KAAoB,GAAS,SAAS,EACtCC,SAAmB,EACnBC,QAAkB,EAClBC,SAAmB,EACnBC,SAAA,GAAY,IAAI,EAChBC,OAAgB,EAChBC,QAAiB,EACV;EACP,OAAO,CACL,eAAA,EACAJ,QAAA,IAAY,wBAAA,EACZC,SAAA,IAAa,2BAAA,EACbC,SAAA,IAAa,2BAAA,EACbC,OAAA,KAAY,SAAA,IAAa,wBAAA,EACzBb,MAAM,CAACS,SAAA,GAAY,QAAA,GAAWD,KAAA,CAAM,EACpCM,QAAA,KAAa,UAAA,IAAc,yBAAA,CAC5B,CACEC,MAAM,CAACC,OAAA,CAAA,CACPC,IAAI,CAAC,GAAA,CAAA;AACV;AAEA,SAASC,IAAAA,GAAY,CAAE;AAEvB,MAAMC,aAAqC,GAAAC,oBAAA,CAA0BC,kBAAA,CAAA,i6BAAA,EAyCrE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,OAAA;IAAAjB,OAAA;IAAAkB,EAAA;IAAAP,IAAA;IAAAQ,SAAA;IAAAC,QAAA;IAAAC,IAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAEV,SAASJ,SAAAA,CAAUb,OAAgB,EAAU;EAC3C,OAAOA,OAAA,KAAY,SAAA;AACrB;;"}
1
+ {"version":3,"file":"eui-expression.js","sources":["../../src/components/eui-expression.gts"],"sourcesContent":["import { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\n\n\nimport cssStyle from '../-private/css-style.ts';\nimport EuiIcon from './eui-icon.gts';\n\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nconst COLORS = {\n subdued: 'euiExpression--subdued',\n primary: 'euiExpression--primary',\n success: 'euiExpression--success',\n accent: 'euiExpression--accent',\n warning: 'euiExpression--warning',\n danger: 'euiExpression--danger'\n};\n\n/**\n * One part of a sentence-like query or rule, e.g. **WHEN** `avg()` or\n * **IS ABOVE** `100`: a description and a value. With `@onClick` it is a\n * button, usually opening a popover to edit the value.\n */\nexport interface EuiExpressionSignature {\n Element: HTMLButtonElement | HTMLSpanElement;\n Args: {\n /** First part, e.g. \"when\". Use the `<:description>` block for markup. */\n description?: string;\n /** Second part, e.g. \"avg()\". Use the `<:value>` block for markup. */\n value?: string;\n /**\n * Color of the description: `'subdued'`, `'primary'`, `'success'`,\n * `'accent'`, `'warning'` or `'danger'`. Defaults to `'success'`.\n */\n color?: 'subdued' | 'primary' | 'success' | 'accent' | 'warning' | 'danger';\n /** Uppercases the description. Defaults to `true`. */\n uppercase?: boolean;\n /** Solid underline, e.g. while its popover is open. */\n isActive?: boolean;\n /** Shows it in danger color with an alert icon. */\n isInvalid?: boolean;\n /** Makes it a `<button>` with a dashed underline. */\n onClick?: (event: MouseEvent) => void;\n /**\n * `'inline'` (in a sentence) or `'columns'` (description and value in\n * two columns, to stack several). Defaults to `'inline'`.\n */\n display?: 'inline' | 'columns';\n /** Width of the description in columns display. Defaults to `'20%'`. */\n descriptionWidth?: number | string;\n /** `'break-word'` or `'truncate'` long values. Defaults to `'break-word'`. */\n textWrap?: 'break-word' | 'truncate';\n };\n Blocks: {\n /** Markup for the description, instead of `@description`. */\n description: [];\n /** Markup for the value, instead of `@value`. */\n value: [];\n };\n}\n\nfunction classes(\n color: keyof typeof COLORS = 'success',\n isInvalid?: boolean,\n isActive?: boolean,\n clickable?: boolean,\n uppercase = true,\n display?: string,\n textWrap?: string\n): string {\n return [\n 'euiExpression',\n isActive && 'euiExpression-isActive',\n clickable && 'euiExpression-isClickable',\n uppercase && 'euiExpression-isUppercase',\n display === 'columns' && 'euiExpression--columns',\n COLORS[isInvalid ? 'danger' : color],\n textWrap === 'truncate' && 'euiExpression--truncate'\n ]\n .filter(Boolean)\n .join(' ');\n}\n\nfunction noop(): void {}\n\nconst EuiExpression: TemplateOnlyComponent<EuiExpressionSignature> = <template>\n {{#let (element (if @onClick \"button\" \"span\")) as |Tag|}}\n <Tag\n class={{classes\n @color\n @isInvalid\n @isActive\n (if @onClick true false)\n @uppercase\n @display\n @textWrap\n }}\n type={{if @onClick \"button\"}}\n {{on \"click\" (if @onClick @onClick noop)}}\n ...attributes\n >\n <span\n class=\"euiExpression__description\"\n style={{if\n (isColumns @display)\n (cssStyle\n (hash flexBasis=(if @descriptionWidth @descriptionWidth \"20%\"))\n )\n }}\n >\n {{~#if (has-block \"description\")~}}\n {{yield to=\"description\"}}\n {{~else~}}\n {{@description}}\n {{~/if~}}\n </span>\n {{#if (has-block \"value\")}}\n <span class=\"euiExpression__value\">{{yield to=\"value\"}}</span>\n {{else if @value}}\n <span class=\"euiExpression__value\">{{@value}}</span>\n {{/if}}\n {{#if @isInvalid}}\n <EuiIcon class=\"euiExpression__icon\" @type=\"alert\" @color=\"danger\" />\n {{/if}}\n </Tag>\n {{/let}}\n</template>;\n\nfunction isColumns(display?: string): boolean {\n return display === 'columns';\n}\n\nexport default EuiExpression;\n"],"names":["COLORS","subdued","primary","success","accent","warning","danger","classes","color","isInvalid","isActive","clickable","uppercase","display","textWrap","filter","Boolean","join","noop","EuiExpression","setComponentTemplate","precompileTemplate","strictMode","scope","on","isColumns","cssStyle","hash","EuiIcon","templateOnly"],"mappings":";;;;;;;;AASA,MAAMA,MAAA,GAAS;AACbC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,MAAA,EAAQ,uBAAA;AACRC,EAAAA,OAAA,EAAS,wBAAA;AACTC,EAAAA,MAAA,EAAQ;AACV,CAAA;AAEA;;;;AAIC;;AAuCD,SAASC,OAAAA,CACPC,KAAoB,GAAS,SAAS,EACtCC,SAAmB,EACnBC,QAAkB,EAClBC,SAAmB,EACnBC,SAAA,GAAY,IAAI,EAChBC,OAAgB,EAChBC,QAAiB,EACV;EACP,OAAO,CACL,eAAA,EACAJ,QAAA,IAAY,wBAAA,EACZC,SAAA,IAAa,2BAAA,EACbC,SAAA,IAAa,2BAAA,EACbC,OAAA,KAAY,SAAA,IAAa,wBAAA,EACzBb,MAAM,CAACS,SAAA,GAAY,QAAA,GAAWD,KAAA,CAAM,EACpCM,QAAA,KAAa,UAAA,IAAc,yBAAA,CAC5B,CACEC,MAAM,CAACC,OAAA,CAAA,CACPC,IAAI,CAAC,GAAA,CAAA;AACV;AAEA,SAASC,IAAAA,GAAY,CAAE;AAEvB,MAAMC,aAAqC,GAAAC,oBAAA,CAA0BC,kBAAA,CAAA,i6BAAA,EAyCrE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAhB,OAAA;IAAAiB,EAAA;IAAAN,IAAA;IAAAO,SAAA;IAAAC,QAAA;IAAAC,IAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;AAEV,SAASJ,SAAAA,CAAUZ,OAAgB,EAAU;EAC3C,OAAOA,OAAA,KAAY,SAAA;AACrB;;"}
@@ -1,4 +1,3 @@
1
- import { element } from 'ember-element-helper';
2
1
  import { eq } from 'ember-truth-helpers';
3
2
  import argOrDefault from '../helpers/arg-or-default.js';
4
3
  import classNames from '../helpers/class-names.js';
@@ -11,8 +10,7 @@ const EuiFlexGrid = setComponentTemplate(precompileTemplate("{{#let (argOrDefaul
11
10
  scope: () => ({
12
11
  argOrDefault,
13
12
  eq,
14
- classNames,
15
- element
13
+ classNames
16
14
  })
17
15
  }), templateOnly());
18
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"eui-flex-grid.js","sources":["../../src/components/eui-flex-grid.gts"],"sourcesContent":["import { element } from 'ember-element-helper';\nimport { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\n\nimport type {\n directionMapping,\n gutterSizeMapping} from '../utils/css-mappings/eui-flex-grid.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiFlexGridSignature {\n Element: HTMLDivElement | any;\n Args: {\n /**\n * Passes the HTML tag to the wrapping element. Defaults to `'div'`.\n */\n tagName?: string;\n /**\n * `'row'` fills the grid row by row, `'column'` column by column.\n * Defaults to `'row'`.\n */\n direction?: keyof typeof directionMapping;\n /**\n * Number of columns, `1` to `4`. `0` lets the items wrap at their own\n * width. Defaults to `0`.\n */\n columns?: number;\n /**\n * Space between items: `'none'`, `'s'`, `'m'`, `'l'` or `'xl'`.\n * Defaults to `'l'`.\n */\n gutterSize?: keyof typeof gutterSizeMapping;\n /**\n * Stacks the items in one column on small screens. Defaults to `true`.\n */\n responsive?: boolean;\n };\n Blocks: {\n /** The `EuiFlexItem`s, laid out in a grid. */\n default: [];\n };\n}\n\nconst EuiFlexGrid: TemplateOnlyComponent<EuiFlexGridSignature> = <template>\n {{#let (argOrDefault @tagName \"div\") as |tagName|}}\n {{#if (eq tagName \"div\")}}\n <div\n class={{classNames\n (unless (eq @responsive false) \"euiFlexGrid--responsive\")\n componentName=\"EuiFlexGrid\"\n gutterSize=(argOrDefault @gutterSize \"l\")\n direction=(argOrDefault @direction \"row\")\n columns=(argOrDefault @columns 0)\n }}\n ...attributes\n >\n {{yield}}\n </div>\n {{else}}\n {{#let (element tagName) as |Element|}}\n <Element\n class={{classNames\n (unless (eq @responsive false) \"euiFlexGrid--responsive\")\n componentName=\"EuiFlexGrid\"\n gutterSize=(argOrDefault @gutterSize \"l\")\n direction=(argOrDefault @direction \"row\")\n columns=(argOrDefault @columns 0)\n }}\n ...attributes\n >\n {{yield}}\n </Element>\n {{/let}}\n {{/if}}\n {{/let}}\n</template>;\n\nexport default EuiFlexGrid;\n"],"names":["EuiFlexGrid","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","eq","classNames","element","templateOnly"],"mappings":";;;;;;;;AA4CA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,+vBAAA,EAgCjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,EAAA;IAAAC,UAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-flex-grid.js","sources":["../../src/components/eui-flex-grid.gts"],"sourcesContent":["import { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\n\nimport type {\n directionMapping,\n gutterSizeMapping} from '../utils/css-mappings/eui-flex-grid.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiFlexGridSignature {\n Element: HTMLDivElement | any;\n Args: {\n /**\n * Passes the HTML tag to the wrapping element. Defaults to `'div'`.\n */\n tagName?: string;\n /**\n * `'row'` fills the grid row by row, `'column'` column by column.\n * Defaults to `'row'`.\n */\n direction?: keyof typeof directionMapping;\n /**\n * Number of columns, `1` to `4`. `0` lets the items wrap at their own\n * width. Defaults to `0`.\n */\n columns?: number;\n /**\n * Space between items: `'none'`, `'s'`, `'m'`, `'l'` or `'xl'`.\n * Defaults to `'l'`.\n */\n gutterSize?: keyof typeof gutterSizeMapping;\n /**\n * Stacks the items in one column on small screens. Defaults to `true`.\n */\n responsive?: boolean;\n };\n Blocks: {\n /** The `EuiFlexItem`s, laid out in a grid. */\n default: [];\n };\n}\n\nconst EuiFlexGrid: TemplateOnlyComponent<EuiFlexGridSignature> = <template>\n {{#let (argOrDefault @tagName \"div\") as |tagName|}}\n {{#if (eq tagName \"div\")}}\n <div\n class={{classNames\n (unless (eq @responsive false) \"euiFlexGrid--responsive\")\n componentName=\"EuiFlexGrid\"\n gutterSize=(argOrDefault @gutterSize \"l\")\n direction=(argOrDefault @direction \"row\")\n columns=(argOrDefault @columns 0)\n }}\n ...attributes\n >\n {{yield}}\n </div>\n {{else}}\n {{#let (element tagName) as |Element|}}\n <Element\n class={{classNames\n (unless (eq @responsive false) \"euiFlexGrid--responsive\")\n componentName=\"EuiFlexGrid\"\n gutterSize=(argOrDefault @gutterSize \"l\")\n direction=(argOrDefault @direction \"row\")\n columns=(argOrDefault @columns 0)\n }}\n ...attributes\n >\n {{yield}}\n </Element>\n {{/let}}\n {{/if}}\n {{/let}}\n</template>;\n\nexport default EuiFlexGrid;\n"],"names":["EuiFlexGrid","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","eq","classNames","templateOnly"],"mappings":";;;;;;;AA2CA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,+vBAAA,EAgCjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,EAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -1,4 +1,3 @@
1
- import { element } from 'ember-element-helper';
2
1
  import { eq } from 'ember-truth-helpers';
3
2
  import argOrDefault from '../helpers/arg-or-default.js';
4
3
  import classNames from '../helpers/class-names.js';
@@ -11,8 +10,7 @@ const EuiFlexItem = setComponentTemplate(precompileTemplate("{{#let (argOrDefaul
11
10
  scope: () => ({
12
11
  argOrDefault,
13
12
  eq,
14
- classNames,
15
- element
13
+ classNames
16
14
  })
17
15
  }), templateOnly());
18
16
 
@@ -1 +1 @@
1
- {"version":3,"file":"eui-flex-item.js","sources":["../../src/components/eui-flex-item.gts"],"sourcesContent":["import { element } from 'ember-element-helper';\nimport { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\n\nimport type { growMapping } from '../utils/css-mappings/eui-flex-item.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiFlexItemSignature {\n Element: Element;\n Args: {\n /**\n * How the item grows: `true` (default) takes an equal share of the\n * space, `false` only takes its content's width, `1`–`10` take that\n * many shares.\n */\n grow?: keyof typeof growMapping | boolean;\n /** Tag of the item. Defaults to `'div'`. */\n tagName?: string;\n };\n Blocks: {\n /** The content. */\n default: [];\n };\n}\n\nconst EuiFlexItem: TemplateOnlyComponent<EuiFlexItemSignature> = <template>\n {{#let (argOrDefault @tagName \"div\") as |tagName|}}\n {{#if (eq tagName \"div\")}}\n <div\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </div>\n {{else if (eq tagName \"span\")}}\n <span\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </span>\n {{else}}\n {{#let (element tagName) as |TagElement|}}\n <TagElement\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </TagElement>\n {{/let}}\n {{/if}}\n {{/let}}\n</template>;\n\nexport default EuiFlexItem;\n"],"names":["EuiFlexItem","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","eq","classNames","element","templateOnly"],"mappings":";;;;;;;;AA2BA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,6kBAAA,EA2BjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,EAAA;IAAAC,UAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-flex-item.js","sources":["../../src/components/eui-flex-item.gts"],"sourcesContent":["import { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\n\nimport type { growMapping } from '../utils/css-mappings/eui-flex-item.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nexport interface EuiFlexItemSignature {\n Element: Element;\n Args: {\n /**\n * How the item grows: `true` (default) takes an equal share of the\n * space, `false` only takes its content's width, `1`–`10` take that\n * many shares.\n */\n grow?: keyof typeof growMapping | boolean;\n /** Tag of the item. Defaults to `'div'`. */\n tagName?: string;\n };\n Blocks: {\n /** The content. */\n default: [];\n };\n}\n\nconst EuiFlexItem: TemplateOnlyComponent<EuiFlexItemSignature> = <template>\n {{#let (argOrDefault @tagName \"div\") as |tagName|}}\n {{#if (eq tagName \"div\")}}\n <div\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </div>\n {{else if (eq tagName \"span\")}}\n <span\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </span>\n {{else}}\n {{#let (element tagName) as |TagElement|}}\n <TagElement\n class={{classNames componentName=\"EuiFlexItem\" grow=@grow}}\n ...attributes\n >\n {{yield}}\n </TagElement>\n {{/let}}\n {{/if}}\n {{/let}}\n</template>;\n\nexport default EuiFlexItem;\n"],"names":["EuiFlexItem","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","eq","classNames","templateOnly"],"mappings":";;;;;;;AA0BA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,6kBAAA,EA2BjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,EAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -4,7 +4,6 @@ import { hash, concat } from '@ember/helper';
4
4
  import { on } from '@ember/modifier';
5
5
  import { action } from '@ember/object';
6
6
  import { throttle } from '@ember/runloop';
7
- import { element } from 'ember-element-helper';
8
7
  import { focusTrap } from 'ember-focus-trap';
9
8
  import onKey from 'ember-keyboard/modifiers/on-key';
10
9
  import { modifier } from 'ember-modifier';
@@ -184,7 +183,6 @@ class EuiFlyoutComponent extends Component {
184
183
  onKey,
185
184
  classesModifier,
186
185
  resizeObserverModifier: ResizeObserver,
187
- element,
188
186
  and,
189
187
  EuiOverlayMask: EuiOverlayMaskComponent,
190
188
  EuiButtonIcon,
@@ -1 +1 @@
1
- {"version":3,"file":"eui-flyout.js","sources":["../../src/components/eui-flyout.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { concat } from '@ember/helper';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport { throttle } from '@ember/runloop';\n\nimport { element } from 'ember-element-helper';\nimport { focusTrap } from 'ember-focus-trap';\nimport onKey from 'ember-keyboard/modifiers/on-key';\nimport { modifier as modBuilder } from 'ember-modifier';\nimport styleModifier from 'ember-style-modifier/modifiers/style';\nimport { and, eq, not, or } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport outsideClickDetectorModifier from '../modifiers/outside-click-detector.ts';\nimport resizeObserverModifier from '../modifiers/resize-observer.ts';\nimport { isWithinMinBreakpoint } from '../utils/breakpoint.ts';\nimport { sizeMapping } from '../utils/css-mappings/eui-flyout.ts';\nimport { keysOf } from './common.ts';\nimport EuiButtonIcon from './eui-button-icon.gts';\nimport EuiOverlayMask from './eui-overlay-mask.gts';\nimport EuiPortal from './eui-portal.gts';\n\nimport type { EuiBreakpointSize } from '../utils/breakpoint.ts';\n\nexport type EuiFlyoutArgs = {\n /** Same as `@closeButtonAriaLabel`. */\n closeAriaLabel?: string;\n /** @deprecated Has no effect: render the flyout only while it is open. */\n isOpen?: boolean;\n /** @deprecated Has no effect, see EuiCollapsibleNav; use `@type=\"push\"`. */\n isDocked?: boolean;\n /** @deprecated Has no effect; use `@pushMinBreakpoint`. */\n dockedBreakpoint?: EuiBreakpointSize | number;\n /** @deprecated Has no effect. */\n showButtonIfDocked?: boolean;\n\n /** Traps keyboard focus inside the flyout. Defaults to `true`. */\n isFocusTrapActive?: boolean;\n\n /** Tag of the flyout, e.g. `'nav'` or `'aside'`. Defaults to `'div'`. */\n as?: string;\n\n /**\n * Width: `'s'`, `'m'` or `'l'`, a number in px or any CSS width.\n * Defaults to `'m'`.\n */\n size?: number | string;\n\n /** Side of the window it slides in from. Defaults to `'right'`. */\n side?: 'left' | 'right';\n\n /** `role` of the flyout. Defaults to `'dialog'`. */\n role?: null | string;\n\n /**\n * Renders a mask over the page behind the flyout, which closes it when\n * clicked. Without it, the page stays usable. Defaults to `true`.\n */\n ownFocus?: boolean;\n\n /** Clicking outside the flyout calls `@onClose`. Defaults to `false`. */\n outsideClickCloses?: boolean;\n\n /**\n * Close button `'inside'` the flyout's corner or `'outside'` next to it.\n * Defaults to `'inside'`.\n */\n closeButtonPosition?: 'outside' | 'inside';\n\n /**\n * Padding of `EuiFlyoutHeader`, `EuiFlyoutBody` and `EuiFlyoutFooter`:\n * `'none'`, `'s'`, `'m'` or `'l'`. Defaults to `'l'`.\n */\n paddingSize?: string;\n\n /** Hides the close button (e.g. when the flyout has its own). */\n hideCloseButton?: boolean;\n\n /** Props for the close button: `{ className, onClick }`. */\n closeButtonProps?: {\n className?: string;\n onClick?: (e: MouseEvent) => void;\n classes?: string;\n };\n\n /** Accessible label of the close button. Defaults to \"Close this dialog\". */\n closeButtonAriaLabel?: string;\n\n /**\n * Called by the close button, Escape, the mask and outside clicks. Stop\n * rendering the flyout here. Without it there is no close button.\n */\n onClose?: () => void;\n\n /**\n * Caps the width: `true` for EUI's default max width, or a number in px.\n * Defaults to `false`.\n */\n maxWidth?: boolean | number;\n\n /** @deprecated Has no effect. */\n maskProps?: Record<string, unknown>;\n\n /**\n * `'overlay'` covers the page; `'push'` pads the page so the flyout sits\n * beside it (on windows at least `@pushMinBreakpoint` wide).\n * Defaults to `'overlay'`.\n */\n type?: string;\n\n /**\n * Minimum window width for `@type=\"push\"`: a named breakpoint (`'xs'`\n * to `'xl'`) or px. Smaller windows get an overlay. Defaults to `'l'`.\n */\n pushMinBreakpoint?: number | EuiBreakpointSize;\n\n /** Focuses the flyout itself when it opens. Defaults to `true`. */\n shouldSelfFocus?: boolean;\n\n /**\n * Options for the focus trap (focus-trap library), e.g.\n * `{ initialFocus: '#name' }`. Defaults to allowing outside clicks.\n */\n focusTrapOptions?: {\n allowOutsideClick?: boolean;\n clickOutsideDeactivates?: boolean;\n initialFocus?: string | HTMLElement | (() => HTMLElement);\n fallbackFocus?: string | HTMLElement | (() => HTMLElement);\n escapeDeactivates?: boolean;\n returnFocusOnDeactivate?: boolean;\n preventScroll?: boolean;\n };\n};\n\nconst classesModifier = modBuilder(\n (\n _element: Element,\n _pos,\n {\n type,\n isPushed,\n side,\n dimensions = {},\n functionToCallOnWindowResize\n }: {\n type: string;\n isPushed: boolean;\n side: string;\n dimensions?: { width?: number };\n functionToCallOnWindowResize: () => void;\n }\n ) => {\n // This class doesn't actually do anything by EUI, but is nice to add for consumers (JIC)\n document.body.classList.add('euiBody--hasFlyout');\n\n /**\n * Accomodate for the `isPushed` state by adding padding to the body equal to the width of the element\n */\n if (type === 'push') {\n // Only add the event listener if we'll need to accommodate with padding\n window.addEventListener('resize', functionToCallOnWindowResize);\n\n if (isPushed && dimensions.width) {\n if (side === 'right') {\n document.body.style.paddingRight = `${dimensions.width}px`;\n } else if (side === 'left') {\n document.body.style.paddingLeft = `${dimensions.width}px`;\n }\n }\n }\n\n return () => {\n document.body.classList.remove('euiBody--hasFlyout');\n\n if (type === 'push') {\n window.removeEventListener('resize', functionToCallOnWindowResize);\n\n if (side === 'right') {\n document.body.style.paddingRight = '';\n } else if (side === 'left') {\n document.body.style.paddingLeft = '';\n }\n }\n };\n }\n);\n\nexport const SIZES = keysOf(sizeMapping);\nexport type EuiFlyoutSize = (typeof SIZES)[number];\n\nfunction isEuiFlyoutSizeNamed(value: any): value is EuiFlyoutSize {\n return SIZES.includes(value);\n}\n\n/**\n * A panel sliding in from the side of the window, for details or forms\n * that keep the page context. Render it only while open:\n * `{{#if this.isOpen}}<EuiFlyout @onClose={{…}}>…</EuiFlyout>{{/if}}`.\n */\nexport interface EuiFlyoutSignature {\n Element: any;\n Args: EuiFlyoutArgs;\n Blocks: {\n /** Usually `EuiFlyoutHeader`, `EuiFlyoutBody` and `EuiFlyoutFooter`. */\n default: [];\n };\n}\n\nexport default class EuiFlyoutComponent extends Component<EuiFlyoutSignature> {\n @tracked windowIsLargeEnoughToPush = isWithinMinBreakpoint(\n typeof window === 'undefined' ? -Infinity : window.innerWidth,\n this.pushMinBreakpoint\n );\n\n @tracked dimensions?: { width?: number; height?: number };\n\n get as() {\n return this.args.as ?? 'div';\n }\n\n get hideCloseButton() {\n return this.args.hideCloseButton ?? false;\n }\n\n get closeButtonPosition() {\n return this.args.closeButtonPosition ?? 'inside';\n }\n\n get ownFocus() {\n return this.args.ownFocus ?? true;\n }\n\n get side() {\n return this.args.side ?? 'right';\n }\n\n get size() {\n return this.args.size ?? 'm';\n }\n\n get paddingSize() {\n return this.args.paddingSize ?? 'l';\n }\n\n get maxWidth() {\n return this.args.maxWidth ?? false;\n }\n\n get type() {\n return this.args.type ?? 'overlay';\n }\n\n get outsideClickCloses() {\n return this.args.outsideClickCloses ?? false;\n }\n\n get role() {\n return this.args.role ?? 'dialog';\n }\n\n get pushMinBreakpoint() {\n return this.args.pushMinBreakpoint ?? 'l';\n }\n\n get isPushed() {\n return this.type === 'push' && this.windowIsLargeEnoughToPush;\n }\n\n get styles() {\n let newStyle: { [key: string]: unknown } = {};\n\n if (this.maxWidth !== false) {\n const value =\n typeof this.maxWidth === 'number'\n ? `${this.maxWidth}px`\n : this.maxWidth;\n\n newStyle = { maxWidth: value };\n }\n\n if (!isEuiFlyoutSizeNamed(this.size) && newStyle) {\n newStyle['width'] = this.size;\n } else {\n newStyle = { width: this.size };\n }\n\n return newStyle;\n }\n\n @action\n functionToCallOnWindowResize() {\n throttle(() => {\n if (isWithinMinBreakpoint(window.innerWidth, this.pushMinBreakpoint)) {\n this.windowIsLargeEnoughToPush = true;\n } else {\n this.windowIsLargeEnoughToPush = false;\n }\n }, 50);\n }\n\n @action\n onClose() {\n this.args.onClose?.();\n }\n\n @action\n onButtonCloseClicked(e: MouseEvent) {\n this.onClose();\n this.args.closeButtonProps?.onClick?.(e);\n }\n\n @action\n onResize(dimensions: { width: number; height: number }) {\n this.dimensions = dimensions;\n }\n\n <template>\n {{#let\n (classNames\n (if (eq this.maxWidth true) \"euiFlyout--maxWidth-default\")\n componentName=\"EuiFlyout\"\n type=this.type\n side=this.side\n size=this.size\n padding=this.paddingSize\n )\n (classNames\n \"euiFlyout__closeButton\"\n (concat \"euiFlyout__closeButton--\" this.closeButtonPosition)\n (or @closeButtonProps.className @closeButtonProps.classes)\n )\n (modifier\n focusTrap\n isActive=(argOrDefault @isFocusTrapActive true)\n shouldSelfFocus=(argOrDefault @shouldSelfFocus true)\n isPaused=this.isPushed\n focusTrapOptions=(argOrDefault\n @focusTrapOptions\n (hash\n allowOutsideClick=true clickOutsideDeactivates=(not this.ownFocus)\n )\n )\n )\n (modifier\n outsideClickDetectorModifier\n isDisabled=(or this.isPushed (not this.outsideClickCloses))\n onOutsideClick=this.onClose\n )\n (modifier styleModifier this.styles)\n (modifier onKey \"Escape\" this.onClose)\n (modifier\n classesModifier\n type=this.type\n isPushed=this.isPushed\n side=this.side\n dimensions=this.dimensions\n functionToCallOnWindowResize=this.functionToCallOnWindowResize\n )\n (modifier resizeObserverModifier onResize=this.onResize)\n (element this.as)\n as |classes closeButtonClasses focusTrapModifier outsideClickDetector currentStyles onEscape classesModifier resizeObserver TheElement|\n }}\n\n {{#if (and this.ownFocus (not this.isPushed))}}\n <EuiOverlayMask @headerZindexLocation=\"below\" @onClick={{this.onClose}}>\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{!@glint-expect-error}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n </EuiOverlayMask>\n {{else if (not this.isPushed)}}\n <EuiPortal>\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n </EuiPortal>\n {{else}}\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n {{/if}}\n {{/let}}\n </template>\n}\n"],"names":["classesModifier","modBuilder","_element","_pos","type","isPushed","side","dimensions","functionToCallOnWindowResize","document","body","classList","add","window","addEventListener","width","style","paddingRight","paddingLeft","remove","removeEventListener","SIZES","keysOf","sizeMapping","isEuiFlyoutSizeNamed","value","includes","EuiFlyoutComponent","Component","g","prototype","tracked","isWithinMinBreakpoint","Infinity","innerWidth","pushMinBreakpoint","i","as","args","hideCloseButton","closeButtonPosition","ownFocus","size","paddingSize","maxWidth","outsideClickCloses","role","windowIsLargeEnoughToPush","styles","newStyle","throttle","n","action","onClose","onButtonCloseClicked","e","closeButtonProps","onClick","onResize","setComponentTemplate","precompileTemplate","strictMode","scope","classNames","eq","concat","or","focusTrap","argOrDefault","hash","not","outsideClickDetectorModifier","styleModifier","onKey","resizeObserverModifier","element","and","EuiOverlayMask","EuiButtonIcon","on","EuiPortal"],"mappings":"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"}
1
+ {"version":3,"file":"eui-flyout.js","sources":["../../src/components/eui-flyout.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { tracked } from '@glimmer/tracking';\nimport { concat } from '@ember/helper';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { action } from '@ember/object';\nimport { throttle } from '@ember/runloop';\n\nimport { focusTrap } from 'ember-focus-trap';\nimport onKey from 'ember-keyboard/modifiers/on-key';\nimport { modifier as modBuilder } from 'ember-modifier';\nimport styleModifier from 'ember-style-modifier/modifiers/style';\nimport { and, eq, not, or } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport outsideClickDetectorModifier from '../modifiers/outside-click-detector.ts';\nimport resizeObserverModifier from '../modifiers/resize-observer.ts';\nimport { isWithinMinBreakpoint } from '../utils/breakpoint.ts';\nimport { sizeMapping } from '../utils/css-mappings/eui-flyout.ts';\nimport { keysOf } from './common.ts';\nimport EuiButtonIcon from './eui-button-icon.gts';\nimport EuiOverlayMask from './eui-overlay-mask.gts';\nimport EuiPortal from './eui-portal.gts';\n\nimport type { EuiBreakpointSize } from '../utils/breakpoint.ts';\n\nexport type EuiFlyoutArgs = {\n /** Same as `@closeButtonAriaLabel`. */\n closeAriaLabel?: string;\n /** @deprecated Has no effect: render the flyout only while it is open. */\n isOpen?: boolean;\n /** @deprecated Has no effect, see EuiCollapsibleNav; use `@type=\"push\"`. */\n isDocked?: boolean;\n /** @deprecated Has no effect; use `@pushMinBreakpoint`. */\n dockedBreakpoint?: EuiBreakpointSize | number;\n /** @deprecated Has no effect. */\n showButtonIfDocked?: boolean;\n\n /** Traps keyboard focus inside the flyout. Defaults to `true`. */\n isFocusTrapActive?: boolean;\n\n /** Tag of the flyout, e.g. `'nav'` or `'aside'`. Defaults to `'div'`. */\n as?: string;\n\n /**\n * Width: `'s'`, `'m'` or `'l'`, a number in px or any CSS width.\n * Defaults to `'m'`.\n */\n size?: number | string;\n\n /** Side of the window it slides in from. Defaults to `'right'`. */\n side?: 'left' | 'right';\n\n /** `role` of the flyout. Defaults to `'dialog'`. */\n role?: null | string;\n\n /**\n * Renders a mask over the page behind the flyout, which closes it when\n * clicked. Without it, the page stays usable. Defaults to `true`.\n */\n ownFocus?: boolean;\n\n /** Clicking outside the flyout calls `@onClose`. Defaults to `false`. */\n outsideClickCloses?: boolean;\n\n /**\n * Close button `'inside'` the flyout's corner or `'outside'` next to it.\n * Defaults to `'inside'`.\n */\n closeButtonPosition?: 'outside' | 'inside';\n\n /**\n * Padding of `EuiFlyoutHeader`, `EuiFlyoutBody` and `EuiFlyoutFooter`:\n * `'none'`, `'s'`, `'m'` or `'l'`. Defaults to `'l'`.\n */\n paddingSize?: string;\n\n /** Hides the close button (e.g. when the flyout has its own). */\n hideCloseButton?: boolean;\n\n /** Props for the close button: `{ className, onClick }`. */\n closeButtonProps?: {\n className?: string;\n onClick?: (e: MouseEvent) => void;\n classes?: string;\n };\n\n /** Accessible label of the close button. Defaults to \"Close this dialog\". */\n closeButtonAriaLabel?: string;\n\n /**\n * Called by the close button, Escape, the mask and outside clicks. Stop\n * rendering the flyout here. Without it there is no close button.\n */\n onClose?: () => void;\n\n /**\n * Caps the width: `true` for EUI's default max width, or a number in px.\n * Defaults to `false`.\n */\n maxWidth?: boolean | number;\n\n /** @deprecated Has no effect. */\n maskProps?: Record<string, unknown>;\n\n /**\n * `'overlay'` covers the page; `'push'` pads the page so the flyout sits\n * beside it (on windows at least `@pushMinBreakpoint` wide).\n * Defaults to `'overlay'`.\n */\n type?: string;\n\n /**\n * Minimum window width for `@type=\"push\"`: a named breakpoint (`'xs'`\n * to `'xl'`) or px. Smaller windows get an overlay. Defaults to `'l'`.\n */\n pushMinBreakpoint?: number | EuiBreakpointSize;\n\n /** Focuses the flyout itself when it opens. Defaults to `true`. */\n shouldSelfFocus?: boolean;\n\n /**\n * Options for the focus trap (focus-trap library), e.g.\n * `{ initialFocus: '#name' }`. Defaults to allowing outside clicks.\n */\n focusTrapOptions?: {\n allowOutsideClick?: boolean;\n clickOutsideDeactivates?: boolean;\n initialFocus?: string | HTMLElement | (() => HTMLElement);\n fallbackFocus?: string | HTMLElement | (() => HTMLElement);\n escapeDeactivates?: boolean;\n returnFocusOnDeactivate?: boolean;\n preventScroll?: boolean;\n };\n};\n\nconst classesModifier = modBuilder(\n (\n _element: Element,\n _pos,\n {\n type,\n isPushed,\n side,\n dimensions = {},\n functionToCallOnWindowResize\n }: {\n type: string;\n isPushed: boolean;\n side: string;\n dimensions?: { width?: number };\n functionToCallOnWindowResize: () => void;\n }\n ) => {\n // This class doesn't actually do anything by EUI, but is nice to add for consumers (JIC)\n document.body.classList.add('euiBody--hasFlyout');\n\n /**\n * Accomodate for the `isPushed` state by adding padding to the body equal to the width of the element\n */\n if (type === 'push') {\n // Only add the event listener if we'll need to accommodate with padding\n window.addEventListener('resize', functionToCallOnWindowResize);\n\n if (isPushed && dimensions.width) {\n if (side === 'right') {\n document.body.style.paddingRight = `${dimensions.width}px`;\n } else if (side === 'left') {\n document.body.style.paddingLeft = `${dimensions.width}px`;\n }\n }\n }\n\n return () => {\n document.body.classList.remove('euiBody--hasFlyout');\n\n if (type === 'push') {\n window.removeEventListener('resize', functionToCallOnWindowResize);\n\n if (side === 'right') {\n document.body.style.paddingRight = '';\n } else if (side === 'left') {\n document.body.style.paddingLeft = '';\n }\n }\n };\n }\n);\n\nexport const SIZES = keysOf(sizeMapping);\nexport type EuiFlyoutSize = (typeof SIZES)[number];\n\nfunction isEuiFlyoutSizeNamed(value: any): value is EuiFlyoutSize {\n return SIZES.includes(value);\n}\n\n/**\n * A panel sliding in from the side of the window, for details or forms\n * that keep the page context. Render it only while open:\n * `{{#if this.isOpen}}<EuiFlyout @onClose={{…}}>…</EuiFlyout>{{/if}}`.\n */\nexport interface EuiFlyoutSignature {\n Element: any;\n Args: EuiFlyoutArgs;\n Blocks: {\n /** Usually `EuiFlyoutHeader`, `EuiFlyoutBody` and `EuiFlyoutFooter`. */\n default: [];\n };\n}\n\nexport default class EuiFlyoutComponent extends Component<EuiFlyoutSignature> {\n @tracked windowIsLargeEnoughToPush = isWithinMinBreakpoint(\n typeof window === 'undefined' ? -Infinity : window.innerWidth,\n this.pushMinBreakpoint\n );\n\n @tracked dimensions?: { width?: number; height?: number };\n\n get as() {\n return this.args.as ?? 'div';\n }\n\n get hideCloseButton() {\n return this.args.hideCloseButton ?? false;\n }\n\n get closeButtonPosition() {\n return this.args.closeButtonPosition ?? 'inside';\n }\n\n get ownFocus() {\n return this.args.ownFocus ?? true;\n }\n\n get side() {\n return this.args.side ?? 'right';\n }\n\n get size() {\n return this.args.size ?? 'm';\n }\n\n get paddingSize() {\n return this.args.paddingSize ?? 'l';\n }\n\n get maxWidth() {\n return this.args.maxWidth ?? false;\n }\n\n get type() {\n return this.args.type ?? 'overlay';\n }\n\n get outsideClickCloses() {\n return this.args.outsideClickCloses ?? false;\n }\n\n get role() {\n return this.args.role ?? 'dialog';\n }\n\n get pushMinBreakpoint() {\n return this.args.pushMinBreakpoint ?? 'l';\n }\n\n get isPushed() {\n return this.type === 'push' && this.windowIsLargeEnoughToPush;\n }\n\n get styles() {\n let newStyle: { [key: string]: unknown } = {};\n\n if (this.maxWidth !== false) {\n const value =\n typeof this.maxWidth === 'number'\n ? `${this.maxWidth}px`\n : this.maxWidth;\n\n newStyle = { maxWidth: value };\n }\n\n if (!isEuiFlyoutSizeNamed(this.size) && newStyle) {\n newStyle['width'] = this.size;\n } else {\n newStyle = { width: this.size };\n }\n\n return newStyle;\n }\n\n @action\n functionToCallOnWindowResize() {\n throttle(() => {\n if (isWithinMinBreakpoint(window.innerWidth, this.pushMinBreakpoint)) {\n this.windowIsLargeEnoughToPush = true;\n } else {\n this.windowIsLargeEnoughToPush = false;\n }\n }, 50);\n }\n\n @action\n onClose() {\n this.args.onClose?.();\n }\n\n @action\n onButtonCloseClicked(e: MouseEvent) {\n this.onClose();\n this.args.closeButtonProps?.onClick?.(e);\n }\n\n @action\n onResize(dimensions: { width: number; height: number }) {\n this.dimensions = dimensions;\n }\n\n <template>\n {{#let\n (classNames\n (if (eq this.maxWidth true) \"euiFlyout--maxWidth-default\")\n componentName=\"EuiFlyout\"\n type=this.type\n side=this.side\n size=this.size\n padding=this.paddingSize\n )\n (classNames\n \"euiFlyout__closeButton\"\n (concat \"euiFlyout__closeButton--\" this.closeButtonPosition)\n (or @closeButtonProps.className @closeButtonProps.classes)\n )\n (modifier\n focusTrap\n isActive=(argOrDefault @isFocusTrapActive true)\n shouldSelfFocus=(argOrDefault @shouldSelfFocus true)\n isPaused=this.isPushed\n focusTrapOptions=(argOrDefault\n @focusTrapOptions\n (hash\n allowOutsideClick=true clickOutsideDeactivates=(not this.ownFocus)\n )\n )\n )\n (modifier\n outsideClickDetectorModifier\n isDisabled=(or this.isPushed (not this.outsideClickCloses))\n onOutsideClick=this.onClose\n )\n (modifier styleModifier this.styles)\n (modifier onKey \"Escape\" this.onClose)\n (modifier\n classesModifier\n type=this.type\n isPushed=this.isPushed\n side=this.side\n dimensions=this.dimensions\n functionToCallOnWindowResize=this.functionToCallOnWindowResize\n )\n (modifier resizeObserverModifier onResize=this.onResize)\n (element this.as)\n as |classes closeButtonClasses focusTrapModifier outsideClickDetector currentStyles onEscape classesModifier resizeObserver TheElement|\n }}\n\n {{#if (and this.ownFocus (not this.isPushed))}}\n <EuiOverlayMask @headerZindexLocation=\"below\" @onClick={{this.onClose}}>\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{!@glint-expect-error}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n </EuiOverlayMask>\n {{else if (not this.isPushed)}}\n <EuiPortal>\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n </EuiPortal>\n {{else}}\n <TheElement\n role={{this.role}}\n class={{classes}}\n tabindex={{-1}}\n {{currentStyles}}\n {{focusTrapModifier}}\n {{outsideClickDetector}}\n {{onEscape}}\n {{classesModifier}}\n {{resizeObserver}}\n ...attributes\n >\n {{#if (and @onClose (not @hideCloseButton))}}\n <EuiButtonIcon\n @display={{if\n (eq this.closeButtonPosition \"outside\")\n \"fill\"\n \"empty\"\n }}\n @iconType=\"cross\"\n @color=\"text\"\n aria-label={{or @closeButtonAriaLabel @closeAriaLabel \"Close this dialog\"}}\n data-test-subj=\"euiFlyoutCloseButton\"\n class={{closeButtonClasses}}\n {{on \"click\" this.onButtonCloseClicked}}\n />\n {{/if}}\n {{yield}}\n </TheElement>\n {{/if}}\n {{/let}}\n </template>\n}\n"],"names":["classesModifier","modBuilder","_element","_pos","type","isPushed","side","dimensions","functionToCallOnWindowResize","document","body","classList","add","window","addEventListener","width","style","paddingRight","paddingLeft","remove","removeEventListener","SIZES","keysOf","sizeMapping","isEuiFlyoutSizeNamed","value","includes","EuiFlyoutComponent","Component","g","prototype","tracked","isWithinMinBreakpoint","Infinity","innerWidth","pushMinBreakpoint","i","as","args","hideCloseButton","closeButtonPosition","ownFocus","size","paddingSize","maxWidth","outsideClickCloses","role","windowIsLargeEnoughToPush","styles","newStyle","throttle","n","action","onClose","onButtonCloseClicked","e","closeButtonProps","onClick","onResize","setComponentTemplate","precompileTemplate","strictMode","scope","classNames","eq","concat","or","focusTrap","argOrDefault","hash","not","outsideClickDetectorModifier","styleModifier","onKey","resizeObserverModifier","and","EuiOverlayMask","EuiButtonIcon","on","EuiPortal"],"mappings":"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"}
@@ -1,7 +1,6 @@
1
1
  import { helper } from '@ember/component/helper';
2
2
  import { fn } from '@ember/helper';
3
3
  import { on } from '@ember/modifier';
4
- import { element } from 'ember-element-helper';
5
4
  import { eq, not, and } from 'ember-truth-helpers';
6
5
  import randomId from '../-private/random-id.js';
7
6
  import argOrDefault from '../helpers/arg-or-default.js';
@@ -23,7 +22,6 @@ const EuiKeyPadMenuItem = setComponentTemplate(precompileTemplate("{{#let (if @c
23
22
  not,
24
23
  argOrDefault,
25
24
  randomId,
26
- element,
27
25
  classNames,
28
26
  eq,
29
27
  EuiRadio,
@@ -1 +1 @@
1
- {"version":3,"file":"eui-key-pad-menu-item.js","sources":["../../src/components/eui-key-pad-menu-item.gts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\n\nimport { element } from 'ember-element-helper';\nimport { and, eq, not } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiBetaBadge from './eui-beta-badge.gts';\nimport EuiCheckbox from './eui-checkbox.gts';\nimport EuiRadio from './eui-radio.gts';\n\nimport type { EuiIconSignature } from './eui-icon';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nconst charAt = helper(function ([str, num]: [string | undefined, number]) {\n return str?.charAt?.(num);\n});\n\nexport interface EuiKeyPadMenuItemSignature {\n Element: HTMLButtonElement | HTMLAnchorElement;\n Args: {\n /**\n * Makes the item a checkbox (`'label'`) or a radio (`'single'`, share a\n * `@name`) inside a checkable EuiKeyPadMenu.\n */\n checkable?: 'label' | 'single';\n /** Makes the item a link. */\n href?: string;\n /** Disables the item. */\n isDisabled?: boolean;\n /** Selected (pressed, current page, or checked) state. */\n isSelected?: boolean;\n /** Text under the icon. */\n label?: string;\n /** `name` of the radio or checkbox. */\n name?: string;\n /** `value` of the radio. */\n value?: string;\n /**\n * Called when a checkable item changes, with its id (and value for\n * radios). Buttons use `{{on \"click\" …}}`.\n */\n onChange: (id: string, value?: string | Event) => void;\n /** Shows a beta badge with the first letter of this label (full label on hover). */\n betaBadgeLabel?: string;\n /** Icon in the beta badge instead of the letter. */\n betaBadgeIconType?: EuiIconSignature['Args']['type'];\n /** Tooltip of the beta badge. */\n betaBadgeTooltipContent?: string;\n /** Id of the checkable input. Defaults to a random id. */\n id?: string;\n /** `target` of the `@href` link. */\n target?: string;\n };\n Blocks: {\n /** The icon, e.g. `<EuiIcon @type=\"discoverApp\" @size=\"l\" />`. */\n default: [];\n };\n}\n\nconst EuiKeyPadMenuItem: TemplateOnlyComponent<EuiKeyPadMenuItemSignature> =\n <template>\n {{#let\n (if @checkable \"label\" (if (and @href (not @isDisabled)) \"a\" \"button\"))\n (argOrDefault @id (randomId))\n (and @href (not @isDisabled))\n as |ElementTag itemId useHref|\n }}\n {{#let (element ElementTag) as |TagElement|}}\n <TagElement\n href={{if useHref @href}}\n target={{if useHref @target}}\n aria-current={{if (and useHref @isSelected) \"true\"}}\n for={{if @checkable itemId}}\n disabled={{if (and (not useHref) (not @checkable)) @isDisabled}}\n type={{if (and (not useHref) (not @checkable)) \"button\"}}\n aria-pressed={{if\n (and (not useHref) (not @checkable))\n (if @isSelected \"true\" \"false\")\n }}\n class={{classNames\n \"euiKeyPadMenuItem\"\n (if @betaBadgeLabel \"euiKeyPadMenuItem--hasBetaBadge\")\n (if @checkable \"euiKeyPadMenuItem--checkable\")\n (if @isDisabled \"euiKeyPadMenuItem-isDisabled\")\n (if @isSelected \"euiKeyPadMenuItem-isSelected\")\n }}\n rel={{if useHref \"noreferrer\"}}\n {{!@glint-expect-error}}\n ...attributes\n >\n <span class=\"euiKeyPadMenuItem__inner\">\n {{#if @checkable}}\n {{#if (eq @checkable \"single\")}}\n {{! template-lint-disable no-duplicate-id }}\n <EuiRadio\n id={{itemId}}\n @containerClass=\"euiKeyPadMenuItem__checkableInput\"\n @checked={{@isSelected}}\n @disabled={{@isDisabled}}\n @name={{@name}}\n value={{@value}}\n {{on \"change\" (fn @onChange itemId @value)}}\n />\n {{else}}\n <EuiCheckbox\n id={{itemId}}\n @containerClass=\"euiKeyPadMenuItem__checkableInput\"\n @checked={{@isSelected}}\n @disabled={{@isDisabled}}\n @name={{@name}}\n {{on \"change\" (fn @onChange itemId)}}\n />\n {{/if}}\n {{else if @betaBadgeLabel}}\n <EuiBetaBadge\n @size=\"s\"\n @color=\"subdued\"\n class=\"euiKeyPadMenuItem__betaBadge\"\n @label={{charAt @betaBadgeLabel 0}}\n @title={{@betaBadgeLabel}}\n @iconType={{@betaBadgeIconType}}\n @tooltipContent={{@betaBadgeTooltipContent}}\n />\n {{/if}}\n <span class=\"euiKeyPadMenuItem__icon\">{{yield}}</span>\n <span class=\"euiKeyPadMenuItem__label\">{{@label}}</span>\n </span>\n </TagElement>\n\n {{/let}}\n {{/let}}\n </template>;\n\nexport default EuiKeyPadMenuItem;\n"],"names":["charAt","helper","str","num","EuiKeyPadMenuItem","setComponentTemplate","precompileTemplate","strictMode","scope","and","not","argOrDefault","randomId","element","classNames","eq","EuiRadio","on","fn","EuiCheckbox","EuiBetaBadge","templateOnly"],"mappings":";;;;;;;;;;;;;;;AAiBA,MAAMA,MAAA,GAASC,MAAA,CAAO,UAAU,CAACC,GAAA,EAAKC,GAAA,CAAkC,EAAA;AACtE,EAAA,OAAOD,KAAKF,MAAA,GAASG,GAAA,CAAA;AACvB,CAAA,CAAA;AA4CA,MAAMC,iBAAyC,GAAAC,oBAAA,CAC7CC,kBAAA,CAAA,ohEAAA,EAuEA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,GAAA;IAAAC,GAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,OAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,QAAA;IAAAC,EAAA;IAAAC,EAAA;IAAAC,WAAA;IAAAC,YAAA;AAAApB,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAqB,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-key-pad-menu-item.js","sources":["../../src/components/eui-key-pad-menu-item.gts"],"sourcesContent":["import { helper } from '@ember/component/helper';\nimport { fn } from '@ember/helper';\nimport { on } from '@ember/modifier';\n\nimport { and, eq, not } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiBetaBadge from './eui-beta-badge.gts';\nimport EuiCheckbox from './eui-checkbox.gts';\nimport EuiRadio from './eui-radio.gts';\n\nimport type { EuiIconSignature } from './eui-icon';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\nconst charAt = helper(function ([str, num]: [string | undefined, number]) {\n return str?.charAt?.(num);\n});\n\nexport interface EuiKeyPadMenuItemSignature {\n Element: HTMLButtonElement | HTMLAnchorElement;\n Args: {\n /**\n * Makes the item a checkbox (`'label'`) or a radio (`'single'`, share a\n * `@name`) inside a checkable EuiKeyPadMenu.\n */\n checkable?: 'label' | 'single';\n /** Makes the item a link. */\n href?: string;\n /** Disables the item. */\n isDisabled?: boolean;\n /** Selected (pressed, current page, or checked) state. */\n isSelected?: boolean;\n /** Text under the icon. */\n label?: string;\n /** `name` of the radio or checkbox. */\n name?: string;\n /** `value` of the radio. */\n value?: string;\n /**\n * Called when a checkable item changes, with its id (and value for\n * radios). Buttons use `{{on \"click\" …}}`.\n */\n onChange: (id: string, value?: string | Event) => void;\n /** Shows a beta badge with the first letter of this label (full label on hover). */\n betaBadgeLabel?: string;\n /** Icon in the beta badge instead of the letter. */\n betaBadgeIconType?: EuiIconSignature['Args']['type'];\n /** Tooltip of the beta badge. */\n betaBadgeTooltipContent?: string;\n /** Id of the checkable input. Defaults to a random id. */\n id?: string;\n /** `target` of the `@href` link. */\n target?: string;\n };\n Blocks: {\n /** The icon, e.g. `<EuiIcon @type=\"discoverApp\" @size=\"l\" />`. */\n default: [];\n };\n}\n\nconst EuiKeyPadMenuItem: TemplateOnlyComponent<EuiKeyPadMenuItemSignature> =\n <template>\n {{#let\n (if @checkable \"label\" (if (and @href (not @isDisabled)) \"a\" \"button\"))\n (argOrDefault @id (randomId))\n (and @href (not @isDisabled))\n as |ElementTag itemId useHref|\n }}\n {{#let (element ElementTag) as |TagElement|}}\n <TagElement\n href={{if useHref @href}}\n target={{if useHref @target}}\n aria-current={{if (and useHref @isSelected) \"true\"}}\n for={{if @checkable itemId}}\n disabled={{if (and (not useHref) (not @checkable)) @isDisabled}}\n type={{if (and (not useHref) (not @checkable)) \"button\"}}\n aria-pressed={{if\n (and (not useHref) (not @checkable))\n (if @isSelected \"true\" \"false\")\n }}\n class={{classNames\n \"euiKeyPadMenuItem\"\n (if @betaBadgeLabel \"euiKeyPadMenuItem--hasBetaBadge\")\n (if @checkable \"euiKeyPadMenuItem--checkable\")\n (if @isDisabled \"euiKeyPadMenuItem-isDisabled\")\n (if @isSelected \"euiKeyPadMenuItem-isSelected\")\n }}\n rel={{if useHref \"noreferrer\"}}\n {{!@glint-expect-error}}\n ...attributes\n >\n <span class=\"euiKeyPadMenuItem__inner\">\n {{#if @checkable}}\n {{#if (eq @checkable \"single\")}}\n {{! template-lint-disable no-duplicate-id }}\n <EuiRadio\n id={{itemId}}\n @containerClass=\"euiKeyPadMenuItem__checkableInput\"\n @checked={{@isSelected}}\n @disabled={{@isDisabled}}\n @name={{@name}}\n value={{@value}}\n {{on \"change\" (fn @onChange itemId @value)}}\n />\n {{else}}\n <EuiCheckbox\n id={{itemId}}\n @containerClass=\"euiKeyPadMenuItem__checkableInput\"\n @checked={{@isSelected}}\n @disabled={{@isDisabled}}\n @name={{@name}}\n {{on \"change\" (fn @onChange itemId)}}\n />\n {{/if}}\n {{else if @betaBadgeLabel}}\n <EuiBetaBadge\n @size=\"s\"\n @color=\"subdued\"\n class=\"euiKeyPadMenuItem__betaBadge\"\n @label={{charAt @betaBadgeLabel 0}}\n @title={{@betaBadgeLabel}}\n @iconType={{@betaBadgeIconType}}\n @tooltipContent={{@betaBadgeTooltipContent}}\n />\n {{/if}}\n <span class=\"euiKeyPadMenuItem__icon\">{{yield}}</span>\n <span class=\"euiKeyPadMenuItem__label\">{{@label}}</span>\n </span>\n </TagElement>\n\n {{/let}}\n {{/let}}\n </template>;\n\nexport default EuiKeyPadMenuItem;\n"],"names":["charAt","helper","str","num","EuiKeyPadMenuItem","setComponentTemplate","precompileTemplate","strictMode","scope","and","not","argOrDefault","randomId","classNames","eq","EuiRadio","on","fn","EuiCheckbox","EuiBetaBadge","templateOnly"],"mappings":";;;;;;;;;;;;;;AAgBA,MAAMA,MAAA,GAASC,MAAA,CAAO,UAAU,CAACC,GAAA,EAAKC,GAAA,CAAkC,EAAA;AACtE,EAAA,OAAOD,KAAKF,MAAA,GAASG,GAAA,CAAA;AACvB,CAAA,CAAA;AA4CA,MAAMC,iBAAyC,GAAAC,oBAAA,CAC7CC,kBAAA,CAAA,ohEAAA,EAuEA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,GAAA;IAAAC,GAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,QAAA;IAAAC,EAAA;IAAAC,EAAA;IAAAC,WAAA;IAAAC,YAAA;AAAAnB,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAoB,YAAA,EAAA;;"}
@@ -1,6 +1,5 @@
1
1
  import { on } from '@ember/modifier';
2
2
  import optional from '@nullvoxpopuli/ember-composable-helpers/helpers/optional';
3
- import { element } from 'ember-element-helper';
4
3
  import { or, eq, and } from 'ember-truth-helpers';
5
4
  import randomId from '../-private/random-id.js';
6
5
  import argOrDefault from '../helpers/arg-or-default.js';
@@ -20,7 +19,6 @@ const EuiNotificationEvent = setComponentTemplate(precompileTemplate("{{#let (ra
20
19
  strictMode: true,
21
20
  scope: () => ({
22
21
  randomId,
23
- element,
24
22
  argOrDefault,
25
23
  and,
26
24
  classNames,
@@ -1 +1 @@
1
- {"version":3,"file":"eui-notification-event.js","sources":["../../src/components/eui-notification-event.gts"],"sourcesContent":["import { on } from '@ember/modifier';\n\nimport optional from '@nullvoxpopuli/ember-composable-helpers/helpers/optional';\nimport { element } from 'ember-element-helper';\nimport { and, eq, or } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport typeOf from '../helpers/type-of.ts';\nimport EuiLink from './eui-link.gts';\nimport EuiNotificationEventMessages from './eui-notification-event-messages.gts';\nimport EuiNotificationEventMeta from './eui-notification-event-meta.gts';\nimport EuiNotificationEventReadButton from './eui-notification-event-read-button.gts';\nimport EuiNotificationEventReadIcon from './eui-notification-event-read-icon.gts';\nimport TextBlock from './text-block.gts';\n\nimport type { EuiBadgeSignature } from './eui-badge';\nimport type { EuiIconSignature } from './eui-icon';\nimport type { EuiNotificationEventMessagesSignature } from './eui-notification-event-messages';\nimport type { TextBlockSignature } from './text-block';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/**\n * One notification in a list (e.g. a flyout from the header): title,\n * source, time, messages, read state and actions.\n */\nexport interface EuiNotificationEventSignature {\n Element: any;\n Args: {\n /** Id of the event, for its read button/icon. */\n id?: string;\n /** Tag of the event. Defaults to `'article'`. */\n tagName?: string;\n /** @private Render the `<:contextMenu>` block. Defaults to `true`. */\n hasContextMenuBlock?: boolean;\n /** @private Render the `<:primaryAction>` block. Defaults to `true`. */\n hasPrimaryActionBlock?: boolean;\n /**\n * Read state. When a boolean, shows a read indicator (a button with\n * `@onRead`, otherwise an icon); leave it undefined to show none.\n */\n isRead?: boolean;\n /** Makes the title a link. */\n href?: string;\n /** Makes the title a button calling this function. */\n onClickTitle?: (event: MouseEvent) => void;\n /** Called by the read button; toggle `@isRead` here. */\n onRead?: (event: MouseEvent) => void;\n /** Called when the context menu button is clicked. */\n onOpenContextMenu?: (event: MouseEvent) => void;\n /** The event's title. */\n title?: string;\n /** Kind of event shown in a badge, e.g. \"Alert\" or \"Report\". */\n type?: string;\n /** Severity appended to the badge, e.g. \"Critical\" (\"Alert: Critical\"). */\n severity?: string;\n /** Color of the type badge, any `EuiBadge` color. */\n badgeColor?: EuiBadgeSignature['Args']['color'];\n /** Icon before the badge, e.g. the app it comes from. */\n iconType?: EuiIconSignature['Args']['type'];\n /** Accessible label of `@iconType`; without it the icon is decorative. */\n iconAriaLabel?: string;\n /** When it happened, e.g. \"2 min ago\". */\n time?: string;\n /** Color of `@iconType`. */\n iconColor?: string;\n /** Color of the read indicator. Defaults to `'primary'`. */\n readIconColor?: string;\n /** Heading tag of the title. Defaults to `'h2'`. */\n headingLevel?: TextBlockSignature['Args']['tagName'];\n /**\n * The event's messages: the first is shown, the rest behind a\n * \"show more\" accordion.\n */\n messages: EuiNotificationEventMessagesSignature['Args']['messages'];\n /** Text of the button revealing the other messages, e.g. \"+ 2 more\". */\n accordionButtonText?: EuiNotificationEventMessagesSignature['Args']['accordionButtonText'];\n /** Text shown next to it while closed, e.g. \"Show\". */\n accordionHideText?: EuiNotificationEventMessagesSignature['Args']['accordionHideText'];\n };\n Blocks: {\n /** Unused. */\n default: [];\n /** Context menu content, e.g. an `EuiContextMenuPanel` of actions. */\n contextMenu: [];\n /** A primary action below the messages, e.g. a \"View\" button. */\n primaryAction: [];\n };\n}\n\nconst EuiNotificationEvent: TemplateOnlyComponent<EuiNotificationEventSignature> =\n <template>\n {{#let\n (randomId)\n (element (argOrDefault @tagName \"article\"))\n (and (argOrDefault @hasContextMenuBlock true) (has-block \"contextMenu\"))\n (and\n (argOrDefault @hasPrimaryActionBlock true) (has-block \"primaryAction\")\n )\n as |id Element hasContextMenuBlock hasPrimaryActionBlock|\n }}\n <Element\n aria-labelledby={{id}}\n key={{@id}}\n class={{classNames\n \"euiNotificationEvent\"\n (if\n (eq (typeOf @isRead) \"boolean\")\n \"euiNotificationEvent--withReadState\"\n )\n }}\n ...attributes\n >\n\n {{#if (eq (typeOf @isRead) \"boolean\")}}\n <div class=\"euiNotificationEvent__readButton\">\n {{#if @onRead}}\n <EuiNotificationEventReadButton\n @id={{@id}}\n @isRead={{@isRead}}\n @eventName={{@title}}\n {{on \"click\" @onRead}}\n />\n {{else}}\n <EuiNotificationEventReadIcon\n @id={{@id}}\n @isRead={{@isRead}}\n @eventName={{@title}}\n @readIconColor={{@readIconColor}}\n />\n {{/if}}\n </div>\n {{/if}}\n\n <div class=\"euiNotificationEvent__content\">\n <EuiNotificationEventMeta\n @id={{@id}}\n @type={{@type}}\n @severity={{@severity}}\n @badgeColor={{@badgeColor}}\n @iconType={{@iconType}}\n @iconAriaLabel={{@iconAriaLabel}}\n @time={{@time}}\n @onOpenContextMenu={{@onOpenContextMenu}}\n @hasDefaultBlock={{hasContextMenuBlock}}\n @iconColor={{@iconColor}}\n >\n {{yield to=\"contextMenu\"}}\n </EuiNotificationEventMeta>\n\n {{#let\n (classNames\n \"euiNotificationEvent__title\"\n (if @isRead \"euiNotificationEvent__title--isRead\")\n )\n (argOrDefault @headingLevel \"h2\")\n as |classNames headingLevel|\n }}\n {{#if (or @href @onClickTitle)}}\n <EuiLink\n class={{classNames}}\n id={{id}}\n @href={{@href}}\n {{on \"click\" (optional @onClickTitle)}}\n >\n <TextBlock @tagName={{headingLevel}}>\n {{@title}}\n </TextBlock>\n </EuiLink>\n {{else if @title}}\n <TextBlock\n id={{id}}\n class={{classNames}}\n @tagName={{headingLevel}}\n >\n {{@title}}\n </TextBlock>\n {{/if}}\n {{/let}}\n\n <EuiNotificationEventMessages\n @messages={{@messages}}\n @accordionButtonText={{@accordionButtonText}}\n @accordionHideText={{@accordionHideText}}\n />\n\n {{#if hasPrimaryActionBlock}}\n <div class=\"euiNotificationEvent__primaryAction\">\n {{yield to=\"primaryAction\"}}\n </div>\n {{/if}}\n\n </div>\n\n </Element>\n {{/let}}\n </template>;\n\nexport default EuiNotificationEvent;\n"],"names":["EuiNotificationEvent","setComponentTemplate","precompileTemplate","strictMode","scope","randomId","element","argOrDefault","and","classNames","eq","typeOf","EuiNotificationEventReadButton","on","EuiNotificationEventReadIcon","EuiNotificationEventMeta","or","EuiLink","optional","TextBlock","EuiNotificationEventMessages","templateOnly"],"mappings":";;;;;;;;;;;;;;;;;;AA2FA,MAAMA,oBAA4C,GAAAC,oBAAA,CAChDC,kBAAA,CAAA,gzEAAA,EAyGA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,QAAA;IAAAC,OAAA;IAAAC,YAAA;IAAAC,GAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,MAAA;IAAAC,8BAAA;IAAAC,EAAA;IAAAC,4BAAA;8BAAAC,sBAAA;IAAAC,EAAA;IAAAC,OAAA;IAAAC,QAAA;IAAAC,SAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-notification-event.js","sources":["../../src/components/eui-notification-event.gts"],"sourcesContent":["import { on } from '@ember/modifier';\n\nimport optional from '@nullvoxpopuli/ember-composable-helpers/helpers/optional';\nimport { and, eq, or } from 'ember-truth-helpers';\n\nimport randomId from '../-private/random-id.ts';\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport typeOf from '../helpers/type-of.ts';\nimport EuiLink from './eui-link.gts';\nimport EuiNotificationEventMessages from './eui-notification-event-messages.gts';\nimport EuiNotificationEventMeta from './eui-notification-event-meta.gts';\nimport EuiNotificationEventReadButton from './eui-notification-event-read-button.gts';\nimport EuiNotificationEventReadIcon from './eui-notification-event-read-icon.gts';\nimport TextBlock from './text-block.gts';\n\nimport type { EuiBadgeSignature } from './eui-badge';\nimport type { EuiIconSignature } from './eui-icon';\nimport type { EuiNotificationEventMessagesSignature } from './eui-notification-event-messages';\nimport type { TextBlockSignature } from './text-block';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/**\n * One notification in a list (e.g. a flyout from the header): title,\n * source, time, messages, read state and actions.\n */\nexport interface EuiNotificationEventSignature {\n Element: any;\n Args: {\n /** Id of the event, for its read button/icon. */\n id?: string;\n /** Tag of the event. Defaults to `'article'`. */\n tagName?: string;\n /** @private Render the `<:contextMenu>` block. Defaults to `true`. */\n hasContextMenuBlock?: boolean;\n /** @private Render the `<:primaryAction>` block. Defaults to `true`. */\n hasPrimaryActionBlock?: boolean;\n /**\n * Read state. When a boolean, shows a read indicator (a button with\n * `@onRead`, otherwise an icon); leave it undefined to show none.\n */\n isRead?: boolean;\n /** Makes the title a link. */\n href?: string;\n /** Makes the title a button calling this function. */\n onClickTitle?: (event: MouseEvent) => void;\n /** Called by the read button; toggle `@isRead` here. */\n onRead?: (event: MouseEvent) => void;\n /** Called when the context menu button is clicked. */\n onOpenContextMenu?: (event: MouseEvent) => void;\n /** The event's title. */\n title?: string;\n /** Kind of event shown in a badge, e.g. \"Alert\" or \"Report\". */\n type?: string;\n /** Severity appended to the badge, e.g. \"Critical\" (\"Alert: Critical\"). */\n severity?: string;\n /** Color of the type badge, any `EuiBadge` color. */\n badgeColor?: EuiBadgeSignature['Args']['color'];\n /** Icon before the badge, e.g. the app it comes from. */\n iconType?: EuiIconSignature['Args']['type'];\n /** Accessible label of `@iconType`; without it the icon is decorative. */\n iconAriaLabel?: string;\n /** When it happened, e.g. \"2 min ago\". */\n time?: string;\n /** Color of `@iconType`. */\n iconColor?: string;\n /** Color of the read indicator. Defaults to `'primary'`. */\n readIconColor?: string;\n /** Heading tag of the title. Defaults to `'h2'`. */\n headingLevel?: TextBlockSignature['Args']['tagName'];\n /**\n * The event's messages: the first is shown, the rest behind a\n * \"show more\" accordion.\n */\n messages: EuiNotificationEventMessagesSignature['Args']['messages'];\n /** Text of the button revealing the other messages, e.g. \"+ 2 more\". */\n accordionButtonText?: EuiNotificationEventMessagesSignature['Args']['accordionButtonText'];\n /** Text shown next to it while closed, e.g. \"Show\". */\n accordionHideText?: EuiNotificationEventMessagesSignature['Args']['accordionHideText'];\n };\n Blocks: {\n /** Unused. */\n default: [];\n /** Context menu content, e.g. an `EuiContextMenuPanel` of actions. */\n contextMenu: [];\n /** A primary action below the messages, e.g. a \"View\" button. */\n primaryAction: [];\n };\n}\n\nconst EuiNotificationEvent: TemplateOnlyComponent<EuiNotificationEventSignature> =\n <template>\n {{#let\n (randomId)\n (element (argOrDefault @tagName \"article\"))\n (and (argOrDefault @hasContextMenuBlock true) (has-block \"contextMenu\"))\n (and\n (argOrDefault @hasPrimaryActionBlock true) (has-block \"primaryAction\")\n )\n as |id Element hasContextMenuBlock hasPrimaryActionBlock|\n }}\n <Element\n aria-labelledby={{id}}\n key={{@id}}\n class={{classNames\n \"euiNotificationEvent\"\n (if\n (eq (typeOf @isRead) \"boolean\")\n \"euiNotificationEvent--withReadState\"\n )\n }}\n ...attributes\n >\n\n {{#if (eq (typeOf @isRead) \"boolean\")}}\n <div class=\"euiNotificationEvent__readButton\">\n {{#if @onRead}}\n <EuiNotificationEventReadButton\n @id={{@id}}\n @isRead={{@isRead}}\n @eventName={{@title}}\n {{on \"click\" @onRead}}\n />\n {{else}}\n <EuiNotificationEventReadIcon\n @id={{@id}}\n @isRead={{@isRead}}\n @eventName={{@title}}\n @readIconColor={{@readIconColor}}\n />\n {{/if}}\n </div>\n {{/if}}\n\n <div class=\"euiNotificationEvent__content\">\n <EuiNotificationEventMeta\n @id={{@id}}\n @type={{@type}}\n @severity={{@severity}}\n @badgeColor={{@badgeColor}}\n @iconType={{@iconType}}\n @iconAriaLabel={{@iconAriaLabel}}\n @time={{@time}}\n @onOpenContextMenu={{@onOpenContextMenu}}\n @hasDefaultBlock={{hasContextMenuBlock}}\n @iconColor={{@iconColor}}\n >\n {{yield to=\"contextMenu\"}}\n </EuiNotificationEventMeta>\n\n {{#let\n (classNames\n \"euiNotificationEvent__title\"\n (if @isRead \"euiNotificationEvent__title--isRead\")\n )\n (argOrDefault @headingLevel \"h2\")\n as |classNames headingLevel|\n }}\n {{#if (or @href @onClickTitle)}}\n <EuiLink\n class={{classNames}}\n id={{id}}\n @href={{@href}}\n {{on \"click\" (optional @onClickTitle)}}\n >\n <TextBlock @tagName={{headingLevel}}>\n {{@title}}\n </TextBlock>\n </EuiLink>\n {{else if @title}}\n <TextBlock\n id={{id}}\n class={{classNames}}\n @tagName={{headingLevel}}\n >\n {{@title}}\n </TextBlock>\n {{/if}}\n {{/let}}\n\n <EuiNotificationEventMessages\n @messages={{@messages}}\n @accordionButtonText={{@accordionButtonText}}\n @accordionHideText={{@accordionHideText}}\n />\n\n {{#if hasPrimaryActionBlock}}\n <div class=\"euiNotificationEvent__primaryAction\">\n {{yield to=\"primaryAction\"}}\n </div>\n {{/if}}\n\n </div>\n\n </Element>\n {{/let}}\n </template>;\n\nexport default EuiNotificationEvent;\n"],"names":["EuiNotificationEvent","setComponentTemplate","precompileTemplate","strictMode","scope","randomId","argOrDefault","and","classNames","eq","typeOf","EuiNotificationEventReadButton","on","EuiNotificationEventReadIcon","EuiNotificationEventMeta","or","EuiLink","optional","TextBlock","EuiNotificationEventMessages","templateOnly"],"mappings":";;;;;;;;;;;;;;;;;AA0FA,MAAMA,oBAA4C,GAAAC,oBAAA,CAChDC,kBAAA,CAAA,gzEAAA,EAyGA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,QAAA;IAAAC,YAAA;IAAAC,GAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,MAAA;IAAAC,8BAAA;IAAAC,EAAA;IAAAC,4BAAA;8BAAAC,sBAAA;IAAAC,EAAA;IAAAC,OAAA;IAAAC,QAAA;IAAAC,SAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -1,5 +1,4 @@
1
1
  import { concat } from '@ember/helper';
2
- import { element } from 'ember-element-helper';
3
2
  import style from 'ember-style-modifier/modifiers/style';
4
3
  import { eq } from 'ember-truth-helpers';
5
4
  import argOrDefault from '../helpers/arg-or-default.js';
@@ -19,8 +18,7 @@ const EuiPageBody = setComponentTemplate(precompileTemplate("{{#let (argOrDefaul
19
18
  classNames,
20
19
  eq,
21
20
  concat,
22
- style,
23
- element
21
+ style
24
22
  })
25
23
  }), templateOnly());
26
24
 
@@ -1 +1 @@
1
- {"version":3,"file":"eui-page-body.js","sources":["../../src/components/eui-page-body.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport { element } from 'ember-element-helper';\nimport style from 'ember-style-modifier/modifiers/style';\nimport { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport euiPageRestrictWidth from '../helpers/eui-page-restrict-width.ts';\nimport EuiPanel from './eui-panel.gts';\n\nimport type { EuiPanelSignature } from './eui-panel';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** The main column of an EuiPage: header, content and so on. */\nexport interface EuiPageBodySignature {\n Element: EuiPanelSignature['Element'];\n Args: {\n /**\n * Max width of the content: `true` for EUI's default (1000px), a\n * number in px, or any CSS width. Defaults to `false` (no limit).\n */\n restrictWidth?: boolean | number | string;\n /** Tag of the body (without `@panelled`). Defaults to `'div'`. */\n tagName?: string;\n /** Border radius of the panel: `'none'` or `'m'`. Defaults to `'none'`. */\n borderRadius?: EuiPanelSignature['Args']['borderRadius'];\n /**\n * Padding: `'none'`, `'s'`, `'m'` or `'l'`. Defaults to `'l'` when\n * `@panelled`, `'none'` otherwise.\n */\n paddingSize?: 'none' | 's' | 'm' | 'l';\n /** Renders the body as an `EuiPanel` (white background with padding). */\n panelled?: boolean;\n /** Panel background: `'subdued'` or `'transparent'`. */\n color?: 'subdued' | 'transparent';\n /** Adds a border to the panel. */\n hasBorder?: boolean;\n /** Adds a shadow to the panel. */\n hasShadow?: boolean;\n /** Inline styles, merged with the max width. */\n style?: Record<string, string>;\n };\n Blocks: {\n /** Usually an `EuiPageHeader` and `EuiPageContent`. */\n default: [];\n };\n}\n\nconst EuiPageBody: TemplateOnlyComponent<EuiPageBodySignature> = <template>\n {{#let\n (argOrDefault @restrictWidth false)\n (argOrDefault @tagName \"div\")\n (argOrDefault @borderRadius \"none\")\n (argOrDefault @paddingSize (if @panelled \"l\" \"none\"))\n as |restrictWidth tagName borderRadius paddingSize|\n }}\n\n {{#let (euiPageRestrictWidth restrictWidth @style) as |styling|}}\n {{#if @panelled}}\n <EuiPanel\n class={{classNames\n (if (eq borderRadius \"none\") \"euiPageBody--borderRadiusNone\")\n (if\n styling.widthClassName\n (concat \"euiPageBody--\" styling.widthClassName)\n )\n componentName=\"EuiPageBody\"\n paddingSize=@paddingSize\n }}\n @paddingSize={{paddingSize}}\n @borderRadius={{borderRadius}}\n @color={{@color}}\n @hasBorder={{@hasBorder}}\n @hasShadow={{@hasShadow}}\n {{style styling.newStyle}}\n ...attributes\n >\n {{yield}}\n </EuiPanel>\n {{else}}\n {{#let (element tagName) as |Tag|}}\n <Tag\n class={{classNames\n (if (eq borderRadius \"none\") \"euiPageBody--borderRadiusNone\")\n (if\n styling.widthClassName\n (concat \"euiPageBody--\" styling.widthClassName)\n )\n componentName=\"EuiPageBody\"\n paddingSize=@paddingSize\n }}\n {{style styling.newStyle}}\n {{!@glint-expect-error}}\n ...attributes\n >\n {{yield}}\n </Tag>\n {{/let}}\n {{/if}}\n {{/let}}\n {{/let}}\n</template>;\n\nexport default EuiPageBody;\n"],"names":["EuiPageBody","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","euiPageRestrictWidth","EuiPanel","classNames","eq","concat","style","element","templateOnly"],"mappings":";;;;;;;;;;;;AAiDA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,isCAAA,EAqDjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,oBAAA;IAAAC,QAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,MAAA;IAAAC,KAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-page-body.js","sources":["../../src/components/eui-page-body.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport style from 'ember-style-modifier/modifiers/style';\nimport { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport euiPageRestrictWidth from '../helpers/eui-page-restrict-width.ts';\nimport EuiPanel from './eui-panel.gts';\n\nimport type { EuiPanelSignature } from './eui-panel';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** The main column of an EuiPage: header, content and so on. */\nexport interface EuiPageBodySignature {\n Element: EuiPanelSignature['Element'];\n Args: {\n /**\n * Max width of the content: `true` for the bundled Amsterdam theme's\n * default (1200px), a\n * number in px, or any CSS width. Defaults to `false` (no limit).\n */\n restrictWidth?: boolean | number | string;\n /** Tag of the body (without `@panelled`). Defaults to `'div'`. */\n tagName?: string;\n /** Border radius of the panel: `'none'` or `'m'`. Defaults to `'none'`. */\n borderRadius?: EuiPanelSignature['Args']['borderRadius'];\n /**\n * Padding: `'none'`, `'s'`, `'m'` or `'l'`. Defaults to `'l'` when\n * `@panelled`, `'none'` otherwise.\n */\n paddingSize?: 'none' | 's' | 'm' | 'l';\n /** Renders the body as an `EuiPanel` (white background with padding). */\n panelled?: boolean;\n /** Panel background: `'subdued'` or `'transparent'`. */\n color?: 'subdued' | 'transparent';\n /** Adds a border to the panel. */\n hasBorder?: boolean;\n /** Adds a shadow to the panel. */\n hasShadow?: boolean;\n /** Inline styles, merged with the max width. */\n style?: Record<string, string>;\n };\n Blocks: {\n /** Usually an `EuiPageHeader` and `EuiPageContent`. */\n default: [];\n };\n}\n\nconst EuiPageBody: TemplateOnlyComponent<EuiPageBodySignature> = <template>\n {{#let\n (argOrDefault @restrictWidth false)\n (argOrDefault @tagName \"div\")\n (argOrDefault @borderRadius \"none\")\n (argOrDefault @paddingSize (if @panelled \"l\" \"none\"))\n as |restrictWidth tagName borderRadius paddingSize|\n }}\n\n {{#let (euiPageRestrictWidth restrictWidth @style) as |styling|}}\n {{#if @panelled}}\n <EuiPanel\n class={{classNames\n (if (eq borderRadius \"none\") \"euiPageBody--borderRadiusNone\")\n (if\n styling.widthClassName\n (concat \"euiPageBody--\" styling.widthClassName)\n )\n componentName=\"EuiPageBody\"\n paddingSize=@paddingSize\n }}\n @paddingSize={{paddingSize}}\n @borderRadius={{borderRadius}}\n @color={{@color}}\n @hasBorder={{@hasBorder}}\n @hasShadow={{@hasShadow}}\n {{style styling.newStyle}}\n ...attributes\n >\n {{yield}}\n </EuiPanel>\n {{else}}\n {{#let (element tagName) as |Tag|}}\n <Tag\n class={{classNames\n (if (eq borderRadius \"none\") \"euiPageBody--borderRadiusNone\")\n (if\n styling.widthClassName\n (concat \"euiPageBody--\" styling.widthClassName)\n )\n componentName=\"EuiPageBody\"\n paddingSize=@paddingSize\n }}\n {{style styling.newStyle}}\n {{!@glint-expect-error}}\n ...attributes\n >\n {{yield}}\n </Tag>\n {{/let}}\n {{/if}}\n {{/let}}\n {{/let}}\n</template>;\n\nexport default EuiPageBody;\n"],"names":["EuiPageBody","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","euiPageRestrictWidth","EuiPanel","classNames","eq","concat","style","templateOnly"],"mappings":";;;;;;;;;;;AAiDA,MAAMA,WAAmC,GAAAC,oBAAA,CAAwBC,kBAAA,CAAA,isCAAA,EAqDjE;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,oBAAA;IAAAC,QAAA;IAAAC,UAAA;IAAAC,EAAA;IAAAC,MAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"eui-page-content-body.js","sources":["../../src/components/eui-page-content-body.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport style from 'ember-style-modifier/modifiers/style';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport euiPageRestrictWidth from '../helpers/eui-page-restrict-width.ts';\n\nimport type { paddingSizeMapping } from '../utils/css-mappings/eui-page-content-body.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** The content of an EuiPageContent. */\nexport interface EuiPageContentBodySignature {\n Element: HTMLDivElement;\n Args: {\n /**\n * Max width of the content: `true` for EUI's default (1000px), a\n * number in px, or any CSS width. Defaults to `false` (no limit).\n */\n restrictWidth?: boolean | number | string;\n /** Padding: `'none'`, `'s'`, `'m'` or `'l'`. */\n paddingSize?: keyof typeof paddingSizeMapping;\n /** Inline styles, merged with the max width. */\n style?: {\n [key: string]: string;\n };\n };\n Blocks: {\n /** The content. */\n default: [];\n };\n}\n\nconst EuiPageContentBody: TemplateOnlyComponent<EuiPageContentBodySignature> =\n <template>\n {{#let\n (euiPageRestrictWidth (argOrDefault @restrictWidth false) @style)\n as |styling|\n }}\n <div\n class={{classNames\n (if styling.widthClassName (concat \"euiPage--\" styling.widthClassName))\n componentName=\"EuiPageContentBody\"\n paddingSize=@paddingSize\n }}\n {{style styling.newStyle}}\n ...attributes\n >\n {{yield}}\n </div>\n {{/let}}\n </template>;\n\nexport default EuiPageContentBody;\n"],"names":["EuiPageContentBody","setComponentTemplate","precompileTemplate","strictMode","scope","euiPageRestrictWidth","argOrDefault","classNames","concat","style","templateOnly"],"mappings":";;;;;;;;;AAiCA,MAAMA,kBAA0C,GAAAC,oBAAA,CAC9CC,kBAAA,CAAA,2UAAA,EAiBA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,oBAAA;IAAAC,YAAA;IAAAC,UAAA;IAAAC,MAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-page-content-body.js","sources":["../../src/components/eui-page-content-body.gts"],"sourcesContent":["import { concat } from '@ember/helper';\n\nimport style from 'ember-style-modifier/modifiers/style';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport euiPageRestrictWidth from '../helpers/eui-page-restrict-width.ts';\n\nimport type { paddingSizeMapping } from '../utils/css-mappings/eui-page-content-body.ts';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** The content of an EuiPageContent. */\nexport interface EuiPageContentBodySignature {\n Element: HTMLDivElement;\n Args: {\n /**\n * Max width of the content: `true` for the bundled Amsterdam theme's\n * default (1200px), a\n * number in px, or any CSS width. Defaults to `false` (no limit).\n */\n restrictWidth?: boolean | number | string;\n /** Padding: `'none'`, `'s'`, `'m'` or `'l'`. */\n paddingSize?: keyof typeof paddingSizeMapping;\n /** Inline styles, merged with the max width. */\n style?: {\n [key: string]: string;\n };\n };\n Blocks: {\n /** The content. */\n default: [];\n };\n}\n\nconst EuiPageContentBody: TemplateOnlyComponent<EuiPageContentBodySignature> =\n <template>\n {{#let\n (euiPageRestrictWidth (argOrDefault @restrictWidth false) @style)\n as |styling|\n }}\n <div\n class={{classNames\n (if styling.widthClassName (concat \"euiPage--\" styling.widthClassName))\n componentName=\"EuiPageContentBody\"\n paddingSize=@paddingSize\n }}\n {{style styling.newStyle}}\n ...attributes\n >\n {{yield}}\n </div>\n {{/let}}\n </template>;\n\nexport default EuiPageContentBody;\n"],"names":["EuiPageContentBody","setComponentTemplate","precompileTemplate","strictMode","scope","euiPageRestrictWidth","argOrDefault","classNames","concat","style","templateOnly"],"mappings":";;;;;;;;;AAkCA,MAAMA,kBAA0C,GAAAC,oBAAA,CAC9CC,kBAAA,CAAA,2UAAA,EAiBA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,oBAAA;IAAAC,YAAA;IAAAC,UAAA;IAAAC,MAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
@@ -1 +1 @@
1
- {"version":3,"file":"eui-page-content.js","sources":["../../src/components/eui-page-content.gts"],"sourcesContent":["import { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiPanel from './eui-panel.gts';\n\nimport type { EuiPanelSignature } from './eui-panel';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** A panel holding the page's main content, inside EuiPageBody. */\nexport interface EuiPageContentSignature {\n Element: HTMLDivElement;\n Args: {\n /** `role` of the content. Defaults to `'main'`; pass `null` for none. */\n role?: string;\n /** Vertically centers (`'center'`) or bottom-aligns the content panel. */\n verticalPosition?: 'center' | 'bottom';\n /** Horizontally centers the content panel (e.g. an empty prompt). */\n horizontalPosition?: 'center';\n /** Adds a shadow. */\n hasShadow?: boolean;\n /** Adds a border. */\n hasBorder?: boolean;\n /** Padding, any `EuiPanel` padding size. Defaults to `'l'`. */\n paddingSize?: EuiPanelSignature['Args']['paddingSize'];\n /** Border radius: `'none'` or `'m'`. */\n borderRadius?: EuiPanelSignature['Args']['borderRadius'];\n /** Background, any `EuiPanel` color. */\n color?: EuiPanelSignature['Args']['color'];\n /** Fills the remaining height. */\n grow?: boolean;\n };\n Blocks: {\n /** `EuiPageContentHeader` and `EuiPageContentBody`, or any content. */\n default: [];\n };\n}\n\nconst EuiPageContent: TemplateOnlyComponent<EuiPageContentSignature> =\n <template>\n {{#let (argOrDefault @role \"main\") as |role|}}\n <EuiPanel\n role={{if (eq role null) undefined role}}\n class={{classNames\n (if (eq @borderRadius \"none\") \"euiPageContent--borderRadiusNone\")\n componentName=\"EuiPageContent\"\n verticalPosition=@verticalPosition\n horizontalPosition=@horizontalPosition\n }}\n @hasShadow={{@hasShadow}}\n @hasBorder={{@hasBorder}}\n @paddingSize={{argOrDefault @paddingSize \"l\"}}\n @borderRadius={{@borderRadius}}\n @color={{@color}}\n @grow={{@grow}}\n ...attributes\n >\n {{yield}}\n </EuiPanel>\n {{/let}}\n </template>;\n\nexport default EuiPageContent;\n"],"names":["EuiPageContent","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","EuiPanel","eq","classNames","templateOnly"],"mappings":";;;;;;;;AAsCA,MAAMA,cAAsC,GAAAC,oBAAA,CAC1CC,kBAAA,CAAA,6gBAAA,EAqBA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,EAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}
1
+ {"version":3,"file":"eui-page-content.js","sources":["../../src/components/eui-page-content.gts"],"sourcesContent":["import { eq } from 'ember-truth-helpers';\n\nimport argOrDefault from '../helpers/arg-or-default.ts';\nimport classNames from '../helpers/class-names.ts';\nimport EuiPanel from './eui-panel.gts';\n\nimport type { EuiPanelSignature } from './eui-panel';\nimport type { TemplateOnlyComponent } from '@ember/component/template-only';\n\n/** A panel holding the page's main content, inside EuiPageBody. */\nexport interface EuiPageContentSignature {\n Element: HTMLDivElement;\n Args: {\n /** `role` of the content. Defaults to `'main'`; pass `null` for none. */\n role?: string | null;\n /** Vertically centers (`'center'`) or bottom-aligns the content panel. */\n verticalPosition?: 'center' | 'bottom';\n /** Horizontally centers the content panel (e.g. an empty prompt). */\n horizontalPosition?: 'center';\n /** Adds a shadow. */\n hasShadow?: boolean;\n /** Adds a border. */\n hasBorder?: boolean;\n /** Padding, any `EuiPanel` padding size. Defaults to `'l'`. */\n paddingSize?: EuiPanelSignature['Args']['paddingSize'];\n /** Border radius: `'none'` or `'m'`. */\n borderRadius?: EuiPanelSignature['Args']['borderRadius'];\n /** Background, any `EuiPanel` color. */\n color?: EuiPanelSignature['Args']['color'];\n /** Fills the remaining height. */\n grow?: boolean;\n };\n Blocks: {\n /** `EuiPageContentHeader` and `EuiPageContentBody`, or any content. */\n default: [];\n };\n}\n\nconst EuiPageContent: TemplateOnlyComponent<EuiPageContentSignature> =\n <template>\n {{#let (argOrDefault @role \"main\") as |role|}}\n <EuiPanel\n role={{if (eq role null) undefined role}}\n class={{classNames\n (if (eq @borderRadius \"none\") \"euiPageContent--borderRadiusNone\")\n componentName=\"EuiPageContent\"\n verticalPosition=@verticalPosition\n horizontalPosition=@horizontalPosition\n }}\n @hasShadow={{@hasShadow}}\n @hasBorder={{@hasBorder}}\n @paddingSize={{argOrDefault @paddingSize \"l\"}}\n @borderRadius={{@borderRadius}}\n @color={{@color}}\n @grow={{@grow}}\n ...attributes\n >\n {{yield}}\n </EuiPanel>\n {{/let}}\n </template>;\n\nexport default EuiPageContent;\n"],"names":["EuiPageContent","setComponentTemplate","precompileTemplate","strictMode","scope","argOrDefault","EuiPanel","eq","classNames","templateOnly"],"mappings":";;;;;;;;AAsCA,MAAMA,cAAsC,GAAAC,oBAAA,CAC1CC,kBAAA,CAAA,6gBAAA,EAqBA;EAAAC,UAAA,EAAA,IAAA;AAAAC,EAAAA,KAAA,EAAAA,OAAA;IAAAC,YAAA;IAAAC,QAAA;IAAAC,EAAA;AAAAC,IAAAA;AAAA,GAAA;AAAU,CAAA,CAAA,EAAAC,YAAA,EAAA;;"}