bootstrap-vue
Version:
With more than 85 components, over 45 available plugins, several directives, and 1000+ icons, BootstrapVue provides one of the most comprehensive implementations of the Bootstrap v4 component and grid system available for Vue.js v2.6, complete with extens
27 lines (24 loc) • 779 B
JavaScript
// Constants used by table helpers
// Object of item keys that should be ignored for headers and
// stringification and filter events
export const IGNORED_FIELD_KEYS = {
_rowVariant: true,
_cellVariants: true,
_showDetails: true
}
// Filter CSS selector for click/dblclick/etc. events
// If any of these selectors match the clicked element, we ignore the event
export const EVENT_FILTER = [
'a',
'a *', // Include content inside links
'button',
'button *', // Include content inside buttons
'input:not(.disabled):not([disabled])',
'select:not(.disabled):not([disabled])',
'textarea:not(.disabled):not([disabled])',
'[role="link"]',
'[role="link"] *',
'[role="button"]',
'[role="button"] *',
'[tabindex]:not(.disabled):not([disabled])'
].join(',')