From a5c4035ba04f2dc7796ef52aeaa78525f9547f30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Thu, 14 Jan 2021 16:32:52 +0300 Subject: [PATCH] delete useConfirm and useToast --- src/components/useconfirm/useConfirm.d.ts | 19 ------------------- src/components/useconfirm/useConfirm.js | 12 ------------ src/components/usetoast/useToast.d.ts | 1 - src/components/usetoast/useToast.js | 12 ------------ 4 files changed, 44 deletions(-) delete mode 100644 src/components/useconfirm/useConfirm.d.ts delete mode 100644 src/components/useconfirm/useConfirm.js delete mode 100644 src/components/usetoast/useToast.d.ts delete mode 100644 src/components/usetoast/useToast.js diff --git a/src/components/useconfirm/useConfirm.d.ts b/src/components/useconfirm/useConfirm.d.ts deleted file mode 100644 index 44df8c048..000000000 --- a/src/components/useconfirm/useConfirm.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export declare function useConfirm(): { - require(args:{ - message?: string; - group?: string; - icon?: string; - header?: string; - accept?: Function; - reject?: Function; - acceptLabel?: string; - rejectLabel?: string; - acceptIcon?: string; - rejectIcon?: string; - blockScroll?: boolean; - acceptClass?: string; - rejectClass?: string; - }): void - - close(): void -} \ No newline at end of file diff --git a/src/components/useconfirm/useConfirm.js b/src/components/useconfirm/useConfirm.js deleted file mode 100644 index 6de7503a7..000000000 --- a/src/components/useconfirm/useConfirm.js +++ /dev/null @@ -1,12 +0,0 @@ -import { inject } from 'vue'; - -export const PrimeVueConfirmSymbol = Symbol(); - -export function useConfirm() { - const PrimeVueConfirm = inject(PrimeVueConfirmSymbol); - if (!PrimeVueConfirm) { - throw new Error('No PrimeVue Confirmation provided!'); - } - - return PrimeVueConfirm; -} \ No newline at end of file diff --git a/src/components/usetoast/useToast.d.ts b/src/components/usetoast/useToast.d.ts deleted file mode 100644 index 6854a0212..000000000 --- a/src/components/usetoast/useToast.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function useToast(): { add(args:{ severity?: string, summary?: string, detail?: string, life?: number, closable?: boolean, group?: string }): void } \ No newline at end of file diff --git a/src/components/usetoast/useToast.js b/src/components/usetoast/useToast.js deleted file mode 100644 index 13d019121..000000000 --- a/src/components/usetoast/useToast.js +++ /dev/null @@ -1,12 +0,0 @@ -import { inject } from 'vue'; - -export const PrimeVueToastSymbol = Symbol(); - -export function useToast() { - const PrimeVueToast = inject(PrimeVueToastSymbol); - if (!PrimeVueToast) { - throw new Error('No PrimeVue Toast provided!'); - } - - return PrimeVueToast; -} \ No newline at end of file