From 1d0ddeda45d1009a51ade9d24c62a88a0a4554b2 Mon Sep 17 00:00:00 2001 From: johnn1sbo3s Date: Thu, 16 Oct 2025 09:06:40 -0300 Subject: [PATCH 1/2] =?UTF-8?q?Atualiza=20vers=C3=A3o=20do=20projeto?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index f42cb49..15bfbf2 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@sysvale/show", - "version": "1.23.0", + "version": "1.23.1", "description": "A set of components used at Sysvale", "repository": { "type": "git", From 369c94559dc8b433161532bc91bd1c8f315d2de7 Mon Sep 17 00:00:00 2001 From: johnn1sbo3s Date: Thu, 16 Oct 2025 09:06:48 -0300 Subject: [PATCH 2/2] Registra composable --- src/components/index.ts | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/components/index.ts b/src/components/index.ts index 3b3b308..4c44ed9 100644 --- a/src/components/index.ts +++ b/src/components/index.ts @@ -10,8 +10,9 @@ import FeatureWrapper from './FeatureWrapper.vue'; /** -------*/ /** Composables */ -import { useRequest } from '@/composables/useRequest'; import { useDialog } from '@/composables/useDialog'; +import { useRequest } from '@/composables/useRequest'; +import { useRequestLoadings } from '@/composables/useRequestLoadings'; /* -------*/ /** Utils */ @@ -28,7 +29,14 @@ import { } from '../utils'; /* -------*/ -export { useRequest, useDialog, pluralize, pluralizeWithCount, pluralizeWords }; +export { + pluralize, + pluralizeWithCount, + pluralizeWords, + useDialog, + useRequest, + useRequestLoadings +}; export default { install(app: any, options = { @@ -60,18 +68,18 @@ export default { }; const version = Number(app.version.split('.')[0]); - + if (version <= 2) { throw new Error('Essa versão só é compatível com projetos que possuem o Vue 3. Para projetos com a Vue 2, utilize a versão 0.3.0 ou inferior'); } - + if (version > 2) { // ficará disponível apenas com o uso do Options API Object.keys(utils).forEach((key: string) => { app.config.globalProperties[key] = utils[key]; }); - // wrapper do vee-validate + // wrapper do vee-validate app.config.globalProperties.$showVeeValidate = veeValidateWrapper; } },