diff --git a/src/components/config/PrimeVue.d.ts b/src/components/config/PrimeVue.d.ts index 94eb4cdc2..55d27aba0 100644 --- a/src/components/config/PrimeVue.d.ts +++ b/src/components/config/PrimeVue.d.ts @@ -50,7 +50,7 @@ interface PrimeVueLocaleOptions { emptyMessage?: string; } -export declare function usePrimeVue(): PrimeVueConfiguration; +export declare function usePrimeVue(): { config: PrimeVueConfiguration }; declare const plugin: Plugin; export default plugin; @@ -61,4 +61,4 @@ declare module 'vue/types/vue' { config: PrimeVueConfiguration; } } -} \ No newline at end of file +} diff --git a/src/components/password/Password.vue b/src/components/password/Password.vue index 09b265aad..40d1f2ee2 100755 --- a/src/components/password/Password.vue +++ b/src/components/password/Password.vue @@ -10,7 +10,7 @@
-
{{infoText}}
+
{{infoText}}
@@ -164,7 +164,7 @@ export default { }, onKeyUp(event) { if (this.feedback) { - let value = event.target.value; + const value = event.target.value; let label = null; let meter = null; @@ -330,7 +330,7 @@ export default { .p-password-strength { height: 100%; - width: 0%; + width: 0; transition: width 1s ease-in-out; } diff --git a/src/components/speeddial/SpeedDial.d.ts b/src/components/speeddial/SpeedDial.d.ts new file mode 100644 index 000000000..2b9fa64f0 --- /dev/null +++ b/src/components/speeddial/SpeedDial.d.ts @@ -0,0 +1,34 @@ +import { VNode } from 'vue'; + +interface SpeedDialProps { + model?: any[]; + visible?: boolean; + direction?: string; + transitionDelay?: number; + type?: string; + radius?: number; + mask?: boolean; + disabled?: boolean; + hideOnClickOutside?: boolean; + buttonClassName?: string; + maskStyle?: string; + maskClassName?: string; + showIcon?: string; + hideIcon?: string; + rotateAnimation?: boolean; + class?: string; + style?: any; +} + +declare class SpeedDial { + $props: SpeedDialProps; + $emit(eventName: 'click', event: Event): this; + $emit(eventName: 'show'): this; + $emit(eventName: 'hide'): this; + $slots: { + item: VNode[]; + button: VNode[]; + }; +} + +export default SpeedDial; diff --git a/src/components/speeddial/SpeedDial.vue b/src/components/speeddial/SpeedDial.vue new file mode 100644 index 000000000..d64d9f10e --- /dev/null +++ b/src/components/speeddial/SpeedDial.vue @@ -0,0 +1,378 @@ + + + + + \ No newline at end of file diff --git a/src/components/speeddial/package.json b/src/components/speeddial/package.json new file mode 100644 index 000000000..22fac6211 --- /dev/null +++ b/src/components/speeddial/package.json @@ -0,0 +1,9 @@ +{ + "main": "./speeddial.cjs.js", + "module": "./speeddial.esm.js", + "unpkg": "./speeddial.min.js", + "types": "./SpeedDial.d.ts", + "browser": { + "./sfc": "./SpeedDial.vue" + } + } \ No newline at end of file