diff --git a/src/components/skeleton/Skeleton.d.ts b/src/components/skeleton/Skeleton.d.ts index 7aa948d7b..4054e5ee3 100644 --- a/src/components/skeleton/Skeleton.d.ts +++ b/src/components/skeleton/Skeleton.d.ts @@ -1,6 +1,4 @@ -import Vue from 'vue'; - -declare class Skeleton extends Vue { +interface SkeletonProps { shape?: string; size?: string; width?: string; @@ -9,4 +7,8 @@ declare class Skeleton extends Vue { animation?: string; } -export default Skeleton; \ No newline at end of file +declare class Skeleton { + $props: SkeletonProps; +} + +export default Skeleton; diff --git a/src/components/slider/Slider.d.ts b/src/components/slider/Slider.d.ts index 30b458738..8b9452e29 100755 --- a/src/components/slider/Slider.d.ts +++ b/src/components/slider/Slider.d.ts @@ -1,6 +1,4 @@ -import Vue from 'vue'; - -declare class Slider extends Vue { +interface SliderProps { modelValue?: number | any[]; min?: number; max?: number; @@ -9,8 +7,12 @@ declare class Slider extends Vue { range?: boolean; disabled?: boolean; ariaLabelledBy?: string; +} + +declare class Slider { + $props: SliderProps; $emit(eventName: 'change', value: any): this; $emit(eventName: 'slideend', e: {originalEvent: Event, values: any}): this; } -export default Slider; \ No newline at end of file +export default Slider; diff --git a/src/components/splitbutton/SplitButton.d.ts b/src/components/splitbutton/SplitButton.d.ts index e7cc69379..87ef9ff5b 100755 --- a/src/components/splitbutton/SplitButton.d.ts +++ b/src/components/splitbutton/SplitButton.d.ts @@ -1,6 +1,4 @@ -import Vue from 'vue'; - -declare class SplitButton extends Vue { +interface SplitButtonProps { label?: string; icon?: string; model?: any[]; @@ -9,7 +7,11 @@ declare class SplitButton extends Vue { autoZIndex?: boolean; baseZIndex?: number; appendTo?: string; +} + +declare class SplitButton { + $props: SplitButtonProps; $emit(eventName: 'click', event: Event): this; } -export default SplitButton; \ No newline at end of file +export default SplitButton; diff --git a/src/components/splitter/Splitter.d.ts b/src/components/splitter/Splitter.d.ts index 8726d6392..c67ffdb08 100644 --- a/src/components/splitter/Splitter.d.ts +++ b/src/components/splitter/Splitter.d.ts @@ -1,10 +1,12 @@ -import Vue from 'vue'; - -declare class Splitter extends Vue { +interface SplitterProps { layout?: string; gutterSize?: number; stateKey?: string; stateStorage?: string; } -export default Splitter; \ No newline at end of file +declare class Splitter { + $props: SplitterProps; +} + +export default Splitter; diff --git a/src/components/splitterpanel/SplitterPanel.d.ts b/src/components/splitterpanel/SplitterPanel.d.ts index ae428ee2e..15f549546 100644 --- a/src/components/splitterpanel/SplitterPanel.d.ts +++ b/src/components/splitterpanel/SplitterPanel.d.ts @@ -1,8 +1,10 @@ -import Vue from 'vue'; - -declare class SplitterPanel extends Vue { +interface SplitterPanelProps { size?: number; minSize?: number; } -export default SplitterPanel; \ No newline at end of file +declare class SplitterPanel { + $props: SplitterPanelProps; +} + +export default SplitterPanel; diff --git a/src/components/steps/Steps.d.ts b/src/components/steps/Steps.d.ts index c34a7d4d8..11490cc49 100755 --- a/src/components/steps/Steps.d.ts +++ b/src/components/steps/Steps.d.ts @@ -1,8 +1,10 @@ -import Vue from 'vue'; - -declare class Steps extends Vue { +interface StepsProps { model?: any[]; readonly?: boolean; } -export default Steps; \ No newline at end of file +declare class Steps { + $props: StepsProps; +} + +export default Steps; diff --git a/src/components/tabmenu/TabMenu.d.ts b/src/components/tabmenu/TabMenu.d.ts index d5e55fd07..04f23f862 100755 --- a/src/components/tabmenu/TabMenu.d.ts +++ b/src/components/tabmenu/TabMenu.d.ts @@ -1,7 +1,9 @@ -import Vue from 'vue'; - -declare class TabMenu extends Vue { +interface TabMenuProps { model?: any[]; } -export default TabMenu; \ No newline at end of file +declare class TabMenu { + $props: TabMenuProps; +} + +export default TabMenu; diff --git a/src/components/tabpanel/TabPanel.d.ts b/src/components/tabpanel/TabPanel.d.ts index c942c9e1e..f1bab58a9 100755 --- a/src/components/tabpanel/TabPanel.d.ts +++ b/src/components/tabpanel/TabPanel.d.ts @@ -1,11 +1,15 @@ -import Vue, { VNode } from 'vue'; +import { VNode } from 'vue'; -declare class TabPanel extends Vue { +interface TabPanelProps { header?: any; disabled?: boolean; +} + +declare class TabPanel { + $props: TabPanelProps; $slots: { '': VNode[]; } } -export default TabPanel; \ No newline at end of file +export default TabPanel; diff --git a/src/components/tabview/TabView.d.ts b/src/components/tabview/TabView.d.ts index b6fe61fbb..3dcc73bcb 100755 --- a/src/components/tabview/TabView.d.ts +++ b/src/components/tabview/TabView.d.ts @@ -1,11 +1,15 @@ -import Vue, { VNode } from 'vue'; +import { VNode } from 'vue'; -declare class TabView extends Vue { +interface TabViewProps { activeIndex?: number; +} + +declare class TabView { + $props: TabViewProps; $emit(eventName: 'tab-change', e: { originalEvent: Event, tab: any }): this; $slots: { '': VNode[]; } } -export default TabView; \ No newline at end of file +export default TabView; diff --git a/src/components/tag/Tag.d.ts b/src/components/tag/Tag.d.ts index c322eab3b..6e4dde358 100644 --- a/src/components/tag/Tag.d.ts +++ b/src/components/tag/Tag.d.ts @@ -1,10 +1,12 @@ -import Vue from 'vue'; - -declare class Tag extends Vue { +interface TagProps { value?: any; severity?: string; rounded?: boolean; icon?: string; } -export default Tag; \ No newline at end of file +declare class Tag { + $props: TagProps; +} + +export default Tag; diff --git a/src/components/terminal/Terminal.d.ts b/src/components/terminal/Terminal.d.ts index 7b31c1cde..c7cf4808e 100755 --- a/src/components/terminal/Terminal.d.ts +++ b/src/components/terminal/Terminal.d.ts @@ -1,8 +1,10 @@ -import Vue from 'vue'; - -declare class Terminal extends Vue { +interface TerminalProps { welcomeMessage?: string; prompt?: string; } -export default Terminal; \ No newline at end of file +declare class Terminal { + $props: TerminalProps; +} + +export default Terminal; diff --git a/src/components/textarea/Textarea.d.ts b/src/components/textarea/Textarea.d.ts index 320901222..1c3bd0c85 100755 --- a/src/components/textarea/Textarea.d.ts +++ b/src/components/textarea/Textarea.d.ts @@ -1,9 +1,11 @@ -import Vue from 'vue'; - -declare class Textarea extends Vue { +interface TextareaProps { value?: string; autoResize?: boolean; +} + +declare class Textarea { + $props: TextareaProps; $emit(eventName: 'input', value: string): this; } -export default Textarea; \ No newline at end of file +export default Textarea; diff --git a/src/components/tieredmenu/TieredMenu.d.ts b/src/components/tieredmenu/TieredMenu.d.ts index bff0686cd..1c5ac9d17 100755 --- a/src/components/tieredmenu/TieredMenu.d.ts +++ b/src/components/tieredmenu/TieredMenu.d.ts @@ -1,14 +1,16 @@ -import Vue from 'vue'; - -declare class TieredMenu extends Vue { +interface TieredMenuProps { popup?: boolean; model?: any[]; appendTo?: string; autoZIndex?: boolean; baseZIndex?: number; +} + +declare class TieredMenu { + $props: TieredMenuProps; toggle(event: Event): void; show(event: Event, target?: any): void; hide(): void; } -export default TieredMenu; \ No newline at end of file +export default TieredMenu; diff --git a/src/components/timeline/Timeline.d.ts b/src/components/timeline/Timeline.d.ts index 64aa0317d..8d1a0c9e8 100644 --- a/src/components/timeline/Timeline.d.ts +++ b/src/components/timeline/Timeline.d.ts @@ -1,10 +1,14 @@ -import Vue, { VNode } from 'vue'; +import { VNode } from 'vue'; -declare class Timeline extends Vue { +interface TimelineProps { value?: any[]; align?: string; layout?: string; dataKey?: string; +} + +declare class Timeline { + $props: TimelineProps; $slots: { content: VNode[]; opposite: VNode[]; @@ -12,4 +16,4 @@ declare class Timeline extends Vue { } } -export default Timeline; \ No newline at end of file +export default Timeline; diff --git a/src/components/toast/Toast.d.ts b/src/components/toast/Toast.d.ts index fda8e9a52..c66bf21da 100755 --- a/src/components/toast/Toast.d.ts +++ b/src/components/toast/Toast.d.ts @@ -1,8 +1,10 @@ -import Vue from 'vue'; - -declare class Toast extends Vue { +interface ToastProps { group?: string; position?: string; } -export default Toast; \ No newline at end of file +declare class Toast { + $props: ToastProps; +} + +export default Toast; diff --git a/src/components/togglebutton/ToggleButton.d.ts b/src/components/togglebutton/ToggleButton.d.ts index ad2869e87..2c706d031 100755 --- a/src/components/togglebutton/ToggleButton.d.ts +++ b/src/components/togglebutton/ToggleButton.d.ts @@ -1,13 +1,15 @@ -import Vue from 'vue'; - -declare class ToggleButton extends Vue { +interface ToggleButtonProps { value?: boolean; onIcon?: string; offIcon?: string; onLabel?: string; offLabel?: string; iconPos?: string; +} + +declare class ToggleButton { + $props: ToggleButtonProps; $emit(eventName: string, event: Event): this; } -export default ToggleButton; \ No newline at end of file +export default ToggleButton; diff --git a/src/components/toolbar/Toolbar.d.ts b/src/components/toolbar/Toolbar.d.ts index 1b60068f9..09319660f 100755 --- a/src/components/toolbar/Toolbar.d.ts +++ b/src/components/toolbar/Toolbar.d.ts @@ -1,10 +1,13 @@ -import Vue, { VNode } from 'vue'; +import { VNode } from 'vue'; -declare class Toolbar extends Vue { +interface ToolbarProps {} + +declare class Toolbar { + $props: ToolbarProps; $slots: { left: VNode[]; right: VNode[]; } } -export default Toolbar; \ No newline at end of file +export default Toolbar; diff --git a/src/components/tree/Tree.d.ts b/src/components/tree/Tree.d.ts index 761934bff..c4dfbc275 100755 --- a/src/components/tree/Tree.d.ts +++ b/src/components/tree/Tree.d.ts @@ -1,6 +1,6 @@ -import Vue, {VNode} from 'vue'; +import { VNode } from 'vue'; -declare class Tree extends Vue { +interface TreeProps { value?: any; expandedKeys?: any; selectionKeys?: any; @@ -13,6 +13,10 @@ declare class Tree extends Vue { filterMode?: string; filterPlaceholder?: string; filterLocale?: string; +} + +declare class Tree { + $props: TreeProps; $emit(eventName: 'node-select', node: any): this; $emit(eventName: 'node-unselect', node: any): this; $emit(eventName: 'node-expand', node: any): this; @@ -22,4 +26,4 @@ declare class Tree extends Vue { } } -export default Tree; \ No newline at end of file +export default Tree; diff --git a/src/components/treetable/TreeTable.d.ts b/src/components/treetable/TreeTable.d.ts index 0bd324c39..db3126b09 100755 --- a/src/components/treetable/TreeTable.d.ts +++ b/src/components/treetable/TreeTable.d.ts @@ -1,6 +1,6 @@ -import Vue, {VNode} from 'vue'; +import { VNode } from 'vue'; -declare class TreeTable extends Vue { +interface TreeTableProps { value?: any; expandedKeys?: any; selectionKeys?: any; @@ -35,6 +35,10 @@ declare class TreeTable extends Vue { resizableColumns?: boolean; columnResizeMode?: string; indentation?: number; +} + +declare class TreeTable { + $props: TreeTableProps; $emit(eventName: 'page', event: Event): this; $emit(eventName: 'sort', event: Event): this; $emit(eventName: 'filter', event: Event): this; @@ -52,4 +56,4 @@ declare class TreeTable extends Vue { } } -export default TreeTable; \ No newline at end of file +export default TreeTable; diff --git a/src/components/tristatecheckbox/TriStateCheckbox.d.ts b/src/components/tristatecheckbox/TriStateCheckbox.d.ts index 81c20cf22..4a419cad2 100755 --- a/src/components/tristatecheckbox/TriStateCheckbox.d.ts +++ b/src/components/tristatecheckbox/TriStateCheckbox.d.ts @@ -1,8 +1,10 @@ -import Vue from 'vue'; - -declare class TriStateCheckbox extends Vue { +interface TriStateCheckboxProps { modelValue?: any; +} + +declare class TriStateCheckbox { + $props: TriStateCheckboxProps; $emit(eventName: string, event: Event): this; } -export default TriStateCheckbox; \ No newline at end of file +export default TriStateCheckbox;