From abb3a7bd8c692972eaaf682c0b93a31043cdbb81 Mon Sep 17 00:00:00 2001 From: Cagatay Civici Date: Mon, 18 Jan 2021 18:02:01 +0300 Subject: [PATCH] Rename paths --- src/components/useconfirm/package.json | 6 ------ src/components/useconfirm/useconfirm.d.ts | 19 ------------------- src/components/useconfirm/useconfirm.js | 12 ------------ src/components/usetoast/package.json | 6 ------ src/components/usetoast/usetoast.d.ts | 1 - src/components/usetoast/usetoast.js | 12 ------------ 6 files changed, 56 deletions(-) delete mode 100644 src/components/useconfirm/package.json delete mode 100644 src/components/useconfirm/useconfirm.d.ts delete mode 100644 src/components/useconfirm/useconfirm.js delete mode 100644 src/components/usetoast/package.json delete mode 100644 src/components/usetoast/usetoast.d.ts delete mode 100644 src/components/usetoast/usetoast.js diff --git a/src/components/useconfirm/package.json b/src/components/useconfirm/package.json deleted file mode 100644 index 0d2c7bc26..000000000 --- a/src/components/useconfirm/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "main": "./useconfirm.cjs.js", - "module": "./useconfirm.esm.js", - "unpkg": "./useconfirm.min.js", - "types": "./useconfirm.d.ts" -} \ No newline at end of file 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 c0a588441..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/package.json b/src/components/usetoast/package.json deleted file mode 100644 index b96d97858..000000000 --- a/src/components/usetoast/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "main": "./usetoast.cjs.js", - "module": "./usetoast.esm.js", - "unpkg": "./usetoast.min.js", - "types": "./usetoast.d.ts" -} \ 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 eca896906..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 24713327c..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