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 • 2.14 kB
Source Map (JSON)
{"version":3,"file":"index.mjs","sources":["../../../../src/plugins/createBootstrap/index.ts"],"sourcesContent":["import type {Plugin} from 'vue'\nimport type {BootstrapVueOptions, BvnComponents} from '../../types/BootstrapVueOptions'\n\nimport '../../styles/styles.scss'\n\nimport {breadcrumbPlugin} from '../breadcrumb'\nimport {bootstrapPlugin} from '../bootstrap'\nimport {modalControllerPlugin} from '../modalController'\nimport {modalManagerPlugin} from '../modalManager'\nimport {popoverPlugin} from '../popoverController'\nimport {rtlPlugin} from '../rtl'\nimport {toastPlugin} from '../toastController'\nimport {showHidePlugin} from '../showHide'\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(showHidePlugin)\n app.use(bootstrapPlugin, pluginData)\n },\n})\n\ndeclare module 'vue' {\n // eslint-disable-next-line @typescript-eslint/no-empty-object-type\n interface GlobalComponents extends BvnComponents {}\n}\n"],"names":[],"mappings":";;;;;;;;AAeO,MAAM,kBAAkB,CAAC,aAA4C,QAAgB;AAAA,EAC1F,QAAQ,KAAK;AACP,QAAA,WAAW,cAAc,MAAe;AAC1C,UAAI,IAAI,gBAAgB;AAAA,IAAA;AAEtB,QAAA,WAAW,mBAAmB,MAAe;AAC/C,UAAI,IAAI,qBAAqB;AAAA,IAAA;AAE3B,QAAA,WAAW,gBAAgB,MAAe;AAC5C,UAAI,IAAI,kBAAkB;AAAA,IAAA;AAE5B,SAAK,WAAW,OAAO,SAAkB,OAAO,WAAW,QAAQ,UAAU;AACvE,UAAA,IAAI,WAAW,UAAU;AAAA,IAAA;AAE3B,QAAA,WAAW,SAAS,MAAe;AACrC,UAAI,IAAI,WAAW;AAAA,IAAA;AAEjB,QAAA,WAAW,WAAW,MAAe;AACvC,UAAI,IAAI,aAAa;AAAA,IAAA;AAEvB,QAAI,IAAI,cAAc;AAClB,QAAA,IAAI,iBAAiB,UAAU;AAAA,EAAA;AAEvC;"}