UNPKG

devextreme

Version:

HTML5 JavaScript Component Suite for Responsive Web Development

22 lines (21 loc) 1 kB
/** * DevExtreme (cjs/__internal/grids/grid_core/keyboard_navigation/dom.js) * Version: 24.2.6 * Build date: Mon Mar 17 2025 * * Copyright (c) 2012 - 2025 Developer Express Inc. ALL RIGHTS RESERVED * Read about DevExtreme licensing here: https://js.devexpress.com/Licensing/ */ "use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GridCoreKeyboardNavigationDom = void 0; var _const = require("./const"); const isDragCell = $cell => void 0 !== $cell.attr(_const.ATTRIBUTES.dragCell); const getFocusableCellSelector = columnIndex => [`[${_const.ATTRIBUTES.ariaColIndex}="${columnIndex+1}"]`, `:not([${_const.ATTRIBUTES.dragCell}])`, ":not([aria-hidden=true])"].join(""); const getCellToFocus = ($cellElements, columnIndex) => $cellElements.filter(getFocusableCellSelector(columnIndex)).first(); const GridCoreKeyboardNavigationDom = exports.GridCoreKeyboardNavigationDom = { isDragCell: isDragCell, getCellToFocus: getCellToFocus };