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 732 B
{"version":3,"file":"index.mjs","sources":["../../src/useconfirm/UseConfirm.js"],"sourcesContent":["import { inject } from 'vue';\n\nexport const PrimeVueConfirmSymbol = Symbol();\n\nexport function useConfirm() {\n const PrimeVueConfirm = inject(PrimeVueConfirmSymbol);\n\n if (!PrimeVueConfirm) {\n throw new Error('No PrimeVue Confirmation provided!');\n }\n\n return PrimeVueConfirm;\n}\n"],"names":["PrimeVueConfirmSymbol","Symbol","useConfirm","PrimeVueConfirm","inject","Error"],"mappings":";;AAEaA,IAAAA,qBAAqB,GAAGC,MAAM;AAEpC,SAASC,UAAUA,GAAG;AACzB,EAAA,IAAMC,eAAe,GAAGC,MAAM,CAACJ,qBAAqB,CAAC;EAErD,IAAI,CAACG,eAAe,EAAE;AAClB,IAAA,MAAM,IAAIE,KAAK,CAAC,oCAAoC,CAAC;AACzD;AAEA,EAAA,OAAOF,eAAe;AAC1B;;;;"}