@ember-eui/core 16.1.4 → 16.3.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 (117) hide show
  1. package/declarations/components/eui-combo-box.d.ts +2 -0
  2. package/declarations/components/eui-combo-box.d.ts.map +1 -1
  3. package/declarations/components/eui-data-grid/body.d.ts +6 -0
  4. package/declarations/components/eui-data-grid/body.d.ts.map +1 -1
  5. package/declarations/components/eui-data-grid/cell.d.ts +27 -3
  6. package/declarations/components/eui-data-grid/cell.d.ts.map +1 -1
  7. package/declarations/utils/data-grid/types.d.ts +9 -0
  8. package/declarations/utils/data-grid/types.d.ts.map +1 -1
  9. package/dist/components/eui-combo-box.js +11 -1
  10. package/dist/components/eui-combo-box.js.map +1 -1
  11. package/dist/components/eui-data-grid/body.js +18 -1
  12. package/dist/components/eui-data-grid/body.js.map +1 -1
  13. package/dist/components/eui-data-grid/cell.js +87 -10
  14. package/dist/components/eui-data-grid/cell.js.map +1 -1
  15. package/package.json +1 -5
  16. package/dist/_app_/components/eui-data-grid/cell-actions.js +0 -1
  17. package/dist/_app_/components/eui-data-grid/row-tree-hooks.js +0 -1
  18. package/dist/_app_/components/eui-super-date-picker/utils/pretty-interval.js +0 -1
  19. package/dist/_app_/components/eui-super-date-picker/utils/time-window.js +0 -1
  20. package/dist/utils/eui/styles.generated/shared/2KP7ZYVN.js +0 -96
  21. package/dist/utils/eui/styles.generated/shared/2KP7ZYVN.js.map +0 -1
  22. package/dist/utils/eui/styles.generated/shared/2PX3JFSX.js +0 -8
  23. package/dist/utils/eui/styles.generated/shared/2PX3JFSX.js.map +0 -1
  24. package/dist/utils/eui/styles.generated/shared/3HLX7DYX.js +0 -43
  25. package/dist/utils/eui/styles.generated/shared/3HLX7DYX.js.map +0 -1
  26. package/dist/utils/eui/styles.generated/shared/3X7KG6KZ.js +0 -34
  27. package/dist/utils/eui/styles.generated/shared/3X7KG6KZ.js.map +0 -1
  28. package/dist/utils/eui/styles.generated/shared/5EH4B2MX.js +0 -54
  29. package/dist/utils/eui/styles.generated/shared/5EH4B2MX.js.map +0 -1
  30. package/dist/utils/eui/styles.generated/shared/5YF7BOXJ.js +0 -32
  31. package/dist/utils/eui/styles.generated/shared/5YF7BOXJ.js.map +0 -1
  32. package/dist/utils/eui/styles.generated/shared/7BV6JFNX.js +0 -8
  33. package/dist/utils/eui/styles.generated/shared/7BV6JFNX.js.map +0 -1
  34. package/dist/utils/eui/styles.generated/shared/7JAANWBO.js +0 -50
  35. package/dist/utils/eui/styles.generated/shared/7JAANWBO.js.map +0 -1
  36. package/dist/utils/eui/styles.generated/shared/A7DFBAYP.js +0 -15
  37. package/dist/utils/eui/styles.generated/shared/A7DFBAYP.js.map +0 -1
  38. package/dist/utils/eui/styles.generated/shared/AAE5X575.js +0 -15
  39. package/dist/utils/eui/styles.generated/shared/AAE5X575.js.map +0 -1
  40. package/dist/utils/eui/styles.generated/shared/ADPZ5ZHU.js +0 -51
  41. package/dist/utils/eui/styles.generated/shared/ADPZ5ZHU.js.map +0 -1
  42. package/dist/utils/eui/styles.generated/shared/AK7JHATO.js +0 -94
  43. package/dist/utils/eui/styles.generated/shared/AK7JHATO.js.map +0 -1
  44. package/dist/utils/eui/styles.generated/shared/ALXERYI2.js +0 -105
  45. package/dist/utils/eui/styles.generated/shared/ALXERYI2.js.map +0 -1
  46. package/dist/utils/eui/styles.generated/shared/AOXFB3IO.js +0 -53
  47. package/dist/utils/eui/styles.generated/shared/AOXFB3IO.js.map +0 -1
  48. package/dist/utils/eui/styles.generated/shared/BVOWQNBH.js +0 -52
  49. package/dist/utils/eui/styles.generated/shared/BVOWQNBH.js.map +0 -1
  50. package/dist/utils/eui/styles.generated/shared/CB6ESQBS.js +0 -205
  51. package/dist/utils/eui/styles.generated/shared/CB6ESQBS.js.map +0 -1
  52. package/dist/utils/eui/styles.generated/shared/CCCFBJVK.js +0 -65
  53. package/dist/utils/eui/styles.generated/shared/CCCFBJVK.js.map +0 -1
  54. package/dist/utils/eui/styles.generated/shared/DDMXGYZ4.js +0 -92
  55. package/dist/utils/eui/styles.generated/shared/DDMXGYZ4.js.map +0 -1
  56. package/dist/utils/eui/styles.generated/shared/DRBXG4RG.js +0 -34
  57. package/dist/utils/eui/styles.generated/shared/DRBXG4RG.js.map +0 -1
  58. package/dist/utils/eui/styles.generated/shared/FF2BUTYE.js +0 -345
  59. package/dist/utils/eui/styles.generated/shared/FF2BUTYE.js.map +0 -1
  60. package/dist/utils/eui/styles.generated/shared/FM74KBRW.js +0 -94
  61. package/dist/utils/eui/styles.generated/shared/FM74KBRW.js.map +0 -1
  62. package/dist/utils/eui/styles.generated/shared/ISD4LC5N.js +0 -86
  63. package/dist/utils/eui/styles.generated/shared/ISD4LC5N.js.map +0 -1
  64. package/dist/utils/eui/styles.generated/shared/ITO4GMBL.js +0 -29
  65. package/dist/utils/eui/styles.generated/shared/ITO4GMBL.js.map +0 -1
  66. package/dist/utils/eui/styles.generated/shared/JZFLXET7.js +0 -103
  67. package/dist/utils/eui/styles.generated/shared/JZFLXET7.js.map +0 -1
  68. package/dist/utils/eui/styles.generated/shared/K76TL4VL.js +0 -33
  69. package/dist/utils/eui/styles.generated/shared/K76TL4VL.js.map +0 -1
  70. package/dist/utils/eui/styles.generated/shared/KTFNPVK5.js +0 -41
  71. package/dist/utils/eui/styles.generated/shared/KTFNPVK5.js.map +0 -1
  72. package/dist/utils/eui/styles.generated/shared/LIMINYBX.js +0 -35
  73. package/dist/utils/eui/styles.generated/shared/LIMINYBX.js.map +0 -1
  74. package/dist/utils/eui/styles.generated/shared/LXBSAITL.js +0 -59
  75. package/dist/utils/eui/styles.generated/shared/LXBSAITL.js.map +0 -1
  76. package/dist/utils/eui/styles.generated/shared/MOWJCDZN.js +0 -249
  77. package/dist/utils/eui/styles.generated/shared/MOWJCDZN.js.map +0 -1
  78. package/dist/utils/eui/styles.generated/shared/OB4N5SEF.js +0 -18
  79. package/dist/utils/eui/styles.generated/shared/OB4N5SEF.js.map +0 -1
  80. package/dist/utils/eui/styles.generated/shared/OM62WJTY.js +0 -29
  81. package/dist/utils/eui/styles.generated/shared/OM62WJTY.js.map +0 -1
  82. package/dist/utils/eui/styles.generated/shared/OMXYFSPG.js +0 -278
  83. package/dist/utils/eui/styles.generated/shared/OMXYFSPG.js.map +0 -1
  84. package/dist/utils/eui/styles.generated/shared/PAAU7JXW.js +0 -46
  85. package/dist/utils/eui/styles.generated/shared/PAAU7JXW.js.map +0 -1
  86. package/dist/utils/eui/styles.generated/shared/PEESTLDI.js +0 -30
  87. package/dist/utils/eui/styles.generated/shared/PEESTLDI.js.map +0 -1
  88. package/dist/utils/eui/styles.generated/shared/QDR655TL.js +0 -109
  89. package/dist/utils/eui/styles.generated/shared/QDR655TL.js.map +0 -1
  90. package/dist/utils/eui/styles.generated/shared/RIYBQ4CG.js +0 -114
  91. package/dist/utils/eui/styles.generated/shared/RIYBQ4CG.js.map +0 -1
  92. package/dist/utils/eui/styles.generated/shared/RJ25KRVL.js +0 -87
  93. package/dist/utils/eui/styles.generated/shared/RJ25KRVL.js.map +0 -1
  94. package/dist/utils/eui/styles.generated/shared/S3GMA7SC.js +0 -67
  95. package/dist/utils/eui/styles.generated/shared/S3GMA7SC.js.map +0 -1
  96. package/dist/utils/eui/styles.generated/shared/SL36VYZY.js +0 -40
  97. package/dist/utils/eui/styles.generated/shared/SL36VYZY.js.map +0 -1
  98. package/dist/utils/eui/styles.generated/shared/SORCSWXI.js +0 -99
  99. package/dist/utils/eui/styles.generated/shared/SORCSWXI.js.map +0 -1
  100. package/dist/utils/eui/styles.generated/shared/T3K55UA5.js +0 -26
  101. package/dist/utils/eui/styles.generated/shared/T3K55UA5.js.map +0 -1
  102. package/dist/utils/eui/styles.generated/shared/TWXYPCNK.js +0 -111
  103. package/dist/utils/eui/styles.generated/shared/TWXYPCNK.js.map +0 -1
  104. package/dist/utils/eui/styles.generated/shared/TXBWGYWM.js +0 -81
  105. package/dist/utils/eui/styles.generated/shared/TXBWGYWM.js.map +0 -1
  106. package/dist/utils/eui/styles.generated/shared/U7GEKFI5.js +0 -62
  107. package/dist/utils/eui/styles.generated/shared/U7GEKFI5.js.map +0 -1
  108. package/dist/utils/eui/styles.generated/shared/ULLKMG3C.js +0 -22
  109. package/dist/utils/eui/styles.generated/shared/ULLKMG3C.js.map +0 -1
  110. package/dist/utils/eui/styles.generated/shared/UMXTDMKT.js +0 -8
  111. package/dist/utils/eui/styles.generated/shared/UMXTDMKT.js.map +0 -1
  112. package/dist/utils/eui/styles.generated/shared/VUJT6GWN.js +0 -29
  113. package/dist/utils/eui/styles.generated/shared/VUJT6GWN.js.map +0 -1
  114. package/dist/utils/eui/styles.generated/shared/XFWFA3DO.js +0 -163
  115. package/dist/utils/eui/styles.generated/shared/XFWFA3DO.js.map +0 -1
  116. package/dist/utils/eui/styles.generated/shared/ZKVETBHH.js +0 -188
  117. package/dist/utils/eui/styles.generated/shared/ZKVETBHH.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"cell.js","sources":["../../../src/components/eui-data-grid/cell.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { schedule } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\n\nimport { focusTrap } from 'ember-focus-trap';\nimport { focusTrapFactory } from '../../-private/focus-trap-registry.ts';\nimport { modifier } from 'ember-modifier';\nimport { eq } from 'ember-truth-helpers';\nimport { tabbable } from 'tabbable';\n\nimport { afterRender, observeResize } from '../../utils/data-grid/scheduling.ts';\nimport { getEuiThemeContext } from '../../utils/emotion/consume.ts';\nimport { euiClass, useEuiBorealisStyles } from '../../utils/eui/styles.ts';\nimport {\n euiDataGridCellPopoverStyles,\n euiDataGridFooterStyles,\n euiDataGridRowCellStyles,\n euiTextBreakWord,\n euiTextTruncate\n} from '../../utils/eui/styles.generated.ts';\nimport { euiTextBlockTruncateStyles } from '../../utils/eui/text-truncate.ts';\nimport {\n disableInteractives,\n enableAndFocusInteractives\n} from '../../utils/data-grid/focus.ts';\nimport * as keys from '../../utils/keys.ts';\nimport EuiLiveAnnouncer from '../eui-live-announcer.gts';\nimport EuiPopover from '../eui-popover.gts';\nimport EuiScreenReaderOnly from '../eui-screen-reader-only.gts';\nimport EuiDataGridCopyMarker from './copy-marker.gts';\nimport EuiDataGridDefaultCellPopover from './default-cell-popover.gts';\n// ember-eui extension (row-tree): tree cell parts and hooks\nimport EuiDataGridTreeCell from './tree-cell.gts';\nimport { handleRowTreeCellKeyDown, rowTreeCellState } from './row-tree-hooks.ts';\nimport {\n EuiDataGridCellActions,\n EuiDataGridCellPopoverActions\n} from './cell-actions.gts';\n\nimport type Owner from '@ember/owner';\nimport type EuiI18n from '../../services/eui-i18n.ts';\nimport type EuiDataGrid from '../eui-data-grid.gts';\nimport type { EuiDataGridSignature } from '../eui-data-grid.gts';\nimport type EuiDataGridBodyBase from './body-base.ts';\nimport type { ComponentLike } from '@glint/template';\nimport type {\n EuiDataGridCellValueElementProps,\n EuiDataGridCellValueSignature,\n EuiDataGridColumn,\n EuiDataGridControlColumn,\n EuiDataGridSetCellProps\n} from '../../utils/data-grid/types.ts';\nimport type { RowHeightType } from '../../utils/data-grid/row-heights.ts';\n\nconst concatClass = (...classes: unknown[]): string =>\n classes.filter((value) => typeof value === 'string' && value).join(' ');\n\nconst TEXT_TRUNCATE = euiTextTruncate();\nconst TEXT_BREAK_WORD = euiTextBreakWord();\nconst { euiTextBlockTruncate } = euiTextBlockTruncateStyles;\n\nexport interface EuiDataGridCellSignature {\n Element: HTMLDivElement;\n Args: {\n grid: EuiDataGrid;\n body: EuiDataGridBodyBase<any>;\n colIndex: number;\n visibleRowIndex: number;\n /** Footer cells sit in the flex footer row instead of being positioned. */\n isFooter?: boolean;\n hasCellPopoverBlock?: boolean;\n /** Custom grid body overrides (upstream's `Cell` props). */\n isExpandable?: boolean;\n renderCellValue?: ComponentLike<EuiDataGridCellValueSignature>;\n };\n Blocks: Pick<\n EuiDataGridSignature['Blocks'],\n 'cell' | 'cellPopover' | 'controlCell' | 'footerCell' | 'controlFooterCell'\n >;\n}\n\nfunction shallowEqual(\n a: Record<string, unknown>,\n b: Record<string, unknown>\n): boolean {\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) return false;\n for (const key of aKeys) {\n const aValue = a[key];\n const bValue = b[key];\n if (aValue === bValue) continue;\n if (\n key === 'style' &&\n typeof aValue === 'object' &&\n typeof bValue === 'object' &&\n aValue &&\n bValue &&\n shallowEqual(aValue as Record<string, unknown>, bValue as Record<string, unknown>)\n )\n continue;\n return false;\n }\n return true;\n}\n\nconst toKebab = (property: string) =>\n property.startsWith('--')\n ? property\n : property.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);\n\nconst UNITLESS = new Set(['opacity', 'z-index', 'flex-grow', 'flex-shrink', 'line-height', 'font-weight', 'order']);\n\nfunction styleString(style?: Record<string, string | number | undefined>): string {\n if (!style) return '';\n return Object.entries(style)\n .filter(([, value]) => value != null && value !== '')\n .map(([key, value]) => {\n const property = toKebab(key);\n const cssValue =\n typeof value === 'number' && !UNITLESS.has(property) ? `${value}px` : String(value);\n return `${property}:${cssValue}`;\n })\n .join(';');\n}\n\n/**\n * A grid cell (`role=gridcell`): data, control and footer cells. Port of\n * upstream `EuiDataGridCell` + `CellWrapper` + `HandleInteractiveChildren`.\n */\nexport default class EuiDataGridCell extends Component<EuiDataGridCellSignature> {\n @service declare euiI18n: EuiI18n;\n\n @tracked isFocused = false;\n @tracked isHovered = false;\n @tracked hasInteractiveChildren = false;\n @tracked isCellEntered = false;\n @tracked isExited = false;\n\n cellElement: HTMLElement | null = null;\n contentElement: HTMLElement | null = null;\n readonly focusTrapHintId = `euiDataGridCell-${guidFor(this)}-focusTrapHint`;\n\n constructor(owner: Owner, args: EuiDataGridCellSignature['Args']) {\n super(owner, args);\n // Account for virtualization: a cell scrolled back into view keeps focus\n this.isFocused = args.grid.isFocusedCell(args.colIndex, args.visibleRowIndex);\n }\n\n /** Subscribes to focus changes of this cell's location (re-run if it moves). */\n registerFocus = modifier((_element: HTMLElement, [colIndex, visibleRowIndex]: [number, number]) => {\n const { grid } = this.args;\n afterRender(this, () => {\n const isFocused = grid.isFocusedCell(colIndex, visibleRowIndex);\n if (isFocused !== this.isFocused) this.isFocused = isFocused;\n });\n return grid.onFocusUpdate([colIndex, visibleRowIndex], this.onFocusUpdate);\n });\n\n willDestroy(): void {\n super.willDestroy();\n const { grid, colIndex, visibleRowIndex } = this.args;\n if (grid.isFocusedCell(colIndex, visibleRowIndex)) grid.setIsFocusedCellInView(false);\n if (this.isPopoverOpen) grid.closeCellPopover();\n }\n\n get grid(): EuiDataGrid {\n return this.args.grid;\n }\n\n /* -------------------------------------------------------------------- */\n /* Column */\n /* -------------------------------------------------------------------- */\n\n get leadingCount(): number {\n return this.grid.leadingControlColumns.length;\n }\n\n get isLeadingControlColumn(): boolean {\n return this.args.colIndex < this.leadingCount;\n }\n\n get isTrailingControlColumn(): boolean {\n return this.args.colIndex >= this.leadingCount + this.grid.columns.length;\n }\n\n get isControlColumn(): boolean {\n return this.isLeadingControlColumn || this.isTrailingControlColumn;\n }\n\n get controlColumn(): EuiDataGridControlColumn | undefined {\n const { colIndex } = this.args;\n if (this.isLeadingControlColumn) return this.grid.leadingControlColumns[colIndex];\n if (this.isTrailingControlColumn)\n return this.grid.trailingControlColumns[\n colIndex - this.leadingCount - this.grid.columns.length\n ];\n return undefined;\n }\n\n get column(): EuiDataGridColumn | undefined {\n if (this.isControlColumn) return undefined;\n return this.grid.columns[this.args.colIndex - this.leadingCount];\n }\n\n get columnId(): string {\n return this.controlColumn?.id ?? this.column?.id ?? '';\n }\n\n get columnType(): string | null {\n if (this.isControlColumn) return null;\n return this.grid.schema[this.columnId]?.columnType ?? null;\n }\n\n get textTransform(): string | undefined {\n const column = this.column;\n if (!column && !this.isControlColumn) return undefined;\n const columnId = this.columnId;\n return this.grid.schemaDetectors.find((detector) =>\n column?.schema ? column.schema === detector.type : columnId === detector.type\n )?.textTransform;\n }\n\n get rowIndex(): number {\n if (this.args.isFooter) return this.args.visibleRowIndex;\n return this.grid.getCorrectRowIndex(this.args.visibleRowIndex);\n }\n\n // ember-eui extension (row-tree): tree row, group/toggle cell flags and `@row`\n @cached\n get rowTree() {\n return rowTreeCellState(this.grid, {\n visibleRowIndex: this.args.visibleRowIndex,\n rowIndex: this.rowIndex,\n column: this.column,\n isFooter: this.args.isFooter\n });\n }\n\n get width(): number | undefined {\n const control = this.controlColumn;\n if (control) return control.width;\n return this.args.body.widthForColumn(this.columnId);\n }\n\n get isFirstColumn(): boolean {\n return this.args.colIndex === 0;\n }\n\n get isLastColumn(): boolean {\n return this.args.colIndex === this.grid.visibleColCount - 1;\n }\n\n /** The last data column ends a copied row (tabular copy). */\n get isLastCopyColumn(): boolean {\n const columnCount = this.grid.columns.length;\n return columnCount > 0 && this.args.colIndex === this.leadingCount + columnCount - 1;\n }\n\n get copyMarkerType(): 'no-copy' | 'newline' | 'tab' {\n if (this.isControlColumn) return 'no-copy';\n return this.isLastCopyColumn ? 'newline' : 'tab';\n }\n\n /* -------------------------------------------------------------------- */\n /* setCellProps */\n /* -------------------------------------------------------------------- */\n\n // props set by the cell renderer, reset when the cell shows another row/column\n @tracked private cellPropsState: { key: string; props: EuiDataGridSetCellProps } | null =\n null;\n\n get cellPropsKey(): string {\n return `${this.columnId}:${this.rowIndex}`;\n }\n\n get cellProps(): EuiDataGridSetCellProps {\n const state = this.cellPropsState;\n return state && state.key === this.cellPropsKey ? state.props : {};\n }\n\n /** Renderers may call this during render; the update is applied after rendering. */\n setCellProps = (props: EuiDataGridSetCellProps): void => {\n const key = this.cellPropsKey;\n schedule('afterRender', () => {\n if (this.isDestroying || this.isDestroyed) return;\n const current = this.cellPropsState;\n if (current && current.key === key && shallowEqual(current.props, props)) return;\n if (!current && Object.keys(props).length === 0) return;\n this.cellPropsState = { key, props };\n });\n };\n\n /** Arbitrary attributes from setCellProps (other than class/style/data-test-subj). */\n cellPropsAttributes = modifier(\n (element: HTMLElement, [props]: [EuiDataGridSetCellProps]) => {\n const names: string[] = [];\n for (const [name, value] of Object.entries(props)) {\n if (['className', 'style', 'isExpandable', 'data-test-subj'].includes(name)) continue;\n if (value == null || value === false || typeof value === 'function') continue;\n element.setAttribute(name, String(value as string | number | boolean));\n names.push(name);\n }\n return () => names.forEach((name) => element.removeAttribute(name));\n }\n );\n\n /* -------------------------------------------------------------------- */\n /* Expansion & popover */\n /* -------------------------------------------------------------------- */\n\n get defaultIsExpandable(): boolean {\n if (this.args.isExpandable !== undefined && !this.args.isFooter) return this.args.isExpandable;\n if (this.isControlColumn) return false;\n if (this.rowTree.isGroupRow) return false; // ember-eui extension (row-tree): group rows have no value\n if (this.args.isFooter) return true;\n return this.column?.isExpandable ?? true;\n }\n\n get isExpandable(): boolean {\n // A cell with cell actions must always be expandable, otherwise keyboard\n // and screen reader users can't access them\n // ember-eui extension (row-tree): `!isGroupRow`: group rows have no value\n if (this.column?.cellActions?.length && !this.rowTree.isGroupRow) return true;\n return this.cellProps.isExpandable ?? this.defaultIsExpandable;\n }\n\n get isPopoverOpen(): boolean {\n return (\n this.isExpandable &&\n this.grid.isPopoverOpenFor(this.args.colIndex, this.args.visibleRowIndex)\n );\n }\n\n get showCellActions(): boolean {\n return this.isExpandable && (this.isPopoverOpen || this.isFocused || this.isHovered);\n }\n\n @action\n handleCellExpansionClick(): void {\n if (this.isPopoverOpen) {\n this.grid.closeCellPopover();\n } else {\n this.grid.openCellPopover({\n rowIndex: this.args.visibleRowIndex,\n colIndex: this.args.colIndex\n });\n }\n }\n\n @action\n closePopover(): void {\n this.grid.closeCellPopover();\n }\n\n /** Clicking the expand action must toggle, not count as an outside click. */\n @action\n onPopoverClickOutside(event: Event): void {\n const actions = this.cellElement?.querySelector('.euiDataGridRowCell__actionsWrapper');\n if (!actions?.contains(event.target as Node)) this.grid.closeCellPopover();\n }\n\n private popoverPanel: HTMLElement | null = null;\n\n /**\n * The cell popover holds forms and editors: focus goes to its first\n * tabbable element (EuiPopover itself would focus the panel, as\n * upstream), the panel when there is none.\n */\n popoverInitialFocus = (): HTMLElement | null =>\n this.popoverPanel\n ? ((tabbable(this.popoverPanel)[0] as HTMLElement | undefined) ??\n this.popoverPanel)\n : null;\n\n @action\n registerPopoverPanel(panel: HTMLElement | null): void {\n this.popoverPanel?.removeEventListener('keydown', this.onPopoverKeyDown, true);\n this.popoverPanel = panel;\n panel?.addEventListener('keydown', this.onPopoverKeyDown, true);\n }\n\n @action\n onPopoverKeyDown(event: KeyboardEvent): void {\n if (event.key === keys.F2 || event.key === keys.ESCAPE) {\n event.preventDefault();\n event.stopPropagation();\n this.grid.closeCellPopover();\n const cell = this.cellElement;\n // prevent the actions animation from replaying while focus moves back\n cell?.setAttribute('data-keyboard-closing', 'true');\n requestAnimationFrame(() => {\n cell?.focus();\n cell?.removeAttribute('data-keyboard-closing');\n });\n }\n }\n\n get popoverFocusTrapOptions() {\n return {\n onClickOutside: this.onPopoverClickOutside,\n clickOutsideDeactivates: false,\n // let clicks through (e.g. the expand button toggling the popover)\n allowOutsideClick: true\n };\n }\n\n get popoverPanelClassName(): string {\n return concatClass('euiDataGridRowCell__popover', this.grid.cellPopoverProps.panelClassName);\n }\n\n get popoverZIndex(): number | undefined {\n return this.grid.cellPopoverProps.zIndex;\n }\n\n get popoverPanelStyle(): Record<string, string> {\n const width = this.cellElement?.offsetWidth ?? 0;\n return {\n maxInlineSize: `min(75vw, max(${width}px, 400px))`,\n maxBlockSize: '50vh'\n };\n }\n\n get schema(): string | null | undefined {\n return this.column?.schema || this.columnType;\n }\n\n get cellText(): string {\n return this.contentElement?.innerText ?? '';\n }\n\n\n @action\n setCellPopoverProps(props: Record<string, unknown>): void {\n schedule('afterRender', () => {\n if (!this.isDestroying) this.grid.cellPopoverProps = props;\n });\n }\n\n get popoverRendererProps() {\n return {\n rowIndex: this.rowIndex,\n colIndex: this.args.colIndex,\n columnId: this.columnId,\n schema: this.schema,\n cellContentsElement: this.contentElement,\n setCellPopoverProps: this.setCellPopoverProps\n };\n }\n\n /* -------------------------------------------------------------------- */\n /* Focus */\n /* -------------------------------------------------------------------- */\n\n onFocusUpdate = (isFocused: boolean, preventScroll = false): void => {\n if (this.isDestroying) return;\n this.isFocused = isFocused;\n if (isFocused) this.takeFocus(preventScroll);\n };\n\n takeFocus(preventScroll: boolean): void {\n const cell = this.cellElement;\n if (!cell) return;\n const active = document.activeElement;\n if (active && !cell.contains(active) && active.closest('.euiPopover__panel')) {\n // focus is in a popover (e.g. this cell's expansion popover, closing):\n // its focus trap keeps focus until it closes, so focus the cell after\n let frames = 30; // the popover's closing transition\n const focusWhenReleased = () => {\n if (this.isDestroying || !this.isFocused) return;\n const current = document.activeElement;\n if (current?.closest('.euiPopover__panel') && frames-- > 0) {\n requestAnimationFrame(focusWhenReleased);\n return;\n }\n if (!this.cellElement?.contains(current)) this.cellElement?.focus({ preventScroll });\n };\n requestAnimationFrame(focusWhenReleased);\n return;\n }\n // Only focus the cell if not already focused on something in the cell\n if (!cell.contains(active)) cell.focus({ preventScroll });\n }\n\n @action\n updateCellFocusContext(): void {\n this.grid.setFocusedCell([this.args.colIndex, this.args.visibleRowIndex]);\n }\n\n setupCell = modifier((element: HTMLElement) => {\n this.cellElement = element;\n const { grid, colIndex, visibleRowIndex } = this.args;\n if (grid.isFocusedCell(colIndex, visibleRowIndex)) {\n // preventScroll: don't hijack the user's scrolling when the cell re-mounts\n this.takeFocus(true);\n afterRender(this, () => grid.setIsFocusedCellInView(true));\n }\n // take interactive children out of the tab order\n const hasInteractives = disableInteractives(element).length > 0;\n afterRender(this, () => {\n if (hasInteractives !== this.hasInteractiveChildren)\n this.hasInteractiveChildren = hasInteractives;\n });\n // focusing any (interactive) child updates the grid focus\n const onFocus = () => this.updateCellFocusContext();\n element.addEventListener('focus', onFocus, true);\n return () => {\n element.removeEventListener('focus', onFocus, true);\n this.cellElement = null;\n };\n });\n\n @action\n onMouseEnter(): void {\n this.isHovered = true;\n }\n\n @action\n onMouseLeave(): void {\n this.isHovered = false;\n }\n\n @action\n onKeyDown(event: KeyboardEvent): void {\n // ember-eui extension (row-tree): toggle cell keys (Space/Enter/arrows)\n if (\n handleRowTreeCellKeyDown(event, {\n grid: this.grid,\n tree: this.rowTree,\n cellElement: this.cellElement,\n colIndex: this.args.colIndex,\n isExpandable: this.isExpandable,\n isPopoverOpen: this.isPopoverOpen,\n hasFocusTrap: this.renderFocusTrap\n })\n )\n return;\n if (this.isExpandable) {\n if (this.isPopoverOpen) return;\n if (event.key === keys.ENTER || event.key === keys.F2) {\n event.preventDefault();\n this.grid.openCellPopover({\n rowIndex: this.args.visibleRowIndex,\n colIndex: this.args.colIndex\n });\n }\n }\n }\n\n /* -------------------------------------------------------------------- */\n /* Focus trap for non-expandable cells with interactive children */\n /* -------------------------------------------------------------------- */\n\n get renderFocusTrap(): boolean {\n return !this.isExpandable && this.hasInteractiveChildren;\n }\n\n @action\n onKeyUp(event: KeyboardEvent): void {\n if (!this.renderFocusTrap) return;\n switch (event.key) {\n case keys.ENTER:\n case keys.F2:\n event.preventDefault();\n if (!this.isCellEntered) this.enterCell();\n break;\n case keys.ESCAPE:\n event.preventDefault();\n if (this.isCellEntered) this.exitCell();\n break;\n }\n }\n\n enterCell(): void {\n this.isCellEntered = true;\n if (this.cellElement) enableAndFocusInteractives(this.cellElement);\n }\n\n @action\n exitCell(): void {\n if (!this.isCellEntered) return;\n this.isCellEntered = false;\n this.isExited = true;\n const cell = this.cellElement;\n if (cell) {\n disableInteractives(cell);\n requestAnimationFrame(() => cell.focus());\n }\n }\n\n @action\n onBlur(): void {\n // ensures the SR text is reset when navigating to a different cell\n if (this.isExited) this.isExited = false;\n }\n\n focusTrapOptions = {\n clickOutsideDeactivates: true,\n escapeDeactivates: false,\n // like react-focus-on, entering the cell focuses its first interactive child\n returnFocusOnDeactivate: false,\n onDeactivate: () => {\n if (this.isCellEntered) this.isCellEntered = false;\n },\n fallbackFocus: () => this.cellElement!\n };\n\n get focusTrapEnterPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.focusTrapEnterPrompt',\n \"Press the Enter key to interact with this cell's contents.\"\n );\n }\n\n get focusTrapExitPrompt(): string {\n return this.euiI18n.lookupToken('euiDataGridCell.focusTrapExitPrompt', 'Exited cell content.');\n }\n\n get focusTrapEnteredExitPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.focusTrapEnteredExitPrompt',\n 'Press the Escape key to exit the cell.'\n );\n }\n\n /* -------------------------------------------------------------------- */\n /* Row heights */\n /* -------------------------------------------------------------------- */\n\n get rowHeightOption() {\n return this.args.body.rowHeightUtils.getRowHeightOption(\n this.rowIndex,\n this.grid.rowHeightsOptions\n );\n }\n\n get cellHeightType(): RowHeightType {\n const utils = this.args.body.rowHeightUtils;\n const option = this.rowHeightOption;\n if (utils.isAutoBelowLineCount(this.grid.rowHeightsOptions, option))\n return 'autoBelowLineCount';\n return utils.getHeightType(option) || 'default';\n }\n\n get lineClamp(): number | undefined {\n const type = this.cellHeightType;\n if ((type === 'lineCount' || type === 'autoBelowLineCount') && !this.isControlColumn) {\n return this.args.body.rowHeightUtils.getLineCount(this.rowHeightOption);\n }\n return undefined;\n }\n\n /** Port of `recalculateLineHeight`: one cell per row measures line heights. */\n measureLineHeight = modifier((element: HTMLElement, positional: unknown[]) => {\n void positional; // re-run when font size, padding or height options change\n if (!this.isFirstColumn || this.args.isFooter) return;\n const { body, grid } = this.args;\n const utils = body.rowHeightUtils;\n const options = grid.rowHeightsOptions;\n const option = utils.getRowHeightOption(this.rowIndex, options);\n if (utils.isAutoBelowLineCount(options, option)) return; // auto height instead\n const lineCount = option == null ? 1 : utils.getLineCount(option);\n if (!lineCount) return;\n const height = utils.calculateHeightForLineCount(element, lineCount);\n if (utils.isRowHeightOverride(this.rowIndex, options)) {\n utils.setRowHeight(this.rowIndex, this.columnId, height, this.args.visibleRowIndex);\n } else {\n afterRender(this, () => body.setMinRowHeight(height));\n }\n });\n\n /** Port of `recalculateAutoHeight`: auto rows report their content height. */\n measureAutoHeight = modifier((element: HTMLElement, [isAuto]: [boolean]) => {\n if (!isAuto || this.args.isFooter) return;\n const report = () => {\n if (this.isDestroying) return;\n this.args.body.rowHeightUtils.setRowHeight(\n this.rowIndex,\n this.columnId,\n element.offsetHeight,\n this.args.visibleRowIndex\n );\n };\n report();\n return observeResize([element], report);\n });\n\n get isAutoHeight(): boolean {\n return this.args.body.rowHeightUtils.isAutoHeight(\n this.rowIndex,\n this.grid.rowHeightsOptions\n );\n }\n\n setContentElement = modifier((element: HTMLElement) => {\n this.contentElement = element;\n return () => {\n if (this.contentElement === element) this.contentElement = null;\n };\n });\n\n /* -------------------------------------------------------------------- */\n /* Classes, styles & attributes */\n /* -------------------------------------------------------------------- */\n\n @cached\n get themeStyles() {\n const context = getEuiThemeContext(this);\n return {\n context,\n cell: useEuiBorealisStyles(context, euiDataGridRowCellStyles),\n footer: useEuiBorealisStyles(context, euiDataGridFooterStyles),\n popover: useEuiBorealisStyles(context, euiDataGridCellPopoverStyles)\n };\n }\n\n @cached\n get cellClass(): string {\n const { context, cell, footer } = this.themeStyles;\n return euiClass(\n context,\n cell.euiDataGridRowCell,\n this.args.isFooter && footer.euiDataGridFooterCell\n );\n }\n\n get classes(): string {\n const columnType = this.columnType;\n return [\n 'euiDataGridRowCell',\n columnType && `euiDataGridRowCell--${columnType}`,\n this.isPopoverOpen && 'euiDataGridRowCell--open',\n this.args.isFooter && 'euiDataGridFooterCell',\n this.isFirstColumn && 'euiDataGridRowCell--firstColumn',\n this.isLastColumn && 'euiDataGridRowCell--lastColumn',\n this.isControlColumn && 'euiDataGridRowCell--controlColumn',\n this.textTransform && `euiDataGridRowCell--${this.textTransform}`,\n this.args.isFooter && this.isControlColumn && (this.controlColumn?.footerCellProps?.className as string),\n this.cellProps.className,\n this.cellClass\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n get dataTestSubj(): string {\n return ['dataGridRowCell', this.cellProps['data-test-subj']].filter(Boolean).join(' ');\n }\n\n /** Ember addition: upstream sets no `aria-colindex`; columns are virtualized here. */\n get ariaColIndex(): number {\n return this.args.colIndex + 1;\n }\n\n get ariaRowIndex(): number {\n const pagination = this.grid.pagination;\n const { visibleRowIndex } = this.args;\n return pagination\n ? visibleRowIndex + 1 + pagination.pageSize * pagination.pageIndex\n : visibleRowIndex + 1;\n }\n\n /** `footerCellProps.style` of a control column's footer cell. */\n get footerCellPropsStyle(): string {\n if (!this.args.isFooter || !this.isControlColumn) return '';\n const style = this.controlColumn?.footerCellProps?.style;\n if (!style || typeof style !== 'object') return '';\n const { top, ...rest } = style as Record<string, string | number | undefined>;\n // upstream: `top: style.top ? 0 : undefined` (rows position their cells)\n return styleString({ ...rest, top: top ? 0 : undefined });\n }\n\n get style() {\n const { body, colIndex, visibleRowIndex, isFooter } = this.args;\n const width = this.width;\n const parts: string[] = [];\n // control columns' `footerCellProps.style` comes first, like upstream's\n // `style` prop under the width, line height and `setCellProps` styles\n const footerStyle = this.footerCellPropsStyle;\n if (footerStyle) parts.push(footerStyle);\n if (!isFooter && !body.isVirtualized) {\n // custom grid body: cells flow in the consumer's rows\n parts.push(`height:${this.isAutoHeight ? 'auto' : `${body.rowHeight(visibleRowIndex)}px`}`);\n } else if (!isFooter) {\n parts.push(\n 'position:absolute',\n `left:${body.columnLeft(colIndex)}px`,\n 'top:0',\n `height:${body.rowHeight(visibleRowIndex)}px`\n );\n }\n if (width != null) parts.push(`width:${width}px`);\n const lineHeight = this.grid.rowHeightsOptions?.lineHeight;\n if (lineHeight) parts.push(`line-height:${lineHeight}`);\n const extra = styleString(this.cellProps.style);\n if (extra) parts.push(extra);\n return htmlSafe(parts.join(';'));\n }\n\n @cached\n get contentClass(): string {\n const { context, cell } = this.themeStyles;\n const type = this.cellHeightType;\n const isControl = this.isControlColumn;\n const isAuto = type === 'auto' || type === 'autoBelowLineCount';\n const hasClamp = this.lineClamp != null;\n return [\n 'euiDataGridRowCell__content',\n `euiDataGridRowCell__content--${type}Height`,\n !isControl && type !== 'default' && 'eui-textBreakWord',\n !isControl && type === 'default' && 'eui-textTruncate',\n hasClamp && 'euiTextBlockTruncate',\n euiClass(\n context,\n cell.content.euiDataGridRowCell__content,\n ...(isControl\n ? [cell.content.controlColumn, cell.content.autoHeight]\n : [isAuto ? cell.content.autoHeight : cell.content.defaultHeight]),\n !isControl && type !== 'default' && TEXT_BREAK_WORD,\n !isControl && type === 'default' && TEXT_TRUNCATE,\n hasClamp && euiTextBlockTruncate\n )\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n get contentStyle() {\n const lines = this.lineClamp;\n return lines ? htmlSafe(`-webkit-line-clamp:${lines}`) : undefined;\n }\n\n @cached\n get popoverPanelCss() {\n return this.themeStyles.popover.euiDataGridRowCell__popover;\n }\n\n /* -------------------------------------------------------------------- */\n /* Renderers */\n /* -------------------------------------------------------------------- */\n\n get kind(): 'data' | 'control' | 'footer' | 'controlFooter' {\n if (this.args.isFooter) return this.isControlColumn ? 'controlFooter' : 'footer';\n return this.isControlColumn ? 'control' : 'data';\n }\n\n get renderer() {\n if (this.args.renderCellValue && !this.args.isFooter) return this.args.renderCellValue;\n switch (this.kind) {\n case 'data':\n return this.grid.args.renderCellValue;\n case 'footer':\n return this.grid.args.renderFooterCellValue;\n case 'control':\n return this.controlColumn?.rowCellRender;\n case 'controlFooter':\n return this.controlColumn?.footerCellRender;\n }\n return undefined;\n }\n\n get cellValueProps(): EuiDataGridCellValueElementProps {\n return {\n rowIndex: this.rowIndex,\n colIndex: this.args.colIndex,\n columnId: this.columnId,\n setCellProps: this.setCellProps,\n isExpandable: this.isExpandable,\n isExpanded: this.isPopoverOpen,\n isDetails: false,\n schema: this.schema,\n cellContext: this.grid.args.cellContext,\n row: this.rowTree.rowData, // ember-eui extension (row-tree): `@row`\n rowTree: this.rowTree.info // ember-eui extension (row-tree): `@rowTree`\n };\n }\n\n get detailsValueProps(): EuiDataGridCellValueElementProps {\n return {\n ...this.cellValueProps,\n isExpandable: true,\n isExpanded: true,\n isDetails: true\n };\n }\n\n get cellPosition(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.position',\n '{columnName}, column {columnIndex}, row {rowIndex}',\n {\n columnName: this.column?.displayAsText || this.columnId,\n columnIndex: this.args.colIndex + 1,\n rowIndex: this.ariaRowIndex\n }\n );\n }\n\n get expansionEnterPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.expansionEnterPrompt',\n 'Press the Enter key to expand this cell.'\n );\n }\n\n get screenReaderDescription(): string {\n return ` - ${this.cellPosition}${this.showCellActions ? `. ${this.expansionEnterPrompt}` : ''}`;\n }\n\n get ariaDescribedBy(): string | undefined {\n return this.renderFocusTrap ? this.focusTrapHintId : undefined;\n }\n\n <template>\n {{! template-lint-disable no-invalid-interactive require-aria-activedescendant-tabindex }}\n <div\n role=\"gridcell\"\n class={{this.classes}}\n style={{this.style}}\n tabindex={{if this.isFocused \"0\" \"-1\"}}\n aria-rowindex={{this.ariaRowIndex}}\n aria-colindex={{this.ariaColIndex}}\n aria-describedby={{this.ariaDescribedBy}}\n data-test-subj={{this.dataTestSubj}}\n data-gridcell-column-id={{this.columnId}}\n data-gridcell-column-index={{@colIndex}}\n data-gridcell-row-index={{this.rowIndex}}\n data-gridcell-visible-row-index={{@visibleRowIndex}}\n {{on \"keydown\" this.onKeyDown}}\n {{on \"keyup\" this.onKeyUp}}\n {{on \"blur\" this.onBlur}}\n {{on \"mouseenter\" this.onMouseEnter}}\n {{on \"mouseleave\" this.onMouseLeave}}\n {{this.cellPropsAttributes this.cellProps}}\n {{this.registerFocus @colIndex @visibleRowIndex}}\n {{this.setupCell}}\n ...attributes\n >\n {{#if this.isControlColumn}}<EuiDataGridCopyMarker @grid={{@grid}} @type=\"no-copy\" />{{/if}}\n {{#if this.isExpandable}}\n {{! template-lint-disable no-duplicate-landmark-elements }}\n <div\n data-datagrid-cellcontent\n class={{this.contentClass}}\n style={{this.contentStyle}}\n {{this.setContentElement}}\n {{this.measureLineHeight\n this.grid.gridStyles.fontSize\n this.grid.gridStyles.cellPadding\n this.grid.rowHeightsOptions\n this.rowHeightOption\n }}\n {{this.measureAutoHeight this.isAutoHeight}}\n >\n {{! ember-eui extension (row-tree): indentation, toggle, group content }}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell\n @grid={{@grid}}\n @row={{this.rowTree.row}}\n @columnId={{this.columnId}}\n @colIndex={{@colIndex}}\n @isToggleCell={{this.rowTree.isToggleCell}}\n />\n {{/if}}\n {{! ember-eui extension (row-tree): group rows render no value }}\n {{#if this.rowTree.isGroupRow}}\n {{else if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{this.isExpandable}}\n @isExpanded={{this.isPopoverOpen}}\n @isDetails={{false}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"data\")}}\n {{yield this.cellValueProps to=\"cell\"}}\n {{else if (eq this.kind \"control\")}}\n {{yield this.cellValueProps to=\"controlCell\"}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.cellValueProps to=\"footerCell\"}}\n {{else if (eq this.kind \"controlFooter\")}}\n {{yield this.cellValueProps to=\"controlFooterCell\"}}\n {{/if}}\n </div>\n {{else}}\n <div\n data-focus-lock-disabled={{if this.isCellEntered \"false\" \"disabled\"}}\n {{focusTrap\n _createFocusTrap=focusTrapFactory\n isActive=this.isCellEntered\n focusTrapOptions=this.focusTrapOptions\n }}\n >\n <div\n data-datagrid-cellcontent\n class={{this.contentClass}}\n style={{this.contentStyle}}\n {{this.setContentElement}}\n {{this.measureLineHeight\n this.grid.gridStyles.fontSize\n this.grid.gridStyles.cellPadding\n this.grid.rowHeightsOptions\n this.rowHeightOption\n }}\n {{this.measureAutoHeight this.isAutoHeight}}\n >\n {{! ember-eui extension (row-tree): indentation, toggle, group content }}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell\n @grid={{@grid}}\n @row={{this.rowTree.row}}\n @columnId={{this.columnId}}\n @colIndex={{@colIndex}}\n @isToggleCell={{this.rowTree.isToggleCell}}\n />\n {{/if}}\n {{! ember-eui extension (row-tree): group rows render no value }}\n {{#if this.rowTree.isGroupRow}}\n {{else if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{this.isExpandable}}\n @isExpanded={{false}}\n @isDetails={{false}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"data\")}}\n {{yield this.cellValueProps to=\"cell\"}}\n {{else if (eq this.kind \"control\")}}\n {{yield this.cellValueProps to=\"controlCell\"}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.cellValueProps to=\"footerCell\"}}\n {{else if (eq this.kind \"controlFooter\")}}\n {{yield this.cellValueProps to=\"controlFooterCell\"}}\n {{/if}}\n </div>\n {{#if this.renderFocusTrap}}\n <p id={{this.focusTrapHintId}} hidden>\n {{#if this.isExited}}{{this.focusTrapExitPrompt}}{{/if}}\n {{#unless this.isCellEntered}}{{this.focusTrapEnterPrompt}}{{/unless}}\n </p>\n <EuiLiveAnnouncer @clearAfterMs={{1000}}>\n {{#if this.isCellEntered}}{{this.focusTrapEnteredExitPrompt}}{{/if}}\n </EuiLiveAnnouncer>\n {{/if}}\n </div>\n {{/if}}\n <EuiDataGridCopyMarker @grid={{@grid}} @type={{this.copyMarkerType}} />\n {{#if this.isFocused}}\n <EuiScreenReaderOnly><p><EuiDataGridCopyMarker\n @grid={{@grid}}\n @type=\"no-copy\"\n />{{this.screenReaderDescription}}<EuiDataGridCopyMarker\n @grid={{@grid}}\n @type=\"no-copy\"\n /></p></EuiScreenReaderOnly>\n {{/if}}\n {{#if this.showCellActions}}\n <EuiDataGridCellActions\n @column={{this.column}}\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @onExpandClick={{this.handleCellExpansionClick}}\n >\n <:popover>\n <EuiPopover\n @isOpen={{this.isPopoverOpen}}\n @closePopover={{this.closePopover}}\n @display=\"block\"\n @hasArrow={{false}}\n @attachToAnchor={{true}}\n @panelPaddingSize=\"s\"\n @anchorPosition=\"downLeft\"\n @repositionToCrossAxis={{false}}\n @panelClassName={{this.popoverPanelClassName}}\n @panelCss={{this.popoverPanelCss}}\n @panelStyle={{this.popoverPanelStyle}}\n @panelRef={{this.registerPopoverPanel}}\n @initialFocus={{this.popoverInitialFocus}}\n @focusTrapOptions={{this.popoverFocusTrapOptions}}\n @zIndex={{this.popoverZIndex}}\n >\n <:button>\n <div data-test-subject=\"cellPopoverAnchor\"></div>\n </:button>\n <:content>\n {{#let\n (component\n EuiDataGridCellPopoverActions\n column=this.column\n rowIndex=this.rowIndex\n colIndex=@colIndex\n )\n as |CellActions|\n }}\n {{#let\n (component\n EuiDataGridDefaultCellPopover\n schema=this.schema\n cellContentsElement=this.contentElement\n cellActions=CellActions\n )\n as |DefaultCellPopover|\n }}\n <div data-test-subj=\"euiDataGridExpansionPopover\">\n {{#if @grid.args.renderCellPopover}}\n {{#let @grid.args.renderCellPopover as |PopoverRenderer|}}\n <PopoverRenderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @schema={{this.schema}}\n @cellContentsElement={{this.contentElement}}\n @setCellPopoverProps={{this.setCellPopoverProps}}\n @cellActions={{CellActions}}\n @DefaultCellPopover={{DefaultCellPopover}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n >\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{true}}\n @isExpanded={{true}}\n @isDetails={{true}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{/if}}\n </PopoverRenderer>\n {{/let}}\n {{else if @hasCellPopoverBlock}}\n {{! ember-eui extension (row-tree): `row`, `rowTree` in the hash }}\n {{yield\n (hash\n rowIndex=this.rowIndex\n colIndex=@colIndex\n columnId=this.columnId\n schema=this.schema\n cellContentsElement=this.contentElement\n setCellPopoverProps=this.setCellPopoverProps\n cellActions=CellActions\n DefaultCellPopover=DefaultCellPopover\n row=this.rowTree.rowData\n rowTree=this.rowTree.info\n )\n to=\"cellPopover\"\n }}\n {{else}}\n <EuiDataGridDefaultCellPopover\n @schema={{this.schema}}\n @cellContentsElement={{this.contentElement}}\n @cellActions={{CellActions}}\n >\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{true}}\n @isExpanded={{true}}\n @isDetails={{true}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.detailsValueProps to=\"footerCell\"}}\n {{else}}\n {{yield this.detailsValueProps to=\"cell\"}}\n {{/if}}\n </EuiDataGridDefaultCellPopover>\n {{/if}}\n </div>\n {{/let}}\n {{/let}}\n </:content>\n </EuiPopover>\n </:popover>\n </EuiDataGridCellActions>\n {{/if}}\n </div>\n </template>\n}\n"],"names":["concatClass","classes","filter","value","join","TEXT_TRUNCATE","euiTextTruncate","TEXT_BREAK_WORD","euiTextBreakWord","euiTextBlockTruncate","euiTextBlockTruncateStyles","shallowEqual","a","b","aKeys","Object","keys","bKeys","length","key","aValue","bValue","toKebab","property","startsWith","replace","match","toLowerCase","UNITLESS","Set","styleString","style","entries","map","cssValue","has","String","EuiDataGridCell","Component","g","prototype","service","i","tracked","cellElement","contentElement","focusTrapHintId","guidFor","constructor","owner","args","isFocused","grid","isFocusedCell","colIndex","visibleRowIndex","registerFocus","modifier","_element","afterRender","onFocusUpdate","willDestroy","setIsFocusedCellInView","isPopoverOpen","closeCellPopover","leadingCount","leadingControlColumns","isLeadingControlColumn","isTrailingControlColumn","columns","isControlColumn","controlColumn","trailingControlColumns","undefined","column","columnId","id","columnType","schema","textTransform","schemaDetectors","find","detector","type","rowIndex","isFooter","getCorrectRowIndex","rowTree","rowTreeCellState","n","cached","width","control","body","widthForColumn","isFirstColumn","isLastColumn","visibleColCount","isLastCopyColumn","columnCount","copyMarkerType","cellPropsKey","cellProps","state","cellPropsState","props","setCellProps","schedule","isDestroying","isDestroyed","current","cellPropsAttributes","element","names","name","includes","setAttribute","push","forEach","removeAttribute","defaultIsExpandable","isExpandable","isGroupRow","cellActions","isPopoverOpenFor","showCellActions","isHovered","handleCellExpansionClick","openCellPopover","action","closePopover","onPopoverClickOutside","event","actions","querySelector","contains","target","popoverPanel","popoverInitialFocus","tabbable","registerPopoverPanel","panel","removeEventListener","onPopoverKeyDown","addEventListener","preventDefault","stopPropagation","cell","requestAnimationFrame","focus","popoverFocusTrapOptions","onClickOutside","clickOutsideDeactivates","allowOutsideClick","popoverPanelClassName","cellPopoverProps","panelClassName","popoverZIndex","zIndex","popoverPanelStyle","offsetWidth","maxInlineSize","maxBlockSize","cellText","innerText","setCellPopoverProps","popoverRendererProps","cellContentsElement","preventScroll","takeFocus","active","document","activeElement","closest","frames","focusWhenReleased","updateCellFocusContext","setFocusedCell","setupCell","hasInteractives","disableInteractives","hasInteractiveChildren","onFocus","onMouseEnter","onMouseLeave","onKeyDown","handleRowTreeCellKeyDown","tree","hasFocusTrap","renderFocusTrap","onKeyUp","isCellEntered","enterCell","exitCell","enableAndFocusInteractives","isExited","onBlur","focusTrapOptions","escapeDeactivates","returnFocusOnDeactivate","onDeactivate","fallbackFocus","focusTrapEnterPrompt","euiI18n","lookupToken","focusTrapExitPrompt","focusTrapEnteredExitPrompt","rowHeightOption","rowHeightUtils","getRowHeightOption","rowHeightsOptions","cellHeightType","utils","option","isAutoBelowLineCount","getHeightType","lineClamp","getLineCount","measureLineHeight","positional","options","lineCount","height","calculateHeightForLineCount","isRowHeightOverride","setRowHeight","setMinRowHeight","measureAutoHeight","isAuto","report","offsetHeight","observeResize","isAutoHeight","setContentElement","themeStyles","context","getEuiThemeContext","useEuiBorealisStyles","euiDataGridRowCellStyles","footer","euiDataGridFooterStyles","popover","euiDataGridCellPopoverStyles","cellClass","euiClass","euiDataGridRowCell","euiDataGridFooterCell","footerCellProps","className","Boolean","dataTestSubj","ariaColIndex","ariaRowIndex","pagination","pageSize","pageIndex","footerCellPropsStyle","top","rest","parts","footerStyle","isVirtualized","rowHeight","columnLeft","lineHeight","extra","htmlSafe","contentClass","isControl","hasClamp","content","euiDataGridRowCell__content","autoHeight","defaultHeight","contentStyle","lines","popoverPanelCss","euiDataGridRowCell__popover","kind","renderer","renderCellValue","renderFooterCellValue","rowCellRender","footerCellRender","cellValueProps","isExpanded","isDetails","cellContext","row","rowData","info","detailsValueProps","cellPosition","columnName","displayAsText","columnIndex","expansionEnterPrompt","screenReaderDescription","ariaDescribedBy","setComponentTemplate","precompileTemplate","strictMode","scope","on","EuiDataGridCopyMarker","EuiDataGridTreeCell","eq","focusTrap","focusTrapFactory","EuiLiveAnnouncer","EuiScreenReaderOnly","EuiDataGridCellActions","EuiPopover","EuiDataGridCellPopoverActions","EuiDataGridDefaultCellPopover","hash"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAMA,cAAcA,CAAC,GAAGC,OAAgB,KACtCA,OAAA,CAAQC,MAAM,CAAEC,KAAA,IAAU,OAAOA,UAAU,QAAA,IAAYA,KAAA,CAAA,CAAOC,IAAI,CAAC,GAAA,CAAA;AAErE,MAAMC,aAAA,GAAgBC,eAAA,EAAA;AACtB,MAAMC,eAAA,GAAkBC,gBAAA,EAAA;AACxB,MAAM;AAAEC,EAAAA;AAAoB,CAAE,GAAGC,0BAAA;AAsBjC,SAASC,YAAAA,CACPC,CAA0B,EAC1BC,CAA0B,EAClB;AACR,EAAA,MAAMC,KAAA,GAAQC,MAAA,CAAOC,IAAI,CAACJ,CAAA,CAAA;AAC1B,EAAA,MAAMK,KAAA,GAAQF,MAAA,CAAOC,IAAI,CAACH,CAAA,CAAA;EAC1B,IAAIC,MAAMI,MAAM,KAAKD,KAAA,CAAMC,MAAM,EAAE,OAAO,KAAA;AAC1C,EAAA,KAAK,MAAMC,OAAOL,KAAA,EAAO;AACvB,IAAA,MAAMM,MAAA,GAASR,CAAC,CAACO,GAAA,CAAI;AACrB,IAAA,MAAME,MAAA,GAASR,CAAC,CAACM,GAAA,CAAI;IACrB,IAAIC,WAAWC,MAAA,EAAQ;IACvB,IACEF,GAAA,KAAQ,WACR,OAAOC,MAAA,KAAW,YAClB,OAAOC,MAAA,KAAW,QAAA,IAClBD,MAAA,IACAC,MAAA,IACAV,YAAA,CAAaS,QAAmCC,MAAgC,CAAA,EAEhF;AACF,IAAA,OAAO,KAAA;AACT,EAAA;AACA,EAAA,OAAO,IAAA;AACT;AAEA,MAAMC,OAAA,GAAWC,QAAgB,IAC/BA,QAAA,CAASC,UAAU,CAAC,IAAA,CAAA,GAChBD,QAAA,GACAA,SAASE,OAAO,CAA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N,MAAAA,WAAA,EAAa,IAAI,CAACrP,IAAI,CAACI,QAAQ,GAAG,CAAA;MAClC8B,QAAA,EAAU,IAAI,CAACwK;AACjB,KAAA,CAAA;AAEJ,EAAA;EAEA,IAAI4C,oBAAAA,GAA+B;IACjC,OAAO,IAAI,CAAC7F,OAAO,CAACC,WAAW,CAC7B,sCAAA,EACA,0CAAA,CAAA;AAEJ,EAAA;EAEA,IAAI6F,uBAAAA,GAAkC;AACpC,IAAA,OAAO,MAAM,IAAI,CAACL,YAAY,CAAA,EAAG,IAAI,CAACvK,eAAe,GAAG,CAAA,EAAA,EAAK,IAAI,CAAC2K,oBAAoB,CAAA,CAAE,GAAG,EAAA,CAAA,CAAI;AACjG,EAAA;EAEA,IAAIE,eAAAA,GAAsC;IACxC,OAAO,IAAI,CAAC7G,eAAe,GAAG,IAAI,CAAC/I,eAAe,GAAG2B,SAAA;AACvD,EAAA;AAEA,EAAA;IAAAkO,oBAAA,CAAAC,kBAAA,CAAA,kxSAAA,EA6SA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,EAAA;QAAAC,qBAAA;QAAAC,mBAAA;QAAAC,EAAA;QAAAC,SAAA;QAAAC,gBAAA;QAAAC,gBAAA;QAAAC,mBAAA;QAAAC,sBAAA;oBAAAC,mBAAA;QAAAC,6BAAA;QAAAC,6BAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
1
+ {"version":3,"file":"cell.js","sources":["../../../src/components/eui-data-grid/cell.gts"],"sourcesContent":["import Component from '@glimmer/component';\nimport { cached, tracked } from '@glimmer/tracking';\nimport { action } from '@ember/object';\nimport { guidFor } from '@ember/object/internals';\nimport { hash } from '@ember/helper';\nimport { on } from '@ember/modifier';\nimport { schedule } from '@ember/runloop';\nimport { service } from '@ember/service';\nimport { htmlSafe } from '@ember/template';\n\nimport { focusTrap } from 'ember-focus-trap';\nimport { focusTrapFactory } from '../../-private/focus-trap-registry.ts';\nimport { modifier } from 'ember-modifier';\nimport { eq } from 'ember-truth-helpers';\nimport { tabbable } from 'tabbable';\n\nimport { afterRender, observeResize } from '../../utils/data-grid/scheduling.ts';\nimport { getEuiThemeContext } from '../../utils/emotion/consume.ts';\nimport { euiClass, useEuiBorealisStyles } from '../../utils/eui/styles.ts';\nimport {\n euiDataGridCellPopoverStyles,\n euiDataGridFooterStyles,\n euiDataGridRowCellStyles,\n euiTextBreakWord,\n euiTextTruncate\n} from '../../utils/eui/styles.generated.ts';\nimport { euiTextBlockTruncateStyles } from '../../utils/eui/text-truncate.ts';\nimport {\n disableInteractives,\n enableAndFocusInteractives\n} from '../../utils/data-grid/focus.ts';\nimport * as keys from '../../utils/keys.ts';\nimport EuiLiveAnnouncer from '../eui-live-announcer.gts';\nimport EuiPopover from '../eui-popover.gts';\nimport EuiScreenReaderOnly from '../eui-screen-reader-only.gts';\nimport EuiDataGridCopyMarker from './copy-marker.gts';\nimport EuiDataGridDefaultCellPopover from './default-cell-popover.gts';\n// ember-eui extension (row-tree): tree cell parts and hooks\nimport EuiDataGridTreeCell from './tree-cell.gts';\nimport { handleRowTreeCellKeyDown, rowTreeCellState } from './row-tree-hooks.ts';\nimport {\n EuiDataGridCellActions,\n EuiDataGridCellPopoverActions\n} from './cell-actions.gts';\n\nimport type Owner from '@ember/owner';\nimport type EuiI18n from '../../services/eui-i18n.ts';\nimport type EuiDataGrid from '../eui-data-grid.gts';\nimport type { EuiDataGridSignature } from '../eui-data-grid.gts';\nimport type EuiDataGridBodyBase from './body-base.ts';\nimport type { ComponentLike } from '@glint/template';\nimport type {\n EuiDataGridCellValueElementProps,\n EuiDataGridCellValueSignature,\n EuiDataGridColumn,\n EuiDataGridControlColumn,\n EuiDataGridSetCellProps\n} from '../../utils/data-grid/types.ts';\nimport type { RowHeightType } from '../../utils/data-grid/row-heights.ts';\n\nconst concatClass = (...classes: unknown[]): string =>\n classes.filter((value) => typeof value === 'string' && value).join(' ');\n\nconst TEXT_TRUNCATE = euiTextTruncate();\nconst TEXT_BREAK_WORD = euiTextBreakWord();\nconst { euiTextBlockTruncate } = euiTextBlockTruncateStyles;\n\nexport interface EuiDataGridCellSignature {\n Element: HTMLDivElement;\n Args: {\n grid: EuiDataGrid;\n body: EuiDataGridBodyBase<any>;\n colIndex: number;\n visibleRowIndex: number;\n /** Footer cells sit in the flex footer row instead of being positioned. */\n isFooter?: boolean;\n hasCellPopoverBlock?: boolean;\n /** Custom grid body overrides (upstream's `Cell` props). */\n isExpandable?: boolean;\n renderCellValue?: ComponentLike<EuiDataGridCellValueSignature>;\n };\n Blocks: Pick<\n EuiDataGridSignature['Blocks'],\n 'cell' | 'cellPopover' | 'controlCell' | 'footerCell' | 'controlFooterCell'\n >;\n}\n\nfunction shallowEqual(\n a: Record<string, unknown>,\n b: Record<string, unknown>\n): boolean {\n const aKeys = Object.keys(a);\n const bKeys = Object.keys(b);\n if (aKeys.length !== bKeys.length) return false;\n for (const key of aKeys) {\n const aValue = a[key];\n const bValue = b[key];\n if (aValue === bValue) continue;\n if (\n key === 'style' &&\n typeof aValue === 'object' &&\n typeof bValue === 'object' &&\n aValue &&\n bValue &&\n shallowEqual(aValue as Record<string, unknown>, bValue as Record<string, unknown>)\n )\n continue;\n return false;\n }\n return true;\n}\n\nfunction setAttributeIfChanged(element: HTMLElement, name: string, value: string): void {\n if (element.getAttribute(name) !== value) element.setAttribute(name, value);\n}\n\nconst toKebab = (property: string) =>\n property.startsWith('--')\n ? property\n : property.replace(/[A-Z]/g, (match) => `-${match.toLowerCase()}`);\n\nconst UNITLESS = new Set(['opacity', 'z-index', 'flex-grow', 'flex-shrink', 'line-height', 'font-weight', 'order']);\n\nfunction styleString(style?: Record<string, string | number | undefined>): string {\n if (!style) return '';\n return Object.entries(style)\n .filter(([, value]) => value != null && value !== '')\n .map(([key, value]) => {\n const property = toKebab(key);\n const cssValue =\n typeof value === 'number' && !UNITLESS.has(property) ? `${value}px` : String(value);\n return `${property}:${cssValue}`;\n })\n .join(';');\n}\n\n/**\n * A grid cell (`role=gridcell`): data, control and footer cells. Port of\n * upstream `EuiDataGridCell` + `CellWrapper` + `HandleInteractiveChildren`.\n */\nexport default class EuiDataGridCell extends Component<EuiDataGridCellSignature> {\n @service declare euiI18n: EuiI18n;\n\n @tracked isFocused = false;\n @tracked isHovered = false;\n @tracked hasInteractiveChildren = false;\n @tracked isCellEntered = false;\n @tracked isExited = false;\n\n cellElement: HTMLElement | null = null;\n contentElement: HTMLElement | null = null;\n readonly focusTrapHintId = `euiDataGridCell-${guidFor(this)}-focusTrapHint`;\n\n constructor(owner: Owner, args: EuiDataGridCellSignature['Args']) {\n super(owner, args);\n // Account for virtualization: a cell scrolled back into view keeps focus\n this.isFocused = args.grid.isFocusedCell(args.colIndex, args.visibleRowIndex);\n }\n\n /** Subscribes to focus changes of this cell's location (re-run if it moves). */\n registerFocus = modifier((_element: HTMLElement, [colIndex, visibleRowIndex]: [number, number]) => {\n const { grid } = this.args;\n afterRender(this, () => {\n const isFocused = grid.isFocusedCell(colIndex, visibleRowIndex);\n if (isFocused !== this.isFocused) this.isFocused = isFocused;\n });\n return grid.onFocusUpdate([colIndex, visibleRowIndex], this.onFocusUpdate);\n });\n\n willDestroy(): void {\n super.willDestroy();\n const { grid, colIndex, visibleRowIndex } = this.args;\n if (grid.isFocusedCell(colIndex, visibleRowIndex)) grid.setIsFocusedCellInView(false);\n if (this.isPopoverOpen) grid.closeCellPopover();\n }\n\n get grid(): EuiDataGrid {\n return this.args.grid;\n }\n\n /* -------------------------------------------------------------------- */\n /* Column */\n /* -------------------------------------------------------------------- */\n\n get leadingCount(): number {\n return this.grid.leadingControlColumns.length;\n }\n\n get isLeadingControlColumn(): boolean {\n return this.args.colIndex < this.leadingCount;\n }\n\n get isTrailingControlColumn(): boolean {\n return this.args.colIndex >= this.leadingCount + this.grid.columns.length;\n }\n\n get isControlColumn(): boolean {\n return this.isLeadingControlColumn || this.isTrailingControlColumn;\n }\n\n get controlColumn(): EuiDataGridControlColumn | undefined {\n const { colIndex } = this.args;\n if (this.isLeadingControlColumn) return this.grid.leadingControlColumns[colIndex];\n if (this.isTrailingControlColumn)\n return this.grid.trailingControlColumns[\n colIndex - this.leadingCount - this.grid.columns.length\n ];\n return undefined;\n }\n\n get column(): EuiDataGridColumn | undefined {\n if (this.isControlColumn) return undefined;\n return this.grid.columns[this.args.colIndex - this.leadingCount];\n }\n\n get columnId(): string {\n return this.controlColumn?.id ?? this.column?.id ?? '';\n }\n\n get columnType(): string | null {\n if (this.isControlColumn) return null;\n return this.grid.schema[this.columnId]?.columnType ?? null;\n }\n\n get textTransform(): string | undefined {\n const column = this.column;\n if (!column && !this.isControlColumn) return undefined;\n const columnId = this.columnId;\n return this.grid.schemaDetectors.find((detector) =>\n column?.schema ? column.schema === detector.type : columnId === detector.type\n )?.textTransform;\n }\n\n get rowIndex(): number {\n if (this.args.isFooter) return this.args.visibleRowIndex;\n return this.grid.getCorrectRowIndex(this.args.visibleRowIndex);\n }\n\n // ember-eui extension (row-tree): tree row, group/toggle cell flags and `@row`\n @cached\n get rowTree() {\n return rowTreeCellState(this.grid, {\n visibleRowIndex: this.args.visibleRowIndex,\n rowIndex: this.rowIndex,\n column: this.column,\n isFooter: this.args.isFooter\n });\n }\n\n get width(): number | undefined {\n const control = this.controlColumn;\n if (control) return control.width;\n return this.args.body.widthForColumn(this.columnId);\n }\n\n get isFirstColumn(): boolean {\n return this.args.colIndex === 0;\n }\n\n get isLastColumn(): boolean {\n return this.args.colIndex === this.grid.visibleColCount - 1;\n }\n\n /** The last data column ends a copied row (tabular copy). */\n get isLastCopyColumn(): boolean {\n const columnCount = this.grid.columns.length;\n return columnCount > 0 && this.args.colIndex === this.leadingCount + columnCount - 1;\n }\n\n get copyMarkerType(): 'no-copy' | 'newline' | 'tab' {\n if (this.isControlColumn) return 'no-copy';\n return this.isLastCopyColumn ? 'newline' : 'tab';\n }\n\n /* -------------------------------------------------------------------- */\n /* setCellProps */\n /* -------------------------------------------------------------------- */\n\n // Props set by the cell renderer, reset when the cell shows another\n // row/column. Not tracked: after the render that set them they are applied\n // to the cell's element directly (`applyCellProps`), because a tracked\n // write after a render makes the next render pass revalidate every\n // rendered cell. Only `isExpandable`, which changes what the cell renders,\n // is tracked (`expandableState`); and a cell whose `class`, `style` or\n // `data-test-subj` its invoker sets too (`...attributes`) renders them\n // again (`propsRevision`), as before.\n private cellPropsState: { key: string; props: EuiDataGridSetCellProps } | null = null;\n @tracked private expandableState: { key: string; value: boolean | undefined } | null = null;\n @tracked private propsRevision = 0;\n /** The cell element while it is rendered, for `applyCellProps`. */\n private propsElement: HTMLElement | null = null;\n /** Whether the cell alone sets its `class`, `style` and `data-test-subj` (no `...attributes` of the same). */\n private ownsPropsAttributes = true;\n /** What `applyCellProps` last wrote to `class`, `style` and `data-test-subj`. */\n private writtenPropsAttributes = new Map<string, string>();\n /** The attributes `applyCellProps` set from the props, removed when they go. */\n private propsAttributeNames: string[] = [];\n\n get cellPropsKey(): string {\n return `${this.columnId}:${this.rowIndex}`;\n }\n\n get cellProps(): EuiDataGridSetCellProps {\n const state = this.cellPropsState;\n return state && state.key === this.cellPropsKey ? state.props : {};\n }\n\n get cellPropsIsExpandable(): boolean | undefined {\n const state = this.expandableState;\n return state && state.key === this.cellPropsKey ? state.value : undefined;\n }\n\n /** Renderers may call this during render; the update is applied after rendering. */\n setCellProps = (props: EuiDataGridSetCellProps): void => {\n const key = this.cellPropsKey;\n schedule('afterRender', () => {\n if (this.isDestroying || this.isDestroyed) return;\n const current = this.cellPropsState;\n if (current && current.key === key && shallowEqual(current.props, props)) return;\n if (!current && Object.keys(props).length === 0) return;\n this.cellPropsState = { key, props };\n const expandable = this.expandableState;\n const wasExpandable = expandable && expandable.key === key ? expandable.value : undefined;\n if (wasExpandable !== props.isExpandable) {\n this.expandableState = { key, value: props.isExpandable };\n }\n if (!this.ownsPropsAttributes) this.propsRevision++;\n this.applyCellProps();\n });\n };\n\n /**\n * Puts the props on the cell element: `className`, `style` and\n * `data-test-subj` within the cell's own (the same strings its template\n * renders), the other attributes as they are.\n */\n applyCellProps(): void {\n const element = this.propsElement;\n if (!element) return;\n if (this.ownsPropsAttributes) {\n for (const [name, value] of this.ownAttributes()) {\n setAttributeIfChanged(element, name, value);\n this.writtenPropsAttributes.set(name, value);\n }\n }\n const names: string[] = [];\n for (const [name, value] of Object.entries(this.cellProps)) {\n if (['className', 'style', 'isExpandable', 'data-test-subj'].includes(name)) continue;\n if (value == null || value === false || typeof value === 'function') continue;\n setAttributeIfChanged(element, name, String(value as string | number | boolean));\n names.push(name);\n }\n for (const name of this.propsAttributeNames) {\n if (!names.includes(name)) element.removeAttribute(name);\n }\n this.propsAttributeNames = names;\n }\n\n /** The cell's own `class`, `style` and `data-test-subj`, the props included. */\n ownAttributes(): Array<[string, string]> {\n return [\n ['class', this.classes],\n ['style', String(this.style)],\n ['data-test-subj', this.dataTestSubj]\n ];\n }\n\n /**\n * On the cell element: whether its invoker sets `class`, `style` or\n * `data-test-subj` too (each holds neither the cell's own value nor what\n * `applyCellProps` last wrote), and the props for the row and column it\n * shows (`key`: a cell that shows another one drops the old props).\n */\n cellPropsElement = modifier((element: HTMLElement, [key]: [string]) => {\n void key;\n this.propsElement = element;\n this.ownsPropsAttributes = this.ownAttributes().every(([name, value]) => {\n const current = element.getAttribute(name);\n return current === value || current === this.writtenPropsAttributes.get(name);\n });\n this.applyCellProps();\n return () => {\n if (this.propsElement === element) this.propsElement = null;\n };\n });\n\n /* -------------------------------------------------------------------- */\n /* Expansion & popover */\n /* -------------------------------------------------------------------- */\n\n get defaultIsExpandable(): boolean {\n if (this.args.isExpandable !== undefined && !this.args.isFooter) return this.args.isExpandable;\n if (this.isControlColumn) return false;\n if (this.rowTree.isGroupRow) return false; // ember-eui extension (row-tree): group rows have no value\n if (this.args.isFooter) return true;\n return this.column?.isExpandable ?? true;\n }\n\n get isExpandable(): boolean {\n // A cell with cell actions must always be expandable, otherwise keyboard\n // and screen reader users can't access them\n // ember-eui extension (row-tree): `!isGroupRow`: group rows have no value\n if (this.column?.cellActions?.length && !this.rowTree.isGroupRow) return true;\n return this.cellPropsIsExpandable ?? this.defaultIsExpandable;\n }\n\n get isPopoverOpen(): boolean {\n return (\n this.isExpandable &&\n this.grid.isPopoverOpenFor(this.args.colIndex, this.args.visibleRowIndex)\n );\n }\n\n get showCellActions(): boolean {\n return this.isExpandable && (this.isPopoverOpen || this.isFocused || this.isHovered);\n }\n\n @action\n handleCellExpansionClick(): void {\n if (this.isPopoverOpen) {\n this.grid.closeCellPopover();\n } else {\n this.grid.openCellPopover({\n rowIndex: this.args.visibleRowIndex,\n colIndex: this.args.colIndex\n });\n }\n }\n\n @action\n closePopover(): void {\n this.grid.closeCellPopover();\n }\n\n /** Clicking the expand action must toggle, not count as an outside click. */\n @action\n onPopoverClickOutside(event: Event): void {\n const actions = this.cellElement?.querySelector('.euiDataGridRowCell__actionsWrapper');\n if (!actions?.contains(event.target as Node)) this.grid.closeCellPopover();\n }\n\n private popoverPanel: HTMLElement | null = null;\n\n /**\n * The cell popover holds forms and editors: focus goes to its first\n * tabbable element (EuiPopover itself would focus the panel, as\n * upstream), the panel when there is none.\n */\n popoverInitialFocus = (): HTMLElement | null =>\n this.popoverPanel\n ? ((tabbable(this.popoverPanel)[0] as HTMLElement | undefined) ??\n this.popoverPanel)\n : null;\n\n @action\n registerPopoverPanel(panel: HTMLElement | null): void {\n this.popoverPanel?.removeEventListener('keydown', this.onPopoverKeyDown, true);\n this.popoverPanel = panel;\n panel?.addEventListener('keydown', this.onPopoverKeyDown, true);\n }\n\n @action\n onPopoverKeyDown(event: KeyboardEvent): void {\n if (event.key === keys.F2 || event.key === keys.ESCAPE) {\n event.preventDefault();\n event.stopPropagation();\n this.grid.closeCellPopover();\n const cell = this.cellElement;\n // prevent the actions animation from replaying while focus moves back\n cell?.setAttribute('data-keyboard-closing', 'true');\n requestAnimationFrame(() => {\n cell?.focus();\n cell?.removeAttribute('data-keyboard-closing');\n });\n }\n }\n\n get popoverFocusTrapOptions() {\n return {\n onClickOutside: this.onPopoverClickOutside,\n clickOutsideDeactivates: false,\n // let clicks through (e.g. the expand button toggling the popover)\n allowOutsideClick: true\n };\n }\n\n get popoverPanelClassName(): string {\n return concatClass('euiDataGridRowCell__popover', this.grid.cellPopoverProps.panelClassName);\n }\n\n get popoverZIndex(): number | undefined {\n return this.grid.cellPopoverProps.zIndex;\n }\n\n get popoverPanelStyle(): Record<string, string> {\n const width = this.cellElement?.offsetWidth ?? 0;\n return {\n maxInlineSize: `min(75vw, max(${width}px, 400px))`,\n maxBlockSize: '50vh'\n };\n }\n\n get schema(): string | null | undefined {\n return this.column?.schema || this.columnType;\n }\n\n get cellText(): string {\n return this.contentElement?.innerText ?? '';\n }\n\n\n @action\n setCellPopoverProps(props: Record<string, unknown>): void {\n schedule('afterRender', () => {\n if (!this.isDestroying) this.grid.cellPopoverProps = props;\n });\n }\n\n get popoverRendererProps() {\n return {\n rowIndex: this.rowIndex,\n colIndex: this.args.colIndex,\n columnId: this.columnId,\n schema: this.schema,\n cellContentsElement: this.contentElement,\n setCellPopoverProps: this.setCellPopoverProps\n };\n }\n\n /* -------------------------------------------------------------------- */\n /* Focus */\n /* -------------------------------------------------------------------- */\n\n onFocusUpdate = (isFocused: boolean, preventScroll = false): void => {\n if (this.isDestroying) return;\n this.isFocused = isFocused;\n if (isFocused) this.takeFocus(preventScroll);\n };\n\n takeFocus(preventScroll: boolean): void {\n const cell = this.cellElement;\n if (!cell) return;\n const active = document.activeElement;\n if (active && !cell.contains(active) && active.closest('.euiPopover__panel')) {\n // focus is in a popover (e.g. this cell's expansion popover, closing):\n // its focus trap keeps focus until it closes, so focus the cell after\n let frames = 30; // the popover's closing transition\n const focusWhenReleased = () => {\n if (this.isDestroying || !this.isFocused) return;\n const current = document.activeElement;\n if (current?.closest('.euiPopover__panel') && frames-- > 0) {\n requestAnimationFrame(focusWhenReleased);\n return;\n }\n if (!this.cellElement?.contains(current)) this.cellElement?.focus({ preventScroll });\n };\n requestAnimationFrame(focusWhenReleased);\n return;\n }\n // Only focus the cell if not already focused on something in the cell\n if (!cell.contains(active)) cell.focus({ preventScroll });\n }\n\n @action\n updateCellFocusContext(): void {\n this.grid.setFocusedCell([this.args.colIndex, this.args.visibleRowIndex]);\n }\n\n setupCell = modifier((element: HTMLElement) => {\n this.cellElement = element;\n const { grid, colIndex, visibleRowIndex } = this.args;\n if (grid.isFocusedCell(colIndex, visibleRowIndex)) {\n // preventScroll: don't hijack the user's scrolling when the cell re-mounts\n this.takeFocus(true);\n afterRender(this, () => grid.setIsFocusedCellInView(true));\n }\n // take interactive children out of the tab order\n const hasInteractives = disableInteractives(element).length > 0;\n afterRender(this, () => {\n if (hasInteractives !== this.hasInteractiveChildren)\n this.hasInteractiveChildren = hasInteractives;\n });\n // focusing any (interactive) child updates the grid focus\n const onFocus = () => this.updateCellFocusContext();\n element.addEventListener('focus', onFocus, true);\n return () => {\n element.removeEventListener('focus', onFocus, true);\n this.cellElement = null;\n };\n });\n\n @action\n onMouseEnter(): void {\n this.isHovered = true;\n }\n\n @action\n onMouseLeave(): void {\n this.isHovered = false;\n }\n\n @action\n onKeyDown(event: KeyboardEvent): void {\n // ember-eui extension (row-tree): toggle cell keys (Space/Enter/arrows)\n if (\n handleRowTreeCellKeyDown(event, {\n grid: this.grid,\n tree: this.rowTree,\n cellElement: this.cellElement,\n colIndex: this.args.colIndex,\n isExpandable: this.isExpandable,\n isPopoverOpen: this.isPopoverOpen,\n hasFocusTrap: this.renderFocusTrap\n })\n )\n return;\n if (this.isExpandable) {\n if (this.isPopoverOpen) return;\n if (event.key === keys.ENTER || event.key === keys.F2) {\n event.preventDefault();\n this.grid.openCellPopover({\n rowIndex: this.args.visibleRowIndex,\n colIndex: this.args.colIndex\n });\n }\n }\n }\n\n /* -------------------------------------------------------------------- */\n /* Focus trap for non-expandable cells with interactive children */\n /* -------------------------------------------------------------------- */\n\n get renderFocusTrap(): boolean {\n return !this.isExpandable && this.hasInteractiveChildren;\n }\n\n @action\n onKeyUp(event: KeyboardEvent): void {\n if (!this.renderFocusTrap) return;\n switch (event.key) {\n case keys.ENTER:\n case keys.F2:\n event.preventDefault();\n if (!this.isCellEntered) this.enterCell();\n break;\n case keys.ESCAPE:\n event.preventDefault();\n if (this.isCellEntered) this.exitCell();\n break;\n }\n }\n\n enterCell(): void {\n this.isCellEntered = true;\n if (this.cellElement) enableAndFocusInteractives(this.cellElement);\n }\n\n @action\n exitCell(): void {\n if (!this.isCellEntered) return;\n this.isCellEntered = false;\n this.isExited = true;\n const cell = this.cellElement;\n if (cell) {\n disableInteractives(cell);\n requestAnimationFrame(() => cell.focus());\n }\n }\n\n @action\n onBlur(): void {\n // ensures the SR text is reset when navigating to a different cell\n if (this.isExited) this.isExited = false;\n }\n\n focusTrapOptions = {\n clickOutsideDeactivates: true,\n escapeDeactivates: false,\n // like react-focus-on, entering the cell focuses its first interactive child\n returnFocusOnDeactivate: false,\n onDeactivate: () => {\n if (this.isCellEntered) this.isCellEntered = false;\n },\n fallbackFocus: () => this.cellElement!\n };\n\n get focusTrapEnterPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.focusTrapEnterPrompt',\n \"Press the Enter key to interact with this cell's contents.\"\n );\n }\n\n get focusTrapExitPrompt(): string {\n return this.euiI18n.lookupToken('euiDataGridCell.focusTrapExitPrompt', 'Exited cell content.');\n }\n\n get focusTrapEnteredExitPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.focusTrapEnteredExitPrompt',\n 'Press the Escape key to exit the cell.'\n );\n }\n\n /* -------------------------------------------------------------------- */\n /* Row heights */\n /* -------------------------------------------------------------------- */\n\n get rowHeightOption() {\n return this.args.body.rowHeightUtils.getRowHeightOption(\n this.rowIndex,\n this.grid.rowHeightsOptions\n );\n }\n\n get cellHeightType(): RowHeightType {\n const utils = this.args.body.rowHeightUtils;\n const option = this.rowHeightOption;\n if (utils.isAutoBelowLineCount(this.grid.rowHeightsOptions, option))\n return 'autoBelowLineCount';\n return utils.getHeightType(option) || 'default';\n }\n\n get lineClamp(): number | undefined {\n const type = this.cellHeightType;\n if ((type === 'lineCount' || type === 'autoBelowLineCount') && !this.isControlColumn) {\n return this.args.body.rowHeightUtils.getLineCount(this.rowHeightOption);\n }\n return undefined;\n }\n\n /** Port of `recalculateLineHeight`: one cell per row measures line heights. */\n measureLineHeight = modifier((element: HTMLElement, positional: unknown[]) => {\n void positional; // re-run when font size, padding or height options change\n if (!this.isFirstColumn || this.args.isFooter) return;\n const { body, grid } = this.args;\n const utils = body.rowHeightUtils;\n const options = grid.rowHeightsOptions;\n const option = utils.getRowHeightOption(this.rowIndex, options);\n if (utils.isAutoBelowLineCount(options, option)) return; // auto height instead\n const lineCount = option == null ? 1 : utils.getLineCount(option);\n if (!lineCount) return;\n const height = utils.calculateHeightForLineCount(element, lineCount);\n if (utils.isRowHeightOverride(this.rowIndex, options)) {\n utils.setRowHeight(this.rowIndex, this.columnId, height, this.args.visibleRowIndex);\n } else {\n afterRender(this, () => body.setMinRowHeight(height));\n }\n });\n\n /** Port of `recalculateAutoHeight`: auto rows report their content height. */\n measureAutoHeight = modifier((element: HTMLElement, [isAuto]: [boolean]) => {\n if (!isAuto || this.args.isFooter) return;\n const report = () => {\n if (this.isDestroying) return;\n this.args.body.rowHeightUtils.setRowHeight(\n this.rowIndex,\n this.columnId,\n element.offsetHeight,\n this.args.visibleRowIndex\n );\n };\n report();\n return observeResize([element], report);\n });\n\n get isAutoHeight(): boolean {\n return this.args.body.rowHeightUtils.isAutoHeight(\n this.rowIndex,\n this.grid.rowHeightsOptions\n );\n }\n\n setContentElement = modifier((element: HTMLElement) => {\n this.contentElement = element;\n return () => {\n if (this.contentElement === element) this.contentElement = null;\n };\n });\n\n /* -------------------------------------------------------------------- */\n /* Classes, styles & attributes */\n /* -------------------------------------------------------------------- */\n\n @cached\n get themeStyles() {\n const context = getEuiThemeContext(this);\n return {\n context,\n cell: useEuiBorealisStyles(context, euiDataGridRowCellStyles),\n footer: useEuiBorealisStyles(context, euiDataGridFooterStyles),\n popover: useEuiBorealisStyles(context, euiDataGridCellPopoverStyles)\n };\n }\n\n @cached\n get cellClass(): string {\n const { context, cell, footer } = this.themeStyles;\n return euiClass(\n context,\n cell.euiDataGridRowCell,\n this.args.isFooter && footer.euiDataGridFooterCell\n );\n }\n\n get classes(): string {\n void this.propsRevision;\n const columnType = this.columnType;\n return [\n 'euiDataGridRowCell',\n columnType && `euiDataGridRowCell--${columnType}`,\n this.isPopoverOpen && 'euiDataGridRowCell--open',\n this.args.isFooter && 'euiDataGridFooterCell',\n this.isFirstColumn && 'euiDataGridRowCell--firstColumn',\n this.isLastColumn && 'euiDataGridRowCell--lastColumn',\n this.isControlColumn && 'euiDataGridRowCell--controlColumn',\n this.textTransform && `euiDataGridRowCell--${this.textTransform}`,\n this.args.isFooter && this.isControlColumn && (this.controlColumn?.footerCellProps?.className as string),\n this.cellProps.className,\n this.cellClass\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n get dataTestSubj(): string {\n void this.propsRevision;\n return ['dataGridRowCell', this.cellProps['data-test-subj']].filter(Boolean).join(' ');\n }\n\n /** Ember addition: upstream sets no `aria-colindex`; columns are virtualized here. */\n get ariaColIndex(): number {\n return this.args.colIndex + 1;\n }\n\n get ariaRowIndex(): number {\n const pagination = this.grid.pagination;\n const { visibleRowIndex } = this.args;\n return pagination\n ? visibleRowIndex + 1 + pagination.pageSize * pagination.pageIndex\n : visibleRowIndex + 1;\n }\n\n /** `footerCellProps.style` of a control column's footer cell. */\n get footerCellPropsStyle(): string {\n if (!this.args.isFooter || !this.isControlColumn) return '';\n const style = this.controlColumn?.footerCellProps?.style;\n if (!style || typeof style !== 'object') return '';\n const { top, ...rest } = style as Record<string, string | number | undefined>;\n // upstream: `top: style.top ? 0 : undefined` (rows position their cells)\n return styleString({ ...rest, top: top ? 0 : undefined });\n }\n\n get style() {\n void this.propsRevision;\n const { body, colIndex, visibleRowIndex, isFooter } = this.args;\n const width = this.width;\n const parts: string[] = [];\n // control columns' `footerCellProps.style` comes first, like upstream's\n // `style` prop under the width, line height and `setCellProps` styles\n const footerStyle = this.footerCellPropsStyle;\n if (footerStyle) parts.push(footerStyle);\n if (!isFooter && !body.isVirtualized) {\n // custom grid body: cells flow in the consumer's rows\n parts.push(`height:${this.isAutoHeight ? 'auto' : `${body.rowHeight(visibleRowIndex)}px`}`);\n } else if (!isFooter) {\n parts.push(\n 'position:absolute',\n `left:${body.columnLeft(colIndex)}px`,\n 'top:0',\n `height:${body.rowHeight(visibleRowIndex)}px`\n );\n }\n if (width != null) parts.push(`width:${width}px`);\n const lineHeight = this.grid.rowHeightsOptions?.lineHeight;\n if (lineHeight) parts.push(`line-height:${lineHeight}`);\n const extra = styleString(this.cellProps.style);\n if (extra) parts.push(extra);\n return htmlSafe(parts.join(';'));\n }\n\n @cached\n get contentClass(): string {\n const { context, cell } = this.themeStyles;\n const type = this.cellHeightType;\n const isControl = this.isControlColumn;\n const isAuto = type === 'auto' || type === 'autoBelowLineCount';\n const hasClamp = this.lineClamp != null;\n return [\n 'euiDataGridRowCell__content',\n `euiDataGridRowCell__content--${type}Height`,\n !isControl && type !== 'default' && 'eui-textBreakWord',\n !isControl && type === 'default' && 'eui-textTruncate',\n hasClamp && 'euiTextBlockTruncate',\n euiClass(\n context,\n cell.content.euiDataGridRowCell__content,\n ...(isControl\n ? [cell.content.controlColumn, cell.content.autoHeight]\n : [isAuto ? cell.content.autoHeight : cell.content.defaultHeight]),\n !isControl && type !== 'default' && TEXT_BREAK_WORD,\n !isControl && type === 'default' && TEXT_TRUNCATE,\n hasClamp && euiTextBlockTruncate\n )\n ]\n .filter(Boolean)\n .join(' ');\n }\n\n get contentStyle() {\n const lines = this.lineClamp;\n return lines ? htmlSafe(`-webkit-line-clamp:${lines}`) : undefined;\n }\n\n @cached\n get popoverPanelCss() {\n return this.themeStyles.popover.euiDataGridRowCell__popover;\n }\n\n /* -------------------------------------------------------------------- */\n /* Renderers */\n /* -------------------------------------------------------------------- */\n\n get kind(): 'data' | 'control' | 'footer' | 'controlFooter' {\n if (this.args.isFooter) return this.isControlColumn ? 'controlFooter' : 'footer';\n return this.isControlColumn ? 'control' : 'data';\n }\n\n get renderer() {\n if (this.args.renderCellValue && !this.args.isFooter) return this.args.renderCellValue;\n switch (this.kind) {\n case 'data':\n return this.grid.args.renderCellValue;\n case 'footer':\n return this.grid.args.renderFooterCellValue;\n case 'control':\n return this.controlColumn?.rowCellRender;\n case 'controlFooter':\n return this.controlColumn?.footerCellRender;\n }\n return undefined;\n }\n\n get cellValueProps(): EuiDataGridCellValueElementProps {\n return {\n rowIndex: this.rowIndex,\n colIndex: this.args.colIndex,\n columnId: this.columnId,\n setCellProps: this.setCellProps,\n isExpandable: this.isExpandable,\n isExpanded: this.isPopoverOpen,\n isDetails: false,\n schema: this.schema,\n cellContext: this.grid.args.cellContext,\n row: this.rowTree.rowData, // ember-eui extension (row-tree): `@row`\n rowTree: this.rowTree.info // ember-eui extension (row-tree): `@rowTree`\n };\n }\n\n get detailsValueProps(): EuiDataGridCellValueElementProps {\n return {\n ...this.cellValueProps,\n isExpandable: true,\n isExpanded: true,\n isDetails: true\n };\n }\n\n get cellPosition(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.position',\n '{columnName}, column {columnIndex}, row {rowIndex}',\n {\n columnName: this.column?.displayAsText || this.columnId,\n columnIndex: this.args.colIndex + 1,\n rowIndex: this.ariaRowIndex\n }\n );\n }\n\n get expansionEnterPrompt(): string {\n return this.euiI18n.lookupToken(\n 'euiDataGridCell.expansionEnterPrompt',\n 'Press the Enter key to expand this cell.'\n );\n }\n\n get screenReaderDescription(): string {\n return ` - ${this.cellPosition}${this.showCellActions ? `. ${this.expansionEnterPrompt}` : ''}`;\n }\n\n get ariaDescribedBy(): string | undefined {\n return this.renderFocusTrap ? this.focusTrapHintId : undefined;\n }\n\n <template>\n {{! template-lint-disable no-invalid-interactive require-aria-activedescendant-tabindex }}\n <div\n role=\"gridcell\"\n class={{this.classes}}\n style={{this.style}}\n tabindex={{if this.isFocused \"0\" \"-1\"}}\n aria-rowindex={{this.ariaRowIndex}}\n aria-colindex={{this.ariaColIndex}}\n aria-describedby={{this.ariaDescribedBy}}\n data-test-subj={{this.dataTestSubj}}\n data-gridcell-column-id={{this.columnId}}\n data-gridcell-column-index={{@colIndex}}\n data-gridcell-row-index={{this.rowIndex}}\n data-gridcell-visible-row-index={{@visibleRowIndex}}\n {{on \"keydown\" this.onKeyDown}}\n {{on \"keyup\" this.onKeyUp}}\n {{on \"blur\" this.onBlur}}\n {{on \"mouseenter\" this.onMouseEnter}}\n {{on \"mouseleave\" this.onMouseLeave}}\n {{this.cellPropsElement this.cellPropsKey}}\n {{this.registerFocus @colIndex @visibleRowIndex}}\n {{this.setupCell}}\n ...attributes\n >\n {{#if this.isControlColumn}}<EuiDataGridCopyMarker @grid={{@grid}} @type=\"no-copy\" />{{/if}}\n {{#if this.isExpandable}}\n {{! template-lint-disable no-duplicate-landmark-elements }}\n <div\n data-datagrid-cellcontent\n class={{this.contentClass}}\n style={{this.contentStyle}}\n {{this.setContentElement}}\n {{this.measureLineHeight\n this.grid.gridStyles.fontSize\n this.grid.gridStyles.cellPadding\n this.grid.rowHeightsOptions\n this.rowHeightOption\n }}\n {{this.measureAutoHeight this.isAutoHeight}}\n >\n {{! ember-eui extension (row-tree): indentation, toggle, group content }}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell\n @grid={{@grid}}\n @row={{this.rowTree.row}}\n @columnId={{this.columnId}}\n @colIndex={{@colIndex}}\n @isToggleCell={{this.rowTree.isToggleCell}}\n />\n {{/if}}\n {{! ember-eui extension (row-tree): group rows render no value }}\n {{#if this.rowTree.isGroupRow}}\n {{else if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{this.isExpandable}}\n @isExpanded={{this.isPopoverOpen}}\n @isDetails={{false}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"data\")}}\n {{yield this.cellValueProps to=\"cell\"}}\n {{else if (eq this.kind \"control\")}}\n {{yield this.cellValueProps to=\"controlCell\"}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.cellValueProps to=\"footerCell\"}}\n {{else if (eq this.kind \"controlFooter\")}}\n {{yield this.cellValueProps to=\"controlFooterCell\"}}\n {{/if}}\n </div>\n {{else}}\n <div\n data-focus-lock-disabled={{if this.isCellEntered \"false\" \"disabled\"}}\n {{focusTrap\n _createFocusTrap=focusTrapFactory\n isActive=this.isCellEntered\n focusTrapOptions=this.focusTrapOptions\n }}\n >\n <div\n data-datagrid-cellcontent\n class={{this.contentClass}}\n style={{this.contentStyle}}\n {{this.setContentElement}}\n {{this.measureLineHeight\n this.grid.gridStyles.fontSize\n this.grid.gridStyles.cellPadding\n this.grid.rowHeightsOptions\n this.rowHeightOption\n }}\n {{this.measureAutoHeight this.isAutoHeight}}\n >\n {{! ember-eui extension (row-tree): indentation, toggle, group content }}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell\n @grid={{@grid}}\n @row={{this.rowTree.row}}\n @columnId={{this.columnId}}\n @colIndex={{@colIndex}}\n @isToggleCell={{this.rowTree.isToggleCell}}\n />\n {{/if}}\n {{! ember-eui extension (row-tree): group rows render no value }}\n {{#if this.rowTree.isGroupRow}}\n {{else if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{this.isExpandable}}\n @isExpanded={{false}}\n @isDetails={{false}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"data\")}}\n {{yield this.cellValueProps to=\"cell\"}}\n {{else if (eq this.kind \"control\")}}\n {{yield this.cellValueProps to=\"controlCell\"}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.cellValueProps to=\"footerCell\"}}\n {{else if (eq this.kind \"controlFooter\")}}\n {{yield this.cellValueProps to=\"controlFooterCell\"}}\n {{/if}}\n </div>\n {{#if this.renderFocusTrap}}\n <p id={{this.focusTrapHintId}} hidden>\n {{#if this.isExited}}{{this.focusTrapExitPrompt}}{{/if}}\n {{#unless this.isCellEntered}}{{this.focusTrapEnterPrompt}}{{/unless}}\n </p>\n <EuiLiveAnnouncer @clearAfterMs={{1000}}>\n {{#if this.isCellEntered}}{{this.focusTrapEnteredExitPrompt}}{{/if}}\n </EuiLiveAnnouncer>\n {{/if}}\n </div>\n {{/if}}\n <EuiDataGridCopyMarker @grid={{@grid}} @type={{this.copyMarkerType}} />\n {{#if this.isFocused}}\n <EuiScreenReaderOnly><p><EuiDataGridCopyMarker\n @grid={{@grid}}\n @type=\"no-copy\"\n />{{this.screenReaderDescription}}<EuiDataGridCopyMarker\n @grid={{@grid}}\n @type=\"no-copy\"\n /></p></EuiScreenReaderOnly>\n {{/if}}\n {{#if this.showCellActions}}\n <EuiDataGridCellActions\n @column={{this.column}}\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @onExpandClick={{this.handleCellExpansionClick}}\n >\n <:popover>\n <EuiPopover\n @isOpen={{this.isPopoverOpen}}\n @closePopover={{this.closePopover}}\n @display=\"block\"\n @hasArrow={{false}}\n @attachToAnchor={{true}}\n @panelPaddingSize=\"s\"\n @anchorPosition=\"downLeft\"\n @repositionToCrossAxis={{false}}\n @panelClassName={{this.popoverPanelClassName}}\n @panelCss={{this.popoverPanelCss}}\n @panelStyle={{this.popoverPanelStyle}}\n @panelRef={{this.registerPopoverPanel}}\n @initialFocus={{this.popoverInitialFocus}}\n @focusTrapOptions={{this.popoverFocusTrapOptions}}\n @zIndex={{this.popoverZIndex}}\n >\n <:button>\n <div data-test-subject=\"cellPopoverAnchor\"></div>\n </:button>\n <:content>\n {{#let\n (component\n EuiDataGridCellPopoverActions\n column=this.column\n rowIndex=this.rowIndex\n colIndex=@colIndex\n )\n as |CellActions|\n }}\n {{#let\n (component\n EuiDataGridDefaultCellPopover\n schema=this.schema\n cellContentsElement=this.contentElement\n cellActions=CellActions\n )\n as |DefaultCellPopover|\n }}\n <div data-test-subj=\"euiDataGridExpansionPopover\">\n {{#if @grid.args.renderCellPopover}}\n {{#let @grid.args.renderCellPopover as |PopoverRenderer|}}\n <PopoverRenderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @schema={{this.schema}}\n @cellContentsElement={{this.contentElement}}\n @setCellPopoverProps={{this.setCellPopoverProps}}\n @cellActions={{CellActions}}\n @DefaultCellPopover={{DefaultCellPopover}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n >\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{true}}\n @isExpanded={{true}}\n @isDetails={{true}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{/if}}\n </PopoverRenderer>\n {{/let}}\n {{else if @hasCellPopoverBlock}}\n {{! ember-eui extension (row-tree): `row`, `rowTree` in the hash }}\n {{yield\n (hash\n rowIndex=this.rowIndex\n colIndex=@colIndex\n columnId=this.columnId\n schema=this.schema\n cellContentsElement=this.contentElement\n setCellPopoverProps=this.setCellPopoverProps\n cellActions=CellActions\n DefaultCellPopover=DefaultCellPopover\n row=this.rowTree.rowData\n rowTree=this.rowTree.info\n )\n to=\"cellPopover\"\n }}\n {{else}}\n <EuiDataGridDefaultCellPopover\n @schema={{this.schema}}\n @cellContentsElement={{this.contentElement}}\n @cellActions={{CellActions}}\n >\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer\n @rowIndex={{this.rowIndex}}\n @colIndex={{@colIndex}}\n @columnId={{this.columnId}}\n @setCellProps={{this.setCellProps}}\n @isExpandable={{true}}\n @isExpanded={{true}}\n @isDetails={{true}}\n @schema={{this.schema}}\n @cellContext={{@grid.args.cellContext}}\n {{! ember-eui extension (row-tree): @row, @rowTree }}\n @row={{this.rowTree.rowData}}\n @rowTree={{this.rowTree.info}}\n />\n {{/let}}\n {{else if (eq this.kind \"footer\")}}\n {{yield this.detailsValueProps to=\"footerCell\"}}\n {{else}}\n {{yield this.detailsValueProps to=\"cell\"}}\n {{/if}}\n </EuiDataGridDefaultCellPopover>\n {{/if}}\n </div>\n {{/let}}\n {{/let}}\n </:content>\n </EuiPopover>\n </:popover>\n </EuiDataGridCellActions>\n {{/if}}\n </div>\n </template>\n}\n"],"names":["concatClass","classes","filter","value","join","TEXT_TRUNCATE","euiTextTruncate","TEXT_BREAK_WORD","euiTextBreakWord","euiTextBlockTruncate","euiTextBlockTruncateStyles","shallowEqual","a","b","aKeys","Object","keys","bKeys","length","key","aValue","bValue","setAttributeIfChanged","element","name","getAttribute","setAttribute","toKebab","property","startsWith","replace","match","toLowerCase","UNITLESS","Set","styleString","style","entries","map","cssValue","has","String","EuiDataGridCell","Component","g","prototype","service","i","tracked","cellElement","contentElement","focusTrapHintId","guidFor","constructor","owner","args","isFocused","grid","isFocusedCell","colIndex","visibleRowIndex","registerFocus","modifier","_element","afterRender","onFocusUpdate","willDestroy","setIsFocusedCellInView","isPopoverOpen","closeCellPopover","leadingCount","leadingControlColumns","isLeadingControlColumn","isTrailingControlColumn","columns","isControlColumn","controlColumn","trailingControlColumns","undefined","column","columnId","id","columnType","schema","textTransform","schemaDetectors","find","detector","type","rowIndex","isFooter","getCorrectRowIndex","rowTree","rowTreeCellState","n","cached","width","control","body","widthForColumn","isFirstColumn","isLastColumn","visibleColCount","isLastCopyColumn","columnCount","copyMarkerType","cellPropsState","propsElement","ownsPropsAttributes","writtenPropsAttributes","Map","propsAttributeNames","cellPropsKey","cellProps","state","props","cellPropsIsExpandable","expandableState","setCellProps","schedule","isDestroying","isDestroyed","current","expandable","wasExpandable","isExpandable","propsRevision","applyCellProps","ownAttributes","set","names","includes","push","removeAttribute","dataTestSubj","cellPropsElement","every","get","defaultIsExpandable","isGroupRow","cellActions","isPopoverOpenFor","showCellActions","isHovered","handleCellExpansionClick","openCellPopover","action","closePopover","onPopoverClickOutside","event","actions","querySelector","contains","target","popoverPanel","popoverInitialFocus","tabbable","registerPopoverPanel","panel","removeEventListener","onPopoverKeyDown","addEventListener","preventDefault","stopPropagation","cell","requestAnimationFrame","focus","popoverFocusTrapOptions","onClickOutside","clickOutsideDeactivates","allowOutsideClick","popoverPanelClassName","cellPopoverProps","panelClassName","popoverZIndex","zIndex","popoverPanelStyle","offsetWidth","maxInlineSize","maxBlockSize","cellText","innerText","setCellPopoverProps","popoverRendererProps","cellContentsElement","preventScroll","takeFocus","active","document","activeElement","closest","frames","focusWhenReleased","updateCellFocusContext","setFocusedCell","setupCell","hasInteractives","disableInteractives","hasInteractiveChildren","onFocus","onMouseEnter","onMouseLeave","onKeyDown","handleRowTreeCellKeyDown","tree","hasFocusTrap","renderFocusTrap","onKeyUp","isCellEntered","enterCell","exitCell","enableAndFocusInteractives","isExited","onBlur","focusTrapOptions","escapeDeactivates","returnFocusOnDeactivate","onDeactivate","fallbackFocus","focusTrapEnterPrompt","euiI18n","lookupToken","focusTrapExitPrompt","focusTrapEnteredExitPrompt","rowHeightOption","rowHeightUtils","getRowHeightOption","rowHeightsOptions","cellHeightType","utils","option","isAutoBelowLineCount","getHeightType","lineClamp","getLineCount","measureLineHeight","positional","options","lineCount","height","calculateHeightForLineCount","isRowHeightOverride","setRowHeight","setMinRowHeight","measureAutoHeight","isAuto","report","offsetHeight","observeResize","isAutoHeight","setContentElement","themeStyles","context","getEuiThemeContext","useEuiBorealisStyles","euiDataGridRowCellStyles","footer","euiDataGridFooterStyles","popover","euiDataGridCellPopoverStyles","cellClass","euiClass","euiDataGridRowCell","euiDataGridFooterCell","footerCellProps","className","Boolean","ariaColIndex","ariaRowIndex","pagination","pageSize","pageIndex","footerCellPropsStyle","top","rest","parts","footerStyle","isVirtualized","rowHeight","columnLeft","lineHeight","extra","htmlSafe","contentClass","isControl","hasClamp","content","euiDataGridRowCell__content","autoHeight","defaultHeight","contentStyle","lines","popoverPanelCss","euiDataGridRowCell__popover","kind","renderer","renderCellValue","renderFooterCellValue","rowCellRender","footerCellRender","cellValueProps","isExpanded","isDetails","cellContext","row","rowData","info","detailsValueProps","cellPosition","columnName","displayAsText","columnIndex","expansionEnterPrompt","screenReaderDescription","ariaDescribedBy","setComponentTemplate","precompileTemplate","strictMode","scope","on","EuiDataGridCopyMarker","EuiDataGridTreeCell","eq","focusTrap","focusTrapFactory","EuiLiveAnnouncer","EuiScreenReaderOnly","EuiDataGridCellActions","EuiPopover","EuiDataGridCellPopoverActions","EuiDataGridDefaultCellPopover","hash"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4DA,MAAMA,cAAcA,CAAC,GAAGC,OAAgB,KACtCA,OAAA,CAAQC,MAAM,CAAEC,KAAA,IAAU,OAAOA,UAAU,QAAA,IAAYA,KAAA,CAAA,CAAOC,IAAI,CAAC,GAAA,CAAA;AAErE,MAAMC,aAAA,GAAgBC,eAAA,EAAA;AACtB,MAAMC,eAAA,GAAkBC,gBAAA,EAAA;AACxB,MAAM;AAAEC,EAAAA;AAAoB,CAAE,GAAGC,0BAAA;AAsBjC,SAASC,YAAAA,CACPC,CAA0B,EAC1BC,CA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,EACA,0CAAA,CAAA;AAEJ,EAAA;EAEA,IAAI4F,uBAAAA,GAAkC;AACpC,IAAA,OAAO,MAAM,IAAI,CAACL,YAAY,CAAA,EAAG,IAAI,CAACtK,eAAe,GAAG,CAAA,EAAA,EAAK,IAAI,CAAC0K,oBAAoB,CAAA,CAAE,GAAG,EAAA,CAAA,CAAI;AACjG,EAAA;EAEA,IAAIE,eAAAA,GAAsC;IACxC,OAAO,IAAI,CAAC5G,eAAe,GAAG,IAAI,CAAC3J,eAAe,GAAG2B,SAAA;AACvD,EAAA;AAEA,EAAA;IAAA6O,oBAAA,CAAAC,kBAAA,CAAA,kxSAAA,EA6SA;MAAAC,UAAA,EAAA,IAAA;AAAAC,MAAAA,KAAA,EAAAA,OAAA;QAAAC,EAAA;QAAAC,qBAAA;QAAAC,mBAAA;QAAAC,EAAA;QAAAC,SAAA;QAAAC,gBAAA;QAAAC,gBAAA;QAAAC,mBAAA;QAAAC,sBAAA;oBAAAC,mBAAA;QAAAC,6BAAA;QAAAC,6BAAA;AAAAC,QAAAA;AAAA,OAAA;KAAU,CAAA,EAAV,IAAW,CAAA;AAAD;AACZ;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ember-eui/core",
3
- "version": "16.1.4",
3
+ "version": "16.3.0",
4
4
  "description": "Ember Components for Elastic UI",
5
5
  "keywords": [
6
6
  "ember-addon",
@@ -298,7 +298,6 @@
298
298
  "./components/eui-data-grid.js": "./dist/_app_/components/eui-data-grid.js",
299
299
  "./components/eui-data-grid/body-base.js": "./dist/_app_/components/eui-data-grid/body-base.js",
300
300
  "./components/eui-data-grid/body.js": "./dist/_app_/components/eui-data-grid/body.js",
301
- "./components/eui-data-grid/cell-actions.js": "./dist/_app_/components/eui-data-grid/cell-actions.js",
302
301
  "./components/eui-data-grid/cell.js": "./dist/_app_/components/eui-data-grid/cell.js",
303
302
  "./components/eui-data-grid/column-actions.js": "./dist/_app_/components/eui-data-grid/column-actions.js",
304
303
  "./components/eui-data-grid/column-resizer.js": "./dist/_app_/components/eui-data-grid/column-resizer.js",
@@ -316,7 +315,6 @@
316
315
  "./components/eui-data-grid/keyboard-shortcuts.js": "./dist/_app_/components/eui-data-grid/keyboard-shortcuts.js",
317
316
  "./components/eui-data-grid/pagination.js": "./dist/_app_/components/eui-data-grid/pagination.js",
318
317
  "./components/eui-data-grid/row-model.js": "./dist/_app_/components/eui-data-grid/row-model.js",
319
- "./components/eui-data-grid/row-tree-hooks.js": "./dist/_app_/components/eui-data-grid/row-tree-hooks.js",
320
318
  "./components/eui-data-grid/row.js": "./dist/_app_/components/eui-data-grid/row.js",
321
319
  "./components/eui-data-grid/toolbar.js": "./dist/_app_/components/eui-data-grid/toolbar.js",
322
320
  "./components/eui-data-grid/tree-cell.js": "./dist/_app_/components/eui-data-grid/tree-cell.js",
@@ -554,10 +552,8 @@
554
552
  "./components/eui-super-date-picker/utils/date-utils.js": "./dist/_app_/components/eui-super-date-picker/utils/date-utils.js",
555
553
  "./components/eui-super-date-picker/utils/index.js": "./dist/_app_/components/eui-super-date-picker/utils/index.js",
556
554
  "./components/eui-super-date-picker/utils/pretty-duration.js": "./dist/_app_/components/eui-super-date-picker/utils/pretty-duration.js",
557
- "./components/eui-super-date-picker/utils/pretty-interval.js": "./dist/_app_/components/eui-super-date-picker/utils/pretty-interval.js",
558
555
  "./components/eui-super-date-picker/utils/quick-select.js": "./dist/_app_/components/eui-super-date-picker/utils/quick-select.js",
559
556
  "./components/eui-super-date-picker/utils/time-options.js": "./dist/_app_/components/eui-super-date-picker/utils/time-options.js",
560
- "./components/eui-super-date-picker/utils/time-window.js": "./dist/_app_/components/eui-super-date-picker/utils/time-window.js",
561
557
  "./components/eui-super-select-control.js": "./dist/_app_/components/eui-super-select-control.js",
562
558
  "./components/eui-super-select.js": "./dist/_app_/components/eui-super-select.js",
563
559
  "./components/eui-switch.js": "./dist/_app_/components/eui-switch.js",
@@ -1 +0,0 @@
1
- export { default } from "@ember-eui/core/components/eui-data-grid/cell-actions";
@@ -1 +0,0 @@
1
- export { default } from "@ember-eui/core/components/eui-data-grid/row-tree-hooks";
@@ -1 +0,0 @@
1
- export { default } from "@ember-eui/core/components/eui-super-date-picker/utils/pretty-interval";
@@ -1 +0,0 @@
1
- export { default } from "@ember-eui/core/components/eui-super-date-picker/utils/time-window";
@@ -1,96 +0,0 @@
1
- import { logicalCSS, logicalCSSWithFallback } from './ZKVETBHH.js';
2
- import { transparentize } from './K76TL4VL.js';
3
- import { a as euiCantAnimate, e as euiCanAnimate } from '../../../../eui-theme/animations-BPTw9H2f.js';
4
-
5
- // @ts-nocheck
6
- // GENERATED by scripts/generate-eui-styles.mjs. Do not edit.
7
- // Upstream sources licensed under Elastic License 2.0 or SSPL v1; see vendor/eui-latest.
8
- var euiScrollBarStyles = function euiScrollBarStyles2(_ref) {
9
- var _ref$euiTheme = _ref.euiTheme,
10
- colors = _ref$euiTheme.colors,
11
- size = _ref$euiTheme.size;
12
- var _ref2 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
13
- _thumbColor = _ref2.thumbColor,
14
- _ref2$trackColor = _ref2.trackColor,
15
- trackColor = _ref2$trackColor === void 0 ? "transparent" : _ref2$trackColor,
16
- _ref2$width = _ref2.width,
17
- width = _ref2$width === void 0 ? "thin" : _ref2$width,
18
- _size = _ref2.size,
19
- _corner = _ref2.corner;
20
- var thumbColor = _thumbColor || transparentize(colors.darkShade, 0.5);
21
- var scrollBarSize = _size || size.base;
22
- var scrollBarCorner = _corner || width === "thin" ? "calc(".concat(size.s, " * 0.75)") : size.xs;
23
- var firefoxSupport = "scrollbar-color: ".concat(thumbColor, " ").concat(trackColor, ";");
24
- return "scrollbar-width: ".concat(width, ";\n\n &::-webkit-scrollbar {\n ").concat(logicalCSS("width", scrollBarSize), "\n ").concat(logicalCSS("height", scrollBarSize), "\n }\n\n &::-webkit-scrollbar-thumb {\n background-color: ").concat(thumbColor, ";\n background-clip: content-box;\n border-radius: ").concat(scrollBarSize, ";\n border: ").concat(scrollBarCorner, " solid ").concat(trackColor, ";\n }\n\n &::-webkit-scrollbar-corner,\n &::-webkit-scrollbar-track {\n background-color: ").concat(trackColor, ";\n }\n\n ").concat(firefoxSupport, "\n ");
25
- };
26
- var euiOverflowShadowStyles = function euiOverflowShadowStyles2(_ref3) {
27
- var _ref3$euiTheme = _ref3.euiTheme,
28
- size = _ref3$euiTheme.size,
29
- colors = _ref3$euiTheme.colors;
30
- var _ref4 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
31
- _direction = _ref4.direction,
32
- _side = _ref4.side,
33
- _ref4$hasAnimatedOver = _ref4.hasAnimatedOverflowShadow,
34
- hasAnimatedOverflowShadow = _ref4$hasAnimatedOver === void 0 ? false : _ref4$hasAnimatedOver;
35
- var direction = _direction || "y";
36
- var side = _side || "both";
37
- var hideHeight = size.s;
38
- var gradientStart = "\n ".concat(transparentize("red", 0.1), " 0%,\n ").concat(transparentize("red", 1), " ").concat(hideHeight, "\n ");
39
- var gradientEnd = "\n ".concat(transparentize("red", 1), " calc(100% - ").concat(hideHeight, "),\n ").concat(transparentize("red", 0.1), " 100%\n ");
40
- var gradient = "";
41
- {
42
- if (side === "both") {
43
- gradient = "".concat(gradientStart, ", ").concat(gradientEnd);
44
- } else if (side === "start") {
45
- gradient = "".concat(gradientStart);
46
- } else {
47
- gradient = "".concat(gradientEnd);
48
- }
49
- }
50
- var chromiumMaskWorkaround = "transform: translateZ(0);";
51
- var overflowShadowStatic = direction === "y" ? "mask-image: linear-gradient(to bottom, ".concat(gradient, "); ").concat(chromiumMaskWorkaround) : "mask-image: linear-gradient(to right, ".concat(gradient, "); ").concat(chromiumMaskWorkaround);
52
- if (hasAnimatedOverflowShadow && direction === "y") {
53
- var featureFlag = "animation-timeline: scroll()";
54
- var gradientStartColor = "var(--euiOverflowShadowColor, ".concat(colors.backgroundBasePlain, ")");
55
- var gradientEndColor = "transparent";
56
- var gradientSize = size.base;
57
- var gradientScrollRange = size.m;
58
- var commonPseudoElementStyles = "\n content: '';\n display: block;\n position: sticky;\n z-index: 1;\n block-size: ".concat(gradientSize, ";\n pointer-events: none;\n ");
59
- return "\n @supports not (".concat(featureFlag, ") {\n ").concat(overflowShadowStatic, "\n }\n\n ").concat(euiCantAnimate, " {\n ").concat(overflowShadowStatic, "\n }\n\n ").concat(euiCanAnimate, " {\n @supports (").concat(featureFlag, ") {\n @keyframes show { \n from { opacity: 0 } \n to { opacity: 1 }\n }\n @keyframes hide { \n from { opacity: 1 }\n to { opacity: 0 }\n }\n\n position: relative;\n\n /* Gradient on start edge */\n &::before {\n ").concat(commonPseudoElementStyles, "\n inset-block-start: 0;\n /* prevent pushing down the content */\n ").concat(logicalCSS("margin-bottom", "-".concat(gradientSize)), " \n /* uses CSS custom property to support customization depending on layout wrapper background color */\n background: linear-gradient(to bottom, ").concat(gradientStartColor, ", ").concat(gradientEndColor, ");\n \n opacity: 0;\n animation: show linear both;\n animation-timeline: scroll(y);\n animation-range: 0px ").concat(gradientScrollRange, ";\n }\n\n /* Gradient on end edge */\n &::after {\n ").concat(commonPseudoElementStyles, "\n inset-block-end: 0;\n /* prevent adding extra space */\n ").concat(logicalCSS("margin-top", "-".concat(gradientSize)), " \n background: linear-gradient(to top, ").concat(gradientStartColor, ", ").concat(gradientEndColor, ");\n\n \n /* NOTE: To ensure the bottom gradient is not visible when the container has no overflow,\n we need to use opacity: 0 as default. Using two animations with 'animation-fill-mode: forwards'\n ensures the show/hide animation works both with and without overflow. */\n /* scroll animation */\n opacity: 0;\n animation-name: show, hide;\n animation-timing-function: step-start, linear;\n animation-fill-mode: forwards;\n animation-timeline: scroll(y);\n animation-range: 0% 100%, calc(100% - ").concat(gradientScrollRange, ") 100%;\n }\n }\n }\n ");
60
- }
61
- return overflowShadowStatic;
62
- };
63
- var euiYScroll = function euiYScroll2(euiTheme) {
64
- var _ref5 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
65
- height = _ref5.height;
66
- return "\n ".concat(euiScrollBarStyles(euiTheme), "\n ").concat(logicalCSS("height", height || "100%"), "\n ").concat(logicalCSSWithFallback("overflow-y", "auto"), "\n ").concat(logicalCSSWithFallback("overflow-x", "hidden"), "\n &:focus {\n outline: none; /* 1 */\n }\n");
67
- };
68
- var euiYScrollWithShadows = function euiYScrollWithShadows2(euiTheme) {
69
- var _ref7 = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : {},
70
- height = _ref7.height,
71
- _ref7$side = _ref7.side,
72
- side = _ref7$side === void 0 ? "both" : _ref7$side,
73
- _ref7$hasAnimatedOver = _ref7.hasAnimatedOverflowShadow,
74
- hasAnimatedOverflowShadow = _ref7$hasAnimatedOver === void 0 ? false : _ref7$hasAnimatedOver;
75
- return "\n ".concat(euiYScroll(euiTheme, {
76
- height
77
- }), "\n ").concat(euiOverflowShadowStyles(euiTheme, {
78
- direction: "y",
79
- side,
80
- hasAnimatedOverflowShadow
81
- }), "\n");
82
- };
83
- var euiXScroll = function euiXScroll2(euiTheme) {
84
- return "\n ".concat(euiScrollBarStyles(euiTheme), "\n ").concat(logicalCSSWithFallback("overflow-x", "auto"), "\n &:focus {\n outline: none; /* 1 */\n }\n");
85
- };
86
- var euiXScrollWithShadows = function euiXScrollWithShadows2(euiTheme) {
87
- return "\n ".concat(euiXScroll(euiTheme), "\n ").concat(euiOverflowShadowStyles(euiTheme, {
88
- direction: "x"
89
- }), "\n");
90
- };
91
- var euiFullHeight = function euiFullHeight2() {
92
- return "\n ".concat(logicalCSS("height", "100%"), "\n flex: 1 1 auto;\n overflow: hidden;\n");
93
- };
94
-
95
- export { euiFullHeight, euiScrollBarStyles, euiXScroll, euiXScrollWithShadows, euiYScroll, euiYScrollWithShadows };
96
- //# sourceMappingURL=2KP7ZYVN.js.map