UNPKG

devextreme

Version:

JavaScript/TypeScript Component Suite for Responsive Web Development

19 lines (18 loc) 808 B
/** * DevExtreme (esm/__internal/grids/grid_core/keyboard_navigation/dom.js) * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ import { ATTRIBUTES } from "./const"; const isDragCell = $cell => void 0 !== $cell.attr(ATTRIBUTES.dragCell); const getFocusableCellSelector = columnIndex => [`[${ATTRIBUTES.ariaColIndex}="${columnIndex+1}"]`, `:not([${ATTRIBUTES.dragCell}])`, ":not([aria-hidden=true])"].join(""); const getCellToFocus = ($cellElements, columnIndex) => $cellElements.filter(getFocusableCellSelector(columnIndex)).first(); export const GridCoreKeyboardNavigationDom = { isDragCell: isDragCell, getCellToFocus: getCellToFocus };