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 2.17 kB
{"version":3,"file":"index.mjs","sources":["../../src/dialogservice/DialogService.js"],"sourcesContent":["import DynamicDialogEventBus from 'primevue/dynamicdialogeventbus';\nimport { PrimeVueDialogSymbol } from 'primevue/usedialog';\nimport { markRaw } from 'vue';\n\nexport default {\n install: (app) => {\n const DialogService = {\n open: (content, options) => {\n const instance = {\n content: content && markRaw(content),\n options: options || {},\n data: options && options.data,\n close: (params) => {\n DynamicDialogEventBus.emit('close', { instance, params });\n }\n };\n\n DynamicDialogEventBus.emit('open', { instance });\n\n return instance;\n }\n };\n\n // app.config.unwrapInjectedRef = true; // Remove it after Vue 3.3. Details: https://vuejs.org/guide/components/provide-inject.html#working-with-reactivity\n app.config.globalProperties.$dialog = DialogService;\n app.provide(PrimeVueDialogSymbol, DialogService);\n }\n};\n"],"names":["install","app","DialogService","open","content","options","instance","markRaw","data","close","params","DynamicDialogEventBus","emit","config","globalProperties","$dialog","provide","PrimeVueDialogSymbol"],"mappings":";;;;AAIA,oBAAe;AACXA,EAAAA,OAAO,EAAE,SAATA,OAAOA,CAAGC,GAAG,EAAK;AACd,IAAA,IAAMC,aAAa,GAAG;AAClBC,MAAAA,IAAI,EAAE,SAANA,IAAIA,CAAGC,OAAO,EAAEC,OAAO,EAAK;AACxB,QAAA,IAAMC,QAAQ,GAAG;AACbF,UAAAA,OAAO,EAAEA,OAAO,IAAIG,OAAO,CAACH,OAAO,CAAC;AACpCC,UAAAA,OAAO,EAAEA,OAAO,IAAI,EAAE;AACtBG,UAAAA,IAAI,EAAEH,OAAO,IAAIA,OAAO,CAACG,IAAI;AAC7BC,UAAAA,KAAK,EAAE,SAAPA,KAAKA,CAAGC,MAAM,EAAK;AACfC,YAAAA,qBAAqB,CAACC,IAAI,CAAC,OAAO,EAAE;AAAEN,cAAAA,QAAQ,EAARA,QAAQ;AAAEI,cAAAA,MAAM,EAANA;AAAO,aAAC,CAAC;AAC7D;SACH;AAEDC,QAAAA,qBAAqB,CAACC,IAAI,CAAC,MAAM,EAAE;AAAEN,UAAAA,QAAQ,EAARA;AAAS,SAAC,CAAC;AAEhD,QAAA,OAAOA,QAAQ;AACnB;KACH;;AAED;AACAL,IAAAA,GAAG,CAACY,MAAM,CAACC,gBAAgB,CAACC,OAAO,GAAGb,aAAa;AACnDD,IAAAA,GAAG,CAACe,OAAO,CAACC,oBAAoB,EAAEf,aAAa,CAAC;AACpD;AACJ,CAAC;;;;"}