@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
@@ -53,6 +53,9 @@ function shallowEqual(a, b) {
53
53
  }
54
54
  return true;
55
55
  }
56
+ function setAttributeIfChanged(element, name, value) {
57
+ if (element.getAttribute(name) !== value) element.setAttribute(name, value);
58
+ }
56
59
  const toKebab = property => property.startsWith('--') ? property : property.replace(/[A-Z]/g, match => `-${match.toLowerCase()}`);
57
60
  const UNITLESS = new Set(['opacity', 'z-index', 'flex-grow', 'flex-shrink', 'line-height', 'font-weight', 'order']);
58
61
  function styleString(style) {
@@ -208,13 +211,34 @@ class EuiDataGridCell extends Component {
208
211
  if (this.isControlColumn) return 'no-copy';
209
212
  return this.isLastCopyColumn ? 'newline' : 'tab';
210
213
  }
211
- /* -------------------------------------------------------------------- */ /* setCellProps */ /* -------------------------------------------------------------------- */ // props set by the cell renderer, reset when the cell shows another row/column
214
+ /* -------------------------------------------------------------------- */ /* setCellProps */ /* -------------------------------------------------------------------- */ // Props set by the cell renderer, reset when the cell shows another
215
+ // row/column. Not tracked: after the render that set them they are applied
216
+ // to the cell's element directly (`applyCellProps`), because a tracked
217
+ // write after a render makes the next render pass revalidate every
218
+ // rendered cell. Only `isExpandable`, which changes what the cell renders,
219
+ // is tracked (`expandableState`); and a cell whose `class`, `style` or
220
+ // `data-test-subj` its invoker sets too (`...attributes`) renders them
221
+ // again (`propsRevision`), as before.
222
+ cellPropsState = null;
212
223
  static {
213
- g(this.prototype, "cellPropsState", [tracked], function () {
224
+ g(this.prototype, "expandableState", [tracked], function () {
214
225
  return null;
215
226
  });
216
227
  }
217
- #cellPropsState = (i(this, "cellPropsState"), void 0);
228
+ #expandableState = (i(this, "expandableState"), void 0);
229
+ static {
230
+ g(this.prototype, "propsRevision", [tracked], function () {
231
+ return 0;
232
+ });
233
+ }
234
+ #propsRevision = (i(this, "propsRevision"), void 0);
235
+ /** The cell element while it is rendered, for `applyCellProps`. */propsElement = null;
236
+ /** Whether the cell alone sets its `class`, `style` and `data-test-subj` (no `...attributes` of the same). */
237
+ ownsPropsAttributes = true;
238
+ /** What `applyCellProps` last wrote to `class`, `style` and `data-test-subj`. */
239
+ writtenPropsAttributes = new Map();
240
+ /** The attributes `applyCellProps` set from the props, removed when they go. */
241
+ propsAttributeNames = [];
218
242
  get cellPropsKey() {
219
243
  return `${this.columnId}:${this.rowIndex}`;
220
244
  }
@@ -222,6 +246,10 @@ class EuiDataGridCell extends Component {
222
246
  const state = this.cellPropsState;
223
247
  return state && state.key === this.cellPropsKey ? state.props : {};
224
248
  }
249
+ get cellPropsIsExpandable() {
250
+ const state = this.expandableState;
251
+ return state && state.key === this.cellPropsKey ? state.value : undefined;
252
+ }
225
253
  /** Renderers may call this during render; the update is applied after rendering. */
226
254
  setCellProps = props => {
227
255
  const key = this.cellPropsKey;
@@ -234,18 +262,64 @@ class EuiDataGridCell extends Component {
234
262
  key,
235
263
  props
236
264
  };
265
+ const expandable = this.expandableState;
266
+ const wasExpandable = expandable && expandable.key === key ? expandable.value : undefined;
267
+ if (wasExpandable !== props.isExpandable) {
268
+ this.expandableState = {
269
+ key,
270
+ value: props.isExpandable
271
+ };
272
+ }
273
+ if (!this.ownsPropsAttributes) this.propsRevision++;
274
+ this.applyCellProps();
237
275
  });
238
276
  };
239
- /** Arbitrary attributes from setCellProps (other than class/style/data-test-subj). */
240
- cellPropsAttributes = modifier((element, [props]) => {
277
+ /**
278
+ * Puts the props on the cell element: `className`, `style` and
279
+ * `data-test-subj` within the cell's own (the same strings its template
280
+ * renders), the other attributes as they are.
281
+ */
282
+ applyCellProps() {
283
+ const element = this.propsElement;
284
+ if (!element) return;
285
+ if (this.ownsPropsAttributes) {
286
+ for (const [name, value] of this.ownAttributes()) {
287
+ setAttributeIfChanged(element, name, value);
288
+ this.writtenPropsAttributes.set(name, value);
289
+ }
290
+ }
241
291
  const names = [];
242
- for (const [name, value] of Object.entries(props)) {
292
+ for (const [name, value] of Object.entries(this.cellProps)) {
243
293
  if (['className', 'style', 'isExpandable', 'data-test-subj'].includes(name)) continue;
244
294
  if (value == null || value === false || typeof value === 'function') continue;
245
- element.setAttribute(name, String(value));
295
+ setAttributeIfChanged(element, name, String(value));
246
296
  names.push(name);
247
297
  }
248
- return () => names.forEach(name => element.removeAttribute(name));
298
+ for (const name of this.propsAttributeNames) {
299
+ if (!names.includes(name)) element.removeAttribute(name);
300
+ }
301
+ this.propsAttributeNames = names;
302
+ }
303
+ /** The cell's own `class`, `style` and `data-test-subj`, the props included. */
304
+ ownAttributes() {
305
+ return [['class', this.classes], ['style', String(this.style)], ['data-test-subj', this.dataTestSubj]];
306
+ }
307
+ /**
308
+ * On the cell element: whether its invoker sets `class`, `style` or
309
+ * `data-test-subj` too (each holds neither the cell's own value nor what
310
+ * `applyCellProps` last wrote), and the props for the row and column it
311
+ * shows (`key`: a cell that shows another one drops the old props).
312
+ */
313
+ cellPropsElement = modifier((element, [key]) => {
314
+ this.propsElement = element;
315
+ this.ownsPropsAttributes = this.ownAttributes().every(([name, value]) => {
316
+ const current = element.getAttribute(name);
317
+ return current === value || current === this.writtenPropsAttributes.get(name);
318
+ });
319
+ this.applyCellProps();
320
+ return () => {
321
+ if (this.propsElement === element) this.propsElement = null;
322
+ };
249
323
  });
250
324
  /* -------------------------------------------------------------------- */ /* Expansion & popover */ /* -------------------------------------------------------------------- */
251
325
  get defaultIsExpandable() {
@@ -260,7 +334,7 @@ class EuiDataGridCell extends Component {
260
334
  // and screen reader users can't access them
261
335
  // ember-eui extension (row-tree): `!isGroupRow`: group rows have no value
262
336
  if (this.column?.cellActions?.length && !this.rowTree.isGroupRow) return true;
263
- return this.cellProps.isExpandable ?? this.defaultIsExpandable;
337
+ return this.cellPropsIsExpandable ?? this.defaultIsExpandable;
264
338
  }
265
339
  get isPopoverOpen() {
266
340
  return this.isExpandable && this.grid.isPopoverOpenFor(this.args.colIndex, this.args.visibleRowIndex);
@@ -618,10 +692,12 @@ class EuiDataGridCell extends Component {
618
692
  n(this.prototype, "cellClass", [cached]);
619
693
  }
620
694
  get classes() {
695
+ void this.propsRevision;
621
696
  const columnType = this.columnType;
622
697
  return ['euiDataGridRowCell', columnType && `euiDataGridRowCell--${columnType}`, this.isPopoverOpen && 'euiDataGridRowCell--open', this.args.isFooter && 'euiDataGridFooterCell', this.isFirstColumn && 'euiDataGridRowCell--firstColumn', this.isLastColumn && 'euiDataGridRowCell--lastColumn', this.isControlColumn && 'euiDataGridRowCell--controlColumn', this.textTransform && `euiDataGridRowCell--${this.textTransform}`, this.args.isFooter && this.isControlColumn && this.controlColumn?.footerCellProps?.className, this.cellProps.className, this.cellClass].filter(Boolean).join(' ');
623
698
  }
624
699
  get dataTestSubj() {
700
+ void this.propsRevision;
625
701
  return ['dataGridRowCell', this.cellProps['data-test-subj']].filter(Boolean).join(' ');
626
702
  }
627
703
  /** Ember addition: upstream sets no `aria-colindex`; columns are virtualized here. */
@@ -651,6 +727,7 @@ class EuiDataGridCell extends Component {
651
727
  });
652
728
  }
653
729
  get style() {
730
+ void this.propsRevision;
654
731
  const {
655
732
  body,
656
733
  colIndex,
@@ -759,7 +836,7 @@ class EuiDataGridCell extends Component {
759
836
  return this.renderFocusTrap ? this.focusTrapHintId : undefined;
760
837
  }
761
838
  static {
762
- setComponentTemplate(precompileTemplate("{{!-- template-lint-disable no-invalid-interactive require-aria-activedescendant-tabindex --}}\n<div role=\"gridcell\" class={{this.classes}} style={{this.style}} tabindex={{if this.isFocused \"0\" \"-1\"}} aria-rowindex={{this.ariaRowIndex}} aria-colindex={{this.ariaColIndex}} aria-describedby={{this.ariaDescribedBy}} data-test-subj={{this.dataTestSubj}} data-gridcell-column-id={{this.columnId}} data-gridcell-column-index={{@colIndex}} data-gridcell-row-index={{this.rowIndex}} data-gridcell-visible-row-index={{@visibleRowIndex}} {{on \"keydown\" this.onKeyDown}} {{on \"keyup\" this.onKeyUp}} {{on \"blur\" this.onBlur}} {{on \"mouseenter\" this.onMouseEnter}} {{on \"mouseleave\" this.onMouseLeave}} {{this.cellPropsAttributes this.cellProps}} {{this.registerFocus @colIndex @visibleRowIndex}} {{this.setupCell}} ...attributes>\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 data-datagrid-cellcontent class={{this.contentClass}} style={{this.contentStyle}} {{this.setContentElement}} {{this.measureLineHeight this.grid.gridStyles.fontSize this.grid.gridStyles.cellPadding this.grid.rowHeightsOptions this.rowHeightOption}} {{this.measureAutoHeight this.isAutoHeight}}>\n {{!-- ember-eui extension (row-tree): indentation, toggle, group content --}}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell @grid={{@grid}} @row={{this.rowTree.row}} @columnId={{this.columnId}} @colIndex={{@colIndex}} @isToggleCell={{this.rowTree.isToggleCell}} />\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 @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{this.isExpandable}} @isExpanded={{this.isPopoverOpen}} @isDetails={{false}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 data-focus-lock-disabled={{if this.isCellEntered \"false\" \"disabled\"}} {{focusTrap _createFocusTrap=focusTrapFactory isActive=this.isCellEntered focusTrapOptions=this.focusTrapOptions}}>\n <div data-datagrid-cellcontent class={{this.contentClass}} style={{this.contentStyle}} {{this.setContentElement}} {{this.measureLineHeight this.grid.gridStyles.fontSize this.grid.gridStyles.cellPadding this.grid.rowHeightsOptions this.rowHeightOption}} {{this.measureAutoHeight this.isAutoHeight}}>\n {{!-- ember-eui extension (row-tree): indentation, toggle, group content --}}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell @grid={{@grid}} @row={{this.rowTree.row}} @columnId={{this.columnId}} @colIndex={{@colIndex}} @isToggleCell={{this.rowTree.isToggleCell}} />\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 @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{this.isExpandable}} @isExpanded={{false}} @isDetails={{false}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 @grid={{@grid}} @type=\"no-copy\" />{{this.screenReaderDescription}}<EuiDataGridCopyMarker @grid={{@grid}} @type=\"no-copy\" /></p></EuiScreenReaderOnly>\n {{/if}}\n {{#if this.showCellActions}}\n <EuiDataGridCellActions @column={{this.column}} @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @onExpandClick={{this.handleCellExpansionClick}}>\n <:popover>\n <EuiPopover @isOpen={{this.isPopoverOpen}} @closePopover={{this.closePopover}} @display=\"block\" @hasArrow={{false}} @attachToAnchor={{true}} @panelPaddingSize=\"s\" @anchorPosition=\"downLeft\" @repositionToCrossAxis={{false}} @panelClassName={{this.popoverPanelClassName}} @panelCss={{this.popoverPanelCss}} @panelStyle={{this.popoverPanelStyle}} @panelRef={{this.registerPopoverPanel}} @initialFocus={{this.popoverInitialFocus}} @focusTrapOptions={{this.popoverFocusTrapOptions}} @zIndex={{this.popoverZIndex}}>\n <:button>\n <div data-test-subject=\"cellPopoverAnchor\"></div>\n </:button>\n <:content>\n {{#let (component EuiDataGridCellPopoverActions column=this.column rowIndex=this.rowIndex colIndex=@colIndex) as |CellActions|}}\n {{#let (component EuiDataGridDefaultCellPopover schema=this.schema cellContentsElement=this.contentElement cellActions=CellActions) as |DefaultCellPopover|}}\n <div data-test-subj=\"euiDataGridExpansionPopover\">\n {{#if @grid.args.renderCellPopover}}\n {{#let @grid.args.renderCellPopover as |PopoverRenderer|}}\n <PopoverRenderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @schema={{this.schema}} @cellContentsElement={{this.contentElement}} @setCellPopoverProps={{this.setCellPopoverProps}} @cellActions={{CellActions}} @DefaultCellPopover={{DefaultCellPopover}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}}>\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{true}} @isExpanded={{true}} @isDetails={{true}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 (hash rowIndex=this.rowIndex colIndex=@colIndex columnId=this.columnId schema=this.schema cellContentsElement=this.contentElement setCellPopoverProps=this.setCellPopoverProps cellActions=CellActions DefaultCellPopover=DefaultCellPopover row=this.rowTree.rowData rowTree=this.rowTree.info) to=\"cellPopover\"}}\n {{else}}\n <EuiDataGridDefaultCellPopover @schema={{this.schema}} @cellContentsElement={{this.contentElement}} @cellActions={{CellActions}}>\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{true}} @isExpanded={{true}} @isDetails={{true}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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>", {
839
+ setComponentTemplate(precompileTemplate("{{!-- template-lint-disable no-invalid-interactive require-aria-activedescendant-tabindex --}}\n<div role=\"gridcell\" class={{this.classes}} style={{this.style}} tabindex={{if this.isFocused \"0\" \"-1\"}} aria-rowindex={{this.ariaRowIndex}} aria-colindex={{this.ariaColIndex}} aria-describedby={{this.ariaDescribedBy}} data-test-subj={{this.dataTestSubj}} data-gridcell-column-id={{this.columnId}} data-gridcell-column-index={{@colIndex}} data-gridcell-row-index={{this.rowIndex}} data-gridcell-visible-row-index={{@visibleRowIndex}} {{on \"keydown\" this.onKeyDown}} {{on \"keyup\" this.onKeyUp}} {{on \"blur\" this.onBlur}} {{on \"mouseenter\" this.onMouseEnter}} {{on \"mouseleave\" this.onMouseLeave}} {{this.cellPropsElement this.cellPropsKey}} {{this.registerFocus @colIndex @visibleRowIndex}} {{this.setupCell}} ...attributes>\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 data-datagrid-cellcontent class={{this.contentClass}} style={{this.contentStyle}} {{this.setContentElement}} {{this.measureLineHeight this.grid.gridStyles.fontSize this.grid.gridStyles.cellPadding this.grid.rowHeightsOptions this.rowHeightOption}} {{this.measureAutoHeight this.isAutoHeight}}>\n {{!-- ember-eui extension (row-tree): indentation, toggle, group content --}}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell @grid={{@grid}} @row={{this.rowTree.row}} @columnId={{this.columnId}} @colIndex={{@colIndex}} @isToggleCell={{this.rowTree.isToggleCell}} />\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 @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{this.isExpandable}} @isExpanded={{this.isPopoverOpen}} @isDetails={{false}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 data-focus-lock-disabled={{if this.isCellEntered \"false\" \"disabled\"}} {{focusTrap _createFocusTrap=focusTrapFactory isActive=this.isCellEntered focusTrapOptions=this.focusTrapOptions}}>\n <div data-datagrid-cellcontent class={{this.contentClass}} style={{this.contentStyle}} {{this.setContentElement}} {{this.measureLineHeight this.grid.gridStyles.fontSize this.grid.gridStyles.cellPadding this.grid.rowHeightsOptions this.rowHeightOption}} {{this.measureAutoHeight this.isAutoHeight}}>\n {{!-- ember-eui extension (row-tree): indentation, toggle, group content --}}\n {{#if this.rowTree.row}}\n <EuiDataGridTreeCell @grid={{@grid}} @row={{this.rowTree.row}} @columnId={{this.columnId}} @colIndex={{@colIndex}} @isToggleCell={{this.rowTree.isToggleCell}} />\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 @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{this.isExpandable}} @isExpanded={{false}} @isDetails={{false}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 @grid={{@grid}} @type=\"no-copy\" />{{this.screenReaderDescription}}<EuiDataGridCopyMarker @grid={{@grid}} @type=\"no-copy\" /></p></EuiScreenReaderOnly>\n {{/if}}\n {{#if this.showCellActions}}\n <EuiDataGridCellActions @column={{this.column}} @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @onExpandClick={{this.handleCellExpansionClick}}>\n <:popover>\n <EuiPopover @isOpen={{this.isPopoverOpen}} @closePopover={{this.closePopover}} @display=\"block\" @hasArrow={{false}} @attachToAnchor={{true}} @panelPaddingSize=\"s\" @anchorPosition=\"downLeft\" @repositionToCrossAxis={{false}} @panelClassName={{this.popoverPanelClassName}} @panelCss={{this.popoverPanelCss}} @panelStyle={{this.popoverPanelStyle}} @panelRef={{this.registerPopoverPanel}} @initialFocus={{this.popoverInitialFocus}} @focusTrapOptions={{this.popoverFocusTrapOptions}} @zIndex={{this.popoverZIndex}}>\n <:button>\n <div data-test-subject=\"cellPopoverAnchor\"></div>\n </:button>\n <:content>\n {{#let (component EuiDataGridCellPopoverActions column=this.column rowIndex=this.rowIndex colIndex=@colIndex) as |CellActions|}}\n {{#let (component EuiDataGridDefaultCellPopover schema=this.schema cellContentsElement=this.contentElement cellActions=CellActions) as |DefaultCellPopover|}}\n <div data-test-subj=\"euiDataGridExpansionPopover\">\n {{#if @grid.args.renderCellPopover}}\n {{#let @grid.args.renderCellPopover as |PopoverRenderer|}}\n <PopoverRenderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @schema={{this.schema}} @cellContentsElement={{this.contentElement}} @setCellPopoverProps={{this.setCellPopoverProps}} @cellActions={{CellActions}} @DefaultCellPopover={{DefaultCellPopover}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}}>\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{true}} @isExpanded={{true}} @isDetails={{true}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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 (hash rowIndex=this.rowIndex colIndex=@colIndex columnId=this.columnId schema=this.schema cellContentsElement=this.contentElement setCellPopoverProps=this.setCellPopoverProps cellActions=CellActions DefaultCellPopover=DefaultCellPopover row=this.rowTree.rowData rowTree=this.rowTree.info) to=\"cellPopover\"}}\n {{else}}\n <EuiDataGridDefaultCellPopover @schema={{this.schema}} @cellContentsElement={{this.contentElement}} @cellActions={{CellActions}}>\n {{#if this.renderer}}\n {{#let this.renderer as |Renderer|}}\n <Renderer @rowIndex={{this.rowIndex}} @colIndex={{@colIndex}} @columnId={{this.columnId}} @setCellProps={{this.setCellProps}} @isExpandable={{true}} @isExpanded={{true}} @isDetails={{true}} @schema={{this.schema}} @cellContext={{@grid.args.cellContext}} {{!-- ember-eui extension (row-tree): @row, @rowTree --}} @row={{this.rowTree.rowData}} @rowTree={{this.rowTree.info}} />\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>", {
763
840
  strictMode: true,
764
841
  scope: () => ({
765
842
  on,