UNPKG

primevue

Version:

PrimeVue is an open source UI library for Vue featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeBloc

1 lines 1.34 kB
{"version":3,"file":"index.mjs","sources":["../../src/confirmationservice/ConfirmationService.js"],"sourcesContent":["import ConfirmationEventBus from 'primevue/confirmationeventbus';\nimport { PrimeVueConfirmSymbol } from 'primevue/useconfirm';\n\nexport default {\n install: (app) => {\n const ConfirmationService = {\n require: (options) => {\n ConfirmationEventBus.emit('confirm', options);\n },\n close: () => {\n ConfirmationEventBus.emit('close');\n }\n };\n\n app.config.globalProperties.$confirm = ConfirmationService;\n app.provide(PrimeVueConfirmSymbol, ConfirmationService);\n }\n};\n"],"names":["install","app","ConfirmationService","require","options","ConfirmationEventBus","emit","close","config","globalProperties","$confirm","provide","PrimeVueConfirmSymbol"],"mappings":";;;AAGA,0BAAe;AACXA,EAAAA,OAAO,EAAE,SAATA,OAAOA,CAAGC,GAAG,EAAK;AACd,IAAA,IAAMC,mBAAmB,GAAG;AACxBC,MAAAA,OAAO,EAAE,SAATA,OAAOA,CAAGC,OAAO,EAAK;AAClBC,QAAAA,oBAAoB,CAACC,IAAI,CAAC,SAAS,EAAEF,OAAO,CAAC;OAChD;AACDG,MAAAA,KAAK,EAAE,SAAPA,KAAKA,GAAQ;AACTF,QAAAA,oBAAoB,CAACC,IAAI,CAAC,OAAO,CAAC;AACtC;KACH;AAEDL,IAAAA,GAAG,CAACO,MAAM,CAACC,gBAAgB,CAACC,QAAQ,GAAGR,mBAAmB;AAC1DD,IAAAA,GAAG,CAACU,OAAO,CAACC,qBAAqB,EAAEV,mBAAmB,CAAC;AAC3D;AACJ,CAAC;;;;"}