baked-recipe-admin
Version:
Baked is an opinionated framework for .NET in backend and Nuxt in frontend. This is a recipe package that brings together all the components one needs for an Admin UI.
21 lines (18 loc) • 632 B
JavaScript
import ConfirmationEventBus from 'primevue/confirmationeventbus';
import { PrimeVueConfirmSymbol } from 'primevue/useconfirm';
var ConfirmationService = {
install: function install(app) {
var ConfirmationService = {
require: function require(options) {
ConfirmationEventBus.emit('confirm', options);
},
close: function close() {
ConfirmationEventBus.emit('close');
}
};
app.config.globalProperties.$confirm = ConfirmationService;
app.provide(PrimeVueConfirmSymbol, ConfirmationService);
}
};
export { ConfirmationService as default };
//# sourceMappingURL=index.mjs.map