bootstrap-vue-next
Version:
BootstrapVueNext is an early and lovely component library for Vue 3 & Nuxt 3 based on Bootstrap 5 and Typescript.
1 lines • 1.88 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../src/plugins/createBootstrap/index.ts"],"sourcesContent":["import type {Plugin} from 'vue'\nimport type {BootstrapVueOptions} from '../../types/BootstrapVueOptions'\n\nimport '../../styles/styles.scss'\n\nimport {breadcrumbPlugin} from '../breadcrumb'\nimport {defaultsPlugin} from '../defaults'\nimport {modalControllerPlugin} from '../modalController'\nimport {modalManagerPlugin} from '../modalManager'\nimport {popoverPlugin} from '../popoverController'\nimport {rtlPlugin} from '../rtl'\nimport {toastPlugin} from '../toastController'\n\n// Main app plugin\nexport const createBootstrap = (pluginData: Readonly<BootstrapVueOptions> = {}): Plugin => ({\n install(app) {\n if (pluginData.breadcrumb ?? true === true) {\n app.use(breadcrumbPlugin)\n }\n if (pluginData.modalController ?? true === true) {\n app.use(modalControllerPlugin)\n }\n if (pluginData.modalManager ?? true === true) {\n app.use(modalManagerPlugin)\n }\n if ((pluginData.rtl ?? true === true) || typeof pluginData.rtl === 'object') {\n app.use(rtlPlugin, pluginData)\n }\n if (pluginData.toast ?? true === true) {\n app.use(toastPlugin)\n }\n if (pluginData.popover ?? true === true) {\n app.use(popoverPlugin)\n }\n app.use(defaultsPlugin, pluginData)\n },\n})\n"],"names":[],"mappings":";;;;;;;AAcO,MAAM,kBAAkB,CAAC,aAA4C,QAAgB;AAAA,EAC1F,QAAQ,KAAK;AACP,QAAA,WAAW,cAAc,MAAe;AAC1C,UAAI,IAAI,gBAAgB;AAAA,IAC1B;AACI,QAAA,WAAW,mBAAmB,MAAe;AAC/C,UAAI,IAAI,qBAAqB;AAAA,IAC/B;AACI,QAAA,WAAW,gBAAgB,MAAe;AAC5C,UAAI,IAAI,kBAAkB;AAAA,IAC5B;AACA,SAAK,WAAW,OAAO,SAAkB,OAAO,WAAW,QAAQ,UAAU;AACvE,UAAA,IAAI,WAAW,UAAU;AAAA,IAC/B;AACI,QAAA,WAAW,SAAS,MAAe;AACrC,UAAI,IAAI,WAAW;AAAA,IACrB;AACI,QAAA,WAAW,WAAW,MAAe;AACvC,UAAI,IAAI,aAAa;AAAA,IACvB;AACI,QAAA,IAAI,gBAAgB,UAAU;AAAA,EACpC;AACF;"}