From f6ee23892413d277adbfc59584161b69b0a864cb Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 29 Jul 2022 01:50:40 +0100 Subject: [PATCH] Fixed #2812 - Add new message options to PrimeVue API --- src/components/config/PrimeVue.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/components/config/PrimeVue.js b/src/components/config/PrimeVue.js index 3929b38fc..1e1f1e97b 100644 --- a/src/components/config/PrimeVue.js +++ b/src/components/config/PrimeVue.js @@ -61,7 +61,11 @@ const defaultOptions = { medium: 'Medium', strong: 'Strong', passwordPrompt: 'Enter a password', - emptyFilterMessage: 'No results found', + emptyFilterMessage: 'No results found', // @deprecated Use 'emptySearchMessage' option instead. + searchMessage: '{0} results are available', + selectionMessage: '{0} items selected', + emptySelectionMessage: 'No selected item', + emptySearchMessage: 'No results found', emptyMessage: 'No available options', aria: { trueLabel: 'True', @@ -110,8 +114,8 @@ export function usePrimeVue() { const PrimeVue = inject(PrimeVueSymbol); if (!PrimeVue) { throw new Error('PrimeVue is not installed!'); - } - + } + return PrimeVue; } @@ -124,4 +128,4 @@ export default { app.config.globalProperties.$primevue = PrimeVue; app.provide(PrimeVueSymbol, PrimeVue); } -}; \ No newline at end of file +};