UNPKG

bootstrap-vue-next

Version:

BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.

3 lines (2 loc) 475 B
"use strict";const t=(t=[])=>{const{activeElement:e}=document;return e&&!(null==t?void 0:t.some((t=>t===e)))?e:null};exports.attemptFocus=(e,n={})=>{try{e.focus(n)}catch(o){console.error(o)}return e===t()},exports.getActiveElement=t,exports.isEmptySlot=t=>0===((null==t?void 0:t())??[]).length,exports.isVisible=t=>{if("none"===t.getAttribute("display"))return!1;const e=t.getBoundingClientRect();return!!(e&&e.height>0&&e.width>0)}; //# sourceMappingURL=dom-D5l3V401.js.map