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) 628 B
"use strict";exports.attemptFocus=(t,e={})=>{try{t.focus(e)}catch(n){console.error(n)}return t===((t=[])=>{const{activeElement:e}=document;return e&&!t.some((t=>t===e))?e:null})()},exports.getTransitionDelay=t=>{const e=window.getComputedStyle(t),n=e.transitionDelay.split(",")[0]||"",i=e.transitionDuration.split(",")[0]||"";return 1e3*Number(n.slice(0,-1))+1e3*Number(i.slice(0,-1))},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-C-F8jHop.js.map